@ag-eco/agentplate-cli 0.13.0 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/init.test.ts +19 -1
- package/src/commands/init.ts +50 -11
- package/src/commands/serve/rest.ts +30 -0
- package/src/version.ts +1 -1
- package/ui/dist/chunk-j2jq94qn.css +1 -0
- package/ui/dist/chunk-mhy6k8aq.js +300 -0
- package/ui/dist/index.html +1 -1
- package/ui/dist/chunk-8s31f05k.css +0 -1
- package/ui/dist/chunk-vm5rz679.js +0 -300
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
var bV=Object.create;var{getPrototypeOf:QV,defineProperty:hb,getOwnPropertyNames:WV}=Object;var KV=Object.prototype.hasOwnProperty;function UV($){return this[$]}var qV,LV,P=($,J,Y)=>{var G=$!=null&&typeof $==="object";if(G){var B=J?qV??=new WeakMap:LV??=new WeakMap,g=B.get($);if(g)return g}Y=$!=null?bV(QV($)):{};let Q=J||!$||!$.__esModule?hb(Y,"default",{value:$,enumerable:!0}):Y;for(let b of WV($))if(!KV.call(Q,b))hb(Q,b,{get:UV.bind($,b),enumerable:!0});if(G)B.set($,Q);return Q};var H9=($,J)=>()=>(J||$((J={exports:{}}).exports,J),J.exports);var kV=($)=>$;function FV($,J){this[$]=kV.bind(null,J)}var NV=($,J)=>{for(var Y in J)hb($,Y,{get:J[Y],enumerable:!0,configurable:!0,set:FV.bind(J,Y)})};var Q0=H9((hV,bG)=>{(function(){function $(O,c){Object.defineProperty(G.prototype,O,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",c[0],c[1])}})}function J(O){if(O===null||typeof O!=="object")return null;return O=r0&&O[r0]||O["@@iterator"],typeof O==="function"?O:null}function Y(O,c){O=(O=O.constructor)&&(O.displayName||O.name)||"ReactClass";var U0=O+"."+c;b0[U0]||(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.",c,O),b0[U0]=!0)}function G(O,c,U0){this.props=O,this.context=c,this.refs=T1,this.updater=U0||L5}function B(){}function g(O,c,U0){this.props=O,this.context=c,this.refs=T1,this.updater=U0||L5}function Q(){}function b(O){return""+O}function K(O){try{b(O);var c=!1}catch(A0){c=!0}if(c){c=console;var U0=c.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return U0.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F0),b(O)}}function k(O){if(O==null)return null;if(typeof O==="function")return O.$$typeof===iw?null:O.displayName||O.name||null;if(typeof O==="string")return O;switch(O){case l:return"Fragment";case z0:return"Profiler";case M:return"StrictMode";case X0:return"Suspense";case J0:return"SuspenseList";case N0:return"Activity"}if(typeof O==="object")switch(typeof O.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case o:return"Portal";case r:return O.displayName||"Context";case m:return(O._context.displayName||"Context")+".Consumer";case a:var c=O.render;return O=O.displayName,O||(O=c.displayName||c.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case w0:return c=O.displayName||null,c!==null?c:k(O.type)||"Memo";case W0:c=O._payload,O=O._init;try{return k(O(c))}catch(U0){}}return null}function L(O){if(O===l)return"<>";if(typeof O==="object"&&O!==null&&O.$$typeof===W0)return"<...>";try{var c=k(O);return c?"<"+c+">":"<...>"}catch(U0){return"<...>"}}function U(){var O=E0.A;return O===null?null:O.getOwner()}function F(){return Error("react-stack-top-frame")}function N(O){if(k5.call(O,"key")){var c=Object.getOwnPropertyDescriptor(O,"key").get;if(c&&c.isReactWarning)return!1}return O.key!==void 0}function C(O,c){function U0(){pw||(pw=!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)",c))}U0.isReactWarning=!0,Object.defineProperty(O,"key",{get:U0,configurable:!0})}function I(){var O=k(this.type);return v2[O]||(v2[O]=!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.")),O=this.props.ref,O!==void 0?O:null}function A(O,c,U0,F0,A0,a0){var u0=U0.ref;return O={$$typeof:u,type:O,key:c,props:U0,_owner:F0},(u0!==void 0?u0:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:I}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A0}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a0}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function x(O,c){return c=A(O.type,c,O.props,O._owner,O._debugStack,O._debugTask),O._store&&(c._store.validated=O._store.validated),c}function S(O){D(O)?O._store&&(O._store.validated=1):typeof O==="object"&&O!==null&&O.$$typeof===W0&&(O._payload.status==="fulfilled"?D(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function D(O){return typeof O==="object"&&O!==null&&O.$$typeof===u}function i(O){var c={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(U0){return c[U0]})}function $0(O,c){return typeof O==="object"&&O!==null&&O.key!=null?(K(O.key),i(""+O.key)):c.toString(36)}function p(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status==="string"?O.then(Q,Q):(O.status="pending",O.then(function(c){O.status==="pending"&&(O.status="fulfilled",O.value=c)},function(c){O.status==="pending"&&(O.status="rejected",O.reason=c)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function j(O,c,U0,F0,A0){var a0=typeof O;if(a0==="undefined"||a0==="boolean")O=null;var u0=!1;if(O===null)u0=!0;else switch(a0){case"bigint":case"string":case"number":u0=!0;break;case"object":switch(O.$$typeof){case u:case o:u0=!0;break;case W0:return u0=O._init,j(u0(O._payload),c,U0,F0,A0)}}if(u0){u0=O,A0=A0(u0);var s0=F0===""?"."+$0(u0,0):F0;return K1(A0)?(U0="",s0!=null&&(U0=s0.replace(Iw,"$&/")+"/"),j(A0,c,U0,"",function(h0){return h0})):A0!=null&&(D(A0)&&(A0.key!=null&&(u0&&u0.key===A0.key||K(A0.key)),U0=x(A0,U0+(A0.key==null||u0&&u0.key===A0.key?"":(""+A0.key).replace(Iw,"$&/")+"/")+s0),F0!==""&&u0!=null&&D(u0)&&u0.key==null&&u0._store&&!u0._store.validated&&(U0._store.validated=2),A0=U0),c.push(A0)),1}if(u0=0,s0=F0===""?".":F0+":",K1(O))for(var V0=0;V0<O.length;V0++)F0=O[V0],a0=s0+$0(F0,V0),u0+=j(F0,c,U0,a0,A0);else if(V0=J(O),typeof V0==="function")for(V0===O.entries&&(i5||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),i5=!0),O=V0.call(O),V0=0;!(F0=O.next()).done;)F0=F0.value,a0=s0+$0(F0,V0++),u0+=j(F0,c,U0,a0,A0);else if(a0==="object"){if(typeof O.then==="function")return j(p(O),c,U0,F0,A0);throw c=String(O),Error("Objects are not valid as a React child (found: "+(c==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":c)+"). If you meant to render a collection of children, use an array instead.")}return u0}function Z0(O,c,U0){if(O==null)return O;var F0=[],A0=0;return j(O,F0,"","",function(a0){return c.call(U0,a0,A0++)}),F0}function s(O){if(O._status===-1){var c=O._ioInfo;c!=null&&(c.start=c.end=performance.now()),c=O._result;var U0=c();if(U0.then(function(A0){if(O._status===0||O._status===-1){O._status=1,O._result=A0;var a0=O._ioInfo;a0!=null&&(a0.end=performance.now()),U0.status===void 0&&(U0.status="fulfilled",U0.value=A0)}},function(A0){if(O._status===0||O._status===-1){O._status=2,O._result=A0;var a0=O._ioInfo;a0!=null&&(a0.end=performance.now()),U0.status===void 0&&(U0.status="rejected",U0.reason=A0)}}),c=O._ioInfo,c!=null){c.value=U0;var F0=U0.displayName;typeof F0==="string"&&(c.name=F0)}O._status===-1&&(O._status=0,O._result=U0)}if(O._status===1)return c=O._result,c===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?`,c),"default"in c||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'))`,c),c.default;throw O._result}function E(){var O=E0.H;return O===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.`),O}function g0(){E0.asyncTransitions--}function G0(O){if(rw===null)try{var c=("require"+Math.random()).slice(0,7);rw=(bG&&bG[c]).call(bG,"timers").setImmediate}catch(U0){rw=function(F0){G3===!1&&(G3=!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 A0=new MessageChannel;A0.port1.onmessage=F0,A0.port2.postMessage(void 0)}}return rw(O)}function q0(O){return 1<O.length&&typeof AggregateError==="function"?AggregateError(O):O[0]}function k0(O,c){c!==u6-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. "),u6=c}function e(O,c,U0){var F0=E0.actQueue;if(F0!==null)if(F0.length!==0)try{v0(F0),G0(function(){return e(O,c,U0)});return}catch(A0){E0.thrownErrors.push(A0)}else E0.actQueue=null;0<E0.thrownErrors.length?(F0=q0(E0.thrownErrors),E0.thrownErrors.length=0,U0(F0)):c(O)}function v0(O){if(!O4){O4=!0;var c=0;try{for(;c<O.length;c++){var U0=O[c];do{E0.didUsePromise=!1;var F0=U0(!1);if(F0!==null){if(E0.didUsePromise){O[c]=U0,O.splice(0,c);return}U0=F0}else break}while(1)}O.length=0}catch(A0){O.splice(0,c+1),E0.thrownErrors.push(A0)}finally{O4=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),z0=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),X0=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),w0=Symbol.for("react.memo"),W0=Symbol.for("react.lazy"),N0=Symbol.for("react.activity"),r0=Symbol.iterator,b0={},L5={isMounted:function(){return!1},enqueueForceUpdate:function(O){Y(O,"forceUpdate")},enqueueReplaceState:function(O){Y(O,"replaceState")},enqueueSetState:function(O){Y(O,"setState")}},r1=Object.assign,T1={};Object.freeze(T1),G.prototype.isReactComponent={},G.prototype.setState=function(O,c){if(typeof O!=="object"&&typeof O!=="function"&&O!=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,O,c,"setState")},G.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};var C1={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(C4 in C1)C1.hasOwnProperty(C4)&&$(C4,C1[C4]);B.prototype=G.prototype,C1=g.prototype=new B,C1.constructor=g,r1(C1,G.prototype),C1.isPureReactComponent=!0;var K1=Array.isArray,iw=Symbol.for("react.client.reference"),E0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},k5=Object.prototype.hasOwnProperty,I1=console.createTask?console.createTask:function(){return null};C1={react_stack_bottom_frame:function(O){return O()}};var pw,a5,v2={},_4=C1.react_stack_bottom_frame.bind(C1,F)(),sZ=I1(L(F)),i5=!1,Iw=/\/+/g,n4=typeof reportError==="function"?reportError:function(O){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O==="object"&&O!==null&&typeof O.message==="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(c))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",O);return}console.error(O)},G3=!1,rw=null,u6=0,o4=!1,O4=!1,nw=typeof queueMicrotask==="function"?function(O){queueMicrotask(function(){return queueMicrotask(O)})}:G0;C1=Object.freeze({__proto__:null,c:function(O){return E().useMemoCache(O)}});var C4={map:Z0,forEach:function(O,c,U0){Z0(O,function(){c.apply(this,arguments)},U0)},count:function(O){var c=0;return Z0(O,function(){c++}),c},toArray:function(O){return Z0(O,function(c){return c})||[]},only:function(O){if(!D(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};hV.Activity=N0,hV.Children=C4,hV.Component=G,hV.Fragment=l,hV.Profiler=z0,hV.PureComponent=g,hV.StrictMode=M,hV.Suspense=X0,hV.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E0,hV.__COMPILER_RUNTIME=C1,hV.act=function(O){var c=E0.actQueue,U0=u6;u6++;var F0=E0.actQueue=c!==null?c:[],A0=!1;try{var a0=O()}catch(V0){E0.thrownErrors.push(V0)}if(0<E0.thrownErrors.length)throw k0(c,U0),O=q0(E0.thrownErrors),E0.thrownErrors.length=0,O;if(a0!==null&&typeof a0==="object"&&typeof a0.then==="function"){var u0=a0;return nw(function(){A0||o4||(o4=!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(V0,h0){A0=!0,u0.then(function(w1){if(k0(c,U0),U0===0){try{v0(F0),G0(function(){return e(w1,V0,h0)})}catch(q2){E0.thrownErrors.push(q2)}if(0<E0.thrownErrors.length){var _1=q0(E0.thrownErrors);E0.thrownErrors.length=0,h0(_1)}}else V0(w1)},function(w1){k0(c,U0),0<E0.thrownErrors.length?(w1=q0(E0.thrownErrors),E0.thrownErrors.length=0,h0(w1)):h0(w1)})}}}var s0=a0;if(k0(c,U0),U0===0&&(v0(F0),F0.length!==0&&nw(function(){A0||o4||(o4=!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(() => ...)"))}),E0.actQueue=null),0<E0.thrownErrors.length)throw O=q0(E0.thrownErrors),E0.thrownErrors.length=0,O;return{then:function(V0,h0){A0=!0,U0===0?(E0.actQueue=F0,G0(function(){return e(s0,V0,h0)})):V0(s0)}}},hV.cache=function(O){return function(){return O.apply(null,arguments)}},hV.cacheSignal=function(){return null},hV.captureOwnerStack=function(){var O=E0.getCurrentStack;return O===null?null:O()},hV.cloneElement=function(O,c,U0){if(O===null||O===void 0)throw Error("The argument must be a React element, but you passed "+O+".");var F0=r1({},O.props),A0=O.key,a0=O._owner;if(c!=null){var u0;w:{if(k5.call(c,"ref")&&(u0=Object.getOwnPropertyDescriptor(c,"ref").get)&&u0.isReactWarning){u0=!1;break w}u0=c.ref!==void 0}u0&&(a0=U()),N(c)&&(K(c.key),A0=""+c.key);for(s0 in c)!k5.call(c,s0)||s0==="key"||s0==="__self"||s0==="__source"||s0==="ref"&&c.ref===void 0||(F0[s0]=c[s0])}var s0=arguments.length-2;if(s0===1)F0.children=U0;else if(1<s0){u0=Array(s0);for(var V0=0;V0<s0;V0++)u0[V0]=arguments[V0+2];F0.children=u0}F0=A(O.type,A0,F0,a0,O._debugStack,O._debugTask);for(A0=2;A0<arguments.length;A0++)S(arguments[A0]);return F0},hV.createContext=function(O){return O={$$typeof:r,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:m,_context:O},O._currentRenderer=null,O._currentRenderer2=null,O},hV.createElement=function(O,c,U0){for(var F0=2;F0<arguments.length;F0++)S(arguments[F0]);F0={};var A0=null;if(c!=null)for(V0 in a5||!("__self"in c)||"key"in c||(a5=!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")),N(c)&&(K(c.key),A0=""+c.key),c)k5.call(c,V0)&&V0!=="key"&&V0!=="__self"&&V0!=="__source"&&(F0[V0]=c[V0]);var a0=arguments.length-2;if(a0===1)F0.children=U0;else if(1<a0){for(var u0=Array(a0),s0=0;s0<a0;s0++)u0[s0]=arguments[s0+2];Object.freeze&&Object.freeze(u0),F0.children=u0}if(O&&O.defaultProps)for(V0 in a0=O.defaultProps,a0)F0[V0]===void 0&&(F0[V0]=a0[V0]);A0&&C(F0,typeof O==="function"?O.displayName||O.name||"Unknown":O);var V0=1e4>E0.recentlyCreatedOwnerStacks++;return A(O,A0,F0,U(),V0?Error("react-stack-top-frame"):_4,V0?I1(L(O)):sZ)},hV.createRef=function(){var O={current:null};return Object.seal(O),O},hV.forwardRef=function(O){O!=null&&O.$$typeof===w0?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof O!=="function"?console.error("forwardRef requires a render function but was given %s.",O===null?"null":typeof O):O.length!==0&&O.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",O.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),O!=null&&O.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var c={$$typeof:a,render:O},U0;return Object.defineProperty(c,"displayName",{enumerable:!1,configurable:!0,get:function(){return U0},set:function(F0){U0=F0,O.name||O.displayName||(Object.defineProperty(O,"name",{value:F0}),O.displayName=F0)}}),c},hV.isValidElement=D,hV.lazy=function(O){O={_status:-1,_result:O};var c={$$typeof:W0,_payload:O,_init:s},U0={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return O._ioInfo=U0,c._debugInfo=[{awaited:U0}],c},hV.memo=function(O,c){O==null&&console.error("memo: The first argument must be a component. Instead received: %s",O===null?"null":typeof O),c={$$typeof:w0,type:O,compare:c===void 0?null:c};var U0;return Object.defineProperty(c,"displayName",{enumerable:!1,configurable:!0,get:function(){return U0},set:function(F0){U0=F0,O.name||O.displayName||(Object.defineProperty(O,"name",{value:F0}),O.displayName=F0)}}),c},hV.startTransition=function(O){var c=E0.T,U0={};U0._updatedFibers=new Set,E0.T=U0;try{var F0=O(),A0=E0.S;A0!==null&&A0(U0,F0),typeof F0==="object"&&F0!==null&&typeof F0.then==="function"&&(E0.asyncTransitions++,F0.then(g0,g0),F0.then(Q,n4))}catch(a0){n4(a0)}finally{c===null&&U0._updatedFibers&&(O=U0._updatedFibers.size,U0._updatedFibers.clear(),10<O&&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.")),c!==null&&U0.types!==null&&(c.types!==null&&c.types!==U0.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."),c.types=U0.types),E0.T=c}},hV.unstable_useCacheRefresh=function(){return E().useCacheRefresh()},hV.use=function(O){return E().use(O)},hV.useActionState=function(O,c,U0){return E().useActionState(O,c,U0)},hV.useCallback=function(O,c){return E().useCallback(O,c)},hV.useContext=function(O){var c=E();return O.$$typeof===m&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),c.useContext(O)},hV.useDebugValue=function(O,c){return E().useDebugValue(O,c)},hV.useDeferredValue=function(O,c){return E().useDeferredValue(O,c)},hV.useEffect=function(O,c){return O==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useEffect(O,c)},hV.useEffectEvent=function(O){return E().useEffectEvent(O)},hV.useId=function(){return E().useId()},hV.useImperativeHandle=function(O,c,U0){return E().useImperativeHandle(O,c,U0)},hV.useInsertionEffect=function(O,c){return O==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useInsertionEffect(O,c)},hV.useLayoutEffect=function(O,c){return O==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),E().useLayoutEffect(O,c)},hV.useMemo=function(O,c){return E().useMemo(O,c)},hV.useOptimistic=function(O,c){return E().useOptimistic(O,c)},hV.useReducer=function(O,c,U0){return E().useReducer(O,c,U0)},hV.useRef=function(O){return E().useRef(O)},hV.useState=function(O){return E().useState(O)},hV.useSyncExternalStore=function(O,c,U0){return E().useSyncExternalStore(O,c,U0)},hV.useTransition=function(){return E().useTransition()},hV.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var z5=H9((VV)=>{var A7=P(Q0());(function(){function $(M){if(M==null)return null;if(typeof M==="function")return M.$$typeof===E?null:M.displayName||M.name||null;if(typeof M==="string")return M;switch(M){case I:return"Fragment";case x:return"Profiler";case A:return"StrictMode";case $0:return"Suspense";case p:return"SuspenseList";case s:return"Activity"}if(typeof M==="object")switch(typeof M.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case C:return"Portal";case D:return M.displayName||"Context";case S:return(M._context.displayName||"Context")+".Consumer";case i:var z0=M.render;return M=M.displayName,M||(M=z0.displayName||z0.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case j:return z0=M.displayName||null,z0!==null?z0:$(M.type)||"Memo";case Z0:z0=M._payload,M=M._init;try{return $(M(z0))}catch(m){}}return null}function J(M){return""+M}function Y(M){try{J(M);var z0=!1}catch(a){z0=!0}if(z0){z0=console;var m=z0.error,r=typeof Symbol==="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return m.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),J(M)}}function G(M){if(M===I)return"<>";if(typeof M==="object"&&M!==null&&M.$$typeof===Z0)return"<...>";try{var z0=$(M);return z0?"<"+z0+">":"<...>"}catch(m){return"<...>"}}function B(){var M=g0.A;return M===null?null:M.getOwner()}function g(){return Error("react-stack-top-frame")}function Q(M){if(G0.call(M,"key")){var z0=Object.getOwnPropertyDescriptor(M,"key").get;if(z0&&z0.isReactWarning)return!1}return M.key!==void 0}function b(M,z0){function m(){e||(e=!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)",z0))}m.isReactWarning=!0,Object.defineProperty(M,"key",{get:m,configurable:!0})}function K(){var M=$(this.type);return v0[M]||(v0[M]=!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.")),M=this.props.ref,M!==void 0?M:null}function k(M,z0,m,r,a,X0){var J0=m.ref;return M={$$typeof:N,type:M,key:z0,props:m,_owner:r},(J0!==void 0?J0:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:K}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X0}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function L(M,z0,m,r,a,X0){var J0=z0.children;if(J0!==void 0)if(r)if(q0(J0)){for(r=0;r<J0.length;r++)U(J0[r]);Object.freeze&&Object.freeze(J0)}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 U(J0);if(G0.call(z0,"key")){J0=$(M);var w0=Object.keys(z0).filter(function(N0){return N0!=="key"});r=0<w0.length?"{key: someKey, "+w0.join(": ..., ")+": ...}":"{key: someKey}",l[J0+r]||(w0=0<w0.length?"{"+w0.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} />`,r,J0,w0,J0),l[J0+r]=!0)}if(J0=null,m!==void 0&&(Y(m),J0=""+m),Q(z0)&&(Y(z0.key),J0=""+z0.key),"key"in z0){m={};for(var W0 in z0)W0!=="key"&&(m[W0]=z0[W0])}else m=z0;return J0&&b(m,typeof M==="function"?M.displayName||M.name||"Unknown":M),k(M,J0,m,B(),a,X0)}function U(M){F(M)?M._store&&(M._store.validated=1):typeof M==="object"&&M!==null&&M.$$typeof===Z0&&(M._payload.status==="fulfilled"?F(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function F(M){return typeof M==="object"&&M!==null&&M.$$typeof===N}var N=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),D=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),$0=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Z0=Symbol.for("react.lazy"),s=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),g0=A7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G0=Object.prototype.hasOwnProperty,q0=Array.isArray,k0=console.createTask?console.createTask:function(){return null};A7={react_stack_bottom_frame:function(M){return M()}};var e,v0={},u=A7.react_stack_bottom_frame.bind(A7,g)(),o=k0(G(g)),l={};VV.Fragment=I,VV.jsx=function(M,z0,m){var r=1e4>g0.recentlyCreatedOwnerStacks++;return L(M,z0,m,!1,r?Error("react-stack-top-frame"):u,r?k0(G(M)):o)},VV.jsxs=function(M,z0,m){var r=1e4>g0.recentlyCreatedOwnerStacks++;return L(M,z0,m,!0,r?Error("react-stack-top-frame"):u,r?k0(G(M)):o)}})()});var RT=H9((dV)=>{(function(){function $(){if(i=!1,Z0){var e=dV.unstable_now();g0=e;var v0=!0;try{w:{S=!1,D&&(D=!1,p(s),s=-1),x=!0;var u=A;try{Z:{g(e);for(I=Y(F);I!==null&&!(I.expirationTime>e&&b());){var o=I.callback;if(typeof o==="function"){I.callback=null,A=I.priorityLevel;var l=o(I.expirationTime<=e);if(e=dV.unstable_now(),typeof l==="function"){I.callback=l,g(e),v0=!0;break Z}I===Y(F)&&G(F),g(e)}else G(F);I=Y(F)}if(I!==null)v0=!0;else{var M=Y(N);M!==null&&K(Q,M.startTime-e),v0=!1}}break w}finally{I=null,A=u,x=!1}v0=void 0}}finally{v0?G0():Z0=!1}}}function J(e,v0){var u=e.length;e.push(v0);w:for(;0<u;){var o=u-1>>>1,l=e[o];if(0<B(l,v0))e[o]=v0,e[u]=l,u=o;else break w}}function Y(e){return e.length===0?null:e[0]}function G(e){if(e.length===0)return null;var v0=e[0],u=e.pop();if(u!==v0){e[0]=u;w:for(var o=0,l=e.length,M=l>>>1;o<M;){var z0=2*(o+1)-1,m=e[z0],r=z0+1,a=e[r];if(0>B(m,u))r<l&&0>B(a,m)?(e[o]=a,e[r]=u,o=r):(e[o]=m,e[z0]=u,o=z0);else if(r<l&&0>B(a,u))e[o]=a,e[r]=u,o=r;else break w}}return v0}function B(e,v0){var u=e.sortIndex-v0.sortIndex;return u!==0?u:e.id-v0.id}function g(e){for(var v0=Y(N);v0!==null;){if(v0.callback===null)G(N);else if(v0.startTime<=e)G(N),v0.sortIndex=v0.expirationTime,J(F,v0);else break;v0=Y(N)}}function Q(e){if(D=!1,g(e),!S)if(Y(F)!==null)S=!0,Z0||(Z0=!0,G0());else{var v0=Y(N);v0!==null&&K(Q,v0.startTime-e)}}function b(){return i?!0:dV.unstable_now()-g0<E?!1:!0}function K(e,v0){s=$0(function(){e(dV.unstable_now())},v0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),dV.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;dV.unstable_now=function(){return k.now()}}else{var L=Date,U=L.now();dV.unstable_now=function(){return L.now()-U}}var F=[],N=[],C=1,I=null,A=3,x=!1,S=!1,D=!1,i=!1,$0=typeof setTimeout==="function"?setTimeout:null,p=typeof clearTimeout==="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null,Z0=!1,s=-1,E=5,g0=-1;if(typeof j==="function")var G0=function(){j($)};else if(typeof MessageChannel<"u"){var q0=new MessageChannel,k0=q0.port2;q0.port1.onmessage=$,G0=function(){k0.postMessage(null)}}else G0=function(){$0($,0)};dV.unstable_IdlePriority=5,dV.unstable_ImmediatePriority=1,dV.unstable_LowPriority=4,dV.unstable_NormalPriority=3,dV.unstable_Profiling=null,dV.unstable_UserBlockingPriority=2,dV.unstable_cancelCallback=function(e){e.callback=null},dV.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1000/e):5},dV.unstable_getCurrentPriorityLevel=function(){return A},dV.unstable_next=function(e){switch(A){case 1:case 2:case 3:var v0=3;break;default:v0=A}var u=A;A=v0;try{return e()}finally{A=u}},dV.unstable_requestPaint=function(){i=!0},dV.unstable_runWithPriority=function(e,v0){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var u=A;A=e;try{return v0()}finally{A=u}},dV.unstable_scheduleCallback=function(e,v0,u){var o=dV.unstable_now();switch(typeof u==="object"&&u!==null?(u=u.delay,u=typeof u==="number"&&0<u?o+u:o):u=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5000}return l=u+l,e={id:C++,callback:v0,priorityLevel:e,startTime:u,expirationTime:l,sortIndex:-1},u>o?(e.sortIndex=u,J(N,e),Y(F)===null&&e===Y(N)&&(D?(p(s),s=-1):D=!0,K(Q,u-o))):(e.sortIndex=l,J(F,e),S||x||(S=!0,Z0||(Z0=!0,G0()))),e},dV.unstable_shouldYield=b,dV.unstable_wrapCallback=function(e){var v0=A;return function(){var u=A;A=v0;try{return e.apply(this,arguments)}finally{A=u}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yT=H9((DV)=>{var ab=P(Q0());(function(){function $(){}function J(L){return""+L}function Y(L,U,F){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(N);var C=!1}catch(I){C=!0}return C&&(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&&N[Symbol.toStringTag]||N.constructor.name||"Object"),J(N)),{$$typeof:K,key:N==null?null:""+N,children:L,containerInfo:U,implementation:F}}function G(L,U){if(L==="font")return"";if(typeof U==="string")return U==="use-credentials"?U:""}function B(L){return L===null?"`null`":L===void 0?"`undefined`":L===""?"an empty string":'something with type "'+typeof L+'"'}function g(L){return L===null?"`null`":L===void 0?"`undefined`":L===""?"an empty string":typeof L==="string"?JSON.stringify(L):typeof L==="number"?"`"+L+"`":'something with type "'+typeof L+'"'}function Q(){var L=k.H;return L===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.`),L}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:$,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:$,C:$,L:$,m:$,X:$,S:$,M:$},p:0,findDOMNode:null},K=Symbol.for("react.portal"),k=ab.__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"),DV.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,DV.createPortal=function(L,U){var F=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!U||U.nodeType!==1&&U.nodeType!==9&&U.nodeType!==11)throw Error("Target container is not a DOM element.");return Y(L,U,null,F)},DV.flushSync=function(L){var U=k.T,F=b.p;try{if(k.T=null,b.p=2,L)return L()}finally{k.T=U,b.p=F,b.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.")}},DV.preconnect=function(L,U){typeof L==="string"&&L?U!=null&&typeof U!=="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.",g(U)):U!=null&&typeof U.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.",B(U.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",B(L)),typeof L==="string"&&(U?(U=U.crossOrigin,U=typeof U==="string"?U==="use-credentials"?U:"":void 0):U=null,b.d.C(L,U))},DV.prefetchDNS=function(L){if(typeof L!=="string"||!L)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",B(L));else if(1<arguments.length){var U=arguments[1];typeof U==="object"&&U.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`.",g(U)):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`.",g(U))}typeof L==="string"&&b.d.D(L)},DV.preinit=function(L,U){if(typeof L==="string"&&L?U==null||typeof U!=="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.",g(U)):U.as!=="style"&&U.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".',g(U.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",B(L)),typeof L==="string"&&U&&typeof U.as==="string"){var F=U.as,N=G(F,U.crossOrigin),C=typeof U.integrity==="string"?U.integrity:void 0,I=typeof U.fetchPriority==="string"?U.fetchPriority:void 0;F==="style"?b.d.S(L,typeof U.precedence==="string"?U.precedence:void 0,{crossOrigin:N,integrity:C,fetchPriority:I}):F==="script"&&b.d.X(L,{crossOrigin:N,integrity:C,fetchPriority:I,nonce:typeof U.nonce==="string"?U.nonce:void 0})}},DV.preinitModule=function(L,U){var F="";if(typeof L==="string"&&L||(F+=" The `href` argument encountered was "+B(L)+"."),U!==void 0&&typeof U!=="object"?F+=" The `options` argument encountered was "+B(U)+".":U&&("as"in U)&&U.as!=="script"&&(F+=" The `as` option encountered was "+g(U.as)+"."),F)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",F);else switch(F=U&&typeof U.as==="string"?U.as:"script",F){case"script":break;default:F=g(F),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)',F,L)}if(typeof L==="string")if(typeof U==="object"&&U!==null){if(U.as==null||U.as==="script")F=G(U.as,U.crossOrigin),b.d.M(L,{crossOrigin:F,integrity:typeof U.integrity==="string"?U.integrity:void 0,nonce:typeof U.nonce==="string"?U.nonce:void 0})}else U==null&&b.d.M(L)},DV.preload=function(L,U){var F="";if(typeof L==="string"&&L||(F+=" The `href` argument encountered was "+B(L)+"."),U==null||typeof U!=="object"?F+=" The `options` argument encountered was "+B(U)+".":typeof U.as==="string"&&U.as||(F+=" The `as` option encountered was "+B(U.as)+"."),F&&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',F),typeof L==="string"&&typeof U==="object"&&U!==null&&typeof U.as==="string"){F=U.as;var N=G(F,U.crossOrigin);b.d.L(L,F,{crossOrigin:N,integrity:typeof U.integrity==="string"?U.integrity:void 0,nonce:typeof U.nonce==="string"?U.nonce:void 0,type:typeof U.type==="string"?U.type:void 0,fetchPriority:typeof U.fetchPriority==="string"?U.fetchPriority:void 0,referrerPolicy:typeof U.referrerPolicy==="string"?U.referrerPolicy:void 0,imageSrcSet:typeof U.imageSrcSet==="string"?U.imageSrcSet:void 0,imageSizes:typeof U.imageSizes==="string"?U.imageSizes:void 0,media:typeof U.media==="string"?U.media:void 0})}},DV.preloadModule=function(L,U){var F="";typeof L==="string"&&L||(F+=" The `href` argument encountered was "+B(L)+"."),U!==void 0&&typeof U!=="object"?F+=" The `options` argument encountered was "+B(U)+".":U&&("as"in U)&&typeof U.as!=="string"&&(F+=" The `as` option encountered was "+B(U.as)+"."),F&&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',F),typeof L==="string"&&(U?(F=G(U.as,U.crossOrigin),b.d.m(L,{as:typeof U.as==="string"&&U.as!=="script"?U.as:void 0,crossOrigin:F,integrity:typeof U.integrity==="string"?U.integrity:void 0})):b.d.m(L))},DV.requestFormReset=function(L){b.d.r(L)},DV.unstable_batchedUpdates=function(L,U){return L(U)},DV.useFormState=function(L,U,F){return Q().useFormState(L,U,F)},DV.useFormStatus=function(){return Q().useHostTransitionStatus()},DV.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var b9=H9((vr,ST)=>{var jV=P(yT());ST.exports=jV});var dT=H9((EV)=>{var N1=P(RT()),bZ=P(Q0()),ib=P(b9());(function(){function $(w,Z){for(w=w.memoizedState;w!==null&&0<Z;)w=w.next,Z--;return w}function J(w,Z,X,z){if(X>=Z.length)return z;var v=Z[X],H=p5(w)?w.slice():B1({},w);return H[v]=J(w[v],Z,X+1,z),H}function Y(w,Z,X){if(Z.length!==X.length)console.warn("copyWithRename() expects paths of the same length");else{for(var z=0;z<X.length-1;z++)if(Z[z]!==X[z]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return G(w,Z,X,0)}}function G(w,Z,X,z){var v=Z[z],H=p5(w)?w.slice():B1({},w);return z+1===Z.length?(H[X[z]]=H[v],p5(H)?H.splice(v,1):delete H[v]):H[v]=G(w[v],Z,X,z+1),H}function B(w,Z,X){var z=Z[X],v=p5(w)?w.slice():B1({},w);if(X+1===Z.length)return p5(v)?v.splice(z,1):delete v[z],v;return v[z]=B(w[z],Z,X+1),v}function g(){return!1}function Q(){return null}function b(){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 K(){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 k(){}function L(){}function U(w){var Z=[];return w.forEach(function(X){Z.push(X)}),Z.sort().join(", ")}function F(w,Z,X,z){return new wP(w,Z,X,z)}function N(w,Z){w.context===l8&&(eH(w.current,2,Z,w,null,null),F3())}function C(w,Z){if(Z4!==null){var X=Z.staleFamilies;Z=Z.updatedFamilies,I$(),HU(w.current,Z,X),F3()}}function I(w){Z4=w}function A(w){return!(!w||w.nodeType!==1&&w.nodeType!==9&&w.nodeType!==11)}function x(w){var Z=w,X=w;if(w.alternate)for(;Z.return;)Z=Z.return;else{w=Z;do Z=w,(Z.flags&4098)!==0&&(X=Z.return),w=Z.return;while(w)}return Z.tag===3?X:null}function S(w){if(w.tag===13){var Z=w.memoizedState;if(Z===null&&(w=w.alternate,w!==null&&(Z=w.memoizedState)),Z!==null)return Z.dehydrated}return null}function D(w){if(w.tag===31){var Z=w.memoizedState;if(Z===null&&(w=w.alternate,w!==null&&(Z=w.memoizedState)),Z!==null)return Z.dehydrated}return null}function i(w){if(x(w)!==w)throw Error("Unable to find node on an unmounted component.")}function $0(w){var Z=w.alternate;if(!Z){if(Z=x(w),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==w?null:w}for(var X=w,z=Z;;){var v=X.return;if(v===null)break;var H=v.alternate;if(H===null){if(z=v.return,z!==null){X=z;continue}break}if(v.child===H.child){for(H=v.child;H;){if(H===X)return i(v),w;if(H===z)return i(v),Z;H=H.sibling}throw Error("Unable to find node on an unmounted component.")}if(X.return!==z.return)X=v,z=H;else{for(var W=!1,q=v.child;q;){if(q===X){W=!0,X=v,z=H;break}if(q===z){W=!0,z=v,X=H;break}q=q.sibling}if(!W){for(q=H.child;q;){if(q===X){W=!0,X=H,z=v;break}if(q===z){W=!0,z=H,X=v;break}q=q.sibling}if(!W)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(X.alternate!==z)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(X.tag!==3)throw Error("Unable to find node on an unmounted component.");return X.stateNode.current===X?w:Z}function p(w){var Z=w.tag;if(Z===5||Z===26||Z===27||Z===6)return w;for(w=w.child;w!==null;){if(Z=p(w),Z!==null)return Z;w=w.sibling}return null}function j(w){if(w===null||typeof w!=="object")return null;return w=qk&&w[qk]||w["@@iterator"],typeof w==="function"?w:null}function Z0(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===Nf?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case A3:return"Fragment";case Yg:return"Profiler";case nY:return"StrictMode";case Gg:return"Suspense";case vg:return"SuspenseList";case Bg:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case C3:return"Portal";case W6:return w.displayName||"Context";case zg:return(w._context.displayName||"Context")+".Consumer";case h$:var Z=w.render;return w=w.displayName,w||(w=Z.displayName||Z.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case oY:return Z=w.displayName||null,Z!==null?Z:Z0(w.type)||"Memo";case hw:Z=w._payload,w=w._init;try{return Z0(w(Z))}catch(X){}}return null}function s(w){return typeof w.tag==="number"?E(w):typeof w.name==="string"?w.name:null}function E(w){var Z=w.type;switch(w.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return w=Z.render,w=w.displayName||w.name||"",Z.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z0(Z);case 8:return Z===nY?"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 Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=w._debugInfo,Z!=null){for(var X=Z.length-1;0<=X;X--)if(typeof Z[X].name==="string")return Z[X].name}if(w.return!==null)return E(w.return)}return null}function g0(w){return{current:w}}function G0(w,Z){0>s6?console.error("Unexpected pop."):(Z!==gg[s6]&&console.error("Unexpected Fiber popped."),w.current=Hg[s6],Hg[s6]=null,gg[s6]=null,s6--)}function q0(w,Z,X){s6++,Hg[s6]=w.current,gg[s6]=X,w.current=Z}function k0(w){return w===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),w}function e(w,Z){q0(S8,Z,w),q0(V$,w,w),q0(y8,null,w);var X=Z.nodeType;switch(X){case 9:case 11:X=X===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?EL(Z):g8:g8;break;default:if(X=Z.tagName,Z=Z.namespaceURI)Z=EL(Z),Z=uL(Z,X);else switch(X){case"svg":Z=GZ;break;case"math":Z=rz;break;default:Z=g8}}X=X.toLowerCase(),X=RK(null,X),X={context:Z,ancestorInfo:X},G0(y8,w),q0(y8,X,w)}function v0(w){G0(y8,w),G0(V$,w),G0(S8,w)}function u(){return k0(y8.current)}function o(w){w.memoizedState!==null&&q0(sY,w,w);var Z=k0(y8.current),X=w.type,z=uL(Z.context,X);X=RK(Z.ancestorInfo,X),z={context:z,ancestorInfo:X},Z!==z&&(q0(V$,w,w),q0(y8,z,w))}function l(w){V$.current===w&&(G0(y8,w),G0(V$,w)),sY.current===w&&(G0(sY,w),OX._currentValue=I7)}function M(){}function z0(){if(R$===0){Lk=console.log,kk=console.info,Fk=console.warn,Nk=console.error,Tk=console.group,Ik=console.groupCollapsed,_k=console.groupEnd;var w={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}R$++}function m(){if(R$--,R$===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:B1({},w,{value:Lk}),info:B1({},w,{value:kk}),warn:B1({},w,{value:Fk}),error:B1({},w,{value:Nk}),group:B1({},w,{value:Tk}),groupCollapsed:B1({},w,{value:Ik}),groupEnd:B1({},w,{value:_k})})}0>R$&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function r(w){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,w=w.stack,Error.prepareStackTrace=Z,w.startsWith(`Error: react-stack-top-frame
|
|
23
|
+
`)&&(w=w.slice(29)),Z=w.indexOf(`
|
|
24
|
+
`),Z!==-1&&(w=w.slice(Z+1)),Z=w.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=w.lastIndexOf(`
|
|
25
|
+
`,Z)),Z!==-1)w=w.slice(0,Z);else return"";return w}function a(w){if(bg===void 0)try{throw Error()}catch(X){var Z=X.stack.trim().match(/\n( *(at )?)/);bg=Z&&Z[1]||"",Ok=-1<X.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<X.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+bg+w+Ok}function X0(w,Z){if(!w||Qg)return"";var X=Wg.get(w);if(X!==void 0)return X;Qg=!0,X=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var z=null;z=Y0.H,Y0.H=null,z0();try{var v={DetermineComponentFrameRoot:function(){try{if(Z){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(L0){var n=L0}Reflect.construct(w,[],h)}else{try{h.call()}catch(L0){n=L0}w.call(h.prototype)}}else{try{throw Error()}catch(L0){n=L0}(h=w())&&typeof h.catch==="function"&&h.catch(function(){})}}catch(L0){if(L0&&n&&typeof L0.stack==="string")return[L0.stack,n.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var H=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");H&&H.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=v.DetermineComponentFrameRoot(),q=W[0],T=W[1];if(q&&T){var _=q.split(`
|
|
28
|
+
`),y=T.split(`
|
|
29
|
+
`);for(W=H=0;H<_.length&&!_[H].includes("DetermineComponentFrameRoot");)H++;for(;W<y.length&&!y[W].includes("DetermineComponentFrameRoot");)W++;if(H===_.length||W===y.length)for(H=_.length-1,W=y.length-1;1<=H&&0<=W&&_[H]!==y[W];)W--;for(;1<=H&&0<=W;H--,W--)if(_[H]!==y[W]){if(H!==1||W!==1)do if(H--,W--,0>W||_[H]!==y[W]){var d=`
|
|
30
|
+
`+_[H].replace(" at new "," at ");return w.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",w.displayName)),typeof w==="function"&&Wg.set(w,d),d}while(1<=H&&0<=W);break}}}finally{Qg=!1,Y0.H=z,m(),Error.prepareStackTrace=X}return _=(_=w?w.displayName||w.name:"")?a(_):"",typeof w==="function"&&Wg.set(w,_),_}function J0(w,Z){switch(w.tag){case 26:case 27:case 5:return a(w.type);case 16:return a("Lazy");case 13:return w.child!==Z&&Z!==null?a("Suspense Fallback"):a("Suspense");case 19:return a("SuspenseList");case 0:case 15:return X0(w.type,!1);case 11:return X0(w.type.render,!1);case 1:return X0(w.type,!0);case 31:return a("Activity");default:return""}}function w0(w){try{var Z="",X=null;do{Z+=J0(w,X);var z=w._debugInfo;if(z)for(var v=z.length-1;0<=v;v--){var H=z[v];if(typeof H.name==="string"){var W=Z;w:{var{name:q,env:T,debugLocation:_}=H;if(_!=null){var y=r(_),d=y.lastIndexOf(`
|
|
31
|
+
`),h=d===-1?y:y.slice(d+1);if(h.indexOf(q)!==-1){var n=`
|
|
32
|
+
`+h;break w}}n=a(q+(T?" ["+T+"]":""))}Z=W+n}}X=w,w=w.return}while(w);return Z}catch(L0){return`
|
|
33
|
+
Error generating stack: `+L0.message+`
|
|
34
|
+
`+L0.stack}}function W0(w){return(w=w?w.displayName||w.name:"")?a(w):""}function N0(){if(Vw===null)return null;var w=Vw._debugOwner;return w!=null?s(w):null}function r0(){if(Vw===null)return"";var w=Vw;try{var Z="";switch(w.tag===6&&(w=w.return),w.tag){case 26:case 27:case 5:Z+=a(w.type);break;case 13:Z+=a("Suspense");break;case 19:Z+=a("SuspenseList");break;case 31:Z+=a("Activity");break;case 30:case 0:case 15:case 1:w._debugOwner||Z!==""||(Z+=W0(w.type));break;case 11:w._debugOwner||Z!==""||(Z+=W0(w.type.render))}for(;w;)if(typeof w.tag==="number"){var X=w;w=X._debugOwner;var z=X._debugStack;if(w&&z){var v=r(z);v!==""&&(Z+=`
|
|
35
|
+
`+v)}}else if(w.debugStack!=null){var H=w.debugStack;(w=w.owner)&&H&&(Z+=`
|
|
36
|
+
`+r(H))}else break;var W=Z}catch(q){W=`
|
|
37
|
+
Error generating stack: `+q.message+`
|
|
38
|
+
`+q.stack}return W}function b0(w,Z,X,z,v,H,W){var q=Vw;L5(w);try{return w!==null&&w._debugTask?w._debugTask.run(Z.bind(null,X,z,v,H,W)):Z(X,z,v,H,W)}finally{L5(q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function L5(w){Y0.getCurrentStack=w===null?null:r0,K6=!1,Vw=w}function r1(w){return typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"}function T1(w){try{return C1(w),!1}catch(Z){return!0}}function C1(w){return""+w}function K1(w,Z){if(T1(w))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,r1(w)),C1(w)}function iw(w,Z){if(T1(w))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.",Z,r1(w)),C1(w)}function E0(w){if(T1(w))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.",r1(w)),C1(w)}function k5(w){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.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{x3=Z.inject(w),m2=Z}catch(X){console.error("React instrumentation encountered an error: %o.",X)}return Z.checkDCE?!0:!1}function I1(w){if(typeof Mf==="function"&&xf(w),m2&&typeof m2.setStrictMode==="function")try{m2.setStrictMode(x3,w)}catch(Z){U6||(U6=!0,console.error("React instrumentation encountered an error: %o",Z))}}function pw(w){return w>>>=0,w===0?32:31-(mf(w)/Pf|0)|0}function a5(w){var Z=w&42;if(Z!==0)return Z;switch(w&-w){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 w&261888;case 262144:case 524288:case 1048576:case 2097152:return w&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return w&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."),w}}function v2(w,Z,X){var z=w.pendingLanes;if(z===0)return 0;var v=0,H=w.suspendedLanes,W=w.pingedLanes;w=w.warmLanes;var q=z&134217727;return q!==0?(z=q&~H,z!==0?v=a5(z):(W&=q,W!==0?v=a5(W):X||(X=q&~w,X!==0&&(v=a5(X))))):(q=z&~H,q!==0?v=a5(q):W!==0?v=a5(W):X||(X=z&~w,X!==0&&(v=a5(X)))),v===0?0:Z!==0&&Z!==v&&(Z&H)===0&&(H=v&-v,X=Z&-Z,H>=X||H===32&&(X&4194048)!==0)?Z:v}function _4(w,Z){return(w.pendingLanes&~(w.suspendedLanes&~w.pingedLanes)&Z)===0}function sZ(w,Z){switch(w){case 1:case 2:case 4:case 8:case 64:return Z+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 Z+5000;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 i5(){var w=wz;return wz<<=1,(wz&62914560)===0&&(wz=4194304),w}function Iw(w){for(var Z=[],X=0;31>X;X++)Z.push(w);return Z}function n4(w,Z){w.pendingLanes|=Z,Z!==268435456&&(w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0)}function G3(w,Z,X,z,v,H){var W=w.pendingLanes;w.pendingLanes=X,w.suspendedLanes=0,w.pingedLanes=0,w.warmLanes=0,w.expiredLanes&=X,w.entangledLanes&=X,w.errorRecoveryDisabledLanes&=X,w.shellSuspendCounter=0;var{entanglements:q,expirationTimes:T,hiddenUpdates:_}=w;for(X=W&~X;0<X;){var y=31-j2(X),d=1<<y;q[y]=0,T[y]=-1;var h=_[y];if(h!==null)for(_[y]=null,y=0;y<h.length;y++){var n=h[y];n!==null&&(n.lane&=-536870913)}X&=~d}z!==0&&rw(w,z,0),H!==0&&v===0&&w.tag!==0&&(w.suspendedLanes|=H&~(W&~Z))}function rw(w,Z,X){w.pendingLanes|=Z,w.suspendedLanes&=~Z;var z=31-j2(Z);w.entangledLanes|=Z,w.entanglements[z]=w.entanglements[z]|1073741824|X&261930}function u6(w,Z){var X=w.entangledLanes|=Z;for(w=w.entanglements;X;){var z=31-j2(X),v=1<<z;v&Z|w[z]&Z&&(w[z]|=Z),X&=~v}}function o4(w,Z){var X=Z&-Z;return X=(X&42)!==0?1:O4(X),(X&(w.suspendedLanes|Z))!==0?0:X}function O4(w){switch(w){case 2:w=1;break;case 8:w=4;break;case 32:w=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:w=128;break;case 268435456:w=134217728;break;default:w=0}return w}function nw(w,Z,X){if(q6)for(w=w.pendingUpdatersLaneMap;0<X;){var z=31-j2(X),v=1<<z;w[z].add(Z),X&=~v}}function C4(w,Z){if(q6)for(var{pendingUpdatersLaneMap:X,memoizedUpdaters:z}=w;0<Z;){var v=31-j2(Z);w=1<<v,v=X[v],0<v.size&&(v.forEach(function(H){var W=H.alternate;W!==null&&z.has(W)||z.add(H)}),v.clear()),Z&=~w}}function O(w){return w&=-w,Rw!==0&&Rw<w?P4!==0&&P4<w?(w&134217727)!==0?L6:Zz:P4:Rw}function c(){var w=m1.p;if(w!==0)return w;return w=window.event,w===void 0?L6:Hk(w.type)}function U0(w,Z){var X=m1.p;try{return m1.p=w,Z()}finally{m1.p=X}}function F0(w){delete w[N2],delete w[E2],delete w[kg],delete w[ff],delete w[hf]}function A0(w){var Z=w[N2];if(Z)return Z;for(var X=w.parentNode;X;){if(Z=X[D8]||X[N2]){if(X=Z.alternate,Z.child!==null||X!==null&&X.child!==null)for(w=oL(w);w!==null;){if(X=w[N2])return X;w=oL(w)}return Z}w=X,X=w.parentNode}return null}function a0(w){if(w=w[N2]||w[D8]){var Z=w.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return w}return null}function u0(w){var Z=w.tag;if(Z===5||Z===26||Z===27||Z===6)return w.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function s0(w){var Z=w[Ck];return Z||(Z=w[Ck]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function V0(w){w[y$]=!0}function h0(w,Z){w1(w,Z),w1(w+"Capture",Z)}function w1(w,Z){Z7[w]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",w),Z7[w]=Z;var X=w.toLowerCase();Fg[X]=w,w==="onDoubleClick"&&(Fg.ondblclick=w);for(w=0;w<Z.length;w++)Ak.add(Z[w])}function _1(w,Z){Vf[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||(w==="select"?console.error("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`."):console.error("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`.")),Z.onChange||Z.readOnly||Z.disabled||Z.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 q2(w){if(m4.call(xk,w))return!0;if(m4.call(Mk,w))return!1;if(Rf.test(w))return xk[w]=!0;return Mk[w]=!0,console.error("Invalid attribute name: `%s`",w),!1}function Zw(w,Z,X){if(q2(Z)){if(!w.hasAttribute(Z)){switch(typeof X){case"symbol":case"object":return X;case"function":return X;case"boolean":if(X===!1)return X}return X===void 0?void 0:null}if(w=w.getAttribute(Z),w===""&&X===!0)return!0;return K1(X,Z),w===""+X?X:w}}function _w(w,Z,X){if(q2(Z))if(X===null)w.removeAttribute(Z);else{switch(typeof X){case"undefined":case"function":case"symbol":w.removeAttribute(Z);return;case"boolean":var z=Z.toLowerCase().slice(0,5);if(z!=="data-"&&z!=="aria-"){w.removeAttribute(Z);return}}K1(X,Z),w.setAttribute(Z,""+X)}}function ow(w,Z,X){if(X===null)w.removeAttribute(Z);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(Z);return}K1(X,Z),w.setAttribute(Z,""+X)}}function x5(w,Z,X,z){if(z===null)w.removeAttribute(X);else{switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":w.removeAttribute(X);return}K1(z,X),w.setAttributeNS(Z,X,""+z)}}function m5(w){switch(typeof w){case"bigint":case"boolean":case"number":case"string":case"undefined":return w;case"object":return E0(w),w;default:return""}}function NK(w){var Z=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function Pm(w,Z,X){var z=Object.getOwnPropertyDescriptor(w.constructor.prototype,Z);if(!w.hasOwnProperty(Z)&&typeof z<"u"&&typeof z.get==="function"&&typeof z.set==="function"){var{get:v,set:H}=z;return Object.defineProperty(w,Z,{configurable:!0,get:function(){return v.call(this)},set:function(W){E0(W),X=""+W,H.call(this,W)}}),Object.defineProperty(w,Z,{enumerable:z.enumerable}),{getValue:function(){return X},setValue:function(W){E0(W),X=""+W},stopTracking:function(){w._valueTracker=null,delete w[Z]}}}}function wB(w){if(!w._valueTracker){var Z=NK(w)?"checked":"value";w._valueTracker=Pm(w,Z,""+w[Z])}}function TK(w){if(!w)return!1;var Z=w._valueTracker;if(!Z)return!0;var X=Z.getValue(),z="";return w&&(z=NK(w)?w.checked?"true":"false":w.value),w=z,w!==X?(Z.setValue(w),!0):!1}function lJ(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch(Z){return w.body}}function sw(w){return w.replace(yf,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function IK(w,Z){Z.checked===void 0||Z.defaultChecked===void 0||Pk||(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",N0()||"A component",Z.type),Pk=!0),Z.value===void 0||Z.defaultValue===void 0||mk||(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",N0()||"A component",Z.type),mk=!0)}function ZB(w,Z,X,z,v,H,W,q){if(w.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(K1(W,"type"),w.type=W):w.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&w.value===""||w.value!=Z)w.value=""+m5(Z)}else w.value!==""+m5(Z)&&(w.value=""+m5(Z));else W!=="submit"&&W!=="reset"||w.removeAttribute("value");Z!=null?$B(w,W,m5(Z)):X!=null?$B(w,W,m5(X)):z!=null&&w.removeAttribute("value"),v==null&&H!=null&&(w.defaultChecked=!!H),v!=null&&(w.checked=v&&typeof v!=="function"&&typeof v!=="symbol"),q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"?(K1(q,"name"),w.name=""+m5(q)):w.removeAttribute("name")}function _K(w,Z,X,z,v,H,W,q){if(H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(K1(H,"type"),w.type=H),Z!=null||X!=null){if(!(H!=="submit"&&H!=="reset"||Z!==void 0&&Z!==null)){wB(w);return}X=X!=null?""+m5(X):"",Z=Z!=null?""+m5(Z):X,q||Z===w.value||(w.value=Z),w.defaultValue=Z}z=z!=null?z:v,z=typeof z!=="function"&&typeof z!=="symbol"&&!!z,w.checked=q?w.checked:!!z,w.defaultChecked=!!z,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(K1(W,"name"),w.name=W),wB(w)}function $B(w,Z,X){Z==="number"&&lJ(w.ownerDocument)===w||w.defaultValue===""+X||(w.defaultValue=""+X)}function OK(w,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?bZ.Children.forEach(Z.children,function(X){X==null||typeof X==="string"||typeof X==="number"||typeof X==="bigint"||hk||(hk=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||Vk||(Vk=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||fk||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),fk=!0)}function CK(){var w=N0();return w?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+w+"`.":""}function v3(w,Z,X,z){if(w=w.options,Z){Z={};for(var v=0;v<X.length;v++)Z["$"+X[v]]=!0;for(X=0;X<w.length;X++)v=Z.hasOwnProperty("$"+w[X].value),w[X].selected!==v&&(w[X].selected=v),v&&z&&(w[X].defaultSelected=!0)}else{X=""+m5(X),Z=null;for(v=0;v<w.length;v++){if(w[v].value===X){w[v].selected=!0,z&&(w[v].defaultSelected=!0);return}Z!==null||w[v].disabled||(Z=w[v])}Z!==null&&(Z.selected=!0)}}function AK(w,Z){for(w=0;w<yk.length;w++){var X=yk[w];if(Z[X]!=null){var z=p5(Z[X]);Z.multiple&&!z?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",X,CK()):!Z.multiple&&z&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",X,CK())}}Z.value===void 0||Z.defaultValue===void 0||Rk||(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"),Rk=!0)}function MK(w,Z){Z.value===void 0||Z.defaultValue===void 0||Sk||(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",N0()||"A component"),Sk=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function xK(w,Z,X){if(Z!=null&&(Z=""+m5(Z),Z!==w.value&&(w.value=Z),X==null)){w.defaultValue!==Z&&(w.defaultValue=Z);return}w.defaultValue=X!=null?""+m5(X):""}function mK(w,Z,X,z){if(Z==null){if(z!=null){if(X!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(p5(z)){if(1<z.length)throw Error("<textarea> can only have at most one child.");z=z[0]}X=z}X==null&&(X=""),Z=X}X=m5(Z),w.defaultValue=X,z=w.textContent,z===X&&z!==""&&z!==null&&(w.value=z),wB(w)}function PK(w,Z){return w.serverProps===void 0&&w.serverTail.length===0&&w.children.length===1&&3<w.distanceFromLeaf&&w.distanceFromLeaf>15-Z?PK(w.children[0],Z):w}function Ow(w){return" "+" ".repeat(w)}function B3(w){return"+ "+" ".repeat(w)}function j9(w){return"- "+" ".repeat(w)}function fK(w){switch(w.tag){case 26:case 27:case 5:return w.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return w=w.type,w.displayName||w.name||null;case 11:return w=w.type.render,w.displayName||w.name||null;case 1:return w=w.type,w.displayName||w.name||null;default:return null}}function tZ(w,Z){return dk.test(w)?(w=JSON.stringify(w),w.length>Z-2?8>Z?'{"..."}':"{"+w.slice(0,Z-7)+'..."}':"{"+w+"}"):w.length>Z?5>Z?'{"..."}':w.slice(0,Z-3)+"...":w}function cJ(w,Z,X){var z=120-2*X;if(Z===null)return B3(X)+tZ(w,z)+`
|
|
41
|
+
`;if(typeof Z==="string"){for(var v=0;v<Z.length&&v<w.length&&Z.charCodeAt(v)===w.charCodeAt(v);v++);return v>z-8&&10<v&&(w="..."+w.slice(v-8),Z="..."+Z.slice(v-8)),B3(X)+tZ(w,z)+`
|
|
42
|
+
`+j9(X)+tZ(Z,z)+`
|
|
43
|
+
`}return Ow(X)+tZ(w,z)+`
|
|
44
|
+
`}function XB(w){return Object.prototype.toString.call(w).replace(/^\[object (.*)\]$/,function(Z,X){return X})}function eZ(w,Z){switch(typeof w){case"string":return w=JSON.stringify(w),w.length>Z?5>Z?'"..."':w.slice(0,Z-4)+'..."':w;case"object":if(w===null)return"null";if(p5(w))return"[...]";if(w.$$typeof===Q6)return(Z=Z0(w.type))?"<"+Z+">":"<...>";var X=XB(w);if(X==="Object"){X="",Z-=2;for(var z in w)if(w.hasOwnProperty(z)){var v=JSON.stringify(z);if(v!=='"'+z+'"'&&(z=v),Z-=z.length-2,v=eZ(w[z],15>Z?Z:15),Z-=v.length,0>Z){X+=X===""?"...":", ...";break}X+=(X===""?"":",")+z+":"+v}return"{"+X+"}"}return X;case"function":return(Z=w.displayName||w.name)?"function "+Z:"function";default:return String(w)}}function H3(w,Z){return typeof w!=="string"||dk.test(w)?"{"+eZ(w,Z-2)+"}":w.length>Z-2?5>Z?'"..."':'"'+w.slice(0,Z-5)+'..."':'"'+w+'"'}function JB(w,Z,X){var z=120-X.length-w.length,v=[],H;for(H in Z)if(Z.hasOwnProperty(H)&&H!=="children"){var W=H3(Z[H],120-X.length-H.length-1);z-=H.length+W.length+2,v.push(H+"="+W)}return v.length===0?X+"<"+w+`>
|
|
45
|
+
`:0<z?X+"<"+w+" "+v.join(" ")+`>
|
|
46
|
+
`:X+"<"+w+`
|
|
47
|
+
`+X+" "+v.join(`
|
|
48
|
+
`+X+" ")+`
|
|
49
|
+
`+X+`>
|
|
50
|
+
`}function fm(w,Z,X){var z="",v=B1({},Z),H;for(H in w)if(w.hasOwnProperty(H)){delete v[H];var W=120-2*X-H.length-2,q=eZ(w[H],W);Z.hasOwnProperty(H)?(W=eZ(Z[H],W),z+=B3(X)+H+": "+q+`
|
|
51
|
+
`,z+=j9(X)+H+": "+W+`
|
|
52
|
+
`):z+=B3(X)+H+": "+q+`
|
|
53
|
+
`}for(var T in v)v.hasOwnProperty(T)&&(w=eZ(v[T],120-2*X-T.length-2),z+=j9(X)+T+": "+w+`
|
|
54
|
+
`);return z}function hm(w,Z,X,z){var v="",H=new Map;for(_ in X)X.hasOwnProperty(_)&&H.set(_.toLowerCase(),_);if(H.size===1&&H.has("children"))v+=JB(w,Z,Ow(z));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var q=120-2*(z+1)-W.length-1,T=H.get(W.toLowerCase());if(T!==void 0){H.delete(W.toLowerCase());var _=Z[W];T=X[T];var y=H3(_,q);q=H3(T,q),typeof _==="object"&&_!==null&&typeof T==="object"&&T!==null&&XB(_)==="Object"&&XB(T)==="Object"&&(2<Object.keys(_).length||2<Object.keys(T).length||-1<y.indexOf("...")||-1<q.indexOf("..."))?v+=Ow(z+1)+W+`={{
|
|
55
|
+
`+fm(_,T,z+2)+Ow(z+1)+`}}
|
|
56
|
+
`:(v+=B3(z+1)+W+"="+y+`
|
|
57
|
+
`,v+=j9(z+1)+W+"="+q+`
|
|
58
|
+
`)}else v+=Ow(z+1)+W+"="+H3(Z[W],q)+`
|
|
59
|
+
`}H.forEach(function(d){if(d!=="children"){var h=120-2*(z+1)-d.length-1;v+=j9(z+1)+d+"="+H3(X[d],h)+`
|
|
60
|
+
`}}),v=v===""?Ow(z)+"<"+w+`>
|
|
61
|
+
`:Ow(z)+"<"+w+`
|
|
62
|
+
`+v+Ow(z)+`>
|
|
63
|
+
`}if(w=X.children,Z=Z.children,typeof w==="string"||typeof w==="number"||typeof w==="bigint"){if(H="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")H=""+Z;v+=cJ(H,""+w,z+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")v=w==null?v+cJ(""+Z,null,z+1):v+cJ(""+Z,void 0,z+1);return v}function hK(w,Z){var X=fK(w);if(X===null){X="";for(w=w.child;w;)X+=hK(w,Z),w=w.sibling;return X}return Ow(Z)+"<"+X+`>
|
|
64
|
+
`}function YB(w,Z){var X=PK(w,Z);if(X!==w&&(w.children.length!==1||w.children[0]!==X))return Ow(Z)+`...
|
|
65
|
+
`+YB(X,Z+1);X="";var z=w.fiber._debugInfo;if(z)for(var v=0;v<z.length;v++){var H=z[v].name;typeof H==="string"&&(X+=Ow(Z)+"<"+H+`>
|
|
66
|
+
`,Z++)}if(z="",v=w.fiber.pendingProps,w.fiber.tag===6)z=cJ(v,w.serverProps,Z),Z++;else if(H=fK(w.fiber),H!==null)if(w.serverProps===void 0){z=Z;var W=120-2*z-H.length-2,q="";for(_ in v)if(v.hasOwnProperty(_)&&_!=="children"){var T=H3(v[_],15);if(W-=_.length+T.length+2,0>W){q+=" ...";break}q+=" "+_+"="+T}z=Ow(z)+"<"+H+q+`>
|
|
67
|
+
`,Z++}else w.serverProps===null?(z=JB(H,v,B3(Z)),Z++):typeof w.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(z=hm(H,v,w.serverProps,Z),Z++);var _="";v=w.fiber.child;for(H=0;v&&H<w.children.length;)W=w.children[H],W.fiber===v?(_+=YB(W,Z),H++):_+=hK(v,Z),v=v.sibling;v&&0<w.children.length&&(_+=Ow(Z)+`...
|
|
68
|
+
`),v=w.serverTail,w.serverProps===null&&Z--;for(w=0;w<v.length;w++)H=v[w],_=typeof H==="string"?_+(j9(Z)+tZ(H,120-2*Z)+`
|
|
69
|
+
`):_+JB(H.type,H.props,j9(Z));return X+z+_}function zB(w){try{return`
|
|
70
|
+
|
|
71
|
+
`+YB(w,0)}catch(Z){return""}}function VK(w,Z,X){for(var z=Z,v=null,H=0;z;)z===w&&(H=0),v={fiber:z,children:v!==null?[v]:[],serverProps:z===Z?X:z===w?null:void 0,serverTail:[],distanceFromLeaf:H},H++,z=z.return;return v!==null?zB(v).replaceAll(/^[+-]/gm,">"):""}function RK(w,Z){var X=B1({},w||jk),z={tag:Z};if(Dk.indexOf(Z)!==-1&&(X.aTagInScope=null,X.buttonTagInScope=null,X.nobrTagInScope=null),df.indexOf(Z)!==-1&&(X.pTagInButtonScope=null),Sf.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(X.listItemTagAutoclosing=null,X.dlItemTagAutoclosing=null),X.current=z,Z==="form"&&(X.formTag=z),Z==="a"&&(X.aTagInScope=z),Z==="button"&&(X.buttonTagInScope=z),Z==="nobr"&&(X.nobrTagInScope=z),Z==="p"&&(X.pTagInButtonScope=z),Z==="li"&&(X.listItemTagAutoclosing=z),Z==="dd"||Z==="dt")X.dlItemTagAutoclosing=z;return Z==="#document"||Z==="html"?X.containerTagInScope=null:X.containerTagInScope||(X.containerTagInScope=z),w!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?X.implicitRootScope===!0&&(X.implicitRootScope=!1):X.implicitRootScope=!0,X}function yK(w,Z,X){switch(Z){case"select":return w==="hr"||w==="option"||w==="optgroup"||w==="script"||w==="template"||w==="#text";case"optgroup":return w==="option"||w==="#text";case"option":return w==="#text";case"tr":return w==="th"||w==="td"||w==="style"||w==="script"||w==="template";case"tbody":case"thead":case"tfoot":return w==="tr"||w==="style"||w==="script"||w==="template";case"colgroup":return w==="col"||w==="template";case"table":return w==="caption"||w==="colgroup"||w==="tbody"||w==="tfoot"||w==="thead"||w==="style"||w==="script"||w==="template";case"head":return w==="base"||w==="basefont"||w==="bgsound"||w==="link"||w==="meta"||w==="title"||w==="noscript"||w==="noframes"||w==="style"||w==="script"||w==="template";case"html":if(X)break;return w==="head"||w==="body"||w==="frameset";case"frameset":return w==="frame";case"#document":if(!X)return w==="html"}switch(w){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z!=="h1"&&Z!=="h2"&&Z!=="h3"&&Z!=="h4"&&Z!=="h5"&&Z!=="h6";case"rp":case"rt":return Df.indexOf(Z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return Z==null;case"head":return X||Z===null;case"html":return X&&Z==="#document"||Z===null;case"body":return X&&(Z==="#document"||Z==="html")||Z===null}return!0}function Vm(w,Z){switch(w){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 Z.pTagInButtonScope;case"form":return Z.formTag||Z.pTagInButtonScope;case"li":return Z.listItemTagAutoclosing;case"dd":case"dt":return Z.dlItemTagAutoclosing;case"button":return Z.buttonTagInScope;case"a":return Z.aTagInScope;case"nobr":return Z.nobrTagInScope}return null}function SK(w,Z){for(;w;){switch(w.tag){case 5:case 26:case 27:if(w.type===Z)return w}w=w.return}return null}function GB(w,Z){Z=Z||jk;var X=Z.current;if(Z=(X=yK(w,X&&X.tag,Z.implicitRootScope)?null:X)?null:Vm(w,Z),Z=X||Z,!Z)return!0;var z=Z.tag;if(Z=String(!!X)+"|"+w+"|"+z,$z[Z])return!1;$z[Z]=!0;var v=(Z=Vw)?SK(Z.return,z):null,H=Z!==null&&v!==null?VK(v,Z,null):"",W="<"+w+">";return X?(X="",z==="table"&&w==="tr"&&(X+=" 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`,W,z,X,H)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
73
|
+
This will cause a hydration error.%s`,W,z,H),Z&&(w=Z.return,v===null||w===null||v===w&&w._debugOwner===Z._debugOwner||b0(v,function(){console.error(`<%s> cannot contain a nested %s.
|
|
74
|
+
See this log for the ancestor stack trace.`,z,W)})),!1}function aJ(w,Z,X){if(X||yK("#text",Z,!1))return!0;if(X="#text|"+Z,$z[X])return!1;$z[X]=!0;var z=(X=Vw)?SK(X,Z):null;return X=X!==null&&z!==null?VK(z,X,X.tag!==6?{children:null}:null):"",/\S/.test(w)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
75
|
+
This will cause a hydration error.%s`,Z,X):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`,Z,X),!1}function w$(w,Z){if(Z){var X=w.firstChild;if(X&&X===w.lastChild&&X.nodeType===3){X.nodeValue=Z;return}}w.textContent=Z}function Rm(w){return w.replace(uf,function(Z,X){return X.toUpperCase()})}function dK(w,Z,X){var z=Z.indexOf("--")===0;z||(-1<Z.indexOf("-")?m3.hasOwnProperty(Z)&&m3[Z]||(m3[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,Rm(Z.replace(Ef,"ms-")))):jf.test(Z)?m3.hasOwnProperty(Z)&&m3[Z]||(m3[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!lk.test(X)||Tg.hasOwnProperty(X)&&Tg[X]||(Tg[X]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,X.replace(lk,""))),typeof X==="number"&&(isNaN(X)?ck||(ck=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(X)||ak||(ak=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),X==null||typeof X==="boolean"||X===""?z?w.setProperty(Z,""):Z==="float"?w.cssFloat="":w[Z]="":z?w.setProperty(Z,X):typeof X!=="number"||X===0||ik.has(Z)?Z==="float"?w.cssFloat=X:(iw(X,Z),w[Z]=(""+X).trim()):w[Z]=X+"px"}function DK(w,Z,X){if(Z!=null&&typeof Z!=="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(Z&&Object.freeze(Z),w=w.style,X!=null){if(Z){var z={};if(X){for(var v in X)if(X.hasOwnProperty(v)&&!Z.hasOwnProperty(v))for(var H=Ng[v]||[v],W=0;W<H.length;W++)z[H[W]]=v}for(var q in Z)if(Z.hasOwnProperty(q)&&(!X||X[q]!==Z[q]))for(v=Ng[q]||[q],H=0;H<v.length;H++)z[v[H]]=q;q={};for(var T in Z)for(v=Ng[T]||[T],H=0;H<v.length;H++)q[v[H]]=T;T={};for(var _ in z)if(v=z[_],(H=q[_])&&v!==H&&(W=v+","+H,!T[W])){T[W]=!0,W=console;var y=Z[v];W.error.call(W,"%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.",y==null||typeof y==="boolean"||y===""?"Removing":"Updating",v,H)}}for(var d in X)!X.hasOwnProperty(d)||Z!=null&&Z.hasOwnProperty(d)||(d.indexOf("--")===0?w.setProperty(d,""):d==="float"?w.cssFloat="":w[d]="");for(var h in Z)_=Z[h],Z.hasOwnProperty(h)&&X[h]!==_&&dK(w,h,_)}else for(z in Z)Z.hasOwnProperty(z)&&dK(w,z,Z[z])}function Z$(w){if(w.indexOf("-")===-1)return!1;switch(w){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 jK(w){return lf.get(w)||w}function ym(w,Z){if(m4.call(f3,Z)&&f3[Z])return!0;if(af.test(Z)){if(w="aria-"+Z.slice(4).toLowerCase(),w=pk.hasOwnProperty(w)?w:null,w==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),f3[Z]=!0;if(Z!==w)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,w),f3[Z]=!0}if(cf.test(Z)){if(w=Z.toLowerCase(),w=pk.hasOwnProperty(w)?w:null,w==null)return f3[Z]=!0,!1;Z!==w&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,w),f3[Z]=!0)}return!0}function Sm(w,Z){var X=[],z;for(z in Z)ym(w,z)||X.push(z);Z=X.map(function(v){return"`"+v+"`"}).join(", "),X.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,w):1<X.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,w)}function dm(w,Z,X,z){if(m4.call(u2,Z)&&u2[Z])return!0;var v=Z.toLowerCase();if(v==="onfocusin"||v==="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."),u2[Z]=!0;if(typeof X==="function"&&(w==="form"&&Z==="action"||w==="input"&&Z==="formAction"||w==="button"&&Z==="formAction"))return!0;if(z!=null){if(w=z.possibleRegistrationNames,z.registrationNameDependencies.hasOwnProperty(Z))return!0;if(z=w.hasOwnProperty(v)?w[v]:null,z!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,z),u2[Z]=!0;if(nk.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),u2[Z]=!0}else if(nk.test(Z))return pf.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),u2[Z]=!0;if(rf.test(Z)||nf.test(Z))return!0;if(v==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),u2[Z]=!0;if(v==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),u2[Z]=!0;if(v==="is"&&X!==null&&X!==void 0&&typeof X!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof X),u2[Z]=!0;if(typeof X==="number"&&isNaN(X))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),u2[Z]=!0;if(Jz.hasOwnProperty(v)){if(v=Jz[v],v!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,v),u2[Z]=!0}else if(Z!==v)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.",Z,v),u2[Z]=!0;switch(Z){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 X){case"boolean":switch(Z){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:if(v=Z.toLowerCase().slice(0,5),v==="data-"||v==="aria-")return!0;return X?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()}.',X,Z,Z,X,Z):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.',X,Z,Z,X,Z,Z,Z),u2[Z]=!0}case"function":case"symbol":return u2[Z]=!0,!1;case"string":if(X==="false"||X==="true"){switch(Z){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}?",X,Z,X==="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".',Z,X),u2[Z]=!0}}return!0}function Dm(w,Z,X){var z=[],v;for(v in Z)dm(w,v,Z[v],X)||z.push(v);Z=z.map(function(H){return"`"+H+"`"}).join(", "),z.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 ",Z,w):1<z.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 ",Z,w)}function $$(w){return of.test(""+w)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":w}function l6(){}function vB(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}function EK(w){var Z=a0(w);if(Z&&(w=Z.stateNode)){var X=w[E2]||null;w:switch(w=Z.stateNode,Z.type){case"input":if(ZB(w,X.value,X.defaultValue,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name),Z=X.name,X.type==="radio"&&Z!=null){for(X=w;X.parentNode;)X=X.parentNode;K1(Z,"name"),X=X.querySelectorAll('input[name="'+sw(""+Z)+'"][type="radio"]');for(Z=0;Z<X.length;Z++){var z=X[Z];if(z!==w&&z.form===w.form){var v=z[E2]||null;if(!v)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ZB(z,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(Z=0;Z<X.length;Z++)z=X[Z],z.form===w.form&&TK(z)}break w;case"textarea":xK(w,X.value,X.defaultValue);break w;case"select":Z=X.value,Z!=null&&v3(w,!!X.multiple,Z,!1)}}}function uK(w,Z,X){if(Ig)return w(Z,X);Ig=!0;try{var z=w(Z);return z}finally{if(Ig=!1,h3!==null||V3!==null){if(F3(),h3&&(Z=h3,w=V3,V3=h3=null,EK(Z),w))for(Z=0;Z<w.length;Z++)EK(w[Z])}}}function X$(w,Z){var X=w.stateNode;if(X===null)return null;var z=X[E2]||null;if(z===null)return null;X=z[Z];w:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(z=!z.disabled)||(w=w.type,z=!(w==="button"||w==="input"||w==="select"||w==="textarea")),w=!z;break w;default:w=!1}if(w)return null;if(X&&typeof X!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof X+"` type.");return X}function lK(){if(Yz)return Yz;var w,Z=Og,X=Z.length,z,v="value"in j8?j8.value:j8.textContent,H=v.length;for(w=0;w<X&&Z[w]===v[w];w++);var W=X-w;for(z=1;z<=W&&Z[X-z]===v[H-z];z++);return Yz=v.slice(w,1<z?1-z:void 0)}function iJ(w){var Z=w.keyCode;return"charCode"in w?(w=w.charCode,w===0&&Z===13&&(w=13)):w=Z,w===10&&(w=13),32<=w||w===13?w:0}function pJ(){return!0}function cK(){return!1}function $w(w){function Z(X,z,v,H,W){this._reactName=X,this._targetInst=v,this.type=z,this.nativeEvent=H,this.target=W,this.currentTarget=null;for(var q in w)w.hasOwnProperty(q)&&(X=w[q],this[q]=X?X(H):H[q]);return this.isDefaultPrevented=(H.defaultPrevented!=null?H.defaultPrevented:H.returnValue===!1)?pJ:cK,this.isPropagationStopped=cK,this}return B1(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!=="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=pJ)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!=="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=pJ)},persist:function(){},isPersistent:pJ}),Z}function jm(w){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState(w):(w=Bh[w])?!!Z[w]:!1}function BB(){return jm}function aK(w,Z){switch(w){case"keyup":return Nh.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==ek;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iK(w){return w=w.detail,typeof w==="object"&&"data"in w?w.data:null}function Em(w,Z){switch(w){case"compositionend":return iK(Z);case"keypress":if(Z.which!==ZF)return null;return XF=!0,$F;case"textInput":return w=Z.data,w===$F&&XF?null:w;default:return null}}function um(w,Z){if(R3)return w==="compositionend"||!xg&&aK(w,Z)?(w=lK(),Yz=Og=j8=null,R3=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return wF&&Z.locale!=="ko"?null:Z.data;default:return null}}function pK(w){var Z=w&&w.nodeName&&w.nodeName.toLowerCase();return Z==="input"?!!Ih[w.type]:Z==="textarea"?!0:!1}function lm(w){if(!k6)return!1;w="on"+w;var Z=w in document;return Z||(Z=document.createElement("div"),Z.setAttribute(w,"return;"),Z=typeof Z[w]==="function"),Z}function rK(w,Z,X,z){h3?V3?V3.push(z):V3=[z]:h3=z,Z=DY(Z,"onChange"),0<Z.length&&(X=new zz("onChange","change",null,X,z),w.push({event:X,listeners:Z}))}function cm(w){mL(w,0)}function rJ(w){var Z=u0(w);if(TK(Z))return w}function nK(w,Z){if(w==="change")return Z}function oK(){u$&&(u$.detachEvent("onpropertychange",sK),l$=u$=null)}function sK(w){if(w.propertyName==="value"&&rJ(l$)){var Z=[];rK(Z,l$,w,vB(w)),uK(cm,Z)}}function am(w,Z,X){w==="focusin"?(oK(),u$=Z,l$=X,u$.attachEvent("onpropertychange",sK)):w==="focusout"&&oK()}function im(w){if(w==="selectionchange"||w==="keyup"||w==="keydown")return rJ(l$)}function pm(w,Z){if(w==="click")return rJ(Z)}function rm(w,Z){if(w==="input"||w==="change")return rJ(Z)}function nm(w,Z){return w===Z&&(w!==0||1/w===1/Z)||w!==w&&Z!==Z}function J$(w,Z){if(l2(w,Z))return!0;if(typeof w!=="object"||w===null||typeof Z!=="object"||Z===null)return!1;var X=Object.keys(w),z=Object.keys(Z);if(X.length!==z.length)return!1;for(z=0;z<X.length;z++){var v=X[z];if(!m4.call(Z,v)||!l2(w[v],Z[v]))return!1}return!0}function tK(w){for(;w&&w.firstChild;)w=w.firstChild;return w}function eK(w,Z){var X=tK(w);w=0;for(var z;X;){if(X.nodeType===3){if(z=w+X.textContent.length,w<=Z&&z>=Z)return{node:X,offset:Z-w};w=z}w:{for(;X;){if(X.nextSibling){X=X.nextSibling;break w}X=X.parentNode}X=void 0}X=tK(X)}}function wU(w,Z){return w&&Z?w===Z?!0:w&&w.nodeType===3?!1:Z&&Z.nodeType===3?wU(w,Z.parentNode):("contains"in w)?w.contains(Z):w.compareDocumentPosition?!!(w.compareDocumentPosition(Z)&16):!1:!1}function ZU(w){w=w!=null&&w.ownerDocument!=null&&w.ownerDocument.defaultView!=null?w.ownerDocument.defaultView:window;for(var Z=lJ(w.document);Z instanceof w.HTMLIFrameElement;){try{var X=typeof Z.contentWindow.location.href==="string"}catch(z){X=!1}if(X)w=Z.contentWindow;else break;Z=lJ(w.document)}return Z}function HB(w){var Z=w&&w.nodeName&&w.nodeName.toLowerCase();return Z&&(Z==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||Z==="textarea"||w.contentEditable==="true")}function $U(w,Z,X){var z=X.window===X?X.document:X.nodeType===9?X:X.ownerDocument;Pg||y3==null||y3!==lJ(z)||(z=y3,("selectionStart"in z)&&HB(z)?z={start:z.selectionStart,end:z.selectionEnd}:(z=(z.ownerDocument&&z.ownerDocument.defaultView||window).getSelection(),z={anchorNode:z.anchorNode,anchorOffset:z.anchorOffset,focusNode:z.focusNode,focusOffset:z.focusOffset}),c$&&J$(c$,z)||(c$=z,z=DY(mg,"onSelect"),0<z.length&&(Z=new zz("onSelect","select",null,Z,X),w.push({event:Z,listeners:z}),Z.target=y3)))}function E9(w,Z){var X={};return X[w.toLowerCase()]=Z.toLowerCase(),X["Webkit"+w]="webkit"+Z,X["Moz"+w]="moz"+Z,X}function u9(w){if(fg[w])return fg[w];if(!S3[w])return w;var Z=S3[w],X;for(X in Z)if(Z.hasOwnProperty(X)&&X in YF)return fg[w]=Z[X];return w}function A4(w,Z){HF.set(w,Z),h0(Z,[w])}function om(w){for(var Z=vz,X=0;X<w.length;X++){var z=w[X];if(typeof z==="object"&&z!==null)if(p5(z)&&z.length===2&&typeof z[0]==="string"){if(Z!==vz&&Z!==Sg)return Rg;Z=Sg}else return Rg;else{if(typeof z==="function"||typeof z==="string"&&50<z.length||Z!==vz&&Z!==yg)return Rg;Z=yg}}return Z}function gB(w,Z,X,z){for(var v in w)m4.call(w,v)&&v[0]!=="_"&&s4(v,w[v],Z,X,z)}function s4(w,Z,X,z,v){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===Q6){var H=Z0(Z.type)||"…",W=Z.key;Z=Z.props;var q=Object.keys(Z),T=q.length;if(W==null&&T===0){Z="<"+H+" />";break}if(3>z||T===1&&q[0]==="children"&&W==null){Z="<"+H+" … />";break}X.push([v+" ".repeat(z)+w,"<"+H]),W!==null&&s4("key",W,X,z+1,v),w=!1;for(var _ in Z)_==="children"?Z.children!=null&&(!p5(Z.children)||0<Z.children.length)&&(w=!0):m4.call(Z,_)&&_[0]!=="_"&&s4(_,Z[_],X,z+1,v);X.push(["",w?">…</"+H+">":"/>"]);return}if(H=Object.prototype.toString.call(Z),H=H.slice(8,H.length-1),H==="Array"){if(_=om(Z),_===yg||_===vz){Z=JSON.stringify(Z);break}else if(_===Sg){X.push([v+" ".repeat(z)+w,""]);for(w=0;w<Z.length;w++)H=Z[w],s4(H[0],H[1],X,z+1,v);return}}if(H==="Promise"){if(Z.status==="fulfilled"){if(H=X.length,s4(w,Z.value,X,z,v),X.length>H){X=X[H],X[1]="Promise<"+(X[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(H=X.length,s4(w,Z.reason,X,z,v),X.length>H)){X=X[H],X[1]="Rejected Promise<"+X[1]+">";return}X.push([" ".repeat(z)+w,"Promise"]);return}H==="Object"&&(_=Object.getPrototypeOf(Z))&&typeof _.constructor==="function"&&(H=_.constructor.name),X.push([v+" ".repeat(z)+w,H==="Object"?3>z?"":"…":H]),3>z&&gB(Z,X,z+1,v);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===mh?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}X.push([v+" ".repeat(z)+w,Z])}function XU(w,Z,X,z){var v=!0;for(W in w)W in Z||(X.push([Bz+" ".repeat(z)+W,"…"]),v=!1);for(var H in Z)if(H in w){var W=w[H],q=Z[H];if(W!==q){if(z===0&&H==="children")v=" ".repeat(z)+H,X.push([Bz+v,"…"],[Hz+v,"…"]);else{if(!(3<=z)){if(typeof W==="object"&&typeof q==="object"&&W!==null&&q!==null&&W.$$typeof===q.$$typeof)if(q.$$typeof===Q6){if(W.type===q.type&&W.key===q.key){W=Z0(q.type)||"…",v=" ".repeat(z)+H,W="<"+W+" … />",X.push([Bz+v,W],[Hz+v,W]),v=!1;continue}}else{var T=Object.prototype.toString.call(W),_=Object.prototype.toString.call(q);if(T===_&&(_==="[object Object]"||_==="[object Array]")){T=[QF+" ".repeat(z)+H,_==="[object Array]"?"Array":""],X.push(T),_=X.length,XU(W,q,X,z+1)?_===X.length&&(T[1]="Referentially unequal but deeply equal objects. Consider memoization."):v=!1;continue}}else if(typeof W==="function"&&typeof q==="function"&&W.name===q.name&&W.length===q.length&&(T=Function.prototype.toString.call(W),_=Function.prototype.toString.call(q),T===_)){W=q.name===""?"() => {}":q.name+"() {}",X.push([QF+" ".repeat(z)+H,W+" Referentially unequal function closure. Consider memoization."]);continue}}s4(H,W,X,z,Bz),s4(H,q,X,z,Hz)}v=!1}}else X.push([Hz+" ".repeat(z)+H,"…"]),v=!1;return v}function Cw(w){Q1=w&63?"Blocking":w&64?"Gesture":w&4194176?"Transition":w&62914560?"Suspense":w&2080374784?"Idle":"Other"}function t4(w,Z,X,z){n1&&(u8.start=Z,u8.end=X,t6.color="warning",t6.tooltipText=z,t6.properties=null,(w=w._debugTask)?w.run(performance.measure.bind(performance,z,u8)):performance.measure(z,u8))}function nJ(w,Z,X){t4(w,Z,X,"Reconnect")}function oJ(w,Z,X,z,v){var H=E(w);if(H!==null&&n1){var{alternate:W,actualDuration:q}=w;if(W===null||W.child!==w.child)for(var T=w.child;T!==null;T=T.sibling)q-=T.actualDuration;z=0.5>q?z?"tertiary-light":"primary-light":10>q?z?"tertiary":"primary":100>q?z?"tertiary-dark":"primary-dark":"error";var _=w.memoizedProps;q=w._debugTask,_!==null&&W!==null&&W.memoizedProps!==_?(T=[Ph],_=XU(W.memoizedProps,_,T,0),1<T.length&&(_&&!E8&&(W.lanes&v)===0&&100<w.actualDuration?(E8=!0,T[0]=fh,t6.color="warning",t6.tooltipText=WF):(t6.color=z,t6.tooltipText=H),t6.properties=T,u8.start=Z,u8.end=X,q!=null?q.run(performance.measure.bind(performance,""+H,u8)):performance.measure(""+H,u8))):q!=null?q.run(console.timeStamp.bind(console,H,Z,X,ew,void 0,z)):console.timeStamp(H,Z,X,ew,void 0,z)}}function bB(w,Z,X,z){if(n1){var v=E(w);if(v!==null){for(var H=null,W=[],q=0;q<z.length;q++){var T=z[q];H==null&&T.source!==null&&(H=T.source._debugTask),T=T.value,W.push(["Error",typeof T==="object"&&T!==null&&typeof T.message==="string"?String(T.message):String(T)])}w.key!==null&&s4("key",w.key,W,0,""),w.memoizedProps!==null&&gB(w.memoizedProps,W,0,""),H==null&&(H=w._debugTask),w={start:Z,end:X,detail:{devtools:{color:"error",track:ew,tooltipText:w.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},H?H.run(performance.measure.bind(performance,""+v,w)):performance.measure(""+v,w)}}}function e4(w,Z,X,z,v){if(v!==null){if(n1){var H=E(w);if(H!==null){z=[];for(var W=0;W<v.length;W++){var q=v[W].value;z.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}w.key!==null&&s4("key",w.key,z,0,""),w.memoizedProps!==null&&gB(w.memoizedProps,z,0,""),Z={start:Z,end:X,detail:{devtools:{color:"error",track:ew,tooltipText:"A lifecycle or effect errored",properties:z}}},(w=w._debugTask)?w.run(performance.measure.bind(performance,""+H,Z)):performance.measure(""+H,Z)}}}else H=E(w),H!==null&&n1&&(v=1>z?"secondary-light":100>z?"secondary":500>z?"secondary-dark":"error",(w=w._debugTask)?w.run(console.timeStamp.bind(console,H,Z,X,ew,void 0,v)):console.timeStamp(H,Z,X,ew,void 0,v))}function sm(w,Z,X,z){if(n1&&!(Z<=w)){var v=(X&738197653)===X?"tertiary-dark":"primary-dark";X=(X&536870912)===X?"Prepared":(X&201326741)===X?"Hydrated":"Render",z?z.run(console.timeStamp.bind(console,X,w,Z,Q1,H1,v)):console.timeStamp(X,w,Z,Q1,H1,v)}}function JU(w,Z,X,z){!n1||Z<=w||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",z?z.run(console.timeStamp.bind(console,"Prewarm",w,Z,Q1,H1,X)):console.timeStamp("Prewarm",w,Z,Q1,H1,X))}function YU(w,Z,X,z){!n1||Z<=w||(X=(X&738197653)===X?"tertiary-dark":"primary-dark",z?z.run(console.timeStamp.bind(console,"Suspended",w,Z,Q1,H1,X)):console.timeStamp("Suspended",w,Z,Q1,H1,X))}function tm(w,Z,X,z,v,H){if(n1&&!(Z<=w)){X=[];for(var W=0;W<z.length;W++){var q=z[W].value;X.push(["Recoverable Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}w={start:w,end:Z,detail:{devtools:{color:"primary-dark",track:Q1,trackGroup:H1,tooltipText:v?"Hydration Failed":"Recovered after Error",properties:X}}},H?H.run(performance.measure.bind(performance,"Recovered",w)):performance.measure("Recovered",w)}}function QB(w,Z,X,z){!n1||Z<=w||(z?z.run(console.timeStamp.bind(console,"Errored",w,Z,Q1,H1,"error")):console.timeStamp("Errored",w,Z,Q1,H1,"error"))}function em(w,Z,X,z){!n1||Z<=w||(z?z.run(console.timeStamp.bind(console,X,w,Z,Q1,H1,"secondary-light")):console.timeStamp(X,w,Z,Q1,H1,"secondary-light"))}function zU(w,Z,X,z,v){if(n1&&!(Z<=w)){for(var H=[],W=0;W<X.length;W++){var q=X[W].value;H.push(["Error",typeof q==="object"&&q!==null&&typeof q.message==="string"?String(q.message):String(q)])}w={start:w,end:Z,detail:{devtools:{color:"error",track:Q1,trackGroup:H1,tooltipText:z?"Remaining Effects Errored":"Commit Errored",properties:H}}},v?v.run(performance.measure.bind(performance,"Errored",w)):performance.measure("Errored",w)}}function Y$(w,Z,X){!n1||Z<=w||(X?X.run(console.timeStamp.bind(console,"Animating",w,Z,Q1,H1,"secondary-dark")):console.timeStamp("Animating",w,Z,Q1,H1,"secondary-dark"))}function sJ(){for(var w=d3,Z=dg=d3=0;Z<w;){var X=w4[Z];w4[Z++]=null;var z=w4[Z];w4[Z++]=null;var v=w4[Z];w4[Z++]=null;var H=w4[Z];if(w4[Z++]=null,z!==null&&v!==null){var W=z.pending;W===null?v.next=v:(v.next=W.next,W.next=v),z.pending=v}H!==0&&GU(X,v,H)}}function tJ(w,Z,X,z){w4[d3++]=w,w4[d3++]=Z,w4[d3++]=X,w4[d3++]=z,dg|=z,w.lanes|=z,w=w.alternate,w!==null&&(w.lanes|=z)}function WB(w,Z,X,z){return tJ(w,Z,X,z),eJ(w)}function x2(w,Z){return tJ(w,null,null,Z),eJ(w)}function GU(w,Z,X){w.lanes|=X;var z=w.alternate;z!==null&&(z.lanes|=X);for(var v=!1,H=w.return;H!==null;)H.childLanes|=X,z=H.alternate,z!==null&&(z.childLanes|=X),H.tag===22&&(w=H.stateNode,w===null||w._visibility&a$||(v=!0)),w=H,H=H.return;return w.tag===3?(H=w.stateNode,v&&Z!==null&&(v=31-j2(X),w=H.hiddenUpdates,z=w[v],z===null?w[v]=[Z]:z.push(Z),Z.lane=X|536870912),H):null}function eJ(w){if(LX>ph)throw q7=LX=0,kX=qb=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.");q7>rh&&(q7=0,kX=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.")),w.alternate===null&&(w.flags&4098)!==0&&IL(w);for(var Z=w,X=Z.return;X!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&IL(w),Z=X,X=Z.return;return Z.tag===3?Z.stateNode:null}function l9(w){if(Z4===null)return w;var Z=Z4(w);return Z===void 0?w:Z.current}function KB(w){if(Z4===null)return w;var Z=Z4(w);return Z===void 0?w!==null&&w!==void 0&&typeof w.render==="function"&&(Z=l9(w.render),w.render!==Z)?(Z={$$typeof:h$,render:Z},w.displayName!==void 0&&(Z.displayName=w.displayName),Z):w:Z.current}function vU(w,Z){if(Z4===null)return!1;var X=w.elementType;Z=Z.type;var z=!1,v=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch(w.tag){case 1:typeof Z==="function"&&(z=!0);break;case 0:typeof Z==="function"?z=!0:v===hw&&(z=!0);break;case 11:v===h$?z=!0:v===hw&&(z=!0);break;case 14:case 15:v===oY?z=!0:v===hw&&(z=!0);break;default:return!1}return z&&(w=Z4(X),w!==void 0&&w===Z4(Z))?!0:!1}function BU(w){Z4!==null&&typeof WeakSet==="function"&&(D3===null&&(D3=new WeakSet),D3.add(w))}function HU(w,Z,X){do{var z=w,v=z.alternate,H=z.child,W=z.sibling,q=z.tag;z=z.type;var T=null;switch(q){case 0:case 15:case 1:T=z;break;case 11:T=z.render}if(Z4===null)throw Error("Expected resolveFamily to be set during hot reload.");var _=!1;if(z=!1,T!==null&&(T=Z4(T),T!==void 0&&(X.has(T)?z=!0:Z.has(T)&&(q===1?z=!0:_=!0))),D3!==null&&(D3.has(w)||v!==null&&D3.has(v))&&(z=!0),z&&(w._debugNeedsRemount=!0),z||_)v=x2(w,2),v!==null&&F5(v,w,2);if(H===null||z||HU(H,Z,X),W===null)break;w=W}while(1)}function wP(w,Z,X,z){this.tag=w,this.key=X,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=z,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,KF||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function UB(w){return w=w.prototype,!(!w||!w.isReactComponent)}function c6(w,Z){var X=w.alternate;switch(X===null?(X=F(w.tag,Z,w.key,w.mode),X.elementType=w.elementType,X.type=w.type,X.stateNode=w.stateNode,X._debugOwner=w._debugOwner,X._debugStack=w._debugStack,X._debugTask=w._debugTask,X._debugHookTypes=w._debugHookTypes,X.alternate=w,w.alternate=X):(X.pendingProps=Z,X.type=w.type,X.flags=0,X.subtreeFlags=0,X.deletions=null,X.actualDuration=-0,X.actualStartTime=-1.1),X.flags=w.flags&65011712,X.childLanes=w.childLanes,X.lanes=w.lanes,X.child=w.child,X.memoizedProps=w.memoizedProps,X.memoizedState=w.memoizedState,X.updateQueue=w.updateQueue,Z=w.dependencies,X.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},X.sibling=w.sibling,X.index=w.index,X.ref=w.ref,X.refCleanup=w.refCleanup,X.selfBaseDuration=w.selfBaseDuration,X.treeBaseDuration=w.treeBaseDuration,X._debugInfo=w._debugInfo,X._debugNeedsRemount=w._debugNeedsRemount,X.tag){case 0:case 15:X.type=l9(w.type);break;case 1:X.type=l9(w.type);break;case 11:X.type=KB(w.type)}return X}function gU(w,Z){w.flags&=65011714;var X=w.alternate;return X===null?(w.childLanes=0,w.lanes=Z,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null,w.selfBaseDuration=0,w.treeBaseDuration=0):(w.childLanes=X.childLanes,w.lanes=X.lanes,w.child=X.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=X.memoizedProps,w.memoizedState=X.memoizedState,w.updateQueue=X.updateQueue,w.type=X.type,Z=X.dependencies,w.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},w.selfBaseDuration=X.selfBaseDuration,w.treeBaseDuration=X.treeBaseDuration),w}function qB(w,Z,X,z,v,H){var W=0,q=w;if(typeof w==="function")UB(w)&&(W=1),q=l9(q);else if(typeof w==="string")W=u(),W=Bf(w,X,W)?26:w==="html"||w==="head"||w==="body"?27:5;else w:switch(w){case Bg:return Z=F(31,X,Z,v),Z.elementType=Bg,Z.lanes=H,Z;case A3:return c9(X.children,v,H,Z);case nY:W=8,v|=P2,v|=f4;break;case Yg:return w=X,z=v,typeof w.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof w.id),Z=F(12,w,Z,z|Z1),Z.elementType=Yg,Z.lanes=H,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case Gg:return Z=F(13,X,Z,v),Z.elementType=Gg,Z.lanes=H,Z;case vg:return Z=F(19,X,Z,v),Z.elementType=vg,Z.lanes=H,Z;default:if(typeof w==="object"&&w!==null)switch(w.$$typeof){case W6:W=10;break w;case zg:W=9;break w;case h$:W=11,q=KB(q);break w;case oY:W=14;break w;case hw:W=16,q=null;break w}if(q="",w===void 0||typeof w==="object"&&w!==null&&Object.keys(w).length===0)q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";w===null?X="null":p5(w)?X="array":w!==void 0&&w.$$typeof===Q6?(X="<"+(Z0(w.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):X=typeof w,(W=z?s(z):null)&&(q+=`
|
|
77
|
+
|
|
78
|
+
Check the render method of \``+W+"`."),W=29,X=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(X+"."+q)),q=null}return Z=F(W,X,Z,v),Z.elementType=w,Z.type=q,Z.lanes=H,Z._debugOwner=z,Z}function wY(w,Z,X){return Z=qB(w.type,w.key,w.props,w._owner,Z,X),Z._debugOwner=w._owner,Z._debugStack=w._debugStack,Z._debugTask=w._debugTask,Z}function c9(w,Z,X,z){return w=F(7,w,z,Z),w.lanes=X,w}function LB(w,Z,X){return w=F(6,w,null,Z),w.lanes=X,w}function bU(w){var Z=F(18,null,null,l0);return Z.stateNode=w,Z}function kB(w,Z,X){return Z=F(4,w.children!==null?w.children:[],w.key,Z),Z.lanes=X,Z.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},Z}function Aw(w,Z){if(typeof w==="object"&&w!==null){var X=Dg.get(w);if(X!==void 0)return X;return Z={value:w,source:Z,stack:w0(Z)},Dg.set(w,Z),Z}return{value:w,source:Z,stack:w0(Z)}}function a6(w,Z){_8(),j3[E3++]=i$,j3[E3++]=gz,gz=w,i$=Z}function QU(w,Z,X){_8(),$4[X4++]=w8,$4[X4++]=Z8,$4[X4++]=X7,X7=w;var z=w8;w=Z8;var v=32-j2(z)-1;z&=~(1<<v),X+=1;var H=32-j2(Z)+v;if(30<H){var W=v-v%5;H=(z&(1<<W)-1).toString(32),z>>=W,v-=W,w8=1<<32-j2(Z)+v|X<<v|z,Z8=H+w}else w8=1<<H|X<<v|z,Z8=w}function FB(w){_8(),w.return!==null&&(a6(w,1),QU(w,1,0))}function NB(w){for(;w===gz;)gz=j3[--E3],j3[E3]=null,i$=j3[--E3],j3[E3]=null;for(;w===X7;)X7=$4[--X4],$4[X4]=null,Z8=$4[--X4],$4[X4]=null,w8=$4[--X4],$4[X4]=null}function WU(){return _8(),X7!==null?{id:w8,overflow:Z8}:null}function KU(w,Z){_8(),$4[X4++]=w8,$4[X4++]=Z8,$4[X4++]=X7,w8=Z.id,Z8=Z.overflow,X7=w}function _8(){U1||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function a9(w,Z){if(w.return===null){if(yw===null)yw={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(yw.fiber!==w)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");yw.distanceFromLeaf>Z&&(yw.distanceFromLeaf=Z)}return yw}var X=a9(w.return,Z+1).children;if(0<X.length&&X[X.length-1].fiber===w)return X=X[X.length-1],X.distanceFromLeaf>Z&&(X.distanceFromLeaf=Z),X;return Z={fiber:w,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},X.push(Z),Z}function UU(){U1&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function ZY(w,Z){F6||(w=a9(w,0),w.serverProps=null,Z!==null&&(Z=rL(Z),w.serverTail.push(Z)))}function O8(w){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,X="",z=yw;throw z!==null&&(yw=null,X=zB(z)),z$(Aw(Error("Hydration failed because the server rendered "+(Z?"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`+X),w)),jg}function qU(w){var{stateNode:Z,type:X,memoizedProps:z}=w;switch(Z[N2]=w,Z[E2]=z,EH(X,z),X){case"dialog":q1("cancel",Z),q1("close",Z);break;case"iframe":case"object":case"embed":q1("load",Z);break;case"video":case"audio":for(X=0;X<FX.length;X++)q1(FX[X],Z);break;case"source":q1("error",Z);break;case"img":case"image":case"link":q1("error",Z),q1("load",Z);break;case"details":q1("toggle",Z);break;case"input":_1("input",z),q1("invalid",Z),IK(Z,z),_K(Z,z.value,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name,!0);break;case"option":OK(Z,z);break;case"select":_1("select",z),q1("invalid",Z),AK(Z,z);break;case"textarea":_1("textarea",z),q1("invalid",Z),MK(Z,z),mK(Z,z.value,z.defaultValue,z.children)}X=z.children,typeof X!=="string"&&typeof X!=="number"&&typeof X!=="bigint"||Z.textContent===""+X||z.suppressHydrationWarning===!0||VL(Z.textContent,X)?(z.popover!=null&&(q1("beforetoggle",Z),q1("toggle",Z)),z.onScroll!=null&&q1("scroll",Z),z.onScrollEnd!=null&&q1("scrollend",Z),z.onClick!=null&&(Z.onclick=l6),Z=!0):Z=!1,Z||O8(w,!0)}function LU(w){for(T2=w.return;T2;)switch(T2.tag){case 5:case 31:case 13:J4=!1;return;case 27:case 3:J4=!0;return;default:T2=T2.return}}function g3(w){if(w!==T2)return!1;if(!U1)return LU(w),U1=!0,!1;var Z=w.tag,X;if(X=Z!==3&&Z!==27){if(X=Z===5)X=w.type,X=!(X!=="form"&&X!=="button")||iH(w.type,w.memoizedProps);X=!X}if(X&&o1){for(X=o1;X;){var z=a9(w,0),v=rL(X);z.serverTail.push(v),X=v.type==="Suspense"?oH(X):fw(X.nextSibling)}O8(w)}if(LU(w),Z===13){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");o1=oH(w)}else if(Z===31){if(w=w.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");o1=oH(w)}else Z===27?(Z=o1,R8(w.type)?(w=xb,xb=null,o1=w):o1=Z):o1=T2?fw(w.stateNode.nextSibling):null;return!0}function i9(){o1=T2=null,F6=U1=!1}function TB(){var w=c8;return w!==null&&(p2===null?p2=w:p2.push.apply(p2,w),c8=null),w}function z$(w){c8===null?c8=[w]:c8.push(w)}function IB(){var w=yw;if(w!==null){yw=null;for(var Z=zB(w);0<w.children.length;)w=w.children[0];b0(w.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",Z)})}}function $Y(){u3=bz=null,l3=!1}function C8(w,Z,X){q0(Eg,Z._currentValue,w),Z._currentValue=X,q0(ug,Z._currentRenderer,w),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==qF&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=qF}function i6(w,Z){w._currentValue=Eg.current;var X=ug.current;G0(ug,Z),w._currentRenderer=X,G0(Eg,Z)}function _B(w,Z,X){for(;w!==null;){var z=w.alternate;if((w.childLanes&Z)!==Z?(w.childLanes|=Z,z!==null&&(z.childLanes|=Z)):z!==null&&(z.childLanes&Z)!==Z&&(z.childLanes|=Z),w===X)break;w=w.return}w!==X&&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 OB(w,Z,X,z){var v=w.child;v!==null&&(v.return=w);for(;v!==null;){var H=v.dependencies;if(H!==null){var W=v.child;H=H.firstContext;w:for(;H!==null;){var q=H;H=v;for(var T=0;T<Z.length;T++)if(q.context===Z[T]){H.lanes|=X,q=H.alternate,q!==null&&(q.lanes|=X),_B(H.return,X,w),z||(W=null);break w}H=q.next}}else if(v.tag===18){if(W=v.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=X,H=W.alternate,H!==null&&(H.lanes|=X),_B(W,X,w),W=null}else W=v.child;if(W!==null)W.return=v;else for(W=v;W!==null;){if(W===w){W=null;break}if(v=W.sibling,v!==null){v.return=W.return,W=v;break}W=W.return}v=W}}function b3(w,Z,X,z){w=null;for(var v=Z,H=!1;v!==null;){if(!H){if((v.flags&524288)!==0)H=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var W=v.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var q=v.type;l2(v.pendingProps.value,W.value)||(w!==null?w.push(q):w=[q])}}else if(v===sY.current){if(W=v.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(w!==null?w.push(OX):w=[OX])}v=v.return}w!==null&&OB(Z,w,X,z),Z.flags|=262144}function XY(w){for(w=w.firstContext;w!==null;){if(!l2(w.context._currentValue,w.memoizedValue))return!0;w=w.next}return!1}function p9(w){bz=w,u3=null,w=w.dependencies,w!==null&&(w.firstContext=null)}function X5(w){return l3&&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()."),kU(bz,w)}function JY(w,Z){return bz===null&&p9(w),kU(w,Z)}function kU(w,Z){var X=Z._currentValue;if(Z={context:Z,memoizedValue:X,next:null},u3===null){if(w===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().");u3=Z,w.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},w.flags|=524288}else u3=u3.next=Z;return X}function CB(){return{controller:new Rh,data:new Map,refCount:0}}function r9(w){w.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),w.refCount++}function G$(w){w.refCount--,0>w.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),w.refCount===0&&yh(Sh,function(){w.controller.abort()})}function w6(w,Z,X){if((w&127)!==0)0>N6&&(N6=y5(),r$=Qz(Z),lg=Z,X!=null&&(cg=E(X)),(F1&(n5|Dw))!==Q2&&(N5=!0,p8=p$),w=M$(),Z=A$(),w!==c3||Z!==n$?c3=-1.1:Z!==null&&(p8=p$),Y7=w,n$=Z);else if((w&4194048)!==0&&0>Y4&&(Y4=y5(),o$=Qz(Z),LF=Z,X!=null&&(kF=E(X)),0>J8)){if(w=M$(),Z=A$(),w!==n8||Z!==z7)n8=-1.1;r8=w,z7=Z}}function ZP(w){if(0>N6){N6=y5(),r$=w._debugTask!=null?w._debugTask:null,(F1&(n5|Dw))!==Q2&&(p8=p$);var Z=M$(),X=A$();Z!==c3||X!==n$?c3=-1.1:X!==null&&(p8=p$),Y7=Z,n$=X}if(0>Y4&&(Y4=y5(),o$=w._debugTask!=null?w._debugTask:null,0>J8)){if(w=M$(),Z=A$(),w!==n8||Z!==z7)n8=-1.1;r8=w,z7=Z}}function p6(){var w=J7;return J7=0,w}function YY(w){var Z=J7;return J7=w,Z}function v$(w){var Z=J7;return J7+=w,Z}function zY(){j0=S0=-1.1}function Mw(){var w=S0;return S0=-1.1,w}function xw(w){0<=w&&(S0=w)}function Z6(){var w=g5;return g5=-0,w}function $6(w){0<=w&&(g5=w)}function X6(){var w=J5;return J5=null,w}function J6(){var w=N5;return N5=!1,w}function AB(w){c2=y5(),0>w.actualStartTime&&(w.actualStartTime=c2)}function MB(w){if(0<=c2){var Z=y5()-c2;w.actualDuration+=Z,w.selfBaseDuration=Z,c2=-1}}function FU(w){if(0<=c2){var Z=y5()-c2;w.actualDuration+=Z,c2=-1}}function Y6(){if(0<=c2){var w=y5(),Z=w-c2;c2=-1,J7+=Z,g5+=Z,j0=w}}function NU(w){J5===null&&(J5=[]),J5.push(w),X8===null&&(X8=[]),X8.push(w)}function z6(){c2=y5(),0>S0&&(S0=c2)}function B$(w){for(var Z=w.child;Z;)w.actualDuration+=Z.actualDuration,Z=Z.sibling}function $P(w,Z){if(t$===null){var X=t$=[];ig=0,G7=SH(),a3={status:"pending",value:void 0,then:function(z){X.push(z)}}}return ig++,Z.then(TU,TU),Z}function TU(){if(--ig===0&&(-1<Y4||(J8=-1.1),t$!==null)){a3!==null&&(a3.status="fulfilled");var w=t$;t$=null,G7=0,a3=null;for(var Z=0;Z<w.length;Z++)(0,w[Z])()}}function XP(w,Z){var X=[],z={status:"pending",value:null,reason:null,then:function(v){X.push(v)}};return w.then(function(){z.status="fulfilled",z.value=Z;for(var v=0;v<X.length;v++)(0,X[v])(Z)},function(v){z.status="rejected",z.reason=v;for(v=0;v<X.length;v++)(0,X[v])(void 0)}),z}function xB(){var w=v7.current;return w!==null?w:u1.pooledCache}function GY(w,Z){Z===null?q0(v7,v7.current,w):q0(v7,Z.pool,w)}function IU(){var w=xB();return w===null?null:{parent:R5._currentValue,pool:w}}function _U(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function OU(w){return w=w.status,w==="fulfilled"||w==="rejected"}function CU(w,Z,X){Y0.actQueue!==null&&(Y0.didUsePromise=!0);var z=w.thenables;if(X=z[X],X===void 0?z.push(Z):X!==Z&&(w.didWarnAboutUncachedPromise||(w.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.")),Z.then(l6,l6),Z=X),Z._debugInfo===void 0){w=performance.now(),z=Z.displayName;var v={name:typeof z==="string"?z:"Promise",start:w,end:w,value:Z};Z._debugInfo=[{awaited:v}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&(w=function(){v.end=performance.now()},Z.then(w,w))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw w=Z.reason,MU(w),w;default:if(typeof Z.status==="string")Z.then(l6,l6);else{if(w=u1,w!==null&&100<w.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.");w=Z,w.status="pending",w.then(function(H){if(Z.status==="pending"){var W=Z;W.status="fulfilled",W.value=H}},function(H){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=H}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw w=Z.reason,MU(w),w}throw H7=Z,YX=!0,i3}}function A8(w){try{return Eh(w)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw H7=Z,YX=!0,i3;throw Z}}function AU(){if(H7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var w=H7;return H7=null,YX=!1,w}function MU(w){if(w===i3||w===Nz)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 L2(w){var Z=$1;return w!=null&&($1=Z===null?w:Z.concat(w)),Z}function mB(){var w=$1;if(w!=null){for(var Z=w.length-1;0<=Z;Z--)if(w[Z].name!=null){var X=w[Z].debugTask;if(X!=null)return X}}return null}function vY(w,Z,X){for(var z=Object.keys(w.props),v=0;v<z.length;v++){var H=z[v];if(H!=="children"&&H!=="key"){Z===null&&(Z=wY(w,X.mode,0),Z._debugInfo=$1,Z.return=X),b0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},H);break}}}function BY(w){var Z=zX;return zX+=1,p3===null&&(p3=_U()),CU(p3,w,Z)}function H$(w,Z){Z=Z.props.ref,w.ref=Z!==void 0?Z:null}function xU(w,Z){if(Z.$$typeof===kf)throw 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.`);throw w=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}function HY(w,Z){var X=mB();X!==null?X.run(xU.bind(null,w,Z)):xU(w,Z)}function mU(w,Z){var X=E(w)||"Component";DF[X]||(DF[X]=!0,Z=Z.displayName||Z.name||"Component",w.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)`,Z,Z,Z):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>`,Z,Z,X,Z,X))}function gY(w,Z){var X=mB();X!==null?X.run(mU.bind(null,w,Z)):mU(w,Z)}function PU(w,Z){var X=E(w)||"Component";jF[X]||(jF[X]=!0,Z=String(Z),w.tag===3?console.error(`Symbols are not valid as a React child.
|
|
104
|
+
root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
|
|
105
|
+
<%s>%s</%s>`,X,Z,X))}function bY(w,Z){var X=mB();X!==null?X.run(PU.bind(null,w,Z)):PU(w,Z)}function fU(w){function Z(f,V){if(w){var R=f.deletions;R===null?(f.deletions=[V],f.flags|=16):R.push(V)}}function X(f,V){if(!w)return null;for(;V!==null;)Z(f,V),V=V.sibling;return null}function z(f){for(var V=new Map;f!==null;)f.key!==null?V.set(f.key,f):V.set(f.index,f),f=f.sibling;return V}function v(f,V){return f=c6(f,V),f.index=0,f.sibling=null,f}function H(f,V,R){if(f.index=R,!w)return f.flags|=1048576,V;if(R=f.alternate,R!==null)return R=R.index,R<V?(f.flags|=67108866,V):R;return f.flags|=67108866,V}function W(f){return w&&f.alternate===null&&(f.flags|=67108866),f}function q(f,V,R,B0){if(V===null||V.tag!==6)return V=LB(R,f.mode,B0),V.return=f,V._debugOwner=f,V._debugTask=f._debugTask,V._debugInfo=$1,V;return V=v(V,R),V.return=f,V._debugInfo=$1,V}function T(f,V,R,B0){var T0=R.type;if(T0===A3)return V=y(f,V,R.props.children,B0,R.key),vY(R,V,f),V;if(V!==null&&(V.elementType===T0||vU(V,R)||typeof T0==="object"&&T0!==null&&T0.$$typeof===hw&&A8(T0)===V.type))return V=v(V,R.props),H$(V,R),V.return=f,V._debugOwner=R._owner,V._debugInfo=$1,V;return V=wY(R,f.mode,B0),H$(V,R),V.return=f,V._debugInfo=$1,V}function _(f,V,R,B0){if(V===null||V.tag!==4||V.stateNode.containerInfo!==R.containerInfo||V.stateNode.implementation!==R.implementation)return V=kB(R,f.mode,B0),V.return=f,V._debugInfo=$1,V;return V=v(V,R.children||[]),V.return=f,V._debugInfo=$1,V}function y(f,V,R,B0,T0){if(V===null||V.tag!==7)return V=c9(R,f.mode,B0,T0),V.return=f,V._debugOwner=f,V._debugTask=f._debugTask,V._debugInfo=$1,V;return V=v(V,R),V.return=f,V._debugInfo=$1,V}function d(f,V,R){if(typeof V==="string"&&V!==""||typeof V==="number"||typeof V==="bigint")return V=LB(""+V,f.mode,R),V.return=f,V._debugOwner=f,V._debugTask=f._debugTask,V._debugInfo=$1,V;if(typeof V==="object"&&V!==null){switch(V.$$typeof){case Q6:return R=wY(V,f.mode,R),H$(R,V),R.return=f,f=L2(V._debugInfo),R._debugInfo=$1,$1=f,R;case C3:return V=kB(V,f.mode,R),V.return=f,V._debugInfo=$1,V;case hw:var B0=L2(V._debugInfo);return V=A8(V),f=d(f,V,R),$1=B0,f}if(p5(V)||j(V))return R=c9(V,f.mode,R,null),R.return=f,R._debugOwner=f,R._debugTask=f._debugTask,f=L2(V._debugInfo),R._debugInfo=$1,$1=f,R;if(typeof V.then==="function")return B0=L2(V._debugInfo),f=d(f,BY(V),R),$1=B0,f;if(V.$$typeof===W6)return d(f,JY(f,V),R);HY(f,V)}return typeof V==="function"&&gY(f,V),typeof V==="symbol"&&bY(f,V),null}function h(f,V,R,B0){var T0=V!==null?V.key:null;if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return T0!==null?null:q(f,V,""+R,B0);if(typeof R==="object"&&R!==null){switch(R.$$typeof){case Q6:return R.key===T0?(T0=L2(R._debugInfo),f=T(f,V,R,B0),$1=T0,f):null;case C3:return R.key===T0?_(f,V,R,B0):null;case hw:return T0=L2(R._debugInfo),R=A8(R),f=h(f,V,R,B0),$1=T0,f}if(p5(R)||j(R)){if(T0!==null)return null;return T0=L2(R._debugInfo),f=y(f,V,R,B0,null),$1=T0,f}if(typeof R.then==="function")return T0=L2(R._debugInfo),f=h(f,V,BY(R),B0),$1=T0,f;if(R.$$typeof===W6)return h(f,V,JY(f,R),B0);HY(f,R)}return typeof R==="function"&&gY(f,R),typeof R==="symbol"&&bY(f,R),null}function n(f,V,R,B0,T0){if(typeof B0==="string"&&B0!==""||typeof B0==="number"||typeof B0==="bigint")return f=f.get(R)||null,q(V,f,""+B0,T0);if(typeof B0==="object"&&B0!==null){switch(B0.$$typeof){case Q6:return R=f.get(B0.key===null?R:B0.key)||null,f=L2(B0._debugInfo),V=T(V,R,B0,T0),$1=f,V;case C3:return f=f.get(B0.key===null?R:B0.key)||null,_(V,f,B0,T0);case hw:var p0=L2(B0._debugInfo);return B0=A8(B0),V=n(f,V,R,B0,T0),$1=p0,V}if(p5(B0)||j(B0))return R=f.get(R)||null,f=L2(B0._debugInfo),V=y(V,R,B0,T0,null),$1=f,V;if(typeof B0.then==="function")return p0=L2(B0._debugInfo),V=n(f,V,R,BY(B0),T0),$1=p0,V;if(B0.$$typeof===W6)return n(f,V,R,JY(V,B0),T0);HY(V,B0)}return typeof B0==="function"&&gY(V,B0),typeof B0==="symbol"&&bY(V,B0),null}function L0(f,V,R,B0){if(typeof R!=="object"||R===null)return B0;switch(R.$$typeof){case Q6:case C3:L(f,V,R);var T0=R.key;if(typeof T0!=="string")break;if(B0===null){B0=new Set,B0.add(T0);break}if(!B0.has(T0)){B0.add(T0);break}b0(V,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.",T0)});break;case hw:R=A8(R),L0(f,V,R,B0)}return B0}function I0(f,V,R,B0){for(var T0=null,p0=null,y0=null,P0=V,t0=V=0,s1=null;P0!==null&&t0<R.length;t0++){P0.index>t0?(s1=P0,P0=null):s1=P0.sibling;var f5=h(f,P0,R[t0],B0);if(f5===null){P0===null&&(P0=s1);break}T0=L0(f,f5,R[t0],T0),w&&P0&&f5.alternate===null&&Z(f,P0),V=H(f5,V,t0),y0===null?p0=f5:y0.sibling=f5,y0=f5,P0=s1}if(t0===R.length)return X(f,P0),U1&&a6(f,t0),p0;if(P0===null){for(;t0<R.length;t0++)P0=d(f,R[t0],B0),P0!==null&&(T0=L0(f,P0,R[t0],T0),V=H(P0,V,t0),y0===null?p0=P0:y0.sibling=P0,y0=P0);return U1&&a6(f,t0),p0}for(P0=z(P0);t0<R.length;t0++)s1=n(P0,f,t0,R[t0],B0),s1!==null&&(T0=L0(f,s1,R[t0],T0),w&&s1.alternate!==null&&P0.delete(s1.key===null?t0:s1.key),V=H(s1,V,t0),y0===null?p0=s1:y0.sibling=s1,y0=s1);return w&&P0.forEach(function(Q8){return Z(f,Q8)}),U1&&a6(f,t0),p0}function i1(f,V,R,B0){if(R==null)throw Error("An iterable object provided no iterator.");for(var T0=null,p0=null,y0=V,P0=V=0,t0=null,s1=null,f5=R.next();y0!==null&&!f5.done;P0++,f5=R.next()){y0.index>P0?(t0=y0,y0=null):t0=y0.sibling;var Q8=h(f,y0,f5.value,B0);if(Q8===null){y0===null&&(y0=t0);break}s1=L0(f,Q8,f5.value,s1),w&&y0&&Q8.alternate===null&&Z(f,y0),V=H(Q8,V,P0),p0===null?T0=Q8:p0.sibling=Q8,p0=Q8,y0=t0}if(f5.done)return X(f,y0),U1&&a6(f,P0),T0;if(y0===null){for(;!f5.done;P0++,f5=R.next())y0=d(f,f5.value,B0),y0!==null&&(s1=L0(f,y0,f5.value,s1),V=H(y0,V,P0),p0===null?T0=y0:p0.sibling=y0,p0=y0);return U1&&a6(f,P0),T0}for(y0=z(y0);!f5.done;P0++,f5=R.next())t0=n(y0,f,P0,f5.value,B0),t0!==null&&(s1=L0(f,t0,f5.value,s1),w&&t0.alternate!==null&&y0.delete(t0.key===null?P0:t0.key),V=H(t0,V,P0),p0===null?T0=t0:p0.sibling=t0,p0=t0);return w&&y0.forEach(function(gV){return Z(f,gV)}),U1&&a6(f,P0),T0}function L1(f,V,R,B0){if(typeof R==="object"&&R!==null&&R.type===A3&&R.key===null&&(vY(R,null,f),R=R.props.children),typeof R==="object"&&R!==null){switch(R.$$typeof){case Q6:var T0=L2(R._debugInfo);w:{for(var p0=R.key;V!==null;){if(V.key===p0){if(p0=R.type,p0===A3){if(V.tag===7){X(f,V.sibling),B0=v(V,R.props.children),B0.return=f,B0._debugOwner=R._owner,B0._debugInfo=$1,vY(R,B0,f),f=B0;break w}}else if(V.elementType===p0||vU(V,R)||typeof p0==="object"&&p0!==null&&p0.$$typeof===hw&&A8(p0)===V.type){X(f,V.sibling),B0=v(V,R.props),H$(B0,R),B0.return=f,B0._debugOwner=R._owner,B0._debugInfo=$1,f=B0;break w}X(f,V);break}else Z(f,V);V=V.sibling}R.type===A3?(B0=c9(R.props.children,f.mode,B0,R.key),B0.return=f,B0._debugOwner=f,B0._debugTask=f._debugTask,B0._debugInfo=$1,vY(R,B0,f),f=B0):(B0=wY(R,f.mode,B0),H$(B0,R),B0.return=f,B0._debugInfo=$1,f=B0)}return f=W(f),$1=T0,f;case C3:w:{T0=R;for(R=T0.key;V!==null;){if(V.key===R)if(V.tag===4&&V.stateNode.containerInfo===T0.containerInfo&&V.stateNode.implementation===T0.implementation){X(f,V.sibling),B0=v(V,T0.children||[]),B0.return=f,f=B0;break w}else{X(f,V);break}else Z(f,V);V=V.sibling}B0=kB(T0,f.mode,B0),B0.return=f,f=B0}return W(f);case hw:return T0=L2(R._debugInfo),R=A8(R),f=L1(f,V,R,B0),$1=T0,f}if(p5(R))return T0=L2(R._debugInfo),f=I0(f,V,R,B0),$1=T0,f;if(j(R)){if(T0=L2(R._debugInfo),p0=j(R),typeof p0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var y0=p0.call(R);if(y0===R){if(f.tag!==0||Object.prototype.toString.call(f.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(y0)!=="[object Generator]")SF||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."),SF=!0}else R.entries!==p0||og||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),og=!0);return f=i1(f,V,y0,B0),$1=T0,f}if(typeof R.then==="function")return T0=L2(R._debugInfo),f=L1(f,V,BY(R),B0),$1=T0,f;if(R.$$typeof===W6)return L1(f,V,JY(f,R),B0);HY(f,R)}if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return T0=""+R,V!==null&&V.tag===6?(X(f,V.sibling),B0=v(V,T0),B0.return=f,f=B0):(X(f,V),B0=LB(T0,f.mode,B0),B0.return=f,B0._debugOwner=f,B0._debugTask=f._debugTask,B0._debugInfo=$1,f=B0),W(f);return typeof R==="function"&&gY(f,R),typeof R==="symbol"&&bY(f,R),X(f,V)}return function(f,V,R,B0){var T0=$1;$1=null;try{zX=0;var p0=L1(f,V,R,B0);return p3=null,p0}catch(s1){if(s1===i3||s1===Nz)throw s1;var y0=F(29,s1,null,f.mode);y0.lanes=B0,y0.return=f;var P0=y0._debugInfo=$1;if(y0._debugOwner=f._debugOwner,y0._debugTask=f._debugTask,P0!=null){for(var t0=P0.length-1;0<=t0;t0--)if(typeof P0[t0].stack==="string"){y0._debugOwner=P0[t0],y0._debugTask=P0[t0].debugTask;break}}return y0}finally{$1=T0}}}function hU(w,Z){var X=p5(w);return w=!X&&typeof j(w)==="function",X||w?(X=X?"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>",X,Z,X),!1):!0}function PB(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fB(w,Z){w=w.updateQueue,Z.updateQueue===w&&(Z.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,callbacks:null})}function M8(w){return{lane:w,tag:uF,payload:null,callback:null,next:null}}function x8(w,Z,X){var z=w.updateQueue;if(z===null)return null;if(z=z.shared,tg===z&&!aF){var v=E(w);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`,v),aF=!0}if((F1&n5)!==Q2)return v=z.pending,v===null?Z.next=Z:(Z.next=v.next,v.next=Z),z.pending=Z,Z=eJ(w),GU(w,null,X),Z;return tJ(w,z,Z,X),eJ(w)}function g$(w,Z,X){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(X&4194048)!==0)){var z=Z.lanes;z&=w.pendingLanes,X|=z,Z.lanes=X,u6(w,X)}}function QY(w,Z){var{updateQueue:X,alternate:z}=w;if(z!==null&&(z=z.updateQueue,X===z)){var v=null,H=null;if(X=X.firstBaseUpdate,X!==null){do{var W={lane:X.lane,tag:X.tag,payload:X.payload,callback:null,next:null};H===null?v=H=W:H=H.next=W,X=X.next}while(X!==null);H===null?v=H=Z:H=H.next=Z}else v=H=Z;X={baseState:z.baseState,firstBaseUpdate:v,lastBaseUpdate:H,shared:z.shared,callbacks:z.callbacks},w.updateQueue=X;return}w=X.lastBaseUpdate,w===null?X.firstBaseUpdate=Z:w.next=Z,X.lastBaseUpdate=Z}function b$(){if(eg){var w=a3;if(w!==null)throw w}}function Q$(w,Z,X,z){eg=!1;var v=w.updateQueue;o8=!1,tg=v.shared;var{firstBaseUpdate:H,lastBaseUpdate:W}=v,q=v.shared.pending;if(q!==null){v.shared.pending=null;var T=q,_=T.next;T.next=null,W===null?H=_:W.next=_,W=T;var y=w.alternate;y!==null&&(y=y.updateQueue,q=y.lastBaseUpdate,q!==W&&(q===null?y.firstBaseUpdate=_:q.next=_,y.lastBaseUpdate=T))}if(H!==null){var d=v.baseState;W=0,y=_=T=null,q=H;do{var h=q.lane&-536870913,n=h!==q.lane;if(n?(X1&h)===h:(z&h)===h){h!==0&&h===G7&&(eg=!0),y!==null&&(y=y.next={lane:0,tag:q.tag,payload:q.payload,callback:null,next:null});w:{h=w;var L0=q,I0=Z,i1=X;switch(L0.tag){case lF:if(L0=L0.payload,typeof L0==="function"){l3=!0;var L1=L0.call(i1,d,I0);if(h.mode&P2){I1(!0);try{L0.call(i1,d,I0)}finally{I1(!1)}}l3=!1,d=L1;break w}d=L0;break w;case sg:h.flags=h.flags&-65537|128;case uF:if(L1=L0.payload,typeof L1==="function"){if(l3=!0,L0=L1.call(i1,d,I0),h.mode&P2){I1(!0);try{L1.call(i1,d,I0)}finally{I1(!1)}}l3=!1}else L0=L1;if(L0===null||L0===void 0)break w;d=B1({},d,L0);break w;case cF:o8=!0}}h=q.callback,h!==null&&(w.flags|=64,n&&(w.flags|=8192),n=v.callbacks,n===null?v.callbacks=[h]:n.push(h))}else n={lane:h,tag:q.tag,payload:q.payload,callback:q.callback,next:null},y===null?(_=y=n,T=d):y=y.next=n,W|=h;if(q=q.next,q===null)if(q=v.shared.pending,q===null)break;else n=q,q=n.next,n.next=null,v.lastBaseUpdate=n,v.shared.pending=null}while(1);y===null&&(T=d),v.baseState=T,v.firstBaseUpdate=_,v.lastBaseUpdate=y,H===null&&(v.shared.lanes=0),e8|=W,w.lanes=W,w.memoizedState=d}tg=null}function VU(w,Z){if(typeof w!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+w);w.call(Z)}function JP(w,Z){var X=w.shared.hiddenCallbacks;if(X!==null)for(w.shared.hiddenCallbacks=null,w=0;w<X.length;w++)VU(X[w],Z)}function RU(w,Z){var X=w.callbacks;if(X!==null)for(w.callbacks=null,w=0;w<X.length;w++)VU(X[w],Z)}function yU(w,Z){var X=_6;q0(Iz,X,w),q0(r3,Z,w),_6=X|Z.baseLanes}function hB(w){q0(Iz,_6,w),q0(r3,r3.current,w)}function VB(w){_6=Iz.current,G0(r3,w),G0(Iz,w)}function m8(w){var Z=w.alternate;q0(P5,P5.current&n3,w),q0(Sw,w,w),z4===null&&(Z===null||r3.current!==null?z4=w:Z.memoizedState!==null&&(z4=w))}function RB(w){q0(P5,P5.current,w),q0(Sw,w,w),z4===null&&(z4=w)}function SU(w){w.tag===22?(q0(P5,P5.current,w),q0(Sw,w,w),z4===null&&(z4=w)):P8(w)}function P8(w){q0(P5,P5.current,w),q0(Sw,Sw.current,w)}function mw(w){G0(Sw,w),z4===w&&(z4=null),G0(P5,w)}function WY(w){for(var Z=w;Z!==null;){if(Z.tag===13){var X=Z.memoizedState;if(X!==null&&(X=X.dehydrated,X===null||rH(X)||nH(X)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===w)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===w)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function v1(){var w=t;v4===null?v4=[w]:v4.push(w)}function K0(){var w=t;if(v4!==null&&(v8++,v4[v8]!==w)){var Z=E(i0);if(!iF.has(Z)&&(iF.add(Z),v4!==null)){for(var X="",z=0;z<=v8;z++){var v=v4[z],H=z===v8?w:v;for(v=z+1+". "+v;30>v.length;)v+=" ";v+=H+`
|
|
108
|
+
`,X+=v}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
|
+
`,Z,X)}}}function Q3(w){w===void 0||w===null||p5(w)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",t,typeof w)}function KY(){var w=E(i0);rF.has(w)||(rF.add(w),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",w))}function _5(){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 yB(w,Z){if(BX)return!1;if(Z===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.",t),!1;w.length!==Z.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`,t,"["+Z.join(", ")+"]","["+w.join(", ")+"]");for(var X=0;X<Z.length&&X<w.length;X++)if(!l2(w[X],Z[X]))return!1;return!0}function SB(w,Z,X,z,v,H){if(z8=H,i0=Z,v4=w!==null?w._debugHookTypes:null,v8=-1,BX=w!==null&&w.type!==Z.type,Object.prototype.toString.call(X)==="[object AsyncFunction]"||Object.prototype.toString.call(X)==="[object AsyncGeneratorFunction]")H=E(i0),wb.has(H)||(wb.add(H),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.",H===null?"An unknown Component":"<"+H+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,Y0.H=w!==null&&w.memoizedState!==null?$b:v4!==null?nF:Zb,b7=H=(Z.mode&P2)!==l0;var W=pg(X,z,v);if(b7=!1,s3&&(W=dB(Z,X,z,v)),H){I1(!0);try{W=dB(Z,X,z,v)}finally{I1(!1)}}return dU(w,Z),W}function dU(w,Z){Z._debugHookTypes=v4,Z.dependencies===null?G8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:G8}):Z.dependencies._debugThenableState=G8,Y0.H=HX;var X=E1!==null&&E1.next!==null;if(z8=0,v4=t=S5=E1=i0=null,v8=-1,w!==null&&(w.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Oz=!1,vX=0,G8=null,X)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");w===null||d5||(w=w.dependencies,w!==null&&XY(w)&&(d5=!0)),YX?(YX=!1,w=!0):w=!1,w&&(Z=E(Z)||"Unknown",pF.has(Z)||wb.has(Z)||(pF.add(Z),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 dB(w,Z,X,z){i0=w;var v=0;do{if(s3&&(G8=null),vX=0,s3=!1,v>=lh)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v+=1,BX=!1,S5=E1=null,w.updateQueue!=null){var H=w.updateQueue;H.lastEffect=null,H.events=null,H.stores=null,H.memoCache!=null&&(H.memoCache.index=0)}v8=-1,Y0.H=oF,H=pg(Z,X,z)}while(s3);return H}function YP(){var w=Y0.H,Z=w.useState()[0];return Z=typeof Z.then==="function"?W$(Z):Z,w=w.useState()[0],(E1!==null?E1.memoizedState:null)!==w&&(i0.flags|=1024),Z}function DB(){var w=Cz!==0;return Cz=0,w}function jB(w,Z,X){Z.updateQueue=w.updateQueue,Z.flags=(Z.mode&f4)!==l0?Z.flags&-402655237:Z.flags&-2053,w.lanes&=~X}function EB(w){if(Oz){for(w=w.memoizedState;w!==null;){var Z=w.queue;Z!==null&&(Z.pending=null),w=w.next}Oz=!1}z8=0,v4=S5=E1=i0=null,v8=-1,t=null,s3=!1,vX=Cz=0,G8=null}function D2(){var w={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return S5===null?i0.memoizedState=S5=w:S5=S5.next=w,S5}function V1(){if(E1===null){var w=i0.alternate;w=w!==null?w.memoizedState:null}else w=E1.next;var Z=S5===null?i0.memoizedState:S5.next;if(Z!==null)S5=Z,E1=w;else{if(w===null){if(i0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}E1=w,w={memoizedState:E1.memoizedState,baseState:E1.baseState,baseQueue:E1.baseQueue,queue:E1.queue,next:null},S5===null?i0.memoizedState=S5=w:S5=S5.next=w}return S5}function UY(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function W$(w){var Z=vX;return vX+=1,G8===null&&(G8=_U()),w=CU(G8,w,Z),Z=i0,(S5===null?Z.memoizedState:S5.next)===null&&(Z=Z.alternate,Y0.H=Z!==null&&Z.memoizedState!==null?$b:Zb),w}function f8(w){if(w!==null&&typeof w==="object"){if(typeof w.then==="function")return W$(w);if(w.$$typeof===W6)return X5(w)}throw Error("An unsupported type was passed to use(): "+String(w))}function n9(w){var Z=null,X=i0.updateQueue;if(X!==null&&(Z=X.memoCache),Z==null){var z=i0.alternate;z!==null&&(z=z.updateQueue,z!==null&&(z=z.memoCache,z!=null&&(Z={data:z.data.map(function(v){return v.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),X===null&&(X=UY(),i0.updateQueue=X),X.memoCache=Z,X=Z.data[Z.index],X===void 0||BX)for(X=Z.data[Z.index]=Array(w),z=0;z<w;z++)X[z]=Ff;else X.length!==w&&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.",X.length,w);return Z.index++,X}function M4(w,Z){return typeof Z==="function"?Z(w):Z}function uB(w,Z,X){var z=D2();if(X!==void 0){var v=X(Z);if(b7){I1(!0);try{X(Z)}finally{I1(!1)}}}else v=Z;return z.memoizedState=z.baseState=v,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:v},z.queue=w,w=w.dispatch=HP.bind(null,i0,w),[z.memoizedState,w]}function W3(w){var Z=V1();return lB(Z,E1,w)}function lB(w,Z,X){var z=w.queue;if(z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");z.lastRenderedReducer=X;var v=w.baseQueue,H=z.pending;if(H!==null){if(v!==null){var W=v.next;v.next=H.next,H.next=W}Z.baseQueue!==v&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=v=H,z.pending=null}if(H=w.baseState,v===null)w.memoizedState=H;else{Z=v.next;var q=W=null,T=null,_=Z,y=!1;do{var d=_.lane&-536870913;if(d!==_.lane?(X1&d)===d:(z8&d)===d){var h=_.revertLane;if(h===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),d===G7&&(y=!0);else if((z8&h)===h){_=_.next,h===G7&&(y=!0);continue}else d={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},T===null?(q=T=d,W=H):T=T.next=d,i0.lanes|=h,e8|=h;d=_.action,b7&&X(H,d),H=_.hasEagerState?_.eagerState:X(H,d)}else h={lane:d,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},T===null?(q=T=h,W=H):T=T.next=h,i0.lanes|=d,e8|=d;_=_.next}while(_!==null&&_!==Z);if(T===null?W=H:T.next=q,!l2(H,w.memoizedState)&&(d5=!0,y&&(X=a3,X!==null)))throw X;w.memoizedState=H,w.baseState=W,w.baseQueue=T,z.lastRenderedState=H}return v===null&&(z.lanes=0),[w.memoizedState,z.dispatch]}function K$(w){var Z=V1(),X=Z.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=w;var{dispatch:z,pending:v}=X,H=Z.memoizedState;if(v!==null){X.pending=null;var W=v=v.next;do H=w(H,W.action),W=W.next;while(W!==v);l2(H,Z.memoizedState)||(d5=!0),Z.memoizedState=H,Z.baseQueue===null&&(Z.baseState=H),X.lastRenderedState=H}return[H,z]}function cB(w,Z,X){var z=i0,v=D2();if(U1){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var H=X();o3||H===X()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),o3=!0)}else{if(H=Z(),o3||(X=Z(),l2(H,X)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),o3=!0)),u1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(X1&127)!==0||DU(z,Z,H)}return v.memoizedState=H,X={value:H,getSnapshot:Z},v.queue=X,FY(EU.bind(null,z,X,w),[w]),z.flags|=2048,U3(G4|i2,{destroy:void 0},jU.bind(null,z,X,H,Z),null),H}function qY(w,Z,X){var z=i0,v=V1(),H=U1;if(H){if(X===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");X=X()}else if(X=Z(),!o3){var W=Z();l2(X,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),o3=!0)}if(W=!l2((E1||v).memoizedState,X))v.memoizedState=X,d5=!0;v=v.queue;var q=EU.bind(null,z,v,w);if(Xw(2048,i2,q,[w]),v.getSnapshot!==Z||W||S5!==null&&S5.memoizedState.tag&G4){if(z.flags|=2048,U3(G4|i2,{destroy:void 0},jU.bind(null,z,v,X,Z),null),u1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");H||(z8&127)!==0||DU(z,Z,X)}return X}function DU(w,Z,X){w.flags|=16384,w={getSnapshot:Z,value:X},Z=i0.updateQueue,Z===null?(Z=UY(),i0.updateQueue=Z,Z.stores=[w]):(X=Z.stores,X===null?Z.stores=[w]:X.push(w))}function jU(w,Z,X,z){Z.value=X,Z.getSnapshot=z,uU(Z)&&lU(w)}function EU(w,Z,X){return X(function(){uU(Z)&&(w6(2,"updateSyncExternalStore()",w),lU(w))})}function uU(w){var Z=w.getSnapshot;w=w.value;try{var X=Z();return!l2(w,X)}catch(z){return!0}}function lU(w){var Z=x2(w,2);Z!==null&&F5(Z,w,2)}function aB(w){var Z=D2();if(typeof w==="function"){var X=w;if(w=X(),b7){I1(!0);try{X()}finally{I1(!1)}}}return Z.memoizedState=Z.baseState=w,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:M4,lastRenderedState:w},Z}function iB(w){w=aB(w);var Z=w.queue,X=vq.bind(null,i0,Z);return Z.dispatch=X,[w.memoizedState,X]}function pB(w){var Z=D2();Z.memoizedState=Z.baseState=w;var X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=X,Z=GH.bind(null,i0,!0,X),X.dispatch=Z,[w,Z]}function cU(w,Z){var X=V1();return aU(X,E1,w,Z)}function aU(w,Z,X,z){return w.baseState=X,lB(w,E1,typeof z==="function"?z:M4)}function iU(w,Z){var X=V1();if(E1!==null)return aU(X,E1,w,Z);return X.baseState=w,[w,X.queue.dispatch]}function zP(w,Z,X,z,v){if(CY(w))throw Error("Cannot update form state while rendering.");if(w=Z.action,w!==null){var H={payload:v,action:w,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){H.listeners.push(W)}};Y0.T!==null?X(!0):H.isTransition=!1,z(H),X=Z.pending,X===null?(H.next=Z.pending=H,pU(Z,H)):(H.next=X.next,Z.pending=X.next=H)}}function pU(w,Z){var{action:X,payload:z}=Z,v=w.state;if(Z.isTransition){var H=Y0.T,W={};W._updatedFibers=new Set,Y0.T=W;try{var q=X(v,z),T=Y0.S;T!==null&&T(W,q),rU(w,Z,q)}catch(_){rB(w,Z,_)}finally{H!==null&&W.types!==null&&(H.types!==null&&H.types!==W.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."),H.types=W.types),Y0.T=H,H===null&&W._updatedFibers&&(w=W._updatedFibers.size,W._updatedFibers.clear(),10<w&&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{W=X(v,z),rU(w,Z,W)}catch(_){rB(w,Z,_)}}function rU(w,Z,X){X!==null&&typeof X==="object"&&typeof X.then==="function"?(Y0.asyncTransitions++,X.then(OY,OY),X.then(function(z){nU(w,Z,z)},function(z){return rB(w,Z,z)}),Z.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.")):nU(w,Z,X)}function nU(w,Z,X){Z.status="fulfilled",Z.value=X,oU(Z),w.state=X,Z=w.pending,Z!==null&&(X=Z.next,X===Z?w.pending=null:(X=X.next,Z.next=X,pU(w,X)))}function rB(w,Z,X){var z=w.pending;if(w.pending=null,z!==null){z=z.next;do Z.status="rejected",Z.reason=X,oU(Z),Z=Z.next;while(Z!==z)}w.action=null}function oU(w){w=w.listeners;for(var Z=0;Z<w.length;Z++)(0,w[Z])()}function sU(w,Z){return Z}function K3(w,Z){if(U1){var X=u1.formState;if(X!==null){w:{var z=i0;if(U1){if(o1){Z:{var v=o1;for(var H=J4;v.nodeType!==8;){if(!H){v=null;break Z}if(v=fw(v.nextSibling),v===null){v=null;break Z}}H=v.data,v=H===Ob||H===RN?v:null}if(v){o1=fw(v.nextSibling),z=v.data===Ob;break w}}O8(z)}z=!1}z&&(Z=X[0])}}return X=D2(),X.memoizedState=X.baseState=Z,z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sU,lastRenderedState:Z},X.queue=z,X=vq.bind(null,i0,z),z.dispatch=X,z=aB(!1),H=GH.bind(null,i0,!1,z.queue),z=D2(),v={state:Z,dispatch:null,action:w,pending:null},z.queue=v,X=zP.bind(null,i0,v,H,X),v.dispatch=X,z.memoizedState=w,[Z,X,!1]}function LY(w){var Z=V1();return tU(Z,E1,w)}function tU(w,Z,X){if(Z=lB(w,Z,sU)[0],w=W3(M4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var z=W$(Z)}catch(W){if(W===i3)throw Nz;throw W}else z=Z;Z=V1();var v=Z.queue,H=v.dispatch;return X!==Z.memoizedState&&(i0.flags|=2048,U3(G4|i2,{destroy:void 0},GP.bind(null,v,X),null)),[z,H,w]}function GP(w,Z){w.action=Z}function kY(w){var Z=V1(),X=E1;if(X!==null)return tU(Z,X,w);V1(),Z=Z.memoizedState,X=V1();var z=X.queue.dispatch;return X.memoizedState=w,[Z,z,!1]}function U3(w,Z,X,z){return w={tag:w,create:X,deps:z,inst:Z,next:null},Z=i0.updateQueue,Z===null&&(Z=UY(),i0.updateQueue=Z),X=Z.lastEffect,X===null?Z.lastEffect=w.next=w:(z=X.next,X.next=w,w.next=z,Z.lastEffect=w),w}function nB(w){var Z=D2();return w={current:w},Z.memoizedState=w}function o9(w,Z,X,z){var v=D2();i0.flags|=w,v.memoizedState=U3(G4|Z,{destroy:void 0},X,z===void 0?null:z)}function Xw(w,Z,X,z){var v=V1();z=z===void 0?null:z;var H=v.memoizedState.inst;E1!==null&&z!==null&&yB(z,E1.memoizedState.deps)?v.memoizedState=U3(Z,H,X,z):(i0.flags|=w,v.memoizedState=U3(G4|Z,H,X,z))}function FY(w,Z){(i0.mode&f4)!==l0?o9(276826112,i2,w,Z):o9(8390656,i2,w,Z)}function vP(w){i0.flags|=4;var Z=i0.updateQueue;if(Z===null)Z=UY(),i0.updateQueue=Z,Z.events=[w];else{var X=Z.events;X===null?Z.events=[w]:X.push(w)}}function oB(w){var Z=D2(),X={impl:w};return Z.memoizedState=X,function(){if((F1&n5)!==Q2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return X.impl.apply(void 0,arguments)}}function NY(w){var Z=V1().memoizedState;return vP({ref:Z,nextImpl:w}),function(){if((F1&n5)!==Q2)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function sB(w,Z){var X=4194308;return(i0.mode&f4)!==l0&&(X|=134217728),o9(X,dw,w,Z)}function eU(w,Z){if(typeof Z==="function"){w=w();var X=Z(w);return function(){typeof X==="function"?X():Z(null)}}if(Z!==null&&Z!==void 0)return Z.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(Z).join(", ")+"}"),w=w(),Z.current=w,function(){Z.current=null}}function tB(w,Z,X){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),X=X!==null&&X!==void 0?X.concat([w]):null;var z=4194308;(i0.mode&f4)!==l0&&(z|=134217728),o9(z,dw,eU.bind(null,Z,w),X)}function TY(w,Z,X){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),X=X!==null&&X!==void 0?X.concat([w]):null,Xw(4,dw,eU.bind(null,Z,w),X)}function eB(w,Z){return D2().memoizedState=[w,Z===void 0?null:Z],w}function IY(w,Z){var X=V1();Z=Z===void 0?null:Z;var z=X.memoizedState;if(Z!==null&&yB(Z,z[1]))return z[0];return X.memoizedState=[w,Z],w}function wH(w,Z){var X=D2();Z=Z===void 0?null:Z;var z=w();if(b7){I1(!0);try{w()}finally{I1(!1)}}return X.memoizedState=[z,Z],z}function _Y(w,Z){var X=V1();Z=Z===void 0?null:Z;var z=X.memoizedState;if(Z!==null&&yB(Z,z[1]))return z[0];if(z=w(),b7){I1(!0);try{w()}finally{I1(!1)}}return X.memoizedState=[z,Z],z}function ZH(w,Z){var X=D2();return $H(X,w,Z)}function wq(w,Z){var X=V1();return $q(X,E1.memoizedState,w,Z)}function Zq(w,Z){var X=V1();return E1===null?$H(X,w,Z):$q(X,E1.memoizedState,w,Z)}function $H(w,Z,X){if(X===void 0||(z8&1073741824)!==0&&(X1&261930)===0)return w.memoizedState=Z;return w.memoizedState=X,w=XL(),i0.lanes|=w,e8|=w,X}function $q(w,Z,X,z){if(l2(X,Z))return X;if(r3.current!==null)return w=$H(w,X,z),l2(w,Z)||(d5=!0),w;if((z8&42)===0||(z8&1073741824)!==0&&(X1&261930)===0)return d5=!0,w.memoizedState=X;return w=XL(),i0.lanes|=w,e8|=w,Z}function OY(){Y0.asyncTransitions--}function Xq(w,Z,X,z,v){var H=m1.p;m1.p=H!==0&&H<P4?H:P4;var W=Y0.T,q={};q._updatedFibers=new Set,Y0.T=q,GH(w,!1,Z,X);try{var T=v(),_=Y0.S;if(_!==null&&_(q,T),T!==null&&typeof T==="object"&&typeof T.then==="function"){Y0.asyncTransitions++,T.then(OY,OY);var y=XP(T,z);U$(w,Z,y,Pw(w))}else U$(w,Z,z,Pw(w))}catch(d){U$(w,Z,{then:function(){},status:"rejected",reason:d},Pw(w))}finally{m1.p=H,W!==null&&q.types!==null&&(W.types!==null&&W.types!==q.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."),W.types=q.types),Y0.T=W,W===null&&q._updatedFibers&&(w=q._updatedFibers.size,q._updatedFibers.clear(),10<w&&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 XH(w,Z,X,z){if(w.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var v=Jq(w).queue;ZP(w),Xq(w,v,Z,I7,X===null?k:function(){return Yq(w),X(z)})}function Jq(w){var Z=w.memoizedState;if(Z!==null)return Z;Z={memoizedState:I7,baseState:I7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:M4,lastRenderedState:I7},next:null};var X={};return Z.next={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:M4,lastRenderedState:X},next:null},w.memoizedState=Z,w=w.alternate,w!==null&&(w.memoizedState=Z),Z}function Yq(w){Y0.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=Jq(w);Z.next===null&&(Z=w.alternate.memoizedState),U$(w,Z.next.queue,{},Pw(w))}function JH(){var w=aB(!1);return w=Xq.bind(null,i0,w.queue,!0,!1),D2().memoizedState=w,[!1,w]}function zq(){var w=W3(M4)[0],Z=V1().memoizedState;return[typeof w==="boolean"?w:W$(w),Z]}function Gq(){var w=K$(M4)[0],Z=V1().memoizedState;return[typeof w==="boolean"?w:W$(w),Z]}function s9(){return X5(OX)}function YH(){var w=D2(),Z=u1.identifierPrefix;if(U1){var X=Z8,z=w8;X=(z&~(1<<32-j2(z)-1)).toString(32)+X,Z="_"+Z+"R_"+X,X=Cz++,0<X&&(Z+="H"+X.toString(32)),Z+="_"}else X=uh++,Z="_"+Z+"r_"+X.toString(32)+"_";return w.memoizedState=Z}function zH(){return D2().memoizedState=BP.bind(null,i0)}function BP(w,Z){for(var X=w.return;X!==null;){switch(X.tag){case 24:case 3:var z=Pw(X),v=M8(z),H=x8(X,v,z);H!==null&&(w6(z,"refresh()",w),F5(H,X,z),g$(H,X,z)),w=CB(),Z!==null&&Z!==void 0&&H!==null&&console.error("The seed argument is not enabled outside experimental channels."),v.payload={cache:w};return}X=X.return}}function HP(w,Z,X){var z=arguments;typeof z[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()."),z=Pw(w);var v={lane:z,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};CY(w)?Bq(Z,v):(v=WB(w,Z,v,z),v!==null&&(w6(z,"dispatch()",w),F5(v,w,z),Hq(v,Z,z)))}function vq(w,Z,X){var z=arguments;typeof z[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()."),z=Pw(w),U$(w,Z,X,z)&&w6(z,"setState()",w)}function U$(w,Z,X,z){var v={lane:z,revertLane:0,gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null};if(CY(w))Bq(Z,v);else{var H=w.alternate;if(w.lanes===0&&(H===null||H.lanes===0)&&(H=Z.lastRenderedReducer,H!==null)){var W=Y0.H;Y0.H=V4;try{var q=Z.lastRenderedState,T=H(q,X);if(v.hasEagerState=!0,v.eagerState=T,l2(T,q))return tJ(w,Z,v,0),u1===null&&sJ(),!1}catch(_){}finally{Y0.H=W}}if(X=WB(w,Z,v,z),X!==null)return F5(X,w,z),Hq(X,Z,z),!0}return!1}function GH(w,Z,X,z){if(Y0.T===null&&G7===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."),z={lane:2,revertLane:SH(),gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null},CY(w)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=WB(w,X,z,2),Z!==null&&(w6(2,"setOptimistic()",w),F5(Z,w,2))}function CY(w){var Z=w.alternate;return w===i0||Z!==null&&Z===i0}function Bq(w,Z){s3=Oz=!0;var X=w.pending;X===null?Z.next=Z:(Z.next=X.next,X.next=Z),w.pending=Z}function Hq(w,Z,X){if((X&4194048)!==0){var z=Z.lanes;z&=w.pendingLanes,X|=z,Z.lanes=X,u6(w,X)}}function vH(w){if(w!==null&&typeof w!=="function"){var Z=String(w);GN.has(Z)||(GN.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",w))}}function BH(w,Z,X,z){var v=w.memoizedState,H=X(z,v);if(w.mode&P2){I1(!0);try{H=X(z,v)}finally{I1(!1)}}H===void 0&&(Z=Z0(Z)||"Component",XN.has(Z)||(XN.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),v=H===null||H===void 0?v:B1({},v,H),w.memoizedState=v,w.lanes===0&&(w.updateQueue.baseState=v)}function gq(w,Z,X,z,v,H,W){var q=w.stateNode;if(typeof q.shouldComponentUpdate==="function"){if(X=q.shouldComponentUpdate(z,H,W),w.mode&P2){I1(!0);try{X=q.shouldComponentUpdate(z,H,W)}finally{I1(!1)}}return X===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z0(Z)||"Component"),X}return Z.prototype&&Z.prototype.isPureReactComponent?!J$(X,z)||!J$(v,H):!0}function bq(w,Z,X,z){var v=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(X,z),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(X,z),Z.state!==v&&(w=E(w)||"Component",tF.has(w)||(tF.add(w),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",w)),Xb.enqueueReplaceState(Z,Z.state,null))}function t9(w,Z){var X=Z;if("ref"in Z){X={};for(var z in Z)z!=="ref"&&(X[z]=Z[z])}if(w=w.defaultProps){X===Z&&(X=B1({},X));for(var v in w)X[v]===void 0&&(X[v]=w[v])}return X}function Qq(w){Vg(w),console.warn(`%s
|
|
121
|
+
|
|
122
|
+
%s
|
|
123
|
+
`,t3?"An error occurred in the <"+t3+"> 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 Wq(w){var Z=t3?"The above error occurred in the <"+t3+"> component.":"The above error occurred in one of your React components.",X="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Jb||"Anonymous")+".");if(typeof w==="object"&&w!==null&&typeof w.environmentName==="string"){var z=w.environmentName;w=[`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,w,Z,X].slice(0),typeof w[0]==="string"?w.splice(0,1,lN+" "+w[0],cN,sz+z+sz,aN):w.splice(0,0,lN,cN,sz+z+sz,aN),w.unshift(console),z=BV.apply(console.error,w),z()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,w,Z,X)}function Kq(w){Vg(w)}function AY(w,Z){try{t3=Z.source?E(Z.source):null,Jb=null;var X=Z.value;if(Y0.actQueue!==null)Y0.thrownErrors.push(X);else{var z=w.onUncaughtError;z(X,{componentStack:Z.stack})}}catch(v){setTimeout(function(){throw v})}}function Uq(w,Z,X){try{t3=X.source?E(X.source):null,Jb=E(Z);var z=w.onCaughtError;z(X.value,{componentStack:X.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function HH(w,Z,X){return X=M8(X),X.tag=sg,X.payload={element:null},X.callback=function(){b0(Z.source,AY,w,Z)},X}function gH(w){return w=M8(w),w.tag=sg,w}function bH(w,Z,X,z){var v=X.type.getDerivedStateFromError;if(typeof v==="function"){var H=z.value;w.payload=function(){return v(H)},w.callback=function(){BU(X),b0(z.source,Uq,Z,X,z)}}var W=X.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&(w.callback=function(){BU(X),b0(z.source,Uq,Z,X,z),typeof v!=="function"&&(Z9===null?Z9=new Set([this]):Z9.add(this)),dh(this,z),typeof v==="function"||(X.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.",E(X)||"Unknown")})}function gP(w,Z,X,z,v){if(X.flags|=32768,q6&&_$(w,v),z!==null&&typeof z==="object"&&typeof z.then==="function"){if(Z=X.alternate,Z!==null&&b3(Z,X,v,!0),U1&&(F6=!0),X=Sw.current,X!==null){switch(X.tag){case 31:case 13:return z4===null?yY():X.alternate===null&&b5===H8&&(b5=xz),X.flags&=-257,X.flags|=65536,X.lanes=v,z===Tz?X.flags|=16384:(Z=X.updateQueue,Z===null?X.updateQueue=new Set([z]):Z.add(z),hH(w,z,v)),!1;case 22:return X.flags|=65536,z===Tz?X.flags|=16384:(Z=X.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([z])},X.updateQueue=Z):(X=Z.retryQueue,X===null?Z.retryQueue=new Set([z]):X.add(z)),hH(w,z,v)),!1}throw Error("Unexpected Suspense handler tag ("+X.tag+"). This is a bug in React.")}return hH(w,z,v),yY(),!1}if(U1)return F6=!0,Z=Sw.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=v,z!==jg&&z$(Aw(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:z}),X))):(z!==jg&&z$(Aw(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:z}),X)),w=w.current.alternate,w.flags|=65536,v&=-v,w.lanes|=v,z=Aw(z,X),v=HH(w.stateNode,z,v),QY(w,v),b5!==s8&&(b5=Q7)),!1;var H=Aw(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:z}),X);if(UX===null?UX=[H]:UX.push(H),b5!==s8&&(b5=Q7),Z===null)return!0;z=Aw(z,X),X=Z;do{switch(X.tag){case 3:return X.flags|=65536,w=v&-v,X.lanes|=w,w=HH(X.stateNode,z,w),QY(X,w),!1;case 1:if(Z=X.type,H=X.stateNode,(X.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||H!==null&&typeof H.componentDidCatch==="function"&&(Z9===null||!Z9.has(H))))return X.flags|=65536,v&=-v,X.lanes|=v,v=gH(v),bH(v,w,X,z),QY(X,v),!1}X=X.return}while(X!==null);return!1}function k2(w,Z,X,z){Z.child=w===null?EF(Z,null,X,z):g7(Z,w.child,X,z)}function qq(w,Z,X,z,v){X=X.render;var H=Z.ref;if("ref"in z){var W={};for(var q in z)q!=="ref"&&(W[q]=z[q])}else W=z;if(p9(Z),z=SB(w,Z,X,W,H,v),q=DB(),w!==null&&!d5)return jB(w,Z,v),r6(w,Z,v);return U1&&q&&FB(Z),Z.flags|=1,k2(w,Z,z,v),Z.child}function Lq(w,Z,X,z,v){if(w===null){var H=X.type;if(typeof H==="function"&&!UB(H)&&H.defaultProps===void 0&&X.compare===null)return X=l9(H),Z.tag=15,Z.type=X,WH(Z,H),kq(w,Z,X,z,v);return w=qB(X.type,null,z,Z,Z.mode,v),w.ref=Z.ref,w.return=Z,Z.child=w}if(H=w.child,!FH(w,v)){var W=H.memoizedProps;if(X=X.compare,X=X!==null?X:J$,X(W,z)&&w.ref===Z.ref)return r6(w,Z,v)}return Z.flags|=1,w=c6(H,z),w.ref=Z.ref,w.return=Z,Z.child=w}function kq(w,Z,X,z,v){if(w!==null){var H=w.memoizedProps;if(J$(H,z)&&w.ref===Z.ref&&Z.type===w.type)if(d5=!1,Z.pendingProps=z=H,FH(w,v))(w.flags&131072)!==0&&(d5=!0);else return Z.lanes=w.lanes,r6(w,Z,v)}return QH(w,Z,X,z,v)}function Fq(w,Z,X,z){var v=z.children,H=w!==null?w.memoizedState:null;if(w===null&&Z.stateNode===null&&(Z.stateNode={_visibility:a$,_pendingMarkers:null,_retryCache:null,_transitions:null}),z.mode==="hidden"){if((Z.flags&128)!==0){if(H=H!==null?H.baseLanes|X:X,w!==null){z=Z.child=w.child;for(v=0;z!==null;)v=v|z.lanes|z.childLanes,z=z.sibling;z=v&~H}else z=0,Z.child=null;return Nq(w,Z,H,X,z)}if((X&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},w!==null&&GY(Z,H!==null?H.cachePool:null),H!==null?yU(Z,H):hB(Z),SU(Z);else return z=Z.lanes=536870912,Nq(w,Z,H!==null?H.baseLanes|X:X,X,z)}else H!==null?(GY(Z,H.cachePool),yU(Z,H),P8(Z),Z.memoizedState=null):(w!==null&&GY(Z,null),hB(Z),P8(Z));return k2(w,Z,v,X),Z.child}function q$(w,Z){return w!==null&&w.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:a$,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function Nq(w,Z,X,z,v){var H=xB();return H=H===null?null:{parent:R5._currentValue,pool:H},Z.memoizedState={baseLanes:X,cachePool:H},w!==null&&GY(Z,null),hB(Z),SU(Z),w!==null&&b3(w,Z,z,!0),Z.childLanes=v,null}function MY(w,Z){var X=Z.hidden;return X!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
135
|
+
- <Activity %s>
|
|
136
|
+
+ <Activity %s>`,X===!0?"hidden":X===!1?"hidden={false}":"hidden={...}",X?'mode="hidden"':'mode="visible"'),Z=mY({mode:Z.mode,children:Z.children},w.mode),Z.ref=w.ref,w.child=Z,Z.return=w,Z}function Tq(w,Z,X){return g7(Z,w.child,null,X),w=MY(Z,Z.pendingProps),w.flags|=2,mw(Z),Z.memoizedState=null,w}function bP(w,Z,X){var z=Z.pendingProps,v=(Z.flags&128)!==0;if(Z.flags&=-129,w===null){if(U1){if(z.mode==="hidden")return w=MY(Z,z),Z.lanes=536870912,q$(null,w);if(RB(Z),(w=o1)?(X=pL(w,J4),X=X!==null&&X.data===k7?X:null,X!==null&&(z={dehydrated:X,treeContext:WU(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=z,z=bU(X),z.return=Z,Z.child=z,T2=Z,o1=null)):X=null,X===null)throw ZY(Z,w),O8(Z);return Z.lanes=536870912,null}return MY(Z,z)}var H=w.memoizedState;if(H!==null){var W=H.dehydrated;if(RB(Z),v)if(Z.flags&256)Z.flags&=-257,Z=Tq(w,Z,X);else if(Z.memoizedState!==null)Z.child=w.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(UU(),(X&536870912)!==0&&RY(Z),d5||b3(w,Z,X,!1),v=(X&w.childLanes)!==0,d5||v){if(z=u1,z!==null&&(W=o4(z,X),W!==0&&W!==H.retryLane))throw H.retryLane=W,x2(w,W),F5(z,w,W),Yb;yY(),Z=Tq(w,Z,X)}else w=H.treeContext,o1=fw(W.nextSibling),T2=Z,U1=!0,c8=null,F6=!1,yw=null,J4=!1,w!==null&&KU(Z,w),Z=MY(Z,z),Z.flags|=4096;return Z}return H=w.child,z={mode:z.mode,children:z.children},(X&536870912)!==0&&(X&w.lanes)!==0&&RY(Z),w=c6(H,z),w.ref=Z.ref,Z.child=w,w.return=Z,w}function xY(w,Z){var X=Z.ref;if(X===null)w!==null&&w.ref!==null&&(Z.flags|=4194816);else{if(typeof X!=="function"&&typeof X!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(w===null||w.ref!==X)Z.flags|=4194816}}function QH(w,Z,X,z,v){if(X.prototype&&typeof X.prototype.render==="function"){var H=Z0(X)||"Unknown";vN[H]||(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.",H,H),vN[H]=!0)}if(Z.mode&P2&&h4.recordLegacyContextWarning(Z,null),w===null&&(WH(Z,Z.type),X.contextTypes&&(H=Z0(X)||"Unknown",HN[H]||(HN[H]=!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)",H)))),p9(Z),X=SB(w,Z,X,z,void 0,v),z=DB(),w!==null&&!d5)return jB(w,Z,v),r6(w,Z,v);return U1&&z&&FB(Z),Z.flags|=1,k2(w,Z,X,v),Z.child}function Iq(w,Z,X,z,v,H){if(p9(Z),v8=-1,BX=w!==null&&w.type!==Z.type,Z.updateQueue=null,X=dB(Z,z,X,v),dU(w,Z),z=DB(),w!==null&&!d5)return jB(w,Z,H),r6(w,Z,H);return U1&&z&&FB(Z),Z.flags|=1,k2(w,Z,X,H),Z.child}function _q(w,Z,X,z,v){switch(Q(Z)){case!1:var H=Z.stateNode,W=new Z.type(Z.memoizedProps,H.context).state;H.updater.enqueueSetState(H,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,H=Error("Simulated error coming from DevTools");var q=v&-v;if(Z.lanes|=q,W=u1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");q=gH(q),bH(q,W,Z,Aw(H,Z)),QY(Z,q)}if(p9(Z),Z.stateNode===null){if(W=l8,H=X.contextType,"contextType"in X&&H!==null&&(H===void 0||H.$$typeof!==W6)&&!zN.has(X)&&(zN.add(X),q=H===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 H!=="object"?" However, it is set to a "+typeof H+".":H.$$typeof===zg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(H).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Z0(X)||"Component",q)),typeof H==="object"&&H!==null&&(W=X5(H)),H=new X(z,W),Z.mode&P2){I1(!0);try{H=new X(z,W)}finally{I1(!1)}}if(W=Z.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=Xb,Z.stateNode=H,H._reactInternals=Z,H._reactInternalInstance=sF,typeof X.getDerivedStateFromProps==="function"&&W===null&&(W=Z0(X)||"Component",eF.has(W)||(eF.add(W),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.",W,H.state===null?"null":"undefined",W))),typeof X.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"){var T=q=W=null;if(typeof H.componentWillMount==="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof H.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps==="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?q="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps==="function"&&(q="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate==="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?T="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate==="function"&&(T="UNSAFE_componentWillUpdate"),W!==null||q!==null||T!==null){H=Z0(X)||"Component";var _=typeof X.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ZN.has(H)||(ZN.add(H),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`,H,_,W!==null?`
|
|
142
|
+
`+W:"",q!==null?`
|
|
143
|
+
`+q:"",T!==null?`
|
|
144
|
+
`+T:""))}}H=Z.stateNode,W=Z0(X)||"Component",H.render||(X.prototype&&typeof X.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!H.getInitialState||H.getInitialState.isReactClassApproved||H.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?",W),H.getDefaultProps&&!H.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.",W),H.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),X.childContextTypes&&!YN.has(X)&&(YN.add(X),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),X.contextTypes&&!JN.has(X)&&(JN.add(X),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)",W)),typeof H.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.",W),X.prototype&&X.prototype.isPureReactComponent&&typeof H.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.",Z0(X)||"A pure component"),typeof H.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",W),typeof H.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().",W),typeof H.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof H.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),q=H.props!==z,H.props!==void 0&&q&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),H.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.",W,W),typeof H.getSnapshotBeforeUpdate!=="function"||typeof H.componentDidUpdate==="function"||wN.has(X)||(wN.add(X),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z0(X))),typeof H.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof H.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof X.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(q=H.state)&&(typeof q!=="object"||p5(q))&&console.error("%s.state: must be set to an object or null",W),typeof H.getChildContext==="function"&&typeof X.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),H=Z.stateNode,H.props=z,H.state=Z.memoizedState,H.refs={},PB(Z),W=X.contextType,H.context=typeof W==="object"&&W!==null?X5(W):l8,H.state===z&&(W=Z0(X)||"Component",$N.has(W)||($N.add(W),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.",W))),Z.mode&P2&&h4.recordLegacyContextWarning(Z,H),h4.recordUnsafeLifecycleWarnings(Z,H),H.state=Z.memoizedState,W=X.getDerivedStateFromProps,typeof W==="function"&&(BH(Z,X,W,z),H.state=Z.memoizedState),typeof X.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(W=H.state,typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount(),W!==H.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",E(Z)||"Component"),Xb.enqueueReplaceState(H,H.state,null)),Q$(Z,z,H,v),b$(),H.state=Z.memoizedState),typeof H.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&f4)!==l0&&(Z.flags|=134217728),H=!0}else if(w===null){H=Z.stateNode;var y=Z.memoizedProps;q=t9(X,y),H.props=q;var d=H.context;T=X.contextType,W=l8,typeof T==="object"&&T!==null&&(W=X5(T)),_=X.getDerivedStateFromProps,T=typeof _==="function"||typeof H.getSnapshotBeforeUpdate==="function",y=Z.pendingProps!==y,T||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(y||d!==W)&&bq(Z,H,z,W),o8=!1;var h=Z.memoizedState;H.state=h,Q$(Z,z,H,v),b$(),d=Z.memoizedState,y||h!==d||o8?(typeof _==="function"&&(BH(Z,X,_,z),d=Z.memoizedState),(q=o8||gq(Z,X,q,z,h,d,W))?(T||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&f4)!==l0&&(Z.flags|=134217728)):(typeof H.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&f4)!==l0&&(Z.flags|=134217728),Z.memoizedProps=z,Z.memoizedState=d),H.props=z,H.state=d,H.context=W,H=q):(typeof H.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&f4)!==l0&&(Z.flags|=134217728),H=!1)}else{H=Z.stateNode,fB(w,Z),W=Z.memoizedProps,T=t9(X,W),H.props=T,_=Z.pendingProps,h=H.context,d=X.contextType,q=l8,typeof d==="object"&&d!==null&&(q=X5(d)),y=X.getDerivedStateFromProps,(d=typeof y==="function"||typeof H.getSnapshotBeforeUpdate==="function")||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(W!==_||h!==q)&&bq(Z,H,z,q),o8=!1,h=Z.memoizedState,H.state=h,Q$(Z,z,H,v),b$();var n=Z.memoizedState;W!==_||h!==n||o8||w!==null&&w.dependencies!==null&&XY(w.dependencies)?(typeof y==="function"&&(BH(Z,X,y,z),n=Z.memoizedState),(T=o8||gq(Z,X,T,z,h,n,q)||w!==null&&w.dependencies!==null&&XY(w.dependencies))?(d||typeof H.UNSAFE_componentWillUpdate!=="function"&&typeof H.componentWillUpdate!=="function"||(typeof H.componentWillUpdate==="function"&&H.componentWillUpdate(z,n,q),typeof H.UNSAFE_componentWillUpdate==="function"&&H.UNSAFE_componentWillUpdate(z,n,q)),typeof H.componentDidUpdate==="function"&&(Z.flags|=4),typeof H.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof H.componentDidUpdate!=="function"||W===w.memoizedProps&&h===w.memoizedState||(Z.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||W===w.memoizedProps&&h===w.memoizedState||(Z.flags|=1024),Z.memoizedProps=z,Z.memoizedState=n),H.props=z,H.state=n,H.context=q,H=T):(typeof H.componentDidUpdate!=="function"||W===w.memoizedProps&&h===w.memoizedState||(Z.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||W===w.memoizedProps&&h===w.memoizedState||(Z.flags|=1024),H=!1)}if(q=H,xY(w,Z),W=(Z.flags&128)!==0,q||W){if(q=Z.stateNode,L5(Z),W&&typeof X.getDerivedStateFromError!=="function")X=null,c2=-1;else if(X=AF(q),Z.mode&P2){I1(!0);try{AF(q)}finally{I1(!1)}}Z.flags|=1,w!==null&&W?(Z.child=g7(Z,w.child,null,v),Z.child=g7(Z,null,X,v)):k2(w,Z,X,v),Z.memoizedState=q.state,w=Z.child}else w=r6(w,Z,v);return v=Z.stateNode,H&&v.props!==z&&(e3||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",E(Z)||"a component"),e3=!0),w}function Oq(w,Z,X,z){return i9(),Z.flags|=256,k2(w,Z,X,z),Z.child}function WH(w,Z){Z&&Z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
145
|
+
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&(w=Z0(Z)||"Unknown",gN[w]||(console.error("%s: Function components do not support getDerivedStateFromProps.",w),gN[w]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=Z0(Z)||"Unknown",BN[Z]||(console.error("%s: Function components do not support contextType.",Z),BN[Z]=!0))}function KH(w){return{baseLanes:w,cachePool:IU()}}function UH(w,Z,X){return w=w!==null?w.childLanes&~X:0,Z&&(w|=vw),w}function Cq(w,Z,X){var z,v=Z.pendingProps;g(Z)&&(Z.flags|=128);var H=!1,W=(Z.flags&128)!==0;if((z=W)||(z=w!==null&&w.memoizedState===null?!1:(P5.current&GX)!==0),z&&(H=!0,Z.flags&=-129),z=(Z.flags&32)!==0,Z.flags&=-33,w===null){if(U1){if(H?m8(Z):P8(Z),(w=o1)?(X=pL(w,J4),X=X!==null&&X.data!==k7?X:null,X!==null&&(z={dehydrated:X,treeContext:WU(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=z,z=bU(X),z.return=Z,Z.child=z,T2=Z,o1=null)):X=null,X===null)throw ZY(Z,w),O8(Z);return nH(X)?Z.lanes=32:Z.lanes=536870912,null}var q=v.children;if(v=v.fallback,H){P8(Z);var T=Z.mode;return q=mY({mode:"hidden",children:q},T),v=c9(v,T,X,null),q.return=Z,v.return=Z,q.sibling=v,Z.child=q,v=Z.child,v.memoizedState=KH(X),v.childLanes=UH(w,z,X),Z.memoizedState=zb,q$(null,v)}return m8(Z),qH(Z,q)}var _=w.memoizedState;if(_!==null){var y=_.dehydrated;if(y!==null){if(W)Z.flags&256?(m8(Z),Z.flags&=-257,Z=LH(w,Z,X)):Z.memoizedState!==null?(P8(Z),Z.child=w.child,Z.flags|=128,Z=null):(P8(Z),q=v.fallback,T=Z.mode,v=mY({mode:"visible",children:v.children},T),q=c9(q,T,X,null),q.flags|=2,v.return=Z,q.return=Z,v.sibling=q,Z.child=v,g7(Z,w.child,null,X),v=Z.child,v.memoizedState=KH(X),v.childLanes=UH(w,z,X),Z.memoizedState=zb,Z=q$(null,v));else if(m8(Z),UU(),(X&536870912)!==0&&RY(Z),nH(y)){if(z=y.nextSibling&&y.nextSibling.dataset,z){q=z.dgst;var d=z.msg;T=z.stck;var h=z.cstck}H=d,z=q,v=T,y=h,q=H,T=y,q=q?Error(q):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),q.stack=v||"",q.digest=z,z=T===void 0?null:T,v={value:q,source:null,stack:z},typeof z==="string"&&Dg.set(q,v),z$(v),Z=LH(w,Z,X)}else if(d5||b3(w,Z,X,!1),z=(X&w.childLanes)!==0,d5||z){if(z=u1,z!==null&&(v=o4(z,X),v!==0&&v!==_.retryLane))throw _.retryLane=v,x2(w,v),F5(z,w,v),Yb;rH(y)||yY(),Z=LH(w,Z,X)}else rH(y)?(Z.flags|=192,Z.child=w.child,Z=null):(w=_.treeContext,o1=fw(y.nextSibling),T2=Z,U1=!0,c8=null,F6=!1,yw=null,J4=!1,w!==null&&KU(Z,w),Z=qH(Z,v.children),Z.flags|=4096);return Z}}if(H)return P8(Z),q=v.fallback,T=Z.mode,h=w.child,y=h.sibling,v=c6(h,{mode:"hidden",children:v.children}),v.subtreeFlags=h.subtreeFlags&65011712,y!==null?q=c6(y,q):(q=c9(q,T,X,null),q.flags|=2),q.return=Z,v.return=Z,v.sibling=q,Z.child=v,q$(null,v),v=Z.child,q=w.child.memoizedState,q===null?q=KH(X):(T=q.cachePool,T!==null?(h=R5._currentValue,T=T.parent!==h?{parent:h,pool:h}:T):T=IU(),q={baseLanes:q.baseLanes|X,cachePool:T}),v.memoizedState=q,v.childLanes=UH(w,z,X),Z.memoizedState=zb,q$(w.child,v);return _!==null&&(X&62914560)===X&&(X&w.lanes)!==0&&RY(Z),m8(Z),X=w.child,w=X.sibling,X=c6(X,{mode:"visible",children:v.children}),X.return=Z,X.sibling=null,w!==null&&(z=Z.deletions,z===null?(Z.deletions=[w],Z.flags|=16):z.push(w)),Z.child=X,Z.memoizedState=null,X}function qH(w,Z){return Z=mY({mode:"visible",children:Z},w.mode),Z.return=w,w.child=Z}function mY(w,Z){return w=F(22,w,null,Z),w.lanes=0,w}function LH(w,Z,X){return g7(Z,w.child,null,X),w=qH(Z,Z.pendingProps.children),w.flags|=2,Z.memoizedState=null,w}function Aq(w,Z,X){w.lanes|=Z;var z=w.alternate;z!==null&&(z.lanes|=Z),_B(w.return,Z,X)}function kH(w,Z,X,z,v,H){var W=w.memoizedState;W===null?w.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:z,tail:X,tailMode:v,treeForkCount:H}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=z,W.tail=X,W.tailMode=v,W.treeForkCount=H)}function Mq(w,Z,X){var z=Z.pendingProps,v=z.revealOrder,H=z.tail,W=z.children,q=P5.current;if((z=(q&GX)!==0)?(q=q&n3|GX,Z.flags|=128):q&=n3,q0(P5,q,Z),q=v==null?"null":v,v!=="forwards"&&v!=="unstable_legacy-backwards"&&v!=="together"&&v!=="independent"&&!bN[q])if(bN[q]=!0,v==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(v==="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 v==="string")switch(v.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.',v,v.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.',v,v.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',v)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',v);if(q=H==null?"null":H,!Mz[q])if(H==null){if(v==="forwards"||v==="backwards"||v==="unstable_legacy-backwards")Mz[q]=!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".')}else H!=="visible"&&H!=="collapsed"&&H!=="hidden"?(Mz[q]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',H)):v!=="forwards"&&v!=="backwards"&&v!=="unstable_legacy-backwards"&&(Mz[q]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',H));w:if((v==="forwards"||v==="backwards"||v==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(p5(W)){for(q=0;q<W.length;q++)if(!hU(W[q],q))break w}else if(q=j(W),typeof q==="function"){if(q=q.call(W))for(var T=q.next(),_=0;!T.done;T=q.next()){if(!hU(T.value,_))break w;_++}}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?',v);if(k2(w,Z,W,X),U1?(_8(),W=i$):W=0,!z&&w!==null&&(w.flags&128)!==0)w:for(w=Z.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&Aq(w,X,Z);else if(w.tag===19)Aq(w,X,Z);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===Z)break w;for(;w.sibling===null;){if(w.return===null||w.return===Z)break w;w=w.return}w.sibling.return=w.return,w=w.sibling}switch(v){case"forwards":X=Z.child;for(v=null;X!==null;)w=X.alternate,w!==null&&WY(w)===null&&(v=X),X=X.sibling;X=v,X===null?(v=Z.child,Z.child=null):(v=X.sibling,X.sibling=null),kH(Z,!1,v,X,H,W);break;case"backwards":case"unstable_legacy-backwards":X=null,v=Z.child;for(Z.child=null;v!==null;){if(w=v.alternate,w!==null&&WY(w)===null){Z.child=v;break}w=v.sibling,v.sibling=X,X=v,v=w}kH(Z,!0,X,null,H,W);break;case"together":kH(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function r6(w,Z,X){if(w!==null&&(Z.dependencies=w.dependencies),c2=-1,e8|=Z.lanes,(X&Z.childLanes)===0)if(w!==null){if(b3(w,Z,X,!1),(X&Z.childLanes)===0)return null}else return null;if(w!==null&&Z.child!==w.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){w=Z.child,X=c6(w,w.pendingProps),Z.child=X;for(X.return=Z;w.sibling!==null;)w=w.sibling,X=X.sibling=c6(w,w.pendingProps),X.return=Z;X.sibling=null}return Z.child}function FH(w,Z){if((w.lanes&Z)!==0)return!0;return w=w.dependencies,w!==null&&XY(w)?!0:!1}function QP(w,Z,X){switch(Z.tag){case 3:e(Z,Z.stateNode.containerInfo),C8(Z,R5,w.memoizedState.cache),i9();break;case 27:case 5:o(Z);break;case 4:e(Z,Z.stateNode.containerInfo);break;case 10:C8(Z,Z.type,Z.memoizedProps.value);break;case 12:(X&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var z=Z.stateNode;z.effectDuration=-0,z.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,RB(Z),null;break;case 13:if(z=Z.memoizedState,z!==null){if(z.dehydrated!==null)return m8(Z),Z.flags|=128,null;if((X&Z.child.childLanes)!==0)return Cq(w,Z,X);return m8(Z),w=r6(w,Z,X),w!==null?w.sibling:null}m8(Z);break;case 19:var v=(w.flags&128)!==0;if(z=(X&Z.childLanes)!==0,z||(b3(w,Z,X,!1),z=(X&Z.childLanes)!==0),v){if(z)return Mq(w,Z,X);Z.flags|=128}if(v=Z.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),q0(P5,P5.current,Z),z)break;else return null;case 22:return Z.lanes=0,Fq(w,Z,X,Z.pendingProps);case 24:C8(Z,R5,w.memoizedState.cache)}return r6(w,Z,X)}function NH(w,Z,X){if(Z._debugNeedsRemount&&w!==null){X=qB(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),X._debugStack=Z._debugStack,X._debugTask=Z._debugTask;var z=Z.return;if(z===null)throw Error("Cannot swap the root fiber.");if(w.alternate=null,Z.alternate=null,X.index=Z.index,X.sibling=Z.sibling,X.return=Z.return,X.ref=Z.ref,X._debugInfo=Z._debugInfo,Z===z.child)z.child=X;else{var v=z.child;if(v===null)throw Error("Expected parent to have a child.");for(;v.sibling!==Z;)if(v=v.sibling,v===null)throw Error("Expected to find the previous sibling.");v.sibling=X}return Z=z.deletions,Z===null?(z.deletions=[w],z.flags|=16):Z.push(w),X.flags|=2,X}if(w!==null)if(w.memoizedProps!==Z.pendingProps||Z.type!==w.type)d5=!0;else{if(!FH(w,X)&&(Z.flags&128)===0)return d5=!1,QP(w,Z,X);d5=(w.flags&131072)!==0?!0:!1}else{if(d5=!1,z=U1)_8(),z=(Z.flags&1048576)!==0;z&&(z=Z.index,_8(),QU(Z,i$,z))}switch(Z.lanes=0,Z.tag){case 16:w:if(z=Z.pendingProps,w=A8(Z.elementType),Z.type=w,typeof w==="function")UB(w)?(z=t9(w,z),Z.tag=1,Z.type=w=l9(w),Z=_q(null,Z,w,z,X)):(Z.tag=0,WH(Z,w),Z.type=w=l9(w),Z=QH(null,Z,w,z,X));else{if(w!==void 0&&w!==null){if(v=w.$$typeof,v===h$){Z.tag=11,Z.type=w=KB(w),Z=qq(null,Z,w,z,X);break w}else if(v===oY){Z.tag=14,Z=Lq(null,Z,w,z,X);break w}}throw Z="",w!==null&&typeof w==="object"&&w.$$typeof===hw&&(Z=" Did you wrap a component in React.lazy() more than once?"),X=Z0(w)||w,Error("Element type is invalid. Received a promise that resolves to: "+X+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return QH(w,Z,Z.type,Z.pendingProps,X);case 1:return z=Z.type,v=t9(z,Z.pendingProps),_q(w,Z,z,v,X);case 3:w:{if(e(Z,Z.stateNode.containerInfo),w===null)throw Error("Should have a current fiber. This is a bug in React.");z=Z.pendingProps;var H=Z.memoizedState;v=H.element,fB(w,Z),Q$(Z,z,null,X);var W=Z.memoizedState;if(z=W.cache,C8(Z,R5,z),z!==H.cache&&OB(Z,[R5],X,!0),b$(),z=W.element,H.isDehydrated)if(H={element:z,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=H,Z.memoizedState=H,Z.flags&256){Z=Oq(w,Z,z,X);break w}else if(z!==v){v=Aw(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),z$(v),Z=Oq(w,Z,z,X);break w}else{switch(w=Z.stateNode.containerInfo,w.nodeType){case 9:w=w.body;break;default:w=w.nodeName==="HTML"?w.ownerDocument.body:w}o1=fw(w.firstChild),T2=Z,U1=!0,c8=null,F6=!1,yw=null,J4=!0,X=EF(Z,null,z,X);for(Z.child=X;X;)X.flags=X.flags&-3|4096,X=X.sibling}else{if(i9(),z===v){Z=r6(w,Z,X);break w}k2(w,Z,z,X)}Z=Z.child}return Z;case 26:return xY(w,Z),w===null?(X=eL(Z.type,null,Z.pendingProps,null))?Z.memoizedState=X:U1||(X=Z.type,w=Z.pendingProps,z=k0(S8.current),z=jY(z).createElement(X),z[N2]=Z,z[E2]=w,F2(z,X,w),V0(z),Z.stateNode=z):Z.memoizedState=eL(Z.type,w.memoizedProps,Z.pendingProps,w.memoizedState),null;case 27:return o(Z),w===null&&U1&&(z=k0(S8.current),v=u(),z=Z.stateNode=sL(Z.type,Z.pendingProps,z,v,!1),F6||(v=DL(z,Z.type,Z.pendingProps,v),v!==null&&(a9(Z,0).serverProps=v)),T2=Z,J4=!0,v=o1,R8(Z.type)?(xb=v,o1=fw(z.firstChild)):o1=v),k2(w,Z,Z.pendingProps.children,X),xY(w,Z),w===null&&(Z.flags|=4194304),Z.child;case 5:return w===null&&U1&&(H=u(),z=GB(Z.type,H.ancestorInfo),v=o1,(W=!v)||(W=Zf(v,Z.type,Z.pendingProps,J4),W!==null?(Z.stateNode=W,F6||(H=DL(W,Z.type,Z.pendingProps,H),H!==null&&(a9(Z,0).serverProps=H)),T2=Z,o1=fw(W.firstChild),J4=!1,H=!0):H=!1,W=!H),W&&(z&&ZY(Z,v),O8(Z))),o(Z),v=Z.type,H=Z.pendingProps,W=w!==null?w.memoizedProps:null,z=H.children,iH(v,H)?z=null:W!==null&&iH(v,W)&&(Z.flags|=32),Z.memoizedState!==null&&(v=SB(w,Z,YP,null,null,X),OX._currentValue=v),xY(w,Z),k2(w,Z,z,X),Z.child;case 6:return w===null&&U1&&(X=Z.pendingProps,w=u(),z=w.ancestorInfo.current,X=z!=null?aJ(X,z.tag,w.ancestorInfo.implicitRootScope):!0,w=o1,(z=!w)||(z=$f(w,Z.pendingProps,J4),z!==null?(Z.stateNode=z,T2=Z,o1=null,z=!0):z=!1,z=!z),z&&(X&&ZY(Z,w),O8(Z))),null;case 13:return Cq(w,Z,X);case 4:return e(Z,Z.stateNode.containerInfo),z=Z.pendingProps,w===null?Z.child=g7(Z,null,z,X):k2(w,Z,z,X),Z.child;case 11:return qq(w,Z,Z.type,Z.pendingProps,X);case 7:return k2(w,Z,Z.pendingProps,X),Z.child;case 8:return k2(w,Z,Z.pendingProps.children,X),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,z=Z.stateNode,z.effectDuration=-0,z.passiveEffectDuration=-0,k2(w,Z,Z.pendingProps.children,X),Z.child;case 10:return z=Z.type,v=Z.pendingProps,H=v.value,"value"in v||QN||(QN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),C8(Z,z,H),k2(w,Z,v.children,X),Z.child;case 9:return v=Z.type._context,z=Z.pendingProps.children,typeof z!=="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."),p9(Z),v=X5(v),z=pg(z,v,void 0),Z.flags|=1,k2(w,Z,z,X),Z.child;case 14:return Lq(w,Z,Z.type,Z.pendingProps,X);case 15:return kq(w,Z,Z.type,Z.pendingProps,X);case 19:return Mq(w,Z,X);case 31:return bP(w,Z,X);case 22:return Fq(w,Z,X,Z.pendingProps);case 24:return p9(Z),z=X5(R5),w===null?(v=xB(),v===null&&(v=u1,H=CB(),v.pooledCache=H,r9(H),H!==null&&(v.pooledCacheLanes|=X),v=H),Z.memoizedState={parent:z,cache:v},PB(Z),C8(Z,R5,v)):((w.lanes&X)!==0&&(fB(w,Z),Q$(Z,null,null,X),b$()),v=w.memoizedState,H=Z.memoizedState,v.parent!==z?(v={parent:z,cache:z},Z.memoizedState=v,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=v),C8(Z,R5,z)):(z=H.cache,C8(Z,R5,z),z!==v.cache&&OB(Z,[R5],X,!0))),k2(w,Z,Z.pendingProps.children,X),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function n6(w){w.flags|=4}function TH(w,Z,X,z,v){if(Z=(w.mode&Vh)!==l0)Z=!1;if(Z){if(w.flags|=16777216,(v&335544128)===v)if(w.stateNode.complete)w.flags|=8192;else if(GL())w.flags|=8192;else throw H7=Tz,ng}else w.flags&=-16777217}function xq(w,Z){if(Z.type!=="stylesheet"||(Z.state.loading&B4)!==T7)w.flags&=-16777217;else if(w.flags|=16777216,!Jk(Z))if(GL())w.flags|=8192;else throw H7=Tz,ng}function PY(w,Z){Z!==null&&(w.flags|=4),w.flags&16384&&(Z=w.tag!==22?i5():536870912,w.lanes|=Z,U7|=Z)}function L$(w,Z){if(!U1)switch(w.tailMode){case"hidden":Z=w.tail;for(var X=null;Z!==null;)Z.alternate!==null&&(X=Z),Z=Z.sibling;X===null?w.tail=null:X.sibling=null;break;case"collapsed":X=w.tail;for(var z=null;X!==null;)X.alternate!==null&&(z=X),X=X.sibling;z===null?Z||w.tail===null?w.tail=null:w.tail.sibling=null:z.sibling=null}}function a1(w){var Z=w.alternate!==null&&w.alternate.child===w.child,X=0,z=0;if(Z)if((w.mode&Z1)!==l0){for(var{selfBaseDuration:v,child:H}=w;H!==null;)X|=H.lanes|H.childLanes,z|=H.subtreeFlags&65011712,z|=H.flags&65011712,v+=H.treeBaseDuration,H=H.sibling;w.treeBaseDuration=v}else for(v=w.child;v!==null;)X|=v.lanes|v.childLanes,z|=v.subtreeFlags&65011712,z|=v.flags&65011712,v.return=w,v=v.sibling;else if((w.mode&Z1)!==l0){v=w.actualDuration,H=w.selfBaseDuration;for(var W=w.child;W!==null;)X|=W.lanes|W.childLanes,z|=W.subtreeFlags,z|=W.flags,v+=W.actualDuration,H+=W.treeBaseDuration,W=W.sibling;w.actualDuration=v,w.treeBaseDuration=H}else for(v=w.child;v!==null;)X|=v.lanes|v.childLanes,z|=v.subtreeFlags,z|=v.flags,v.return=w,v=v.sibling;return w.subtreeFlags|=z,w.childLanes=X,Z}function WP(w,Z,X){var z=Z.pendingProps;switch(NB(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return a1(Z),null;case 1:return a1(Z),null;case 3:if(X=Z.stateNode,z=null,w!==null&&(z=w.memoizedState.cache),Z.memoizedState.cache!==z&&(Z.flags|=2048),i6(R5,Z),v0(Z),X.pendingContext&&(X.context=X.pendingContext,X.pendingContext=null),w===null||w.child===null)g3(Z)?(IB(),n6(Z)):w===null||w.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,TB());return a1(Z),null;case 26:var{type:v,memoizedState:H}=Z;return w===null?(n6(Z),H!==null?(a1(Z),xq(Z,H)):(a1(Z),TH(Z,v,null,z,X))):H?H!==w.memoizedState?(n6(Z),a1(Z),xq(Z,H)):(a1(Z),Z.flags&=-16777217):(w=w.memoizedProps,w!==z&&n6(Z),a1(Z),TH(Z,v,w,z,X)),null;case 27:if(l(Z),X=k0(S8.current),v=Z.type,w!==null&&Z.stateNode!=null)w.memoizedProps!==z&&n6(Z);else{if(!z){if(Z.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 a1(Z),null}w=u(),g3(Z)?qU(Z,w):(w=sL(v,z,X,w,!0),Z.stateNode=w,n6(Z))}return a1(Z),null;case 5:if(l(Z),v=Z.type,w!==null&&Z.stateNode!=null)w.memoizedProps!==z&&n6(Z);else{if(!z){if(Z.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 a1(Z),null}var W=u();if(g3(Z))qU(Z,W);else{switch(H=k0(S8.current),GB(v,W.ancestorInfo),W=W.context,H=jY(H),W){case GZ:H=H.createElementNS(P3,v);break;case rz:H=H.createElementNS(Xz,v);break;default:switch(v){case"svg":H=H.createElementNS(P3,v);break;case"math":H=H.createElementNS(Xz,v);break;case"script":H=H.createElement("div"),H.innerHTML="<script></script>",H=H.removeChild(H.firstChild);break;case"select":H=typeof z.is==="string"?H.createElement("select",{is:z.is}):H.createElement("select"),z.multiple?H.multiple=!0:z.size&&(H.size=z.size);break;default:H=typeof z.is==="string"?H.createElement(v,{is:z.is}):H.createElement(v),v.indexOf("-")===-1&&(v!==v.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",v),Object.prototype.toString.call(H)!=="[object HTMLUnknownElement]"||m4.call(SN,v)||(SN[v]=!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.",v)))}}H[N2]=Z,H[E2]=z;w:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)H.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break w;for(;W.sibling===null;){if(W.return===null||W.return===Z)break w;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=H;w:switch(F2(H,v,z),v){case"button":case"input":case"select":case"textarea":z=!!z.autoFocus;break w;case"img":z=!0;break w;default:z=!1}z&&n6(Z)}}return a1(Z),TH(Z,Z.type,w===null?null:w.memoizedProps,Z.pendingProps,X),null;case 6:if(w&&Z.stateNode!=null)w.memoizedProps!==z&&n6(Z);else{if(typeof z!=="string"&&Z.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(w=k0(S8.current),X=u(),g3(Z)){if(w=Z.stateNode,X=Z.memoizedProps,v=!F6,z=null,H=T2,H!==null)switch(H.tag){case 3:v&&(v=nL(w,X,z),v!==null&&(a9(Z,0).serverProps=v));break;case 27:case 5:z=H.memoizedProps,v&&(v=nL(w,X,z),v!==null&&(a9(Z,0).serverProps=v))}w[N2]=Z,w=w.nodeValue===X||z!==null&&z.suppressHydrationWarning===!0||VL(w.nodeValue,X)?!0:!1,w||O8(Z,!0)}else v=X.ancestorInfo.current,v!=null&&aJ(z,v.tag,X.ancestorInfo.implicitRootScope),w=jY(w).createTextNode(z),w[N2]=Z,Z.stateNode=w}return a1(Z),null;case 31:if(X=Z.memoizedState,w===null||w.memoizedState!==null){if(z=g3(Z),X!==null){if(w===null){if(!z)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(w=Z.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");w[N2]=Z,a1(Z),(Z.mode&Z1)!==l0&&X!==null&&(w=Z.child,w!==null&&(Z.treeBaseDuration-=w.treeBaseDuration))}else IB(),i9(),(Z.flags&128)===0&&(X=Z.memoizedState=null),Z.flags|=4,a1(Z),(Z.mode&Z1)!==l0&&X!==null&&(w=Z.child,w!==null&&(Z.treeBaseDuration-=w.treeBaseDuration));w=!1}else X=TB(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=X),w=!0;if(!w){if(Z.flags&256)return mw(Z),Z;return mw(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return a1(Z),null;case 13:if(z=Z.memoizedState,w===null||w.memoizedState!==null&&w.memoizedState.dehydrated!==null){if(v=z,H=g3(Z),v!==null&&v.dehydrated!==null){if(w===null){if(!H)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(H=Z.memoizedState,H=H!==null?H.dehydrated:null,!H)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");H[N2]=Z,a1(Z),(Z.mode&Z1)!==l0&&v!==null&&(v=Z.child,v!==null&&(Z.treeBaseDuration-=v.treeBaseDuration))}else IB(),i9(),(Z.flags&128)===0&&(v=Z.memoizedState=null),Z.flags|=4,a1(Z),(Z.mode&Z1)!==l0&&v!==null&&(v=Z.child,v!==null&&(Z.treeBaseDuration-=v.treeBaseDuration));v=!1}else v=TB(),w!==null&&w.memoizedState!==null&&(w.memoizedState.hydrationErrors=v),v=!0;if(!v){if(Z.flags&256)return mw(Z),Z;return mw(Z),null}}if(mw(Z),(Z.flags&128)!==0)return Z.lanes=X,(Z.mode&Z1)!==l0&&B$(Z),Z;return X=z!==null,w=w!==null&&w.memoizedState!==null,X&&(z=Z.child,v=null,z.alternate!==null&&z.alternate.memoizedState!==null&&z.alternate.memoizedState.cachePool!==null&&(v=z.alternate.memoizedState.cachePool.pool),H=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(H=z.memoizedState.cachePool.pool),H!==v&&(z.flags|=2048)),X!==w&&X&&(Z.child.flags|=8192),PY(Z,Z.updateQueue),a1(Z),(Z.mode&Z1)!==l0&&X&&(w=Z.child,w!==null&&(Z.treeBaseDuration-=w.treeBaseDuration)),null;case 4:return v0(Z),w===null&&DH(Z.stateNode.containerInfo),a1(Z),null;case 10:return i6(Z.type,Z),a1(Z),null;case 19:if(G0(P5,Z),z=Z.memoizedState,z===null)return a1(Z),null;if(v=(Z.flags&128)!==0,H=z.rendering,H===null)if(v)L$(z,!1);else{if(b5!==H8||w!==null&&(w.flags&128)!==0)for(w=Z.child;w!==null;){if(H=WY(w),H!==null){Z.flags|=128,L$(z,!1),w=H.updateQueue,Z.updateQueue=w,PY(Z,w),Z.subtreeFlags=0,w=X;for(X=Z.child;X!==null;)gU(X,w),X=X.sibling;return q0(P5,P5.current&n3|GX,Z),U1&&a6(Z,z.treeForkCount),Z.child}w=w.sibling}z.tail!==null&&H2()>Rz&&(Z.flags|=128,v=!0,L$(z,!1),Z.lanes=4194304)}else{if(!v)if(w=WY(H),w!==null){if(Z.flags|=128,v=!0,w=w.updateQueue,Z.updateQueue=w,PY(Z,w),L$(z,!0),z.tail===null&&z.tailMode==="hidden"&&!H.alternate&&!U1)return a1(Z),null}else 2*H2()-z.renderingStartTime>Rz&&X!==536870912&&(Z.flags|=128,v=!0,L$(z,!1),Z.lanes=4194304);z.isBackwards?(H.sibling=Z.child,Z.child=H):(w=z.last,w!==null?w.sibling=H:Z.child=H,z.last=H)}if(z.tail!==null)return w=z.tail,z.rendering=w,z.tail=w.sibling,z.renderingStartTime=H2(),w.sibling=null,X=P5.current,X=v?X&n3|GX:X&n3,q0(P5,X,Z),U1&&a6(Z,z.treeForkCount),w;return a1(Z),null;case 22:case 23:return mw(Z),VB(Z),z=Z.memoizedState!==null,w!==null?w.memoizedState!==null!==z&&(Z.flags|=8192):z&&(Z.flags|=8192),z?(X&536870912)!==0&&(Z.flags&128)===0&&(a1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):a1(Z),X=Z.updateQueue,X!==null&&PY(Z,X.retryQueue),X=null,w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(X=w.memoizedState.cachePool.pool),z=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(z=Z.memoizedState.cachePool.pool),z!==X&&(Z.flags|=2048),w!==null&&G0(v7,Z),null;case 24:return X=null,w!==null&&(X=w.memoizedState.cache),Z.memoizedState.cache!==X&&(Z.flags|=2048),i6(R5,Z),a1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function KP(w,Z){switch(NB(Z),Z.tag){case 1:return w=Z.flags,w&65536?(Z.flags=w&-65537|128,(Z.mode&Z1)!==l0&&B$(Z),Z):null;case 3:return i6(R5,Z),v0(Z),w=Z.flags,(w&65536)!==0&&(w&128)===0?(Z.flags=w&-65537|128,Z):null;case 26:case 27:case 5:return l(Z),null;case 31:if(Z.memoizedState!==null){if(mw(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");i9()}return w=Z.flags,w&65536?(Z.flags=w&-65537|128,(Z.mode&Z1)!==l0&&B$(Z),Z):null;case 13:if(mw(Z),w=Z.memoizedState,w!==null&&w.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");i9()}return w=Z.flags,w&65536?(Z.flags=w&-65537|128,(Z.mode&Z1)!==l0&&B$(Z),Z):null;case 19:return G0(P5,Z),null;case 4:return v0(Z),null;case 10:return i6(Z.type,Z),null;case 22:case 23:return mw(Z),VB(Z),w!==null&&G0(v7,Z),w=Z.flags,w&65536?(Z.flags=w&-65537|128,(Z.mode&Z1)!==l0&&B$(Z),Z):null;case 24:return i6(R5,Z),null;case 25:return null;default:return null}}function mq(w,Z){switch(NB(Z),Z.tag){case 3:i6(R5,Z),v0(Z);break;case 26:case 27:case 5:l(Z);break;case 4:v0(Z);break;case 31:Z.memoizedState!==null&&mw(Z);break;case 13:mw(Z);break;case 19:G0(P5,Z);break;case 10:i6(Z.type,Z);break;case 22:case 23:mw(Z),VB(Z),w!==null&&G0(v7,Z);break;case 24:i6(R5,Z)}}function G6(w){return(w.mode&Z1)!==l0}function Pq(w,Z){G6(w)?(z6(),k$(Z,w),Y6()):k$(Z,w)}function IH(w,Z,X){G6(w)?(z6(),q3(X,w,Z),Y6()):q3(X,w,Z)}function k$(w,Z){try{var X=Z.updateQueue,z=X!==null?X.lastEffect:null;if(z!==null){var v=z.next;X=v;do{if((X.tag&w)===w&&(z=void 0,(w&a2)!==_z&&(JZ=!0),z=b0(Z,Dh,X),(w&a2)!==_z&&(JZ=!1),z!==void 0&&typeof z!=="function")){var H=void 0;H=(X.tag&dw)!==0?"useLayoutEffect":(X.tag&a2)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=z===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof z.then==="function"?`
|
|
146
|
+
|
|
147
|
+
It looks like you wrote `+H+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
148
|
+
|
|
149
|
+
`+H+`(() => {
|
|
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: "+z,b0(Z,function(q,T){console.error("%s must not return anything besides a function, which is used for clean-up.%s",q,T)},H,W)}X=X.next}while(X!==v)}}catch(q){x1(Z,Z.return,q)}}function q3(w,Z,X){try{var z=Z.updateQueue,v=z!==null?z.lastEffect:null;if(v!==null){var H=v.next;z=H;do{if((z.tag&w)===w){var W=z.inst,q=W.destroy;q!==void 0&&(W.destroy=void 0,(w&a2)!==_z&&(JZ=!0),v=Z,b0(v,jh,v,X,q),(w&a2)!==_z&&(JZ=!1))}z=z.next}while(z!==H)}}catch(T){x1(Z,Z.return,T)}}function fq(w,Z){G6(w)?(z6(),k$(Z,w),Y6()):k$(Z,w)}function _H(w,Z,X){G6(w)?(z6(),q3(X,w,Z),Y6()):q3(X,w,Z)}function hq(w){var Z=w.updateQueue;if(Z!==null){var X=w.stateNode;w.type.defaultProps||"ref"in w.memoizedProps||e3||(X.props!==w.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.",E(w)||"instance"),X.state!==w.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.",E(w)||"instance"));try{b0(w,RU,Z,X)}catch(z){x1(w,w.return,z)}}}function UP(w,Z,X){return w.getSnapshotBeforeUpdate(Z,X)}function qP(w,Z){var{memoizedProps:X,memoizedState:z}=Z;Z=w.stateNode,w.type.defaultProps||"ref"in w.memoizedProps||e3||(Z.props!==w.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.",E(w)||"instance"),Z.state!==w.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.",E(w)||"instance"));try{var v=t9(w.type,X),H=b0(w,UP,Z,v,z);X=WN,H!==void 0||X.has(w.type)||(X.add(w.type),b0(w,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",E(w))})),Z.__reactInternalSnapshotBeforeUpdate=H}catch(W){x1(w,w.return,W)}}function Vq(w,Z,X){X.props=t9(w.type,w.memoizedProps),X.state=w.memoizedState,G6(w)?(z6(),b0(w,hF,w,Z,X),Y6()):b0(w,hF,w,Z,X)}function LP(w){var Z=w.ref;if(Z!==null){switch(w.tag){case 26:case 27:case 5:var X=w.stateNode;break;case 30:X=w.stateNode;break;default:X=w.stateNode}if(typeof Z==="function")if(G6(w))try{z6(),w.refCleanup=Z(X)}finally{Y6()}else w.refCleanup=Z(X);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",E(w)),Z.current=X}}function F$(w,Z){try{b0(w,LP,w)}catch(X){x1(w,Z,X)}}function v6(w,Z){var{ref:X,refCleanup:z}=w;if(X!==null)if(typeof z==="function")try{if(G6(w))try{z6(),b0(w,z)}finally{Y6(w)}else b0(w,z)}catch(v){x1(w,Z,v)}finally{w.refCleanup=null,w=w.alternate,w!=null&&(w.refCleanup=null)}else if(typeof X==="function")try{if(G6(w))try{z6(),b0(w,X,null)}finally{Y6(w)}else b0(w,X,null)}catch(v){x1(w,Z,v)}else X.current=null}function Rq(w,Z,X,z){var v=w.memoizedProps,H=v.id,W=v.onCommit;v=v.onRender,Z=Z===null?"mount":"update",Lz&&(Z="nested-update"),typeof v==="function"&&v(H,Z,w.actualDuration,w.treeBaseDuration,w.actualStartTime,X),typeof W==="function"&&W(H,Z,z,X)}function kP(w,Z,X,z){var v=w.memoizedProps;w=v.id,v=v.onPostCommit,Z=Z===null?"mount":"update",Lz&&(Z="nested-update"),typeof v==="function"&&v(w,Z,z,X)}function yq(w){var{type:Z,memoizedProps:X,stateNode:z}=w;try{b0(w,lP,z,Z,X,w)}catch(v){x1(w,w.return,v)}}function OH(w,Z,X){try{b0(w,aP,w.stateNode,w.type,X,Z,w)}catch(z){x1(w,w.return,z)}}function Sq(w){return w.tag===5||w.tag===3||w.tag===26||w.tag===27&&R8(w.type)||w.tag===4}function CH(w){w:for(;;){for(;w.sibling===null;){if(w.return===null||Sq(w.return))return null;w=w.return}w.sibling.return=w.return;for(w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.tag===27&&R8(w.type))continue w;if(w.flags&2)continue w;if(w.child===null||w.tag===4)continue w;else w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function AH(w,Z,X){var z=w.tag;if(z===5||z===6)w=w.stateNode,Z?(cL(X),(X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X).insertBefore(w,Z)):(cL(X),Z=X.nodeType===9?X.body:X.nodeName==="HTML"?X.ownerDocument.body:X,Z.appendChild(w),X=X._reactRootContainer,X!==null&&X!==void 0||Z.onclick!==null||(Z.onclick=l6));else if(z!==4&&(z===27&&R8(w.type)&&(X=w.stateNode,Z=null),w=w.child,w!==null))for(AH(w,Z,X),w=w.sibling;w!==null;)AH(w,Z,X),w=w.sibling}function fY(w,Z,X){var z=w.tag;if(z===5||z===6)w=w.stateNode,Z?X.insertBefore(w,Z):X.appendChild(w);else if(z!==4&&(z===27&&R8(w.type)&&(X=w.stateNode),w=w.child,w!==null))for(fY(w,Z,X),w=w.sibling;w!==null;)fY(w,Z,X),w=w.sibling}function FP(w){for(var Z,X=w.return;X!==null;){if(Sq(X)){Z=X;break}X=X.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,X=CH(w),fY(w,X,Z);break;case 5:X=Z.stateNode,Z.flags&32&&(lL(X),Z.flags&=-33),Z=CH(w),fY(w,Z,X);break;case 3:case 4:Z=Z.stateNode.containerInfo,X=CH(w),AH(w,X,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dq(w){var{stateNode:Z,memoizedProps:X}=w;try{b0(w,Gf,w.type,X,Z,w)}catch(z){x1(w,w.return,z)}}function Dq(w,Z){return Z.tag===31?(Z=Z.memoizedState,w.memoizedState!==null&&Z===null):Z.tag===13?(w=w.memoizedState,Z=Z.memoizedState,w!==null&&w.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?w.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function NP(w,Z){if(w=w.containerInfo,Cb=tz,w=ZU(w),HB(w)){if("selectionStart"in w)var X={start:w.selectionStart,end:w.selectionEnd};else w:{X=(X=w.ownerDocument)&&X.defaultView||window;var z=X.getSelection&&X.getSelection();if(z&&z.rangeCount!==0){X=z.anchorNode;var{anchorOffset:v,focusNode:H}=z;z=z.focusOffset;try{X.nodeType,H.nodeType}catch(L0){X=null;break w}var W=0,q=-1,T=-1,_=0,y=0,d=w,h=null;Z:for(;;){for(var n;;){if(d!==X||v!==0&&d.nodeType!==3||(q=W+v),d!==H||z!==0&&d.nodeType!==3||(T=W+z),d.nodeType===3&&(W+=d.nodeValue.length),(n=d.firstChild)===null)break;h=d,d=n}for(;;){if(d===w)break Z;if(h===X&&++_===v&&(q=W),h===H&&++y===z&&(T=W),(n=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=n}X=q===-1||T===-1?null:{start:q,end:T}}else X=null}X=X||{start:0,end:0}}else X=null;Ab={focusedElem:w,selectionRange:X},tz=!1;for(b2=Z;b2!==null;)if(Z=b2,w=Z.child,(Z.subtreeFlags&1028)!==0&&w!==null)w.return=Z,b2=w;else for(;b2!==null;){switch(w=Z=b2,X=w.alternate,v=w.flags,w.tag){case 0:if((v&4)!==0&&(w=w.updateQueue,w=w!==null?w.events:null,w!==null))for(X=0;X<w.length;X++)v=w[X],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:(v&1024)!==0&&X!==null&&qP(w,X);break;case 3:if((v&1024)!==0){if(w=w.stateNode.containerInfo,X=w.nodeType,X===9)pH(w);else if(X===1)switch(w.nodeName){case"HEAD":case"HTML":case"BODY":pH(w);break;default:w.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((v&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(w=Z.sibling,w!==null){w.return=Z.return,b2=w;break}b2=Z.return}}function jq(w,Z,X){var z=Mw(),v=Z6(),H=X6(),W=J6(),q=X.flags;switch(X.tag){case 0:case 11:case 15:B6(w,X),q&4&&Pq(X,dw|G4);break;case 1:if(B6(w,X),q&4)if(w=X.stateNode,Z===null)X.type.defaultProps||"ref"in X.memoizedProps||e3||(w.props!==X.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.",E(X)||"instance"),w.state!==X.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.",E(X)||"instance")),G6(X)?(z6(),b0(X,rg,X,w),Y6()):b0(X,rg,X,w);else{var T=t9(X.type,Z.memoizedProps);Z=Z.memoizedState,X.type.defaultProps||"ref"in X.memoizedProps||e3||(w.props!==X.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.",E(X)||"instance"),w.state!==X.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.",E(X)||"instance")),G6(X)?(z6(),b0(X,mF,X,w,T,Z,w.__reactInternalSnapshotBeforeUpdate),Y6()):b0(X,mF,X,w,T,Z,w.__reactInternalSnapshotBeforeUpdate)}q&64&&hq(X),q&512&&F$(X,X.return);break;case 3:if(Z=p6(),B6(w,X),q&64&&(q=X.updateQueue,q!==null)){if(T=null,X.child!==null)switch(X.child.tag){case 27:case 5:T=X.child.stateNode;break;case 1:T=X.child.stateNode}try{b0(X,RU,q,T)}catch(y){x1(X,X.return,y)}}w.effectDuration+=YY(Z);break;case 27:Z===null&&q&4&&dq(X);case 26:case 5:if(B6(w,X),Z===null){if(q&4)yq(X);else if(q&64){w=X.type,Z=X.memoizedProps,T=X.stateNode;try{b0(X,cP,T,w,Z,X)}catch(y){x1(X,X.return,y)}}}q&512&&F$(X,X.return);break;case 12:if(q&4){q=p6(),B6(w,X),w=X.stateNode,w.effectDuration+=v$(q);try{b0(X,Rq,X,Z,a8,w.effectDuration)}catch(y){x1(X,X.return,y)}}else B6(w,X);break;case 31:B6(w,X),q&4&&lq(w,X);break;case 13:B6(w,X),q&4&&cq(w,X),q&64&&(w=X.memoizedState,w!==null&&(w=w.dehydrated,w!==null&&(q=mP.bind(null,X),Xf(w,q))));break;case 22:if(q=X.memoizedState!==null||B8,!q){Z=Z!==null&&Z.memoizedState!==null||D5,T=B8;var _=D5;B8=q,(D5=Z)&&!_?(H6(w,X,(X.subtreeFlags&8772)!==0),(X.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&nJ(X,S0,j0)):B6(w,X),B8=T,D5=_}break;case 30:break;default:B6(w,X)}(X.mode&Z1)!==l0&&0<=S0&&0<=j0&&((N5||0.05<g5)&&e4(X,S0,j0,g5,J5),X.alternate===null&&X.return!==null&&X.return.alternate!==null&&0.05<j0-S0&&(Dq(X.return.alternate,X.return)||t4(X,S0,j0,"Mount"))),xw(z),$6(v),J5=H,N5=W}function Eq(w){var Z=w.alternate;Z!==null&&(w.alternate=null,Eq(Z)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(Z=w.stateNode,Z!==null&&F0(Z)),w.stateNode=null,w._debugOwner=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}function o6(w,Z,X){for(X=X.child;X!==null;)uq(w,Z,X),X=X.sibling}function uq(w,Z,X){if(m2&&typeof m2.onCommitFiberUnmount==="function")try{m2.onCommitFiberUnmount(x3,X)}catch(_){U6||(U6=!0,console.error("React instrumentation encountered an error: %o",_))}var z=Mw(),v=Z6(),H=X6(),W=J6();switch(X.tag){case 26:D5||v6(X,Z),o6(w,Z,X),X.memoizedState?X.memoizedState.count--:X.stateNode&&(w=X.stateNode,w.parentNode.removeChild(w));break;case 27:D5||v6(X,Z);var q=j5,T=zw;R8(X.type)&&(j5=X.stateNode,zw=!1),o6(w,Z,X),b0(X,x$,X.stateNode),j5=q,zw=T;break;case 5:D5||v6(X,Z);case 6:if(q=j5,T=zw,j5=null,o6(w,Z,X),j5=q,zw=T,j5!==null)if(zw)try{b0(X,rP,j5,X.stateNode)}catch(_){x1(X,Z,_)}else try{b0(X,pP,j5,X.stateNode)}catch(_){x1(X,Z,_)}break;case 18:j5!==null&&(zw?(w=j5,aL(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,X.stateNode),O3(w)):aL(j5,X.stateNode));break;case 4:q=j5,T=zw,j5=X.stateNode.containerInfo,zw=!0,o6(w,Z,X),j5=q,zw=T;break;case 0:case 11:case 14:case 15:q3(a2,X,Z),D5||IH(X,Z,dw),o6(w,Z,X);break;case 1:D5||(v6(X,Z),q=X.stateNode,typeof q.componentWillUnmount==="function"&&Vq(X,Z,q)),o6(w,Z,X);break;case 21:o6(w,Z,X);break;case 22:D5=(q=D5)||X.memoizedState!==null,o6(w,Z,X),D5=q;break;default:o6(w,Z,X)}(X.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(X,S0,j0,g5,J5),xw(z),$6(v),J5=H,N5=W}function lq(w,Z){if(Z.memoizedState===null&&(w=Z.alternate,w!==null&&(w=w.memoizedState,w!==null))){w=w.dehydrated;try{b0(Z,Yf,w)}catch(X){x1(Z,Z.return,X)}}}function cq(w,Z){if(Z.memoizedState===null&&(w=Z.alternate,w!==null&&(w=w.memoizedState,w!==null&&(w=w.dehydrated,w!==null))))try{b0(Z,zf,w)}catch(X){x1(Z,Z.return,X)}}function TP(w){switch(w.tag){case 31:case 13:case 19:var Z=w.stateNode;return Z===null&&(Z=w.stateNode=new KN),Z;case 22:return w=w.stateNode,Z=w._retryCache,Z===null&&(Z=w._retryCache=new KN),Z;default:throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}}function hY(w,Z){var X=TP(w);Z.forEach(function(z){if(!X.has(z)){if(X.add(z),q6)if(wZ!==null&&ZZ!==null)_$(ZZ,wZ);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var v=PP.bind(null,w,z);z.then(v,v)}})}function Jw(w,Z){var X=Z.deletions;if(X!==null)for(var z=0;z<X.length;z++){var v=w,H=Z,W=X[z],q=Mw(),T=H;w:for(;T!==null;){switch(T.tag){case 27:if(R8(T.type)){j5=T.stateNode,zw=!1;break w}break;case 5:j5=T.stateNode,zw=!1;break w;case 3:case 4:j5=T.stateNode.containerInfo,zw=!0;break w}T=T.return}if(j5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");uq(v,H,W),j5=null,zw=!1,(W.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&t4(W,S0,j0,"Unmount"),xw(q),v=W,H=v.alternate,H!==null&&(H.return=null),v.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)aq(Z,w),Z=Z.sibling}function aq(w,Z){var X=Mw(),z=Z6(),v=X6(),H=J6(),W=w.alternate,q=w.flags;switch(w.tag){case 0:case 11:case 14:case 15:Jw(Z,w),Yw(w),q&4&&(q3(a2|G4,w,w.return),k$(a2|G4,w),IH(w,w.return,dw|G4));break;case 1:if(Jw(Z,w),Yw(w),q&512&&(D5||W===null||v6(W,W.return)),q&64&&B8&&(q=w.updateQueue,q!==null&&(W=q.callbacks,W!==null))){var T=q.shared.hiddenCallbacks;q.shared.hiddenCallbacks=T===null?W:T.concat(W)}break;case 26:if(T=R4,Jw(Z,w),Yw(w),q&512&&(D5||W===null||v6(W,W.return)),q&4){var _=W!==null?W.memoizedState:null;if(q=w.memoizedState,W===null)if(q===null)if(w.stateNode===null){w:{q=w.type,W=w.memoizedProps,T=T.ownerDocument||T;Z:switch(q){case"title":if(_=T.getElementsByTagName("title")[0],!_||_[y$]||_[N2]||_.namespaceURI===P3||_.hasAttribute("itemprop"))_=T.createElement(q),T.head.insertBefore(_,T.querySelector("head > title"));F2(_,q,W),_[N2]=w,V0(_),q=_;break w;case"link":var y=$k("link","href",T).get(q+(W.href||""));if(y){for(var d=0;d<y.length;d++)if(_=y[d],_.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&_.getAttribute("rel")===(W.rel==null?null:W.rel)&&_.getAttribute("title")===(W.title==null?null:W.title)&&_.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){y.splice(d,1);break Z}}_=T.createElement(q),F2(_,q,W),T.head.appendChild(_);break;case"meta":if(y=$k("meta","content",T).get(q+(W.content||""))){for(d=0;d<y.length;d++)if(_=y[d],K1(W.content,"content"),_.getAttribute("content")===(W.content==null?null:""+W.content)&&_.getAttribute("name")===(W.name==null?null:W.name)&&_.getAttribute("property")===(W.property==null?null:W.property)&&_.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&_.getAttribute("charset")===(W.charSet==null?null:W.charSet)){y.splice(d,1);break Z}}_=T.createElement(q),F2(_,q,W),T.head.appendChild(_);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+q+'". This is a bug in React.')}_[N2]=w,V0(_),q=_}w.stateNode=q}else Xk(T,w.type,w.stateNode);else w.stateNode=Zk(T,q,w.memoizedProps);else _!==q?(_===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):_.count--,q===null?Xk(T,w.type,w.stateNode):Zk(T,q,w.memoizedProps)):q===null&&w.stateNode!==null&&OH(w,w.memoizedProps,W.memoizedProps)}break;case 27:Jw(Z,w),Yw(w),q&512&&(D5||W===null||v6(W,W.return)),W!==null&&q&4&&OH(w,w.memoizedProps,W.memoizedProps);break;case 5:if(Jw(Z,w),Yw(w),q&512&&(D5||W===null||v6(W,W.return)),w.flags&32){T=w.stateNode;try{b0(w,lL,T)}catch(I0){x1(w,w.return,I0)}}q&4&&w.stateNode!=null&&(T=w.memoizedProps,OH(w,T,W!==null?W.memoizedProps:T)),q&1024&&(Gb=!0,w.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Jw(Z,w),Yw(w),q&4){if(w.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.");q=w.memoizedProps,W=W!==null?W.memoizedProps:q,T=w.stateNode;try{b0(w,iP,T,W,q)}catch(I0){x1(w,w.return,I0)}}break;case 3:if(T=p6(),nz=null,_=R4,R4=EY(Z.containerInfo),Jw(Z,w),R4=_,Yw(w),q&4&&W!==null&&W.memoizedState.isDehydrated)try{b0(w,Jf,Z.containerInfo)}catch(I0){x1(w,w.return,I0)}Gb&&(Gb=!1,iq(w)),Z.effectDuration+=YY(T);break;case 4:q=R4,R4=EY(w.stateNode.containerInfo),Jw(Z,w),Yw(w),R4=q;break;case 12:q=p6(),Jw(Z,w),Yw(w),w.stateNode.effectDuration+=v$(q);break;case 31:Jw(Z,w),Yw(w),q&4&&(q=w.updateQueue,q!==null&&(w.updateQueue=null,hY(w,q)));break;case 13:Jw(Z,w),Yw(w),w.child.flags&8192&&w.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(Vz=H2()),q&4&&(q=w.updateQueue,q!==null&&(w.updateQueue=null,hY(w,q)));break;case 22:T=w.memoizedState!==null;var h=W!==null&&W.memoizedState!==null,n=B8,L0=D5;if(B8=n||T,D5=L0||h,Jw(Z,w),D5=L0,B8=n,h&&!T&&!n&&!L0&&(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&nJ(w,S0,j0),Yw(w),q&8192)w:for(Z=w.stateNode,Z._visibility=T?Z._visibility&~a$:Z._visibility|a$,!T||W===null||h||B8||D5||(e9(w),(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&t4(w,S0,j0,"Disconnect")),W=null,Z=w;;){if(Z.tag===5||Z.tag===26){if(W===null){h=W=Z;try{_=h.stateNode,T?b0(h,oP,_):b0(h,eP,h.stateNode,h.memoizedProps)}catch(I0){x1(h,h.return,I0)}}}else if(Z.tag===6){if(W===null){h=Z;try{y=h.stateNode,T?b0(h,sP,y):b0(h,wf,y,h.memoizedProps)}catch(I0){x1(h,h.return,I0)}}}else if(Z.tag===18){if(W===null){h=Z;try{d=h.stateNode,T?b0(h,nP,d):b0(h,tP,h.stateNode)}catch(I0){x1(h,h.return,I0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===w)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===w)break w;for(;Z.sibling===null;){if(Z.return===null||Z.return===w)break w;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}q&4&&(q=w.updateQueue,q!==null&&(W=q.retryQueue,W!==null&&(q.retryQueue=null,hY(w,W))));break;case 19:Jw(Z,w),Yw(w),q&4&&(q=w.updateQueue,q!==null&&(w.updateQueue=null,hY(w,q)));break;case 30:break;case 21:break;default:Jw(Z,w),Yw(w)}(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&((N5||0.05<g5)&&e4(w,S0,j0,g5,J5),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<j0-S0&&(Dq(w.return.alternate,w.return)||t4(w,S0,j0,"Mount"))),xw(X),$6(z),J5=v,N5=H}function Yw(w){var Z=w.flags;if(Z&2){try{b0(w,FP,w)}catch(X){x1(w,w.return,X)}w.flags&=-3}Z&4096&&(w.flags&=-4097)}function iq(w){if(w.subtreeFlags&1024)for(w=w.child;w!==null;){var Z=w;iq(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),w=w.sibling}}function B6(w,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)jq(w,Z.alternate,Z),Z=Z.sibling}function pq(w){var Z=Mw(),X=Z6(),z=X6(),v=J6();switch(w.tag){case 0:case 11:case 14:case 15:IH(w,w.return,dw),e9(w);break;case 1:v6(w,w.return);var H=w.stateNode;typeof H.componentWillUnmount==="function"&&Vq(w,w.return,H),e9(w);break;case 27:b0(w,x$,w.stateNode);case 26:case 5:v6(w,w.return),e9(w);break;case 22:w.memoizedState===null&&e9(w);break;case 30:e9(w);break;default:e9(w)}(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(w,S0,j0,g5,J5),xw(Z),$6(X),J5=z,N5=v}function e9(w){for(w=w.child;w!==null;)pq(w),w=w.sibling}function rq(w,Z,X,z){var v=Mw(),H=Z6(),W=X6(),q=J6(),T=X.flags;switch(X.tag){case 0:case 11:case 15:H6(w,X,z),Pq(X,dw);break;case 1:if(H6(w,X,z),Z=X.stateNode,typeof Z.componentDidMount==="function"&&b0(X,rg,X,Z),Z=X.updateQueue,Z!==null){w=X.stateNode;try{b0(X,JP,Z,w)}catch(_){x1(X,X.return,_)}}z&&T&64&&hq(X),F$(X,X.return);break;case 27:dq(X);case 26:case 5:H6(w,X,z),z&&Z===null&&T&4&&yq(X),F$(X,X.return);break;case 12:if(z&&T&4){T=p6(),H6(w,X,z),z=X.stateNode,z.effectDuration+=v$(T);try{b0(X,Rq,X,Z,a8,z.effectDuration)}catch(_){x1(X,X.return,_)}}else H6(w,X,z);break;case 31:H6(w,X,z),z&&T&4&&lq(w,X);break;case 13:H6(w,X,z),z&&T&4&&cq(w,X);break;case 22:X.memoizedState===null&&H6(w,X,z),F$(X,X.return);break;case 30:break;default:H6(w,X,z)}(X.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(X,S0,j0,g5,J5),xw(v),$6(H),J5=W,N5=q}function H6(w,Z,X){X=X&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)rq(w,Z.alternate,Z,X),Z=Z.sibling}function MH(w,Z){var X=null;w!==null&&w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(X=w.memoizedState.cachePool.pool),w=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(w=Z.memoizedState.cachePool.pool),w!==X&&(w!=null&&r9(w),X!=null&&G$(X))}function xH(w,Z){w=null,Z.alternate!==null&&(w=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==w&&(r9(Z),w!=null&&G$(w))}function x4(w,Z,X,z,v){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var H=Z.sibling;nq(w,Z,X,z,H!==null?H.actualStartTime:v),Z=H}}function nq(w,Z,X,z,v){var H=Mw(),W=Z6(),q=X6(),T=J6(),_=E8,y=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&Z1)!==l0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&oJ(Z,Z.actualStartTime,v,r5,X),x4(w,Z,X,z,v),y&2048&&fq(Z,i2|G4);break;case 1:(Z.mode&Z1)!==l0&&0<Z.actualStartTime&&((Z.flags&128)!==0?bB(Z,Z.actualStartTime,v,[]):(Z.flags&1)!==0&&oJ(Z,Z.actualStartTime,v,r5,X)),x4(w,Z,X,z,v);break;case 3:var d=p6(),h=r5;r5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,x4(w,Z,X,z,v),r5=h,y&2048&&(X=null,Z.alternate!==null&&(X=Z.alternate.memoizedState.cache),z=Z.memoizedState.cache,z!==X&&(r9(z),X!=null&&G$(X))),w.passiveEffectDuration+=YY(d);break;case 12:if(y&2048){y=p6(),x4(w,Z,X,z,v),w=Z.stateNode,w.passiveEffectDuration+=v$(y);try{b0(Z,kP,Z,Z.alternate,a8,w.passiveEffectDuration)}catch(n){x1(Z,Z.return,n)}}else x4(w,Z,X,z,v);break;case 31:y=r5,d=Z.alternate!==null?Z.alternate.memoizedState:null,h=Z.memoizedState,d!==null&&h===null?(h=Z.deletions,h!==null&&0<h.length&&h[0].tag===18?(r5=!1,d=d.hydrationErrors,d!==null&&bB(Z,Z.actualStartTime,v,d)):r5=!0):r5=!1,x4(w,Z,X,z,v),r5=y;break;case 13:y=r5,d=Z.alternate!==null?Z.alternate.memoizedState:null,h=Z.memoizedState,d===null||d.dehydrated===null||h!==null&&h.dehydrated!==null?r5=!1:(h=Z.deletions,h!==null&&0<h.length&&h[0].tag===18?(r5=!1,d=d.hydrationErrors,d!==null&&bB(Z,Z.actualStartTime,v,d)):r5=!0),x4(w,Z,X,z,v),r5=y;break;case 23:break;case 22:h=Z.stateNode,d=Z.alternate,Z.memoizedState!==null?h._visibility&e6?x4(w,Z,X,z,v):N$(w,Z,X,z,v):h._visibility&e6?x4(w,Z,X,z,v):(h._visibility|=e6,L3(w,Z,X,z,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),v),(Z.mode&Z1)===l0||r5||(w=Z.actualStartTime,0<=w&&0.05<v-w&&nJ(Z,w,v),0<=S0&&0<=j0&&0.05<j0-S0&&nJ(Z,S0,j0))),y&2048&&MH(d,Z);break;case 24:x4(w,Z,X,z,v),y&2048&&xH(Z.alternate,Z);break;default:x4(w,Z,X,z,v)}if((Z.mode&Z1)!==l0){if(w=!r5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)X=Z.actualStartTime,0<=X&&0.05<v-X&&t4(Z,X,v,"Mount");0<=S0&&0<=j0&&((N5||0.05<g5)&&e4(Z,S0,j0,g5,J5),w&&0.05<j0-S0&&t4(Z,S0,j0,"Mount"))}xw(H),$6(W),J5=q,N5=T,E8=_}function L3(w,Z,X,z,v,H){v=v&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;oq(w,Z,X,z,v,W!==null?W.actualStartTime:H),Z=W}}function oq(w,Z,X,z,v,H){var W=Mw(),q=Z6(),T=X6(),_=J6(),y=E8;v&&(Z.mode&Z1)!==l0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&oJ(Z,Z.actualStartTime,H,r5,X);var d=Z.flags;switch(Z.tag){case 0:case 11:case 15:L3(w,Z,X,z,v,H),fq(Z,i2);break;case 23:break;case 22:var h=Z.stateNode;Z.memoizedState!==null?h._visibility&e6?L3(w,Z,X,z,v,H):N$(w,Z,X,z,H):(h._visibility|=e6,L3(w,Z,X,z,v,H)),v&&d&2048&&MH(Z.alternate,Z);break;case 24:L3(w,Z,X,z,v,H),v&&d&2048&&xH(Z.alternate,Z);break;default:L3(w,Z,X,z,v,H)}(Z.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(Z,S0,j0,g5,J5),xw(W),$6(q),J5=T,N5=_,E8=y}function N$(w,Z,X,z,v){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var H=Z.child;H!==null;){Z=H.sibling;var W=w,q=X,T=z,_=Z!==null?Z.actualStartTime:v,y=E8;(H.mode&Z1)!==l0&&0<H.actualStartTime&&(H.flags&1)!==0&&oJ(H,H.actualStartTime,_,r5,q);var d=H.flags;switch(H.tag){case 22:N$(W,H,q,T,_),d&2048&&MH(H.alternate,H);break;case 24:N$(W,H,q,T,_),d&2048&&xH(H.alternate,H);break;default:N$(W,H,q,T,_)}E8=y,H=Z}}function k3(w,Z,X){if(w.subtreeFlags&gX)for(w=w.child;w!==null;)sq(w,Z,X),w=w.sibling}function sq(w,Z,X){switch(w.tag){case 26:k3(w,Z,X),w.flags&gX&&w.memoizedState!==null&&Hf(X,R4,w.memoizedState,w.memoizedProps);break;case 5:k3(w,Z,X);break;case 3:case 4:var z=R4;R4=EY(w.stateNode.containerInfo),k3(w,Z,X),R4=z;break;case 22:w.memoizedState===null&&(z=w.alternate,z!==null&&z.memoizedState!==null?(z=gX,gX=16777216,k3(w,Z,X),gX=z):k3(w,Z,X));break;default:k3(w,Z,X)}}function tq(w){var Z=w.alternate;if(Z!==null&&(w=Z.child,w!==null)){Z.child=null;do Z=w.sibling,w.sibling=null,w=Z;while(w!==null)}}function T$(w){var Z=w.deletions;if((w.flags&16)!==0){if(Z!==null)for(var X=0;X<Z.length;X++){var z=Z[X],v=Mw();b2=z,ZL(z,w),(z.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&t4(z,S0,j0,"Unmount"),xw(v)}tq(w)}if(w.subtreeFlags&10256)for(w=w.child;w!==null;)eq(w),w=w.sibling}function eq(w){var Z=Mw(),X=Z6(),z=X6(),v=J6();switch(w.tag){case 0:case 11:case 15:T$(w),w.flags&2048&&_H(w,w.return,i2|G4);break;case 3:var H=p6();T$(w),w.stateNode.passiveEffectDuration+=YY(H);break;case 12:H=p6(),T$(w),w.stateNode.passiveEffectDuration+=v$(H);break;case 22:H=w.stateNode,w.memoizedState!==null&&H._visibility&e6&&(w.return===null||w.return.tag!==13)?(H._visibility&=~e6,VY(w),(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&t4(w,S0,j0,"Disconnect")):T$(w);break;default:T$(w)}(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(w,S0,j0,g5,J5),xw(Z),$6(X),N5=v,J5=z}function VY(w){var Z=w.deletions;if((w.flags&16)!==0){if(Z!==null)for(var X=0;X<Z.length;X++){var z=Z[X],v=Mw();b2=z,ZL(z,w),(z.mode&Z1)!==l0&&0<=S0&&0<=j0&&0.05<j0-S0&&t4(z,S0,j0,"Unmount"),xw(v)}tq(w)}for(w=w.child;w!==null;)wL(w),w=w.sibling}function wL(w){var Z=Mw(),X=Z6(),z=X6(),v=J6();switch(w.tag){case 0:case 11:case 15:_H(w,w.return,i2),VY(w);break;case 22:var H=w.stateNode;H._visibility&e6&&(H._visibility&=~e6,VY(w));break;default:VY(w)}(w.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(w,S0,j0,g5,J5),xw(Z),$6(X),N5=v,J5=z}function ZL(w,Z){for(;b2!==null;){var X=b2,z=X,v=Z,H=Mw(),W=Z6(),q=X6(),T=J6();switch(z.tag){case 0:case 11:case 15:_H(z,v,i2);break;case 23:case 22:z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(v=z.memoizedState.cachePool.pool,v!=null&&r9(v));break;case 24:G$(z.memoizedState.cache)}if((z.mode&Z1)!==l0&&0<=S0&&0<=j0&&(N5||0.05<g5)&&e4(z,S0,j0,g5,J5),xw(H),$6(W),N5=T,J5=q,z=X.child,z!==null)z.return=X,b2=z;else w:for(X=w;b2!==null;){if(z=b2,H=z.sibling,W=z.return,Eq(z),z===X){b2=null;break w}if(H!==null){H.return=W,b2=H;break w}b2=W}}}function IP(){ah.forEach(function(w){return w()})}function $L(){var w=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return w||Y0.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),w}function Pw(w){if((F1&n5)!==Q2&&X1!==0)return X1&-X1;var Z=Y0.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add(w),SH()):c()}function XL(){if(vw===0)if((X1&536870912)===0||U1){var w=eY;eY<<=1,(eY&3932160)===0&&(eY=262144),vw=w}else vw=536870912;return w=Sw.current,w!==null&&(w.flags|=32),vw}function F5(w,Z,X){if(JZ&&console.error("useInsertionEffect must not schedule updates."),Lb&&(dz=!0),w===u1&&(R1===W7||R1===K7)||w.cancelPendingCommit!==null)N3(w,0),h8(w,X1,vw,!1);if(n4(w,X),(F1&n5)!==Q2&&w===u1){if(K6)switch(Z.tag){case 0:case 11:case 15:w=z1&&E(z1)||"Unknown",mN.has(w)||(mN.add(w),Z=E(Z)||"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",Z,w,w));break;case 1:xN||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),xN=!0)}}else q6&&nw(w,Z,X),hP(Z),w===u1&&((F1&n5)===Q2&&(w9|=X),b5===s8&&h8(w,X1,vw,!1)),g6(w)}function JL(w,Z,X){if((F1&(n5|Dw))!==Q2)throw Error("Should not already be working.");if(X1!==0&&z1!==null){var z=z1,v=H2();switch(TF){case WX:case W7:var H=s$;n1&&((z=z._debugTask)?z.run(console.timeStamp.bind(console,"Suspended",H,v,ew,void 0,"primary-light")):console.timeStamp("Suspended",H,v,ew,void 0,"primary-light"));break;case K7:H=s$,n1&&((z=z._debugTask)?z.run(console.timeStamp.bind(console,"Action",H,v,ew,void 0,"primary-light")):console.timeStamp("Action",H,v,ew,void 0,"primary-light"));break;default:n1&&(z=v-s$,3>z||console.timeStamp("Blocked",s$,v,ew,void 0,5>z?"primary-light":10>z?"primary":100>z?"primary-dark":"error"))}}H=(X=!X&&(Z&127)===0&&(Z&w.expiredLanes)===0||_4(w,Z))?OP(w,Z):PH(w,Z,!0);var W=X;do{if(H===H8){$Z&&!X&&h8(w,Z,0,!1),Z=R1,s$=y5(),TF=Z;break}else{if(z=H2(),v=w.current.alternate,W&&!_P(v)){Cw(Z),v=g2,H=z,!n1||H<=v||(O5?O5.run(console.timeStamp.bind(console,"Teared Render",v,H,Q1,H1,"error")):console.timeStamp("Teared Render",v,H,Q1,H1,"error")),w7(Z,z),H=PH(w,Z,!1),W=!1;continue}if(H===Q7){if(W=Z,w.errorRecoveryDisabledLanes&W)var q=0;else q=w.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){Cw(Z),QB(g2,z,Z,O5),w7(Z,z),Z=q;w:{z=w,H=W,W=UX;var T=z.current.memoizedState.isDehydrated;if(T&&(N3(z,q).flags|=256),q=PH(z,q,!1),q!==Q7){if(Hb&&!T){z.errorRecoveryDisabledLanes|=H,w9|=H,H=s8;break w}z=p2,p2=W,z!==null&&(p2===null?p2=z:p2.push.apply(p2,z))}H=q}if(W=!1,H!==Q7)continue;else z=H2()}}if(H===QX){Cw(Z),QB(g2,z,Z,O5),w7(Z,z),N3(w,0),h8(w,Z,0,!0);break}w:{switch(X=w,H){case H8:case QX:throw Error("Root did not complete. This is a bug in React.");case s8:if((Z&4194048)!==Z)break;case mz:Cw(Z),JU(g2,z,Z,O5),w7(Z,z),v=Z,(v&127)!==0?Kz=z:(v&4194048)!==0&&(Uz=z),h8(X,Z,vw,!t8);break w;case Q7:p2=null;break;case xz:case UN:break;default:throw Error("Unknown root exit status.")}if(Y0.actQueue!==null)fH(X,v,Z,p2,qX,hz,vw,w9,U7,H,null,null,g2,z);else{if((Z&62914560)===Z&&(W=Vz+kN-H2(),10<W)){if(h8(X,Z,vw,!t8),v2(X,0,!0)!==0)break w;y4=Z,X.timeoutHandle=dN(YL.bind(null,X,v,p2,qX,hz,Z,vw,w9,U7,t8,H,"Throttled",g2,z),W);break w}YL(X,v,p2,qX,hz,Z,vw,w9,U7,t8,H,null,g2,z)}}}break}while(1);g6(w)}function YL(w,Z,X,z,v,H,W,q,T,_,y,d,h,n){w.timeoutHandle=N7;var L0=Z.subtreeFlags,I0=null;if(L0&8192||(L0&16785408)===16785408){if(I0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:l6},sq(Z,H,I0),L0=(H&62914560)===H?Vz-H2():(H&4194048)===H?LN-H2():0,L0=gf(I0,L0),L0!==null){y4=H,w.cancelPendingCommit=L0(fH.bind(null,w,Z,H,X,z,v,W,q,T,y,I0,I0.waitingForViewTransition?"Waiting for the previous Animation":0<I0.count?0<I0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":I0.imgCount===1?"Suspended on an Image":0<I0.imgCount?"Suspended on Images":null,h,n)),h8(w,H,W,!_);return}}fH(w,Z,H,X,z,v,W,q,T,y,I0,d,h,n)}function _P(w){for(var Z=w;;){var X=Z.tag;if((X===0||X===11||X===15)&&Z.flags&16384&&(X=Z.updateQueue,X!==null&&(X=X.stores,X!==null)))for(var z=0;z<X.length;z++){var v=X[z],H=v.getSnapshot;v=v.value;try{if(!l2(H(),v))return!1}catch(W){return!1}}if(X=Z.child,Z.subtreeFlags&16384&&X!==null)X.return=Z,Z=X;else{if(Z===w)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===w)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function h8(w,Z,X,z){Z&=~gb,Z&=~w9,w.suspendedLanes|=Z,w.pingedLanes&=~Z,z&&(w.warmLanes|=Z),z=w.expirationTimes;for(var v=Z;0<v;){var H=31-j2(v),W=1<<H;z[H]=-1,v&=~W}X!==0&&rw(w,X,Z)}function F3(){return(F1&(n5|Dw))===Q2?(O$(0,!1),!1):!0}function mH(){if(z1!==null){if(R1===Gw)var w=z1.return;else w=z1,$Y(),EB(w),p3=null,zX=0,w=z1;for(;w!==null;)mq(w.alternate,w),w=w.return;z1=null}}function w7(w,Z){(w&127)!==0&&(i8=Z),(w&4194048)!==0&&(T6=Z),(w&62914560)!==0&&(FF=Z),(w&2080374784)!==0&&(NF=Z)}function N3(w,Z){n1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",H1,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",H1,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",H1,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",H1,"primary-light"));var X=g2;if(g2=y5(),X1!==0&&0<X){if(Cw(X1),b5===xz||b5===s8)JU(X,g2,Z,O5);else{var z=g2,v=O5;if(n1&&!(z<=X)){var H=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";v?v.run(console.timeStamp.bind(console,W,X,z,Q1,H1,H)):console.timeStamp(W,X,z,Q1,H1,H)}}w7(X1,g2)}if(X=O5,O5=null,(Z&127)!==0){O5=r$,v=0<=N6&&N6<i8?i8:N6,z=0<=Y7&&Y7<i8?i8:Y7,H=0<=z?z:0<=v?v:g2,0<=Kz?(Cw(2),YU(Kz,H,Z,X)):(qz&127)!==0&&(Cw(2),Y$(i8,H,Y8)),X=v;var q=z,T=n$,_=0<c3,y=p8===p$,d=p8===Wz;if(v=g2,z=r$,H=lg,W=cg,n1){if(Q1="Blocking",0<X?X>v&&(X=v):X=v,0<q?q>X&&(q=X):q=X,T!==null&&X>q){var h=_?"secondary-light":"warning";z?z.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+T,q,X,Q1,H1,h)):console.timeStamp(_?"Consecutive":"Event: "+T,q,X,Q1,H1,h)}v>X&&(q=y?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",y=d?"Promise Resolved":y?"Cascading Update":5<v-X?"Update Blocked":"Update",d=[],W!=null&&d.push(["Component name",W]),H!=null&&d.push(["Method name",H]),X={start:X,end:v,detail:{devtools:{properties:d,track:Q1,trackGroup:H1,color:q}}},z?z.run(performance.measure.bind(performance,y,X)):performance.measure(y,X))}N6=-1.1,p8=0,cg=lg=null,Kz=-1.1,c3=Y7,Y7=-1.1,i8=y5()}if((Z&4194048)!==0&&(O5=o$,v=0<=J8&&J8<T6?T6:J8,X=0<=Y4&&Y4<T6?T6:Y4,z=0<=r8&&r8<T6?T6:r8,H=0<=z?z:0<=X?X:g2,0<=Uz?(Cw(256),YU(Uz,H,Z,O5)):(qz&4194048)!==0&&(Cw(256),Y$(T6,H,Y8)),d=z,q=z7,T=0<n8,_=ag===Wz,H=g2,z=o$,W=LF,y=kF,n1&&(Q1="Transition",0<X?X>H&&(X=H):X=H,0<v?v>X&&(v=X):v=X,0<d?d>v&&(d=v):d=v,v>d&&q!==null&&(h=T?"secondary-light":"warning",z?z.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+q,d,v,Q1,H1,h)):console.timeStamp(T?"Consecutive":"Event: "+q,d,v,Q1,H1,h)),X>v&&(z?z.run(console.timeStamp.bind(console,"Action",v,X,Q1,H1,"primary-dark")):console.timeStamp("Action",v,X,Q1,H1,"primary-dark")),H>X&&(v=_?"Promise Resolved":5<H-X?"Update Blocked":"Update",d=[],y!=null&&d.push(["Component name",y]),W!=null&&d.push(["Method name",W]),X={start:X,end:H,detail:{devtools:{properties:d,track:Q1,trackGroup:H1,color:"primary-light"}}},z?z.run(performance.measure.bind(performance,v,X)):performance.measure(v,X))),Y4=J8=-1.1,ag=0,Uz=-1.1,n8=r8,r8=-1.1,T6=y5()),(Z&62914560)!==0&&(qz&62914560)!==0&&(Cw(4194304),Y$(FF,g2,Y8)),(Z&2080374784)!==0&&(qz&2080374784)!==0&&(Cw(268435456),Y$(NF,g2,Y8)),X=w.timeoutHandle,X!==N7&&(w.timeoutHandle=N7,JV(X)),X=w.cancelPendingCommit,X!==null&&(w.cancelPendingCommit=null,X()),y4=0,mH(),u1=w,z1=X=c6(w.current,null),X1=Z,R1=Gw,jw=null,t8=!1,$Z=_4(w,Z),Hb=!1,b5=H8,U7=vw=gb=w9=e8=0,p2=UX=null,hz=!1,(Z&8)!==0&&(Z|=Z&32),z=w.entangledLanes,z!==0)for(w=w.entanglements,z&=Z;0<z;)v=31-j2(z),H=1<<v,Z|=w[v],z&=~H;return _6=Z,sJ(),w=bF(),1000<w-gF&&(Y0.recentlyCreatedOwnerStacks=0,gF=w),h4.discardPendingWarnings(),X}function zL(w,Z){i0=null,Y0.H=HX,Y0.getCurrentStack=null,K6=!1,Vw=null,Z===i3||Z===Nz?(Z=AU(),R1=WX):Z===ng?(Z=AU(),R1=qN):R1=Z===Yb?Bb:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?KX:Pz,jw=Z;var X=z1;X===null?(b5=QX,AY(w,Aw(Z,w.current))):X.mode&Z1&&MB(X)}function GL(){var w=Sw.current;return w===null?!0:(X1&4194048)===X1?z4===null?!0:!1:(X1&62914560)===X1||(X1&536870912)!==0?w===z4:!1}function vL(){var w=Y0.H;return Y0.H=HX,w===null?HX:w}function BL(){var w=Y0.A;return Y0.A=ch,w}function RY(w){O5===null&&(O5=w._debugTask==null?null:w._debugTask)}function yY(){b5=s8,t8||(X1&4194048)!==X1&&Sw.current!==null||($Z=!0),(e8&134217727)===0&&(w9&134217727)===0||u1===null||h8(u1,X1,vw,!1)}function PH(w,Z,X){var z=F1;F1|=n5;var v=vL(),H=BL();if(u1!==w||X1!==Z){if(q6){var W=w.memoizedUpdaters;0<W.size&&(_$(w,X1),W.clear()),C4(w,Z)}qX=null,N3(w,Z)}Z=!1,W=b5;w:do try{if(R1!==Gw&&z1!==null){var q=z1,T=jw;switch(R1){case Bb:mH(),W=mz;break w;case WX:case W7:case K7:case KX:Sw.current===null&&(Z=!0);var _=R1;if(R1=Gw,jw=null,T3(w,q,T,_),X&&$Z){W=H8;break w}break;default:_=R1,R1=Gw,jw=null,T3(w,q,T,_)}}HL(),W=b5;break}catch(y){zL(w,y)}while(1);return Z&&w.shellSuspendCounter++,$Y(),F1=z,Y0.H=v,Y0.A=H,z1===null&&(u1=null,X1=0,sJ()),W}function HL(){for(;z1!==null;)gL(z1)}function OP(w,Z){var X=F1;F1|=n5;var z=vL(),v=BL();if(u1!==w||X1!==Z){if(q6){var H=w.memoizedUpdaters;0<H.size&&(_$(w,X1),H.clear()),C4(w,Z)}qX=null,Rz=H2()+FN,N3(w,Z)}else $Z=_4(w,Z);w:do try{if(R1!==Gw&&z1!==null)Z:switch(Z=z1,H=jw,R1){case Pz:R1=Gw,jw=null,T3(w,Z,H,Pz);break;case W7:case K7:if(OU(H)){R1=Gw,jw=null,bL(Z);break}Z=function(){R1!==W7&&R1!==K7||u1!==w||(R1=fz),g6(w)},H.then(Z,Z);break w;case WX:R1=fz;break w;case qN:R1=vb;break w;case fz:OU(H)?(R1=Gw,jw=null,bL(Z)):(R1=Gw,jw=null,T3(w,Z,H,fz));break;case vb:var W=null;switch(z1.tag){case 26:W=z1.memoizedState;case 5:case 27:var q=z1;if(W?Jk(W):q.stateNode.complete){R1=Gw,jw=null;var T=q.sibling;if(T!==null)z1=T;else{var _=q.return;_!==null?(z1=_,SY(_)):z1=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}R1=Gw,jw=null,T3(w,Z,H,vb);break;case KX:R1=Gw,jw=null,T3(w,Z,H,KX);break;case Bb:mH(),b5=mz;break w;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Y0.actQueue!==null?HL():CP();break}catch(y){zL(w,y)}while(1);if($Y(),Y0.H=z,Y0.A=v,F1=X,z1!==null)return H8;return u1=null,X1=0,sJ(),b5}function CP(){for(;z1!==null&&!_f();)gL(z1)}function gL(w){var Z=w.alternate;(w.mode&Z1)!==l0?(AB(w),Z=b0(w,NH,Z,w,_6),MB(w)):Z=b0(w,NH,Z,w,_6),w.memoizedProps=w.pendingProps,Z===null?SY(w):z1=Z}function bL(w){var Z=b0(w,AP,w);w.memoizedProps=w.pendingProps,Z===null?SY(w):z1=Z}function AP(w){var Z=w.alternate,X=(w.mode&Z1)!==l0;switch(X&&AB(w),w.tag){case 15:case 0:Z=Iq(Z,w,w.pendingProps,w.type,void 0,X1);break;case 11:Z=Iq(Z,w,w.pendingProps,w.type.render,w.ref,X1);break;case 5:EB(w);default:mq(Z,w),w=z1=gU(w,_6),Z=NH(Z,w,_6)}return X&&MB(w),Z}function T3(w,Z,X,z){$Y(),EB(Z),p3=null,zX=0;var v=Z.return;try{if(gP(w,v,Z,X,X1)){b5=QX,AY(w,Aw(X,w.current)),z1=null;return}}catch(H){if(v!==null)throw z1=v,H;b5=QX,AY(w,Aw(X,w.current)),z1=null;return}if(Z.flags&32768){if(U1||z===Pz)w=!0;else if($Z||(X1&536870912)!==0)w=!1;else if(t8=w=!0,z===W7||z===K7||z===WX||z===KX)z=Sw.current,z!==null&&z.tag===13&&(z.flags|=16384);QL(Z,w)}else SY(Z)}function SY(w){var Z=w;do{if((Z.flags&32768)!==0){QL(Z,t8);return}var X=Z.alternate;if(w=Z.return,AB(Z),X=b0(Z,WP,X,Z,_6),(Z.mode&Z1)!==l0&&FU(Z),X!==null){z1=X;return}if(Z=Z.sibling,Z!==null){z1=Z;return}z1=Z=w}while(Z!==null);b5===H8&&(b5=UN)}function QL(w,Z){do{var X=KP(w.alternate,w);if(X!==null){X.flags&=32767,z1=X;return}if((w.mode&Z1)!==l0){FU(w),X=w.actualDuration;for(var z=w.child;z!==null;)X+=z.actualDuration,z=z.sibling;w.actualDuration=X}if(X=w.return,X!==null&&(X.flags|=32768,X.subtreeFlags=0,X.deletions=null),!Z&&(w=w.sibling,w!==null)){z1=w;return}z1=w=X}while(w!==null);b5=mz,z1=null}function fH(w,Z,X,z,v,H,W,q,T,_,y,d,h,n){w.cancelPendingCommit=null;do I$();while(E5!==$9);if(h4.flushLegacyContextWarning(),h4.flushPendingUnsafeLifecycleWarnings(),(F1&(n5|Dw))!==Q2)throw Error("Should not already be working.");if(Cw(X),_===Q7?QB(h,n,X,O5):z!==null?tm(h,n,X,z,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,O5):sm(h,n,X,O5),Z!==null){if(X===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===w.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(H=Z.lanes|Z.childLanes,H|=dg,G3(w,X,H,W,q,T),w===u1&&(z1=u1=null,X1=0),XZ=Z,X9=w,y4=X,Wb=H,Ub=v,CN=z,Kb=n,AN=d,S4=yz,MN=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?(w.callbackNode=null,w.callbackPriority=0,fP(M3,function(){return IX=window.event,S4===yz&&(S4=Qb),LL(),null})):(w.callbackNode=null,w.callbackPriority=0),X8=null,a8=y5(),d!==null&&em(n,a8,d,O5),z=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||z){z=Y0.T,Y0.T=null,v=m1.p,m1.p=Rw,W=F1,F1|=Dw;try{NP(w,Z,X)}finally{F1=W,m1.p=v,Y0.T=z}}E5=TN,WL(),KL(),UL()}}function WL(){if(E5===TN){E5=$9;var w=X9,Z=XZ,X=y4,z=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||z){z=Y0.T,Y0.T=null;var v=m1.p;m1.p=Rw;var H=F1;F1|=Dw;try{wZ=X,ZZ=w,zY(),aq(Z,w),ZZ=wZ=null,X=Ab;var W=ZU(w.containerInfo),q=X.focusedElem,T=X.selectionRange;if(W!==q&&q&&q.ownerDocument&&wU(q.ownerDocument.documentElement,q)){if(T!==null&&HB(q)){var{start:_,end:y}=T;if(y===void 0&&(y=_),"selectionStart"in q)q.selectionStart=_,q.selectionEnd=Math.min(y,q.value.length);else{var d=q.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var n=h.getSelection(),L0=q.textContent.length,I0=Math.min(T.start,L0),i1=T.end===void 0?I0:Math.min(T.end,L0);!n.extend&&I0>i1&&(W=i1,i1=I0,I0=W);var L1=eK(q,I0),f=eK(q,i1);if(L1&&f&&(n.rangeCount!==1||n.anchorNode!==L1.node||n.anchorOffset!==L1.offset||n.focusNode!==f.node||n.focusOffset!==f.offset)){var V=d.createRange();V.setStart(L1.node,L1.offset),n.removeAllRanges(),I0>i1?(n.addRange(V),n.extend(f.node,f.offset)):(V.setEnd(f.node,f.offset),n.addRange(V))}}}}d=[];for(n=q;n=n.parentNode;)n.nodeType===1&&d.push({element:n,left:n.scrollLeft,top:n.scrollTop});typeof q.focus==="function"&&q.focus();for(q=0;q<d.length;q++){var R=d[q];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}tz=!!Cb,Ab=Cb=null}finally{F1=H,m1.p=v,Y0.T=z}}w.current=Z,E5=IN}}function KL(){if(E5===IN){E5=$9;var w=MN;if(w!==null){a8=y5();var Z=$8,X=a8;!n1||X<=Z||(Y8?Y8.run(console.timeStamp.bind(console,w,Z,X,Q1,H1,"secondary-light")):console.timeStamp(w,Z,X,Q1,H1,"secondary-light"))}w=X9,Z=XZ,X=y4;var z=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||z){z=Y0.T,Y0.T=null;var v=m1.p;m1.p=Rw;var H=F1;F1|=Dw;try{wZ=X,ZZ=w,zY(),jq(w,Z.alternate,Z),ZZ=wZ=null}finally{F1=H,m1.p=v,Y0.T=z}}w=Kb,Z=AN,$8=y5(),w=Z===null?w:a8,Z=$8,X=S4===bb,z=O5,X8!==null?zU(w,Z,X8,!1,z):!n1||Z<=w||(z?z.run(console.timeStamp.bind(console,X?"Commit Interrupted View Transition":"Commit",w,Z,Q1,H1,X?"error":"secondary-dark")):console.timeStamp(X?"Commit Interrupted View Transition":"Commit",w,Z,Q1,H1,X?"error":"secondary-dark")),E5=_N}}function UL(){if(E5===ON||E5===_N){if(E5===ON){var w=$8;$8=y5();var Z=$8,X=S4===bb;!n1||Z<=w||(Y8?Y8.run(console.timeStamp.bind(console,X?"Interrupted View Transition":"Starting Animation",w,Z,Q1,H1,X?"error":"secondary-light")):console.timeStamp(X?"Interrupted View Transition":"Starting Animation",w,Z,Q1,H1,X?" error":"secondary-light")),S4!==bb&&(S4=NN)}E5=$9,Of(),w=X9;var z=XZ;Z=y4,X=CN;var v=z.actualDuration!==0||(z.subtreeFlags&10256)!==0||(z.flags&10256)!==0;v?E5=Sz:(E5=$9,XZ=X9=null,qL(w,w.pendingLanes),q7=0,kX=null);var H=w.pendingLanes;if(H===0&&(Z9=null),v||TL(w),H=O(Z),z=z.stateNode,m2&&typeof m2.onCommitFiberRoot==="function")try{var W=(z.current.flags&128)===128;switch(H){case Rw:var q=Ug;break;case P4:q=qg;break;case L6:q=M3;break;case Zz:q=Lg;break;default:q=M3}m2.onCommitFiberRoot(x3,z,q,W)}catch(d){U6||(U6=!0,console.error("React instrumentation encountered an error: %o",d))}if(q6&&w.memoizedUpdaters.clear(),IP(),X!==null){W=Y0.T,q=m1.p,m1.p=Rw,Y0.T=null;try{var T=w.onRecoverableError;for(z=0;z<X.length;z++){var _=X[z],y=MP(_.stack);b0(_.source,T,_.value,y)}}finally{Y0.T=W,m1.p=q}}(y4&3)!==0&&I$(),g6(w),H=w.pendingLanes,(Z&261930)!==0&&(H&42)!==0?(kz=!0,w===qb?LX++:(LX=0,qb=w)):LX=0,v||w7(Z,$8),O$(0,!1)}}function MP(w){return w={componentStack:w},Object.defineProperty(w,"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.')}}),w}function qL(w,Z){(w.pooledCacheLanes&=Z)===0&&(Z=w.pooledCache,Z!=null&&(w.pooledCache=null,G$(Z)))}function I$(){return WL(),KL(),UL(),LL()}function LL(){if(E5!==Sz)return!1;var w=X9,Z=Wb;Wb=0;var X=O(y4),z=L6===0||L6>X?L6:X;X=Y0.T;var v=m1.p;try{m1.p=z,Y0.T=null;var H=Ub;Ub=null,z=X9;var W=y4;if(E5=$9,XZ=X9=null,y4=0,(F1&(n5|Dw))!==Q2)throw Error("Cannot flush passive effects while already rendering.");Cw(W),Lb=!0,dz=!1;var q=0;if(X8=null,q=H2(),S4===NN)Y$($8,q,Y8);else{var T=$8,_=q,y=S4===Qb;!n1||_<=T||(O5?O5.run(console.timeStamp.bind(console,y?"Waiting for Paint":"Waiting",T,_,Q1,H1,"secondary-light")):console.timeStamp(y?"Waiting for Paint":"Waiting",T,_,Q1,H1,"secondary-light"))}T=F1,F1|=Dw;var d=z.current;zY(),eq(d);var h=z.current;d=Kb,zY(),nq(z,h,W,H,d),TL(z),F1=T;var n=H2();if(h=q,d=O5,X8!==null?zU(h,n,X8,!0,d):!n1||n<=h||(d?d.run(console.timeStamp.bind(console,"Remaining Effects",h,n,Q1,H1,"secondary-dark")):console.timeStamp("Remaining Effects",h,n,Q1,H1,"secondary-dark")),w7(W,n),O$(0,!1),dz?z===kX?q7++:(q7=0,kX=z):q7=0,dz=Lb=!1,m2&&typeof m2.onPostCommitFiberRoot==="function")try{m2.onPostCommitFiberRoot(x3,z)}catch(I0){U6||(U6=!0,console.error("React instrumentation encountered an error: %o",I0))}var L0=z.current.stateNode;return L0.effectDuration=0,L0.passiveEffectDuration=0,!0}finally{m1.p=v,Y0.T=X,qL(w,Z)}}function kL(w,Z,X){Z=Aw(X,Z),NU(Z),Z=HH(w.stateNode,Z,2),w=x8(w,Z,2),w!==null&&(n4(w,2),g6(w))}function x1(w,Z,X){if(JZ=!1,w.tag===3)kL(w,w,X);else{for(;Z!==null;){if(Z.tag===3){kL(Z,w,X);return}if(Z.tag===1){var z=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof z.componentDidCatch==="function"&&(Z9===null||!Z9.has(z))){w=Aw(X,w),NU(w),X=gH(2),z=x8(Z,X,2),z!==null&&(bH(X,z,Z,w),n4(z,2),g6(z));return}}Z=Z.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`,X)}}function hH(w,Z,X){var z=w.pingCache;if(z===null){z=w.pingCache=new ih;var v=new Set;z.set(Z,v)}else v=z.get(Z),v===void 0&&(v=new Set,z.set(Z,v));v.has(X)||(Hb=!0,v.add(X),z=xP.bind(null,w,Z,X),q6&&_$(w,X),Z.then(z,z))}function xP(w,Z,X){var z=w.pingCache;z!==null&&z.delete(Z),w.pingedLanes|=w.suspendedLanes&X,w.warmLanes&=~X,(X&127)!==0?0>N6&&(i8=N6=y5(),r$=Qz("Promise Resolved"),p8=Wz):(X&4194048)!==0&&0>Y4&&(T6=Y4=y5(),o$=Qz("Promise Resolved"),ag=Wz),$L()&&Y0.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`),u1===w&&(X1&X)===X&&(b5===s8||b5===xz&&(X1&62914560)===X1&&H2()-Vz<kN?(F1&n5)===Q2&&N3(w,0):gb|=X,U7===X1&&(U7=0)),g6(w)}function FL(w,Z){Z===0&&(Z=i5()),w=x2(w,Z),w!==null&&(n4(w,Z),g6(w))}function mP(w){var Z=w.memoizedState,X=0;Z!==null&&(X=Z.retryLane),FL(w,X)}function PP(w,Z){var X=0;switch(w.tag){case 31:case 13:var{stateNode:z,memoizedState:v}=w;v!==null&&(X=v.retryLane);break;case 19:z=w.stateNode;break;case 22:z=w.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}z!==null&&z.delete(Z),FL(w,X)}function VH(w,Z,X){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var z=w,v=Z,H=v.type===nY;H=X||H,v.tag!==22?v.flags&67108864?H&&b0(v,NL,z,v):VH(z,v,H):v.memoizedState===null&&(H&&v.flags&8192?b0(v,NL,z,v):v.subtreeFlags&67108864&&b0(v,VH,z,v,H)),Z=Z.sibling}}function NL(w,Z){I1(!0);try{pq(Z),wL(Z),rq(w,Z.alternate,Z,!1),oq(w,Z,0,null,!1,0)}finally{I1(!1)}}function TL(w){var Z=!0;w.current.mode&(P2|f4)||(Z=!1),VH(w,w.current,Z)}function IL(w){if((F1&n5)===Q2){var Z=w.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=E(w)||"ReactComponent",Dz!==null){if(Dz.has(Z))return;Dz.add(Z)}else Dz=new Set([Z]);b0(w,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 _$(w,Z){q6&&w.memoizedUpdaters.forEach(function(X){nw(w,X,Z)})}function fP(w,Z){var X=Y0.actQueue;return X!==null?(X.push(Z),nh):Kg(w,Z)}function hP(w){$L()&&Y0.actQueue===null&&b0(w,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`,E(w))})}function g6(w){w!==YZ&&w.next===null&&(YZ===null?jz=YZ=w:YZ=YZ.next=w),Ez=!0,Y0.actQueue!==null?Fb||(Fb=!0,AL()):kb||(kb=!0,AL())}function O$(w,Z){if(!Nb&&Ez){Nb=!0;do{var X=!1;for(var z=jz;z!==null;){if(!Z)if(w!==0){var v=z.pendingLanes;if(v===0)var H=0;else{var{suspendedLanes:W,pingedLanes:q}=z;H=(1<<31-j2(42|w)+1)-1,H&=v&~(W&~q),H=H&201326741?H&201326741|1:H?H|2:0}H!==0&&(X=!0,CL(z,H))}else H=X1,H=v2(z,z===u1?H:0,z.cancelPendingCommit!==null||z.timeoutHandle!==N7),(H&3)===0||_4(z,H)||(X=!0,CL(z,H));z=z.next}}while(X);Nb=!1}}function VP(){IX=window.event,RH()}function RH(){Ez=Fb=kb=!1;var w=0;J9!==0&&EP()&&(w=J9);for(var Z=H2(),X=null,z=jz;z!==null;){var v=z.next,H=_L(z,Z);if(H===0)z.next=null,X===null?jz=v:X.next=v,v===null&&(YZ=X);else if(X=z,w!==0||(H&3)!==0)Ez=!0;z=v}E5!==$9&&E5!==Sz||O$(w,!1),J9!==0&&(J9=0)}function _L(w,Z){for(var{suspendedLanes:X,pingedLanes:z,expirationTimes:v}=w,H=w.pendingLanes&-62914561;0<H;){var W=31-j2(H),q=1<<W,T=v[W];if(T===-1){if((q&X)===0||(q&z)!==0)v[W]=sZ(q,Z)}else T<=Z&&(w.expiredLanes|=q);H&=~q}if(Z=u1,X=X1,X=v2(w,w===Z?X:0,w.cancelPendingCommit!==null||w.timeoutHandle!==N7),z=w.callbackNode,X===0||w===Z&&(R1===W7||R1===K7)||w.cancelPendingCommit!==null)return z!==null&&yH(z),w.callbackNode=null,w.callbackPriority=0;if((X&3)===0||_4(w,X)){if(Z=X&-X,Z!==w.callbackPriority||Y0.actQueue!==null&&z!==Tb)yH(z);else return Z;switch(O(X)){case Rw:case P4:X=qg;break;case L6:X=M3;break;case Zz:X=Lg;break;default:X=M3}return z=OL.bind(null,w),Y0.actQueue!==null?(Y0.actQueue.push(z),X=Tb):X=Kg(X,z),w.callbackPriority=Z,w.callbackNode=X,Z}return z!==null&&yH(z),w.callbackPriority=2,w.callbackNode=null,2}function OL(w,Z){if(kz=Lz=!1,IX=window.event,E5!==$9&&E5!==Sz)return w.callbackNode=null,w.callbackPriority=0,null;var X=w.callbackNode;if(S4===yz&&(S4=Qb),I$()&&w.callbackNode!==X)return null;var z=X1;if(z=v2(w,w===u1?z:0,w.cancelPendingCommit!==null||w.timeoutHandle!==N7),z===0)return null;return JL(w,z,Z),_L(w,H2()),w.callbackNode!=null&&w.callbackNode===X?OL.bind(null,w):null}function CL(w,Z){if(I$())return null;Lz=kz,kz=!1,JL(w,Z,!0)}function yH(w){w!==Tb&&w!==null&&If(w)}function AL(){Y0.actQueue!==null&&Y0.actQueue.push(function(){return RH(),null}),YV(function(){(F1&(n5|Dw))!==Q2?Kg(Ug,VP):RH()})}function SH(){if(J9===0){var w=G7;w===0&&(w=tY,tY<<=1,(tY&261888)===0&&(tY=256)),J9=w}return J9}function ML(w){if(w==null||typeof w==="symbol"||typeof w==="boolean")return null;if(typeof w==="function")return w;return K1(w,"action"),$$(""+w)}function xL(w,Z){var X=Z.ownerDocument.createElement("input");return X.name=Z.name,X.value=Z.value,w.id&&X.setAttribute("form",w.id),Z.parentNode.insertBefore(X,Z),w=new FormData(w),X.parentNode.removeChild(X),w}function RP(w,Z,X,z,v){if(Z==="submit"&&X&&X.stateNode===v){var H=ML((v[E2]||null).action),W=z.submitter;W&&(Z=(Z=W[E2]||null)?ML(Z.formAction):W.getAttribute("formAction"),Z!==null&&(H=Z,W=null));var q=new zz("action","action",null,z,v);w.push({event:q,listeners:[{instance:null,listener:function(){if(z.defaultPrevented){if(J9!==0){var T=W?xL(v,W):new FormData(v),_={pending:!0,data:T,method:v.method,action:H};Object.freeze(_),XH(X,_,null,T)}}else typeof H==="function"&&(q.preventDefault(),T=W?xL(v,W):new FormData(v),_={pending:!0,data:T,method:v.method,action:H},Object.freeze(_),XH(X,_,H,T))},currentTarget:v}]})}}function dY(w,Z,X){w.currentTarget=X;try{Z(w)}catch(z){Vg(z)}w.currentTarget=null}function mL(w,Z){Z=(Z&4)!==0;for(var X=0;X<w.length;X++){var z=w[X];w:{var v=void 0,H=z.event;if(z=z.listeners,Z)for(var W=z.length-1;0<=W;W--){var q=z[W],T=q.instance,_=q.currentTarget;if(q=q.listener,T!==v&&H.isPropagationStopped())break w;T!==null?b0(T,dY,H,q,_):dY(H,q,_),v=T}else for(W=0;W<z.length;W++){if(q=z[W],T=q.instance,_=q.currentTarget,q=q.listener,T!==v&&H.isPropagationStopped())break w;T!==null?b0(T,dY,H,q,_):dY(H,q,_),v=T}}}}function q1(w,Z){Ib.has(w)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',w);var X=Z[kg];X===void 0&&(X=Z[kg]=new Set);var z=w+"__bubble";X.has(z)||(PL(Z,w,2,!1),X.add(z))}function dH(w,Z,X){Ib.has(w)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',w);var z=0;Z&&(z|=4),PL(X,w,z,Z)}function DH(w){if(!w[uz]){w[uz]=!0,Ak.forEach(function(X){X!=="selectionchange"&&(Ib.has(X)||dH(X,!1,w),dH(X,!0,w))});var Z=w.nodeType===9?w:w.ownerDocument;Z===null||Z[uz]||(Z[uz]=!0,dH("selectionchange",!1,Z))}}function PL(w,Z,X,z){switch(Hk(Z)){case Rw:var v=Kf;break;case P4:v=Uf;break;default:v=Zg}X=v.bind(null,Z,X,w),v=void 0,!_g||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(v=!0),z?v!==void 0?w.addEventListener(Z,X,{capture:!0,passive:v}):w.addEventListener(Z,X,!0):v!==void 0?w.addEventListener(Z,X,{passive:v}):w.addEventListener(Z,X,!1)}function jH(w,Z,X,z,v){var H=z;if((Z&1)===0&&(Z&2)===0&&z!==null)w:for(;;){if(z===null)return;var W=z.tag;if(W===3||W===4){var q=z.stateNode.containerInfo;if(q===v)break;if(W===4)for(W=z.return;W!==null;){var T=W.tag;if((T===3||T===4)&&W.stateNode.containerInfo===v)return;W=W.return}for(;q!==null;){if(W=A0(q),W===null)return;if(T=W.tag,T===5||T===6||T===26||T===27){z=H=W;continue w}q=q.parentNode}}z=z.return}uK(function(){var _=H,y=vB(X),d=[];w:{var h=HF.get(w);if(h!==void 0){var n=zz,L0=w;switch(w){case"keypress":if(iJ(X)===0)break w;case"keydown":case"keyup":n=gh;break;case"focusin":L0="focus",n=Mg;break;case"focusout":L0="blur",n=Mg;break;case"beforeblur":case"afterblur":n=Mg;break;case"click":if(X.button===2)break w;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":n=ok;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":n=ef;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":n=Wh;break;case zF:case GF:case vF:n=$h;break;case BF:n=Uh;break;case"scroll":case"scrollend":n=sf;break;case"wheel":n=Lh;break;case"copy":case"cut":case"paste":n=Jh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":n=tk;break;case"toggle":case"beforetoggle":n=Fh}var I0=(Z&4)!==0,i1=!I0&&(w==="scroll"||w==="scrollend"),L1=I0?h!==null?h+"Capture":null:h;I0=[];for(var f=_,V;f!==null;){var R=f;if(V=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||V===null||L1===null||(R=X$(f,L1),R!=null&&I0.push(C$(f,R,V))),i1)break;f=f.return}0<I0.length&&(h=new n(h,L0,null,X,y),d.push({event:h,listeners:I0}))}}if((Z&7)===0){w:{if(h=w==="mouseover"||w==="pointerover",n=w==="mouseout"||w==="pointerout",h&&X!==S$&&(L0=X.relatedTarget||X.fromElement)&&(A0(L0)||L0[D8]))break w;if(n||h){if(h=y.window===y?y:(h=y.ownerDocument)?h.defaultView||h.parentWindow:window,n){if(L0=X.relatedTarget||X.toElement,n=_,L0=L0?A0(L0):null,L0!==null&&(i1=x(L0),I0=L0.tag,L0!==i1||I0!==5&&I0!==27&&I0!==6))L0=null}else n=null,L0=_;if(n!==L0){if(I0=ok,R="onMouseLeave",L1="onMouseEnter",f="mouse",w==="pointerout"||w==="pointerover")I0=tk,R="onPointerLeave",L1="onPointerEnter",f="pointer";if(i1=n==null?h:u0(n),V=L0==null?h:u0(L0),h=new I0(R,f+"leave",n,X,y),h.target=i1,h.relatedTarget=V,R=null,A0(y)===_&&(I0=new I0(L1,f+"enter",L0,X,y),I0.target=V,I0.relatedTarget=i1,R=I0),i1=R,n&&L0)Z:{I0=yP,L1=n,f=L0,V=0;for(R=L1;R;R=I0(R))V++;R=0;for(var B0=f;B0;B0=I0(B0))R++;for(;0<V-R;)L1=I0(L1),V--;for(;0<R-V;)f=I0(f),R--;for(;V--;){if(L1===f||f!==null&&L1===f.alternate){I0=L1;break Z}L1=I0(L1),f=I0(f)}I0=null}else I0=null;n!==null&&fL(d,h,n,I0,!1),L0!==null&&i1!==null&&fL(d,i1,L0,I0,!0)}}}w:{if(h=_?u0(_):window,n=h.nodeName&&h.nodeName.toLowerCase(),n==="select"||n==="input"&&h.type==="file")var T0=nK;else if(pK(h))if(JF)T0=rm;else{T0=im;var p0=am}else n=h.nodeName,!n||n.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?_&&Z$(_.elementType)&&(T0=nK):T0=pm;if(T0&&(T0=T0(w,_))){rK(d,T0,X,y);break w}p0&&p0(w,h,_),w==="focusout"&&_&&h.type==="number"&&_.memoizedProps.value!=null&&$B(h,"number",h.value)}switch(p0=_?u0(_):window,w){case"focusin":if(pK(p0)||p0.contentEditable==="true")y3=p0,mg=_,c$=null;break;case"focusout":c$=mg=y3=null;break;case"mousedown":Pg=!0;break;case"contextmenu":case"mouseup":case"dragend":Pg=!1,$U(d,X,y);break;case"selectionchange":if(_h)break;case"keydown":case"keyup":$U(d,X,y)}var y0;if(xg)w:{switch(w){case"compositionstart":var P0="onCompositionStart";break w;case"compositionend":P0="onCompositionEnd";break w;case"compositionupdate":P0="onCompositionUpdate";break w}P0=void 0}else R3?aK(w,X)&&(P0="onCompositionEnd"):w==="keydown"&&X.keyCode===ek&&(P0="onCompositionStart");if(P0&&(wF&&X.locale!=="ko"&&(R3||P0!=="onCompositionStart"?P0==="onCompositionEnd"&&R3&&(y0=lK()):(j8=y,Og=("value"in j8)?j8.value:j8.textContent,R3=!0)),p0=DY(_,P0),0<p0.length&&(P0=new sk(P0,w,null,X,y),d.push({event:P0,listeners:p0}),y0?P0.data=y0:(y0=iK(X),y0!==null&&(P0.data=y0)))),y0=Th?Em(w,X):um(w,X))P0=DY(_,"onBeforeInput"),0<P0.length&&(p0=new zh("onBeforeInput","beforeinput",null,X,y),d.push({event:p0,listeners:P0}),p0.data=y0);RP(d,w,_,X,y)}mL(d,Z)})}function C$(w,Z,X){return{instance:w,listener:Z,currentTarget:X}}function DY(w,Z){for(var X=Z+"Capture",z=[];w!==null;){var v=w,H=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||H===null||(v=X$(w,X),v!=null&&z.unshift(C$(w,v,H)),v=X$(w,Z),v!=null&&z.push(C$(w,v,H))),w.tag===3)return z;w=w.return}return[]}function yP(w){if(w===null)return null;do w=w.return;while(w&&w.tag!==5&&w.tag!==27);return w?w:null}function fL(w,Z,X,z,v){for(var H=Z._reactName,W=[];X!==null&&X!==z;){var q=X,T=q.alternate,_=q.stateNode;if(q=q.tag,T!==null&&T===z)break;q!==5&&q!==26&&q!==27||_===null||(T=_,v?(_=X$(X,H),_!=null&&W.unshift(C$(X,_,T))):v||(_=X$(X,H),_!=null&&W.push(C$(X,_,T)))),X=X.return}W.length!==0&&w.push({event:Z,listeners:W})}function EH(w,Z){Sm(w,Z),w!=="input"&&w!=="textarea"&&w!=="select"||Z==null||Z.value!==null||rk||(rk=!0,w==="select"&&Z.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.",w):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",w));var X={registrationNameDependencies:Z7,possibleRegistrationNames:Fg};Z$(w)||typeof Z.is==="string"||Dm(w,Z,X),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.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 B2(w,Z,X,z){Z!==X&&(X=V8(X),V8(Z)!==X&&(z[w]=Z))}function SP(w,Z,X){Z.forEach(function(z){X[RL(z)]=z==="style"?lH(w):w.getAttribute(z)})}function b6(w,Z){Z===!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.",w,w,w):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",w,typeof Z)}function hL(w,Z){return w=w.namespaceURI===Xz||w.namespaceURI===P3?w.ownerDocument.createElementNS(w.namespaceURI,w.tagName):w.ownerDocument.createElement(w.tagName),w.innerHTML=Z,w.innerHTML}function V8(w){return T1(w)&&(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.",r1(w)),C1(w)),(typeof w==="string"?w:""+w).replace(oh,`
|
|
181
|
+
`).replace(sh,"")}function VL(w,Z){return Z=V8(Z),V8(w)===Z?!0:!1}function j1(w,Z,X,z,v,H){switch(X){case"children":if(typeof z==="string")aJ(z,Z,!1),Z==="body"||Z==="textarea"&&z===""||w$(w,z);else if(typeof z==="number"||typeof z==="bigint")aJ(""+z,Z,!1),Z!=="body"&&w$(w,""+z);break;case"className":ow(w,"class",z);break;case"tabIndex":ow(w,"tabindex",z);break;case"dir":case"role":case"viewBox":case"width":case"height":ow(w,X,z);break;case"style":DK(w,z,H);break;case"data":if(Z!=="object"){ow(w,"data",z);break}case"src":case"href":if(z===""&&(Z!=="a"||X!=="href")){X==="src"?console.error('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.',X,X):console.error('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.',X,X),w.removeAttribute(X);break}if(z==null||typeof z==="function"||typeof z==="symbol"||typeof z==="boolean"){w.removeAttribute(X);break}K1(z,X),z=$$(""+z),w.setAttribute(X,z);break;case"action":case"formAction":if(z!=null&&(Z==="form"?X==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof z==="function"&&(v.encType==null&&v.method==null||az||(az=!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.")),v.target==null||cz||(cz=!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."))):Z==="input"||Z==="button"?X==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||v.type==="submit"||v.type==="image"||lz?Z!=="button"||v.type==null||v.type==="submit"||lz?typeof z==="function"&&(v.name==null||hN||(hN=!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.')),v.formEncType==null&&v.formMethod==null||az||(az=!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.")),v.formTarget==null||cz||(cz=!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."))):(lz=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(lz=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):X==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof z==="function"){w.setAttribute(X,"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 H==="function"&&(X==="formAction"?(Z!=="input"&&j1(w,Z,"name",v.name,v,null),j1(w,Z,"formEncType",v.formEncType,v,null),j1(w,Z,"formMethod",v.formMethod,v,null),j1(w,Z,"formTarget",v.formTarget,v,null)):(j1(w,Z,"encType",v.encType,v,null),j1(w,Z,"method",v.method,v,null),j1(w,Z,"target",v.target,v,null)));if(z==null||typeof z==="symbol"||typeof z==="boolean"){w.removeAttribute(X);break}K1(z,X),z=$$(""+z),w.setAttribute(X,z);break;case"onClick":z!=null&&(typeof z!=="function"&&b6(X,z),w.onclick=l6);break;case"onScroll":z!=null&&(typeof z!=="function"&&b6(X,z),q1("scroll",w));break;case"onScrollEnd":z!=null&&(typeof z!=="function"&&b6(X,z),q1("scrollend",w));break;case"dangerouslySetInnerHTML":if(z!=null){if(typeof z!=="object"||!("__html"in z))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=z.__html,X!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=X}}break;case"multiple":w.multiple=z&&typeof z!=="function"&&typeof z!=="symbol";break;case"muted":w.muted=z&&typeof z!=="function"&&typeof z!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(z==null||typeof z==="function"||typeof z==="boolean"||typeof z==="symbol"){w.removeAttribute("xlink:href");break}K1(z,X),X=$$(""+z),w.setAttributeNS(L7,"xlink:href",X);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":z!=null&&typeof z!=="function"&&typeof z!=="symbol"?(K1(z,X),w.setAttribute(X,""+z)):w.removeAttribute(X);break;case"inert":z!==""||iz[X]||(iz[X]=!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.",X));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":z&&typeof z!=="function"&&typeof z!=="symbol"?w.setAttribute(X,""):w.removeAttribute(X);break;case"capture":case"download":z===!0?w.setAttribute(X,""):z!==!1&&z!=null&&typeof z!=="function"&&typeof z!=="symbol"?(K1(z,X),w.setAttribute(X,z)):w.removeAttribute(X);break;case"cols":case"rows":case"size":case"span":z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&!isNaN(z)&&1<=z?(K1(z,X),w.setAttribute(X,z)):w.removeAttribute(X);break;case"rowSpan":case"start":z==null||typeof z==="function"||typeof z==="symbol"||isNaN(z)?w.removeAttribute(X):(K1(z,X),w.setAttribute(X,z));break;case"popover":q1("beforetoggle",w),q1("toggle",w),_w(w,"popover",z);break;case"xlinkActuate":x5(w,L7,"xlink:actuate",z);break;case"xlinkArcrole":x5(w,L7,"xlink:arcrole",z);break;case"xlinkRole":x5(w,L7,"xlink:role",z);break;case"xlinkShow":x5(w,L7,"xlink:show",z);break;case"xlinkTitle":x5(w,L7,"xlink:title",z);break;case"xlinkType":x5(w,L7,"xlink:type",z);break;case"xmlBase":x5(w,_b,"xml:base",z);break;case"xmlLang":x5(w,_b,"xml:lang",z);break;case"xmlSpace":x5(w,_b,"xml:space",z);break;case"is":H!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),_w(w,"is",z);break;case"innerText":case"textContent":break;case"popoverTarget":VN||z==null||typeof z!=="object"||(VN=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",z));default:!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"?(X=jK(X),_w(w,X,z)):Z7.hasOwnProperty(X)&&z!=null&&typeof z!=="function"&&b6(X,z)}}function uH(w,Z,X,z,v,H){switch(X){case"style":DK(w,z,H);break;case"dangerouslySetInnerHTML":if(z!=null){if(typeof z!=="object"||!("__html"in z))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(X=z.__html,X!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");w.innerHTML=X}}break;case"children":typeof z==="string"?w$(w,z):(typeof z==="number"||typeof z==="bigint")&&w$(w,""+z);break;case"onScroll":z!=null&&(typeof z!=="function"&&b6(X,z),q1("scroll",w));break;case"onScrollEnd":z!=null&&(typeof z!=="function"&&b6(X,z),q1("scrollend",w));break;case"onClick":z!=null&&(typeof z!=="function"&&b6(X,z),w.onclick=l6);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Z7.hasOwnProperty(X))z!=null&&typeof z!=="function"&&b6(X,z);else w:{if(X[0]==="o"&&X[1]==="n"&&(v=X.endsWith("Capture"),Z=X.slice(2,v?X.length-7:void 0),H=w[E2]||null,H=H!=null?H[X]:null,typeof H==="function"&&w.removeEventListener(Z,H,v),typeof z==="function")){typeof H!=="function"&&H!==null&&(X in w?w[X]=null:w.hasAttribute(X)&&w.removeAttribute(X)),w.addEventListener(Z,z,v);break w}X in w?w[X]=z:z===!0?w.setAttribute(X,""):_w(w,X,z)}}}function F2(w,Z,X){switch(EH(Z,X),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":q1("error",w),q1("load",w);var z=!1,v=!1,H;for(H in X)if(X.hasOwnProperty(H)){var W=X[H];if(W!=null)switch(H){case"src":z=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:j1(w,Z,H,W,X,null)}}v&&j1(w,Z,"srcSet",X.srcSet,X,null),z&&j1(w,Z,"src",X.src,X,null);return;case"input":_1("input",X),q1("invalid",w);var q=H=W=v=null,T=null,_=null;for(z in X)if(X.hasOwnProperty(z)){var y=X[z];if(y!=null)switch(z){case"name":v=y;break;case"type":W=y;break;case"checked":T=y;break;case"defaultChecked":_=y;break;case"value":H=y;break;case"defaultValue":q=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:j1(w,Z,z,y,X,null)}}IK(w,X),_K(w,H,q,T,_,W,v,!1);return;case"select":_1("select",X),q1("invalid",w),z=W=H=null;for(v in X)if(X.hasOwnProperty(v)&&(q=X[v],q!=null))switch(v){case"value":H=q;break;case"defaultValue":W=q;break;case"multiple":z=q;default:j1(w,Z,v,q,X,null)}AK(w,X),Z=H,X=W,w.multiple=!!z,Z!=null?v3(w,!!z,Z,!1):X!=null&&v3(w,!!z,X,!0);return;case"textarea":_1("textarea",X),q1("invalid",w),H=v=z=null;for(W in X)if(X.hasOwnProperty(W)&&(q=X[W],q!=null))switch(W){case"value":z=q;break;case"defaultValue":v=q;break;case"children":H=q;break;case"dangerouslySetInnerHTML":if(q!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:j1(w,Z,W,q,X,null)}MK(w,X),mK(w,z,v,H);return;case"option":OK(w,X);for(T in X)if(X.hasOwnProperty(T)&&(z=X[T],z!=null))switch(T){case"selected":w.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:j1(w,Z,T,z,X,null)}return;case"dialog":q1("beforetoggle",w),q1("toggle",w),q1("cancel",w),q1("close",w);break;case"iframe":case"object":q1("load",w);break;case"video":case"audio":for(z=0;z<FX.length;z++)q1(FX[z],w);break;case"image":q1("error",w),q1("load",w);break;case"details":q1("toggle",w);break;case"embed":case"source":case"link":q1("error",w),q1("load",w);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in X)if(X.hasOwnProperty(_)&&(z=X[_],z!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:j1(w,Z,_,z,X,null)}return;default:if(Z$(Z)){for(y in X)X.hasOwnProperty(y)&&(z=X[y],z!==void 0&&uH(w,Z,y,z,X,void 0));return}}for(q in X)X.hasOwnProperty(q)&&(z=X[q],z!=null&&j1(w,Z,q,z,X,null))}function dP(w,Z,X,z){switch(EH(Z,z),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,H=null,W=null,q=null,T=null,_=null,y=null;for(n in X){var d=X[n];if(X.hasOwnProperty(n)&&d!=null)switch(n){case"checked":break;case"value":break;case"defaultValue":T=d;default:z.hasOwnProperty(n)||j1(w,Z,n,null,z,d)}}for(var h in z){var n=z[h];if(d=X[h],z.hasOwnProperty(h)&&(n!=null||d!=null))switch(h){case"type":H=n;break;case"name":v=n;break;case"checked":_=n;break;case"defaultChecked":y=n;break;case"value":W=n;break;case"defaultValue":q=n;break;case"children":case"dangerouslySetInnerHTML":if(n!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:n!==d&&j1(w,Z,h,n,z,d)}}Z=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,z=z.type==="checkbox"||z.type==="radio"?z.checked!=null:z.value!=null,Z||!z||fN||(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"),fN=!0),!Z||z||PN||(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"),PN=!0),ZB(w,W,q,T,_,y,H,v);return;case"select":n=W=q=h=null;for(H in X)if(T=X[H],X.hasOwnProperty(H)&&T!=null)switch(H){case"value":break;case"multiple":n=T;default:z.hasOwnProperty(H)||j1(w,Z,H,null,z,T)}for(v in z)if(H=z[v],T=X[v],z.hasOwnProperty(v)&&(H!=null||T!=null))switch(v){case"value":h=H;break;case"defaultValue":q=H;break;case"multiple":W=H;default:H!==T&&j1(w,Z,v,H,z,T)}z=q,Z=W,X=n,h!=null?v3(w,!!Z,h,!1):!!X!==!!Z&&(z!=null?v3(w,!!Z,z,!0):v3(w,!!Z,Z?[]:"",!1));return;case"textarea":n=h=null;for(q in X)if(v=X[q],X.hasOwnProperty(q)&&v!=null&&!z.hasOwnProperty(q))switch(q){case"value":break;case"children":break;default:j1(w,Z,q,null,z,v)}for(W in z)if(v=z[W],H=X[W],z.hasOwnProperty(W)&&(v!=null||H!=null))switch(W){case"value":h=v;break;case"defaultValue":n=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:v!==H&&j1(w,Z,W,v,z,H)}xK(w,h,n);return;case"option":for(var L0 in X)if(h=X[L0],X.hasOwnProperty(L0)&&h!=null&&!z.hasOwnProperty(L0))switch(L0){case"selected":w.selected=!1;break;default:j1(w,Z,L0,null,z,h)}for(T in z)if(h=z[T],n=X[T],z.hasOwnProperty(T)&&h!==n&&(h!=null||n!=null))switch(T){case"selected":w.selected=h&&typeof h!=="function"&&typeof h!=="symbol";break;default:j1(w,Z,T,h,z,n)}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 I0 in X)h=X[I0],X.hasOwnProperty(I0)&&h!=null&&!z.hasOwnProperty(I0)&&j1(w,Z,I0,null,z,h);for(_ in z)if(h=z[_],n=X[_],z.hasOwnProperty(_)&&h!==n&&(h!=null||n!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:j1(w,Z,_,h,z,n)}return;default:if(Z$(Z)){for(var i1 in X)h=X[i1],X.hasOwnProperty(i1)&&h!==void 0&&!z.hasOwnProperty(i1)&&uH(w,Z,i1,void 0,z,h);for(y in z)h=z[y],n=X[y],!z.hasOwnProperty(y)||h===n||h===void 0&&n===void 0||uH(w,Z,y,h,z,n);return}}for(var L1 in X)h=X[L1],X.hasOwnProperty(L1)&&h!=null&&!z.hasOwnProperty(L1)&&j1(w,Z,L1,null,z,h);for(d in z)h=z[d],n=X[d],!z.hasOwnProperty(d)||h===n||h==null&&n==null||j1(w,Z,d,h,z,n)}function RL(w){switch(w){case"class":return"className";case"for":return"htmlFor";default:return w}}function lH(w){var Z={};w=w.style;for(var X=0;X<w.length;X++){var z=w[X];Z[z]=w.getPropertyValue(z)}return Z}function yL(w,Z,X){if(Z!=null&&typeof Z!=="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 z,v=z="",H;for(H in Z)if(Z.hasOwnProperty(H)){var W=Z[H];W!=null&&typeof W!=="boolean"&&W!==""&&(H.indexOf("--")===0?(iw(W,H),z+=v+H+":"+(""+W).trim()):typeof W!=="number"||W===0||ik.has(H)?(iw(W,H),z+=v+H.replace(Ek,"-$1").toLowerCase().replace(uk,"-ms-")+":"+(""+W).trim()):z+=v+H.replace(Ek,"-$1").toLowerCase().replace(uk,"-ms-")+":"+W+"px",v=";")}z=z||null,Z=w.getAttribute("style"),Z!==z&&(z=V8(z),V8(Z)!==z&&(X.style=lH(w)))}}function tw(w,Z,X,z,v,H){if(v.delete(X),w=w.getAttribute(X),w===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(K1(z,Z),w===""+z)return}B2(Z,w,z,H)}function SL(w,Z,X,z,v,H){if(v.delete(X),w=w.getAttribute(X),w===null){switch(typeof z){case"function":case"symbol":return}if(!z)return}else switch(typeof z){case"function":case"symbol":break;default:if(z)return}B2(Z,w,z,H)}function cH(w,Z,X,z,v,H){if(v.delete(X),w=w.getAttribute(X),w===null)switch(typeof z){case"undefined":case"function":case"symbol":return}else if(z!=null)switch(typeof z){case"function":case"symbol":break;default:if(K1(z,X),w===""+z)return}B2(Z,w,z,H)}function dL(w,Z,X,z,v,H){if(v.delete(X),w=w.getAttribute(X),w===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(z))return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(!isNaN(z)&&(K1(z,Z),w===""+z))return}B2(Z,w,z,H)}function aH(w,Z,X,z,v,H){if(v.delete(X),w=w.getAttribute(X),w===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(K1(z,Z),X=$$(""+z),w===X)return}B2(Z,w,z,H)}function DL(w,Z,X,z){for(var v={},H=new Set,W=w.attributes,q=0;q<W.length;q++)switch(W[q].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:H.add(W[q].name)}if(Z$(Z)){for(var T in X)if(X.hasOwnProperty(T)){var _=X[T];if(_!=null){if(Z7.hasOwnProperty(T))typeof _!=="function"&&b6(T,_);else if(X.suppressHydrationWarning!==!0)switch(T){case"children":typeof _!=="string"&&typeof _!=="number"||B2("children",w.textContent,_,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=w.innerHTML,_=_?_.__html:void 0,_!=null&&(_=hL(w,_),B2(T,W,_,v));continue;case"style":H.delete(T),yL(w,_,v);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":H.delete(T.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",T);continue;case"className":H.delete("class"),W=Zw(w,"class",_),B2("className",W,_,v);continue;default:z.context===g8&&Z!=="svg"&&Z!=="math"?H.delete(T.toLowerCase()):H.delete(T),W=Zw(w,T,_),B2(T,W,_,v)}}}}else for(_ in X)if(X.hasOwnProperty(_)&&(T=X[_],T!=null)){if(Z7.hasOwnProperty(_))typeof T!=="function"&&b6(_,T);else if(X.suppressHydrationWarning!==!0)switch(_){case"children":typeof T!=="string"&&typeof T!=="number"||B2("children",w.textContent,T,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=w.innerHTML,T=T?T.__html:void 0,T!=null&&(T=hL(w,T),W!==T&&(v[_]={__html:W}));continue;case"className":tw(w,_,"class",T,H,v);continue;case"tabIndex":tw(w,_,"tabindex",T,H,v);continue;case"style":H.delete(_),yL(w,T,v);continue;case"multiple":H.delete(_),B2(_,w.multiple,T,v);continue;case"muted":H.delete(_),B2(_,w.muted,T,v);continue;case"autoFocus":H.delete("autofocus"),B2(_,w.autofocus,T,v);continue;case"data":if(Z!=="object"){H.delete(_),W=w.getAttribute("data"),B2(_,W,T,v);continue}case"src":case"href":if(!(T!==""||Z==="a"&&_==="href"||Z==="object"&&_==="data")){_==="src"?console.error('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.',_,_):console.error('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.',_,_);continue}aH(w,_,_,T,H,v);continue;case"action":case"formAction":if(W=w.getAttribute(_),typeof T==="function"){H.delete(_.toLowerCase()),_==="formAction"?(H.delete("name"),H.delete("formenctype"),H.delete("formmethod"),H.delete("formtarget")):(H.delete("enctype"),H.delete("method"),H.delete("target"));continue}else if(W===th){H.delete(_.toLowerCase()),B2(_,"function",T,v);continue}aH(w,_,_.toLowerCase(),T,H,v);continue;case"xlinkHref":aH(w,_,"xlink:href",T,H,v);continue;case"contentEditable":cH(w,_,"contenteditable",T,H,v);continue;case"spellCheck":cH(w,_,"spellcheck",T,H,v);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":cH(w,_,_,T,H,v);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":SL(w,_,_.toLowerCase(),T,H,v);continue;case"capture":case"download":w:{q=w;var y=W=_,d=v;if(H.delete(y),q=q.getAttribute(y),q===null)switch(typeof T){case"undefined":case"function":case"symbol":break w;default:if(T===!1)break w}else if(T!=null)switch(typeof T){case"function":case"symbol":break;case"boolean":if(T===!0&&q==="")break w;break;default:if(K1(T,W),q===""+T)break w}B2(W,q,T,d)}continue;case"cols":case"rows":case"size":case"span":w:{if(q=w,y=W=_,d=v,H.delete(y),q=q.getAttribute(y),q===null)switch(typeof T){case"undefined":case"function":case"symbol":case"boolean":break w;default:if(isNaN(T)||1>T)break w}else if(T!=null)switch(typeof T){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(T)||1>T)&&(K1(T,W),q===""+T))break w}B2(W,q,T,d)}continue;case"rowSpan":dL(w,_,"rowspan",T,H,v);continue;case"start":dL(w,_,_,T,H,v);continue;case"xHeight":tw(w,_,"x-height",T,H,v);continue;case"xlinkActuate":tw(w,_,"xlink:actuate",T,H,v);continue;case"xlinkArcrole":tw(w,_,"xlink:arcrole",T,H,v);continue;case"xlinkRole":tw(w,_,"xlink:role",T,H,v);continue;case"xlinkShow":tw(w,_,"xlink:show",T,H,v);continue;case"xlinkTitle":tw(w,_,"xlink:title",T,H,v);continue;case"xlinkType":tw(w,_,"xlink:type",T,H,v);continue;case"xmlBase":tw(w,_,"xml:base",T,H,v);continue;case"xmlLang":tw(w,_,"xml:lang",T,H,v);continue;case"xmlSpace":tw(w,_,"xml:space",T,H,v);continue;case"inert":T!==""||iz[_]||(iz[_]=!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.",_)),SL(w,_,_,T,H,v);continue;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){q=jK(_),W=!1,z.context===g8&&Z!=="svg"&&Z!=="math"?H.delete(q.toLowerCase()):(y=_.toLowerCase(),y=Jz.hasOwnProperty(y)?Jz[y]||null:null,y!==null&&y!==_&&(W=!0,H.delete(y)),H.delete(q));w:if(y=w,d=q,q=T,q2(d))if(y.hasAttribute(d))y=y.getAttribute(d),K1(q,d),q=y===""+q?q:y;else{switch(typeof q){case"function":case"symbol":break w;case"boolean":if(y=d.toLowerCase().slice(0,5),y!=="data-"&&y!=="aria-")break w}q=q===void 0?void 0:null}else q=void 0;W||B2(_,q,T,v)}}}return 0<H.size&&X.suppressHydrationWarning!==!0&&SP(w,H,v),Object.keys(v).length===0?null:v}function DP(w,Z){switch(w.length){case 0:return"";case 1:return w[0];case 2:return w[0]+" "+Z+" "+w[1];default:return w.slice(0,-1).join(", ")+", "+Z+" "+w[w.length-1]}}function jL(w){switch(w){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jP(){if(typeof performance.getEntriesByType==="function"){for(var w=0,Z=0,X=performance.getEntriesByType("resource"),z=0;z<X.length;z++){var v=X[z],H=v.transferSize,W=v.initiatorType,q=v.duration;if(H&&q&&jL(W)){W=0,q=v.responseEnd;for(z+=1;z<X.length;z++){var T=X[z],_=T.startTime;if(_>q)break;var{transferSize:y,initiatorType:d}=T;y&&jL(d)&&(T=T.responseEnd,W+=y*(T<q?1:(q-_)/(T-_)))}if(--z,Z+=8*(H+W)/(v.duration/1000),w++,10<w)break}}if(0<w)return Z/w/1e6}return navigator.connection&&(w=navigator.connection.downlink,typeof w==="number")?w:5}function jY(w){return w.nodeType===9?w:w.ownerDocument}function EL(w){switch(w){case P3:return GZ;case Xz:return rz;default:return g8}}function uL(w,Z){if(w===g8)switch(Z){case"svg":return GZ;case"math":return rz;default:return g8}return w===GZ&&Z==="foreignObject"?g8:w}function iH(w,Z){return w==="textarea"||w==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function EP(){var w=window.event;if(w&&w.type==="popstate"){if(w===Mb)return!1;return Mb=w,!0}return Mb=null,!1}function A$(){var w=window.event;return w&&w!==IX?w.type:null}function M$(){var w=window.event;return w&&w!==IX?w.timeStamp:-1.1}function uP(w){setTimeout(function(){throw w})}function lP(w,Z,X){switch(Z){case"button":case"input":case"select":case"textarea":X.autoFocus&&w.focus();break;case"img":X.src?w.src=X.src:X.srcSet&&(w.srcset=X.srcSet)}}function cP(){}function aP(w,Z,X,z){dP(w,Z,X,z),w[E2]=z}function lL(w){w$(w,"")}function iP(w,Z,X){w.nodeValue=X}function cL(w){if(!w.__reactWarnedAboutChildrenConflict){var Z=w[E2]||null;if(Z!==null){var X=a0(w);X!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?(w.__reactWarnedAboutChildrenConflict=!0,b0(X,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.')})):Z.dangerouslySetInnerHTML!=null&&(w.__reactWarnedAboutChildrenConflict=!0,b0(X,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 R8(w){return w==="head"}function pP(w,Z){w.removeChild(Z)}function rP(w,Z){(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).removeChild(Z)}function aL(w,Z){var X=Z,z=0;do{var v=X.nextSibling;if(w.removeChild(X),v&&v.nodeType===8)if(X=v.data,X===TX||X===pz){if(z===0){w.removeChild(v),O3(Z);return}z--}else if(X===NX||X===Y9||X===F7||X===zZ||X===k7)z++;else if(X===wV)x$(w.ownerDocument.documentElement);else if(X===$V){X=w.ownerDocument.head,x$(X);for(var H=X.firstChild;H;){var{nextSibling:W,nodeName:q}=H;H[y$]||q==="SCRIPT"||q==="STYLE"||q==="LINK"&&H.rel.toLowerCase()==="stylesheet"||X.removeChild(H),H=W}}else X===ZV&&x$(w.ownerDocument.body);X=v}while(X);O3(Z)}function iL(w,Z){var X=w;w=0;do{var z=X.nextSibling;if(X.nodeType===1?Z?(X._stashedDisplay=X.style.display,X.style.display="none"):(X.style.display=X._stashedDisplay||"",X.getAttribute("style")===""&&X.removeAttribute("style")):X.nodeType===3&&(Z?(X._stashedText=X.nodeValue,X.nodeValue=""):X.nodeValue=X._stashedText||""),z&&z.nodeType===8)if(X=z.data,X===TX)if(w===0)break;else w--;else X!==NX&&X!==Y9&&X!==F7&&X!==zZ||w++;X=z}while(X)}function nP(w){iL(w,!0)}function oP(w){w=w.style,typeof w.setProperty==="function"?w.setProperty("display","none","important"):w.display="none"}function sP(w){w.nodeValue=""}function tP(w){iL(w,!1)}function eP(w,Z){Z=Z[XV],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,w.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function wf(w,Z){w.nodeValue=Z}function pH(w){var Z=w.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var X=Z;switch(Z=Z.nextSibling,X.nodeName){case"HTML":case"HEAD":case"BODY":pH(X),F0(X);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(X.rel.toLowerCase()==="stylesheet")continue}w.removeChild(X)}}function Zf(w,Z,X,z){for(;w.nodeType===1;){var v=X;if(w.nodeName.toLowerCase()!==Z.toLowerCase()){if(!z&&(w.nodeName!=="INPUT"||w.type!=="hidden"))break}else if(!z)if(Z==="input"&&w.type==="hidden"){K1(v.name,"name");var H=v.name==null?null:""+v.name;if(v.type==="hidden"&&w.getAttribute("name")===H)return w}else return w;else if(!w[y$])switch(Z){case"meta":if(!w.hasAttribute("itemprop"))break;return w;case"link":if(H=w.getAttribute("rel"),H==="stylesheet"&&w.hasAttribute("data-precedence"))break;else if(H!==v.rel||w.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||w.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||w.getAttribute("title")!==(v.title==null?null:v.title))break;return w;case"style":if(w.hasAttribute("data-precedence"))break;return w;case"script":if(H=w.getAttribute("src"),(H!==(v.src==null?null:v.src)||w.getAttribute("type")!==(v.type==null?null:v.type)||w.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&H&&w.hasAttribute("async")&&!w.hasAttribute("itemprop"))break;return w;default:return w}if(w=fw(w.nextSibling),w===null)break}return null}function $f(w,Z,X){if(Z==="")return null;for(;w.nodeType!==3;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!X)return null;if(w=fw(w.nextSibling),w===null)return null}return w}function pL(w,Z){for(;w.nodeType!==8;){if((w.nodeType!==1||w.nodeName!=="INPUT"||w.type!=="hidden")&&!Z)return null;if(w=fw(w.nextSibling),w===null)return null}return w}function rH(w){return w.data===Y9||w.data===F7}function nH(w){return w.data===zZ||w.data===Y9&&w.ownerDocument.readyState!==yN}function Xf(w,Z){var X=w.ownerDocument;if(w.data===F7)w._reactRetry=Z;else if(w.data!==Y9||X.readyState!==yN)Z();else{var z=function(){Z(),X.removeEventListener("DOMContentLoaded",z)};X.addEventListener("DOMContentLoaded",z),w._reactRetry=z}}function fw(w){for(;w!=null;w=w.nextSibling){var Z=w.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=w.data,Z===NX||Z===zZ||Z===Y9||Z===F7||Z===k7||Z===Ob||Z===RN)break;if(Z===TX||Z===pz)return null}}return w}function rL(w){if(w.nodeType===1){for(var Z=w.nodeName.toLowerCase(),X={},z=w.attributes,v=0;v<z.length;v++){var H=z[v];X[RL(H.name)]=H.name.toLowerCase()==="style"?lH(w):H.value}return{type:Z,props:X}}return w.nodeType===8?w.data===k7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:w.nodeValue}function nL(w,Z,X){return X===null||X[eh]!==!0?(w.nodeValue===Z?w=null:(Z=V8(Z),w=V8(w.nodeValue)===Z?null:w.nodeValue),w):null}function oH(w){w=w.nextSibling;for(var Z=0;w;){if(w.nodeType===8){var X=w.data;if(X===TX||X===pz){if(Z===0)return fw(w.nextSibling);Z--}else X!==NX&&X!==zZ&&X!==Y9&&X!==F7&&X!==k7||Z++}w=w.nextSibling}return null}function oL(w){w=w.previousSibling;for(var Z=0;w;){if(w.nodeType===8){var X=w.data;if(X===NX||X===zZ||X===Y9||X===F7||X===k7){if(Z===0)return w;Z--}else X!==TX&&X!==pz||Z++}w=w.previousSibling}return null}function Jf(w){O3(w)}function Yf(w){O3(w)}function zf(w){O3(w)}function sL(w,Z,X,z,v){switch(v&&GB(w,z.ancestorInfo),Z=jY(X),w){case"html":if(w=Z.documentElement,!w)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 w;case"head":if(w=Z.head,!w)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 w;case"body":if(w=Z.body,!w)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 w;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Gf(w,Z,X,z){if(!X[D8]&&a0(X)){var v=X.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.",v,v,v)}switch(w){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(v=X.attributes;v.length;)X.removeAttributeNode(v[0]);F2(X,w,Z),X[N2]=z,X[E2]=Z}function x$(w){for(var Z=w.attributes;Z.length;)w.removeAttributeNode(Z[0]);F0(w)}function EY(w){return typeof w.getRootNode==="function"?w.getRootNode():w.nodeType===9?w:w.ownerDocument}function tL(w,Z,X){var z=vZ;if(z&&typeof Z==="string"&&Z){var v=sw(Z);v='link[rel="'+w+'"][href="'+v+'"]',typeof X==="string"&&(v+='[crossorigin="'+X+'"]'),uN.has(v)||(uN.add(v),w={rel:w,crossOrigin:X,href:Z},z.querySelector(v)===null&&(Z=z.createElement("link"),F2(Z,"link",w),V0(Z),z.head.appendChild(Z)))}}function eL(w,Z,X,z){var v=(v=S8.current)?EY(v):null;if(!v)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(w){case"meta":case"title":return null;case"style":return typeof X.precedence==="string"&&typeof X.href==="string"?(X=I3(X.href),Z=s0(v).hoistableStyles,z=Z.get(X),z||(z={type:"style",instance:null,count:0,state:null},Z.set(X,z)),z):{type:"void",instance:null,count:0,state:null};case"link":if(X.rel==="stylesheet"&&typeof X.href==="string"&&typeof X.precedence==="string"){w=I3(X.href);var H=s0(v).hoistableStyles,W=H.get(w);if(!W&&(v=v.ownerDocument||v,W={type:"stylesheet",instance:null,count:0,state:{loading:T7,preload:null}},H.set(w,W),(H=v.querySelector(m$(w)))&&!H._p&&(W.instance=H,W.state.loading=_X|B4),!H4.has(w))){var q={rel:"preload",as:"style",href:X.href,crossOrigin:X.crossOrigin,integrity:X.integrity,media:X.media,hrefLang:X.hrefLang,referrerPolicy:X.referrerPolicy};H4.set(w,q),H||vf(v,w,q,W.state)}if(Z&&z===null)throw X=`
|
|
182
|
+
|
|
183
|
+
- `+uY(Z)+`
|
|
184
|
+
+ `+uY(X),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."+X);return W}if(Z&&z!==null)throw X=`
|
|
185
|
+
|
|
186
|
+
- `+uY(Z)+`
|
|
187
|
+
+ `+uY(X),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."+X);return null;case"script":return Z=X.async,X=X.src,typeof X==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(X=_3(X),Z=s0(v).hoistableScripts,z=Z.get(X),z||(z={type:"script",instance:null,count:0,state:null},Z.set(X,z)),z):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+w+'". this is a bug in React.')}}function uY(w){var Z=0,X="<link";return typeof w.rel==="string"?(Z++,X+=' rel="'+w.rel+'"'):m4.call(w,"rel")&&(Z++,X+=' rel="'+(w.rel===null?"null":"invalid type "+typeof w.rel)+'"'),typeof w.href==="string"?(Z++,X+=' href="'+w.href+'"'):m4.call(w,"href")&&(Z++,X+=' href="'+(w.href===null?"null":"invalid type "+typeof w.href)+'"'),typeof w.precedence==="string"?(Z++,X+=' precedence="'+w.precedence+'"'):m4.call(w,"precedence")&&(Z++,X+=" precedence={"+(w.precedence===null?"null":"invalid type "+typeof w.precedence)+"}"),Object.getOwnPropertyNames(w).length>Z&&(X+=" ..."),X+" />"}function I3(w){return'href="'+sw(w)+'"'}function m$(w){return'link[rel="stylesheet"]['+w+"]"}function wk(w){return B1({},w,{"data-precedence":w.precedence,precedence:null})}function vf(w,Z,X,z){w.querySelector('link[rel="preload"][as="style"]['+Z+"]")?z.loading=_X:(Z=w.createElement("link"),z.preload=Z,Z.addEventListener("load",function(){return z.loading|=_X}),Z.addEventListener("error",function(){return z.loading|=jN}),F2(Z,"link",X),V0(Z),w.head.appendChild(Z))}function _3(w){return'[src="'+sw(w)+'"]'}function P$(w){return"script[async]"+w}function Zk(w,Z,X){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var z=w.querySelector('style[data-href~="'+sw(X.href)+'"]');if(z)return Z.instance=z,V0(z),z;var v=B1({},X,{"data-href":X.href,"data-precedence":X.precedence,href:null,precedence:null});return z=(w.ownerDocument||w).createElement("style"),V0(z),F2(z,"style",v),lY(z,X.precedence,w),Z.instance=z;case"stylesheet":v=I3(X.href);var H=w.querySelector(m$(v));if(H)return Z.state.loading|=B4,Z.instance=H,V0(H),H;z=wk(X),(v=H4.get(v))&&sH(z,v),H=(w.ownerDocument||w).createElement("link"),V0(H);var W=H;return W._p=new Promise(function(q,T){W.onload=q,W.onerror=T}),F2(H,"link",z),Z.state.loading|=B4,lY(H,X.precedence,w),Z.instance=H;case"script":if(H=_3(X.src),v=w.querySelector(P$(H)))return Z.instance=v,V0(v),v;if(z=X,v=H4.get(H))z=B1({},X),tH(z,v);return w=w.ownerDocument||w,v=w.createElement("script"),V0(v),F2(v,"link",z),w.head.appendChild(v),Z.instance=v;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&B4)===T7&&(z=Z.instance,Z.state.loading|=B4,lY(z,X.precedence,w));return Z.instance}function lY(w,Z,X){for(var z=X.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=z.length?z[z.length-1]:null,H=v,W=0;W<z.length;W++){var q=z[W];if(q.dataset.precedence===Z)H=q;else if(H!==v)break}H?H.parentNode.insertBefore(w,H.nextSibling):(Z=X.nodeType===9?X.head:X,Z.insertBefore(w,Z.firstChild))}function sH(w,Z){w.crossOrigin==null&&(w.crossOrigin=Z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=Z.referrerPolicy),w.title==null&&(w.title=Z.title)}function tH(w,Z){w.crossOrigin==null&&(w.crossOrigin=Z.crossOrigin),w.referrerPolicy==null&&(w.referrerPolicy=Z.referrerPolicy),w.integrity==null&&(w.integrity=Z.integrity)}function $k(w,Z,X){if(nz===null){var z=new Map,v=nz=new Map;v.set(X,z)}else v=nz,z=v.get(X),z||(z=new Map,v.set(X,z));if(z.has(w))return z;z.set(w,null),X=X.getElementsByTagName(w);for(v=0;v<X.length;v++){var H=X[v];if(!(H[y$]||H[N2]||w==="link"&&H.getAttribute("rel")==="stylesheet")&&H.namespaceURI!==P3){var W=H.getAttribute(Z)||"";W=w+W;var q=z.get(W);q?q.push(H):z.set(W,[H])}}return z}function Xk(w,Z,X){w=w.ownerDocument||w,w.head.insertBefore(X,Z==="title"?w.querySelector("head > title"):null)}function Bf(w,Z,X){var z=!X.ancestorInfo.containerTagInScope;if(X.context===GZ||Z.itemProp!=null)return!z||Z.itemProp==null||w!=="meta"&&w!=="title"&&w!=="style"&&w!=="link"&&w!=="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.",w,w),!1;switch(w){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){z&&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 Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){w=Z.href;var{onError:v,disabled:H}=Z;X=[],Z.onLoad&&X.push("`onLoad`"),v&&X.push("`onError`"),H!=null&&X.push("`disabled`"),v=DP(X,"and"),v+=X.length===1?" prop":" props",H=X.length===1?"an "+v:"the "+v,X.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.',w,H,v)}z&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.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"):(Z.onError||Z.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}switch(Z.rel){case"stylesheet":return w=Z.precedence,Z=Z.disabled,typeof w!=="string"&&z&&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 w==="string"&&Z==null;default:return!0}case"script":if(w=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!w||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){z&&(w?Z.onLoad||Z.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":z&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",w)}return!1}function Jk(w){return w.type==="stylesheet"&&(w.state.loading&EN)===T7?!1:!0}function Hf(w,Z,X,z){if(X.type==="stylesheet"&&(typeof z.media!=="string"||matchMedia(z.media).matches!==!1)&&(X.state.loading&B4)===T7){if(X.instance===null){var v=I3(z.href),H=Z.querySelector(m$(v));if(H){Z=H._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&(w.count++,w=cY.bind(w),Z.then(w,w)),X.state.loading|=B4,X.instance=H,V0(H);return}H=Z.ownerDocument||Z,z=wk(z),(v=H4.get(v))&&sH(z,v),H=H.createElement("link"),V0(H);var W=H;W._p=new Promise(function(q,T){W.onload=q,W.onerror=T}),F2(H,"link",z),X.instance=H}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(X,Z),(Z=X.state.preload)&&(X.state.loading&EN)===T7&&(w.count++,X=cY.bind(w),Z.addEventListener("load",X),Z.addEventListener("error",X))}}function gf(w,Z){return w.stylesheets&&w.count===0&&aY(w,w.stylesheets),0<w.count||0<w.imgCount?function(X){var z=setTimeout(function(){if(w.stylesheets&&aY(w,w.stylesheets),w.unsuspend){var H=w.unsuspend;w.unsuspend=null,H()}},zV+Z);0<w.imgBytes&&mb===0&&(mb=125*jP()*vV);var v=setTimeout(function(){if(w.waitingForImages=!1,w.count===0&&(w.stylesheets&&aY(w,w.stylesheets),w.unsuspend)){var H=w.unsuspend;w.unsuspend=null,H()}},(w.imgBytes>mb?50:GV)+Z);return w.unsuspend=X,function(){w.unsuspend=null,clearTimeout(z),clearTimeout(v)}}:null}function cY(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)aY(this,this.stylesheets);else if(this.unsuspend){var w=this.unsuspend;this.unsuspend=null,w()}}}function aY(w,Z){w.stylesheets=null,w.unsuspend!==null&&(w.count++,oz=new Map,Z.forEach(bf,w),oz=null,cY.call(w))}function bf(w,Z){if(!(Z.state.loading&B4)){var X=oz.get(w);if(X)var z=X.get(Pb);else{X=new Map,oz.set(w,X);for(var v=w.querySelectorAll("link[data-precedence],style[data-precedence]"),H=0;H<v.length;H++){var W=v[H];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")X.set(W.dataset.precedence,W),z=W}z&&X.set(Pb,z)}v=Z.instance,W=v.getAttribute("data-precedence"),H=X.get(W)||z,H===z&&X.set(Pb,v),X.set(W,v),this.count++,z=cY.bind(this),v.addEventListener("load",z),v.addEventListener("error",z),H?H.parentNode.insertBefore(v,H.nextSibling):(w=w.nodeType===9?w.head:w,w.insertBefore(v,w.firstChild)),Z.state.loading|=B4}}function Qf(w,Z,X,z,v,H,W,q,T){this.tag=1,this.containerInfo=w,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=N7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Iw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iw(0),this.hiddenUpdates=Iw(null),this.identifierPrefix=z,this.onUncaughtError=v,this.onCaughtError=H,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,w=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)w.push(new Set);this._debugRootType=X?"hydrateRoot()":"createRoot()"}function Yk(w,Z,X,z,v,H,W,q,T,_,y,d){return w=new Qf(w,Z,X,W,T,_,y,d,q),Z=hh,H===!0&&(Z|=P2|f4),Z|=Z1,H=F(3,null,null,Z),w.current=H,H.stateNode=w,Z=CB(),r9(Z),w.pooledCache=Z,r9(Z),H.memoizedState={element:z,isDehydrated:X,cache:Z},PB(H),w}function zk(w){if(!w)return l8;return w=l8,w}function eH(w,Z,X,z,v,H){if(m2&&typeof m2.onScheduleFiberRoot==="function")try{m2.onScheduleFiberRoot(x3,z,X)}catch(W){U6||(U6=!0,console.error("React instrumentation encountered an error: %o",W))}v=zk(v),z.context===null?z.context=v:z.pendingContext=v,K6&&Vw!==null&&!iN&&(iN=!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.`,E(Vw)||"Unknown")),z=M8(Z),z.payload={element:X},H=H===void 0?null:H,H!==null&&(typeof H!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",H),z.callback=H),X=x8(w,z,Z),X!==null&&(w6(Z,"root.render()",null),F5(X,w,Z),g$(X,w,Z))}function Gk(w,Z){if(w=w.memoizedState,w!==null&&w.dehydrated!==null){var X=w.retryLane;w.retryLane=X!==0&&X<Z?X:Z}}function wg(w,Z){Gk(w,Z),(w=w.alternate)&&Gk(w,Z)}function vk(w){if(w.tag===13||w.tag===31){var Z=x2(w,67108864);Z!==null&&F5(Z,w,67108864),wg(w,67108864)}}function Bk(w){if(w.tag===13||w.tag===31){var Z=Pw(w);Z=O4(Z);var X=x2(w,Z);X!==null&&F5(X,w,Z),wg(w,Z)}}function Wf(){return Vw}function Kf(w,Z,X,z){var v=Y0.T;Y0.T=null;var H=m1.p;try{m1.p=Rw,Zg(w,Z,X,z)}finally{m1.p=H,Y0.T=v}}function Uf(w,Z,X,z){var v=Y0.T;Y0.T=null;var H=m1.p;try{m1.p=P4,Zg(w,Z,X,z)}finally{m1.p=H,Y0.T=v}}function Zg(w,Z,X,z){if(tz){var v=$g(z);if(v===null)jH(w,Z,z,ez,X),gk(w,z);else if(qf(v,w,Z,X,z))z.stopPropagation();else if(gk(w,z),Z&4&&-1<HV.indexOf(w)){for(;v!==null;){var H=a0(v);if(H!==null)switch(H.tag){case 3:if(H=H.stateNode,H.current.memoizedState.isDehydrated){var W=a5(H.pendingLanes);if(W!==0){var q=H;q.pendingLanes|=2;for(q.entangledLanes|=2;W;){var T=1<<31-j2(W);q.entanglements[1]|=T,W&=~T}g6(H),(F1&(n5|Dw))===Q2&&(Rz=H2()+FN,O$(0,!1))}}break;case 31:case 13:q=x2(H,2),q!==null&&F5(q,H,2),F3(),wg(H,2)}if(H=$g(z),H===null&&jH(w,Z,z,ez,X),H===v)break;v=H}v!==null&&z.stopPropagation()}else jH(w,Z,z,null,X)}}function $g(w){return w=vB(w),Xg(w)}function Xg(w){if(ez=null,w=A0(w),w!==null){var Z=x(w);if(Z===null)w=null;else{var X=Z.tag;if(X===13){if(w=S(Z),w!==null)return w;w=null}else if(X===31){if(w=D(Z),w!==null)return w;w=null}else if(X===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;w=null}else Z!==w&&(w=null)}}return ez=w,null}function Hk(w){switch(w){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 Rw;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 P4;case"message":switch(Cf()){case Ug:return Rw;case qg:return P4;case M3:case Af:return L6;case Lg:return Zz;default:return L6}default:return L6}}function gk(w,Z){switch(w){case"focusin":case"focusout":z9=null;break;case"dragenter":case"dragleave":G9=null;break;case"mouseover":case"mouseout":v9=null;break;case"pointerover":case"pointerout":CX.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":AX.delete(Z.pointerId)}}function f$(w,Z,X,z,v,H){if(w===null||w.nativeEvent!==H)return w={blockedOn:Z,domEventName:X,eventSystemFlags:z,nativeEvent:H,targetContainers:[v]},Z!==null&&(Z=a0(Z),Z!==null&&vk(Z)),w;return w.eventSystemFlags|=z,Z=w.targetContainers,v!==null&&Z.indexOf(v)===-1&&Z.push(v),w}function qf(w,Z,X,z,v){switch(Z){case"focusin":return z9=f$(z9,w,Z,X,z,v),!0;case"dragenter":return G9=f$(G9,w,Z,X,z,v),!0;case"mouseover":return v9=f$(v9,w,Z,X,z,v),!0;case"pointerover":var H=v.pointerId;return CX.set(H,f$(CX.get(H)||null,w,Z,X,z,v)),!0;case"gotpointercapture":return H=v.pointerId,AX.set(H,f$(AX.get(H)||null,w,Z,X,z,v)),!0}return!1}function bk(w){var Z=A0(w.target);if(Z!==null){var X=x(Z);if(X!==null){if(Z=X.tag,Z===13){if(Z=S(X),Z!==null){w.blockedOn=Z,U0(w.priority,function(){Bk(X)});return}}else if(Z===31){if(Z=D(X),Z!==null){w.blockedOn=Z,U0(w.priority,function(){Bk(X)});return}}else if(Z===3&&X.stateNode.current.memoizedState.isDehydrated){w.blockedOn=X.tag===3?X.stateNode.containerInfo:null;return}}}w.blockedOn=null}function iY(w){if(w.blockedOn!==null)return!1;for(var Z=w.targetContainers;0<Z.length;){var X=$g(w.nativeEvent);if(X===null){X=w.nativeEvent;var z=new X.constructor(X.type,X),v=z;S$!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),S$=v,X.target.dispatchEvent(z),S$===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."),S$=null}else return Z=a0(X),Z!==null&&vk(Z),w.blockedOn=X,!1;Z.shift()}return!0}function Qk(w,Z,X){iY(w)&&X.delete(Z)}function Lf(){fb=!1,z9!==null&&iY(z9)&&(z9=null),G9!==null&&iY(G9)&&(G9=null),v9!==null&&iY(v9)&&(v9=null),CX.forEach(Qk),AX.forEach(Qk)}function pY(w,Z){w.blockedOn===Z&&(w.blockedOn=null,fb||(fb=!0,N1.unstable_scheduleCallback(N1.unstable_NormalPriority,Lf)))}function Wk(w){wG!==w&&(wG=w,N1.unstable_scheduleCallback(N1.unstable_NormalPriority,function(){wG===w&&(wG=null);for(var Z=0;Z<w.length;Z+=3){var X=w[Z],z=w[Z+1],v=w[Z+2];if(typeof z!=="function")if(Xg(z||X)===null)continue;else break;var H=a0(X);H!==null&&(w.splice(Z,3),Z-=3,X={pending:!0,data:v,method:X.method,action:z},Object.freeze(X),XH(H,X,z,v))}}))}function O3(w){function Z(T){return pY(T,w)}z9!==null&&pY(z9,w),G9!==null&&pY(G9,w),v9!==null&&pY(v9,w),CX.forEach(Z),AX.forEach(Z);for(var X=0;X<B9.length;X++){var z=B9[X];z.blockedOn===w&&(z.blockedOn=null)}for(;0<B9.length&&(X=B9[0],X.blockedOn===null);)bk(X),X.blockedOn===null&&B9.shift();if(X=(w.ownerDocument||w).$$reactFormReplay,X!=null)for(z=0;z<X.length;z+=3){var v=X[z],H=X[z+1],W=v[E2]||null;if(typeof H==="function")W||Wk(X);else if(W){var q=null;if(H&&H.hasAttribute("formAction")){if(v=H,W=H[E2]||null)q=W.formAction;else if(Xg(v)!==null)continue}else q=W.action;typeof q==="function"?X[z+1]=q:(X.splice(z,3),z-=3),Wk(X)}}}function Kk(){function w(H){H.canIntercept&&H.info==="react-transition"&&H.intercept({handler:function(){return new Promise(function(W){return v=W})},focusReset:"manual",scroll:"manual"})}function Z(){v!==null&&(v(),v=null),z||setTimeout(X,20)}function X(){if(!z&&!navigation.transition){var H=navigation.currentEntry;H&&H.url!=null&&navigation.navigate(H.url,{state:H.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var z=!1,v=null;return navigation.addEventListener("navigate",w),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(X,100),function(){z=!0,navigation.removeEventListener("navigate",w),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),v!==null&&(v(),v=null)}}}function Jg(w){this._internalRoot=w}function rY(w){this._internalRoot=w}function Uk(w){w[D8]&&(w._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 B1=Object.assign,kf=Symbol.for("react.element"),Q6=Symbol.for("react.transitional.element"),C3=Symbol.for("react.portal"),A3=Symbol.for("react.fragment"),nY=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),zg=Symbol.for("react.consumer"),W6=Symbol.for("react.context"),h$=Symbol.for("react.forward_ref"),Gg=Symbol.for("react.suspense"),vg=Symbol.for("react.suspense_list"),oY=Symbol.for("react.memo"),hw=Symbol.for("react.lazy"),Bg=Symbol.for("react.activity"),Ff=Symbol.for("react.memo_cache_sentinel"),qk=Symbol.iterator,Nf=Symbol.for("react.client.reference"),p5=Array.isArray,Y0=bZ.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m1=ib.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Tf=Object.freeze({pending:!1,data:null,method:null,action:null}),Hg=[],gg=[],s6=-1,y8=g0(null),V$=g0(null),S8=g0(null),sY=g0(null),R$=0,Lk,kk,Fk,Nk,Tk,Ik,_k;M.__reactDisabledLog=!0;var bg,Ok,Qg=!1,Wg=new(typeof WeakMap==="function"?WeakMap:Map),Vw=null,K6=!1,m4=Object.prototype.hasOwnProperty,Kg=N1.unstable_scheduleCallback,If=N1.unstable_cancelCallback,_f=N1.unstable_shouldYield,Of=N1.unstable_requestPaint,H2=N1.unstable_now,Cf=N1.unstable_getCurrentPriorityLevel,Ug=N1.unstable_ImmediatePriority,qg=N1.unstable_UserBlockingPriority,M3=N1.unstable_NormalPriority,Af=N1.unstable_LowPriority,Lg=N1.unstable_IdlePriority,Mf=N1.log,xf=N1.unstable_setDisableYieldValue,x3=null,m2=null,U6=!1,q6=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",j2=Math.clz32?Math.clz32:pw,mf=Math.log,Pf=Math.LN2,tY=256,eY=262144,wz=4194304,Rw=2,P4=8,L6=32,Zz=268435456,d8=Math.random().toString(36).slice(2),N2="__reactFiber$"+d8,E2="__reactProps$"+d8,D8="__reactContainer$"+d8,kg="__reactEvents$"+d8,ff="__reactListeners$"+d8,hf="__reactHandles$"+d8,Ck="__reactResources$"+d8,y$="__reactMarker$"+d8,Ak=new Set,Z7={},Fg={},Vf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Rf=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]*$"),Mk={},xk={},yf=/[\n"\\]/g,mk=!1,Pk=!1,fk=!1,hk=!1,Vk=!1,Rk=!1,yk=["value","defaultValue"],Sk=!1,dk=/["'&<>\n\t]|^\s|\s$/,Sf="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(" "),Dk="applet caption html table td th marquee object template foreignObject desc title".split(" "),df=Dk.concat(["button"]),Df="dd dt li option optgroup p rp rt".split(" "),jk={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},$z={},Ng={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"]},Ek=/([A-Z])/g,uk=/^ms-/,jf=/^(?:webkit|moz|o)[A-Z]/,Ef=/^-ms-/,uf=/-(.)/g,lk=/;\s*$/,m3={},Tg={},ck=!1,ak=!1,ik=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(" ")),Xz="http://www.w3.org/1998/Math/MathML",P3="http://www.w3.org/2000/svg",lf=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"]]),Jz={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"},pk={"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},f3={},cf=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]*$"),af=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]*$"),rk=!1,u2={},nk=/^on./,pf=/^on[^A-Z]/,rf=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]*$"),nf=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]*$"),of=/^[\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,S$=null,h3=null,V3=null,Ig=!1,k6=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_g=!1;if(k6)try{var d$={};Object.defineProperty(d$,"passive",{get:function(){_g=!0}}),window.addEventListener("test",d$,d$),window.removeEventListener("test",d$,d$)}catch(w){_g=!1}var j8=null,Og=null,Yz=null,$7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(w){return w.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zz=$w($7),D$=B1({},$7,{view:0,detail:0}),sf=$w(D$),Cg,Ag,j$,Gz=B1({},D$,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:BB,button:0,buttons:0,relatedTarget:function(w){return w.relatedTarget===void 0?w.fromElement===w.srcElement?w.toElement:w.fromElement:w.relatedTarget},movementX:function(w){if("movementX"in w)return w.movementX;return w!==j$&&(j$&&w.type==="mousemove"?(Cg=w.screenX-j$.screenX,Ag=w.screenY-j$.screenY):Ag=Cg=0,j$=w),Cg},movementY:function(w){return"movementY"in w?w.movementY:Ag}}),ok=$w(Gz),tf=B1({},Gz,{dataTransfer:0}),ef=$w(tf),wh=B1({},D$,{relatedTarget:0}),Mg=$w(wh),Zh=B1({},$7,{animationName:0,elapsedTime:0,pseudoElement:0}),$h=$w(Zh),Xh=B1({},$7,{clipboardData:function(w){return"clipboardData"in w?w.clipboardData:window.clipboardData}}),Jh=$w(Xh),Yh=B1({},$7,{data:0}),sk=$w(Yh),zh=sk,Gh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vh={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"},Bh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Hh=B1({},D$,{key:function(w){if(w.key){var Z=Gh[w.key]||w.key;if(Z!=="Unidentified")return Z}return w.type==="keypress"?(w=iJ(w),w===13?"Enter":String.fromCharCode(w)):w.type==="keydown"||w.type==="keyup"?vh[w.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:BB,charCode:function(w){return w.type==="keypress"?iJ(w):0},keyCode:function(w){return w.type==="keydown"||w.type==="keyup"?w.keyCode:0},which:function(w){return w.type==="keypress"?iJ(w):w.type==="keydown"||w.type==="keyup"?w.keyCode:0}}),gh=$w(Hh),bh=B1({},Gz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tk=$w(bh),Qh=B1({},D$,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:BB}),Wh=$w(Qh),Kh=B1({},$7,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uh=$w(Kh),qh=B1({},Gz,{deltaX:function(w){return"deltaX"in w?w.deltaX:("wheelDeltaX"in w)?-w.wheelDeltaX:0},deltaY:function(w){return"deltaY"in w?w.deltaY:("wheelDeltaY"in w)?-w.wheelDeltaY:("wheelDelta"in w)?-w.wheelDelta:0},deltaZ:0,deltaMode:0}),Lh=$w(qh),kh=B1({},$7,{newState:0,oldState:0}),Fh=$w(kh),Nh=[9,13,27,32],ek=229,xg=k6&&"CompositionEvent"in window,E$=null;k6&&"documentMode"in document&&(E$=document.documentMode);var Th=k6&&"TextEvent"in window&&!E$,wF=k6&&(!xg||E$&&8<E$&&11>=E$),ZF=32,$F=String.fromCharCode(ZF),XF=!1,R3=!1,Ih={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},u$=null,l$=null,JF=!1;k6&&(JF=lm("input")&&(!document.documentMode||9<document.documentMode));var l2=typeof Object.is==="function"?Object.is:nm,_h=k6&&"documentMode"in document&&11>=document.documentMode,y3=null,mg=null,c$=null,Pg=!1,S3={animationend:E9("Animation","AnimationEnd"),animationiteration:E9("Animation","AnimationIteration"),animationstart:E9("Animation","AnimationStart"),transitionrun:E9("Transition","TransitionRun"),transitionstart:E9("Transition","TransitionStart"),transitioncancel:E9("Transition","TransitionCancel"),transitionend:E9("Transition","TransitionEnd")},fg={},YF={};k6&&(YF=document.createElement("div").style,("AnimationEvent"in window)||(delete S3.animationend.animation,delete S3.animationiteration.animation,delete S3.animationstart.animation),("TransitionEvent"in window)||delete S3.transitionend.transition);var zF=u9("animationend"),GF=u9("animationiteration"),vF=u9("animationstart"),Oh=u9("transitionrun"),Ch=u9("transitionstart"),Ah=u9("transitioncancel"),BF=u9("transitionend"),HF=new Map,hg="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(" ");hg.push("scrollEnd");var gF=0;if(typeof performance==="object"&&typeof performance.now==="function")var Mh=performance,bF=function(){return Mh.now()};else{var xh=Date;bF=function(){return xh.now()}}var Vg=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},mh="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.",vz=0,Rg=1,yg=2,Sg=3,Bz="– ",Hz="+ ",QF=" ",n1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",ew="Components ⚛",H1="Scheduler ⚛",Q1="Blocking",E8=!1,t6={color:"primary",properties:null,tooltipText:"",track:ew},u8={start:-0,end:-0,detail:{devtools:t6}},Ph=["Changed Props",""],WF="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fh=["Changed Props",WF],a$=1,e6=2,w4=[],d3=0,dg=0,l8={};Object.freeze(l8);var Z4=null,D3=null,l0=0,hh=1,Z1=2,P2=8,f4=16,Vh=32,KF=!1;try{var UF=Object.preventExtensions({})}catch(w){KF=!0}var Dg=new WeakMap,j3=[],E3=0,gz=null,i$=0,$4=[],X4=0,X7=null,w8=1,Z8="",T2=null,o1=null,U1=!1,F6=!1,yw=null,c8=null,J4=!1,jg=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."),Eg=g0(null),ug=g0(null),qF={},bz=null,u3=null,l3=!1,Rh=typeof AbortController<"u"?AbortController:function(){var w=[],Z=this.signal={aborted:!1,addEventListener:function(X,z){w.push(z)}};this.abort=function(){Z.aborted=!0,w.forEach(function(X){return X()})}},yh=N1.unstable_scheduleCallback,Sh=N1.unstable_NormalPriority,R5={$$typeof:W6,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},y5=N1.unstable_now,Qz=console.createTask?console.createTask:function(){return null},p$=1,Wz=2,g2=-0,a8=-0,$8=-0,X8=null,c2=-1.1,J7=-0,g5=-0,S0=-1.1,j0=-1.1,J5=null,N5=!1,i8=-0,N6=-1.1,r$=null,p8=0,lg=null,cg=null,Y7=-1.1,n$=null,c3=-1.1,Kz=-1.1,T6=-0,J8=-1.1,Y4=-1.1,ag=0,o$=null,LF=null,kF=null,r8=-1.1,z7=null,n8=-1.1,Uz=-1.1,FF=-0,NF=-0,qz=0,Y8=null,TF=0,s$=-1.1,Lz=!1,kz=!1,t$=null,ig=0,G7=0,a3=null,IF=Y0.S;Y0.S=function(w,Z){if(LN=H2(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>J8&&0>Y4){J8=y5();var X=M$(),z=A$();if(X!==n8||z!==z7)n8=-1.1;r8=X,z7=z}$P(w,Z)}IF!==null&&IF(w,Z)};var v7=g0(null),h4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},e$=[],wX=[],ZX=[],$X=[],XX=[],JX=[],B7=new Set;h4.recordUnsafeLifecycleWarnings=function(w,Z){B7.has(w.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&e$.push(w),w.mode&P2&&typeof Z.UNSAFE_componentWillMount==="function"&&wX.push(w),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ZX.push(w),w.mode&P2&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&$X.push(w),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&XX.push(w),w.mode&P2&&typeof Z.UNSAFE_componentWillUpdate==="function"&&JX.push(w))},h4.flushPendingUnsafeLifecycleWarnings=function(){var w=new Set;0<e$.length&&(e$.forEach(function(q){w.add(E(q)||"Component"),B7.add(q.type)}),e$=[]);var Z=new Set;0<wX.length&&(wX.forEach(function(q){Z.add(E(q)||"Component"),B7.add(q.type)}),wX=[]);var X=new Set;0<ZX.length&&(ZX.forEach(function(q){X.add(E(q)||"Component"),B7.add(q.type)}),ZX=[]);var z=new Set;0<$X.length&&($X.forEach(function(q){z.add(E(q)||"Component"),B7.add(q.type)}),$X=[]);var v=new Set;0<XX.length&&(XX.forEach(function(q){v.add(E(q)||"Component"),B7.add(q.type)}),XX=[]);var H=new Set;if(0<JX.length&&(JX.forEach(function(q){H.add(E(q)||"Component"),B7.add(q.type)}),JX=[]),0<Z.size){var W=U(Z);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`,W)}0<z.size&&(W=U(z),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`,W)),0<H.size&&(W=U(H),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`,W)),0<w.size&&(W=U(w),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`,W)),0<X.size&&(W=U(X),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`,W)),0<v.size&&(W=U(v),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`,W))};var Fz=new Map,_F=new Set;h4.recordLegacyContextWarning=function(w,Z){var X=null;for(var z=w;z!==null;)z.mode&P2&&(X=z),z=z.return;X===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."):!_F.has(w.type)&&(z=Fz.get(X),w.type.contextTypes!=null||w.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(z===void 0&&(z=[],Fz.set(X,z)),z.push(w))},h4.flushLegacyContextWarning=function(){Fz.forEach(function(w){if(w.length!==0){var Z=w[0],X=new Set;w.forEach(function(v){X.add(E(v)||"Component"),_F.add(v.type)});var z=U(X);b0(Z,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`,z)})}})},h4.discardPendingWarnings=function(){e$=[],wX=[],ZX=[],$X=[],XX=[],JX=[],Fz=new Map};var OF={react_stack_bottom_frame:function(w,Z,X){var z=K6;K6=!0;try{return w(Z,X)}finally{K6=z}}},pg=OF.react_stack_bottom_frame.bind(OF),CF={react_stack_bottom_frame:function(w){var Z=K6;K6=!0;try{return w.render()}finally{K6=Z}}},AF=CF.react_stack_bottom_frame.bind(CF),MF={react_stack_bottom_frame:function(w,Z){try{Z.componentDidMount()}catch(X){x1(w,w.return,X)}}},rg=MF.react_stack_bottom_frame.bind(MF),xF={react_stack_bottom_frame:function(w,Z,X,z,v){try{Z.componentDidUpdate(X,z,v)}catch(H){x1(w,w.return,H)}}},mF=xF.react_stack_bottom_frame.bind(xF),PF={react_stack_bottom_frame:function(w,Z){var X=Z.stack;w.componentDidCatch(Z.value,{componentStack:X!==null?X:""})}},dh=PF.react_stack_bottom_frame.bind(PF),fF={react_stack_bottom_frame:function(w,Z,X){try{X.componentWillUnmount()}catch(z){x1(w,Z,z)}}},hF=fF.react_stack_bottom_frame.bind(fF),VF={react_stack_bottom_frame:function(w){var Z=w.create;return w=w.inst,Z=Z(),w.destroy=Z}},Dh=VF.react_stack_bottom_frame.bind(VF),RF={react_stack_bottom_frame:function(w,Z,X){try{X()}catch(z){x1(w,Z,z)}}},jh=RF.react_stack_bottom_frame.bind(RF),yF={react_stack_bottom_frame:function(w){var Z=w._init;return Z(w._payload)}},Eh=yF.react_stack_bottom_frame.bind(yF),i3=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`."),ng=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."),Nz=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."),Tz={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.')}},H7=null,YX=!1,p3=null,zX=0,$1=null,og,SF=og=!1,dF={},DF={},jF={};L=function(w,Z,X){if(X!==null&&typeof X==="object"&&X._store&&(!X._store.validated&&X.key==null||X._store.validated===2)){if(typeof X._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.");X._store.validated=1;var z=E(w),v=z||"null";if(!dF[v]){dF[v]=!0,X=X._owner,w=w._debugOwner;var H="";w&&typeof w.tag==="number"&&(v=E(w))&&(H=`
|
|
225
|
+
|
|
226
|
+
Check the render method of \``+v+"`."),H||z&&(H=`
|
|
227
|
+
|
|
228
|
+
Check the top-level render call using <`+z+">.");var W="";X!=null&&w!==X&&(z=null,typeof X.tag==="number"?z=E(X):typeof X.name==="string"&&(z=X.name),z&&(W=" It was passed a child from "+z+".")),b0(Z,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.',H,W)})}}};var g7=fU(!0),EF=fU(!1),uF=0,lF=1,cF=2,sg=3,o8=!1,aF=!1,tg=null,eg=!1,r3=g0(null),Iz=g0(0),Sw=g0(null),z4=null,n3=1,GX=2,P5=g0(0),_z=0,G4=1,a2=2,dw=4,i2=8,o3,iF=new Set,pF=new Set,wb=new Set,rF=new Set,z8=0,i0=null,E1=null,S5=null,Oz=!1,s3=!1,b7=!1,Cz=0,vX=0,G8=null,uh=0,lh=25,t=null,v4=null,v8=-1,BX=!1,HX={readContext:X5,use:f8,useCallback:_5,useContext:_5,useEffect:_5,useImperativeHandle:_5,useLayoutEffect:_5,useInsertionEffect:_5,useMemo:_5,useReducer:_5,useRef:_5,useState:_5,useDebugValue:_5,useDeferredValue:_5,useTransition:_5,useSyncExternalStore:_5,useId:_5,useHostTransitionStatus:_5,useFormState:_5,useActionState:_5,useOptimistic:_5,useMemoCache:_5,useCacheRefresh:_5};HX.useEffectEvent=_5;var Zb=null,nF=null,$b=null,oF=null,I6=null,V4=null,Az=null;Zb={readContext:function(w){return X5(w)},use:f8,useCallback:function(w,Z){return t="useCallback",v1(),Q3(Z),eB(w,Z)},useContext:function(w){return t="useContext",v1(),X5(w)},useEffect:function(w,Z){return t="useEffect",v1(),Q3(Z),FY(w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",v1(),Q3(X),tB(w,Z,X)},useInsertionEffect:function(w,Z){t="useInsertionEffect",v1(),Q3(Z),o9(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",v1(),Q3(Z),sB(w,Z)},useMemo:function(w,Z){t="useMemo",v1(),Q3(Z);var X=Y0.H;Y0.H=I6;try{return wH(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",v1();var z=Y0.H;Y0.H=I6;try{return uB(w,Z,X)}finally{Y0.H=z}},useRef:function(w){return t="useRef",v1(),nB(w)},useState:function(w){t="useState",v1();var Z=Y0.H;Y0.H=I6;try{return iB(w)}finally{Y0.H=Z}},useDebugValue:function(){t="useDebugValue",v1()},useDeferredValue:function(w,Z){return t="useDeferredValue",v1(),ZH(w,Z)},useTransition:function(){return t="useTransition",v1(),JH()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",v1(),cB(w,Z,X)},useId:function(){return t="useId",v1(),YH()},useFormState:function(w,Z){return t="useFormState",v1(),KY(),K3(w,Z)},useActionState:function(w,Z){return t="useActionState",v1(),K3(w,Z)},useOptimistic:function(w){return t="useOptimistic",v1(),pB(w)},useHostTransitionStatus:s9,useMemoCache:n9,useCacheRefresh:function(){return t="useCacheRefresh",v1(),zH()},useEffectEvent:function(w){return t="useEffectEvent",v1(),oB(w)}},nF={readContext:function(w){return X5(w)},use:f8,useCallback:function(w,Z){return t="useCallback",K0(),eB(w,Z)},useContext:function(w){return t="useContext",K0(),X5(w)},useEffect:function(w,Z){return t="useEffect",K0(),FY(w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",K0(),tB(w,Z,X)},useInsertionEffect:function(w,Z){t="useInsertionEffect",K0(),o9(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",K0(),sB(w,Z)},useMemo:function(w,Z){t="useMemo",K0();var X=Y0.H;Y0.H=I6;try{return wH(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",K0();var z=Y0.H;Y0.H=I6;try{return uB(w,Z,X)}finally{Y0.H=z}},useRef:function(w){return t="useRef",K0(),nB(w)},useState:function(w){t="useState",K0();var Z=Y0.H;Y0.H=I6;try{return iB(w)}finally{Y0.H=Z}},useDebugValue:function(){t="useDebugValue",K0()},useDeferredValue:function(w,Z){return t="useDeferredValue",K0(),ZH(w,Z)},useTransition:function(){return t="useTransition",K0(),JH()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",K0(),cB(w,Z,X)},useId:function(){return t="useId",K0(),YH()},useActionState:function(w,Z){return t="useActionState",K0(),K3(w,Z)},useFormState:function(w,Z){return t="useFormState",K0(),KY(),K3(w,Z)},useOptimistic:function(w){return t="useOptimistic",K0(),pB(w)},useHostTransitionStatus:s9,useMemoCache:n9,useCacheRefresh:function(){return t="useCacheRefresh",K0(),zH()},useEffectEvent:function(w){return t="useEffectEvent",K0(),oB(w)}},$b={readContext:function(w){return X5(w)},use:f8,useCallback:function(w,Z){return t="useCallback",K0(),IY(w,Z)},useContext:function(w){return t="useContext",K0(),X5(w)},useEffect:function(w,Z){t="useEffect",K0(),Xw(2048,i2,w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",K0(),TY(w,Z,X)},useInsertionEffect:function(w,Z){return t="useInsertionEffect",K0(),Xw(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",K0(),Xw(4,dw,w,Z)},useMemo:function(w,Z){t="useMemo",K0();var X=Y0.H;Y0.H=V4;try{return _Y(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",K0();var z=Y0.H;Y0.H=V4;try{return W3(w,Z,X)}finally{Y0.H=z}},useRef:function(){return t="useRef",K0(),V1().memoizedState},useState:function(){t="useState",K0();var w=Y0.H;Y0.H=V4;try{return W3(M4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",K0()},useDeferredValue:function(w,Z){return t="useDeferredValue",K0(),wq(w,Z)},useTransition:function(){return t="useTransition",K0(),zq()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",K0(),qY(w,Z,X)},useId:function(){return t="useId",K0(),V1().memoizedState},useFormState:function(w){return t="useFormState",K0(),KY(),LY(w)},useActionState:function(w){return t="useActionState",K0(),LY(w)},useOptimistic:function(w,Z){return t="useOptimistic",K0(),cU(w,Z)},useHostTransitionStatus:s9,useMemoCache:n9,useCacheRefresh:function(){return t="useCacheRefresh",K0(),V1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",K0(),NY(w)}},oF={readContext:function(w){return X5(w)},use:f8,useCallback:function(w,Z){return t="useCallback",K0(),IY(w,Z)},useContext:function(w){return t="useContext",K0(),X5(w)},useEffect:function(w,Z){t="useEffect",K0(),Xw(2048,i2,w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",K0(),TY(w,Z,X)},useInsertionEffect:function(w,Z){return t="useInsertionEffect",K0(),Xw(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",K0(),Xw(4,dw,w,Z)},useMemo:function(w,Z){t="useMemo",K0();var X=Y0.H;Y0.H=Az;try{return _Y(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",K0();var z=Y0.H;Y0.H=Az;try{return K$(w,Z,X)}finally{Y0.H=z}},useRef:function(){return t="useRef",K0(),V1().memoizedState},useState:function(){t="useState",K0();var w=Y0.H;Y0.H=Az;try{return K$(M4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",K0()},useDeferredValue:function(w,Z){return t="useDeferredValue",K0(),Zq(w,Z)},useTransition:function(){return t="useTransition",K0(),Gq()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",K0(),qY(w,Z,X)},useId:function(){return t="useId",K0(),V1().memoizedState},useFormState:function(w){return t="useFormState",K0(),KY(),kY(w)},useActionState:function(w){return t="useActionState",K0(),kY(w)},useOptimistic:function(w,Z){return t="useOptimistic",K0(),iU(w,Z)},useHostTransitionStatus:s9,useMemoCache:n9,useCacheRefresh:function(){return t="useCacheRefresh",K0(),V1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",K0(),NY(w)}},I6={readContext:function(w){return K(),X5(w)},use:function(w){return b(),f8(w)},useCallback:function(w,Z){return t="useCallback",b(),v1(),eB(w,Z)},useContext:function(w){return t="useContext",b(),v1(),X5(w)},useEffect:function(w,Z){return t="useEffect",b(),v1(),FY(w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",b(),v1(),tB(w,Z,X)},useInsertionEffect:function(w,Z){t="useInsertionEffect",b(),v1(),o9(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",b(),v1(),sB(w,Z)},useMemo:function(w,Z){t="useMemo",b(),v1();var X=Y0.H;Y0.H=I6;try{return wH(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",b(),v1();var z=Y0.H;Y0.H=I6;try{return uB(w,Z,X)}finally{Y0.H=z}},useRef:function(w){return t="useRef",b(),v1(),nB(w)},useState:function(w){t="useState",b(),v1();var Z=Y0.H;Y0.H=I6;try{return iB(w)}finally{Y0.H=Z}},useDebugValue:function(){t="useDebugValue",b(),v1()},useDeferredValue:function(w,Z){return t="useDeferredValue",b(),v1(),ZH(w,Z)},useTransition:function(){return t="useTransition",b(),v1(),JH()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",b(),v1(),cB(w,Z,X)},useId:function(){return t="useId",b(),v1(),YH()},useFormState:function(w,Z){return t="useFormState",b(),v1(),K3(w,Z)},useActionState:function(w,Z){return t="useActionState",b(),v1(),K3(w,Z)},useOptimistic:function(w){return t="useOptimistic",b(),v1(),pB(w)},useMemoCache:function(w){return b(),n9(w)},useHostTransitionStatus:s9,useCacheRefresh:function(){return t="useCacheRefresh",v1(),zH()},useEffectEvent:function(w){return t="useEffectEvent",b(),v1(),oB(w)}},V4={readContext:function(w){return K(),X5(w)},use:function(w){return b(),f8(w)},useCallback:function(w,Z){return t="useCallback",b(),K0(),IY(w,Z)},useContext:function(w){return t="useContext",b(),K0(),X5(w)},useEffect:function(w,Z){t="useEffect",b(),K0(),Xw(2048,i2,w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",b(),K0(),TY(w,Z,X)},useInsertionEffect:function(w,Z){return t="useInsertionEffect",b(),K0(),Xw(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",b(),K0(),Xw(4,dw,w,Z)},useMemo:function(w,Z){t="useMemo",b(),K0();var X=Y0.H;Y0.H=V4;try{return _Y(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",b(),K0();var z=Y0.H;Y0.H=V4;try{return W3(w,Z,X)}finally{Y0.H=z}},useRef:function(){return t="useRef",b(),K0(),V1().memoizedState},useState:function(){t="useState",b(),K0();var w=Y0.H;Y0.H=V4;try{return W3(M4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",b(),K0()},useDeferredValue:function(w,Z){return t="useDeferredValue",b(),K0(),wq(w,Z)},useTransition:function(){return t="useTransition",b(),K0(),zq()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",b(),K0(),qY(w,Z,X)},useId:function(){return t="useId",b(),K0(),V1().memoizedState},useFormState:function(w){return t="useFormState",b(),K0(),LY(w)},useActionState:function(w){return t="useActionState",b(),K0(),LY(w)},useOptimistic:function(w,Z){return t="useOptimistic",b(),K0(),cU(w,Z)},useMemoCache:function(w){return b(),n9(w)},useHostTransitionStatus:s9,useCacheRefresh:function(){return t="useCacheRefresh",K0(),V1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",b(),K0(),NY(w)}},Az={readContext:function(w){return K(),X5(w)},use:function(w){return b(),f8(w)},useCallback:function(w,Z){return t="useCallback",b(),K0(),IY(w,Z)},useContext:function(w){return t="useContext",b(),K0(),X5(w)},useEffect:function(w,Z){t="useEffect",b(),K0(),Xw(2048,i2,w,Z)},useImperativeHandle:function(w,Z,X){return t="useImperativeHandle",b(),K0(),TY(w,Z,X)},useInsertionEffect:function(w,Z){return t="useInsertionEffect",b(),K0(),Xw(4,a2,w,Z)},useLayoutEffect:function(w,Z){return t="useLayoutEffect",b(),K0(),Xw(4,dw,w,Z)},useMemo:function(w,Z){t="useMemo",b(),K0();var X=Y0.H;Y0.H=V4;try{return _Y(w,Z)}finally{Y0.H=X}},useReducer:function(w,Z,X){t="useReducer",b(),K0();var z=Y0.H;Y0.H=V4;try{return K$(w,Z,X)}finally{Y0.H=z}},useRef:function(){return t="useRef",b(),K0(),V1().memoizedState},useState:function(){t="useState",b(),K0();var w=Y0.H;Y0.H=V4;try{return K$(M4)}finally{Y0.H=w}},useDebugValue:function(){t="useDebugValue",b(),K0()},useDeferredValue:function(w,Z){return t="useDeferredValue",b(),K0(),Zq(w,Z)},useTransition:function(){return t="useTransition",b(),K0(),Gq()},useSyncExternalStore:function(w,Z,X){return t="useSyncExternalStore",b(),K0(),qY(w,Z,X)},useId:function(){return t="useId",b(),K0(),V1().memoizedState},useFormState:function(w){return t="useFormState",b(),K0(),kY(w)},useActionState:function(w){return t="useActionState",b(),K0(),kY(w)},useOptimistic:function(w,Z){return t="useOptimistic",b(),K0(),iU(w,Z)},useMemoCache:function(w){return b(),n9(w)},useHostTransitionStatus:s9,useCacheRefresh:function(){return t="useCacheRefresh",K0(),V1().memoizedState},useEffectEvent:function(w){return t="useEffectEvent",b(),K0(),NY(w)}};var sF={},tF=new Set,eF=new Set,wN=new Set,ZN=new Set,$N=new Set,XN=new Set,JN=new Set,YN=new Set,zN=new Set,GN=new Set;Object.freeze(sF);var Xb={enqueueSetState:function(w,Z,X){w=w._reactInternals;var z=Pw(w),v=M8(z);v.payload=Z,X!==void 0&&X!==null&&(vH(X),v.callback=X),Z=x8(w,v,z),Z!==null&&(w6(z,"this.setState()",w),F5(Z,w,z),g$(Z,w,z))},enqueueReplaceState:function(w,Z,X){w=w._reactInternals;var z=Pw(w),v=M8(z);v.tag=lF,v.payload=Z,X!==void 0&&X!==null&&(vH(X),v.callback=X),Z=x8(w,v,z),Z!==null&&(w6(z,"this.replaceState()",w),F5(Z,w,z),g$(Z,w,z))},enqueueForceUpdate:function(w,Z){w=w._reactInternals;var X=Pw(w),z=M8(X);z.tag=cF,Z!==void 0&&Z!==null&&(vH(Z),z.callback=Z),Z=x8(w,z,X),Z!==null&&(w6(X,"this.forceUpdate()",w),F5(Z,w,X),g$(Z,w,X))}},t3=null,Jb=null,Yb=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."),d5=!1,vN={},BN={},HN={},gN={},e3=!1,bN={},Mz={},zb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},QN=!1,WN=null;WN=new Set;var B8=!1,D5=!1,Gb=!1,KN=typeof WeakSet==="function"?WeakSet:Set,b2=null,wZ=null,ZZ=null,j5=null,zw=!1,R4=null,r5=!1,gX=8192,ch={getCacheForType:function(w){var Z=X5(R5),X=Z.data.get(w);return X===void 0&&(X=w(),Z.data.set(w,X)),X},cacheSignal:function(){return X5(R5).controller.signal},getOwner:function(){return Vw}};if(typeof Symbol==="function"&&Symbol.for){var bX=Symbol.for;bX("selector.component"),bX("selector.has_pseudo_class"),bX("selector.role"),bX("selector.test_id"),bX("selector.text")}var ah=[],ih=typeof WeakMap==="function"?WeakMap:Map,Q2=0,n5=2,Dw=4,H8=0,QX=1,Q7=2,xz=3,s8=4,mz=6,UN=5,F1=Q2,u1=null,z1=null,X1=0,Gw=0,Pz=1,W7=2,WX=3,qN=4,vb=5,KX=6,fz=7,Bb=8,K7=9,R1=Gw,jw=null,t8=!1,$Z=!1,Hb=!1,_6=0,b5=H8,e8=0,w9=0,gb=0,vw=0,U7=0,UX=null,p2=null,hz=!1,Vz=0,LN=0,kN=300,Rz=1/0,FN=500,qX=null,O5=null,Z9=null,yz=0,bb=1,Qb=2,NN=3,$9=0,TN=1,IN=2,_N=3,ON=4,Sz=5,E5=0,X9=null,XZ=null,y4=0,Wb=0,Kb=-0,Ub=null,CN=null,AN=null,S4=yz,MN=null,ph=50,LX=0,qb=null,Lb=!1,dz=!1,rh=50,q7=0,kX=null,JZ=!1,Dz=null,xN=!1,mN=new Set,nh={},jz=null,YZ=null,kb=!1,Fb=!1,Ez=!1,Nb=!1,J9=0,Tb={};(function(){for(var w=0;w<hg.length;w++){var Z=hg[w],X=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),A4(X,"on"+Z)}A4(zF,"onAnimationEnd"),A4(GF,"onAnimationIteration"),A4(vF,"onAnimationStart"),A4("dblclick","onDoubleClick"),A4("focusin","onFocus"),A4("focusout","onBlur"),A4(Oh,"onTransitionRun"),A4(Ch,"onTransitionStart"),A4(Ah,"onTransitionCancel"),A4(BF,"onTransitionEnd")})(),w1("onMouseEnter",["mouseout","mouseover"]),w1("onMouseLeave",["mouseout","mouseover"]),w1("onPointerEnter",["pointerout","pointerover"]),w1("onPointerLeave",["pointerout","pointerover"]),h0("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h0("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h0("onBeforeInput",["compositionend","keypress","textInput","paste"]),h0("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h0("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h0("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var FX="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(" "),Ib=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(FX)),uz="_reactListening"+Math.random().toString(36).slice(2),PN=!1,fN=!1,lz=!1,hN=!1,cz=!1,az=!1,VN=!1,iz={},oh=/\r\n?/g,sh=/\u0000|\uFFFD/g,L7="http://www.w3.org/1999/xlink",_b="http://www.w3.org/XML/1998/namespace",th="javascript:throw new Error('React form unexpectedly submitted.')",eh="suppressHydrationWarning",k7="&",pz="/&",NX="$",TX="/$",Y9="$?",F7="$~",zZ="$!",wV="html",ZV="body",$V="head",Ob="F!",RN="F",yN="loading",XV="style",g8=0,GZ=1,rz=2,Cb=null,Ab=null,SN={dialog:!0,webview:!0},Mb=null,IX=void 0,dN=typeof setTimeout==="function"?setTimeout:void 0,JV=typeof clearTimeout==="function"?clearTimeout:void 0,N7=-1,DN=typeof Promise==="function"?Promise:void 0,YV=typeof queueMicrotask==="function"?queueMicrotask:typeof DN<"u"?function(w){return DN.resolve(null).then(w).catch(uP)}:dN,xb=null,T7=0,_X=1,jN=2,EN=3,B4=4,H4=new Map,uN=new Set,b8=m1.d;m1.d={f:function(){var w=b8.f(),Z=F3();return w||Z},r:function(w){var Z=a0(w);Z!==null&&Z.tag===5&&Z.type==="form"?Yq(Z):b8.r(w)},D:function(w){b8.D(w),tL("dns-prefetch",w,null)},C:function(w,Z){b8.C(w,Z),tL("preconnect",w,Z)},L:function(w,Z,X){b8.L(w,Z,X);var z=vZ;if(z&&w&&Z){var v='link[rel="preload"][as="'+sw(Z)+'"]';Z==="image"?X&&X.imageSrcSet?(v+='[imagesrcset="'+sw(X.imageSrcSet)+'"]',typeof X.imageSizes==="string"&&(v+='[imagesizes="'+sw(X.imageSizes)+'"]')):v+='[href="'+sw(w)+'"]':v+='[href="'+sw(w)+'"]';var H=v;switch(Z){case"style":H=I3(w);break;case"script":H=_3(w)}H4.has(H)||(w=B1({rel:"preload",href:Z==="image"&&X&&X.imageSrcSet?void 0:w,as:Z},X),H4.set(H,w),z.querySelector(v)!==null||Z==="style"&&z.querySelector(m$(H))||Z==="script"&&z.querySelector(P$(H))||(Z=z.createElement("link"),F2(Z,"link",w),V0(Z),z.head.appendChild(Z)))}},m:function(w,Z){b8.m(w,Z);var X=vZ;if(X&&w){var z=Z&&typeof Z.as==="string"?Z.as:"script",v='link[rel="modulepreload"][as="'+sw(z)+'"][href="'+sw(w)+'"]',H=v;switch(z){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":H=_3(w)}if(!H4.has(H)&&(w=B1({rel:"modulepreload",href:w},Z),H4.set(H,w),X.querySelector(v)===null)){switch(z){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(X.querySelector(P$(H)))return}z=X.createElement("link"),F2(z,"link",w),V0(z),X.head.appendChild(z)}}},X:function(w,Z){b8.X(w,Z);var X=vZ;if(X&&w){var z=s0(X).hoistableScripts,v=_3(w),H=z.get(v);H||(H=X.querySelector(P$(v)),H||(w=B1({src:w,async:!0},Z),(Z=H4.get(v))&&tH(w,Z),H=X.createElement("script"),V0(H),F2(H,"link",w),X.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},z.set(v,H))}},S:function(w,Z,X){b8.S(w,Z,X);var z=vZ;if(z&&w){var v=s0(z).hoistableStyles,H=I3(w);Z=Z||"default";var W=v.get(H);if(!W){var q={loading:T7,preload:null};if(W=z.querySelector(m$(H)))q.loading=_X|B4;else{w=B1({rel:"stylesheet",href:w,"data-precedence":Z},X),(X=H4.get(H))&&sH(w,X);var T=W=z.createElement("link");V0(T),F2(T,"link",w),T._p=new Promise(function(_,y){T.onload=_,T.onerror=y}),T.addEventListener("load",function(){q.loading|=_X}),T.addEventListener("error",function(){q.loading|=jN}),q.loading|=B4,lY(W,Z,z)}W={type:"stylesheet",instance:W,count:1,state:q},v.set(H,W)}}},M:function(w,Z){b8.M(w,Z);var X=vZ;if(X&&w){var z=s0(X).hoistableScripts,v=_3(w),H=z.get(v);H||(H=X.querySelector(P$(v)),H||(w=B1({src:w,async:!0,type:"module"},Z),(Z=H4.get(v))&&tH(w,Z),H=X.createElement("script"),V0(H),F2(H,"link",w),X.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},z.set(v,H))}}};var vZ=typeof document>"u"?null:document,nz=null,zV=60000,GV=800,vV=500,mb=0,Pb=null,oz=null,I7=Tf,OX={$$typeof:W6,Provider:null,Consumer:null,_currentValue:I7,_currentValue2:I7,_threadCount:0},lN="%c%s%c",cN="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",aN="",sz=" ",BV=Function.prototype.bind,iN=!1,pN=null,rN=null,nN=null,oN=null,sN=null,tN=null,eN=null,wT=null,ZT=null,$T=null;pN=function(w,Z,X,z){Z=$(w,Z),Z!==null&&(X=J(Z.memoizedState,X,0,z),Z.memoizedState=X,Z.baseState=X,w.memoizedProps=B1({},w.memoizedProps),X=x2(w,2),X!==null&&F5(X,w,2))},rN=function(w,Z,X){Z=$(w,Z),Z!==null&&(X=B(Z.memoizedState,X,0),Z.memoizedState=X,Z.baseState=X,w.memoizedProps=B1({},w.memoizedProps),X=x2(w,2),X!==null&&F5(X,w,2))},nN=function(w,Z,X,z){Z=$(w,Z),Z!==null&&(X=Y(Z.memoizedState,X,z),Z.memoizedState=X,Z.baseState=X,w.memoizedProps=B1({},w.memoizedProps),X=x2(w,2),X!==null&&F5(X,w,2))},oN=function(w,Z,X){w.pendingProps=J(w.memoizedProps,Z,0,X),w.alternate&&(w.alternate.pendingProps=w.pendingProps),Z=x2(w,2),Z!==null&&F5(Z,w,2)},sN=function(w,Z){w.pendingProps=B(w.memoizedProps,Z,0),w.alternate&&(w.alternate.pendingProps=w.pendingProps),Z=x2(w,2),Z!==null&&F5(Z,w,2)},tN=function(w,Z,X){w.pendingProps=Y(w.memoizedProps,Z,X),w.alternate&&(w.alternate.pendingProps=w.pendingProps),Z=x2(w,2),Z!==null&&F5(Z,w,2)},eN=function(w){var Z=x2(w,2);Z!==null&&F5(Z,w,2)},wT=function(w){var Z=i5(),X=x2(w,Z);X!==null&&F5(X,w,Z)},ZT=function(w){Q=w},$T=function(w){g=w};var tz=!0,ez=null,fb=!1,z9=null,G9=null,v9=null,CX=new Map,AX=new Map,B9=[],HV="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(" "),wG=null;if(rY.prototype.render=Jg.prototype.render=function(w){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var X=arguments;typeof X[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()."):A(X[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 X[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),X=w;var z=Z.current,v=Pw(z);eH(z,v,X,Z,null,null)},rY.prototype.unmount=Jg.prototype.unmount=function(){var w=arguments;if(typeof w[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()."),w=this._internalRoot,w!==null){this._internalRoot=null;var Z=w.containerInfo;(F1&(n5|Dw))!==Q2&&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."),eH(w.current,2,null,w,null,null),F3(),Z[D8]=null}},rY.prototype.unstable_scheduleHydration=function(w){if(w){var Z=c();w={blockedOn:null,target:w,priority:Z};for(var X=0;X<B9.length&&Z!==0&&Z<B9[X].priority;X++);B9.splice(X,0,w),X===0&&bk(w)}},function(){var w=bZ.version;if(w!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
229
|
+
- react: `+(w+`
|
|
230
|
+
- react-dom: 19.2.6
|
|
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"),m1.findDOMNode=function(w){var Z=w._reactInternals;if(Z===void 0){if(typeof w.render==="function")throw Error("Unable to find node on an unmounted component.");throw w=Object.keys(w).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+w)}return w=$0(Z),w=w!==null?p(w):null,w=w===null?null:w.stateNode,w},!function(){var w={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:Y0,reconcilerVersion:"19.2.6"};return w.overrideHookState=pN,w.overrideHookStateDeletePath=rN,w.overrideHookStateRenamePath=nN,w.overrideProps=oN,w.overridePropsDeletePath=sN,w.overridePropsRenamePath=tN,w.scheduleUpdate=eN,w.scheduleRetry=wT,w.setErrorHandler=ZT,w.setSuspenseHandler=$T,w.scheduleRefresh=C,w.scheduleRoot=N,w.setRefreshHandler=I,w.getCurrentFiber=Wf,k5(w)}()&&k6&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var XT=window.location.protocol;/^(https?|file):$/.test(XT)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(XT==="file:"?`
|
|
232
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}EV.createRoot=function(w,Z){if(!A(w))throw Error("Target container is not a DOM element.");Uk(w);var X=!1,z="",v=Qq,H=Wq,W=Kq;return Z!==null&&Z!==void 0&&(Z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Z==="object"&&Z!==null&&Z.$$typeof===Q6&&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 />);`),Z.unstable_strictMode===!0&&(X=!0),Z.identifierPrefix!==void 0&&(z=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(v=Z.onUncaughtError),Z.onCaughtError!==void 0&&(H=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=Yk(w,1,!1,null,null,X,z,null,v,H,W,Kk),w[D8]=Z.current,DH(w),new Jg(Z)},EV.hydrateRoot=function(w,Z,X){if(!A(w))throw Error("Target container is not a DOM element.");Uk(w),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var z=!1,v="",H=Qq,W=Wq,q=Kq,T=null;return X!==null&&X!==void 0&&(X.unstable_strictMode===!0&&(z=!0),X.identifierPrefix!==void 0&&(v=X.identifierPrefix),X.onUncaughtError!==void 0&&(H=X.onUncaughtError),X.onCaughtError!==void 0&&(W=X.onCaughtError),X.onRecoverableError!==void 0&&(q=X.onRecoverableError),X.formState!==void 0&&(T=X.formState)),Z=Yk(w,1,!0,Z,X!=null?X:null,z,v,T,H,W,q,Kk),Z.context=zk(null),X=Z.current,z=Pw(X),z=O4(z),v=M8(z),v.callback=null,x8(X,v,z),w6(z,"hydrateRoot()",null),X=z,Z.current.lanes=X,n4(Z,X),g6(Z),w[D8]=Z.current,DH(w),new rY(Z)},EV.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var jT=H9((Ur,DT)=>{var uV=P(dT());DT.exports=uV});var H0=H9((Ed)=>{var u7=P(Q0());(function(){function $(M){if(M==null)return null;if(typeof M==="function")return M.$$typeof===E?null:M.displayName||M.name||null;if(typeof M==="string")return M;switch(M){case I:return"Fragment";case x:return"Profiler";case A:return"StrictMode";case $0:return"Suspense";case p:return"SuspenseList";case s:return"Activity"}if(typeof M==="object")switch(typeof M.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case C:return"Portal";case D:return M.displayName||"Context";case S:return(M._context.displayName||"Context")+".Consumer";case i:var z0=M.render;return M=M.displayName,M||(M=z0.displayName||z0.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case j:return z0=M.displayName||null,z0!==null?z0:$(M.type)||"Memo";case Z0:z0=M._payload,M=M._init;try{return $(M(z0))}catch(m){}}return null}function J(M){return""+M}function Y(M){try{J(M);var z0=!1}catch(a){z0=!0}if(z0){z0=console;var m=z0.error,r=typeof Symbol==="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return m.call(z0,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),J(M)}}function G(M){if(M===I)return"<>";if(typeof M==="object"&&M!==null&&M.$$typeof===Z0)return"<...>";try{var z0=$(M);return z0?"<"+z0+">":"<...>"}catch(m){return"<...>"}}function B(){var M=g0.A;return M===null?null:M.getOwner()}function g(){return Error("react-stack-top-frame")}function Q(M){if(G0.call(M,"key")){var z0=Object.getOwnPropertyDescriptor(M,"key").get;if(z0&&z0.isReactWarning)return!1}return M.key!==void 0}function b(M,z0){function m(){e||(e=!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)",z0))}m.isReactWarning=!0,Object.defineProperty(M,"key",{get:m,configurable:!0})}function K(){var M=$(this.type);return v0[M]||(v0[M]=!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.")),M=this.props.ref,M!==void 0?M:null}function k(M,z0,m,r,a,X0){var J0=m.ref;return M={$$typeof:N,type:M,key:z0,props:m,_owner:r},(J0!==void 0?J0:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:K}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X0}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function L(M,z0,m,r,a,X0){var J0=z0.children;if(J0!==void 0)if(r)if(q0(J0)){for(r=0;r<J0.length;r++)U(J0[r]);Object.freeze&&Object.freeze(J0)}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 U(J0);if(G0.call(z0,"key")){J0=$(M);var w0=Object.keys(z0).filter(function(N0){return N0!=="key"});r=0<w0.length?"{key: someKey, "+w0.join(": ..., ")+": ...}":"{key: someKey}",l[J0+r]||(w0=0<w0.length?"{"+w0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
236
|
+
let props = %s;
|
|
237
|
+
<%s {...props} />
|
|
238
|
+
React keys must be passed directly to JSX without using spread:
|
|
239
|
+
let props = %s;
|
|
240
|
+
<%s key={someKey} {...props} />`,r,J0,w0,J0),l[J0+r]=!0)}if(J0=null,m!==void 0&&(Y(m),J0=""+m),Q(z0)&&(Y(z0.key),J0=""+z0.key),"key"in z0){m={};for(var W0 in z0)W0!=="key"&&(m[W0]=z0[W0])}else m=z0;return J0&&b(m,typeof M==="function"?M.displayName||M.name||"Unknown":M),k(M,J0,m,B(),a,X0)}function U(M){F(M)?M._store&&(M._store.validated=1):typeof M==="object"&&M!==null&&M.$$typeof===Z0&&(M._payload.status==="fulfilled"?F(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function F(M){return typeof M==="object"&&M!==null&&M.$$typeof===N}var N=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),D=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),$0=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Z0=Symbol.for("react.lazy"),s=Symbol.for("react.activity"),E=Symbol.for("react.client.reference"),g0=u7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G0=Object.prototype.hasOwnProperty,q0=Array.isArray,k0=console.createTask?console.createTask:function(){return null};u7={react_stack_bottom_frame:function(M){return M()}};var e,v0={},u=u7.react_stack_bottom_frame.bind(u7,g)(),o=k0(G(g)),l={};Ed.Fragment=I,Ed.jsxDEV=function(M,z0,m,r){var a=1e4>g0.recentlyCreatedOwnerStacks++;return L(M,z0,m,r,a?Error("react-stack-top-frame"):u,a?k0(G(M)):o)}})()});var TO={};NV(TO,{stopAgent:()=>zW,slingAgent:()=>YW,sendMail:()=>ZW,runMerge:()=>vW,replyMail:()=>$W,markRead:()=>rd,formatTokens:()=>f6,formatDuration:()=>fZ,formatCost:()=>PZ,fetchWorktrees:()=>HW,fetchTasks:()=>UW,fetchSpecs:()=>WW,fetchSpec:()=>KW,fetchRuns:()=>U8,fetchRun:()=>id,fetchMetrics:()=>qJ,fetchMessage:()=>wW,fetchMergeQueue:()=>BW,fetchMergePreview:()=>GW,fetchMailAgents:()=>UJ,fetchMail:()=>eQ,fetchLogs:()=>gW,fetchGroups:()=>QW,fetchEvents:()=>tQ,fetchErrors:()=>LJ,fetchDoctor:()=>bW,fetchAgents:()=>KJ,fetchAgent:()=>pd,deleteMail:()=>XW});async function t5($){let J=await fetch($),Y=await J.json();if(!J.ok||Y.success!==!0||Y.data===void 0)throw Error(Y.error??`Request failed: ${J.status}`);return{data:Y.data,nextCursor:Y.nextCursor??null}}async function U8($=50){let{data:J}=await t5(`/api/runs?limit=${$}`);return J}async function id($){let{data:J}=await t5(`/api/runs/${encodeURIComponent($)}`);return J}async function KJ($){let J=new URLSearchParams;if($?.runId)J.set("run",$.runId);if($?.limit!==void 0)J.set("limit",String($.limit));let Y=J.size>0?`?${J.toString()}`:"",{data:G}=await t5(`/api/agents${Y}`);return G}async function pd($){let{data:J}=await t5(`/api/agents/${encodeURIComponent($)}`);return J}async function tQ($){let J=new URLSearchParams;if($?.runId)J.set("run",$.runId);if($?.agent)J.set("agent",$.agent);if($?.since)J.set("since",$.since);if($?.limit!==void 0)J.set("limit",String($.limit));let Y=J.size>0?`?${J.toString()}`:"";return t5(`/api/events${Y}`)}async function eQ($){let J=new URLSearchParams;if($?.unread)J.set("unread","true");if($?.from)J.set("from",$.from);if($?.to)J.set("to",$.to);let Y=J.toString(),{data:G}=await t5(`/api/mail${Y?`?${Y}`:""}`);return G}async function wW($){let{data:J}=await t5(`/api/mail/${encodeURIComponent($)}`);return J}async function rd($){let J=await fetch(`/api/mail/${encodeURIComponent($)}/read`,{method:"POST"}),Y=await J.json();if(!J.ok||Y.success!==!0)throw Error(Y.error??"mark read failed")}async function UJ(){let{data:$}=await t5("/api/agents"),J=$.map((Y)=>Y.agentName);return[...new Set(J)].sort()}async function ZW($){let J=await fetch("/api/mail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),Y=await J.json();if(!J.ok||Y.success!==!0||Y.data===void 0)throw Error(Y.error??"send mail failed");return Y.data}async function $W($,J){let Y=await fetch(`/api/mail/${encodeURIComponent($)}/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(J)}),G=await Y.json();if(!Y.ok||G.success!==!0||G.data===void 0)throw Error(G.error??"reply mail failed");return G.data}async function XW($){let J=await fetch(`/api/mail/${encodeURIComponent($)}`,{method:"DELETE"}),Y=await J.json();if(!J.ok||Y.success!==!0)throw Error(Y.error??"delete mail failed")}async function qJ($=50){let{data:J}=await t5(`/api/metrics?limit=${$}`);return J}async function LJ($){let J=new URLSearchParams;if($?.agent)J.set("agent",$.agent);if($?.runId)J.set("run",$.runId);if($?.limit!==void 0)J.set("limit",String($.limit));let Y=J.toString(),{data:G}=await t5(`/api/errors${Y?`?${Y}`:""}`);return G}async function JW($,J){let Y=await fetch($,{method:"POST",headers:{"Content-Type":"application/json"},...J!==void 0?{body:JSON.stringify(J)}:{}}),G=await Y.json();if(!Y.ok||G.success!==!0||G.data===void 0)throw Error(G.error??`Request failed: ${Y.status}`);return G.data}async function YW($){return JW("/api/agents/sling",$)}async function zW($,J){return JW(`/api/agents/${encodeURIComponent($)}/stop`,{cleanWorktree:J?.cleanWorktree??!1})}async function GW($,J){let Y=new URLSearchParams({branch:$});if(J)Y.set("into",J);let{data:G}=await t5(`/api/merge/preview?${Y.toString()}`);return G}async function vW($){return JW("/api/merge",$)}function PZ($){if($===0)return"$0.00";if($<0.01)return`$${$.toFixed(4)}`;return`$${$.toFixed(2)}`}function f6($){if($>=1e6)return`${($/1e6).toFixed(1)}M`;if($>=1000)return`${($/1000).toFixed(1)}k`;return String($)}function fZ($){if($<=0)return"—";let J=Math.round($/1000);if(J<60)return`${J}s`;let Y=Math.floor(J/60);if(Y<60)return`${Y}m ${J%60}s`;return`${Math.floor(Y/60)}h ${Y%60}m`}async function BW($){let J=$?`?status=${$}`:"",{data:Y}=await t5(`/api/merge/queue${J}`);return Y}async function HW(){let{data:$}=await t5("/api/worktrees");return $}async function gW($){let J=new URLSearchParams;if($?.agent)J.set("agent",$.agent);if($?.level)J.set("level",$.level);if($?.since)J.set("since",$.since);if($?.limit!==void 0)J.set("limit",String($.limit));let Y=J.toString(),{data:G}=await t5(`/api/logs${Y?`?${Y}`:""}`);return G}async function bW($){let J=$?`?category=${encodeURIComponent($)}`:"",{data:Y}=await t5(`/api/doctor${J}`);return Y}async function QW(){let{data:$}=await t5("/api/groups");return $}async function WW(){let{data:$}=await t5("/api/specs");return $}async function KW($){let{data:J}=await t5(`/api/specs/${encodeURIComponent($)}`);return J}async function UW($){let J=new URLSearchParams;if($?.limit!==void 0)J.set("limit",String($.limit));if($?.ready)J.set("ready","true");let Y=J.toString(),{data:G}=await t5(`/api/tasks${Y?`?${Y}`:""}`);return G}var O6=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe($){return this.listeners.add($),this.onSubscribe(),()=>{this.listeners.delete($),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var TV=class extends O6{#w;#Z;#$;constructor(){super();this.#$=($)=>{if(typeof window<"u"&&window.addEventListener){let J=()=>$();return window.addEventListener("visibilitychange",J,!1),()=>{window.removeEventListener("visibilitychange",J)}}return}}onSubscribe(){if(!this.#Z)this.setEventListener(this.#$)}onUnsubscribe(){if(!this.hasListeners())this.#Z?.(),this.#Z=void 0}setEventListener($){this.#$=$,this.#Z?.(),this.#Z=$((J)=>{if(typeof J==="boolean")this.setFocused(J);else this.onFocus()})}setFocused($){if(this.#w!==$)this.#w=$,this.onFocus()}onFocus(){let $=this.isFocused();this.listeners.forEach((J)=>{J($)})}isFocused(){if(typeof this.#w==="boolean")return this.#w;return globalThis.document?.visibilityState!=="hidden"}},BZ=new TV;var IV={setTimeout:($,J)=>setTimeout($,J),clearTimeout:($)=>clearTimeout($),setInterval:($,J)=>setInterval($,J),clearInterval:($)=>clearInterval($)},_V=class{#w=IV;#Z=!1;setTimeoutProvider($){if(this.#Z&&$!==this.#w)console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#w,provider:$});this.#w=$,this.#Z=!1}setTimeout($,J){return this.#Z=!0,this.#w.setTimeout($,J)}clearTimeout($){this.#w.clearTimeout($)}setInterval($,J){return this.#Z=!0,this.#w.setInterval($,J)}clearInterval($){this.#w.clearInterval($)}},C6=new _V;function JT($){setTimeout($,0)}var Rb=typeof window>"u"||"Deno"in globalThis;function u5(){}function GT($,J){return typeof $==="function"?$(J):$}function MX($){return typeof $==="number"&&$>=0&&$!==1/0}function $G($,J){return Math.max($+(J||0)-Date.now(),0)}function d4($,J){return typeof $==="function"?$(J):$}function r2($,J){return typeof $==="function"?$(J):$}function XG($,J){let{type:Y="all",exact:G,fetchStatus:B,predicate:g,queryKey:Q,stale:b}=$;if(Q){if(G){if(J.queryHash!==xX(Q,J.options))return!1}else if(!C7(J.queryKey,Q))return!1}if(Y!=="all"){let K=J.isActive();if(Y==="active"&&!K)return!1;if(Y==="inactive"&&K)return!1}if(typeof b==="boolean"&&J.isStale()!==b)return!1;if(B&&B!==J.state.fetchStatus)return!1;if(g&&!g(J))return!1;return!0}function JG($,J){let{exact:Y,status:G,predicate:B,mutationKey:g}=$;if(g){if(!J.options.mutationKey)return!1;if(Y){if(_7(J.options.mutationKey)!==_7(g))return!1}else if(!C7(J.options.mutationKey,g))return!1}if(G&&J.state.status!==G)return!1;if(B&&!B(J))return!1;return!0}function xX($,J){return(J?.queryKeyHashFn||_7)($)}function _7($){return JSON.stringify($,(J,Y)=>Vb(Y)?Object.keys(Y).sort().reduce((G,B)=>{return G[B]=Y[B],G},{}):Y)}function C7($,J){if($===J)return!0;if(typeof $!==typeof J)return!1;if($&&J&&typeof $==="object"&&typeof J==="object")return Object.keys(J).every((Y)=>C7($[Y],J[Y]));return!1}var OV=Object.prototype.hasOwnProperty;function ZG($,J,Y=0){if($===J)return $;if(Y>500)return J;let G=YT($)&&YT(J);if(!G&&!(Vb($)&&Vb(J)))return J;let g=(G?$:Object.keys($)).length,Q=G?J:Object.keys(J),b=Q.length,K=G?Array(b):{},k=0;for(let L=0;L<b;L++){let U=G?L:Q[L],F=$[U],N=J[U];if(F===N){if(K[U]=F,G?L<g:OV.call($,U))k++;continue}if(F===null||N===null||typeof F!=="object"||typeof N!=="object"){K[U]=N;continue}let C=ZG(F,N,Y+1);if(K[U]=C,C===F)k++}return g===b&&k===g?$:K}function YG($,J){if(!J||Object.keys($).length!==Object.keys(J).length)return!1;for(let Y in $)if($[Y]!==J[Y])return!1;return!0}function YT($){return Array.isArray($)&&$.length===Object.keys($).length}function Vb($){if(!zT($))return!1;let J=$.constructor;if(J===void 0)return!0;let Y=J.prototype;if(!zT(Y))return!1;if(!Y.hasOwnProperty("isPrototypeOf"))return!1;if(Object.getPrototypeOf($)!==Object.prototype)return!1;return!0}function zT($){return Object.prototype.toString.call($)==="[object Object]"}function vT($){return new Promise((J)=>{C6.setTimeout(J,$)})}function mX($,J,Y){if(typeof Y.structuralSharing==="function")return Y.structuralSharing($,J);else if(Y.structuralSharing!==!1){try{return ZG($,J)}catch(G){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${Y.queryHash}]: ${G}`),G}return ZG($,J)}return J}function BT($,J,Y=0){let G=[...$,J];return Y&&G.length>Y?G.slice(1):G}function HT($,J,Y=0){let G=[J,...$];return Y&&G.length>Y?G.slice(0,-1):G}var O7=Symbol();function zG($,J){if($.queryFn===O7)console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${$.queryHash}'`);if(!$.queryFn&&J?.initialPromise)return()=>J.initialPromise;if(!$.queryFn||$.queryFn===O7)return()=>Promise.reject(Error(`Missing queryFn: '${$.queryHash}'`));return $.queryFn}function GG($,J){if(typeof $==="function")return $(...J);return!!$}function gT($,J,Y){let G=!1,B;return Object.defineProperty($,"signal",{enumerable:!0,get:()=>{if(B??=J(),G)return B;if(G=!0,B.aborted)Y();else B.addEventListener("abort",Y,{once:!0});return B}}),$}var A6=(()=>{let $=()=>Rb;return{isServer(){return $()},setIsServer(J){$=J}}})();function PX(){let $,J,Y=new Promise((B,g)=>{$=B,J=g});Y.status="pending",Y.catch(()=>{});function G(B){Object.assign(Y,B),delete Y.resolve,delete Y.reject}return Y.resolve=(B)=>{G({status:"fulfilled",value:B}),$(B)},Y.reject=(B)=>{G({status:"rejected",reason:B}),J(B)},Y}var bT=JT;function CV(){let $=[],J=0,Y=(b)=>{b()},G=(b)=>{b()},B=bT,g=(b)=>{if(J)$.push(b);else B(()=>{Y(b)})},Q=()=>{let b=$;if($=[],b.length)B(()=>{G(()=>{b.forEach((K)=>{Y(K)})})})};return{batch:(b)=>{let K;J++;try{K=b()}finally{if(J--,!J)Q()}return K},batchCalls:(b)=>{return(...K)=>{g(()=>{b(...K)})}},schedule:g,setNotifyFunction:(b)=>{Y=b},setBatchNotifyFunction:(b)=>{G=b},setScheduler:(b)=>{B=b}}}var Y5=CV();var AV=class extends O6{#w=!0;#Z;#$;constructor(){super();this.#$=($)=>{if(typeof window<"u"&&window.addEventListener){let J=()=>$(!0),Y=()=>$(!1);return window.addEventListener("online",J,!1),window.addEventListener("offline",Y,!1),()=>{window.removeEventListener("online",J),window.removeEventListener("offline",Y)}}return}}onSubscribe(){if(!this.#Z)this.setEventListener(this.#$)}onUnsubscribe(){if(!this.hasListeners())this.#Z?.(),this.#Z=void 0}setEventListener($){this.#$=$,this.#Z?.(),this.#Z=$(this.setOnline.bind(this))}setOnline($){if(this.#w!==$)this.#w=$,this.listeners.forEach((Y)=>{Y($)})}isOnline(){return this.#w}},HZ=new AV;function MV($){return Math.min(1000*2**$,30000)}function yb($){return($??"online")==="online"?HZ.isOnline():!0}var vG=class extends Error{constructor($){super("CancelledError");this.revert=$?.revert,this.silent=$?.silent}};function BG($){let J=!1,Y=0,G,B=PX(),g=()=>B.status!=="pending",Q=(I)=>{if(!g()){let A=new vG(I);F(A),$.onCancel?.(A)}},b=()=>{J=!0},K=()=>{J=!1},k=()=>BZ.isFocused()&&($.networkMode==="always"||HZ.isOnline())&&$.canRun(),L=()=>yb($.networkMode)&&$.canRun(),U=(I)=>{if(!g())G?.(),B.resolve(I)},F=(I)=>{if(!g())G?.(),B.reject(I)},N=()=>{return new Promise((I)=>{G=(A)=>{if(g()||k())I(A)},$.onPause?.()}).then(()=>{if(G=void 0,!g())$.onContinue?.()})},C=()=>{if(g())return;let I,A=Y===0?$.initialPromise:void 0;try{I=A??$.fn()}catch(x){I=Promise.reject(x)}Promise.resolve(I).then(U).catch((x)=>{if(g())return;let S=$.retry??(A6.isServer()?0:3),D=$.retryDelay??MV,i=typeof D==="function"?D(Y,x):D,$0=S===!0||typeof S==="number"&&Y<S||typeof S==="function"&&S(Y,x);if(J||!$0){F(x);return}Y++,$.onFail?.(Y,x),vT(i).then(()=>{return k()?void 0:N()}).then(()=>{if(J)F(x);else C()})})};return{promise:B,status:()=>B.status,cancel:Q,continue:()=>{return G?.(),B},cancelRetry:b,continueRetry:K,canStart:L,start:()=>{if(L())C();else N().then(C);return B}}}var HG=class{#w;destroy(){this.clearGcTimeout()}scheduleGc(){if(this.clearGcTimeout(),MX(this.gcTime))this.#w=C6.setTimeout(()=>{this.optionalRemove()},this.gcTime)}updateGcTime($){this.gcTime=Math.max(this.gcTime||0,$??(A6.isServer()?1/0:300000))}clearGcTimeout(){if(this.#w!==void 0)C6.clearTimeout(this.#w),this.#w=void 0}};function WT($){return{onFetch:(J,Y)=>{let G=J.options,B=J.fetchOptions?.meta?.fetchMore?.direction,g=J.state.data?.pages||[],Q=J.state.data?.pageParams||[],b={pages:[],pageParams:[]},K=0,k=async()=>{let L=!1,U=(C)=>{gT(C,()=>J.signal,()=>L=!0)},F=zG(J.options,J.fetchOptions),N=async(C,I,A)=>{if(L)return Promise.reject(J.signal.reason);if(I==null&&C.pages.length)return Promise.resolve(C);let S=(()=>{let p={client:J.client,queryKey:J.queryKey,pageParam:I,direction:A?"backward":"forward",meta:J.options.meta};return U(p),p})(),D=await F(S),{maxPages:i}=J.options,$0=A?HT:BT;return{pages:$0(C.pages,D,i),pageParams:$0(C.pageParams,I,i)}};if(B&&g.length){let C=B==="backward",I=C?xV:QT,A={pages:g,pageParams:Q},x=I(G,A);b=await N(A,x,C)}else{let C=$??g.length;do{let I=K===0?Q[0]??G.initialPageParam:QT(G,b);if(K>0&&I==null)break;b=await N(b,I),K++}while(K<C)}return b};if(J.options.persister)J.fetchFn=()=>{return J.options.persister?.(k,{client:J.client,queryKey:J.queryKey,meta:J.options.meta,signal:J.signal},Y)};else J.fetchFn=k}}}function QT($,{pages:J,pageParams:Y}){let G=J.length-1;return J.length>0?$.getNextPageParam(J[G],J,Y[G],Y):void 0}function xV($,{pages:J,pageParams:Y}){return J.length>0?$.getPreviousPageParam?.(J[0],J,Y[0],Y):void 0}var qT=class extends HG{#w;#Z;#$;#X;#Y;#J;#G;#z;constructor($){super();this.#z=!1,this.#G=$.defaultOptions,this.setOptions($.options),this.observers=[],this.#Y=$.client,this.#X=this.#Y.getQueryCache(),this.queryKey=$.queryKey,this.queryHash=$.queryHash,this.#Z=UT(this.options),this.state=$.state??this.#Z,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#w}get promise(){return this.#J?.promise}setOptions($){if(this.options={...this.#G,...$},$?._type)this.#w=$._type;if(this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let J=UT(this.options);if(J.data!==void 0)this.setState(KT(J.data,J.dataUpdatedAt)),this.#Z=J}}optionalRemove(){if(!this.observers.length&&this.state.fetchStatus==="idle")this.#X.remove(this)}setData($,J){let Y=mX(this.state.data,$,this.options);return this.#v({data:Y,type:"success",dataUpdatedAt:J?.updatedAt,manual:J?.manual}),Y}setState($){this.#v({type:"setState",state:$})}cancel($){let J=this.#J?.promise;return this.#J?.cancel($),J?J.then(u5).catch(u5):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#Z}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(($)=>r2($.options.enabled,this)!==!1)}isDisabled(){if(this.getObserversCount()>0)return!this.isActive();return this.options.queryFn===O7||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){if(this.getObserversCount()>0)return this.observers.some(($)=>d4($.options.staleTime,this)==="static");return!1}isStale(){if(this.getObserversCount()>0)return this.observers.some(($)=>$.getCurrentResult().isStale);return this.state.data===void 0||this.state.isInvalidated}isStaleByTime($=0){if(this.state.data===void 0)return!0;if($==="static")return!1;if(this.state.isInvalidated)return!0;return!$G(this.state.dataUpdatedAt,$)}onFocus(){this.observers.find((J)=>J.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#J?.continue()}onOnline(){this.observers.find((J)=>J.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#J?.continue()}addObserver($){if(!this.observers.includes($))this.observers.push($),this.clearGcTimeout(),this.#X.notify({type:"observerAdded",query:this,observer:$})}removeObserver($){if(this.observers.includes($)){if(this.observers=this.observers.filter((J)=>J!==$),!this.observers.length){if(this.#J)if(this.#z||this.#H())this.#J.cancel({revert:!0});else this.#J.cancelRetry();this.scheduleGc()}this.#X.notify({type:"observerRemoved",query:this,observer:$})}}getObserversCount(){return this.observers.length}#H(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){if(!this.state.isInvalidated)this.#v({type:"invalidate"})}async fetch($,J){if(this.state.fetchStatus!=="idle"&&this.#J?.status()!=="rejected"){if(this.state.data!==void 0&&J?.cancelRefetch)this.cancel({silent:!0});else if(this.#J)return this.#J.continueRetry(),this.#J.promise}if($)this.setOptions($);if(!this.options.queryFn){let K=this.observers.find((k)=>k.options.queryFn);if(K)this.setOptions(K.options)}if(!Array.isArray(this.options.queryKey))console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");let Y=new AbortController,G=(K)=>{Object.defineProperty(K,"signal",{enumerable:!0,get:()=>{return this.#z=!0,Y.signal}})},B=()=>{let K=zG(this.options,J),L=(()=>{let U={client:this.#Y,queryKey:this.queryKey,meta:this.meta};return G(U),U})();if(this.#z=!1,this.options.persister)return this.options.persister(K,L,this);return K(L)},Q=(()=>{let K={fetchOptions:J,options:this.options,queryKey:this.queryKey,client:this.#Y,state:this.state,fetchFn:B};return G(K),K})();if((this.#w==="infinite"?WT(this.options.pages):this.options.behavior)?.onFetch(Q,this),this.#$=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==Q.fetchOptions?.meta)this.#v({type:"fetch",meta:Q.fetchOptions?.meta});this.#J=BG({initialPromise:J?.initialPromise,fn:Q.fetchFn,onCancel:(K)=>{if(K instanceof vG&&K.revert)this.setState({...this.#$,fetchStatus:"idle"});Y.abort()},onFail:(K,k)=>{this.#v({type:"failed",failureCount:K,error:k})},onPause:()=>{this.#v({type:"pause"})},onContinue:()=>{this.#v({type:"continue"})},retry:Q.options.retry,retryDelay:Q.options.retryDelay,networkMode:Q.options.networkMode,canRun:()=>!0});try{let K=await this.#J.start();if(K===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(K),this.#X.config.onSuccess?.(K,this),this.#X.config.onSettled?.(K,this.state.error,this),K}catch(K){if(K instanceof vG){if(K.silent)return this.#J.promise;else if(K.revert){if(this.state.data===void 0)throw K;return this.state.data}}throw this.#v({type:"error",error:K}),this.#X.config.onError?.(K,this),this.#X.config.onSettled?.(this.state.data,K,this),K}finally{this.scheduleGc()}}#v($){let J=(Y)=>{switch($.type){case"failed":return{...Y,fetchFailureCount:$.failureCount,fetchFailureReason:$.error};case"pause":return{...Y,fetchStatus:"paused"};case"continue":return{...Y,fetchStatus:"fetching"};case"fetch":return{...Y,...Sb(Y.data,this.options),fetchMeta:$.meta??null};case"success":let G={...Y,...KT($.data,$.dataUpdatedAt),dataUpdateCount:Y.dataUpdateCount+1,...!$.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#$=$.manual?G:void 0,G;case"error":let B=$.error;return{...Y,error:B,errorUpdateCount:Y.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:Y.fetchFailureCount+1,fetchFailureReason:B,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...Y,isInvalidated:!0};case"setState":return{...Y,...$.state}}};this.state=J(this.state),Y5.batch(()=>{this.observers.forEach((Y)=>{Y.onQueryUpdate()}),this.#X.notify({query:this,type:"updated",action:$})})}};function Sb($,J){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yb(J.networkMode)?"fetching":"paused",...$===void 0&&{error:null,status:"pending"}}}function KT($,J){return{data:$,dataUpdatedAt:J??Date.now(),error:null,isInvalidated:!1,status:"success"}}function UT($){let J=typeof $.initialData==="function"?$.initialData():$.initialData,Y=J!==void 0,G=Y?typeof $.initialDataUpdatedAt==="function"?$.initialDataUpdatedAt():$.initialDataUpdatedAt:0;return{data:J,dataUpdateCount:0,dataUpdatedAt:Y?G??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:Y?"success":"pending",fetchStatus:"idle"}}var Db=class extends O6{constructor($,J){super();this.options=J,this.#w=$,this.#z=null,this.#G=PX(),this.bindMethods(),this.setOptions(J)}#w;#Z=void 0;#$=void 0;#X=void 0;#Y;#J;#G;#z;#H;#v;#W;#g;#b;#B;#K=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#Z.addObserver(this),LT(this.#Z,this.options))this.#Q();else this.updateResult();this.#k()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return db(this.#Z,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return db(this.#Z,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#F(),this.#N(),this.#Z.removeObserver(this)}setOptions($){let J=this.options,Y=this.#Z;if(this.options=this.#w.defaultQueryOptions($),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof r2(this.options.enabled,this.#Z)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#T(),this.#Z.setOptions(this.options),J._defaulted&&!YG(this.options,J))this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#Z,observer:this});let G=this.hasListeners();if(G&&kT(this.#Z,Y,this.options,J))this.#Q();if(this.updateResult(),G&&(this.#Z!==Y||r2(this.options.enabled,this.#Z)!==r2(J.enabled,this.#Z)||d4(this.options.staleTime,this.#Z)!==d4(J.staleTime,this.#Z)))this.#U();let B=this.#q();if(G&&(this.#Z!==Y||r2(this.options.enabled,this.#Z)!==r2(J.enabled,this.#Z)||B!==this.#B))this.#L(B)}getOptimisticResult($){let J=this.#w.getQueryCache().build(this.#w,$),Y=this.createResult(J,$);if(PV(this,Y))this.#X=Y,this.#J=this.options,this.#Y=this.#Z.state;return Y}getCurrentResult(){return this.#X}trackResult($,J){return new Proxy($,{get:(Y,G)=>{if(this.trackProp(G),J?.(G),G==="promise"){if(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#G.status==="pending")this.#G.reject(Error("experimental_prefetchInRender feature flag is not enabled"))}return Reflect.get(Y,G)}})}trackProp($){this.#K.add($)}getCurrentQuery(){return this.#Z}refetch({...$}={}){return this.fetch({...$})}fetchOptimistic($){let J=this.#w.defaultQueryOptions($),Y=this.#w.getQueryCache().build(this.#w,J);return Y.fetch().then(()=>this.createResult(Y,J))}fetch($){return this.#Q({...$,cancelRefetch:$.cancelRefetch??!0}).then(()=>{return this.updateResult(),this.#X})}#Q($){this.#T();let J=this.#Z.fetch(this.options,$);if(!$?.throwOnError)J=J.catch(u5);return J}#U(){this.#F();let $=d4(this.options.staleTime,this.#Z);if(A6.isServer()||this.#X.isStale||!MX($))return;let Y=$G(this.#X.dataUpdatedAt,$)+1;this.#g=C6.setTimeout(()=>{if(!this.#X.isStale)this.updateResult()},Y)}#q(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#Z):this.options.refetchInterval)??!1}#L($){if(this.#N(),this.#B=$,A6.isServer()||r2(this.options.enabled,this.#Z)===!1||!MX(this.#B)||this.#B===0)return;this.#b=C6.setInterval(()=>{if(this.options.refetchIntervalInBackground||BZ.isFocused())this.#Q()},this.#B)}#k(){this.#U(),this.#L(this.#q())}#F(){if(this.#g!==void 0)C6.clearTimeout(this.#g),this.#g=void 0}#N(){if(this.#b!==void 0)C6.clearInterval(this.#b),this.#b=void 0}createResult($,J){let Y=this.#Z,G=this.options,B=this.#X,g=this.#Y,Q=this.#J,K=$!==Y?$.state:this.#$,{state:k}=$,L={...k},U=!1,F;if(J._optimisticResults){let Z0=this.hasListeners(),s=!Z0&<($,J),E=Z0&&kT($,Y,J,G);if(s||E)L={...L,...Sb(k.data,$.options)};if(J._optimisticResults==="isRestoring")L.fetchStatus="idle"}let{error:N,errorUpdatedAt:C,status:I}=L;F=L.data;let A=!1;if(J.placeholderData!==void 0&&F===void 0&&I==="pending"){let Z0;if(B?.isPlaceholderData&&J.placeholderData===Q?.placeholderData)Z0=B.data,A=!0;else Z0=typeof J.placeholderData==="function"?J.placeholderData(this.#W?.state.data,this.#W):J.placeholderData;if(Z0!==void 0)I="success",F=mX(B?.data,Z0,J),U=!0}if(J.select&&F!==void 0&&!A)if(B&&F===g?.data&&J.select===this.#H)F=this.#v;else try{this.#H=J.select,F=J.select(F),F=mX(B?.data,F,J),this.#v=F,this.#z=null}catch(Z0){this.#z=Z0}if(this.#z)N=this.#z,F=this.#v,C=Date.now(),I="error";let x=L.fetchStatus==="fetching",S=I==="pending",D=I==="error",i=S&&x,$0=F!==void 0,j={status:I,fetchStatus:L.fetchStatus,isPending:S,isSuccess:I==="success",isError:D,isInitialLoading:i,isLoading:i,data:F,dataUpdatedAt:L.dataUpdatedAt,error:N,errorUpdatedAt:C,failureCount:L.fetchFailureCount,failureReason:L.fetchFailureReason,errorUpdateCount:L.errorUpdateCount,isFetched:$.isFetched(),isFetchedAfterMount:L.dataUpdateCount>K.dataUpdateCount||L.errorUpdateCount>K.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:D&&!$0,isPaused:L.fetchStatus==="paused",isPlaceholderData:U,isRefetchError:D&&$0,isStale:jb($,J),refetch:this.refetch,promise:this.#G,isEnabled:r2(J.enabled,$)!==!1};if(this.options.experimental_prefetchInRender){let Z0=j.data!==void 0,s=j.status==="error"&&!Z0,E=(q0)=>{if(s)q0.reject(j.error);else if(Z0)q0.resolve(j.data)},g0=()=>{let q0=this.#G=j.promise=PX();E(q0)},G0=this.#G;switch(G0.status){case"pending":if($.queryHash===Y.queryHash)E(G0);break;case"fulfilled":if(s||j.data!==G0.value)g0();break;case"rejected":if(!s||j.error!==G0.reason)g0();break}}return j}updateResult(){let $=this.#X,J=this.createResult(this.#Z,this.options);if(this.#Y=this.#Z.state,this.#J=this.options,this.#Y.data!==void 0)this.#W=this.#Z;if(YG(J,$))return;this.#X=J;let Y=()=>{if(!$)return!0;let{notifyOnChangeProps:G}=this.options,B=typeof G==="function"?G():G;if(B==="all"||!B&&!this.#K.size)return!0;let g=new Set(B??this.#K);if(this.options.throwOnError)g.add("error");return Object.keys(this.#X).some((Q)=>{let b=Q;return this.#X[b]!==$[b]&&g.has(b)})};this.#I({listeners:Y()})}#T(){let $=this.#w.getQueryCache().build(this.#w,this.options);if($===this.#Z)return;let J=this.#Z;if(this.#Z=$,this.#$=$.state,this.hasListeners())J?.removeObserver(this),$.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#k()}#I($){Y5.batch(()=>{if($.listeners)this.listeners.forEach((J)=>{J(this.#X)});this.#w.getQueryCache().notify({query:this.#Z,type:"observerResultsUpdated"})})}};function mV($,J){return r2(J.enabled,$)!==!1&&$.state.data===void 0&&!($.state.status==="error"&&r2(J.retryOnMount,$)===!1)}function LT($,J){return mV($,J)||$.state.data!==void 0&&db($,J,J.refetchOnMount)}function db($,J,Y){if(r2(J.enabled,$)!==!1&&d4(J.staleTime,$)!=="static"){let G=typeof Y==="function"?Y($):Y;return G==="always"||G!==!1&&jb($,J)}return!1}function kT($,J,Y,G){return($!==J||r2(G.enabled,$)===!1)&&(!Y.suspense||$.state.status!=="error")&&jb($,Y)}function jb($,J){return r2(J.enabled,$)!==!1&&$.isStaleByTime(d4(J.staleTime,$))}function PV($,J){if(!YG($.getCurrentResult(),J))return!0;return!1}var FT=class extends HG{#w;#Z;#$;#X;constructor($){super();this.#w=$.client,this.mutationId=$.mutationId,this.#$=$.mutationCache,this.#Z=[],this.state=$.state||fV(),this.setOptions($.options),this.scheduleGc()}setOptions($){this.options=$,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver($){if(!this.#Z.includes($))this.#Z.push($),this.clearGcTimeout(),this.#$.notify({type:"observerAdded",mutation:this,observer:$})}removeObserver($){this.#Z=this.#Z.filter((J)=>J!==$),this.scheduleGc(),this.#$.notify({type:"observerRemoved",mutation:this,observer:$})}optionalRemove(){if(!this.#Z.length)if(this.state.status==="pending")this.scheduleGc();else this.#$.remove(this)}continue(){return this.#X?.continue()??this.execute(this.state.variables)}async execute($){let J=()=>{this.#Y({type:"continue"})},Y={client:this.#w,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#X=BG({fn:()=>{if(!this.options.mutationFn)return Promise.reject(Error("No mutationFn found"));return this.options.mutationFn($,Y)},onFail:(g,Q)=>{this.#Y({type:"failed",failureCount:g,error:Q})},onPause:()=>{this.#Y({type:"pause"})},onContinue:J,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#$.canRun(this)});let G=this.state.status==="pending",B=!this.#X.canStart();try{if(G)J();else{if(this.#Y({type:"pending",variables:$,isPaused:B}),this.#$.config.onMutate)await this.#$.config.onMutate($,this,Y);let Q=await this.options.onMutate?.($,Y);if(Q!==this.state.context)this.#Y({type:"pending",context:Q,variables:$,isPaused:B})}let g=await this.#X.start();return await this.#$.config.onSuccess?.(g,$,this.state.context,this,Y),await this.options.onSuccess?.(g,$,this.state.context,Y),await this.#$.config.onSettled?.(g,null,this.state.variables,this.state.context,this,Y),await this.options.onSettled?.(g,null,$,this.state.context,Y),this.#Y({type:"success",data:g}),g}catch(g){try{await this.#$.config.onError?.(g,$,this.state.context,this,Y)}catch(Q){Promise.reject(Q)}try{await this.options.onError?.(g,$,this.state.context,Y)}catch(Q){Promise.reject(Q)}try{await this.#$.config.onSettled?.(void 0,g,this.state.variables,this.state.context,this,Y)}catch(Q){Promise.reject(Q)}try{await this.options.onSettled?.(void 0,g,$,this.state.context,Y)}catch(Q){Promise.reject(Q)}throw this.#Y({type:"error",error:g}),g}finally{this.#$.runNext(this)}}#Y($){let J=(Y)=>{switch($.type){case"failed":return{...Y,failureCount:$.failureCount,failureReason:$.error};case"pause":return{...Y,isPaused:!0};case"continue":return{...Y,isPaused:!1};case"pending":return{...Y,context:$.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:$.isPaused,status:"pending",variables:$.variables,submittedAt:Date.now()};case"success":return{...Y,data:$.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...Y,data:void 0,error:$.error,failureCount:Y.failureCount+1,failureReason:$.error,isPaused:!1,status:"error"}}};this.state=J(this.state),Y5.batch(()=>{this.#Z.forEach((Y)=>{Y.onMutationUpdate($)}),this.#$.notify({mutation:this,type:"updated",action:$})})}};function fV(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var NT=class extends O6{constructor($={}){super();this.config=$,this.#w=new Set,this.#Z=new Map,this.#$=0}#w;#Z;#$;build($,J,Y){let G=new FT({client:$,mutationCache:this,mutationId:++this.#$,options:$.defaultMutationOptions(J),state:Y});return this.add(G),G}add($){this.#w.add($);let J=gG($);if(typeof J==="string"){let Y=this.#Z.get(J);if(Y)Y.push($);else this.#Z.set(J,[$])}this.notify({type:"added",mutation:$})}remove($){if(this.#w.delete($)){let J=gG($);if(typeof J==="string"){let Y=this.#Z.get(J);if(Y){if(Y.length>1){let G=Y.indexOf($);if(G!==-1)Y.splice(G,1)}else if(Y[0]===$)this.#Z.delete(J)}}}this.notify({type:"removed",mutation:$})}canRun($){let J=gG($);if(typeof J==="string"){let G=this.#Z.get(J)?.find((B)=>B.state.status==="pending");return!G||G===$}else return!0}runNext($){let J=gG($);if(typeof J==="string")return this.#Z.get(J)?.find((G)=>G!==$&&G.state.isPaused)?.continue()??Promise.resolve();else return Promise.resolve()}clear(){Y5.batch(()=>{this.#w.forEach(($)=>{this.notify({type:"removed",mutation:$})}),this.#w.clear(),this.#Z.clear()})}getAll(){return Array.from(this.#w)}find($){let J={exact:!0,...$};return this.getAll().find((Y)=>JG(J,Y))}findAll($={}){return this.getAll().filter((J)=>JG($,J))}notify($){Y5.batch(()=>{this.listeners.forEach((J)=>{J($)})})}resumePausedMutations(){let $=this.getAll().filter((J)=>J.state.isPaused);return Y5.batch(()=>Promise.all($.map((J)=>J.continue().catch(u5))))}};function gG($){return $.options.scope?.id}var TT=class extends O6{constructor($={}){super();this.config=$,this.#w=new Map}#w;build($,J,Y){let G=J.queryKey,B=J.queryHash??xX(G,J),g=this.get(B);if(!g)g=new qT({client:$,queryKey:G,queryHash:B,options:$.defaultQueryOptions(J),state:Y,defaultOptions:$.getQueryDefaults(G)}),this.add(g);return g}add($){if(!this.#w.has($.queryHash))this.#w.set($.queryHash,$),this.notify({type:"added",query:$})}remove($){let J=this.#w.get($.queryHash);if(J){if($.destroy(),J===$)this.#w.delete($.queryHash);this.notify({type:"removed",query:$})}}clear(){Y5.batch(()=>{this.getAll().forEach(($)=>{this.remove($)})})}get($){return this.#w.get($)}getAll(){return[...this.#w.values()]}find($){let J={exact:!0,...$};return this.getAll().find((Y)=>XG(J,Y))}findAll($={}){let J=this.getAll();return Object.keys($).length>0?J.filter((Y)=>XG($,Y)):J}notify($){Y5.batch(()=>{this.listeners.forEach((J)=>{J($)})})}onFocus(){Y5.batch(()=>{this.getAll().forEach(($)=>{$.onFocus()})})}onOnline(){Y5.batch(()=>{this.getAll().forEach(($)=>{$.onOnline()})})}};var Eb=class{#w;#Z;#$;#X;#Y;#J;#G;#z;constructor($={}){this.#w=$.queryCache||new TT,this.#Z=$.mutationCache||new NT,this.#$=$.defaultOptions||{},this.#X=new Map,this.#Y=new Map,this.#J=0}mount(){if(this.#J++,this.#J!==1)return;this.#G=BZ.subscribe(async($)=>{if($)await this.resumePausedMutations(),this.#w.onFocus()}),this.#z=HZ.subscribe(async($)=>{if($)await this.resumePausedMutations(),this.#w.onOnline()})}unmount(){if(this.#J--,this.#J!==0)return;this.#G?.(),this.#G=void 0,this.#z?.(),this.#z=void 0}isFetching($){return this.#w.findAll({...$,fetchStatus:"fetching"}).length}isMutating($){return this.#Z.findAll({...$,status:"pending"}).length}getQueryData($){let J=this.defaultQueryOptions({queryKey:$});return this.#w.get(J.queryHash)?.state.data}ensureQueryData($){let J=this.defaultQueryOptions($),Y=this.#w.build(this,J),G=Y.state.data;if(G===void 0)return this.fetchQuery($);if($.revalidateIfStale&&Y.isStaleByTime(d4(J.staleTime,Y)))this.prefetchQuery(J);return Promise.resolve(G)}getQueriesData($){return this.#w.findAll($).map(({queryKey:J,state:Y})=>{let G=Y.data;return[J,G]})}setQueryData($,J,Y){let G=this.defaultQueryOptions({queryKey:$}),g=this.#w.get(G.queryHash)?.state.data,Q=GT(J,g);if(Q===void 0)return;return this.#w.build(this,G).setData(Q,{...Y,manual:!0})}setQueriesData($,J,Y){return Y5.batch(()=>this.#w.findAll($).map(({queryKey:G})=>[G,this.setQueryData(G,J,Y)]))}getQueryState($){let J=this.defaultQueryOptions({queryKey:$});return this.#w.get(J.queryHash)?.state}removeQueries($){let J=this.#w;Y5.batch(()=>{J.findAll($).forEach((Y)=>{J.remove(Y)})})}resetQueries($,J){let Y=this.#w;return Y5.batch(()=>{return Y.findAll($).forEach((G)=>{G.reset()}),this.refetchQueries({type:"active",...$},J)})}cancelQueries($,J={}){let Y={revert:!0,...J},G=Y5.batch(()=>this.#w.findAll($).map((B)=>B.cancel(Y)));return Promise.all(G).then(u5).catch(u5)}invalidateQueries($,J={}){return Y5.batch(()=>{if(this.#w.findAll($).forEach((Y)=>{Y.invalidate()}),$?.refetchType==="none")return Promise.resolve();return this.refetchQueries({...$,type:$?.refetchType??$?.type??"active"},J)})}refetchQueries($,J={}){let Y={...J,cancelRefetch:J.cancelRefetch??!0},G=Y5.batch(()=>this.#w.findAll($).filter((B)=>!B.isDisabled()&&!B.isStatic()).map((B)=>{let g=B.fetch(void 0,Y);if(!Y.throwOnError)g=g.catch(u5);return B.state.fetchStatus==="paused"?Promise.resolve():g}));return Promise.all(G).then(u5)}fetchQuery($){let J=this.defaultQueryOptions($);if(J.retry===void 0)J.retry=!1;let Y=this.#w.build(this,J);return Y.isStaleByTime(d4(J.staleTime,Y))?Y.fetch(J):Promise.resolve(Y.state.data)}prefetchQuery($){return this.fetchQuery($).then(u5).catch(u5)}fetchInfiniteQuery($){return $._type="infinite",this.fetchQuery($)}prefetchInfiniteQuery($){return this.fetchInfiniteQuery($).then(u5).catch(u5)}ensureInfiniteQueryData($){return $._type="infinite",this.ensureQueryData($)}resumePausedMutations(){if(HZ.isOnline())return this.#Z.resumePausedMutations();return Promise.resolve()}getQueryCache(){return this.#w}getMutationCache(){return this.#Z}getDefaultOptions(){return this.#$}setDefaultOptions($){this.#$=$}setQueryDefaults($,J){this.#X.set(_7($),{queryKey:$,defaultOptions:J})}getQueryDefaults($){let J=[...this.#X.values()],Y={};return J.forEach((G)=>{if(C7($,G.queryKey))Object.assign(Y,G.defaultOptions)}),Y}setMutationDefaults($,J){this.#Y.set(_7($),{mutationKey:$,defaultOptions:J})}getMutationDefaults($){let J=[...this.#Y.values()],Y={};return J.forEach((G)=>{if(C7($,G.mutationKey))Object.assign(Y,G.defaultOptions)}),Y}defaultQueryOptions($){if($._defaulted)return $;let J={...this.#$.queries,...this.getQueryDefaults($.queryKey),...$,_defaulted:!0};if(!J.queryHash)J.queryHash=xX(J.queryKey,J);if(J.refetchOnReconnect===void 0)J.refetchOnReconnect=J.networkMode!=="always";if(J.throwOnError===void 0)J.throwOnError=!!J.suspense;if(!J.networkMode&&J.persister)J.networkMode="offlineFirst";if(J.queryFn===O7)J.enabled=!1;return J}defaultMutationOptions($){if($?._defaulted)return $;return{...this.#$.mutations,...$?.mutationKey&&this.getMutationDefaults($.mutationKey),...$,_defaulted:!0}}clear(){this.#w.clear(),this.#Z.clear()}};var g9=P(Q0(),1);var gZ=P(Q0(),1),IT=P(z5(),1),ub=gZ.createContext(void 0),Ew=($)=>{let J=gZ.useContext(ub);if($)return $;if(!J)throw Error("No QueryClient set, use QueryClientProvider to set one");return J},lb=({client:$,children:J})=>{return gZ.useEffect(()=>{return $.mount(),()=>{$.unmount()}},[$]),IT.jsx(ub.Provider,{value:$,children:J})};var fX=P(Q0(),1),RV=P(z5(),1);function yV(){let $=!1;return{clearReset:()=>{$=!1},reset:()=>{$=!0},isReset:()=>{return $}}}var SV=fX.createContext(yV()),_T=()=>fX.useContext(SV);var OT=P(Q0(),1);var CT=($,J,Y)=>{let G=Y?.state.error&&typeof $.throwOnError==="function"?GG($.throwOnError,[Y.state.error,Y]):$.throwOnError;if($.suspense||$.experimental_prefetchInRender||G){if(!J.isReset())$.retryOnMount=!1}},AT=($)=>{OT.useEffect(()=>{$.clearReset()},[$])},MT=({result:$,errorResetBoundary:J,throwOnError:Y,query:G,suspense:B})=>{return $.isError&&!J.isReset()&&!$.isFetching&&G&&(B&&$.data===void 0||GG(Y,[$.error,G]))};var QG=P(Q0(),1),xT=QG.createContext(!1),mT=()=>QG.useContext(xT),Pi=xT.Provider;var PT=($)=>{if($.suspense){let Y=(B)=>B==="static"?B:Math.max(B??1000,1000),G=$.staleTime;if($.staleTime=typeof G==="function"?(...B)=>Y(G(...B)):Y(G),typeof $.gcTime==="number")$.gcTime=Math.max($.gcTime,1000)}},fT=($,J)=>$.isLoading&&$.isFetching&&!J,hT=($,J)=>$?.suspense&&J.isPending,cb=($,J,Y)=>J.fetchOptimistic($).catch(()=>{Y.clearReset()});function VT($,J,Y){if(typeof $!=="object"||Array.isArray($))throw Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');let G=mT(),B=_T(),g=Ew(Y),Q=g.defaultQueryOptions($);g.getDefaultOptions().queries?._experimental_beforeQuery?.(Q);let b=g.getQueryCache().get(Q.queryHash);if(!Q.queryFn)console.error(`[${Q.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);let K=$.subscribed!==!1;Q._optimisticResults=G?"isRestoring":K?"optimistic":void 0,PT(Q),CT(Q,B,b),AT(B);let k=!g.getQueryCache().get(Q.queryHash),[L]=g9.useState(()=>new J(g,Q)),U=L.getOptimisticResult(Q),F=!G&&K;if(g9.useSyncExternalStore(g9.useCallback((N)=>{let C=F?L.subscribe(Y5.batchCalls(N)):u5;return L.updateResult(),C},[L,F]),()=>L.getCurrentResult(),()=>L.getCurrentResult()),g9.useEffect(()=>{L.setOptions(Q)},[Q,L]),hT(Q,U))throw cb(Q,L,B);if(MT({result:U,errorResetBoundary:B,throwOnError:Q.throwOnError,query:b,suspense:Q.suspense}))throw U.error;if(g.getDefaultOptions().queries?._experimental_afterQuery?.(Q,U),Q.experimental_prefetchInRender&&!A6.isServer()&&fT(U,G))(k?cb(Q,L,B):b?.promise)?.catch(u5).finally(()=>{L.updateResult()});return!Q.notifyOnChangeProps?L.trackResult(U):U}function c0($,J){return VT($,Db,J)}var Mm=P(Q0(),1),xm=P(jT(),1);var Bw=P(Q0(),1),m0=P(Q0(),1),Q5=P(Q0(),1),bQ=P(Q0(),1),FI=P(Q0(),1),k1=P(Q0(),1),Jy=P(Q0(),1),Yy=P(Q0(),1),zy=P(Q0(),1),f0=P(Q0(),1),fI=P(Q0(),1);var ET="popstate";function uT($){return typeof $==="object"&&$!=null&&"pathname"in $&&"search"in $&&"hash"in $&&"state"in $&&"key"in $}function nT($={}){function J(G,B){let g=B.state?.masked,{pathname:Q,search:b,hash:K}=g||G.location;return ob("",{pathname:Q,search:b,hash:K},B.state&&B.state.usr||null,B.state&&B.state.key||"default",g?{pathname:G.location.pathname,search:G.location.search,hash:G.location.hash}:void 0)}function Y(G,B){return typeof B==="string"?B:QZ(B)}return cV(J,Y,null,$)}function G5($,J){if($===!1||$===null||typeof $>"u")throw Error(J)}function uw($,J){if(!$){if(typeof console<"u")console.warn(J);try{throw Error(J)}catch(Y){}}}function lV(){return Math.random().toString(36).substring(2,10)}function lT($,J){return{usr:$.state,key:$.key,idx:J,masked:$.mask?{pathname:$.pathname,search:$.search,hash:$.hash}:void 0}}function ob($,J,Y=null,G,B){return{pathname:typeof $==="string"?$:$.pathname,search:"",hash:"",...typeof J==="string"?x7(J):J,state:Y,key:J&&J.key||G||lV(),mask:B}}function QZ({pathname:$="/",search:J="",hash:Y=""}){if(J&&J!=="?")$+=J.charAt(0)==="?"?J:"?"+J;if(Y&&Y!=="#")$+=Y.charAt(0)==="#"?Y:"#"+Y;return $}function x7($){let J={};if($){let Y=$.indexOf("#");if(Y>=0)J.hash=$.substring(Y),$=$.substring(0,Y);let G=$.indexOf("?");if(G>=0)J.search=$.substring(G),$=$.substring(0,G);if($)J.pathname=$}return J}function cV($,J,Y,G={}){let{window:B=document.defaultView,v5Compat:g=!1}=G,Q=B.history,b="POP",K=null,k=L();if(k==null)k=0,Q.replaceState({...Q.state,idx:k},"");function L(){return(Q.state||{idx:null}).idx}function U(){b="POP";let A=L(),x=A==null?null:A-k;if(k=A,K)K({action:b,location:I.location,delta:x})}function F(A,x){b="PUSH";let S=uT(A)?A:ob(I.location,A,x);if(Y)Y(S,A);k=L()+1;let D=lT(S,k),i=I.createHref(S.mask||S);try{Q.pushState(D,"",i)}catch($0){if($0 instanceof DOMException&&$0.name==="DataCloneError")throw $0;B.location.assign(i)}if(g&&K)K({action:b,location:I.location,delta:1})}function N(A,x){b="REPLACE";let S=uT(A)?A:ob(I.location,A,x);if(Y)Y(S,A);k=L();let D=lT(S,k),i=I.createHref(S.mask||S);if(Q.replaceState(D,"",i),g&&K)K({action:b,location:I.location,delta:0})}function C(A){return aV(B,A)}let I={get action(){return b},get location(){return $(B,Q)},listen(A){if(K)throw Error("A history only accepts one active listener");return B.addEventListener(ET,U),K=A,()=>{B.removeEventListener(ET,U),K=null}},createHref(A){return J(B,A)},createURL:C,encodeLocation(A){let x=C(A);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:F,replace:N,go(A){return Q.go(A)}};return I}function aV($,J,Y=!1){let G="http://localhost";if($)G=$.location.origin!=="null"?$.location.origin:$.location.href;G5(G,"No window.location.(origin|href) available to create URL");let B=typeof J==="string"?J:QZ(J);if(B=B.replace(/ $/,"%20"),!Y&&B.startsWith("//"))B=G+B;return new URL(B,G)}var iV;iV=new WeakMap;function wQ($,J,Y="/"){return pV($,J,Y,!1)}function pV($,J,Y,G,B){let g=typeof J==="string"?x7(J):J,Q=M6(g.pathname||"/",Y);if(Q==null)return null;let b=B??nV($),K=null,k=GR(Q);for(let L=0;K==null&&L<b.length;++L)K=YR(b[L],k,G);return K}function rV($,J){let{route:Y,pathname:G,params:B}=$;return{id:Y.id,pathname:G,params:B,data:J[Y.id],loaderData:J[Y.id],handle:Y.handle}}function nV($){let J=oT($);return oV(J),J}function oT($,J=[],Y=[],G="",B=!1){let g=(Q,b,K=B,k)=>{let L={relativePath:k===void 0?Q.path||"":k,caseSensitive:Q.caseSensitive===!0,childrenIndex:b,route:Q};if(L.relativePath.startsWith("/")){if(!L.relativePath.startsWith(G)&&K)return;G5(L.relativePath.startsWith(G),`Absolute route path "${L.relativePath}" nested under path "${G}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),L.relativePath=L.relativePath.slice(G.length)}let U=D4([G,L.relativePath]),F=Y.concat(L);if(Q.children&&Q.children.length>0)G5(Q.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${U}".`),oT(Q.children,J,F,U,K);if(Q.path==null&&!Q.index)return;J.push({path:U,score:XR(U,Q.index),routesMeta:F})};return $.forEach((Q,b)=>{if(Q.path===""||!Q.path?.includes("?"))g(Q,b);else for(let K of sT(Q.path))g(Q,b,!0,K)}),J}function sT($){let J=$.split("/");if(J.length===0)return[];let[Y,...G]=J,B=Y.endsWith("?"),g=Y.replace(/\?$/,"");if(G.length===0)return B?[g,""]:[g];let Q=sT(G.join("/")),b=[];if(b.push(...Q.map((K)=>K===""?g:[g,K].join("/"))),B)b.push(...Q);return b.map((K)=>$.startsWith("/")&&K===""?"/":K)}function oV($){$.sort((J,Y)=>J.score!==Y.score?Y.score-J.score:JR(J.routesMeta.map((G)=>G.childrenIndex),Y.routesMeta.map((G)=>G.childrenIndex)))}var sV=/^:[\w-]+$/,tV=3,eV=2,wR=1,ZR=10,$R=-2,cT=($)=>$==="*";function XR($,J){let Y=$.split("/"),G=Y.length;if(Y.some(cT))G+=$R;if(J)G+=eV;return Y.filter((B)=>!cT(B)).reduce((B,g)=>B+(sV.test(g)?tV:g===""?wR:ZR),G)}function JR($,J){return $.length===J.length&&$.slice(0,-1).every((G,B)=>G===J[B])?$[$.length-1]-J[J.length-1]:0}function YR($,J,Y=!1){let{routesMeta:G}=$,B={},g="/",Q=[];for(let b=0;b<G.length;++b){let K=G[b],k=b===G.length-1,L=g==="/"?J:J.slice(g.length)||"/",U=VX({path:K.relativePath,caseSensitive:K.caseSensitive,end:k},L),F=K.route;if(!U&&k&&Y&&!G[G.length-1].route.index)U=VX({path:K.relativePath,caseSensitive:K.caseSensitive,end:!1},L);if(!U)return null;if(Object.assign(B,U.params),Q.push({params:B,pathname:D4([g,U.pathname]),pathnameBase:HR(D4([g,U.pathnameBase])),route:F}),U.pathnameBase!=="/")g=D4([g,U.pathnameBase])}return Q}function VX($,J){if(typeof $==="string")$={path:$,caseSensitive:!1,end:!0};let[Y,G]=zR($.path,$.caseSensitive,$.end),B=J.match(Y);if(!B)return null;let g=B[0],Q=g.replace(/(.)\/+$/,"$1"),b=B.slice(1);return{params:G.reduce((k,{paramName:L,isOptional:U},F)=>{if(L==="*"){let C=b[F]||"";Q=g.slice(0,g.length-C.length).replace(/(.)\/+$/,"$1")}let N=b[F];if(U&&!N)k[L]=void 0;else k[L]=(N||"").replace(/%2F/g,"/");return k},{}),pathname:g,pathnameBase:Q,pattern:$}}function zR($,J=!1,Y=!0){uw($==="*"||!$.endsWith("*")||$.endsWith("/*"),`Route path "${$}" will be treated as if it were "${$.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${$.replace(/\*$/,"/*")}".`);let G=[],B="^"+$.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(Q,b,K,k,L)=>{if(G.push({paramName:b,isOptional:K!=null}),K){let U=L.charAt(k+Q.length);if(U&&U!=="/")return"/([^\\/]*)";return"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");if($.endsWith("*"))G.push({paramName:"*"}),B+=$==="*"||$==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$";else if(Y)B+="\\/*$";else if($!==""&&$!=="/")B+="(?:(?=\\/|$))";return[new RegExp(B,J?void 0:"i"),G]}function GR($){try{return $.split("/").map((J)=>decodeURIComponent(J).replace(/\//g,"%2F")).join("/")}catch(J){return uw(!1,`The URL path "${$}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${J}).`),$}}function M6($,J){if(J==="/")return $;if(!$.toLowerCase().startsWith(J.toLowerCase()))return null;let Y=J.endsWith("/")?J.length-1:J.length,G=$.charAt(Y);if(G&&G!=="/")return null;return $.slice(Y)||"/"}var vR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function tT($,J="/"){let{pathname:Y,search:G="",hash:B=""}=typeof $==="string"?x7($):$,g;if(Y)if(Y=wI(Y),Y.startsWith("/"))g=aT(Y.substring(1),"/");else g=aT(Y,J);else g=J;return{pathname:g,search:gR(G),hash:bR(B)}}function aT($,J){let Y=LG(J).split("/");return $.split("/").forEach((B)=>{if(B===".."){if(Y.length>1)Y.pop()}else if(B!==".")Y.push(B)}),Y.length>1?Y.join("/"):"/"}function pb($,J,Y,G){return`Cannot include a '${$}' character in a manually specified \`to.${J}\` field [${JSON.stringify(G)}]. Please separate it out to the \`to.${Y}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function BR($){return $.filter((J,Y)=>Y===0||J.route.path&&J.route.path.length>0)}function eT($){let J=BR($);return J.map((Y,G)=>G===J.length-1?Y.pathname:Y.pathnameBase)}function ZQ($,J,Y,G=!1){let B;if(typeof $==="string")B=x7($);else B={...$},G5(!B.pathname||!B.pathname.includes("?"),pb("?","pathname","search",B)),G5(!B.pathname||!B.pathname.includes("#"),pb("#","pathname","hash",B)),G5(!B.search||!B.search.includes("#"),pb("#","search","hash",B));let g=$===""||B.pathname==="",Q=g?"/":B.pathname,b;if(Q==null)b=Y;else{let U=J.length-1;if(!G&&Q.startsWith("..")){let F=Q.split("/");while(F[0]==="..")F.shift(),U-=1;B.pathname=F.join("/")}b=U>=0?J[U]:"/"}let K=tT(B,b),k=Q&&Q!=="/"&&Q.endsWith("/"),L=(g||Q===".")&&Y.endsWith("/");if(!K.pathname.endsWith("/")&&(k||L))K.pathname+="/";return K}var wI=($)=>$.replace(/\/\/+/g,"/"),D4=($)=>wI($.join("/")),LG=($)=>$.replace(/\/+$/,""),HR=($)=>LG($).replace(/^\/*/,"/"),gR=($)=>!$||$==="?"?"":$.startsWith("?")?$:"?"+$,bR=($)=>!$||$==="#"?"":$.startsWith("#")?$:"#"+$;var ZI=class{constructor($,J,Y,G=!1){if(this.status=$,this.statusText=J||"",this.internal=G,Y instanceof Error)this.data=Y.toString(),this.error=Y;else this.data=Y}};function $I($){return $!=null&&typeof $.status==="number"&&typeof $.statusText==="string"&&typeof $.internal==="boolean"&&"data"in $}function QR($){let J=$.map((Y)=>Y.route.path).filter(Boolean);return D4(J)||"/"}var XI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function JI($,J){let Y=$;if(typeof Y!=="string"||!vR.test(Y))return{absoluteURL:void 0,isExternal:!1,to:Y};let G=Y,B=!1;if(XI)try{let g=new URL(window.location.href),Q=Y.startsWith("//")?new URL(g.protocol+Y):new URL(Y),b=M6(Q.pathname,J);if(Q.origin===g.origin&&b!=null)Y=b+Q.search+Q.hash;else B=!0}catch(g){uw(!1,`<Link to="${Y}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:G,isExternal:B,to:Y}}var qr=Symbol("Uninstrumented");var Lr=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");var YI=["POST","PUT","PATCH","DELETE"],kr=new Set(YI),WR=["GET",...YI],Fr=new Set(WR);var Nr=Symbol("ResetLoaderData"),KR,UR,qR,LR;KR=new WeakMap;UR=new WeakMap;qR=new WeakMap;LR=new WeakMap;var m7=Bw.createContext(null);m7.displayName="DataRouter";var WZ=Bw.createContext(null);WZ.displayName="DataRouterState";var zI=Bw.createContext(!1);function kR(){return Bw.useContext(zI)}var $Q=Bw.createContext({isTransitioning:!1});$Q.displayName="ViewTransition";var GI=Bw.createContext(new Map);GI.displayName="Fetchers";var FR=Bw.createContext(null);FR.displayName="Await";var n2=Bw.createContext(null);n2.displayName="Navigation";var KZ=Bw.createContext(null);KZ.displayName="Location";var g4=Bw.createContext({outlet:null,matches:[],isDataRoute:!1});g4.displayName="Route";var XQ=Bw.createContext(null);XQ.displayName="RouteError";var sb=!0,vI="REACT_ROUTER_ERROR",NR="REDIRECT",TR="ROUTE_ERROR_RESPONSE";function IR($){if($.startsWith(`${vI}:${NR}:{`))try{let J=JSON.parse($.slice(28));if(typeof J==="object"&&J&&typeof J.status==="number"&&typeof J.statusText==="string"&&typeof J.location==="string"&&typeof J.reloadDocument==="boolean"&&typeof J.replace==="boolean")return J}catch{}}function _R($){if($.startsWith(`${vI}:${TR}:{`))try{let J=JSON.parse($.slice(40));if(typeof J==="object"&&J&&typeof J.status==="number"&&typeof J.statusText==="string")return new ZI(J.status,J.statusText,J.data)}catch{}}function BI($,{relative:J}={}){G5(UZ(),"useHref() may be used only in the context of a <Router> component.");let{basename:Y,navigator:G}=m0.useContext(n2),{hash:B,pathname:g,search:Q}=qZ($,{relative:J}),b=g;if(Y!=="/")b=g==="/"?Y:D4([Y,g]);return G.createHref({pathname:b,search:Q,hash:B})}function UZ(){return m0.useContext(KZ)!=null}function lw(){return G5(UZ(),"useLocation() may be used only in the context of a <Router> component."),m0.useContext(KZ).location}var HI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gI($){if(!m0.useContext(n2).static)m0.useLayoutEffect($)}function j4(){let{isDataRoute:$}=m0.useContext(g4);return $?RR():OR()}function OR(){G5(UZ(),"useNavigate() may be used only in the context of a <Router> component.");let $=m0.useContext(m7),{basename:J,navigator:Y}=m0.useContext(n2),{matches:G}=m0.useContext(g4),{pathname:B}=lw(),g=JSON.stringify(eT(G)),Q=m0.useRef(!1);return gI(()=>{Q.current=!0}),m0.useCallback((K,k={})=>{if(uw(Q.current,HI),!Q.current)return;if(typeof K==="number"){Y.go(K);return}let L=ZQ(K,JSON.parse(g),B,k.relative==="path");if($==null&&J!=="/")L.pathname=L.pathname==="/"?J:D4([J,L.pathname]);(k.replace?Y.replace:Y.push)(L,k.state,k)},[J,Y,g,B,$])}var CR=m0.createContext(null);function bI($){let J=m0.useContext(g4).outlet;return m0.useMemo(()=>J&&m0.createElement(CR.Provider,{value:$},J),[J,$])}function JQ(){let{matches:$}=m0.useContext(g4);return $[$.length-1]?.params??{}}function qZ($,{relative:J}={}){let{matches:Y}=m0.useContext(g4),{pathname:G}=lw(),B=JSON.stringify(eT(Y));return m0.useMemo(()=>ZQ($,JSON.parse(B),G,J==="path"),[$,B,G,J])}function QI($,J){return WI($,J)}function WI($,J,Y){G5(UZ(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:G}=m0.useContext(n2),{matches:B}=m0.useContext(g4),g=B[B.length-1],Q=g?g.params:{},b=g?g.pathname:"/",K=g?g.pathnameBase:"/",k=g&&g.route;if(sb){let A=k&&k.path||"";LI(b,!k||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${A}">) 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.
|
|
241
|
+
|
|
242
|
+
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let L=lw(),U;if(J){let A=typeof J==="string"?x7(J):J;G5(K==="/"||A.pathname?.startsWith(K),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${K}" but pathname "${A.pathname}" was given in the \`location\` prop.`),U=A}else U=L;let F=U.pathname||"/",N=F;if(K!=="/"){let A=K.replace(/^\//,"").split("/");N="/"+F.replace(/^\//,"").split("/").slice(A.length).join("/")}let C=Y&&Y.state.matches.length?Y.state.matches.map((A)=>Object.assign(A,{route:Y.manifest[A.route.id]||A.route})):wQ($,{pathname:N});if(sb)uw(k||C!=null,`No routes matched location "${U.pathname}${U.search}${U.hash}" `),uw(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${U.pathname}${U.search}${U.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let I=PR(C&&C.map((A)=>Object.assign({},A,{params:Object.assign({},Q,A.params),pathname:D4([K,G.encodeLocation?G.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?K:D4([K,G.encodeLocation?G.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),B,Y);if(J&&I)return m0.createElement(KZ.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...U},navigationType:"POP"}},I);return I}function AR(){let $=qI(),J=$I($)?`${$.status} ${$.statusText}`:$ instanceof Error?$.message:JSON.stringify($),Y=$ instanceof Error?$.stack:null,G="rgba(200,200,200, 0.5)",B={padding:"0.5rem",backgroundColor:G},g={padding:"2px 4px",backgroundColor:G},Q=null;if(sb)console.error("Error handled by React Router default ErrorBoundary:",$),Q=m0.createElement(m0.Fragment,null,m0.createElement("p",null,"\uD83D\uDCBF Hey developer \uD83D\uDC4B"),m0.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m0.createElement("code",{style:g},"ErrorBoundary")," or"," ",m0.createElement("code",{style:g},"errorElement")," prop on your route."));return m0.createElement(m0.Fragment,null,m0.createElement("h2",null,"Unexpected Application Error!"),m0.createElement("h3",{style:{fontStyle:"italic"}},J),Y?m0.createElement("pre",{style:B},Y):null,Q)}var MR=m0.createElement(AR,null),KI=class extends m0.Component{constructor($){super($);this.state={location:$.location,revalidation:$.revalidation,error:$.error}}static getDerivedStateFromError($){return{error:$}}static getDerivedStateFromProps($,J){if(J.location!==$.location||J.revalidation!=="idle"&&$.revalidation==="idle")return{error:$.error,location:$.location,revalidation:$.revalidation};return{error:$.error!==void 0?$.error:J.error,location:J.location,revalidation:$.revalidation||J.revalidation}}componentDidCatch($,J){if(this.props.onError)this.props.onError($,J);else console.error("React Router caught the following error during render",$)}render(){let $=this.state.error;if(this.context&&typeof $==="object"&&$&&"digest"in $&&typeof $.digest==="string"){let Y=_R($.digest);if(Y)$=Y}let J=$!==void 0?m0.createElement(g4.Provider,{value:this.props.routeContext},m0.createElement(XQ.Provider,{value:$,children:this.props.component})):this.props.children;if(this.context)return m0.createElement(xR,{error:$},J);return J}};KI.contextType=zI;var rb=new WeakMap;function xR({children:$,error:J}){let{basename:Y}=m0.useContext(n2);if(typeof J==="object"&&J&&"digest"in J&&typeof J.digest==="string"){let G=IR(J.digest);if(G){let B=rb.get(J);if(B)throw B;let g=JI(G.location,Y);if(XI&&!rb.get(J))if(g.isExternal||G.reloadDocument)window.location.href=g.absoluteURL||g.to;else{let Q=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(g.to,{replace:G.replace}));throw rb.set(J,Q),Q}return m0.createElement("meta",{httpEquiv:"refresh",content:`0;url=${g.absoluteURL||g.to}`})}}return $}function mR({routeContext:$,match:J,children:Y}){let G=m0.useContext(m7);if(G&&G.static&&G.staticContext&&(J.route.errorElement||J.route.ErrorBoundary))G.staticContext._deepestRenderedBoundaryId=J.route.id;return m0.createElement(g4.Provider,{value:$},Y)}function PR($,J=[],Y){let G=Y?.state;if($==null){if(!G)return null;if(G.errors)$=G.matches;else if(J.length===0&&!G.initialized&&G.matches.length>0)$=G.matches;else return null}let B=$,g=G?.errors;if(g!=null){let L=B.findIndex((U)=>U.route.id&&g?.[U.route.id]!==void 0);G5(L>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(g).join(",")}`),B=B.slice(0,Math.min(B.length,L+1))}let Q=!1,b=-1;if(Y&&G){Q=G.renderFallback;for(let L=0;L<B.length;L++){let U=B[L];if(U.route.HydrateFallback||U.route.hydrateFallbackElement)b=L;if(U.route.id){let{loaderData:F,errors:N}=G,C=U.route.loader&&!F.hasOwnProperty(U.route.id)&&(!N||N[U.route.id]===void 0);if(U.route.lazy||C){if(Y.isStatic)Q=!0;if(b>=0)B=B.slice(0,b+1);else B=[B[0]];break}}}}let K=Y?.onError,k=G&&K?(L,U)=>{K(L,{location:G.location,params:G.matches?.[0]?.params??{},pattern:QR(G.matches),errorInfo:U})}:void 0;return B.reduceRight((L,U,F)=>{let N,C=!1,I=null,A=null;if(G){if(N=g&&U.route.id?g[U.route.id]:void 0,I=U.route.errorElement||MR,Q){if(b<0&&F===0)LI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,A=null;else if(b===F)C=!0,A=U.route.hydrateFallbackElement||null}}let x=J.concat(B.slice(0,F+1)),S=()=>{let D;if(N)D=I;else if(C)D=A;else if(U.route.Component)D=m0.createElement(U.route.Component,null);else if(U.route.element)D=U.route.element;else D=L;return m0.createElement(mR,{match:U,routeContext:{outlet:L,matches:x,isDataRoute:G!=null},children:D})};return G&&(U.route.ErrorBoundary||U.route.errorElement||F===0)?m0.createElement(KI,{location:G.location,revalidation:G.revalidation,component:I,error:N,children:S(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:k}):S()},null)}function YQ($){return`${$} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fR($){let J=m0.useContext(m7);return G5(J,YQ($)),J}function zQ($){let J=m0.useContext(WZ);return G5(J,YQ($)),J}function hR($){let J=m0.useContext(g4);return G5(J,YQ($)),J}function GQ($){let J=hR($),Y=J.matches[J.matches.length-1];return G5(Y.route.id,`${$} can only be used on routes that contain a unique "id"`),Y.route.id}function VR(){return GQ("useRouteId")}function UI(){let $=zQ("useNavigation");return m0.useMemo(()=>{let{matches:J,historyAction:Y,...G}=$.navigation;return G},[$.navigation])}function vQ(){let{matches:$,loaderData:J}=zQ("useMatches");return m0.useMemo(()=>$.map((Y)=>rV(Y,J)),[$,J])}function qI(){let $=m0.useContext(XQ),J=zQ("useRouteError"),Y=GQ("useRouteError");if($!==void 0)return $;return J.errors?.[Y]}function RR(){let{router:$}=fR("useNavigate"),J=GQ("useNavigate"),Y=m0.useRef(!1);return gI(()=>{Y.current=!0}),m0.useCallback(async(B,g={})=>{if(uw(Y.current,HI),!Y.current)return;if(typeof B==="number")await $.navigate(B);else await $.navigate(B,{fromRouteId:J,...g})},[$,J])}var iT={};function LI($,J,Y){if(!J&&!iT[$])iT[$]=!0,uw(!1,Y)}var yR="useOptimistic",Tr=Q5[yR];var Ir=Q5.memo(SR);function SR({routes:$,manifest:J,future:Y,state:G,isStatic:B,onError:g}){return WI($,void 0,{manifest:J,state:G,isStatic:B,onError:g,future:Y})}function BQ($){return bI($.context)}function W2($){G5(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function HQ({basename:$="/",children:J=null,location:Y,navigationType:G="POP",navigator:B,static:g=!1,useTransitions:Q}){G5(!UZ(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=$.replace(/^\/*/,"/"),K=Q5.useMemo(()=>({basename:b,navigator:B,static:g,useTransitions:Q,future:{}}),[b,B,g,Q]);if(typeof Y==="string")Y=x7(Y);let{pathname:k="/",search:L="",hash:U="",state:F=null,key:N="default",mask:C}=Y,I=Q5.useMemo(()=>{let A=M6(k,b);if(A==null)return null;return{location:{pathname:A,search:L,hash:U,state:F,key:N,mask:C},navigationType:G}},[b,k,L,U,F,N,G,C]);if(uw(I!=null,`<Router basename="${b}"> is not able to match the URL "${k}${L}${U}" because it does not start with the basename, so the <Router> won't render anything.`),I==null)return null;return Q5.createElement(n2.Provider,{value:K},Q5.createElement(KZ.Provider,{children:J,value:I}))}function gQ({children:$,location:J}){return QI(kG($),J)}function kG($,J=[]){let Y=[];return Q5.Children.forEach($,(G,B)=>{if(!Q5.isValidElement(G))return;let g=[...J,B];if(G.type===Q5.Fragment){Y.push.apply(Y,kG(G.props.children,g));return}G5(G.type===W2,`[${typeof G.type==="string"?G.type:G.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),G5(!G.props.index||!G.props.children,"An index route cannot have child routes.");let Q={id:G.props.id||g.join("-"),caseSensitive:G.props.caseSensitive,element:G.props.element,Component:G.props.Component,index:G.props.index,path:G.props.path,middleware:G.props.middleware,loader:G.props.loader,action:G.props.action,hydrateFallbackElement:G.props.hydrateFallbackElement,HydrateFallback:G.props.HydrateFallback,errorElement:G.props.errorElement,ErrorBoundary:G.props.ErrorBoundary,hasErrorBoundary:G.props.hasErrorBoundary===!0||G.props.ErrorBoundary!=null||G.props.errorElement!=null,shouldRevalidate:G.props.shouldRevalidate,handle:G.props.handle,lazy:G.props.lazy};if(G.props.children)Q.children=kG(G.props.children,g);Y.push(Q)}),Y}var UG="get",qG="application/x-www-form-urlencoded";function NG($){return typeof HTMLElement<"u"&&$ instanceof HTMLElement}function dR($){return NG($)&&$.tagName.toLowerCase()==="button"}function DR($){return NG($)&&$.tagName.toLowerCase()==="form"}function jR($){return NG($)&&$.tagName.toLowerCase()==="input"}function ER($){return!!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)}function uR($,J){return $.button===0&&(!J||J==="_self")&&!ER($)}function FG($=""){return new URLSearchParams(typeof $==="string"||Array.isArray($)||$ instanceof URLSearchParams?$:Object.keys($).reduce((J,Y)=>{let G=$[Y];return J.concat(Array.isArray(G)?G.map((B)=>[Y,B]):[[Y,G]])},[]))}function lR($,J){let Y=FG($);if(J)J.forEach((G,B)=>{if(!Y.has(B))J.getAll(B).forEach((g)=>{Y.append(B,g)})});return Y}var WG=null;function cR(){if(WG===null)try{new FormData(document.createElement("form"),0),WG=!1}catch($){WG=!0}return WG}var aR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nb($){if($!=null&&!aR.has($))return uw(!1,`"${$}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qG}"`),null;return $}function iR($,J){let Y,G,B,g,Q;if(DR($)){let b=$.getAttribute("action");G=b?M6(b,J):null,Y=$.getAttribute("method")||UG,B=nb($.getAttribute("enctype"))||qG,g=new FormData($)}else if(dR($)||jR($)&&($.type==="submit"||$.type==="image")){let b=$.form;if(b==null)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let K=$.getAttribute("formaction")||b.getAttribute("action");if(G=K?M6(K,J):null,Y=$.getAttribute("formmethod")||b.getAttribute("method")||UG,B=nb($.getAttribute("formenctype"))||nb(b.getAttribute("enctype"))||qG,g=new FormData(b,$),!cR()){let{name:k,type:L,value:U}=$;if(L==="image"){let F=k?`${k}.`:"";g.append(`${F}x`,"0"),g.append(`${F}y`,"0")}else if(k)g.append(k,U)}}else if(NG($))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else Y=UG,G=null,B=qG,Q=$;if(g&&B==="text/plain")Q=g,g=void 0;return{action:G,method:Y.toLowerCase(),encType:B,formData:g,body:Q}}var _r=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");var pR={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},rR=/[&><\u2028\u2029]/g;function pT($){return $.replace(rR,(J)=>pR[J])}function QQ($,J){if($===!1||$===null||typeof $>"u")throw Error(J)}var nR=Symbol("SingleFetchRedirect");function kI($,J,Y,G){let B=typeof $==="string"?new URL($,typeof window>"u"?"server://singlefetch/":window.location.origin):$;if(Y)if(B.pathname.endsWith("/"))B.pathname=`${B.pathname}_.${G}`;else B.pathname=`${B.pathname}.${G}`;else if(B.pathname==="/")B.pathname=`_root.${G}`;else if(J&&M6(B.pathname,J)==="/")B.pathname=`${LG(J)}/_root.${G}`;else B.pathname=`${LG(B.pathname)}.${G}`;return B}async function oR($,J){if($.id in J)return J[$.id];try{let Y=await import($.module);return J[$.id]=Y,Y}catch(Y){return console.error(`Error loading route module \`${$.module}\`, reloading page...`),console.error(Y),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&void 0,window.location.reload(),new Promise(()=>{})}}function sR($){return $!=null&&typeof $.page==="string"}function tR($){if($==null)return!1;if($.href==null)return $.rel==="preload"&&typeof $.imageSrcSet==="string"&&typeof $.imageSizes==="string";return typeof $.rel==="string"&&typeof $.href==="string"}async function eR($,J,Y){let G=await Promise.all($.map(async(B)=>{let g=J.routes[B.route.id];if(g){let Q=await oR(g,Y);return Q.links?Q.links():[]}return[]}));return Xy(G.flat(1).filter(tR).filter((B)=>B.rel==="stylesheet"||B.rel==="preload").map((B)=>B.rel==="stylesheet"?{...B,rel:"prefetch",as:"style"}:{...B,rel:"prefetch"}))}function rT($,J,Y,G,B,g){let Q=(K,k)=>{if(!Y[k])return!0;return K.route.id!==Y[k].route.id},b=(K,k)=>{return Y[k].pathname!==K.pathname||Y[k].route.path?.endsWith("*")&&Y[k].params["*"]!==K.params["*"]};if(g==="assets")return J.filter((K,k)=>Q(K,k)||b(K,k));if(g==="data")return J.filter((K,k)=>{let L=G.routes[K.route.id];if(!L||!L.hasLoader)return!1;if(Q(K,k)||b(K,k))return!0;if(K.route.shouldRevalidate){let U=K.route.shouldRevalidate({currentUrl:new URL(B.pathname+B.search+B.hash,window.origin),currentParams:Y[0]?.params||{},nextUrl:new URL($,window.origin),nextParams:K.params,defaultShouldRevalidate:!0});if(typeof U==="boolean")return U}return!0});return[]}function wy($,J,{includeHydrateFallback:Y}={}){return Zy($.map((G)=>{let B=J.routes[G.route.id];if(!B)return[];let g=[B.module];if(B.clientActionModule)g=g.concat(B.clientActionModule);if(B.clientLoaderModule)g=g.concat(B.clientLoaderModule);if(Y&&B.hydrateFallbackModule)g=g.concat(B.hydrateFallbackModule);if(B.imports)g=g.concat(B.imports);return g}).flat(1))}function Zy($){return[...new Set($)]}function $y($){let J={},Y=Object.keys($).sort();for(let G of Y)J[G]=$[G];return J}function Xy($,J){let Y=new Set,G=new Set(J);return $.reduce((B,g)=>{if(J&&!sR(g)&&g.as==="script"&&g.href&&G.has(g.href))return B;let b=JSON.stringify($y(g));if(!Y.has(b))Y.add(b),B.push({key:b,link:g});return B},[])}function WQ(){let $=k1.useContext(m7);return QQ($,"You must render this element inside a <DataRouterContext.Provider> element"),$}function Gy(){let $=k1.useContext(WZ);return QQ($,"You must render this element inside a <DataRouterStateContext.Provider> element"),$}var RX=k1.createContext(void 0);RX.displayName="FrameworkContext";function KQ(){let $=k1.useContext(RX);return QQ($,"You must render this element inside a <HydratedRouter> element"),$}function vy($,J){let Y=k1.useContext(RX),[G,B]=k1.useState(!1),[g,Q]=k1.useState(!1),{onFocus:b,onBlur:K,onMouseEnter:k,onMouseLeave:L,onTouchStart:U}=J,F=k1.useRef(null);k1.useEffect(()=>{if($==="render")Q(!0);if($==="viewport"){let A=new IntersectionObserver((x)=>{x.forEach((S)=>{Q(S.isIntersecting)})},{threshold:0.5});if(F.current)A.observe(F.current);return()=>{A.disconnect()}}},[$]),k1.useEffect(()=>{if(G){let I=setTimeout(()=>{Q(!0)},100);return()=>{clearTimeout(I)}}},[G]);let N=()=>{B(!0)},C=()=>{B(!1),Q(!1)};if(!Y)return[!1,F,{}];if($!=="intent")return[g,F,{}];return[g,F,{onFocus:hX(b,N),onBlur:hX(K,C),onMouseEnter:hX(k,N),onMouseLeave:hX(L,C),onTouchStart:hX(U,N)}]}function hX($,J){return(Y)=>{if($&&$(Y),!Y.defaultPrevented)J(Y)}}function NI({page:$,...J}){let Y=kR(),{router:G}=WQ(),B=k1.useMemo(()=>wQ(G.routes,$,G.basename),[G.routes,$,G.basename]);if(!B)return null;if(Y)return k1.createElement(Hy,{page:$,matches:B,...J});return k1.createElement(gy,{page:$,matches:B,...J})}function By($){let{manifest:J,routeModules:Y}=KQ(),[G,B]=k1.useState([]);return k1.useEffect(()=>{let g=!1;return eR($,J,Y).then((Q)=>{if(!g)B(Q)}),()=>{g=!0}},[$,J,Y]),G}function Hy({page:$,matches:J,...Y}){let G=lw(),{future:B}=KQ(),{basename:g}=WQ(),Q=k1.useMemo(()=>{if($===G.pathname+G.search+G.hash)return[];let b=kI($,g,B.v8_trailingSlashAwareDataRequests,"rsc"),K=!1,k=[];for(let L of J)if(typeof L.route.shouldRevalidate==="function")K=!0;else k.push(L.route.id);if(K&&k.length>0)b.searchParams.set("_routes",k.join(","));return[b.pathname+b.search]},[g,B.v8_trailingSlashAwareDataRequests,$,G,J]);return k1.createElement(k1.Fragment,null,Q.map((b)=>k1.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...Y})))}function gy({page:$,matches:J,...Y}){let G=lw(),{future:B,manifest:g,routeModules:Q}=KQ(),{basename:b}=WQ(),{loaderData:K,matches:k}=Gy(),L=k1.useMemo(()=>rT($,J,k,g,G,"data"),[$,J,k,g,G]),U=k1.useMemo(()=>rT($,J,k,g,G,"assets"),[$,J,k,g,G]),F=k1.useMemo(()=>{if($===G.pathname+G.search+G.hash)return[];let I=new Set,A=!1;if(J.forEach((S)=>{let D=g.routes[S.route.id];if(!D||!D.hasLoader)return;if(!L.some((i)=>i.route.id===S.route.id)&&S.route.id in K&&Q[S.route.id]?.shouldRevalidate)A=!0;else if(D.hasClientLoader)A=!0;else I.add(S.route.id)}),I.size===0)return[];let x=kI($,b,B.v8_trailingSlashAwareDataRequests,"data");if(A&&I.size>0)x.searchParams.set("_routes",J.filter((S)=>I.has(S.route.id)).map((S)=>S.route.id).join(","));return[x.pathname+x.search]},[b,B.v8_trailingSlashAwareDataRequests,K,G,g,L,J,$,Q]),N=k1.useMemo(()=>wy(U,g),[U,g]),C=By(U);return k1.createElement(k1.Fragment,null,F.map((I)=>k1.createElement("link",{key:I,rel:"prefetch",as:"fetch",href:I,...Y})),N.map((I)=>k1.createElement("link",{key:I,rel:"modulepreload",href:I,...Y})),C.map(({key:I,link:A})=>k1.createElement("link",{key:I,nonce:Y.nonce,...A,crossOrigin:A.crossOrigin??Y.crossOrigin})))}function by(...$){return(J)=>{$.forEach((Y)=>{if(typeof Y==="function")Y(J);else if(Y!=null)Y.current=J})}}var Qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{if(Qy)window.__reactRouterVersion="7.16.0"}catch($){}function UQ({basename:$,children:J,useTransitions:Y,window:G}){let B=f0.useRef();if(B.current==null)B.current=nT({window:G,v5Compat:!0});let g=B.current,[Q,b]=f0.useState({action:g.action,location:g.location}),K=f0.useCallback((k)=>{if(Y===!1)b(k);else f0.startTransition(()=>b(k))},[Y]);return f0.useLayoutEffect(()=>g.listen(K),[g,K]),f0.createElement(HQ,{basename:$,children:J,location:Q.location,navigationType:Q.action,navigator:g,useTransitions:Y})}function TI({basename:$,children:J,history:Y,useTransitions:G}){let[B,g]=f0.useState({action:Y.action,location:Y.location}),Q=f0.useCallback((b)=>{if(G===!1)g(b);else f0.startTransition(()=>g(b))},[G]);return f0.useLayoutEffect(()=>Y.listen(Q),[Y,Q]),f0.createElement(HQ,{basename:$,children:J,location:B.location,navigationType:B.action,navigator:Y,useTransitions:G})}TI.displayName="unstable_HistoryRouter";var II=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,x6=f0.forwardRef(function({onClick:J,discover:Y="render",prefetch:G="none",relative:B,reloadDocument:g,replace:Q,mask:b,state:K,target:k,to:L,preventScrollReset:U,viewTransition:F,defaultShouldRevalidate:N,...C},I){let{basename:A,navigator:x,useTransitions:S}=f0.useContext(n2),D=typeof L==="string"&&II.test(L),i=JI(L,A);L=i.to;let $0=BI(L,{relative:B}),p=lw(),j=null;if(b){let e=ZQ(b,[],p.mask?p.mask.pathname:"/",!0);if(A!=="/")e.pathname=e.pathname==="/"?A:D4([A,e.pathname]);j=x.createHref(e)}let[Z0,s,E]=vy(G,C),g0=AI(L,{replace:Q,mask:b,state:K,target:k,preventScrollReset:U,relative:B,viewTransition:F,defaultShouldRevalidate:N,useTransitions:S});function G0(e){if(J)J(e);if(!e.defaultPrevented)g0(e)}let q0=!(i.isExternal||g),k0=f0.createElement("a",{...C,...E,href:(q0?j:void 0)||i.absoluteURL||$0,onClick:q0?G0:J,ref:by(I,s),target:k,"data-discover":!D&&Y==="render"?"true":void 0});return Z0&&!D?f0.createElement(f0.Fragment,null,k0,f0.createElement(NI,{page:$0})):k0});x6.displayName="Link";var TG=f0.forwardRef(function({"aria-current":J="page",caseSensitive:Y=!1,className:G="",end:B=!1,style:g,to:Q,viewTransition:b,children:K,...k},L){let U=qZ(Q,{relative:k.relative}),F=lw(),N=f0.useContext(WZ),{navigator:C,basename:I}=f0.useContext(n2),A=N!=null&&PI(U)&&b===!0,x=C.encodeLocation?C.encodeLocation(U).pathname:U.pathname,S=F.pathname,D=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;if(!Y)S=S.toLowerCase(),D=D?D.toLowerCase():null,x=x.toLowerCase();if(D&&I)D=M6(D,I)||D;let i=x!=="/"&&x.endsWith("/")?x.length-1:x.length,$0=S===x||!B&&S.startsWith(x)&&S.charAt(i)==="/",p=D!=null&&(D===x||!B&&D.startsWith(x)&&D.charAt(x.length)==="/"),j={isActive:$0,isPending:p,isTransitioning:A},Z0=$0?J:void 0,s;if(typeof G==="function")s=G(j);else s=[G,$0?"active":null,p?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let E=typeof g==="function"?g(j):g;return f0.createElement(x6,{...k,"aria-current":Z0,className:s,ref:L,style:E,to:Q,viewTransition:b},typeof K==="function"?K(j):K)});TG.displayName="NavLink";var _I=f0.forwardRef(({discover:$="render",fetcherKey:J,navigate:Y,reloadDocument:G,replace:B,state:g,method:Q=UG,action:b,onSubmit:K,relative:k,preventScrollReset:L,viewTransition:U,defaultShouldRevalidate:F,...N},C)=>{let{useTransitions:I}=f0.useContext(n2),A=MI(),x=xI(b,{relative:k}),S=Q.toLowerCase()==="get"?"get":"post",D=typeof b==="string"&&II.test(b);return f0.createElement("form",{ref:C,method:S,action:x,onSubmit:G?K:($0)=>{if(K&&K($0),$0.defaultPrevented)return;$0.preventDefault();let p=$0.nativeEvent.submitter,j=p?.getAttribute("formmethod")||Q,Z0=()=>A(p||$0.currentTarget,{fetcherKey:J,method:j,navigate:Y,replace:B,state:g,relative:k,preventScrollReset:L,viewTransition:U,defaultShouldRevalidate:F});if(I&&Y!==!1)f0.startTransition(()=>Z0());else Z0()},...N,"data-discover":!D&&$==="render"?"true":void 0})});_I.displayName="Form";function OI({getKey:$,storageKey:J,...Y}){let G=f0.useContext(RX),{basename:B}=f0.useContext(n2),g=lw(),Q=vQ();mI({getKey:$,storageKey:J});let b=f0.useMemo(()=>{if(!G||!$)return null;let k=eb(g,Q,B,$);return k!==g.key?k:null},[]);if(!G||G.isSpaMode)return null;let K=((k,L)=>{if(!window.history.state||!window.history.state.key){let U=Math.random().toString(32).slice(2);window.history.replaceState({key:U},"")}try{let F=JSON.parse(sessionStorage.getItem(k)||"{}")[L||window.history.state.key];if(typeof F==="number")window.scrollTo(0,F)}catch(U){console.error(U),sessionStorage.removeItem(k)}}).toString();return f0.createElement("script",{...Y,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${K})(${pT(JSON.stringify(J||tb))}, ${pT(JSON.stringify(b))})`}})}OI.displayName="ScrollRestoration";function CI($){return`${$} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qQ($){let J=f0.useContext(m7);return G5(J,CI($)),J}function Wy($){let J=f0.useContext(WZ);return G5(J,CI($)),J}function AI($,{target:J,replace:Y,mask:G,state:B,preventScrollReset:g,relative:Q,viewTransition:b,defaultShouldRevalidate:K,useTransitions:k}={}){let L=j4(),U=lw(),F=qZ($,{relative:Q});return f0.useCallback((N)=>{if(uR(N,J)){N.preventDefault();let C=Y!==void 0?Y:QZ(U)===QZ(F),I=()=>L($,{replace:C,mask:G,state:B,preventScrollReset:g,relative:Q,viewTransition:b,defaultShouldRevalidate:K});if(k)f0.startTransition(()=>I());else I()}},[U,L,F,Y,G,B,J,$,g,Q,b,K,k])}function P7($){uw(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let J=f0.useRef(FG($)),Y=f0.useRef(!1),G=lw(),B=f0.useMemo(()=>lR(G.search,Y.current?null:J.current),[G.search]),g=j4(),Q=f0.useCallback((b,K)=>{let k=FG(typeof b==="function"?b(new URLSearchParams(B)):b);Y.current=!0,g("?"+k,K)},[g,B]);return[B,Q]}var Ky=0,Uy=()=>`__${String(++Ky)}__`;function MI(){let{router:$}=qQ("useSubmit"),{basename:J}=f0.useContext(n2),Y=VR(),G=$.fetch,B=$.navigate;return f0.useCallback(async(g,Q={})=>{let{action:b,method:K,encType:k,formData:L,body:U}=iR(g,J);if(Q.navigate===!1){let F=Q.fetcherKey||Uy();await G(F,Y,Q.action||b,{defaultShouldRevalidate:Q.defaultShouldRevalidate,preventScrollReset:Q.preventScrollReset,formData:L,body:U,formMethod:Q.method||K,formEncType:Q.encType||k,flushSync:Q.flushSync})}else await B(Q.action||b,{defaultShouldRevalidate:Q.defaultShouldRevalidate,preventScrollReset:Q.preventScrollReset,formData:L,body:U,formMethod:Q.method||K,formEncType:Q.encType||k,replace:Q.replace,state:Q.state,fromRouteId:Y,flushSync:Q.flushSync,viewTransition:Q.viewTransition})},[G,B,J,Y])}function xI($,{relative:J}={}){let{basename:Y}=f0.useContext(n2),G=f0.useContext(g4);G5(G,"useFormAction must be used inside a RouteContext");let[B]=G.matches.slice(-1),g={...qZ($?$:".",{relative:J})},Q=lw();if($==null){g.search=Q.search;let b=new URLSearchParams(g.search),K=b.getAll("index");if(K.some((L)=>L==="")){b.delete("index"),K.filter((U)=>U).forEach((U)=>b.append("index",U));let L=b.toString();g.search=L?`?${L}`:""}}if((!$||$===".")&&B.route.index)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";if(Y!=="/")g.pathname=g.pathname==="/"?Y:D4([Y,g.pathname]);return QZ(g)}var tb="react-router-scroll-positions",KG={};function eb($,J,Y,G){let B=null;if(G)if(Y!=="/")B=G({...$,pathname:M6($.pathname,Y)||$.pathname},J);else B=G($,J);if(B==null)B=$.key;return B}function mI({getKey:$,storageKey:J}={}){let{router:Y}=qQ("useScrollRestoration"),{restoreScrollPosition:G,preventScrollReset:B}=Wy("useScrollRestoration"),{basename:g}=f0.useContext(n2),Q=lw(),b=vQ(),K=UI();if(f0.useEffect(()=>{return window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}},[]),qy(f0.useCallback(()=>{if(K.state==="idle"){let k=eb(Q,b,g,$);KG[k]=window.scrollY}try{sessionStorage.setItem(J||tb,JSON.stringify(KG))}catch(k){uw(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${k}).`)}window.history.scrollRestoration="auto"},[K.state,$,g,Q,b,J])),typeof document<"u")f0.useLayoutEffect(()=>{try{let k=sessionStorage.getItem(J||tb);if(k)KG=JSON.parse(k)}catch(k){}},[J]),f0.useLayoutEffect(()=>{let k=Y?.enableScrollRestoration(KG,()=>window.scrollY,$?(L,U)=>eb(L,U,g,$):void 0);return()=>k&&k()},[Y,g,$]),f0.useLayoutEffect(()=>{if(G===!1)return;if(typeof G==="number"){window.scrollTo(0,G);return}try{if(Q.hash){let k=document.getElementById(decodeURIComponent(Q.hash.slice(1)));if(k){k.scrollIntoView();return}}}catch{uw(!1,`"${Q.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}if(B===!0)return;window.scrollTo(0,0)},[Q,G,B])}function qy($,J){let{capture:Y}=J||{};f0.useEffect(()=>{let G=Y!=null?{capture:Y}:void 0;return window.addEventListener("pagehide",$,G),()=>{window.removeEventListener("pagehide",$,G)}},[$,Y])}function PI($,{relative:J}={}){let Y=f0.useContext($Q);G5(Y!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:G}=qQ("useViewTransitionState"),B=qZ($,{relative:J});if(!Y.isTransitioning)return!1;let g=M6(Y.currentLocation.pathname,G)||Y.currentLocation.pathname,Q=M6(Y.nextLocation.pathname,G)||Y.nextLocation.pathname;return VX(B.pathname,Q)!=null||VX(B.pathname,g)!=null}var u4=P(Q0(),1);var hI=1,Ly=0.9,ky=0.8,Fy=0.17,LQ=0.1,kQ=0.999,Ny=0.9999,Ty=0.99,Iy=/[\\\/_+.#"@\[\(\{&]/,_y=/[\\\/_+.#"@\[\(\{&]/g,Oy=/[\s-]/,RI=/[\s-]/g;function FQ($,J,Y,G,B,g,Q){if(g===J.length)return B===$.length?hI:Ty;var b=`${B},${g}`;if(Q[b]!==void 0)return Q[b];for(var K=G.charAt(g),k=Y.indexOf(K,B),L=0,U,F,N,C;k>=0;)U=FQ($,J,Y,G,k+1,g+1,Q),U>L&&(k===B?U*=hI:Iy.test($.charAt(k-1))?(U*=ky,N=$.slice(B,k-1).match(_y),N&&B>0&&(U*=Math.pow(kQ,N.length))):Oy.test($.charAt(k-1))?(U*=Ly,C=$.slice(B,k-1).match(RI),C&&B>0&&(U*=Math.pow(kQ,C.length))):(U*=Fy,B>0&&(U*=Math.pow(kQ,k-B))),$.charAt(k)!==J.charAt(g)&&(U*=Ny)),(U<LQ&&Y.charAt(k-1)===G.charAt(g+1)||G.charAt(g+1)===G.charAt(g)&&Y.charAt(k-1)!==G.charAt(g))&&(F=FQ($,J,Y,G,k+1,g+2,Q),F*LQ>U&&(U=F*LQ)),U>L&&(L=U),k=Y.indexOf(K,k+1);return Q[b]=L,L}function VI($){return $.toLowerCase().replace(RI," ")}function yI($,J,Y){return $=Y&&Y.length>0?`${$+" "+Y.join(" ")}`:$,FQ($,J,VI($),VI(J),0,0,{})}var t1=P(Q0(),1);var En=!!(typeof window<"u"&&window.document&&window.document.createElement);function d0($,J,{checkForDefaultPrevented:Y=!0}={}){return function(B){if($?.(B),Y===!1||!B.defaultPrevented)return J?.(B)}}var dI=P(Q0(),1);function SI($,J){if(typeof $==="function")return $(J);else if($!==null&&$!==void 0)$.current=J}function h5(...$){return(J)=>{let Y=!1,G=$.map((B)=>{let g=SI(B,J);if(!Y&&typeof g=="function")Y=!0;return g});if(Y)return()=>{for(let B=0;B<G.length;B++){let g=G[B];if(typeof g=="function")g();else SI($[B],null)}}}}function A1(...$){return dI.useCallback(h5(...$),$)}var b4=P(Q0(),1),NQ=P(z5(),1);function DI($,J){let Y=b4.createContext(J),G=(g)=>{let{children:Q,...b}=g,K=b4.useMemo(()=>b,Object.values(b));return NQ.jsx(Y.Provider,{value:K,children:Q})};G.displayName=$+"Provider";function B(g){let Q=b4.useContext(Y);if(Q)return Q;if(J!==void 0)return J;throw Error(`\`${g}\` must be used within \`${$}\``)}return[G,B]}function f2($,J=[]){let Y=[];function G(g,Q){let b=b4.createContext(Q),K=Y.length;Y=[...Y,Q];let k=(U)=>{let{scope:F,children:N,...C}=U,I=F?.[$]?.[K]||b,A=b4.useMemo(()=>C,Object.values(C));return NQ.jsx(I.Provider,{value:A,children:N})};k.displayName=g+"Provider";function L(U,F){let N=F?.[$]?.[K]||b,C=b4.useContext(N);if(C)return C;if(Q!==void 0)return Q;throw Error(`\`${U}\` must be used within \`${g}\``)}return[k,L]}let B=()=>{let g=Y.map((Q)=>{return b4.createContext(Q)});return function(b){let K=b?.[$]||g;return b4.useMemo(()=>({[`__scope${$}`]:{...b,[$]:K}}),[b,K])}};return B.scopeName=$,[G,Cy(B,...J)]}function Cy(...$){let J=$[0];if($.length===1)return J;let Y=()=>{let G=$.map((B)=>({useScope:B(),scopeName:B.scopeName}));return function(g){let Q=G.reduce((b,{useScope:K,scopeName:k})=>{let U=K(g)[`__scope${k}`];return{...b,...U}},{});return b4.useMemo(()=>({[`__scope${J.scopeName}`]:Q}),[Q])}};return Y.scopeName=J.scopeName,Y}var TQ=P(Q0(),1);var jI=P(Q0(),1),h2=globalThis?.document?jI.useLayoutEffect:()=>{};var Ay=TQ[" useId ".trim().toString()]||(()=>{return}),My=0;function V5($){let[J,Y]=TQ.useState(Ay());return h2(()=>{if(!$)Y((G)=>G??String(My++))},[$]),$||(J?`radix-${J}`:"")}var Q4=P(Q0(),1);var IG=P(Q0(),1);var xy=Q4[" useInsertionEffect ".trim().toString()]||h2;function Q9({prop:$,defaultProp:J,onChange:Y=()=>{},caller:G}){let[B,g,Q]=my({defaultProp:J,onChange:Y}),b=$!==void 0,K=b?$:B;{let L=Q4.useRef($!==void 0);Q4.useEffect(()=>{let U=L.current;if(U!==b)console.warn(`${G} is changing from ${U?"controlled":"uncontrolled"} to ${b?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);L.current=b},[b,G])}let k=Q4.useCallback((L)=>{if(b){let U=Py(L)?L($):L;if(U!==$)Q.current?.(U)}else g(L)},[b,$,g,Q]);return[K,k]}function my({defaultProp:$,onChange:J}){let[Y,G]=Q4.useState($),B=Q4.useRef(Y),g=Q4.useRef(J);return xy(()=>{g.current=J},[J]),Q4.useEffect(()=>{if(B.current!==Y)g.current?.(Y),B.current=Y},[Y,B]),[Y,G,g]}function Py($){return typeof $==="function"}var on=Symbol("RADIX:SYNC_STATE");var T5=P(Q0(),1);var uI=P(Q0(),1),lI=P(b9(),1);var o5=P(Q0(),1);var _G=P(z5(),1);function EI($){let J=fy($),Y=o5.forwardRef((G,B)=>{let{children:g,...Q}=G,b=o5.Children.toArray(g),K=b.find(Vy);if(K){let k=K.props.children,L=b.map((U)=>{if(U===K){if(o5.Children.count(k)>1)return o5.Children.only(null);return o5.isValidElement(k)?k.props.children:null}else return U});return _G.jsx(J,{...Q,ref:B,children:o5.isValidElement(k)?o5.cloneElement(k,void 0,L):null})}return _G.jsx(J,{...Q,ref:B,children:g})});return Y.displayName=`${$}.Slot`,Y}function fy($){let J=o5.forwardRef((Y,G)=>{let{children:B,...g}=Y;if(o5.isValidElement(B)){let Q=yy(B),b=Ry(g,B.props);if(B.type!==o5.Fragment)b.ref=G?h5(G,Q):Q;return o5.cloneElement(B,b)}return o5.Children.count(B)>1?o5.Children.only(null):null});return J.displayName=`${$}.SlotClone`,J}var hy=Symbol("radix.slottable");function Vy($){return o5.isValidElement($)&&typeof $.type==="function"&&"__radixId"in $.type&&$.type.__radixId===hy}function Ry($,J){let Y={...J};for(let G in J){let B=$[G],g=J[G];if(/^on[A-Z]/.test(G)){if(B&&g)Y[G]=(...b)=>{let K=g(...b);return B(...b),K};else if(B)Y[G]=B}else if(G==="style")Y[G]={...B,...g};else if(G==="className")Y[G]=[B,g].filter(Boolean).join(" ")}return{...$,...Y}}function yy($){let J=Object.getOwnPropertyDescriptor($.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return $.ref;if(J=Object.getOwnPropertyDescriptor($,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return $.props.ref;return $.props.ref||$.ref}var cI=P(z5(),1),Sy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],g1=Sy.reduce(($,J)=>{let Y=EI(`Primitive.${J}`),G=uI.forwardRef((B,g)=>{let{asChild:Q,...b}=B,K=Q?Y:J;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return cI.jsx(K,{...b,ref:g})});return G.displayName=`Primitive.${J}`,{...$,[J]:G}},{});function OG($,J){if($)lI.flushSync(()=>$.dispatchEvent(J))}var LZ=P(Q0(),1);function W5($){let J=LZ.useRef($);return LZ.useEffect(()=>{J.current=$}),LZ.useMemo(()=>(...Y)=>J.current?.(...Y),[])}var aI=P(Q0(),1);function iI($,J=globalThis?.document){let Y=W5($);aI.useEffect(()=>{let G=(B)=>{if(B.key==="Escape")Y(B)};return J.addEventListener("keydown",G,{capture:!0}),()=>J.removeEventListener("keydown",G,{capture:!0})},[Y,J])}var _Q=P(z5(),1),dy="DismissableLayer",IQ="dismissableLayer.update",Dy="dismissableLayer.pointerDownOutside",jy="dismissableLayer.focusOutside",pI,nI=T5.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yX=T5.forwardRef(($,J)=>{let{disableOutsidePointerEvents:Y=!1,onEscapeKeyDown:G,onPointerDownOutside:B,onFocusOutside:g,onInteractOutside:Q,onDismiss:b,...K}=$,k=T5.useContext(nI),[L,U]=T5.useState(null),F=L?.ownerDocument??globalThis?.document,[,N]=T5.useState({}),C=A1(J,(j)=>U(j)),I=Array.from(k.layers),[A]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),x=I.indexOf(A),S=L?I.indexOf(L):-1,D=k.layersWithOutsidePointerEventsDisabled.size>0,i=S>=x,$0=ly((j)=>{let Z0=j.target,s=[...k.branches].some((E)=>E.contains(Z0));if(!i||s)return;if(B?.(j),Q?.(j),!j.defaultPrevented)b?.()},F),p=cy((j)=>{let Z0=j.target;if([...k.branches].some((E)=>E.contains(Z0)))return;if(g?.(j),Q?.(j),!j.defaultPrevented)b?.()},F);return iI((j)=>{if(S!==k.layers.size-1)return;if(G?.(j),!j.defaultPrevented&&b)j.preventDefault(),b()},F),T5.useEffect(()=>{if(!L)return;if(Y){if(k.layersWithOutsidePointerEventsDisabled.size===0)pI=F.body.style.pointerEvents,F.body.style.pointerEvents="none";k.layersWithOutsidePointerEventsDisabled.add(L)}return k.layers.add(L),rI(),()=>{if(Y&&k.layersWithOutsidePointerEventsDisabled.size===1)F.body.style.pointerEvents=pI}},[L,F,Y,k]),T5.useEffect(()=>{return()=>{if(!L)return;k.layers.delete(L),k.layersWithOutsidePointerEventsDisabled.delete(L),rI()}},[L,k]),T5.useEffect(()=>{let j=()=>N({});return document.addEventListener(IQ,j),()=>document.removeEventListener(IQ,j)},[]),_Q.jsx(g1.div,{...K,ref:C,style:{pointerEvents:D?i?"auto":"none":void 0,...$.style},onFocusCapture:d0($.onFocusCapture,p.onFocusCapture),onBlurCapture:d0($.onBlurCapture,p.onBlurCapture),onPointerDownCapture:d0($.onPointerDownCapture,$0.onPointerDownCapture)})});yX.displayName=dy;var Ey="DismissableLayerBranch",uy=T5.forwardRef(($,J)=>{let Y=T5.useContext(nI),G=T5.useRef(null),B=A1(J,G);return T5.useEffect(()=>{let g=G.current;if(g)return Y.branches.add(g),()=>{Y.branches.delete(g)}},[Y.branches]),_Q.jsx(g1.div,{...$,ref:B})});uy.displayName=Ey;function ly($,J=globalThis?.document){let Y=W5($),G=T5.useRef(!1),B=T5.useRef(()=>{});return T5.useEffect(()=>{let g=(b)=>{if(b.target&&!G.current){let k=function(){oI(Dy,Y,L,{discrete:!0})};var K=k;let L={originalEvent:b};if(b.pointerType==="touch")J.removeEventListener("click",B.current),B.current=k,J.addEventListener("click",B.current,{once:!0});else k()}else J.removeEventListener("click",B.current);G.current=!1},Q=window.setTimeout(()=>{J.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(Q),J.removeEventListener("pointerdown",g),J.removeEventListener("click",B.current)}},[J,Y]),{onPointerDownCapture:()=>G.current=!0}}function cy($,J=globalThis?.document){let Y=W5($),G=T5.useRef(!1);return T5.useEffect(()=>{let B=(g)=>{if(g.target&&!G.current)oI(jy,Y,{originalEvent:g},{discrete:!1})};return J.addEventListener("focusin",B),()=>J.removeEventListener("focusin",B)},[J,Y]),{onFocusCapture:()=>G.current=!0,onBlurCapture:()=>G.current=!1}}function rI(){let $=new CustomEvent(IQ);document.dispatchEvent($)}function oI($,J,Y,{discrete:G}){let B=Y.originalEvent.target,g=new CustomEvent($,{bubbles:!1,cancelable:!0,detail:Y});if(J)B.addEventListener($,J,{once:!0});if(G)OG(B,g);else B.dispatchEvent(g)}var W4=P(Q0(),1);var Z_=P(z5(),1),OQ="focusScope.autoFocusOnMount",CQ="focusScope.autoFocusOnUnmount",sI={bubbles:!1,cancelable:!0},ay="FocusScope",SX=W4.forwardRef(($,J)=>{let{loop:Y=!1,trapped:G=!1,onMountAutoFocus:B,onUnmountAutoFocus:g,...Q}=$,[b,K]=W4.useState(null),k=W5(B),L=W5(g),U=W4.useRef(null),F=A1(J,(I)=>K(I)),N=W4.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;W4.useEffect(()=>{if(G){let S=function(p){if(N.paused||!b)return;let j=p.target;if(b.contains(j))U.current=j;else W9(U.current,{select:!0})},D=function(p){if(N.paused||!b)return;let j=p.relatedTarget;if(j===null)return;if(!b.contains(j))W9(U.current,{select:!0})},i=function(p){if(document.activeElement!==document.body)return;for(let Z0 of p)if(Z0.removedNodes.length>0)W9(b)};var I=S,A=D,x=i;document.addEventListener("focusin",S),document.addEventListener("focusout",D);let $0=new MutationObserver(i);if(b)$0.observe(b,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",D),$0.disconnect()}}},[G,b,N.paused]),W4.useEffect(()=>{if(b){eI.add(N);let I=document.activeElement;if(!b.contains(I)){let x=new CustomEvent(OQ,sI);if(b.addEventListener(OQ,k),b.dispatchEvent(x),!x.defaultPrevented){if(iy(sy($_(b)),{select:!0}),document.activeElement===I)W9(b)}}return()=>{b.removeEventListener(OQ,k),setTimeout(()=>{let x=new CustomEvent(CQ,sI);if(b.addEventListener(CQ,L),b.dispatchEvent(x),!x.defaultPrevented)W9(I??document.body,{select:!0});b.removeEventListener(CQ,L),eI.remove(N)},0)}}},[b,k,L,N]);let C=W4.useCallback((I)=>{if(!Y&&!G)return;if(N.paused)return;let A=I.key==="Tab"&&!I.altKey&&!I.ctrlKey&&!I.metaKey,x=document.activeElement;if(A&&x){let S=I.currentTarget,[D,i]=py(S);if(!(D&&i)){if(x===S)I.preventDefault()}else if(!I.shiftKey&&x===i){if(I.preventDefault(),Y)W9(D,{select:!0})}else if(I.shiftKey&&x===D){if(I.preventDefault(),Y)W9(i,{select:!0})}}},[Y,G,N.paused]);return Z_.jsx(g1.div,{tabIndex:-1,...Q,ref:F,onKeyDown:C})});SX.displayName=ay;function iy($,{select:J=!1}={}){let Y=document.activeElement;for(let G of $)if(W9(G,{select:J}),document.activeElement!==Y)return}function py($){let J=$_($),Y=tI(J,$),G=tI(J.reverse(),$);return[Y,G]}function $_($){let J=[],Y=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:(G)=>{let B=G.tagName==="INPUT"&&G.type==="hidden";if(G.disabled||G.hidden||B)return NodeFilter.FILTER_SKIP;return G.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(Y.nextNode())J.push(Y.currentNode);return J}function tI($,J){for(let Y of $)if(!ry(Y,{upTo:J}))return Y}function ry($,{upTo:J}){if(getComputedStyle($).visibility==="hidden")return!0;while($){if(J!==void 0&&$===J)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1}function ny($){return $ instanceof HTMLInputElement&&"select"in $}function W9($,{select:J=!1}={}){if($&&$.focus){let Y=document.activeElement;if($.focus({preventScroll:!0}),$!==Y&&ny($)&&J)$.select()}}var eI=oy();function oy(){let $=[];return{add(J){let Y=$[0];if(J!==Y)Y?.pause();$=w_($,J),$.unshift(J)},remove(J){$=w_($,J),$[0]?.resume()}}}function w_($,J){let Y=[...$],G=Y.indexOf(J);if(G!==-1)Y.splice(G,1);return Y}function sy($){return $.filter((J)=>J.tagName!=="A")}var CG=P(Q0(),1),X_=P(b9(),1);var J_=P(z5(),1),ty="Portal",dX=CG.forwardRef(($,J)=>{let{container:Y,...G}=$,[B,g]=CG.useState(!1);h2(()=>g(!0),[]);let Q=Y||B&&globalThis?.document?.body;return Q?X_.default.createPortal(J_.jsx(g1.div,{...G,ref:J}),Q):null});dX.displayName=ty;var Hw=P(Q0(),1);var Y_=P(Q0(),1);function ey($,J){return Y_.useReducer((Y,G)=>{return J[Y][G]??Y},$)}var I2=($)=>{let{present:J,children:Y}=$,G=wS(J),B=typeof Y==="function"?Y({present:G.isPresent}):Hw.Children.only(Y),g=A1(G.ref,ZS(B));return typeof Y==="function"||G.isPresent?Hw.cloneElement(B,{ref:g}):null};I2.displayName="Presence";function wS($){let[J,Y]=Hw.useState(),G=Hw.useRef(null),B=Hw.useRef($),g=Hw.useRef("none"),Q=$?"mounted":"unmounted",[b,K]=ey(Q,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Hw.useEffect(()=>{let k=AG(G.current);g.current=b==="mounted"?k:"none"},[b]),h2(()=>{let k=G.current,L=B.current;if(L!==$){let F=g.current,N=AG(k);if($)K("MOUNT");else if(N==="none"||k?.display==="none")K("UNMOUNT");else if(L&&F!==N)K("ANIMATION_OUT");else K("UNMOUNT");B.current=$}},[$,K]),h2(()=>{if(J){let k,L=J.ownerDocument.defaultView??window,U=(N)=>{let I=AG(G.current).includes(CSS.escape(N.animationName));if(N.target===J&&I){if(K("ANIMATION_END"),!B.current){let A=J.style.animationFillMode;J.style.animationFillMode="forwards",k=L.setTimeout(()=>{if(J.style.animationFillMode==="forwards")J.style.animationFillMode=A})}}},F=(N)=>{if(N.target===J)g.current=AG(G.current)};return J.addEventListener("animationstart",F),J.addEventListener("animationcancel",U),J.addEventListener("animationend",U),()=>{L.clearTimeout(k),J.removeEventListener("animationstart",F),J.removeEventListener("animationcancel",U),J.removeEventListener("animationend",U)}}else K("ANIMATION_END")},[J,K]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:Hw.useCallback((k)=>{G.current=k?getComputedStyle(k):null,Y(k)},[])}}function AG($){return $?.animationName||"none"}function ZS($){let J=Object.getOwnPropertyDescriptor($.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return $.ref;if(J=Object.getOwnPropertyDescriptor($,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return $.props.ref;return $.props.ref||$.ref}var G_=P(Q0(),1),AQ=0;function MG(){G_.useEffect(()=>{let $=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",$[0]??z_()),document.body.insertAdjacentElement("beforeend",$[1]??z_()),AQ++,()=>{if(AQ===1)document.querySelectorAll("[data-radix-focus-guard]").forEach((J)=>J.remove());AQ--}},[])}function z_(){let $=document.createElement("span");return $.setAttribute("data-radix-focus-guard",""),$.tabIndex=0,$.style.outline="none",$.style.opacity="0",$.style.position="fixed",$.style.pointerEvents="none",$}var gw=function(){return gw=Object.assign||function(J){for(var Y,G=1,B=arguments.length;G<B;G++){Y=arguments[G];for(var g in Y)if(Object.prototype.hasOwnProperty.call(Y,g))J[g]=Y[g]}return J},gw.apply(this,arguments)};function xG($,J){var Y={};for(var G in $)if(Object.prototype.hasOwnProperty.call($,G)&&J.indexOf(G)<0)Y[G]=$[G];if($!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var B=0,G=Object.getOwnPropertySymbols($);B<G.length;B++)if(J.indexOf(G[B])<0&&Object.prototype.propertyIsEnumerable.call($,G[B]))Y[G[B]]=$[G[B]]}return Y}function v_($,J,Y){if(Y||arguments.length===2){for(var G=0,B=J.length,g;G<B;G++)if(g||!(G in J)){if(!g)g=Array.prototype.slice.call(J,0,G);g[G]=J[G]}}return $.concat(g||Array.prototype.slice.call(J))}var VG=P(Q0(),1);var V2=P(Q0(),1);var f7="right-scroll-bar-position",h7="width-before-scroll-bar",MQ="with-scroll-bars-hidden",xQ="--removed-body-scroll-bar-size";var PG=P(Q0(),1);function mG($,J){if(typeof $==="function")$(J);else if($)$.current=J;return $}var B_=P(Q0(),1);function H_($,J){var Y=B_.useState(function(){return{value:$,callback:J,facade:{get current(){return Y.value},set current(G){var B=Y.value;if(B!==G)Y.value=G,Y.callback(G,B)}}}})[0];return Y.callback=J,Y.facade}var $S=typeof window<"u"?PG.useLayoutEffect:PG.useEffect,g_=new WeakMap;function mQ($,J){var Y=H_(J||null,function(G){return $.forEach(function(B){return mG(B,G)})});return $S(function(){var G=g_.get(Y);if(G){var B=new Set(G),g=new Set($),Q=Y.current;B.forEach(function(b){if(!g.has(b))mG(b,null)}),g.forEach(function(b){if(!B.has(b))mG(b,Q)})}g_.set(Y,$)},[$]),Y}function XS($){return $}function JS($,J){if(J===void 0)J=XS;var Y=[],G=!1,B={read:function(){if(G)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(Y.length)return Y[Y.length-1];return $},useMedium:function(g){var Q=J(g,G);return Y.push(Q),function(){Y=Y.filter(function(b){return b!==Q})}},assignSyncMedium:function(g){G=!0;while(Y.length){var Q=Y;Y=[],Q.forEach(g)}Y={push:function(b){return g(b)},filter:function(){return Y}}},assignMedium:function(g){G=!0;var Q=[];if(Y.length){var b=Y;Y=[],b.forEach(g),Q=Y}var K=function(){var L=Q;Q=[],L.forEach(g)},k=function(){return Promise.resolve().then(K)};k(),Y={push:function(L){Q.push(L),k()},filter:function(L){return Q=Q.filter(L),Y}}}};return B}function PQ($){if($===void 0)$={};var J=JS(null);return J.options=gw({async:!0,ssr:!1},$),J}var b_=P(Q0(),1),Q_=function($){var J=$.sideCar,Y=xG($,["sideCar"]);if(!J)throw Error("Sidecar: please provide `sideCar` property to import the right car");var G=J.read();if(!G)throw Error("Sidecar medium not found");return b_.createElement(G,gw({},Y))};Q_.isSideCarExport=!0;function fQ($,J){return $.useMedium(J),Q_}var fG=PQ();var hQ=function(){return},DX=V2.forwardRef(function($,J){var Y=V2.useRef(null),G=V2.useState({onScrollCapture:hQ,onWheelCapture:hQ,onTouchMoveCapture:hQ}),B=G[0],g=G[1],Q=$.forwardProps,b=$.children,K=$.className,k=$.removeScrollBar,L=$.enabled,U=$.shards,F=$.sideCar,N=$.noRelative,C=$.noIsolation,I=$.inert,A=$.allowPinchZoom,x=$.as,S=x===void 0?"div":x,D=$.gapMode,i=xG($,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$0=F,p=mQ([Y,J]),j=gw(gw({},i),B);return V2.createElement(V2.Fragment,null,L&&V2.createElement($0,{sideCar:fG,removeScrollBar:k,shards:U,noRelative:N,noIsolation:C,inert:I,setCallbacks:g,allowPinchZoom:!!A,lockRef:Y,gapMode:D}),Q?V2.cloneElement(V2.Children.only(b),gw(gw({},j),{ref:p})):V2.createElement(S,gw({},j,{className:K,ref:p}),b))});DX.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};DX.classNames={fullWidth:h7,zeroRight:f7};var v5=P(Q0(),1);var FZ=P(Q0(),1);var U_=P(Q0(),1);var W_;var K_=function(){if(W_)return W_;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function YS(){if(!document)return null;var $=document.createElement("style");$.type="text/css";var J=K_();if(J)$.setAttribute("nonce",J);return $}function zS($,J){if($.styleSheet)$.styleSheet.cssText=J;else $.appendChild(document.createTextNode(J))}function GS($){var J=document.head||document.getElementsByTagName("head")[0];J.appendChild($)}var VQ=function(){var $=0,J=null;return{add:function(Y){if($==0){if(J=YS())zS(J,Y),GS(J)}$++},remove:function(){if($--,!$&&J)J.parentNode&&J.parentNode.removeChild(J),J=null}}};var RQ=function(){var $=VQ();return function(J,Y){U_.useEffect(function(){return $.add(J),function(){$.remove()}},[J&&Y])}};var jX=function(){var $=RQ(),J=function(Y){var{styles:G,dynamic:B}=Y;return $(G,B),null};return J};var vS={left:0,top:0,right:0,gap:0},yQ=function($){return parseInt($||"",10)||0},BS=function($){var J=window.getComputedStyle(document.body),Y=J[$==="padding"?"paddingLeft":"marginLeft"],G=J[$==="padding"?"paddingTop":"marginTop"],B=J[$==="padding"?"paddingRight":"marginRight"];return[yQ(Y),yQ(G),yQ(B)]},SQ=function($){if($===void 0)$="margin";if(typeof window>"u")return vS;var J=BS($),Y=document.documentElement.clientWidth,G=window.innerWidth;return{left:J[0],top:J[1],right:J[2],gap:Math.max(0,G-Y+J[2]-J[0])}};var HS=jX(),kZ="data-scroll-locked",gS=function($,J,Y,G){var{left:B,top:g,right:Q,gap:b}=$;if(Y===void 0)Y="margin";return`
|
|
243
|
+
.`.concat(MQ,` {
|
|
244
|
+
overflow: hidden `).concat(G,`;
|
|
245
|
+
padding-right: `).concat(b,"px ").concat(G,`;
|
|
246
|
+
}
|
|
247
|
+
body[`).concat(kZ,`] {
|
|
248
|
+
overflow: hidden `).concat(G,`;
|
|
249
|
+
overscroll-behavior: contain;
|
|
250
|
+
`).concat([J&&"position: relative ".concat(G,";"),Y==="margin"&&`
|
|
251
|
+
padding-left: `.concat(B,`px;
|
|
252
|
+
padding-top: `).concat(g,`px;
|
|
253
|
+
padding-right: `).concat(Q,`px;
|
|
254
|
+
margin-left:0;
|
|
255
|
+
margin-top:0;
|
|
256
|
+
margin-right: `).concat(b,"px ").concat(G,`;
|
|
257
|
+
`),Y==="padding"&&"padding-right: ".concat(b,"px ").concat(G,";")].filter(Boolean).join(""),`
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.`).concat(f7,` {
|
|
261
|
+
right: `).concat(b,"px ").concat(G,`;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.`).concat(h7,` {
|
|
265
|
+
margin-right: `).concat(b,"px ").concat(G,`;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.`).concat(f7," .").concat(f7,` {
|
|
269
|
+
right: 0 `).concat(G,`;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.`).concat(h7," .").concat(h7,` {
|
|
273
|
+
margin-right: 0 `).concat(G,`;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
body[`).concat(kZ,`] {
|
|
277
|
+
`).concat(xQ,": ").concat(b,`px;
|
|
278
|
+
}
|
|
279
|
+
`)},q_=function(){var $=parseInt(document.body.getAttribute(kZ)||"0",10);return isFinite($)?$:0},bS=function(){FZ.useEffect(function(){return document.body.setAttribute(kZ,(q_()+1).toString()),function(){var $=q_()-1;if($<=0)document.body.removeAttribute(kZ);else document.body.setAttribute(kZ,$.toString())}},[])},dQ=function($){var{noRelative:J,noImportant:Y,gapMode:G}=$,B=G===void 0?"margin":G;bS();var g=FZ.useMemo(function(){return SQ(B)},[B]);return FZ.createElement(HS,{styles:gS(g,!J,B,!Y?"!important":"")})};var DQ=!1;if(typeof window<"u")try{NZ=Object.defineProperty({},"passive",{get:function(){return DQ=!0,!0}}),window.addEventListener("test",NZ,NZ),window.removeEventListener("test",NZ,NZ)}catch($){DQ=!1}var NZ,V7=DQ?{passive:!1}:!1;var QS=function($){return $.tagName==="TEXTAREA"},L_=function($,J){if(!($ instanceof Element))return!1;var Y=window.getComputedStyle($);return Y[J]!=="hidden"&&!(Y.overflowY===Y.overflowX&&!QS($)&&Y[J]==="visible")},WS=function($){return L_($,"overflowY")},KS=function($){return L_($,"overflowX")},jQ=function($,J){var Y=J.ownerDocument,G=J;do{if(typeof ShadowRoot<"u"&&G instanceof ShadowRoot)G=G.host;var B=k_($,G);if(B){var g=F_($,G),Q=g[1],b=g[2];if(Q>b)return!0}G=G.parentNode}while(G&&G!==Y.body);return!1},US=function($){var{scrollTop:J,scrollHeight:Y,clientHeight:G}=$;return[J,Y,G]},qS=function($){var{scrollLeft:J,scrollWidth:Y,clientWidth:G}=$;return[J,Y,G]},k_=function($,J){return $==="v"?WS(J):KS(J)},F_=function($,J){return $==="v"?US(J):qS(J)},LS=function($,J){return $==="h"&&J==="rtl"?-1:1},N_=function($,J,Y,G,B){var g=LS($,window.getComputedStyle(J).direction),Q=g*G,b=Y.target,K=J.contains(b),k=!1,L=Q>0,U=0,F=0;do{if(!b)break;var N=F_($,b),C=N[0],I=N[1],A=N[2],x=I-A-g*C;if(C||x){if(k_($,b))U+=x,F+=C}var S=b.parentNode;b=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!K&&b!==document.body||K&&(J.contains(b)||J===b));if(L&&(B&&Math.abs(U)<1||!B&&Q>U))k=!0;else if(!L&&(B&&Math.abs(F)<1||!B&&-Q>F))k=!0;return k};var hG=function($){return"changedTouches"in $?[$.changedTouches[0].clientX,$.changedTouches[0].clientY]:[0,0]},T_=function($){return[$.deltaX,$.deltaY]},I_=function($){return $&&"current"in $?$.current:$},kS=function($,J){return $[0]===J[0]&&$[1]===J[1]},FS=function($){return`
|
|
280
|
+
.block-interactivity-`.concat($,` {pointer-events: none;}
|
|
281
|
+
.allow-interactivity-`).concat($,` {pointer-events: all;}
|
|
282
|
+
`)},NS=0,TZ=[];function __($){var J=v5.useRef([]),Y=v5.useRef([0,0]),G=v5.useRef(),B=v5.useState(NS++)[0],g=v5.useState(jX)[0],Q=v5.useRef($);v5.useEffect(function(){Q.current=$},[$]),v5.useEffect(function(){if($.inert){document.body.classList.add("block-interactivity-".concat(B));var I=v_([$.lockRef.current],($.shards||[]).map(I_),!0).filter(Boolean);return I.forEach(function(A){return A.classList.add("allow-interactivity-".concat(B))}),function(){document.body.classList.remove("block-interactivity-".concat(B)),I.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(B))})}}return},[$.inert,$.lockRef.current,$.shards]);var b=v5.useCallback(function(I,A){if("touches"in I&&I.touches.length===2||I.type==="wheel"&&I.ctrlKey)return!Q.current.allowPinchZoom;var x=hG(I),S=Y.current,D="deltaX"in I?I.deltaX:S[0]-x[0],i="deltaY"in I?I.deltaY:S[1]-x[1],$0,p=I.target,j=Math.abs(D)>Math.abs(i)?"h":"v";if("touches"in I&&j==="h"&&p.type==="range")return!1;var Z0=window.getSelection(),s=Z0&&Z0.anchorNode,E=s?s===p||s.contains(p):!1;if(E)return!1;var g0=jQ(j,p);if(!g0)return!0;if(g0)$0=j;else $0=j==="v"?"h":"v",g0=jQ(j,p);if(!g0)return!1;if(!G.current&&"changedTouches"in I&&(D||i))G.current=$0;if(!$0)return!0;var G0=G.current||$0;return N_(G0,A,I,G0==="h"?D:i,!0)},[]),K=v5.useCallback(function(I){var A=I;if(!TZ.length||TZ[TZ.length-1]!==g)return;var x="deltaY"in A?T_(A):hG(A),S=J.current.filter(function($0){return $0.name===A.type&&($0.target===A.target||A.target===$0.shadowParent)&&kS($0.delta,x)})[0];if(S&&S.should){if(A.cancelable)A.preventDefault();return}if(!S){var D=(Q.current.shards||[]).map(I_).filter(Boolean).filter(function($0){return $0.contains(A.target)}),i=D.length>0?b(A,D[0]):!Q.current.noIsolation;if(i){if(A.cancelable)A.preventDefault()}}},[]),k=v5.useCallback(function(I,A,x,S){var D={name:I,delta:A,target:x,should:S,shadowParent:TS(x)};J.current.push(D),setTimeout(function(){J.current=J.current.filter(function(i){return i!==D})},1)},[]),L=v5.useCallback(function(I){Y.current=hG(I),G.current=void 0},[]),U=v5.useCallback(function(I){k(I.type,T_(I),I.target,b(I,$.lockRef.current))},[]),F=v5.useCallback(function(I){k(I.type,hG(I),I.target,b(I,$.lockRef.current))},[]);v5.useEffect(function(){return TZ.push(g),$.setCallbacks({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:F}),document.addEventListener("wheel",K,V7),document.addEventListener("touchmove",K,V7),document.addEventListener("touchstart",L,V7),function(){TZ=TZ.filter(function(I){return I!==g}),document.removeEventListener("wheel",K,V7),document.removeEventListener("touchmove",K,V7),document.removeEventListener("touchstart",L,V7)}},[]);var{removeScrollBar:N,inert:C}=$;return v5.createElement(v5.Fragment,null,C?v5.createElement(g,{styles:FS(B)}):null,N?v5.createElement(dQ,{noRelative:$.noRelative,gapMode:$.gapMode}):null)}function TS($){var J=null;while($!==null){if($ instanceof ShadowRoot)J=$.host,$=$.host;$=$.parentNode}return J}var O_=fQ(fG,__);var C_=VG.forwardRef(function($,J){return VG.createElement(DX,gw({},$,{ref:J,sideCar:O_}))});C_.classNames=DX.classNames;var EX=C_;var IS=function($){if(typeof document>"u")return null;var J=Array.isArray($)?$[0]:$;return J.ownerDocument.body},IZ=new WeakMap,RG=new WeakMap,yG={},EQ=0,A_=function($){return $&&($.host||A_($.parentNode))},_S=function($,J){return J.map(function(Y){if($.contains(Y))return Y;var G=A_(Y);if(G&&$.contains(G))return G;return console.error("aria-hidden",Y,"in not contained inside",$,". Doing nothing"),null}).filter(function(Y){return Boolean(Y)})},OS=function($,J,Y,G){var B=_S(J,Array.isArray($)?$:[$]);if(!yG[Y])yG[Y]=new WeakMap;var g=yG[Y],Q=[],b=new Set,K=new Set(B),k=function(U){if(!U||b.has(U))return;b.add(U),k(U.parentNode)};B.forEach(k);var L=function(U){if(!U||K.has(U))return;Array.prototype.forEach.call(U.children,function(F){if(b.has(F))L(F);else try{var N=F.getAttribute(G),C=N!==null&&N!=="false",I=(IZ.get(F)||0)+1,A=(g.get(F)||0)+1;if(IZ.set(F,I),g.set(F,A),Q.push(F),I===1&&C)RG.set(F,!0);if(A===1)F.setAttribute(Y,"true");if(!C)F.setAttribute(G,"true")}catch(x){console.error("aria-hidden: cannot operate on ",F,x)}})};return L(J),b.clear(),EQ++,function(){if(Q.forEach(function(U){var F=IZ.get(U)-1,N=g.get(U)-1;if(IZ.set(U,F),g.set(U,N),!F){if(!RG.has(U))U.removeAttribute(G);RG.delete(U)}if(!N)U.removeAttribute(Y)}),EQ--,!EQ)IZ=new WeakMap,IZ=new WeakMap,RG=new WeakMap,yG={}}},SG=function($,J,Y){if(Y===void 0)Y="data-aria-hidden";var G=Array.from(Array.isArray($)?$:[$]),B=J||IS($);if(!B)return function(){return null};return G.push.apply(G,Array.from(B.querySelectorAll("[aria-live], script"))),OS(G,B,Y,"aria-hidden")};var s5=P(Q0(),1);var dG=P(z5(),1);function M_($){let J=CS($),Y=s5.forwardRef((G,B)=>{let{children:g,...Q}=G,b=s5.Children.toArray(g),K=b.find(MS);if(K){let k=K.props.children,L=b.map((U)=>{if(U===K){if(s5.Children.count(k)>1)return s5.Children.only(null);return s5.isValidElement(k)?k.props.children:null}else return U});return dG.jsx(J,{...Q,ref:B,children:s5.isValidElement(k)?s5.cloneElement(k,void 0,L):null})}return dG.jsx(J,{...Q,ref:B,children:g})});return Y.displayName=`${$}.Slot`,Y}function CS($){let J=s5.forwardRef((Y,G)=>{let{children:B,...g}=Y;if(s5.isValidElement(B)){let Q=mS(B),b=xS(g,B.props);if(B.type!==s5.Fragment)b.ref=G?h5(G,Q):Q;return s5.cloneElement(B,b)}return s5.Children.count(B)>1?s5.Children.only(null):null});return J.displayName=`${$}.SlotClone`,J}var AS=Symbol("radix.slottable");function MS($){return s5.isValidElement($)&&typeof $.type==="function"&&"__radixId"in $.type&&$.type.__radixId===AS}function xS($,J){let Y={...J};for(let G in J){let B=$[G],g=J[G];if(/^on[A-Z]/.test(G)){if(B&&g)Y[G]=(...b)=>{let K=g(...b);return B(...b),K};else if(B)Y[G]=B}else if(G==="style")Y[G]={...B,...g};else if(G==="className")Y[G]=[B,g].filter(Boolean).join(" ")}return{...$,...Y}}function mS($){let J=Object.getOwnPropertyDescriptor($.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return $.ref;if(J=Object.getOwnPropertyDescriptor($,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return $.props.ref;return $.props.ref||$.ref}var l1=P(z5(),1),jG="Dialog",[x_,qt]=f2(jG),[PS,E4]=x_(jG),m_=($)=>{let{__scopeDialog:J,children:Y,open:G,defaultOpen:B,onOpenChange:g,modal:Q=!0}=$,b=t1.useRef(null),K=t1.useRef(null),[k,L]=Q9({prop:G,defaultProp:B??!1,onChange:g,caller:jG});return l1.jsx(PS,{scope:J,triggerRef:b,contentRef:K,contentId:V5(),titleId:V5(),descriptionId:V5(),open:k,onOpenChange:L,onOpenToggle:t1.useCallback(()=>L((U)=>!U),[L]),modal:Q,children:Y})};m_.displayName=jG;var P_="DialogTrigger",f_=t1.forwardRef(($,J)=>{let{__scopeDialog:Y,...G}=$,B=E4(P_,Y),g=A1(J,B.triggerRef);return l1.jsx(g1.button,{type:"button","aria-haspopup":"dialog","aria-expanded":B.open,"aria-controls":B.contentId,"data-state":cQ(B.open),...G,ref:g,onClick:d0($.onClick,B.onOpenToggle)})});f_.displayName=P_;var uQ="DialogPortal",[fS,h_]=x_(uQ,{forceMount:void 0}),V_=($)=>{let{__scopeDialog:J,forceMount:Y,children:G,container:B}=$,g=E4(uQ,J);return l1.jsx(fS,{scope:J,forceMount:Y,children:t1.Children.map(G,(Q)=>l1.jsx(I2,{present:Y||g.open,children:l1.jsx(dX,{asChild:!0,container:B,children:Q})}))})};V_.displayName=uQ;var DG="DialogOverlay",R_=t1.forwardRef(($,J)=>{let Y=h_(DG,$.__scopeDialog),{forceMount:G=Y.forceMount,...B}=$,g=E4(DG,$.__scopeDialog);return g.modal?l1.jsx(I2,{present:G||g.open,children:l1.jsx(VS,{...B,ref:J})}):null});R_.displayName=DG;var hS=M_("DialogOverlay.RemoveScroll"),VS=t1.forwardRef(($,J)=>{let{__scopeDialog:Y,...G}=$,B=E4(DG,Y);return l1.jsx(EX,{as:hS,allowPinchZoom:!0,shards:[B.contentRef],children:l1.jsx(g1.div,{"data-state":cQ(B.open),...G,ref:J,style:{pointerEvents:"auto",...G.style}})})}),R7="DialogContent",y_=t1.forwardRef(($,J)=>{let Y=h_(R7,$.__scopeDialog),{forceMount:G=Y.forceMount,...B}=$,g=E4(R7,$.__scopeDialog);return l1.jsx(I2,{present:G||g.open,children:g.modal?l1.jsx(RS,{...B,ref:J}):l1.jsx(yS,{...B,ref:J})})});y_.displayName=R7;var RS=t1.forwardRef(($,J)=>{let Y=E4(R7,$.__scopeDialog),G=t1.useRef(null),B=A1(J,Y.contentRef,G);return t1.useEffect(()=>{let g=G.current;if(g)return SG(g)},[]),l1.jsx(S_,{...$,ref:B,trapFocus:Y.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:d0($.onCloseAutoFocus,(g)=>{g.preventDefault(),Y.triggerRef.current?.focus()}),onPointerDownOutside:d0($.onPointerDownOutside,(g)=>{let Q=g.detail.originalEvent,b=Q.button===0&&Q.ctrlKey===!0;if(Q.button===2||b)g.preventDefault()}),onFocusOutside:d0($.onFocusOutside,(g)=>g.preventDefault())})}),yS=t1.forwardRef(($,J)=>{let Y=E4(R7,$.__scopeDialog),G=t1.useRef(!1),B=t1.useRef(!1);return l1.jsx(S_,{...$,ref:J,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:(g)=>{if($.onCloseAutoFocus?.(g),!g.defaultPrevented){if(!G.current)Y.triggerRef.current?.focus();g.preventDefault()}G.current=!1,B.current=!1},onInteractOutside:(g)=>{if($.onInteractOutside?.(g),!g.defaultPrevented){if(G.current=!0,g.detail.originalEvent.type==="pointerdown")B.current=!0}let Q=g.target;if(Y.triggerRef.current?.contains(Q))g.preventDefault();if(g.detail.originalEvent.type==="focusin"&&B.current)g.preventDefault()}})}),S_=t1.forwardRef(($,J)=>{let{__scopeDialog:Y,trapFocus:G,onOpenAutoFocus:B,onCloseAutoFocus:g,...Q}=$,b=E4(R7,Y),K=t1.useRef(null),k=A1(J,K);return MG(),l1.jsxs(l1.Fragment,{children:[l1.jsx(SX,{asChild:!0,loop:!0,trapped:G,onMountAutoFocus:B,onUnmountAutoFocus:g,children:l1.jsx(yX,{role:"dialog",id:b.contentId,"aria-describedby":b.descriptionId,"aria-labelledby":b.titleId,"data-state":cQ(b.open),...Q,ref:k,onDismiss:()=>b.onOpenChange(!1)})}),l1.jsxs(l1.Fragment,{children:[l1.jsx(SS,{titleId:b.titleId}),l1.jsx(DS,{contentRef:K,descriptionId:b.descriptionId})]})]})}),lQ="DialogTitle",d_=t1.forwardRef(($,J)=>{let{__scopeDialog:Y,...G}=$,B=E4(lQ,Y);return l1.jsx(g1.h2,{id:B.titleId,...G,ref:J})});d_.displayName=lQ;var D_="DialogDescription",j_=t1.forwardRef(($,J)=>{let{__scopeDialog:Y,...G}=$,B=E4(D_,Y);return l1.jsx(g1.p,{id:B.descriptionId,...G,ref:J})});j_.displayName=D_;var E_="DialogClose",u_=t1.forwardRef(($,J)=>{let{__scopeDialog:Y,...G}=$,B=E4(E_,Y);return l1.jsx(g1.button,{type:"button",...G,ref:J,onClick:d0($.onClick,()=>B.onOpenChange(!1))})});u_.displayName=E_;function cQ($){return $?"open":"closed"}var l_="DialogTitleWarning",[Lt,c_]=DI(l_,{contentName:R7,titleName:lQ,docsSlug:"dialog"}),SS=({titleId:$})=>{let J=c_(l_),Y=`\`${J.contentName}\` requires a \`${J.titleName}\` for the component to be accessible for screen reader users.
|
|
283
|
+
|
|
284
|
+
If you want to hide the \`${J.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
285
|
+
|
|
286
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${J.docsSlug}`;return t1.useEffect(()=>{if($){if(!document.getElementById($))console.error(Y)}},[Y,$]),null},dS="DialogDescriptionWarning",DS=({contentRef:$,descriptionId:J})=>{let G=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${c_(dS).contentName}}.`;return t1.useEffect(()=>{let B=$.current?.getAttribute("aria-describedby");if(J&&B){if(!document.getElementById(J))console.warn(G)}},[G,$,J]),null},EG=m_,a_=f_,uG=V_,lG=R_,cG=y_,i_=d_,p_=j_,r_=u_;var _0=P(Q0(),1);var s_=P(Q0(),1),pS=P(b9(),1);var l5=P(Q0(),1);var aG=P(z5(),1),jS=Symbol.for("react.lazy"),iG=l5[" use ".trim().toString()];function ES($){return typeof $==="object"&&$!==null&&"then"in $}function o_($){return $!=null&&typeof $==="object"&&"$$typeof"in $&&$.$$typeof===jS&&"_payload"in $&&ES($._payload)}function aQ($){let J=uS($),Y=l5.forwardRef((G,B)=>{let{children:g,...Q}=G;if(o_(g)&&typeof iG==="function")g=iG(g._payload);let b=l5.Children.toArray(g),K=b.find(cS);if(K){let k=K.props.children,L=b.map((U)=>{if(U===K){if(l5.Children.count(k)>1)return l5.Children.only(null);return l5.isValidElement(k)?k.props.children:null}else return U});return aG.jsx(J,{...Q,ref:B,children:l5.isValidElement(k)?l5.cloneElement(k,void 0,L):null})}return aG.jsx(J,{...Q,ref:B,children:g})});return Y.displayName=`${$}.Slot`,Y}var pG=aQ("Slot");function uS($){let J=l5.forwardRef((Y,G)=>{let{children:B,...g}=Y;if(o_(B)&&typeof iG==="function")B=iG(B._payload);if(l5.isValidElement(B)){let Q=iS(B),b=aS(g,B.props);if(B.type!==l5.Fragment)b.ref=G?h5(G,Q):Q;return l5.cloneElement(B,b)}return l5.Children.count(B)>1?l5.Children.only(null):null});return J.displayName=`${$}.SlotClone`,J}var lS=Symbol("radix.slottable");function cS($){return l5.isValidElement($)&&typeof $.type==="function"&&"__radixId"in $.type&&$.type.__radixId===lS}function aS($,J){let Y={...J};for(let G in J){let B=$[G],g=J[G];if(/^on[A-Z]/.test(G)){if(B&&g)Y[G]=(...b)=>{let K=g(...b);return B(...b),K};else if(B)Y[G]=B}else if(G==="style")Y[G]={...B,...g};else if(G==="className")Y[G]=[B,g].filter(Boolean).join(" ")}return{...$,...Y}}function iS($){let J=Object.getOwnPropertyDescriptor($.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return $.ref;if(J=Object.getOwnPropertyDescriptor($,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return $.props.ref;return $.props.ref||$.ref}var t_=P(z5(),1),rS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W8=rS.reduce(($,J)=>{let Y=aQ(`Primitive.${J}`),G=s_.forwardRef((B,g)=>{let{asChild:Q,...b}=B,K=Q?Y:J;if(typeof window<"u")window[Symbol.for("radix-ui")]=!0;return t_.jsx(K,{...b,ref:g})});return G.displayName=`Primitive.${J}`,{...$,[J]:G}},{});var uX='[cmdk-group=""]',iQ='[cmdk-group-items=""]',nS='[cmdk-group-heading=""]',wO='[cmdk-item=""]',e_=`${wO}:not([aria-disabled="true"])`,pQ="cmdk-item-select",_Z="data-value",oS=($,J,Y)=>yI($,J,Y),ZO=_0.createContext(void 0),lX=()=>_0.useContext(ZO),$O=_0.createContext(void 0),rQ=()=>_0.useContext($O),XO=_0.createContext(void 0),JO=_0.forwardRef(($,J)=>{let Y=OZ(()=>{var m,r;return{search:"",value:(r=(m=$.value)!=null?m:$.defaultValue)!=null?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),G=OZ(()=>new Set),B=OZ(()=>new Map),g=OZ(()=>new Map),Q=OZ(()=>new Set),b=YO($),{label:K,children:k,value:L,onValueChange:U,filter:F,shouldFilter:N,loop:C,disablePointerSelection:I=!1,vimBindings:A=!0,...x}=$,S=V5(),D=V5(),i=V5(),$0=_0.useRef(null),p=Gd();y7(()=>{if(L!==void 0){let m=L.trim();Y.current.value=m,j.emit()}},[L]),y7(()=>{p(6,q0)},[]);let j=_0.useMemo(()=>({subscribe:(m)=>(Q.current.add(m),()=>Q.current.delete(m)),snapshot:()=>Y.current,setState:(m,r,a)=>{var X0,J0,w0,W0;if(!Object.is(Y.current[m],r)){if(Y.current[m]=r,m==="search")G0(),E(),p(1,g0);else if(m==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let N0=document.getElementById(i);N0?N0.focus():(X0=document.getElementById(S))==null||X0.focus()}if(p(7,()=>{var N0;Y.current.selectedItemId=(N0=k0())==null?void 0:N0.id,j.emit()}),a||p(5,q0),((J0=b.current)==null?void 0:J0.value)!==void 0){let N0=r!=null?r:"";(W0=(w0=b.current).onValueChange)==null||W0.call(w0,N0);return}}j.emit()}},emit:()=>{Q.current.forEach((m)=>m())}}),[]),Z0=_0.useMemo(()=>({value:(m,r,a)=>{var X0;r!==((X0=g.current.get(m))==null?void 0:X0.value)&&(g.current.set(m,{value:r,keywords:a}),Y.current.filtered.items.set(m,s(r,a)),p(2,()=>{E(),j.emit()}))},item:(m,r)=>(G.current.add(m),r&&(B.current.has(r)?B.current.get(r).add(m):B.current.set(r,new Set([m]))),p(3,()=>{G0(),E(),Y.current.value||g0(),j.emit()}),()=>{g.current.delete(m),G.current.delete(m),Y.current.filtered.items.delete(m);let a=k0();p(4,()=>{G0(),(a==null?void 0:a.getAttribute("id"))===m&&g0(),j.emit()})}),group:(m)=>(B.current.has(m)||B.current.set(m,new Set),()=>{g.current.delete(m),B.current.delete(m)}),filter:()=>b.current.shouldFilter,label:K||$["aria-label"],getDisablePointerSelection:()=>b.current.disablePointerSelection,listId:S,inputId:i,labelId:D,listInnerRef:$0}),[]);function s(m,r){var a,X0;let J0=(X0=(a=b.current)==null?void 0:a.filter)!=null?X0:oS;return m?J0(m,Y.current.search,r):0}function E(){if(!Y.current.search||b.current.shouldFilter===!1)return;let m=Y.current.filtered.items,r=[];Y.current.filtered.groups.forEach((X0)=>{let J0=B.current.get(X0),w0=0;J0.forEach((W0)=>{let N0=m.get(W0);w0=Math.max(N0,w0)}),r.push([X0,w0])});let a=$0.current;e().sort((X0,J0)=>{var w0,W0;let N0=X0.getAttribute("id"),r0=J0.getAttribute("id");return((w0=m.get(r0))!=null?w0:0)-((W0=m.get(N0))!=null?W0:0)}).forEach((X0)=>{let J0=X0.closest(iQ);J0?J0.appendChild(X0.parentElement===J0?X0:X0.closest(`${iQ} > *`)):a.appendChild(X0.parentElement===a?X0:X0.closest(`${iQ} > *`))}),r.sort((X0,J0)=>J0[1]-X0[1]).forEach((X0)=>{var J0;let w0=(J0=$0.current)==null?void 0:J0.querySelector(`${uX}[${_Z}="${encodeURIComponent(X0[0])}"]`);w0==null||w0.parentElement.appendChild(w0)})}function g0(){let m=e().find((a)=>a.getAttribute("aria-disabled")!=="true"),r=m==null?void 0:m.getAttribute(_Z);j.setState("value",r||void 0)}function G0(){var m,r,a,X0;if(!Y.current.search||b.current.shouldFilter===!1){Y.current.filtered.count=G.current.size;return}Y.current.filtered.groups=new Set;let J0=0;for(let w0 of G.current){let W0=(r=(m=g.current.get(w0))==null?void 0:m.value)!=null?r:"",N0=(X0=(a=g.current.get(w0))==null?void 0:a.keywords)!=null?X0:[],r0=s(W0,N0);Y.current.filtered.items.set(w0,r0),r0>0&&J0++}for(let[w0,W0]of B.current)for(let N0 of W0)if(Y.current.filtered.items.get(N0)>0){Y.current.filtered.groups.add(w0);break}Y.current.filtered.count=J0}function q0(){var m,r,a;let X0=k0();X0&&(((m=X0.parentElement)==null?void 0:m.firstChild)===X0&&((a=(r=X0.closest(uX))==null?void 0:r.querySelector(nS))==null||a.scrollIntoView({block:"nearest"})),X0.scrollIntoView({block:"nearest"}))}function k0(){var m;return(m=$0.current)==null?void 0:m.querySelector(`${wO}[aria-selected="true"]`)}function e(){var m;return Array.from(((m=$0.current)==null?void 0:m.querySelectorAll(e_))||[])}function v0(m){let r=e()[m];r&&j.setState("value",r.getAttribute(_Z))}function u(m){var r;let a=k0(),X0=e(),J0=X0.findIndex((W0)=>W0===a),w0=X0[J0+m];(r=b.current)!=null&&r.loop&&(w0=J0+m<0?X0[X0.length-1]:J0+m===X0.length?X0[0]:X0[J0+m]),w0&&j.setState("value",w0.getAttribute(_Z))}function o(m){let r=k0(),a=r==null?void 0:r.closest(uX),X0;for(;a&&!X0;)a=m>0?Yd(a,uX):zd(a,uX),X0=a==null?void 0:a.querySelector(e_);X0?j.setState("value",X0.getAttribute(_Z)):u(m)}let l=()=>v0(e().length-1),M=(m)=>{m.preventDefault(),m.metaKey?l():m.altKey?o(1):u(1)},z0=(m)=>{m.preventDefault(),m.metaKey?v0(0):m.altKey?o(-1):u(-1)};return _0.createElement(W8.div,{ref:J,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:(m)=>{var r;(r=x.onKeyDown)==null||r.call(x,m);let a=m.nativeEvent.isComposing||m.keyCode===229;if(!(m.defaultPrevented||a))switch(m.key){case"n":case"j":{A&&m.ctrlKey&&M(m);break}case"ArrowDown":{M(m);break}case"p":case"k":{A&&m.ctrlKey&&z0(m);break}case"ArrowUp":{z0(m);break}case"Home":{m.preventDefault(),v0(0);break}case"End":{m.preventDefault(),l();break}case"Enter":{m.preventDefault();let X0=k0();if(X0){let J0=new Event(pQ);X0.dispatchEvent(J0)}}}}},_0.createElement("label",{"cmdk-label":"",htmlFor:Z0.inputId,id:Z0.labelId,style:Bd},K),rG($,(m)=>_0.createElement($O.Provider,{value:j},_0.createElement(ZO.Provider,{value:Z0},m))))}),sS=_0.forwardRef(($,J)=>{var Y,G;let B=V5(),g=_0.useRef(null),Q=_0.useContext(XO),b=lX(),K=YO($),k=(G=(Y=K.current)==null?void 0:Y.forceMount)!=null?G:Q==null?void 0:Q.forceMount;y7(()=>{if(!k)return b.item(B,Q==null?void 0:Q.id)},[k]);let L=zO(B,g,[$.value,$.children,g],$.keywords),U=rQ(),F=K9((p)=>p.value&&p.value===L.current),N=K9((p)=>k||b.filter()===!1?!0:p.search?p.filtered.items.get(B)>0:!0);_0.useEffect(()=>{let p=g.current;if(!(!p||$.disabled))return p.addEventListener(pQ,C),()=>p.removeEventListener(pQ,C)},[N,$.onSelect,$.disabled]);function C(){var p,j;I(),(j=(p=K.current).onSelect)==null||j.call(p,L.current)}function I(){U.setState("value",L.current,!0)}if(!N)return null;let{disabled:A,value:x,onSelect:S,forceMount:D,keywords:i,...$0}=$;return _0.createElement(W8.div,{ref:h5(g,J),...$0,id:B,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!F,"data-disabled":!!A,"data-selected":!!F,onPointerMove:A||b.getDisablePointerSelection()?void 0:I,onClick:A?void 0:C},$.children)}),tS=_0.forwardRef(($,J)=>{let{heading:Y,children:G,forceMount:B,...g}=$,Q=V5(),b=_0.useRef(null),K=_0.useRef(null),k=V5(),L=lX(),U=K9((N)=>B||L.filter()===!1?!0:N.search?N.filtered.groups.has(Q):!0);y7(()=>L.group(Q),[]),zO(Q,b,[$.value,$.heading,K]);let F=_0.useMemo(()=>({id:Q,forceMount:B}),[B]);return _0.createElement(W8.div,{ref:h5(b,J),...g,"cmdk-group":"",role:"presentation",hidden:U?void 0:!0},Y&&_0.createElement("div",{ref:K,"cmdk-group-heading":"","aria-hidden":!0,id:k},Y),rG($,(N)=>_0.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":Y?k:void 0},_0.createElement(XO.Provider,{value:F},N))))}),eS=_0.forwardRef(($,J)=>{let{alwaysRender:Y,...G}=$,B=_0.useRef(null),g=K9((Q)=>!Q.search);return!Y&&!g?null:_0.createElement(W8.div,{ref:h5(B,J),...G,"cmdk-separator":"",role:"separator"})}),wd=_0.forwardRef(($,J)=>{let{onValueChange:Y,...G}=$,B=$.value!=null,g=rQ(),Q=K9((k)=>k.search),b=K9((k)=>k.selectedItemId),K=lX();return _0.useEffect(()=>{$.value!=null&&g.setState("search",$.value)},[$.value]),_0.createElement(W8.input,{ref:J,...G,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":K.listId,"aria-labelledby":K.labelId,"aria-activedescendant":b,id:K.inputId,type:"text",value:B?$.value:Q,onChange:(k)=>{B||g.setState("search",k.target.value),Y==null||Y(k.target.value)}})}),Zd=_0.forwardRef(($,J)=>{let{children:Y,label:G="Suggestions",...B}=$,g=_0.useRef(null),Q=_0.useRef(null),b=K9((k)=>k.selectedItemId),K=lX();return _0.useEffect(()=>{if(Q.current&&g.current){let k=Q.current,L=g.current,U,F=new ResizeObserver(()=>{U=requestAnimationFrame(()=>{let N=k.offsetHeight;L.style.setProperty("--cmdk-list-height",N.toFixed(1)+"px")})});return F.observe(k),()=>{cancelAnimationFrame(U),F.unobserve(k)}}},[]),_0.createElement(W8.div,{ref:h5(g,J),...B,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":b,"aria-label":G,id:K.listId},rG($,(k)=>_0.createElement("div",{ref:h5(Q,K.listInnerRef),"cmdk-list-sizer":""},k)))}),$d=_0.forwardRef(($,J)=>{let{open:Y,onOpenChange:G,overlayClassName:B,contentClassName:g,container:Q,...b}=$;return _0.createElement(EG,{open:Y,onOpenChange:G},_0.createElement(uG,{container:Q},_0.createElement(lG,{"cmdk-overlay":"",className:B}),_0.createElement(cG,{"aria-label":$.label,"cmdk-dialog":"",className:g},_0.createElement(JO,{ref:J,...b}))))}),Xd=_0.forwardRef(($,J)=>K9((Y)=>Y.filtered.count===0)?_0.createElement(W8.div,{ref:J,...$,"cmdk-empty":"",role:"presentation"}):null),Jd=_0.forwardRef(($,J)=>{let{progress:Y,children:G,label:B="Loading...",...g}=$;return _0.createElement(W8.div,{ref:J,...g,"cmdk-loading":"",role:"progressbar","aria-valuenow":Y,"aria-valuemin":0,"aria-valuemax":100,"aria-label":B},rG($,(Q)=>_0.createElement("div",{"aria-hidden":!0},Q)))}),U9=Object.assign(JO,{List:Zd,Item:sS,Input:wd,Group:tS,Separator:eS,Dialog:$d,Empty:Xd,Loading:Jd});function Yd($,J){let Y=$.nextElementSibling;for(;Y;){if(Y.matches(J))return Y;Y=Y.nextElementSibling}}function zd($,J){let Y=$.previousElementSibling;for(;Y;){if(Y.matches(J))return Y;Y=Y.previousElementSibling}}function YO($){let J=_0.useRef($);return y7(()=>{J.current=$}),J}var y7=typeof window>"u"?_0.useEffect:_0.useLayoutEffect;function OZ($){let J=_0.useRef();return J.current===void 0&&(J.current=$()),J}function K9($){let J=rQ(),Y=()=>$(J.snapshot());return _0.useSyncExternalStore(J.subscribe,Y,Y)}function zO($,J,Y,G=[]){let B=_0.useRef(),g=lX();return y7(()=>{var Q;let b=(()=>{var k;for(let L of Y){if(typeof L=="string")return L.trim();if(typeof L=="object"&&"current"in L)return L.current?(k=L.current.textContent)==null?void 0:k.trim():B.current}})(),K=G.map((k)=>k.trim());g.value($,b,K),(Q=J.current)==null||Q.setAttribute(_Z,b),B.current=b}),B}var Gd=()=>{let[$,J]=_0.useState(),Y=OZ(()=>new Map);return y7(()=>{Y.current.forEach((G)=>G()),Y.current=new Map},[$]),(G,B)=>{Y.current.set(G,B),J({})}};function vd($){let J=$.type;return typeof J=="function"?J($.props):("render"in J)?J.render($.props):$}function rG({asChild:$,children:J},Y){return $&&_0.isValidElement(J)?_0.cloneElement(vd(J),{ref:J.ref},Y(J.props.children)):Y(J)}var Bd={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};var oG=P(Q0(),1);var GO=($)=>$.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nG=(...$)=>$.filter((J,Y,G)=>{return Boolean(J)&&G.indexOf(J)===Y}).join(" ");var cX=P(Q0(),1);var vO={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var BO=cX.forwardRef(({color:$="currentColor",size:J=24,strokeWidth:Y=2,absoluteStrokeWidth:G,className:B="",children:g,iconNode:Q,...b},K)=>{return cX.createElement("svg",{ref:K,...vO,width:J,height:J,stroke:$,strokeWidth:G?Number(Y)*24/Number(J):Y,className:nG("lucide",B),...b},[...Q.map(([k,L])=>cX.createElement(k,L)),...Array.isArray(g)?g:[g]])});var x0=($,J)=>{let Y=oG.forwardRef(({className:G,...B},g)=>oG.createElement(BO,{ref:g,iconNode:J,className:nG(`lucide-${GO($)}`,G),...B}));return Y.displayName=`${$}`,Y};var S7=x0("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);var aX=x0("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var iX=x0("Boxes",[["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"}]]);var pX=x0("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var d7=x0("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var D7=x0("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);var rX=x0("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);var nX=x0("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var oX=x0("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var sX=x0("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);var tX=x0("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var eX=x0("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);var j7=x0("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);var wJ=x0("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);var ZJ=x0("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);var $J=x0("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);var XJ=x0("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);var JJ=x0("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);var YJ=x0("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);var CZ=x0("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var zJ=x0("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);var GJ=x0("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);var vJ=x0("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);var BJ=x0("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var E7=x0("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);var HJ=x0("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);var AZ=x0("Sun",[["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"}]]);var gJ=x0("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var bJ=x0("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var m6=x0("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var q9=x0("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var P6=x0("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function HO($){var J,Y,G="";if(typeof $=="string"||typeof $=="number")G+=$;else if(typeof $=="object")if(Array.isArray($)){var B=$.length;for(J=0;J<B;J++)$[J]&&(Y=HO($[J]))&&(G&&(G+=" "),G+=Y)}else for(Y in $)$[Y]&&(G&&(G+=" "),G+=Y);return G}function sG(){for(var $,J,Y=0,G="",B=arguments.length;Y<B;Y++)($=arguments[Y])&&(J=HO($))&&(G&&(G+=" "),G+=J);return G}var Hd=($)=>{let J=bd($),{conflictingClassGroups:Y,conflictingClassGroupModifiers:G}=$;return{getClassGroupId:(Q)=>{let b=Q.split("-");if(b[0]===""&&b.length!==1)b.shift();return QO(b,J)||gd(Q)},getConflictingClassGroupIds:(Q,b)=>{let K=Y[Q]||[];if(b&&G[Q])return[...K,...G[Q]];return K}}},QO=($,J)=>{if($.length===0)return J.classGroupId;let Y=$[0],G=J.nextPart.get(Y),B=G?QO($.slice(1),G):void 0;if(B)return B;if(J.validators.length===0)return;let g=$.join("-");return J.validators.find(({validator:Q})=>Q(g))?.classGroupId},gO=/^\[(.+)\]$/,gd=($)=>{if(gO.test($)){let J=gO.exec($)[1],Y=J?.substring(0,J.indexOf(":"));if(Y)return"arbitrary.."+Y}},bd=($)=>{let{theme:J,prefix:Y}=$,G={nextPart:new Map,validators:[]};return Wd(Object.entries($.classGroups),Y).forEach(([g,Q])=>{oQ(Q,G,g,J)}),G},oQ=($,J,Y,G)=>{$.forEach((B)=>{if(typeof B==="string"){let g=B===""?J:bO(J,B);g.classGroupId=Y;return}if(typeof B==="function"){if(Qd(B)){oQ(B(G),J,Y,G);return}J.validators.push({validator:B,classGroupId:Y});return}Object.entries(B).forEach(([g,Q])=>{oQ(Q,bO(J,g),Y,G)})})},bO=($,J)=>{let Y=$;return J.split("-").forEach((G)=>{if(!Y.nextPart.has(G))Y.nextPart.set(G,{nextPart:new Map,validators:[]});Y=Y.nextPart.get(G)}),Y},Qd=($)=>$.isThemeGetter,Wd=($,J)=>{if(!J)return $;return $.map(([Y,G])=>{let B=G.map((g)=>{if(typeof g==="string")return J+g;if(typeof g==="object")return Object.fromEntries(Object.entries(g).map(([Q,b])=>[J+Q,b]));return g});return[Y,B]})},Kd=($)=>{if($<1)return{get:()=>{return},set:()=>{}};let J=0,Y=new Map,G=new Map,B=(g,Q)=>{if(Y.set(g,Q),J++,J>$)J=0,G=Y,Y=new Map};return{get(g){let Q=Y.get(g);if(Q!==void 0)return Q;if((Q=G.get(g))!==void 0)return B(g,Q),Q},set(g,Q){if(Y.has(g))Y.set(g,Q);else B(g,Q)}}};var Ud=($)=>{let{separator:J,experimentalParseClassName:Y}=$,G=J.length===1,B=J[0],g=J.length,Q=(b)=>{let K=[],k=0,L=0,U;for(let A=0;A<b.length;A++){let x=b[A];if(k===0){if(x===B&&(G||b.slice(A,A+g)===J)){K.push(b.slice(L,A)),L=A+g;continue}if(x==="/"){U=A;continue}}if(x==="[")k++;else if(x==="]")k--}let F=K.length===0?b:b.substring(L),N=F.startsWith("!"),C=N?F.substring(1):F,I=U&&U>L?U-L:void 0;return{modifiers:K,hasImportantModifier:N,baseClassName:C,maybePostfixModifierPosition:I}};if(Y)return(b)=>Y({className:b,parseClassName:Q});return Q},qd=($)=>{if($.length<=1)return $;let J=[],Y=[];return $.forEach((G)=>{if(G[0]==="[")J.push(...Y.sort(),G),Y=[];else Y.push(G)}),J.push(...Y.sort()),J},Ld=($)=>({cache:Kd($.cacheSize),parseClassName:Ud($),...Hd($)}),kd=/\s+/,Fd=($,J)=>{let{parseClassName:Y,getClassGroupId:G,getConflictingClassGroupIds:B}=J,g=[],Q=$.trim().split(kd),b="";for(let K=Q.length-1;K>=0;K-=1){let k=Q[K],{modifiers:L,hasImportantModifier:U,baseClassName:F,maybePostfixModifierPosition:N}=Y(k),C=Boolean(N),I=G(C?F.substring(0,N):F);if(!I){if(!C){b=k+(b.length>0?" "+b:b);continue}if(I=G(F),!I){b=k+(b.length>0?" "+b:b);continue}C=!1}let A=qd(L).join(":"),x=U?A+"!":A,S=x+I;if(g.includes(S))continue;g.push(S);let D=B(I,C);for(let i=0;i<D.length;++i){let $0=D[i];g.push(x+$0)}b=k+(b.length>0?" "+b:b)}return b};function Nd(){let $=0,J,Y,G="";while($<arguments.length)if(J=arguments[$++]){if(Y=WO(J))G&&(G+=" "),G+=Y}return G}var WO=($)=>{if(typeof $==="string")return $;let J,Y="";for(let G=0;G<$.length;G++)if($[G]){if(J=WO($[G]))Y&&(Y+=" "),Y+=J}return Y};function Td($,...J){let Y,G,B,g=Q;function Q(K){let k=J.reduce((L,U)=>U(L),$());return Y=Ld(k),G=Y.cache.get,B=Y.cache.set,g=b,b(K)}function b(K){let k=G(K);if(k)return k;let L=Fd(K,Y);return B(K,L),L}return function(){return g(Nd.apply(null,arguments))}}var B5=($)=>{let J=(Y)=>Y[$]||[];return J.isThemeGetter=!0,J},KO=/^\[(?:([a-z-]+):)?(.+)\]$/i,Id=/^\d+\/\d+$/,_d=new Set(["px","full","screen"]),Od=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ad=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Md=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K8=($)=>MZ($)||_d.has($)||Id.test($),L9=($)=>xZ($,"length",Sd),MZ=($)=>Boolean($)&&!Number.isNaN(Number($)),nQ=($)=>xZ($,"number",MZ),QJ=($)=>Boolean($)&&Number.isInteger(Number($)),md=($)=>$.endsWith("%")&&MZ($.slice(0,-1)),G1=($)=>KO.test($),k9=($)=>Od.test($),Pd=new Set(["length","size","percentage"]),fd=($)=>xZ($,Pd,UO),hd=($)=>xZ($,"position",UO),Vd=new Set(["image","url"]),Rd=($)=>xZ($,Vd,Dd),yd=($)=>xZ($,"",dd),WJ=()=>!0,xZ=($,J,Y)=>{let G=KO.exec($);if(G){if(G[1])return typeof J==="string"?G[1]===J:J.has(G[1]);return Y(G[2])}return!1},Sd=($)=>Cd.test($)&&!Ad.test($),UO=()=>!1,dd=($)=>Md.test($),Dd=($)=>xd.test($);var jd=()=>{let $=B5("colors"),J=B5("spacing"),Y=B5("blur"),G=B5("brightness"),B=B5("borderColor"),g=B5("borderRadius"),Q=B5("borderSpacing"),b=B5("borderWidth"),K=B5("contrast"),k=B5("grayscale"),L=B5("hueRotate"),U=B5("invert"),F=B5("gap"),N=B5("gradientColorStops"),C=B5("gradientColorStopPositions"),I=B5("inset"),A=B5("margin"),x=B5("opacity"),S=B5("padding"),D=B5("saturate"),i=B5("scale"),$0=B5("sepia"),p=B5("skew"),j=B5("space"),Z0=B5("translate"),s=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],g0=()=>["auto",G1,J],G0=()=>[G1,J],q0=()=>["",K8,L9],k0=()=>["auto",MZ,G1],e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],v0=()=>["solid","dashed","dotted","double","none"],u=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],o=()=>["start","end","center","between","around","evenly","stretch"],l=()=>["","0",G1],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z0=()=>[MZ,G1];return{cacheSize:500,separator:":",theme:{colors:[WJ],spacing:[K8,L9],blur:["none","",k9,G1],brightness:z0(),borderColor:[$],borderRadius:["none","","full",k9,G1],borderSpacing:G0(),borderWidth:q0(),contrast:z0(),grayscale:l(),hueRotate:z0(),invert:l(),gap:G0(),gradientColorStops:[$],gradientColorStopPositions:[md,L9],inset:g0(),margin:g0(),opacity:z0(),padding:G0(),saturate:z0(),scale:z0(),sepia:l(),skew:z0(),space:G0(),translate:G0()},classGroups:{aspect:[{aspect:["auto","square","video",G1]}],container:["container"],columns:[{columns:[k9]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...e(),G1]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:s()}],"overscroll-x":[{"overscroll-x":s()}],"overscroll-y":[{"overscroll-y":s()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",QJ,G1]}],basis:[{basis:g0()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G1]}],grow:[{grow:l()}],shrink:[{shrink:l()}],order:[{order:["first","last","none",QJ,G1]}],"grid-cols":[{"grid-cols":[WJ]}],"col-start-end":[{col:["auto",{span:["full",QJ,G1]},G1]}],"col-start":[{"col-start":k0()}],"col-end":[{"col-end":k0()}],"grid-rows":[{"grid-rows":[WJ]}],"row-start-end":[{row:["auto",{span:[QJ,G1]},G1]}],"row-start":[{"row-start":k0()}],"row-end":[{"row-end":k0()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G1]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G1]}],gap:[{gap:[F]}],"gap-x":[{"gap-x":[F]}],"gap-y":[{"gap-y":[F]}],"justify-content":[{justify:["normal",...o()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...o(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...o(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G1,J]}],"min-w":[{"min-w":[G1,J,"min","max","fit"]}],"max-w":[{"max-w":[G1,J,"none","full","min","max","fit","prose",{screen:[k9]},k9]}],h:[{h:[G1,J,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G1,J,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G1,J,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G1,J,"auto","min","max","fit"]}],"font-size":[{text:["base",k9,L9]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nQ]}],"font-family":[{font:[WJ]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",G1]}],"line-clamp":[{"line-clamp":["none",MZ,nQ]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K8,G1]}],"list-image":[{"list-image":["none",G1]}],"list-style-type":[{list:["none","disc","decimal",G1]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[$]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[$]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...v0(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K8,L9]}],"underline-offset":[{"underline-offset":["auto",K8,G1]}],"text-decoration-color":[{decoration:[$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G0()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...e(),hd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",fd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Rd]}],"bg-color":[{bg:[$]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[g]}],"rounded-s":[{"rounded-s":[g]}],"rounded-e":[{"rounded-e":[g]}],"rounded-t":[{"rounded-t":[g]}],"rounded-r":[{"rounded-r":[g]}],"rounded-b":[{"rounded-b":[g]}],"rounded-l":[{"rounded-l":[g]}],"rounded-ss":[{"rounded-ss":[g]}],"rounded-se":[{"rounded-se":[g]}],"rounded-ee":[{"rounded-ee":[g]}],"rounded-es":[{"rounded-es":[g]}],"rounded-tl":[{"rounded-tl":[g]}],"rounded-tr":[{"rounded-tr":[g]}],"rounded-br":[{"rounded-br":[g]}],"rounded-bl":[{"rounded-bl":[g]}],"border-w":[{border:[b]}],"border-w-x":[{"border-x":[b]}],"border-w-y":[{"border-y":[b]}],"border-w-s":[{"border-s":[b]}],"border-w-e":[{"border-e":[b]}],"border-w-t":[{"border-t":[b]}],"border-w-r":[{"border-r":[b]}],"border-w-b":[{"border-b":[b]}],"border-w-l":[{"border-l":[b]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...v0(),"hidden"]}],"divide-x":[{"divide-x":[b]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[b]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:v0()}],"border-color":[{border:[B]}],"border-color-x":[{"border-x":[B]}],"border-color-y":[{"border-y":[B]}],"border-color-s":[{"border-s":[B]}],"border-color-e":[{"border-e":[B]}],"border-color-t":[{"border-t":[B]}],"border-color-r":[{"border-r":[B]}],"border-color-b":[{"border-b":[B]}],"border-color-l":[{"border-l":[B]}],"divide-color":[{divide:[B]}],"outline-style":[{outline:["",...v0()]}],"outline-offset":[{"outline-offset":[K8,G1]}],"outline-w":[{outline:[K8,L9]}],"outline-color":[{outline:[$]}],"ring-w":[{ring:q0()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[$]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[K8,L9]}],"ring-offset-color":[{"ring-offset":[$]}],shadow:[{shadow:["","inner","none",k9,yd]}],"shadow-color":[{shadow:[WJ]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...u(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":u()}],filter:[{filter:["","none"]}],blur:[{blur:[Y]}],brightness:[{brightness:[G]}],contrast:[{contrast:[K]}],"drop-shadow":[{"drop-shadow":["","none",k9,G1]}],grayscale:[{grayscale:[k]}],"hue-rotate":[{"hue-rotate":[L]}],invert:[{invert:[U]}],saturate:[{saturate:[D]}],sepia:[{sepia:[$0]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[Y]}],"backdrop-brightness":[{"backdrop-brightness":[G]}],"backdrop-contrast":[{"backdrop-contrast":[K]}],"backdrop-grayscale":[{"backdrop-grayscale":[k]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L]}],"backdrop-invert":[{"backdrop-invert":[U]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[$0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[Q]}],"border-spacing-x":[{"border-spacing-x":[Q]}],"border-spacing-y":[{"border-spacing-y":[Q]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G1]}],duration:[{duration:z0()}],ease:[{ease:["linear","in","out","in-out",G1]}],delay:[{delay:z0()}],animate:[{animate:["none","spin","ping","pulse","bounce",G1]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[i]}],"scale-x":[{"scale-x":[i]}],"scale-y":[{"scale-y":[i]}],rotate:[{rotate:[QJ,G1]}],"translate-x":[{"translate-x":[Z0]}],"translate-y":[{"translate-y":[Z0]}],"skew-x":[{"skew-x":[p]}],"skew-y":[{"skew-y":[p]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G1]}],accent:[{accent:["auto",$]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G1]}],"caret-color":[{caret:[$]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G0()}],"scroll-mx":[{"scroll-mx":G0()}],"scroll-my":[{"scroll-my":G0()}],"scroll-ms":[{"scroll-ms":G0()}],"scroll-me":[{"scroll-me":G0()}],"scroll-mt":[{"scroll-mt":G0()}],"scroll-mr":[{"scroll-mr":G0()}],"scroll-mb":[{"scroll-mb":G0()}],"scroll-ml":[{"scroll-ml":G0()}],"scroll-p":[{"scroll-p":G0()}],"scroll-px":[{"scroll-px":G0()}],"scroll-py":[{"scroll-py":G0()}],"scroll-ps":[{"scroll-ps":G0()}],"scroll-pe":[{"scroll-pe":G0()}],"scroll-pt":[{"scroll-pt":G0()}],"scroll-pr":[{"scroll-pr":G0()}],"scroll-pb":[{"scroll-pb":G0()}],"scroll-pl":[{"scroll-pl":G0()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G1]}],fill:[{fill:[$,"none"]}],"stroke-w":[{stroke:[K8,L9,nQ]}],stroke:[{stroke:[$,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qO=Td(jd);function O0(...$){return qO(sG($))}var o2=P(H0(),1);function F9({...$}){return o2.jsxDEV(EG,{"data-slot":"dialog",...$},void 0,!1,void 0,this)}function tG({...$}){return o2.jsxDEV(a_,{"data-slot":"dialog-trigger",...$},void 0,!1,void 0,this)}function ud({...$}){return o2.jsxDEV(uG,{"data-slot":"dialog-portal",...$},void 0,!1,void 0,this)}function ld({className:$,...J}){return o2.jsxDEV(lG,{"data-slot":"dialog-overlay",className:O0("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",$),...J},void 0,!1,void 0,this)}function N9({className:$,children:J,showCloseButton:Y=!0,...G}){return o2.jsxDEV(ud,{children:[o2.jsxDEV(ld,{},void 0,!1,void 0,this),o2.jsxDEV(cG,{"data-slot":"dialog-content",className:O0("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border ring-1 ring-foreground/15 p-6 duration-200 sm:max-w-lg",$),...G,children:[J,Y&&o2.jsxDEV(r_,{"data-slot":"dialog-close",className:"data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o2.jsxDEV(bJ,{},void 0,!1,void 0,this),o2.jsxDEV("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function T9({className:$,...J}){return o2.jsxDEV("div",{"data-slot":"dialog-header",className:O0("flex flex-col gap-2 text-center sm:text-left",$),...J},void 0,!1,void 0,this)}function mZ({className:$,...J}){return o2.jsxDEV("div",{"data-slot":"dialog-footer",className:O0("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",$),...J},void 0,!1,void 0,this)}function I9({className:$,...J}){return o2.jsxDEV(i_,{"data-slot":"dialog-title",className:O0("text-lg leading-none font-semibold",$),...J},void 0,!1,void 0,this)}function _9({className:$,...J}){return o2.jsxDEV(p_,{"data-slot":"dialog-description",className:O0("text-muted-foreground text-sm",$),...J},void 0,!1,void 0,this)}var R2=P(H0(),1);function cd({className:$,...J}){return R2.jsxDEV(U9,{"data-slot":"command",className:O0("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",$),...J},void 0,!1,void 0,this)}function LO({title:$="Command Palette",description:J="Search for a command to run...",children:Y,className:G,showCloseButton:B=!0,...g}){return R2.jsxDEV(F9,{...g,children:[R2.jsxDEV(T9,{className:"sr-only",children:[R2.jsxDEV(I9,{children:$},void 0,!1,void 0,this),R2.jsxDEV(_9,{children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R2.jsxDEV(N9,{className:O0("overflow-hidden p-0",G),showCloseButton:B,children:R2.jsxDEV(cd,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kO({className:$,...J}){return R2.jsxDEV("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[R2.jsxDEV(BJ,{className:"size-4 shrink-0 opacity-50"},void 0,!1,void 0,this),R2.jsxDEV(U9.Input,{"data-slot":"command-input",className:O0("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",$),...J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FO({className:$,...J}){return R2.jsxDEV(U9.List,{"data-slot":"command-list",className:O0("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",$),...J},void 0,!1,void 0,this)}function NO({...$}){return R2.jsxDEV(U9.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...$},void 0,!1,void 0,this)}function eG({className:$,...J}){return R2.jsxDEV(U9.Group,{"data-slot":"command-group",className:O0("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",$),...J},void 0,!1,void 0,this)}function _2({className:$,...J}){return R2.jsxDEV(U9.Item,{"data-slot":"command-item",className:O0("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",$),...J},void 0,!1,void 0,this)}function sQ({className:$,...J}){return R2.jsxDEV(U9.Separator,{"data-slot":"command-separator",className:O0("bg-border -mx-1 h-px",$),...J},void 0,!1,void 0,this)}var bw=P(Q0(),1),AO=P(H0(),1),IO="agentplate-theme",_O="(prefers-color-scheme: dark)",OO=bw.createContext(null);function nd(){if(typeof window>"u")return"system";try{let $=window.localStorage.getItem(IO);if($==="light"||$==="dark"||$==="system")return $}catch{}return"system"}function od(){if(typeof window>"u"||typeof window.matchMedia!=="function")return"light";return window.matchMedia(_O).matches?"dark":"light"}function sd($){if(typeof document>"u")return;document.documentElement.classList.toggle("dark",$==="dark")}function CO({children:$}){let[J,Y]=bw.useState(()=>nd()),[G,B]=bw.useState(()=>od()),g=J==="system"?G:J;bw.useEffect(()=>{sd(g)},[g]),bw.useEffect(()=>{if(J!=="system")return;if(typeof window>"u"||typeof window.matchMedia!=="function")return;let K=window.matchMedia(_O),k=(L)=>{B(L.matches?"dark":"light")};return B(K.matches?"dark":"light"),K.addEventListener("change",k),()=>K.removeEventListener("change",k)},[J]);let Q=bw.useCallback((K)=>{if(Y(K),typeof window>"u")return;try{window.localStorage.setItem(IO,K)}catch{}},[]),b=bw.useMemo(()=>({theme:J,resolvedTheme:g,setTheme:Q}),[J,g,Q]);return AO.jsxDEV(OO.Provider,{value:b,children:$},void 0,!1,void 0,this)}function hZ(){let $=bw.useContext(OO);if($)return $;return{theme:"system",resolvedTheme:"light",setTheme:()=>{}}}var y1=P(H0(),1),td=u4.createContext(null);function ed(){if(typeof document>"u")return!1;let $=document.activeElement;if(!$)return!1;let J=$.tagName.toLowerCase();if(J==="textarea"||J==="input")return!0;if($.isContentEditable)return!0;return!1}function MO({children:$}){let[J,Y]=u4.useState(!1),{setTheme:G}=hZ(),B=j4(),g=u4.useMemo(()=>({open:J,setOpen:Y}),[J]);u4.useEffect(()=>{let k=(L)=>{if(L.key!=="k"&&L.key!=="K")return;if(!(L.metaKey||L.ctrlKey))return;if(ed())return;L.preventDefault(),Y((U)=>!U)};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[]);let b=c0({queryKey:["runs"],queryFn:()=>U8(5),enabled:J}).data?.slice(0,5)??[],K=u4.useCallback((k)=>{k(),Y(!1)},[]);return y1.jsxDEV(td.Provider,{value:g,children:[$,y1.jsxDEV(LO,{open:J,onOpenChange:Y,children:[y1.jsxDEV(kO,{placeholder:"Type a command or search…"},void 0,!1,void 0,this),y1.jsxDEV(FO,{children:[y1.jsxDEV(NO,{children:"No results found."},void 0,!1,void 0,this),y1.jsxDEV(eG,{heading:"Theme",children:[y1.jsxDEV(_2,{onSelect:()=>K(()=>G("light")),children:"Theme: Light"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>G("dark")),children:"Theme: Dark"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>G("system")),children:"Theme: System"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y1.jsxDEV(sQ,{},void 0,!1,void 0,this),y1.jsxDEV(eG,{heading:"Navigate",children:[y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/")),children:"Go to Overview"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/fleet")),children:"Go to Fleet"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/coordinator")),children:"Go to Coordinator"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/costs")),children:"Go to Costs"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/errors")),children:"Go to Errors"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/mail")),children:"Go to Mail"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/merge")),children:"Go to Merge queue"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/worktrees")),children:"Go to Worktrees"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/logs")),children:"Go to Logs"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/health")),children:"Go to Health"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/groups")),children:"Go to Groups"},void 0,!1,void 0,this),y1.jsxDEV(_2,{onSelect:()=>K(()=>B("/specs")),children:"Go to Specs"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b.length>0&&y1.jsxDEV(y1.Fragment,{children:[y1.jsxDEV(sQ,{},void 0,!1,void 0,this),y1.jsxDEV(eG,{heading:"Recent runs",children:b.map((k)=>y1.jsxDEV(_2,{onSelect:()=>K(()=>B(`/?run=${encodeURIComponent(k.id)}`)),children:`Recent run: ${k.id}`},k.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var UM=P(Q0(),1);var kJ=P(H0(),1),wD={open:"bg-success",connecting:"bg-warning",closed:"bg-destructive",idle:"bg-muted-foreground/40"},xO={open:"Connected",connecting:"Connecting…",closed:"Disconnected",idle:"Idle"};function mO({status:$,className:J,hideLabel:Y}){return kJ.jsxDEV("div",{"data-slot":"connection-status","data-status":$,className:O0("inline-flex items-center gap-1.5 text-xs text-muted-foreground",J),children:[kJ.jsxDEV("span",{"aria-hidden":"true",className:O0("h-2 w-2 rounded-full",wD[$],$==="connecting"&&"animate-pulse")},void 0,!1,void 0,this),Y?kJ.jsxDEV("span",{className:"sr-only",children:xO[$]},void 0,!1,void 0,this):kJ.jsxDEV("span",{children:xO[$]},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var PO={loam:{rgb:[139,90,43],label:"loam"},sprout:{rgb:[124,179,66],label:"sprout"},sapling:{rgb:[76,175,80],label:"sapling"},trellis:{rgb:[56,142,60],label:"trellis"},agentplate:{rgb:[46,125,50],label:"agentplate"},greenhouse:{rgb:[124,179,66],label:"greenhouse"}};function fO($){let[J,Y,G]=PO[$].rgb;return`rgb(${J}, ${Y}, ${G})`}function hO($,J){let[Y,G,B]=PO[$].rgb;return`rgba(${Y}, ${G}, ${B}, ${J})`}var FJ=P(H0(),1),VO=["greenhouse","agentplate","trellis","sapling","sprout","loam"];function RO({size:$="sm",showWordmark:J=!1,tool:Y,className:G}){let B=$==="sm"?24:32,g=VO.length,Q=$==="sm"?1:1.5,b=$==="sm"?0.6:0.8,K=(B-Q*(g-1))/g,L=B*1.6,U=Y?`${Y} mark`:"ag-eco logo";return FJ.jsxDEV("span",{className:O0("inline-flex items-center gap-2 select-none",G),children:[FJ.jsxDEV("svg",{width:L,height:B,viewBox:`0 0 ${L} ${B}`,role:"img","aria-label":U,xmlns:"http://www.w3.org/2000/svg",children:VO.map((F,N)=>{let C=N*(K+Q),A=Y&&Y!==F?hO(F,0.3):fO(F);return FJ.jsxDEV("rect",{x:0,y:C,width:L,height:K,rx:b,ry:b,fill:A},F,!1,void 0,this)})},void 0,!1,void 0,this),J?FJ.jsxDEV("span",{className:"font-semibold text-sm tracking-tight text-foreground",children:"agentplate"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}var yO=($)=>typeof $==="boolean"?`${$}`:$===0?"0":$,SO=sG,Qw=($,J)=>(Y)=>{var G;if((J===null||J===void 0?void 0:J.variants)==null)return SO($,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className);let{variants:B,defaultVariants:g}=J,Q=Object.keys(B).map((k)=>{let L=Y===null||Y===void 0?void 0:Y[k],U=g===null||g===void 0?void 0:g[k];if(L===null)return null;let F=yO(L)||yO(U);return B[k][F]}),b=Y&&Object.entries(Y).reduce((k,L)=>{let[U,F]=L;if(F===void 0)return k;return k[U]=F,k},{}),K=J===null||J===void 0?void 0:(G=J.compoundVariants)===null||G===void 0?void 0:G.reduce((k,L)=>{let{class:U,className:F,...N}=L;return Object.entries(N).every((C)=>{let[I,A]=C;return Array.isArray(A)?A.includes({...g,...b}[I]):{...g,...b}[I]===A})?[...k,U,F]:k},[]);return SO($,Q,K,Y===null||Y===void 0?void 0:Y.class,Y===null||Y===void 0?void 0:Y.className)};var dO=P(H0(),1),ZD=Qw("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground ring-1 ring-foreground/10 hover:bg-primary/90",destructive:"bg-destructive text-white ring-1 ring-foreground/10 hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background ring-1 ring-foreground/10 hover:bg-accent hover:text-accent-foreground dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground ring-1 ring-foreground/10 hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function S1({className:$,variant:J,size:Y,asChild:G=!1,...B}){return dO.jsxDEV(G?pG:"button",{"data-slot":"button","data-variant":J??"default","data-size":Y??"default",className:O0(ZD({variant:J,size:Y,className:$})),...B},void 0,!1,void 0,this)}var Z2=P(Q0(),1);var R0=P(Q0(),1);var O9=P(Q0(),1);var e5=P(Q0(),1);var wv=P(z5(),1);function qW($){let J=$D($),Y=e5.forwardRef((G,B)=>{let{children:g,...Q}=G,b=e5.Children.toArray(g),K=b.find(JD);if(K){let k=K.props.children,L=b.map((U)=>{if(U===K){if(e5.Children.count(k)>1)return e5.Children.only(null);return e5.isValidElement(k)?k.props.children:null}else return U});return wv.jsx(J,{...Q,ref:B,children:e5.isValidElement(k)?e5.cloneElement(k,void 0,L):null})}return wv.jsx(J,{...Q,ref:B,children:g})});return Y.displayName=`${$}.Slot`,Y}function $D($){let J=e5.forwardRef((Y,G)=>{let{children:B,...g}=Y;if(e5.isValidElement(B)){let Q=zD(B),b=YD(g,B.props);if(B.type!==e5.Fragment)b.ref=G?h5(G,Q):Q;return e5.cloneElement(B,b)}return e5.Children.count(B)>1?e5.Children.only(null):null});return J.displayName=`${$}.SlotClone`,J}var XD=Symbol("radix.slottable");function JD($){return e5.isValidElement($)&&typeof $.type==="function"&&"__radixId"in $.type&&$.type.__radixId===XD}function YD($,J){let Y={...J};for(let G in J){let B=$[G],g=J[G];if(/^on[A-Z]/.test(G)){if(B&&g)Y[G]=(...b)=>{let K=g(...b);return B(...b),K};else if(B)Y[G]=B}else if(G==="style")Y[G]={...B,...g};else if(G==="className")Y[G]=[B,g].filter(Boolean).join(" ")}return{...$,...Y}}function zD($){let J=Object.getOwnPropertyDescriptor($.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return $.ref;if(J=Object.getOwnPropertyDescriptor($,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return $.props.ref;return $.props.ref||$.ref}var Zv=P(z5(),1),GD=P(Q0(),1);var BD=P(z5(),1);function $v($){let J=$+"CollectionProvider",[Y,G]=f2(J),[B,g]=Y(J,{collectionRef:{current:null},itemMap:new Map}),Q=(I)=>{let{scope:A,children:x}=I,S=O9.default.useRef(null),D=O9.default.useRef(new Map).current;return Zv.jsx(B,{scope:A,itemMap:D,collectionRef:S,children:x})};Q.displayName=J;let b=$+"CollectionSlot",K=qW(b),k=O9.default.forwardRef((I,A)=>{let{scope:x,children:S}=I,D=g(b,x),i=A1(A,D.collectionRef);return Zv.jsx(K,{ref:i,children:S})});k.displayName=b;let L=$+"CollectionItemSlot",U="data-radix-collection-item",F=qW(L),N=O9.default.forwardRef((I,A)=>{let{scope:x,children:S,...D}=I,i=O9.default.useRef(null),$0=A1(A,i),p=g(L,x);return O9.default.useEffect(()=>{return p.itemMap.set(i,{ref:i,...D}),()=>void p.itemMap.delete(i)}),Zv.jsx(F,{...{[U]:""},ref:$0,children:S})});N.displayName=L;function C(I){let A=g($+"CollectionConsumer",I);return O9.default.useCallback(()=>{let S=A.collectionRef.current;if(!S)return[];let D=Array.from(S.querySelectorAll(`[${U}]`));return Array.from(A.itemMap.values()).sort((p,j)=>D.indexOf(p.ref.current)-D.indexOf(j.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:Q,Slot:k,ItemSlot:N},C,G]}var DO=new WeakMap,Jn1=class $ extends Map{#w;constructor(J){super(J);this.#w=[...super.keys()],DO.set(this,!0)}set(J,Y){if(DO.get(this))if(this.has(J))this.#w[this.#w.indexOf(J)]=J;else this.#w.push(J);return super.set(J,Y),this}insert(J,Y,G){let B=this.has(Y),g=this.#w.length,Q=jO(J),b=Q>=0?Q:g+Q,K=b<0||b>=g?-1:b;if(K===this.size||B&&K===this.size-1||K===-1)return this.set(Y,G),this;let k=this.size+(B?0:1);if(Q<0)b++;let L=[...this.#w],U,F=!1;for(let N=b;N<k;N++)if(b===N){let C=L[N];if(L[N]===Y)C=L[N+1];if(B)this.delete(Y);U=this.get(C),this.set(Y,G)}else{if(!F&&L[N-1]===Y)F=!0;let C=L[F?N:N-1],I=U;U=this.get(C),this.delete(C),this.set(C,I)}return this}with(J,Y,G){let B=new $(this);return B.insert(J,Y,G),B}before(J){let Y=this.#w.indexOf(J)-1;if(Y<0)return;return this.entryAt(Y)}setBefore(J,Y,G){let B=this.#w.indexOf(J);if(B===-1)return this;return this.insert(B,Y,G)}after(J){let Y=this.#w.indexOf(J);if(Y=Y===-1||Y===this.size-1?-1:Y+1,Y===-1)return;return this.entryAt(Y)}setAfter(J,Y,G){let B=this.#w.indexOf(J);if(B===-1)return this;return this.insert(B+1,Y,G)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#w=[],super.clear()}delete(J){let Y=super.delete(J);if(Y)this.#w.splice(this.#w.indexOf(J),1);return Y}deleteAt(J){let Y=this.keyAt(J);if(Y!==void 0)return this.delete(Y);return!1}at(J){let Y=LW(this.#w,J);if(Y!==void 0)return this.get(Y)}entryAt(J){let Y=LW(this.#w,J);if(Y!==void 0)return[Y,this.get(Y)]}indexOf(J){return this.#w.indexOf(J)}keyAt(J){return LW(this.#w,J)}from(J,Y){let G=this.indexOf(J);if(G===-1)return;let B=G+Y;if(B<0)B=0;if(B>=this.size)B=this.size-1;return this.at(B)}keyFrom(J,Y){let G=this.indexOf(J);if(G===-1)return;let B=G+Y;if(B<0)B=0;if(B>=this.size)B=this.size-1;return this.keyAt(B)}find(J,Y){let G=0;for(let B of this){if(Reflect.apply(J,Y,[B,G,this]))return B;G++}return}findIndex(J,Y){let G=0;for(let B of this){if(Reflect.apply(J,Y,[B,G,this]))return G;G++}return-1}filter(J,Y){let G=[],B=0;for(let g of this){if(Reflect.apply(J,Y,[g,B,this]))G.push(g);B++}return new $(G)}map(J,Y){let G=[],B=0;for(let g of this)G.push([g[0],Reflect.apply(J,Y,[g,B,this])]),B++;return new $(G)}reduce(...J){let[Y,G]=J,B=0,g=G??this.at(0);for(let Q of this){if(B===0&&J.length===1)g=Q;else g=Reflect.apply(Y,this,[g,Q,B,this]);B++}return g}reduceRight(...J){let[Y,G]=J,B=G??this.at(-1);for(let g=this.size-1;g>=0;g--){let Q=this.at(g);if(g===this.size-1&&J.length===1)B=Q;else B=Reflect.apply(Y,this,[B,Q,g,this])}return B}toSorted(J){let Y=[...this.entries()].sort(J);return new $(Y)}toReversed(){let J=new $;for(let Y=this.size-1;Y>=0;Y--){let G=this.keyAt(Y),B=this.get(G);J.set(G,B)}return J}toSpliced(...J){let Y=[...this.entries()];return Y.splice(...J),new $(Y)}slice(J,Y){let G=new $,B=this.size-1;if(J===void 0)return G;if(J<0)J=J+this.size;if(Y!==void 0&&Y>0)B=Y-1;for(let g=J;g<=B;g++){let Q=this.keyAt(g),b=this.get(Q);G.set(Q,b)}return G}every(J,Y){let G=0;for(let B of this){if(!Reflect.apply(J,Y,[B,G,this]))return!1;G++}return!0}some(J,Y){let G=0;for(let B of this){if(Reflect.apply(J,Y,[B,G,this]))return!0;G++}return!1}};function LW($,J){if("at"in Array.prototype)return Array.prototype.at.call($,J);let Y=vD($,J);return Y===-1?void 0:$[Y]}function vD($,J){let Y=$.length,G=jO(J),B=G>=0?G:Y+G;return B<0||B>=Y?-1:B}function jO($){return $!==$||$===0?0:Math.trunc($)}var Xv=P(Q0(),1),HD=P(z5(),1),gD=Xv.createContext(void 0);function C9($){let J=Xv.useContext(gD);return $||J||"ltr"}var Kw=P(Q0(),1);var lO=["top","right","bottom","left"];var{min:h6,max:s2,round:TJ,floor:IJ}=Math,l4=($)=>({x:$,y:$}),bD={left:"right",right:"left",bottom:"top",top:"bottom"};function Yv($,J,Y){return s2($,h6(J,Y))}function V6($,J){return typeof $==="function"?$(J):$}function R6($){return $.split("-")[0]}function l7($){return $.split("-")[1]}function zv($){return $==="x"?"y":"x"}function Gv($){return $==="y"?"height":"width"}function c4($){let J=$[0];return J==="t"||J==="b"?"y":"x"}function vv($){return zv(c4($))}function cO($,J,Y){if(Y===void 0)Y=!1;let G=l7($),B=vv($),g=Gv(B),Q=B==="x"?G===(Y?"end":"start")?"right":"left":G==="start"?"bottom":"top";if(J.reference[g]>J.floating[g])Q=NJ(Q);return[Q,NJ(Q)]}function aO($){let J=NJ($);return[Jv($),J,Jv(J)]}function Jv($){return $.includes("start")?$.replace("start","end"):$.replace("end","start")}var EO=["left","right"],uO=["right","left"],QD=["top","bottom"],WD=["bottom","top"];function KD($,J,Y){switch($){case"top":case"bottom":if(Y)return J?uO:EO;return J?EO:uO;case"left":case"right":return J?QD:WD;default:return[]}}function iO($,J,Y,G){let B=l7($),g=KD(R6($),Y==="start",G);if(B){if(g=g.map((Q)=>Q+"-"+B),J)g=g.concat(g.map(Jv))}return g}function NJ($){let J=R6($);return bD[J]+$.slice(J.length)}function UD($){return{top:0,right:0,bottom:0,left:0,...$}}function kW($){return typeof $!=="number"?UD($):{top:$,right:$,bottom:$,left:$}}function c7($){let{x:J,y:Y,width:G,height:B}=$;return{width:G,height:B,top:Y,left:J,right:J+G,bottom:Y+B,x:J,y:Y}}function pO($,J,Y){let{reference:G,floating:B}=$,g=c4(J),Q=vv(J),b=Gv(Q),K=R6(J),k=g==="y",L=G.x+G.width/2-B.width/2,U=G.y+G.height/2-B.height/2,F=G[b]/2-B[b]/2,N;switch(K){case"top":N={x:L,y:G.y-B.height};break;case"bottom":N={x:L,y:G.y+G.height};break;case"right":N={x:G.x+G.width,y:U};break;case"left":N={x:G.x-B.width,y:U};break;default:N={x:G.x,y:G.y}}switch(l7(J)){case"start":N[Q]-=F*(Y&&k?-1:1);break;case"end":N[Q]+=F*(Y&&k?-1:1);break}return N}async function oO($,J){var Y;if(J===void 0)J={};let{x:G,y:B,platform:g,rects:Q,elements:b,strategy:K}=$,{boundary:k="clippingAncestors",rootBoundary:L="viewport",elementContext:U="floating",altBoundary:F=!1,padding:N=0}=V6(J,$),C=kW(N),A=b[F?U==="floating"?"reference":"floating":U],x=c7(await g.getClippingRect({element:((Y=await(g.isElement==null?void 0:g.isElement(A)))!=null?Y:!0)?A:A.contextElement||await(g.getDocumentElement==null?void 0:g.getDocumentElement(b.floating)),boundary:k,rootBoundary:L,strategy:K})),S=U==="floating"?{x:G,y:B,width:Q.floating.width,height:Q.floating.height}:Q.reference,D=await(g.getOffsetParent==null?void 0:g.getOffsetParent(b.floating)),i=await(g.isElement==null?void 0:g.isElement(D))?await(g.getScale==null?void 0:g.getScale(D))||{x:1,y:1}:{x:1,y:1},$0=c7(g.convertOffsetParentRelativeRectToViewportRelativeRect?await g.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:S,offsetParent:D,strategy:K}):S);return{top:(x.top-$0.top+C.top)/i.y,bottom:($0.bottom-x.bottom+C.bottom)/i.y,left:(x.left-$0.left+C.left)/i.x,right:($0.right-x.right+C.right)/i.x}}var qD=50,sO=async($,J,Y)=>{let{placement:G="bottom",strategy:B="absolute",middleware:g=[],platform:Q}=Y,b=Q.detectOverflow?Q:{...Q,detectOverflow:oO},K=await(Q.isRTL==null?void 0:Q.isRTL(J)),k=await Q.getElementRects({reference:$,floating:J,strategy:B}),{x:L,y:U}=pO(k,G,K),F=G,N=0,C={};for(let I=0;I<g.length;I++){let A=g[I];if(!A)continue;let{name:x,fn:S}=A,{x:D,y:i,data:$0,reset:p}=await S({x:L,y:U,initialPlacement:G,placement:F,strategy:B,middlewareData:C,rects:k,platform:b,elements:{reference:$,floating:J}});if(L=D!=null?D:L,U=i!=null?i:U,C[x]={...C[x],...$0},p&&N<qD){if(N++,typeof p==="object"){if(p.placement)F=p.placement;if(p.rects)k=p.rects===!0?await Q.getElementRects({reference:$,floating:J,strategy:B}):p.rects;({x:L,y:U}=pO(k,F,K))}I=-1}}return{x:L,y:U,placement:F,strategy:B,middlewareData:C}},tO=($)=>({name:"arrow",options:$,async fn(J){let{x:Y,y:G,placement:B,rects:g,platform:Q,elements:b,middlewareData:K}=J,{element:k,padding:L=0}=V6($,J)||{};if(k==null)return{};let U=kW(L),F={x:Y,y:G},N=vv(B),C=Gv(N),I=await Q.getDimensions(k),A=N==="y",x=A?"top":"left",S=A?"bottom":"right",D=A?"clientHeight":"clientWidth",i=g.reference[C]+g.reference[N]-F[N]-g.floating[C],$0=F[N]-g.reference[N],p=await(Q.getOffsetParent==null?void 0:Q.getOffsetParent(k)),j=p?p[D]:0;if(!j||!await(Q.isElement==null?void 0:Q.isElement(p)))j=b.floating[D]||g.floating[C];let Z0=i/2-$0/2,s=j/2-I[C]/2-1,E=h6(U[x],s),g0=h6(U[S],s),G0=E,q0=j-I[C]-g0,k0=j/2-I[C]/2+Z0,e=Yv(G0,k0,q0),v0=!K.arrow&&l7(B)!=null&&k0!==e&&g.reference[C]/2-(k0<G0?E:g0)-I[C]/2<0,u=v0?k0<G0?k0-G0:k0-q0:0;return{[N]:F[N]+u,data:{[N]:e,centerOffset:k0-e-u,...v0&&{alignmentOffset:u}},reset:v0}}});var eO=function($){if($===void 0)$={};return{name:"flip",options:$,async fn(J){var Y,G;let{placement:B,middlewareData:g,rects:Q,initialPlacement:b,platform:K,elements:k}=J,{mainAxis:L=!0,crossAxis:U=!0,fallbackPlacements:F,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:I=!0,...A}=V6($,J);if((Y=g.arrow)!=null&&Y.alignmentOffset)return{};let x=R6(B),S=c4(b),D=R6(b)===b,i=await(K.isRTL==null?void 0:K.isRTL(k.floating)),$0=F||(D||!I?[NJ(b)]:aO(b)),p=C!=="none";if(!F&&p)$0.push(...iO(b,I,C,i));let j=[b,...$0],Z0=await K.detectOverflow(J,A),s=[],E=((G=g.flip)==null?void 0:G.overflows)||[];if(L)s.push(Z0[x]);if(U){let k0=cO(B,Q,i);s.push(Z0[k0[0]],Z0[k0[1]])}if(E=[...E,{placement:B,overflows:s}],!s.every((k0)=>k0<=0)){var g0,G0;let k0=(((g0=g.flip)==null?void 0:g0.index)||0)+1,e=j[k0];if(e){if(!(U==="alignment"?S!==c4(e):!1)||E.every((o)=>c4(o.placement)===S?o.overflows[0]>0:!0))return{data:{index:k0,overflows:E},reset:{placement:e}}}let v0=(G0=E.filter((u)=>u.overflows[0]<=0).sort((u,o)=>u.overflows[1]-o.overflows[1])[0])==null?void 0:G0.placement;if(!v0)switch(N){case"bestFit":{var q0;let u=(q0=E.filter((o)=>{if(p){let l=c4(o.placement);return l===S||l==="y"}return!0}).map((o)=>[o.placement,o.overflows.filter((l)=>l>0).reduce((l,M)=>l+M,0)]).sort((o,l)=>o[1]-l[1])[0])==null?void 0:q0[0];if(u)v0=u;break}case"initialPlacement":v0=b;break}if(B!==v0)return{reset:{placement:v0}}}return{}}}};function rO($,J){return{top:$.top-J.height,right:$.right-J.width,bottom:$.bottom-J.height,left:$.left-J.width}}function nO($){return lO.some((J)=>$[J]>=0)}var wC=function($){if($===void 0)$={};return{name:"hide",options:$,async fn(J){let{rects:Y,platform:G}=J,{strategy:B="referenceHidden",...g}=V6($,J);switch(B){case"referenceHidden":{let Q=await G.detectOverflow(J,{...g,elementContext:"reference"}),b=rO(Q,Y.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:nO(b)}}}case"escaped":{let Q=await G.detectOverflow(J,{...g,altBoundary:!0}),b=rO(Q,Y.floating);return{data:{escapedOffsets:b,escaped:nO(b)}}}default:return{}}}}};var ZC=new Set(["left","top"]);async function LD($,J){let{placement:Y,platform:G,elements:B}=$,g=await(G.isRTL==null?void 0:G.isRTL(B.floating)),Q=R6(Y),b=l7(Y),K=c4(Y)==="y",k=ZC.has(Q)?-1:1,L=g&&K?-1:1,U=V6(J,$),{mainAxis:F,crossAxis:N,alignmentAxis:C}=typeof U==="number"?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};if(b&&typeof C==="number")N=b==="end"?C*-1:C;return K?{x:N*L,y:F*k}:{x:F*k,y:N*L}}var $C=function($){if($===void 0)$=0;return{name:"offset",options:$,async fn(J){var Y,G;let{x:B,y:g,placement:Q,middlewareData:b}=J,K=await LD(J,$);if(Q===((Y=b.offset)==null?void 0:Y.placement)&&(G=b.arrow)!=null&&G.alignmentOffset)return{};return{x:B+K.x,y:g+K.y,data:{...K,placement:Q}}}}},XC=function($){if($===void 0)$={};return{name:"shift",options:$,async fn(J){let{x:Y,y:G,placement:B,platform:g}=J,{mainAxis:Q=!0,crossAxis:b=!1,limiter:K={fn:(x)=>{let{x:S,y:D}=x;return{x:S,y:D}}},...k}=V6($,J),L={x:Y,y:G},U=await g.detectOverflow(J,k),F=c4(R6(B)),N=zv(F),C=L[N],I=L[F];if(Q){let x=N==="y"?"top":"left",S=N==="y"?"bottom":"right",D=C+U[x],i=C-U[S];C=Yv(D,C,i)}if(b){let x=F==="y"?"top":"left",S=F==="y"?"bottom":"right",D=I+U[x],i=I-U[S];I=Yv(D,I,i)}let A=K.fn({...J,[N]:C,[F]:I});return{...A,data:{x:A.x-Y,y:A.y-G,enabled:{[N]:Q,[F]:b}}}}}},JC=function($){if($===void 0)$={};return{options:$,fn(J){let{x:Y,y:G,placement:B,rects:g,middlewareData:Q}=J,{offset:b=0,mainAxis:K=!0,crossAxis:k=!0}=V6($,J),L={x:Y,y:G},U=c4(B),F=zv(U),N=L[F],C=L[U],I=V6(b,J),A=typeof I==="number"?{mainAxis:I,crossAxis:0}:{mainAxis:0,crossAxis:0,...I};if(K){let D=F==="y"?"height":"width",i=g.reference[F]-g.floating[D]+A.mainAxis,$0=g.reference[F]+g.reference[D]-A.mainAxis;if(N<i)N=i;else if(N>$0)N=$0}if(k){var x,S;let D=F==="y"?"width":"height",i=ZC.has(R6(B)),$0=g.reference[U]-g.floating[D]+(i?((x=Q.offset)==null?void 0:x[U])||0:0)+(i?0:A.crossAxis),p=g.reference[U]+g.reference[D]+(i?0:((S=Q.offset)==null?void 0:S[U])||0)-(i?A.crossAxis:0);if(C<$0)C=$0;else if(C>p)C=p}return{[F]:N,[U]:C}}}},YC=function($){if($===void 0)$={};return{name:"size",options:$,async fn(J){var Y,G;let{placement:B,rects:g,platform:Q,elements:b}=J,{apply:K=()=>{},...k}=V6($,J),L=await Q.detectOverflow(J,k),U=R6(B),F=l7(B),N=c4(B)==="y",{width:C,height:I}=g.floating,A,x;if(U==="top"||U==="bottom")A=U,x=F===(await(Q.isRTL==null?void 0:Q.isRTL(b.floating))?"start":"end")?"left":"right";else x=U,A=F==="end"?"top":"bottom";let S=I-L.top-L.bottom,D=C-L.left-L.right,i=h6(I-L[A],S),$0=h6(C-L[x],D),p=!J.middlewareData.shift,j=i,Z0=$0;if((Y=J.middlewareData.shift)!=null&&Y.enabled.x)Z0=D;if((G=J.middlewareData.shift)!=null&&G.enabled.y)j=S;if(p&&!F){let E=s2(L.left,0),g0=s2(L.right,0),G0=s2(L.top,0),q0=s2(L.bottom,0);if(N)Z0=C-2*(E!==0||g0!==0?E+g0:s2(L.left,L.right));else j=I-2*(G0!==0||q0!==0?G0+q0:s2(L.top,L.bottom))}await K({...J,availableWidth:Z0,availableHeight:j});let s=await Q.getDimensions(b.floating);if(C!==s.width||I!==s.height)return{reset:{rects:!0}};return{}}}};function Bv(){return typeof window<"u"}function p7($){if(GC($))return($.nodeName||"").toLowerCase();return"#document"}function Ww($){var J;return($==null||(J=$.ownerDocument)==null?void 0:J.defaultView)||window}function a4($){var J;return(J=(GC($)?$.ownerDocument:$.document)||window.document)==null?void 0:J.documentElement}function GC($){if(!Bv())return!1;return $ instanceof Node||$ instanceof Ww($).Node}function K4($){if(!Bv())return!1;return $ instanceof Element||$ instanceof Ww($).Element}function y6($){if(!Bv())return!1;return $ instanceof HTMLElement||$ instanceof Ww($).HTMLElement}function zC($){if(!Bv()||typeof ShadowRoot>"u")return!1;return $ instanceof ShadowRoot||$ instanceof Ww($).ShadowRoot}function VZ($){let{overflow:J,overflowX:Y,overflowY:G,display:B}=U4($);return/auto|scroll|overlay|hidden|clip/.test(J+G+Y)&&B!=="inline"&&B!=="contents"}function vC($){return/^(table|td|th)$/.test(p7($))}function _J($){try{if($.matches(":popover-open"))return!0}catch(J){}try{return $.matches(":modal")}catch(J){return!1}}var kD=/transform|translate|scale|rotate|perspective|filter/,FD=/paint|layout|strict|content/,a7=($)=>!!$&&$!=="none",FW;function Hv($){let J=K4($)?U4($):$;return a7(J.transform)||a7(J.translate)||a7(J.scale)||a7(J.rotate)||a7(J.perspective)||!gv()&&(a7(J.backdropFilter)||a7(J.filter))||kD.test(J.willChange||"")||FD.test(J.contain||"")}function BC($){let J=q8($);while(y6(J)&&!r7(J)){if(Hv(J))return J;else if(_J(J))return null;J=q8(J)}return null}function gv(){if(FW==null)FW=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return FW}function r7($){return/^(html|body|#document)$/.test(p7($))}function U4($){return Ww($).getComputedStyle($)}function OJ($){if(K4($))return{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop};return{scrollLeft:$.scrollX,scrollTop:$.scrollY}}function q8($){if(p7($)==="html")return $;let J=$.assignedSlot||$.parentNode||zC($)&&$.host||a4($);return zC(J)?J.host:J}function HC($){let J=q8($);if(r7(J))return $.ownerDocument?$.ownerDocument.body:$.body;if(y6(J)&&VZ(J))return J;return HC(J)}function i7($,J,Y){var G;if(J===void 0)J=[];if(Y===void 0)Y=!0;let B=HC($),g=B===((G=$.ownerDocument)==null?void 0:G.body),Q=Ww(B);if(g){let b=bv(Q);return J.concat(Q,Q.visualViewport||[],VZ(B)?B:[],b&&Y?i7(b):[])}else return J.concat(B,i7(B,[],Y))}function bv($){return $.parent&&Object.getPrototypeOf($.parent)?$.frameElement:null}function WC($){let J=U4($),Y=parseFloat(J.width)||0,G=parseFloat(J.height)||0,B=y6($),g=B?$.offsetWidth:Y,Q=B?$.offsetHeight:G,b=TJ(Y)!==g||TJ(G)!==Q;if(b)Y=g,G=Q;return{width:Y,height:G,$:b}}function TW($){return!K4($)?$.contextElement:$}function RZ($){let J=TW($);if(!y6(J))return l4(1);let Y=J.getBoundingClientRect(),{width:G,height:B,$:g}=WC(J),Q=(g?TJ(Y.width):Y.width)/G,b=(g?TJ(Y.height):Y.height)/B;if(!Q||!Number.isFinite(Q))Q=1;if(!b||!Number.isFinite(b))b=1;return{x:Q,y:b}}var ND=l4(0);function KC($){let J=Ww($);if(!gv()||!J.visualViewport)return ND;return{x:J.visualViewport.offsetLeft,y:J.visualViewport.offsetTop}}function TD($,J,Y){if(J===void 0)J=!1;if(!Y||J&&Y!==Ww($))return!1;return J}function n7($,J,Y,G){if(J===void 0)J=!1;if(Y===void 0)Y=!1;let B=$.getBoundingClientRect(),g=TW($),Q=l4(1);if(J)if(G){if(K4(G))Q=RZ(G)}else Q=RZ($);let b=TD(g,Y,G)?KC(g):l4(0),K=(B.left+b.x)/Q.x,k=(B.top+b.y)/Q.y,L=B.width/Q.x,U=B.height/Q.y;if(g){let F=Ww(g),N=G&&K4(G)?Ww(G):G,C=F,I=bv(C);while(I&&G&&N!==C){let A=RZ(I),x=I.getBoundingClientRect(),S=U4(I),D=x.left+(I.clientLeft+parseFloat(S.paddingLeft))*A.x,i=x.top+(I.clientTop+parseFloat(S.paddingTop))*A.y;K*=A.x,k*=A.y,L*=A.x,U*=A.y,K+=D,k+=i,C=Ww(I),I=bv(C)}}return c7({width:L,height:U,x:K,y:k})}function Qv($,J){let Y=OJ($).scrollLeft;if(!J)return n7(a4($)).left+Y;return J.left+Y}function UC($,J){let Y=$.getBoundingClientRect(),G=Y.left+J.scrollLeft-Qv($,Y),B=Y.top+J.scrollTop;return{x:G,y:B}}function ID($){let{elements:J,rect:Y,offsetParent:G,strategy:B}=$,g=B==="fixed",Q=a4(G),b=J?_J(J.floating):!1;if(G===Q||b&&g)return Y;let K={scrollLeft:0,scrollTop:0},k=l4(1),L=l4(0),U=y6(G);if(U||!U&&!g){if(p7(G)!=="body"||VZ(Q))K=OJ(G);if(U){let N=n7(G);k=RZ(G),L.x=N.x+G.clientLeft,L.y=N.y+G.clientTop}}let F=Q&&!U&&!g?UC(Q,K):l4(0);return{width:Y.width*k.x,height:Y.height*k.y,x:Y.x*k.x-K.scrollLeft*k.x+L.x+F.x,y:Y.y*k.y-K.scrollTop*k.y+L.y+F.y}}function _D($){return Array.from($.getClientRects())}function OD($){let J=a4($),Y=OJ($),G=$.ownerDocument.body,B=s2(J.scrollWidth,J.clientWidth,G.scrollWidth,G.clientWidth),g=s2(J.scrollHeight,J.clientHeight,G.scrollHeight,G.clientHeight),Q=-Y.scrollLeft+Qv($),b=-Y.scrollTop;if(U4(G).direction==="rtl")Q+=s2(J.clientWidth,G.clientWidth)-B;return{width:B,height:g,x:Q,y:b}}var gC=25;function CD($,J){let Y=Ww($),G=a4($),B=Y.visualViewport,g=G.clientWidth,Q=G.clientHeight,b=0,K=0;if(B){g=B.width,Q=B.height;let L=gv();if(!L||L&&J==="fixed")b=B.offsetLeft,K=B.offsetTop}let k=Qv(G);if(k<=0){let L=G.ownerDocument,U=L.body,F=getComputedStyle(U),N=L.compatMode==="CSS1Compat"?parseFloat(F.marginLeft)+parseFloat(F.marginRight)||0:0,C=Math.abs(G.clientWidth-U.clientWidth-N);if(C<=gC)g-=C}else if(k<=gC)g+=k;return{width:g,height:Q,x:b,y:K}}function AD($,J){let Y=n7($,!0,J==="fixed"),G=Y.top+$.clientTop,B=Y.left+$.clientLeft,g=y6($)?RZ($):l4(1),Q=$.clientWidth*g.x,b=$.clientHeight*g.y,K=B*g.x,k=G*g.y;return{width:Q,height:b,x:K,y:k}}function bC($,J,Y){let G;if(J==="viewport")G=CD($,Y);else if(J==="document")G=OD(a4($));else if(K4(J))G=AD(J,Y);else{let B=KC($);G={x:J.x-B.x,y:J.y-B.y,width:J.width,height:J.height}}return c7(G)}function qC($,J){let Y=q8($);if(Y===J||!K4(Y)||r7(Y))return!1;return U4(Y).position==="fixed"||qC(Y,J)}function MD($,J){let Y=J.get($);if(Y)return Y;let G=i7($,[],!1).filter((b)=>K4(b)&&p7(b)!=="body"),B=null,g=U4($).position==="fixed",Q=g?q8($):$;while(K4(Q)&&!r7(Q)){let b=U4(Q),K=Hv(Q);if(!K&&b.position==="fixed")B=null;if(g?!K&&!B:!K&&b.position==="static"&&!!B&&(B.position==="absolute"||B.position==="fixed")||VZ(Q)&&!K&&qC($,Q))G=G.filter((L)=>L!==Q);else B=b;Q=q8(Q)}return J.set($,G),G}function xD($){let{element:J,boundary:Y,rootBoundary:G,strategy:B}=$,Q=[...Y==="clippingAncestors"?_J(J)?[]:MD(J,this._c):[].concat(Y),G],b=bC(J,Q[0],B),K=b.top,k=b.right,L=b.bottom,U=b.left;for(let F=1;F<Q.length;F++){let N=bC(J,Q[F],B);K=s2(N.top,K),k=h6(N.right,k),L=h6(N.bottom,L),U=s2(N.left,U)}return{width:k-U,height:L-K,x:U,y:K}}function mD($){let{width:J,height:Y}=WC($);return{width:J,height:Y}}function PD($,J,Y){let G=y6(J),B=a4(J),g=Y==="fixed",Q=n7($,!0,g,J),b={scrollLeft:0,scrollTop:0},K=l4(0);function k(){K.x=Qv(B)}if(G||!G&&!g){if(p7(J)!=="body"||VZ(B))b=OJ(J);if(G){let N=n7(J,!0,g,J);K.x=N.x+J.clientLeft,K.y=N.y+J.clientTop}else if(B)k()}if(g&&!G&&B)k();let L=B&&!G&&!g?UC(B,b):l4(0),U=Q.left+b.scrollLeft-K.x-L.x,F=Q.top+b.scrollTop-K.y-L.y;return{x:U,y:F,width:Q.width,height:Q.height}}function NW($){return U4($).position==="static"}function QC($,J){if(!y6($)||U4($).position==="fixed")return null;if(J)return J($);let Y=$.offsetParent;if(a4($)===Y)Y=Y.ownerDocument.body;return Y}function LC($,J){let Y=Ww($);if(_J($))return Y;if(!y6($)){let B=q8($);while(B&&!r7(B)){if(K4(B)&&!NW(B))return B;B=q8(B)}return Y}let G=QC($,J);while(G&&vC(G)&&NW(G))G=QC(G,J);if(G&&r7(G)&&NW(G)&&!Hv(G))return Y;return G||BC($)||Y}var fD=async function($){let J=this.getOffsetParent||LC,Y=this.getDimensions,G=await Y($.floating);return{reference:PD($.reference,await J($.floating),$.strategy),floating:{x:0,y:0,width:G.width,height:G.height}}};function hD($){return U4($).direction==="rtl"}var kC={convertOffsetParentRelativeRectToViewportRelativeRect:ID,getDocumentElement:a4,getClippingRect:xD,getOffsetParent:LC,getElementRects:fD,getClientRects:_D,getDimensions:mD,getScale:RZ,isElement:K4,isRTL:hD};function FC($,J){return $.x===J.x&&$.y===J.y&&$.width===J.width&&$.height===J.height}function VD($,J){let Y=null,G,B=a4($);function g(){var b;clearTimeout(G),(b=Y)==null||b.disconnect(),Y=null}function Q(b,K){if(b===void 0)b=!1;if(K===void 0)K=1;g();let k=$.getBoundingClientRect(),{left:L,top:U,width:F,height:N}=k;if(!b)J();if(!F||!N)return;let C=IJ(U),I=IJ(B.clientWidth-(L+F)),A=IJ(B.clientHeight-(U+N)),x=IJ(L),D={rootMargin:-C+"px "+-I+"px "+-A+"px "+-x+"px",threshold:s2(0,h6(1,K))||1},i=!0;function $0(p){let j=p[0].intersectionRatio;if(j!==K){if(!i)return Q();if(!j)G=setTimeout(()=>{Q(!1,0.0000001)},1000);else Q(!1,j)}if(j===1&&!FC(k,$.getBoundingClientRect()))Q();i=!1}try{Y=new IntersectionObserver($0,{...D,root:B.ownerDocument})}catch(p){Y=new IntersectionObserver($0,D)}Y.observe($)}return Q(!0),g}function IW($,J,Y,G){if(G===void 0)G={};let{ancestorScroll:B=!0,ancestorResize:g=!0,elementResize:Q=typeof ResizeObserver==="function",layoutShift:b=typeof IntersectionObserver==="function",animationFrame:K=!1}=G,k=TW($),L=B||g?[...k?i7(k):[],...J?i7(J):[]]:[];L.forEach((x)=>{B&&x.addEventListener("scroll",Y,{passive:!0}),g&&x.addEventListener("resize",Y)});let U=k&&b?VD(k,Y):null,F=-1,N=null;if(Q){if(N=new ResizeObserver((x)=>{let[S]=x;if(S&&S.target===k&&N&&J)N.unobserve(J),cancelAnimationFrame(F),F=requestAnimationFrame(()=>{var D;(D=N)==null||D.observe(J)});Y()}),k&&!K)N.observe(k);if(J)N.observe(J)}let C,I=K?n7($):null;if(K)A();function A(){let x=n7($);if(I&&!FC(I,x))Y();I=x,C=requestAnimationFrame(A)}return Y(),()=>{var x;if(L.forEach((S)=>{B&&S.removeEventListener("scroll",Y),g&&S.removeEventListener("resize",Y)}),U==null||U(),(x=N)==null||x.disconnect(),N=null,K)cancelAnimationFrame(C)}}var NC=$C;var TC=XC,IC=eO,_C=YC,OC=wC,_W=tO;var CC=JC,OW=($,J,Y)=>{let G=new Map,B={platform:kC,...Y},g={...B.platform,_c:G};return sO($,J,{...B,platform:g})};var c5=P(Q0(),1),MC=P(Q0(),1),xC=P(b9(),1),RD=typeof document<"u",yD=function(){},Wv=RD?MC.useLayoutEffect:yD;function Kv($,J){if($===J)return!0;if(typeof $!==typeof J)return!1;if(typeof $==="function"&&$.toString()===J.toString())return!0;let Y,G,B;if($&&J&&typeof $==="object"){if(Array.isArray($)){if(Y=$.length,Y!==J.length)return!1;for(G=Y;G--!==0;)if(!Kv($[G],J[G]))return!1;return!0}if(B=Object.keys($),Y=B.length,Y!==Object.keys(J).length)return!1;for(G=Y;G--!==0;)if(!{}.hasOwnProperty.call(J,B[G]))return!1;for(G=Y;G--!==0;){let g=B[G];if(g==="_owner"&&$.$$typeof)continue;if(!Kv($[g],J[g]))return!1}return!0}return $!==$&&J!==J}function mC($){if(typeof window>"u")return 1;return($.ownerDocument.defaultView||window).devicePixelRatio||1}function AC($,J){let Y=mC($);return Math.round(J*Y)/Y}function CW($){let J=c5.useRef($);return Wv(()=>{J.current=$}),J}function PC($){if($===void 0)$={};let{placement:J="bottom",strategy:Y="absolute",middleware:G=[],platform:B,elements:{reference:g,floating:Q}={},transform:b=!0,whileElementsMounted:K,open:k}=$,[L,U]=c5.useState({x:0,y:0,strategy:Y,placement:J,middlewareData:{},isPositioned:!1}),[F,N]=c5.useState(G);if(!Kv(F,G))N(G);let[C,I]=c5.useState(null),[A,x]=c5.useState(null),S=c5.useCallback((o)=>{if(o!==p.current)p.current=o,I(o)},[]),D=c5.useCallback((o)=>{if(o!==j.current)j.current=o,x(o)},[]),i=g||C,$0=Q||A,p=c5.useRef(null),j=c5.useRef(null),Z0=c5.useRef(L),s=K!=null,E=CW(K),g0=CW(B),G0=CW(k),q0=c5.useCallback(()=>{if(!p.current||!j.current)return;let o={placement:J,strategy:Y,middleware:F};if(g0.current)o.platform=g0.current;OW(p.current,j.current,o).then((l)=>{let M={...l,isPositioned:G0.current!==!1};if(k0.current&&!Kv(Z0.current,M))Z0.current=M,xC.flushSync(()=>{U(M)})})},[F,J,Y,g0,G0]);Wv(()=>{if(k===!1&&Z0.current.isPositioned)Z0.current.isPositioned=!1,U((o)=>({...o,isPositioned:!1}))},[k]);let k0=c5.useRef(!1);Wv(()=>{return k0.current=!0,()=>{k0.current=!1}},[]),Wv(()=>{if(i)p.current=i;if($0)j.current=$0;if(i&&$0){if(E.current)return E.current(i,$0,q0);q0()}},[i,$0,q0,E,s]);let e=c5.useMemo(()=>({reference:p,floating:j,setReference:S,setFloating:D}),[S,D]),v0=c5.useMemo(()=>({reference:i,floating:$0}),[i,$0]),u=c5.useMemo(()=>{let o={position:Y,left:0,top:0};if(!v0.floating)return o;let l=AC(v0.floating,L.x),M=AC(v0.floating,L.y);if(b)return{...o,transform:"translate("+l+"px, "+M+"px)",...mC(v0.floating)>=1.5&&{willChange:"transform"}};return{position:Y,left:l,top:M}},[Y,b,v0.floating,L.x,L.y]);return c5.useMemo(()=>({...L,update:q0,refs:e,elements:v0,floatingStyles:u}),[L,q0,e,v0,u])}var SD=($)=>{function J(Y){return{}.hasOwnProperty.call(Y,"current")}return{name:"arrow",options:$,fn(Y){let{element:G,padding:B}=typeof $==="function"?$(Y):$;if(G&&J(G)){if(G.current!=null)return _W({element:G.current,padding:B}).fn(Y);return{}}if(G)return _W({element:G,padding:B}).fn(Y);return{}}}},fC=($,J)=>{let Y=NC($);return{name:Y.name,fn:Y.fn,options:[$,J]}},hC=($,J)=>{let Y=TC($);return{name:Y.name,fn:Y.fn,options:[$,J]}},VC=($,J)=>{return{fn:CC($).fn,options:[$,J]}},RC=($,J)=>{let Y=IC($);return{name:Y.name,fn:Y.fn,options:[$,J]}},yC=($,J)=>{let Y=_C($);return{name:Y.name,fn:Y.fn,options:[$,J]}};var SC=($,J)=>{let Y=OC($);return{name:Y.name,fn:Y.fn,options:[$,J]}};var dC=($,J)=>{let Y=SD($);return{name:Y.name,fn:Y.fn,options:[$,J]}};var DC=P(Q0(),1);var AW=P(z5(),1),dD="Arrow",jC=DC.forwardRef(($,J)=>{let{children:Y,width:G=10,height:B=5,...g}=$;return AW.jsx(g1.svg,{...g,ref:J,width:G,height:B,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:$.asChild?Y:AW.jsx("polygon",{points:"0,0 30,0 15,10"})})});jC.displayName=dD;var EC=jC;var uC=P(Q0(),1);function lC($){let[J,Y]=uC.useState(void 0);return h2(()=>{if($){Y({width:$.offsetWidth,height:$.offsetHeight});let G=new ResizeObserver((B)=>{if(!Array.isArray(B))return;if(!B.length)return;let g=B[0],Q,b;if("borderBoxSize"in g){let K=g.borderBoxSize,k=Array.isArray(K)?K[0]:K;Q=k.inlineSize,b=k.blockSize}else Q=$.offsetWidth,b=$.offsetHeight;Y({width:Q,height:b})});return G.observe($,{box:"border-box"}),()=>G.unobserve($)}else Y(void 0)},[$]),J}var A9=P(z5(),1);var MW="Popper",[cC,xW]=f2(MW),[jD,aC]=cC(MW),iC=($)=>{let{__scopePopper:J,children:Y}=$,[G,B]=Kw.useState(null);return A9.jsx(jD,{scope:J,anchor:G,onAnchorChange:B,children:Y})};iC.displayName=MW;var pC="PopperAnchor",rC=Kw.forwardRef(($,J)=>{let{__scopePopper:Y,virtualRef:G,...B}=$,g=aC(pC,Y),Q=Kw.useRef(null),b=A1(J,Q),K=Kw.useRef(null);return Kw.useEffect(()=>{let k=K.current;if(K.current=G?.current||Q.current,k!==K.current)g.onAnchorChange(K.current)}),G?null:A9.jsx(g1.div,{...B,ref:b})});rC.displayName=pC;var mW="PopperContent",[ED,uD]=cC(mW),nC=Kw.forwardRef(($,J)=>{let{__scopePopper:Y,side:G="bottom",sideOffset:B=0,align:g="center",alignOffset:Q=0,arrowPadding:b=0,avoidCollisions:K=!0,collisionBoundary:k=[],collisionPadding:L=0,sticky:U="partial",hideWhenDetached:F=!1,updatePositionStrategy:N="optimized",onPlaced:C,...I}=$,A=aC(mW,Y),[x,S]=Kw.useState(null),D=A1(J,(w0)=>S(w0)),[i,$0]=Kw.useState(null),p=lC(i),j=p?.width??0,Z0=p?.height??0,s=G+(g!=="center"?"-"+g:""),E=typeof L==="number"?L:{top:0,right:0,bottom:0,left:0,...L},g0=Array.isArray(k)?k:[k],G0=g0.length>0,q0={padding:E,boundary:g0.filter(cD),altBoundary:G0},{refs:k0,floatingStyles:e,placement:v0,isPositioned:u,middlewareData:o}=PC({strategy:"fixed",placement:s,whileElementsMounted:(...w0)=>{return IW(...w0,{animationFrame:N==="always"})},elements:{reference:A.anchor},middleware:[fC({mainAxis:B+Z0,alignmentAxis:Q}),K&&hC({mainAxis:!0,crossAxis:!1,limiter:U==="partial"?VC():void 0,...q0}),K&&RC({...q0}),yC({...q0,apply:({elements:w0,rects:W0,availableWidth:N0,availableHeight:r0})=>{let{width:b0,height:L5}=W0.reference,r1=w0.floating.style;r1.setProperty("--radix-popper-available-width",`${N0}px`),r1.setProperty("--radix-popper-available-height",`${r0}px`),r1.setProperty("--radix-popper-anchor-width",`${b0}px`),r1.setProperty("--radix-popper-anchor-height",`${L5}px`)}}),i&&dC({element:i,padding:b}),aD({arrowWidth:j,arrowHeight:Z0}),F&&SC({strategy:"referenceHidden",...q0})]}),[l,M]=tC(v0),z0=W5(C);h2(()=>{if(u)z0?.()},[u,z0]);let m=o.arrow?.x,r=o.arrow?.y,a=o.arrow?.centerOffset!==0,[X0,J0]=Kw.useState();return h2(()=>{if(x)J0(window.getComputedStyle(x).zIndex)},[x]),A9.jsx("div",{ref:k0.setFloating,"data-radix-popper-content-wrapper":"",style:{...e,transform:u?e.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X0,["--radix-popper-transform-origin"]:[o.transformOrigin?.x,o.transformOrigin?.y].join(" "),...o.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:$.dir,children:A9.jsx(ED,{scope:Y,placedSide:l,onArrowChange:$0,arrowX:m,arrowY:r,shouldHideArrow:a,children:A9.jsx(g1.div,{"data-side":l,"data-align":M,...I,ref:D,style:{...I.style,animation:!u?"none":void 0}})})})});nC.displayName=mW;var oC="PopperArrow",lD={top:"bottom",right:"left",bottom:"top",left:"right"},sC=Kw.forwardRef(function(J,Y){let{__scopePopper:G,...B}=J,g=uD(oC,G),Q=lD[g.placedSide];return A9.jsx("span",{ref:g.onArrowChange,style:{position:"absolute",left:g.arrowX,top:g.arrowY,[Q]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[g.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[g.placedSide],visibility:g.shouldHideArrow?"hidden":void 0},children:A9.jsx(EC,{...B,ref:Y,style:{...B.style,display:"block"}})})});sC.displayName=oC;function cD($){return $!==null}var aD=($)=>({name:"transformOrigin",options:$,fn(J){let{placement:Y,rects:G,middlewareData:B}=J,Q=B.arrow?.centerOffset!==0,b=Q?0:$.arrowWidth,K=Q?0:$.arrowHeight,[k,L]=tC(Y),U={start:"0%",center:"50%",end:"100%"}[L],F=(B.arrow?.x??0)+b/2,N=(B.arrow?.y??0)+K/2,C="",I="";if(k==="bottom")C=Q?U:`${F}px`,I=`${-K}px`;else if(k==="top")C=Q?U:`${F}px`,I=`${G.floating.height+K}px`;else if(k==="right")C=`${-K}px`,I=Q?U:`${N}px`;else if(k==="left")C=`${G.floating.width+K}px`,I=Q?U:`${N}px`;return{data:{x:C,y:I}}}});function tC($){let[J,Y="center"]=$.split("-");return[J,Y]}var PW=iC,eC=rC,wA=nC,ZA=sC;var K2=P(Q0(),1);var M9=P(z5(),1),fW="rovingFocusGroup.onEntryFocus",pD={bubbles:!1,cancelable:!0},CJ="RovingFocusGroup",[hW,$A,rD]=$v(CJ),[nD,yZ]=f2(CJ,[rD]),[oD,sD]=nD(CJ),XA=K2.forwardRef(($,J)=>{return M9.jsx(hW.Provider,{scope:$.__scopeRovingFocusGroup,children:M9.jsx(hW.Slot,{scope:$.__scopeRovingFocusGroup,children:M9.jsx(tD,{...$,ref:J})})})});XA.displayName=CJ;var tD=K2.forwardRef(($,J)=>{let{__scopeRovingFocusGroup:Y,orientation:G,loop:B=!1,dir:g,currentTabStopId:Q,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:K,onEntryFocus:k,preventScrollOnEntryFocus:L=!1,...U}=$,F=K2.useRef(null),N=A1(J,F),C=C9(g),[I,A]=Q9({prop:Q,defaultProp:b??null,onChange:K,caller:CJ}),[x,S]=K2.useState(!1),D=W5(k),i=$A(Y),$0=K2.useRef(!1),[p,j]=K2.useState(0);return K2.useEffect(()=>{let Z0=F.current;if(Z0)return Z0.addEventListener(fW,D),()=>Z0.removeEventListener(fW,D)},[D]),M9.jsx(oD,{scope:Y,orientation:G,dir:C,loop:B,currentTabStopId:I,onItemFocus:K2.useCallback((Z0)=>A(Z0),[A]),onItemShiftTab:K2.useCallback(()=>S(!0),[]),onFocusableItemAdd:K2.useCallback(()=>j((Z0)=>Z0+1),[]),onFocusableItemRemove:K2.useCallback(()=>j((Z0)=>Z0-1),[]),children:M9.jsx(g1.div,{tabIndex:x||p===0?-1:0,"data-orientation":G,...U,ref:N,style:{outline:"none",...$.style},onMouseDown:d0($.onMouseDown,()=>{$0.current=!0}),onFocus:d0($.onFocus,(Z0)=>{let s=!$0.current;if(Z0.target===Z0.currentTarget&&s&&!x){let E=new CustomEvent(fW,pD);if(Z0.currentTarget.dispatchEvent(E),!E.defaultPrevented){let g0=i().filter((v0)=>v0.focusable),G0=g0.find((v0)=>v0.active),q0=g0.find((v0)=>v0.id===I),e=[G0,q0,...g0].filter(Boolean).map((v0)=>v0.ref.current);zA(e,L)}}$0.current=!1}),onBlur:d0($.onBlur,()=>S(!1))})})}),JA="RovingFocusGroupItem",YA=K2.forwardRef(($,J)=>{let{__scopeRovingFocusGroup:Y,focusable:G=!0,active:B=!1,tabStopId:g,children:Q,...b}=$,K=V5(),k=g||K,L=sD(JA,Y),U=L.currentTabStopId===k,F=$A(Y),{onFocusableItemAdd:N,onFocusableItemRemove:C,currentTabStopId:I}=L;return K2.useEffect(()=>{if(G)return N(),()=>C()},[G,N,C]),M9.jsx(hW.ItemSlot,{scope:Y,id:k,focusable:G,active:B,children:M9.jsx(g1.span,{tabIndex:U?0:-1,"data-orientation":L.orientation,...b,ref:J,onMouseDown:d0($.onMouseDown,(A)=>{if(!G)A.preventDefault();else L.onItemFocus(k)}),onFocus:d0($.onFocus,()=>L.onItemFocus(k)),onKeyDown:d0($.onKeyDown,(A)=>{if(A.key==="Tab"&&A.shiftKey){L.onItemShiftTab();return}if(A.target!==A.currentTarget)return;let x=Zj(A,L.orientation,L.dir);if(x!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let D=F().filter((i)=>i.focusable).map((i)=>i.ref.current);if(x==="last")D.reverse();else if(x==="prev"||x==="next"){if(x==="prev")D.reverse();let i=D.indexOf(A.currentTarget);D=L.loop?$j(D,i+1):D.slice(i+1)}setTimeout(()=>zA(D))}}),children:typeof Q==="function"?Q({isCurrentTabStop:U,hasTabStop:I!=null}):Q})})});YA.displayName=JA;var eD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wj($,J){if(J!=="rtl")return $;return $==="ArrowLeft"?"ArrowRight":$==="ArrowRight"?"ArrowLeft":$}function Zj($,J,Y){let G=wj($.key,Y);if(J==="vertical"&&["ArrowLeft","ArrowRight"].includes(G))return;if(J==="horizontal"&&["ArrowUp","ArrowDown"].includes(G))return;return eD[G]}function zA($,J=!1){let Y=document.activeElement;for(let G of $){if(G===Y)return;if(G.focus({preventScroll:J}),document.activeElement!==Y)return}}function $j($,J){return $.map((Y,G)=>$[(J+G)%$.length])}var Uv=XA,qv=YA;var w2=P(Q0(),1);var Lv=P(z5(),1);function vA($){let J=Xj($),Y=w2.forwardRef((G,B)=>{let{children:g,...Q}=G,b=w2.Children.toArray(g),K=b.find(Yj);if(K){let k=K.props.children,L=b.map((U)=>{if(U===K){if(w2.Children.count(k)>1)return w2.Children.only(null);return w2.isValidElement(k)?k.props.children:null}else return U});return Lv.jsx(J,{...Q,ref:B,children:w2.isValidElement(k)?w2.cloneElement(k,void 0,L):null})}return Lv.jsx(J,{...Q,ref:B,children:g})});return Y.displayName=`${$}.Slot`,Y}function Xj($){let J=w2.forwardRef((Y,G)=>{let{children:B,...g}=Y;if(w2.isValidElement(B)){let Q=Gj(B),b=zj(g,B.props);if(B.type!==w2.Fragment)b.ref=G?h5(G,Q):Q;return w2.cloneElement(B,b)}return w2.Children.count(B)>1?w2.Children.only(null):null});return J.displayName=`${$}.SlotClone`,J}var Jj=Symbol("radix.slottable");function Yj($){return w2.isValidElement($)&&typeof $.type==="function"&&"__radixId"in $.type&&$.type.__radixId===Jj}function zj($,J){let Y={...J};for(let G in J){let B=$[G],g=J[G];if(/^on[A-Z]/.test(G)){if(B&&g)Y[G]=(...b)=>{let K=g(...b);return B(...b),K};else if(B)Y[G]=B}else if(G==="style")Y[G]={...B,...g};else if(G==="className")Y[G]=[B,g].filter(Boolean).join(" ")}return{...$,...Y}}function Gj($){let J=Object.getOwnPropertyDescriptor($.props,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning;if(Y)return $.ref;if(J=Object.getOwnPropertyDescriptor($,"ref")?.get,Y=J&&"isReactWarning"in J&&J.isReactWarning,Y)return $.props.ref;return $.props.ref||$.ref}var o0=P(z5(),1),VW=["Enter"," "],vj=["ArrowDown","PageUp","Home"],HA=["ArrowUp","PageDown","End"],Bj=[...vj,...HA],Hj={ltr:[...VW,"ArrowRight"],rtl:[...VW,"ArrowLeft"]},gj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},mJ="Menu",[MJ,bj,Qj]=$v(mJ),[o7,RW]=f2(mJ,[Qj,xW,yZ]),PJ=xW(),gA=yZ(),[bA,x9]=o7(mJ),[Wj,fJ]=o7(mJ),QA=($)=>{let{__scopeMenu:J,open:Y=!1,children:G,dir:B,onOpenChange:g,modal:Q=!0}=$,b=PJ(J),[K,k]=R0.useState(null),L=R0.useRef(!1),U=W5(g),F=C9(B);return R0.useEffect(()=>{let N=()=>{L.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>L.current=!1;return document.addEventListener("keydown",N,{capture:!0}),()=>{document.removeEventListener("keydown",N,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),o0.jsx(PW,{...b,children:o0.jsx(bA,{scope:J,open:Y,onOpenChange:U,content:K,onContentChange:k,children:o0.jsx(Wj,{scope:J,onClose:R0.useCallback(()=>U(!1),[U]),isUsingKeyboardRef:L,dir:F,modal:Q,children:G})})})};QA.displayName=mJ;var Kj="MenuAnchor",yW=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,...G}=$,B=PJ(Y);return o0.jsx(eC,{...B,...G,ref:J})});yW.displayName=Kj;var SW="MenuPortal",[Uj,WA]=o7(SW,{forceMount:void 0}),KA=($)=>{let{__scopeMenu:J,forceMount:Y,children:G,container:B}=$,g=x9(SW,J);return o0.jsx(Uj,{scope:J,forceMount:Y,children:o0.jsx(I2,{present:Y||g.open,children:o0.jsx(dX,{asChild:!0,container:B,children:G})})})};KA.displayName=SW;var q4="MenuContent",[qj,dW]=o7(q4),UA=R0.forwardRef(($,J)=>{let Y=WA(q4,$.__scopeMenu),{forceMount:G=Y.forceMount,...B}=$,g=x9(q4,$.__scopeMenu),Q=fJ(q4,$.__scopeMenu);return o0.jsx(MJ.Provider,{scope:$.__scopeMenu,children:o0.jsx(I2,{present:G||g.open,children:o0.jsx(MJ.Slot,{scope:$.__scopeMenu,children:Q.modal?o0.jsx(Lj,{...B,ref:J}):o0.jsx(kj,{...B,ref:J})})})})}),Lj=R0.forwardRef(($,J)=>{let Y=x9(q4,$.__scopeMenu),G=R0.useRef(null),B=A1(J,G);return R0.useEffect(()=>{let g=G.current;if(g)return SG(g)},[]),o0.jsx(DW,{...$,ref:B,trapFocus:Y.open,disableOutsidePointerEvents:Y.open,disableOutsideScroll:!0,onFocusOutside:d0($.onFocusOutside,(g)=>g.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>Y.onOpenChange(!1)})}),kj=R0.forwardRef(($,J)=>{let Y=x9(q4,$.__scopeMenu);return o0.jsx(DW,{...$,ref:J,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>Y.onOpenChange(!1)})}),Fj=vA("MenuContent.ScrollLock"),DW=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,loop:G=!1,trapFocus:B,onOpenAutoFocus:g,onCloseAutoFocus:Q,disableOutsidePointerEvents:b,onEntryFocus:K,onEscapeKeyDown:k,onPointerDownOutside:L,onFocusOutside:U,onInteractOutside:F,onDismiss:N,disableOutsideScroll:C,...I}=$,A=x9(q4,Y),x=fJ(q4,Y),S=PJ(Y),D=gA(Y),i=bj(Y),[$0,p]=R0.useState(null),j=R0.useRef(null),Z0=A1(J,j,A.onContentChange),s=R0.useRef(0),E=R0.useRef(""),g0=R0.useRef(0),G0=R0.useRef(null),q0=R0.useRef("right"),k0=R0.useRef(0),e=C?EX:R0.Fragment,v0=C?{as:Fj,allowPinchZoom:!0}:void 0,u=(l)=>{let M=E.current+l,z0=i().filter((w0)=>!w0.disabled),m=document.activeElement,r=z0.find((w0)=>w0.ref.current===m)?.textValue,a=z0.map((w0)=>w0.textValue),X0=hj(a,M,r),J0=z0.find((w0)=>w0.textValue===X0)?.ref.current;if(function w0(W0){if(E.current=W0,window.clearTimeout(s.current),W0!=="")s.current=window.setTimeout(()=>w0(""),1000)}(M),J0)setTimeout(()=>J0.focus())};R0.useEffect(()=>{return()=>window.clearTimeout(s.current)},[]),MG();let o=R0.useCallback((l)=>{return q0.current===G0.current?.side&&Rj(l,G0.current?.area)},[]);return o0.jsx(qj,{scope:Y,searchRef:E,onItemEnter:R0.useCallback((l)=>{if(o(l))l.preventDefault()},[o]),onItemLeave:R0.useCallback((l)=>{if(o(l))return;j.current?.focus(),p(null)},[o]),onTriggerLeave:R0.useCallback((l)=>{if(o(l))l.preventDefault()},[o]),pointerGraceTimerRef:g0,onPointerGraceIntentChange:R0.useCallback((l)=>{G0.current=l},[]),children:o0.jsx(e,{...v0,children:o0.jsx(SX,{asChild:!0,trapped:B,onMountAutoFocus:d0(g,(l)=>{l.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:Q,children:o0.jsx(yX,{asChild:!0,disableOutsidePointerEvents:b,onEscapeKeyDown:k,onPointerDownOutside:L,onFocusOutside:U,onInteractOutside:F,onDismiss:N,children:o0.jsx(Uv,{asChild:!0,...D,dir:x.dir,orientation:"vertical",loop:G,currentTabStopId:$0,onCurrentTabStopIdChange:p,onEntryFocus:d0(K,(l)=>{if(!x.isUsingKeyboardRef.current)l.preventDefault()}),preventScrollOnEntryFocus:!0,children:o0.jsx(wA,{role:"menu","aria-orientation":"vertical","data-state":fA(A.open),"data-radix-menu-content":"",dir:x.dir,...S,...I,ref:Z0,style:{outline:"none",...I.style},onKeyDown:d0(I.onKeyDown,(l)=>{let z0=l.target.closest("[data-radix-menu-content]")===l.currentTarget,m=l.ctrlKey||l.altKey||l.metaKey,r=l.key.length===1;if(z0){if(l.key==="Tab")l.preventDefault();if(!m&&r)u(l.key)}let a=j.current;if(l.target!==a)return;if(!Bj.includes(l.key))return;l.preventDefault();let J0=i().filter((w0)=>!w0.disabled).map((w0)=>w0.ref.current);if(HA.includes(l.key))J0.reverse();Pj(J0)}),onBlur:d0($.onBlur,(l)=>{if(!l.currentTarget.contains(l.target))window.clearTimeout(s.current),E.current=""}),onPointerMove:d0($.onPointerMove,xJ((l)=>{let M=l.target,z0=k0.current!==l.clientX;if(l.currentTarget.contains(M)&&z0){let m=l.clientX>k0.current?"right":"left";q0.current=m,k0.current=l.clientX}}))})})})})})})});UA.displayName=q4;var Nj="MenuGroup",jW=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,...G}=$;return o0.jsx(g1.div,{role:"group",...G,ref:J})});jW.displayName=Nj;var Tj="MenuLabel",qA=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,...G}=$;return o0.jsx(g1.div,{...G,ref:J})});qA.displayName=Tj;var kv="MenuItem",BA="menu.itemSelect",Nv=R0.forwardRef(($,J)=>{let{disabled:Y=!1,onSelect:G,...B}=$,g=R0.useRef(null),Q=fJ(kv,$.__scopeMenu),b=dW(kv,$.__scopeMenu),K=A1(J,g),k=R0.useRef(!1),L=()=>{let U=g.current;if(!Y&&U){let F=new CustomEvent(BA,{bubbles:!0,cancelable:!0});if(U.addEventListener(BA,(N)=>G?.(N),{once:!0}),OG(U,F),F.defaultPrevented)k.current=!1;else Q.onClose()}};return o0.jsx(LA,{...B,ref:K,disabled:Y,onClick:d0($.onClick,L),onPointerDown:(U)=>{$.onPointerDown?.(U),k.current=!0},onPointerUp:d0($.onPointerUp,(U)=>{if(!k.current)U.currentTarget?.click()}),onKeyDown:d0($.onKeyDown,(U)=>{let F=b.searchRef.current!=="";if(Y||F&&U.key===" ")return;if(VW.includes(U.key))U.currentTarget.click(),U.preventDefault()})})});Nv.displayName=kv;var LA=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,disabled:G=!1,textValue:B,...g}=$,Q=dW(kv,Y),b=gA(Y),K=R0.useRef(null),k=A1(J,K),[L,U]=R0.useState(!1),[F,N]=R0.useState("");return R0.useEffect(()=>{let C=K.current;if(C)N((C.textContent??"").trim())},[g.children]),o0.jsx(MJ.ItemSlot,{scope:Y,disabled:G,textValue:B??F,children:o0.jsx(qv,{asChild:!0,...b,focusable:!G,children:o0.jsx(g1.div,{role:"menuitem","data-highlighted":L?"":void 0,"aria-disabled":G||void 0,"data-disabled":G?"":void 0,...g,ref:k,onPointerMove:d0($.onPointerMove,xJ((C)=>{if(G)Q.onItemLeave(C);else if(Q.onItemEnter(C),!C.defaultPrevented)C.currentTarget.focus({preventScroll:!0})})),onPointerLeave:d0($.onPointerLeave,xJ((C)=>Q.onItemLeave(C))),onFocus:d0($.onFocus,()=>U(!0)),onBlur:d0($.onBlur,()=>U(!1))})})})}),Ij="MenuCheckboxItem",kA=R0.forwardRef(($,J)=>{let{checked:Y=!1,onCheckedChange:G,...B}=$;return o0.jsx(_A,{scope:$.__scopeMenu,checked:Y,children:o0.jsx(Nv,{role:"menuitemcheckbox","aria-checked":Fv(Y)?"mixed":Y,...B,ref:J,"data-state":lW(Y),onSelect:d0(B.onSelect,()=>G?.(Fv(Y)?!0:!Y),{checkForDefaultPrevented:!1})})})});kA.displayName=Ij;var FA="MenuRadioGroup",[_j,Oj]=o7(FA,{value:void 0,onValueChange:()=>{}}),NA=R0.forwardRef(($,J)=>{let{value:Y,onValueChange:G,...B}=$,g=W5(G);return o0.jsx(_j,{scope:$.__scopeMenu,value:Y,onValueChange:g,children:o0.jsx(jW,{...B,ref:J})})});NA.displayName=FA;var TA="MenuRadioItem",IA=R0.forwardRef(($,J)=>{let{value:Y,...G}=$,B=Oj(TA,$.__scopeMenu),g=Y===B.value;return o0.jsx(_A,{scope:$.__scopeMenu,checked:g,children:o0.jsx(Nv,{role:"menuitemradio","aria-checked":g,...G,ref:J,"data-state":lW(g),onSelect:d0(G.onSelect,()=>B.onValueChange?.(Y),{checkForDefaultPrevented:!1})})})});IA.displayName=TA;var EW="MenuItemIndicator",[_A,Cj]=o7(EW,{checked:!1}),OA=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,forceMount:G,...B}=$,g=Cj(EW,Y);return o0.jsx(I2,{present:G||Fv(g.checked)||g.checked===!0,children:o0.jsx(g1.span,{...B,ref:J,"data-state":lW(g.checked)})})});OA.displayName=EW;var Aj="MenuSeparator",CA=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,...G}=$;return o0.jsx(g1.div,{role:"separator","aria-orientation":"horizontal",...G,ref:J})});CA.displayName=Aj;var Mj="MenuArrow",AA=R0.forwardRef(($,J)=>{let{__scopeMenu:Y,...G}=$,B=PJ(Y);return o0.jsx(ZA,{...B,...G,ref:J})});AA.displayName=Mj;var uW="MenuSub",[xj,MA]=o7(uW),mj=($)=>{let{__scopeMenu:J,children:Y,open:G=!1,onOpenChange:B}=$,g=x9(uW,J),Q=PJ(J),[b,K]=R0.useState(null),[k,L]=R0.useState(null),U=W5(B);return R0.useEffect(()=>{if(g.open===!1)U(!1);return()=>U(!1)},[g.open,U]),o0.jsx(PW,{...Q,children:o0.jsx(bA,{scope:J,open:G,onOpenChange:U,content:k,onContentChange:L,children:o0.jsx(xj,{scope:J,contentId:V5(),triggerId:V5(),trigger:b,onTriggerChange:K,children:Y})})})};mj.displayName=uW;var AJ="MenuSubTrigger",xA=R0.forwardRef(($,J)=>{let Y=x9(AJ,$.__scopeMenu),G=fJ(AJ,$.__scopeMenu),B=MA(AJ,$.__scopeMenu),g=dW(AJ,$.__scopeMenu),Q=R0.useRef(null),{pointerGraceTimerRef:b,onPointerGraceIntentChange:K}=g,k={__scopeMenu:$.__scopeMenu},L=R0.useCallback(()=>{if(Q.current)window.clearTimeout(Q.current);Q.current=null},[]);return R0.useEffect(()=>L,[L]),R0.useEffect(()=>{let U=b.current;return()=>{window.clearTimeout(U),K(null)}},[b,K]),o0.jsx(yW,{asChild:!0,...k,children:o0.jsx(LA,{id:B.triggerId,"aria-haspopup":"menu","aria-expanded":Y.open,"aria-controls":B.contentId,"data-state":fA(Y.open),...$,ref:h5(J,B.onTriggerChange),onClick:(U)=>{if($.onClick?.(U),$.disabled||U.defaultPrevented)return;if(U.currentTarget.focus(),!Y.open)Y.onOpenChange(!0)},onPointerMove:d0($.onPointerMove,xJ((U)=>{if(g.onItemEnter(U),U.defaultPrevented)return;if(!$.disabled&&!Y.open&&!Q.current)g.onPointerGraceIntentChange(null),Q.current=window.setTimeout(()=>{Y.onOpenChange(!0),L()},100)})),onPointerLeave:d0($.onPointerLeave,xJ((U)=>{L();let F=Y.content?.getBoundingClientRect();if(F){let N=Y.content?.dataset.side,C=N==="right",I=C?-5:5,A=F[C?"left":"right"],x=F[C?"right":"left"];g.onPointerGraceIntentChange({area:[{x:U.clientX+I,y:U.clientY},{x:A,y:F.top},{x,y:F.top},{x,y:F.bottom},{x:A,y:F.bottom}],side:N}),window.clearTimeout(b.current),b.current=window.setTimeout(()=>g.onPointerGraceIntentChange(null),300)}else{if(g.onTriggerLeave(U),U.defaultPrevented)return;g.onPointerGraceIntentChange(null)}})),onKeyDown:d0($.onKeyDown,(U)=>{let F=g.searchRef.current!=="";if($.disabled||F&&U.key===" ")return;if(Hj[G.dir].includes(U.key))Y.onOpenChange(!0),Y.content?.focus(),U.preventDefault()})})})});xA.displayName=AJ;var mA="MenuSubContent",PA=R0.forwardRef(($,J)=>{let Y=WA(q4,$.__scopeMenu),{forceMount:G=Y.forceMount,...B}=$,g=x9(q4,$.__scopeMenu),Q=fJ(q4,$.__scopeMenu),b=MA(mA,$.__scopeMenu),K=R0.useRef(null),k=A1(J,K);return o0.jsx(MJ.Provider,{scope:$.__scopeMenu,children:o0.jsx(I2,{present:G||g.open,children:o0.jsx(MJ.Slot,{scope:$.__scopeMenu,children:o0.jsx(DW,{id:b.contentId,"aria-labelledby":b.triggerId,...B,ref:k,align:"start",side:Q.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:(L)=>{if(Q.isUsingKeyboardRef.current)K.current?.focus();L.preventDefault()},onCloseAutoFocus:(L)=>L.preventDefault(),onFocusOutside:d0($.onFocusOutside,(L)=>{if(L.target!==b.trigger)g.onOpenChange(!1)}),onEscapeKeyDown:d0($.onEscapeKeyDown,(L)=>{Q.onClose(),L.preventDefault()}),onKeyDown:d0($.onKeyDown,(L)=>{let U=L.currentTarget.contains(L.target),F=gj[Q.dir].includes(L.key);if(U&&F)g.onOpenChange(!1),b.trigger?.focus(),L.preventDefault()})})})})})});PA.displayName=mA;function fA($){return $?"open":"closed"}function Fv($){return $==="indeterminate"}function lW($){return Fv($)?"indeterminate":$?"checked":"unchecked"}function Pj($){let J=document.activeElement;for(let Y of $){if(Y===J)return;if(Y.focus(),document.activeElement!==J)return}}function fj($,J){return $.map((Y,G)=>$[(J+G)%$.length])}function hj($,J,Y){let B=J.length>1&&Array.from(J).every((k)=>k===J[0])?J[0]:J,g=Y?$.indexOf(Y):-1,Q=fj($,Math.max(g,0));if(B.length===1)Q=Q.filter((k)=>k!==Y);let K=Q.find((k)=>k.toLowerCase().startsWith(B.toLowerCase()));return K!==Y?K:void 0}function Vj($,J){let{x:Y,y:G}=$,B=!1;for(let g=0,Q=J.length-1;g<J.length;Q=g++){let b=J[g],K=J[Q],k=b.x,L=b.y,U=K.x,F=K.y;if(L>G!==F>G&&Y<(U-k)*(G-L)/(F-L)+k)B=!B}return B}function Rj($,J){if(!J)return!1;let Y={x:$.clientX,y:$.clientY};return Vj(Y,J)}function xJ($){return(J)=>J.pointerType==="mouse"?$(J):void 0}var hA=QA,VA=yW,RA=KA,yA=UA,SA=jW,dA=qA,DA=Nv,jA=kA,EA=NA,uA=IA,lA=OA,cA=CA,aA=AA;var iA=xA,pA=PA;var U2=P(z5(),1),Tv="DropdownMenu",[Sj,Lo1]=f2(Tv,[RW]),t2=RW(),[dj,rA]=Sj(Tv),nA=($)=>{let{__scopeDropdownMenu:J,children:Y,dir:G,open:B,defaultOpen:g,onOpenChange:Q,modal:b=!0}=$,K=t2(J),k=Z2.useRef(null),[L,U]=Q9({prop:B,defaultProp:g??!1,onChange:Q,caller:Tv});return U2.jsx(dj,{scope:J,triggerId:V5(),triggerRef:k,contentId:V5(),open:L,onOpenChange:U,onOpenToggle:Z2.useCallback(()=>U((F)=>!F),[U]),modal:b,children:U2.jsx(hA,{...K,open:L,onOpenChange:U,dir:G,modal:b,children:Y})})};nA.displayName=Tv;var oA="DropdownMenuTrigger",sA=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,disabled:G=!1,...B}=$,g=rA(oA,Y),Q=t2(Y);return U2.jsx(VA,{asChild:!0,...Q,children:U2.jsx(g1.button,{type:"button",id:g.triggerId,"aria-haspopup":"menu","aria-expanded":g.open,"aria-controls":g.open?g.contentId:void 0,"data-state":g.open?"open":"closed","data-disabled":G?"":void 0,disabled:G,...B,ref:h5(J,g.triggerRef),onPointerDown:d0($.onPointerDown,(b)=>{if(!G&&b.button===0&&b.ctrlKey===!1){if(g.onOpenToggle(),!g.open)b.preventDefault()}}),onKeyDown:d0($.onKeyDown,(b)=>{if(G)return;if(["Enter"," "].includes(b.key))g.onOpenToggle();if(b.key==="ArrowDown")g.onOpenChange(!0);if(["Enter"," ","ArrowDown"].includes(b.key))b.preventDefault()})})})});sA.displayName=oA;var Dj="DropdownMenuPortal",tA=($)=>{let{__scopeDropdownMenu:J,...Y}=$,G=t2(J);return U2.jsx(RA,{...G,...Y})};tA.displayName=Dj;var eA="DropdownMenuContent",wM=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=rA(eA,Y),g=t2(Y),Q=Z2.useRef(!1);return U2.jsx(yA,{id:B.contentId,"aria-labelledby":B.triggerId,...g,...G,ref:J,onCloseAutoFocus:d0($.onCloseAutoFocus,(b)=>{if(!Q.current)B.triggerRef.current?.focus();Q.current=!1,b.preventDefault()}),onInteractOutside:d0($.onInteractOutside,(b)=>{let K=b.detail.originalEvent,k=K.button===0&&K.ctrlKey===!0,L=K.button===2||k;if(!B.modal||L)Q.current=!0}),style:{...$.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});wM.displayName=eA;var jj="DropdownMenuGroup",Ej=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(SA,{...B,...G,ref:J})});Ej.displayName=jj;var uj="DropdownMenuLabel",lj=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(dA,{...B,...G,ref:J})});lj.displayName=uj;var cj="DropdownMenuItem",ZM=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(DA,{...B,...G,ref:J})});ZM.displayName=cj;var aj="DropdownMenuCheckboxItem",ij=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(jA,{...B,...G,ref:J})});ij.displayName=aj;var pj="DropdownMenuRadioGroup",rj=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(EA,{...B,...G,ref:J})});rj.displayName=pj;var nj="DropdownMenuRadioItem",oj=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(uA,{...B,...G,ref:J})});oj.displayName=nj;var sj="DropdownMenuItemIndicator",tj=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(lA,{...B,...G,ref:J})});tj.displayName=sj;var ej="DropdownMenuSeparator",wE=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(cA,{...B,...G,ref:J})});wE.displayName=ej;var ZE="DropdownMenuArrow",$E=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(aA,{...B,...G,ref:J})});$E.displayName=ZE;var XE="DropdownMenuSubTrigger",JE=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(iA,{...B,...G,ref:J})});JE.displayName=XE;var YE="DropdownMenuSubContent",zE=Z2.forwardRef(($,J)=>{let{__scopeDropdownMenu:Y,...G}=$,B=t2(Y);return U2.jsx(pA,{...B,...G,ref:J,style:{...$.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});zE.displayName=YE;var $M=nA,XM=sA,JM=tA,YM=wM;var zM=ZM;var SZ=P(H0(),1);function Iv({...$}){return SZ.jsxDEV($M,{"data-slot":"dropdown-menu",...$},void 0,!1,void 0,this)}function _v({...$}){return SZ.jsxDEV(XM,{"data-slot":"dropdown-menu-trigger",...$},void 0,!1,void 0,this)}function Ov({className:$,sideOffset:J=4,...Y}){return SZ.jsxDEV(JM,{children:SZ.jsxDEV(YM,{"data-slot":"dropdown-menu-content",sideOffset:J,className:O0("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border ring-1 ring-foreground/10 p-1",$),...Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function dZ({className:$,inset:J,variant:Y="default",...G}){return SZ.jsxDEV(zM,{"data-slot":"dropdown-menu-item","data-inset":J,"data-variant":Y,className:O0("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",$),...G},void 0,!1,void 0,this)}var y2=P(H0(),1);function GM(){let{setTheme:$,resolvedTheme:J}=hZ();return y2.jsxDEV(Iv,{children:[y2.jsxDEV(_v,{asChild:!0,children:y2.jsxDEV(S1,{variant:"ghost",size:"icon","aria-label":"Toggle theme",children:J==="dark"?y2.jsxDEV(CZ,{className:"size-4"},void 0,!1,void 0,this):y2.jsxDEV(AZ,{className:"size-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),y2.jsxDEV(Ov,{align:"end",children:[y2.jsxDEV(dZ,{onSelect:()=>$("light"),children:[y2.jsxDEV(AZ,{className:"size-4"},void 0,!1,void 0,this),y2.jsxDEV("span",{children:"Light"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y2.jsxDEV(dZ,{onSelect:()=>$("dark"),children:[y2.jsxDEV(CZ,{className:"size-4"},void 0,!1,void 0,this),y2.jsxDEV("span",{children:"Dark"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y2.jsxDEV(dZ,{onSelect:()=>$("system"),children:[y2.jsxDEV($J,{className:"size-4"},void 0,!1,void 0,this),y2.jsxDEV("span",{children:"System"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var O2=P(Q0(),1),gM=P(H0(),1),cW=O2.createContext(null);function vE($){if($.size===0)return"idle";let J=!1,Y=!1;for(let G of $.values()){if(G==="open")return"open";if(G==="connecting")J=!0;else if(G==="closed")Y=!0}if(J)return"connecting";if(Y)return"closed";return"idle"}function vM({children:$}){let J=O2.useRef(new Map),[Y,G]=O2.useState("idle"),B=O2.useMemo(()=>{let Q=()=>G(vE(J.current));return{register:(b,K)=>{if(K===null){if(J.current.delete(b))Q();return}if(J.current.get(b)===K)return;J.current.set(b,K),Q()},unregister:(b)=>{if(J.current.delete(b))Q()}}},[]),g=O2.useMemo(()=>({registry:B,aggregate:Y}),[B,Y]);return gM.jsxDEV(cW.Provider,{value:g,children:$},void 0,!1,void 0,this)}function BM(){return O2.useContext(cW)?.aggregate??"idle"}function HM($){let J=O2.useContext(cW),Y=O2.useId();O2.useEffect(()=>{if(!J)return;J.registry.register(Y,$)},[J,Y,$]),O2.useEffect(()=>{if(!J)return;return()=>J.registry.unregister(Y)},[J,Y])}var bM=P(H0(),1),BE=Qw("rounded-md border border-border bg-background text-foreground text-sm px-3 py-2 hover:bg-accent/40 transition-colors outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50");function Uw({className:$,...J}){return bM.jsxDEV("select",{"data-slot":"select",className:O0(BE(),$),...J},void 0,!1,void 0,this)}function aW($){let J=/[zZ]$/.test($)||/[+-]\d{2}:?\d{2}$/.test($);return new Date(J?$:`${$}Z`)}function $2($){let J=Date.now()-aW($).getTime(),Y=Math.floor(J/1000);if(Y<60)return`${Y}s ago`;let G=Math.floor(Y/60);if(G<60)return`${G}m ago`;let B=Math.floor(G/60);if(B<24)return`${B}h ago`;return`${Math.floor(B/24)}d ago`}function QM($){return aW($).toLocaleString()}function WM($){return aW($).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}var hJ=P(H0(),1);function KM({runs:$,selectedRunId:J,onSelect:Y}){if($.length===0)return null;let G=J??$[0]?.id??"";return hJ.jsxDEV("div",{className:"flex items-center gap-2",children:[hJ.jsxDEV("label",{htmlFor:"run-picker",className:"text-sm text-muted-foreground whitespace-nowrap",children:"Run:"},void 0,!1,void 0,this),hJ.jsxDEV(Uw,{id:"run-picker",className:"px-2.5 py-1.5",value:G,onChange:(B)=>Y(B.target.value),children:$.map((B)=>hJ.jsxDEV("option",{value:B.id,children:[B.id," — ",B.status," — ",QM(B.startedAt)]},B.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K5=P(H0(),1),HE=[{to:"/costs",label:"Costs"},{to:"/errors",label:"Errors"},{to:"/merge",label:"Merge queue"},{to:"/worktrees",label:"Worktrees"},{to:"/logs",label:"Logs"},{to:"/health",label:"Health"},{to:"/groups",label:"Groups"},{to:"/specs",label:"Specs"}];function qM(){return K5.jsxDEV("div",{className:"flex flex-col h-screen",children:[K5.jsxDEV(gE,{},void 0,!1,void 0,this),K5.jsxDEV("main",{className:"flex-1 overflow-auto",children:K5.jsxDEV(BQ,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gE(){let J=c0({queryKey:["runs"],queryFn:()=>U8(50),refetchInterval:5000}).data??[],[Y,G]=P7(),B=Y.get("run")??J[0]?.id??null,g=UM.useCallback((b)=>{G((K)=>{let k=new URLSearchParams(K);return k.set("run",b),k},{replace:!0})},[G]),Q=BM();return K5.jsxDEV("header",{className:"border-b border-border shrink-0 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:K5.jsxDEV("div",{className:"h-14 flex items-center gap-6 px-6",children:[K5.jsxDEV(RO,{size:"sm",tool:"agentplate",showWordmark:!0},void 0,!1,void 0,this),K5.jsxDEV("nav",{className:"flex items-center gap-1",children:[K5.jsxDEV(Cv,{to:"/",label:"Overview",end:!0},void 0,!1,void 0,this),K5.jsxDEV(Cv,{to:"/fleet",label:"Fleet"},void 0,!1,void 0,this),K5.jsxDEV(Cv,{to:"/coordinator",label:"Coordinator"},void 0,!1,void 0,this),K5.jsxDEV(Cv,{to:"/mail",label:"Mail"},void 0,!1,void 0,this),K5.jsxDEV(bE,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K5.jsxDEV("div",{className:"flex-1"},void 0,!1,void 0,this),K5.jsxDEV(KM,{runs:J,selectedRunId:B,onSelect:g},void 0,!1,void 0,this),K5.jsxDEV(mO,{status:Q},void 0,!1,void 0,this),K5.jsxDEV(GM,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function bE(){let $=j4();return K5.jsxDEV(Iv,{children:[K5.jsxDEV(_v,{className:"flex items-center gap-1 px-3 py-1.5 rounded-md text-sm transition-colors outline-none text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:ring-[3px]",children:["More",K5.jsxDEV(d7,{className:"size-3.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K5.jsxDEV(Ov,{align:"start",children:HE.map((J)=>K5.jsxDEV(dZ,{onSelect:()=>$(J.to),children:J.label},J.to,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Cv({to:$,label:J,end:Y}){return K5.jsxDEV(TG,{to:$,end:Y,className:"px-3 py-1.5 rounded-md text-sm transition-colors outline-none text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground aria-[current=page]:bg-accent aria-[current=page]:text-accent-foreground aria-[current=page]:font-medium focus-visible:ring-ring/50 focus-visible:ring-[3px]",children:J},void 0,!1,void 0,this)}var M0=P(Q0(),1),FM=P(b9(),1),e2=P(Q0(),1),iW=P(Q0(),1),NM=P(Q0(),1),QE=($)=>{switch($){case"success":return UE;case"info":return LE;case"warning":return qE;case"error":return kE;default:return null}},WE=Array(12).fill(0),KE=({visible:$,className:J})=>e2.default.createElement("div",{className:["sonner-loading-wrapper",J].filter(Boolean).join(" "),"data-visible":$},e2.default.createElement("div",{className:"sonner-spinner"},WE.map((Y,G)=>e2.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${G}`})))),UE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),qE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),LE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),kE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e2.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),FE=e2.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e2.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e2.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),NE=()=>{let[$,J]=iW.default.useState(document.hidden);return iW.default.useEffect(()=>{let Y=()=>{J(document.hidden)};return document.addEventListener("visibilitychange",Y),()=>window.removeEventListener("visibilitychange",Y)},[]),$},pW=1,TE=class{constructor(){this.subscribe=($)=>(this.subscribers.push($),()=>{let J=this.subscribers.indexOf($);this.subscribers.splice(J,1)}),this.publish=($)=>{this.subscribers.forEach((J)=>J($))},this.addToast=($)=>{this.publish($),this.toasts=[...this.toasts,$]},this.create=($)=>{var J;let{message:Y,...G}=$,B=typeof($==null?void 0:$.id)=="number"||((J=$.id)==null?void 0:J.length)>0?$.id:pW++,g=this.toasts.find((b)=>b.id===B),Q=$.dismissible===void 0?!0:$.dismissible;return this.dismissedToasts.has(B)&&this.dismissedToasts.delete(B),g?this.toasts=this.toasts.map((b)=>b.id===B?(this.publish({...b,...$,id:B,title:Y}),{...b,...$,id:B,dismissible:Q,title:Y}):b):this.addToast({title:Y,...G,dismissible:Q,id:B}),B},this.dismiss=($)=>(this.dismissedToasts.add($),$||this.toasts.forEach((J)=>{this.subscribers.forEach((Y)=>Y({id:J.id,dismiss:!0}))}),this.subscribers.forEach((J)=>J({id:$,dismiss:!0})),$),this.message=($,J)=>this.create({...J,message:$}),this.error=($,J)=>this.create({...J,message:$,type:"error"}),this.success=($,J)=>this.create({...J,type:"success",message:$}),this.info=($,J)=>this.create({...J,type:"info",message:$}),this.warning=($,J)=>this.create({...J,type:"warning",message:$}),this.loading=($,J)=>this.create({...J,type:"loading",message:$}),this.promise=($,J)=>{if(!J)return;let Y;J.loading!==void 0&&(Y=this.create({...J,promise:$,type:"loading",message:J.loading,description:typeof J.description!="function"?J.description:void 0}));let G=$ instanceof Promise?$:$(),B=Y!==void 0,g,Q=G.then(async(K)=>{if(g=["resolve",K],NM.default.isValidElement(K))B=!1,this.create({id:Y,type:"default",message:K});else if(_E(K)&&!K.ok){B=!1;let k=typeof J.error=="function"?await J.error(`HTTP error! status: ${K.status}`):J.error,L=typeof J.description=="function"?await J.description(`HTTP error! status: ${K.status}`):J.description;this.create({id:Y,type:"error",message:k,description:L})}else if(J.success!==void 0){B=!1;let k=typeof J.success=="function"?await J.success(K):J.success,L=typeof J.description=="function"?await J.description(K):J.description;this.create({id:Y,type:"success",message:k,description:L})}}).catch(async(K)=>{if(g=["reject",K],J.error!==void 0){B=!1;let k=typeof J.error=="function"?await J.error(K):J.error,L=typeof J.description=="function"?await J.description(K):J.description;this.create({id:Y,type:"error",message:k,description:L})}}).finally(()=>{var K;B&&(this.dismiss(Y),Y=void 0),(K=J.finally)==null||K.call(J)}),b=()=>new Promise((K,k)=>Q.then(()=>g[0]==="reject"?k(g[1]):K(g[1])).catch(k));return typeof Y!="string"&&typeof Y!="number"?{unwrap:b}:Object.assign(Y,{unwrap:b})},this.custom=($,J)=>{let Y=(J==null?void 0:J.id)||pW++;return this.create({jsx:$(Y),id:Y,...J}),Y},this.getActiveToasts=()=>this.toasts.filter(($)=>!this.dismissedToasts.has($.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},qw=new TE,IE=($,J)=>{let Y=(J==null?void 0:J.id)||pW++;return qw.addToast({title:$,...J,id:Y}),Y},_E=($)=>$&&typeof $=="object"&&("ok"in $)&&typeof $.ok=="boolean"&&("status"in $)&&typeof $.status=="number",OE=IE,CE=()=>qw.toasts,AE=()=>qw.getActiveToasts(),Mv=Object.assign(OE,{success:qw.success,info:qw.info,warning:qw.warning,error:qw.error,custom:qw.custom,message:qw.message,promise:qw.promise,dismiss:qw.dismiss,loading:qw.loading},{getHistory:CE,getToasts:AE});function ME($,{insertAt:J}={}){if(!$||typeof document>"u")return;let Y=document.head||document.getElementsByTagName("head")[0],G=document.createElement("style");G.type="text/css",J==="top"&&Y.firstChild?Y.insertBefore(G,Y.firstChild):Y.appendChild(G),G.styleSheet?G.styleSheet.cssText=$:G.appendChild(document.createTextNode($))}ME(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');function Av($){return $.label!==void 0}var xE=3,mE="32px",PE="16px",LM=4000,fE=356,hE=14,VE=20,RE=200;function i4(...$){return $.filter(Boolean).join(" ")}function yE($){let[J,Y]=$.split("-"),G=[];return J&&G.push(J),Y&&G.push(Y),G}var SE=($)=>{var J,Y,G,B,g,Q,b,K,k,L,U;let{invert:F,toast:N,unstyled:C,interacting:I,setHeights:A,visibleToasts:x,heights:S,index:D,toasts:i,expanded:$0,removeToast:p,defaultRichColors:j,closeButton:Z0,style:s,cancelButtonStyle:E,actionButtonStyle:g0,className:G0="",descriptionClassName:q0="",duration:k0,position:e,gap:v0,loadingIcon:u,expandByDefault:o,classNames:l,icons:M,closeButtonAriaLabel:z0="Close toast",pauseWhenPageIsHidden:m}=$,[r,a]=M0.default.useState(null),[X0,J0]=M0.default.useState(null),[w0,W0]=M0.default.useState(!1),[N0,r0]=M0.default.useState(!1),[b0,L5]=M0.default.useState(!1),[r1,T1]=M0.default.useState(!1),[C1,K1]=M0.default.useState(!1),[iw,E0]=M0.default.useState(0),[k5,I1]=M0.default.useState(0),pw=M0.default.useRef(N.duration||k0||LM),a5=M0.default.useRef(null),v2=M0.default.useRef(null),_4=D===0,sZ=D+1<=x,i5=N.type,Iw=N.dismissible!==!1,n4=N.className||"",G3=N.descriptionClassName||"",rw=M0.default.useMemo(()=>S.findIndex((h0)=>h0.toastId===N.id)||0,[S,N.id]),u6=M0.default.useMemo(()=>{var h0;return(h0=N.closeButton)!=null?h0:Z0},[N.closeButton,Z0]),o4=M0.default.useMemo(()=>N.duration||k0||LM,[N.duration,k0]),O4=M0.default.useRef(0),nw=M0.default.useRef(0),C4=M0.default.useRef(0),O=M0.default.useRef(null),[c,U0]=e.split("-"),F0=M0.default.useMemo(()=>S.reduce((h0,w1,_1)=>_1>=rw?h0:h0+w1.height,0),[S,rw]),A0=NE(),a0=N.invert||F,u0=i5==="loading";nw.current=M0.default.useMemo(()=>rw*v0+F0,[rw,F0]),M0.default.useEffect(()=>{pw.current=o4},[o4]),M0.default.useEffect(()=>{W0(!0)},[]),M0.default.useEffect(()=>{let h0=v2.current;if(h0){let w1=h0.getBoundingClientRect().height;return I1(w1),A((_1)=>[{toastId:N.id,height:w1,position:N.position},..._1]),()=>A((_1)=>_1.filter((q2)=>q2.toastId!==N.id))}},[A,N.id]),M0.default.useLayoutEffect(()=>{if(!w0)return;let h0=v2.current,w1=h0.style.height;h0.style.height="auto";let _1=h0.getBoundingClientRect().height;h0.style.height=w1,I1(_1),A((q2)=>q2.find((Zw)=>Zw.toastId===N.id)?q2.map((Zw)=>Zw.toastId===N.id?{...Zw,height:_1}:Zw):[{toastId:N.id,height:_1,position:N.position},...q2])},[w0,N.title,N.description,A,N.id]);let s0=M0.default.useCallback(()=>{r0(!0),E0(nw.current),A((h0)=>h0.filter((w1)=>w1.toastId!==N.id)),setTimeout(()=>{p(N)},RE)},[N,p,A,nw]);M0.default.useEffect(()=>{if(N.promise&&i5==="loading"||N.duration===1/0||N.type==="loading")return;let h0;return $0||I||m&&A0?(()=>{if(C4.current<O4.current){let w1=new Date().getTime()-O4.current;pw.current=pw.current-w1}C4.current=new Date().getTime()})():(()=>{pw.current!==1/0&&(O4.current=new Date().getTime(),h0=setTimeout(()=>{var w1;(w1=N.onAutoClose)==null||w1.call(N,N),s0()},pw.current))})(),()=>clearTimeout(h0)},[$0,I,N,i5,m,A0,s0]),M0.default.useEffect(()=>{N.delete&&s0()},[s0,N.delete]);function V0(){var h0,w1,_1;return M!=null&&M.loading?M0.default.createElement("div",{className:i4(l==null?void 0:l.loader,(h0=N==null?void 0:N.classNames)==null?void 0:h0.loader,"sonner-loader"),"data-visible":i5==="loading"},M.loading):u?M0.default.createElement("div",{className:i4(l==null?void 0:l.loader,(w1=N==null?void 0:N.classNames)==null?void 0:w1.loader,"sonner-loader"),"data-visible":i5==="loading"},u):M0.default.createElement(KE,{className:i4(l==null?void 0:l.loader,(_1=N==null?void 0:N.classNames)==null?void 0:_1.loader),visible:i5==="loading"})}return M0.default.createElement("li",{tabIndex:0,ref:v2,className:i4(G0,n4,l==null?void 0:l.toast,(J=N==null?void 0:N.classNames)==null?void 0:J.toast,l==null?void 0:l.default,l==null?void 0:l[i5],(Y=N==null?void 0:N.classNames)==null?void 0:Y[i5]),"data-sonner-toast":"","data-rich-colors":(G=N.richColors)!=null?G:j,"data-styled":!(N.jsx||N.unstyled||C),"data-mounted":w0,"data-promise":!!N.promise,"data-swiped":C1,"data-removed":N0,"data-visible":sZ,"data-y-position":c,"data-x-position":U0,"data-index":D,"data-front":_4,"data-swiping":b0,"data-dismissible":Iw,"data-type":i5,"data-invert":a0,"data-swipe-out":r1,"data-swipe-direction":X0,"data-expanded":!!($0||o&&w0),style:{"--index":D,"--toasts-before":D,"--z-index":i.length-D,"--offset":`${N0?iw:nw.current}px`,"--initial-height":o?"auto":`${k5}px`,...s,...N.style},onDragEnd:()=>{L5(!1),a(null),O.current=null},onPointerDown:(h0)=>{u0||!Iw||(a5.current=new Date,E0(nw.current),h0.target.setPointerCapture(h0.pointerId),h0.target.tagName!=="BUTTON"&&(L5(!0),O.current={x:h0.clientX,y:h0.clientY}))},onPointerUp:()=>{var h0,w1,_1,q2;if(r1||!Iw)return;O.current=null;let Zw=Number(((h0=v2.current)==null?void 0:h0.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),_w=Number(((w1=v2.current)==null?void 0:w1.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ow=new Date().getTime()-((_1=a5.current)==null?void 0:_1.getTime()),x5=r==="x"?Zw:_w,m5=Math.abs(x5)/ow;if(Math.abs(x5)>=VE||m5>0.11){E0(nw.current),(q2=N.onDismiss)==null||q2.call(N,N),J0(r==="x"?Zw>0?"right":"left":_w>0?"down":"up"),s0(),T1(!0),K1(!1);return}L5(!1),a(null)},onPointerMove:(h0)=>{var w1,_1,q2,Zw;if(!O.current||!Iw||((w1=window.getSelection())==null?void 0:w1.toString().length)>0)return;let _w=h0.clientY-O.current.y,ow=h0.clientX-O.current.x,x5=(_1=$.swipeDirections)!=null?_1:yE(e);!r&&(Math.abs(ow)>1||Math.abs(_w)>1)&&a(Math.abs(ow)>Math.abs(_w)?"x":"y");let m5={x:0,y:0};r==="y"?(x5.includes("top")||x5.includes("bottom"))&&(x5.includes("top")&&_w<0||x5.includes("bottom")&&_w>0)&&(m5.y=_w):r==="x"&&(x5.includes("left")||x5.includes("right"))&&(x5.includes("left")&&ow<0||x5.includes("right")&&ow>0)&&(m5.x=ow),(Math.abs(m5.x)>0||Math.abs(m5.y)>0)&&K1(!0),(q2=v2.current)==null||q2.style.setProperty("--swipe-amount-x",`${m5.x}px`),(Zw=v2.current)==null||Zw.style.setProperty("--swipe-amount-y",`${m5.y}px`)}},u6&&!N.jsx?M0.default.createElement("button",{"aria-label":z0,"data-disabled":u0,"data-close-button":!0,onClick:u0||!Iw?()=>{}:()=>{var h0;s0(),(h0=N.onDismiss)==null||h0.call(N,N)},className:i4(l==null?void 0:l.closeButton,(B=N==null?void 0:N.classNames)==null?void 0:B.closeButton)},(g=M==null?void 0:M.close)!=null?g:FE):null,N.jsx||M0.isValidElement(N.title)?N.jsx?N.jsx:typeof N.title=="function"?N.title():N.title:M0.default.createElement(M0.default.Fragment,null,i5||N.icon||N.promise?M0.default.createElement("div",{"data-icon":"",className:i4(l==null?void 0:l.icon,(Q=N==null?void 0:N.classNames)==null?void 0:Q.icon)},N.promise||N.type==="loading"&&!N.icon?N.icon||V0():null,N.type!=="loading"?N.icon||(M==null?void 0:M[i5])||QE(i5):null):null,M0.default.createElement("div",{"data-content":"",className:i4(l==null?void 0:l.content,(b=N==null?void 0:N.classNames)==null?void 0:b.content)},M0.default.createElement("div",{"data-title":"",className:i4(l==null?void 0:l.title,(K=N==null?void 0:N.classNames)==null?void 0:K.title)},typeof N.title=="function"?N.title():N.title),N.description?M0.default.createElement("div",{"data-description":"",className:i4(q0,G3,l==null?void 0:l.description,(k=N==null?void 0:N.classNames)==null?void 0:k.description)},typeof N.description=="function"?N.description():N.description):null),M0.isValidElement(N.cancel)?N.cancel:N.cancel&&Av(N.cancel)?M0.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:N.cancelButtonStyle||E,onClick:(h0)=>{var w1,_1;Av(N.cancel)&&Iw&&((_1=(w1=N.cancel).onClick)==null||_1.call(w1,h0),s0())},className:i4(l==null?void 0:l.cancelButton,(L=N==null?void 0:N.classNames)==null?void 0:L.cancelButton)},N.cancel.label):null,M0.isValidElement(N.action)?N.action:N.action&&Av(N.action)?M0.default.createElement("button",{"data-button":!0,"data-action":!0,style:N.actionButtonStyle||g0,onClick:(h0)=>{var w1,_1;Av(N.action)&&((_1=(w1=N.action).onClick)==null||_1.call(w1,h0),!h0.defaultPrevented&&s0())},className:i4(l==null?void 0:l.actionButton,(U=N==null?void 0:N.classNames)==null?void 0:U.actionButton)},N.action.label):null))};function kM(){if(typeof window>"u"||typeof document>"u")return"ltr";let $=document.documentElement.getAttribute("dir");return $==="auto"||!$?window.getComputedStyle(document.documentElement).direction:$}function dE($,J){let Y={};return[$,J].forEach((G,B)=>{let g=B===1,Q=g?"--mobile-offset":"--offset",b=g?PE:mE;function K(k){["top","right","bottom","left"].forEach((L)=>{Y[`${Q}-${L}`]=typeof k=="number"?`${k}px`:k})}typeof G=="number"||typeof G=="string"?K(G):typeof G=="object"?["top","right","bottom","left"].forEach((k)=>{G[k]===void 0?Y[`${Q}-${k}`]=b:Y[`${Q}-${k}`]=typeof G[k]=="number"?`${G[k]}px`:G[k]}):K(b)}),Y}var TM=M0.forwardRef(function($,J){let{invert:Y,position:G="bottom-right",hotkey:B=["altKey","KeyT"],expand:g,closeButton:Q,className:b,offset:K,mobileOffset:k,theme:L="light",richColors:U,duration:F,style:N,visibleToasts:C=xE,toastOptions:I,dir:A=kM(),gap:x=hE,loadingIcon:S,icons:D,containerAriaLabel:i="Notifications",pauseWhenPageIsHidden:$0}=$,[p,j]=M0.default.useState([]),Z0=M0.default.useMemo(()=>Array.from(new Set([G].concat(p.filter((m)=>m.position).map((m)=>m.position)))),[p,G]),[s,E]=M0.default.useState([]),[g0,G0]=M0.default.useState(!1),[q0,k0]=M0.default.useState(!1),[e,v0]=M0.default.useState(L!=="system"?L:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),u=M0.default.useRef(null),o=B.join("+").replace(/Key/g,"").replace(/Digit/g,""),l=M0.default.useRef(null),M=M0.default.useRef(!1),z0=M0.default.useCallback((m)=>{j((r)=>{var a;return(a=r.find((X0)=>X0.id===m.id))!=null&&a.delete||qw.dismiss(m.id),r.filter(({id:X0})=>X0!==m.id)})},[]);return M0.default.useEffect(()=>qw.subscribe((m)=>{if(m.dismiss){j((r)=>r.map((a)=>a.id===m.id?{...a,delete:!0}:a));return}setTimeout(()=>{FM.default.flushSync(()=>{j((r)=>{let a=r.findIndex((X0)=>X0.id===m.id);return a!==-1?[...r.slice(0,a),{...r[a],...m},...r.slice(a+1)]:[m,...r]})})})}),[]),M0.default.useEffect(()=>{if(L!=="system"){v0(L);return}if(L==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?v0("dark"):v0("light")),typeof window>"u")return;let m=window.matchMedia("(prefers-color-scheme: dark)");try{m.addEventListener("change",({matches:r})=>{v0(r?"dark":"light")})}catch(r){m.addListener(({matches:a})=>{try{v0(a?"dark":"light")}catch(X0){console.error(X0)}})}},[L]),M0.default.useEffect(()=>{p.length<=1&&G0(!1)},[p]),M0.default.useEffect(()=>{let m=(r)=>{var a,X0;B.every((J0)=>r[J0]||r.code===J0)&&(G0(!0),(a=u.current)==null||a.focus()),r.code==="Escape"&&(document.activeElement===u.current||(X0=u.current)!=null&&X0.contains(document.activeElement))&&G0(!1)};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[B]),M0.default.useEffect(()=>{if(u.current)return()=>{l.current&&(l.current.focus({preventScroll:!0}),l.current=null,M.current=!1)}},[u.current]),M0.default.createElement("section",{ref:J,"aria-label":`${i} ${o}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Z0.map((m,r)=>{var a;let[X0,J0]=m.split("-");return p.length?M0.default.createElement("ol",{key:m,dir:A==="auto"?kM():A,tabIndex:-1,ref:u,className:b,"data-sonner-toaster":!0,"data-theme":e,"data-y-position":X0,"data-lifted":g0&&p.length>1&&!g,"data-x-position":J0,style:{"--front-toast-height":`${((a=s[0])==null?void 0:a.height)||0}px`,"--width":`${fE}px`,"--gap":`${x}px`,...N,...dE(K,k)},onBlur:(w0)=>{M.current&&!w0.currentTarget.contains(w0.relatedTarget)&&(M.current=!1,l.current&&(l.current.focus({preventScroll:!0}),l.current=null))},onFocus:(w0)=>{w0.target instanceof HTMLElement&&w0.target.dataset.dismissible==="false"||M.current||(M.current=!0,l.current=w0.relatedTarget)},onMouseEnter:()=>G0(!0),onMouseMove:()=>G0(!0),onMouseLeave:()=>{q0||G0(!1)},onDragEnd:()=>G0(!1),onPointerDown:(w0)=>{w0.target instanceof HTMLElement&&w0.target.dataset.dismissible==="false"||k0(!0)},onPointerUp:()=>k0(!1)},p.filter((w0)=>!w0.position&&r===0||w0.position===m).map((w0,W0)=>{var N0,r0;return M0.default.createElement(SE,{key:w0.id,icons:D,index:W0,toast:w0,defaultRichColors:U,duration:(N0=I==null?void 0:I.duration)!=null?N0:F,className:I==null?void 0:I.className,descriptionClassName:I==null?void 0:I.descriptionClassName,invert:Y,visibleToasts:C,closeButton:(r0=I==null?void 0:I.closeButton)!=null?r0:Q,interacting:q0,position:m,style:I==null?void 0:I.style,unstyled:I==null?void 0:I.unstyled,classNames:I==null?void 0:I.classNames,cancelButtonStyle:I==null?void 0:I.cancelButtonStyle,actionButtonStyle:I==null?void 0:I.actionButtonStyle,removeToast:z0,toasts:p.filter((b0)=>b0.position==w0.position),heights:s.filter((b0)=>b0.position==w0.position),setHeights:E,expandByDefault:g,gap:x,loadingIcon:S,expanded:g0,pauseWhenPageIsHidden:$0,swipeDirections:$.swipeDirections})})):null}))});var IM=P(H0(),1);function rW({...$}){let{resolvedTheme:J}=hZ();return IM.jsxDEV(TM,{theme:J,className:"toaster group",position:"bottom-right",richColors:!0,closeButton:!0,...$},void 0,!1,void 0,this)}var S6={success:($,J)=>{Mv.success($,J)},error:($,J)=>{Mv.error($,J)},info:($,J)=>{Mv.info($,J)}};var p4=P(Q0(),1);var _M=P(H0(),1),DE=Qw("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function O1({className:$,variant:J,asChild:Y=!1,...G}){return _M.jsxDEV(Y?pG:"span",{"data-slot":"badge","data-variant":J??"default",className:O0(DE({variant:J}),$),...G},void 0,!1,void 0,this)}var xv=P(Q0(),1);var s7=P(H0(),1),OM=Qw("font-mono",{variants:{variant:{inline:"inline rounded bg-muted px-1.5 py-0.5 text-xs leading-relaxed",block:"relative block rounded-md bg-muted p-3 text-[13px] leading-relaxed max-h-80 overflow-auto whitespace-pre-wrap break-all group"}},defaultVariants:{variant:"inline"}});function nW($){if($===null||$===void 0||typeof $==="boolean")return"";if(typeof $==="string")return $;if(typeof $==="number")return String($);if(Array.isArray($))return $.map(nW).join("");if(xv.isValidElement($)){let J=$.props;return nW(J.children)}return""}function L4({className:$,variant:J,children:Y,...G}){if((J??"inline")==="inline")return s7.jsxDEV("code",{"data-slot":"code-block","data-variant":"inline",className:O0(OM({variant:"inline"}),$),...G,children:Y},void 0,!1,void 0,this);return s7.jsxDEV("pre",{"data-slot":"code-block","data-variant":"block",className:O0(OM({variant:"block"}),$),...G,children:[Y,s7.jsxDEV(jE,{getText:()=>nW(Y)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jE({getText:$}){let[J,Y]=xv.useState(!1);return s7.jsxDEV("button",{type:"button","aria-label":J?"Copied":"Copy to clipboard",onClick:()=>{let B=$();navigator.clipboard.writeText(B).then(()=>{Y(!0),setTimeout(()=>Y(!1),1500)})},className:"absolute top-2 right-2 inline-flex items-center justify-center rounded-md p-1 text-muted-foreground opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:J?s7.jsxDEV(pX,{className:"size-3.5"},void 0,!1,void 0,this):s7.jsxDEV(oX,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var t7=P(H0(),1),EE=Qw("flex flex-col items-center justify-center gap-4 p-8 text-center bg-card text-card-foreground rounded-xl border border-border ring-1 ring-foreground/10");function U5({icon:$,title:J,description:Y,action:G,className:B,...g}){return t7.jsxDEV("div",{"data-slot":"empty-state",className:O0(EE(),B),...g,children:[$!==void 0&&t7.jsxDEV($,{className:"size-8 text-muted-foreground","aria-hidden":"true"},void 0,!1,void 0,this),t7.jsxDEV("div",{className:"flex flex-col gap-1.5 items-center",children:[t7.jsxDEV("h3",{className:"text-sm font-medium tracking-tight",children:J},void 0,!1,void 0,this),Y!==void 0&&t7.jsxDEV("div",{className:"text-sm text-muted-foreground leading-relaxed max-w-md",children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G!==void 0&&t7.jsxDEV("div",{className:"mt-1",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var e7=P(H0(),1),uE=Qw("flex flex-col items-center justify-center gap-4 p-8 text-center bg-card text-card-foreground rounded-xl border border-border ring-1 ring-foreground/10");function H5({className:$,label:J="Loading",...Y}){return e7.jsxDEV("output",{"data-slot":"loading-card","aria-busy":"true","aria-live":"polite",className:O0(uE(),$),...Y,children:[e7.jsxDEV("div",{className:"size-8 rounded-md bg-muted/60 motion-safe:animate-pulse"},void 0,!1,void 0,this),e7.jsxDEV("div",{className:"flex flex-col items-center gap-2 w-full max-w-xs",children:[e7.jsxDEV("div",{className:"h-4 w-2/3 rounded bg-muted/60 motion-safe:animate-pulse"},void 0,!1,void 0,this),e7.jsxDEV("div",{className:"h-3 w-full rounded bg-muted/60 motion-safe:animate-pulse"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e7.jsxDEV("span",{className:"sr-only",children:[J,"…"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var m9=P(Q0(),1),lE=50;function cE($,J){return $.scrollHeight-$.scrollTop-$.clientHeight<=J}function mv($,J){let Y=J?.threshold??lE,G=J?.dependency,B=m9.useRef(!0),g=m9.useCallback(()=>{let b=$.current;if(!b)return;b.scrollTop=b.scrollHeight},[$]),Q=m9.useCallback(()=>{B.current=!0,g()},[g]);return m9.useEffect(()=>{let b=$.current;if(!b)return;let K=()=>{B.current=cE(b,Y)},k=()=>{if(B.current)b.scrollTop=b.scrollHeight};b.addEventListener("scroll",K,{passive:!0});let L=typeof ResizeObserver<"u"?ResizeObserver:null,U=typeof MutationObserver<"u"?MutationObserver:null,F=L?new L(k):null,N=U?new U(k):null,C=b.firstElementChild??b;return F?.observe(C),N?.observe(b,{subtree:!0,childList:!0,characterData:!0}),()=>{b.removeEventListener("scroll",K),F?.disconnect(),N?.disconnect()}},[$,Y]),m9.useEffect(()=>{let b=$.current;if(!b)return;if(B.current)b.scrollTop=b.scrollHeight},[G,$]),{pinToBottom:Q,scrollToBottom:g}}var AM=P(Q0(),1),CM=24;function aE({scrollTop:$,scrollHeight:J,clientHeight:Y}){if(J-Y<=0)return null;let B=$>0,g=$+Y<J;if(!B&&!g)return null;let Q=B?`${CM}px`:"0px",b=g?`${CM}px`:"0px";return`linear-gradient(to bottom, transparent 0, black ${Q}, black calc(100% - ${b}), transparent 100%)`}function Pv($){AM.useEffect(()=>{let J=$.current;if(!J)return;let Y=()=>{let Q=aE({scrollTop:J.scrollTop,scrollHeight:J.scrollHeight,clientHeight:J.clientHeight})??"";J.style.maskImage=Q,J.style.setProperty("-webkit-mask-image",Q)};Y(),J.addEventListener("scroll",Y,{passive:!0});let G=typeof ResizeObserver<"u"?ResizeObserver:null,B=G?new G(Y):null;return B?.observe(J),()=>{J.removeEventListener("scroll",Y),B?.disconnect()}},[$])}var d6=P(Q0(),1);var MM=500,iE=30000;function DZ($,J){let[Y,G]=d6.useState("closed"),B=d6.useRef(null),g=d6.useRef(J?.onMessage);return d6.useEffect(()=>{g.current=J?.onMessage}),d6.useEffect(()=>{if(!$){B.current?.close(),B.current=null,G("closed");return}let Q=!0,b=null,K=MM,k=()=>{if(!Q)return;let U=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${$}`;G("connecting");let F=new WebSocket(U);B.current=F,F.onopen=()=>{if(!Q){F.close();return}K=MM,G("open")},F.onmessage=(C)=>{try{let I=JSON.parse(C.data);g.current?.(I)}catch{console.warn("[ws] malformed frame",C.data)}};let N=()=>{if(!Q)return;G("closed");let C=K;K=Math.min(C*2,iE),b=setTimeout(k,C)};F.onclose=N,F.onerror=N};return k(),()=>{if(Q=!1,b!==null)clearTimeout(b);B.current?.close(),B.current=null,G("closed")}},[$]),HM($===null?null:Y),{status:Y,ws:B.current}}function xM($){let J=d6.useRef($);J.current=$,d6.useEffect(()=>{let Y=location.protocol==="https:"?"wss:":"ws:",G=new WebSocket(`${Y}//${location.host}/ws?mail=true`);return G.onmessage=(B)=>{try{let g=JSON.parse(typeof B.data==="string"?B.data:"");if(g!==null&&typeof g==="object"&&"type"in g&&g.type==="mail"&&"payload"in g){let Q=g.payload;if(Q!==null&&Q!==void 0&&"message"in Q)J.current(Q.message)}}catch{}},()=>G.close()},[])}var VJ=P(H0(),1);function M1({className:$,...J}){return VJ.jsxDEV("div",{"data-slot":"card",className:O0("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border border-border ring-1 ring-foreground/10 py-6",$),...J},void 0,!1,void 0,this)}function c1({className:$,...J}){return VJ.jsxDEV("div",{"data-slot":"card-header",className:O0("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",$),...J},void 0,!1,void 0,this)}function C5({className:$,...J}){return VJ.jsxDEV("div",{"data-slot":"card-title",className:O0("leading-none font-semibold",$),...J},void 0,!1,void 0,this)}function P1({className:$,...J}){return VJ.jsxDEV("div",{"data-slot":"card-content",className:O0("px-6",$),...J},void 0,!1,void 0,this)}var k4=P(Q0(),1);var jZ=P(H0(),1),mM=k4.createContext(null);function PM(){let $=k4.useContext(mM);if($===null)throw Error("Collapsible subcomponents must be used inside <Collapsible>");return $}function P9({open:$,defaultOpen:J=!1,onOpenChange:Y,className:G,children:B}){let[g,Q]=k4.useState(J),b=$!==void 0,K=b?$:g,k=k4.useId(),L=k4.useCallback((F)=>{if(!b)Q(F);Y?.(F)},[b,Y]),U=k4.useMemo(()=>({open:K,setOpen:L,contentId:k}),[K,L,k]);return jZ.jsxDEV(mM.Provider,{value:U,children:jZ.jsxDEV("div",{"data-slot":"collapsible","data-state":K?"open":"closed",className:G,children:B},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function f9({className:$,children:J,showChevron:Y=!0,onClick:G,...B}){let{open:g,setOpen:Q,contentId:b}=PM(),K=g?"open":"closed";return jZ.jsxDEV("button",{type:"button","data-slot":"collapsible-trigger","data-state":K,"aria-expanded":g,"aria-controls":b,onClick:(k)=>{if(G?.(k),!k.defaultPrevented)Q(!g)},className:O0("inline-flex items-center gap-1.5 rounded-md text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",$),...B,children:[J,Y&&jZ.jsxDEV(d7,{"data-state":K,className:"size-3.5 transition-transform data-[state=open]:rotate-180"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function h9({className:$,children:J,...Y}){let{open:G,contentId:B}=PM();if(!G)return null;return jZ.jsxDEV("div",{id:B,"data-slot":"collapsible-content","data-state":"open",className:$,...Y,children:J},void 0,!1,void 0,this)}var J1=P(H0(),1),pE=["turn_start","turn_end","progress","result"];function rE($){if($.level==="error"||$.eventType==="error")return"error";if($.eventType==="tool_start")return"tool_use";if($.eventType==="tool_end")return"tool_result";if(pE.includes($.eventType))return"assistant_message";if($.data)try{let J=JSON.parse($.data);if(J&&typeof J==="object"&&"delta"in J)return"assistant_message"}catch{}return"generic"}function nE($){if(!$.data)return"";try{let J=JSON.parse($.data);if(J&&typeof J==="object"&&"delta"in J&&typeof J.delta==="string")return J.delta}catch{}return $.data}function oE($,J){if($)try{let Y=JSON.parse($);if(Y&&typeof Y==="object"&&"summary"in Y&&typeof Y.summary==="string")return Y.summary}catch{}return J??"tool"}function fv($){try{return new Date($).toLocaleTimeString()}catch{return $}}function sE({event:$}){let J=oE($.toolArgs,$.toolName);return J1.jsxDEV(M1,{className:"py-3 gap-2",children:J1.jsxDEV(c1,{className:"px-4 pb-0 pt-0",children:J1.jsxDEV("div",{className:"flex items-start gap-2",children:[J1.jsxDEV(O1,{variant:"secondary",className:"self-start",children:"tool"},void 0,!1,void 0,this),J1.jsxDEV(C5,{className:"text-xs font-mono font-normal truncate",children:J},void 0,!1,void 0,this),J1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:$.createdAt,children:fv($.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function tE({event:$}){let J=`${$.toolName??"tool"} OK${$.toolDurationMs!=null?` ${$.toolDurationMs}ms`:""}`;return J1.jsxDEV(P9,{children:J1.jsxDEV(M1,{className:"py-3 gap-2",children:[J1.jsxDEV(c1,{className:"px-4 pb-0 pt-0",children:J1.jsxDEV("div",{className:"flex items-start gap-2",children:[J1.jsxDEV(O1,{variant:"outline",className:"self-start",children:"result"},void 0,!1,void 0,this),J1.jsxDEV("span",{className:"text-xs text-muted-foreground font-mono",title:$.createdAt,children:J},void 0,!1,void 0,this),J1.jsxDEV(f9,{className:"ml-auto self-start","aria-label":"Toggle tool output"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$.data&&J1.jsxDEV(h9,{children:J1.jsxDEV(P1,{className:"px-4 pt-0",children:J1.jsxDEV(L4,{variant:"block",children:$.data},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function eE({event:$}){let J=nE($);if(!J)return null;return J1.jsxDEV(M1,{className:"py-3 gap-2",children:[J1.jsxDEV(c1,{className:"px-4 pb-0 pt-0",children:J1.jsxDEV("div",{className:"flex items-start gap-2",children:[J1.jsxDEV(O1,{variant:"outline",className:"self-start",children:"msg"},void 0,!1,void 0,this),J1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:$.createdAt,children:fv($.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J1.jsxDEV(P1,{className:"px-4 pt-0",children:J1.jsxDEV("p",{className:"text-sm whitespace-pre-wrap border-l-2 border-border pl-3",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wu({event:$}){let J=$.data??`${$.level} / ${$.eventType}`;return J1.jsxDEV(M1,{className:"py-3 gap-2 border-destructive/60",children:[J1.jsxDEV(c1,{className:"px-4 pb-0 pt-0",children:J1.jsxDEV("div",{className:"flex items-start gap-2",children:[J1.jsxDEV(O1,{variant:"destructive",className:"self-start",children:"error"},void 0,!1,void 0,this),J1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:$.createdAt,children:fv($.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J1.jsxDEV(P1,{className:"px-4 pt-0",children:J1.jsxDEV("p",{className:"text-sm text-destructive whitespace-pre-wrap border-l-2 border-destructive/60 pl-3",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Zu({event:$}){return J1.jsxDEV(M1,{className:"py-3 gap-2",children:J1.jsxDEV(c1,{className:"px-4 pb-0 pt-0",children:J1.jsxDEV("div",{className:"flex items-start gap-2",children:[J1.jsxDEV(O1,{variant:"outline",className:"self-start",children:$.eventType},void 0,!1,void 0,this),J1.jsxDEV(O1,{variant:"secondary",className:"text-xs self-start",children:$.level},void 0,!1,void 0,this),J1.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground shrink-0 self-start",title:$.createdAt,children:fv($.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function hv({event:$}){switch(rE($)){case"error":return J1.jsxDEV(wu,{event:$},void 0,!1,void 0,this);case"tool_use":return J1.jsxDEV(sE,{event:$},void 0,!1,void 0,this);case"tool_result":return J1.jsxDEV(tE,{event:$},void 0,!1,void 0,this);case"assistant_message":return J1.jsxDEV(eE,{event:$},void 0,!1,void 0,this);default:return J1.jsxDEV(Zu,{event:$},void 0,!1,void 0,this)}}var Lw=P(H0(),1);async function $u($){let J=await fetch(`/api/events?agent=${encodeURIComponent($)}&limit=100`);if(!J.ok)throw Error(`Failed to fetch events: ${J.status}`);let Y=await J.json();if(Y&&typeof Y==="object"&&"success"in Y&&Y.success&&"data"in Y)return Y.data;return[]}function Xu($){return"batched"in $&&$.batched===!0}function Ju($){if(!$.data)return"";try{let J=JSON.parse($.data);if(J&&typeof J==="object"&&"delta"in J&&typeof J.delta==="string")return J.delta}catch{}return $.data}var Yu={connecting:"connecting",open:"live",closed:"disconnected"},zu={connecting:"secondary",open:"default",closed:"destructive"};function fM(){let{name:$}=JQ(),J=c0({queryKey:["events",$],queryFn:()=>$?$u($):Promise.resolve([]),staleTime:Number.POSITIVE_INFINITY,refetchOnWindowFocus:!1,enabled:Boolean($)}),[Y,G]=p4.useState([]),B=p4.useRef(-1),g=$?`/ws?agent=${encodeURIComponent($)}`:null,Q=p4.useCallback((U)=>{if(U.type!=="event")return;let{payload:F}=U;if(Xu(F)){let N=F.events.map(Ju).join(""),C=F.events[0];if(!C)return;let I={...C,id:B.current--,data:JSON.stringify({delta:N})};G((A)=>[...A,I])}else{let N=F;G((C)=>{if(C.some((I)=>I.id===N.id))return C;return[...C,N]})}},[]),{status:b}=DZ(g,{onMessage:Q});p4.useEffect(()=>{if(!$)return;G([]),B.current=-1},[$]);let K=p4.useMemo(()=>{let U=J.data??[],F=new Set;return[...U,...Y].filter((N)=>{if(F.has(N.id))return!1;return F.add(N.id),!0}).sort((N,C)=>N.id-C.id)},[J.data,Y]),k=p4.useRef(null);mv(k,{dependency:K.length}),Pv(k);let L=$??"unknown";return Lw.jsxDEV("div",{className:"flex flex-col h-full",children:[Lw.jsxDEV("div",{className:"flex items-center gap-3 px-6 py-4 border-b border-border shrink-0",children:[Lw.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight font-mono",children:L},void 0,!1,void 0,this),Lw.jsxDEV(O1,{variant:zu[b],children:Yu[b]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Lw.jsxDEV("div",{ref:k,className:"flex-1 min-h-0 overflow-auto",children:Lw.jsxDEV("div",{className:"px-6 py-5 flex flex-col gap-2.5 max-w-5xl mx-auto",children:[J.isLoading&&Lw.jsxDEV(H5,{label:"Loading events"},void 0,!1,void 0,this),!J.isLoading&&K.length===0&&Lw.jsxDEV(U5,{icon:S7,title:`No events for ${L}`,description:Lw.jsxDEV(Lw.Fragment,{children:["Nudge the agent to wake it up:"," ",Lw.jsxDEV(L4,{children:`ap nudge ${L} "Status check"`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),K.map((U)=>Lw.jsxDEV(hv,{event:U},U.id,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var V9=P(H0(),1);function S2({label:$,value:J,icon:Y,hint:G,tone:B="default"}){return V9.jsxDEV(M1,{className:"gap-3 py-5",children:[V9.jsxDEV(c1,{children:V9.jsxDEV(C5,{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground uppercase tracking-wide",children:[Y?V9.jsxDEV(Y,{className:"size-3.5"},void 0,!1,void 0,this):null,$]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V9.jsxDEV(P1,{children:[V9.jsxDEV("p",{className:O0("text-3xl font-semibold tabular-nums",B==="destructive"&&"text-destructive"),children:J},void 0,!1,void 0,this),G?V9.jsxDEV("p",{className:"mt-1 text-xs text-muted-foreground",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var R9=P(H0(),1);function y9({className:$,...J}){return R9.jsxDEV("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:R9.jsxDEV("table",{"data-slot":"table",className:O0("w-full caption-bottom text-sm",$),...J},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function S9({className:$,...J}){return R9.jsxDEV("thead",{"data-slot":"table-header",className:O0("[&_tr]:border-b",$),...J},void 0,!1,void 0,this)}function d9({className:$,...J}){return R9.jsxDEV("tbody",{"data-slot":"table-body",className:O0("[&_tr:last-child]:border-0",$),...J},void 0,!1,void 0,this)}function F4({className:$,...J}){return R9.jsxDEV("tr",{"data-slot":"table-row",className:O0("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px]",$),...J},void 0,!1,void 0,this)}function e1({className:$,...J}){return R9.jsxDEV("th",{"data-slot":"table-head",className:O0("text-muted-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",$),...J},void 0,!1,void 0,this)}function w5({className:$,...J}){return R9.jsxDEV("td",{"data-slot":"table-cell",className:O0("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",$),...J},void 0,!1,void 0,this)}var e0=P(H0(),1);function hM(){let $=c0({queryKey:["metrics"],queryFn:()=>qJ(100),refetchInterval:1e4}),J=$.data;if($.isLoading)return e0.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:e0.jsxDEV(H5,{label:"Loading metrics"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!J||J.totalSessions===0)return e0.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:e0.jsxDEV(U5,{icon:D7,title:"No cost data yet",description:"Token usage and cost are recorded as agent sessions complete."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let{tokenTotals:Y,byCapability:G,recentSessions:B}=J,g=Y.inputTokens+Y.outputTokens,Q=Object.entries(G).sort((K,k)=>k[1].count-K[1].count),b=Math.max(1,...Q.map(([,K])=>K.count));return e0.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[e0.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Costs & usage"},void 0,!1,void 0,this),e0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e0.jsxDEV(S2,{label:"Est. cost",value:PZ(Y.estimatedCostUsd)},void 0,!1,void 0,this),e0.jsxDEV(S2,{label:"Total tokens",value:f6(g)},void 0,!1,void 0,this),e0.jsxDEV(S2,{label:"Input / output",value:`${f6(Y.inputTokens)} / ${f6(Y.outputTokens)}`},void 0,!1,void 0,this),e0.jsxDEV(S2,{label:"Cache read",value:f6(Y.cacheReadTokens),hint:`${f6(Y.cacheCreationTokens)} created`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e0.jsxDEV(M1,{children:[e0.jsxDEV(c1,{children:e0.jsxDEV(C5,{className:"text-sm",children:"By capability"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e0.jsxDEV(P1,{className:"flex flex-col gap-3",children:Q.map(([K,k])=>e0.jsxDEV("div",{className:"flex items-center gap-3 text-sm",children:[e0.jsxDEV("span",{className:"w-24 shrink-0 font-mono text-xs",children:K},void 0,!1,void 0,this),e0.jsxDEV("div",{className:"flex-1 h-2 rounded-full bg-muted overflow-hidden",children:e0.jsxDEV("div",{className:"h-full bg-primary",style:{width:`${k.count/b*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),e0.jsxDEV("span",{className:"w-12 text-right tabular-nums text-xs",children:k.count},void 0,!1,void 0,this),e0.jsxDEV("span",{className:"w-20 text-right tabular-nums text-xs text-muted-foreground",children:fZ(k.avgDurationMs)},void 0,!1,void 0,this)]},K,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e0.jsxDEV(M1,{children:[e0.jsxDEV(c1,{children:e0.jsxDEV(C5,{className:"text-sm",children:"Recent sessions"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e0.jsxDEV(P1,{children:e0.jsxDEV(y9,{children:[e0.jsxDEV(S9,{children:e0.jsxDEV(F4,{children:[e0.jsxDEV(e1,{children:"Agent"},void 0,!1,void 0,this),e0.jsxDEV(e1,{children:"Capability"},void 0,!1,void 0,this),e0.jsxDEV(e1,{children:"Started"},void 0,!1,void 0,this),e0.jsxDEV(e1,{className:"text-right",children:"Duration"},void 0,!1,void 0,this),e0.jsxDEV(e1,{className:"text-right",children:"Tokens"},void 0,!1,void 0,this),e0.jsxDEV(e1,{className:"text-right",children:"Cost"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),e0.jsxDEV(d9,{children:B.map((K)=>e0.jsxDEV(F4,{children:[e0.jsxDEV(w5,{className:"font-mono text-xs",children:K.agentName},void 0,!1,void 0,this),e0.jsxDEV(w5,{className:"text-sm",children:K.capability},void 0,!1,void 0,this),e0.jsxDEV(w5,{className:"text-xs",children:$2(K.startedAt)},void 0,!1,void 0,this),e0.jsxDEV(w5,{className:"text-right text-xs tabular-nums",children:K.completedAt?fZ(K.durationMs):"running"},void 0,!1,void 0,this),e0.jsxDEV(w5,{className:"text-right text-xs tabular-nums",children:f6((K.inputTokens??0)+(K.outputTokens??0))},void 0,!1,void 0,this),e0.jsxDEV(w5,{className:"text-right text-xs tabular-nums",children:PZ(K.estimatedCostUsd??0)},void 0,!1,void 0,this)]},K.sessionId,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var d1=P(Q0(),1);async function RJ($,J){let Y={method:"POST"};if(J!==void 0)Y.headers={"Content-Type":"application/json"},Y.body=JSON.stringify(J);let G=await fetch($,Y),B=await G.json();if(!G.ok||B.success!==!0||B.data===void 0)throw Error(B.error??`Request failed: ${G.status}`);return B.data}async function Gu($){let J=await fetch($),Y=await J.json();if(!J.ok||Y.success!==!0||Y.data===void 0)throw Error(Y.error??`Request failed: ${J.status}`);return Y.data}function EZ(){return Gu("/api/coordinator/state")}function Vv($){return RJ("/api/coordinator/send",$)}function VM($){return RJ("/api/coordinator/ask",$)}function RM(){return RJ("/api/coordinator/check-complete")}function oW(){return RJ("/api/coordinator/start")}function yM(){return RJ("/api/coordinator/stop")}var X2=P(Q0(),1),dM=P(b9(),1);var cw=P(H0(),1),SM=[{cmd:"/check-complete",hint:"Evaluate exit triggers"},{cmd:"/status",hint:"Show coordinator state"},{cmd:"/stop",hint:"Stop the coordinator (confirm)"},{cmd:"/start",hint:"Start the coordinator"},{cmd:"/ask",hint:"/ask <subject> — switch to ask mode for next send"}];function vu($){let J=$.trim();return J==="/"||/^\/[a-z-]*$/.test(J)}function Bu($){let J=$.trim();if(!J.startsWith("/"))return SM;return SM.filter((Y)=>Y.cmd.startsWith(J))}function DM({value:$,onChange:J,onSend:Y,onStop:G,onAsk:B,onSlashCommand:g,isPending:Q}){let b=X2.useRef(null),K=X2.useRef(null),k=X2.useRef(null),L=X2.useRef(null),[U,F]=X2.useState(null),[N,C]=X2.useState(!1),[I,A]=X2.useState(null),x=X2.useMemo(()=>vu($)&&!N,[$,N]),S=X2.useMemo(()=>Bu($),[$]),D=X2.useCallback(()=>{let s=k.current;if(!s)return;let E=s.getBoundingClientRect(),g0=24;A({left:E.left+g0,bottom:window.innerHeight-E.top+8,width:Math.max(0,E.width-g0*2)})},[]);X2.useLayoutEffect(()=>{if(!x)return;D()},[x,D]),X2.useEffect(()=>{if(!x)return;function s(){D()}return window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}},[x,D]),X2.useEffect(()=>{if(!x)return;function s(E){let g0=E.target;if(K.current?.contains(g0))return;if(L.current?.contains(g0))return;C(!0)}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[x]);function i(s){let E=$.trim();if(E==="")return;if(C(!0),E==="/check-complete"||E==="/status"||E==="/stop"||E==="/start"){g(E),J("");return}if(E.startsWith("/ask ")){let g0=E.slice(5).trim();if(g0!=="")F({subject:g0}),J("");return}if(U!==null){B(U.subject,E),F(null),J("");return}if(s.askMode){B("question",E),J("");return}Y(E),J("")}function $0(s){if(s.key==="Escape"&&x){s.preventDefault(),C(!0);return}let E=s.metaKey||s.ctrlKey;if(s.key==="Enter"&&E)s.preventDefault(),i({askMode:s.shiftKey})}function p(s){if(s.cmd==="/ask"){J("/ask "),b.current?.focus(),C(!0);return}g(s.cmd),J(""),C(!0)}function j(){if(Q){G();return}i({askMode:!1})}let Z0=U?`Ask body for "${U.subject}" (Cmd+Enter to send)…`:'Type a message. "/" for commands. Cmd+Enter to send.';return cw.jsxDEV("div",{ref:K,className:"border-t border-border bg-background shrink-0",children:[U!==null&&cw.jsxDEV("div",{className:"px-6 pt-3 text-xs text-muted-foreground flex items-center gap-2",children:[cw.jsxDEV("span",{children:"Ask mode armed:"},void 0,!1,void 0,this),cw.jsxDEV("span",{className:"font-medium text-foreground",children:U.subject},void 0,!1,void 0,this),cw.jsxDEV("button",{type:"button",className:"ml-auto hover:text-foreground transition-colors",onClick:()=>F(null),children:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),cw.jsxDEV("div",{ref:k,className:"relative px-6 py-4 flex items-end gap-3 max-w-4xl mx-auto w-full",children:[cw.jsxDEV("textarea",{ref:b,value:$,onChange:(s)=>{J(s.target.value),C(!1)},onKeyDown:$0,onBlur:()=>C(!0),placeholder:Z0,rows:2,className:"flex-1 resize-none border border-border rounded-lg px-3 py-2.5 text-sm leading-relaxed bg-background placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-shadow"},void 0,!1,void 0,this),cw.jsxDEV(S1,{type:"button",onClick:j,variant:Q?"secondary":"default",size:"default",children:Q?"Stop":U!==null?"Ask":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&S.length>0&&I!==null&&dM.createPortal(cw.jsxDEV("div",{ref:L,role:"listbox","aria-label":"Slash commands",style:{position:"fixed",left:I.left,bottom:I.bottom,width:I.width},className:"z-50 border border-border rounded-lg bg-popover shadow-md text-sm overflow-hidden",children:S.map((s)=>cw.jsxDEV("button",{type:"button",role:"option","aria-selected":"false",className:"w-full text-left px-4 py-2.5 hover:bg-accent flex items-baseline gap-3 transition-colors",onMouseDown:(E)=>E.preventDefault(),onClick:()=>p(s),children:[cw.jsxDEV("span",{className:"font-mono text-xs",children:s.cmd},void 0,!1,void 0,this),cw.jsxDEV("span",{className:"text-xs text-muted-foreground",children:s.hint},void 0,!1,void 0,this)]},s.cmd,!0,void 0,this))},void 0,!1,void 0,this),document.body)]},void 0,!0,void 0,this)}var D6=P(H0(),1),Hu=[{icon:rX,text:"What's currently in flight? Give me a one-screen summary."},{icon:GJ,text:"Are we ready to ship? Run /check-complete."},{icon:E7,text:"Spawn a lead for the next ready issue."}];function jM({onSelect:$,onStartNewRun:J,isStopped:Y}){return D6.jsxDEV("div",{className:"flex flex-col items-center justify-center h-full gap-8 p-8",children:[D6.jsxDEV(U5,{className:"max-w-md border-0 ring-0 bg-transparent",icon:YJ,title:"Coordinator console",description:"Send a message to start. Replies arrive inline.",action:Y===!0&&J!==void 0?D6.jsxDEV(S1,{type:"button",size:"lg",onClick:J,children:"Start new run"},void 0,!1,void 0,this):void 0},void 0,!1,void 0,this),D6.jsxDEV("div",{className:"grid gap-3 w-full max-w-3xl sm:grid-cols-3",children:Hu.map((B)=>{let g=B.icon;return D6.jsxDEV("button",{type:"button","aria-label":B.text,onClick:()=>$(B.text),className:"text-left",children:D6.jsxDEV(M1,{className:"py-5 gap-3 h-full transition-colors hover:bg-accent hover:border-accent-foreground/20",children:D6.jsxDEV(P1,{className:"px-5 flex flex-col gap-3",children:[D6.jsxDEV(g,{"aria-hidden":"true",className:"size-5 text-muted-foreground"},void 0,!1,void 0,this),D6.jsxDEV("span",{className:"text-sm leading-relaxed",children:B.text},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},B.text,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var yJ=P(Q0(),1);var J2=P(H0(),1);function gu($,J){let Y=$.trim();if(Y!=="")return Y;let G=J.split(`
|
|
287
|
+
`)[0]?.slice(0,80).trim()??"";if(G!=="")return G;return"new run"}function EM({open:$,onOpenChange:J,onStart:Y,isStarting:G,error:B}){let[g,Q]=yJ.useState(""),[b,K]=yJ.useState("");yJ.useEffect(()=>{if(!$)Q(""),K("")},[$]);let k=b.trim(),L=k!==""&&!G;async function U(F){if(F.preventDefault(),!L)return;let N=gu(g,b);await Y(N,k)}return J2.jsxDEV(F9,{open:$,onOpenChange:J,children:J2.jsxDEV(N9,{children:J2.jsxDEV("form",{onSubmit:U,className:"contents",children:[J2.jsxDEV(T9,{children:[J2.jsxDEV(I9,{children:"Start a new run"},void 0,!1,void 0,this),J2.jsxDEV(_9,{children:"Starts the coordinator and sends an initial prompt to seed the run."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J2.jsxDEV("div",{className:"flex flex-col gap-5",children:[J2.jsxDEV("div",{className:"flex flex-col gap-2",children:[J2.jsxDEV("label",{htmlFor:"new-run-subject",className:"text-sm font-medium",children:["Subject ",J2.jsxDEV("span",{className:"text-muted-foreground font-normal",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J2.jsxDEV("input",{id:"new-run-subject",type:"text",value:g,onChange:(F)=>Q(F.target.value),disabled:G,placeholder:"Derived from the first line if blank",className:"border border-border rounded-md px-3 py-2 text-sm bg-background placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent disabled:opacity-50 transition-shadow"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J2.jsxDEV("div",{className:"flex flex-col gap-2",children:[J2.jsxDEV("label",{htmlFor:"new-run-body",className:"text-sm font-medium",children:"Initial prompt"},void 0,!1,void 0,this),J2.jsxDEV("textarea",{id:"new-run-body",value:b,onChange:(F)=>K(F.target.value),disabled:G,rows:6,required:!0,placeholder:"What should the coordinator do?",className:"resize-y border border-border rounded-md px-3 py-2 text-sm leading-relaxed bg-background placeholder:text-muted-foreground/70 focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent disabled:opacity-50 transition-shadow"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B!==null&&J2.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2.5 text-sm text-destructive",children:B},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J2.jsxDEV(mZ,{children:[J2.jsxDEV(S1,{type:"button",variant:"ghost",onClick:()=>J(!1),disabled:G,children:"Cancel"},void 0,!1,void 0,this),J2.jsxDEV(S1,{type:"submit",disabled:!L,children:G?"Starting…":"Start run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var uZ=P(H0(),1);function bu($){if(!$.running)return{label:"stopped",variant:"secondary"};if($.headless)return{label:"running (headless)",variant:"default"};return{label:"running (tmux)",variant:"outline"}}function Qu($){let J=[];if($.pid!==null)J.push(`pid: ${$.pid}`);if($.runId!==null)J.push(`run: ${$.runId}`);if($.startedAt!==null)J.push(`started: ${$.startedAt}`);return J.join(`
|
|
288
|
+
`)}function uM({lastCheck:$}){let{data:J,isLoading:Y,isError:G}=c0({queryKey:["coordinator-state"],queryFn:EZ,refetchInterval:5000});if(Y)return uZ.jsxDEV(O1,{variant:"secondary",className:"font-normal",children:"…"},void 0,!1,void 0,this);if(G||J===void 0)return uZ.jsxDEV(O1,{variant:"destructive",className:"font-normal",children:"state unavailable"},void 0,!1,void 0,this);let B=bu(J),g=Qu(J);return uZ.jsxDEV("div",{className:"flex items-center gap-2",children:[uZ.jsxDEV(O1,{variant:B.variant,className:"font-normal",title:g||void 0,children:B.label},void 0,!1,void 0,this),$!==null&&uZ.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["Last check-complete: ",$.result.complete?"YES":"NO"," ·"," ",new Date($.at).toLocaleTimeString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Fw=P(Q0(),1);var D0=P(Q0(),1);function lM($,[J,Y]){return Math.min(Y,Math.max(J,$))}var aM=P(Q0(),1),f1=P(z5(),1);function Wu($,J){return aM.useReducer((Y,G)=>{return J[Y][G]??Y},$)}var sW="ScrollArea",[iM,At1]=f2(sW),[Ku,N4]=iM(sW),pM=D0.forwardRef(($,J)=>{let{__scopeScrollArea:Y,type:G="hover",dir:B,scrollHideDelay:g=600,...Q}=$,[b,K]=D0.useState(null),[k,L]=D0.useState(null),[U,F]=D0.useState(null),[N,C]=D0.useState(null),[I,A]=D0.useState(null),[x,S]=D0.useState(0),[D,i]=D0.useState(0),[$0,p]=D0.useState(!1),[j,Z0]=D0.useState(!1),s=A1(J,(g0)=>K(g0)),E=C9(B);return f1.jsx(Ku,{scope:Y,type:G,dir:E,scrollHideDelay:g,scrollArea:b,viewport:k,onViewportChange:L,content:U,onContentChange:F,scrollbarX:N,onScrollbarXChange:C,scrollbarXEnabled:$0,onScrollbarXEnabledChange:p,scrollbarY:I,onScrollbarYChange:A,scrollbarYEnabled:j,onScrollbarYEnabledChange:Z0,onCornerWidthChange:S,onCornerHeightChange:i,children:f1.jsx(g1.div,{dir:E,...Q,ref:s,style:{position:"relative",["--radix-scroll-area-corner-width"]:x+"px",["--radix-scroll-area-corner-height"]:D+"px",...$.style}})})});pM.displayName=sW;var rM="ScrollAreaViewport",nM=D0.forwardRef(($,J)=>{let{__scopeScrollArea:Y,children:G,nonce:B,...g}=$,Q=N4(rM,Y),b=D0.useRef(null),K=A1(J,b,Q.onViewportChange);return f1.jsxs(f1.Fragment,{children:[f1.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:B}),f1.jsx(g1.div,{"data-radix-scroll-area-viewport":"",...g,ref:K,style:{overflowX:Q.scrollbarXEnabled?"scroll":"hidden",overflowY:Q.scrollbarYEnabled?"scroll":"hidden",...$.style},children:f1.jsx("div",{ref:Q.onContentChange,style:{minWidth:"100%",display:"table"},children:G})})]})});nM.displayName=rM;var j6="ScrollAreaScrollbar",tW=D0.forwardRef(($,J)=>{let{forceMount:Y,...G}=$,B=N4(j6,$.__scopeScrollArea),{onScrollbarXEnabledChange:g,onScrollbarYEnabledChange:Q}=B,b=$.orientation==="horizontal";return D0.useEffect(()=>{return b?g(!0):Q(!0),()=>{b?g(!1):Q(!1)}},[b,g,Q]),B.type==="hover"?f1.jsx(Uu,{...G,ref:J,forceMount:Y}):B.type==="scroll"?f1.jsx(qu,{...G,ref:J,forceMount:Y}):B.type==="auto"?f1.jsx(oM,{...G,ref:J,forceMount:Y}):B.type==="always"?f1.jsx(eW,{...G,ref:J}):null});tW.displayName=j6;var Uu=D0.forwardRef(($,J)=>{let{forceMount:Y,...G}=$,B=N4(j6,$.__scopeScrollArea),[g,Q]=D0.useState(!1);return D0.useEffect(()=>{let b=B.scrollArea,K=0;if(b){let k=()=>{window.clearTimeout(K),Q(!0)},L=()=>{K=window.setTimeout(()=>Q(!1),B.scrollHideDelay)};return b.addEventListener("pointerenter",k),b.addEventListener("pointerleave",L),()=>{window.clearTimeout(K),b.removeEventListener("pointerenter",k),b.removeEventListener("pointerleave",L)}}},[B.scrollArea,B.scrollHideDelay]),f1.jsx(I2,{present:Y||g,children:f1.jsx(oM,{"data-state":g?"visible":"hidden",...G,ref:J})})}),qu=D0.forwardRef(($,J)=>{let{forceMount:Y,...G}=$,B=N4(j6,$.__scopeScrollArea),g=$.orientation==="horizontal",Q=dv(()=>K("SCROLL_END"),100),[b,K]=Wu("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return D0.useEffect(()=>{if(b==="idle"){let k=window.setTimeout(()=>K("HIDE"),B.scrollHideDelay);return()=>window.clearTimeout(k)}},[b,B.scrollHideDelay,K]),D0.useEffect(()=>{let k=B.viewport,L=g?"scrollLeft":"scrollTop";if(k){let U=k[L],F=()=>{let N=k[L];if(U!==N)K("SCROLL"),Q();U=N};return k.addEventListener("scroll",F),()=>k.removeEventListener("scroll",F)}},[B.viewport,g,K,Q]),f1.jsx(I2,{present:Y||b!=="hidden",children:f1.jsx(eW,{"data-state":b==="hidden"?"hidden":"visible",...G,ref:J,onPointerEnter:d0($.onPointerEnter,()=>K("POINTER_ENTER")),onPointerLeave:d0($.onPointerLeave,()=>K("POINTER_LEAVE"))})})}),oM=D0.forwardRef(($,J)=>{let Y=N4(j6,$.__scopeScrollArea),{forceMount:G,...B}=$,[g,Q]=D0.useState(!1),b=$.orientation==="horizontal",K=dv(()=>{if(Y.viewport){let k=Y.viewport.offsetWidth<Y.viewport.scrollWidth,L=Y.viewport.offsetHeight<Y.viewport.scrollHeight;Q(b?k:L)}},10);return lZ(Y.viewport,K),lZ(Y.content,K),f1.jsx(I2,{present:G||g,children:f1.jsx(eW,{"data-state":g?"visible":"hidden",...B,ref:J})})}),eW=D0.forwardRef(($,J)=>{let{orientation:Y="vertical",...G}=$,B=N4(j6,$.__scopeScrollArea),g=D0.useRef(null),Q=D0.useRef(0),[b,K]=D0.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),k=wx(b.viewport,b.content),L={...G,sizes:b,onSizesChange:K,hasThumb:Boolean(k>0&&k<1),onThumbChange:(F)=>g.current=F,onThumbPointerUp:()=>Q.current=0,onThumbPointerDown:(F)=>Q.current=F};function U(F,N){return Iu(F,Q.current,b,N)}if(Y==="horizontal")return f1.jsx(Lu,{...L,ref:J,onThumbPositionChange:()=>{if(B.viewport&&g.current){let F=B.viewport.scrollLeft,N=cM(F,b,B.dir);g.current.style.transform=`translate3d(${N}px, 0, 0)`}},onWheelScroll:(F)=>{if(B.viewport)B.viewport.scrollLeft=F},onDragScroll:(F)=>{if(B.viewport)B.viewport.scrollLeft=U(F,B.dir)}});if(Y==="vertical")return f1.jsx(ku,{...L,ref:J,onThumbPositionChange:()=>{if(B.viewport&&g.current){let F=B.viewport.scrollTop,N=cM(F,b);g.current.style.transform=`translate3d(0, ${N}px, 0)`}},onWheelScroll:(F)=>{if(B.viewport)B.viewport.scrollTop=F},onDragScroll:(F)=>{if(B.viewport)B.viewport.scrollTop=U(F)}});return null}),Lu=D0.forwardRef(($,J)=>{let{sizes:Y,onSizesChange:G,...B}=$,g=N4(j6,$.__scopeScrollArea),[Q,b]=D0.useState(),K=D0.useRef(null),k=A1(J,K,g.onScrollbarXChange);return D0.useEffect(()=>{if(K.current)b(getComputedStyle(K.current))},[K]),f1.jsx(tM,{"data-orientation":"horizontal",...B,ref:k,sizes:Y,style:{bottom:0,left:g.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:g.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,["--radix-scroll-area-thumb-width"]:Sv(Y)+"px",...$.style},onThumbPointerDown:(L)=>$.onThumbPointerDown(L.x),onDragScroll:(L)=>$.onDragScroll(L.x),onWheelScroll:(L,U)=>{if(g.viewport){let F=g.viewport.scrollLeft+L.deltaX;if($.onWheelScroll(F),$x(F,U))L.preventDefault()}},onResize:()=>{if(K.current&&g.viewport&&Q)G({content:g.viewport.scrollWidth,viewport:g.viewport.offsetWidth,scrollbar:{size:K.current.clientWidth,paddingStart:yv(Q.paddingLeft),paddingEnd:yv(Q.paddingRight)}})}})}),ku=D0.forwardRef(($,J)=>{let{sizes:Y,onSizesChange:G,...B}=$,g=N4(j6,$.__scopeScrollArea),[Q,b]=D0.useState(),K=D0.useRef(null),k=A1(J,K,g.onScrollbarYChange);return D0.useEffect(()=>{if(K.current)b(getComputedStyle(K.current))},[K]),f1.jsx(tM,{"data-orientation":"vertical",...B,ref:k,sizes:Y,style:{top:0,right:g.dir==="ltr"?0:void 0,left:g.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)",["--radix-scroll-area-thumb-height"]:Sv(Y)+"px",...$.style},onThumbPointerDown:(L)=>$.onThumbPointerDown(L.y),onDragScroll:(L)=>$.onDragScroll(L.y),onWheelScroll:(L,U)=>{if(g.viewport){let F=g.viewport.scrollTop+L.deltaY;if($.onWheelScroll(F),$x(F,U))L.preventDefault()}},onResize:()=>{if(K.current&&g.viewport&&Q)G({content:g.viewport.scrollHeight,viewport:g.viewport.offsetHeight,scrollbar:{size:K.current.clientHeight,paddingStart:yv(Q.paddingTop),paddingEnd:yv(Q.paddingBottom)}})}})}),[Fu,sM]=iM(j6),tM=D0.forwardRef(($,J)=>{let{__scopeScrollArea:Y,sizes:G,hasThumb:B,onThumbChange:g,onThumbPointerUp:Q,onThumbPointerDown:b,onThumbPositionChange:K,onDragScroll:k,onWheelScroll:L,onResize:U,...F}=$,N=N4(j6,Y),[C,I]=D0.useState(null),A=A1(J,(s)=>I(s)),x=D0.useRef(null),S=D0.useRef(""),D=N.viewport,i=G.content-G.viewport,$0=W5(L),p=W5(K),j=dv(U,10);function Z0(s){if(x.current){let E=s.clientX-x.current.left,g0=s.clientY-x.current.top;k({x:E,y:g0})}}return D0.useEffect(()=>{let s=(E)=>{let g0=E.target;if(C?.contains(g0))$0(E,i)};return document.addEventListener("wheel",s,{passive:!1}),()=>document.removeEventListener("wheel",s,{passive:!1})},[D,C,i,$0]),D0.useEffect(p,[G,p]),lZ(C,j),lZ(N.content,j),f1.jsx(Fu,{scope:Y,scrollbar:C,hasThumb:B,onThumbChange:W5(g),onThumbPointerUp:W5(Q),onThumbPositionChange:p,onThumbPointerDown:W5(b),children:f1.jsx(g1.div,{...F,ref:A,style:{position:"absolute",...F.style},onPointerDown:d0($.onPointerDown,(s)=>{if(s.button===0){if(s.target.setPointerCapture(s.pointerId),x.current=C.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",N.viewport)N.viewport.style.scrollBehavior="auto";Z0(s)}}),onPointerMove:d0($.onPointerMove,Z0),onPointerUp:d0($.onPointerUp,(s)=>{let E=s.target;if(E.hasPointerCapture(s.pointerId))E.releasePointerCapture(s.pointerId);if(document.body.style.webkitUserSelect=S.current,N.viewport)N.viewport.style.scrollBehavior="";x.current=null})})})}),Rv="ScrollAreaThumb",wK=D0.forwardRef(($,J)=>{let{forceMount:Y,...G}=$,B=sM(Rv,$.__scopeScrollArea);return f1.jsx(I2,{present:Y||B.hasThumb,children:f1.jsx(Nu,{ref:J,...G})})}),Nu=D0.forwardRef(($,J)=>{let{__scopeScrollArea:Y,style:G,...B}=$,g=N4(Rv,Y),Q=sM(Rv,Y),{onThumbPositionChange:b}=Q,K=A1(J,(U)=>Q.onThumbChange(U)),k=D0.useRef(void 0),L=dv(()=>{if(k.current)k.current(),k.current=void 0},100);return D0.useEffect(()=>{let U=g.viewport;if(U){let F=()=>{if(L(),!k.current){let N=_u(U,b);k.current=N,b()}};return b(),U.addEventListener("scroll",F),()=>U.removeEventListener("scroll",F)}},[g.viewport,L,b]),f1.jsx(g1.div,{"data-state":Q.hasThumb?"visible":"hidden",...B,ref:K,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...G},onPointerDownCapture:d0($.onPointerDownCapture,(U)=>{let N=U.target.getBoundingClientRect(),C=U.clientX-N.left,I=U.clientY-N.top;Q.onThumbPointerDown({x:C,y:I})}),onPointerUp:d0($.onPointerUp,Q.onThumbPointerUp)})});wK.displayName=Rv;var ZK="ScrollAreaCorner",eM=D0.forwardRef(($,J)=>{let Y=N4(ZK,$.__scopeScrollArea),G=Boolean(Y.scrollbarX&&Y.scrollbarY);return Y.type!=="scroll"&&G?f1.jsx(Tu,{...$,ref:J}):null});eM.displayName=ZK;var Tu=D0.forwardRef(($,J)=>{let{__scopeScrollArea:Y,...G}=$,B=N4(ZK,Y),[g,Q]=D0.useState(0),[b,K]=D0.useState(0),k=Boolean(g&&b);return lZ(B.scrollbarX,()=>{let L=B.scrollbarX?.offsetHeight||0;B.onCornerHeightChange(L),K(L)}),lZ(B.scrollbarY,()=>{let L=B.scrollbarY?.offsetWidth||0;B.onCornerWidthChange(L),Q(L)}),k?f1.jsx(g1.div,{...G,ref:J,style:{width:g,height:b,position:"absolute",right:B.dir==="ltr"?0:void 0,left:B.dir==="rtl"?0:void 0,bottom:0,...$.style}}):null});function yv($){return $?parseInt($,10):0}function wx($,J){let Y=$/J;return isNaN(Y)?0:Y}function Sv($){let J=wx($.viewport,$.content),Y=$.scrollbar.paddingStart+$.scrollbar.paddingEnd,G=($.scrollbar.size-Y)*J;return Math.max(G,18)}function Iu($,J,Y,G="ltr"){let B=Sv(Y),g=B/2,Q=J||g,b=B-Q,K=Y.scrollbar.paddingStart+Q,k=Y.scrollbar.size-Y.scrollbar.paddingEnd-b,L=Y.content-Y.viewport,U=G==="ltr"?[0,L]:[L*-1,0];return Zx([K,k],U)($)}function cM($,J,Y="ltr"){let G=Sv(J),B=J.scrollbar.paddingStart+J.scrollbar.paddingEnd,g=J.scrollbar.size-B,Q=J.content-J.viewport,b=g-G,K=Y==="ltr"?[0,Q]:[Q*-1,0],k=lM($,K);return Zx([0,Q],[0,b])(k)}function Zx($,J){return(Y)=>{if($[0]===$[1]||J[0]===J[1])return J[0];let G=(J[1]-J[0])/($[1]-$[0]);return J[0]+G*(Y-$[0])}}function $x($,J){return $>0&&$<J}var _u=($,J=()=>{})=>{let Y={left:$.scrollLeft,top:$.scrollTop},G=0;return function B(){let g={left:$.scrollLeft,top:$.scrollTop},Q=Y.left!==g.left,b=Y.top!==g.top;if(Q||b)J();Y=g,G=window.requestAnimationFrame(B)}(),()=>window.cancelAnimationFrame(G)};function dv($,J){let Y=W5($),G=D0.useRef(0);return D0.useEffect(()=>()=>window.clearTimeout(G.current),[]),D0.useCallback(()=>{window.clearTimeout(G.current),G.current=window.setTimeout(Y,J)},[Y,J])}function lZ($,J){let Y=W5(J);h2(()=>{let G=0;if($){let B=new ResizeObserver(()=>{cancelAnimationFrame(G),G=window.requestAnimationFrame(Y)});return B.observe($),()=>{window.cancelAnimationFrame(G),B.unobserve($)}}},[$,Y])}var Xx=pM,Jx=nM;var Yx=eM;var w3=P(H0(),1);function Dv({className:$,children:J,...Y}){return w3.jsxDEV(Xx,{"data-slot":"scroll-area",className:O0("relative",$),...Y,children:[w3.jsxDEV(Jx,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-none",children:J},void 0,!1,void 0,this),w3.jsxDEV(Cu,{},void 0,!1,void 0,this),w3.jsxDEV(Yx,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Cu({className:$,orientation:J="vertical",...Y}){return w3.jsxDEV(tW,{"data-slot":"scroll-area-scrollbar",orientation:J,className:O0("flex touch-none p-px transition-colors select-none",J==="vertical"&&"h-full w-2.5 border-l border-l-transparent",J==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",$),...Y,children:w3.jsxDEV(wK,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var SJ=P(Q0(),1);var ww=P(H0(),1),Au="Coordinator is working…",Mu="Stalled";function zx({workEvents:$,status:J}){let Y=$.length>=5,[G,B]=SJ.useState(!Y),g=J==="stalled",Q=mu(g,1e4),b=$[0]?.createdAt,K=g&&b?Pu(Q-Date.parse(b)):null,k=fu($),L=hu($),U=$.length;return ww.jsxDEV(M1,{className:"py-3 gap-2 max-w-[85%] mr-auto border-dashed border-border",children:ww.jsxDEV(P9,{open:G,onOpenChange:B,children:[ww.jsxDEV(c1,{className:"px-4 pb-0 pt-0",children:ww.jsxDEV("div",{className:"flex items-center gap-2",children:[ww.jsxDEV(xu,{stalled:g},void 0,!1,void 0,this),ww.jsxDEV("span",{className:"text-xs text-muted-foreground font-medium",children:g?Mu:Au},void 0,!1,void 0,this),g&&(K||k)&&ww.jsxDEV("span",{className:"text-xs text-muted-foreground/80 font-mono truncate",children:[K,k?`last: ${k}`:null].filter(Boolean).join(" · ")},void 0,!1,void 0,this),U>0&&ww.jsxDEV(f9,{className:"ml-auto self-start",children:G?"Hide":`${U} ${U===1?"event":"events"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U>0&&!G&&L&&ww.jsxDEV(P1,{className:"px-4 pt-0",children:ww.jsxDEV("span",{className:"block text-xs text-muted-foreground/80 font-mono truncate",children:["↳ ",L]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U>0&&ww.jsxDEV(h9,{children:ww.jsxDEV(P1,{className:"px-4 pt-0 flex flex-col gap-2",children:$.map((F)=>ww.jsxDEV(hv,{event:F},F.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function xu({stalled:$}){return ww.jsxDEV("span",{"aria-hidden":"true",className:`inline-block align-middle size-3 rounded-full border-2 ${$?"border-muted-foreground":"border-primary"} border-t-transparent animate-spin motion-reduce:animate-none`},void 0,!1,void 0,this)}function mu($,J){let[Y,G]=SJ.useState(()=>Date.now());return SJ.useEffect(()=>{if(!$)return;G(Date.now());let B=setInterval(()=>G(Date.now()),J);return()=>clearInterval(B)},[$,J]),Y}function Pu($){if(!Number.isFinite($)||$<0)return null;let J=Math.floor($/1000);if(J<60)return`${J}s`;let Y=Math.floor(J/60);if(Y<60)return`${Y}m`;let G=Math.floor(Y/60),B=Y%60;return B>0?`${G}h ${B}m`:`${G}h`}function fu($){for(let J=$.length-1;J>=0;J--){let Y=$[J];if(Y?.eventType==="tool_start"&&Y.toolName)return Y.toolName}return null}function hu($){for(let J=$.length-1;J>=0;J--){let Y=$[J];if(!Y)continue;if(Y.eventType==="tool_start")return Vu(Y.toolArgs)??Y.toolName??"tool";if(Y.eventType==="tool_end"){let G=Y.toolDurationMs!=null?` (${Y.toolDurationMs}ms)`:"";return`${Y.toolName??"tool"} done${G}`}}return null}function Vu($){if(!$)return null;try{let J=JSON.parse($);if(J&&typeof J==="object"&&"summary"in J&&typeof J.summary==="string")return J.summary}catch{}return null}var kw=P(H0(),1),Ru=50;function Gx({turns:$}){let J=Fw.useRef(null),Y=Fw.useRef(!0),G=Fw.useRef($.length),[B,g]=Fw.useState(0),[Q,b]=Fw.useState(!0),K=Fw.useCallback(()=>{return J.current?.querySelector('[data-slot="scroll-area-viewport"]')??null},[]),k=Fw.useCallback(()=>{let L=K();if(!L)return;L.scrollTop=L.scrollHeight,Y.current=!0,b(!0),g(0)},[K]);return Fw.useEffect(()=>{let L=K();if(!L)return;let U=()=>{let{scrollHeight:F,scrollTop:N,clientHeight:C}=L,I=F-N-C<Ru;if(Y.current=I,b(I),I)g(0)};return L.addEventListener("scroll",U,{passive:!0}),()=>L.removeEventListener("scroll",U)},[K]),Fw.useEffect(()=>{let L=G.current;if(G.current=$.length,$.length===0)return;if(Y.current){let F=K();if(F)F.scrollTop=F.scrollHeight;return}let U=$.length-L;if(U>0)g((F)=>F+U)},[$,K]),Fw.useEffect(()=>{function L(U){if(U.key!=="End")return;let F=U.target;if(F&&(F.tagName==="INPUT"||F.tagName==="TEXTAREA")){if(!(U.metaKey||U.ctrlKey))return}if(U.metaKey||U.ctrlKey||F?.tagName!=="INPUT")U.preventDefault(),k()}return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[k]),kw.jsxDEV("div",{ref:J,className:"flex-1 min-h-0 relative",children:[kw.jsxDEV(Dv,{className:"h-full",children:kw.jsxDEV("div",{className:"px-6 py-5 flex flex-col gap-4 max-w-4xl mx-auto",children:$.map((L)=>kw.jsxDEV(yu,{turn:L},L.pending?.clientToken??L.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),!Q&&B>0&&kw.jsxDEV("button",{type:"button",onClick:k,"aria-label":`Scroll to ${B} new ${B===1?"message":"messages"}`,className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 inline-flex items-center gap-1.5 rounded-full border border-border bg-popover text-popover-foreground px-3 py-1.5 text-xs font-medium shadow-md hover:bg-accent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[kw.jsxDEV(aX,{"aria-hidden":"true",className:"size-3.5"},void 0,!1,void 0,this),kw.jsxDEV("span",{children:[B," new ",B===1?"message":"messages"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function yu({turn:$}){if($.pending!==void 0&&$.kind==="coordinator")return kw.jsxDEV(zx,{clientToken:$.pending.clientToken,workEvents:$.pending.workEvents,status:$.pending.status},void 0,!1,void 0,this);let J=$.kind==="operator"?"ml-auto":$.kind==="system"?"mx-auto":"mr-auto",Y=$.kind==="operator"?"bg-primary text-primary-foreground shadow-sm":$.kind==="system"?"bg-muted/60 text-muted-foreground border border-dashed border-border":"bg-card border border-border shadow-sm",G=new Date($.createdAt),B=G.toLocaleString(),g=G.toLocaleTimeString();return kw.jsxDEV("div",{className:`max-w-[85%] ${J} flex flex-col gap-1`,children:[$.subject!==""&&$.kind!=="system"&&kw.jsxDEV("span",{className:"text-xs text-muted-foreground px-1 font-medium",children:$.subject},void 0,!1,void 0,this),kw.jsxDEV("div",{className:`rounded-xl px-4 py-3 ${Y}`,children:kw.jsxDEV("pre",{className:"whitespace-pre-wrap font-sans text-sm leading-relaxed",children:$.body},void 0,!1,void 0,this)},void 0,!1,void 0,this),kw.jsxDEV("time",{dateTime:$.createdAt,title:B,className:"text-xs text-muted-foreground px-1",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Nw=P(H0(),1),cZ="coordinator",D9="operator",vx=60000,Su=500,du=30000;async function Bx($){let J=new URLSearchParams({from:$.from,to:$.to,limit:"200"}),Y=await fetch(`/api/mail?${J.toString()}`),G=await Y.json();if(!Y.ok||G.success!==!0||G.data===void 0)throw Error(G.error??`mail fetch failed: ${Y.status}`);return G.data}async function Du(){let[$,J]=await Promise.all([Bx({from:D9,to:cZ}),Bx({from:cZ,to:D9})]),Y=[];for(let G of $)Y.push({kind:"operator",id:G.id,subject:G.subject,body:G.body,createdAt:G.createdAt,threadId:G.threadId});for(let G of J)Y.push({kind:"coordinator",id:G.id,subject:G.subject,body:G.body,createdAt:G.createdAt,threadId:G.threadId});return Y.sort((G,B)=>G.createdAt.localeCompare(B.createdAt)),Y}function ju($){return $!==null&&typeof $==="object"&&"id"in $&&"agentName"in $&&"eventType"in $}function Eu($){return $!==null&&typeof $==="object"&&"batched"in $&&$.batched===!0}function uu($){return $!==null&&typeof $==="object"&&"id"in $&&"from"in $&&"to"in $&&"body"in $&&"createdAt"in $}function lu($){let J=$.triggers,Y=(G,B)=>`${B.met?"✓":B.enabled?"·":"○"} ${G}: ${B.detail}`;return[Y("allAgentsDone",J.allAgentsDone),Y("taskTrackerEmpty",J.taskTrackerEmpty),Y("onShutdownSignal",J.onShutdownSignal),`Complete: ${$.complete?"YES":"NO"}`].join(`
|
|
289
|
+
`)}function Hx(){let[$,J]=d1.useState([]),[Y,G]=d1.useState(null),[B,g]=d1.useState(""),[Q,b]=d1.useState(null),[K,k]=d1.useState(!1),[L,U]=d1.useState(!1),[F,N]=d1.useState(!1),[C,I]=d1.useState(null),A=d1.useCallback((u)=>{if(U(u),!u)I(null)},[]),x=d1.useRef(null);d1.useEffect(()=>{x.current=Y},[Y]);let S=c0({queryKey:["coordinator-thread"],queryFn:Du,refetchInterval:5000});d1.useEffect(()=>{if(S.data===void 0)return;J((u)=>{let o=new Set,l=[];for(let M of S.data)o.add(M.id),l.push(M);for(let M of u)if(!o.has(M.id))l.push(M);return l.sort((M,z0)=>M.createdAt.localeCompare(z0.createdAt)),l}),k(!0)},[S.data]);let D=c0({queryKey:["coordinator-state-page"],queryFn:EZ,refetchInterval:5000}),[i,$0]=d1.useState(()=>Date.now());d1.useEffect(()=>{if(Y===null)return;let u=setInterval(()=>$0(Date.now()),5000);return()=>clearInterval(u)},[Y]);let p=Y!==null&&i-Y.sentAt>vx?"stalled":"pending";d1.useEffect(()=>{J((u)=>u.map((o)=>o.pending!==void 0&&o.pending.status!==p?{...o,pending:{...o.pending,status:p}}:o))},[p]);let j=d1.useCallback((u)=>{let o=u.from===cZ&&u.to===D9,l=u.from===D9&&u.to===cZ;if(!o&&!l)return;J((M)=>{if(M.some((m)=>m.id===u.id))return M;let z0=x.current;if(o&&z0!==null){let m=z0.messageId!==null&&u.threadId===z0.messageId,r=z0.messageId===null&&Date.now()-z0.sentAt<vx;if(m||r){let a=M.map((X0)=>X0.pending!==void 0&&X0.pending.clientToken===z0.clientToken?{kind:"coordinator",id:u.id,subject:u.subject,body:u.body,createdAt:u.createdAt,threadId:u.threadId}:X0);return x.current=null,G(null),a}}if(l){let m=M.findIndex((r)=>r.kind==="operator"&&r.id.startsWith("pending-op-")&&r.subject===u.subject&&r.body===u.body);if(m>=0){let r=[...M];return r[m]={kind:"operator",id:u.id,subject:u.subject,body:u.body,createdAt:u.createdAt,threadId:u.threadId},r}}return[...M,{kind:o?"coordinator":"operator",id:u.id,subject:u.subject,body:u.body,createdAt:u.createdAt,threadId:u.threadId}].sort((m,r)=>m.createdAt.localeCompare(r.createdAt))})},[]),Z0=d1.useCallback((u)=>{if(u.type==="event"){let{payload:o}=u,l=Eu(o)?o.events:ju(o)?[o]:[];if(l.length===0)return;let M=x.current;if(M===null)return;let z0=l.filter((m)=>m.agentName===cZ);if(z0.length===0)return;J((m)=>m.map((r)=>r.pending!==void 0&&r.pending.clientToken===M.clientToken?{...r,pending:{...r.pending,workEvents:[...r.pending.workEvents,...z0]}}:r));return}if(u.type==="mail"){let o=u.payload.message;if(!uu(o))return;j(o)}},[j]);DZ(`/ws?agent=${cZ}`,{onMessage:Z0});let s=d1.useCallback((u,o)=>{J((l)=>[...l,{kind:"system",id:`sys-${crypto.randomUUID()}`,subject:u,body:o,createdAt:new Date().toISOString(),threadId:null}])},[]),E=d1.useCallback(async(u)=>{let o=crypto.randomUUID(),l=Date.now(),M=u.split(`
|
|
290
|
+
`)[0]?.slice(0,80)||"message",z0=new Date(l).toISOString();J((m)=>[...m,{kind:"operator",id:`pending-op-${o}`,subject:M,body:u,createdAt:z0,threadId:null},{kind:"coordinator",id:`pending-coord-${o}`,subject:"",body:"",createdAt:z0,threadId:null,pending:{clientToken:o,workEvents:[],status:"pending"}}]),G({clientToken:o,subject:M,body:u,sentAt:l,messageId:null});try{let m=await Vv({subject:M,body:u,from:D9});G((r)=>r!==null&&r.clientToken===o?{...r,messageId:m.messageId}:r)}catch(m){let r=m instanceof Error?m.message:String(m);J((a)=>a.filter((X0)=>X0.id!==`pending-op-${o}`&&X0.id!==`pending-coord-${o}`)),G(null),s("send failed",r)}},[s]),g0=d1.useCallback(async()=>{if(x.current===null)return;try{await Vv({subject:"STOP",body:"Operator requested stop.",from:D9}),s("STOP sent","Sent a STOP follow-up. The coordinator decides how to respond.")}catch(u){s("STOP failed",u instanceof Error?u.message:String(u))}},[s]),G0=d1.useCallback(async(u,o)=>{try{let l=await VM({subject:u,body:o,from:D9});if(l.timedOut){s(`/ask ${u}`,"Timed out waiting for reply.");return}if(l.reply!==null)s(`/ask ${u} → reply`,`${l.reply.subject}
|
|
291
|
+
|
|
292
|
+
${l.reply.body}`);else s(`/ask ${u}`,"No reply received.")}catch(l){s(`/ask ${u}`,l instanceof Error?l.message:String(l))}},[s]),q0=d1.useCallback(async(u)=>{try{if(u==="/check-complete"){let o=await RM();b({at:new Date().toISOString(),result:o}),s("/check-complete",lu(o));return}if(u==="/status"){let o=await EZ(),l=[`running: ${o.running}`,`agentName: ${o.agentName}`,`headless: ${o.headless}`,`pid: ${o.pid??"—"}`,`runId: ${o.runId??"—"}`,`startedAt: ${o.startedAt??"—"}`,`lastActivityAt: ${o.lastActivityAt??"—"}`];s("/status",l.join(`
|
|
293
|
+
`));return}if(u==="/start"){let o=await oW(),l=[`started: ${o.started}`,`alreadyRunning: ${o.alreadyRunning}`,`pid: ${o.pid??"—"}`,`runId: ${o.runId??"—"}`];s("/start",l.join(`
|
|
294
|
+
`));return}if(u==="/stop"){if(!window.confirm("Stop the coordinator?")){s("/stop","Cancelled.");return}let o=await yM();s("/stop",`stopped: ${o.stopped}`);return}}catch(o){s(u,o instanceof Error?o.message:String(o))}},[s]),k0=d1.useCallback(async(u,o)=>{N(!0),I(null);try{await oW();let l=Date.now()+du,M=!1;while(Date.now()<l){if((await EZ()).running){M=!0;break}await new Promise((m)=>setTimeout(m,Su))}if(!M)throw Error("Timed out waiting for the coordinator to start.");await Vv({subject:u,body:o,from:D9}),A(!1),s("Run started",`Sent initial prompt: ${u}`)}catch(l){I(l instanceof Error?l.message:String(l))}finally{N(!1)}},[s,A]),e=K&&$.length===0&&Y===null,v0=d1.useMemo(()=>$,[$]);return Nw.jsxDEV("div",{className:"flex flex-col h-full",children:[Nw.jsxDEV("div",{className:"flex items-center gap-3 px-6 py-4 border-b border-border shrink-0",children:[Nw.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Coordinator"},void 0,!1,void 0,this),Nw.jsxDEV("div",{className:"ml-auto",children:Nw.jsxDEV(uM,{lastCheck:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e?Nw.jsxDEV("div",{className:"flex-1 min-h-0",children:Nw.jsxDEV(jM,{onSelect:(u)=>g(u),onStartNewRun:()=>A(!0),isStopped:D.data?.running===!1},void 0,!1,void 0,this)},void 0,!1,void 0,this):Nw.jsxDEV(Gx,{turns:v0},void 0,!1,void 0,this),!e&&D.data?.running===!1&&Nw.jsxDEV("div",{className:"px-6 py-3 border-t border-border flex items-center gap-3 shrink-0 bg-muted/40",children:[Nw.jsxDEV("span",{className:"text-sm text-muted-foreground",children:"Coordinator is stopped."},void 0,!1,void 0,this),Nw.jsxDEV(S1,{type:"button",size:"sm",className:"ml-auto",onClick:()=>A(!0),children:"Start new run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Nw.jsxDEV(DM,{value:B,onChange:g,onSend:E,onStop:g0,onAsk:G0,onSlashCommand:q0,isPending:Y!==null},void 0,!1,void 0,this),Nw.jsxDEV(EM,{open:L,onOpenChange:A,onStart:k0,isStarting:F,error:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jv=P(Q0(),1);var A5=P(H0(),1);function cu($){let J=new Map;for(let Y of $){let G=J.get(Y.agentName);if(G)G.push(Y);else J.set(Y.agentName,[Y])}return[...J.entries()].map(([Y,G])=>({agentName:Y,events:G})).sort((Y,G)=>G.events.length-Y.events.length)}function au({group:$}){let[J,Y]=jv.useState(!0);return A5.jsxDEV(M1,{children:A5.jsxDEV(P9,{open:J,onOpenChange:Y,children:[A5.jsxDEV(f9,{className:"w-full text-left",children:A5.jsxDEV(c1,{children:A5.jsxDEV(C5,{className:"flex items-center justify-between text-sm",children:[A5.jsxDEV(x6,{to:`/agents/${encodeURIComponent($.agentName)}`,className:"font-mono hover:underline",onClick:(G)=>G.stopPropagation(),children:$.agentName},void 0,!1,void 0,this),A5.jsxDEV(O1,{variant:"destructive",children:$.events.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),A5.jsxDEV(h9,{children:A5.jsxDEV(P1,{className:"flex flex-col gap-2",children:$.events.map((G)=>A5.jsxDEV("div",{className:"text-xs border-b border-border/50 pb-2 last:border-0",children:[A5.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[A5.jsxDEV("span",{className:"font-medium",children:G.toolName??G.eventType},void 0,!1,void 0,this),A5.jsxDEV("span",{className:"text-muted-foreground",children:$2(G.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A5.jsxDEV("pre",{className:"mt-1 whitespace-pre-wrap break-words text-muted-foreground font-mono",children:G.data??"(no detail)"},void 0,!1,void 0,this)]},G.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function gx(){let $=c0({queryKey:["errors","page"],queryFn:()=>LJ({limit:200}),refetchInterval:1e4}),J=jv.useMemo(()=>cu($.data??[]),[$.data]);if($.isLoading)return A5.jsxDEV("div",{className:"p-6 max-w-5xl mx-auto",children:A5.jsxDEV(H5,{label:"Loading errors"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(J.length===0)return A5.jsxDEV("div",{className:"p-6 max-w-5xl mx-auto",children:A5.jsxDEV(U5,{icon:m6,title:"No errors",description:"No error events recorded."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return A5.jsxDEV("div",{className:"p-6 flex flex-col gap-4 max-w-5xl mx-auto",children:[A5.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Errors"},void 0,!1,void 0,this),J.map((Y)=>A5.jsxDEV(au,{group:Y},Y.agentName,!1,void 0,this))]},void 0,!0,void 0,this)}var k8=P(Q0(),1);var L8=P(z5(),1),Ev="Tabs",[iu,Qe1]=f2(Ev,[yZ]),bx=yZ(),[pu,$K]=iu(Ev),Qx=k8.forwardRef(($,J)=>{let{__scopeTabs:Y,value:G,onValueChange:B,defaultValue:g,orientation:Q="horizontal",dir:b,activationMode:K="automatic",...k}=$,L=C9(b),[U,F]=Q9({prop:G,onChange:B,defaultProp:g??"",caller:Ev});return L8.jsx(pu,{scope:Y,baseId:V5(),value:U,onValueChange:F,orientation:Q,dir:L,activationMode:K,children:L8.jsx(g1.div,{dir:L,"data-orientation":Q,...k,ref:J})})});Qx.displayName=Ev;var Wx="TabsList",Kx=k8.forwardRef(($,J)=>{let{__scopeTabs:Y,loop:G=!0,...B}=$,g=$K(Wx,Y),Q=bx(Y);return L8.jsx(Uv,{asChild:!0,...Q,orientation:g.orientation,dir:g.dir,loop:G,children:L8.jsx(g1.div,{role:"tablist","aria-orientation":g.orientation,...B,ref:J})})});Kx.displayName=Wx;var Ux="TabsTrigger",qx=k8.forwardRef(($,J)=>{let{__scopeTabs:Y,value:G,disabled:B=!1,...g}=$,Q=$K(Ux,Y),b=bx(Y),K=Fx(Q.baseId,G),k=Nx(Q.baseId,G),L=G===Q.value;return L8.jsx(qv,{asChild:!0,...b,focusable:!B,active:L,children:L8.jsx(g1.button,{type:"button",role:"tab","aria-selected":L,"aria-controls":k,"data-state":L?"active":"inactive","data-disabled":B?"":void 0,disabled:B,id:K,...g,ref:J,onMouseDown:d0($.onMouseDown,(U)=>{if(!B&&U.button===0&&U.ctrlKey===!1)Q.onValueChange(G);else U.preventDefault()}),onKeyDown:d0($.onKeyDown,(U)=>{if([" ","Enter"].includes(U.key))Q.onValueChange(G)}),onFocus:d0($.onFocus,()=>{let U=Q.activationMode!=="manual";if(!L&&!B&&U)Q.onValueChange(G)})})})});qx.displayName=Ux;var Lx="TabsContent",kx=k8.forwardRef(($,J)=>{let{__scopeTabs:Y,value:G,forceMount:B,children:g,...Q}=$,b=$K(Lx,Y),K=Fx(b.baseId,G),k=Nx(b.baseId,G),L=G===b.value,U=k8.useRef(L);return k8.useEffect(()=>{let F=requestAnimationFrame(()=>U.current=!1);return()=>cancelAnimationFrame(F)},[]),L8.jsx(I2,{present:B||L,children:({present:F})=>L8.jsx(g1.div,{"data-state":L?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":K,hidden:!F,id:k,tabIndex:0,...Q,ref:J,style:{...$.style,animationDuration:U.current?"0s":void 0},children:F&&g})})});kx.displayName=Lx;function Fx($,J){return`${$}-trigger-${J}`}function Nx($,J){return`${$}-content-${J}`}var Tx=Qx,Ix=Kx,_x=qx,Ox=kx;var dJ=P(H0(),1);function Cx({...$}){return dJ.jsxDEV(Tx,{"data-slot":"tabs",...$},void 0,!1,void 0,this)}function Ax({className:$,...J}){return dJ.jsxDEV(Ix,{"data-slot":"tabs-list",className:O0("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",$),...J},void 0,!1,void 0,this)}function XK({className:$,...J}){return dJ.jsxDEV(_x,{"data-slot":"tabs-trigger",className:O0("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",$),...J},void 0,!1,void 0,this)}function JK({className:$,...J}){return dJ.jsxDEV(Ox,{"data-slot":"tabs-content",className:O0("flex-1 outline-none",$),...J},void 0,!1,void 0,this)}var xx=P(Q0(),1);var aZ=P(Q0(),1);var Z5=P(H0(),1),nu={"clean-merge":"default","merge-union":"secondary","ai-resolve":"secondary",reimagine:"destructive"};function Mx({branch:$,label:J}){let Y=Ew(),[G,B]=aZ.useState(!1),[g,Q]=aZ.useState(null),[b,K]=aZ.useState(!1),[k,L]=aZ.useState(!1),[U,F]=aZ.useState(null);async function N(){K(!0),F(null);try{Q(await GW($))}catch(I){F(I instanceof Error?I.message:String(I))}finally{K(!1)}}async function C(){L(!0);try{await vW({branch:$}),S6.success("Merge triggered",{description:$}),B(!1),await Y.invalidateQueries({queryKey:["agents"]})}catch(I){S6.error("Merge failed",{description:I instanceof Error?I.message:String(I)})}finally{L(!1)}}return Z5.jsxDEV(F9,{open:G,onOpenChange:(I)=>{if(B(I),I)N()},children:[Z5.jsxDEV(tG,{asChild:!0,children:Z5.jsxDEV(S1,{size:"sm",variant:"outline",onClick:(I)=>I.stopPropagation(),title:`Merge ${$}`,children:[Z5.jsxDEV(j7,{className:"size-4"},void 0,!1,void 0,this),J??"Merge"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z5.jsxDEV(N9,{onClick:(I)=>I.stopPropagation(),children:[Z5.jsxDEV(T9,{children:[Z5.jsxDEV(I9,{children:"Merge branch"},void 0,!1,void 0,this),Z5.jsxDEV(_9,{className:"font-mono text-xs break-all",children:$},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z5.jsxDEV("div",{className:"min-h-20 text-sm",children:[b?Z5.jsxDEV("p",{className:"text-muted-foreground",children:"Predicting conflicts…"},void 0,!1,void 0,this):null,U?Z5.jsxDEV("p",{className:"text-destructive",children:U},void 0,!1,void 0,this):null,g?Z5.jsxDEV("div",{className:"flex flex-col gap-3",children:[Z5.jsxDEV("div",{className:"flex items-center gap-2",children:[Z5.jsxDEV("span",{className:"text-muted-foreground",children:"Predicted tier:"},void 0,!1,void 0,this),Z5.jsxDEV(O1,{variant:nu[g.predictedTier]??"secondary",children:g.predictedTier},void 0,!1,void 0,this),g.wouldRequireAgent?Z5.jsxDEV(O1,{variant:"destructive",children:"needs agent"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),Z5.jsxDEV("p",{className:"text-muted-foreground text-xs",children:g.reason},void 0,!1,void 0,this),Z5.jsxDEV("p",{className:"text-xs",children:["Target: ",Z5.jsxDEV("span",{className:"font-mono",children:g.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.conflictFiles.length>0?Z5.jsxDEV("div",{className:"text-xs",children:[Z5.jsxDEV("p",{className:"text-muted-foreground mb-1",children:["Conflict files (",g.conflictFiles.length,"):"]},void 0,!0,void 0,this),Z5.jsxDEV("ul",{className:"font-mono space-y-0.5 max-h-32 overflow-auto",children:g.conflictFiles.map((I)=>Z5.jsxDEV("li",{children:I},I,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),Z5.jsxDEV(mZ,{children:Z5.jsxDEV(S1,{onClick:C,disabled:k||b||g===null,children:k?"Merging…":"Run merge"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var D1=P(H0(),1),ou={working:"default",in_turn:"default",between_turns:"secondary",booting:"secondary",completed:"outline",stalled:"destructive",zombie:"destructive"},su={in_turn:"in turn",between_turns:"between turns"},tu=new Set(["working","in_turn","between_turns","booting","stalled"]);function eu({agent:$}){let J=Ew(),[Y,G]=xx.useState(!1);return D1.jsxDEV(S1,{size:"sm",variant:"destructive",disabled:Y,onClick:async(B)=>{B.stopPropagation(),G(!0);try{await zW($.agentName),S6.success(`Stopped ${$.agentName}`),await J.invalidateQueries({queryKey:["agents"]})}catch(g){S6.error("Stop failed",{description:g instanceof Error?g.message:String(g)})}finally{G(!1)}},children:[D1.jsxDEV(HJ,{className:"size-4"},void 0,!1,void 0,this),Y?"Stopping…":"Stop"]},void 0,!0,void 0,this)}function uv({agents:$,showActions:J=!1}){let Y=j4();if($.length===0)return D1.jsxDEV("p",{className:"text-sm text-muted-foreground py-4 leading-relaxed",children:["No agents in this run yet — spawn one with"," ",D1.jsxDEV(L4,{children:"ap sling <task-id> --capability builder --name <name>"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);return D1.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 overflow-hidden bg-card",children:D1.jsxDEV(y9,{children:[D1.jsxDEV(S9,{children:D1.jsxDEV(F4,{className:"bg-muted/40 hover:bg-muted/40",children:[D1.jsxDEV(e1,{className:"px-4 h-11",children:"Name"},void 0,!1,void 0,this),D1.jsxDEV(e1,{className:"px-4 h-11",children:"Capability"},void 0,!1,void 0,this),D1.jsxDEV(e1,{className:"px-4 h-11",children:"State"},void 0,!1,void 0,this),D1.jsxDEV(e1,{className:"px-4 h-11",children:"Parent"},void 0,!1,void 0,this),D1.jsxDEV(e1,{className:"px-4 h-11",children:"Started"},void 0,!1,void 0,this),D1.jsxDEV(e1,{className:"px-4 h-11",children:"Last Event"},void 0,!1,void 0,this),J?D1.jsxDEV(e1,{className:"px-4 h-11 text-right",children:"Actions"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this),D1.jsxDEV(d9,{children:$.map((G)=>D1.jsxDEV(F4,{className:"cursor-pointer",tabIndex:0,role:"button",onClick:()=>Y(`/agents/${encodeURIComponent(G.agentName)}`),onKeyDown:(B)=>{if(B.key==="Enter"||B.key===" ")B.preventDefault(),Y(`/agents/${encodeURIComponent(G.agentName)}`)},children:[D1.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:G.agentName},void 0,!1,void 0,this),D1.jsxDEV(w5,{className:"px-4 py-3 text-sm",children:G.capability},void 0,!1,void 0,this),D1.jsxDEV(w5,{className:"px-4 py-3",children:D1.jsxDEV(O1,{variant:ou[G.state],children:su[G.state]??G.state},void 0,!1,void 0,this)},void 0,!1,void 0,this),D1.jsxDEV(w5,{className:"text-muted-foreground text-xs px-4 py-3",children:G.parentAgent??"—"},void 0,!1,void 0,this),D1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:$2(G.startedAt)},void 0,!1,void 0,this),D1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:$2(G.lastActivity)},void 0,!1,void 0,this),J?D1.jsxDEV(w5,{className:"px-4 py-3 text-right",children:D1.jsxDEV("div",{className:"flex items-center justify-end gap-2",children:[tu.has(G.state)?D1.jsxDEV(eu,{agent:G},void 0,!1,void 0,this):null,G.state==="completed"?D1.jsxDEV(Mx,{branch:`agentplate/${G.agentName}/${G.taskId}`},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null]},G.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Z3=P(Q0(),1);var mx=P(H0(),1),lv=Qw("rounded-md border border-border bg-background text-foreground text-sm px-3 py-2 transition-shadow placeholder:text-muted-foreground/70 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 read-only:bg-muted read-only:cursor-default");function E6({className:$,...J}){return mx.jsxDEV("input",{"data-slot":"input",className:O0(lv(),$),...J},void 0,!1,void 0,this)}var $5=P(H0(),1),wl=["builder","scout","reviewer","lead","merger"];function Px(){let $=Ew(),[J,Y]=Z3.useState(!1),[G,B]=Z3.useState(!1),[g,Q]=Z3.useState(""),[b,K]=Z3.useState("builder"),[k,L]=Z3.useState(""),[U,F]=Z3.useState("");async function N(C){if(C.preventDefault(),g.trim().length===0){S6.error("Task ID is required");return}B(!0);try{let I=await YW({taskId:g.trim(),capability:b,...k.trim()?{name:k.trim()}:{},...U.trim()?{files:U.trim()}:{}});S6.success(`Spawned ${I.agentName}`,{description:I.spawned?`state: ${I.state??"unknown"}`:"dispatch sent"}),Y(!1),Q(""),L(""),F(""),await $.invalidateQueries({queryKey:["agents"]}),await $.invalidateQueries({queryKey:["runs"]})}catch(I){S6.error("Spawn failed",{description:I instanceof Error?I.message:String(I)})}finally{B(!1)}}return $5.jsxDEV(F9,{open:J,onOpenChange:Y,children:[$5.jsxDEV(tG,{asChild:!0,children:$5.jsxDEV(S1,{size:"sm",children:[$5.jsxDEV(zJ,{className:"size-4"},void 0,!1,void 0,this),"Spawn agent"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$5.jsxDEV(N9,{children:$5.jsxDEV("form",{onSubmit:N,className:"flex flex-col gap-4",children:[$5.jsxDEV(T9,{children:[$5.jsxDEV(I9,{children:"Spawn agent"},void 0,!1,void 0,this),$5.jsxDEV(_9,{children:["Dispatch a headless worker via ",$5.jsxDEV("code",{className:"font-mono",children:"ap sling"},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[$5.jsxDEV("label",{htmlFor:"spawn-task-id",className:"text-muted-foreground",children:"Task ID"},void 0,!1,void 0,this),$5.jsxDEV(E6,{id:"spawn-task-id",value:g,onChange:(C)=>Q(C.target.value),placeholder:"e.g. agentplate-1a2b",autoFocus:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[$5.jsxDEV("label",{htmlFor:"spawn-capability",className:"text-muted-foreground",children:"Capability"},void 0,!1,void 0,this),$5.jsxDEV(Uw,{id:"spawn-capability",value:b,onChange:(C)=>K(C.target.value),children:wl.map((C)=>$5.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[$5.jsxDEV("label",{htmlFor:"spawn-name",className:"text-muted-foreground",children:"Name (optional)"},void 0,!1,void 0,this),$5.jsxDEV(E6,{id:"spawn-name",value:k,onChange:(C)=>L(C.target.value),placeholder:"auto-generated if blank"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$5.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[$5.jsxDEV("label",{htmlFor:"spawn-files",className:"text-muted-foreground",children:"File scope (optional, comma-separated)"},void 0,!1,void 0,this),$5.jsxDEV(E6,{id:"spawn-files",value:U,onChange:(C)=>F(C.target.value),placeholder:"src/a.ts,src/b.ts"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$5.jsxDEV(mZ,{children:$5.jsxDEV(S1,{type:"submit",disabled:G,children:G?"Spawning…":"Spawn"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var C2=P(H0(),1);function fx({activeCount:$,completedCount:J,errorCount:Y}){return C2.jsxDEV("div",{className:"grid grid-cols-3 gap-4",children:[C2.jsxDEV(M1,{className:"gap-3 py-5",children:[C2.jsxDEV(c1,{children:C2.jsxDEV(C5,{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Active"},void 0,!1,void 0,this)},void 0,!1,void 0,this),C2.jsxDEV(P1,{children:C2.jsxDEV("p",{className:"text-3xl font-semibold tabular-nums",children:$},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C2.jsxDEV(M1,{className:"gap-3 py-5",children:[C2.jsxDEV(c1,{children:C2.jsxDEV(C5,{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Completed"},void 0,!1,void 0,this)},void 0,!1,void 0,this),C2.jsxDEV(P1,{children:C2.jsxDEV("p",{className:"text-3xl font-semibold tabular-nums",children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C2.jsxDEV(M1,{className:"gap-3 py-5",children:[C2.jsxDEV(c1,{children:C2.jsxDEV(C5,{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Errors"},void 0,!1,void 0,this)},void 0,!1,void 0,this),C2.jsxDEV(P1,{children:C2.jsxDEV("p",{className:"text-3xl font-semibold tabular-nums text-destructive",children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var T4=P(H0(),1),Zl={working:"default",in_turn:"default",between_turns:"secondary",booting:"secondary",completed:"outline",stalled:"destructive",zombie:"destructive"};function $l($){let J=new Map;for(let g of $)J.set(g.agentName,{agent:g,children:[]});let Y=[];for(let g of J.values()){let Q=g.agent.parentAgent,b=Q!==null?J.get(Q):void 0;if(b)b.children.push(g);else Y.push(g)}let G=(g,Q)=>g.agent.startedAt<Q.agent.startedAt?-1:g.agent.startedAt>Q.agent.startedAt?1:0,B=(g)=>{g.sort(G);for(let Q of g)B(Q.children)};return B(Y),Y}function hx({node:$,depth:J}){let Y=j4(),{agent:G}=$;return T4.jsxDEV("div",{className:"flex flex-col",children:[T4.jsxDEV("button",{type:"button",onClick:()=>Y(`/agents/${encodeURIComponent(G.agentName)}`),className:"group flex items-center gap-3 rounded-md px-2 py-2 text-left transition-colors hover:bg-accent/50 focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none",style:{marginLeft:`${J*1.5}rem`},children:[J>0?T4.jsxDEV("span",{className:"text-muted-foreground/50 font-mono text-xs",children:"└─"},void 0,!1,void 0,this):null,T4.jsxDEV("span",{className:"font-mono text-xs",children:G.agentName},void 0,!1,void 0,this),T4.jsxDEV("span",{className:"text-xs text-muted-foreground",children:G.capability},void 0,!1,void 0,this),T4.jsxDEV(O1,{variant:Zl[G.state],children:G.state.replace(/_/g," ")},void 0,!1,void 0,this),T4.jsxDEV("span",{className:"ml-auto text-xs text-muted-foreground tabular-nums",children:$2(G.lastActivity)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$.children.map((B)=>T4.jsxDEV(hx,{node:B,depth:J+1},B.agent.id,!1,void 0,this))]},void 0,!0,void 0,this)}function Vx({agents:$}){let J=$l($);if(J.length===0)return T4.jsxDEV("p",{className:"py-4 text-sm text-muted-foreground",children:"No agents to display."},void 0,!1,void 0,this);return T4.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 bg-card p-3",children:J.map((Y)=>T4.jsxDEV(hx,{node:Y,depth:0},Y.agent.id,!1,void 0,this))},void 0,!1,void 0,this)}var I5=P(H0(),1);function Rx(){let $=c0({queryKey:["runs"],queryFn:()=>U8(50),refetchInterval:5000}),J=$.data??[],[Y]=P7(),G=Y.get("run")??J[0]?.id??null,B=c0({queryKey:["agents",G],queryFn:()=>KJ({runId:G??void 0}),enabled:G!==null,refetchInterval:5000}),g=B.data??[],Q=g.filter((F)=>F.state==="working"||F.state==="in_turn"||F.state==="between_turns"||F.state==="booting").length,b=g.filter((F)=>F.state==="completed").length,K=g.filter((F)=>F.state==="stalled"||F.state==="zombie").length,k=$.isLoading||B.isLoading,L=$.isError||B.isError,U=($.error instanceof Error?$.error.message:null)??(B.error instanceof Error?B.error.message:null)??"An error occurred.";return I5.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[I5.jsxDEV("div",{className:"flex items-center justify-between",children:[I5.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Fleet"},void 0,!1,void 0,this),I5.jsxDEV(Px,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&I5.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:U},void 0,!1,void 0,this),k&&I5.jsxDEV(H5,{label:"Loading runs"},void 0,!1,void 0,this),!k&&J.length===0&&I5.jsxDEV(U5,{icon:E7,title:"No runs yet",description:I5.jsxDEV(I5.Fragment,{children:["Start a coordinator with"," ",I5.jsxDEV("code",{className:"font-mono text-xs bg-muted px-1.5 py-0.5 rounded",children:"ap coordinator start"},void 0,!1,void 0,this),", or spawn a worker directly with the button above."]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!k&&J.length>0&&I5.jsxDEV(I5.Fragment,{children:[I5.jsxDEV(fx,{activeCount:Q,completedCount:b,errorCount:K},void 0,!1,void 0,this),I5.jsxDEV(Cx,{defaultValue:"table",children:[I5.jsxDEV(Ax,{children:[I5.jsxDEV(XK,{value:"table",children:"Table"},void 0,!1,void 0,this),I5.jsxDEV(XK,{value:"topology",children:"Topology"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I5.jsxDEV(JK,{value:"table",className:"mt-4",children:I5.jsxDEV(uv,{agents:g,showActions:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),I5.jsxDEV(JK,{value:"topology",className:"mt-4",children:I5.jsxDEV(Vx,{agents:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Y2=P(H0(),1);function yx(){let $=c0({queryKey:["groups"],queryFn:()=>QW(),refetchInterval:1e4}),J=$.data??[];if($.isLoading)return Y2.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:Y2.jsxDEV(H5,{label:"Loading groups"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Y2.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[Y2.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Task groups"},void 0,!1,void 0,this),J.length===0&&Y2.jsxDEV(U5,{icon:iX,title:"No task groups",description:"Create one with ap group create '<name>' <id1> <id2> …"},void 0,!1,void 0,this),Y2.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:J.map((Y)=>Y2.jsxDEV(M1,{children:[Y2.jsxDEV(c1,{children:Y2.jsxDEV(C5,{className:"flex items-center justify-between text-sm",children:[Y2.jsxDEV("span",{children:Y.name},void 0,!1,void 0,this),Y2.jsxDEV(O1,{variant:Y.status==="completed"?"outline":"default",children:Y.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y2.jsxDEV(P1,{className:"flex flex-col gap-2 text-xs",children:[Y2.jsxDEV("div",{className:"flex items-center justify-between text-muted-foreground",children:[Y2.jsxDEV("span",{className:"font-mono",children:Y.id},void 0,!1,void 0,this),Y2.jsxDEV("span",{children:$2(Y.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y2.jsxDEV("div",{className:"flex flex-wrap gap-1.5",children:Y.memberIssueIds.length===0?Y2.jsxDEV("span",{className:"text-muted-foreground",children:"No member issues."},void 0,!1,void 0,this):Y.memberIssueIds.map((G)=>Y2.jsxDEV("span",{className:"font-mono bg-muted px-1.5 py-0.5 rounded",children:G},G,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},Y.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var q5=P(H0(),1);function Xl($){let J=new Map;for(let Y of $){let G=J.get(Y.category);if(G)G.push(Y);else J.set(Y.category,[Y])}return[...J.entries()]}var Jl={pass:q5.jsxDEV(m6,{className:"size-4 text-green-600 dark:text-green-500 shrink-0 mt-0.5"},void 0,!1,void 0,this),warn:q5.jsxDEV(P6,{className:"size-4 text-yellow-600 dark:text-yellow-500 shrink-0 mt-0.5"},void 0,!1,void 0,this),fail:q5.jsxDEV(q9,{className:"size-4 text-destructive shrink-0 mt-0.5"},void 0,!1,void 0,this)};function Sx(){let $=c0({queryKey:["doctor"],queryFn:()=>bW(),refetchInterval:15000}),J=$.data;if($.isLoading)return q5.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:q5.jsxDEV(H5,{label:"Running health checks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if($.isError)return q5.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:q5.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive",children:$.error instanceof Error?$.error.message:"Failed to run health checks."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!J)return null;let Y=Xl(J.checks);return q5.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[q5.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Health"},void 0,!1,void 0,this),q5.jsxDEV("div",{className:"grid grid-cols-3 gap-4",children:[q5.jsxDEV(S2,{label:"Passing",value:J.summary.pass},void 0,!1,void 0,this),q5.jsxDEV(S2,{label:"Warnings",value:J.summary.warn},void 0,!1,void 0,this),q5.jsxDEV(S2,{label:"Failures",value:J.summary.fail,tone:J.summary.fail>0?"destructive":"default"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q5.jsxDEV("div",{className:"flex flex-col gap-4",children:Y.map(([G,B])=>q5.jsxDEV(M1,{children:[q5.jsxDEV(c1,{children:q5.jsxDEV(C5,{className:"text-sm capitalize",children:G},void 0,!1,void 0,this)},void 0,!1,void 0,this),q5.jsxDEV(P1,{className:"flex flex-col gap-2",children:B.map((g)=>q5.jsxDEV("div",{className:"flex items-start gap-2 text-sm",children:[Jl[g.status],q5.jsxDEV("div",{className:"flex flex-col",children:[q5.jsxDEV("span",{children:g.message},void 0,!1,void 0,this),g.details&&g.details.length>0?q5.jsxDEV("ul",{className:"text-xs text-muted-foreground mt-0.5 list-disc list-inside",children:g.details.map((Q)=>q5.jsxDEV("li",{children:Q},Q,!1,void 0,this))},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},g.name,!0,void 0,this))},void 0,!1,void 0,this)]},G,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YK=P(Q0(),1);var A2=P(H0(),1),Yl=["all","debug","info","warn","error"],zl={debug:"text-muted-foreground",info:"text-foreground",warn:"text-yellow-600 dark:text-yellow-500",error:"text-destructive"};function dx(){let[$,J]=YK.useState("all"),[Y,G]=YK.useState(""),B=c0({queryKey:["logs",$,Y],queryFn:()=>gW({...$!=="all"?{level:$}:{},...Y.trim()?{agent:Y.trim()}:{},limit:500}),refetchInterval:5000}),g=B.data??[];return A2.jsxDEV("div",{className:"p-6 flex flex-col gap-4 max-w-7xl mx-auto h-full",children:[A2.jsxDEV("div",{className:"flex items-center justify-between gap-3",children:[A2.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Logs"},void 0,!1,void 0,this),A2.jsxDEV("div",{className:"flex items-center gap-2",children:[A2.jsxDEV(E6,{value:Y,onChange:(Q)=>G(Q.target.value),placeholder:"filter by agent",className:"w-48"},void 0,!1,void 0,this),A2.jsxDEV(Uw,{value:$,onChange:(Q)=>J(Q.target.value),className:"w-32",children:Yl.map((Q)=>A2.jsxDEV("option",{value:Q,children:Q},Q,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.isLoading&&A2.jsxDEV(H5,{label:"Loading logs"},void 0,!1,void 0,this),!B.isLoading&&g.length===0&&A2.jsxDEV(U5,{icon:vJ,title:"No log entries",description:"NDJSON logs from agents appear here as they run."},void 0,!1,void 0,this),g.length>0&&A2.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 bg-card overflow-auto font-mono text-xs",children:g.map((Q,b)=>A2.jsxDEV("div",{className:"flex items-start gap-3 px-4 py-1.5 border-b border-border/40 last:border-0",children:[A2.jsxDEV("span",{className:"text-muted-foreground shrink-0 w-16",children:$2(Q.timestamp)},void 0,!1,void 0,this),A2.jsxDEV("span",{className:`shrink-0 w-12 uppercase ${zl[Q.level]}`,children:Q.level},void 0,!1,void 0,this),A2.jsxDEV("span",{className:"shrink-0 w-32 truncate text-muted-foreground",children:Q.agentName??"—"},void 0,!1,void 0,this),A2.jsxDEV("span",{className:"flex-1 break-all",children:[Q.event,Object.keys(Q.data).length>0?A2.jsxDEV("span",{className:"text-muted-foreground",children:[" ",JSON.stringify(Q.data)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this)]},`${Q.timestamp}-${b}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var tv=P(Q0(),1);var Gl=P(Q0(),1),C0=P(Q0(),1),rv=C0.createContext(null);rv.displayName="PanelGroupContext";var M5={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},QK=10,J3=C0.useLayoutEffect,Dx=Gl["useId".toString()],vl=typeof Dx==="function"?Dx:()=>null,Bl=0;function WK($=null){let J=vl(),Y=C0.useRef($||J||null);if(Y.current===null)Y.current=""+Bl++;return $!==null&&$!==void 0?$:Y.current}function ix({children:$,className:J="",collapsedSize:Y,collapsible:G,defaultSize:B,forwardedRef:g,id:Q,maxSize:b,minSize:K,onCollapse:k,onExpand:L,onResize:U,order:F,style:N,tagName:C="div",...I}){let A=C0.useContext(rv);if(A===null)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:x,expandPanel:S,getPanelSize:D,getPanelStyle:i,groupId:$0,isPanelCollapsed:p,reevaluatePanelConstraints:j,registerPanel:Z0,resizePanel:s,unregisterPanel:E}=A,g0=WK(Q),G0=C0.useRef({callbacks:{onCollapse:k,onExpand:L,onResize:U},constraints:{collapsedSize:Y,collapsible:G,defaultSize:B,maxSize:b,minSize:K},id:g0,idIsFromProps:Q!==void 0,order:F});if(!C0.useRef({didLogMissingDefaultSizeWarning:!1}).current.didLogMissingDefaultSizeWarning);J3(()=>{let{callbacks:e,constraints:v0}=G0.current,u={...v0};if(G0.current.id=g0,G0.current.idIsFromProps=Q!==void 0,G0.current.order=F,e.onCollapse=k,e.onExpand=L,e.onResize=U,v0.collapsedSize=Y,v0.collapsible=G,v0.defaultSize=B,v0.maxSize=b,v0.minSize=K,u.collapsedSize!==v0.collapsedSize||u.collapsible!==v0.collapsible||u.maxSize!==v0.maxSize||u.minSize!==v0.minSize)j(G0.current,u)}),J3(()=>{let e=G0.current;return Z0(e),()=>{E(e)}},[F,g0,Z0,E]),C0.useImperativeHandle(g,()=>({collapse:()=>{x(G0.current)},expand:(e)=>{S(G0.current,e)},getId(){return g0},getSize(){return D(G0.current)},isCollapsed(){return p(G0.current)},isExpanded(){return!p(G0.current)},resize:(e)=>{s(G0.current,e)}}),[x,S,D,p,g0,s]);let k0=i(G0.current,B);return C0.createElement(C,{...I,children:$,className:J,id:g0,style:{...k0,...N},[M5.groupId]:$0,[M5.panel]:"",[M5.panelCollapsible]:G||void 0,[M5.panelId]:g0,[M5.panelSize]:parseFloat(""+k0.flexGrow).toFixed(1)})}var KK=C0.forwardRef(($,J)=>C0.createElement(ix,{...$,forwardedRef:J}));ix.displayName="Panel";KK.displayName="forwardRef(Panel)";var Hl;function gl(){return Hl}var bK=null,bl=!0,av=-1,F8=null;function Ql($,J){if(J){let Y=(J&sx)!==0,G=(J&tx)!==0,B=(J&ex)!==0,g=(J&wm)!==0;if(Y)if(B)return"se-resize";else if(g)return"ne-resize";else return"e-resize";else if(G)if(B)return"sw-resize";else if(g)return"nw-resize";else return"w-resize";else if(B)return"s-resize";else if(g)return"n-resize"}switch($){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Wl(){if(F8!==null)document.head.removeChild(F8),bK=null,F8=null,av=-1}function zK($,J){var Y,G;if(!bl)return;let B=Ql($,J);if(bK===B)return;if(bK=B,F8===null){F8=document.createElement("style");let Q=gl();if(Q)F8.setAttribute("nonce",Q);document.head.appendChild(F8)}if(av>=0){var g;(g=F8.sheet)===null||g===void 0||g.removeRule(av)}av=(Y=(G=F8.sheet)===null||G===void 0?void 0:G.insertRule(`*{cursor: ${B} !important;}`))!==null&&Y!==void 0?Y:-1}function px($){return $.type==="keydown"}function rx($){return $.type.startsWith("pointer")}function nx($){return $.type.startsWith("mouse")}function nv($){if(rx($)){if($.isPrimary)return{x:$.clientX,y:$.clientY}}else if(nx($))return{x:$.clientX,y:$.clientY};return{x:1/0,y:1/0}}function Kl(){if(typeof matchMedia==="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ul($,J,Y){if(Y)return $.x<J.x+J.width&&$.x+$.width>J.x&&$.y<J.y+J.height&&$.y+$.height>J.y;else return $.x<=J.x+J.width&&$.x+$.width>=J.x&&$.y<=J.y+J.height&&$.y+$.height>=J.y}function ql($,J){if($===J)throw Error("Cannot compare node with itself");let Y={a:ux($),b:ux(J)},G;while(Y.a.at(-1)===Y.b.at(-1))$=Y.a.pop(),J=Y.b.pop(),G=$;Y1(G,"Stacking order can only be calculated for elements with a common ancestor");let B={a:Ex(jx(Y.a)),b:Ex(jx(Y.b))};if(B.a===B.b){let g=G.childNodes,Q={a:Y.a.at(-1),b:Y.b.at(-1)},b=g.length;while(b--){let K=g[b];if(K===Q.a)return 1;if(K===Q.b)return-1}}return Math.sign(B.a-B.b)}var Ll=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function kl($){var J;let Y=getComputedStyle((J=ox($))!==null&&J!==void 0?J:$).display;return Y==="flex"||Y==="inline-flex"}function Fl($){let J=getComputedStyle($);if(J.position==="fixed")return!0;if(J.zIndex!=="auto"&&(J.position!=="static"||kl($)))return!0;if(+J.opacity<1)return!0;if("transform"in J&&J.transform!=="none")return!0;if("webkitTransform"in J&&J.webkitTransform!=="none")return!0;if("mixBlendMode"in J&&J.mixBlendMode!=="normal")return!0;if("filter"in J&&J.filter!=="none")return!0;if("webkitFilter"in J&&J.webkitFilter!=="none")return!0;if("isolation"in J&&J.isolation==="isolate")return!0;if(Ll.test(J.willChange))return!0;if(J.webkitOverflowScrolling==="touch")return!0;return!1}function jx($){let J=$.length;while(J--){let Y=$[J];if(Y1(Y,"Missing node"),Fl(Y))return Y}return null}function Ex($){return $&&Number(getComputedStyle($).zIndex)||0}function ux($){let J=[];while($)J.push($),$=ox($);return J}function ox($){let{parentNode:J}=$;if(J&&J instanceof ShadowRoot)return J.host;return J}var sx=1,tx=2,ex=4,wm=8,Nl=Kl()==="coarse",r4=[],nZ=!1,X3=new Map,ov=new Map,EJ=new Set;function Tl($,J,Y,G,B){var g;let{ownerDocument:Q}=J,b={direction:Y,element:J,hitAreaMargins:G,setResizeHandlerState:B},K=(g=X3.get(Q))!==null&&g!==void 0?g:0;return X3.set(Q,K+1),EJ.add(b),iv(),function(){var L;ov.delete($),EJ.delete(b);let U=(L=X3.get(Q))!==null&&L!==void 0?L:1;if(X3.set(Q,U-1),iv(),U===1)X3.delete(Q);if(r4.includes(b)){let F=r4.indexOf(b);if(F>=0)r4.splice(F,1);qK(),B("up",!0,null)}}}function Il($){let{target:J}=$,{x:Y,y:G}=nv($);if(nZ=!0,UK({target:J,x:Y,y:G}),iv(),r4.length>0){if(pv("down",$),$.preventDefault(),!Zm(J))$.stopImmediatePropagation()}}function GK($){let{x:J,y:Y}=nv($);if(nZ&&$.buttons===0)nZ=!1,pv("up",$);if(!nZ){let{target:G}=$;UK({target:G,x:J,y:Y})}if(pv("move",$),qK(),r4.length>0)$.preventDefault()}function vK($){let{target:J}=$,{x:Y,y:G}=nv($);if(ov.clear(),nZ=!1,r4.length>0){if($.preventDefault(),!Zm(J))$.stopImmediatePropagation()}pv("up",$),UK({target:J,x:Y,y:G}),qK(),iv()}function Zm($){let J=$;while(J){if(J.hasAttribute(M5.resizeHandle))return!0;J=J.parentElement}return!1}function UK({target:$,x:J,y:Y}){r4.splice(0);let G=null;if($ instanceof HTMLElement||$ instanceof SVGElement)G=$;EJ.forEach((B)=>{let{element:g,hitAreaMargins:Q}=B,b=g.getBoundingClientRect(),{bottom:K,left:k,right:L,top:U}=b,F=Nl?Q.coarse:Q.fine;if(J>=k-F&&J<=L+F&&Y>=U-F&&Y<=K+F){if(G!==null&&document.contains(G)&&g!==G&&!g.contains(G)&&!G.contains(g)&&ql(G,g)>0){let C=G,I=!1;while(C){if(C.contains(g))break;else if(Ul(C.getBoundingClientRect(),b,!0)){I=!0;break}C=C.parentElement}if(I)return}r4.push(B)}})}function BK($,J){ov.set($,J)}function qK(){let $=!1,J=!1;r4.forEach((G)=>{let{direction:B}=G;if(B==="horizontal")$=!0;else J=!0});let Y=0;if(ov.forEach((G)=>{Y|=G}),$&&J)zK("intersection",Y);else if($)zK("horizontal",Y);else if(J)zK("vertical",Y);else Wl()}var HK=new AbortController;function iv(){HK.abort(),HK=new AbortController;let $={capture:!0,signal:HK.signal};if(!EJ.size)return;if(nZ){if(r4.length>0)X3.forEach((J,Y)=>{let{body:G}=Y;if(J>0)G.addEventListener("contextmenu",vK,$),G.addEventListener("pointerleave",GK,$),G.addEventListener("pointermove",GK,$)});window.addEventListener("pointerup",vK,$),window.addEventListener("pointercancel",vK,$)}else X3.forEach((J,Y)=>{let{body:G}=Y;if(J>0)G.addEventListener("pointerdown",Il,$),G.addEventListener("pointermove",GK,$)})}function pv($,J){EJ.forEach((Y)=>{let{setResizeHandlerState:G}=Y,B=r4.includes(Y);G($,B,J)})}function _l(){let[$,J]=C0.useState(0);return C0.useCallback(()=>J((Y)=>Y+1),[])}function Y1($,J){if(!$)throw console.error(J),Error(J)}function Y3($,J,Y=QK){if($.toFixed(Y)===J.toFixed(Y))return 0;else return $>J?1:-1}function N8($,J,Y=QK){return Y3($,J,Y)===0}function aw($,J,Y){return Y3($,J,Y)===0}function Ol($,J,Y){if($.length!==J.length)return!1;for(let G=0;G<$.length;G++){let B=$[G],g=J[G];if(!aw(B,g,Y))return!1}return!0}function rZ({panelConstraints:$,panelIndex:J,size:Y}){let G=$[J];Y1(G!=null,`Panel constraints not found for index ${J}`);let{collapsedSize:B=0,collapsible:g,maxSize:Q=100,minSize:b=0}=G;if(Y3(Y,b)<0)if(g){let K=(B+b)/2;if(Y3(Y,K)<0)Y=B;else Y=b}else Y=b;return Y=Math.min(Q,Y),Y=parseFloat(Y.toFixed(QK)),Y}function DJ({delta:$,initialLayout:J,panelConstraints:Y,pivotIndices:G,prevLayout:B,trigger:g}){if(aw($,0))return J;let Q=[...J],[b,K]=G;Y1(b!=null,"Invalid first pivot index"),Y1(K!=null,"Invalid second pivot index");let k=0;if(g==="keyboard"){{let U=$<0?K:b,F=Y[U];Y1(F,`Panel constraints not found for index ${U}`);let{collapsedSize:N=0,collapsible:C,minSize:I=0}=F;if(C){let A=J[U];if(Y1(A!=null,`Previous layout not found for panel index ${U}`),aw(A,N)){let x=I-A;if(Y3(x,Math.abs($))>0)$=$<0?0-x:x}}}{let U=$<0?b:K,F=Y[U];Y1(F,`No panel constraints found for index ${U}`);let{collapsedSize:N=0,collapsible:C,minSize:I=0}=F;if(C){let A=J[U];if(Y1(A!=null,`Previous layout not found for panel index ${U}`),aw(A,I)){let x=A-N;if(Y3(x,Math.abs($))>0)$=$<0?0-x:x}}}}{let U=$<0?1:-1,F=$<0?K:b,N=0;while(!0){let I=J[F];Y1(I!=null,`Previous layout not found for panel index ${F}`);let x=rZ({panelConstraints:Y,panelIndex:F,size:100})-I;if(N+=x,F+=U,F<0||F>=Y.length)break}let C=Math.min(Math.abs($),Math.abs(N));$=$<0?0-C:C}{let F=$<0?b:K;while(F>=0&&F<Y.length){let N=Math.abs($)-Math.abs(k),C=J[F];Y1(C!=null,`Previous layout not found for panel index ${F}`);let I=C-N,A=rZ({panelConstraints:Y,panelIndex:F,size:I});if(!aw(C,A)){if(k+=C-A,Q[F]=A,k.toPrecision(3).localeCompare(Math.abs($).toPrecision(3),void 0,{numeric:!0})>=0)break}if($<0)F--;else F++}}if(Ol(B,Q))return B;{let U=$<0?K:b,F=J[U];Y1(F!=null,`Previous layout not found for panel index ${U}`);let N=F+k,C=rZ({panelConstraints:Y,panelIndex:U,size:N});if(Q[U]=C,!aw(C,N)){let I=N-C,x=$<0?K:b;while(x>=0&&x<Y.length){let S=Q[x];Y1(S!=null,`Previous layout not found for panel index ${x}`);let D=S+I,i=rZ({panelConstraints:Y,panelIndex:x,size:D});if(!aw(S,i))I-=i-S,Q[x]=i;if(aw(I,0))break;if($>0)x--;else x++}}}let L=Q.reduce((U,F)=>F+U,0);if(!aw(L,100))return B;return Q}function Cl({layout:$,panelsArray:J,pivotIndices:Y}){let G=0,B=100,g=0,Q=0,b=Y[0];Y1(b!=null,"No pivot index found"),J.forEach((U,F)=>{let{constraints:N}=U,{maxSize:C=100,minSize:I=0}=N;if(F===b)G=I,B=C;else g+=I,Q+=C});let K=Math.min(B,100-g),k=Math.max(G,100-Q),L=$[b];return{valueMax:K,valueMin:k,valueNow:L}}function uJ($,J=document){return Array.from(J.querySelectorAll(`[${M5.resizeHandleId}][data-panel-group-id="${$}"]`))}function $m($,J,Y=document){let B=uJ($,Y).findIndex((g)=>g.getAttribute(M5.resizeHandleId)===J);return B!==null&&B!==void 0?B:null}function Xm($,J,Y){let G=$m($,J,Y);return G!=null?[G,G+1]:[-1,-1]}function Jm($,J=document){var Y;if(J instanceof HTMLElement&&(J===null||J===void 0?void 0:(Y=J.dataset)===null||Y===void 0?void 0:Y.panelGroupId)==$)return J;let G=J.querySelector(`[data-panel-group][data-panel-group-id="${$}"]`);if(G)return G;return null}function sv($,J=document){let Y=J.querySelector(`[${M5.resizeHandleId}="${$}"]`);if(Y)return Y;return null}function Al($,J,Y,G=document){var B,g,Q,b;let K=sv(J,G),k=uJ($,G),L=K?k.indexOf(K):-1,U=(B=(g=Y[L])===null||g===void 0?void 0:g.id)!==null&&B!==void 0?B:null,F=(Q=(b=Y[L+1])===null||b===void 0?void 0:b.id)!==null&&Q!==void 0?Q:null;return[U,F]}function Ml({committedValuesRef:$,eagerValuesRef:J,groupId:Y,layout:G,panelDataArray:B,panelGroupElement:g,setLayout:Q}){let b=C0.useRef({didWarnAboutMissingResizeHandle:!1});J3(()=>{if(!g)return;let K=uJ(Y,g);for(let k=0;k<B.length-1;k++){let{valueMax:L,valueMin:U,valueNow:F}=Cl({layout:G,panelsArray:B,pivotIndices:[k,k+1]}),N=K[k];if(N==null){let{didWarnAboutMissingResizeHandle:C}=b.current;if(!C)b.current.didWarnAboutMissingResizeHandle=!0,console.warn(`WARNING: Missing resize handle for PanelGroup "${Y}"`)}else{let C=B[k];Y1(C,`No panel data found for index "${k}"`),N.setAttribute("aria-controls",C.id),N.setAttribute("aria-valuemax",""+Math.round(L)),N.setAttribute("aria-valuemin",""+Math.round(U)),N.setAttribute("aria-valuenow",F!=null?""+Math.round(F):"")}}return()=>{K.forEach((k,L)=>{k.removeAttribute("aria-controls"),k.removeAttribute("aria-valuemax"),k.removeAttribute("aria-valuemin"),k.removeAttribute("aria-valuenow")})}},[Y,G,B,g]),C0.useEffect(()=>{if(!g)return;let K=J.current;Y1(K,"Eager values not found");let{panelDataArray:k}=K,L=Jm(Y,g);Y1(L!=null,`No group found for id "${Y}"`);let U=uJ(Y,g);Y1(U,`No resize handles found for group id "${Y}"`);let F=U.map((N)=>{let C=N.getAttribute(M5.resizeHandleId);Y1(C,"Resize handle element has no handle id attribute");let[I,A]=Al(Y,C,k,g);if(I==null||A==null)return()=>{};let x=(S)=>{if(S.defaultPrevented)return;switch(S.key){case"Enter":{S.preventDefault();let D=k.findIndex((i)=>i.id===I);if(D>=0){let i=k[D];Y1(i,`No panel data found for index ${D}`);let $0=G[D],{collapsedSize:p=0,collapsible:j,minSize:Z0=0}=i.constraints;if($0!=null&&j){let s=DJ({delta:aw($0,p)?Z0-p:p-$0,initialLayout:G,panelConstraints:k.map((E)=>E.constraints),pivotIndices:Xm(Y,C,g),prevLayout:G,trigger:"keyboard"});if(G!==s)Q(s)}}break}}};return N.addEventListener("keydown",x),()=>{N.removeEventListener("keydown",x)}});return()=>{F.forEach((N)=>N())}},[g,$,J,Y,G,B,Q])}function gK($,J){if($.length!==J.length)return!1;for(let Y=0;Y<$.length;Y++)if($[Y]!==J[Y])return!1;return!0}function Ym($,J){let Y=$==="horizontal",{x:G,y:B}=nv(J);return Y?G:B}function xl($,J,Y,G,B){let g=Y==="horizontal",Q=sv(J,B);Y1(Q,`No resize handle element found for id "${J}"`);let b=Q.getAttribute(M5.groupId);Y1(b,"Resize handle element has no group id attribute");let{initialCursorPosition:K}=G,k=Ym(Y,$),L=Jm(b,B);Y1(L,`No group element found for id "${b}"`);let U=L.getBoundingClientRect(),F=g?U.width:U.height;return(k-K)/F*100}function ml($,J,Y,G,B,g){if(px($)){let Q=Y==="horizontal",b=0;if($.shiftKey)b=100;else if(B!=null)b=B;else b=10;let K=0;switch($.key){case"ArrowDown":K=Q?0:b;break;case"ArrowLeft":K=Q?-b:0;break;case"ArrowRight":K=Q?b:0;break;case"ArrowUp":K=Q?0:-b;break;case"End":K=100;break;case"Home":K=-100;break}return K}else{if(G==null)return 0;return xl($,J,Y,G,g)}}function Pl({panelDataArray:$}){let J=Array($.length),Y=$.map((g)=>g.constraints),G=0,B=100;for(let g=0;g<$.length;g++){let Q=Y[g];Y1(Q,`Panel constraints not found for index ${g}`);let{defaultSize:b}=Q;if(b!=null)G++,J[g]=b,B-=b}for(let g=0;g<$.length;g++){let Q=Y[g];Y1(Q,`Panel constraints not found for index ${g}`);let{defaultSize:b}=Q;if(b!=null)continue;let K=$.length-G,k=B/K;G++,J[g]=k,B-=k}return J}function iZ($,J,Y){J.forEach((G,B)=>{let g=$[B];Y1(g,`Panel data not found for index ${B}`);let{callbacks:Q,constraints:b,id:K}=g,{collapsedSize:k=0,collapsible:L}=b,U=Y[K];if(U==null||G!==U){Y[K]=G;let{onCollapse:F,onExpand:N,onResize:C}=Q;if(C)C(G,U);if(L&&(F||N)){if(N&&(U==null||N8(U,k))&&!N8(G,k))N();if(F&&(U==null||!N8(U,k))&&N8(G,k))F()}}})}function cv($,J){if($.length!==J.length)return!1;else for(let Y=0;Y<$.length;Y++)if($[Y]!=J[Y])return!1;return!0}function fl({defaultSize:$,dragState:J,layout:Y,panelData:G,panelIndex:B,precision:g=3}){let Q=Y[B],b;if(Q==null)b=$!=null?$.toPrecision(g):"1";else if(G.length===1)b="1";else b=Q.toPrecision(g);return{flexBasis:0,flexGrow:b,flexShrink:1,overflow:"hidden",pointerEvents:J!==null?"none":void 0}}function hl($,J=10){let Y=null;return(...B)=>{if(Y!==null)clearTimeout(Y);Y=setTimeout(()=>{$(...B)},J)}}function lx($){try{if(typeof localStorage<"u")$.getItem=(J)=>{return localStorage.getItem(J)},$.setItem=(J,Y)=>{localStorage.setItem(J,Y)};else throw Error("localStorage not supported in this environment")}catch(J){console.error(J),$.getItem=()=>null,$.setItem=()=>{}}}function zm($){return`react-resizable-panels:${$}`}function Gm($){return $.map((J)=>{let{constraints:Y,id:G,idIsFromProps:B,order:g}=J;if(B)return G;else return g?`${g}:${JSON.stringify(Y)}`:JSON.stringify(Y)}).sort((J,Y)=>J.localeCompare(Y)).join(",")}function vm($,J){try{let Y=zm($),G=J.getItem(Y);if(G){let B=JSON.parse(G);if(typeof B==="object"&&B!=null)return B}}catch(Y){}return null}function Vl($,J,Y){var G,B;let g=(G=vm($,Y))!==null&&G!==void 0?G:{},Q=Gm(J);return(B=g[Q])!==null&&B!==void 0?B:null}function Rl($,J,Y,G,B){var g;let Q=zm($),b=Gm(J),K=(g=vm($,B))!==null&&g!==void 0?g:{};K[b]={expandToSizes:Object.fromEntries(Y.entries()),layout:G};try{B.setItem(Q,JSON.stringify(K))}catch(k){console.error(k)}}function yl({panelConstraints:$,panelId:J,panelIndex:Y}){{let G=[],B=$[Y];Y1(B,`No panel constraints found for index ${Y}`);let{collapsedSize:g=0,collapsible:Q=!1,defaultSize:b,maxSize:K=100,minSize:k=0}=B;if(k>K)G.push(`min size (${k}%) should not be greater than max size (${K}%)`);if(b!=null){if(b<0)G.push("default size should not be less than 0");else if(b<k&&(!Q||b!==g))G.push("default size should not be less than min size");if(b>100)G.push("default size should not be greater than 100");else if(b>K)G.push("default size should not be greater than max size")}if(g>k)G.push("collapsed size should not be greater than min size");if(G.length>0){let L=J!=null?`Panel "${J}"`:"Panel";return console.warn(`${L} has an invalid configuration:
|
|
295
|
+
|
|
296
|
+
${G.join(`
|
|
297
|
+
`)}`),!1}}return!0}function cx({layout:$,panelConstraints:J}){let Y=[...$],G=Y.reduce((g,Q)=>g+Q,0);if(Y.length!==J.length)throw Error(`Invalid ${J.length} panel layout: ${Y.map((g)=>`${g}%`).join(", ")}`);else if(!aw(G,100)&&Y.length>0){console.warn(`WARNING: Invalid layout total size: ${Y.map((g)=>`${g}%`).join(", ")}. Layout normalization will be applied.`);for(let g=0;g<J.length;g++){let Q=Y[g];Y1(Q!=null,`No layout data found for index ${g}`);let b=100/G*Q;Y[g]=b}}let B=0;for(let g=0;g<J.length;g++){let Q=Y[g];Y1(Q!=null,`No layout data found for index ${g}`);let b=rZ({panelConstraints:J,panelIndex:g,size:Q});if(Q!=b)B+=Q-b,Y[g]=b}if(!aw(B,0))for(let g=0;g<J.length;g++){let Q=Y[g];Y1(Q!=null,`No layout data found for index ${g}`);let b=Q+B,K=rZ({panelConstraints:J,panelIndex:g,size:b});if(Q!==K){if(B-=K-Q,Y[g]=K,aw(B,0))break}}return Y}var Sl=100,jJ={getItem:($)=>{return lx(jJ),jJ.getItem($)},setItem:($,J)=>{lx(jJ),jJ.setItem($,J)}},ax={};function Bm({autoSaveId:$=null,children:J,className:Y="",direction:G,forwardedRef:B,id:g=null,onLayout:Q=null,keyboardResizeBy:b=null,storage:K=jJ,style:k,tagName:L="div",...U}){let F=WK(g),N=C0.useRef(null),[C,I]=C0.useState(null),[A,x]=C0.useState([]),S=_l(),D=C0.useRef({}),i=C0.useRef(new Map),$0=C0.useRef(0),p=C0.useRef({autoSaveId:$,direction:G,dragState:C,id:F,keyboardResizeBy:b,onLayout:Q,storage:K}),j=C0.useRef({layout:A,panelDataArray:[],panelDataArrayChanged:!1}),Z0=C0.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]});C0.useImperativeHandle(B,()=>({getId:()=>p.current.id,getLayout:()=>{let{layout:a}=j.current;return a},setLayout:(a)=>{let{onLayout:X0}=p.current,{layout:J0,panelDataArray:w0}=j.current,W0=cx({layout:a,panelConstraints:w0.map((N0)=>N0.constraints)});if(!gK(J0,W0)){if(x(W0),j.current.layout=W0,X0)X0(W0);iZ(w0,W0,D.current)}}}),[]),J3(()=>{p.current.autoSaveId=$,p.current.direction=G,p.current.dragState=C,p.current.id=F,p.current.onLayout=Q,p.current.storage=K}),Ml({committedValuesRef:p,eagerValuesRef:j,groupId:F,layout:A,panelDataArray:j.current.panelDataArray,setLayout:x,panelGroupElement:N.current}),C0.useEffect(()=>{let{panelDataArray:a}=j.current;if($){if(A.length===0||A.length!==a.length)return;let X0=ax[$];if(X0==null)X0=hl(Rl,Sl),ax[$]=X0;let J0=[...a],w0=new Map(i.current);X0($,J0,w0,A,K)}},[$,A,K]),C0.useEffect(()=>{{let{panelDataArray:a}=j.current,{didLogIdAndOrderWarning:X0,didLogPanelConstraintsWarning:J0,prevPanelIds:w0}=Z0.current;if(!X0){let W0=a.map(({id:r0})=>r0);if(Z0.current.prevPanelIds=W0,w0.length>0&&!gK(w0,W0)){if(a.find(({idIsFromProps:r0,order:b0})=>!r0||b0==null))Z0.current.didLogIdAndOrderWarning=!0,console.warn("WARNING: Panel id and order props recommended when panels are dynamically rendered")}}if(!J0){let W0=a.map((N0)=>N0.constraints);for(let N0=0;N0<W0.length;N0++){let r0=a[N0];if(Y1(r0,`Panel data not found for index ${N0}`),!yl({panelConstraints:W0,panelId:r0.id,panelIndex:N0})){Z0.current.didLogPanelConstraintsWarning=!0;break}}}}});let s=C0.useCallback((a)=>{let{onLayout:X0}=p.current,{layout:J0,panelDataArray:w0}=j.current;if(a.constraints.collapsible){let W0=w0.map((L5)=>L5.constraints),{collapsedSize:N0=0,panelSize:r0,pivotIndices:b0}=$3(w0,a,J0);if(Y1(r0!=null,`Panel size not found for panel "${a.id}"`),!N8(r0,N0)){i.current.set(a.id,r0);let r1=pZ(w0,a)===w0.length-1?r0-N0:N0-r0,T1=DJ({delta:r1,initialLayout:J0,panelConstraints:W0,pivotIndices:b0,prevLayout:J0,trigger:"imperative-api"});if(!cv(J0,T1)){if(x(T1),j.current.layout=T1,X0)X0(T1);iZ(w0,T1,D.current)}}}},[]),E=C0.useCallback((a,X0)=>{let{onLayout:J0}=p.current,{layout:w0,panelDataArray:W0}=j.current;if(a.constraints.collapsible){let N0=W0.map((C1)=>C1.constraints),{collapsedSize:r0=0,panelSize:b0=0,minSize:L5=0,pivotIndices:r1}=$3(W0,a,w0),T1=X0!==null&&X0!==void 0?X0:L5;if(N8(b0,r0)){let C1=i.current.get(a.id),K1=C1!=null&&C1>=T1?C1:T1,E0=pZ(W0,a)===W0.length-1?b0-K1:K1-b0,k5=DJ({delta:E0,initialLayout:w0,panelConstraints:N0,pivotIndices:r1,prevLayout:w0,trigger:"imperative-api"});if(!cv(w0,k5)){if(x(k5),j.current.layout=k5,J0)J0(k5);iZ(W0,k5,D.current)}}}},[]),g0=C0.useCallback((a)=>{let{layout:X0,panelDataArray:J0}=j.current,{panelSize:w0}=$3(J0,a,X0);return Y1(w0!=null,`Panel size not found for panel "${a.id}"`),w0},[]),G0=C0.useCallback((a,X0)=>{let{panelDataArray:J0}=j.current,w0=pZ(J0,a);return fl({defaultSize:X0,dragState:C,layout:A,panelData:J0,panelIndex:w0})},[C,A]),q0=C0.useCallback((a)=>{let{layout:X0,panelDataArray:J0}=j.current,{collapsedSize:w0=0,collapsible:W0,panelSize:N0}=$3(J0,a,X0);return Y1(N0!=null,`Panel size not found for panel "${a.id}"`),W0===!0&&N8(N0,w0)},[]),k0=C0.useCallback((a)=>{let{layout:X0,panelDataArray:J0}=j.current,{collapsedSize:w0=0,collapsible:W0,panelSize:N0}=$3(J0,a,X0);return Y1(N0!=null,`Panel size not found for panel "${a.id}"`),!W0||Y3(N0,w0)>0},[]),e=C0.useCallback((a)=>{let{panelDataArray:X0}=j.current;X0.push(a),X0.sort((J0,w0)=>{let W0=J0.order,N0=w0.order;if(W0==null&&N0==null)return 0;else if(W0==null)return-1;else if(N0==null)return 1;else return W0-N0}),j.current.panelDataArrayChanged=!0,S()},[S]);J3(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;let{autoSaveId:a,onLayout:X0,storage:J0}=p.current,{layout:w0,panelDataArray:W0}=j.current,N0=null;if(a){let b0=Vl(a,W0,J0);if(b0)i.current=new Map(Object.entries(b0.expandToSizes)),N0=b0.layout}if(N0==null)N0=Pl({panelDataArray:W0});let r0=cx({layout:N0,panelConstraints:W0.map((b0)=>b0.constraints)});if(!gK(w0,r0)){if(x(r0),j.current.layout=r0,X0)X0(r0);iZ(W0,r0,D.current)}}}),J3(()=>{let a=j.current;return()=>{a.layout=[]}},[]);let v0=C0.useCallback((a)=>{let X0=!1,J0=N.current;if(J0){if(window.getComputedStyle(J0,null).getPropertyValue("direction")==="rtl")X0=!0}return function(W0){W0.preventDefault();let N0=N.current;if(!N0)return()=>null;let{direction:r0,dragState:b0,id:L5,keyboardResizeBy:r1,onLayout:T1}=p.current,{layout:C1,panelDataArray:K1}=j.current,{initialLayout:iw}=b0!==null&&b0!==void 0?b0:{},E0=Xm(L5,a,N0),k5=ml(W0,a,r0,b0,r1,N0),I1=r0==="horizontal";if(I1&&X0)k5=-k5;let pw=K1.map((_4)=>_4.constraints),a5=DJ({delta:k5,initialLayout:iw!==null&&iw!==void 0?iw:C1,panelConstraints:pw,pivotIndices:E0,prevLayout:C1,trigger:px(W0)?"keyboard":"mouse-or-touch"}),v2=!cv(C1,a5);if(rx(W0)||nx(W0)){if($0.current!=k5)if($0.current=k5,!v2&&k5!==0)if(I1)BK(a,k5<0?sx:tx);else BK(a,k5<0?ex:wm);else BK(a,0)}if(v2){if(x(a5),j.current.layout=a5,T1)T1(a5);iZ(K1,a5,D.current)}}},[]),u=C0.useCallback((a,X0)=>{let{onLayout:J0}=p.current,{layout:w0,panelDataArray:W0}=j.current,N0=W0.map((C1)=>C1.constraints),{panelSize:r0,pivotIndices:b0}=$3(W0,a,w0);Y1(r0!=null,`Panel size not found for panel "${a.id}"`);let r1=pZ(W0,a)===W0.length-1?r0-X0:X0-r0,T1=DJ({delta:r1,initialLayout:w0,panelConstraints:N0,pivotIndices:b0,prevLayout:w0,trigger:"imperative-api"});if(!cv(w0,T1)){if(x(T1),j.current.layout=T1,J0)J0(T1);iZ(W0,T1,D.current)}},[]),o=C0.useCallback((a,X0)=>{let{layout:J0,panelDataArray:w0}=j.current,{collapsedSize:W0=0,collapsible:N0}=X0,{collapsedSize:r0=0,collapsible:b0,maxSize:L5=100,minSize:r1=0}=a.constraints,{panelSize:T1}=$3(w0,a,J0);if(T1==null)return;if(N0&&b0&&N8(T1,W0)){if(!N8(W0,r0))u(a,r0)}else if(T1<r1)u(a,r1);else if(T1>L5)u(a,L5)},[u]),l=C0.useCallback((a,X0)=>{let{direction:J0}=p.current,{layout:w0}=j.current;if(!N.current)return;let W0=sv(a,N.current);Y1(W0,`Drag handle element not found for id "${a}"`);let N0=Ym(J0,X0);I({dragHandleId:a,dragHandleRect:W0.getBoundingClientRect(),initialCursorPosition:N0,initialLayout:w0})},[]),M=C0.useCallback(()=>{I(null)},[]),z0=C0.useCallback((a)=>{let{panelDataArray:X0}=j.current,J0=pZ(X0,a);if(J0>=0)X0.splice(J0,1),delete D.current[a.id],j.current.panelDataArrayChanged=!0,S()},[S]),m=C0.useMemo(()=>({collapsePanel:s,direction:G,dragState:C,expandPanel:E,getPanelSize:g0,getPanelStyle:G0,groupId:F,isPanelCollapsed:q0,isPanelExpanded:k0,reevaluatePanelConstraints:o,registerPanel:e,registerResizeHandle:v0,resizePanel:u,startDragging:l,stopDragging:M,unregisterPanel:z0,panelGroupElement:N.current}),[s,C,G,E,g0,G0,F,q0,k0,o,e,v0,u,l,M,z0]),r={display:"flex",flexDirection:G==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return C0.createElement(rv.Provider,{value:m},C0.createElement(L,{...U,children:J,className:Y,id:g,ref:N,style:{...r,...k},[M5.group]:"",[M5.groupDirection]:G,[M5.groupId]:F}))}var LK=C0.forwardRef(($,J)=>C0.createElement(Bm,{...$,forwardedRef:J}));Bm.displayName="PanelGroup";LK.displayName="forwardRef(PanelGroup)";function pZ($,J){return $.findIndex((Y)=>Y===J||Y.id===J.id)}function $3($,J,Y){let G=pZ($,J),g=G===$.length-1?[G-1,G]:[G,G+1],Q=Y[G];return{...J.constraints,panelSize:Q,pivotIndices:g}}function dl({disabled:$,handleId:J,resizeHandler:Y,panelGroupElement:G}){C0.useEffect(()=>{if($||Y==null||G==null)return;let B=sv(J,G);if(B==null)return;let g=(Q)=>{if(Q.defaultPrevented)return;switch(Q.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{Q.preventDefault(),Y(Q);break}case"F6":{Q.preventDefault();let b=B.getAttribute(M5.groupId);Y1(b,`No group element found for id "${b}"`);let K=uJ(b,G),k=$m(b,J,G);Y1(k!==null,`No resize element found for id "${J}"`);let L=Q.shiftKey?k>0?k-1:K.length-1:k+1<K.length?k+1:0;K[L].focus();break}}};return B.addEventListener("keydown",g),()=>{B.removeEventListener("keydown",g)}},[G,$,J,Y])}function kK({children:$=null,className:J="",disabled:Y=!1,hitAreaMargins:G,id:B,onBlur:g,onClick:Q,onDragging:b,onFocus:K,onPointerDown:k,onPointerUp:L,style:U={},tabIndex:F=0,tagName:N="div",...C}){var I,A;let x=C0.useRef(null),S=C0.useRef({onClick:Q,onDragging:b,onPointerDown:k,onPointerUp:L});C0.useEffect(()=>{S.current.onClick=Q,S.current.onDragging=b,S.current.onPointerDown=k,S.current.onPointerUp=L});let D=C0.useContext(rv);if(D===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:i,groupId:$0,registerResizeHandle:p,startDragging:j,stopDragging:Z0,panelGroupElement:s}=D,E=WK(B),[g0,G0]=C0.useState("inactive"),[q0,k0]=C0.useState(!1),[e,v0]=C0.useState(null),u=C0.useRef({state:g0});J3(()=>{u.current.state=g0}),C0.useEffect(()=>{if(Y)v0(null);else{let z0=p(E);v0(()=>z0)}},[Y,E,p]);let o=(I=G===null||G===void 0?void 0:G.coarse)!==null&&I!==void 0?I:15,l=(A=G===null||G===void 0?void 0:G.fine)!==null&&A!==void 0?A:5;return C0.useEffect(()=>{if(Y||e==null)return;let z0=x.current;Y1(z0,"Element ref not attached");let m=!1;return Tl(E,z0,i,{coarse:o,fine:l},(a,X0,J0)=>{if(!X0){G0("inactive");return}switch(a){case"down":{G0("drag"),m=!1,Y1(J0,'Expected event to be defined for "down" action'),j(E,J0);let{onDragging:w0,onPointerDown:W0}=S.current;w0===null||w0===void 0||w0(!0),W0===null||W0===void 0||W0();break}case"move":{let{state:w0}=u.current;if(m=!0,w0!=="drag")G0("hover");Y1(J0,'Expected event to be defined for "move" action'),e(J0);break}case"up":{G0("hover"),Z0();let{onClick:w0,onDragging:W0,onPointerUp:N0}=S.current;if(W0===null||W0===void 0||W0(!1),N0===null||N0===void 0||N0(),!m)w0===null||w0===void 0||w0();break}}})},[o,i,Y,l,p,E,e,j,Z0]),dl({disabled:Y,handleId:E,resizeHandler:e,panelGroupElement:s}),C0.createElement(N,{...C,children:$,className:J,id:B,onBlur:()=>{k0(!1),g===null||g===void 0||g()},onFocus:()=>{k0(!0),K===null||K===void 0||K()},ref:x,role:"separator",style:{...{touchAction:"none",userSelect:"none"},...U},tabIndex:F,[M5.groupDirection]:i,[M5.groupId]:$0,[M5.resizeHandle]:"",[M5.resizeHandleActive]:g0==="drag"?"pointer":q0?"keyboard":void 0,[M5.resizeHandleEnabled]:!Y,[M5.resizeHandleId]:E,[M5.resizeHandleState]:g0})}kK.displayName="PanelResizeHandle";var oZ=P(H0(),1);function Hm({className:$,...J}){return oZ.jsxDEV(LK,{"data-slot":"resizable-panel-group",className:O0("flex size-full data-[panel-group-direction=vertical]:flex-col",$),...J},void 0,!1,void 0,this)}function FK({...$}){return oZ.jsxDEV(KK,{"data-slot":"resizable-panel",...$},void 0,!1,void 0,this)}function gm({withHandle:$,className:J,...Y}){return oZ.jsxDEV(kK,{"data-slot":"resizable-handle",className:O0("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",J),...Y,children:$&&oZ.jsxDEV("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",children:oZ.jsxDEV(wJ,{className:"size-2.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var z2=P(Q0(),1);var b1=P(H0(),1),Dl=["@all","@builders","@scouts","@reviewers","@leads","@mergers","@coordinators"],jl=["status","question","result","error"],El=["low","normal","high","urgent"];function bm({open:$,onClose:J,onSuccess:Y,onError:G,replyTo:B}){let g=Ew(),Q=z2.useRef(null),b=z2.useId(),[K,k]=z2.useState(""),[L,U]=z2.useState("operator"),[F,N]=z2.useState(""),[C,I]=z2.useState(""),[A,x]=z2.useState("status"),[S,D]=z2.useState("normal"),[i,$0]=z2.useState(""),[p,j]=z2.useState(!1),[Z0,s]=z2.useState(!1),[E,g0]=z2.useState(null),{data:G0=[]}=c0({queryKey:["agents-list"],queryFn:UJ,enabled:$});if(z2.useEffect(()=>{if(!$)return;if(g0(null),s(!1),B)k(B.to),N(B.subject.startsWith("Re: ")?B.subject:`Re: ${B.subject}`),I(""),j(!1),$0("");else k(""),N(""),I(""),x("status"),D("normal"),j(!1),$0("")},[$,B]),z2.useEffect(()=>{if(!$)return;let m=window.setTimeout(()=>{Q.current?.focus()},0);return()=>window.clearTimeout(m)},[$]),z2.useEffect(()=>{if(!$)return;function m(r){if(r.key==="Escape")r.preventDefault(),J()}return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[$,J]),!$)return null;async function q0(){if(Z0)return;g0(null);let m=K.trim(),r=F.trim(),a=C.trim();if(!B){if(m===""){g0("To is required");return}if(r===""){g0("Subject is required");return}}if(a===""){g0("Body is required");return}let X0;if(p&&i.trim()!=="")try{JSON.parse(i),X0=i}catch(J0){g0("Payload must be valid JSON");return}s(!0);try{let J0;if(B)J0={messageId:(await $W(B.messageId,{from:L.trim()||"operator",body:a,type:A,priority:S})).messageId};else J0=await ZW({to:m,from:L.trim()||"operator",subject:r,body:a,type:A,priority:S,payload:X0});await g.invalidateQueries({queryKey:["mail"]});let w0=J0.messageIds??J0.messageId??"";Y?.(w0),J()}catch(J0){let w0=J0 instanceof Error?J0:Error(String(J0));g0(w0.message),G?.(w0)}finally{s(!1)}}function k0(m){if((m.metaKey||m.ctrlKey)&&m.key==="Enter")m.preventDefault(),q0()}let e=[...new Set([...G0,...Dl])],v0=B!==void 0,u=`${b}-to`,o=`${b}-subject`,l=`${b}-from`,M=`${b}-type`,z0=`${b}-priority`;return b1.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":v0?"Reply to message":"Compose message",children:[b1.jsxDEV("button",{type:"button","aria-label":"Close composer",className:"absolute inset-0 bg-foreground/40 backdrop-blur-sm cursor-default",onClick:J},void 0,!1,void 0,this),b1.jsxDEV(M1,{className:"relative w-full max-w-xl max-h-[90vh] overflow-auto py-5 gap-0",children:b1.jsxDEV(P1,{className:"flex flex-col gap-4 px-6",children:[b1.jsxDEV("div",{className:"flex items-center justify-between",children:[b1.jsxDEV("h2",{className:"text-lg font-semibold tracking-tight",children:v0?"Reply":"New message"},void 0,!1,void 0,this),b1.jsxDEV(S1,{type:"button",variant:"ghost",size:"sm",onClick:J,children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[b1.jsxDEV("label",{htmlFor:u,className:"text-muted-foreground text-xs font-medium",children:"To"},void 0,!1,void 0,this),b1.jsxDEV(E6,{id:u,ref:(m)=>{if(!v0)Q.current=m},type:"text",list:v0?void 0:b,value:K,onChange:(m)=>k(m.target.value),placeholder:"agent or @group",readOnly:v0,required:!v0},void 0,!1,void 0,this),b1.jsxDEV("datalist",{id:b,children:e.map((m)=>b1.jsxDEV("option",{value:m},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"flex flex-col gap-1.5 text-sm",children:[b1.jsxDEV("label",{htmlFor:o,className:"text-muted-foreground text-xs font-medium",children:"Subject"},void 0,!1,void 0,this),b1.jsxDEV(E6,{id:o,type:"text",value:F,onChange:(m)=>N(m.target.value),readOnly:v0,required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b1.jsxDEV("label",{className:"flex flex-col gap-1.5 text-sm",children:[b1.jsxDEV("span",{className:"text-muted-foreground text-xs font-medium",children:"Body"},void 0,!1,void 0,this),b1.jsxDEV("textarea",{ref:(m)=>{if(v0)Q.current=m},className:O0(lv(),"font-mono leading-relaxed"),rows:6,value:C,onChange:(m)=>I(m.target.value),onKeyDown:k0,placeholder:"Cmd/Ctrl+Enter to send",required:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"grid grid-cols-3 gap-3 text-sm",children:[b1.jsxDEV("div",{className:"flex flex-col gap-1.5",children:[b1.jsxDEV("label",{htmlFor:l,className:"text-muted-foreground text-xs font-medium",children:"From"},void 0,!1,void 0,this),b1.jsxDEV(E6,{id:l,type:"text",value:L,onChange:(m)=>U(m.target.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"flex flex-col gap-1.5",children:[b1.jsxDEV("label",{htmlFor:M,className:"text-muted-foreground text-xs font-medium",children:"Type"},void 0,!1,void 0,this),b1.jsxDEV(Uw,{id:M,value:A,onChange:(m)=>x(m.target.value),children:jl.map((m)=>b1.jsxDEV("option",{value:m,children:m},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"flex flex-col gap-1.5",children:[b1.jsxDEV("label",{htmlFor:z0,className:"text-muted-foreground text-xs font-medium",children:"Priority"},void 0,!1,void 0,this),b1.jsxDEV(Uw,{id:z0,value:S,onChange:(m)=>D(m.target.value),children:El.map((m)=>b1.jsxDEV("option",{value:m,children:m},m,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!v0&&b1.jsxDEV("div",{className:"flex flex-col gap-2 text-sm",children:[b1.jsxDEV("button",{type:"button",className:"text-xs text-muted-foreground self-start hover:text-foreground transition-colors",onClick:()=>j((m)=>!m),children:p?"Hide advanced":"Show advanced"},void 0,!1,void 0,this),p&&b1.jsxDEV("label",{className:"flex flex-col gap-1.5",children:[b1.jsxDEV("span",{className:"text-muted-foreground text-xs font-medium",children:"Payload (JSON)"},void 0,!1,void 0,this),b1.jsxDEV("textarea",{className:O0(lv(),"font-mono leading-relaxed"),rows:4,value:i,onChange:(m)=>$0(m.target.value),placeholder:'{"key": "value"}'},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),E!==null&&b1.jsxDEV("div",{className:"rounded-md border border-destructive/50 bg-destructive/10 px-3 py-2.5 text-sm text-destructive",children:E},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"flex items-center justify-end gap-2 pt-1",children:[b1.jsxDEV(S1,{type:"button",variant:"outline",onClick:J,disabled:Z0,children:"Cancel"},void 0,!1,void 0,this),b1.jsxDEV(S1,{type:"button",onClick:()=>{q0()},disabled:Z0,children:Z0?"Sending…":v0?"Send reply":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var T8=P(H0(),1);function Qm({filters:$,onChange:J}){let{data:Y=[]}=c0({queryKey:["agents-list"],queryFn:UJ});return T8.jsxDEV("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border bg-muted/30 shrink-0",children:[T8.jsxDEV(S1,{variant:$.unread?"default":"outline",size:"sm",onClick:()=>J({...$,unread:!$.unread}),children:"Unread"},void 0,!1,void 0,this),T8.jsxDEV(Uw,{className:"px-2.5 py-1.5",value:$.from,onChange:(G)=>J({...$,from:G.target.value}),children:[T8.jsxDEV("option",{value:"",children:"All from"},void 0,!1,void 0,this),Y.map((G)=>T8.jsxDEV("option",{value:G,children:G},G,!1,void 0,this))]},void 0,!0,void 0,this),T8.jsxDEV(Uw,{className:"px-2.5 py-1.5",value:$.to,onChange:(G)=>J({...$,to:G.target.value}),children:[T8.jsxDEV("option",{value:"",children:"All to"},void 0,!1,void 0,this),Y.map((G)=>T8.jsxDEV("option",{value:G,children:G},G,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var h1=P(H0(),1);function Wm($){switch($){case"error":case"merge_failed":return"destructive";case"worker_done":case"merged":case"merge_ready":return"default";case"status":return"outline";default:return"secondary"}}function ul({msg:$}){return h1.jsxDEV("div",{className:"flex flex-col gap-1.5 px-6 py-4 border-b border-border last:border-0",children:[h1.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[h1.jsxDEV("span",{className:"text-sm font-medium truncate flex-1",children:$.subject},void 0,!1,void 0,this),h1.jsxDEV(O1,{variant:Wm($.type),children:$.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:[$.from," → ",$.to]},void 0,!0,void 0,this),h1.jsxDEV(L4,{variant:"block",className:"mt-2",children:$.body},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Km({messageId:$,onReply:J}){let{data:Y,isLoading:G}=c0({queryKey:["mail","message",$],queryFn:()=>wW($??""),enabled:$!==null});if($===null)return h1.jsxDEV("div",{className:"h-full flex items-center justify-center p-8",children:h1.jsxDEV(U5,{icon:ZJ,title:"Select a message",description:"Choose a thread on the left to read it."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(G||Y===void 0)return h1.jsxDEV("div",{className:"h-full flex items-center justify-center p-8",children:h1.jsxDEV(H5,{label:"Loading message"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let{message:B,thread:g}=Y;return h1.jsxDEV(Dv,{className:"h-full",children:h1.jsxDEV("div",{className:"flex flex-col gap-0",children:[h1.jsxDEV("div",{className:"px-6 py-4 border-b border-border flex flex-col gap-1.5",children:[h1.jsxDEV("div",{className:"flex items-center justify-between gap-3",children:[h1.jsxDEV("span",{className:"font-semibold text-lg truncate flex-1 tracking-tight",children:B.subject},void 0,!1,void 0,this),h1.jsxDEV("div",{className:"flex items-center gap-2 shrink-0",children:[h1.jsxDEV(O1,{variant:Wm(B.type),children:B.type},void 0,!1,void 0,this),J!==void 0&&h1.jsxDEV(S1,{type:"button",variant:"outline",size:"sm",onClick:()=>J(B),children:"Reply"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:[B.from," → ",B.to]},void 0,!0,void 0,this),h1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:new Date(B.createdAt).toISOString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h1.jsxDEV("div",{className:"px-6 py-4 border-b border-border",children:h1.jsxDEV(L4,{variant:"block",children:B.body},void 0,!1,void 0,this)},void 0,!1,void 0,this),B.payload!==null&&h1.jsxDEV("div",{className:"px-6 py-4 border-b border-border",children:h1.jsxDEV(P9,{children:[h1.jsxDEV(f9,{children:"Payload"},void 0,!1,void 0,this),h1.jsxDEV(h9,{className:"mt-3",children:h1.jsxDEV(L4,{variant:"block",children:(()=>{try{return JSON.stringify(JSON.parse(B.payload??""),null,2)}catch{return B.payload??""}})()},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g.length>0&&h1.jsxDEV("div",{className:"flex flex-col",children:[h1.jsxDEV("div",{className:"px-6 py-3 text-xs font-medium uppercase tracking-wide text-muted-foreground border-b border-border bg-muted/30",children:["Thread (",g.length,")"]},void 0,!0,void 0,this),g.map((Q)=>h1.jsxDEV(ul,{msg:Q},Q.id,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Um=P(Q0(),1);var G2=P(H0(),1);function ll($){switch($){case"error":case"merge_failed":return"destructive";case"worker_done":case"merged":case"merge_ready":return"default";case"status":return"outline";default:return"secondary"}}function qm({items:$,selectedId:J,onSelect:Y,onDelete:G}){let B=Um.useRef(null);if(Pv(B),$.length===0)return G2.jsxDEV("div",{className:"flex-1 flex items-center justify-center p-8",children:G2.jsxDEV(U5,{icon:JJ,title:"No messages",description:G2.jsxDEV(G2.Fragment,{children:["Send one with"," ",G2.jsxDEV(L4,{children:'ap mail send --to coordinator --subject "..." --body "..." --type status'},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return G2.jsxDEV("div",{ref:B,className:"flex-1 min-h-0 overflow-auto",children:G2.jsxDEV("div",{className:"flex flex-col",children:$.map((g)=>G2.jsxDEV("div",{className:"relative group",children:[G2.jsxDEV("button",{type:"button",onClick:()=>Y(g.id),className:["w-full flex flex-col gap-1.5 px-4 py-3 text-left border-b border-border hover:bg-accent/40 transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:ring-inset",J===g.id?"bg-accent text-accent-foreground":""].join(" "),children:[G2.jsxDEV("div",{className:"flex items-center justify-between gap-2 pr-7",children:[G2.jsxDEV("span",{className:"text-sm font-medium truncate flex-1",children:g.subject},void 0,!1,void 0,this),G2.jsxDEV("div",{className:"flex items-center gap-1.5 shrink-0",children:[G2.jsxDEV(O1,{variant:ll(g.type),children:g.type},void 0,!1,void 0,this),!g.read&&G2.jsxDEV("div",{className:"size-2 rounded-full bg-primary"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G2.jsxDEV("span",{className:"text-xs text-muted-foreground",children:[g.from," → ",g.to]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G!==void 0&&G2.jsxDEV("button",{type:"button","aria-label":`Delete message ${g.subject}`,onClick:(Q)=>{Q.stopPropagation(),G(g.id)},className:"absolute top-2 right-2 opacity-60 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity rounded-md p-1.5 text-muted-foreground hover:text-destructive hover:bg-accent outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px]",children:G2.jsxDEV(gJ,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},g.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var d2=P(H0(),1);function cl($,J){let Y=J.findIndex((G)=>G.id===$.id);if(Y!==-1){let G=[...J];return G[Y]=$,G}return[$,...J]}function Lm(){let $=Ew(),[J,Y]=tv.useState(null),[G,B]=tv.useState({unread:!1,from:"",to:""}),[g,Q]=tv.useState({open:!1}),{data:b=[]}=c0({queryKey:["mail",G],queryFn:()=>eQ(G),refetchInterval:5000});xM((N)=>{$.setQueryData(["mail",G],(C)=>cl(N,C??[]))});function K(N){Y(N),$.setQueryData(["mail",G],(C)=>C!==void 0?C.map((I)=>I.id===N?{...I,read:!0}:I):void 0),Promise.resolve().then(() => TO).then(({markRead:C})=>C(N))}function k(N){Q({open:!0,replyTo:{messageId:N.id,to:N.from,subject:N.subject}})}function L(){Q({open:!0})}function U(){Q({open:!1})}async function F(N){let C=["mail",G],I=$.getQueryData(C);if($.setQueryData(C,(A)=>A!==void 0?A.filter((x)=>x.id!==N):void 0),J===N)Y(null);try{await XW(N),await $.invalidateQueries({queryKey:["mail"]})}catch(A){if(console.error("delete failed",A),I!==void 0)$.setQueryData(C,I)}}return d2.jsxDEV(d2.Fragment,{children:[d2.jsxDEV(Hm,{direction:"horizontal",className:"h-full",children:[d2.jsxDEV(FK,{defaultSize:35,minSize:25,children:d2.jsxDEV("div",{className:"flex flex-col h-full",children:[d2.jsxDEV("div",{className:"flex items-center justify-between gap-2 px-4 py-3 border-b border-border shrink-0",children:[d2.jsxDEV("h1",{className:"text-base font-semibold tracking-tight",children:"Mail"},void 0,!1,void 0,this),d2.jsxDEV(S1,{size:"sm",onClick:L,children:"Compose"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d2.jsxDEV(Qm,{filters:G,onChange:B},void 0,!1,void 0,this),d2.jsxDEV(qm,{items:b,selectedId:J,onSelect:K,onDelete:(N)=>{F(N)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),d2.jsxDEV(gm,{withHandle:!0},void 0,!1,void 0,this),d2.jsxDEV(FK,{defaultSize:65,children:d2.jsxDEV(Km,{messageId:J,onReply:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d2.jsxDEV(bm,{open:g.open,onClose:U,replyTo:g.replyTo,onError:(N)=>console.error("compose failed",N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var km=P(Q0(),1);var p1=P(H0(),1),al={pending:"secondary",merging:"default",merged:"outline",conflict:"destructive",failed:"destructive"},il=["all","pending","merging","merged","conflict","failed"];function Fm(){let[$,J]=km.useState("all"),Y=c0({queryKey:["merge-queue",$],queryFn:()=>BW($==="all"?void 0:$),refetchInterval:5000}),G=Y.data??[];return p1.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[p1.jsxDEV("div",{className:"flex items-center justify-between",children:[p1.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Merge queue"},void 0,!1,void 0,this),p1.jsxDEV(Uw,{value:$,onChange:(B)=>J(B.target.value),className:"w-40",children:il.map((B)=>p1.jsxDEV("option",{value:B,children:B},B,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.isLoading&&p1.jsxDEV(H5,{label:"Loading merge queue"},void 0,!1,void 0,this),!Y.isLoading&&G.length===0&&p1.jsxDEV(U5,{icon:j7,title:"Queue is empty",description:"Branches appear here when agents send merge_ready or you enqueue a merge."},void 0,!1,void 0,this),G.length>0&&p1.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 overflow-hidden bg-card",children:p1.jsxDEV(y9,{children:[p1.jsxDEV(S9,{children:p1.jsxDEV(F4,{className:"bg-muted/40 hover:bg-muted/40",children:[p1.jsxDEV(e1,{className:"px-4 h-11",children:"Branch"},void 0,!1,void 0,this),p1.jsxDEV(e1,{className:"px-4 h-11",children:"Agent"},void 0,!1,void 0,this),p1.jsxDEV(e1,{className:"px-4 h-11",children:"Status"},void 0,!1,void 0,this),p1.jsxDEV(e1,{className:"px-4 h-11",children:"Tier"},void 0,!1,void 0,this),p1.jsxDEV(e1,{className:"px-4 h-11",children:"Files"},void 0,!1,void 0,this),p1.jsxDEV(e1,{className:"px-4 h-11",children:"Enqueued"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p1.jsxDEV(d9,{children:G.map((B)=>p1.jsxDEV(F4,{children:[p1.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3 break-all",children:B.branchName},void 0,!1,void 0,this),p1.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:B.agentName},void 0,!1,void 0,this),p1.jsxDEV(w5,{className:"px-4 py-3",children:p1.jsxDEV(O1,{variant:al[B.status],children:B.status},void 0,!1,void 0,this)},void 0,!1,void 0,this),p1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:B.resolvedTier??"—"},void 0,!1,void 0,this),p1.jsxDEV(w5,{className:"text-xs px-4 py-3 tabular-nums",children:B.filesModified.length},void 0,!1,void 0,this),p1.jsxDEV(w5,{className:"text-xs px-4 py-3",children:$2(B.enqueuedAt)},void 0,!1,void 0,this)]},B.branchName,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var z3=P(Q0(),1);var I4=P(H0(),1),Nm=100,pl={tool_start:{compact:"TOOL+",cls:"text-blue-500"},tool_end:{compact:"TOOL-",cls:"text-blue-500"},session_start:{compact:"SESS+",cls:"text-green-500"},session_end:{compact:"SESS-",cls:"text-yellow-500"},mail_sent:{compact:"MAIL>",cls:"text-cyan-500"},mail_received:{compact:"MAIL<",cls:"text-cyan-500"},spawn:{compact:"SPAWN",cls:"text-fuchsia-500"},error:{compact:"ERROR",cls:"text-destructive"},custom:{compact:"CUSTM",cls:"text-muted-foreground"},turn_start:{compact:"TURN+",cls:"text-green-500"},turn_end:{compact:"TURN-",cls:"text-yellow-500"},progress:{compact:"PROG ",cls:"text-cyan-500"},result:{compact:"RSULT",cls:"text-green-500"}},Tm=["text-sky-500","text-emerald-500","text-amber-500","text-violet-500","text-rose-500","text-teal-500","text-orange-500","text-indigo-500"];function rl($){let J=0;for(let Y=0;Y<$.length;Y++)J=J*31+$.charCodeAt(Y)>>>0;return Tm[J%Tm.length]??"text-muted-foreground"}function nl($){return pl[$]??{compact:$.slice(0,5).toUpperCase(),cls:"text-foreground"}}function ol($){let J=[];if($.toolName)J.push(`tool=${$.toolName}`);if($.toolArgs)J.push(`args=${$.toolArgs.length>60?`${$.toolArgs.slice(0,60)}…`:$.toolArgs}`);if($.toolDurationMs!==null&&$.toolDurationMs!==void 0)J.push(`dur=${$.toolDurationMs}ms`);if($.data)J.push(`data=${$.data.length>60?`${$.data.slice(0,60)}…`:$.data}`);return J.join(" ")}function Im({runId:$}){let J=c0({queryKey:["feed-seed",$],queryFn:()=>tQ({runId:$??void 0,limit:40}),enabled:$!==null}),[Y,G]=z3.useState([]),B=z3.useRef(-1),g=z3.useCallback((U)=>{if(U.type!=="event")return;let F=U.payload,N="batched"in F?F.events:[F];G((C)=>{let I=[...C];for(let A of N)I.push(A.id>0?A:{...A,id:B.current--});return I.slice(-Nm)})},[]),{status:Q}=DZ($?`/ws?run=${encodeURIComponent($)}`:null,{onMessage:g}),b=new Set,K=[];for(let U of[...J.data?.data??[],...Y]){if(b.has(U.id))continue;b.add(U.id),K.push(U)}let k=K.slice(-Nm),L=z3.useRef(null);return mv(L,{dependency:k.length}),I4.jsxDEV("div",{className:"flex flex-col h-full min-h-0",children:[I4.jsxDEV("div",{className:"flex items-center gap-2 mb-2",children:[I4.jsxDEV("span",{className:`inline-block size-2 rounded-full ${Q==="open"?"bg-green-500 animate-pulse":Q==="connecting"?"bg-yellow-500":"bg-muted-foreground/40"}`},void 0,!1,void 0,this),I4.jsxDEV("span",{className:"text-xs text-muted-foreground",children:Q==="open"?"live":Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I4.jsxDEV("div",{ref:L,className:"flex-1 min-h-0 overflow-auto rounded-lg border border-border bg-zinc-950 text-zinc-100 dark:bg-black/40 font-mono text-xs leading-relaxed p-2",children:k.length===0?I4.jsxDEV("p",{className:"text-muted-foreground px-1",children:"No recent events"},void 0,!1,void 0,this):k.map((U)=>{let F=nl(U.eventType),N=ol(U);return I4.jsxDEV("div",{className:"flex items-baseline gap-2 whitespace-nowrap",children:[I4.jsxDEV("span",{className:"text-zinc-500 shrink-0",children:WM(U.createdAt)},void 0,!1,void 0,this),I4.jsxDEV("span",{className:`shrink-0 font-bold ${U.level==="error"?"text-destructive":U.level==="warn"?"text-yellow-500":F.cls}`,children:F.compact},void 0,!1,void 0,this),I4.jsxDEV("span",{className:`shrink-0 ${rl(U.agentName)}`,children:U.agentName.padEnd(15)},void 0,!1,void 0,this),N?I4.jsxDEV("span",{className:"text-zinc-500 truncate",children:N},void 0,!1,void 0,this):null]},U.id,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I8=P(H0(),1),sl={in_progress:"default",open:"secondary",ready:"secondary",blocked:"destructive",closed:"outline",done:"outline"};function tl($){if($<=0)return"P0";if($>=4)return"P4";return`P${$}`}function _m(){let $=c0({queryKey:["tasks"],queryFn:()=>UW({limit:20}),refetchInterval:5000}),J=$.data??[];return I8.jsxDEV("div",{className:"flex flex-col h-full min-h-0",children:I8.jsxDEV("div",{className:"flex-1 min-h-0 overflow-auto flex flex-col gap-1.5",children:$.isLoading?I8.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Loading tasks…"},void 0,!1,void 0,this):J.length===0?I8.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"No tasks — none tracked yet, or no tracker configured."},void 0,!1,void 0,this):J.map((Y)=>I8.jsxDEV("div",{className:"flex items-center gap-2 text-xs border-b border-border/30 pb-1.5 last:border-0",children:[I8.jsxDEV("span",{className:"font-mono text-muted-foreground shrink-0 w-8",children:tl(Y.priority)},void 0,!1,void 0,this),I8.jsxDEV("span",{className:"flex-1 truncate",title:Y.title,children:Y.title},void 0,!1,void 0,this),I8.jsxDEV(O1,{variant:sl[Y.status]??"secondary",className:"shrink-0",children:Y.status.replace(/_/g," ")},void 0,!1,void 0,this)]},Y.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var n0=P(H0(),1);function Om(){let[$]=P7(),J=c0({queryKey:["runs"],queryFn:()=>U8(50),refetchInterval:5000}),Y=J.data??[],G=$.get("run")??Y[0]?.id??null,B=c0({queryKey:["agents",G],queryFn:()=>KJ({runId:G??void 0}),enabled:G!==null,refetchInterval:5000}),g=c0({queryKey:["metrics"],queryFn:()=>qJ(50),refetchInterval:1e4}),Q=c0({queryKey:["errors","overview"],queryFn:()=>LJ({limit:100}),refetchInterval:1e4}),b=B.data??[],K=g.data,k=Q.data??[],L=b.filter((F)=>F.state==="working"||F.state==="in_turn"||F.state==="between_turns"||F.state==="booting").length,U=(K?.tokenTotals.inputTokens??0)+(K?.tokenTotals.outputTokens??0);if(J.isLoading)return n0.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:n0.jsxDEV(H5,{label:"Loading overview"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return n0.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[n0.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Overview"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4",children:[n0.jsxDEV(S2,{label:"Active agents",value:L,icon:S7},void 0,!1,void 0,this),n0.jsxDEV(S2,{label:"Runs",value:Y.length,icon:XJ},void 0,!1,void 0,this),n0.jsxDEV(S2,{label:"Sessions",value:K?.totalSessions??0,icon:sX,hint:K?`${K.completedSessions} completed`:void 0},void 0,!1,void 0,this),n0.jsxDEV(S2,{label:"Total cost",value:PZ(K?.tokenTotals.estimatedCostUsd??0),icon:D7,hint:`${f6(U)} tokens`},void 0,!1,void 0,this),n0.jsxDEV(S2,{label:"Avg duration",value:fZ(K?.averageDurationMs??0),icon:nX},void 0,!1,void 0,this),n0.jsxDEV(S2,{label:"Errors",value:k.length,icon:P6,tone:k.length>0?"destructive":"default"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n0.jsxDEV(M1,{className:"lg:col-span-2 flex flex-col h-80",children:[n0.jsxDEV(c1,{children:n0.jsxDEV(C5,{className:"flex items-center justify-between text-sm",children:[n0.jsxDEV("span",{children:"Live feed"},void 0,!1,void 0,this),n0.jsxDEV(x6,{to:"/fleet",className:"text-xs text-muted-foreground hover:text-foreground",children:"Fleet →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),n0.jsxDEV(P1,{className:"flex-1 min-h-0 overflow-hidden",children:n0.jsxDEV(Im,{runId:G},G??"none",!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV(M1,{className:"flex flex-col h-80",children:[n0.jsxDEV(c1,{children:n0.jsxDEV(C5,{className:"flex items-center justify-between text-sm",children:[n0.jsxDEV("span",{children:"Tasks"},void 0,!1,void 0,this),n0.jsxDEV(x6,{to:"/groups",className:"text-xs text-muted-foreground hover:text-foreground",children:"Groups →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),n0.jsxDEV(P1,{className:"flex-1 min-h-0 overflow-hidden",children:n0.jsxDEV(_m,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n0.jsxDEV(M1,{className:"lg:col-span-2",children:[n0.jsxDEV(c1,{children:n0.jsxDEV(C5,{className:"flex items-center justify-between text-sm",children:[n0.jsxDEV("span",{children:"Fleet snapshot"},void 0,!1,void 0,this),n0.jsxDEV(x6,{to:"/fleet",className:"text-xs text-muted-foreground hover:text-foreground",children:"View fleet →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),n0.jsxDEV(P1,{children:n0.jsxDEV(uv,{agents:b.slice(0,8)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV(M1,{children:[n0.jsxDEV(c1,{children:n0.jsxDEV(C5,{className:"flex items-center justify-between text-sm",children:[n0.jsxDEV("span",{children:"Recent errors"},void 0,!1,void 0,this),n0.jsxDEV(x6,{to:"/errors",className:"text-xs text-muted-foreground hover:text-foreground",children:"All errors →"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),n0.jsxDEV(P1,{className:"flex flex-col gap-2",children:k.length===0?n0.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"No errors recorded."},void 0,!1,void 0,this):k.slice(0,6).map((F)=>n0.jsxDEV("div",{className:"text-xs border-b border-border/50 pb-2 last:border-0",children:[n0.jsxDEV("div",{className:"flex items-center justify-between gap-2",children:[n0.jsxDEV("span",{className:"font-mono",children:F.agentName},void 0,!1,void 0,this),n0.jsxDEV("span",{className:"text-muted-foreground",children:$2(F.createdAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("p",{className:"text-muted-foreground truncate",children:[F.toolName?`${F.toolName}: `:"",F.data??F.eventType]},void 0,!0,void 0,this)]},F.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ev=P(Q0(),1);var Tw=P(H0(),1);function Cm(){let[$,J]=ev.useState(null),Y=c0({queryKey:["specs"],queryFn:()=>WW(),refetchInterval:1e4}),G=Y.data??[];ev.useEffect(()=>{if($===null&&G.length>0&&G[0])J(G[0].taskId)},[$,G]);let B=c0({queryKey:["spec",$],queryFn:()=>$?KW($):Promise.resolve(null),enabled:$!==null});if(Y.isLoading)return Tw.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:Tw.jsxDEV(H5,{label:"Loading specs"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(G.length===0)return Tw.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto",children:Tw.jsxDEV(U5,{icon:tX,title:"No specs",description:"Specs written via ap spec write appear in .agentplate/specs/."},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Tw.jsxDEV("div",{className:"p-6 max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-[16rem_1fr] gap-6",children:[Tw.jsxDEV("aside",{className:"flex flex-col gap-1",children:[Tw.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight mb-3",children:"Specs"},void 0,!1,void 0,this),G.map((g)=>Tw.jsxDEV("button",{type:"button",onClick:()=>J(g.taskId),className:`flex flex-col items-start rounded-md px-3 py-2 text-left text-sm transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] ${$===g.taskId?"bg-accent text-accent-foreground":"hover:bg-accent/50 text-muted-foreground"}`,children:[Tw.jsxDEV("span",{className:"font-mono text-xs",children:g.taskId},void 0,!1,void 0,this),Tw.jsxDEV("span",{className:"text-[10px] text-muted-foreground",children:[$2(g.modifiedAt)," · ",g.sizeBytes,"b"]},void 0,!0,void 0,this)]},g.taskId,!0,void 0,this))]},void 0,!0,void 0,this),Tw.jsxDEV("section",{className:"rounded-xl border border-border ring-1 ring-foreground/10 bg-card p-5 min-h-64",children:[B.isLoading&&Tw.jsxDEV(H5,{label:"Loading spec"},void 0,!1,void 0,this),B.data?Tw.jsxDEV("pre",{className:"whitespace-pre-wrap break-words font-mono text-xs leading-relaxed",children:B.data.content},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var M2=P(H0(),1);function Am(){let $=c0({queryKey:["worktrees"],queryFn:()=>HW(),refetchInterval:5000}),J=$.data??[];return M2.jsxDEV("div",{className:"p-6 flex flex-col gap-6 max-w-7xl mx-auto",children:[M2.jsxDEV("h1",{className:"text-xl font-semibold tracking-tight",children:"Worktrees"},void 0,!1,void 0,this),$.isLoading&&M2.jsxDEV(H5,{label:"Loading worktrees"},void 0,!1,void 0,this),!$.isLoading&&J.length===0&&M2.jsxDEV(U5,{icon:eX,title:"No worktrees",description:"Agent worktrees appear here while they hold checked-out branches."},void 0,!1,void 0,this),J.length>0&&M2.jsxDEV("div",{className:"rounded-xl border border-border ring-1 ring-foreground/10 overflow-hidden bg-card",children:M2.jsxDEV(y9,{children:[M2.jsxDEV(S9,{children:M2.jsxDEV(F4,{className:"bg-muted/40 hover:bg-muted/40",children:[M2.jsxDEV(e1,{className:"px-4 h-11",children:"Branch"},void 0,!1,void 0,this),M2.jsxDEV(e1,{className:"px-4 h-11",children:"Path"},void 0,!1,void 0,this),M2.jsxDEV(e1,{className:"px-4 h-11",children:"HEAD"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),M2.jsxDEV(d9,{children:J.map((Y)=>M2.jsxDEV(F4,{children:[M2.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:Y.branch||"—"},void 0,!1,void 0,this),M2.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3 break-all text-muted-foreground",children:Y.path},void 0,!1,void 0,this),M2.jsxDEV(w5,{className:"font-mono text-xs px-4 py-3",children:Y.head.slice(0,10)},void 0,!1,void 0,this)]},Y.path,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var W1=P(H0(),1),el=new Eb({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),mm=document.getElementById("root");if(!mm)throw Error("Root element not found");xm.createRoot(mm).render(W1.jsxDEV(Mm.StrictMode,{children:W1.jsxDEV(CO,{children:W1.jsxDEV(vM,{children:W1.jsxDEV(lb,{client:el,children:W1.jsxDEV(UQ,{children:[W1.jsxDEV(MO,{children:W1.jsxDEV(gQ,{children:W1.jsxDEV(W2,{path:"/",element:W1.jsxDEV(qM,{},void 0,!1,void 0,this),children:[W1.jsxDEV(W2,{index:!0,element:W1.jsxDEV(Om,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"fleet",element:W1.jsxDEV(Rx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"costs",element:W1.jsxDEV(hM,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"errors",element:W1.jsxDEV(gx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"merge",element:W1.jsxDEV(Fm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"worktrees",element:W1.jsxDEV(Am,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"logs",element:W1.jsxDEV(dx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"health",element:W1.jsxDEV(Sx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"groups",element:W1.jsxDEV(yx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"specs",element:W1.jsxDEV(Cm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"/agents/:name",element:W1.jsxDEV(fM,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"coordinator",element:W1.jsxDEV(Hx,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"mail",element:W1.jsxDEV(Lm,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(W2,{path:"*",element:W1.jsxDEV("div",{className:"p-6 text-muted-foreground text-sm",children:"404 — page not found."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),W1.jsxDEV(rW,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this));
|
|
298
|
+
|
|
299
|
+
//# debugId=5FE6A9970956621164756E2164756E21
|
|
300
|
+
//# sourceMappingURL=chunk-mhy6k8aq.js.map
|