@invariant.guru/cli 0.6.9 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,247 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=xe&&e[xe]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;Se[n]||(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.",t,e),Se[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=we,this.updater=n||Ce}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=we,this.updater=n||Ce}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===De?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ue:return`Fragment`;case fe:return`Profiler`;case de:return`StrictMode`;case ge:return`Suspense`;case _e:return`SuspenseList`;case be:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case le:return`Portal`;case me:return e.displayName||`Context`;case pe:return(e._context.displayName||`Context`)+`.Consumer`;case he:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ve:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case ye:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===ue)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ye)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=O.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(Oe.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){Ae||(Ae=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return Me[e]||(Me[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:ce,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ye&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===ce}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function te(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),ee(``+e.key)):t.toString(36)}function S(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ne(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case ce:case le:s=!0;break;case ye:return s=e._init,ne(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+te(s,0):i;return Ee(a)?(n=``,c!=null&&(n=c.replace(Ie,`$&/`)+`/`),ne(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Ie,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,Ee(e))for(var l=0;l<e.length;l++)i=e[l],o=c+te(i,l),s+=ne(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(Fe||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Fe=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+te(i,l++),s+=ne(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return ne(S(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===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?`,t),`default`in t||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'))`,t),t.default;throw e._result}function C(){var e=O.H;return e===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.`),e}function ae(){O.asyncTransitions--}function w(e){if(ze===null)try{var n=(`require`+Math.random()).slice(0,7);ze=(t&&t[n]).call(t,`timers`).setImmediate}catch{ze=function(e){!1===Re&&(Re=!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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return ze(e)}function T(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function oe(e,t){t!==Be-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. `),Be=t}function E(e,t,n){var r=O.actQueue;if(r!==null){if(r.length!==0)try{se(r),w(function(){return E(e,t,n)});return}catch(e){O.thrownErrors.push(e)}else O.actQueue=null}0<O.thrownErrors.length?(r=T(O.thrownErrors),O.thrownErrors.length=0,n(r)):t(e)}function se(e){if(!He){He=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{O.didUsePromise=!1;var r=n(!1);if(r!==null){if(O.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),O.thrownErrors.push(n)}finally{He=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ce=Symbol.for(`react.transitional.element`),le=Symbol.for(`react.portal`),ue=Symbol.for(`react.fragment`),de=Symbol.for(`react.strict_mode`),fe=Symbol.for(`react.profiler`),pe=Symbol.for(`react.consumer`),me=Symbol.for(`react.context`),he=Symbol.for(`react.forward_ref`),ge=Symbol.for(`react.suspense`),_e=Symbol.for(`react.suspense_list`),ve=Symbol.for(`react.memo`),ye=Symbol.for(`react.lazy`),be=Symbol.for(`react.activity`),xe=Symbol.iterator,Se={},Ce={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},D=Object.assign,we={};Object.freeze(we),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var Te={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(We in Te)Te.hasOwnProperty(We)&&n(We,Te[We]);o.prototype=a.prototype,Te=s.prototype=new o,Te.constructor=s,D(Te,a.prototype),Te.isPureReactComponent=!0;var Ee=Array.isArray,De=Symbol.for(`react.client.reference`),O={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Oe=Object.prototype.hasOwnProperty,ke=console.createTask?console.createTask:function(){return null};Te={react_stack_bottom_frame:function(e){return e()}};var Ae,je,Me={},Ne=Te.react_stack_bottom_frame.bind(Te,m)(),Pe=ke(f(m)),Fe=!1,Ie=/\/+/g,Le=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Re=!1,ze=null,Be=0,Ve=!1,He=!1,Ue=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:w;Te=Object.freeze({__proto__:null,c:function(e){return C().useMemoCache(e)}});var We={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=be,e.Children=We,e.Component=a,e.Fragment=ue,e.Profiler=fe,e.PureComponent=s,e.StrictMode=de,e.Suspense=ge,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,e.__COMPILER_RUNTIME=Te,e.act=function(e){var t=O.actQueue,n=Be;Be++;var r=O.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){O.thrownErrors.push(e)}if(0<O.thrownErrors.length)throw oe(t,n),e=T(O.thrownErrors),O.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Ue(function(){i||Ve||(Ve=!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(e,a){i=!0,o.then(function(i){if(oe(t,n),n===0){try{se(r),w(function(){return E(i,e,a)})}catch(e){O.thrownErrors.push(e)}if(0<O.thrownErrors.length){var o=T(O.thrownErrors);O.thrownErrors.length=0,a(o)}}else e(i)},function(e){oe(t,n),0<O.thrownErrors.length?(e=T(O.thrownErrors),O.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(oe(t,n),n===0&&(se(r),r.length!==0&&Ue(function(){i||Ve||(Ve=!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(() => ...)"))}),O.actQueue=null),0<O.thrownErrors.length)throw e=T(O.thrownErrors),O.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(O.actQueue=r,w(function(){return E(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=O.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=D({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(Oe.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!Oe.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:me,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:pe,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in je||!(`__self`in t)||`key`in t||(je=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)Oe.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>O.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):Ne,c?ke(f(e)):Pe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ve?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:he,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:ye,_payload:e,_init:ie},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ve,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=O.T,n={};n._updatedFibers=new Set,O.T=n;try{var r=e(),i=O.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(O.asyncTransitions++,r.then(ae,ae),r.then(c,Le))}catch(e){Le(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.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.`),t.types=n.types),O.T=t}},e.unstable_useCacheRefresh=function(){return C().useCacheRefresh()},e.use=function(e){return C().use(e)},e.useActionState=function(e,t,n){return C().useActionState(e,t,n)},e.useCallback=function(e,t){return C().useCallback(e,t)},e.useContext=function(e){var t=C();return e.$$typeof===pe&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return C().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return C().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),C().useEffect(e,t)},e.useEffectEvent=function(e){return C().useEffectEvent(e)},e.useId=function(){return C().useId()},e.useImperativeHandle=function(e,t,n){return C().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),C().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),C().useLayoutEffect(e,t)},e.useMemo=function(e,t){return C().useMemo(e,t)},e.useOptimistic=function(e,t){return C().useOptimistic(e,t)},e.useReducer=function(e,t,n){return C().useReducer(e,t,n)},e.useRef=function(e){return C().useRef(e)},e.useState=function(e){return C().useState(e)},e.useSyncExternalStore=function(e,t,n){return C().useSyncExternalStore(e,t,n)},e.useTransition=function(){return C().useTransition()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{(function(){function t(){if(x=!1,ne){var t=e.unstable_now();C=t;var n=!0;try{a:{y=!1,b&&(b=!1,te(re),re=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?ae():ne=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y){if(r(p)!==null)y=!0,ne||(ne=!0,ae());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}}function c(){return x?!0:!(e.unstable_now()-C<ie)}function l(t,n){re=ee(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,ee=typeof setTimeout==`function`?setTimeout:null,te=typeof clearTimeout==`function`?clearTimeout:null,S=typeof setImmediate<`u`?setImmediate:null,ne=!1,re=-1,ie=5,C=-1;if(typeof S==`function`)var ae=function(){S(t)};else if(typeof MessageChannel<`u`){var w=new MessageChannel,T=w.port2;w.port1.onmessage=t,ae=function(){T.postMessage(null)}}else ae=function(){ee(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):ie=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(te(re),re=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,ne||(ne=!0,ae()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(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&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=f.H;return e===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:
14
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
- 2. You might be breaking the Rules of Hooks
16
- 3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=d(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),f=c.__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`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=f.T,n=l.p;try{if(f.T=null,l.p=2,e)return e()}finally{f.T=t,l.p=n,l.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.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`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.",o(t)):t!=null&&typeof t.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.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.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`.",o(t)):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`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?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.",o(t)):t.as!==`style`&&t.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".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)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",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),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)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&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',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&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',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),h=o(((e,t)=>{t.exports=m()})),g=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Wf(e)?e.slice():Ef({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Wf(e)?e.slice():Ef({},e);return r+1===t.length?(o[n[r]]=o[a],Wf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Wf(e)?e.slice():Ef({},e);return n+1===t.length?(Wf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){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 l(){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 u(){}function f(){}function m(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function g(e,t,n,r){return new yr(e,t,n,r)}function _(e,t){e.context===Ng&&(Xd(e.current,2,t,e,null,null),el())}function v(e,t){if(Pg!==null){var n=t.staleFamilies;t=t.updatedFamilies,El(),vr(e.current,t,n),el()}}function y(e){Pg=e}function b(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ee(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function te(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(x(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ne(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return S(i),e;if(a===r)return S(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function re(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=re(e),t!==null)return t;e=e.sibling}return null}function ie(e){return typeof e!=`object`||!e?null:(e=Hf&&e[Hf]||e[`@@iterator`],typeof e==`function`?e:null)}function C(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Uf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Af:return`Fragment`;case Mf:return`Profiler`;case jf:return`StrictMode`;case If:return`Suspense`;case Lf:return`SuspenseList`;case Bf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case kf:return`Portal`;case Pf:return e.displayName||`Context`;case Nf:return(e._context.displayName||`Context`)+`.Consumer`;case Ff:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Rf:return t=e.displayName||null,t===null?C(e.type)||`Memo`:t;case zf:t=e._payload,e=e._init;try{return C(e(t))}catch{}}return null}function ae(e){return typeof e.tag==`number`?w(e):typeof e.name==`string`?e.name:null}function w(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return C(t);case 8:return t===jf?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return w(e.return)}return null}function T(e){return{current:e}}function oe(e,t){0>Yf?console.error(`Unexpected pop.`):(t!==Jf[Yf]&&console.error(`Unexpected Fiber popped.`),e.current=qf[Yf],qf[Yf]=null,Jf[Yf]=null,Yf--)}function E(e,t,n){Yf++,qf[Yf]=e.current,Jf[Yf]=n,e.current=t}function se(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function ce(e,t){E(Qf,t,e),E(Zf,e,e),E(Xf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Iu(t):US;break;default:if(n=t.tagName,t=t.namespaceURI)t=Iu(t),t=Lu(t,n);else switch(n){case`svg`:t=WS;break;case`math`:t=GS;break;default:t=US}}n=n.toLowerCase(),n=Ut(null,n),n={context:t,ancestorInfo:n},oe(Xf,e),E(Xf,n,e)}function le(e){oe(Xf,e),oe(Zf,e),oe(Qf,e)}function ue(){return se(Xf.current)}function de(e){e.memoizedState!==null&&E($f,e,e);var t=se(Xf.current),n=e.type,r=Lu(t.context,n);n=Ut(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(E(Zf,e,e),E(Xf,r,e))}function fe(e){Zf.current===e&&(oe(Xf,e),oe(Zf,e)),$f.current===e&&(oe($f,e),bC._currentValue=yC)}function pe(){}function me(){if(ep===0){tp=console.log,np=console.info,rp=console.warn,ip=console.error,ap=console.group,op=console.groupCollapsed,sp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ep++}function he(){if(ep--,ep===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ef({},e,{value:tp}),info:Ef({},e,{value:np}),warn:Ef({},e,{value:rp}),error:Ef({},e,{value:ip}),group:Ef({},e,{value:ap}),groupCollapsed:Ef({},e,{value:op}),groupEnd:Ef({},e,{value:sp})})}0>ep&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function ge(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
- `)&&(e=e.slice(29)),t=e.indexOf(`
19
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
20
- `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function _e(e){if(cp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);cp=t&&t[1]||``,lp=-1<e.stack.indexOf(`
21
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
22
- `+cp+e+lp}function ve(e,t){if(!e||up)return``;var n=dp.get(e);if(n!==void 0)return n;up=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=W.H,W.H=null,me();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
23
- `),u=c.split(`
24
- `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
25
- `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&dp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{up=!1,W.H=r,he(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?_e(l):``,typeof e==`function`&&dp.set(e,l),l}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return _e(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do{t+=ye(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=ge(l),d=u.lastIndexOf(`
26
- `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
27
- `+f;break a}}p=_e(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
28
- Error generating stack: `+e.message+`
29
- `+e.stack}}function xe(e){return(e=e?e.displayName||e.name:``)?_e(e):``}function Se(){if(fp===null)return null;var e=fp._debugOwner;return e==null?null:ae(e)}function Ce(){if(fp===null)return``;var e=fp;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=_e(e.type);break;case 13:t+=_e(`Suspense`);break;case 19:t+=_e(`SuspenseList`);break;case 31:t+=_e(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=xe(e.type));break;case 11:e._debugOwner||t!==``||(t+=xe(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=ge(r);i!==``&&(t+=`
30
- `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
31
- `+ge(a))}else break;var o=t}catch(e){o=`
32
- Error generating stack: `+e.message+`
33
- `+e.stack}return o}function D(e,t,n,r,i,a,o){var s=fp;we(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{we(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function we(e){W.getCurrentStack=e===null?null:Ce,pp=!1,fp=e}function Te(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function Ee(e){try{return De(e),!1}catch{return!0}}function De(e){return``+e}function O(e,t){if(Ee(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Te(e)),De(e)}function Oe(e,t){if(Ee(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Te(e)),De(e)}function ke(e){if(Ee(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,Te(e)),De(e)}function Ae(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Op=t.inject(e),kp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function je(e){if(typeof Ep==`function`&&Dp(e),kp&&typeof kp.setStrictMode==`function`)try{kp.setStrictMode(Op,e)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function Me(e){return e>>>=0,e===0?32:31-(Np(e)/Pp|0)|0}function Ne(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error(`Should have found matching lanes. This is a bug in React.`),e}}function Pe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ne(n))):i=Ne(o):i=Ne(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ne(n))):i=Ne(o)):i=Ne(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Fe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ie(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Le(){var e=Lp;return Lp<<=1,!(Lp&62914560)&&(Lp=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Be(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Mp(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ve(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ve(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Mp(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function He(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ue(e,t){var n=t&-t;return n=n&42?1:We(n),(n&(e.suspendedLanes|t))===0?n:0}function We(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ge(e,t,n){if(jp)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Mp(n),i=1<<r;e[r].add(t),n&=~i}}function Ke(e,t){if(jp)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Mp(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function qe(e){return e&=-e,Rp!==0&&Rp<e?zp!==0&&zp<e?e&134217727?Bp:Vp:zp:Rp}function Je(){var e=Gf.p;return e===0?(e=window.event,e===void 0?Bp:cf(e.type)):e}function Ye(e,t){var n=Gf.p;try{return Gf.p=e,t()}finally{Gf.p=n}}function Xe(e){delete e[Up],delete e[Wp],delete e[Kp],delete e[qp],delete e[Jp]}function Ze(e){var t=e[Up];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gp]||n[Up]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_d(e);e!==null;){if(n=e[Up])return n;e=_d(e)}return t}e=n,n=e.parentNode}return null}function Qe(e){if(e=e[Up]||e[Gp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $e(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function k(e){var t=e[Yp];return t||=e[Yp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function et(e){e[Xp]=!0}function tt(e,t){nt(e,t),nt(e+`Capture`,t)}function nt(e,t){Qp[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Qp[e]=t;var n=e.toLowerCase();for($p[n]=e,e===`onDoubleClick`&&($p.ondblclick=e),e=0;e<t.length;e++)Zp.add(t[e])}function rt(e,t){em[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function it(e){return mp.call(rm,e)?!0:mp.call(nm,e)?!1:tm.test(e)?rm[e]=!0:(nm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function at(e,t,n){if(it(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n||(O(n,t),e===``+n?n:e)}}function ot(e,t,n){if(it(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}O(n,t),e.setAttribute(t,``+n)}}}function st(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}O(n,t),e.setAttribute(t,``+n)}}function ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}O(r,n),e.setAttributeNS(t,n,``+r)}}function lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return ke(e),e;default:return``}}function ut(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){ke(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){ke(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ft(e){if(!e._valueTracker){var t=ut(e)?`checked`:`value`;e._valueTracker=dt(e,t,``+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ut(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function mt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ht(e){return e.replace(im,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function gt(e,t){t.checked===void 0||t.defaultChecked===void 0||om||(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`,Se()||`A component`,t.type),om=!0),t.value===void 0||t.defaultValue===void 0||am||(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`,Se()||`A component`,t.type),am=!0)}function _t(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(O(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+lt(t)):e.value!==``+lt(t)&&(e.value=``+lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):yt(e,o,lt(n)):yt(e,o,lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(O(s,`name`),e.name=``+lt(s)):e.removeAttribute(`name`)}function vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(O(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){ft(e);return}n=n==null?``:``+lt(n),t=t==null?n:``+lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(O(o,`name`),e.name=o),ft(e)}function yt(e,t,n){t===`number`&&mt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function bt(e,t){t.value??(typeof t.children==`object`&&t.children!==null?wf.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||cm||(cm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||lm||(lm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||sm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sm=!0)}function xt(){var e=Se();return e?`
34
-
35
- Check the render method of \``+e+"`.":``}function A(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function St(e,t){for(e=0;e<dm.length;e++){var n=dm[e];if(t[n]!=null){var r=Wf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,xt()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,xt())}}t.value===void 0||t.defaultValue===void 0||um||(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`),um=!0)}function Ct(e,t){t.value===void 0||t.defaultValue===void 0||fm||(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`,Se()||`A component`),fm=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function wt(e,t,n){if(t!=null&&(t=``+lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+lt(n)}function Tt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Wf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),ft(e)}function Et(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Et(e.children[0],t):e}function Dt(e){return` `+` `.repeat(e)}function Ot(e){return`+ `+` `.repeat(e)}function kt(e){return`- `+` `.repeat(e)}function At(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function jt(e,t){return pm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function Mt(e,t,n){var r=120-2*n;if(t===null)return Ot(n)+jt(e,r)+`
36
- `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),Ot(n)+jt(e,r)+`
37
- `+kt(n)+jt(t,r)+`
38
- `}return Dt(n)+jt(e,r)+`
39
- `}function Nt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function Pt(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Wf(e))return`[...]`;if(e.$$typeof===Of)return(t=C(e.type))?`<`+t+`>`:`<...>`;var n=Nt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=Pt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Ft(e,t){return typeof e!=`string`||pm.test(e)?`{`+Pt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function It(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Ft(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
40
- `:0<r?n+`<`+e+` `+i.join(` `)+`>
41
- `:n+`<`+e+`
42
- `+n+` `+i.join(`
43
- `+n+` `)+`
44
- `+n+`>
45
- `}function Lt(e,t,n){var r=``,i=Ef({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=Pt(e[a],o);t.hasOwnProperty(a)?(o=Pt(t[a],o),r+=Ot(n)+a+`: `+s+`
46
- `,r+=kt(n)+a+`: `+o+`
47
- `):r+=Ot(n)+a+`: `+s+`
48
- `}for(var c in i)i.hasOwnProperty(c)&&(e=Pt(i[c],120-2*n-c.length-2),r+=kt(n)+c+`: `+e+`
49
- `);return r}function Rt(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=It(e,t,Dt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Ft(l,s);s=Ft(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&Nt(l)===`Object`&&Nt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=Dt(r+1)+o+`={{
50
- `+Lt(l,c,r+2)+Dt(r+1)+`}}
51
- `:(i+=Ot(r+1)+o+`=`+u+`
52
- `,i+=kt(r+1)+o+`=`+s+`
53
- `)}else i+=Dt(r+1)+o+`=`+Ft(t[o],s)+`
54
- `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=kt(r+1)+e+`=`+Ft(n[e],t)+`
55
- `}}),i=i===``?Dt(r)+`<`+e+`>
56
- `:Dt(r)+`<`+e+`
57
- `+i+Dt(r)+`>
58
- `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=Mt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+Mt(``+t,null,r+1):i+Mt(``+t,void 0,r+1)),i}function zt(e,t){var n=At(e);if(n===null){for(n=``,e=e.child;e;)n+=zt(e,t),e=e.sibling;return n}return Dt(t)+`<`+n+`>
59
- `}function Bt(e,t){var n=Et(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return Dt(t)+`...
60
- `+Bt(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=Dt(t)+`<`+a+`>
61
- `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=Mt(i,e.serverProps,t),t++;else if(a=At(e.fiber),a!==null){if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Ft(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=Dt(r)+`<`+a+s+`>
62
- `,t++}else e.serverProps===null?(r=It(a,i,Ot(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Rt(a,i,e.serverProps,t),t++)}var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Bt(o,t),a++):l+=zt(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=Dt(t)+`...
63
- `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(kt(t)+jt(a,120-2*t)+`
64
- `):l+It(a.type,a.props,kt(t));return n+r+l}function Vt(e){try{return`
65
-
66
- `+Bt(e,0)}catch{return``}}function Ht(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Vt(i).replaceAll(/^[+-]/gm,`>`)}function Ut(e,t){var n=Ef({},e||vm),r={tag:t};return hm.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),gm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),mm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Wt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return _m.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Gt(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Kt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function qt(e,t){t||=vm;var n=t.current;if(t=(n=Wt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Gt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,ym[t])return!1;ym[t]=!0;var i=(t=fp)?Kt(t.return,r):null,a=t!==null&&i!==null?Ht(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
- This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||D(i,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,r,o)})),!1}function Jt(e,t,n){if(n||Wt(`#text`,t,!1))return!0;if(n=`#text|`+t,ym[n])return!1;ym[n]=!0;var r=(n=fp)?Kt(n,t):null;return n=n!==null&&r!==null?Ht(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
- This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,t,n),!1}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function Xt(e){return e.replace(Tm,function(e,t){return t.toUpperCase()})}function Zt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Dm.hasOwnProperty(t)&&Dm[t]||(Dm[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Xt(t.replace(wm,`ms-`)))):Cm.test(t)?Dm.hasOwnProperty(t)&&Dm[t]||(Dm[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!Em.test(n)||Om.hasOwnProperty(n)&&Om[n]||(Om[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Em,``))),typeof n==`number`&&(isNaN(n)?km||(km=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Am||(Am=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||jm.has(t)?t===`float`?e.cssFloat=n:(Oe(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function Qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=bm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=bm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=bm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%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.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&Zt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&Zt(e,r,t[r])}function $t(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function en(e){return Pm.get(e)||e}function tn(e,t){if(mp.call(Lm,t)&&Lm[t])return!0;if(zm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Im.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Lm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Lm[t]=!0}if(Rm.test(t)){if(e=t.toLowerCase(),e=Im.hasOwnProperty(e)?e:null,e==null)return Lm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Lm[t]=!0)}return!0}function nn(e,t){var n=[],r;for(r in t)tn(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function rn(e,t,n,r){if(mp.call(Vm,t)&&Vm[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`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.`),Vm[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Vm[t]=!0;if(Hm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Vm[t]=!0}else if(Hm.test(t))return Um.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Vm[t]=!0;if(Wm.test(t)||Gm.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Vm[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Vm[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Vm[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Vm[t]=!0;if(Fm.hasOwnProperty(i)){if(i=Fm[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Vm[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Vm[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`||(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
72
-
73
- If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
74
-
75
- If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Vm[t]=!0)}case`function`:case`symbol`:return Vm[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Vm[t]=!0}}return!0}function an(e,t,n){var r=[],i;for(i in t)rn(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function on(e){return Km.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function sn(){}function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function ln(e){var t=Qe(e);if(t&&(e=t.stateNode)){var n=e[Wp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(_t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(O(t,`name`),n=n.querySelectorAll(`input[name="`+ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Wp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_t(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&pt(r)}break a;case`textarea`:wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&A(e,!!n.multiple,t,!1)}}}function un(e,t,n){if(Xm)return e(t,n);Xm=!0;try{return e(t)}finally{if(Xm=!1,(Jm!==null||Ym!==null)&&(el(),Jm&&(t=Jm,e=Ym,Ym=Jm=null,ln(t),e)))for(t=0;t<e.length;t++)ln(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Wp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function fn(){if(nh)return nh;var e,t=th,n=t.length,r,i=`value`in eh?eh.value:eh.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return nh=i.slice(e,1<r?1-r:void 0)}function pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mn(){return!0}function j(){return!1}function hn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?mn:j,this.isPropagationStopped=j,this}return Ef(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bh[e])?!!t[e]:!1}function _n(){return gn}function vn(e,t){switch(e){case`keyup`:return Dh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Oh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function yn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function bn(e,t){switch(e){case`compositionend`:return yn(t);case`keypress`:return t.which===Nh?(Fh=!0,Ph):null;case`textInput`:return e=t.data,e===Ph&&Fh?null:e;default:return null}}function xn(e,t){if(Ih)return e===`compositionend`||!kh&&vn(e,t)?(e=fn(),nh=th=eh=null,Ih=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Mh&&t.locale!==`ko`?null:t.data;default:return null}}function Sn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Lh[e.type]:t===`textarea`}function Cn(e){if(!Zm)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function wn(e,t,n,r){Jm?Ym?Ym.push(r):Ym=[r]:Jm=r,t=lu(t,`onChange`),0<t.length&&(n=new ih(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function Tn(e){nu(e,0)}function En(e){if(pt($e(e)))return e}function Dn(e,t){if(e===`change`)return t}function On(){Rh&&(Rh.detachEvent(`onpropertychange`,kn),zh=Rh=null)}function kn(e){if(e.propertyName===`value`&&En(zh)){var t=[];wn(t,zh,e,cn(e)),un(Tn,t)}}function M(e,t,n){e===`focusin`?(On(),Rh=t,zh=n,Rh.attachEvent(`onpropertychange`,kn)):e===`focusout`&&On()}function An(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return En(zh)}function jn(e,t){if(e===`click`)return En(t)}function Mn(e,t){if(e===`input`||e===`change`)return En(t)}function Nn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function Pn(e,t){if(Vh(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!mp.call(t,i)||!Vh(e[i],t[i]))return!1}return!0}function Fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function In(e,t){var n=Fn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Fn(n)}}function Ln(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ln(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=mt(e.document)}return t}function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Bn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kh||Uh==null||Uh!==mt(r)||(r=Uh,`selectionStart`in r&&zn(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gh&&Pn(Gh,r)||(Gh=r,r=lu(Wh,`onSelect`),0<r.length&&(t=new ih(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Uh)))}function Vn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Hn(e){if(Jh[e])return Jh[e];if(!qh[e])return e;var t=qh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yh)return Jh[e]=t[n];return e}function Un(e,t){rg.set(e,t),tt(t,[e])}function Wn(e){for(var t=dg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r){if(Wf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==dg&&t!==mg)return fg;t=mg}else return fg}else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==dg&&t!==pg)return fg;t=pg}}return t}function Gn(e,t,n,r){for(var i in e)mp.call(e,i)&&i[0]!==`_`&&Kn(i,e[i],t,n,r)}function Kn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}if(t.$$typeof===Of){var a=C(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Kn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Wf(t.children)||0<t.children.length)&&(e=!0):mp.call(t,l)&&l[0]!==`_`&&Kn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Wn(t),l===pg||l===dg){t=JSON.stringify(t);break}if(l===mg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Kn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Kn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Kn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Gn(t,n,r+1,i);return;case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===ug?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function qn(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([hg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([hg+i,`…`],[gg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof){if(s.$$typeof===Of){if(o.type===s.type&&o.key===s.key){o=C(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([hg+i,o],[gg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[_g+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,qn(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([_g+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Kn(a,o,n,r,hg),Kn(a,s,n,r,gg)}i=!1}}else n.push([gg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Jn(e){xg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function Yn(e,t,n,r){vg&&(wg.start=t,wg.end=n,Cg.color=`warning`,Cg.tooltipText=r,Cg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,wg)):performance.measure(r,wg))}function Xn(e,t,n){Yn(e,t,n,`Reconnect`)}function Zn(e,t,n,r,i){var a=w(e);if(a!==null&&vg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Tg],l=qn(o.memoizedProps,l,c,0),1<c.length&&(l&&!Sg&&(o.lanes&i)===0&&100<e.actualDuration?(Sg=!0,c[0]=Dg,Cg.color=`warning`,Cg.tooltipText=Eg):(Cg.color=r,Cg.tooltipText=a),Cg.properties=c,wg.start=t,wg.end=n,s==null?performance.measure(`​`+a,wg):s.run(performance.measure.bind(performance,`​`+a,wg)))):s==null?console.timeStamp(a,t,n,yg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,yg,void 0,r))}}function Qn(e,t,n,r){if(vg){var i=w(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Kn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Gn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:yg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,`​`+i,e)):performance.measure(`​`+i,e)}}}function $n(e,t,n,r,i){if(i!==null){if(vg){var a=w(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Kn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Gn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:yg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,`​`+a,t)):performance.measure(`​`+a,t)}}}else a=w(e),a!==null&&vg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,yg,void 0,i)):console.timeStamp(a,t,n,yg,void 0,i))}function er(e,t,n,r){if(vg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,xg,bg,i)):console.timeStamp(n,e,t,xg,bg,i)}}function tr(e,t,n,r){!vg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,xg,bg,n)):console.timeStamp(`Prewarm`,e,t,xg,bg,n))}function nr(e,t,n,r){!vg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,xg,bg,n)):console.timeStamp(`Suspended`,e,t,xg,bg,n))}function rr(e,t,n,r,i,a){if(vg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:xg,trackGroup:bg,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function ir(e,t,n,r){!vg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,xg,bg,`error`)):console.timeStamp(`Errored`,e,t,xg,bg,`error`))}function ar(e,t,n,r){!vg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,xg,bg,`secondary-light`)):console.timeStamp(n,e,t,xg,bg,`secondary-light`))}function or(e,t,n,r,i){if(vg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:xg,trackGroup:bg,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function sr(e,t,n){!vg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,xg,bg,`secondary-dark`)):console.timeStamp(`Animating`,e,t,xg,bg,`secondary-dark`))}function cr(){for(var e=jg,t=Mg=jg=0;t<e;){var n=Ag[t];Ag[t++]=null;var r=Ag[t];Ag[t++]=null;var i=Ag[t];Ag[t++]=null;var a=Ag[t];if(Ag[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&fr(n,i,a)}}function lr(e,t,n,r){Ag[jg++]=e,Ag[jg++]=t,Ag[jg++]=n,Ag[jg++]=r,Mg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ur(e,t,n,r){return lr(e,t,n,r),pr(e)}function dr(e,t){return lr(e,null,null,t),pr(e)}function fr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Og||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Mp(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function pr(e){if(Kx>Gx)throw Zx=Kx=0,Qx=qx=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.`);Zx>Xx&&(Zx=0,Qx=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&Rl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Rl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function mr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e:t.current}function hr(e){if(Pg===null)return e;var t=Pg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=mr(e.render),e.render!==t)?(t={$$typeof:Ff,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function gr(e,t){if(Pg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===zf)&&(r=!0);break;case 11:(i===Ff||i===zf)&&(r=!0);break;case 14:case 15:(i===Rf||i===zf)&&(r=!0);break;default:return!1}return!!(r&&(e=Pg(n),e!==void 0&&e===Pg(t)))}function _r(e){Pg!==null&&typeof WeakSet==`function`&&(Fg===null&&(Fg=new WeakSet),Fg.add(e))}function vr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Pg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Pg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Fg!==null&&(Fg.has(e)||i!==null&&Fg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=dr(e,2),i!==null&&Yc(i,e,2)),a===null||r||vr(a,t,n),o===null)break;e=o}while(1)}function yr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,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,Bg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function br(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xr(e,t){var n=e.alternate;switch(n===null?(n=g(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=mr(e.type);break;case 1:n.type=mr(e.type);break;case 11:n.type=hr(e.type)}return n}function Sr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Cr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)br(e)&&(o=1),s=mr(s);else if(typeof e==`string`)o=ue(),o=Bd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Bf:return t=g(31,n,t,i),t.elementType=Bf,t.lanes=a,t;case Af:return Tr(n.children,i,a,t);case jf:o=8,i|=Lg,i|=Rg;break;case Mf:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=g(12,e,t,r|K),t.elementType=Mf,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case If:return t=g(13,n,t,i),t.elementType=If,t.lanes=a,t;case Lf:return t=g(19,n,t,i),t.elementType=Lf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Pf:o=10;break a;case Nf:o=9;break a;case Ff:o=11,s=hr(s);break a;case Rf:o=14;break a;case zf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Wf(e)?n=`array`:e!==void 0&&e.$$typeof===Of?(n=`<`+(C(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?ae(r):null)&&(s+=`
76
-
77
- Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=g(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function wr(e,t,n){return t=Cr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Tr(e,t,n,r){return e=g(7,e,r,t),e.lanes=n,e}function Er(e,t,n){return e=g(6,e,null,t),e.lanes=n,e}function Dr(e){var t=g(18,null,null,G);return t.stateNode=e,t}function Or(e,t,n){return t=g(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kr(e,t){if(typeof e==`object`&&e){var n=Vg.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},Vg.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}function Ar(e,t){Ir(),Hg[Ug++]=Gg,Hg[Ug++]=Wg,Wg=e,Gg=t}function jr(e,t,n){Ir(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Jg=e;var r=Yg;e=Xg;var i=32-Mp(r)-1;r&=~(1<<i),n+=1;var a=32-Mp(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yg=1<<32-Mp(t)+i|n<<i|r,Xg=a+e}else Yg=1<<a|n<<i|r,Xg=e}function Mr(e){Ir(),e.return!==null&&(Ar(e,1),jr(e,1,0))}function Nr(e){for(;e===Wg;)Wg=Hg[--Ug],Hg[Ug]=null,Gg=Hg[--Ug],Hg[Ug]=null;for(;e===Jg;)Jg=Kg[--qg],Kg[qg]=null,Xg=Kg[--qg],Kg[qg]=null,Yg=Kg[--qg],Kg[qg]=null}function Pr(){return Ir(),Jg===null?null:{id:Yg,overflow:Xg}}function Fr(e,t){Ir(),Kg[qg++]=Yg,Kg[qg++]=Xg,Kg[qg++]=Jg,Yg=t.id,Xg=t.overflow,Jg=e}function Ir(){$g||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Lr(e,t){if(e.return===null){if(t_===null)t_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(t_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);t_.distanceFromLeaf>t&&(t_.distanceFromLeaf=t)}return t_}var n=Lr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Rr(){$g&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function zr(e,t){e_||(e=Lr(e,0),e.serverProps=null,t!==null&&(t=md(t),e.serverTail.push(t)))}function Br(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=t_;throw r!==null&&(t_=null,n=Vt(r)),Kr(kr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
78
-
79
- - A server/client branch \`if (typeof window !== 'undefined')\`.
80
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
81
- - Date formatting in a user's locale which doesn't match the server.
82
- - External changing data without sending a snapshot of it along with the HTML.
83
- - Invalid HTML tag nesting.
84
-
85
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
86
-
87
- https://react.dev/link/hydration-mismatch`+n),e)),i_}function Vr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Up]=e,t[Wp]=r,fu(n,r),n){case`dialog`:ru(`cancel`,t),ru(`close`,t);break;case`iframe`:case`object`:case`embed`:ru(`load`,t);break;case`video`:case`audio`:for(n=0;n<fS.length;n++)ru(fS[n],t);break;case`source`:ru(`error`,t);break;case`img`:case`image`:case`link`:ru(`error`,t),ru(`load`,t);break;case`details`:ru(`toggle`,t);break;case`input`:rt(`input`,r),ru(`invalid`,t),gt(t,r),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:bt(t,r);break;case`select`:rt(`select`,r),ru(`invalid`,t),St(t,r);break;case`textarea`:rt(`textarea`,r),ru(`invalid`,t),Ct(t,r),Tt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||vu(t.textContent,n)?(r.popover!=null&&(ru(`beforetoggle`,t),ru(`toggle`,t)),r.onScroll!=null&&ru(`scroll`,t),r.onScrollEnd!=null&&ru(`scrollend`,t),r.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Br(e,!0)}function Hr(e){for(Zg=e.return;Zg;)switch(Zg.tag){case 5:case 31:case 13:r_=!1;return;case 27:case 3:r_=!0;return;default:Zg=Zg.return}}function Ur(e){if(e!==Zg)return!1;if(!$g)return Hr(e),$g=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ru(e.type,e.memoizedProps)),n=!n),n&&Qg){for(n=Qg;n;){var r=Lr(e,0),i=md(n);r.serverTail.push(i),n=i.type===`Suspense`?gd(n):pd(n.nextSibling)}Br(e)}if(Hr(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=gd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Qg=gd(e)}else t===27?(t=Qg,Yu(e.type)?(e=nC,nC=null,Qg=e):Qg=t):Qg=Zg?pd(e.stateNode.nextSibling):null;return!0}function Wr(){Qg=Zg=null,e_=$g=!1}function Gr(){var e=n_;return e!==null&&(mx===null?mx=e:mx.push.apply(mx,e),n_=null),e}function Kr(e){n_===null?n_=[e]:n_.push(e)}function qr(){var e=t_;if(e!==null){t_=null;for(var t=Vt(e);0<e.children.length;)e=e.children[0];D(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
88
-
89
- - A server/client branch \`if (typeof window !== 'undefined')\`.
90
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
91
- - Date formatting in a user's locale which doesn't match the server.
92
- - External changing data without sending a snapshot of it along with the HTML.
93
- - Invalid HTML tag nesting.
94
-
95
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
96
-
97
- %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Jr(){l_=c_=null,u_=!1}function N(e,t,n){E(a_,t._currentValue,e),t._currentValue=n,E(o_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==s_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=s_}function Yr(e,t){e._currentValue=a_.current;var n=o_.current;oe(o_,t),e._currentRenderer=n,oe(a_,t)}function Xr(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Zr(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Xr(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Xr(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Qr(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Vh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===$f.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[bC]:e.push(bC))}i=i.return}e!==null&&Zr(t,e,n,r),t.flags|=262144}function $r(e){for(e=e.firstContext;e!==null;){if(!Vh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ei(e){c_=e,l_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function P(e){return u_&&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().`),ni(c_,e)}function ti(e,t){return c_===null&&ei(e),ni(e,t)}function ni(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},l_===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);l_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else l_=l_.next=t;return n}function ri(){return{controller:new d_,data:new Map,refCount:0}}function ii(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function ai(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&f_(p_,function(){e.controller.abort()})}function F(e,t,n){e&127?0>k_&&(k_=h_(),A_=g_(t),M_=t,n!=null&&(N_=w(n)),(Ub&(Pb|Fb))!==Nb&&(D_=!0,j_=__),e=Vu(),t=Bu(),e!==I_||t!==F_?I_=-1.1:t!==null&&(j_=__),P_=e,F_=t):e&4194048&&0>B_&&(B_=h_(),H_=g_(t),U_=t,n!=null&&(W_=w(n)),0>z_)&&(e=Vu(),t=Bu(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function oi(e){if(0>k_){k_=h_(),A_=e._debugTask==null?null:e._debugTask,(Ub&(Pb|Fb))!==Nb&&(j_=__);var t=Vu(),n=Bu();t!==I_||n!==F_?I_=-1.1:n!==null&&(j_=__),P_=t,F_=n}0>B_&&(B_=h_(),H_=e._debugTask==null?null:e._debugTask,0>z_)&&(e=Vu(),t=Bu(),(e!==q_||t!==K_)&&(q_=-1.1),G_=e,K_=t)}function si(){var e=w_;return w_=0,e}function ci(e){var t=w_;return w_=e,t}function li(e){var t=w_;return w_+=e,t}function ui(){J=q=-1.1}function di(){var e=q;return q=-1.1,e}function fi(e){0<=e&&(q=e)}function pi(){var e=T_;return T_=-0,e}function mi(e){0<=e&&(T_=e)}function hi(){var e=E_;return E_=null,e}function gi(){var e=D_;return D_=!1,e}function I(e){C_=h_(),0>e.actualStartTime&&(e.actualStartTime=C_)}function _i(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,e.selfBaseDuration=t,C_=-1}}function vi(e){if(0<=C_){var t=h_()-C_;e.actualDuration+=t,C_=-1}}function yi(){if(0<=C_){var e=h_(),t=e-C_;C_=-1,w_+=t,T_+=t,J=e}}function bi(e){E_===null&&(E_=[]),E_.push(e),S_===null&&(S_=[]),S_.push(e)}function xi(){C_=h_(),0>q&&(q=C_)}function Si(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ci(e,t){if(rv===null){var n=rv=[];iv=0,av=Zl(),ov={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return iv++,t.then(wi,wi),t}function wi(){if(--iv===0&&(-1<B_||(z_=-1.1),rv!==null)){ov!==null&&(ov.status=`fulfilled`);var e=rv;rv=null,av=0,ov=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ti(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ei(){var e=cv.current;return e===null?Wb.pooledCache:e}function Di(e,t){t===null?E(cv,cv.current,e):E(cv,t.pool,e)}function Oi(){var e=Ei();return e===null?null:{parent:m_._currentValue,pool:e}}function ki(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ai(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ji(e,t,n){W.actQueue!==null&&(W.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(sn,sn),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pi(e),e;default:if(typeof t.status==`string`)t.then(sn,sn);else{if(e=Wb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pi(e),e}throw Vv=t,Hv=!0,Lv}}function Mi(e){try{return Iv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Vv=e,Hv=!0,Lv):e}}function Ni(){if(Vv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Vv;return Vv=null,Hv=!1,e}function Pi(e){if(e===Lv||e===zv)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 Fi(e){var t=Y;return e!=null&&(Y=t===null?e:t.concat(e)),t}function Ii(){var e=Y;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Li(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=wr(e,n.mode,0),t._debugInfo=Y,t.return=n),D(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function Ri(e){var t=Wv;return Wv+=1,Uv===null&&(Uv=ki()),ji(Uv,e,t)}function zi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Bi(e,t){throw t.$$typeof===Df?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
98
- - Multiple copies of the "react" package is used.
99
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
100
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function Vi(e,t){var n=Ii();n===null?Bi(e,t):n.run(Bi.bind(null,e,t))}function Hi(e,t){var n=w(e)||`Component`;Jv[n]||(Jv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
101
- root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
- <%s>{%s}</%s>`,t,t,n,t,n))}function Ui(e,t){var n=Ii();n===null?Hi(e,t):n.run(Hi.bind(null,e,t))}function Wi(e,t){var n=w(e)||`Component`;Yv[n]||(Yv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
103
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
104
- <%s>%s</%s>`,n,t,n))}function Gi(e,t){var n=Ii();n===null?Wi(e,t):n.run(Wi.bind(null,e,t))}function Ki(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=xr(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=Er(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function c(e,t,n,r){var a=n.type;return a===Af?(t=u(e,t,n.props.children,r,n.key),Li(n,t,e),t):t!==null&&(t.elementType===a||gr(t,n)||typeof a==`object`&&a&&a.$$typeof===zf&&Mi(a)===t.type)?(t=i(t,n.props),zi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Y,t):(t=wr(n,e.mode,r),zi(t,n),t.return=e,t._debugInfo=Y,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Or(n,e.mode,r),t.return=e,t._debugInfo=Y,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Y,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=Tr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function d(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Er(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Of:return n=wr(t,e.mode,n),zi(n,t),n.return=e,e=Fi(t._debugInfo),n._debugInfo=Y,Y=e,n;case kf:return t=Or(t,e.mode,n),t.return=e,t._debugInfo=Y,t;case zf:var r=Fi(t._debugInfo);return t=Mi(t),e=d(e,t,n),Y=r,e}if(Wf(t)||ie(t))return n=Tr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Fi(t._debugInfo),n._debugInfo=Y,Y=e,n;if(typeof t.then==`function`)return r=Fi(t._debugInfo),e=d(e,Ri(t),n),Y=r,e;if(t.$$typeof===Pf)return d(e,ti(e,t),n);Vi(e,t)}return typeof t==`function`&&Ui(e,t),typeof t==`symbol`&&Gi(e,t),null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Of:return n.key===i?(i=Fi(n._debugInfo),e=c(e,t,n,r),Y=i,e):null;case kf:return n.key===i?l(e,t,n,r):null;case zf:return i=Fi(n._debugInfo),n=Mi(n),e=p(e,t,n,r),Y=i,e}if(Wf(n)||ie(n))return i===null?(i=Fi(n._debugInfo),e=u(e,t,n,r,null),Y=i,e):null;if(typeof n.then==`function`)return i=Fi(n._debugInfo),e=p(e,t,Ri(n),r),Y=i,e;if(n.$$typeof===Pf)return p(e,t,ti(e,n),r);Vi(e,n)}return typeof n==`function`&&Ui(e,n),typeof n==`symbol`&&Gi(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Of:return n=e.get(r.key===null?n:r.key)||null,e=Fi(r._debugInfo),t=c(t,n,r,i),Y=e,t;case kf:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case zf:var a=Fi(r._debugInfo);return r=Mi(r),t=m(e,t,n,r,i),Y=a,t}if(Wf(r)||ie(r))return n=e.get(n)||null,e=Fi(r._debugInfo),t=u(t,n,r,i,null),Y=e,t;if(typeof r.then==`function`)return a=Fi(r._debugInfo),t=m(e,t,n,Ri(r),i),Y=a,t;if(r.$$typeof===Pf)return m(e,t,n,ti(t,r),i);Vi(t,r)}return typeof r==`function`&&Ui(t,r),typeof r==`symbol`&&Gi(t,r),null}function h(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Of:case kf:f(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}D(t,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.",i)});break;case zf:n=Mi(n),h(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,f=null,g=o,_=o=0,v=null;g!==null&&_<s.length;_++){g.index>_?(v=g,g=null):v=g.sibling;var y=p(i,g,s[_],c);if(y===null){g===null&&(g=v);break}l=h(i,y,s[_],l),e&&g&&y.alternate===null&&t(i,g),o=a(y,o,_),f===null?u=y:f.sibling=y,f=y,g=v}if(_===s.length)return n(i,g),$g&&Ar(i,_),u;if(g===null){for(;_<s.length;_++)g=d(i,s[_],c),g!==null&&(l=h(i,g,s[_],l),o=a(g,o,_),f===null?u=g:f.sibling=g,f=g);return $g&&Ar(i,_),u}for(g=r(g);_<s.length;_++)v=m(g,i,_,s[_],c),v!==null&&(l=h(i,v,s[_],l),e&&v.alternate!==null&&g.delete(v.key===null?_:v.key),o=a(v,o,_),f===null?u=v:f.sibling=v,f=v);return e&&g.forEach(function(e){return t(i,e)}),$g&&Ar(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,f=o,g=o=0,_=null,v=null,y=s.next();f!==null&&!y.done;g++,y=s.next()){f.index>g?(_=f,f=null):_=f.sibling;var b=p(i,f,y.value,c);if(b===null){f===null&&(f=_);break}v=h(i,b,y.value,v),e&&f&&b.alternate===null&&t(i,f),o=a(b,o,g),u===null?l=b:u.sibling=b,u=b,f=_}if(y.done)return n(i,f),$g&&Ar(i,g),l;if(f===null){for(;!y.done;g++,y=s.next())f=d(i,y.value,c),f!==null&&(v=h(i,f,y.value,v),o=a(f,o,g),u===null?l=f:u.sibling=f,u=f);return $g&&Ar(i,g),l}for(f=r(f);!y.done;g++,y=s.next())_=m(f,i,g,y.value,c),_!==null&&(v=h(i,_,y.value,v),e&&_.alternate!==null&&f.delete(_.key===null?g:_.key),o=a(_,o,g),u===null?l=_:u.sibling=_,u=_);return e&&f.forEach(function(e){return t(i,e)}),$g&&Ar(i,g),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Af&&a.key===null&&(Li(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Of:var c=Fi(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Af){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,Li(a,s,e),e=s;break a}}else if(r.elementType===l||gr(r,a)||typeof l==`object`&&l&&l.$$typeof===zf&&Mi(l)===r.type){n(e,r.sibling),s=i(r,a.props),zi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===Af?(s=Tr(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,Li(a,s,e),e=s):(s=wr(a,e.mode,s),zi(s,a),s.return=e,s._debugInfo=Y,e=s)}return e=o(e),Y=c,e;case kf:a:{for(c=a,a=c.key;r!==null;){if(r.key===a){if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}n(e,r);break}t(e,r),r=r.sibling}s=Or(c,e.mode,s),s.return=e,e=s}return o(e);case zf:return c=Fi(a._debugInfo),a=Mi(a),e=y(e,r,a,s),Y=c,e}if(Wf(a))return c=Fi(a._debugInfo),e=_(e,r,a,s),Y=c,e;if(ie(a)){if(c=Fi(a._debugInfo),l=ie(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(Kv||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."),Kv=!0):a.entries!==l||Gv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Gv=!0),e=v(e,r,u,s),Y=c,e}if(typeof a.then==`function`)return c=Fi(a._debugInfo),e=y(e,r,Ri(a),s),Y=c,e;if(a.$$typeof===Pf)return y(e,r,ti(e,a),s);Vi(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=Er(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,e=s),o(e)):(typeof a==`function`&&Ui(e,a),typeof a==`symbol`&&Gi(e,a),n(e,r))}return function(e,t,n,r){var i=Y;Y=null;try{Wv=0;var a=y(e,t,n,r);return Uv=null,a}catch(t){if(t===Lv||t===zv)throw t;var o=g(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Y;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{Y=i}}}function qi(e,t){var n=Wf(e);return e=!n&&typeof ie(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xi(e){return{lane:e,tag:Qv,payload:null,callback:null,next:null}}function Zi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,iy===r&&!ry){var i=w(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
105
-
106
- Please update the following component: %s`,i),ry=!0}return(Ub&Pb)===Nb?(lr(e,r,t,n),pr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=pr(e),fr(e,null,n),t)}function Qi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,He(e,n)}}function $i(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ea(){if(ay){var e=ov;if(e!==null)throw e}}function ta(e,t,n,r){ay=!1;var i=e.updateQueue;ny=!1,iy=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($&f)===f:(r&f)===f){f!==0&&f===av&&(ay=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case $v:if(m=m.payload,typeof m==`function`){u_=!0;var _=m.call(g,d,h);if(f.mode&Lg){je(!0);try{m.call(g,d,h)}finally{je(!1)}}u_=!1,d=_;break a}d=m;break a;case ty:f.flags=f.flags&-65537|128;case Qv:if(_=m.payload,typeof _==`function`){if(u_=!0,m=_.call(g,d,h),f.mode&Lg){je(!0);try{_.call(g,d,h)}finally{je(!1)}}u_=!1}else m=_;if(m==null)break a;d=Ef({},d,m);break a;case ey:ny=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),cx|=o,e.lanes=o,e.memoizedState=d}iy=null}function na(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function ra(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)na(n[e],t)}function ia(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)na(n[e],t)}function aa(e,t){var n=ox;E(sy,n,e),E(oy,t,e),ox=n|t.baseLanes}function oa(e){E(sy,ox,e),E(oy,oy.current,e)}function sa(e){ox=sy.current,oe(oy,e),oe(sy,e)}function ca(e){var t=e.alternate;E(fy,fy.current&uy,e),E(cy,e,e),ly===null&&(t===null||oy.current!==null||t.memoizedState!==null)&&(ly=e)}function la(e){E(fy,fy.current,e),E(cy,e,e),ly===null&&(ly=e)}function ua(e){e.tag===22?(E(fy,fy.current,e),E(cy,e,e),ly===null&&(ly=e)):da(e)}function da(e){E(fy,fy.current,e),E(cy,cy.current,e)}function fa(e){oe(cy,e),ly===e&&(ly=null),oe(fy,e)}function pa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ud(n)||dd(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function L(){var e=Z;Py===null?Py=[e]:Py.push(e)}function R(){var e=Z;if(Py!==null&&(Fy++,Py[Fy]!==e)){var t=w(X);if(!yy.has(t)&&(yy.add(t),Py!==null)){for(var n=``,r=0;r<=Fy;r++){var i=Py[r],a=r===Fy?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
107
- `,n+=i}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
108
-
109
- Previous render Next render
110
- ------------------------------------------------------
111
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112
- `,t,n)}}}function ma(e){e==null||Wf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Z,typeof e)}function ha(){var e=w(X);Sy.has(e)||(Sy.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function ga(){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:
113
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
114
- 2. You might be breaking the Rules of Hooks
115
- 3. You might have more than one copy of React in the same app
116
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function _a(e,t){if(Iy)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Z),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
117
-
118
- Previous: %s
119
- Incoming: %s`,Z,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Vh(e[n],t[n]))return!1;return!0}function z(e,t,n,r,i,a){Cy=a,X=t,Py=e===null?null:e._debugHookTypes,Fy=-1,Iy=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=w(X),xy.has(a)||(xy.add(a),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.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e!==null&&e.memoizedState!==null?By:Py===null?Ry:zy,Oy=a=(t.mode&Lg)!==G;var o=bv(n,r,i);if(Oy=!1,Dy&&(o=ya(t,n,r,i)),a){je(!0);try{o=ya(t,n,r,i)}finally{je(!1)}}return va(e,t),o}function va(e,t){t._debugHookTypes=Py,t.dependencies===null?jy!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:jy}):t.dependencies._debugThenableState=jy,W.H=Ly;var n=wy!==null&&wy.next!==null;if(Cy=0,Py=Z=Ty=wy=X=null,Fy=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Ey=!1,Ay=0,jy=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||ob||(e=e.dependencies,e!==null&&$r(e)&&(ob=!0)),Hv?(Hv=!1,e=!0):e=!1,e&&(t=w(t)||`Unknown`,by.has(t)||xy.has(t)||(by.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function ya(e,t,n,r){X=e;var i=0;do{if(Dy&&(jy=null),Ay=0,Dy=!1,i>=Ny)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Iy=!1,Ty=wy=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Fy=-1,W.H=Vy,a=bv(t,n,r)}while(Dy);return a}function ba(){var e=W.H,t=e.useState()[0];return t=typeof t.then==`function`?Ea(t):t,e=e.useState()[0],(wy===null?null:wy.memoizedState)!==e&&(X.flags|=1024),t}function xa(){var e=ky!==0;return ky=0,e}function Sa(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Rg)===G?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Ca(e){if(Ey){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ey=!1}Cy=0,Py=Ty=wy=X=null,Fy=-1,Z=null,Dy=!1,Ay=ky=0,jy=null}function wa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ty===null?X.memoizedState=Ty=e:Ty=Ty.next=e,Ty}function Ta(){if(wy===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=wy.next;var t=Ty===null?X.memoizedState:Ty.next;if(t!==null)Ty=t,wy=e;else{if(e===null)throw X.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);wy=e,e={memoizedState:wy.memoizedState,baseState:wy.baseState,baseQueue:wy.baseQueue,queue:wy.queue,next:null},Ty===null?X.memoizedState=Ty=e:Ty=Ty.next=e}return Ty}function B(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ea(e){var t=Ay;return Ay+=1,jy===null&&(jy=ki()),e=ji(jy,e,t),t=X,(Ty===null?t.memoizedState:Ty.next)===null&&(t=t.alternate,W.H=t!==null&&t.memoizedState!==null?By:Ry),e}function Da(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ea(e);if(e.$$typeof===Pf)return P(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Oa(e){var t=null,n=X.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=X.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=B(),X.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Iy)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Vf;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function ka(e,t){return typeof t==`function`?t(e):t}function Aa(e,t,n){var r=wa();if(n!==void 0){var i=n(t);if(Oy){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Io.bind(null,X,e),[r.memoizedState,e]}function ja(e){return Ma(Ta(),wy,e)}function Ma(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Cy&d)===d:($&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===av&&(u=!0);else if((Cy&f)===f){l=l.next,f===av&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,X.lanes|=f,cx|=f;d=l.action,Oy&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,X.lanes|=d,cx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Vh(a,e.memoizedState)&&(ob=!0,u&&(n=ov,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function V(e){var t=Ta(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Vh(a,t.memoizedState)||(ob=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Na(e,t,n){var r=X,i=wa();if($g){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();vy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),vy=!0)}else{if(a=t(),vy||(n=t(),Vh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)),Wb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);$&127||Fa(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,oo(La.bind(null,r,n,e),[e]),r.flags|=2048,no(my|_y,{destroy:void 0},Ia.bind(null,r,n,a,t),null),a}function Pa(e,t,n){var r=X,i=Ta(),a=$g;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!vy){var o=t();Vh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)}if((o=!Vh((wy||i).memoizedState,n))&&(i.memoizedState=n,ob=!0),i=i.queue,ao(2048,_y,La.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Ty!==null&&Ty.memoizedState.tag&my){if(r.flags|=2048,no(my|_y,{destroy:void 0},Ia.bind(null,r,i,n,t),null),Wb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Cy&127||Fa(r,t,n)}return n}function Fa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t=B(),X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ia(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&za(e)}function La(e,t,n){return n(function(){Ra(t)&&(F(2,`updateSyncExternalStore()`,e),za(e))})}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vh(e,n)}catch{return!0}}function za(e){var t=dr(e,2);t!==null&&Yc(t,e,2)}function H(e){var t=wa();if(typeof e==`function`){var n=e;if(e=n(),Oy){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t}function Ba(e){e=H(e);var t=e.queue,n=Lo.bind(null,X,t);return t.dispatch=n,[e.memoizedState,n]}function Va(e){var t=wa();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=zo.bind(null,X,!0,n),n.dispatch=t,[e,t]}function Ha(e,t){return Ua(Ta(),wy,e,t)}function Ua(e,t,n,r){return e.baseState=n,Ma(e,wy,typeof r==`function`?r:ka)}function Wa(e,t){var n=Ta();return wy===null?(n.baseState=e,[e,n.queue.dispatch]):Ua(n,wy,e,t)}function Ga(e,t,n,r,i){if(Bo(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};W.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Ka(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Ka(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=W.T,o={};o._updatedFibers=new Set,W.T=o;try{var s=n(i,r),c=W.S;c!==null&&c(o,s),qa(e,t,s)}catch(n){Ya(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.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.`),a.types=o.types),W.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),qa(e,t,o)}catch(n){Ya(e,t,n)}}function qa(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(W.asyncTransitions++,n.then(wo,wo),n.then(function(n){Ja(e,t,n)},function(n){return Ya(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ja(e,t,n)}function Ja(e,t,n){t.status=`fulfilled`,t.value=n,Xa(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ka(e,n)))}function Ya(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xa(t),t=t.next;while(t!==r)}e.action=null}function Xa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Za(e,t){return t}function U(e,t){if($g){var n=Wb.formState;if(n!==null){a:{var r=X;if($g){if(Qg){b:{for(var i=Qg,a=r_;i.nodeType!==8;){if(!a){i=null;break b}if(i=pd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===zS||a===BS?i:null}if(i){Qg=pd(i.nextSibling),r=i.data===zS;break a}}Br(r)}r=!1}r&&(t=n[0])}}return n=wa(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:t},n.queue=r,n=Lo.bind(null,X,r),r.dispatch=n,r=H(!1),a=zo.bind(null,X,!1,r.queue),r=wa(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ga.bind(null,X,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Qa(e){return $a(Ta(),wy,e)}function $a(e,t,n){if(t=Ma(e,t,Za)[0],e=ja(ka)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ea(t)}catch(e){throw e===Lv?zv:e}else r=t;t=Ta();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(X.flags|=2048,no(my|_y,{destroy:void 0},eo.bind(null,i,n),null)),[r,a,e]}function eo(e,t){e.action=t}function to(e){var t=Ta(),n=wy;if(n!==null)return $a(t,n,e);Ta(),t=t.memoizedState,n=Ta();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function no(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=X.updateQueue,t===null&&(t=B(),X.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ro(e){var t=wa();return e={current:e},t.memoizedState=e}function io(e,t,n,r){var i=wa();X.flags|=e,i.memoizedState=no(my|t,{destroy:void 0},n,r===void 0?null:r)}function ao(e,t,n,r){var i=Ta();r=r===void 0?null:r;var a=i.memoizedState.inst;wy!==null&&r!==null&&_a(r,wy.memoizedState.deps)?i.memoizedState=no(t,a,n,r):(X.flags|=e,i.memoizedState=no(my|t,a,n,r))}function oo(e,t){(X.mode&Rg)===G?io(8390656,_y,e,t):io(276826112,_y,e,t)}function so(e){X.flags|=4;var t=X.updateQueue;if(t===null)t=B(),X.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function co(e){var t=wa(),n={impl:e};return t.memoizedState=n,function(){if((Ub&Pb)!==Nb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function lo(e){var t=Ta().memoizedState;return so({ref:t,nextImpl:e}),function(){if((Ub&Pb)!==Nb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function uo(e,t){var n=4194308;return(X.mode&Rg)!==G&&(n|=134217728),io(n,gy,e,t)}function fo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function po(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(X.mode&Rg)!==G&&(r|=134217728),io(r,gy,fo.bind(null,t,e),n)}function mo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),ao(4,gy,fo.bind(null,t,e),n)}function ho(e,t){return wa().memoizedState=[e,t===void 0?null:t],e}function go(e,t){var n=Ta();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&_a(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _o(e,t){var n=wa();t=t===void 0?null:t;var r=e();if(Oy){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function vo(e,t){var n=Ta();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&_a(t,r[1]))return r[0];if(r=e(),Oy){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function yo(e,t){return So(wa(),e,t)}function bo(e,t){return Co(Ta(),wy.memoizedState,e,t)}function xo(e,t){var n=Ta();return wy===null?So(n,e,t):Co(n,wy.memoizedState,e,t)}function So(e,t,n){return n===void 0||Cy&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=Jc(),X.lanes|=e,cx|=e,n)}function Co(e,t,n,r){return Vh(n,t)?n:oy.current===null?!(Cy&42)||Cy&1073741824&&!($&261930)?(ob=!0,e.memoizedState=n):(e=Jc(),X.lanes|=e,cx|=e,t):(e=So(e,n,r),Vh(e,t)||(ob=!0),e)}function wo(){W.asyncTransitions--}function To(e,t,n,r,i){var a=Gf.p;Gf.p=a!==0&&a<zp?a:zp;var o=W.T,s={};s._updatedFibers=new Set,W.T=s,zo(e,!1,t,n);try{var c=i(),l=W.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){W.asyncTransitions++,c.then(wo,wo);var u=Ti(c,r);Ro(e,t,u,qc(e))}else Ro(e,t,r,qc(e))}catch(n){Ro(e,t,{then:function(){},status:`rejected`,reason:n},qc(e))}finally{Gf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),W.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Eo(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=Do(e).queue;oi(e),To(e,i,t,yC,n===null?u:function(){return Oo(e),n(r)})}function Do(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yC,baseState:yC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:yC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Oo(e){W.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=Do(e);t.next===null&&(t=e.alternate.memoizedState),Ro(e,t.next.queue,{},qc(e))}function ko(){var e=H(!1);return e=To.bind(null,X,e.queue,!0,!1),wa().memoizedState=e,[!1,e]}function Ao(){var e=ja(ka)[0],t=Ta().memoizedState;return[typeof e==`boolean`?e:Ea(e),t]}function jo(){var e=V(ka)[0],t=Ta().memoizedState;return[typeof e==`boolean`?e:Ea(e),t]}function Mo(){return P(bC)}function No(){var e=wa(),t=Wb.identifierPrefix;if($g){var n=Xg,r=Yg;n=(r&~(1<<32-Mp(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ky++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=My++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Po(){return wa().memoizedState=Fo.bind(null,X)}function Fo(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=qc(n),i=Xi(r),a=Zi(n,i,r);a!==null&&(F(r,`refresh()`,e),Yc(a,n,r),Qi(a,n,r)),e=ri(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Io(e,t,n){var r=arguments;typeof r[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().`),r=qc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Bo(e)?Vo(t,i):(i=ur(e,t,i,r),i!==null&&(F(r,`dispatch()`,e),Yc(i,e,r),Ho(i,t,r)))}function Lo(e,t,n){var r=arguments;typeof r[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().`),r=qc(e),Ro(e,t,n,r)&&F(r,`setState()`,e)}function Ro(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bo(e))Vo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=W.H;W.H=Uy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Vh(c,s))return lr(e,t,i,0),Wb===null&&cr(),!1}catch{}finally{W.H=o}}if(n=ur(e,t,i,r),n!==null)return Yc(n,e,r),Ho(n,t,r),!0}return!1}function zo(e,t,n,r){if(W.T===null&&av===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.`),r={lane:2,revertLane:Zl(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bo(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=ur(e,n,r,2),t!==null&&(F(2,`setOptimistic()`,e),Yc(t,e,2))}function Bo(e){var t=e.alternate;return e===X||t!==null&&t===X}function Vo(e,t){Dy=Ey=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ho(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,He(e,n)}}function Uo(e){if(e!==null&&typeof e!=`function`){var t=String(e);tb.has(t)||(tb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Wo(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Lg){je(!0);try{a=n(r,i)}finally{je(!1)}}a===void 0&&(t=C(t)||`Component`,Zy.has(t)||(Zy.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:Ef({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Go(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Lg){je(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{je(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,C(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!Pn(n,r)||!Pn(i,a):!0}function Ko(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=w(e)||`Component`,Ky.has(e)||(Ky.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),nb.enqueueReplaceState(t,t.state,null))}function qo(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Ef({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Jo(e){lg(e),console.warn(`%s
120
-
121
- %s
122
- `,rb?`An error occurred in the <`+rb+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
123
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Yo(e){var t=rb?`The above error occurred in the <`+rb+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((ib||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
124
-
125
- %s
126
-
127
- %s
128
- `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,xC+` `+e[0],SC,wC+r+wC,CC):e.splice(0,0,xC,SC,wC+r+wC,CC),e.unshift(console),r=TC.apply(console.error,e),r()}else console.error(`%o
129
-
130
- %s
131
-
132
- %s
133
- `,e,t,n)}function Xo(e){lg(e)}function Zo(e,t){try{rb=t.source?w(t.source):null,ib=null;var n=t.value;if(W.actQueue!==null)W.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function Qo(e,t,n){try{rb=n.source?w(n.source):null,ib=w(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $o(e,t,n){return n=Xi(n),n.tag=ty,n.payload={element:null},n.callback=function(){D(t.source,Zo,e,t)},n}function es(e){return e=Xi(e),e.tag=ty,e}function ts(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){_r(n),D(r.source,Qo,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){_r(n),D(r.source,Qo,t,n,r),typeof i!=`function`&&(Cx===null?Cx=new Set([this]):Cx.add(this)),Ov(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,w(n)||`Unknown`)})}function ns(e,t,n,r,i){if(n.flags|=32768,jp&&zl(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qr(t,n,i,!0),$g&&(e_=!0),n=cy.current,n!==null){switch(n.tag){case 31:case 13:return ly===null?ll():n.alternate===null&&sx===Ib&&(sx=zb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Al(e,r,i)),!1;case 22:return n.flags|=65536,r===Bv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Al(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Al(e,r,i),ll(),!1}if($g)return e_=!0,t=cy.current,t===null?(r!==i_&&Kr(kr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=kr(r,n),i=$o(e.stateNode,r,i),$i(e,i),sx!==Bb&&(sx=Rb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==i_&&Kr(kr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=kr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(px===null?px=[a]:px.push(a),sx!==Bb&&(sx=Rb),t===null)return!0;r=kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=$o(n.stateNode,r,e),$i(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Cx===null||!Cx.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=es(i),ts(i,e,n,r),$i(n,i),!1}n=n.return}while(n!==null);return!1}function rs(e,t,n,r){t.child=e===null?Zv(t,null,n,r):Xv(t,e.child,n,r)}function is(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ei(t),r=z(e,t,n,o,a,i),s=xa(),e!==null&&!ob?(Sa(e,t,i),Os(e,t,i)):($g&&s&&Mr(t),t.flags|=1,rs(e,t,r,i),t.child)}function as(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!br(a)&&a.defaultProps===void 0&&n.compare===null?(n=mr(a),t.tag=15,t.type=n,vs(t,a),os(e,t,n,r,i)):(e=Cr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ks(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Pn:n,n(o,r)&&e.ref===t.ref)return Os(e,t,i)}return t.flags|=1,e=xr(a,r),e.ref=t.ref,e.return=t,t.child=e}function os(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Pn(a,r)&&e.ref===t.ref&&t.type===e.type){if(ob=!1,t.pendingProps=r=a,ks(e,i))e.flags&131072&&(ob=!0);else return t.lanes=e.lanes,Os(e,t,i)}}return ms(e,t,n,r,i)}function ss(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ls(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,a===null?null:a.cachePool),a===null?oa(t):aa(t,a),ua(t);else return r=t.lanes=536870912,ls(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Di(t,null),oa(t),da(t)):(Di(t,a.cachePool),aa(t,a),da(t),t.memoizedState=null);return rs(e,t,i,n),t.child}function cs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Og,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ls(e,t,n,r,i){var a=Ei();return a=a===null?null:{parent:m_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Di(t,null),oa(t),ua(t),e!==null&&Qr(e,t,r,!0),t.childLanes=i,null}function us(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
134
- - <Activity %s>
135
- + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Cs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ds(e,t,n){return Xv(t,e.child,null,n),e=us(t,t.pendingProps),e.flags|=2,fa(t),t.memoizedState=null,e}function fs(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if($g){if(r.mode===`hidden`)return e=us(t,r),t.lanes=536870912,cs(null,e);if(la(t),(e=Qg)?(n=ld(e,r_),n=n!==null&&n.data===kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Pr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Dr(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw zr(t,e),Br(t);return t.lanes=536870912,null}return us(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(la(t),i){if(t.flags&256)t.flags&=-257,t=ds(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}else if(Rr(),n&536870912&&cl(t),ob||Qr(e,t,n,!1),i=(n&e.childLanes)!==0,ob||i){if(r=Wb,r!==null&&(o=Ue(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,dr(e,o),Yc(r,e,o),ab;ll(),t=ds(e,t,n)}else e=a.treeContext,Qg=pd(o.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Fr(t,e),t=us(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&cl(t),e=xr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function ps(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ms(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=C(n)||`Unknown`;sb[a]||(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.`,a,a),sb[a]=!0)}return t.mode&Lg&&lv.recordLegacyContextWarning(t,null),e===null&&(vs(t,t.type),n.contextTypes&&(a=C(n)||`Unknown`,lb[a]||(lb[a]=!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)`,a)))),ei(t),n=z(e,t,n,r,void 0,i),r=xa(),e!==null&&!ob?(Sa(e,t,i),Os(e,t,i)):($g&&r&&Mr(t),t.flags|=1,rs(e,t,n,i),t.child)}function hs(e,t,n,r,i,a){return ei(t),Fy=-1,Iy=e!==null&&e.type!==t.type,t.updateQueue=null,n=ya(t,r,n,i),va(e,t),r=xa(),e!==null&&!ob?(Sa(e,t,a),Os(e,t,a)):($g&&r&&Mr(t),t.flags|=1,rs(e,t,n,a),t.child)}function gs(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Wb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=es(c),ts(c,o,t,kr(a,t)),$i(t,c)}if(ei(t),t.stateNode===null){if(o=Ng,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Pf)&&!eb.has(n)&&(eb.add(n),c=a===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 a==`object`?a.$$typeof===Nf?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,C(n)||`Component`,c)),typeof a==`object`&&a&&(o=P(a)),a=new n(r,o),t.mode&Lg){je(!0);try{a=new n(r,o)}finally{je(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=nb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Gy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=C(n)||`Component`,qy.has(o)||(qy.add(o),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.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=C(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Yy.has(a)||(Yy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
136
-
137
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
138
-
139
- The above lifecycles should be removed. Learn more about this warning here:
140
- https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
141
- `+o,c===null?``:`
142
- `+c,l===null?``:`
143
- `+l))}}a=t.stateNode,o=C(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.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?`,o),a.getDefaultProps&&!a.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.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!$y.has(n)&&($y.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!Qy.has(n)&&(Qy.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.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.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&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.`,C(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.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().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.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.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Jy.has(n)||(Jy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,C(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Wf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ji(t),o=n.contextType,a.context=typeof o==`object`&&o?P(o):Ng,a.state===r&&(o=C(n)||`Component`,Xy.has(o)||(Xy.add(o),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.`,o))),t.mode&Lg&&lv.recordLegacyContextWarning(t,a),lv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Wo(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,w(t)||`Component`),nb.enqueueReplaceState(a,a.state,null)),ta(t,r,a,i),ea(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=qo(n,d),a.props=c;var f=a.context;l=n.contextType,o=Ng,typeof l==`object`&&l&&(o=P(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Ko(t,a,r,o),ny=!1;var p=t.memoizedState;a.state=p,ta(t,r,a,i),ea(),f=t.memoizedState,d||p!==f||ny?(typeof u==`function`&&(Wo(t,n,u,r),f=t.memoizedState),(c=ny||Go(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Rg)!==G&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Yi(e,t),o=t.memoizedProps,l=qo(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Ng,typeof f==`object`&&f&&(c=P(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Ko(t,a,r,c),ny=!1,p=t.memoizedState,a.state=p,ta(t,r,a,i),ea();var m=t.memoizedState;o!==u||p!==m||ny||e!==null&&e.dependencies!==null&&$r(e.dependencies)?(typeof d==`function`&&(Wo(t,n,d,r),m=t.memoizedState),(l=ny||Go(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&$r(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,ps(e,t),o=!!(t.flags&128),c||o){if(c=t.stateNode,we(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,C_=-1;else if(n=Sv(c),t.mode&Lg){je(!0);try{Sv(c)}finally{je(!1)}}t.flags|=1,e!==null&&o?(t.child=Xv(t,e.child,null,i),t.child=Xv(t,null,n,i)):rs(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=Os(e,t,i);return i=t.stateNode,a&&i.props!==r&&(db||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",w(t)||`a component`),db=!0),e}function _s(e,t,n,r){return Wr(),t.flags|=256,rs(e,t,n,r),t.child}function vs(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
144
- %s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=C(t)||`Unknown`,ub[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),ub[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=C(t)||`Unknown`,cb[t]||(console.error(`%s: Function components do not support contextType.`,t),cb[t]=!0))}function ys(e){return{baseLanes:e,cachePool:Oi()}}function bs(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dx),e}function xs(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=!!(t.flags&128);if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(fy.current&dy)!==0),r&&(a=!0,t.flags&=-129),r=!!(t.flags&32),t.flags&=-33,e===null){if($g){if(a?ca(t):da(t),(e=Qg)?(n=ld(e,r_),n=n!==null&&n.data!==kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Pr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Dr(n),r.return=t,t.child=r,Zg=t,Qg=null)):n=null,n===null)throw zr(t,e),Br(t);return dd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){da(t);var l=t.mode;return c=Cs({mode:`hidden`,children:c},l),i=Tr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=ys(n),i.childLanes=bs(e,r,n),t.memoizedState=mb,cs(null,i)}return ca(t),Ss(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ca(t),t.flags&=-257,t=ws(e,t,n)):t.memoizedState===null?(da(t),c=i.fallback,l=t.mode,i=Cs({mode:`visible`,children:i.children},l),c=Tr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Xv(t,e.child,null,n),i=t.child,i.memoizedState=ys(n),i.childLanes=bs(e,r,n),t.memoizedState=mb,t=cs(null,i)):(da(t),t.child=e.child,t.flags|=128,t=null);else if(ca(t),Rr(),n&536870912&&cl(t),dd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Vg.set(c,i),Kr(i),t=ws(e,t,n)}else if(ob||Qr(e,t,n,!1),r=(n&e.childLanes)!==0,ob||r){if(r=Wb,r!==null&&(i=Ue(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,dr(e,i),Yc(r,e,i),ab;ud(d)||ll(),t=ws(e,t,n)}else ud(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Qg=pd(d.nextSibling),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!1,e!==null&&Fr(t,e),t=Ss(t,i.children),t.flags|=4096);return t}}return a?(da(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=xr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=Tr(c,l,n,null),c.flags|=2):c=xr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,cs(null,i),i=t.child,c=e.child.memoizedState,c===null?c=ys(n):(l=c.cachePool,l===null?l=Oi():(p=m_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=bs(e,r,n),t.memoizedState=mb,cs(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&cl(t),ca(t),n=e.child,e=n.sibling,n=xr(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Ss(e,t){return t=Cs({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Cs(e,t){return e=g(22,e,null,t),e.lanes=0,e}function ws(e,t,n){return Xv(t,e.child,null,n),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ts(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xr(e.return,t,n)}function Es(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ds(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=fy.current;if((r=(s&dy)!==0)?(s=s&uy|dy,t.flags|=128):s&=uy,E(fy,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!fb[s]){if(fb[s]=!0,i==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(i===`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 i==`string`)switch(i.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.`,i,i.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.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}s=a??`null`,pb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(pb[s]=!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".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(pb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(pb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o){if(Wf(o)){for(s=0;s<o.length;s++)if(!qi(o[s],s))break a}else if(s=ie(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!qi(c.value,l))break a;l++}}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?`,i)}if(rs(e,t,o,n),$g?(Ir(),o=Gg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ts(e,n,t);else if(e.tag===19)Ts(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&pa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Es(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Es(t,!0,n,null,a,o);break;case`together`:Es(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Os(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),C_=-1,cx|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Qr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ks(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&$r(e)))}function As(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),N(t,m_,e.memoizedState.cache),Wr();break;case 27:case 5:de(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:N(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,la(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ca(t),e=Os(e,t,n),e===null?null:e.sibling):xs(e,t,n):(ca(t),t.flags|=128,null);ca(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Qr(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ds(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),E(fy,fy.current,t),r)break;return null;case 22:return t.lanes=0,ss(e,t,n,t.pendingProps);case 24:N(t,m_,e.memoizedState.cache)}return Os(e,t,n)}function js(e,t,n){if(t._debugNeedsRemount&&e!==null){n=Cr(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null){if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ob=!0;else{if(!ks(e,n)&&!(t.flags&128))return ob=!1,As(e,t,n);ob=!!(e.flags&131072)}}else ob=!1,(r=$g)&&(Ir(),r=!!(t.flags&1048576)),r&&(r=t.index,Ir(),jr(t,Gg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Mi(t.elementType),t.type=e,typeof e==`function`)br(e)?(r=qo(e,r),t.tag=1,t.type=e=mr(e),t=gs(null,t,e,r,n)):(t.tag=0,vs(t,e),t.type=e=mr(e),t=ms(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Ff){t.tag=11,t.type=e=hr(e),t=is(null,t,e,r,n);break a}if(i===Rf){t.tag=14,t=as(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===zf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=C(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return ms(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=qo(r,t.pendingProps),gs(e,t,r,i,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Yi(e,t),ta(t,r,null,n);var o=t.memoizedState;if(r=o.cache,N(t,m_,r),r!==a.cache&&Zr(t,[m_],n,!0),ea(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=_s(e,t,r,n);break a}if(r!==i){i=kr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Kr(i),t=_s(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qg=pd(e.firstChild),Zg=t,$g=!0,n_=null,e_=!1,t_=null,r_=!0,n=Zv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wr(),r===i){t=Os(e,t,n);break a}rs(e,t,r,n)}t=t.child}return t;case 26:return ps(e,t),e===null?(n=Ed(t.type,null,t.pendingProps,null))?t.memoizedState=n:$g||(n=t.type,e=t.pendingProps,r=se(Qf.current),r=Fu(r).createElement(n),r[Up]=t,r[Wp]=e,xu(r,n,e),et(r),t.stateNode=r):t.memoizedState=Ed(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&$g&&(r=se(Qf.current),i=ue(),r=t.stateNode=xd(t.type,t.pendingProps,r,i,!1),e_||(i=ju(r,t.type,t.pendingProps,i),i!==null&&(Lr(t,0).serverProps=i)),Zg=t,r_=!0,i=Qg,Yu(t.type)?(nC=i,Qg=pd(r.firstChild)):Qg=i),rs(e,t,t.pendingProps.children,n),ps(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$g&&(a=ue(),r=qt(t.type,a.ancestorInfo),i=Qg,(o=!i)||(o=sd(i,t.type,t.pendingProps,r_),o===null?a=!1:(t.stateNode=o,e_||(a=ju(o,t.type,t.pendingProps,a),a!==null&&(Lr(t,0).serverProps=a)),Zg=t,Qg=pd(o.firstChild),r_=!1,a=!0),o=!a),o&&(r&&zr(t,i),Br(t))),de(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Ru(i,a)?r=null:o!==null&&Ru(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=z(e,t,ba,null,null,n),bC._currentValue=i),ps(e,t),rs(e,t,r,n),t.child;case 6:return e===null&&$g&&(n=t.pendingProps,e=ue(),r=e.ancestorInfo.current,n=r==null||Jt(n,r.tag,e.ancestorInfo.implicitRootScope),e=Qg,(r=!e)||(r=cd(e,t.pendingProps,r_),r===null?r=!1:(t.stateNode=r,Zg=t,Qg=null,r=!0),r=!r),r&&(n&&zr(t,e),Br(t))),null;case 13:return xs(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xv(t,null,r,n):rs(e,t,r,n),t.child;case 11:return is(e,t,t.type,t.pendingProps,n);case 7:return rs(e,t,t.pendingProps,n),t.child;case 8:return rs(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,rs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||hb||(hb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),N(t,r,a),rs(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`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.`),ei(t),i=P(i),r=bv(r,i,void 0),t.flags|=1,rs(e,t,r,n),t.child;case 14:return as(e,t,t.type,t.pendingProps,n);case 15:return os(e,t,t.type,t.pendingProps,n);case 19:return Ds(e,t,n);case 31:return fs(e,t,n);case 22:return ss(e,t,n,t.pendingProps);case 24:return ei(t),r=P(m_),e===null?(i=Ei(),i===null&&(i=Wb,a=ri(),i.pooledCache=a,ii(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Ji(t),N(t,m_,i)):((e.lanes&n)!==0&&(Yi(e,t),ta(t,null,null,n),ea()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,N(t,m_,r),r!==i.cache&&Zr(t,[m_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),N(t,m_,r))),rs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Ms(e){e.flags|=4}function Ns(e,t,n,r,i){if((t=(e.mode&zg)!==G)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(al())e.flags|=8192;else throw Vv=Bv,Rv}}else e.flags&=-16777217}function Ps(e,t){if(t.type!==`stylesheet`||(t.state.loading&sC)!==rC)e.flags&=-16777217;else if(e.flags|=16777216,!Vd(t)){if(al())e.flags|=8192;else throw Vv=Bv,Rv}}function Fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Le(),e.lanes|=t,fx|=t)}function Is(e,t){if(!$g)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ls(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t){if((e.mode&K)!==G){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling}else if((e.mode&K)!==G){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Rs(e,t,n){var r=t.pendingProps;switch(Nr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ls(t),null;case 1:return Ls(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yr(m_,t),le(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ur(t)?(qr(),Ms(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gr())),Ls(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Ms(t),a===null?(Ls(t),Ns(t,i,null,r,n)):(Ls(t),Ps(t,a))):a?a===e.memoizedState?(Ls(t),t.flags&=-16777217):(Ms(t),Ls(t),Ps(t,a)):(e=e.memoizedProps,e!==r&&Ms(t),Ls(t),Ns(t,i,e,r,n)),null;case 27:if(fe(t),n=se(Qf.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ms(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ls(t),null}e=ue(),Ur(t)?Vr(t,e):(e=xd(i,r,n,e,!0),t.stateNode=e,Ms(t))}return Ls(t),null;case 5:if(fe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ms(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ls(t),null}var o=ue();if(Ur(t))Vr(t,o);else{switch(a=se(Qf.current),qt(i,o.ancestorInfo),o=o.context,a=Fu(a),o){case WS:a=a.createElementNS(Nm,i);break;case GS:a=a.createElementNS(Mm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Nm,i);break;case`math`:a=a.createElementNS(Mm,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||mp.call(JS,i)||(JS[i]=!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.`,i)))}}a[Up]=t,a[Wp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(xu(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ms(t)}}return Ls(t),Ns(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ms(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=se(Qf.current),n=ue(),Ur(t)){if(e=t.stateNode,n=t.memoizedProps,i=!e_,r=null,a=Zg,a!==null)switch(a.tag){case 3:i&&(i=hd(e,n,r),i!==null&&(Lr(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=hd(e,n,r),i!==null&&(Lr(t,0).serverProps=i))}e[Up]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||vu(e.nodeValue,n)),e||Br(t,!0)}else i=n.ancestorInfo.current,i!=null&&Jt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Fu(e).createTextNode(r),e[Up]=t,t.stateNode=e}return Ls(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ur(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Up]=t,Ls(t),(t.mode&K)!==G&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else qr(),Wr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Ls(t),(t.mode&K)!==G&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Gr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fa(t),t):(fa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Ls(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Ur(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Up]=t,Ls(t),(t.mode&K)!==G&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else qr(),Wr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Ls(t),(t.mode&K)!==G&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Gr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(fa(t),t):(fa(t),null)}return fa(t),t.flags&128?(t.lanes=n,(t.mode&K)!==G&&Si(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Fs(t,t.updateQueue),Ls(t),(t.mode&K)!==G&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return le(t),e===null&&au(t.stateNode.containerInfo),Ls(t),null;case 10:return Yr(t.type,t),Ls(t),null;case 19:if(oe(fy,t),r=t.memoizedState,r===null)return Ls(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)Is(r,!1);else{if(sx!==Ib||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=pa(e),a!==null){for(t.flags|=128,Is(r,!1),e=a.updateQueue,t.updateQueue=e,Fs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Sr(n,e),n=n.sibling;return E(fy,fy.current&uy|dy,t),$g&&Ar(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yp()>yx&&(t.flags|=128,i=!0,Is(r,!1),t.lanes=4194304)}}else{if(!i){if(e=pa(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Fs(t,e),Is(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!$g)return Ls(t),null}else 2*yp()-r.renderingStartTime>yx&&n!==536870912&&(t.flags|=128,i=!0,Is(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Ls(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=yp(),e.sibling=null,n=fy.current,n=i?n&uy|dy:n&uy,E(fy,n,t),$g&&Ar(t,r.treeForkCount),e);case 22:case 23:return fa(t),sa(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ls(t),t.subtreeFlags&6&&(t.flags|=8192)):Ls(t),n=t.updateQueue,n!==null&&Fs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(cv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yr(m_,t),Ls(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function zs(e,t){switch(Nr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Si(t),t):null;case 3:return Yr(m_,t),le(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(fa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Si(t),t):null;case 13:if(fa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Si(t),t):null;case 19:return oe(fy,t),null;case 4:return le(t),null;case 10:return Yr(t.type,t),null;case 22:case 23:return fa(t),sa(t),e!==null&&oe(cv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&K)!==G&&Si(t),t):null;case 24:return Yr(m_,t),null;case 25:return null;default:return null}}function Bs(e,t){switch(Nr(t),t.tag){case 3:Yr(m_,t),le(t);break;case 26:case 27:case 5:fe(t);break;case 4:le(t);break;case 31:t.memoizedState!==null&&fa(t);break;case 13:fa(t);break;case 19:oe(fy,t);break;case 10:Yr(t.type,t);break;case 22:case 23:fa(t),sa(t),e!==null&&oe(cv,t);break;case 24:Yr(m_,t)}}function Vs(e){return(e.mode&K)!==G}function Hs(e,t){Vs(e)?(xi(),Ws(t,e),yi()):Ws(t,e)}function Us(e,t,n){Vs(e)?(xi(),Gs(n,e,t),yi()):Gs(n,e,t)}function Ws(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&hy)!==py&&($x=!0),r=D(t,Mv,n),(e&hy)!==py&&($x=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&gy)===0?(n.tag&hy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
145
-
146
- It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
147
-
148
- `+a+`(() => {
149
- async function fetchData() {
150
- // You can await here
151
- const response = await MyAPI.getData(someId);
152
- // ...
153
- }
154
- fetchData();
155
- }, [someId]); // Or [] if effect doesn't need props or state
156
-
157
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,D(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){kl(t,t.return,e)}}function Gs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&hy)!==py&&($x=!0),i=t,D(i,Pv,i,n,s),(e&hy)!==py&&($x=!1))}r=r.next}while(r!==a)}}catch(e){kl(t,t.return,e)}}function Ks(e,t){Vs(e)?(xi(),Ws(t,e),yi()):Ws(t,e)}function qs(e,t,n){Vs(e)?(xi(),Gs(n,e,t),yi()):Gs(n,e,t)}function Js(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||db||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(e)||`instance`));try{D(e,ia,t,n)}catch(t){kl(e,e.return,t)}}}function Ys(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Xs(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||db||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(e)||`instance`));try{var i=qo(e.type,n),a=D(e,Ys,t,i,r);n=gb,a!==void 0||n.has(e.type)||(n.add(e.type),D(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,w(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){kl(e,e.return,t)}}function Zs(e,t,n){n.props=qo(e.type,e.memoizedProps),n.state=e.memoizedState,Vs(e)?(xi(),D(e,Av,e,t,n),yi()):D(e,Av,e,t,n)}function Qs(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`){if(Vs(e))try{xi(),e.refCleanup=t(n)}finally{yi()}else e.refCleanup=t(n)}else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,w(e)),t.current=n}}function $s(e,t){try{D(e,Qs,e)}catch(n){kl(e,t,n)}}function ec(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{if(Vs(e))try{xi(),D(e,r)}finally{yi(e)}else D(e,r)}catch(n){kl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Vs(e))try{xi(),D(e,n,null)}finally{yi(e)}else D(e,n,null)}catch(n){kl(e,t,n)}else n.current=null}}function tc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function nc(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function rc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{D(e,Uu,r,t,n,e)}catch(t){kl(e,e.return,t)}}function ic(e,t,n){try{D(e,Gu,e.stateNode,e.type,n,t,e)}catch(t){kl(e,e.return,t)}}function ac(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yu(e.type)||e.tag===4}function oc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Yu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Ju(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Ju(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sn));else if(r!==4&&(r===27&&Yu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}function cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Yu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function lc(e){for(var t,n=e.return;n!==null;){if(ac(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=oc(e),cc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Ku(n),t.flags&=-33),t=oc(e),cc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=oc(e),sc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function uc(e){var t=e.stateNode,n=e.memoizedProps;try{D(e,Sd,e.type,n,t,e)}catch(t){kl(e,e.return,t)}}function dc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&!(t.flags&256)}function fc(e,t){if(e=e.containerInfo,KS=LC,e=Rn(e),zn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(qS={focusedElem:e,selectionRange:n},LC=!1,xb=t;xb!==null;)if(t=xb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,xb=e;else for(;xb!==null;){switch(e=t=xb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&Xs(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)od(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:od(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,xb=e;break}xb=t.return}}function pc(e,t,n){var r=di(),i=pi(),a=hi(),o=gi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Tc(e,n),s&4&&Hs(n,gy|my);break;case 1:if(Tc(e,n),s&4){if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||db||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(n)||`instance`)),Vs(n)?(xi(),D(n,wv,n,e),yi()):D(n,wv,n,e);else{var c=qo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||db||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",w(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",w(n)||`instance`)),Vs(n)?(xi(),D(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),yi()):D(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}}s&64&&Js(n),s&512&&$s(n,n.return);break;case 3:if(t=si(),Tc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{D(n,ia,s,c)}catch(e){kl(n,n.return,e)}}e.effectDuration+=ci(t);break;case 27:t===null&&s&4&&uc(n);case 26:case 5:if(Tc(e,n),t===null){if(s&4)rc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{D(n,Wu,c,e,t,n)}catch(e){kl(n,n.return,e)}}}s&512&&$s(n,n.return);break;case 12:if(s&4){s=si(),Tc(e,n),e=n.stateNode,e.effectDuration+=li(s);try{D(n,tc,n,t,b_,e.effectDuration)}catch(e){kl(n,n.return,e)}}else Tc(e,n);break;case 31:Tc(e,n),s&4&&_c(e,n);break;case 13:Tc(e,n),s&4&&vc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Nl.bind(null,n),fd(e,s))));break;case 22:if(s=n.memoizedState!==null||_b,!s){t=t!==null&&t.memoizedState!==null||vb,c=_b;var l=vb;_b=s,(vb=t)&&!l?(kc(e,n,!!(n.subtreeFlags&8772)),(n.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(n,q,J)):Tc(e,n),_b=c,vb=l}break;case 30:break;default:Tc(e,n)}(n.mode&K)!==G&&0<=q&&0<=J&&((D_||.05<T_)&&$n(n,q,J,T_,E_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<J-q&&(dc(n.return.alternate,n.return)||Yn(n,q,J,`Mount`))),fi(r),mi(i),E_=a,D_=o}function mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xe(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hc(e,t,n){for(n=n.child;n!==null;)gc(e,t,n),n=n.sibling}function gc(e,t,n){if(kp&&typeof kp.onCommitFiberUnmount==`function`)try{kp.onCommitFiberUnmount(Op,n)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=di(),i=pi(),a=hi(),o=gi();switch(n.tag){case 26:vb||ec(n,t),hc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:vb||ec(n,t);var s=wb,c=Tb;Yu(n.type)&&(wb=n.stateNode,Tb=!1),hc(e,t,n),D(n,Cd,n.stateNode),wb=s,Tb=c;break;case 5:vb||ec(n,t);case 6:if(s=wb,c=Tb,wb=null,hc(e,t,n),wb=s,Tb=c,wb!==null){if(Tb)try{D(n,Zu,wb,n.stateNode)}catch(e){kl(n,t,e)}else try{D(n,Xu,wb,n.stateNode)}catch(e){kl(n,t,e)}}break;case 18:wb!==null&&(Tb?(e=wb,Qu(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),vf(e)):Qu(wb,n.stateNode));break;case 4:s=wb,c=Tb,wb=n.stateNode.containerInfo,Tb=!0,hc(e,t,n),wb=s,Tb=c;break;case 0:case 11:case 14:case 15:Gs(hy,n,t),vb||Us(n,t,gy),hc(e,t,n);break;case 1:vb||(ec(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Zs(n,t,s)),hc(e,t,n);break;case 21:hc(e,t,n);break;case 22:vb=(s=vb)||n.memoizedState!==null,hc(e,t,n),vb=s;break;default:hc(e,t,n)}(n.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(n,q,J,T_,E_),fi(r),mi(i),E_=a,D_=o}function _c(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{D(t,yd,e)}catch(e){kl(t,t.return,e)}}}function vc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{D(t,bd,e)}catch(e){kl(t,t.return,e)}}function yc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function bc(e,t){var n=yc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),jp){if(Sb!==null&&Cb!==null)zl(Cb,Sb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`)}var r=Pl.bind(null,e,t);t.then(r,r)}})}function xc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=di(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Yu(c.type)){wb=c.stateNode,Tb=!1;break a}break;case 5:wb=c.stateNode,Tb=!1;break a;case 3:case 4:wb=c.stateNode.containerInfo,Tb=!0;break a}c=c.return}if(wb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);gc(i,a,o),wb=null,Tb=!1,(o.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Yn(o,q,J,`Unmount`),fi(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sc(t,e),t=t.sibling}function Sc(e,t){var n=di(),r=pi(),i=hi(),a=gi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xc(t,e),Cc(e),s&4&&(Gs(hy|my,e,e.return),Ws(hy|my,e),Us(e,e.return,gy|my));break;case 1:if(xc(t,e),Cc(e),s&512&&(vb||o===null||ec(o,o.return)),s&64&&_b&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Eb,xc(t,e),Cc(e),s&512&&(vb||o===null||ec(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null){if(s===null){if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Xp]||l[Up]||l.namespaceURI===Nm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),xu(l,s,o),l[Up]=e,et(l),s=l;break a;case`link`:var u=Rd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),xu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Rd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],O(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),xu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Up]=e,et(l),s=l}e.stateNode=s}else zd(c,e.type,e.stateNode)}else e.stateNode=Pd(c,s,e.memoizedProps)}else l===s?s===null&&e.stateNode!==null&&ic(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?zd(c,e.type,e.stateNode):Pd(c,s,e.memoizedProps))}break;case 27:xc(t,e),Cc(e),s&512&&(vb||o===null||ec(o,o.return)),o!==null&&s&4&&ic(e,e.memoizedProps,o.memoizedProps);break;case 5:if(xc(t,e),Cc(e),s&512&&(vb||o===null||ec(o,o.return)),e.flags&32){c=e.stateNode;try{D(e,Ku,c)}catch(t){kl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,ic(e,c,o===null?c:o.memoizedProps)),s&1024&&(yb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(xc(t,e),Cc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{D(e,qu,c,o,s)}catch(t){kl(e,e.return,t)}}break;case 3:if(c=si(),fC=null,l=Eb,Eb=wd(t.containerInfo),xc(t,e),Eb=l,Cc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{D(e,vd,t.containerInfo)}catch(t){kl(e,e.return,t)}yb&&(yb=!1,wc(e)),t.effectDuration+=ci(c);break;case 4:s=Eb,Eb=wd(e.stateNode.containerInfo),xc(t,e),Cc(e),Eb=s;break;case 12:s=si(),xc(t,e),Cc(e),e.stateNode.effectDuration+=li(s);break;case 31:xc(t,e),Cc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,bc(e,s)));break;case 13:xc(t,e),Cc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(gx=yp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,bc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=_b,m=vb;if(_b=p||c,vb=m||f,xc(t,e),vb=m,_b=p,f&&!c&&!p&&!m&&(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Xn(e,q,J),Cc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Og:t._visibility|Og,!c||o===null||f||_b||vb||(Dc(e),(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Yn(e,q,J,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?D(f,td,l):D(f,id,f.stateNode,f.memoizedProps)}catch(e){kl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?D(f,nd,u):D(f,ad,u,f.memoizedProps)}catch(e){kl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?D(f,ed,d):D(f,rd,f.stateNode)}catch(e){kl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,bc(e,o))));break;case 19:xc(t,e),Cc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,bc(e,s)));break;case 30:break;case 21:break;default:xc(t,e),Cc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&((D_||.05<T_)&&$n(e,q,J,T_,E_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<J-q&&(dc(e.return.alternate,e.return)||Yn(e,q,J,`Mount`))),fi(n),mi(r),E_=i,D_=a}function Cc(e){var t=e.flags;if(t&2){try{D(e,lc,e)}catch(t){kl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pc(e,t.alternate,t),t=t.sibling}function Ec(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 14:case 15:Us(e,e.return,gy),Dc(e);break;case 1:ec(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&Zs(e,e.return,a),Dc(e);break;case 27:D(e,Cd,e.stateNode);case 26:case 5:ec(e,e.return),Dc(e);break;case 22:e.memoizedState===null&&Dc(e);break;case 30:Dc(e);break;default:Dc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(e,q,J,T_,E_),fi(t),mi(n),E_=r,D_=i}function Dc(e){for(e=e.child;e!==null;)Ec(e),e=e.sibling}function Oc(e,t,n,r){var i=di(),a=pi(),o=hi(),s=gi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:kc(e,n,r),Hs(n,gy);break;case 1:if(kc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&D(n,wv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{D(n,ra,t,e)}catch(e){kl(n,n.return,e)}}r&&c&64&&Js(n),$s(n,n.return);break;case 27:uc(n);case 26:case 5:kc(e,n,r),r&&t===null&&c&4&&rc(n),$s(n,n.return);break;case 12:if(r&&c&4){c=si(),kc(e,n,r),r=n.stateNode,r.effectDuration+=li(c);try{D(n,tc,n,t,b_,r.effectDuration)}catch(e){kl(n,n.return,e)}}else kc(e,n,r);break;case 31:kc(e,n,r),r&&c&4&&_c(e,n);break;case 13:kc(e,n,r),r&&c&4&&vc(e,n);break;case 22:n.memoizedState===null&&kc(e,n,r),$s(n,n.return);break;case 30:break;default:kc(e,n,r)}(n.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(n,q,J,T_,E_),fi(i),mi(a),E_=o,D_=s}function kc(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;)Oc(e,t.alternate,t,n),t=t.sibling}function Ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&ii(e),n!=null&&ai(n))}function jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ii(t),e!=null&&ai(e))}function Mc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Nc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Nc(e,t,n,r,i){var a=di(),o=pi(),s=hi(),c=gi(),l=Sg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&K)!==G&&0<t.actualStartTime&&t.flags&1&&Zn(t,t.actualStartTime,i,Db,n),Mc(e,t,n,r,i),u&2048&&Ks(t,_y|my);break;case 1:(t.mode&K)!==G&&0<t.actualStartTime&&(t.flags&128?Qn(t,t.actualStartTime,i,[]):t.flags&1&&Zn(t,t.actualStartTime,i,Db,n)),Mc(e,t,n,r,i);break;case 3:var d=si(),f=Db;Db=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!(t.flags&256),Mc(e,t,n,r,i),Db=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(ii(r),n!=null&&ai(n))),e.passiveEffectDuration+=ci(d);break;case 12:if(u&2048){u=si(),Mc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=li(u);try{D(t,nc,t,t.alternate,b_,e.passiveEffectDuration)}catch(e){kl(t,t.return,e)}}else Mc(e,t,n,r,i);break;case 31:u=Db,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Db=!1,d=d.hydrationErrors,d!==null&&Qn(t,t.actualStartTime,i,d)):Db=!0):Db=!1,Mc(e,t,n,r,i),Db=u;break;case 13:u=Db,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Db=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Db=!1,d=d.hydrationErrors,d!==null&&Qn(t,t.actualStartTime,i,d)):Db=!0),Mc(e,t,n,r,i),Db=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&kg?Mc(e,t,n,r,i):(f._visibility|=kg,Pc(e,t,n,r,!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&K)===G||Db||(e=t.actualStartTime,0<=e&&.05<i-e&&Xn(t,e,i),0<=q&&0<=J&&.05<J-q&&Xn(t,q,J))):f._visibility&kg?Mc(e,t,n,r,i):Ic(e,t,n,r,i),u&2048&&Ac(d,t);break;case 24:Mc(e,t,n,r,i),u&2048&&jc(t.alternate,t);break;default:Mc(e,t,n,r,i)}(t.mode&K)!==G&&((e=!Db&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&Yn(t,n,i,`Mount`)),0<=q&&0<=J&&((D_||.05<T_)&&$n(t,q,J,T_,E_),e&&.05<J-q&&Yn(t,q,J,`Mount`))),fi(a),mi(o),E_=s,D_=c,Sg=l}function Pc(e,t,n,r,i,a){for(i&&=!!(t.subtreeFlags&10256)||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Fc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Fc(e,t,n,r,i,a){var o=di(),s=pi(),c=hi(),l=gi(),u=Sg;i&&(t.mode&K)!==G&&0<t.actualStartTime&&t.flags&1&&Zn(t,t.actualStartTime,a,Db,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Pc(e,t,n,r,i,a),Ks(t,_y);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=kg,Pc(e,t,n,r,i,a)):f._visibility&kg?Pc(e,t,n,r,i,a):Ic(e,t,n,r,a),i&&d&2048&&Ac(t.alternate,t);break;case 24:Pc(e,t,n,r,i,a),i&&d&2048&&jc(t.alternate,t);break;default:Pc(e,t,n,r,i,a)}(t.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(t,q,J,T_,E_),fi(o),mi(s),E_=c,D_=l,Sg=u}function Ic(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Sg;(a.mode&K)!==G&&0<a.actualStartTime&&a.flags&1&&Zn(a,a.actualStartTime,l,Db,s);var d=a.flags;switch(a.tag){case 22:Ic(o,a,s,c,l),d&2048&&Ac(a.alternate,a);break;case 24:Ic(o,a,s,c,l),d&2048&&jc(a.alternate,a);break;default:Ic(o,a,s,c,l)}Sg=u,a=t}}function Lc(e,t,n){if(e.subtreeFlags&Ob)for(e=e.child;e!==null;)Rc(e,t,n),e=e.sibling}function Rc(e,t,n){switch(e.tag){case 26:Lc(e,t,n),e.flags&Ob&&e.memoizedState!==null&&Hd(n,Eb,e.memoizedState,e.memoizedProps);break;case 5:Lc(e,t,n);break;case 3:case 4:var r=Eb;Eb=wd(e.stateNode.containerInfo),Lc(e,t,n),Eb=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ob,Ob=16777216,Lc(e,t,n),Ob=r):Lc(e,t,n));break;default:Lc(e,t,n)}}function zc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Bc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=di();xb=r,Wc(r,e),(r.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Yn(r,q,J,`Unmount`),fi(i)}zc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vc(e),e=e.sibling}function Vc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 15:Bc(e),e.flags&2048&&qs(e,e.return,_y|my);break;case 3:var a=si();Bc(e),e.stateNode.passiveEffectDuration+=ci(a);break;case 12:a=si(),Bc(e),e.stateNode.passiveEffectDuration+=li(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&kg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~kg,Hc(e),(e.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Yn(e,q,J,`Disconnect`)):Bc(e);break;default:Bc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(e,q,J,T_,E_),fi(t),mi(n),D_=i,E_=r}function Hc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=di();xb=r,Wc(r,e),(r.mode&K)!==G&&0<=q&&0<=J&&.05<J-q&&Yn(r,q,J,`Unmount`),fi(i)}zc(e)}for(e=e.child;e!==null;)Uc(e),e=e.sibling}function Uc(e){var t=di(),n=pi(),r=hi(),i=gi();switch(e.tag){case 0:case 11:case 15:qs(e,e.return,_y),Hc(e);break;case 22:var a=e.stateNode;a._visibility&kg&&(a._visibility&=~kg,Hc(e));break;default:Hc(e)}(e.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(e,q,J,T_,E_),fi(t),mi(n),D_=i,E_=r}function Wc(e,t){for(;xb!==null;){var n=xb,r=n,i=t,a=di(),o=pi(),s=hi(),c=gi();switch(r.tag){case 0:case 11:case 15:qs(r,i,_y);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&ii(i));break;case 24:ai(r.memoizedState.cache)}if((r.mode&K)!==G&&0<=q&&0<=J&&(D_||.05<T_)&&$n(r,q,J,T_,E_),fi(a),mi(o),D_=c,E_=s,r=n.child,r!==null)r.return=n,xb=r;else a:for(n=e;xb!==null;){if(r=xb,a=r.sibling,o=r.return,mc(r),r===n){xb=null;break a}if(a!==null){a.return=o,xb=a;break a}xb=o}}}function Gc(){jb.forEach(function(e){return e()})}function Kc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||W.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function qc(e){if((Ub&Pb)!==Nb&&$!==0)return $&-$;var t=W.T;return t===null?Je():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Zl())}function Jc(){if(dx===0){if(!($&536870912)||$g){var e=Ip;Ip<<=1,!(Ip&3932160)&&(Ip=262144),dx=e}else dx=536870912}return e=cy.current,e!==null&&(e.flags|=32),dx}function Yc(e,t,n){if($x&&console.error(`useInsertionEffect must not schedule updates.`),Jx&&(Yx=!0),(e===Wb&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)&&(rl(e,0),$c(e,$,dx,!1)),ze(e,n),(Ub&Pb)!==Nb&&e===Wb){if(pp)switch(t.tag){case 0:case 11:case 15:e=Q&&w(Q)||`Unknown`,nS.has(e)||(nS.add(e),t=w(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:tS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else jp&&Ge(e,t,n),Vl(t),e===Wb&&((Ub&Pb)===Nb&&(lx|=n),sx===Bb&&$c(e,$,dx,!1)),Hl(e)}function Xc(e,t,n){if((Ub&(Pb|Fb))!==Nb)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=yp();switch($_){case Jb:case qb:var a=ev;vg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,yg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,yg,void 0,`primary-light`));break;case ex:a=ev,vg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,yg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,yg,void 0,`primary-light`));break;default:vg&&(r=i-ev,3>r||console.timeStamp(`Blocked`,ev,i,yg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&!(t&127)&&(t&e.expiredLanes)===0||Fe(e,t))?fl(e,t):ul(e,t,!0);var o=n;do{if(a===Ib){ix&&!n&&$c(e,t,0,!1),t=tx,ev=h_(),$_=t;break}if(r=yp(),i=e.current.alternate,o&&!Qc(i)){Jn(t),i=y_,a=r,!vg||a<=i||(Sx?Sx.run(console.timeStamp.bind(console,`Teared Render`,i,a,xg,bg,`error`)):console.timeStamp(`Teared Render`,i,a,xg,bg,`error`)),nl(t,r),a=ul(e,t,!1),o=!1;continue}if(a===Rb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Jn(t),ir(y_,r,t,Sx),nl(t,r),t=s;a:{r=e,a=o,o=px;var c=r.current.memoizedState.isDehydrated;if(c&&(rl(r,s).flags|=256),s=ul(r,s,!1),s!==Rb){if(ax&&!c){r.errorRecoveryDisabledLanes|=a,lx|=a,a=Bb;break a}r=mx,mx=o,r!==null&&(mx===null?mx=r:mx.push.apply(mx,r))}a=s}if(o=!1,a!==Rb)continue;r=yp()}}if(a===Lb){Jn(t),ir(y_,r,t,Sx),nl(t,r),rl(e,0),$c(e,t,0,!0);break}a:{switch(n=e,a){case Ib:case Lb:throw Error(`Root did not complete. This is a bug in React.`);case Bb:if((t&4194048)!==t)break;case Vb:Jn(t),tr(y_,r,t,Sx),nl(t,r),i=t,i&127?L_=r:i&4194048&&(J_=r),$c(n,t,dx,!rx);break a;case Rb:mx=null;break;case zb:case Hb:break;default:throw Error(`Unknown root exit status.`)}if(W.actQueue!==null)bl(n,i,t,mx,xx,hx,dx,lx,fx,a,null,null,y_,r);else{if((t&62914560)===t&&(o=gx+vx-yp(),10<o)){if($c(n,t,dx,!rx),Pe(n,0,!0)!==0)break a;Lx=t,n.timeoutHandle=ZS(Zc.bind(null,n,i,mx,xx,hx,t,dx,lx,fx,rx,a,`Throttled`,y_,r),o);break a}Zc(n,i,mx,xx,hx,t,dx,lx,fx,rx,a,null,y_,r)}}break}while(1);Hl(e)}function Zc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=$S;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Rc(t,a,h),m=(a&62914560)===a?gx-yp():(a&4194048)===a?_x-yp():0,m=Ud(h,m),m!==null)){Lx=a,e.cancelPendingCommit=m(bl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),$c(e,a,o,!l);return}bl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function Qc(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Vh(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $c(e,t,n,r){t&=~ux,t&=~lx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Mp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ve(e,n,t)}function el(){return(Ub&(Pb|Fb))!==Nb||(Ul(0,!1),!1)}function tl(){if(Q!==null){if(tx===Gb)var e=Q.return;else e=Q,Jr(),Ca(e),Uv=null,Wv=0,e=Q;for(;e!==null;)Bs(e.alternate,e),e=e.return;Q=null}}function nl(e,t){e&127&&(O_=t),e&4194048&&(R_=t),e&62914560&&(Y_=t),e&2080374784&&(X_=t)}function rl(e,t){vg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,bg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,bg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,bg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,bg,`primary-light`));var n=y_;if(y_=h_(),$!==0&&0<n){if(Jn($),sx===zb||sx===Bb)tr(n,y_,t,Sx);else{var r=y_,i=Sx;if(vg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,xg,bg,a)):console.timeStamp(o,n,r,xg,bg,a)}}nl($,y_)}if(n=Sx,Sx=null,t&127){Sx=A_,i=0<=k_&&k_<O_?O_:k_,r=0<=P_&&P_<O_?O_:P_,a=0<=r?r:0<=i?i:y_,0<=L_?(Jn(2),nr(L_,a,t,n)):Z_&127&&(Jn(2),sr(O_,a,Q_)),n=i;var s=r,c=F_,l=0<I_,u=j_===__,d=j_===v_;if(i=y_,r=A_,a=M_,o=N_,vg){if(xg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,xg,bg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,xg,bg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:xg,trackGroup:bg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}k_=-1.1,j_=0,N_=M_=null,L_=-1.1,I_=P_,P_=-1.1,O_=h_()}if(t&4194048&&(Sx=H_,i=0<=z_&&z_<R_?R_:z_,n=0<=B_&&B_<R_?R_:B_,r=0<=G_&&G_<R_?R_:G_,a=0<=r?r:0<=n?n:y_,0<=J_?(Jn(256),nr(J_,a,t,Sx)):Z_&4194048&&(Jn(256),sr(R_,a,Q_)),d=r,s=K_,c=0<q_,l=V_===v_,a=y_,r=H_,o=U_,u=W_,vg&&(xg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,xg,bg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,xg,bg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,xg,bg,`primary-dark`)):console.timeStamp(`Action`,i,n,xg,bg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:xg,trackGroup:bg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),B_=z_=-1.1,V_=0,J_=-1.1,q_=G_,G_=-1.1,R_=h_()),t&62914560&&Z_&62914560&&(Jn(4194304),sr(Y_,y_,Q_)),t&2080374784&&Z_&2080374784&&(Jn(268435456),sr(X_,y_,Q_)),n=e.timeoutHandle,n!==$S&&(e.timeoutHandle=$S,QS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lx=0,tl(),Wb=e,Q=n=xr(e.current,null),$=t,tx=Gb,nx=null,rx=!1,ix=Fe(e,t),ax=!1,sx=Ib,fx=dx=ux=lx=cx=0,mx=px=null,hx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Mp(r),a=1<<i,t|=e[i],r&=~a;return ox=t,cr(),e=sg(),1e3<e-ag&&(W.recentlyCreatedOwnerStacks=0,ag=e),lv.discardPendingWarnings(),n}function il(e,t){X=null,W.H=Ly,W.getCurrentStack=null,pp=!1,fp=null,t===Lv||t===zv?(t=Ni(),tx=Jb):t===Rv?(t=Ni(),tx=Yb):tx=t===ab?$b:typeof t==`object`&&t&&typeof t.then==`function`?Zb:Kb,nx=t;var n=Q;n===null?(sx=Lb,Zo(e,kr(t,e.current))):n.mode&K&&_i(n)}function al(){var e=cy.current;return e===null?!0:($&4194048)===$?ly===null:($&62914560)===$||$&536870912?e===ly:!1}function ol(){var e=W.H;return W.H=Ly,e===null?Ly:e}function sl(){var e=W.A;return W.A=kb,e}function cl(e){Sx===null&&(Sx=e._debugTask==null?null:e._debugTask)}function ll(){sx=Bb,rx||($&4194048)!==$&&cy.current!==null||(ix=!0),!(cx&134217727)&&!(lx&134217727)||Wb===null||$c(Wb,$,dx,!1)}function ul(e,t,n){var r=Ub;Ub|=Pb;var i=ol(),a=sl();if(Wb!==e||$!==t){if(jp){var o=e.memoizedUpdaters;0<o.size&&(zl(e,$),o.clear()),Ke(e,t)}xx=null,rl(e,t)}t=!1,o=sx;a:do try{if(tx!==Gb&&Q!==null){var s=Q,c=nx;switch(tx){case $b:tl(),o=Vb;break a;case Jb:case qb:case ex:case Zb:cy.current===null&&(t=!0);var l=tx;if(tx=Gb,nx=null,_l(e,s,c,l),n&&ix){o=Ib;break a}break;default:l=tx,tx=Gb,nx=null,_l(e,s,c,l)}}dl(),o=sx;break}catch(t){il(e,t)}while(1);return t&&e.shellSuspendCounter++,Jr(),Ub=r,W.H=i,W.A=a,Q===null&&(Wb=null,$=0,cr()),o}function dl(){for(;Q!==null;)ml(Q)}function fl(e,t){var n=Ub;Ub|=Pb;var r=ol(),i=sl();if(Wb!==e||$!==t){if(jp){var a=e.memoizedUpdaters;0<a.size&&(zl(e,$),a.clear()),Ke(e,t)}xx=null,yx=yp()+bx,rl(e,t)}else ix=Fe(e,t);a:do try{if(tx!==Gb&&Q!==null)b:switch(t=Q,a=nx,tx){case Kb:tx=Gb,nx=null,_l(e,t,a,Kb);break;case qb:case ex:if(Ai(a)){tx=Gb,nx=null,hl(t);break}t=function(){tx!==qb&&tx!==ex||Wb!==e||(tx=Qb),Hl(e)},a.then(t,t);break a;case Jb:tx=Qb;break a;case Yb:tx=Xb;break a;case Qb:Ai(a)?(tx=Gb,nx=null,hl(t)):(tx=Gb,nx=null,_l(e,t,a,Qb));break;case Xb:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var s=Q;if(o?Vd(o):s.stateNode.complete){tx=Gb,nx=null;var c=s.sibling;if(c!==null)Q=c;else{var l=s.return;l===null?Q=null:(Q=l,vl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}tx=Gb,nx=null,_l(e,t,a,Xb);break;case Zb:tx=Gb,nx=null,_l(e,t,a,Zb);break;case $b:tl(),sx=Vb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}W.actQueue===null?pl():dl();break}catch(t){il(e,t)}while(1);return Jr(),W.H=r,W.A=i,Ub=n,Q===null?(Wb=null,$=0,cr(),sx):Ib}function pl(){for(;Q!==null&&!_p();)ml(Q)}function ml(e){var t=e.alternate;(e.mode&K)===G?t=D(e,js,t,e,ox):(I(e),t=D(e,js,t,e,ox),_i(e)),e.memoizedProps=e.pendingProps,t===null?vl(e):Q=t}function hl(e){var t=D(e,gl,e);e.memoizedProps=e.pendingProps,t===null?vl(e):Q=t}function gl(e){var t=e.alternate,n=(e.mode&K)!==G;switch(n&&I(e),e.tag){case 15:case 0:t=hs(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=hs(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Ca(e);default:Bs(t,e),e=Q=Sr(e,ox),t=js(t,e,ox)}return n&&_i(e),t}function _l(e,t,n,r){Jr(),Ca(t),Uv=null,Wv=0;var i=t.return;try{if(ns(e,i,t,n,$)){sx=Lb,Zo(e,kr(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;sx=Lb,Zo(e,kr(n,e.current)),Q=null;return}t.flags&32768?($g||r===Kb?e=!0:ix||$&536870912?e=!1:(rx=e=!0,(r===qb||r===ex||r===Jb||r===Zb)&&(r=cy.current,r!==null&&r.tag===13&&(r.flags|=16384))),yl(t,e)):vl(t)}function vl(e){var t=e;do{if(t.flags&32768){yl(t,rx);return}var n=t.alternate;if(e=t.return,I(t),n=D(t,Rs,n,t,ox),(t.mode&K)!==G&&vi(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);sx===Ib&&(sx=Hb)}function yl(e,t){do{var n=zs(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&K)!==G){vi(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);sx=Vb,Q=null}function bl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do El();while(Px!==Ox);if(lv.flushLegacyContextWarning(),lv.flushPendingUnsafeLifecycleWarnings(),(Ub&(Pb|Fb))!==Nb)throw Error(`Should not already be working.`);if(Jn(n),l===Rb?ir(f,p,n,Sx):r===null?er(f,p,n,Sx):rr(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&!!(t.flags&256),Sx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Mg,Be(e,n,a,o,s,c),e===Wb&&(Q=Wb=null,$=0),Ix=t,Fx=e,Lx=n,Rx=a,Bx=i,Vx=r,zx=p,Hx=d,Ux=wx,Wx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Bl(Cp,function(){return XS=window.event,Ux===wx&&(Ux=Ex),Dl(),null})):(e.callbackNode=null,e.callbackPriority=0),S_=null,b_=h_(),d!==null&&ar(p,b_,d,Sx),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=W.T,W.T=null,i=Gf.p,Gf.p=Rp,o=Ub,Ub|=Fb;try{fc(e,t,n)}finally{Ub=o,Gf.p=i,W.T=r}}Px=kx,xl(),Sl(),Cl()}}function xl(){if(Px===kx){Px=Ox;var e=Fx,t=Ix,n=Lx,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=W.T,W.T=null;var i=Gf.p;Gf.p=Rp;var a=Ub;Ub|=Fb;try{Sb=n,Cb=e,ui(),Sc(t,e),Cb=Sb=null,n=qS;var o=Rn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ln(s.ownerDocument.documentElement,s)){if(c!==null&&zn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=In(s,h),v=In(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}LC=!!KS,qS=KS=null}finally{Ub=a,Gf.p=i,W.T=r}}e.current=t,Px=Ax}}function Sl(){if(Px===Ax){Px=Ox;var e=Wx;if(e!==null){b_=h_();var t=x_,n=b_;!vg||n<=t||(Q_?Q_.run(console.timeStamp.bind(console,e,t,n,xg,bg,`secondary-light`)):console.timeStamp(e,t,n,xg,bg,`secondary-light`))}e=Fx,t=Ix,n=Lx;var r=!!(t.flags&8772);if(t.subtreeFlags&8772||r){r=W.T,W.T=null;var i=Gf.p;Gf.p=Rp;var a=Ub;Ub|=Fb;try{Sb=n,Cb=e,ui(),pc(e,t.alternate,t),Cb=Sb=null}finally{Ub=a,Gf.p=i,W.T=r}}e=zx,t=Hx,x_=h_(),e=t===null?e:b_,t=x_,n=Ux===Tx,r=Sx,S_===null?!vg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,bg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,xg,bg,n?`error`:`secondary-dark`)):or(e,t,S_,!1,r),Px=jx}}function Cl(){if(Px===Mx||Px===jx){if(Px===Mx){var e=x_;x_=h_();var t=x_,n=Ux===Tx;!vg||t<=e||(Q_?Q_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,bg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,xg,bg,n?` error`:`secondary-light`)),Ux!==Tx&&(Ux=Dx)}Px=Ox,vp(),e=Fx;var r=Ix;t=Lx,n=Vx;var i=r.actualDuration!==0||!!(r.subtreeFlags&10256)||!!(r.flags&10256);i?Px=Nx:(Px=Ox,Ix=Fx=null,Tl(e,e.pendingLanes),Zx=0,Qx=null);var a=e.pendingLanes;if(a===0&&(Cx=null),i||Ll(e),a=qe(t),r=r.stateNode,kp&&typeof kp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Rp:var s=xp;break;case zp:s=Sp;break;case Bp:s=Cp;break;case Vp:s=Tp;break;default:s=Cp}kp.onCommitFiberRoot(Op,r,s,o)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(jp&&e.memoizedUpdaters.clear(),Gc(),n!==null){o=W.T,s=Gf.p,Gf.p=Rp,W.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=wl(l.stack);D(l.source,c,l.value,u)}}finally{W.T=o,Gf.p=s}}Lx&3&&El(),Hl(e),a=e.pendingLanes,t&261930&&a&42?(nv=!0,e===qx?Kx++:(Kx=0,qx=e)):Kx=0,i||nl(t,x_),Ul(0,!1)}}function wl(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Tl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ai(t)))}function El(){return xl(),Sl(),Cl(),Dl()}function Dl(){if(Px!==Nx)return!1;var e=Fx,t=Rx;Rx=0;var n=qe(Lx),r=Bp===0||Bp>n?Bp:n;n=W.T;var i=Gf.p;try{Gf.p=r,W.T=null;var a=Bx;Bx=null,r=Fx;var o=Lx;if(Px=Ox,Ix=Fx=null,Lx=0,(Ub&(Pb|Fb))!==Nb)throw Error(`Cannot flush passive effects while already rendering.`);Jn(o),Jx=!0,Yx=!1;var s=0;if(S_=null,s=yp(),Ux===Dx)sr(x_,s,Q_);else{var c=x_,l=s,u=Ux===Ex;!vg||l<=c||(Sx?Sx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,xg,bg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,xg,bg,`secondary-light`))}c=Ub,Ub|=Fb;var d=r.current;ui(),Vc(d);var f=r.current;d=zx,ui(),Nc(r,f,o,a,d),Ll(r),Ub=c;var p=yp();if(f=s,d=Sx,S_===null?!vg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,xg,bg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,xg,bg,`secondary-dark`)):or(f,p,S_,!0,d),nl(o,p),Ul(0,!1),Yx?r===Qx?Zx++:(Zx=0,Qx=r):Zx=0,Yx=Jx=!1,kp&&typeof kp.onPostCommitFiberRoot==`function`)try{kp.onPostCommitFiberRoot(Op,r)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Gf.p=i,W.T=n,Tl(e,t)}}function Ol(e,t,n){t=kr(n,t),bi(t),t=$o(e.stateNode,t,2),e=Zi(e,t,2),e!==null&&(ze(e,2),Hl(e))}function kl(e,t,n){if($x=!1,e.tag===3)Ol(e,e,n);else{for(;t!==null;){if(t.tag===3){Ol(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cx===null||!Cx.has(r))){e=kr(n,e),bi(e),n=es(2),r=Zi(t,n,2),r!==null&&(ts(n,r,t,e),ze(r,2),Hl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
158
-
159
- Error message:
160
-
161
- %s`,n)}}function Al(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Mb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ax=!0,i.add(n),r=jl.bind(null,e,t,n),jp&&zl(e,n),t.then(r,r))}function jl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>k_&&(O_=k_=h_(),A_=g_(`Promise Resolved`),j_=v_):n&4194048&&0>B_&&(R_=B_=h_(),H_=g_(`Promise Resolved`),V_=v_),Kc()&&W.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
162
-
163
- When testing, code that resolves suspended data should be wrapped into act(...):
164
-
165
- act(() => {
166
- /* finish loading suspended data */
167
- });
168
- /* assert on the output */
169
-
170
- 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`),Wb===e&&($&n)===n&&(sx===Bb||sx===zb&&($&62914560)===$&&yp()-gx<vx?(Ub&Pb)===Nb&&rl(e,0):ux|=n,fx===$&&(fx=0)),Hl(e)}function Ml(e,t){t===0&&(t=Le()),e=dr(e,t),e!==null&&(ze(e,t),Hl(e))}function Nl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ml(e,n)}function Pl(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Ml(e,n)}function Fl(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===jf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?D(i,Il,r,i):i.subtreeFlags&67108864&&D(i,Fl,r,i,a)):i.flags&67108864?a&&D(i,Il,r,i):Fl(r,i,a),t=t.sibling}}function Il(e,t){je(!0);try{Ec(t),Uc(t),Oc(e,t.alternate,t,!1),Fc(e,t,0,null,!1,0)}finally{je(!1)}}function Ll(e){var t=!0;e.current.mode&(Lg|Rg)||(t=!1),Fl(e,e.current,t)}function Rl(e){if((Ub&Pb)===Nb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=w(e)||`ReactComponent`,eS!==null){if(eS.has(t))return;eS.add(t)}else eS=new Set([t]);D(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function zl(e,t){jp&&e.memoizedUpdaters.forEach(function(n){Ge(e,n,t)})}function Bl(e,t){var n=W.actQueue;return n===null?hp(e,t):(n.push(t),rS)}function Vl(e){Kc()&&W.actQueue===null&&D(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
171
-
172
- When testing, code that causes React state updates should be wrapped into act(...):
173
-
174
- act(() => {
175
- /* fire events that update state */
176
- });
177
- /* assert on the output */
178
-
179
- 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`,w(e))})}function Hl(e){e!==aS&&e.next===null&&(aS===null?iS=aS=e:aS=aS.next=e),cS=!0,W.actQueue===null?oS||(oS=!0,Xl()):sS||(sS=!0,Xl())}function Ul(e,t){if(!lS&&cS){lS=!0;do for(var n=!1,r=iS;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Mp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Jl(r,a))}else a=$,a=Pe(r,r===Wb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==$S),!(a&3)||Fe(r,a)||(n=!0,Jl(r,a))}r=r.next}while(n);lS=!1}}function Wl(){XS=window.event,Gl()}function Gl(){cS=sS=oS=!1;var e=0;uS!==0&&zu()&&(e=uS);for(var t=yp(),n=null,r=iS;r!==null;){var i=r.next,a=Kl(r,t);a===0?(r.next=null,n===null?iS=i:n.next=i,i===null&&(aS=n)):(n=r,(e!==0||a&3)&&(cS=!0)),r=i}Px!==Ox&&Px!==Nx||Ul(e,!1),uS!==0&&(uS=0)}function Kl(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Mp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ie(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Wb,n=$,n=Pe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r=e.callbackNode,n===0||e===t&&(tx===qb||tx===ex)||e.cancelPendingCommit!==null)return r!==null&&Yl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Fe(e,n)){if(t=n&-n,t!==e.callbackPriority||W.actQueue!==null&&r!==dS)Yl(r);else return t;switch(qe(n)){case Rp:case zp:n=Sp;break;case Bp:n=Cp;break;case Vp:n=Tp;break;default:n=Cp}return r=ql.bind(null,e),W.actQueue===null?n=hp(n,r):(W.actQueue.push(r),n=dS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Yl(r),e.callbackPriority=2,e.callbackNode=null,2}function ql(e,t){if(nv=tv=!1,XS=window.event,Px!==Ox&&Px!==Nx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ux===wx&&(Ux=Ex),El()&&e.callbackNode!==n)return null;var r=$;return r=Pe(e,e===Wb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r===0?null:(Xc(e,r,t),Kl(e,yp()),e.callbackNode!=null&&e.callbackNode===n?ql.bind(null,e):null)}function Jl(e,t){if(El())return null;tv=nv,nv=!1,Xc(e,t,!0)}function Yl(e){e!==dS&&e!==null&&gp(e)}function Xl(){W.actQueue!==null&&W.actQueue.push(function(){return Gl(),null}),tC(function(){(Ub&(Pb|Fb))===Nb?Gl():hp(xp,Wl)})}function Zl(){if(uS===0){var e=av;e===0&&(e=Fp,Fp<<=1,!(Fp&261888)&&(Fp=256)),uS=e}return uS}function Ql(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(O(e,`action`),on(``+e))}function $l(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function eu(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ql((i[Wp]||null).action),o=r.submitter;o&&(t=(t=o[Wp]||null)?Ql(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ih(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(uS!==0){var e=o?$l(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),Eo(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?$l(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),Eo(n,t,a,e))},currentTarget:i}]})}}function tu(e,t,n){e.currentTarget=n;try{t(e)}catch(e){lg(e)}e.currentTarget=null}function nu(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?tu(a,s,l):D(c,tu,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?tu(a,s,l):D(c,tu,a,s,l),i=c}}}}function ru(e,t){pS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Kp];n===void 0&&(n=t[Kp]=new Set);var r=e+`__bubble`;n.has(r)||(ou(t,e,2,!1),n.add(r))}function iu(e,t,n){pS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),ou(n,e,r,t)}function au(e){if(!e[mS]){e[mS]=!0,Zp.forEach(function(t){t!==`selectionchange`&&(pS.has(t)||iu(t,!1,e),iu(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mS]||(t[mS]=!0,iu(`selectionchange`,!1,t))}}function ou(e,t,n,r){switch(cf(t)){case Rp:var i=nf;break;case zp:i=rf;break;default:i=af}n=i.bind(null,t,n,e),i=void 0,!Qm||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function su(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Ze(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}un(function(){var r=a,i=cn(n),o=[];a:{var s=rg.get(e);if(s!==void 0){var c=ih,l=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:c=xh;break;case`focusin`:l=`focus`,c=ph;break;case`focusout`:l=`blur`,c=ph;break;case`beforeblur`:case`afterblur`:c=ph;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=dh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=fh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Ch;break;case Xh:case Zh:case Qh:c=mh;break;case ng:c=wh;break;case`scroll`:case`scrollend`:c=oh;break;case`wheel`:c=Th;break;case`copy`:case`cut`:case`paste`:c=hh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Sh;break;case`toggle`:case`beforetoggle`:c=Eh}var u=!!(t&4),d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=dn(p,f),h!=null&&u.push(cu(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==qm&&(l=n.relatedTarget||n.fromElement)&&(Ze(l)||l[Gp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ze(l):null,l!==null&&(d=x(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=dh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Sh,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:$e(c),m=l==null?s:$e(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ze(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=uu,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&du(o,s,c,u,!1),l!==null&&d!==null&&du(o,d,l,u,!0)}}a:{if(s=r?$e(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=Dn;else if(Sn(s)){if(Bh)_=Mn;else{_=An;var v=M}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&$t(r.elementType)&&(_=Dn):_=jn;if(_&&=_(e,r)){wn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&yt(s,`number`,s.value)}switch(v=r?$e(r):window,e){case`focusin`:(Sn(v)||v.contentEditable===`true`)&&(Uh=v,Wh=r,Gh=null);break;case`focusout`:Gh=Wh=Uh=null;break;case`mousedown`:Kh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kh=!1,Bn(o,n,i);break;case`selectionchange`:if(Hh)break;case`keydown`:case`keyup`:Bn(o,n,i)}var y;if(kh)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Ih?vn(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===Oh&&(b=`onCompositionStart`);b&&(Mh&&n.locale!==`ko`&&(Ih||b!==`onCompositionStart`?b===`onCompositionEnd`&&Ih&&(y=fn()):(eh=i,th=`value`in eh?eh.value:eh.textContent,Ih=!0)),v=lu(r,b),0<v.length&&(b=new gh(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=yn(n),y!==null&&(b.data=y)))),(y=jh?bn(e,n):xn(e,n))&&(b=lu(r,`onBeforeInput`),0<b.length&&(v=new _h(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),eu(o,e,r,n,i)}nu(o,t)})}function cu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lu(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(cu(e,i,a)),i=dn(e,t),i!=null&&r.push(cu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function uu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function du(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(cu(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(cu(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function fu(e,t){nn(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Bm||(Bm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Qp,possibleRegistrationNames:$p};$t(e)||typeof t.is==`string`||an(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function pu(e,t,n,r){t!==n&&(n=_u(n),_u(t)!==n&&(r[e]=t))}function mu(e,t,n){t.forEach(function(t){n[Cu(t)]=t===`style`?wu(e):e.getAttribute(t)})}function hu(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function gu(e,t){return e=e.namespaceURI===Mm||e.namespaceURI===Nm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function _u(e){return Ee(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,Te(e)),De(e)),(typeof e==`string`?e:``+e).replace(CS,`
180
- `).replace(wS,``)}function vu(e,t){return t=_u(t),_u(e)===t}function yu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Jt(r,t,!1),t===`body`||t===`textarea`&&r===``||Yt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Jt(``+r,t,!1),t!==`body`&&Yt(e,``+r));break;case`className`:st(e,`class`,r);break;case`tabIndex`:st(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:st(e,n,r);break;case`style`:Qt(e,r,a);break;case`data`:if(t!==`object`){st(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}O(r,n),r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||bS||(bS=!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.`)),i.target==null||yS||(yS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||_S?t!==`button`||i.type==null||i.type===`submit`||_S?typeof r==`function`&&(i.name==null||vS||(vS=!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.`)),i.formEncType==null&&i.formMethod==null||bS||(bS=!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.`)),i.formTarget==null||yS||(yS=!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.`))):(_S=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(_S=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&yu(e,t,`name`,i.name,i,null),yu(e,t,`formEncType`,i.formEncType,i,null),yu(e,t,`formMethod`,i.formMethod,i,null),yu(e,t,`formTarget`,i.formTarget,i,null)):(yu(e,t,`encType`,i.encType,i,null),yu(e,t,`method`,i.method,i,null),yu(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}O(r,n),r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&hu(n,r),e.onclick=sn);break;case`onScroll`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}O(r,n),n=on(``+r),e.setAttributeNS(TS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(O(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||SS[n]||(SS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(O(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(O(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(O(r,n),e.setAttribute(n,r));break;case`popover`:ru(`beforetoggle`,e),ru(`toggle`,e),ot(e,`popover`,r);break;case`xlinkActuate`:ct(e,TS,`xlink:actuate`,r);break;case`xlinkArcrole`:ct(e,TS,`xlink:arcrole`,r);break;case`xlinkRole`:ct(e,TS,`xlink:role`,r);break;case`xlinkShow`:ct(e,TS,`xlink:show`,r);break;case`xlinkTitle`:ct(e,TS,`xlink:title`,r);break;case`xlinkType`:ct(e,TS,`xlink:type`,r);break;case`xmlBase`:ct(e,ES,`xml:base`,r);break;case`xmlLang`:ct(e,ES,`xml:lang`,r);break;case`xmlSpace`:ct(e,ES,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),ot(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:xS||typeof r!=`object`||!r||(xS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=en(n),ot(e,n,r)):Qp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&hu(n,r)}}function bu(e,t,n,r,i,a){switch(n){case`style`:Qt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&hu(n,r),ru(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&hu(n,r),e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(Qp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&hu(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Wp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):ot(e,n,r)}}}function xu(e,t,n){switch(fu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:ru(`error`,e),ru(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yu(e,t,a,o,n,null)}}i&&yu(e,t,`srcSet`,n.srcSet,n,null),r&&yu(e,t,`src`,n.src,n,null);return;case`input`:rt(`input`,n),ru(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:yu(e,t,r,u,n,null)}}gt(e,n),vt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in rt(`select`,n),ru(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:yu(e,t,i,s,n,null)}St(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&A(e,!!r,n,!0):A(e,!!r,t,!1);return;case`textarea`:for(o in rt(`textarea`,n),ru(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:yu(e,t,o,s,n,null)}Ct(e,n),Tt(e,r,i,a);return;case`option`:for(c in bt(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:yu(e,t,c,r,n,null)}return;case`dialog`:ru(`beforetoggle`,e),ru(`toggle`,e),ru(`cancel`,e),ru(`close`,e);break;case`iframe`:case`object`:ru(`load`,e);break;case`video`:case`audio`:for(r=0;r<fS.length;r++)ru(fS[r],e);break;case`image`:ru(`error`,e),ru(`load`,e);break;case`details`:ru(`toggle`,e);break;case`embed`:case`source`:case`link`:ru(`error`,e),ru(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yu(e,t,l,r,n,null)}return;default:if($t(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&bu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&yu(e,t,s,r,n,null))}function Su(e,t,n,r){switch(fu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||yu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&yu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||gS||(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`),gS=!0),!t||r||hS||(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`),hS=!0),_t(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||yu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&yu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?A(e,!!t,t?[]:``,!1):A(e,!!t,r,!0)):A(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:yu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&yu(e,t,o,i,r,a)}wt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:yu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:yu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&yu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:yu(e,t,l,f,r,p)}return;default:if($t(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&bu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||bu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&yu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||yu(e,t,d,f,r,p)}function Cu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function wu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Tu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(Oe(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||jm.has(a)?(Oe(o,a),r+=i+a.replace(xm,`-$1`).toLowerCase().replace(Sm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(xm,`-$1`).toLowerCase().replace(Sm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=_u(r),_u(t)!==r&&(n.style=wu(e)))}}function Eu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(O(r,t),e===``+r)return}pu(t,e,r,a)}function Du(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}pu(t,e,r,a)}function Ou(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(O(r,n),e===``+r)return}pu(t,e,r,a)}function ku(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(O(r,t),e===``+r))return}pu(t,e,r,a)}function Au(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(O(r,t),n=on(``+r),e===n)return}pu(t,e,r,a)}function ju(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if($t(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(Qp.hasOwnProperty(c))typeof l!=`function`&&hu(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||pu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=gu(e,l),pu(c,o,l,i));continue;case`style`:a.delete(c),Tu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=at(e,`class`,l),pu(`className`,o,l,i);continue;default:r.context===US&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=at(e,c,l),pu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(Qp.hasOwnProperty(l))typeof c!=`function`&&hu(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||pu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=gu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Eu(e,l,`class`,c,a,i);continue;case`tabIndex`:Eu(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Tu(e,c,i);continue;case`multiple`:a.delete(l),pu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),pu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),pu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),pu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Au(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}if(o===DS){a.delete(l.toLowerCase()),pu(l,`function`,c,i);continue}Au(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Au(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Ou(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Ou(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Ou(e,l,l,c,a,i);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`:Du(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(O(c,o),s===``+c)break a}pu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(O(c,o),s===``+c))break a}pu(o,s,c,d)}continue;case`rowSpan`:ku(e,l,`rowspan`,c,a,i);continue;case`start`:ku(e,l,l,c,a,i);continue;case`xHeight`:Eu(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Eu(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Eu(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Eu(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Eu(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Eu(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Eu(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Eu(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Eu(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Eu(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||SS[l]||(SS[l]=!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.",l)),Du(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=en(l),o=!1,r.context===US&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Fm.hasOwnProperty(u)&&Fm[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,it(d)){if(u.hasAttribute(d))u=u.getAttribute(d),O(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}}else s=void 0;o||pu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&mu(e,a,i),Object.keys(i).length===0?null:i}function Mu(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Nu(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Pu(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Nu(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Nu(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Fu(e){return e.nodeType===9?e:e.ownerDocument}function Iu(e){switch(e){case Nm:return WS;case Mm:return GS;default:return US}}function Lu(e,t){if(e===US)switch(t){case`svg`:return WS;case`math`:return GS;default:return US}return e===WS&&t===`foreignObject`?US:e}function Ru(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function zu(){var e=window.event;return e&&e.type===`popstate`?e!==YS&&(YS=e,!0):(YS=null,!1)}function Bu(){var e=window.event;return e&&e!==XS?e.type:null}function Vu(){var e=window.event;return e&&e!==XS?e.timeStamp:-1.1}function Hu(e){setTimeout(function(){throw e})}function Uu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Wu(){}function Gu(e,t,n,r){Su(e,t,n,r),e[Wp]=r}function Ku(e){Yt(e,``)}function qu(e,t,n){e.nodeValue=n}function Ju(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Wp]||null;if(t!==null){var n=Qe(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,D(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,D(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Yu(e){return e===`head`}function Xu(e,t){e.removeChild(t)}function Zu(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function Qu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===MS||n===AS){if(r===0){e.removeChild(i),vf(t);return}r--}else if(n===jS||n===NS||n===PS||n===FS||n===kS)r++;else if(n===IS)Cd(e.ownerDocument.documentElement);else if(n===RS){n=e.ownerDocument.head,Cd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Xp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===LS&&Cd(e.ownerDocument.body)}n=i}while(n);vf(t)}function $u(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===MS){if(e===0)break;e--}else n!==jS&&n!==NS&&n!==PS&&n!==FS||e++}n=r}while(n)}function ed(e){$u(e,!0)}function td(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function nd(e){e.nodeValue=``}function rd(e){$u(e,!1)}function id(e,t){t=t[HS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function ad(e,t){e.nodeValue=t}function od(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:od(n),Xe(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function sd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){O(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Xp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=pd(e.nextSibling),e===null)break}return null}function cd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=pd(e.nextSibling),e===null))return null;return e}function ld(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=pd(e.nextSibling),e===null))return null;return e}function ud(e){return e.data===NS||e.data===PS}function dd(e){return e.data===FS||e.data===NS&&e.ownerDocument.readyState!==VS}function fd(e,t){var n=e.ownerDocument;if(e.data===PS)e._reactRetry=t;else if(e.data!==NS||n.readyState!==VS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function pd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===jS||t===FS||t===NS||t===PS||t===kS||t===zS||t===BS)break;if(t===MS||t===AS)return null}}return e}function md(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Cu(a.name)]=a.name.toLowerCase()===`style`?wu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===kS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function hd(e,t,n){return n===null||!0!==n[OS]?(e.nodeValue===t?e=null:(t=_u(t),e=_u(e.nodeValue)===t?null:e.nodeValue),e):null}function gd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===MS||n===AS){if(t===0)return pd(e.nextSibling);t--}else n!==jS&&n!==FS&&n!==NS&&n!==PS&&n!==kS||t++}e=e.nextSibling}return null}function _d(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===jS||n===FS||n===NS||n===PS||n===kS){if(t===0)return e;t--}else n!==MS&&n!==AS||t++}e=e.previousSibling}return null}function vd(e){vf(e)}function yd(e){vf(e)}function bd(e){vf(e)}function xd(e,t,n,r,i){switch(i&&qt(e,r.ancestorInfo),t=Fu(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function Sd(e,t,n,r){if(!n[Gp]&&Qe(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);xu(n,e,t),n[Up]=r,n[Wp]=t}function Cd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xe(e)}function wd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Td(e,t,n){var r=dC;if(r&&typeof t==`string`&&t){var i=ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),lC.has(i)||(lC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),xu(t,`link`,e),et(t),r.head.appendChild(t)))}}function Ed(e,t,n,r){var i=(i=Qf.current)?wd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Od(n.href),t=k(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Od(n.href);var a=k(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:rC,preload:null}},a.set(e,o),(a=i.querySelector(kd(e)))&&!a._p&&(o.instance=a,o.state.loading=iC|sC),!cC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};cC.set(e,s),a||jd(i,e,s,o.state)}if(t&&r===null)throw n=`
181
-
182
- - `+Dd(t)+`
183
- + `+Dd(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
184
-
185
- - `+Dd(t)+`
186
- + `+Dd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Md(n),t=k(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Dd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):mp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):mp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):mp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Od(e){return`href="`+ht(e)+`"`}function kd(e){return`link[rel="stylesheet"][`+e+`]`}function Ad(e){return Ef({},e,{"data-precedence":e.precedence,precedence:null})}function jd(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=iC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=iC}),t.addEventListener(`error`,function(){return r.loading|=aC}),xu(t,`link`,n),et(t),e.head.appendChild(t))}function Md(e){return`[src="`+ht(e)+`"]`}function Nd(e){return`script[async]`+e}function Pd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+ht(n.href)+`"]`);if(r)return t.instance=r,et(r),r;var i=Ef({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),et(r),xu(r,`style`,i),Fd(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Od(n.href);var a=e.querySelector(kd(i));if(a)return t.state.loading|=sC,t.instance=a,et(a),a;r=Ad(n),(i=cC.get(i))&&Id(r,i),a=(e.ownerDocument||e).createElement(`link`),et(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),xu(a,`link`,r),t.state.loading|=sC,Fd(a,n.precedence,e),t.instance=a;case`script`:return a=Md(n.src),(i=e.querySelector(Nd(a)))?(t.instance=i,et(i),i):(r=n,(i=cC.get(a))&&(r=Ef({},n),Ld(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),et(i),xu(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&sC)===rC&&(r=t.instance,t.state.loading|=sC,Fd(r,n.precedence,e));return t.instance}function Fd(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Id(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Ld(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Rd(e,t,n){if(fC===null){var r=new Map,i=fC=new Map;i.set(n,r)}else i=fC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Xp]||a[Up]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Nm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function zd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Bd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===WS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Mu(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Vd(e){return e.type!==`stylesheet`||(e.state.loading&oC)!==rC}function Hd(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&sC)===rC){if(n.instance===null){var i=Od(r.href),a=t.querySelector(kd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Wd.bind(e),t.then(e,e)),n.state.loading|=sC,n.instance=a,et(a);return}a=t.ownerDocument||t,r=Ad(r),(i=cC.get(i))&&Id(r,i),a=a.createElement(`link`),et(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),xu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&oC)===rC&&(e.count++,n=Wd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Ud(e,t){return e.stylesheets&&e.count===0&&Gd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},pC+t);0<e.imgBytes&&gC===0&&(gC=125*Pu()*hC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>gC?50:mC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Gd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vC=new Map,t.forEach(Kd,e),vC=null,Wd.call(e))}function Kd(e,t){if(!(t.state.loading&sC)){var n=vC.get(e);if(n)var r=n.get(_C);else{n=new Map,vC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(_C,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(_C,i),n.set(o,i),this.count++,r=Wd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=sC}}function qd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=$S,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Jd(e,t,n,r,i,a,o,s,c,l,u,d){return e=new qd(e,t,n,o,c,l,u,d,s),t=Ig,!0===a&&(t|=Lg|Rg),t|=K,a=g(3,null,null,t),e.current=a,a.stateNode=e,t=ri(),ii(t),e.pooledCache=t,ii(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Ji(a),e}function Yd(e){return e?(e=Ng,e):Ng}function Xd(e,t,n,r,i,a){if(kp&&typeof kp.onScheduleFiberRoot==`function`)try{kp.onScheduleFiberRoot(Op,r,n)}catch(e){Ap||(Ap=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Yd(i),r.context===null?r.context=i:r.pendingContext=i,pp&&fp!==null&&!EC&&(EC=!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.
187
-
188
- Check the render method of %s.`,w(fp)||`Unknown`)),r=Xi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Zi(e,r,t),n!==null&&(F(t,`root.render()`,null),Yc(n,e,t),Qi(n,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qd(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function $d(e){if(e.tag===13||e.tag===31){var t=dr(e,67108864);t!==null&&Yc(t,e,67108864),Qd(e,67108864)}}function ef(e){if(e.tag===13||e.tag===31){var t=qc(e);t=We(t);var n=dr(e,t);n!==null&&Yc(n,e,t),Qd(e,t)}}function tf(){return fp}function nf(e,t,n,r){var i=W.T;W.T=null;var a=Gf.p;try{Gf.p=Rp,af(e,t,n,r)}finally{Gf.p=a,W.T=i}}function rf(e,t,n,r){var i=W.T;W.T=null;var a=Gf.p;try{Gf.p=zp,af(e,t,n,r)}finally{Gf.p=a,W.T=i}}function af(e,t,n,r){if(LC){var i=of(r);if(i===null)su(e,t,r,RC,n),lf(e,r);else if(df(i,e,t,n,r))r.stopPropagation();else if(lf(e,r),t&4&&-1<KC.indexOf(e)){for(;i!==null;){var a=Qe(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ne(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Mp(o);s.entanglements[1]|=c,o&=~c}Hl(a),(Ub&(Pb|Fb))===Nb&&(yx=yp()+bx,Ul(0,!1))}}break;case 31:case 13:s=dr(a,2),s!==null&&Yc(s,a,2),el(),Qd(a,2)}if(a=of(r),a===null&&su(e,t,r,RC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else su(e,t,r,null,n)}}function of(e){return e=cn(e),sf(e)}function sf(e){if(RC=null,e=Ze(e),e!==null){var t=x(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ee(t),e!==null)return e;e=null}else if(n===31){if(e=te(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return RC=e,null}function cf(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return Rp;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 zp;case`message`:switch(bp()){case xp:return Rp;case Sp:return zp;case Cp:case wp:return Bp;case Tp:return Vp;default:return Bp}default:return Bp}}function lf(e,t){switch(e){case`focusin`:case`focusout`:BC=null;break;case`dragenter`:case`dragleave`:VC=null;break;case`mouseover`:case`mouseout`:HC=null;break;case`pointerover`:case`pointerout`:UC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:WC.delete(t.pointerId)}}function uf(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Qe(t),t!==null&&$d(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function df(e,t,n,r,i){switch(t){case`focusin`:return BC=uf(BC,e,t,n,r,i),!0;case`dragenter`:return VC=uf(VC,e,t,n,r,i),!0;case`mouseover`:return HC=uf(HC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return UC.set(a,uf(UC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,WC.set(a,uf(WC.get(a)||null,e,t,n,r,i)),!0}return!1}function ff(e){var t=Ze(e.target);if(t!==null){var n=x(t);if(n!==null){if(t=n.tag,t===13){if(t=ee(n),t!==null){e.blockedOn=t,Ye(e.priority,function(){ef(n)});return}}else if(t===31){if(t=te(n),t!==null){e.blockedOn=t,Ye(e.priority,function(){ef(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=of(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;qm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),qm=i,n.target.dispatchEvent(r),qm===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.`),qm=null}else return t=Qe(n),t!==null&&$d(t),e.blockedOn=n,!1;t.shift()}return!0}function mf(e,t,n){pf(e)&&n.delete(t)}function hf(){zC=!1,BC!==null&&pf(BC)&&(BC=null),VC!==null&&pf(VC)&&(VC=null),HC!==null&&pf(HC)&&(HC=null),UC.forEach(mf),WC.forEach(mf)}function gf(e,t){e.blockedOn===t&&(e.blockedOn=null,zC||(zC=!0,Cf.unstable_scheduleCallback(Cf.unstable_NormalPriority,hf)))}function _f(e){qC!==e&&(qC=e,Cf.unstable_scheduleCallback(Cf.unstable_NormalPriority,function(){qC===e&&(qC=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(sf(r||n)===null)continue;break}var a=Qe(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),Eo(a,n,r,i))}}))}function vf(e){function t(t){return gf(t,e)}BC!==null&&gf(BC,e),VC!==null&&gf(VC,e),HC!==null&&gf(HC,e),UC.forEach(t),WC.forEach(t);for(var n=0;n<GC.length;n++){var r=GC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<GC.length&&(n=GC[0],n.blockedOn===null);)ff(n),n.blockedOn===null&&GC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Wp]||null;if(typeof a==`function`)o||_f(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Wp]||null)s=o.formAction;else if(sf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),_f(n)}}}function yf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function bf(e){this._internalRoot=e}function xf(e){this._internalRoot=e}function Sf(e){e[Gp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Cf=p(),wf=d(),Tf=h(),Ef=Object.assign,Df=Symbol.for(`react.element`),Of=Symbol.for(`react.transitional.element`),kf=Symbol.for(`react.portal`),Af=Symbol.for(`react.fragment`),jf=Symbol.for(`react.strict_mode`),Mf=Symbol.for(`react.profiler`),Nf=Symbol.for(`react.consumer`),Pf=Symbol.for(`react.context`),Ff=Symbol.for(`react.forward_ref`),If=Symbol.for(`react.suspense`),Lf=Symbol.for(`react.suspense_list`),Rf=Symbol.for(`react.memo`),zf=Symbol.for(`react.lazy`),Bf=Symbol.for(`react.activity`),Vf=Symbol.for(`react.memo_cache_sentinel`),Hf=Symbol.iterator,Uf=Symbol.for(`react.client.reference`),Wf=Array.isArray,W=wf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Gf=Tf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kf=Object.freeze({pending:!1,data:null,method:null,action:null}),qf=[],Jf=[],Yf=-1,Xf=T(null),Zf=T(null),Qf=T(null),$f=T(null),ep=0,tp,np,rp,ip,ap,op,sp;pe.__reactDisabledLog=!0;var cp,lp,up=!1,dp=new(typeof WeakMap==`function`?WeakMap:Map),fp=null,pp=!1,mp=Object.prototype.hasOwnProperty,hp=Cf.unstable_scheduleCallback,gp=Cf.unstable_cancelCallback,_p=Cf.unstable_shouldYield,vp=Cf.unstable_requestPaint,yp=Cf.unstable_now,bp=Cf.unstable_getCurrentPriorityLevel,xp=Cf.unstable_ImmediatePriority,Sp=Cf.unstable_UserBlockingPriority,Cp=Cf.unstable_NormalPriority,wp=Cf.unstable_LowPriority,Tp=Cf.unstable_IdlePriority,Ep=Cf.log,Dp=Cf.unstable_setDisableYieldValue,Op=null,kp=null,Ap=!1,jp=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Mp=Math.clz32?Math.clz32:Me,Np=Math.log,Pp=Math.LN2,Fp=256,Ip=262144,Lp=4194304,Rp=2,zp=8,Bp=32,Vp=268435456,Hp=Math.random().toString(36).slice(2),Up=`__reactFiber$`+Hp,Wp=`__reactProps$`+Hp,Gp=`__reactContainer$`+Hp,Kp=`__reactEvents$`+Hp,qp=`__reactListeners$`+Hp,Jp=`__reactHandles$`+Hp,Yp=`__reactResources$`+Hp,Xp=`__reactMarker$`+Hp,Zp=new Set,Qp={},$p={},em={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},tm=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]*$`),nm={},rm={},im=/[\n"\\]/g,am=!1,om=!1,sm=!1,cm=!1,lm=!1,um=!1,dm=[`value`,`defaultValue`],fm=!1,pm=/["'&<>\n\t]|^\s|\s$/,mm=`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(` `),hm=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),gm=hm.concat([`button`]),_m=`dd dt li option optgroup p rp rt`.split(` `),vm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ym={},bm={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`]},xm=/([A-Z])/g,Sm=/^ms-/,Cm=/^(?:webkit|moz|o)[A-Z]/,wm=/^-ms-/,Tm=/-(.)/g,Em=/;\s*$/,Dm={},Om={},km=!1,Am=!1,jm=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(` `)),Mm=`http://www.w3.org/1998/Math/MathML`,Nm=`http://www.w3.org/2000/svg`,Pm=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`]]),Fm={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`},Im={"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},Lm={},Rm=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]*$`),zm=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]*$`),Bm=!1,Vm={},Hm=/^on./,Um=/^on[^A-Z]/,Wm=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]*$`),Gm=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]*$`),Km=/^[\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,qm=null,Jm=null,Ym=null,Xm=!1,Zm=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Qm=!1;if(Zm)try{var $m={};Object.defineProperty($m,"passive",{get:function(){Qm=!0}}),window.addEventListener(`test`,$m,$m),window.removeEventListener(`test`,$m,$m)}catch{Qm=!1}var eh=null,th=null,nh=null,rh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ih=hn(rh),ah=Ef({},rh,{view:0,detail:0}),oh=hn(ah),sh,ch,lh,uh=Ef({},ah,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==lh&&(lh&&e.type===`mousemove`?(sh=e.screenX-lh.screenX,ch=e.screenY-lh.screenY):ch=sh=0,lh=e),sh)},movementY:function(e){return`movementY`in e?e.movementY:ch}}),dh=hn(uh),fh=hn(Ef({},uh,{dataTransfer:0})),ph=hn(Ef({},ah,{relatedTarget:0})),mh=hn(Ef({},rh,{animationName:0,elapsedTime:0,pseudoElement:0})),hh=hn(Ef({},rh,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),gh=hn(Ef({},rh,{data:0})),_h=gh,vh={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},yh={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`},xh=hn(Ef({},ah,{key:function(e){if(e.key){var t=vh[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?yh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Sh=hn(Ef({},uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ch=hn(Ef({},ah,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),wh=hn(Ef({},rh,{propertyName:0,elapsedTime:0,pseudoElement:0})),Th=hn(Ef({},uh,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Eh=hn(Ef({},rh,{newState:0,oldState:0})),Dh=[9,13,27,32],Oh=229,kh=Zm&&`CompositionEvent`in window,Ah=null;Zm&&`documentMode`in document&&(Ah=document.documentMode);var jh=Zm&&`TextEvent`in window&&!Ah,Mh=Zm&&(!kh||Ah&&8<Ah&&11>=Ah),Nh=32,Ph=String.fromCharCode(Nh),Fh=!1,Ih=!1,Lh={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},Rh=null,zh=null,Bh=!1;Zm&&(Bh=Cn(`input`)&&(!document.documentMode||9<document.documentMode));var Vh=typeof Object.is==`function`?Object.is:Nn,Hh=Zm&&`documentMode`in document&&11>=document.documentMode,Uh=null,Wh=null,Gh=null,Kh=!1,qh={animationend:Vn(`Animation`,`AnimationEnd`),animationiteration:Vn(`Animation`,`AnimationIteration`),animationstart:Vn(`Animation`,`AnimationStart`),transitionrun:Vn(`Transition`,`TransitionRun`),transitionstart:Vn(`Transition`,`TransitionStart`),transitioncancel:Vn(`Transition`,`TransitionCancel`),transitionend:Vn(`Transition`,`TransitionEnd`)},Jh={},Yh={};Zm&&(Yh=document.createElement(`div`).style,`AnimationEvent`in window||(delete qh.animationend.animation,delete qh.animationiteration.animation,delete qh.animationstart.animation),`TransitionEvent`in window||delete qh.transitionend.transition);var Xh=Hn(`animationend`),Zh=Hn(`animationiteration`),Qh=Hn(`animationstart`),$h=Hn(`transitionrun`),eg=Hn(`transitionstart`),tg=Hn(`transitioncancel`),ng=Hn(`transitionend`),rg=new Map,ig=`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(` `);ig.push(`scrollEnd`);var ag=0;if(typeof performance==`object`&&typeof performance.now==`function`)var og=performance,sg=function(){return og.now()};else{var cg=Date;sg=function(){return cg.now()}}var lg=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ug=`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.`,dg=0,fg=1,pg=2,mg=3,hg=`–\xA0`,gg=`+\xA0`,_g=` \xA0`,vg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,yg=`Components ⚛`,bg=`Scheduler ⚛`,xg=`Blocking`,Sg=!1,Cg={color:`primary`,properties:null,tooltipText:``,track:yg},wg={start:-0,end:-0,detail:{devtools:Cg}},Tg=[`Changed Props`,``],Eg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Dg=[`Changed Props`,Eg],Og=1,kg=2,Ag=[],jg=0,Mg=0,Ng={};Object.freeze(Ng);var Pg=null,Fg=null,G=0,Ig=1,K=2,Lg=8,Rg=16,zg=32,Bg=!1;try{Object.preventExtensions({})}catch{Bg=!0}var Vg=new WeakMap,Hg=[],Ug=0,Wg=null,Gg=0,Kg=[],qg=0,Jg=null,Yg=1,Xg=``,Zg=null,Qg=null,$g=!1,e_=!1,t_=null,n_=null,r_=!1,i_=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.`),a_=T(null),o_=T(null),s_={},c_=null,l_=null,u_=!1,d_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},f_=Cf.unstable_scheduleCallback,p_=Cf.unstable_NormalPriority,m_={$$typeof:Pf,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},h_=Cf.unstable_now,g_=console.createTask?console.createTask:function(){return null},__=1,v_=2,y_=-0,b_=-0,x_=-0,S_=null,C_=-1.1,w_=-0,T_=-0,q=-1.1,J=-1.1,E_=null,D_=!1,O_=-0,k_=-1.1,A_=null,j_=0,M_=null,N_=null,P_=-1.1,F_=null,I_=-1.1,L_=-1.1,R_=-0,z_=-1.1,B_=-1.1,V_=0,H_=null,U_=null,W_=null,G_=-1.1,K_=null,q_=-1.1,J_=-1.1,Y_=-0,X_=-0,Z_=0,Q_=null,$_=0,ev=-1.1,tv=!1,nv=!1,rv=null,iv=0,av=0,ov=null,sv=W.S;W.S=function(e,t){if(_x=yp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>z_&&0>B_){z_=h_();var n=Vu(),r=Bu();(n!==q_||r!==K_)&&(q_=-1.1),G_=n,K_=r}Ci(e,t)}sv!==null&&sv(e,t)};var cv=T(null),lv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],gv=new Set;lv.recordUnsafeLifecycleWarnings=function(e,t){gv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&uv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillMount==`function`&&dv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&fv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&pv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&mv.push(e),e.mode&Lg&&typeof t.UNSAFE_componentWillUpdate==`function`&&hv.push(e))},lv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uv.length&&(uv.forEach(function(t){e.add(w(t)||`Component`),gv.add(t.type)}),uv=[]);var t=new Set;0<dv.length&&(dv.forEach(function(e){t.add(w(e)||`Component`),gv.add(e.type)}),dv=[]);var n=new Set;0<fv.length&&(fv.forEach(function(e){n.add(w(e)||`Component`),gv.add(e.type)}),fv=[]);var r=new Set;0<pv.length&&(pv.forEach(function(e){r.add(w(e)||`Component`),gv.add(e.type)}),pv=[]);var i=new Set;0<mv.length&&(mv.forEach(function(e){i.add(w(e)||`Component`),gv.add(e.type)}),mv=[]);var a=new Set;if(0<hv.length&&(hv.forEach(function(e){a.add(w(e)||`Component`),gv.add(e.type)}),hv=[]),0<t.size){var o=m(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
-
190
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
191
-
192
- Please update the following components: %s`,o)}0<r.size&&(o=m(r),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.
193
-
194
- * Move data fetching code or side effects to componentDidUpdate.
195
- * 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
196
-
197
- Please update the following components: %s`,o)),0<a.size&&(o=m(a),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.
198
-
199
- * Move data fetching code or side effects to componentDidUpdate.
200
-
201
- Please update the following components: %s`,o)),0<e.size&&(o=m(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
-
203
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
204
- * 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.
205
-
206
- Please update the following components: %s`,o)),0<n.size&&(o=m(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
207
-
208
- * Move data fetching code or side effects to componentDidUpdate.
209
- * 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
210
- * 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.
211
-
212
- Please update the following components: %s`,o)),0<i.size&&(o=m(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
213
-
214
- * Move data fetching code or side effects to componentDidUpdate.
215
- * 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.
216
-
217
- Please update the following components: %s`,o))};var _v=new Map,vv=new Set;lv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Lg&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!vv.has(e.type)&&(r=_v.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],_v.set(n,r)),r.push(e))},lv.flushLegacyContextWarning=function(){_v.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(w(e)||`Component`),vv.add(e.type)});var r=m(n);D(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
218
-
219
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
220
-
221
- Please update the following components: %s
222
-
223
- Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},lv.discardPendingWarnings=function(){uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],_v=new Map};var yv={react_stack_bottom_frame:function(e,t,n){var r=pp;pp=!0;try{return e(t,n)}finally{pp=r}}},bv=yv.react_stack_bottom_frame.bind(yv),xv={react_stack_bottom_frame:function(e){var t=pp;pp=!0;try{return e.render()}finally{pp=t}}},Sv=xv.react_stack_bottom_frame.bind(xv),Cv={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){kl(e,e.return,t)}}},wv=Cv.react_stack_bottom_frame.bind(Cv),Tv={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){kl(e,e.return,t)}}},Ev=Tv.react_stack_bottom_frame.bind(Tv),Dv={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Ov=Dv.react_stack_bottom_frame.bind(Dv),kv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){kl(e,t,n)}}},Av=kv.react_stack_bottom_frame.bind(kv),jv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Mv=jv.react_stack_bottom_frame.bind(jv),Nv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){kl(e,t,n)}}},Pv=Nv.react_stack_bottom_frame.bind(Nv),Fv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Iv=Fv.react_stack_bottom_frame.bind(Fv),Lv=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`."),Rv=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.`),zv=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."),Bv={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.`)}},Vv=null,Hv=!1,Uv=null,Wv=0,Y=null,Gv,Kv=Gv=!1,qv={},Jv={},Yv={};f=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=w(e),i=r||`null`;if(!qv[i]){qv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=w(e))&&(a=`
224
-
225
- Check the render method of \``+i+"`."),a||r&&(a=`
226
-
227
- Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=w(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),D(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Xv=Ki(!0),Zv=Ki(!1),Qv=0,$v=1,ey=2,ty=3,ny=!1,ry=!1,iy=null,ay=!1,oy=T(null),sy=T(0),cy=T(null),ly=null,uy=1,dy=2,fy=T(0),py=0,my=1,hy=2,gy=4,_y=8,vy,yy=new Set,by=new Set,xy=new Set,Sy=new Set,Cy=0,X=null,wy=null,Ty=null,Ey=!1,Dy=!1,Oy=!1,ky=0,Ay=0,jy=null,My=0,Ny=25,Z=null,Py=null,Fy=-1,Iy=!1,Ly={readContext:P,use:Da,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useLayoutEffect:ga,useInsertionEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useSyncExternalStore:ga,useId:ga,useHostTransitionStatus:ga,useFormState:ga,useActionState:ga,useOptimistic:ga,useMemoCache:ga,useCacheRefresh:ga};Ly.useEffectEvent=ga;var Ry=null,zy=null,By=null,Vy=null,Hy=null,Uy=null,Wy=null;Ry={readContext:function(e){return P(e)},use:Da,useCallback:function(e,t){return Z=`useCallback`,L(),ma(t),ho(e,t)},useContext:function(e){return Z=`useContext`,L(),P(e)},useEffect:function(e,t){return Z=`useEffect`,L(),ma(t),oo(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,L(),ma(n),po(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,L(),ma(t),io(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,L(),ma(t),uo(e,t)},useMemo:function(e,t){Z=`useMemo`,L(),ma(t);var n=W.H;W.H=Hy;try{return _o(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,L();var r=W.H;W.H=Hy;try{return Aa(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,L(),ro(e)},useState:function(e){Z=`useState`,L();var t=W.H;W.H=Hy;try{return Ba(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,L()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,L(),yo(e,t)},useTransition:function(){return Z=`useTransition`,L(),ko()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,L(),Na(e,t,n)},useId:function(){return Z=`useId`,L(),No()},useFormState:function(e,t){return Z=`useFormState`,L(),ha(),U(e,t)},useActionState:function(e,t){return Z=`useActionState`,L(),U(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,L(),Va(e)},useHostTransitionStatus:Mo,useMemoCache:Oa,useCacheRefresh:function(){return Z=`useCacheRefresh`,L(),Po()},useEffectEvent:function(e){return Z=`useEffectEvent`,L(),co(e)}},zy={readContext:function(e){return P(e)},use:Da,useCallback:function(e,t){return Z=`useCallback`,R(),ho(e,t)},useContext:function(e){return Z=`useContext`,R(),P(e)},useEffect:function(e,t){return Z=`useEffect`,R(),oo(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,R(),po(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,R(),io(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,R(),uo(e,t)},useMemo:function(e,t){Z=`useMemo`,R();var n=W.H;W.H=Hy;try{return _o(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,R();var r=W.H;W.H=Hy;try{return Aa(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,R(),ro(e)},useState:function(e){Z=`useState`,R();var t=W.H;W.H=Hy;try{return Ba(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,R(),yo(e,t)},useTransition:function(){return Z=`useTransition`,R(),ko()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,R(),Na(e,t,n)},useId:function(){return Z=`useId`,R(),No()},useActionState:function(e,t){return Z=`useActionState`,R(),U(e,t)},useFormState:function(e,t){return Z=`useFormState`,R(),ha(),U(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,R(),Va(e)},useHostTransitionStatus:Mo,useMemoCache:Oa,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Po()},useEffectEvent:function(e){return Z=`useEffectEvent`,R(),co(e)}},By={readContext:function(e){return P(e)},use:Da,useCallback:function(e,t){return Z=`useCallback`,R(),go(e,t)},useContext:function(e){return Z=`useContext`,R(),P(e)},useEffect:function(e,t){Z=`useEffect`,R(),ao(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,R(),mo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,R(),ao(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,R(),ao(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,R();var n=W.H;W.H=Uy;try{return vo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,R();var r=W.H;W.H=Uy;try{return ja(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,R(),Ta().memoizedState},useState:function(){Z=`useState`,R();var e=W.H;W.H=Uy;try{return ja(ka)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,R(),bo(e,t)},useTransition:function(){return Z=`useTransition`,R(),Ao()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,R(),Pa(e,t,n)},useId:function(){return Z=`useId`,R(),Ta().memoizedState},useFormState:function(e){return Z=`useFormState`,R(),ha(),Qa(e)},useActionState:function(e){return Z=`useActionState`,R(),Qa(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,R(),Ha(e,t)},useHostTransitionStatus:Mo,useMemoCache:Oa,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Ta().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,R(),lo(e)}},Vy={readContext:function(e){return P(e)},use:Da,useCallback:function(e,t){return Z=`useCallback`,R(),go(e,t)},useContext:function(e){return Z=`useContext`,R(),P(e)},useEffect:function(e,t){Z=`useEffect`,R(),ao(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,R(),mo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,R(),ao(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,R(),ao(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,R();var n=W.H;W.H=Wy;try{return vo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,R();var r=W.H;W.H=Wy;try{return V(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,R(),Ta().memoizedState},useState:function(){Z=`useState`,R();var e=W.H;W.H=Wy;try{return V(ka)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,R(),xo(e,t)},useTransition:function(){return Z=`useTransition`,R(),jo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,R(),Pa(e,t,n)},useId:function(){return Z=`useId`,R(),Ta().memoizedState},useFormState:function(e){return Z=`useFormState`,R(),ha(),to(e)},useActionState:function(e){return Z=`useActionState`,R(),to(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,R(),Wa(e,t)},useHostTransitionStatus:Mo,useMemoCache:Oa,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Ta().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,R(),lo(e)}},Hy={readContext:function(e){return l(),P(e)},use:function(e){return c(),Da(e)},useCallback:function(e,t){return Z=`useCallback`,c(),L(),ho(e,t)},useContext:function(e){return Z=`useContext`,c(),L(),P(e)},useEffect:function(e,t){return Z=`useEffect`,c(),L(),oo(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),L(),po(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,c(),L(),io(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),L(),uo(e,t)},useMemo:function(e,t){Z=`useMemo`,c(),L();var n=W.H;W.H=Hy;try{return _o(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),L();var r=W.H;W.H=Hy;try{return Aa(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,c(),L(),ro(e)},useState:function(e){Z=`useState`,c(),L();var t=W.H;W.H=Hy;try{return Ba(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,c(),L()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),L(),yo(e,t)},useTransition:function(){return Z=`useTransition`,c(),L(),ko()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),L(),Na(e,t,n)},useId:function(){return Z=`useId`,c(),L(),No()},useFormState:function(e,t){return Z=`useFormState`,c(),L(),U(e,t)},useActionState:function(e,t){return Z=`useActionState`,c(),L(),U(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,c(),L(),Va(e)},useMemoCache:function(e){return c(),Oa(e)},useHostTransitionStatus:Mo,useCacheRefresh:function(){return Z=`useCacheRefresh`,L(),Po()},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),L(),co(e)}},Uy={readContext:function(e){return l(),P(e)},use:function(e){return c(),Da(e)},useCallback:function(e,t){return Z=`useCallback`,c(),R(),go(e,t)},useContext:function(e){return Z=`useContext`,c(),R(),P(e)},useEffect:function(e,t){Z=`useEffect`,c(),R(),ao(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),R(),mo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,c(),R(),ao(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),R(),ao(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,c(),R();var n=W.H;W.H=Uy;try{return vo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),R();var r=W.H;W.H=Uy;try{return ja(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,c(),R(),Ta().memoizedState},useState:function(){Z=`useState`,c(),R();var e=W.H;W.H=Uy;try{return ja(ka)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,c(),R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),R(),bo(e,t)},useTransition:function(){return Z=`useTransition`,c(),R(),Ao()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),R(),Pa(e,t,n)},useId:function(){return Z=`useId`,c(),R(),Ta().memoizedState},useFormState:function(e){return Z=`useFormState`,c(),R(),Qa(e)},useActionState:function(e){return Z=`useActionState`,c(),R(),Qa(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,c(),R(),Ha(e,t)},useMemoCache:function(e){return c(),Oa(e)},useHostTransitionStatus:Mo,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Ta().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),R(),lo(e)}},Wy={readContext:function(e){return l(),P(e)},use:function(e){return c(),Da(e)},useCallback:function(e,t){return Z=`useCallback`,c(),R(),go(e,t)},useContext:function(e){return Z=`useContext`,c(),R(),P(e)},useEffect:function(e,t){Z=`useEffect`,c(),R(),ao(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,c(),R(),mo(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,c(),R(),ao(4,hy,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,c(),R(),ao(4,gy,e,t)},useMemo:function(e,t){Z=`useMemo`,c(),R();var n=W.H;W.H=Uy;try{return vo(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,c(),R();var r=W.H;W.H=Uy;try{return V(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,c(),R(),Ta().memoizedState},useState:function(){Z=`useState`,c(),R();var e=W.H;W.H=Uy;try{return V(ka)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,c(),R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,c(),R(),xo(e,t)},useTransition:function(){return Z=`useTransition`,c(),R(),jo()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,c(),R(),Pa(e,t,n)},useId:function(){return Z=`useId`,c(),R(),Ta().memoizedState},useFormState:function(e){return Z=`useFormState`,c(),R(),to(e)},useActionState:function(e){return Z=`useActionState`,c(),R(),to(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,c(),R(),Wa(e,t)},useMemoCache:function(e){return c(),Oa(e)},useHostTransitionStatus:Mo,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Ta().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,c(),R(),lo(e)}};var Gy={},Ky=new Set,qy=new Set,Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set;Object.freeze(Gy);var nb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qc(e),i=Xi(r);i.payload=t,n!=null&&(Uo(n),i.callback=n),t=Zi(e,i,r),t!==null&&(F(r,`this.setState()`,e),Yc(t,e,r),Qi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qc(e),i=Xi(r);i.tag=$v,i.payload=t,n!=null&&(Uo(n),i.callback=n),t=Zi(e,i,r),t!==null&&(F(r,`this.replaceState()`,e),Yc(t,e,r),Qi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qc(e),r=Xi(n);r.tag=ey,t!=null&&(Uo(t),r.callback=t),t=Zi(e,r,n),t!==null&&(F(n,`this.forceUpdate()`,e),Yc(t,e,n),Qi(t,e,n))}},rb=null,ib=null,ab=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.`),ob=!1,sb={},cb={},lb={},ub={},db=!1,fb={},pb={},mb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},hb=!1,gb=null;gb=new Set;var _b=!1,vb=!1,yb=!1,bb=typeof WeakSet==`function`?WeakSet:Set,xb=null,Sb=null,Cb=null,wb=null,Tb=!1,Eb=null,Db=!1,Ob=8192,kb={getCacheForType:function(e){var t=P(m_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return P(m_).controller.signal},getOwner:function(){return fp}};if(typeof Symbol==`function`&&Symbol.for){var Ab=Symbol.for;Ab(`selector.component`),Ab(`selector.has_pseudo_class`),Ab(`selector.role`),Ab(`selector.test_id`),Ab(`selector.text`)}var jb=[],Mb=typeof WeakMap==`function`?WeakMap:Map,Nb=0,Pb=2,Fb=4,Ib=0,Lb=1,Rb=2,zb=3,Bb=4,Vb=6,Hb=5,Ub=Nb,Wb=null,Q=null,$=0,Gb=0,Kb=1,qb=2,Jb=3,Yb=4,Xb=5,Zb=6,Qb=7,$b=8,ex=9,tx=Gb,nx=null,rx=!1,ix=!1,ax=!1,ox=0,sx=Ib,cx=0,lx=0,ux=0,dx=0,fx=0,px=null,mx=null,hx=!1,gx=0,_x=0,vx=300,yx=1/0,bx=500,xx=null,Sx=null,Cx=null,wx=0,Tx=1,Ex=2,Dx=3,Ox=0,kx=1,Ax=2,jx=3,Mx=4,Nx=5,Px=0,Fx=null,Ix=null,Lx=0,Rx=0,zx=-0,Bx=null,Vx=null,Hx=null,Ux=wx,Wx=null,Gx=50,Kx=0,qx=null,Jx=!1,Yx=!1,Xx=50,Zx=0,Qx=null,$x=!1,eS=null,tS=!1,nS=new Set,rS={},iS=null,aS=null,oS=!1,sS=!1,cS=!1,lS=!1,uS=0,dS={};(function(){for(var e=0;e<ig.length;e++){var t=ig[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Un(n,`on`+t)}Un(Xh,`onAnimationEnd`),Un(Zh,`onAnimationIteration`),Un(Qh,`onAnimationStart`),Un(`dblclick`,`onDoubleClick`),Un(`focusin`,`onFocus`),Un(`focusout`,`onBlur`),Un($h,`onTransitionRun`),Un(eg,`onTransitionStart`),Un(tg,`onTransitionCancel`),Un(ng,`onTransitionEnd`)})(),nt(`onMouseEnter`,[`mouseout`,`mouseover`]),nt(`onMouseLeave`,[`mouseout`,`mouseover`]),nt(`onPointerEnter`,[`pointerout`,`pointerover`]),nt(`onPointerLeave`,[`pointerout`,`pointerover`]),tt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),tt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),tt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),tt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),tt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),tt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var fS=`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(` `),pS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(fS)),mS=`_reactListening`+Math.random().toString(36).slice(2),hS=!1,gS=!1,_S=!1,vS=!1,yS=!1,bS=!1,xS=!1,SS={},CS=/\r\n?/g,wS=/\u0000|\uFFFD/g,TS=`http://www.w3.org/1999/xlink`,ES=`http://www.w3.org/XML/1998/namespace`,DS=`javascript:throw new Error('React form unexpectedly submitted.')`,OS=`suppressHydrationWarning`,kS=`&`,AS=`/&`,jS=`$`,MS=`/$`,NS=`$?`,PS=`$~`,FS=`$!`,IS=`html`,LS=`body`,RS=`head`,zS=`F!`,BS=`F`,VS=`loading`,HS=`style`,US=0,WS=1,GS=2,KS=null,qS=null,JS={dialog:!0,webview:!0},YS=null,XS=void 0,ZS=typeof setTimeout==`function`?setTimeout:void 0,QS=typeof clearTimeout==`function`?clearTimeout:void 0,$S=-1,eC=typeof Promise==`function`?Promise:void 0,tC=typeof queueMicrotask==`function`?queueMicrotask:eC===void 0?ZS:function(e){return eC.resolve(null).then(e).catch(Hu)},nC=null,rC=0,iC=1,aC=2,oC=3,sC=4,cC=new Map,lC=new Set,uC=Gf.d;Gf.d={f:function(){var e=uC.f(),t=el();return e||t},r:function(e){var t=Qe(e);t!==null&&t.tag===5&&t.type===`form`?Oo(t):uC.r(e)},D:function(e){uC.D(e),Td(`dns-prefetch`,e,null)},C:function(e,t){uC.C(e,t),Td(`preconnect`,e,t)},L:function(e,t,n){uC.L(e,t,n);var r=dC;if(r&&e&&t){var i=`link[rel="preload"][as="`+ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+ht(n.imageSizes)+`"]`)):i+=`[href="`+ht(e)+`"]`;var a=i;switch(t){case`style`:a=Od(e);break;case`script`:a=Md(e)}cC.has(a)||(e=Ef({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),cC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(kd(a))||t===`script`&&r.querySelector(Nd(a))||(t=r.createElement(`link`),xu(t,`link`,e),et(t),r.head.appendChild(t)))}},m:function(e,t){uC.m(e,t);var n=dC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+ht(r)+`"][href="`+ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Md(e)}if(!cC.has(a)&&(e=Ef({rel:`modulepreload`,href:e},t),cC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Nd(a)))return}r=n.createElement(`link`),xu(r,`link`,e),et(r),n.head.appendChild(r)}}},X:function(e,t){uC.X(e,t);var n=dC;if(n&&e){var r=k(n).hoistableScripts,i=Md(e),a=r.get(i);a||(a=n.querySelector(Nd(i)),a||(e=Ef({src:e,async:!0},t),(t=cC.get(i))&&Ld(e,t),a=n.createElement(`script`),et(a),xu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){uC.S(e,t,n);var r=dC;if(r&&e){var i=k(r).hoistableStyles,a=Od(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:rC,preload:null};if(o=r.querySelector(kd(a)))s.loading=iC|sC;else{e=Ef({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=cC.get(a))&&Id(e,n);var c=o=r.createElement(`link`);et(c),xu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=iC}),c.addEventListener(`error`,function(){s.loading|=aC}),s.loading|=sC,Fd(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){uC.M(e,t);var n=dC;if(n&&e){var r=k(n).hoistableScripts,i=Md(e),a=r.get(i);a||(a=n.querySelector(Nd(i)),a||(e=Ef({src:e,async:!0,type:`module`},t),(t=cC.get(i))&&Ld(e,t),a=n.createElement(`script`),et(a),xu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var dC=typeof document>`u`?null:document,fC=null,pC=6e4,mC=800,hC=500,gC=0,_C=null,vC=null,yC=Kf,bC={$$typeof:Pf,Provider:null,Consumer:null,_currentValue:yC,_currentValue2:yC,_threadCount:0},xC=`%c%s%c`,SC=`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`,CC=``,wC=` `,TC=Function.prototype.bind,EC=!1,DC=null,OC=null,kC=null,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null;DC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=Ef({},e.memoizedProps),i=dr(e,2),i!==null&&Yc(i,e,2))},OC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=Ef({},e.memoizedProps),r=dr(e,2),r!==null&&Yc(r,e,2))},kC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=Ef({},e.memoizedProps),i=dr(e,2),i!==null&&Yc(i,e,2))},AC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dr(e,2),t!==null&&Yc(t,e,2)},jC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dr(e,2),t!==null&&Yc(t,e,2)},MC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=dr(e,2),t!==null&&Yc(t,e,2)},NC=function(e){var t=dr(e,2);t!==null&&Yc(t,e,2)},PC=function(e){var t=Le(),n=dr(e,t);n!==null&&Yc(n,e,t)},FC=function(e){s=e},IC=function(e){o=e};var LC=!0,RC=null,zC=!1,BC=null,VC=null,HC=null,UC=new Map,WC=new Map,GC=[],KC=`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(` `),qC=null;if(xf.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):b(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Xd(r,qc(r),n,t,null,null)},xf.prototype.unmount=bf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Ub&(Pb|Fb))!==Nb&&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.`),Xd(e.current,2,null,e,null,null),el(),t[Gp]=null}},xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<GC.length&&t!==0&&t<GC[n].priority;n++);GC.splice(n,0,e),n===0&&ff(e)}},(function(){var e=wf.version;if(e!==`19.2.8`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
228
- - react: `+(e+`
229
- - react-dom: 19.2.8
230
- 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`),Gf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=ne(t),e=e===null?null:re(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:W,reconcilerVersion:`19.2.8`};return e.overrideHookState=DC,e.overrideHookStateDeletePath=OC,e.overrideHookStateRenamePath=kC,e.overrideProps=AC,e.overridePropsDeletePath=jC,e.overridePropsRenamePath=MC,e.scheduleUpdate=NC,e.scheduleRetry=PC,e.setErrorHandler=FC,e.setSuspenseHandler=IC,e.scheduleRefresh=v,e.scheduleRoot=_,e.setRefreshHandler=y,e.getCurrentFiber=tf,Ae(e)})()&&Zm&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var JC=window.location.protocol;/^(https?|file):$/.test(JC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(JC===`file:`?`
231
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!b(e))throw Error(`Target container is not a DOM element.`);Sf(e);var n=!1,r=``,i=Jo,a=Yo,o=Xo;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Of&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
232
-
233
- let root = createRoot(domContainer);
234
- root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Jd(e,1,!1,null,null,n,r,null,i,a,o,yf),e[Gp]=t.current,au(e),new bf(t)},e.hydrateRoot=function(e,t,n){if(!b(e))throw Error(`Target container is not a DOM element.`);Sf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=Jo,o=Yo,s=Xo,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Jd(e,1,!0,t,n??null,r,i,c,a,o,s,yf),t.context=Yd(null),n=t.current,r=qc(n),r=We(r),i=Xi(r),i.callback=null,Zi(n,i,r),F(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,ze(t,n),Hl(t),e[Gp]=t.current,au(e),new xf(t)},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),_=o(((e,t)=>{t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;#t=!1;setTimeoutProvider(e){this.#t&&e!==this.#e&&console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,{previous:this.#e,provider:e}),this.#e=e,this.#t=!1}setTimeout(e,t){return this.#t=!0,this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#t=!0,this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ee(e){setTimeout(e,0)}var te=typeof window>`u`||`Deno`in globalThis;function S(){}function ne(e,t){return typeof e==`function`?e(t):e}function re(e){return typeof e==`number`&&e>=0&&e!==1/0}function ie(e,t){return Math.max(e+(t||0)-Date.now(),0)}function C(e,t){return typeof e==`function`?e(t):e}function ae(e,t){return typeof e==`function`?e(t):e}function w(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==oe(o,t.options))return!1}else if(!se(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function T(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(E(t.options.mutationKey)!==E(a))return!1}else if(!se(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function oe(e,t){return(t?.queryKeyHashFn||E)(e)}function E(e){return JSON.stringify(e,(e,t)=>fe(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!se(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!se(e[r],t[r]))return!1;return!0}return!1}var ce=Object.prototype.hasOwnProperty;function le(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=de(e)&&de(t);if(!r&&!(fe(e)&&fe(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ce.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=le(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ue(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function de(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function fe(e){if(!pe(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!pe(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function pe(e){return Object.prototype.toString.call(e)===`[object Object]`}function me(e){return new Promise(t=>{x.setTimeout(t,e)})}function he(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1)try{return le(e,t)}catch(e){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. [${n.queryHash}]: ${e}`),e}return t}function ge(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function _e(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ve=Symbol();function ye(e,t){return e.queryFn===ve&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ve?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function be(e,t){return typeof e==`function`?e(...t):!!e}function xe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Se=(()=>{let e=()=>te;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ce(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var D=ee;function we(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=D,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Te=we(),Ee=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function De(e){return Math.min(1e3*2**e,3e4)}function O(e){return(e??`online`)!==`online`||Ee.isOnline()}var Oe=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ke(e){let t=!1,n=0,r,i=Ce(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Oe(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||Ee.isOnline())&&e.canRun(),u=()=>O(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Se.isServer()?0:3),o=e.retryDelay??De,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),me(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Ae=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),re(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Se.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function je(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{xe(e,()=>t.signal,()=>n=!0)},u=ye(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?_e:ge;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Ne:Me,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Me(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Me(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ne(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Pe=class extends Ae{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Le(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Le(this.options);e.data!==void 0&&(this.setState(Ie(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=he(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(S).catch(S):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ae(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ve||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>C(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ie(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}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 n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ye(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?je(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ke({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Oe&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===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(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Oe){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Fe(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ie(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Te.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Fe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ie(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Le(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Re=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Ce(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Be(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ve(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ve(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof ae(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ue(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&He(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||ae(this.options.enabled,this.#t)!==ae(t.enabled,this.#t)||C(this.options.staleTime,this.#t)!==C(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||ae(this.options.enabled,this.#t)!==ae(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return We(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(S)),t}#g(){this.#b();let e=C(this.options.staleTime,this.#t);if(Se.isServer()||this.#r.isStale||!re(e))return;let t=ie(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(Se.isServer()||ae(this.options.enabled,this.#t)===!1||!re(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Be(e,t),o=i&&He(e,n,t,r);(a||o)&&(l={...l,...Fe(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=he(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=he(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Ue(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ae(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=Ce();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!ue(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Te.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ze(e,t){return ae(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||ae(t.retryOnMount,e)!==!1)}function Be(e,t){return ze(e,t)||e.state.data!==void 0&&Ve(e,t,t.refetchOnMount)}function Ve(e,t,n){if(ae(t.enabled,e)!==!1&&C(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Ue(e,t)}return!1}function He(e,t,n,r){return(e!==t||ae(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Ue(e,n)}function Ue(e,t){return ae(t.enabled,e)!==!1&&e.isStaleByTime(C(t.staleTime,e))}function We(e,t){return!ue(e.getCurrentResult(),t)}var Ge=class extends Ae{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ke(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ke({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Te.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ke(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var qe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ge({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Je(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Je(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Je(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Je(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Te.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>T(t,e))}findAll(e={}){return this.getAll().filter(t=>T(e,t))}notify(e){Te.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Te.batch(()=>Promise.all(e.map(e=>e.continue().catch(S))))}};function Je(e){return e.options.scope?.id}var Ye=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ue(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&E(t.mutationKey)!==E(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ke();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Te.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Xe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??oe(r,t),a=this.get(i);return a||(a=new Pe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Te.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>w(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>w(e,t)):t}notify(e){Te.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Te.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Te.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xe,this.#t=e.mutationCache||new qe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(C(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=ne(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Te.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Te.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Te.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Te.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(S).catch(S)}invalidateQueries(e,t={}){return Te.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Te.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(S)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(S)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(C(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(S).catch(S)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(S).catch(S)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ee.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(E(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{se(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(E(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{se(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=oe(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ve&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Qe=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case S:return`Suspense`;case ne:return`SuspenseList`;case C:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case ee:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case te:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case ie:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ie)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=w.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(T.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){se||(se=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ce[e]||(ce[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(oe(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}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 p(f)}if(T.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,de[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
235
- let props = %s;
236
- <%s {...props} />
237
- React keys must be passed directly to JSX without using spread:
238
- let props = %s;
239
- <%s key={someKey} {...props} />`,o,f,m,f),de[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ie&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),C=Symbol.for(`react.activity`),ae=Symbol.for(`react.client.reference`),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,oe=Array.isArray,E=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var se,ce={},le=h.react_stack_bottom_frame.bind(h,o)(),ue=E(i(o)),de={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>w.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):le,r?E(i(e)):ue)},e.jsxs=function(e,t,n){var r=1e4>w.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):le,r?E(i(e)):ue)}})()})),$e=o(((e,t)=>{t.exports=Qe()})),k=l(d(),1),et=$e(),tt=k.createContext(void 0),nt=e=>{let t=k.useContext(tt);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},rt=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,et.jsx)(tt.Provider,{value:e,children:t})),it=k.createContext(!1),at=()=>k.useContext(it);it.Provider;function ot(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var st=k.createContext(ot()),ct=()=>k.useContext(st),lt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?be(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ut=e=>{k.useEffect(()=>{e.clearReset()},[e])},dt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||be(n,[e.error,r])),ft=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},pt=(e,t)=>e.isLoading&&e.isFetching&&!t,mt=(e,t)=>e?.suspense&&t.isPending,ht=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function gt(e,t,n){if(typeof e!=`object`||Array.isArray(e))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 r=at(),i=ct(),a=nt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o.queryFn||console.error(`[${o.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 c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,ft(o),lt(o,i,s),ut(i);let l=!a.getQueryCache().get(o.queryHash),[u]=k.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(k.useSyncExternalStore(k.useCallback(e=>{let t=f?u.subscribe(Te.batchCalls(e)):S;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),k.useEffect(()=>{u.setOptions(o)},[o,u]),mt(o,d))throw ht(o,u,i);if(dt({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!Se.isServer()&&pt(d,r)&&(l?ht(o,u,i):s?.promise)?.catch(S).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function _t(e,t){return gt(e,Re,t)}function vt(e,t){let n=nt(t),[r]=k.useState(()=>new Ye(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);let i=k.useSyncExternalStore(k.useCallback(e=>r.subscribe(Te.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((e,t)=>{r.mutate(e,t).catch(S)},[r]);if(i.error&&be(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var yt=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case S:return`Suspense`;case ne:return`SuspenseList`;case C:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case ee:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case te:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case ie:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ie)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=w.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(T.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){se||(se=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return ce[e]||(ce[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,o,l,d){var f=n.children;if(f!==void 0){if(o){if(oe(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}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 p(f)}if(T.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,de[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
240
- let props = %s;
241
- <%s {...props} />
242
- React keys must be passed directly to JSX without using spread:
243
- let props = %s;
244
- <%s key={someKey} {...props} />`,o,f,m,f),de[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ie&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=d(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),C=Symbol.for(`react.activity`),ae=Symbol.for(`react.client.reference`),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,oe=Array.isArray,E=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var se,ce={},le=h.react_stack_bottom_frame.bind(h,o)(),ue=E(i(o)),de={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>w.recentlyCreatedOwnerStacks++;return f(e,t,n,r,a?Error(`react-stack-top-frame`):le,a?E(i(e)):ue)}})()})),bt=o(((e,t)=>{t.exports=yt()})),xt=_(),A=bt(),St=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/shell/Rail.tsx`,Ct=[{key:`sessions`,label:`Sessions`,route:{name:`sessions`},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`3.5`,width:`14`,height:`13`,rx:`2.5`},void 0,!1,{fileName:St,lineNumber:26,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M6.5 8h7M6.5 11.5h4.5`},void 0,!1,{fileName:St,lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:St,lineNumber:25,columnNumber:7},void 0)},{key:`reviews`,label:`Reviews`,route:{name:`reviews`},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M3.5 4.5h13v9h-7.5L6 16.5v-3H3.5z`},void 0,!1,{fileName:St,lineNumber:37,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M7 8h6M7 10.75h3.5`},void 0,!1,{fileName:St,lineNumber:38,columnNumber:9},void 0)]},void 0,!0,{fileName:St,lineNumber:36,columnNumber:7},void 0)},{key:`packages`,label:`Packages`,route:{name:`packages`},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M10 2.8 16.5 6v8L10 17.2 3.5 14V6z`},void 0,!1,{fileName:St,lineNumber:48,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M3.5 6 10 9.4 16.5 6M10 9.4v7.8`},void 0,!1,{fileName:St,lineNumber:49,columnNumber:9},void 0)]},void 0,!0,{fileName:St,lineNumber:47,columnNumber:7},void 0)},{key:`settings`,label:`Settings`,route:{name:`settings`},icon:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`circle`,{cx:`10`,cy:`10`,r:`2.6`},void 0,!1,{fileName:St,lineNumber:59,columnNumber:9},void 0),(0,A.jsxDEV)(`path`,{d:`M10 2.6v2M10 15.4v2M2.6 10h2M15.4 10h2M4.8 4.8l1.4 1.4M13.8 13.8l1.4 1.4M15.2 4.8l-1.4 1.4M6.2 13.8l-1.4 1.4`},void 0,!1,{fileName:St,lineNumber:60,columnNumber:9},void 0)]},void 0,!0,{fileName:St,lineNumber:58,columnNumber:7},void 0)}];function wt({route:e,onNavigate:t,onOpenPalette:n,live:r}){return(0,A.jsxDEV)(`nav`,{className:`rail`,"aria-label":`Primary`,children:[(0,A.jsxDEV)(`div`,{className:`rail__mark`,title:`Invariant`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`path`,{d:`M12 3.2 20 7.6v8.8L12 20.8 4 16.4V7.6z`},void 0,!1,{fileName:St,lineNumber:72,columnNumber:11},this),(0,A.jsxDEV)(`path`,{d:`M12 8.4v7.2`},void 0,!1,{fileName:St,lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:St,lineNumber:71,columnNumber:9},this)},void 0,!1,{fileName:St,lineNumber:70,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`rail__items`,children:Ct.map(n=>{let r=n.route.name===e.name||n.key===`reviews`&&e.name===`review`||n.key===`sessions`&&e.name===`session`;return(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__item${r?` is-active`:``}`,onClick:()=>t(n.route),title:n.label,"aria-current":r?`page`:void 0,children:[n.icon,(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:n.label},void 0,!1,{fileName:St,lineNumber:95,columnNumber:15},this)]},n.key,!0,{fileName:St,lineNumber:86,columnNumber:13},this)})},void 0,!1,{fileName:St,lineNumber:77,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`rail__foot`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`rail__item`,onClick:n,title:`Command palette (⌘K)`,children:[(0,A.jsxDEV)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`3`,y:`4.5`,width:`14`,height:`11`,rx:`2.5`},void 0,!1,{fileName:St,lineNumber:104,columnNumber:13},this),(0,A.jsxDEV)(`path`,{d:`M6.5 9 8.6 11 6.5 13M11 13h3`},void 0,!1,{fileName:St,lineNumber:105,columnNumber:13},this)]},void 0,!0,{fileName:St,lineNumber:103,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`visually-hidden`,children:`Command palette`},void 0,!1,{fileName:St,lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:St,lineNumber:102,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`rail__live rail__live--${r}`,title:r===`live`?`Live — watching for changes`:r===`connecting`?`Connecting…`:`Disconnected — retrying`},void 0,!1,{fileName:St,lineNumber:109,columnNumber:9},this)]},void 0,!0,{fileName:St,lineNumber:101,columnNumber:7},this)]},void 0,!0,{fileName:St,lineNumber:69,columnNumber:5},this)}var Tt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusGlyph.tsx`;function Et({status:e,kind:t=`plan`,size:n=10}){return(0,A.jsxDEV)(`span`,{className:`glyph glyph--${e}${t===`review`?` glyph--kind-review`:``}`,style:{width:n,height:n},"aria-hidden":`true`,children:[(e===`in-progress`||e===`planning`)&&(0,A.jsxDEV)(`span`,{className:`glyph__pulse`},void 0,!1,{fileName:Tt,lineNumber:41,columnNumber:63},this),e===`review`&&(0,A.jsxDEV)(`span`,{className:`glyph__ring`},void 0,!1,{fileName:Tt,lineNumber:42,columnNumber:31},this),e===`executed`&&(0,A.jsxDEV)(`svg`,{className:`glyph__check`,viewBox:`0 0 10 10`,focusable:`false`,children:(0,A.jsxDEV)(`path`,{d:`M2.2 5.2 4.1 7 7.8 3.2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Tt,lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:Tt,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:Tt,lineNumber:36,columnNumber:5},this)}var Dt=[[60,1,`s`],[3600,60,`m`],[86400,3600,`h`],[2592e3,86400,`d`]];function Ot(e){let t=new Date(e).getTime();if(Number.isNaN(t))return`—`;let n=Math.max(0,Math.round((Date.now()-t)/1e3));if(n<10)return`just now`;for(let[e,t,r]of Dt)if(n<e)return`${Math.floor(n/t)}${r} ago`;return new Date(t).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function kt(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString()}function At(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function jt(e,t){if(t.length===0)return 0;let n=e.toLowerCase(),r=t.toLowerCase(),i=0,a=0,o=0;for(let e of r){let t=n.indexOf(e,a);if(t===-1)return null;o=t===a?o+1:0,i+=10+o*6,(t===0||/[\s\-_/.]/.test(n[t-1]))&&(i+=8),i-=Math.min(t-a,12),a=t+1}return i-n.length*.05}async function Mt(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}function Nt(e,t=46){if(e.length<=t)return e;let n=e.split(`/`),r=[],i=1;for(let e=n.length-1;e>=0;--e){let a=i+n[e].length+1;if(a>t&&r.length>0)break;r.unshift(n[e]),i=a}return`…/${r.join(`/`)}`}var Pt=[`reviewing`,`triage`,`fixes`,`done`],Ft={reviewing:`Reviewing`,triage:`Triage`,fixes:`Fixes`,done:`Done`};function It(e,t){return e.kind===`review`?Rt(e.status,t):Lt(e.status)}function Lt(e){switch(e){case`draft`:return{label:`Draft`,holder:`you`,hint:`No plan yet — paste the execute line to have an agent write one.`,action:{kind:`copy-execute`}};case`planning`:return{label:`Planning`,holder:`agent`,hint:`An agent is reading the task and writing the plan.`,action:{kind:`none`}};case`planned`:return{label:`Planned`,holder:`you`,hint:`A plan is written and waiting for your go-ahead.`,action:{kind:`write-plan`}};case`in-progress`:return{label:`Building`,holder:`agent`,hint:`An agent is implementing this plan.`,action:{kind:`none`}};case`executed`:return{label:`Done`,holder:`you`,hint:`The work is finished — this is the moment a review is worth asking for.`,action:{kind:`request-review`}};default:return{label:`Review`,holder:`you`,hint:`This plan session claims the review status, which only a review session may hold.`,action:{kind:`none`}}}}function Rt(e,t){let n=t?.counts,r=t?.status===`published`;switch(e){case`draft`:return{label:`Awaiting reviewer`,holder:`agent`,hint:`Paste the execute line into a NEW conversation — a fresh agent has not seen the plan.`,action:{kind:`copy-execute`},step:`reviewing`};case`planning`:return{label:`Reviewing`,holder:`agent`,hint:`An agent is reading the diff and writing the review document.`,action:{kind:`none`},step:`reviewing`};case`in-progress`:return{label:`Fixing`,holder:`agent`,hint:`An agent is implementing the comments you staged.`,action:{kind:`none`},step:`fixes`};case`review`:return n&&n.open===0?{label:`Triaged`,holder:`you`,hint:`Every comment is decided — plan the changes, or publish them to GitLab.`,action:{kind:`triage`,openCount:0},step:`triage`}:{label:n?`Triage · ${n.open}`:`Triage`,holder:`you`,hint:n?`${n.open} of ${n.total} comment(s) still need a decision.`:`Every comment is waiting for a decision.`,action:{kind:`triage`,openCount:n?.open??0},step:`triage`};case`planned`:return{label:`Fixes planned`,holder:`you`,hint:`The comments you staged are written into the Plan — paste the execute line to implement them.`,action:{kind:`copy-execute`},step:`fixes`};case`executed`:return r?{label:`Published`,holder:`you`,hint:`The staged comments are on the merge request — nothing left to implement here.`,action:{kind:`none`},step:`done`}:n&&n.staged===0&&n.total>0?{label:`Closed`,holder:`you`,hint:`Every comment was discarded, so there was nothing to implement.`,action:{kind:`none`},step:`done`}:{label:`Fixed`,holder:`you`,hint:`The staged comments have been implemented.`,action:{kind:`none`},step:`done`};default:return{label:`Review`,holder:`you`,hint:`Unknown review stage.`,action:{kind:`none`},step:`reviewing`}}}function zt(e,t){let n=Pt.indexOf(e),r=Pt.indexOf(t);return n===r?0:n<r?-1:1}var Bt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionCard.tsx`;function Vt(e){if(e.excerpt.length===0)return!1;let t=e.title.replace(/…$/,``).trim();return!e.excerpt.startsWith(t)}function Ht(e){let{session:t,review:n,parent:r}=e,i=t.kind===`review`,a=It(t,n),o=n?.counts.open??0;return(0,A.jsxDEV)(`article`,{className:[`card`,`card--${t.status}`,i?`card--review-kind`:``,e.focused?`is-focused`:``,e.related?`is-related`:``].filter(Boolean).join(` `),tabIndex:-1,draggable:!0,onDragStart:n=>{n.dataTransfer.setData(`text/plain`,t.id),n.dataTransfer.effectAllowed=`move`,e.onDragStart()},onDragEnd:e.onDragEnd,onClick:e.onOpen,onKeyDown:t=>{t.key===`Enter`&&e.onOpen()},onMouseEnter:()=>e.onHoverRelated(t.id),onMouseLeave:()=>e.onHoverRelated(void 0),role:`button`,"aria-label":`${i?`Review session`:`Session`}: ${t.title} — ${a.label}`,children:[i&&(0,A.jsxDEV)(`div`,{className:`card__kicker`,children:[(0,A.jsxDEV)(`span`,{className:`card__kicker-label`,children:`Review`},void 0,!1,{fileName:Bt,lineNumber:79,columnNumber:11},this),t.branch&&(0,A.jsxDEV)(`span`,{className:`card__kicker-branch`,title:t.reviewFile,children:t.branch},void 0,!1,{fileName:Bt,lineNumber:80,columnNumber:30},this)]},void 0,!0,{fileName:Bt,lineNumber:78,columnNumber:9},this),(0,A.jsxDEV)(`header`,{className:`card__head`,children:[(0,A.jsxDEV)(Et,{status:t.status,kind:t.kind},void 0,!1,{fileName:Bt,lineNumber:85,columnNumber:9},this),(0,A.jsxDEV)(`h3`,{className:`card__title`,children:t.title},void 0,!1,{fileName:Bt,lineNumber:86,columnNumber:9},this)]},void 0,!0,{fileName:Bt,lineNumber:84,columnNumber:7},this),i&&r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`card__lineage`,title:`Reviews: ${r.title}`,onClick:t=>{t.stopPropagation(),e.onOpenRelated?.()},onMouseEnter:t=>{t.stopPropagation(),e.onHoverRelated(r.id)},onMouseLeave:()=>e.onHoverRelated(t.id),children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`↳`},void 0,!1,{fileName:Bt,lineNumber:98,columnNumber:11},this),` `,r.title]},void 0,!0,{fileName:Bt,lineNumber:90,columnNumber:9},this),i&&!r&&(0,A.jsxDEV)(`p`,{className:`card__lineage${t.parent?` card__lineage--orphan`:``}`,title:t.parent?`This review points at a session that is no longer on the board`:`This review is deliberately tied to no session`,children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`↳`},void 0,!1,{fileName:Bt,lineNumber:114,columnNumber:11},this),` `,t.parent?`unlinked`:`standalone`]},void 0,!0,{fileName:Bt,lineNumber:106,columnNumber:9},this),Vt(t)&&(0,A.jsxDEV)(`p`,{className:`card__excerpt`,children:t.excerpt},void 0,!1,{fileName:Bt,lineNumber:118,columnNumber:32},this),(0,A.jsxDEV)(`footer`,{className:`card__foot`,children:[(0,A.jsxDEV)(`span`,{className:`card__time`,title:t.updated,children:Ot(t.updated)},void 0,!1,{fileName:Bt,lineNumber:121,columnNumber:9},this),i&&o>0&&(0,A.jsxDEV)(`span`,{className:`chip chip--attention`,title:a.hint,children:[o,` to triage`]},void 0,!0,{fileName:Bt,lineNumber:124,columnNumber:11},this),i&&n?.status===`published`&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`The staged comments are on the merge request`,children:`published`},void 0,!1,{fileName:Bt,lineNumber:130,columnNumber:11},this),!i&&e.reviewSummary&&e.reviewSummary.count>0&&(0,A.jsxDEV)(`button`,{type:`button`,className:`chip chip--review`,title:`Open the review that points at this session`,onClick:t=>{t.stopPropagation(),e.onOpenRelated?.()},children:[e.reviewSummary.count,` review`,e.reviewSummary.count===1?``:`s`,e.reviewSummary.open>0?` · ${e.reviewSummary.open} to triage`:` · triaged`]},void 0,!0,{fileName:Bt,lineNumber:136,columnNumber:11},this),t.tags.slice(0,3).map(e=>(0,A.jsxDEV)(`span`,{className:`chip`,children:e},e,!1,{fileName:Bt,lineNumber:148,columnNumber:11},this)),t.needsMigration&&(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:t.issues.join(`
245
- `),children:`header`},void 0,!1,{fileName:Bt,lineNumber:152,columnNumber:11},this)]},void 0,!0,{fileName:Bt,lineNumber:120,columnNumber:7},this)]},void 0,!0,{fileName:Bt,lineNumber:52,columnNumber:5},this)}var Ut=[`in-progress`,`planning`,`review`,`draft`,`planned`,`executed`],Wt={"in-progress":`Building`,planning:`Planning`,review:`Review`,draft:`Draft`,planned:`Planned`,executed:`Done`},Gt=Ut.filter(e=>e!==`review`),Kt="`Review` is set by writing a review, and cleared by planning its changes or publishing them.",qt=[`blocker`,`major`,`minor`,`nit`,`praise`],Jt={blocker:`Blocker`,major:`Major`,minor:`Minor`,nit:`Nit`,praise:`Praise`},Yt=[`correctness`,`security`,`performance`,`architecture`,`test`,`docs`,`style`],Xt=[`agents`,`skills`,`commands`,`rules`,`contexts`,`instructions`],Zt=[`claude`,`codex`,`cursor`,`aider`,`copilot`],Qt=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/StatusPill.tsx`;function $t({status:e,kind:t=`plan`,review:n,onChange:r,onTriage:i,disabled:a}){let[o,s]=(0,k.useState)(!1),c=(0,k.useRef)(null);(0,k.useEffect)(()=>{if(!o)return;let e=e=>{c.current?.contains(e.target)||s(!1)},t=e=>{e.key===`Escape`&&s(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[o]);let l=It({kind:t,status:e},n),u=`pill pill--${e}${t===`review`?` pill--kind-review`:``}`;if(e===`review`&&i)return(0,A.jsxDEV)(`button`,{type:`button`,className:`${u} pill--interactive`,onClick:i,disabled:a,title:l.hint,children:[(0,A.jsxDEV)(Et,{status:e,kind:t},void 0,!1,{fileName:Qt,lineNumber:69,columnNumber:9},this),l.label]},void 0,!0,{fileName:Qt,lineNumber:62,columnNumber:7},this);if(!r)return(0,A.jsxDEV)(`span`,{className:u,title:l.hint,children:[(0,A.jsxDEV)(Et,{status:e,kind:t},void 0,!1,{fileName:Qt,lineNumber:78,columnNumber:9},this),l.label]},void 0,!0,{fileName:Qt,lineNumber:77,columnNumber:7},this);let d=t===`review`?Ut:Gt;return(0,A.jsxDEV)(`div`,{className:`pill-menu`,ref:c,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`${u} pill--interactive`,onClick:()=>s(e=>!e),disabled:a,title:l.hint,"aria-haspopup":`menu`,"aria-expanded":o,children:[(0,A.jsxDEV)(Et,{status:e,kind:t},void 0,!1,{fileName:Qt,lineNumber:99,columnNumber:9},this),l.label,(0,A.jsxDEV)(`svg`,{className:`pill__caret`,viewBox:`0 0 10 10`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M2.5 4 5 6.5 7.5 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Qt,lineNumber:102,columnNumber:11},this)},void 0,!1,{fileName:Qt,lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:Qt,lineNumber:90,columnNumber:7},this),o&&(0,A.jsxDEV)(`div`,{className:`pill-menu__list`,role:`menu`,children:[d.map(i=>{let a=i===`review`,o=It({kind:t,status:i},n).label;return(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i===e,"aria-disabled":a||void 0,title:a?"`Review` is set by writing a review, and cleared by planning its changes or publishing them.":void 0,className:`pill-menu__item${i===e?` is-active`:``}${a?` is-locked`:``}`,onClick:()=>{a||(s(!1),i!==e&&r(i))},children:[(0,A.jsxDEV)(Et,{status:i,kind:t},void 0,!1,{fileName:Qt,lineNumber:129,columnNumber:17},this),o,a&&(0,A.jsxDEV)(`span`,{className:`pill-menu__lock`,"aria-hidden":`true`,title:"`Review` is set by writing a review, and cleared by planning its changes or publishing them.",children:`🔒`},void 0,!1,{fileName:Qt,lineNumber:132,columnNumber:19},this)]},i,!0,{fileName:Qt,lineNumber:113,columnNumber:15},this)}),t===`review`&&(0,A.jsxDEV)(`p`,{className:`pill-menu__note`,children:"`Review` is set by writing a review, and cleared by planning its changes or publishing them."},void 0,!1,{fileName:Qt,lineNumber:140,columnNumber:33},this)]},void 0,!0,{fileName:Qt,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:Qt,lineNumber:89,columnNumber:5},this)}var en=[`.xml`,`.md`];function tn(e){let t=e.split(`/`).pop()??e,n=en.find(e=>t.toLowerCase().endsWith(e));return n?t.slice(0,-n.length):t}function nn(e,t,n){return e.filter(e=>(t===`all`||e.status===t)&&(n===`all`||e.severity===n))}function rn(e,t){let n=e.findIndex(e=>e.id===t);return(n===-1?e:[...e.slice(n+1),...e.slice(0,n)]).find(e=>e.id!==t&&e.status===`open`)}function an(e,t){let n={},r=t.title.trim();return r!==e.title&&(n.title=r),t.body!==e.body&&(n.body=t.body),t.severity!==e.severity&&(n.severity=t.severity),t.category!==e.category&&(n.category=t.category),n}function on(e){if(e.total===0)return{kind:`empty`,label:`This review has no comments.`};if(e.open>0)return{kind:`blocked`,openCount:e.open,label:`${e.open} still need${e.open===1?`s`:``} a decision`};let t=`Ready · ${e.staged} staged · ${e.discarded} discarded`;return e.staged===0?{kind:`ready`,action:`close`,label:t}:{kind:`ready`,action:`plan`,label:t}}function sn(e,t,n,r){if(!(e===`none`||!t))return`${e}://file/${t}/${n}:${r??1}`}function cn(e,t){if(e.reviewFile){let n=tn(e.reviewFile),r=t.find(e=>e.slug===n);if(r)return r}return t.find(t=>t.sessionId===e.id)}function ln(e,t){return cn(e,t)?.counts}function un(e,t=[]){let n=new Map;for(let r of e)n.set(r.id,{session:r,review:cn(r,t),children:[],contextOnly:!1});let r=[],i=[],a=[];for(let t of e){let e=n.get(t.id);if(t.kind!==`review`){r.push(e);continue}if(!t.parent){i.push(e);continue}let o=n.get(t.parent);if(o){o.children.push(e);continue}a.push(e)}return{roots:r,standalone:i,orphaned:a}}function dn(e,t){let n=e=>{let n=e.children.filter(e=>t.has(e.session.id)),r=t.has(e.session.id);if(!(!r&&n.length===0))return{...e,contextOnly:!r,children:r?e.children:n}};return{roots:e.roots.map(n).filter(fn),standalone:e.standalone.map(n).filter(fn),orphaned:e.orphaned.map(n).filter(fn)}}function fn(e){return e!==void 0}function pn(e,t){let n=[];for(let r of e.roots){let e=r.children.length,i=e>0,a=i&&!t.has(r.session.id);if(n.push({kind:`session`,node:r,depth:0,hasChildren:i,expanded:a,childCount:e}),a)for(let e of r.children)n.push({kind:`session`,node:e,depth:1,hasChildren:!1,expanded:!1,childCount:0})}for(let t of[{id:`standalone`,nodes:e.standalone},{id:`orphaned`,nodes:e.orphaned}])if(t.nodes.length!==0){n.push({kind:`group`,id:t.id,count:t.nodes.length});for(let e of t.nodes)n.push({kind:`session`,node:e,depth:1,hasChildren:!1,expanded:!1,childCount:0})}return n}var mn=new Set,j=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/Dashboard.tsx`,hn=`invariant.ui.boardDoneOpen`;function gn(){try{return window.localStorage.getItem(hn)!==`false`}catch{return!0}}function _n(e){return e.view===`board`?(0,A.jsxDEV)(vn,{...e},void 0,!1,{fileName:j,lineNumber:61,columnNumber:35},this):(0,A.jsxDEV)(yn,{...e},void 0,!1,{fileName:j,lineNumber:61,columnNumber:58},this)}function vn({sessions:e,allSessions:t,reviews:n,focusedId:r,onFocus:i,onOpen:a,onStatusChange:o,onNew:s,onRefuseDrop:c}){let[l,u]=(0,k.useState)(gn),[d,f]=(0,k.useState)(),[p,m]=(0,k.useState)(),[h,g]=(0,k.useState)();(0,k.useEffect)(()=>{try{window.localStorage.setItem(hn,String(l))}catch{}},[l]);let _=(0,k.useMemo)(()=>new Map(t.map(e=>[e.id,e])),[t]),v=(0,k.useMemo)(()=>Ut.map(t=>({status:t,items:e.filter(e=>e.status===t)})),[e]),y=e=>{if(e.kind===`review`||e.reviewSessionIds.length===0)return;let t=e.reviewSessionIds.map(e=>_.get(e)).filter(e=>e!==void 0).reduce((e,t)=>e+(ln(t,n)?.open??0),0);return{count:e.reviewSessionIds.length,open:t}},b=e=>e.kind===`review`?e.parent:e.reviewSessionIds[0];return(0,A.jsxDEV)(`div`,{className:`board`,style:{"--board-columns":v.length},children:v.map(t=>{let v=t.status===`executed`,x=v&&!l;return(0,A.jsxDEV)(`section`,{className:`column column--${t.status}${x?` is-collapsed`:``}${p===t.status?` is-drop-target`:``}`,onDragOver:e=>{d&&(e.preventDefault(),m(t.status))},onDragLeave:()=>m(e=>e===t.status?void 0:e),onDrop:n=>{n.preventDefault();let r=n.dataTransfer.getData(`text/plain`);m(void 0),f(void 0);let i=e.find(e=>e.id===r);if(!(!i||i.status===t.status)){if(t.status===`review`||i.status===`review`){c(Kt);return}o(r,t.status)}},children:[(0,A.jsxDEV)(`header`,{className:`column__head`,children:[(0,A.jsxDEV)(Et,{status:t.status},void 0,!1,{fileName:j,lineNumber:156,columnNumber:15},this),(0,A.jsxDEV)(`h2`,{className:`column__title`,children:Wt[t.status]},void 0,!1,{fileName:j,lineNumber:157,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`column__count`,children:t.items.length},void 0,!1,{fileName:j,lineNumber:158,columnNumber:15},this),v&&t.items.length>0&&(0,A.jsxDEV)(`button`,{type:`button`,className:`column__toggle`,onClick:()=>u(e=>!e),children:l?`Hide`:`Show`},void 0,!1,{fileName:j,lineNumber:160,columnNumber:17},this)]},void 0,!0,{fileName:j,lineNumber:155,columnNumber:13},this),!x&&(0,A.jsxDEV)(`div`,{className:`column__body`,children:[t.items.map(e=>(0,A.jsxDEV)(Ht,{session:e,review:cn(e,n),parent:e.parent?_.get(e.parent):void 0,reviewSummary:y(e),focused:e.id===r,related:h===e.id,onOpen:()=>{i(e.id),a(e.id)},onOpenRelated:()=>{let t=b(e);t&&(i(t),a(t))},onHoverRelated:t=>g(t===e.id?b(e):t),onDragStart:()=>f(e.id),onDragEnd:()=>{f(void 0),m(void 0)}},e.id,!1,{fileName:j,lineNumber:169,columnNumber:19},this)),t.items.length===0&&(0,A.jsxDEV)(`p`,{className:`column__empty`,children:t.status===`draft`?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:s,children:`Start a session`},void 0,!1,{fileName:j,lineNumber:193,columnNumber:23},this):t.status===`review`?`Nothing waiting on your judgement`:`Nothing here`},void 0,!1,{fileName:j,lineNumber:191,columnNumber:19},this)]},void 0,!0,{fileName:j,lineNumber:167,columnNumber:15},this)]},t.status,!0,{fileName:j,lineNumber:127,columnNumber:11},this)})},void 0,!1,{fileName:j,lineNumber:121,columnNumber:5},this)}function yn({sessions:e,allSessions:t,reviews:n,focusedId:r,onFocus:i,onOpen:a,onStatusChange:o,filter:s,collapsed:c,onToggleCollapsed:l}){let u=(0,k.useRef)(null),d=(0,k.useMemo)(()=>un(t,n),[t,n]),f=(0,k.useMemo)(()=>s.trim().length===0?d:dn(d,new Set(e.map(e=>e.id))),[d,e,s]),p=(0,k.useMemo)(()=>pn(f,s.trim().length>0?mn:c),[f,c,s]);(0,k.useEffect)(()=>{u.current?.scrollIntoView({block:`nearest`})},[r]);let m=(0,k.useCallback)(e=>l(e),[l]);return(0,k.useEffect)(()=>{let e=e=>{if(!r)return;let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;let n=d.roots.find(e=>e.session.id===r);if(!n||n.children.length===0)return;let i=!c.has(r);(e.key===`ArrowRight`&&!i||e.key===`ArrowLeft`&&i)&&(e.preventDefault(),m(r))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r,d,c,m]),p.length===0?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Nothing matches this filter.`},void 0,!1,{fileName:j,lineNumber:273,columnNumber:12},this):(0,A.jsxDEV)(`div`,{className:`list`,children:(0,A.jsxDEV)(`table`,{className:`list__table tree`,role:`treegrid`,"aria-label":`Sessions and their reviews`,children:[(0,A.jsxDEV)(`thead`,{children:(0,A.jsxDEV)(`tr`,{children:[(0,A.jsxDEV)(`th`,{scope:`col`,children:`Session`},void 0,!1,{fileName:j,lineNumber:281,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Stage`},void 0,!1,{fileName:j,lineNumber:282,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:j,lineNumber:283,columnNumber:13},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Size`},void 0,!1,{fileName:j,lineNumber:284,columnNumber:13},this)]},void 0,!0,{fileName:j,lineNumber:280,columnNumber:11},this)},void 0,!1,{fileName:j,lineNumber:279,columnNumber:9},this),(0,A.jsxDEV)(`tbody`,{children:p.map(e=>{if(e.kind===`group`){let t=e.id===`standalone`;return(0,A.jsxDEV)(`tr`,{className:`tree__group tree__group--${e.id}`,children:(0,A.jsxDEV)(`td`,{colSpan:4,children:[(0,A.jsxDEV)(`span`,{className:`tree__group-title`,children:[t?`Standalone reviews`:`Orphaned reviews`,` (`,e.count,`)`]},void 0,!0,{fileName:j,lineNumber:294,columnNumber:21},this),(0,A.jsxDEV)(`span`,{className:`tree__group-hint`,children:t?`Reviews of a branch on its own — deliberately tied to no session.`:`The session these reviewed is gone. Open one to link it to another.`},void 0,!1,{fileName:j,lineNumber:297,columnNumber:21},this)]},void 0,!0,{fileName:j,lineNumber:293,columnNumber:19},this)},e.id,!1,{fileName:j,lineNumber:292,columnNumber:17},this)}let{node:t,depth:n,hasChildren:s,expanded:c,childCount:l}=e,d=t.session,f=d.kind===`review`&&d.status===`executed`;return(0,A.jsxDEV)(`tr`,{ref:d.id===r?u:void 0,role:`row`,"aria-level":n+1,"aria-expanded":s?c:void 0,className:[n===1?`tree__row--child`:`tree__row--root`,d.kind===`review`?`tree__row--review`:``,f?`is-settled`:``,t.contextOnly?`is-context`:``,d.id===r?`is-focused`:``].filter(Boolean).join(` `),onClick:()=>{i(d.id),a(d.id)},children:[(0,A.jsxDEV)(`td`,{children:(0,A.jsxDEV)(`div`,{className:`tree__cell`,children:[n===0?(0,A.jsxDEV)(`button`,{type:`button`,className:`tree__twisty${s?``:` is-empty`}`,"aria-label":c?`Collapse`:`Expand`,tabIndex:s?0:-1,onClick:e=>{e.stopPropagation(),s&&m(d.id)},children:s?c?`▾`:`▸`:``},void 0,!1,{fileName:j,lineNumber:334,columnNumber:23},this):(0,A.jsxDEV)(`span`,{className:`tree__elbow`,"aria-hidden":`true`,children:`└─`},void 0,!1,{fileName:j,lineNumber:347,columnNumber:23},this),(0,A.jsxDEV)(`div`,{className:`tree__identity`,children:[(0,A.jsxDEV)(`div`,{className:`list__title`,children:[d.kind===`review`&&(0,A.jsxDEV)(`span`,{className:`tree__kicker`,children:[`Review`,d.branch&&(0,A.jsxDEV)(`span`,{className:`tree__branch`,children:d.branch},void 0,!1,{fileName:j,lineNumber:355,columnNumber:48},this)]},void 0,!0,{fileName:j,lineNumber:353,columnNumber:27},this),d.title,s&&!c&&(0,A.jsxDEV)(`span`,{className:`tree__child-count`,title:`Show the reviews of this session`,children:[l,` review`,l===1?``:`s`]},void 0,!0,{fileName:j,lineNumber:363,columnNumber:27},this)]},void 0,!0,{fileName:j,lineNumber:351,columnNumber:23},this),d.excerpt.length>0&&!d.excerpt.startsWith(d.title.replace(/…$/,``).trim())&&(0,A.jsxDEV)(`div`,{className:`list__excerpt`,children:d.excerpt},void 0,!1,{fileName:j,lineNumber:373,columnNumber:27},this)]},void 0,!0,{fileName:j,lineNumber:350,columnNumber:21},this)]},void 0,!0,{fileName:j,lineNumber:332,columnNumber:19},this)},void 0,!1,{fileName:j,lineNumber:331,columnNumber:17},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)($t,{status:d.status,kind:d.kind,review:t.review,onChange:e=>o(d.id,e),onTriage:()=>{i(d.id),a(d.id)}},void 0,!1,{fileName:j,lineNumber:379,columnNumber:19},this)},void 0,!1,{fileName:j,lineNumber:378,columnNumber:17},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,title:d.updated,children:Ot(d.updated)},void 0,!1,{fileName:j,lineNumber:387,columnNumber:17},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,children:At(d.sizeBytes)},void 0,!1,{fileName:j,lineNumber:388,columnNumber:17},this)]},d.id,!0,{fileName:j,lineNumber:314,columnNumber:15},this)})},void 0,!1,{fileName:j,lineNumber:287,columnNumber:9},this)]},void 0,!0,{fileName:j,lineNumber:278,columnNumber:7},this)},void 0,!1,{fileName:j,lineNumber:277,columnNumber:5},this)}function bn(e,t,n=mn){return pn(un(e,t),n).filter(e=>e.kind===`session`).map(e=>e.node.session)}var xn=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ConflictBanner.tsx`;function Sn({conflictCount:e,onOpenMerge:t,onKeepMine:n,onTakeTheirs:r}){return(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,role:`alert`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`The agent changed the same lines you did.`},void 0,!1,{fileName:xn,lineNumber:33,columnNumber:9},this),` `,e===1?`1 spot needs`:`${e} spots need`,` your call — everything else was merged.`]},void 0,!0,{fileName:xn,lineNumber:32,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Open the merge`},void 0,!1,{fileName:xn,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:n,children:`Keep mine`},void 0,!1,{fileName:xn,lineNumber:41,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Discard your edits and take the version on disk?`)&&r()},children:`Take theirs`},void 0,!1,{fileName:xn,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:xn,lineNumber:37,columnNumber:7},this)]},void 0,!0,{fileName:xn,lineNumber:31,columnNumber:5},this)}function Cn(){let e=document.querySelector(`meta[name="invariant-ui-token"]`)?.content??``;return e.startsWith(`__`)?``:e}var wn=Cn(),Tn=class extends Error{status;code;detail;constructor(e,t,n,r={code:t,message:n}){super(n),this.status=e,this.code=t,this.detail=r,this.name=`ApiError`}get isConflict(){return this.status===409&&this.code.endsWith(`CONFLICT`)}get isMergeConflict(){return this.code===`SESSION_MERGE_CONFLICT`}get isNotTriaged(){return this.code===`REVIEW_NOT_TRIAGED`}get transcript(){return this.detail.transcript}get commandLine(){return this.detail.commandLine}get openCount(){return this.detail.openCount??0}};async function En(e,t={}){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${wn}`,...t.headers??{}}});if(!n.ok){let e=await n.json().catch(()=>void 0);throw new Tn(n.status,e?.error.code??`UNKNOWN`,e?.error.message??`Request failed with ${n.status}.`,e?.error)}if(n.status!==204)return await n.json()}function Dn(e){return{...e,tags:e.tags??[],issues:e.issues??[],reviewSessionIds:e.reviewSessionIds??[]}}var On={project:()=>En(`/api/project`),listSessions:async()=>{let e=await En(`/api/sessions`);return{...e,sessions:(e.sessions??[]).map(Dn)}},getSession:async e=>Dn(await En(`/api/sessions/${e}`)),saveSession:async e=>{let t=await En(`/api/sessions/${e.sessionId}`,{method:`PUT`,headers:e.force?{}:{"If-Match":e.etag},body:JSON.stringify({body:e.body,baseBody:e.baseBody,force:e.force===!0})});return{session:Dn(t.session),merged:t.merged}},stashSessionBody:e=>En(`/api/sessions/${e.sessionId}/stash`,{method:`POST`,body:JSON.stringify({body:e.body})}),setStatus:async e=>Dn(await En(`/api/sessions/${e.sessionId}/status`,{method:`PATCH`,body:JSON.stringify({status:e.status,summary:e.summary})})),createSession:async e=>{let t=await En(`/api/sessions`,{method:`POST`,body:JSON.stringify(e)});return{...t,session:Dn(t.session)}},linkReviewParent:async e=>Dn(await En(`/api/sessions/${e.sessionId}/parent`,{method:`PATCH`,body:JSON.stringify({parentSessionId:e.parentSessionId})})),archiveSession:e=>En(`/api/sessions/${e}`,{method:`DELETE`}),migrateHeader:async e=>({migrated:((await En(e?`/api/sessions/${e}/migrate-header`:`/api/sessions/migrate-header`,{method:`POST`})).migrated??[]).map(Dn)}),shutdown:()=>En(`/api/shutdown`,{method:`POST`}),git:()=>En(`/api/git`),listReviews:()=>En(`/api/reviews`),getReview:e=>En(`/api/reviews/${e}`),requestReview:async e=>{let t=await En(`sessionId`in e?`/api/sessions/${e.sessionId}/review`:`/api/reviews`,{method:`POST`,body:JSON.stringify(`sessionId`in e?{base:e.base}:{standalone:!0,base:e.base})});return{...t,session:Dn(t.session)}},updateComment:e=>En(`/api/reviews/${e.slug}/comments/${e.commentId}`,{method:`PATCH`,headers:{"If-Match":e.etag},body:JSON.stringify({status:e.status,expectedStatus:e.expectedStatus,severity:e.severity,category:e.category,title:e.title,body:e.body})}),bulkUpdateComments:e=>En(`/api/reviews/${e.slug}/comments/bulk`,{method:`POST`,headers:{"If-Match":e.etag},body:JSON.stringify({ids:e.ids,status:e.status,expectedStatus:e.expectedStatus})}),planReviewChanges:async e=>{let t=await En(`/api/reviews/${e}/plan-changes`,{method:`POST`});return{...t,session:Dn(t.session)}},publishPreflight:(e,t)=>En(`/api/reviews/${e}/publish/preflight${t?`?mergeRequestIid=${t}`:``}`),publishReview:async e=>await En(`/api/reviews/${e.slug}/publish`,{method:`POST`,body:JSON.stringify({mergeRequestIid:e.mergeRequestIid,dryRun:e.dryRun,only:e.only})}),publisherSettings:()=>En(`/api/settings/publisher`),savePublisherSettings:e=>En(`/api/settings/publisher`,{method:`PUT`,body:JSON.stringify(e)}),removePublisherSettings:()=>En(`/api/settings/publisher`,{method:`DELETE`}),testPublisherSettings:()=>En(`/api/settings/publisher/test`,{method:`POST`}),source:e=>{let t=new URLSearchParams({path:e.path});return e.line!==void 0&&t.set(`line`,String(e.line)),e.radius!==void 0&&t.set(`radius`,String(e.radius)),En(`/api/source?${t.toString()}`)},packages:()=>En(`/api/packages`),package:e=>En(`/api/packages/${kn(e)}`),registryPackages:()=>En(`/api/registry/packages`),skillCatalog:(e,t)=>En(`/api/skills?view=${e}&page=${t}`),searchSkills:(e,t)=>{let n=new URLSearchParams({q:e});return t&&n.set(`owner`,t),En(`/api/skills/search?${n.toString()}`)},skillDetail:e=>En(`/api/skills/${encodeURIComponent(e.owner)}/${encodeURIComponent(e.repo)}/${encodeURIComponent(e.slug)}`),installPackage:e=>En(`/api/packages`,{method:`POST`,body:JSON.stringify(e)}),uninstallPackage:e=>En(`/api/packages/${kn(e)}`,{method:`DELETE`}),applyPackageItems:e=>En(`/api/packages/${kn(e.packageName)}/items`,{method:`POST`,body:JSON.stringify({add:e.add,remove:e.remove,all:e.all,sync:e.sync})}),sync:(e={})=>En(`/api/sync`,{method:`POST`,body:JSON.stringify(e)}),eventsUrl:()=>`/api/events?token=${encodeURIComponent(wn)}`};function kn(e){return encodeURIComponent(e)}var M={project:[`project`],sessions:[`sessions`],session:e=>[`session`,e],git:[`git`],reviews:[`reviews`],review:e=>[`review`,e],packages:[`packages`],package:e=>[`package`,e],registry:[`registry`],skillCatalog:(e,t)=>[`skills`,e,t],skillSearch:(e,t)=>[`skills`,`search`,e,t??``],skillDetail:(e,t,n)=>[`skills`,`detail`,e,t,n],publisherSettings:[`settings`,`publisher`],publishPreflight:(e,t)=>[`publish-preflight`,e,t??0]};function An(){return _t({queryKey:M.project,queryFn:On.project,staleTime:6e4})}function jn(){return _t({queryKey:M.sessions,queryFn:On.listSessions})}function Mn(e){return _t({queryKey:M.session(e??``),queryFn:()=>On.getSession(e),enabled:e!==void 0})}function Nn(){let e=nt();return vt({mutationFn:On.setStatus,onSuccess:t=>{e.setQueryData(M.session(t.id),t),e.invalidateQueries({queryKey:M.sessions})}})}function Pn(){let e=nt();return vt({mutationFn:On.saveSession,onSuccess:({session:t})=>{e.setQueryData(M.session(t.id),t),e.invalidateQueries({queryKey:M.sessions})}})}function Fn(){return vt({mutationFn:On.stashSessionBody})}function In(){let e=nt();return vt({mutationFn:On.createSession,onSuccess:()=>e.invalidateQueries({queryKey:M.sessions})})}function Ln(){let e=nt();return vt({mutationFn:On.linkReviewParent,onSuccess:t=>{e.setQueryData(M.session(t.id),t),e.invalidateQueries({queryKey:M.sessions})}})}function Rn(){let e=nt();return vt({mutationFn:On.archiveSession,onSuccess:()=>e.invalidateQueries({queryKey:M.sessions})})}function zn(){let e=nt();return vt({mutationFn:e=>On.migrateHeader(e),onSuccess:()=>e.invalidateQueries({queryKey:M.sessions})})}function Bn(){return _t({queryKey:M.git,queryFn:On.git,staleTime:15e3})}function Vn(){return _t({queryKey:M.reviews,queryFn:On.listReviews})}function Hn(e){return _t({queryKey:M.review(e??``),queryFn:()=>On.getReview(e),enabled:e!==void 0})}function Un(e,t){e.setQueryData(M.review(t.slug),t),e.invalidateQueries({queryKey:M.reviews}),t.sessionId&&e.invalidateQueries({queryKey:M.session(t.sessionId)})}function Wn(){let e=nt();return vt({mutationFn:On.updateComment,onSuccess:t=>Un(e,t)})}function Gn(){let e=nt();return vt({mutationFn:e=>On.bulkUpdateComments(e),onSuccess:t=>Un(e,t)})}function Kn(){let e=nt();return vt({mutationFn:On.requestReview,onSuccess:()=>{e.invalidateQueries({queryKey:M.sessions}),e.invalidateQueries({queryKey:M.reviews})}})}function qn(){let e=nt();return vt({mutationFn:e=>On.planReviewChanges(e),onSuccess:t=>{Un(e,t.review),e.setQueryData(M.session(t.session.id),t.session),e.invalidateQueries({queryKey:M.sessions})}})}function Jn(e,t,n=!0){return _t({queryKey:M.publishPreflight(e??``,t),queryFn:()=>On.publishPreflight(e,t),enabled:n&&e!==void 0,retry:!1,gcTime:0,staleTime:0})}function Yn(){let e=nt();return vt({mutationFn:On.publishReview,onSuccess:t=>{t.dryRun||(Un(e,t.review),t.session&&(e.setQueryData(M.session(t.session.id),t.session),e.invalidateQueries({queryKey:M.sessions})))}})}function Xn(){return _t({queryKey:M.publisherSettings,queryFn:On.publisherSettings})}function Zn(){let e=nt();return vt({mutationFn:On.savePublisherSettings,onSuccess:t=>e.setQueryData(M.publisherSettings,t)})}function Qn(){let e=nt();return vt({mutationFn:On.removePublisherSettings,onSuccess:t=>e.setQueryData(M.publisherSettings,t)})}function $n(){return vt({mutationFn:On.testPublisherSettings})}function er(){return _t({queryKey:M.packages,queryFn:On.packages})}function tr(e,t,n=!0){return _t({queryKey:M.skillCatalog(e,t),queryFn:()=>On.skillCatalog(e,t),enabled:n,retry:!1,staleTime:3e5})}function nr(e,t){let n=e.trim();return _t({queryKey:M.skillSearch(n,t),queryFn:()=>On.searchSkills(n,t),enabled:n.length>=2,retry:!1,staleTime:6e4})}function rr(e){return _t({queryKey:M.skillDetail(e?.owner??``,e?.repo??``,e?.slug??``),queryFn:()=>On.skillDetail(e),enabled:e!==void 0,retry:!1,staleTime:6e5})}function ir(e,t){e.invalidateQueries({queryKey:M.packages}),t&&e.invalidateQueries({queryKey:M.package(t)}),e.invalidateQueries({queryKey:M.project})}function ar(){let e=nt();return vt({mutationFn:On.installPackage,onSuccess:t=>ir(e,t.package?.name)})}function or(){let e=nt();return vt({mutationFn:e=>On.uninstallPackage(e),onSuccess:()=>ir(e)})}function sr(){let e=nt();return vt({mutationFn:e=>On.applyPackageItems(e),onSuccess:t=>{e.setQueryData(M.package(t.package.name),t.package),ir(e,t.package.name)}})}function cr(){let e=nt();return vt({mutationFn:e=>On.sync(e),onSuccess:t=>{t.checked||e.invalidateQueries({queryKey:M.packages})}})}function lr(){let e=nt(),[t,n]=(0,k.useState)(`connecting`);return(0,k.useEffect)(()=>{let t=new EventSource(On.eventsUrl()),r=t=>{e.invalidateQueries({queryKey:M.sessions});try{let n=JSON.parse(t.data);n.sessionId&&e.invalidateQueries({queryKey:M.session(n.sessionId)})}catch{}},i=t=>{e.invalidateQueries({queryKey:M.reviews}),e.invalidateQueries({queryKey:M.sessions});try{let n=JSON.parse(t.data);n.slug&&e.invalidateQueries({queryKey:M.review(n.slug)})}catch{}};t.onopen=()=>n(`live`),t.onerror=()=>n(`offline`);for(let e of[`session.created`,`session.updated`,`session.deleted`])t.addEventListener(e,r);for(let e of[`review.created`,`review.updated`,`review.deleted`])t.addEventListener(e,i);t.addEventListener(`packages.changed`,()=>{e.invalidateQueries({queryKey:M.packages}),e.invalidateQueries({queryKey:M.project}),e.invalidateQueries({queryKey:[`package`]})});let a=()=>{e.invalidateQueries({queryKey:M.sessions}),e.invalidateQueries({queryKey:M.reviews}),e.invalidateQueries({queryKey:M.packages})};return window.addEventListener(`focus`,a),()=>{t.close(),window.removeEventListener(`focus`,a)}},[e]),t}var ur=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewPanel.tsx`;function dr({session:e,onOpenSession:t,onToast:n}){let{data:r}=Bn(),{data:i}=jn(),{data:a}=Vn(),o=Kn(),s=(i?.sessions??[]).filter(t=>t.parent===e.id),c=a?.reviews??[];if(s.length>0){let e=s.reduce((e,t)=>e+(ln(t,c)?.open??0),0);return(0,A.jsxDEV)(`div`,{className:`banner banner--review`,children:(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:e>0?`${e} comment${e===1?``:`s`} waiting on you.`:`Reviewed.`},void 0,!1,{fileName:ur,lineNumber:44,columnNumber:11},this),` `,s.length===1?`One review session points at this work.`:`${s.length} review sessions point at this work.`,(0,A.jsxDEV)(`ul`,{className:`review-links`,children:s.map(e=>(0,A.jsxDEV)(`li`,{className:`review-links__item`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>t(e.id),children:e.branch??e.title},void 0,!1,{fileName:ur,lineNumber:56,columnNumber:17},this),(0,A.jsxDEV)($t,{status:e.status,kind:e.kind,review:cn(e,c)},void 0,!1,{fileName:ur,lineNumber:63,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`review-links__time`,title:e.updated,children:Ot(e.updated)},void 0,!1,{fileName:ur,lineNumber:68,columnNumber:17},this)]},e.id,!0,{fileName:ur,lineNumber:55,columnNumber:15},this))},void 0,!1,{fileName:ur,lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:ur,lineNumber:43,columnNumber:9},this)},void 0,!1,{fileName:ur,lineNumber:42,columnNumber:7},this)}let l=r!==void 0&&!r.canReview;return(0,A.jsxDEV)(`div`,{className:`banner banner--review`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`No review yet.`},void 0,!1,{fileName:ur,lineNumber:84,columnNumber:9},this),` `,l?r?.reason:r?.branch?`A fresh agent can read the ${r.changedFileCount}-file diff on ${r.branch} without seeing this plan.`:`A fresh agent can read the diff without seeing this plan.`]},void 0,!0,{fileName:ur,lineNumber:83,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:l||o.isPending,title:l?r?.reason:void 0,onClick:()=>o.mutate({sessionId:e.id},{onSuccess:async e=>{await Mt(e.executeLine),n(e.guidance,`success`),t(e.session.id)},onError:e=>n(e instanceof Error?e.message:`Could not create the review.`,`danger`)}),children:o.isPending?`Creating…`:`Request review`},void 0,!1,{fileName:ur,lineNumber:92,columnNumber:9},this)},void 0,!1,{fileName:ur,lineNumber:91,columnNumber:7},this)]},void 0,!0,{fileName:ur,lineNumber:82,columnNumber:5},this)}var fr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/ReviewStageStrip.tsx`;function pr({status:e,review:t,onTriage:n,onCopyExecuteLine:r}){let i=It({kind:`review`,status:e},t),a=t?.counts,o=i.step??`reviewing`;return(0,A.jsxDEV)(`div`,{className:`stage`,children:[(0,A.jsxDEV)(`ol`,{className:`stage__steps`,children:Pt.map((e,t)=>{let n=zt(e,o);return(0,A.jsxDEV)(`li`,{className:`stage__step${n===0?` is-current`:n<0?` is-done`:``}`,"aria-current":n===0?`step`:void 0,children:[(0,A.jsxDEV)(`span`,{className:`stage__index`,"aria-hidden":`true`,children:t+1},void 0,!1,{fileName:fr,lineNumber:46,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`stage__label`,children:[Ft[e],e===`triage`&&a&&a.open>0&&(0,A.jsxDEV)(`span`,{className:`stage__badge`,children:a.open},void 0,!1,{fileName:fr,lineNumber:50,columnNumber:19},this)]},void 0,!0,{fileName:fr,lineNumber:47,columnNumber:15},this)]},e,!0,{fileName:fr,lineNumber:41,columnNumber:13},this)})},void 0,!1,{fileName:fr,lineNumber:37,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`stage__hint`,children:[(0,A.jsxDEV)(`span`,{className:`stage__holder stage__holder--${i.holder}`,children:i.holder===`you`?`Waiting on you`:`Agent working`},void 0,!1,{fileName:fr,lineNumber:59,columnNumber:9},this),i.hint]},void 0,!0,{fileName:fr,lineNumber:58,columnNumber:7},this),i.action.kind===`triage`&&n&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:i.action.openCount===0?`Open the comments`:`Triage ${i.action.openCount} comment${i.action.openCount===1?``:`s`}`},void 0,!1,{fileName:fr,lineNumber:66,columnNumber:9},this),i.action.kind===`copy-execute`&&r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Copy execute line`},void 0,!1,{fileName:fr,lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:fr,lineNumber:36,columnNumber:5},this)}var mr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Modal.tsx`;function hr({title:e,onClose:t,children:n,footer:r,width:i=560}){let a=(0,k.useRef)(null);return(0,k.useEffect)(()=>{let e=e=>{e.key===`Escape`&&(e.stopPropagation(),t())};return document.addEventListener(`keydown`,e),a.current?.querySelector(`input, textarea, button`)?.focus(),()=>document.removeEventListener(`keydown`,e)},[t]),(0,A.jsxDEV)(`div`,{className:`overlay`,onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,A.jsxDEV)(`div`,{className:`modal`,style:{maxWidth:i},role:`dialog`,"aria-modal":`true`,"aria-label":e,ref:a,children:[(0,A.jsxDEV)(`header`,{className:`modal__header`,children:[(0,A.jsxDEV)(`h2`,{className:`modal__title`,children:e},void 0,!1,{fileName:mr,lineNumber:28,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,"aria-label":`Close`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 14 14`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M3.5 3.5l7 7M10.5 3.5l-7 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`},void 0,!1,{fileName:mr,lineNumber:31,columnNumber:15},this)},void 0,!1,{fileName:mr,lineNumber:30,columnNumber:13},this)},void 0,!1,{fileName:mr,lineNumber:29,columnNumber:11},this)]},void 0,!0,{fileName:mr,lineNumber:27,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`modal__body`,children:n},void 0,!1,{fileName:mr,lineNumber:35,columnNumber:9},this),r&&(0,A.jsxDEV)(`footer`,{className:`modal__footer`,children:r},void 0,!1,{fileName:mr,lineNumber:36,columnNumber:20},this)]},void 0,!0,{fileName:mr,lineNumber:26,columnNumber:7},this)},void 0,!1,{fileName:mr,lineNumber:25,columnNumber:5},this)}var gr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/LinkParentModal.tsx`;function _r({review:e,candidates:t,busy:n,onClose:r,onLink:i}){let[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(),l=(0,k.useMemo)(()=>{let e=a.trim().toLowerCase(),n=t.filter(e=>e.kind!==`review`);return e.length===0?n:n.filter(t=>`${t.title} ${t.excerpt} ${t.tags.join(` `)}`.toLowerCase().includes(e))},[t,a]);return(0,A.jsxDEV)(hr,{title:`Link this review to a session`,onClose:r,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:e.branch??e.title},void 0,!1,{fileName:gr,lineNumber:43,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:r,children:`Cancel`},void 0,!1,{fileName:gr,lineNumber:44,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:!s||n,onClick:()=>{s&&i(s)},children:n?`Linking…`:`Link`},void 0,!1,{fileName:gr,lineNumber:45,columnNumber:11},this)]},void 0,!0,{fileName:gr,lineNumber:42,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is a verdict on a session's work. Pick the session this one judges — it moves under it on the board, and its `,(0,A.jsxDEV)(`code`,{children:`<parent>`},void 0,!1,{fileName:gr,lineNumber:58,columnNumber:31},this),` is written into the file.`]},void 0,!0,{fileName:gr,lineNumber:56,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`link-parent-filter`,children:`Find a session`},void 0,!1,{fileName:gr,lineNumber:62,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`link-parent-filter`,className:`field__input`,value:a,placeholder:`Filter by title…`,onChange:e=>o(e.target.value)},void 0,!1,{fileName:gr,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:gr,lineNumber:61,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`picker`,children:l.length===0?(0,A.jsxDEV)(`p`,{className:`column__empty`,children:`No session matches.`},void 0,!1,{fileName:gr,lineNumber:74,columnNumber:11},this):l.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,className:`picker__item${s===e.id?` is-active`:``}`,onClick:()=>c(e.id),children:[(0,A.jsxDEV)(`span`,{className:`picker__title`,children:e.title},void 0,!1,{fileName:gr,lineNumber:83,columnNumber:15},this),(0,A.jsxDEV)($t,{status:e.status,kind:e.kind},void 0,!1,{fileName:gr,lineNumber:84,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`picker__meta`,children:Ot(e.updated)},void 0,!1,{fileName:gr,lineNumber:85,columnNumber:15},this)]},e.id,!0,{fileName:gr,lineNumber:77,columnNumber:13},this))},void 0,!1,{fileName:gr,lineNumber:72,columnNumber:7},this)]},void 0,!0,{fileName:gr,lineNumber:38,columnNumber:5},this)}var vr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/SourcePeek.tsx`,yr=12;function br({file:e,line:t,endLine:n}){let{data:r,isLoading:i,error:a}=_t({queryKey:[`source`,e,t??0],queryFn:()=>On.source({path:e,line:t,radius:yr}),staleTime:3e4});if(i)return(0,A.jsxDEV)(`div`,{className:`peek peek--state`,children:`Loading…`},void 0,!1,{fileName:vr,lineNumber:26,columnNumber:25},this);if(a||!r)return(0,A.jsxDEV)(`div`,{className:`peek peek--state`,children:`This file is not readable from here — it may have moved since the review was written.`},void 0,!1,{fileName:vr,lineNumber:29,columnNumber:7},this);let o=t??r.startLine,s=n??o;return(0,A.jsxDEV)(`div`,{className:`peek`,children:[(0,A.jsxDEV)(`div`,{className:`peek__head`,children:[r.path,` · lines `,r.startLine,`–`,r.endLine,` of `,r.totalLines]},void 0,!0,{fileName:vr,lineNumber:40,columnNumber:7},this),(0,A.jsxDEV)(`pre`,{className:`peek__code`,children:r.lines.map((e,t)=>{let n=r.startLine+t;return(0,A.jsxDEV)(`div`,{className:`peek__line${n>=o&&n<=s?` is-highlighted`:``}`,children:[(0,A.jsxDEV)(`span`,{className:`peek__number`,children:n},void 0,!1,{fileName:vr,lineNumber:49,columnNumber:15},this),(0,A.jsxDEV)(`code`,{children:e.length>0?e:` `},void 0,!1,{fileName:vr,lineNumber:50,columnNumber:15},this)]},n,!0,{fileName:vr,lineNumber:48,columnNumber:13},this)})},void 0,!1,{fileName:vr,lineNumber:43,columnNumber:7},this)]},void 0,!0,{fileName:vr,lineNumber:39,columnNumber:5},this)}var xr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentEditor.tsx`;function Sr({title:e,body:t,severity:n,category:r,busy:i,onCancel:a,onSave:o}){let[s,c]=(0,k.useState)(e),[l,u]=(0,k.useState)(t),[d,f]=(0,k.useState)(n),[p,m]=(0,k.useState)(r),h={title:s.trim(),body:l,severity:d,category:p},g=h.title.length>0;return(0,A.jsxDEV)(`div`,{className:`comment-editor`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Title`},void 0,!1,{fileName:xr,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,maxLength:120,autoFocus:!0,onChange:e=>c(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()}},void 0,!1,{fileName:xr,lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:xr,lineNumber:56,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`comment-editor__classification`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Severity`},void 0,!1,{fileName:xr,lineNumber:72,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select select--${d}`,value:d,onChange:e=>f(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()},children:qt.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:Jt[e]},e,!1,{fileName:xr,lineNumber:80,columnNumber:15},this))},void 0,!1,{fileName:xr,lineNumber:73,columnNumber:11},this)]},void 0,!0,{fileName:xr,lineNumber:71,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Category`},void 0,!1,{fileName:xr,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select`,value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()},children:Yt.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:xr,lineNumber:94,columnNumber:15},this))},void 0,!1,{fileName:xr,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:xr,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:xr,lineNumber:70,columnNumber:7},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Detail`},void 0,!1,{fileName:xr,lineNumber:101,columnNumber:9},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,value:l,rows:6,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Escape`&&a()}},void 0,!1,{fileName:xr,lineNumber:102,columnNumber:9},this)]},void 0,!0,{fileName:xr,lineNumber:100,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`comment-editor__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:a,children:`Cancel`},void 0,!1,{fileName:xr,lineNumber:112,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:i||!g,onClick:()=>o(h,!1),children:`Save`},void 0,!1,{fileName:xr,lineNumber:113,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:i||!g,onClick:()=>o(h,!0),children:`Save & stage`},void 0,!1,{fileName:xr,lineNumber:121,columnNumber:9},this)]},void 0,!0,{fileName:xr,lineNumber:111,columnNumber:7},this)]},void 0,!0,{fileName:xr,lineNumber:55,columnNumber:5},this)}var Cr=`modulepreload`,wr=function(e){return`/`+e},Tr={},Er=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=wr(t,n),t=s(t),t in Tr)return;Tr[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Cr,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Dr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Markdown.tsx`,Or=(0,k.lazy)(()=>Er(()=>import(`./MarkdownBody-CSTsT4R0.js`).then(e=>({default:e.MarkdownBody})),[]));function kr({source:e,compact:t=!1}){if(e.trim().length===0)return null;let n=`markdown${t?` markdown--compact`:``}`;return(0,A.jsxDEV)(k.Suspense,{fallback:(0,A.jsxDEV)(`div`,{className:`${n} markdown--pending`,children:e},void 0,!1,{fileName:Dr,lineNumber:29,columnNumber:25},this),children:(0,A.jsxDEV)(Or,{source:e,className:n},void 0,!1,{fileName:Dr,lineNumber:30,columnNumber:7},this)},void 0,!1,{fileName:Dr,lineNumber:29,columnNumber:5},this)}function Ar(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function jr(e){let t=[],n=!1;for(let r of e.split(`
246
- `)){if(r.trimStart().startsWith("```")){n=!n;continue}if(n)continue;let e=r.match(/^(#{1,3})\s+(.+?)\s*$/);if(!e)continue;let i=e[2].replace(/[*_`]/g,``);t.push({level:e[1].length,text:i,slug:Ar(i)})}return t}function Mr(e,t){let n=[...e.matchAll(/`+/g)].reduce((e,t)=>Math.max(e,t[0].length),0),r="`".repeat(Math.max(3,n+1));return`${r}${t??``}\n${e}\n${r}`}var Nr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/CommentCard.tsx`,Pr={open:`○`,staged:`✓`,discarded:`✗`};function Fr(e){let{comment:t}=e,[n,r]=(0,k.useState)(!1),[i,a]=(0,k.useState)(!1),o=t.status!==`open`;return(0,A.jsxDEV)(`article`,{className:`comment comment--${t.status} comment--${t.severity}${e.focused?` is-focused`:``}`,"aria-label":`${t.severity} — ${t.title}`,onClick:e.onFocus,children:[(0,A.jsxDEV)(`header`,{className:`comment__head`,onClick:e.onToggle,role:`button`,tabIndex:-1,children:[(0,A.jsxDEV)(`span`,{className:`comment__glyph`,"aria-hidden":`true`,children:Pr[t.status]},void 0,!1,{fileName:Nr,lineNumber:56,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`comment__severity comment__severity--${t.severity}`,children:Jt[t.severity]},void 0,!1,{fileName:Nr,lineNumber:57,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`comment__category`,children:t.category},void 0,!1,{fileName:Nr,lineNumber:60,columnNumber:9},this),t.location&&(0,A.jsxDEV)(`span`,{className:`comment__location`,children:t.location},void 0,!1,{fileName:Nr,lineNumber:61,columnNumber:30},this),(0,A.jsxDEV)(`h3`,{className:`comment__title`,children:t.title},void 0,!1,{fileName:Nr,lineNumber:62,columnNumber:9},this),t.edited&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`Edited ${t.edited}`,children:`edited`},void 0,!1,{fileName:Nr,lineNumber:63,columnNumber:28},this)]},void 0,!0,{fileName:Nr,lineNumber:55,columnNumber:7},this),e.expanded&&(0,A.jsxDEV)(`div`,{className:`comment__body`,children:n?(0,A.jsxDEV)(Sr,{title:t.title,body:t.body,severity:t.severity,category:t.category,busy:e.busy,onCancel:()=>r(!1),onSave:(t,n)=>{r(!1),e.onEdit(t,n)}},void 0,!1,{fileName:Nr,lineNumber:69,columnNumber:13},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`div`,{className:`comment__prose`,children:(0,A.jsxDEV)(kr,{source:t.body,compact:!0},void 0,!1,{fileName:Nr,lineNumber:86,columnNumber:17},this)},void 0,!1,{fileName:Nr,lineNumber:85,columnNumber:15},this),t.discussion&&(0,A.jsxDEV)(`div`,{className:`comment__discussion`,children:(0,A.jsxDEV)(kr,{source:t.discussion,compact:!0},void 0,!1,{fileName:Nr,lineNumber:91,columnNumber:19},this)},void 0,!1,{fileName:Nr,lineNumber:90,columnNumber:17},this),t.suggestion&&(0,A.jsxDEV)(`div`,{className:`comment__suggestion`,children:[(0,A.jsxDEV)(`div`,{className:`comment__suggestion-head`,children:[(0,A.jsxDEV)(`span`,{className:`comment__suggestion-label`,children:[`Suggestion`,t.suggestionLang?` · ${t.suggestionLang}`:``]},void 0,!0,{fileName:Nr,lineNumber:98,columnNumber:21},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await Mt(t.suggestion);e.onToast(n?`Suggestion copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:Nr,lineNumber:101,columnNumber:21},this)]},void 0,!0,{fileName:Nr,lineNumber:97,columnNumber:19},this),(0,A.jsxDEV)(kr,{source:Mr(t.suggestion,t.suggestionLang),compact:!0},void 0,!1,{fileName:Nr,lineNumber:112,columnNumber:19},this)]},void 0,!0,{fileName:Nr,lineNumber:96,columnNumber:17},this),t.file&&(0,A.jsxDEV)(`div`,{className:`comment__location-row`,children:[(0,A.jsxDEV)(`span`,{className:`comment__path`,children:t.location},void 0,!1,{fileName:Nr,lineNumber:121,columnNumber:19},this),sn(e.editorScheme,e.projectDirectory,t.file,t.line)&&(0,A.jsxDEV)(`a`,{className:`link-button`,href:sn(e.editorScheme,e.projectDirectory,t.file,t.line),children:`Open in editor`},void 0,!1,{fileName:Nr,lineNumber:123,columnNumber:21},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{let n=await Mt(t.location);e.onToast(n?`Location copied`:`Could not copy`,`success`)},children:`Copy`},void 0,!1,{fileName:Nr,lineNumber:135,columnNumber:19},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(e=>!e),children:i?`Hide code`:`Peek`},void 0,!1,{fileName:Nr,lineNumber:145,columnNumber:19},this)]},void 0,!0,{fileName:Nr,lineNumber:120,columnNumber:17},this),i&&t.file&&(0,A.jsxDEV)(br,{file:t.file,line:t.line,endLine:t.endLine},void 0,!1,{fileName:Nr,lineNumber:156,columnNumber:17},this)]},void 0,!0,{fileName:Nr,lineNumber:82,columnNumber:13},this)},void 0,!1,{fileName:Nr,lineNumber:67,columnNumber:9},this),e.expanded&&!n&&(0,A.jsxDEV)(`footer`,{className:`comment__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost${t.status===`discarded`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`discarded`),children:`Discard`},void 0,!1,{fileName:Nr,lineNumber:165,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e.busy,onClick:()=>r(!0),children:`Edit`},void 0,!1,{fileName:Nr,lineNumber:173,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid${t.status===`staged`?` is-active`:``}`,disabled:e.busy,onClick:()=>e.onDecide(`staged`),children:`Stage`},void 0,!1,{fileName:Nr,lineNumber:181,columnNumber:11},this),o&&(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,disabled:e.busy,onClick:()=>e.onDecide(`open`),children:`Undo`},void 0,!1,{fileName:Nr,lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:Nr,lineNumber:164,columnNumber:9},this)]},void 0,!0,{fileName:Nr,lineNumber:48,columnNumber:5},this)}var Ir=`plan-changes`;function Lr(e){return`invariant.ui.review-cta:${e??`unknown`}`}function Rr(e){try{return window.localStorage.getItem(Lr(e))===`publish`?`publish`:Ir}catch{return Ir}}function zr(e,t){try{window.localStorage.setItem(Lr(t),e)}catch{}}function Br(e,t){let{counts:n}=t,r=n.open===0,i=n.staged===0;if(e===`plan-changes`){let e=r&&i?`Close review`:`Plan changes →`;return r?t.sessionId?{label:e,enabled:!0}:{label:e,enabled:!1,hint:`This review is tied to no session, so there is nothing to plan into.`}:{label:e,enabled:!1,hint:`Stage or discard every comment first.`}}let a=`Publish to ${t.publisherName}…`;return r?i?{label:a,enabled:!1,hint:`Every comment was discarded — there is nothing to publish.`}:t.canPublish?t.publisherConfigured?{label:a,enabled:!0,hint:`${n.staged} staged comment(s) will be sent as drafts.`}:{label:a,enabled:!0,needsSetup:!0,hint:`Needs a ${t.publisherName} token for this project.`}:{label:a,enabled:!1,hint:`This review is missing the commit shas a discussion needs to anchor to.`}:{label:a,enabled:!1,hint:`Stage or discard every comment first.`}}var Vr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewActions.tsx`,Hr=[{mode:`plan-changes`,label:`Plan changes`,detail:`Staged comments become the session’s Plan`},{mode:`publish`,label:`Publish to GitLab`,detail:`Staged comments become draft comments on the merge request`}];function Ur({review:e,projectDirectory:t,publisherConfigured:n,publisherName:r,busy:i,onPlanChanges:a,onPublish:o,onOpenSettings:s}){let[c,l]=(0,k.useState)(Ir),[u,d]=(0,k.useState)(!1),f=(0,k.useRef)(null);(0,k.useEffect)(()=>l(Rr(t)),[t]),(0,k.useEffect)(()=>{if(!u)return;let e=e=>{f.current?.contains(e.target)||d(!1)},t=e=>{e.key===`Escape`&&d(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[u]);let p=Br(c,{counts:e.counts,canPublish:e.canPublish,sessionId:e.sessionId,publisherConfigured:n,publisherName:r}),m=e=>{l(e),zr(e,t),d(!1)};return(0,A.jsxDEV)(`div`,{className:`split`,ref:f,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__main`,disabled:i||!p.enabled,title:p.hint,onClick:()=>{if(p.needsSetup){s();return}c===`publish`?o():a()},children:p.label},void 0,!1,{fileName:Vr,lineNumber:103,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid split__toggle`,"aria-haspopup":`menu`,"aria-expanded":u,"aria-label":`Choose what this button does`,onClick:()=>d(e=>!e),children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 12 12`,"aria-hidden":`true`,width:`12`,height:`12`,children:(0,A.jsxDEV)(`path`,{d:`M2.5 4.5 6 8l3.5-3.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Vr,lineNumber:122,columnNumber:11},this)},void 0,!1,{fileName:Vr,lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:Vr,lineNumber:113,columnNumber:7},this),u&&(0,A.jsxDEV)(`div`,{className:`split__menu`,role:`menu`,children:Hr.map(t=>{let i=Br(t.mode,{counts:e.counts,canPublish:e.canPublish,sessionId:e.sessionId,publisherConfigured:n,publisherName:r});return(0,A.jsxDEV)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":c===t.mode,className:`split__item${c===t.mode?` is-active`:``}`,onClick:()=>m(t.mode),children:[(0,A.jsxDEV)(`span`,{className:`split__check`,"aria-hidden":`true`,children:c===t.mode?`✓`:``},void 0,!1,{fileName:Vr,lineNumber:146,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`split__body`,children:[(0,A.jsxDEV)(`span`,{className:`split__label`,children:t.label},void 0,!1,{fileName:Vr,lineNumber:148,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`split__detail`,children:i.needsSetup?`Needs a ${r} token`:t.detail},void 0,!1,{fileName:Vr,lineNumber:149,columnNumber:19},this)]},void 0,!0,{fileName:Vr,lineNumber:147,columnNumber:17},this)]},t.mode,!0,{fileName:Vr,lineNumber:138,columnNumber:15},this)})},void 0,!1,{fileName:Vr,lineNumber:128,columnNumber:9},this)]},void 0,!0,{fileName:Vr,lineNumber:102,columnNumber:5},this)}var Wr=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/ui/Toasts.tsx`,Gr=(0,k.createContext)(()=>void 0);function Kr(){return(0,k.useContext)(Gr)}var qr=3400;function Jr({children:e}){let[t,n]=(0,k.useState)([]),r=(0,k.useCallback)((e,t=`info`)=>{let r=Date.now()+Math.random();n(n=>[...n,{id:r,message:e,tone:t}]),setTimeout(()=>n(e=>e.filter(e=>e.id!==r)),qr)},[]),i=(0,k.useMemo)(()=>r,[r]);return(0,A.jsxDEV)(Gr.Provider,{value:i,children:[e,(0,A.jsxDEV)(`div`,{className:`toasts`,role:`status`,"aria-live":`polite`,children:t.map(e=>(0,A.jsxDEV)(`div`,{className:`toast toast--${e.tone}`,children:e.message},e.id,!1,{fileName:Wr,lineNumber:35,columnNumber:11},this))},void 0,!1,{fileName:Wr,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:Wr,lineNumber:31,columnNumber:5},this)}var N=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/PublishModal.tsx`,Yr={exact:`on its line`,snapped:`snapped to the nearest changed line`,file:`on the whole file`,general:`as a general comment`};function Xr({review:e,onClose:t,onOpenSettings:n}){let r=Kr(),[i,a]=(0,k.useState)(),[o,s]=(0,k.useState)(!1),[c,l]=(0,k.useState)(),u=Jn(e.slug,i,c===void 0),d=Yn(),f=c?.failures.map(e=>e.commentId)??[],p=t=>{d.mutate({slug:e.slug,mergeRequestIid:i,only:t},{onSuccess:e=>{l(e),e.failures.length===0&&r(`${e.created.length+e.updated.length} draft comment(s) created`,`success`)},onError:e=>r(ei(e),`danger`)})};return c?(0,A.jsxDEV)(hr,{title:`Published as drafts`,width:640,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Nobody is notified until you press `,(0,A.jsxDEV)(`strong`,{children:`Submit review`},void 0,!1,{fileName:N,lineNumber:65,columnNumber:50},this),` in GitLab.`]},void 0,!0,{fileName:N,lineNumber:64,columnNumber:13},this),f.length>0&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:d.isPending,onClick:()=>p(f),children:[`Retry `,f.length,` failed`]},void 0,!0,{fileName:N,lineNumber:68,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:t,children:`Done`},void 0,!1,{fileName:N,lineNumber:77,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:63,columnNumber:11},this),children:(0,A.jsxDEV)(Qr,{result:c},void 0,!1,{fileName:N,lineNumber:81,columnNumber:9},this)},void 0,!1,{fileName:N,lineNumber:58,columnNumber:7},this):(0,A.jsxDEV)(hr,{title:`Publish to GitLab`,width:640,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`These are created as `,(0,A.jsxDEV)(`strong`,{children:`pending`},void 0,!1,{fileName:N,lineNumber:94,columnNumber:34},this),` comments. You submit the review yourself.`]},void 0,!0,{fileName:N,lineNumber:93,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:N,lineNumber:96,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:d.isPending||u.isLoading||u.data===void 0,onClick:()=>p(),children:d.isPending?`Creating…`:`Create ${u.data?.targets.length??e.counts.staged} draft comment(s)`},void 0,!1,{fileName:N,lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:N,lineNumber:92,columnNumber:9},this),children:[u.isLoading&&(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Resolving the merge request…`},void 0,!1,{fileName:N,lineNumber:110,columnNumber:31},this),u.error&&(0,A.jsxDEV)($r,{error:u.error,onOpenSettings:n},void 0,!1,{fileName:N,lineNumber:112,columnNumber:27},this),u.data&&(0,A.jsxDEV)(`div`,{className:`publish`,children:[(0,A.jsxDEV)(`dl`,{className:`publish__facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Project`},void 0,!1,{fileName:N,lineNumber:118,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[(0,A.jsxDEV)(`a`,{href:u.data.projectUrl,target:`_blank`,rel:`noreferrer`,children:u.data.projectPath},void 0,!1,{fileName:N,lineNumber:120,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`publish__source`,children:u.data.projectPathSource===`origin`?`from origin`:`overridden`},void 0,!1,{fileName:N,lineNumber:123,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:119,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:117,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Merge request`},void 0,!1,{fileName:N,lineNumber:129,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`a`,{href:u.data.mergeRequest.url,target:`_blank`,rel:`noreferrer`,children:[`!`,u.data.mergeRequest.iid,` `,u.data.mergeRequest.title]},void 0,!0,{fileName:N,lineNumber:131,columnNumber:17},this)},void 0,!1,{fileName:N,lineNumber:130,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:128,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Diff`},void 0,!1,{fileName:N,lineNumber:137,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[u.data.changedFileCount,` file(s) · head`,` `,(0,A.jsxDEV)(`code`,{children:u.data.mergeRequest.headSha.slice(0,7)},void 0,!1,{fileName:N,lineNumber:140,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:138,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:136,columnNumber:13},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Sending`},void 0,!1,{fileName:N,lineNumber:144,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{children:[u.data.targets.length,` staged comment(s)`,u.data.alreadyPublished>0&&` · ${u.data.alreadyPublished} already on GitLab (they will be updated)`]},void 0,!0,{fileName:N,lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:143,columnNumber:13},this),u.data.username&&(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Acting as`},void 0,!1,{fileName:N,lineNumber:153,columnNumber:17},this),(0,A.jsxDEV)(`dd`,{children:[`@`,u.data.username]},void 0,!0,{fileName:N,lineNumber:154,columnNumber:17},this)]},void 0,!0,{fileName:N,lineNumber:152,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:116,columnNumber:11},this),u.data.originProjectPath&&(0,A.jsxDEV)(`p`,{className:`publish__warning`,children:[`Publishing to `,(0,A.jsxDEV)(`strong`,{children:u.data.projectPath},void 0,!1,{fileName:N,lineNumber:161,columnNumber:29},this),`, which is not this repository’s origin (`,u.data.originProjectPath,`).`]},void 0,!0,{fileName:N,lineNumber:160,columnNumber:13},this),u.data.drift&&(0,A.jsxDEV)(`p`,{className:`publish__warning`,children:[`This review was written against`,` `,(0,A.jsxDEV)(`code`,{children:u.data.drift.reviewHeadSha.slice(0,7)},void 0,!1,{fileName:N,lineNumber:169,columnNumber:15},this),`; the merge request is now at`,` `,(0,A.jsxDEV)(`code`,{children:u.data.drift.mergeRequestHeadSha.slice(0,7)},void 0,!1,{fileName:N,lineNumber:170,columnNumber:15},this),` — line numbers may have moved.`]},void 0,!0,{fileName:N,lineNumber:167,columnNumber:13},this),u.data.candidates.length>1&&(0,A.jsxDEV)(`label`,{className:`publish__picker`,children:[(0,A.jsxDEV)(`span`,{children:`Merge request`},void 0,!1,{fileName:N,lineNumber:177,columnNumber:15},this),(0,A.jsxDEV)(`select`,{className:`select`,value:i??u.data.mergeRequest.iid,onChange:e=>a(Number(e.target.value)),children:u.data.candidates.map(e=>(0,A.jsxDEV)(`option`,{value:e.iid,children:[`!`,e.iid,` — `,e.title]},e.iid,!0,{fileName:N,lineNumber:184,columnNumber:19},this))},void 0,!1,{fileName:N,lineNumber:178,columnNumber:15},this)]},void 0,!0,{fileName:N,lineNumber:176,columnNumber:13},this),(0,A.jsxDEV)(Zr,{targets:u.data.targets},void 0,!1,{fileName:N,lineNumber:192,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>s(e=>!e),children:o?`▾ hide every target`:`▸ show every target`},void 0,!1,{fileName:N,lineNumber:194,columnNumber:11},this),o&&(0,A.jsxDEV)(`ul`,{className:`publish__targets`,children:u.data.targets.map(e=>(0,A.jsxDEV)(`li`,{className:`publish__target is-${e.kind}`,children:[(0,A.jsxDEV)(`span`,{className:`comment__severity comment__severity--${e.severity}`,children:e.severity},void 0,!1,{fileName:N,lineNumber:206,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`publish__target-title`,title:e.title,children:e.title},void 0,!1,{fileName:N,lineNumber:209,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`publish__target-where`,title:e.detail,children:[e.file?`${e.file}${e.line?`:${e.line}`:``}`:`general`,` — `,Yr[e.kind]]},void 0,!0,{fileName:N,lineNumber:210,columnNumber:19},this)]},e.commentId,!0,{fileName:N,lineNumber:205,columnNumber:17},this))},void 0,!1,{fileName:N,lineNumber:203,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:115,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:87,columnNumber:5},this)}function Zr({targets:e}){let t=t=>e.filter(e=>e.kind===t).length,n=[t(`exact`)>0&&`${t(`exact`)} exact`,t(`snapped`)>0&&`${t(`snapped`)} snapped`,t(`file`)>0&&`${t(`file`)} file-level`,t(`general`)>0&&`${t(`general`)} general`].filter(Boolean);return(0,A.jsxDEV)(`p`,{className:`publish__summary`,children:n.join(` · `)||`Nothing to send.`},void 0,!1,{fileName:N,lineNumber:235,columnNumber:10},this)}function Qr({result:e}){let t=Kr(),n=e.created.length+e.updated.length;return(0,A.jsxDEV)(`div`,{className:`publish`,children:[(0,A.jsxDEV)(`p`,{className:`publish__result`,children:[(0,A.jsxDEV)(`strong`,{children:n},void 0,!1,{fileName:N,lineNumber:245,columnNumber:9},this),` draft comment(s) on`,` `,(0,A.jsxDEV)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,children:[`!`,e.mergeRequestIid]},void 0,!0,{fileName:N,lineNumber:246,columnNumber:9},this),e.skipped.length>0&&` · ${e.skipped.length} already submitted, left alone`]},void 0,!0,{fileName:N,lineNumber:244,columnNumber:7},this),e.session&&(0,A.jsxDEV)(`p`,{className:`publish__closed`,children:[`This review is closed — its session moved to `,(0,A.jsxDEV)(`strong`,{children:`Done`},void 0,!1,{fileName:N,lineNumber:255,columnNumber:56},this),`.`]},void 0,!0,{fileName:N,lineNumber:254,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`publish__links`,children:[(0,A.jsxDEV)(`a`,{className:`button button--subtle`,href:e.url,target:`_blank`,rel:`noreferrer`,children:`Open merge request ↗`},void 0,!1,{fileName:N,lineNumber:260,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,title:`Copy the merge request link`,"aria-label":`Copy the merge request link`,onClick:async()=>{t(await Mt(e.url)?`Link copied`:`Could not copy`,`success`)},children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,A.jsxDEV)(`rect`,{x:`5.5`,y:`5.5`,width:`8`,height:`8`,rx:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`},void 0,!1,{fileName:N,lineNumber:273,columnNumber:13},this),(0,A.jsxDEV)(`path`,{d:`M10.5 5.5v-1a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h1`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`},void 0,!1,{fileName:N,lineNumber:275,columnNumber:13},this)]},void 0,!0,{fileName:N,lineNumber:272,columnNumber:11},this)},void 0,!1,{fileName:N,lineNumber:263,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:259,columnNumber:7},this),e.failures.length>0&&(0,A.jsxDEV)(`ul`,{className:`publish__failures`,children:e.failures.map(e=>(0,A.jsxDEV)(`li`,{children:[(0,A.jsxDEV)(`code`,{children:e.commentId},void 0,!1,{fileName:N,lineNumber:285,columnNumber:15},this),` — `,e.message]},e.commentId,!0,{fileName:N,lineNumber:284,columnNumber:13},this))},void 0,!1,{fileName:N,lineNumber:282,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:243,columnNumber:5},this)}function $r({error:e,onOpenSettings:t}){let n=e instanceof Tn?e.code:``,r=n===`PUBLISHER_NOT_CONFIGURED`||n===`PUBLISHER_PROJECT_MISMATCH`;return(0,A.jsxDEV)(`div`,{className:`publish__error`,children:[(0,A.jsxDEV)(`p`,{children:ei(e)},void 0,!1,{fileName:N,lineNumber:304,columnNumber:7},this),r&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Open publishing settings`},void 0,!1,{fileName:N,lineNumber:306,columnNumber:9},this)]},void 0,!0,{fileName:N,lineNumber:303,columnNumber:5},this)}function ei(e){return e instanceof Tn||e instanceof Error?e.message:`That did not work.`}var P=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPane.tsx`,ti=[`all`,`open`,`staged`,`discarded`];function ni({review:e,projectDirectory:t,editorScheme:n=`vscode`,onPlanned:r,onOpenSettings:i}){let a=Kr(),o=Wn(),s=Gn(),c=qn(),{data:l}=Xn(),[u,d]=(0,k.useState)(!1),[f,p]=(0,k.useState)(`all`),[m,h]=(0,k.useState)(`all`),[g,_]=(0,k.useState)(),[v,y]=(0,k.useState)(),b=(0,k.useMemo)(()=>e.runs.flatMap(e=>e.comments),[e]),x=(0,k.useMemo)(()=>nn(b,f,m),[b,f,m]);(0,k.useEffect)(()=>{if(x.length===0){_(void 0);return}(!g||!x.some(e=>e.id===g))&&_(x[0].id)},[x,g]);let ee=o.isPending||s.isPending,te=(t,n)=>{o.mutate({slug:e.slug,commentId:t.id,etag:e.etag,expectedStatus:t.status,status:n},{onError:e=>ii(e,a),onSuccess:()=>{if(n===`open`)return;let e=rn(x,t.id);e&&(_(e.id),y(e.id))}})},S=(t,n,r)=>{let i=an(t,n);Object.keys(i).length===0&&!r||o.mutate({slug:e.slug,commentId:t.id,etag:e.etag,expectedStatus:t.status,...i,status:r?`staged`:void 0},{onError:e=>ii(e,a),onSuccess:()=>{i.severity&&m!==`all`&&i.severity!==m&&a(`Reclassified as ${Jt[i.severity].toLowerCase()} — hidden by the current filter.`,`info`)}})},ne=()=>{let t=x.filter(e=>e.status!==`staged`).map(e=>e.id);t.length!==0&&s.mutate({slug:e.slug,ids:t,status:`staged`,etag:e.etag,expectedStatus:`open`},{onSuccess:()=>a(`Staged ${t.length} comment(s)`,`success`),onError:e=>ii(e,a)})};ai({enabled:!ee,comments:x,focusedId:g,onFocus:_,onToggle:e=>y(t=>t===e?void 0:e),onDecide:(e,t)=>{let n=x.find(t=>t.id===e);n&&te(n,t)},onExpand:y,onStageAll:ne});let re=e.counts,ie=on(re);return(0,A.jsxDEV)(`div`,{className:`review`,children:[(0,A.jsxDEV)(`div`,{className:`review__scroll`,children:[(0,A.jsxDEV)(`div`,{className:`review__summary`,children:e.runs.map((t,n)=>(0,A.jsxDEV)(`section`,{className:`review__run`,children:[(0,A.jsxDEV)(`header`,{className:`review__run-head`,children:[(0,A.jsxDEV)(`span`,{className:`review__run-label`,children:e.runs.length>1?`Run ${n+1}`:`Summary`},void 0,!1,{fileName:P,lineNumber:193,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`chip`,title:t.headSha,children:t.headSha.slice(0,7)},void 0,!1,{fileName:P,lineNumber:196,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`review__run-counts`,children:[t.counts.total,` comment`,t.counts.total===1?``:`s`]},void 0,!0,{fileName:P,lineNumber:197,columnNumber:17},this),t.status===`published`&&(0,A.jsxDEV)(`span`,{className:`chip`,title:`Every staged comment in this run reached the code host`,children:`published`},void 0,!1,{fileName:P,lineNumber:201,columnNumber:19},this)]},void 0,!0,{fileName:P,lineNumber:192,columnNumber:15},this),(0,A.jsxDEV)(kr,{source:t.summary,compact:!0},void 0,!1,{fileName:P,lineNumber:208,columnNumber:15},this)]},t.id,!0,{fileName:P,lineNumber:191,columnNumber:13},this))},void 0,!1,{fileName:P,lineNumber:189,columnNumber:9},this),(0,A.jsxDEV)(`header`,{className:`review__toolbar`,children:[(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Filter by decision`,children:ti.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":f===e,className:`segmented__item${f===e?` is-active`:``}`,onClick:()=>p(e),children:e===`all`?`All ${re.total}`:`${ri(e)} ${re[e]}`},e,!1,{fileName:P,lineNumber:216,columnNumber:15},this))},void 0,!1,{fileName:P,lineNumber:214,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`select`,value:m,"aria-label":`Filter by severity`,onChange:e=>h(e.target.value),children:[(0,A.jsxDEV)(`option`,{value:`all`,children:`Any severity`},void 0,!1,{fileName:P,lineNumber:235,columnNumber:13},this),qt.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:P,lineNumber:237,columnNumber:15},this))]},void 0,!0,{fileName:P,lineNumber:229,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:ee||x.every(e=>e.status===`staged`),onClick:ne,title:`Stage every comment matching the current filter (⇧S)`,children:`Stage all shown`},void 0,!1,{fileName:P,lineNumber:241,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:async()=>{a(await Mt(e.path)?`Path copied`:`Could not copy`,`success`)},children:e.path},void 0,!1,{fileName:P,lineNumber:251,columnNumber:11},this)]},void 0,!0,{fileName:P,lineNumber:213,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`review__list`,children:x.length===0?(0,A.jsxDEV)(`p`,{className:`column__empty`,children:`Nothing matches this filter.`},void 0,!1,{fileName:P,lineNumber:264,columnNumber:13},this):x.map(e=>(0,A.jsxDEV)(Fr,{comment:e,projectDirectory:t,editorScheme:n,focused:e.id===g,expanded:e.id===v,busy:ee,onFocus:()=>_(e.id),onToggle:()=>y(t=>t===e.id?void 0:e.id),onDecide:t=>te(e,t),onEdit:(t,n)=>S(e,t,n),onToast:a},e.id,!1,{fileName:P,lineNumber:267,columnNumber:15},this))},void 0,!1,{fileName:P,lineNumber:262,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:188,columnNumber:7},this),(0,A.jsxDEV)(`footer`,{className:`review__foot`,children:[(0,A.jsxDEV)(`span`,{className:`review__gate${ie.kind===`ready`?` is-ready`:``}`,children:ie.label},void 0,!1,{fileName:P,lineNumber:287,columnNumber:9},this),(0,A.jsxDEV)(Ur,{review:e,projectDirectory:t,publisherConfigured:l?.configured??!1,publisherName:`GitLab`,busy:c.isPending,onOpenSettings:()=>i?.(),onPublish:()=>d(!0),onPlanChanges:()=>c.mutate(e.slug,{onSuccess:e=>{a(e.guidance,`success`),Mt(e.executeLine),r?.(e.session.id)},onError:e=>ii(e,a)})},void 0,!1,{fileName:P,lineNumber:294,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:286,columnNumber:7},this),u&&(0,A.jsxDEV)(Xr,{review:e,onClose:()=>d(!1),onOpenSettings:()=>{d(!1),i?.()}},void 0,!1,{fileName:P,lineNumber:316,columnNumber:9},this)]},void 0,!0,{fileName:P,lineNumber:180,columnNumber:5},this)}function ri(e){return e[0].toUpperCase()+e.slice(1)}function ii(e,t){if(e instanceof Tn&&e.isNotTriaged){t(`${e.openCount} comment(s) still need a decision.`,`danger`);return}if(e instanceof Tn&&e.isConflict){t(`That comment changed on disk — reload before deciding on it again.`,`danger`);return}t(e instanceof Error?e.message:`That did not work.`,`danger`)}function ai(e){(0,k.useEffect)(()=>{let t=t=>{if(!e.enabled)return;let n=t.target;if(n&&(n.tagName===`INPUT`||n.tagName===`TEXTAREA`||n.isContentEditable))return;let r=e.comments.findIndex(t=>t.id===e.focusedId),i=t=>{if(e.comments.length===0)return;let n=Math.min(Math.max(r+t,0),e.comments.length-1);e.onFocus(e.comments[n].id)};if(t.shiftKey&&t.key.toLowerCase()===`s`){t.preventDefault(),e.onStageAll();return}if(!(t.metaKey||t.ctrlKey||t.altKey))switch(t.key){case`j`:i(1);return;case`k`:i(-1);return;case`Enter`:e.focusedId&&(t.preventDefault(),e.onToggle(e.focusedId));return;case`s`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`staged`));return;case`d`:e.focusedId&&(t.preventDefault(),e.onDecide(e.focusedId,`discarded`));return;case`e`:e.focusedId&&(t.preventDefault(),e.onExpand(e.focusedId));return}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var F=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/SessionPage.tsx`,oi=(0,k.lazy)(()=>Er(()=>import(`./Editor-DhK1R-pw.js`).then(e=>({default:e.Editor})),[])),si=(0,k.lazy)(()=>Er(()=>import(`./Preview-CiP09x84.js`).then(e=>({default:e.Preview})),[])),ci=1200,li=/^<{7} yours\r?$/m;function ui({sessionId:e,mode:t,onModeChange:n,onBack:r,onArchived:i,onOpenSession:a,onOpenSettings:o}){let s=Kr(),{data:c,isLoading:l,error:u}=Mn(e),{data:d}=An(),{data:f}=jn(),p=Pn(),m=Nn(),h=Rn(),g=zn(),_=Ln(),v=Fn(),{data:y}=Hn((0,k.useMemo)(()=>c?.reviewFile?tn(c.reviewFile):void 0,[c?.reviewFile])),[b,x]=(0,k.useState)(`review`),[ee,te]=(0,k.useState)(!1),[S,ne]=(0,k.useState)(),[re,ie]=(0,k.useState)(),C=(0,k.useRef)(``),ae=(0,k.useRef)(``),w=(0,k.useRef)(null),T=S!==void 0&&S!==ae.current;(0,k.useEffect)(()=>{c&&C.current!==c.etag&&(S===void 0||S===ae.current)&&(C.current=c.etag,ae.current=c.body,ne(c.body),ie(void 0))},[c,S]);let oe=(0,k.useCallback)((t,n=!1)=>{c&&p.mutate({sessionId:e,body:t,etag:C.current,baseBody:ae.current,force:n},{onSuccess:({session:e,merged:t})=>{C.current=e.etag,ae.current=e.body,ne(e.body),ie(void 0),t&&s(`Merged the agent’s changes into yours.`,`info`)},onError:e=>{if(e instanceof Tn&&e.isMergeConflict){ie({merged:e.detail.mergedPreview??``,theirs:e.detail.currentContent??``,etag:e.detail.actualEtag??``,count:e.detail.conflictCount??1});return}s(e instanceof Error?e.message:`Could not save.`,`danger`)}})},[p,c,e,s]),E=(0,k.useCallback)((e,t,n)=>{C.current=e,ae.current=t,ne(n),ie(void 0)},[]),se=(0,k.useCallback)(()=>{S!==void 0&&T&&oe(S)},[S,T,oe]);(0,k.useEffect)(()=>{if(!(!T||S===void 0||re)&&!li.test(S))return w.current&&clearTimeout(w.current),w.current=setTimeout(()=>oe(S),ci),()=>{w.current&&clearTimeout(w.current)}},[S,T,re,oe]);let ce=(0,k.useMemo)(()=>f?.sessions??[],[f]),le=(0,k.useMemo)(()=>c?.parent?ce.find(e=>e.id===c.parent):void 0,[ce,c?.parent]),ue=(0,k.useMemo)(()=>c?`execute instructions from ${c.path}`:``,[c]);if((0,k.useEffect)(()=>{!c||c.kind!==`review`||x(c.status===`review`?`review`:`plan`)},[c?.id,c?.status,c?.kind]),l)return(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading session…`},void 0,!1,{fileName:F,lineNumber:211,columnNumber:25},this);if(u||!c)return(0,A.jsxDEV)(`div`,{className:`page-state`,children:[(0,A.jsxDEV)(`p`,{children:`This session could not be loaded.`},void 0,!1,{fileName:F,lineNumber:215,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:r,children:`Back to sessions`},void 0,!1,{fileName:F,lineNumber:216,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:214,columnNumber:7},this);let de=S??c.body,fe=c.kind===`review`,pe=!fe||b===`plan`;return(0,A.jsxDEV)(`div`,{className:`session`,children:[(0,A.jsxDEV)(`header`,{className:`session__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:r,title:`Back (Esc)`,"aria-label":`Back`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:F,lineNumber:230,columnNumber:13},this)},void 0,!1,{fileName:F,lineNumber:229,columnNumber:11},this)},void 0,!1,{fileName:F,lineNumber:228,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`session__title`,children:c.title},void 0,!1,{fileName:F,lineNumber:236,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`session__meta`,children:[(0,A.jsxDEV)(`span`,{className:`session__stamp session__stamp--created`,title:kt(c.created),children:[`created `,Ot(c.created)]},void 0,!0,{fileName:F,lineNumber:238,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`session__stamp session__stamp--created`,"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:F,lineNumber:241,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`session__stamp`,title:kt(c.updated),children:[`updated `,Ot(c.updated)]},void 0,!0,{fileName:F,lineNumber:242,columnNumber:13},this),T&&(0,A.jsxDEV)(`span`,{className:`session__dirty`,children:S!==void 0&&li.test(S)?`unsaved — resolve the conflict markers`:`unsaved`},void 0,!1,{fileName:F,lineNumber:246,columnNumber:15},this),p.isPending&&(0,A.jsxDEV)(`span`,{className:`session__saving`,children:`saving…`},void 0,!1,{fileName:F,lineNumber:252,columnNumber:32},this)]},void 0,!0,{fileName:F,lineNumber:237,columnNumber:11},this),fe&&(0,A.jsxDEV)(`div`,{className:`session__lineage`,children:[(0,A.jsxDEV)(`span`,{className:`session__kicker`,children:`Review`},void 0,!1,{fileName:F,lineNumber:257,columnNumber:15},this),c.branch&&(0,A.jsxDEV)(`span`,{className:`session__branch`,children:c.branch},void 0,!1,{fileName:F,lineNumber:258,columnNumber:34},this),le?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>a(le.id),title:`Open the session under review`,children:[`↳ `,le.title]},void 0,!0,{fileName:F,lineNumber:260,columnNumber:17},this):c.parent?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button link-button--danger`,onClick:()=>te(!0),children:`↳ unlinked — the session this reviewed is gone`},void 0,!1,{fileName:F,lineNumber:271,columnNumber:17},this):(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:()=>te(!0),children:`↳ standalone — link to a session`},void 0,!1,{fileName:F,lineNumber:279,columnNumber:17},this)]},void 0,!0,{fileName:F,lineNumber:256,columnNumber:13},this)]},void 0,!0,{fileName:F,lineNumber:235,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__controls`,children:[(0,A.jsxDEV)($t,{status:c.status,kind:c.kind,review:y,onTriage:()=>x(`review`),onChange:t=>m.mutate({sessionId:e,status:t},{onError:()=>s(`Could not change the status.`,`danger`)})},void 0,!1,{fileName:F,lineNumber:288,columnNumber:11},this),fe&&(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Session view`,children:[`review`,`plan`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":b===e,className:`segmented__item${b===e?` is-active`:``}`,onClick:()=>x(e),children:[e===`review`?`Comments`:`Fix plan`,e===`review`&&y&&y.counts.open>0&&(0,A.jsxDEV)(`span`,{className:`segmented__badge`,children:y.counts.open},void 0,!1,{fileName:F,lineNumber:314,columnNumber:21},this)]},e,!0,{fileName:F,lineNumber:304,columnNumber:17},this))},void 0,!1,{fileName:F,lineNumber:302,columnNumber:13},this),pe&&(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`View mode`,children:[`preview`,`edit`,`split`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":t===e,className:`segmented__item${t===e?` is-active`:``}`,onClick:()=>n(e),title:e===`preview`?`Preview (⇧⌘V)`:e===`edit`?`Edit (⇧⌘V)`:`Split`,children:e[0].toUpperCase()+e.slice(1)},e,!1,{fileName:F,lineNumber:324,columnNumber:17},this))},void 0,!1,{fileName:F,lineNumber:322,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`session__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:async()=>{s(await Mt(ue)?`Execute line copied`:`Could not copy`,`success`)},children:`Copy execute line`},void 0,!1,{fileName:F,lineNumber:340,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:()=>{window.confirm(`Archive this session? The file moves to .invariant/sessions/.archive/`)&&h.mutate(e,{onSuccess:()=>{s(`Session archived`,`success`),i()},onError:()=>s(`Could not archive the session.`,`danger`)})},children:`Archive`},void 0,!1,{fileName:F,lineNumber:349,columnNumber:13},this)]},void 0,!0,{fileName:F,lineNumber:339,columnNumber:11},this)]},void 0,!0,{fileName:F,lineNumber:287,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:227,columnNumber:7},this),fe&&(0,A.jsxDEV)(pr,{status:c.status,review:y,onTriage:()=>x(`review`),onCopyExecuteLine:async()=>{s(await Mt(ue)?`Execute line copied`:`Could not copy`,`success`)}},void 0,!1,{fileName:F,lineNumber:367,columnNumber:9},this),re&&(0,A.jsxDEV)(Sn,{conflictCount:re.count,onOpenMerge:()=>{E(re.etag,re.theirs,re.merged)},onKeepMine:()=>{S!==void 0&&oe(S,!0)},onTakeTheirs:async()=>{S!==void 0&&await v.mutateAsync({sessionId:e,body:S}),E(re.etag,re.theirs,re.theirs),s(`Your version was parked in .invariant/sessions/.conflicts/`,`info`)}},void 0,!1,{fileName:F,lineNumber:378,columnNumber:9},this),c.needsMigration&&(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:`This session has no canonical header.`},void 0,!1,{fileName:F,lineNumber:402,columnNumber:13},this),` `,c.issues[0]]},void 0,!0,{fileName:F,lineNumber:401,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>g.mutate(e,{onSuccess:()=>s(`Header migrated`,`success`),onError:()=>s(`Could not migrate the header.`,`danger`)}),children:`Fix header`},void 0,!1,{fileName:F,lineNumber:405,columnNumber:13},this)},void 0,!1,{fileName:F,lineNumber:404,columnNumber:11},this)]},void 0,!0,{fileName:F,lineNumber:400,columnNumber:9},this),!fe&&c.status===`executed`&&(0,A.jsxDEV)(dr,{session:c,onOpenSession:a,onToast:s},void 0,!1,{fileName:F,lineNumber:422,columnNumber:9},this),fe&&b===`review`?y?(0,A.jsxDEV)(ni,{review:y,projectDirectory:d?.directory,onPlanned:()=>x(`plan`),onOpenSettings:o},void 0,!1,{fileName:F,lineNumber:431,columnNumber:11},this):(0,A.jsxDEV)(`div`,{className:`page-state`,children:`The review document has not been written yet. Paste the execute line into a new agent conversation, and the comments will appear here as soon as it saves them.`},void 0,!1,{fileName:F,lineNumber:438,columnNumber:11},this):(0,A.jsxDEV)(`div`,{className:`session__body session__body--${t}`,children:(0,A.jsxDEV)(k.Suspense,{fallback:(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading…`},void 0,!1,{fileName:F,lineNumber:445,columnNumber:31},this),children:[t!==`preview`&&(0,A.jsxDEV)(oi,{value:de,onChange:ne,onSave:se},void 0,!1,{fileName:F,lineNumber:446,columnNumber:36},this),t!==`edit`&&(0,A.jsxDEV)(si,{body:de,withToc:t===`preview`},void 0,!1,{fileName:F,lineNumber:447,columnNumber:33},this)]},void 0,!0,{fileName:F,lineNumber:445,columnNumber:11},this)},void 0,!1,{fileName:F,lineNumber:444,columnNumber:9},this),ee&&(0,A.jsxDEV)(_r,{review:c,candidates:ce,busy:_.isPending,onClose:()=>te(!1),onLink:t=>_.mutate({sessionId:e,parentSessionId:t},{onSuccess:()=>{te(!1),s(`Review linked`,`success`)},onError:e=>s(e instanceof Error?e.message:`Could not link the review.`,`danger`)})},void 0,!1,{fileName:F,lineNumber:453,columnNumber:9},this)]},void 0,!0,{fileName:F,lineNumber:226,columnNumber:5},this)}var di=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/sessions/NewSessionModal.tsx`;function fi({busy:e,onClose:t,onSubmit:n}){let[r,i]=(0,k.useState)(``),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1),l=()=>{let t=r.trim();t.length===0||e||n({prompt:t,context:a.trim()||void 0,full:s||void 0})};return(0,A.jsxDEV)(hr,{title:`New session`,onClose:t,width:620,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs `,(0,A.jsxDEV)(`code`,{children:`invariant plan`},void 0,!1,{fileName:di,lineNumber:32,columnNumber:46},this),` in this project`]},void 0,!0,{fileName:di,lineNumber:32,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:di,lineNumber:33,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:l,disabled:e||r.trim().length===0,children:e?`Creating…`:`Create session ⌘↵`},void 0,!1,{fileName:di,lineNumber:34,columnNumber:11},this)]},void 0,!0,{fileName:di,lineNumber:31,columnNumber:9},this),children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Task`},void 0,!1,{fileName:di,lineNumber:41,columnNumber:9},this),(0,A.jsxDEV)(`textarea`,{className:`field__input field__input--area`,rows:6,value:r,placeholder:`Describe what should be planned and built…`,onChange:e=>i(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),l())}},void 0,!1,{fileName:di,lineNumber:42,columnNumber:9},this)]},void 0,!0,{fileName:di,lineNumber:40,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Context `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:di,lineNumber:56,columnNumber:50},this)]},void 0,!0,{fileName:di,lineNumber:56,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:a,placeholder:`package/context-name`,onChange:e=>o(e.target.value)},void 0,!1,{fileName:di,lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:di,lineNumber:55,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)},void 0,!1,{fileName:di,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Inline full instructions (`,(0,A.jsxDEV)(`code`,{children:`--full`},void 0,!1,{fileName:di,lineNumber:67,columnNumber:43},this),`)`]},void 0,!0,{fileName:di,lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:di,lineNumber:65,columnNumber:9},this)]},void 0,!0,{fileName:di,lineNumber:54,columnNumber:7},this)]},void 0,!0,{fileName:di,lineNumber:26,columnNumber:5},this)}function pi(e,t){let n=new Map(t.map(e=>[e.id,e])),r=t.filter(e=>e.kind===`review`),i=new Map;for(let e of r){if(!e.reviewFile)continue;let t=tn(e.reviewFile);i.set(t,[...i.get(t)??[],e])}let a=new Set,o=[];for(let t of e){let e=i.get(t.slug)??[],r=t.sessionId?n.get(t.sessionId):void 0,s=r??hi(e);for(let t of e)a.add(t.id);r&&a.add(r.id);let c=s?.parent?n.get(s.parent):void 0;o.push({key:t.slug,slug:t.slug,branch:t.branch,path:t.path,document:t,reviewSession:s,subject:c,link:mi(s,c),state:t.counts.open>0?`triage`:`settled`,updated:gi(t.updated,s?.updated)})}for(let e of r){if(a.has(e.id))continue;let t=e.parent?n.get(e.parent):void 0;o.push({key:e.id,slug:e.reviewFile?tn(e.reviewFile):void 0,branch:e.branch??e.title,path:e.reviewFile,reviewSession:e,subject:t,link:mi(e,t),state:`pending`,updated:e.updated})}return o.sort((e,t)=>e.state===`triage`==(t.state===`triage`)?t.updated.localeCompare(e.updated):e.state===`triage`?-1:1)}function mi(e,t){return e?t?`attached`:e.parent?`orphaned`:`standalone`:`unowned`}function hi(e){return e.reduce((e,t)=>!e||t.updated.localeCompare(e.updated)>0?t:e,void 0)}function gi(e,t){return t&&t.localeCompare(e)>0?t:e}var I=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewsPage.tsx`;function _i({onOpen:e,onOpenSession:t,onReviewBranch:n}){let{data:r,isLoading:i}=Vn(),{data:a}=An(),{data:o,isLoading:s}=jn(),c=(0,k.useMemo)(()=>pi(r?.reviews??[],o?.sessions??[]),[r,o]),l=c.filter(e=>e.state===`pending`).length;return i||s?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading reviews…`},void 0,!1,{fileName:I,lineNumber:36,columnNumber:44},this):c.length===0?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No reviews yet`},void 0,!1,{fileName:I,lineNumber:41,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A review is an XML file in `,(0,A.jsxDEV)(`code`,{children:r?.directory??`doc/review`},void 0,!1,{fileName:I,lineNumber:43,columnNumber:38},this),` holding one pass over a branch, read by a fresh agent that has not seen the plan. There are two ways in: finish a session and use `,(0,A.jsxDEV)(`strong`,{children:`Request review`},void 0,!1,{fileName:I,lineNumber:45,columnNumber:36},this),` there, or review the branch you are on right now — for work no session of yours covers.`]},void 0,!0,{fileName:I,lineNumber:42,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:`Review a branch`},void 0,!1,{fileName:I,lineNumber:48,columnNumber:9},this)]},void 0,!0,{fileName:I,lineNumber:40,columnNumber:7},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Reviews`},void 0,!1,{fileName:I,lineNumber:59,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,children:a?.name??r?.directory},void 0,!1,{fileName:I,lineNumber:60,columnNumber:11},this)]},void 0,!0,{fileName:I,lineNumber:58,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,A.jsxDEV)(`span`,{className:`count count--review`,title:`Awaiting triage`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:r?.awaitingTriage??0},void 0,!1,{fileName:I,lineNumber:65,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Awaiting triage`},void 0,!1,{fileName:I,lineNumber:66,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:64,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--planning`,title:`Reviews an agent is still writing`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:l},void 0,!1,{fileName:I,lineNumber:69,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`In flight`},void 0,!1,{fileName:I,lineNumber:70,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:68,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--planned`,title:`Staged`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:r?.counts.staged??0},void 0,!1,{fileName:I,lineNumber:73,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Staged`},void 0,!1,{fileName:I,lineNumber:74,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:72,columnNumber:13},this)]},void 0,!0,{fileName:I,lineNumber:63,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:n,children:`Review a branch`},void 0,!1,{fileName:I,lineNumber:78,columnNumber:11},this)]},void 0,!0,{fileName:I,lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:I,lineNumber:57,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`list`,children:(0,A.jsxDEV)(`table`,{className:`list__table list__table--reviews`,children:[(0,A.jsxDEV)(`colgroup`,{children:[(0,A.jsxDEV)(`col`,{className:`col--branch`},void 0,!1,{fileName:I,lineNumber:92,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--work`},void 0,!1,{fileName:I,lineNumber:93,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--triage`},void 0,!1,{fileName:I,lineNumber:94,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--runs`},void 0,!1,{fileName:I,lineNumber:95,columnNumber:13},this),(0,A.jsxDEV)(`col`,{className:`col--updated`},void 0,!1,{fileName:I,lineNumber:96,columnNumber:13},this)]},void 0,!0,{fileName:I,lineNumber:91,columnNumber:11},this),(0,A.jsxDEV)(`thead`,{children:(0,A.jsxDEV)(`tr`,{children:[(0,A.jsxDEV)(`th`,{scope:`col`,children:`Branch`},void 0,!1,{fileName:I,lineNumber:100,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Work under review`},void 0,!1,{fileName:I,lineNumber:101,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Triage`},void 0,!1,{fileName:I,lineNumber:102,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Runs`},void 0,!1,{fileName:I,lineNumber:103,columnNumber:15},this),(0,A.jsxDEV)(`th`,{scope:`col`,children:`Updated`},void 0,!1,{fileName:I,lineNumber:104,columnNumber:15},this)]},void 0,!0,{fileName:I,lineNumber:99,columnNumber:13},this)},void 0,!1,{fileName:I,lineNumber:98,columnNumber:11},this),(0,A.jsxDEV)(`tbody`,{children:c.map(n=>{let r=n.state===`pending`;return(0,A.jsxDEV)(`tr`,{className:r?`reviews__row--pending`:void 0,onClick:()=>n.slug&&n.document?e(n.slug):n.reviewSession&&t(n.reviewSession.id),children:[(0,A.jsxDEV)(`td`,{children:[(0,A.jsxDEV)(`div`,{className:`list__title cell-clip`,title:n.branch,children:n.branch},void 0,!1,{fileName:I,lineNumber:123,columnNumber:21},this),(0,A.jsxDEV)(`div`,{className:`list__excerpt cell-clip`,title:r?`Not written yet — the agent writes it to ${n.path??`the review directory`}`:n.path,children:n.path??`—`},void 0,!1,{fileName:I,lineNumber:124,columnNumber:21},this)]},void 0,!0,{fileName:I,lineNumber:122,columnNumber:19},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(vi,{entry:n,onOpenSession:t},void 0,!1,{fileName:I,lineNumber:136,columnNumber:21},this)},void 0,!1,{fileName:I,lineNumber:135,columnNumber:19},this),(0,A.jsxDEV)(`td`,{onClick:e=>e.stopPropagation(),children:(0,A.jsxDEV)(yi,{entry:n},void 0,!1,{fileName:I,lineNumber:139,columnNumber:21},this)},void 0,!1,{fileName:I,lineNumber:138,columnNumber:19},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,children:n.document?.runCount??`—`},void 0,!1,{fileName:I,lineNumber:141,columnNumber:19},this),(0,A.jsxDEV)(`td`,{className:`list__meta`,title:n.updated,children:Ot(n.updated)},void 0,!1,{fileName:I,lineNumber:142,columnNumber:19},this)]},n.key,!0,{fileName:I,lineNumber:111,columnNumber:17},this)})},void 0,!1,{fileName:I,lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:I,lineNumber:85,columnNumber:9},this)},void 0,!1,{fileName:I,lineNumber:84,columnNumber:7},this)]},void 0,!0,{fileName:I,lineNumber:56,columnNumber:5},this)}function vi({entry:e,onOpenSession:t}){return e.subject?(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button cell-clip`,title:e.subject.title,onClick:()=>t(e.subject?.id),children:e.subject.title},void 0,!1,{fileName:I,lineNumber:169,columnNumber:7},this):e.link===`unowned`?(0,A.jsxDEV)(`span`,{className:`reviews__standalone`,title:`No review session on the board owns this file`,children:`—`},void 0,!1,{fileName:I,lineNumber:182,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`reviews__standalone`,title:e.link===`orphaned`?`The session this reviewed is no longer on the board`:`This review covers a branch on its own`,children:e.link},void 0,!1,{fileName:I,lineNumber:189,columnNumber:5},this)}function yi({entry:e}){if(!e.document){let t=e.reviewSession?It(e.reviewSession):void 0;return(0,A.jsxDEV)(`span`,{className:`pill pill--pending`,title:t?.hint??`No review document yet.`,children:t?.label??`Not written yet`},void 0,!1,{fileName:I,lineNumber:210,columnNumber:7},this)}return(0,A.jsxDEV)(bi,{review:e.document},void 0,!1,{fileName:I,lineNumber:215,columnNumber:10},this)}function bi({review:e}){return e.counts.open>0?(0,A.jsxDEV)(`span`,{className:`pill pill--review`,title:`${e.counts.total} comment(s) in this review`,children:[e.counts.open,` of `,e.counts.total,` awaiting`]},void 0,!0,{fileName:I,lineNumber:221,columnNumber:7},this):e.status===`published`?(0,A.jsxDEV)(`span`,{className:`pill pill--executed`,title:`Staged comments were sent to the code host`,children:[`Published · `,e.counts.staged,` sent`]},void 0,!0,{fileName:I,lineNumber:230,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`pill pill--executed`,children:[e.counts.staged,` staged · `,e.counts.discarded,` discarded`]},void 0,!0,{fileName:I,lineNumber:236,columnNumber:5},this)}var xi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewPage.tsx`;function Si({slug:e,onBack:t,onOpenSession:n,onOpenSettings:r}){let{data:i,isLoading:a,error:o}=Hn(e),{data:s}=An();return a?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading review…`},void 0,!1,{fileName:xi,lineNumber:22,columnNumber:25},this):o||!i?(0,A.jsxDEV)(`div`,{className:`page-state`,children:[(0,A.jsxDEV)(`p`,{children:`This review could not be loaded.`},void 0,!1,{fileName:xi,lineNumber:26,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:t,children:`Back to reviews`},void 0,!1,{fileName:xi,lineNumber:27,columnNumber:9},this)]},void 0,!0,{fileName:xi,lineNumber:25,columnNumber:7},this):(0,A.jsxDEV)(`div`,{className:`session`,children:[(0,A.jsxDEV)(`header`,{className:`session__head`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`icon-button`,onClick:t,title:`Back (Esc)`,"aria-label":`Back`,children:(0,A.jsxDEV)(`svg`,{viewBox:`0 0 16 16`,"aria-hidden":`true`,children:(0,A.jsxDEV)(`path`,{d:`M9.5 3.5 5 8l4.5 4.5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:xi,lineNumber:37,columnNumber:13},this)},void 0,!1,{fileName:xi,lineNumber:36,columnNumber:11},this)},void 0,!1,{fileName:xi,lineNumber:35,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`session__title`,children:i.branch},void 0,!1,{fileName:xi,lineNumber:43,columnNumber:11},this),(0,A.jsxDEV)(Ci,{review:i,project:s},void 0,!1,{fileName:xi,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:xi,lineNumber:42,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`session__controls`,children:i.sessionId&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>n(i.sessionId),children:`Open session`},void 0,!1,{fileName:xi,lineNumber:49,columnNumber:13},this)},void 0,!1,{fileName:xi,lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:xi,lineNumber:34,columnNumber:7},this),(0,A.jsxDEV)(ni,{review:i,projectDirectory:s?.directory,onPlanned:n,onOpenSettings:r},void 0,!1,{fileName:xi,lineNumber:60,columnNumber:7},this)]},void 0,!0,{fileName:xi,lineNumber:33,columnNumber:5},this)}function Ci({review:e,project:t}){return(0,A.jsxDEV)(`div`,{className:`session__meta`,children:[(0,A.jsxDEV)(`span`,{children:[`base `,e.base]},void 0,!0,{fileName:xi,lineNumber:79,columnNumber:7},this),(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:xi,lineNumber:80,columnNumber:7},this),(0,A.jsxDEV)(`span`,{title:e.scope.baseSha,children:e.scope.baseSha.slice(0,7)},void 0,!1,{fileName:xi,lineNumber:81,columnNumber:7},this),(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`→`},void 0,!1,{fileName:xi,lineNumber:82,columnNumber:7},this),(0,A.jsxDEV)(`span`,{title:e.scope.headSha,children:e.scope.headSha.slice(0,7)},void 0,!1,{fileName:xi,lineNumber:83,columnNumber:7},this),e.runCount>1&&(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:xi,lineNumber:86,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[e.runCount,` runs`]},void 0,!0,{fileName:xi,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:xi,lineNumber:85,columnNumber:9},this),t&&(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{"aria-hidden":`true`,children:`·`},void 0,!1,{fileName:xi,lineNumber:92,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:t.name},void 0,!1,{fileName:xi,lineNumber:93,columnNumber:11},this)]},void 0,!0,{fileName:xi,lineNumber:91,columnNumber:9},this)]},void 0,!0,{fileName:xi,lineNumber:78,columnNumber:5},this)}var wi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/reviews/ReviewBranchModal.tsx`;function Ti({busy:e,onClose:t,onSubmit:n}){let{data:r,isLoading:i}=Bn(),[a,o]=(0,k.useState)(``),[s,c]=(0,k.useState)(!1);(0,k.useEffect)(()=>{s||!r?.baseBranch||o(r.baseBranch)},[r?.baseBranch,s]);let l=r!==void 0&&!r.canReview,u=a.trim();return(0,A.jsxDEV)(hr,{title:`Review a branch`,onClose:t,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:`This review will not be tied to any session.`},void 0,!1,{fileName:wi,lineNumber:43,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:t,children:`Cancel`},void 0,!1,{fileName:wi,lineNumber:44,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e||l||i,title:l?r?.reason:void 0,onClick:()=>n({base:u.length>0&&u!==r?.baseBranch?u:void 0}),children:e?`Creating…`:`Create review session`},void 0,!1,{fileName:wi,lineNumber:45,columnNumber:11},this)]},void 0,!0,{fileName:wi,lineNumber:42,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A fresh agent reads this branch's diff and writes its findings into`,` `,(0,A.jsxDEV)(`code`,{children:`doc/review/<branch>.xml`},void 0,!1,{fileName:wi,lineNumber:65,columnNumber:9},this),`. Use this for work no session of yours covers — a branch you pulled from someone else.`]},void 0,!0,{fileName:wi,lineNumber:63,columnNumber:7},this),i?(0,A.jsxDEV)(`p`,{className:`column__empty`,children:`Reading the branch…`},void 0,!1,{fileName:wi,lineNumber:70,columnNumber:9},this):l?(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:(0,A.jsxDEV)(`div`,{className:`banner__text`,children:r?.reason},void 0,!1,{fileName:wi,lineNumber:73,columnNumber:11},this)},void 0,!1,{fileName:wi,lineNumber:72,columnNumber:9},this):(0,A.jsxDEV)(`dl`,{className:`scope`,children:[(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Branch`},void 0,!1,{fileName:wi,lineNumber:78,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{className:`scope__value`,children:r?.branch},void 0,!1,{fileName:wi,lineNumber:79,columnNumber:13},this)]},void 0,!0,{fileName:wi,lineNumber:77,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Diff`},void 0,!1,{fileName:wi,lineNumber:82,columnNumber:13},this),(0,A.jsxDEV)(`dd`,{className:`scope__value`,children:[r?.changedFileCount,` file`,r?.changedFileCount===1?``:`s`,r?.hasStagedChanges?` · staged changes included`:` · nothing staged`]},void 0,!0,{fileName:wi,lineNumber:83,columnNumber:13},this)]},void 0,!0,{fileName:wi,lineNumber:81,columnNumber:11},this),r?.headSha&&(0,A.jsxDEV)(`div`,{className:`scope__row`,children:[(0,A.jsxDEV)(`dt`,{className:`scope__term`,children:`Head`},void 0,!1,{fileName:wi,lineNumber:90,columnNumber:15},this),(0,A.jsxDEV)(`dd`,{className:`scope__value scope__value--mono`,title:r.headSha,children:r.headSha.slice(0,7)},void 0,!1,{fileName:wi,lineNumber:91,columnNumber:15},this)]},void 0,!0,{fileName:wi,lineNumber:89,columnNumber:13},this)]},void 0,!0,{fileName:wi,lineNumber:76,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`field`,children:[(0,A.jsxDEV)(`label`,{className:`field__label`,htmlFor:`review-base`,children:[`Base ref `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`— what the diff is measured from`},void 0,!1,{fileName:wi,lineNumber:101,columnNumber:20},this)]},void 0,!0,{fileName:wi,lineNumber:100,columnNumber:9},this),(0,A.jsxDEV)(`input`,{id:`review-base`,className:`field__input`,value:a,placeholder:`origin/main`,onChange:e=>{c(!0),o(e.target.value)}},void 0,!1,{fileName:wi,lineNumber:103,columnNumber:9},this)]},void 0,!0,{fileName:wi,lineNumber:99,columnNumber:7},this)]},void 0,!0,{fileName:wi,lineNumber:38,columnNumber:5},this)}var Ei=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackageList.tsx`;function Di({packages:e,selected:t,filter:n,onFilter:r,onSelect:i,dirty:a}){let o=n.trim().toLowerCase(),s=e.filter(e=>o.length===0||e.name.toLowerCase().includes(o)).sort((e,t)=>e.activeCount>0==t.activeCount>0?e.name.localeCompare(t.name):e.activeCount>0?-1:1);return(0,A.jsxDEV)(`div`,{className:`packages__list`,children:[(0,A.jsxDEV)(`div`,{className:`packages__filter`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:n,placeholder:`Filter packages…`,"aria-label":`Filter packages`,spellCheck:!1,onChange:e=>r(e.target.value)},void 0,!1,{fileName:Ei,lineNumber:38,columnNumber:9},this)},void 0,!1,{fileName:Ei,lineNumber:37,columnNumber:7},this),s.length===0?(0,A.jsxDEV)(`p`,{className:`packages__list-empty`,children:[`No package matches “`,n,`”.`]},void 0,!0,{fileName:Ei,lineNumber:49,columnNumber:9},this):(0,A.jsxDEV)(`ul`,{className:`packages__rows`,children:s.map(e=>(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`packages__row${e.name===t?` is-selected`:``}`,onClick:()=>i(e.name),"aria-current":e.name===t?`true`:void 0,children:[(0,A.jsxDEV)(`span`,{className:`packages__dot packages__dot--${e.activeCount>0?`on`:`off`}`},void 0,!1,{fileName:Ei,lineNumber:60,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__row-body`,children:[(0,A.jsxDEV)(`span`,{className:`packages__row-name`,children:[e.name,a.has(e.name)&&(0,A.jsxDEV)(`span`,{className:`packages__row-dirty`,title:`Unapplied changes`,children:`•`},void 0,!1,{fileName:Ei,lineNumber:65,columnNumber:23},this)]},void 0,!0,{fileName:Ei,lineNumber:62,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`packages__row-meta`,children:[(0,A.jsxDEV)(`span`,{className:`chip`,children:e.source},void 0,!1,{fileName:Ei,lineNumber:71,columnNumber:21},this),(0,A.jsxDEV)(Oi,{pkg:e},void 0,!1,{fileName:Ei,lineNumber:72,columnNumber:21},this)]},void 0,!0,{fileName:Ei,lineNumber:70,columnNumber:19},this)]},void 0,!0,{fileName:Ei,lineNumber:61,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__row-count`,children:[e.activeCount,`/`,e.totalCount]},void 0,!0,{fileName:Ei,lineNumber:75,columnNumber:17},this)]},void 0,!0,{fileName:Ei,lineNumber:54,columnNumber:15},this)},e.name,!1,{fileName:Ei,lineNumber:53,columnNumber:13},this))},void 0,!1,{fileName:Ei,lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:Ei,lineNumber:36,columnNumber:5},this)}function Oi({pkg:e}){return e.presence===`cached-only`?(0,A.jsxDEV)(`span`,{className:`chip`,title:`Installed in the cache but not listed in invariant.json`,children:`not declared`},void 0,!1,{fileName:Ei,lineNumber:94,columnNumber:7},this):e.presence===`declared-only`?(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:`Listed in invariant.json but not installed here`,children:`not installed`},void 0,!1,{fileName:Ei,lineNumber:101,columnNumber:7},this):null}var ki={add:[],remove:[]};function Ai(e){return`${e.type}/${e.name}`}function ji(e,t){let n=Ai(t);return e.filter(e=>Ai(e)!==n)}function Mi(e,t){let n=Ai(t);return e.some(e=>Ai(e)===n)}function Ni(e,t,n){let r={type:t.type,name:t.name},i={add:ji(e.add,r),remove:ji(e.remove,r)};return n===t.active?i:n?{...i,add:[...i.add,r]}:{...i,remove:[...i.remove,r]}}function Pi(e,t,n,r){return t.filter(e=>e.type===n).reduce((e,t)=>Ni(e,t,r),e)}function Fi(e,t,n){return t.reduce((e,t)=>Ni(e,t,n),e)}function Ii(e,t){let n={type:t.type,name:t.name};return Mi(e.add,n)?`adding`:Mi(e.remove,n)?`removing`:`unchanged`}function Li(e,t){let n=Ii(e,t);return n===`adding`||n!==`removing`&&t.active}function Ri(e,t,n){let r=t.filter(e=>e.type===n);if(r.length===0)return`none`;let i=r.filter(t=>Li(e,t)).length;return i===0?`none`:i===r.length?`all`:`some`}function zi(e){return e.add.length+e.remove.length}function Bi(e){return zi(e)===0}function Vi(e){return Xt.filter(t=>e.some(e=>e.type===t))}var Hi={agents:`agent`,skills:`skill`,commands:`command`,rules:`rule`,contexts:`context`,instructions:`instruction`};function Ui(e,t){return`${Hi[t.type]}:${e}/${t.name}`}function Wi(e,t,n={}){let r=[];return t.remove.length>0&&r.push(`invariant remove ${t.remove.map(t=>Ui(e,t)).join(` `)}`),t.add.length>0&&r.push(`invariant add ${t.add.map(t=>Ui(e,t)).join(` `)}`),n.sync&&r.length>0&&r.push(`invariant sync`),r}function Gi(e,t={}){return`invariant install ${[Ki(e),...[t.activate===!1?`--no-add`:void 0,t.sync?`--sync`:void 0].filter(Boolean)].join(` `)}`}function Ki(e){if(e.kind===`github`)return`github:${e.owner}/${e.repo}${e.ref?`#${e.ref}`:``}`;if(e.kind===`skills`){let t=e.slug?`/${e.slug}`:``;return`skills:${e.owner}/${e.repo}${t}${e.ref?`#${e.ref}`:``}`}return`${e.name}${e.version?`@${e.version}`:``}`}function qi(e){let[t,n,r]=e.trim().replace(/^https?:\/\/(www\.)?skills\.sh\//i,``).replace(/^skills:/i,``).replace(/[?#].*$/,``).replace(/^\/+|\/+$/g,``).split(`/`);return{owner:t||void 0,repo:n||void 0,slug:r||void 0}}function Ji(e){let[t,n]=e.trim().replace(/^https?:\/\/(www\.)?github\.com\//i,``).replace(/^git@github\.com:/i,``).replace(/\.git$/i,``).replace(/^\/+|\/+$/g,``).split(`/`);return{owner:t||void 0,repo:n||void 0}}function Yi(e){if(e.source===`skills`&&e.sourceUrl){let{owner:t,repo:n}=qi(e.sourceUrl);if(t&&n)return{kind:`skills`,owner:t,repo:n}}if(e.source===`github`&&e.sourceUrl){let{owner:t,repo:n}=Ji(e.sourceUrl);if(t&&n)return{kind:`github`,owner:t,repo:n}}return{kind:`registry`,name:e.name}}var Xi=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/ItemTypeGroup.tsx`,Zi="invariant.json activates this whole type at once. `invariant remove` cannot undo that entry, so edit invariant.json to change it.";function Qi({type:e,items:t,pending:n,locked:r,disabled:i,onToggleItem:a,onToggleType:o}){let s=t.filter(t=>t.type===e),c=Ri(n,t,e),l=s.filter(e=>Li(n,e)).length;return(0,A.jsxDEV)(`section`,{className:`packages__group`,children:[(0,A.jsxDEV)(`header`,{className:`packages__group-head`,children:[(0,A.jsxDEV)(`label`,{className:`packages__group-toggle`,children:[(0,A.jsxDEV)($i,{state:c,disabled:i||r,onChange:t=>o(e,t),label:`All ${e}`},void 0,!1,{fileName:Xi,lineNumber:37,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`packages__group-name`,children:e},void 0,!1,{fileName:Xi,lineNumber:43,columnNumber:11},this)]},void 0,!0,{fileName:Xi,lineNumber:36,columnNumber:9},this),(0,A.jsxDEV)(`span`,{className:`packages__group-count`,children:[l,`/`,s.length]},void 0,!0,{fileName:Xi,lineNumber:46,columnNumber:9},this),r&&(0,A.jsxDEV)(`span`,{className:`chip chip--warning`,title:Zi,children:`declared type-wide`},void 0,!1,{fileName:Xi,lineNumber:51,columnNumber:11},this)]},void 0,!0,{fileName:Xi,lineNumber:35,columnNumber:7},this),(0,A.jsxDEV)(`ul`,{className:`packages__items`,children:s.map(e=>{let t=Ii(n,e);return(0,A.jsxDEV)(`li`,{className:`packages__item${t===`unchanged`?``:` is-staged-${t===`adding`?`add`:`remove`}`}`,children:[(0,A.jsxDEV)(`label`,{className:`packages__item-label`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:Li(n,e),disabled:i||r,onChange:t=>a(e,t.target.checked),title:r?Zi:void 0},void 0,!1,{fileName:Xi,lineNumber:66,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`packages__item-name`,title:e.canonicalPath,children:e.name},void 0,!1,{fileName:Xi,lineNumber:73,columnNumber:17},this),e.qualifiedName!==e.name&&(0,A.jsxDEV)(`span`,{className:`packages__item-installed`,title:e.canonicalPath,children:e.qualifiedName},void 0,!1,{fileName:Xi,lineNumber:79,columnNumber:19},this)]},void 0,!0,{fileName:Xi,lineNumber:65,columnNumber:15},this),t!==`unchanged`&&(0,A.jsxDEV)(`span`,{className:`packages__item-flag`,children:t===`adding`?`will add`:`will remove`},void 0,!1,{fileName:Xi,lineNumber:85,columnNumber:17},this)]},e.name,!0,{fileName:Xi,lineNumber:61,columnNumber:13},this)})},void 0,!1,{fileName:Xi,lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:Xi,lineNumber:34,columnNumber:5},this)}function $i({state:e,disabled:t,onChange:n,label:r}){let i=(0,k.useRef)(null);return(0,k.useEffect)(()=>{i.current&&(i.current.indeterminate=e===`some`)},[e]),(0,A.jsxDEV)(`input`,{ref:i,type:`checkbox`,"aria-label":r,"aria-checked":e===`some`?`mixed`:e===`all`,checked:e===`all`,disabled:t,onChange:()=>n(e!==`all`)},void 0,!1,{fileName:Xi,lineNumber:120,columnNumber:5},this)}var ea=/\u001b\[[0-9;]*m/g;function ta(e){return e.replace(ea,``)}var na=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/Transcript.tsx`;function ra({output:e,commandLine:t}){let n=ta(e).trim();return n.length===0&&!t?null:(0,A.jsxDEV)(`div`,{className:`transcript`,children:[t&&(0,A.jsxDEV)(`div`,{className:`transcript__command`,children:[`$ `,t]},void 0,!0,{fileName:na,lineNumber:22,columnNumber:23},this),n.length>0&&(0,A.jsxDEV)(`pre`,{className:`transcript__body`,children:n},void 0,!1,{fileName:na,lineNumber:23,columnNumber:27},this)]},void 0,!0,{fileName:na,lineNumber:21,columnNumber:5},this)}var ia=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackageDetail.tsx`;function aa({pkg:e,pending:t,busy:n,failure:r,onToggleItem:i,onToggleType:a,onStageAll:o,onUninstall:s,onInstallMissing:c,onDismissFailure:l}){let u=Vi(e.items),d=new Set(e.typeWideActive);return(0,A.jsxDEV)(`section`,{className:`packages__detail`,"aria-label":`${e.name} contents`,children:[(0,A.jsxDEV)(`header`,{className:`packages__detail-head`,children:[(0,A.jsxDEV)(`div`,{className:`packages__identity`,children:[(0,A.jsxDEV)(`h2`,{className:`packages__title`,children:[e.name,(0,A.jsxDEV)(`span`,{className:`packages__version`,children:[`@`,e.version]},void 0,!0,{fileName:ia,lineNumber:48,columnNumber:13},this)]},void 0,!0,{fileName:ia,lineNumber:46,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`packages__meta`,children:[(0,A.jsxDEV)(oa,{pkg:e},void 0,!1,{fileName:ia,lineNumber:51,columnNumber:13},this),e.author&&(0,A.jsxDEV)(`span`,{className:`packages__author`,children:e.author},void 0,!1,{fileName:ia,lineNumber:52,columnNumber:28},this)]},void 0,!0,{fileName:ia,lineNumber:50,columnNumber:11},this),e.description&&(0,A.jsxDEV)(`p`,{className:`packages__description`,children:e.description},void 0,!1,{fileName:ia,lineNumber:54,columnNumber:31},this)]},void 0,!0,{fileName:ia,lineNumber:45,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__detail-actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||e.totalCount===0||e.activeCount===e.totalCount,onClick:()=>o(!0),children:`Add all`},void 0,!1,{fileName:ia,lineNumber:58,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:n||e.activeCount===0,onClick:()=>o(!1),children:`Remove all`},void 0,!1,{fileName:ia,lineNumber:66,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:n,onClick:s,children:`Uninstall`},void 0,!1,{fileName:ia,lineNumber:74,columnNumber:11},this)]},void 0,!0,{fileName:ia,lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:ia,lineNumber:44,columnNumber:7},this),r&&(0,A.jsxDEV)(`div`,{className:`packages__failure`,role:`alert`,children:[(0,A.jsxDEV)(`div`,{className:`packages__failure-head`,children:[(0,A.jsxDEV)(`strong`,{children:r.message},void 0,!1,{fileName:ia,lineNumber:83,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`link-button`,onClick:l,children:`Dismiss`},void 0,!1,{fileName:ia,lineNumber:84,columnNumber:13},this)]},void 0,!0,{fileName:ia,lineNumber:82,columnNumber:11},this),(0,A.jsxDEV)(ra,{output:r.transcript??``,commandLine:r.commandLine},void 0,!1,{fileName:ia,lineNumber:88,columnNumber:11},this)]},void 0,!0,{fileName:ia,lineNumber:81,columnNumber:9},this),e.presence===`declared-only`?(0,A.jsxDEV)(`div`,{className:`packages__notice`,children:[(0,A.jsxDEV)(`p`,{children:[(0,A.jsxDEV)(`strong`,{children:e.name},void 0,!1,{fileName:ia,lineNumber:95,columnNumber:13},this),` is declared in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:ia,lineNumber:95,columnNumber:56},this),` but is not installed in this checkout — the usual cause is a colleague adding it and this working copy never fetching it.`]},void 0,!0,{fileName:ia,lineNumber:94,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:n,onClick:c,children:`Install it`},void 0,!1,{fileName:ia,lineNumber:99,columnNumber:11},this)]},void 0,!0,{fileName:ia,lineNumber:93,columnNumber:9},this):e.totalCount===0?(0,A.jsxDEV)(`p`,{className:`packages__empty-note`,children:`This package ships no items.`},void 0,!1,{fileName:ia,lineNumber:104,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`packages__tree`,children:u.map(r=>(0,A.jsxDEV)(Qi,{type:r,items:e.items,pending:t,locked:d.has(r),disabled:n,onToggleItem:i,onToggleType:a},r,!1,{fileName:ia,lineNumber:108,columnNumber:13},this))},void 0,!1,{fileName:ia,lineNumber:106,columnNumber:9},this)]},void 0,!0,{fileName:ia,lineNumber:43,columnNumber:5},this)}function oa({pkg:e}){let t=e.source===`github`?`github`:e.source===`skills`?`skills.sh`:`registry`;return e.sourceUrl?(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:e.sourceUrl,target:`_blank`,rel:`noreferrer`,children:[t,` ↗`]},void 0,!0,{fileName:ia,lineNumber:131,columnNumber:7},this):(0,A.jsxDEV)(`span`,{className:`chip`,children:t},void 0,!1,{fileName:ia,lineNumber:136,columnNumber:10},this)}var sa=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PendingChangesBar.tsx`;function ca({packageName:e,pending:t,sync:n,busy:r,running:i,onSyncChange:a,onDiscard:o,onApply:s}){let c=Wi(e,t,{sync:n});return(0,A.jsxDEV)(`div`,{className:`packages__bar`,role:`region`,"aria-live":`polite`,"aria-label":`Pending changes`,children:[(0,A.jsxDEV)(`div`,{className:`packages__bar-summary`,children:[(0,A.jsxDEV)(`span`,{className:`packages__bar-counts`,children:[t.add.length>0&&(0,A.jsxDEV)(`strong`,{children:[t.add.length,` to add`]},void 0,!0,{fileName:sa,lineNumber:39,columnNumber:38},this),t.add.length>0&&t.remove.length>0&&` · `,t.remove.length>0&&(0,A.jsxDEV)(`strong`,{children:[t.remove.length,` to remove`]},void 0,!0,{fileName:sa,lineNumber:41,columnNumber:41},this)]},void 0,!0,{fileName:sa,lineNumber:38,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__bar-preview`,title:c.join(`
247
- `),children:i??c.join(` · `)},void 0,!1,{fileName:sa,lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:sa,lineNumber:37,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`packages__bar-actions`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:n,disabled:r,onChange:e=>a(e.target.checked)},void 0,!1,{fileName:sa,lineNumber:50,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:sa,lineNumber:57,columnNumber:17},this),` after`]},void 0,!0,{fileName:sa,lineNumber:56,columnNumber:11},this)]},void 0,!0,{fileName:sa,lineNumber:49,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:r,onClick:o,children:`Discard`},void 0,!1,{fileName:sa,lineNumber:60,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:r,onClick:s,children:r?`Applying…`:`Apply`},void 0,!1,{fileName:sa,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:sa,lineNumber:48,columnNumber:7},this)]},void 0,!0,{fileName:sa,lineNumber:36,columnNumber:5},this)}function la(e){return e.toLowerCase().replace(/[^a-z0-9._-]/g,`-`).replace(/-+/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function ua(e){return e.replace(/^@/,``).replace(/\//g,`-`).toLowerCase().replace(/[^a-z0-9._-]/g,`-`).replace(/-+/g,`-`).replace(/^[-.]+|[-.]+$/g,``)}function da(e,t){let n=ua(e);return!n||t===n||t.startsWith(`${n}-`)?t:`${n}-${t}`}function fa(e,t){return`@${la(e)}/${la(t)}`}function pa(e,t,n,r=`.agents`){return`${r}/skills/${da(fa(e,t),la(n))}`}function L(e,t,n,r=`.claude`){return`${r}/skills/${da(fa(e,t),la(n))}`}function R(e){return!Number.isFinite(e)||e<=0?`0`:e>=1e6?`${ma(e/1e6)}M`:e>=1e3?`${ma(e/1e3)}K`:String(Math.round(e))}function ma(e){return e.toFixed(1).replace(/\.0$/,``)}function ha(e){return`${new Intl.NumberFormat(`en-US`).format(Math.max(0,Math.round(e)))} installs`}function ga(e){return e<1024?`${e} B`:e<1048576?`${ma(e/1024)} KB`:`${ma(e/1048576)} MB`}function _a(e){if(!e)return;let t=Date.parse(e);if(Number.isNaN(t))return;let n=Math.floor((Date.now()-t)/864e5);return n<=0?`today`:n===1?`yesterday`:n<30?`${n}d ago`:n<365?`${Math.floor(n/30)}mo ago`:`${Math.floor(n/365)}y ago`}var z=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/InstallPackageModal.tsx`;function va({busy:e,error:t,onClose:n,onSubmit:r,onBrowseSkills:i}){let[a,o]=(0,k.useState)(`github`),[s,c]=(0,k.useState)(``),[l,u]=(0,k.useState)(``),[d,f]=(0,k.useState)(``),[p,m]=(0,k.useState)(!0),[h,g]=(0,k.useState)(!1),_=(0,k.useMemo)(()=>qi(d),[d]),v=a===`skills`&&!_.repo?d:``,y=nr(v),b=(0,k.useMemo)(()=>{if(a===`github`){let{owner:e,repo:t}=Ji(s);return!e||!t?void 0:{kind:`github`,owner:e,repo:t,ref:l.trim()||void 0}}let{owner:e,repo:t,slug:n}=_;if(!(!e||!t))return{kind:`skills`,owner:e,repo:t,slug:n}},[a,s,l,_]),x=b?.kind===`skills`&&b.slug?L(b.owner,b.repo,b.slug):void 0,ee=()=>{!b||e||r({source:b,activate:p,sync:h})},te=e=>{e.key===`Enter`&&(e.preventDefault(),ee())};return(0,A.jsxDEV)(hr,{title:`Install package`,onClose:n,width:640,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs in `,a===`github`?`GitHub`:`Skills.sh`,` mode`]},void 0,!0,{fileName:z,lineNumber:91,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:n,children:`Cancel`},void 0,!1,{fileName:z,lineNumber:92,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e||!b,onClick:ee,children:e?`Installing…`:`Install`},void 0,!1,{fileName:z,lineNumber:95,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:90,columnNumber:9},this),children:[(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Package source`,children:[`github`,`skills`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":a===e,className:`segmented__item${a===e?` is-active`:``}`,onClick:()=>o(e),children:e===`github`?`GitHub`:`Skills.sh`},e,!1,{fileName:z,lineNumber:108,columnNumber:11},this))},void 0,!1,{fileName:z,lineNumber:106,columnNumber:7},this),a===`github`?(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Repository`},void 0,!1,{fileName:z,lineNumber:124,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:s,placeholder:`owner/repo`,onChange:e=>c(e.target.value),onKeyDown:te},void 0,!1,{fileName:z,lineNumber:125,columnNumber:13},this)]},void 0,!0,{fileName:z,lineNumber:123,columnNumber:11},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Ref `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`optional`},void 0,!1,{fileName:z,lineNumber:135,columnNumber:19},this)]},void 0,!0,{fileName:z,lineNumber:134,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:l,placeholder:`branch, tag or commit`,onChange:e=>u(e.target.value),onKeyDown:te},void 0,!1,{fileName:z,lineNumber:137,columnNumber:13},this)]},void 0,!0,{fileName:z,lineNumber:133,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:122,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Skill`},void 0,!1,{fileName:z,lineNumber:149,columnNumber:13},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:d,placeholder:`search, or paste owner/repo/skill`,spellCheck:!1,onChange:e=>f(e.target.value),onKeyDown:te},void 0,!1,{fileName:z,lineNumber:150,columnNumber:13},this)]},void 0,!0,{fileName:z,lineNumber:148,columnNumber:11},this),(0,A.jsxDEV)(ya,{loading:y.isLoading&&v.length>=2,unavailable:y.isError||y.data?.unavailable===!0,query:v,skills:y.data?.skills??[],selected:b?.kind===`skills`?`${b.owner}/${b.repo}/${b.slug??``}`:``,onPick:e=>{f(`${e.owner}/${e.repo}/${e.slug}`)}},void 0,!1,{fileName:z,lineNumber:160,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse all skills →`},void 0,!1,{fileName:z,lineNumber:169,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:147,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__install-options`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)},void 0,!1,{fileName:z,lineNumber:177,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:a===`skills`?`Activate now`:`Activate all items now`},void 0,!1,{fileName:z,lineNumber:178,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:176,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:h,onChange:e=>g(e.target.checked)},void 0,!1,{fileName:z,lineNumber:181,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:z,lineNumber:183,columnNumber:17},this),` after`]},void 0,!0,{fileName:z,lineNumber:182,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:180,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:175,columnNumber:7},this),x&&(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Installs as`},void 0,!1,{fileName:z,lineNumber:190,columnNumber:11},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:x},void 0,!1,{fileName:z,lineNumber:191,columnNumber:11},this)]},void 0,!0,{fileName:z,lineNumber:189,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Command`},void 0,!1,{fileName:z,lineNumber:196,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:b?Gi(b,{activate:p,sync:h}):`invariant install …`},void 0,!1,{fileName:z,lineNumber:197,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:195,columnNumber:7},this),t&&(0,A.jsxDEV)(`p`,{className:`packages__inline-error`,role:`alert`,children:t},void 0,!1,{fileName:z,lineNumber:203,columnNumber:9},this)]},void 0,!0,{fileName:z,lineNumber:85,columnNumber:5},this)}function ya({loading:e,unavailable:t,query:n,skills:r,selected:i,onPick:a}){return n.length<2?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`Type two characters to search skills.sh, or paste `,(0,A.jsxDEV)(`code`,{children:`owner/repo/skill`},void 0,!1,{fileName:z,lineNumber:235,columnNumber:59},this),`.`]},void 0,!0,{fileName:z,lineNumber:234,columnNumber:7},this):e?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:`Searching skills.sh…`},void 0,!1,{fileName:z,lineNumber:239,columnNumber:23},this):t?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`skills.sh is unreachable — paste `,(0,A.jsxDEV)(`code`,{children:`owner/repo/skill`},void 0,!1,{fileName:z,lineNumber:243,columnNumber:42},this),` to install anyway.`]},void 0,!0,{fileName:z,lineNumber:242,columnNumber:7},this):r.length===0?(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[`No skill matches “`,n,`”.`]},void 0,!0,{fileName:z,lineNumber:248,columnNumber:12},this):(0,A.jsxDEV)(`ul`,{className:`packages__picker`,children:r.slice(0,20).map(e=>{let t=`${e.owner}/${e.repo}/${e.slug}`;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,className:`packages__picker-item${i===t?` is-selected`:``}`,onClick:()=>a(e),children:[(0,A.jsxDEV)(`span`,{className:`packages__picker-name`,children:[e.name,e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:z,lineNumber:264,columnNumber:38},this)]},void 0,!0,{fileName:z,lineNumber:262,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`packages__picker-text`,children:[e.source,(0,A.jsxDEV)(`span`,{className:`skills__installs`,title:ha(e.installs),children:[R(e.installs),` installs`]},void 0,!0,{fileName:z,lineNumber:268,columnNumber:17},this)]},void 0,!0,{fileName:z,lineNumber:266,columnNumber:15},this)]},void 0,!0,{fileName:z,lineNumber:257,columnNumber:13},this)},t,!1,{fileName:z,lineNumber:256,columnNumber:11},this)})},void 0,!1,{fileName:z,lineNumber:252,columnNumber:5},this)}var ba=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/UninstallConfirm.tsx`;function xa({packageName:e,busy:t,onClose:n,onConfirm:r}){return(0,A.jsxDEV)(hr,{title:`Uninstall ${e}?`,onClose:n,width:520,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:[`Runs `,(0,A.jsxDEV)(`code`,{children:[`invariant uninstall `,e]},void 0,!0,{fileName:ba,lineNumber:19,columnNumber:18},this)]},void 0,!0,{fileName:ba,lineNumber:18,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,onClick:n,children:`Cancel`},void 0,!1,{fileName:ba,lineNumber:21,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--danger`,disabled:t,onClick:r,children:t?`Uninstalling…`:`Uninstall`},void 0,!1,{fileName:ba,lineNumber:24,columnNumber:11},this)]},void 0,!0,{fileName:ba,lineNumber:17,columnNumber:9},this),children:[(0,A.jsxDEV)(`p`,{className:`modal__text`,children:[`This removes the cached package, its entry in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:ba,lineNumber:31,columnNumber:55},this),`, and every item it added to your target folders.`]},void 0,!0,{fileName:ba,lineNumber:30,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`modal__text modal__text--muted`,children:`Reinstalling brings it all back. Files you wrote yourself are not touched.`},void 0,!1,{fileName:ba,lineNumber:34,columnNumber:7},this)]},void 0,!0,{fileName:ba,lineNumber:12,columnNumber:5},this)}var Sa=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/SyncPanel.tsx`;function Ca({busy:e,result:t,error:n,targets:r,onClose:i,onRun:a}){let[o,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(!1),u=e=>a({target:o===``?void 0:o,check:e,force:c||void 0}),d=Zt.filter(e=>r.includes(e));return(0,A.jsxDEV)(hr,{title:`Sync`,onClose:i,width:680,footer:(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`span`,{className:`modal__hint`,children:`Regenerates target folders from the active items`},void 0,!1,{fileName:Sa,lineNumber:40,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:e,onClick:()=>u(!0),children:`Check only`},void 0,!1,{fileName:Sa,lineNumber:41,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:e,onClick:()=>u(!1),children:e?`Syncing…`:`Sync`},void 0,!1,{fileName:Sa,lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:Sa,lineNumber:39,columnNumber:9},this),children:[(0,A.jsxDEV)(`div`,{className:`field-row`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Target `,(0,A.jsxDEV)(`span`,{className:`field__optional`,children:`all configured`},void 0,!1,{fileName:Sa,lineNumber:53,columnNumber:20},this)]},void 0,!0,{fileName:Sa,lineNumber:52,columnNumber:11},this),(0,A.jsxDEV)(`select`,{className:`field__input`,value:o,disabled:e||d.length===0,onChange:e=>s(e.target.value),children:[(0,A.jsxDEV)(`option`,{value:``,children:`Every configured target`},void 0,!1,{fileName:Sa,lineNumber:61,columnNumber:13},this),d.map(e=>(0,A.jsxDEV)(`option`,{value:e,children:e},e,!1,{fileName:Sa,lineNumber:63,columnNumber:15},this))]},void 0,!0,{fileName:Sa,lineNumber:55,columnNumber:11},this)]},void 0,!0,{fileName:Sa,lineNumber:51,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:c,disabled:e,onChange:e=>l(e.target.checked)},void 0,!1,{fileName:Sa,lineNumber:71,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Replace hand-edited files (`,(0,A.jsxDEV)(`code`,{children:`--force`},void 0,!1,{fileName:Sa,lineNumber:78,columnNumber:40},this),`)`]},void 0,!0,{fileName:Sa,lineNumber:77,columnNumber:11},this)]},void 0,!0,{fileName:Sa,lineNumber:70,columnNumber:9},this)]},void 0,!0,{fileName:Sa,lineNumber:50,columnNumber:7},this),n?(0,A.jsxDEV)(`div`,{className:`packages__result packages__result--danger`,role:`alert`,children:[(0,A.jsxDEV)(`strong`,{children:n.message},void 0,!1,{fileName:Sa,lineNumber:85,columnNumber:11},this),(0,A.jsxDEV)(ra,{output:n.transcript??``,commandLine:n.commandLine},void 0,!1,{fileName:Sa,lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:Sa,lineNumber:84,columnNumber:9},this):t?(0,A.jsxDEV)(`div`,{className:`packages__result packages__result--${Ta(t)}`,role:`status`,children:[(0,A.jsxDEV)(`strong`,{children:wa(t)},void 0,!1,{fileName:Sa,lineNumber:90,columnNumber:11},this),t.checked&&t.drift&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid packages__result-action`,disabled:e,onClick:()=>u(!1),children:`Sync now`},void 0,!1,{fileName:Sa,lineNumber:92,columnNumber:13},this),(0,A.jsxDEV)(ra,{output:t.run.output,commandLine:t.run.commandLine},void 0,!1,{fileName:Sa,lineNumber:101,columnNumber:11},this)]},void 0,!0,{fileName:Sa,lineNumber:89,columnNumber:9},this):(0,A.jsxDEV)(`p`,{className:`packages__picker-note`,children:[(0,A.jsxDEV)(`strong`,{children:`Check only`},void 0,!1,{fileName:Sa,lineNumber:105,columnNumber:11},this),` reports drift without writing anything — the same thing CI runs.`]},void 0,!0,{fileName:Sa,lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:Sa,lineNumber:34,columnNumber:5},this)}function wa(e){return e.checked?e.drift?`Out of sync`:`Everything is in sync`:e.ok?`Synced`:`Sync failed`}function Ta(e){return e.checked?e.drift?`warning`:`success`:e.ok?`success`:`danger`}var B=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/packages/PackagesPage.tsx`;function Ea({installOpen:e,syncOpen:t,onInstallOpenChange:n,onSyncOpenChange:r,onBrowseSkills:i}){let a=Kr(),{data:o,isLoading:s}=er(),[c,l]=(0,k.useState)(),[u,d]=(0,k.useState)(``),[f,p]=(0,k.useState)(ki),[m,h]=(0,k.useState)(!1),[g,_]=(0,k.useState)(),[v,y]=(0,k.useState)(!1),[b,x]=(0,k.useState)(),[ee,te]=(0,k.useState)(),[S,ne]=(0,k.useState)(),re=ar(),ie=or(),C=sr(),ae=cr(),w=(0,k.useMemo)(()=>o?.packages??[],[o]),T=(0,k.useMemo)(()=>w.find(e=>e.name===c),[w,c]);(0,k.useEffect)(()=>{if(w.length===0){l(void 0);return}(!c||!w.some(e=>e.name===c))&&l(w[0].name)},[w,c]);let oe=e=>{e!==c&&(l(e),p(ki),_(void 0))},E=C.isPending||ie.isPending||re.isPending,se=async()=>{if(!(!T||Bi(f))){_(void 0);try{let e=await C.mutateAsync({packageName:T.name,add:f.add,remove:f.remove,sync:m||void 0});p(ki),a(`Applied ${e.runs.length} command${e.runs.length===1?``:`s`}`,`success`)}catch(e){_(Da(e))}}},ce=e=>{T&&p(t=>Fi(t,T.items,e))},le=async()=>{if(T)try{await ie.mutateAsync(T.name),y(!1),p(ki),a(`Uninstalled ${T.name}`,`success`)}catch(e){y(!1),_(Da(e))}},ue=async e=>{ne(void 0);try{let t=await re.mutateAsync(e);n(!1),t.package?(l(t.package.name),p(ki),a(`Installed ${t.package.name}@${t.package.version}`,`success`)):a(`Installed`,`success`)}catch(e){ne(Da(e).message)}},de=async e=>{te(void 0),x(void 0);try{x(await ae.mutateAsync(e))}catch(e){te(Da(e))}},fe=e&&(0,A.jsxDEV)(va,{busy:re.isPending,error:S,onClose:()=>{n(!1),ne(void 0)},onSubmit:e=>void ue(e),onBrowseSkills:()=>{n(!1),i()}},void 0,!1,{fileName:B,lineNumber:177,columnNumber:5},this),pe=t&&(0,A.jsxDEV)(Ca,{busy:ae.isPending,result:b,error:ee,targets:o?.targets??[],onClose:()=>{r(!1),x(void 0),te(void 0)},onRun:e=>void de(e)},void 0,!1,{fileName:B,lineNumber:193,columnNumber:5},this);return s?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading packages…`},void 0,!1,{fileName:B,lineNumber:207,columnNumber:25},this):o&&!o.initialized?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`This directory is not an Invariant project`},void 0,!1,{fileName:B,lineNumber:212,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`Packages live in `,(0,A.jsxDEV)(`code`,{children:`invariant.json`},void 0,!1,{fileName:B,lineNumber:214,columnNumber:28},this),`, and there is none in`,` `,(0,A.jsxDEV)(`code`,{children:o.directory},void 0,!1,{fileName:B,lineNumber:215,columnNumber:11},this),` yet. Initializing picks which assistants to sync to, so it is a terminal step rather than a button here:`]},void 0,!0,{fileName:B,lineNumber:213,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:`invariant init claude`},void 0,!1,{fileName:B,lineNumber:218,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:211,columnNumber:7},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Packages`},void 0,!1,{fileName:B,lineNumber:227,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,title:o?.directory,children:o?.name??o?.directory},void 0,!1,{fileName:B,lineNumber:228,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:226,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:[(0,A.jsxDEV)(`span`,{className:`count`,title:`Installed packages`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:o?.totals.packages??0},void 0,!1,{fileName:B,lineNumber:236,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:`Packages`},void 0,!1,{fileName:B,lineNumber:237,columnNumber:15},this)]},void 0,!0,{fileName:B,lineNumber:235,columnNumber:13},this),(0,A.jsxDEV)(`span`,{className:`count count--in-progress`,title:`Active items across every package`,children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:o?.totals.activeItems??0},void 0,!1,{fileName:B,lineNumber:240,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:[`of `,o?.totals.totalItems??0,` items active`]},void 0,!0,{fileName:B,lineNumber:241,columnNumber:15},this)]},void 0,!0,{fileName:B,lineNumber:239,columnNumber:13},this)]},void 0,!0,{fileName:B,lineNumber:234,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse skills`},void 0,!1,{fileName:B,lineNumber:245,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>r(!0),children:`Sync`},void 0,!1,{fileName:B,lineNumber:248,columnNumber:11},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>n(!0),children:`Install package`},void 0,!1,{fileName:B,lineNumber:251,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:233,columnNumber:9},this)]},void 0,!0,{fileName:B,lineNumber:225,columnNumber:7},this),w.length===0?(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No packages yet`},void 0,!1,{fileName:B,lineNumber:259,columnNumber:11},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:`A package bundles agents, skills, commands, rules, contexts and instructions that this project can activate. Install one from a GitHub repository, or browse the skills.sh catalogue, then choose which of its items your assistants actually see.`},void 0,!1,{fileName:B,lineNumber:260,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`empty__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>n(!0),children:`Install package`},void 0,!1,{fileName:B,lineNumber:266,columnNumber:13},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:i,children:`Browse skills`},void 0,!1,{fileName:B,lineNumber:269,columnNumber:13},this)]},void 0,!0,{fileName:B,lineNumber:265,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:258,columnNumber:9},this):(0,A.jsxDEV)(`div`,{className:`packages`,children:[(0,A.jsxDEV)(Di,{packages:w,selected:c,filter:u,onFilter:d,onSelect:oe,dirty:new Set(c&&!Bi(f)?[c]:[])},void 0,!1,{fileName:B,lineNumber:276,columnNumber:11},this),(0,A.jsxDEV)(`div`,{className:`packages__pane`,children:T?(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(aa,{pkg:T,pending:f,busy:E,failure:g,onToggleItem:(e,t)=>p(n=>Ni(n,e,t)),onToggleType:(e,t)=>p(n=>Pi(n,T.items,e,t)),onStageAll:ce,onUninstall:()=>y(!0),onInstallMissing:()=>void ue({source:Yi(T)}),onDismissFailure:()=>_(void 0)},void 0,!1,{fileName:B,lineNumber:288,columnNumber:17},this),!Bi(f)&&(0,A.jsxDEV)(ca,{packageName:T.name,pending:f,sync:m,busy:C.isPending,running:C.isPending?Wi(T.name,f,{sync:m})[0]:void 0,onSyncChange:h,onDiscard:()=>p(ki),onApply:()=>void se()},void 0,!1,{fileName:B,lineNumber:306,columnNumber:19},this)]},void 0,!0,{fileName:B,lineNumber:287,columnNumber:15},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Select a package.`},void 0,!1,{fileName:B,lineNumber:323,columnNumber:15},this)},void 0,!1,{fileName:B,lineNumber:285,columnNumber:11},this)]},void 0,!0,{fileName:B,lineNumber:275,columnNumber:9},this),v&&T&&(0,A.jsxDEV)(xa,{packageName:T.name,busy:ie.isPending,onClose:()=>y(!1),onConfirm:()=>void le()},void 0,!1,{fileName:B,lineNumber:330,columnNumber:9},this),fe,pe]},void 0,!0,{fileName:B,lineNumber:224,columnNumber:5},this)}function Da(e){return e instanceof Tn?{message:e.message,commandLine:e.commandLine,transcript:e.transcript}:{message:e instanceof Error?e.message:String(e)}}var Oa=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/Sparkline.tsx`;function ka({values:e,title:t}){if(e.length<2)return null;let n=Math.max(...e),r=Math.min(...e),i=n-r,a=e.map((t,n)=>{let a=n/(e.length-1)*46+1,o=i===0?7:13-(t-r)/i*12;return`${a.toFixed(1)},${o.toFixed(1)}`});return(0,A.jsxDEV)(`svg`,{className:`skills__sparkline`,viewBox:`0 0 48 14`,width:48,height:14,"aria-hidden":`true`,focusable:`false`,children:[t&&(0,A.jsxDEV)(`title`,{children:t},void 0,!1,{fileName:Oa,lineNumber:40,columnNumber:17},this),(0,A.jsxDEV)(`polyline`,{points:a.join(` `),fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`},void 0,!1,{fileName:Oa,lineNumber:41,columnNumber:7},this)]},void 0,!0,{fileName:Oa,lineNumber:32,columnNumber:5},this)}var Aa=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillList.tsx`;function ja(e){return`${e.owner}/${e.repo}/${e.slug}`}function Ma({skills:e,selected:t,installedSources:n,onSelect:r}){return(0,A.jsxDEV)(`ul`,{className:`skills__rows`,role:`listbox`,"aria-label":`Skills`,children:e.map(e=>{let i=ja(e),a=i===t;return(0,A.jsxDEV)(`li`,{children:(0,A.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":a,className:`skills__row${a?` is-selected`:``}`,onClick:()=>r(e),children:[(0,A.jsxDEV)(`span`,{className:`skills__row-body`,children:[(0,A.jsxDEV)(`span`,{className:`skills__row-name`,children:[(0,A.jsxDEV)(`span`,{className:`skills__row-label`,children:e.name},void 0,!1,{fileName:Aa,lineNumber:43,columnNumber:19},this),e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:Aa,lineNumber:44,columnNumber:40},this),n.has(e.source)&&(0,A.jsxDEV)(`span`,{className:`chip`,children:`installed`},void 0,!1,{fileName:Aa,lineNumber:45,columnNumber:58},this)]},void 0,!0,{fileName:Aa,lineNumber:42,columnNumber:17},this),(0,A.jsxDEV)(`span`,{className:`skills__row-source`,children:e.source},void 0,!1,{fileName:Aa,lineNumber:47,columnNumber:17},this)]},void 0,!0,{fileName:Aa,lineNumber:41,columnNumber:15},this),(0,A.jsxDEV)(`span`,{className:`skills__row-meta`,children:[(0,A.jsxDEV)(`span`,{className:`skills__installs`,title:ha(e.installs),children:R(e.installs)},void 0,!1,{fileName:Aa,lineNumber:51,columnNumber:17},this),e.installsYesterday!==void 0&&(0,A.jsxDEV)(`span`,{className:`skills__delta`,title:`Installs yesterday`,children:[`+`,R(e.installsYesterday),`/d`]},void 0,!0,{fileName:Aa,lineNumber:55,columnNumber:19},this),(0,A.jsxDEV)(ka,{values:e.weeklyInstalls,title:e.weeklyInstalls.join(` · `)},void 0,!1,{fileName:Aa,lineNumber:59,columnNumber:17},this)]},void 0,!0,{fileName:Aa,lineNumber:50,columnNumber:15},this)]},void 0,!0,{fileName:Aa,lineNumber:34,columnNumber:13},this)},i,!1,{fileName:Aa,lineNumber:33,columnNumber:11},this)})},void 0,!1,{fileName:Aa,lineNumber:27,columnNumber:5},this)}var V=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillPreview.tsx`;function Na({listing:e,detail:t,loading:n,failed:r,installed:i,busy:a,onInstall:o}){let[s,c]=(0,k.useState)(!0),[l,u]=(0,k.useState)(!1),d=pa(e.owner,e.repo,e.slug),f=L(e.owner,e.repo,e.slug),p=Gi({kind:`skills`,owner:e.owner,repo:e.repo,slug:e.slug},{activate:s,sync:l});return(0,A.jsxDEV)(`section`,{className:`skills__preview`,children:[(0,A.jsxDEV)(`header`,{className:`skills__preview-head`,children:[(0,A.jsxDEV)(`h2`,{className:`skills__preview-title`,children:[e.name,e.isOfficial&&(0,A.jsxDEV)(`span`,{className:`chip chip--official`,children:`official`},void 0,!1,{fileName:V,lineNumber:55,columnNumber:34},this),i&&(0,A.jsxDEV)(`span`,{className:`chip`,children:`installed`},void 0,!1,{fileName:V,lineNumber:56,columnNumber:25},this)]},void 0,!0,{fileName:V,lineNumber:53,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__preview-source`,children:e.source},void 0,!1,{fileName:V,lineNumber:58,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__preview-links`,children:[(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:t?.catalogUrl??`https://www.skills.sh/${e.source}/${e.slug}`,target:`_blank`,rel:`noreferrer`,children:`skills.sh ↗`},void 0,!1,{fileName:V,lineNumber:61,columnNumber:11},this),(0,A.jsxDEV)(`a`,{className:`chip chip--link`,href:t?.repository.url??`https://github.com/${e.source}`,target:`_blank`,rel:`noreferrer`,children:`GitHub ↗`},void 0,!1,{fileName:V,lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:52,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`skills__stats`,children:[(0,A.jsxDEV)(Pa,{label:`Installs`,value:R(e.installs),title:ha(e.installs)},void 0,!1,{fileName:V,lineNumber:81,columnNumber:9},this),(0,A.jsxDEV)(Pa,{label:`This week`,value:Fa(e)},void 0,!1,{fileName:V,lineNumber:82,columnNumber:9},this),(0,A.jsxDEV)(Pa,{label:`Stars`,value:t?.repository.stars===void 0?`—`:R(t.repository.stars)},void 0,!1,{fileName:V,lineNumber:83,columnNumber:9},this),(0,A.jsxDEV)(Pa,{label:`License`,value:t?.repository.license??`—`},void 0,!1,{fileName:V,lineNumber:84,columnNumber:9},this),(0,A.jsxDEV)(Pa,{label:`Pushed`,value:_a(t?.repository.pushedAt)??`—`},void 0,!1,{fileName:V,lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:80,columnNumber:7},this),r?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`skills.sh could not describe this skill. Installing still works — the files come from GitHub.`},void 0,!1,{fileName:V,lineNumber:89,columnNumber:9},this):n?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`Loading the skill…`},void 0,!1,{fileName:V,lineNumber:94,columnNumber:9},this):(0,A.jsxDEV)(A.Fragment,{children:[t?.description&&(0,A.jsxDEV)(`p`,{className:`skills__description`,children:t.description},void 0,!1,{fileName:V,lineNumber:97,columnNumber:35},this),(0,A.jsxDEV)(`div`,{className:`skills__files`,children:[(0,A.jsxDEV)(`p`,{className:`field__label`,children:[`Files (`,t?.files.length??0,`)`]},void 0,!0,{fileName:V,lineNumber:100,columnNumber:13},this),(0,A.jsxDEV)(`ul`,{className:`skills__file-list`,children:t?.files.map(e=>(0,A.jsxDEV)(`li`,{children:[(0,A.jsxDEV)(`code`,{children:e.path},void 0,!1,{fileName:V,lineNumber:104,columnNumber:19},this),(0,A.jsxDEV)(`span`,{className:`skills__file-size`,children:ga(e.bytes)},void 0,!1,{fileName:V,lineNumber:105,columnNumber:19},this)]},e.path,!0,{fileName:V,lineNumber:103,columnNumber:17},this))},void 0,!1,{fileName:V,lineNumber:101,columnNumber:13},this)]},void 0,!0,{fileName:V,lineNumber:99,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:96,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__install-as`,children:[(0,A.jsxDEV)(`p`,{className:`field__label`,children:`Installs as`},void 0,!1,{fileName:V,lineNumber:114,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:d},void 0,!1,{fileName:V,lineNumber:115,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:f},void 0,!1,{fileName:V,lineNumber:116,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`skills__note`,children:[`The whole `,(0,A.jsxDEV)(`code`,{children:e.source},void 0,!1,{fileName:V,lineNumber:118,columnNumber:21},this),` repository is cached as one package`,t&&(0,A.jsxDEV)(A.Fragment,{children:[` (`,(0,A.jsxDEV)(`code`,{children:t.install.packageName},void 0,!1,{fileName:V,lineNumber:119,columnNumber:26},this),`)`]},void 0,!0,{fileName:V,lineNumber:119,columnNumber:22},this),`; only this skill is activated. The name carries its package, which is why it is not just`,` `,(0,A.jsxDEV)(`code`,{children:e.slug},void 0,!1,{fileName:V,lineNumber:121,columnNumber:11},this),`.`]},void 0,!0,{fileName:V,lineNumber:117,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:113,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`skills__note`,children:[`Installing copies files into `,(0,A.jsxDEV)(`code`,{children:`.invariant/cache`},void 0,!1,{fileName:V,lineNumber:126,columnNumber:38},this),`. Nothing runs. Security audits live on`,` `,(0,A.jsxDEV)(`a`,{href:t?.catalogUrl??`https://www.skills.sh`,target:`_blank`,rel:`noreferrer`,children:`skills.sh ↗`},void 0,!1,{fileName:V,lineNumber:128,columnNumber:9},this),`.`]},void 0,!0,{fileName:V,lineNumber:125,columnNumber:7},this),t?.skillMarkdown&&(0,A.jsxDEV)(`details`,{className:`skills__skill-md`,children:[(0,A.jsxDEV)(`summary`,{children:`SKILL.md`},void 0,!1,{fileName:V,lineNumber:136,columnNumber:11},this),(0,A.jsxDEV)(kr,{source:t.skillMarkdown,compact:!0},void 0,!1,{fileName:V,lineNumber:137,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__actions`,children:[(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)},void 0,!1,{fileName:V,lineNumber:143,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:`Activate now`},void 0,!1,{fileName:V,lineNumber:144,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:142,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`checkbox`,children:[(0,A.jsxDEV)(`input`,{type:`checkbox`,checked:l,onChange:e=>u(e.target.checked)},void 0,!1,{fileName:V,lineNumber:147,columnNumber:11},this),(0,A.jsxDEV)(`span`,{children:[`Run `,(0,A.jsxDEV)(`code`,{children:`sync`},void 0,!1,{fileName:V,lineNumber:149,columnNumber:17},this),` after`]},void 0,!0,{fileName:V,lineNumber:148,columnNumber:11},this)]},void 0,!0,{fileName:V,lineNumber:146,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:141,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`packages__preview`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`Command`},void 0,!1,{fileName:V,lineNumber:155,columnNumber:9},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:p},void 0,!1,{fileName:V,lineNumber:156,columnNumber:9},this)]},void 0,!0,{fileName:V,lineNumber:154,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:a,onClick:()=>o({activate:s,sync:l}),children:a?`Installing…`:i?`Reinstall skill`:`Install skill`},void 0,!1,{fileName:V,lineNumber:159,columnNumber:7},this)]},void 0,!0,{fileName:V,lineNumber:51,columnNumber:5},this)}function Pa({label:e,value:t,title:n}){return(0,A.jsxDEV)(`div`,{className:`skills__stat`,children:[(0,A.jsxDEV)(`dt`,{className:`skills__stat-label`,children:e},void 0,!1,{fileName:V,lineNumber:174,columnNumber:7},this),(0,A.jsxDEV)(`dd`,{className:`skills__stat-value`,title:n,children:t},void 0,!1,{fileName:V,lineNumber:175,columnNumber:7},this)]},void 0,!0,{fileName:V,lineNumber:173,columnNumber:5},this)}function Fa(e){let t=e.weeklyInstalls[e.weeklyInstalls.length-1];return t===void 0?`—`:R(t)}var Ia=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/skills/SkillsBrowserPage.tsx`,La=[{value:`all-time`,label:`Popular`},{value:`trending`,label:`Trending`},{value:`hot`,label:`Hot`}];function Ra({onBack:e}){let t=Kr(),[n,r]=(0,k.useState)(()=>za()),[i,a]=(0,k.useState)(0),[o,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(``),[u,d]=(0,k.useState)(),[f,p]=(0,k.useState)([]),m=(0,k.useRef)(null),h=tr(n,i),g=nr(c),_=er(),v=ar(),y=rr(u?{owner:u.owner,repo:u.repo,slug:u.slug}:void 0);(0,k.useEffect)(()=>{let e=setTimeout(()=>l(o.trim()),200);return()=>clearTimeout(e)},[o]),(0,k.useEffect)(()=>{localStorage.setItem(`invariant.skills.view`,n),a(0),p([])},[n]),(0,k.useEffect)(()=>{h.data&&p(e=>h.data.page===0?h.data.skills:[...e,...h.data.skills])},[h.data]);let b=c.length>=2,x=b?g.data?.skills??[]:f,ee=(0,k.useMemo)(()=>{let e=new Set;for(let t of _.data?.packages??[]){let n=t.sourceUrl?.match(/^(?:skills|github):([^/#]+)\/([^/#]+)/);n&&e.add(`${n[1]}/${n[2]}`)}return e},[_.data]);(0,k.useEffect)(()=>{let t=t=>{let r=t.target instanceof HTMLElement&&[`INPUT`,`TEXTAREA`].includes(t.target.tagName);if(t.key===`/`&&!r){t.preventDefault(),m.current?.focus();return}r||(t.key===`ArrowDown`||t.key===`j`?n(1):t.key===`ArrowUp`||t.key===`k`?n(-1):t.key===`Escape`&&e())},n=e=>{if(x.length===0)return;let t=u?x.findIndex(e=>ja(e)===ja(u)):-1,n=Math.min(Math.max(t+e,0),x.length-1);d(x[n])};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[x,u,e]);let te=b?g.isError||g.data?.unavailable===!0:h.isError||h.data?.unavailable===!0,S=async e=>{if(u)try{let n=await v.mutateAsync({source:{kind:`skills`,owner:u.owner,repo:u.repo,slug:u.slug},activate:e.activate,sync:e.sync});t(`Installed ${n.package?.name??u.name}`,`success`)}catch(e){t(e instanceof Tn?e.message:String(e),`danger`)}};return(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Browse skills`},void 0,!1,{fileName:Ia,lineNumber:144,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,children:[`skills.sh`,h.data&&h.data.total>0&&(0,A.jsxDEV)(A.Fragment,{children:[` · `,new Intl.NumberFormat(`en-US`).format(h.data.total),` indexed`]},void 0,!0,{fileName:Ia,lineNumber:148,columnNumber:15},this)]},void 0,!0,{fileName:Ia,lineNumber:145,columnNumber:11},this)]},void 0,!0,{fileName:Ia,lineNumber:143,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:e,children:`Back to packages`},void 0,!1,{fileName:Ia,lineNumber:154,columnNumber:11},this)},void 0,!1,{fileName:Ia,lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:Ia,lineNumber:142,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`skills`,children:[(0,A.jsxDEV)(`div`,{className:`skills__list`,children:[(0,A.jsxDEV)(`div`,{className:`skills__filters`,children:[(0,A.jsxDEV)(`input`,{ref:m,className:`filter__input`,value:o,placeholder:`Search skills… ( / )`,"aria-label":`Search skills`,spellCheck:!1,onChange:e=>s(e.target.value)},void 0,!1,{fileName:Ia,lineNumber:163,columnNumber:13},this),(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Ranking`,children:La.map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":n===e.value,className:`segmented__item${n===e.value?` is-active`:``}`,disabled:b,onClick:()=>r(e.value),children:e.label},e.value,!1,{fileName:Ia,lineNumber:175,columnNumber:17},this))},void 0,!1,{fileName:Ia,lineNumber:173,columnNumber:13},this)]},void 0,!0,{fileName:Ia,lineNumber:162,columnNumber:11},this),te?(0,A.jsxDEV)(`div`,{className:`skills__empty`,children:[(0,A.jsxDEV)(`p`,{className:`skills__note`,children:`skills.sh is unreachable. Installing by identifier still works:`},void 0,!1,{fileName:Ia,lineNumber:192,columnNumber:15},this),(0,A.jsxDEV)(`code`,{className:`packages__preview-line`,children:`invariant install skills:owner/repo/skill`},void 0,!1,{fileName:Ia,lineNumber:195,columnNumber:15},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>b?g.refetch():h.refetch(),children:`Retry`},void 0,!1,{fileName:Ia,lineNumber:198,columnNumber:15},this)]},void 0,!0,{fileName:Ia,lineNumber:191,columnNumber:13},this):x.length===0?(0,A.jsxDEV)(`p`,{className:`skills__note`,children:h.isLoading||g.isLoading?`Loading the catalogue…`:`No skill matches “${c}”.`},void 0,!1,{fileName:Ia,lineNumber:207,columnNumber:13},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(Ma,{skills:x,selected:u?ja(u):void 0,installedSources:ee,onSelect:d},void 0,!1,{fileName:Ia,lineNumber:214,columnNumber:15},this),!b&&h.data?.hasMore&&(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle skills__more`,disabled:h.isFetching,onClick:()=>a(e=>e+1),children:h.isFetching?`Loading…`:`Load more`},void 0,!1,{fileName:Ia,lineNumber:222,columnNumber:17},this)]},void 0,!0,{fileName:Ia,lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:Ia,lineNumber:161,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`skills__pane`,children:u?(0,A.jsxDEV)(Na,{listing:u,detail:y.data,loading:y.isLoading,failed:y.isError,installed:ee.has(u.source),busy:v.isPending,onInstall:e=>void S(e)},void 0,!1,{fileName:Ia,lineNumber:237,columnNumber:13},this):(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Select a skill.`},void 0,!1,{fileName:Ia,lineNumber:247,columnNumber:13},this)},void 0,!1,{fileName:Ia,lineNumber:235,columnNumber:9},this)]},void 0,!0,{fileName:Ia,lineNumber:160,columnNumber:7},this)]},void 0,!0,{fileName:Ia,lineNumber:141,columnNumber:5},this)}function za(){let e=localStorage.getItem(`invariant.skills.view`);return e===`trending`||e===`hot`?e:`all-time`}var H=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/PublisherSettings.tsx`;function Ba(){let e=Kr(),{data:t,isLoading:n}=Xn(),r=Zn(),i=Qn(),a=$n(),[o,s]=(0,k.useState)(``),[c,l]=(0,k.useState)(``),[u,d]=(0,k.useState)(``),[f,p]=(0,k.useState)();if((0,k.useEffect)(()=>{t&&(s(e=>e||t.host||``),l(e=>e||t.projectPath||``))},[t]),n||!t)return(0,A.jsxDEV)(`p`,{className:`page-state`,children:`Loading settings…`},void 0,!1,{fileName:H,lineNumber:40,columnNumber:38},this);let m=t.remote?.projectPath,h=c.length>0&&m!==void 0&&c!==m;return(0,A.jsxDEV)(`section`,{className:`settings__section`,children:[(0,A.jsxDEV)(`header`,{className:`settings__head`,children:[(0,A.jsxDEV)(`h2`,{className:`settings__title`,children:`Publishing`},void 0,!1,{fileName:H,lineNumber:48,columnNumber:9},this),(0,A.jsxDEV)(`p`,{className:`settings__lede`,children:[`Push a triaged review to GitLab as `,(0,A.jsxDEV)(`strong`,{children:`draft`},void 0,!1,{fileName:H,lineNumber:50,columnNumber:46},this),` merge-request comments. Nothing is submitted for you — you press `,(0,A.jsxDEV)(`em`,{children:`Submit review`},void 0,!1,{fileName:H,lineNumber:51,columnNumber:41},this),` in GitLab yourself.`]},void 0,!0,{fileName:H,lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:47,columnNumber:7},this),(0,A.jsxDEV)(`dl`,{className:`settings__facts`,children:[(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`This UI is pinned to`},void 0,!1,{fileName:H,lineNumber:57,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:(0,A.jsxDEV)(`code`,{children:t.directory},void 0,!1,{fileName:H,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:H,lineNumber:58,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:56,columnNumber:9},this),(0,A.jsxDEV)(`div`,{children:[(0,A.jsxDEV)(`dt`,{children:`Origin remote`},void 0,!1,{fileName:H,lineNumber:61,columnNumber:11},this),(0,A.jsxDEV)(`dd`,{children:t.remote?.url?(0,A.jsxDEV)(`code`,{children:t.remote.url},void 0,!1,{fileName:H,lineNumber:62,columnNumber:39},this):`none — this project has no origin`},void 0,!1,{fileName:H,lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:55,columnNumber:7},this),t.mismatch&&(0,A.jsxDEV)(`p`,{className:`settings__warning`,children:[`These settings were saved for `,(0,A.jsxDEV)(`code`,{children:t.mismatch.storedRemote},void 0,!1,{fileName:H,lineNumber:68,columnNumber:41},this),`, but this project’s origin is now `,(0,A.jsxDEV)(`code`,{children:t.mismatch.currentRemote},void 0,!1,{fileName:H,lineNumber:69,columnNumber:35},this),`. Publishing is refused until you save again.`]},void 0,!0,{fileName:H,lineNumber:67,columnNumber:9},this),t.source===`environment`&&(0,A.jsxDEV)(`p`,{className:`settings__note`,children:[`Using `,(0,A.jsxDEV)(`code`,{children:`GITLAB_TOKEN`},void 0,!1,{fileName:H,lineNumber:76,columnNumber:17},this),` from the environment this daemon was started in. Saving a token here replaces it for this project.`]},void 0,!0,{fileName:H,lineNumber:75,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`settings__form`,children:[(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:`GitLab host`},void 0,!1,{fileName:H,lineNumber:83,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:o,placeholder:`https://gitlab.com`,onChange:e=>s(e.target.value)},void 0,!1,{fileName:H,lineNumber:84,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:82,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Project path`,(0,A.jsxDEV)(`span`,{className:`field__badge`,children:h?`overridden`:`from origin`},void 0,!1,{fileName:H,lineNumber:95,columnNumber:13},this)]},void 0,!0,{fileName:H,lineNumber:93,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,value:c,placeholder:`group/project`,onChange:e=>l(e.target.value)},void 0,!1,{fileName:H,lineNumber:97,columnNumber:11},this),h&&(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`This is not `,(0,A.jsxDEV)(`code`,{children:m},void 0,!1,{fileName:H,lineNumber:105,columnNumber:27},this),`, which is what origin says. Every publish will say so.`]},void 0,!0,{fileName:H,lineNumber:104,columnNumber:13},this)]},void 0,!0,{fileName:H,lineNumber:92,columnNumber:9},this),(0,A.jsxDEV)(`label`,{className:`field`,children:[(0,A.jsxDEV)(`span`,{className:`field__label`,children:[`Personal access token`,t.tokenHint&&(0,A.jsxDEV)(`span`,{className:`field__badge`,children:[`stored ····`,t.tokenHint]},void 0,!0,{fileName:H,lineNumber:113,columnNumber:36},this)]},void 0,!0,{fileName:H,lineNumber:111,columnNumber:11},this),(0,A.jsxDEV)(`input`,{className:`field__input`,type:`password`,autoComplete:`off`,value:u,placeholder:t.tokenHint?`Leave empty to keep the stored token`:`glpat-…`,onChange:e=>d(e.target.value)},void 0,!1,{fileName:H,lineNumber:115,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`field__hint`,children:[`Needs the `,(0,A.jsxDEV)(`code`,{children:`api`},void 0,!1,{fileName:H,lineNumber:124,columnNumber:23},this),` scope — `,(0,A.jsxDEV)(`code`,{children:`read_api`},void 0,!1,{fileName:H,lineNumber:124,columnNumber:48},this),` cannot write a comment. Stored in`,` `,(0,A.jsxDEV)(`code`,{children:t.storedAt},void 0,!1,{fileName:H,lineNumber:125,columnNumber:13},this),` (0600), for this project only. It is never sent to this page and never written to the repository.`,!t.gitignored&&t.configured&&(0,A.jsxDEV)(`strong`,{children:` This folder is not git-ignored — check before you commit.`},void 0,!1,{fileName:H,lineNumber:128,columnNumber:15},this)]},void 0,!0,{fileName:H,lineNumber:123,columnNumber:11},this)]},void 0,!0,{fileName:H,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:81,columnNumber:7},this),f&&(0,A.jsxDEV)(`p`,{className:`settings__verdict${f.ok?` is-ok`:` is-bad`}`,children:f.ok?`Connected as @${f.username} · ${f.projectPath}`:f.message},void 0,!1,{fileName:H,lineNumber:135,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`settings__actions`,children:[(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,disabled:a.isPending||!t.configured,title:t.configured?void 0:`Save a token first.`,onClick:()=>a.mutate(void 0,{onSuccess:p,onError:e=>p({publisher:`gitlab`,ok:!1,message:e instanceof Error?e.message:`That did not work.`})}),children:a.isPending?`Testing…`:`Test connection`},void 0,!1,{fileName:H,lineNumber:143,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--ghost`,disabled:i.isPending||t.source!==`stored`,onClick:()=>i.mutate(void 0,{onSuccess:()=>{d(``),p(void 0),e(`Publishing settings removed`,`success`)}}),children:`Remove`},void 0,!1,{fileName:H,lineNumber:163,columnNumber:9},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,disabled:r.isPending||!t.configured&&u.trim().length===0,onClick:()=>r.mutate({host:o.trim()||void 0,projectPath:c.trim()||void 0,token:u.trim()||void 0},{onSuccess:()=>{d(``),p(void 0),e(`Publishing settings saved`,`success`)},onError:t=>e(t instanceof Error?t.message:`That did not work.`,`danger`)}),children:r.isPending?`Saving…`:`Save`},void 0,!1,{fileName:H,lineNumber:180,columnNumber:9},this)]},void 0,!0,{fileName:H,lineNumber:142,columnNumber:7},this)]},void 0,!0,{fileName:H,lineNumber:46,columnNumber:5},this)}var Va=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/settings/SettingsPage.tsx`;function Ha(){let{data:e}=An();return(0,A.jsxDEV)(`div`,{className:`settings`,children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:`Settings`},void 0,!1,{fileName:Va,lineNumber:19,columnNumber:11},this),(0,A.jsxDEV)(`span`,{className:`topbar__path`,title:e?.directory,children:e?.directory??``},void 0,!1,{fileName:Va,lineNumber:20,columnNumber:11},this)]},void 0,!0,{fileName:Va,lineNumber:18,columnNumber:9},this)},void 0,!1,{fileName:Va,lineNumber:17,columnNumber:7},this),(0,A.jsxDEV)(`div`,{className:`settings__scroll`,children:(0,A.jsxDEV)(Ba,{},void 0,!1,{fileName:Va,lineNumber:25,columnNumber:9},this)},void 0,!1,{fileName:Va,lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:Va,lineNumber:16,columnNumber:5},this)}var Ua=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/CommandPalette.tsx`,Wa=40;function Ga({actions:e,onClose:t}){let[n,r]=(0,k.useState)(``),[i,a]=(0,k.useState)(0),o=(0,k.useRef)(null),s=(0,k.useMemo)(()=>n.trim().length===0?e.slice(0,Wa):e.map(e=>({action:e,score:jt(`${e.title} ${e.group} ${e.keywords??``}`,n.trim())})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).slice(0,Wa).map(e=>e.action),[e,n]);(0,k.useEffect)(()=>{a(0)},[n]),(0,k.useEffect)(()=>{o.current?.querySelector(`[data-active="true"]`)?.scrollIntoView({block:`nearest`})},[i,s]);let c=e=>{if(e.key===`ArrowDown`||e.key===`n`&&e.ctrlKey){e.preventDefault(),a(e=>(e+1)%Math.max(s.length,1));return}if(e.key===`ArrowUp`||e.key===`p`&&e.ctrlKey){e.preventDefault(),a(e=>(e-1+Math.max(s.length,1))%Math.max(s.length,1));return}if(e.key===`Enter`){e.preventDefault();let n=s[i];n&&(t(),n.run());return}e.key===`Escape`&&(e.preventDefault(),t())},l=``;return(0,A.jsxDEV)(`div`,{className:`overlay overlay--top`,onMouseDown:e=>{e.target===e.currentTarget&&t()},children:(0,A.jsxDEV)(`div`,{className:`palette`,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,A.jsxDEV)(`input`,{className:`palette__input`,autoFocus:!0,value:n,placeholder:`Search sessions and commands…`,onChange:e=>r(e.target.value),onKeyDown:c,"aria-label":`Search sessions and commands`},void 0,!1,{fileName:Ua,lineNumber:79,columnNumber:9},this),(0,A.jsxDEV)(`div`,{className:`palette__list`,ref:o,role:`listbox`,children:[s.length===0&&(0,A.jsxDEV)(`p`,{className:`palette__empty`,children:`No matches`},void 0,!1,{fileName:Ua,lineNumber:90,columnNumber:36},this),s.map((e,n)=>{let r=e.group===l?void 0:e.group;return l=e.group,(0,A.jsxDEV)(`div`,{children:[r&&(0,A.jsxDEV)(`div`,{className:`palette__group`,children:r},void 0,!1,{fileName:Ua,lineNumber:98,columnNumber:28},this),(0,A.jsxDEV)(`button`,{type:`button`,role:`option`,"aria-selected":n===i,"data-active":n===i,className:`palette__item${n===i?` is-active`:``}`,onMouseMove:()=>a(n),onClick:()=>{t(),e.run()},children:[e.status&&(0,A.jsxDEV)(Et,{status:e.status},void 0,!1,{fileName:Ua,lineNumber:108,columnNumber:37},this),(0,A.jsxDEV)(`span`,{className:`palette__title`,children:e.title},void 0,!1,{fileName:Ua,lineNumber:109,columnNumber:19},this),e.hint&&(0,A.jsxDEV)(`span`,{className:`palette__hint`,children:e.hint},void 0,!1,{fileName:Ua,lineNumber:110,columnNumber:35},this),e.shortcut&&(0,A.jsxDEV)(`kbd`,{className:`palette__shortcut`,children:e.shortcut},void 0,!1,{fileName:Ua,lineNumber:111,columnNumber:39},this)]},void 0,!0,{fileName:Ua,lineNumber:99,columnNumber:17},this)]},e.id,!0,{fileName:Ua,lineNumber:97,columnNumber:15},this)})]},void 0,!0,{fileName:Ua,lineNumber:89,columnNumber:9},this),(0,A.jsxDEV)(`footer`,{className:`palette__foot`,children:[(0,A.jsxDEV)(`kbd`,{children:`↑`},void 0,!1,{fileName:Ua,lineNumber:119,columnNumber:11},this),(0,A.jsxDEV)(`kbd`,{children:`↓`},void 0,!1,{fileName:Ua,lineNumber:119,columnNumber:23},this),` navigate `,(0,A.jsxDEV)(`kbd`,{children:`↵`},void 0,!1,{fileName:Ua,lineNumber:119,columnNumber:45},this),` run `,(0,A.jsxDEV)(`kbd`,{children:`esc`},void 0,!1,{fileName:Ua,lineNumber:119,columnNumber:62},this),` close`]},void 0,!0,{fileName:Ua,lineNumber:118,columnNumber:9},this)]},void 0,!0,{fileName:Ua,lineNumber:78,columnNumber:7},this)},void 0,!1,{fileName:Ua,lineNumber:77,columnNumber:5},this)}var Ka=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/features/palette/ShortcutSheet.tsx`,qa=[{title:`Global`,rows:[[`⌘K`,`Command palette`],[`N`,`New session`],[`⌘B`,`Toggle board / tree`],[`/`,`Focus the filter`],[`⇧⌘R`,`Copy the execute line of the session in front of you`],[`?`,`This sheet`]]},{title:`Dashboard`,rows:[[`J / K`,`Move between sessions`],[`← / →`,`Collapse / expand a session's reviews (tree view)`],[`↵`,`Open the focused session`],[`1 – 5`,`Set status: Review is machine-set, so it is not one of the five`]]},{title:`Review triage`,rows:[[`J / K`,`Move between comments`],[`↵`,`Expand the focused comment`],[`S`,`Stage it`],[`D`,`Discard it`],[`E`,`Edit its wording`],[`⇧S`,`Stage everything matching the filter`]]},{title:`Session`,rows:[[`⇧⌘V`,`Toggle preview / edit`],[`S`,`Split view`],[`⌘S`,`Save now`],[`Esc`,`Back to the dashboard`]]}];function Ja({onClose:e}){return(0,A.jsxDEV)(hr,{title:`Keyboard shortcuts`,onClose:e,width:520,children:(0,A.jsxDEV)(`div`,{className:`shortcuts`,children:qa.map(e=>(0,A.jsxDEV)(`section`,{className:`shortcuts__group`,children:[(0,A.jsxDEV)(`h3`,{className:`shortcuts__title`,children:e.title},void 0,!1,{fileName:Ka,lineNumber:52,columnNumber:13},this),e.rows.map(([e,t])=>(0,A.jsxDEV)(`div`,{className:`shortcuts__row`,children:[(0,A.jsxDEV)(`kbd`,{children:e},void 0,!1,{fileName:Ka,lineNumber:55,columnNumber:17},this),(0,A.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:Ka,lineNumber:56,columnNumber:17},this)]},e,!0,{fileName:Ka,lineNumber:54,columnNumber:15},this))]},e.title,!0,{fileName:Ka,lineNumber:51,columnNumber:11},this))},void 0,!1,{fileName:Ka,lineNumber:49,columnNumber:7},this)},void 0,!1,{fileName:Ka,lineNumber:48,columnNumber:5},this)}function Ya(e){if(e===`/`||e===`/sessions`)return{name:`sessions`};let t=e.match(/^\/sessions\/([^/]+)$/);if(t)return{name:`session`,sessionId:decodeURIComponent(t[1])};if(e===`/reviews`)return{name:`reviews`};let n=e.match(/^\/reviews\/([^/]+)$/);return n?{name:`review`,slug:decodeURIComponent(n[1])}:e===`/packages`?{name:`packages`}:e===`/packages/skills`?{name:`skills`}:e===`/settings`?{name:`settings`}:{name:`not-found`,path:e}}function Xa(e){switch(e.name){case`sessions`:return`/sessions`;case`session`:return`/sessions/${e.sessionId}`;case`reviews`:return`/reviews`;case`review`:return`/reviews/${e.slug}`;case`packages`:return`/packages`;case`skills`:return`/packages/skills`;case`settings`:return`/settings`;default:return`/`}}function Za(){let[e,t]=(0,k.useState)(()=>Ya(window.location.pathname));return(0,k.useEffect)(()=>{let e=()=>t(Ya(window.location.pathname));return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),{route:e,navigate:(0,k.useCallback)(e=>{let n=Xa(e);n!==window.location.pathname&&window.history.pushState({},``,n),t(e)},[]),back:(0,k.useCallback)(()=>window.history.back(),[])}}var U=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/App.tsx`,Qa=`invariant.ui.dashboardView`;function $a(){try{let e=window.localStorage.getItem(Qa);return e===`board`||e===`tree`?e:`tree`}catch{return`tree`}}function eo(){let e=Kr(),t=lr(),{route:n,navigate:r}=Za(),{data:i}=An(),{data:a,isLoading:o}=jn(),s=Nn(),c=In(),l=zn(),u=Kn(),{data:d}=Vn(),{data:f}=Bn(),[p,m]=(0,k.useState)($a),[h,g]=(0,k.useState)(mn),[_,v]=(0,k.useState)(`preview`),[y,b]=(0,k.useState)(``),[x,ee]=(0,k.useState)(),[te,S]=(0,k.useState)(!1),[ne,re]=(0,k.useState)(!1),[ie,C]=(0,k.useState)(!1),[ae,w]=(0,k.useState)(!1),[T,oe]=(0,k.useState)(!1),[E,se]=(0,k.useState)(!1);(0,k.useEffect)(()=>{try{window.localStorage.setItem(Qa,p)}catch{}},[p]);let ce=(0,k.useMemo)(()=>a?.sessions??[],[a]),le=(0,k.useMemo)(()=>{let e=y.trim();return e.length===0?ce:ce.map(t=>({session:t,score:jt(`${t.title} ${t.excerpt} ${t.tags.join(` `)}`,e)})).filter(e=>e.score!==null).sort((e,t)=>t.score-e.score).map(e=>e.session)},[ce,y]),ue=(0,k.useMemo)(()=>p===`tree`?bn(le,d?.reviews??[],h):le,[p,le,d,h]),de=(0,k.useCallback)(e=>{g(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),fe=(0,k.useCallback)(e=>{let t=ce.find(t=>t.id===e);if(!(!t||!i))return`execute instructions from ${i.sessionsDirectory}/${t.file}`},[ce,i]),pe=(0,k.useCallback)(()=>{let t=n.name===`session`?n.sessionId:x,r=t?fe(t):void 0;if(!r){e(`No session in focus — open one, or pick one on the board.`,`info`);return}Mt(r).then(t=>e(t?`Execute line copied`:`Could not copy`,t?`success`:`danger`))},[n,x,fe,e]),me=(0,k.useCallback)(e=>{ee(e),r({name:`session`,sessionId:e})},[r]),he=(0,k.useCallback)(e=>r({name:`review`,slug:e}),[r]),ge=(0,k.useCallback)(t=>{u.mutate(t,{onSuccess:async t=>{C(!1),await Mt(t.executeLine),e(t.guidance,`success`),me(t.session.id)},onError:t=>e(t instanceof Error?t.message:`Could not create the review.`,`danger`)})},[u,me,e]),_e=(0,k.useCallback)(e=>ge({sessionId:e}),[ge]),ve=(0,k.useCallback)((t,n)=>{s.mutate({sessionId:t,status:n},{onError:()=>e(`Could not change the status.`,`danger`),onSuccess:t=>{t.status===`executed`&&t.kind!==`review`&&(t.reviewSessionIds.length>0||f&&!f.canReview||e(`Marked done — request a review from the session page.`,`info`))}})},[s,e,f]),ye=(0,k.useCallback)(t=>{c.mutate(t,{onSuccess:async t=>{re(!1),await Mt(t.executeLine),e(`Session created — execute line copied`,`success`),v(`edit`),me(t.session.id)},onError:t=>e(t instanceof Error?t.message:`Could not create the session.`,`danger`)})},[c,me,e]),be=no({sessions:ce,route:n,view:p,project:i?.directory,onOpenSession:me,onChangeStatus:ve,onNew:()=>re(!0),onToggleView:()=>m(e=>e===`board`?`tree`:`board`),onSetMode:v,onShortcuts:()=>se(!0),onMigrateAll:()=>l.mutate(void 0,{onSuccess:t=>e(`Migrated ${t.migrated.length} session(s)`,`success`),onError:()=>e(`Could not migrate headers.`,`danger`)}),onGoToSessions:()=>r({name:`sessions`}),onGoToReviews:()=>r({name:`reviews`}),onGoToPackages:()=>r({name:`packages`}),onGoToSettings:()=>r({name:`settings`}),onInstallPackage:()=>{r({name:`packages`}),w(!0)},onSyncProject:()=>{r({name:`packages`}),oe(!0)},onBrowseSkills:()=>r({name:`skills`}),onReviewBranch:()=>C(!0),onCopyExecuteLine:pe,onOpenReview:he,onRequestReview:_e,reviews:d?.reviews??[],canReview:f?.canReview??!1,onStop:async()=>{window.confirm(`Stop this UI server? The page will stop responding.`)&&(await On.shutdown().catch(()=>void 0),e(`UI stopping…`,`info`))},toast:e});return io({enabled:!ne&&!E&&!ie,paletteOpen:te,onPalette:()=>S(e=>!e),onNew:()=>re(!0),onToggleView:()=>m(e=>e===`board`?`tree`:`board`),onShortcuts:()=>se(!0),onCopyExecuteLine:pe,onFilter:()=>document.querySelector(`.filter__input`)?.focus(),onTogglePreview:()=>v(e=>e===`edit`?`preview`:`edit`),onSplit:()=>v(`split`),onEscape:()=>{n.name===`session`?r({name:`sessions`}):n.name===`review`&&r({name:`reviews`})},onMove:e=>{if(n.name!==`sessions`||ue.length===0)return;let t=ue.findIndex(e=>e.id===x),r=t===-1?0:Math.min(Math.max(t+e,0),ue.length-1);ee(ue[r].id)},onOpenFocused:()=>{n.name===`sessions`&&x&&me(x)},onStatusDigit:e=>{let t=Gt[e],r=n.name===`session`?n.sessionId:x;t&&r&&ve(r,t)},isSessionRoute:n.name===`session`}),(0,A.jsxDEV)(`div`,{className:`app`,children:[(0,A.jsxDEV)(wt,{route:n,onNavigate:r,onOpenPalette:()=>S(!0),live:t},void 0,!1,{fileName:U,lineNumber:299,columnNumber:7},this),(0,A.jsxDEV)(`main`,{className:`main`,children:n.name===`session`?(0,A.jsxDEV)(ui,{sessionId:n.sessionId,mode:_,onModeChange:v,onBack:()=>r({name:`sessions`}),onArchived:()=>r({name:`sessions`}),onOpenSession:me,onOpenSettings:()=>r({name:`settings`})},void 0,!1,{fileName:U,lineNumber:303,columnNumber:11},this):n.name===`reviews`?(0,A.jsxDEV)(_i,{onOpen:he,onOpenSession:me,onReviewBranch:()=>C(!0)},void 0,!1,{fileName:U,lineNumber:313,columnNumber:11},this):n.name===`review`?(0,A.jsxDEV)(Si,{slug:n.slug,onBack:()=>r({name:`reviews`}),onOpenSession:me,onOpenSettings:()=>r({name:`settings`})},void 0,!1,{fileName:U,lineNumber:319,columnNumber:11},this):n.name===`settings`?(0,A.jsxDEV)(Ha,{},void 0,!1,{fileName:U,lineNumber:326,columnNumber:11},this):n.name===`packages`?(0,A.jsxDEV)(Ea,{installOpen:ae,syncOpen:T,onInstallOpenChange:w,onSyncOpenChange:oe,onBrowseSkills:()=>r({name:`skills`})},void 0,!1,{fileName:U,lineNumber:328,columnNumber:11},this):n.name===`skills`?(0,A.jsxDEV)(Ra,{onBack:()=>r({name:`packages`})},void 0,!1,{fileName:U,lineNumber:336,columnNumber:11},this):(0,A.jsxDEV)(A.Fragment,{children:[(0,A.jsxDEV)(`header`,{className:`topbar`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__identity`,children:[(0,A.jsxDEV)(`h1`,{className:`topbar__title`,children:i?.name??`Sessions`},void 0,!1,{fileName:U,lineNumber:341,columnNumber:17},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`topbar__path`,title:i?`${i.directory} — click to copy`:void 0,onClick:async()=>{i&&e(await Mt(i.directory)?`Path copied`:`Could not copy`,`success`)},children:i?Nt(i.directory):``},void 0,!1,{fileName:U,lineNumber:342,columnNumber:17},this)]},void 0,!0,{fileName:U,lineNumber:340,columnNumber:15},this),(0,A.jsxDEV)(`div`,{className:`topbar__controls`,children:[(0,A.jsxDEV)(`div`,{className:`topbar__counts`,children:Ut.map(e=>(0,A.jsxDEV)(`span`,{className:`count count--${e}`,title:Wt[e],children:[(0,A.jsxDEV)(`span`,{className:`count__value`,children:a?.counts[e]??0},void 0,!1,{fileName:U,lineNumber:360,columnNumber:23},this),(0,A.jsxDEV)(`span`,{className:`count__label`,children:Wt[e]},void 0,!1,{fileName:U,lineNumber:361,columnNumber:23},this)]},e,!0,{fileName:U,lineNumber:359,columnNumber:21},this))},void 0,!1,{fileName:U,lineNumber:357,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`filter filter--compact`,children:(0,A.jsxDEV)(`input`,{className:`filter__input`,value:y,placeholder:`Filter… /`,onChange:e=>b(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(b(``),e.currentTarget.blur())},"aria-label":`Filter sessions`},void 0,!1,{fileName:U,lineNumber:369,columnNumber:19},this)},void 0,!1,{fileName:U,lineNumber:368,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`segmented`,role:`tablist`,"aria-label":`Layout`,children:[`tree`,`board`].map(e=>(0,A.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":p===e,className:`segmented__item${p===e?` is-active`:``}`,onClick:()=>m(e),children:e===`board`?`Board`:`Tree`},e,!1,{fileName:U,lineNumber:381,columnNumber:21},this))},void 0,!1,{fileName:U,lineNumber:379,columnNumber:17},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:()=>re(!0),children:`New session`},void 0,!1,{fileName:U,lineNumber:394,columnNumber:17},this)]},void 0,!0,{fileName:U,lineNumber:356,columnNumber:15},this)]},void 0,!0,{fileName:U,lineNumber:339,columnNumber:13},this),a&&a.needingMigration>0&&(0,A.jsxDEV)(`div`,{className:`banner banner--warning`,children:[(0,A.jsxDEV)(`div`,{className:`banner__text`,children:[(0,A.jsxDEV)(`strong`,{children:[a.needingMigration,` session(s)`]},void 0,!0,{fileName:U,lineNumber:403,columnNumber:19},this),` have no canonical `,(0,A.jsxDEV)(`code`,{children:`<session-meta>`},void 0,!1,{fileName:U,lineNumber:403,columnNumber:89},this),` header.`]},void 0,!0,{fileName:U,lineNumber:402,columnNumber:17},this),(0,A.jsxDEV)(`div`,{className:`banner__actions`,children:(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--subtle`,onClick:()=>l.mutate(void 0,{onSuccess:t=>e(`Migrated ${t.migrated.length} session(s)`,`success`),onError:()=>e(`Could not migrate headers.`,`danger`)}),children:`Migrate all`},void 0,!1,{fileName:U,lineNumber:406,columnNumber:19},this)},void 0,!1,{fileName:U,lineNumber:405,columnNumber:17},this)]},void 0,!0,{fileName:U,lineNumber:401,columnNumber:15},this),o?(0,A.jsxDEV)(`div`,{className:`page-state`,children:`Loading sessions…`},void 0,!1,{fileName:U,lineNumber:423,columnNumber:15},this):ce.length===0?(0,A.jsxDEV)(to,{onNew:()=>re(!0)},void 0,!1,{fileName:U,lineNumber:425,columnNumber:15},this):(0,A.jsxDEV)(_n,{sessions:le,allSessions:ce,reviews:d?.reviews??[],view:p,filter:y,focusedId:x,onFocus:ee,onOpen:me,onStatusChange:ve,onNew:()=>re(!0),onRefuseDrop:t=>e(t,`info`),collapsed:h,onToggleCollapsed:de},void 0,!1,{fileName:U,lineNumber:427,columnNumber:15},this)]},void 0,!0,{fileName:U,lineNumber:338,columnNumber:11},this)},void 0,!1,{fileName:U,lineNumber:301,columnNumber:7},this),te&&(0,A.jsxDEV)(Ga,{actions:be,onClose:()=>S(!1)},void 0,!1,{fileName:U,lineNumber:447,columnNumber:23},this),ne&&(0,A.jsxDEV)(fi,{busy:c.isPending,onClose:()=>re(!1),onSubmit:ye},void 0,!1,{fileName:U,lineNumber:449,columnNumber:9},this),ie&&(0,A.jsxDEV)(Ti,{busy:u.isPending,onClose:()=>C(!1),onSubmit:({base:e})=>ge({standalone:!0,base:e})},void 0,!1,{fileName:U,lineNumber:452,columnNumber:9},this),E&&(0,A.jsxDEV)(Ja,{onClose:()=>se(!1)},void 0,!1,{fileName:U,lineNumber:458,columnNumber:25},this)]},void 0,!0,{fileName:U,lineNumber:298,columnNumber:5},this)}function to({onNew:e}){return(0,A.jsxDEV)(`div`,{className:`empty`,children:[(0,A.jsxDEV)(`h2`,{className:`empty__title`,children:`No sessions yet`},void 0,!1,{fileName:U,lineNumber:466,columnNumber:7},this),(0,A.jsxDEV)(`p`,{className:`empty__text`,children:[`A session is a markdown file in `,(0,A.jsxDEV)(`code`,{children:`.invariant/sessions`},void 0,!1,{fileName:U,lineNumber:468,columnNumber:41},this),` holding one task, its plan, and its status. Create one here, then paste its execute line into your agent.`]},void 0,!0,{fileName:U,lineNumber:467,columnNumber:7},this),(0,A.jsxDEV)(`button`,{type:`button`,className:`button button--solid`,onClick:e,children:`New session`},void 0,!1,{fileName:U,lineNumber:471,columnNumber:7},this)]},void 0,!0,{fileName:U,lineNumber:465,columnNumber:5},this)}function no(e){return(0,k.useMemo)(()=>{let t=e.route,n=t.name===`session`?e.sessions.find(e=>e.id===t.sessionId):void 0,r=[{id:`new`,group:`Actions`,title:`New session…`,shortcut:`N`,run:e.onNew},{id:`view`,group:`Actions`,title:`Switch to ${e.view===`board`?`tree`:`board`} view`,shortcut:`⌘B`,run:e.onToggleView},{id:`go-sessions`,group:`Actions`,title:`Go to sessions`,keywords:`dashboard home`,run:e.onGoToSessions},{id:`go-reviews`,group:`Actions`,title:`Go to reviews`,keywords:`review comments triage`,run:e.onGoToReviews},{id:`go-packages`,group:`Actions`,title:`Go to packages`,keywords:`package install add remove inspect`,run:e.onGoToPackages},{id:`go-settings`,group:`Actions`,title:`Publishing settings`,hint:`GitLab token for this project`,keywords:`settings gitlab token publish credentials merge request`,run:e.onGoToSettings},{id:`install-package`,group:`Packages`,title:`Install package…`,keywords:`github skills.sh registry add dependency`,run:e.onInstallPackage},{id:`browse-skills`,group:`Packages`,title:`Browse skills…`,hint:`The skills.sh catalogue`,keywords:`skills.sh catalogue browse search install skill agent`,run:e.onBrowseSkills},{id:`sync-project`,group:`Packages`,title:`Sync…`,hint:`Regenerate target folders`,keywords:`sync regenerate claude cursor drift check`,run:e.onSyncProject},{id:`review-branch`,group:`Actions`,title:`Review a branch…`,hint:`Tied to no session`,keywords:`standalone review branch diff someone else`,run:e.onReviewBranch},{id:`copy-execute-line`,group:`Actions`,title:`Copy the execute line`,shortcut:`⇧⌘R`,keywords:`paste agent run session`,run:e.onCopyExecuteLine},{id:`migrate`,group:`Actions`,title:`Migrate all session headers`,keywords:`fix header meta`,run:e.onMigrateAll},{id:`shortcuts`,group:`Actions`,title:`Keyboard shortcuts`,shortcut:`?`,run:e.onShortcuts},{id:`stop`,group:`Actions`,title:`Stop this UI server`,keywords:`quit shutdown exit`,run:e.onStop}];if(e.project&&r.push({id:`copy-project`,group:`Actions`,title:`Copy project path`,hint:e.project,run:async()=>{e.toast(await Mt(e.project)?`Path copied`:`Could not copy`,`success`)}}),n){r.push({id:`mode-preview`,group:`This session`,title:`Preview`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`preview`)},{id:`mode-edit`,group:`This session`,title:`Edit`,shortcut:`⇧⌘V`,run:()=>e.onSetMode(`edit`)},{id:`mode-split`,group:`This session`,title:`Split`,shortcut:`S`,run:()=>e.onSetMode(`split`)}),n.kind===`plan`&&n.status===`executed`&&e.canReview&&r.push({id:`request-review`,group:`This session`,title:`Request review`,keywords:`diff branch code review`,run:()=>e.onRequestReview(n.id)}),n.reviewFile&&r.push({id:`open-review-file`,group:`This session`,title:`Open the review document`,hint:n.reviewFile,run:()=>e.onOpenReview(tn(n.reviewFile))});for(let t of Gt)t!==n.status&&r.push({id:`status-${t}`,group:`This session`,title:`Set status: ${It({kind:n.kind,status:t}).label}`,status:t,run:()=>e.onChangeStatus(n.id,t)});n.status===`review`&&r.push({id:`status-locked`,group:`This session`,title:`Why can I not change this status?`,hint:Kt,keywords:`review status locked triage`,run:()=>e.toast(Kt,`info`)})}for(let t of e.reviews)r.push({id:`open-review-${t.slug}`,group:`Go to review`,title:t.branch,hint:t.counts.open>0?`${t.counts.open} awaiting triage`:`${t.counts.staged} staged`,keywords:`${t.path} review comments`,run:()=>e.onOpenReview(t.slug)});for(let t of e.sessions){let n=It(t,cn(t,e.reviews));r.push({id:`open-${t.id}`,group:t.kind===`review`?`Go to review session`:`Go to session`,title:t.title,hint:t.kind===`review`?`${n.label} · ${t.branch??``}`.trim():n.label,status:t.status,keywords:`${t.excerpt} ${t.tags.join(` `)} ${t.branch??``}`,run:()=>e.onOpenSession(t.id)})}return r},[e])}function ro(e){let t=e;return t?t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable||t.closest(`.cm-editor`)!==null:!1}function io(e){(0,k.useEffect)(()=>{let t=t=>{let n=t.metaKey||t.ctrlKey;if(n&&t.key.toLowerCase()===`k`){t.preventDefault(),e.onPalette();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`v`){t.preventDefault(),e.onTogglePreview();return}if(n&&t.shiftKey&&t.key.toLowerCase()===`r`){t.preventDefault(),e.onCopyExecuteLine();return}if(!(!e.enabled||e.paletteOpen)){if(n&&t.key.toLowerCase()===`b`){t.preventDefault(),e.onToggleView();return}if(t.key===`Escape`&&!ro(t.target)){e.onEscape();return}if(!ro(t.target))switch(t.key){case`n`:t.preventDefault(),e.onNew();return;case`/`:t.preventDefault(),e.onFilter();return;case`?`:t.preventDefault(),e.onShortcuts();return;case`j`:e.onMove(1);return;case`k`:e.onMove(-1);return;case`ArrowDown`:e.isSessionRoute||(t.preventDefault(),e.onMove(1));return;case`ArrowUp`:e.isSessionRoute||(t.preventDefault(),e.onMove(-1));return;case`Enter`:e.isSessionRoute||e.onOpenFocused();return;case`e`:e.isSessionRoute&&e.onTogglePreview();return;case`p`:e.isSessionRoute&&e.onTogglePreview();return;case`s`:e.isSessionRoute&&e.onSplit();return;case`1`:case`2`:case`3`:case`4`:e.onStatusDigit(Number(t.key)-1);return}}};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}var ao=`/Users/yann/dev/invariant-guru/invariant-cli/apps/cli/ui/src/main.tsx`,oo=new Ze({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:5e3}}});(0,xt.createRoot)(document.getElementById(`root`)).render((0,A.jsxDEV)(k.StrictMode,{children:(0,A.jsxDEV)(rt,{client:oo,children:(0,A.jsxDEV)(Jr,{children:(0,A.jsxDEV)(eo,{},void 0,!1,{fileName:ao,lineNumber:26,columnNumber:9},void 0)},void 0,!1,{fileName:ao,lineNumber:25,columnNumber:7},void 0)},void 0,!1,{fileName:ao,lineNumber:24,columnNumber:5},void 0)},void 0,!1,{fileName:ao,lineNumber:23,columnNumber:3},void 0));export{d as a,l as c,bt as i,Ar as n,o,kr as r,s,jr as t};