@axlsdk/studio 0.9.0 → 0.10.0

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.
@@ -14,7 +14,7 @@ var I0=Object.defineProperty;var Im=u=>{throw TypeError(u)};var P0=(u,i,r)=>i in
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ty;function lg(){if(ty)return ue;ty=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),M=Symbol.iterator;function U(T){return T===null||typeof T!="object"?null:(T=M&&T[M]||T["@@iterator"],typeof T=="function"?T:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function D(T,X,F){this.props=T,this.context=X,this.refs=H,this.updater=F||K}D.prototype.isReactComponent={},D.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,X,"setState")},D.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Y(){}Y.prototype=D.prototype;function B(T,X,F){this.props=T,this.context=X,this.refs=H,this.updater=F||K}var Z=B.prototype=new Y;Z.constructor=B,O(Z,D.prototype),Z.isPureReactComponent=!0;var G=Array.isArray;function V(){}var k={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function he(T,X,F){var I=F.ref;return{$$typeof:u,type:T,key:X,ref:I!==void 0?I:null,props:F}}function Te(T,X){return he(T.type,X,T.props)}function Je(T){return typeof T=="object"&&T!==null&&T.$$typeof===u}function ke(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(F){return X[F]})}var tl=/\/+/g;function dt(T,X){return typeof T=="object"&&T!==null&&T.key!=null?ke(""+T.key):X.toString(36)}function ut(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(V,V):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,X,F,I,ie){var oe=typeof T;(oe==="undefined"||oe==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case u:case i:Se=!0;break;case N:return Se=T._init,q(Se(T._payload),X,F,I,ie)}}if(Se)return ie=ie(T),Se=I===""?"."+dt(T,0):I,G(ie)?(F="",Se!=null&&(F=Se.replace(tl,"$&/")+"/"),q(ie,X,F,"",function(eu){return eu})):ie!=null&&(Je(ie)&&(ie=Te(ie,F+(ie.key==null||T&&T.key===ie.key?"":(""+ie.key).replace(tl,"$&/")+"/")+Se)),X.push(ie)),1;Se=0;var rt=I===""?".":I+":";if(G(T))for(var Qe=0;Qe<T.length;Qe++)I=T[Qe],oe=rt+dt(I,Qe),Se+=q(I,X,F,oe,ie);else if(Qe=U(T),typeof Qe=="function")for(T=Qe.call(T),Qe=0;!(I=T.next()).done;)I=I.value,oe=rt+dt(I,Qe++),Se+=q(I,X,F,oe,ie);else if(oe==="object"){if(typeof T.then=="function")return q(ut(T),X,F,I,ie);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function J(T,X,F){if(T==null)return T;var I=[],ie=0;return q(T,I,"","",function(oe){return X.call(F,oe,ie++)}),I}function ne(T){if(T._status===-1){var X=T._result;X=X(),X.then(function(F){(T._status===0||T._status===-1)&&(T._status=1,T._result=F)},function(F){(T._status===0||T._status===-1)&&(T._status=2,T._result=F)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var Ce=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ze={map:J,forEach:function(T,X,F){J(T,function(){X.apply(this,arguments)},F)},count:function(T){var X=0;return J(T,function(){X++}),X},toArray:function(T){return J(T,function(X){return X})||[]},only:function(T){if(!Je(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ue.Activity=p,ue.Children=ze,ue.Component=D,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=B,ue.StrictMode=c,ue.Suspense=x,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ue.__COMPILER_RUNTIME={__proto__:null,c:function(T){return k.H.useMemoCache(T)}},ue.cache=function(T){return function(){return T.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(T,X,F){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var I=O({},T.props),ie=T.key;if(X!=null)for(oe in X.key!==void 0&&(ie=""+X.key),X)!le.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(I[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)I.children=F;else if(1<oe){for(var Se=Array(oe),rt=0;rt<oe;rt++)Se[rt]=arguments[rt+2];I.children=Se}return he(T.type,ie,I)},ue.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},ue.createElement=function(T,X,F){var I,ie={},oe=null;if(X!=null)for(I in X.key!==void 0&&(oe=""+X.key),X)le.call(X,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ie[I]=X[I]);var Se=arguments.length-2;if(Se===1)ie.children=F;else if(1<Se){for(var rt=Array(Se),Qe=0;Qe<Se;Qe++)rt[Qe]=arguments[Qe+2];ie.children=rt}if(T&&T.defaultProps)for(I in Se=T.defaultProps,Se)ie[I]===void 0&&(ie[I]=Se[I]);return he(T,oe,ie)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(T){return{$$typeof:g,render:T}},ue.isValidElement=Je,ue.lazy=function(T){return{$$typeof:N,_payload:{_status:-1,_result:T},_init:ne}},ue.memo=function(T,X){return{$$typeof:v,type:T,compare:X===void 0?null:X}},ue.startTransition=function(T){var X=k.T,F={};k.T=F;try{var I=T(),ie=k.S;ie!==null&&ie(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(V,Ce)}catch(oe){Ce(oe)}finally{X!==null&&F.types!==null&&(X.types=F.types),k.T=X}},ue.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ue.use=function(T){return k.H.use(T)},ue.useActionState=function(T,X,F){return k.H.useActionState(T,X,F)},ue.useCallback=function(T,X){return k.H.useCallback(T,X)},ue.useContext=function(T){return k.H.useContext(T)},ue.useDebugValue=function(){},ue.useDeferredValue=function(T,X){return k.H.useDeferredValue(T,X)},ue.useEffect=function(T,X){return k.H.useEffect(T,X)},ue.useEffectEvent=function(T){return k.H.useEffectEvent(T)},ue.useId=function(){return k.H.useId()},ue.useImperativeHandle=function(T,X,F){return k.H.useImperativeHandle(T,X,F)},ue.useInsertionEffect=function(T,X){return k.H.useInsertionEffect(T,X)},ue.useLayoutEffect=function(T,X){return k.H.useLayoutEffect(T,X)},ue.useMemo=function(T,X){return k.H.useMemo(T,X)},ue.useOptimistic=function(T,X){return k.H.useOptimistic(T,X)},ue.useReducer=function(T,X,F){return k.H.useReducer(T,X,F)},ue.useRef=function(T){return k.H.useRef(T)},ue.useState=function(T){return k.H.useState(T)},ue.useSyncExternalStore=function(T,X,F){return k.H.useSyncExternalStore(T,X,F)},ue.useTransition=function(){return k.H.useTransition()},ue.version="19.2.4",ue}var ly;function Ho(){return ly||(ly=1,io.exports=lg()),io.exports}var E=Ho(),so={exports:{}},Fu={},ro={exports:{}},co={};/**
17
+ */var ty;function lg(){if(ty)return ue;ty=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),M=Symbol.iterator;function U(T){return T===null||typeof T!="object"?null:(T=M&&T[M]||T["@@iterator"],typeof T=="function"?T:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function D(T,X,F){this.props=T,this.context=X,this.refs=H,this.updater=F||K}D.prototype.isReactComponent={},D.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,X,"setState")},D.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Y(){}Y.prototype=D.prototype;function B(T,X,F){this.props=T,this.context=X,this.refs=H,this.updater=F||K}var Z=B.prototype=new Y;Z.constructor=B,O(Z,D.prototype),Z.isPureReactComponent=!0;var G=Array.isArray;function V(){}var k={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function he(T,X,F){var I=F.ref;return{$$typeof:u,type:T,key:X,ref:I!==void 0?I:null,props:F}}function Te(T,X){return he(T.type,X,T.props)}function Je(T){return typeof T=="object"&&T!==null&&T.$$typeof===u}function ke(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(F){return X[F]})}var tl=/\/+/g;function dt(T,X){return typeof T=="object"&&T!==null&&T.key!=null?ke(""+T.key):X.toString(36)}function ut(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(V,V):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function q(T,X,F,I,ie){var oe=typeof T;(oe==="undefined"||oe==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case u:case i:Se=!0;break;case N:return Se=T._init,q(Se(T._payload),X,F,I,ie)}}if(Se)return ie=ie(T),Se=I===""?"."+dt(T,0):I,G(ie)?(F="",Se!=null&&(F=Se.replace(tl,"$&/")+"/"),q(ie,X,F,"",function(eu){return eu})):ie!=null&&(Je(ie)&&(ie=Te(ie,F+(ie.key==null||T&&T.key===ie.key?"":(""+ie.key).replace(tl,"$&/")+"/")+Se)),X.push(ie)),1;Se=0;var rt=I===""?".":I+":";if(G(T))for(var Qe=0;Qe<T.length;Qe++)I=T[Qe],oe=rt+dt(I,Qe),Se+=q(I,X,F,oe,ie);else if(Qe=U(T),typeof Qe=="function")for(T=Qe.call(T),Qe=0;!(I=T.next()).done;)I=I.value,oe=rt+dt(I,Qe++),Se+=q(I,X,F,oe,ie);else if(oe==="object"){if(typeof T.then=="function")return q(ut(T),X,F,I,ie);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function J(T,X,F){if(T==null)return T;var I=[],ie=0;return q(T,I,"","",function(oe){return X.call(F,oe,ie++)}),I}function ne(T){if(T._status===-1){var X=T._result;X=X(),X.then(function(F){(T._status===0||T._status===-1)&&(T._status=1,T._result=F)},function(F){(T._status===0||T._status===-1)&&(T._status=2,T._result=F)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var Ce=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ze={map:J,forEach:function(T,X,F){J(T,function(){X.apply(this,arguments)},F)},count:function(T){var X=0;return J(T,function(){X++}),X},toArray:function(T){return J(T,function(X){return X})||[]},only:function(T){if(!Je(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ue.Activity=p,ue.Children=ze,ue.Component=D,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=B,ue.StrictMode=c,ue.Suspense=b,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ue.__COMPILER_RUNTIME={__proto__:null,c:function(T){return k.H.useMemoCache(T)}},ue.cache=function(T){return function(){return T.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(T,X,F){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var I=O({},T.props),ie=T.key;if(X!=null)for(oe in X.key!==void 0&&(ie=""+X.key),X)!le.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(I[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)I.children=F;else if(1<oe){for(var Se=Array(oe),rt=0;rt<oe;rt++)Se[rt]=arguments[rt+2];I.children=Se}return he(T.type,ie,I)},ue.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},ue.createElement=function(T,X,F){var I,ie={},oe=null;if(X!=null)for(I in X.key!==void 0&&(oe=""+X.key),X)le.call(X,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ie[I]=X[I]);var Se=arguments.length-2;if(Se===1)ie.children=F;else if(1<Se){for(var rt=Array(Se),Qe=0;Qe<Se;Qe++)rt[Qe]=arguments[Qe+2];ie.children=rt}if(T&&T.defaultProps)for(I in Se=T.defaultProps,Se)ie[I]===void 0&&(ie[I]=Se[I]);return he(T,oe,ie)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(T){return{$$typeof:g,render:T}},ue.isValidElement=Je,ue.lazy=function(T){return{$$typeof:N,_payload:{_status:-1,_result:T},_init:ne}},ue.memo=function(T,X){return{$$typeof:v,type:T,compare:X===void 0?null:X}},ue.startTransition=function(T){var X=k.T,F={};k.T=F;try{var I=T(),ie=k.S;ie!==null&&ie(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(V,Ce)}catch(oe){Ce(oe)}finally{X!==null&&F.types!==null&&(X.types=F.types),k.T=X}},ue.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ue.use=function(T){return k.H.use(T)},ue.useActionState=function(T,X,F){return k.H.useActionState(T,X,F)},ue.useCallback=function(T,X){return k.H.useCallback(T,X)},ue.useContext=function(T){return k.H.useContext(T)},ue.useDebugValue=function(){},ue.useDeferredValue=function(T,X){return k.H.useDeferredValue(T,X)},ue.useEffect=function(T,X){return k.H.useEffect(T,X)},ue.useEffectEvent=function(T){return k.H.useEffectEvent(T)},ue.useId=function(){return k.H.useId()},ue.useImperativeHandle=function(T,X,F){return k.H.useImperativeHandle(T,X,F)},ue.useInsertionEffect=function(T,X){return k.H.useInsertionEffect(T,X)},ue.useLayoutEffect=function(T,X){return k.H.useLayoutEffect(T,X)},ue.useMemo=function(T,X){return k.H.useMemo(T,X)},ue.useOptimistic=function(T,X){return k.H.useOptimistic(T,X)},ue.useReducer=function(T,X,F){return k.H.useReducer(T,X,F)},ue.useRef=function(T){return k.H.useRef(T)},ue.useState=function(T){return k.H.useState(T)},ue.useSyncExternalStore=function(T,X,F){return k.H.useSyncExternalStore(T,X,F)},ue.useTransition=function(){return k.H.useTransition()},ue.version="19.2.4",ue}var ly;function Ho(){return ly||(ly=1,io.exports=lg()),io.exports}var E=Ho(),so={exports:{}},Fu={},ro={exports:{}},co={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var I0=Object.defineProperty;var Im=u=>{throw TypeError(u)};var P0=(u,i,r)=>i in
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var ay;function ag(){return ay||(ay=1,(function(u){function i(q,J){var ne=q.length;q.push(J);e:for(;0<ne;){var Ce=ne-1>>>1,ze=q[Ce];if(0<d(ze,J))q[Ce]=J,q[ne]=ze,ne=Ce;else break e}}function r(q){return q.length===0?null:q[0]}function c(q){if(q.length===0)return null;var J=q[0],ne=q.pop();if(ne!==J){q[0]=ne;e:for(var Ce=0,ze=q.length,T=ze>>>1;Ce<T;){var X=2*(Ce+1)-1,F=q[X],I=X+1,ie=q[I];if(0>d(F,ne))I<ze&&0>d(ie,F)?(q[Ce]=ie,q[I]=ne,Ce=I):(q[Ce]=F,q[X]=ne,Ce=X);else if(I<ze&&0>d(ie,ne))q[Ce]=ie,q[I]=ne,Ce=I;else break e}}return J}function d(q,J){var ne=q.sortIndex-J.sortIndex;return ne!==0?ne:q.id-J.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var y=Date,g=y.now();u.unstable_now=function(){return y.now()-g}}var x=[],v=[],N=1,p=null,M=3,U=!1,K=!1,O=!1,H=!1,D=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Z(q){for(var J=r(v);J!==null;){if(J.callback===null)c(v);else if(J.startTime<=q)c(v),J.sortIndex=J.expirationTime,i(x,J);else break;J=r(v)}}function G(q){if(O=!1,Z(q),!K)if(r(x)!==null)K=!0,V||(V=!0,ke());else{var J=r(v);J!==null&&ut(G,J.startTime-q)}}var V=!1,k=-1,le=5,he=-1;function Te(){return H?!0:!(u.unstable_now()-he<le)}function Je(){if(H=!1,V){var q=u.unstable_now();he=q;var J=!0;try{e:{K=!1,O&&(O=!1,Y(k),k=-1),U=!0;var ne=M;try{t:{for(Z(q),p=r(x);p!==null&&!(p.expirationTime>q&&Te());){var Ce=p.callback;if(typeof Ce=="function"){p.callback=null,M=p.priorityLevel;var ze=Ce(p.expirationTime<=q);if(q=u.unstable_now(),typeof ze=="function"){p.callback=ze,Z(q),J=!0;break t}p===r(x)&&c(x),Z(q)}else c(x);p=r(x)}if(p!==null)J=!0;else{var T=r(v);T!==null&&ut(G,T.startTime-q),J=!1}}break e}finally{p=null,M=ne,U=!1}J=void 0}}finally{J?ke():V=!1}}}var ke;if(typeof B=="function")ke=function(){B(Je)};else if(typeof MessageChannel<"u"){var tl=new MessageChannel,dt=tl.port2;tl.port1.onmessage=Je,ke=function(){dt.postMessage(null)}}else ke=function(){D(Je,0)};function ut(q,J){k=D(function(){q(u.unstable_now())},J)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(q){q.callback=null},u.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<q?Math.floor(1e3/q):5},u.unstable_getCurrentPriorityLevel=function(){return M},u.unstable_next=function(q){switch(M){case 1:case 2:case 3:var J=3;break;default:J=M}var ne=M;M=J;try{return q()}finally{M=ne}},u.unstable_requestPaint=function(){H=!0},u.unstable_runWithPriority=function(q,J){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=M;M=q;try{return J()}finally{M=ne}},u.unstable_scheduleCallback=function(q,J,ne){var Ce=u.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ce+ne:Ce):ne=Ce,q){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ne+ze,q={id:N++,callback:J,priorityLevel:q,startTime:ne,expirationTime:ze,sortIndex:-1},ne>Ce?(q.sortIndex=ne,i(v,q),r(x)===null&&q===r(v)&&(O?(Y(k),k=-1):O=!0,ut(G,ne-Ce))):(q.sortIndex=ze,i(x,q),K||U||(K=!0,V||(V=!0,ke()))),q},u.unstable_shouldYield=Te,u.unstable_wrapCallback=function(q){var J=M;return function(){var ne=M;M=J;try{return q.apply(this,arguments)}finally{M=ne}}}})(co)),co}var ny;function ng(){return ny||(ny=1,ro.exports=ag()),ro.exports}var oo={exports:{}},it={};/**
25
+ */var ay;function ag(){return ay||(ay=1,(function(u){function i(q,J){var ne=q.length;q.push(J);e:for(;0<ne;){var Ce=ne-1>>>1,ze=q[Ce];if(0<d(ze,J))q[Ce]=J,q[ne]=ze,ne=Ce;else break e}}function r(q){return q.length===0?null:q[0]}function c(q){if(q.length===0)return null;var J=q[0],ne=q.pop();if(ne!==J){q[0]=ne;e:for(var Ce=0,ze=q.length,T=ze>>>1;Ce<T;){var X=2*(Ce+1)-1,F=q[X],I=X+1,ie=q[I];if(0>d(F,ne))I<ze&&0>d(ie,F)?(q[Ce]=ie,q[I]=ne,Ce=I):(q[Ce]=F,q[X]=ne,Ce=X);else if(I<ze&&0>d(ie,ne))q[Ce]=ie,q[I]=ne,Ce=I;else break e}}return J}function d(q,J){var ne=q.sortIndex-J.sortIndex;return ne!==0?ne:q.id-J.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var y=Date,g=y.now();u.unstable_now=function(){return y.now()-g}}var b=[],v=[],N=1,p=null,M=3,U=!1,K=!1,O=!1,H=!1,D=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Z(q){for(var J=r(v);J!==null;){if(J.callback===null)c(v);else if(J.startTime<=q)c(v),J.sortIndex=J.expirationTime,i(b,J);else break;J=r(v)}}function G(q){if(O=!1,Z(q),!K)if(r(b)!==null)K=!0,V||(V=!0,ke());else{var J=r(v);J!==null&&ut(G,J.startTime-q)}}var V=!1,k=-1,le=5,he=-1;function Te(){return H?!0:!(u.unstable_now()-he<le)}function Je(){if(H=!1,V){var q=u.unstable_now();he=q;var J=!0;try{e:{K=!1,O&&(O=!1,Y(k),k=-1),U=!0;var ne=M;try{t:{for(Z(q),p=r(b);p!==null&&!(p.expirationTime>q&&Te());){var Ce=p.callback;if(typeof Ce=="function"){p.callback=null,M=p.priorityLevel;var ze=Ce(p.expirationTime<=q);if(q=u.unstable_now(),typeof ze=="function"){p.callback=ze,Z(q),J=!0;break t}p===r(b)&&c(b),Z(q)}else c(b);p=r(b)}if(p!==null)J=!0;else{var T=r(v);T!==null&&ut(G,T.startTime-q),J=!1}}break e}finally{p=null,M=ne,U=!1}J=void 0}}finally{J?ke():V=!1}}}var ke;if(typeof B=="function")ke=function(){B(Je)};else if(typeof MessageChannel<"u"){var tl=new MessageChannel,dt=tl.port2;tl.port1.onmessage=Je,ke=function(){dt.postMessage(null)}}else ke=function(){D(Je,0)};function ut(q,J){k=D(function(){q(u.unstable_now())},J)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(q){q.callback=null},u.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<q?Math.floor(1e3/q):5},u.unstable_getCurrentPriorityLevel=function(){return M},u.unstable_next=function(q){switch(M){case 1:case 2:case 3:var J=3;break;default:J=M}var ne=M;M=J;try{return q()}finally{M=ne}},u.unstable_requestPaint=function(){H=!0},u.unstable_runWithPriority=function(q,J){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ne=M;M=q;try{return J()}finally{M=ne}},u.unstable_scheduleCallback=function(q,J,ne){var Ce=u.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ce+ne:Ce):ne=Ce,q){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ne+ze,q={id:N++,callback:J,priorityLevel:q,startTime:ne,expirationTime:ze,sortIndex:-1},ne>Ce?(q.sortIndex=ne,i(v,q),r(b)===null&&q===r(v)&&(O?(Y(k),k=-1):O=!0,ut(G,ne-Ce))):(q.sortIndex=ze,i(b,q),K||U||(K=!0,V||(V=!0,ke()))),q},u.unstable_shouldYield=Te,u.unstable_wrapCallback=function(q){var J=M;return function(){var ne=M;M=J;try{return q.apply(this,arguments)}finally{M=ne}}}})(co)),co}var ny;function ng(){return ny||(ny=1,ro.exports=ag()),ro.exports}var oo={exports:{}},it={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var I0=Object.defineProperty;var Im=u=>{throw TypeError(u)};var P0=(u,i,r)=>i in
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var uy;function ug(){if(uy)return it;uy=1;var u=Ho();function i(x){var v="https://react.dev/errors/"+x;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)v+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+x+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(x,v,N){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:p==null?null:""+p,children:x,containerInfo:v,implementation:N}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,v){if(x==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,it.createPortal=function(x,v){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return m(x,v,null,N)},it.flushSync=function(x){var v=y.T,N=c.p;try{if(y.T=null,c.p=2,x)return x()}finally{y.T=v,c.p=N,c.d.f()}},it.preconnect=function(x,v){typeof x=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(x,v))},it.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},it.preinit=function(x,v){if(typeof x=="string"&&v&&typeof v.as=="string"){var N=v.as,p=g(N,v.crossOrigin),M=typeof v.integrity=="string"?v.integrity:void 0,U=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;N==="style"?c.d.S(x,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:p,integrity:M,fetchPriority:U}):N==="script"&&c.d.X(x,{crossOrigin:p,integrity:M,fetchPriority:U,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},it.preinitModule=function(x,v){if(typeof x=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var N=g(v.as,v.crossOrigin);c.d.M(x,{crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(x)},it.preload=function(x,v){if(typeof x=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var N=v.as,p=g(N,v.crossOrigin);c.d.L(x,N,{crossOrigin:p,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},it.preloadModule=function(x,v){if(typeof x=="string")if(v){var N=g(v.as,v.crossOrigin);c.d.m(x,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(x)},it.requestFormReset=function(x){c.d.r(x)},it.unstable_batchedUpdates=function(x,v){return x(v)},it.useFormState=function(x,v,N){return y.H.useFormState(x,v,N)},it.useFormStatus=function(){return y.H.useHostTransitionStatus()},it.version="19.2.4",it}var iy;function ig(){if(iy)return oo.exports;iy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),oo.exports=ug(),oo.exports}/**
33
+ */var uy;function ug(){if(uy)return it;uy=1;var u=Ho();function i(b){var v="https://react.dev/errors/"+b;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)v+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+b+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,v,N){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:p==null?null:""+p,children:b,containerInfo:v,implementation:N}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(b,v){if(b==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,it.createPortal=function(b,v){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return m(b,v,null,N)},it.flushSync=function(b){var v=y.T,N=c.p;try{if(y.T=null,c.p=2,b)return b()}finally{y.T=v,c.p=N,c.d.f()}},it.preconnect=function(b,v){typeof b=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(b,v))},it.prefetchDNS=function(b){typeof b=="string"&&c.d.D(b)},it.preinit=function(b,v){if(typeof b=="string"&&v&&typeof v.as=="string"){var N=v.as,p=g(N,v.crossOrigin),M=typeof v.integrity=="string"?v.integrity:void 0,U=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;N==="style"?c.d.S(b,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:p,integrity:M,fetchPriority:U}):N==="script"&&c.d.X(b,{crossOrigin:p,integrity:M,fetchPriority:U,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},it.preinitModule=function(b,v){if(typeof b=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var N=g(v.as,v.crossOrigin);c.d.M(b,{crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(b)},it.preload=function(b,v){if(typeof b=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var N=v.as,p=g(N,v.crossOrigin);c.d.L(b,N,{crossOrigin:p,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},it.preloadModule=function(b,v){if(typeof b=="string")if(v){var N=g(v.as,v.crossOrigin);c.d.m(b,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(b)},it.requestFormReset=function(b){c.d.r(b)},it.unstable_batchedUpdates=function(b,v){return b(v)},it.useFormState=function(b,v,N){return y.H.useFormState(b,v,N)},it.useFormStatus=function(){return y.H.useHostTransitionStatus()},it.version="19.2.4",it}var iy;function ig(){if(iy)return oo.exports;iy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),oo.exports=ug(),oo.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@ var I0=Object.defineProperty;var Im=u=>{throw TypeError(u)};var P0=(u,i,r)=>i in
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var sy;function sg(){if(sy)return Fu;sy=1;var u=ng(),i=Ho(),r=ig();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(m(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return x(n),e;if(s===a)return x(n),t;s=s.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=s;else{for(var o=!1,h=n.child;h;){if(h===l){o=!0,l=n,a=s;break}if(h===a){o=!0,a=n,l=s;break}h=h.sibling}if(!o){for(h=s.child;h;){if(h===l){o=!0,l=s,a=n;break}if(h===a){o=!0,a=s,l=n;break}h=h.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,M=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var tl=Symbol.for("react.client.reference");function dt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case D:return"Profiler";case H:return"StrictMode";case G:return"Suspense";case V:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case B:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:dt(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return dt(e(t))}catch{}}return null}var ut=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ce=[],ze=-1;function T(e){return{current:e}}function X(e){0>ze||(e.current=Ce[ze],Ce[ze]=null,ze--)}function F(e,t){ze++,Ce[ze]=e.current,e.current=t}var I=T(null),ie=T(null),oe=T(null),Se=T(null);function rt(e,t){switch(F(oe,t),F(ie,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sm(t),e=Em(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(I),F(I,e)}function Qe(){X(I),X(ie),X(oe)}function eu(e){e.memoizedState!==null&&F(Se,e);var t=I.current,l=Em(t,e.type);t!==l&&(F(ie,e),F(I,l))}function si(e){ie.current===e&&(X(I),X(ie)),Se.current===e&&(X(Se),Xu._currentValue=ne)}var Ls,$o;function Ea(e){if(Ls===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ls=t&&t[1]||"",$o=-1<l.stack.indexOf(`
41
+ */var sy;function sg(){if(sy)return Fu;sy=1;var u=ng(),i=Ho(),r=ig();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return b(n),e;if(s===a)return b(n),t;s=s.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=s;else{for(var o=!1,h=n.child;h;){if(h===l){o=!0,l=n,a=s;break}if(h===a){o=!0,a=n,l=s;break}h=h.sibling}if(!o){for(h=s.child;h;){if(h===l){o=!0,l=s,a=n;break}if(h===a){o=!0,a=s,l=n;break}h=h.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,M=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var tl=Symbol.for("react.client.reference");function dt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case D:return"Profiler";case H:return"StrictMode";case G:return"Suspense";case V:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case B:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:dt(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return dt(e(t))}catch{}}return null}var ut=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ce=[],ze=-1;function T(e){return{current:e}}function X(e){0>ze||(e.current=Ce[ze],Ce[ze]=null,ze--)}function F(e,t){ze++,Ce[ze]=e.current,e.current=t}var I=T(null),ie=T(null),oe=T(null),Se=T(null);function rt(e,t){switch(F(oe,t),F(ie,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sm(t),e=Em(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(I),F(I,e)}function Qe(){X(I),X(ie),X(oe)}function eu(e){e.memoizedState!==null&&F(Se,e);var t=I.current,l=Em(t,e.type);t!==l&&(F(ie,e),F(I,l))}function si(e){ie.current===e&&(X(I),X(ie)),Se.current===e&&(X(Se),Xu._currentValue=ne)}var Ls,$o;function Ea(e){if(Ls===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ls=t&&t[1]||"",$o=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ls+e+$o}var Ys=!1;function Gs(e,t){if(!e||Ys)return"";Ys=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(_){var z=_}Reflect.construct(e,[],L)}else{try{L.call()}catch(_){z=_}e.call(L.prototype)}}else{try{throw Error()}catch(_){z=_}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(_){if(_&&z&&typeof _.stack=="string")return[_.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),o=s[0],h=s[1];if(o&&h){var b=o.split(`
43
+ `+Ls+e+$o}var Ys=!1;function Gs(e,t){if(!e||Ys)return"";Ys=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(_){var z=_}Reflect.construct(e,[],L)}else{try{L.call()}catch(_){z=_}e.call(L.prototype)}}else{try{throw Error()}catch(_){z=_}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(_){if(_&&z&&typeof _.stack=="string")return[_.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),o=s[0],h=s[1];if(o&&h){var x=o.split(`
44
44
  `),A=h.split(`
45
- `);for(n=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===b.length||n===A.length)for(a=b.length-1,n=A.length-1;1<=a&&0<=n&&b[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(b[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||b[a]!==A[n]){var w=`
46
- `+b[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{Ys=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ea(l):""}function Av(e,t){switch(e.tag){case 26:case 27:case 5:return Ea(e.type);case 16:return Ea("Lazy");case 13:return e.child!==t&&t!==null?Ea("Suspense Fallback"):Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 15:return Gs(e.type,!1);case 11:return Gs(e.type.render,!1);case 1:return Gs(e.type,!0);case 31:return Ea("Activity");default:return""}}function Wo(e){try{var t="",l=null;do t+=Av(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
45
+ `);for(n=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(a===x.length||n===A.length)for(a=x.length-1,n=A.length-1;1<=a&&0<=n&&x[a]!==A[n];)n--;for(;1<=a&&0<=n;a--,n--)if(x[a]!==A[n]){if(a!==1||n!==1)do if(a--,n--,0>n||x[a]!==A[n]){var w=`
46
+ `+x[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{Ys=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ea(l):""}function Av(e,t){switch(e.tag){case 26:case 27:case 5:return Ea(e.type);case 16:return Ea("Lazy");case 13:return e.child!==t&&t!==null?Ea("Suspense Fallback"):Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 15:return Gs(e.type,!1);case 11:return Gs(e.type.render,!1);case 1:return Gs(e.type,!0);case 31:return Ea("Activity");default:return""}}function Wo(e){try{var t="",l=null;do t+=Av(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
47
  Error generating stack: `+a.message+`
48
- `+a.stack}}var Xs=Object.prototype.hasOwnProperty,Zs=u.unstable_scheduleCallback,Ks=u.unstable_cancelCallback,zv=u.unstable_shouldYield,Mv=u.unstable_requestPaint,Nt=u.unstable_now,_v=u.unstable_getCurrentPriorityLevel,Io=u.unstable_ImmediatePriority,Po=u.unstable_UserBlockingPriority,ri=u.unstable_NormalPriority,Dv=u.unstable_LowPriority,ef=u.unstable_IdlePriority,Uv=u.log,wv=u.unstable_setDisableYieldValue,tu=null,Tt=null;function Bl(e){if(typeof Uv=="function"&&wv(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(tu,e)}catch{}}var Ct=Math.clz32?Math.clz32:Bv,Hv=Math.log,qv=Math.LN2;function Bv(e){return e>>>=0,e===0?32:31-(Hv(e)/qv|0)|0}var ci=256,oi=262144,fi=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function di(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?n=ja(a):(o&=h,o!==0?n=ja(o):l||(l=h&~e,l!==0&&(n=ja(l))))):(h=a&~s,h!==0?n=ja(h):o!==0?n=ja(o):l||(l=a&~e,l!==0&&(n=ja(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function lu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tf(){var e=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),e}function Vs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function au(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lv(e,t,l,a,n,s){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,b=e.expirationTimes,A=e.hiddenUpdates;for(l=o&~l;0<l;){var w=31-Ct(l),L=1<<w;h[w]=0,b[w]=-1;var z=A[w];if(z!==null)for(A[w]=null,w=0;w<z.length;w++){var _=z[w];_!==null&&(_.lane&=-536870913)}l&=~L}a!==0&&lf(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function lf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function af(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function nf(e,t){var l=t&-t;return l=(l&42)!==0?1:Js(l),(l&(e.suspendedLanes|t))!==0?0:l}function Js(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 ks(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function uf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Km(e.type))}function sf(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Ql=Math.random().toString(36).slice(2),et="__reactFiber$"+Ql,ht="__reactProps$"+Ql,Pa="__reactContainer$"+Ql,Fs="__reactEvents$"+Ql,Yv="__reactListeners$"+Ql,Gv="__reactHandles$"+Ql,rf="__reactResources$"+Ql,nu="__reactMarker$"+Ql;function $s(e){delete e[et],delete e[ht],delete e[Fs],delete e[Yv],delete e[Gv]}function en(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pa]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Am(e);e!==null;){if(l=e[et])return l;e=Am(e)}return t}e=l,l=e.parentNode}return null}function tn(e){if(e=e[et]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function uu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ln(e){var t=e[rf];return t||(t=e[rf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[nu]=!0}var cf=new Set,of={};function Na(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){for(of[e]=t,e=0;e<t.length;e++)cf.add(t[e])}var Xv=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]*$"),ff={},df={};function Zv(e){return Xs.call(df,e)?!0:Xs.call(ff,e)?!1:Xv.test(e)?df[e]=!0:(ff[e]=!0,!1)}function hi(e,t,l){if(Zv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function mi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kv(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){if(!e._valueTracker){var t=hf(e)?"checked":"value";e._valueTracker=Kv(e,t,""+e[t])}}function mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Vv=/[\n"\\]/g;function Ht(e){return e.replace(Vv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Is(e,t,l,a,n,s,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Ps(e,o,wt(t)):l!=null?Ps(e,o,wt(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+wt(h):e.removeAttribute("name")}function yf(e,t,l,a,n,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ws(e);return}l=l!=null?""+wt(l):"",t=t!=null?""+wt(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ws(e)}function Ps(e,t,l){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function nn(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+wt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function vf(e,t,l){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+wt(l):""}function pf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(ut(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=wt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ws(e)}function un(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Jv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Jv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function bf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&gf(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&gf(e,s,t[s])}function er(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kv=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"]]),Fv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vi(e){return Fv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dl(){}var tr=null;function lr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,rn=null;function xf(e){var t=tn(e);if(t&&(e=t.stateNode)){var l=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Is(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ht]||null;if(!n)throw Error(c(90));Is(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&mf(a)}break e;case"textarea":vf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&nn(e,!!l.multiple,t,!1)}}}var ar=!1;function Sf(e,t,l){if(ar)return e(t,l);ar=!0;try{var a=e(t);return a}finally{if(ar=!1,(sn!==null||rn!==null)&&(as(),sn&&(t=sn,e=rn,rn=sn=null,xf(t),e)))for(t=0;t<e.length;t++)xf(e[t])}}function iu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ht]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nr=!1;if(hl)try{var su={};Object.defineProperty(su,"passive",{get:function(){nr=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{nr=!1}var Ll=null,ur=null,pi=null;function Ef(){if(pi)return pi;var e,t=ur,l=t.length,a,n="value"in Ll?Ll.value:Ll.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[s-a];a++);return pi=n.slice(e,1<a?1-a:void 0)}function gi(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 bi(){return!0}function jf(){return!1}function mt(e){function t(l,a,n,s,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?bi:jf,this.isPropagationStopped=jf,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=mt(Ta),ru=p({},Ta,{view:0,detail:0}),$v=mt(ru),ir,sr,cu,Si=p({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cr,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!==cu&&(cu&&e.type==="mousemove"?(ir=e.screenX-cu.screenX,sr=e.screenY-cu.screenY):sr=ir=0,cu=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),Nf=mt(Si),Wv=p({},Si,{dataTransfer:0}),Iv=mt(Wv),Pv=p({},ru,{relatedTarget:0}),rr=mt(Pv),ep=p({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),tp=mt(ep),lp=p({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ap=mt(lp),np=p({},Ta,{data:0}),Tf=mt(np),up={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ip={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"},sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sp[e])?!!t[e]:!1}function cr(){return rp}var cp=p({},ru,{key:function(e){if(e.key){var t=up[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ip[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cr,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),op=mt(cp),fp=p({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=mt(fp),dp=p({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cr}),hp=mt(dp),mp=p({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),yp=mt(mp),vp=p({},Si,{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}),pp=mt(vp),gp=p({},Ta,{newState:0,oldState:0}),bp=mt(gp),xp=[9,13,27,32],or=hl&&"CompositionEvent"in window,ou=null;hl&&"documentMode"in document&&(ou=document.documentMode);var Sp=hl&&"TextEvent"in window&&!ou,Of=hl&&(!or||ou&&8<ou&&11>=ou),Rf=" ",Af=!1;function zf(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function Ep(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(Af=!0,Rf);case"textInput":return e=t.data,e===Rf&&Af?null:e;default:return null}}function jp(e,t){if(cn)return e==="compositionend"||!or&&zf(e,t)?(e=Ef(),pi=ur=Ll=null,cn=!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 Of&&t.locale!=="ko"?null:t.data;default:return null}}var Np={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Np[e.type]:t==="textarea"}function Df(e,t,l,a){sn?rn?rn.push(a):rn=[a]:sn=a,t=os(t,"onChange"),0<t.length&&(l=new xi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var fu=null,du=null;function Tp(e){ym(e,0)}function Ei(e){var t=uu(e);if(mf(t))return e}function Uf(e,t){if(e==="change")return t}var wf=!1;if(hl){var fr;if(hl){var dr="oninput"in document;if(!dr){var Hf=document.createElement("div");Hf.setAttribute("oninput","return;"),dr=typeof Hf.oninput=="function"}fr=dr}else fr=!1;wf=fr&&(!document.documentMode||9<document.documentMode)}function qf(){fu&&(fu.detachEvent("onpropertychange",Bf),du=fu=null)}function Bf(e){if(e.propertyName==="value"&&Ei(du)){var t=[];Df(t,du,e,lr(e)),Sf(Tp,t)}}function Cp(e,t,l){e==="focusin"?(qf(),fu=t,du=l,fu.attachEvent("onpropertychange",Bf)):e==="focusout"&&qf()}function Op(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(du)}function Rp(e,t){if(e==="click")return Ei(t)}function Ap(e,t){if(e==="input"||e==="change")return Ei(t)}function zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:zp;function hu(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Xs.call(t,n)||!Ot(e[n],t[n]))return!1}return!0}function Qf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var l=Qf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Qf(l)}}function Yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=yi(e.document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mp=hl&&"documentMode"in document&&11>=document.documentMode,on=null,mr=null,mu=null,yr=!1;function Xf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;yr||on==null||on!==yi(a)||(a=on,"selectionStart"in a&&hr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mu&&hu(mu,a)||(mu=a,a=os(mr,"onSelect"),0<a.length&&(t=new xi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=on)))}function Ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},vr={},Zf={};hl&&(Zf=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Oa(e){if(vr[e])return vr[e];if(!fn[e])return e;var t=fn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zf)return vr[e]=t[l];return e}var Kf=Oa("animationend"),Vf=Oa("animationiteration"),Jf=Oa("animationstart"),_p=Oa("transitionrun"),Dp=Oa("transitionstart"),Up=Oa("transitioncancel"),kf=Oa("transitionend"),Ff=new Map,pr="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(" ");pr.push("scrollEnd");function kt(e,t){Ff.set(e,t),Na(t,[e])}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],dn=0,gr=0;function Ni(){for(var e=dn,t=gr=dn=0;t<e;){var l=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var n=qt[t];qt[t++]=null;var s=qt[t];if(qt[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}s!==0&&$f(l,n,s)}}function Ti(e,t,l,a){qt[dn++]=e,qt[dn++]=t,qt[dn++]=l,qt[dn++]=a,gr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function br(e,t,l,a){return Ti(e,t,l,a),Ci(e)}function Ra(e,t){return Ti(e,null,null,t),Ci(e)}function $f(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Ct(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function Ci(e){if(50<Hu)throw Hu=0,Rc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hn={};function wp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,l,a){return new wp(e,t,l,a)}function xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Rt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Wf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,l,a,n,s){var o=0;if(a=e,typeof e=="function")xr(e)&&(o=1);else if(typeof e=="string")o=L0(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Rt(31,l,t,n),e.elementType=he,e.lanes=s,e;case O:return Aa(l.children,n,s,t);case H:o=8,n|=24;break;case D:return e=Rt(12,l,t,n|2),e.elementType=D,e.lanes=s,e;case G:return e=Rt(13,l,t,n),e.elementType=G,e.lanes=s,e;case V:return e=Rt(19,l,t,n),e.elementType=V,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:o=10;break e;case Y:o=9;break e;case Z:o=11;break e;case k:o=14;break e;case le:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Rt(o,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function Aa(e,t,l,a){return e=Rt(7,e,a,t),e.lanes=l,e}function Sr(e,t,l){return e=Rt(6,e,null,t),e.lanes=l,e}function If(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function Er(e,t,l){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pf=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var l=Pf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Wo(t)},Pf.set(e,t),t)}return{value:e,source:t,stack:Wo(t)}}var mn=[],yn=0,Ri=null,yu=0,Qt=[],Lt=0,Yl=null,ll=1,al="";function yl(e,t){mn[yn++]=yu,mn[yn++]=Ri,Ri=e,yu=t}function ed(e,t,l){Qt[Lt++]=ll,Qt[Lt++]=al,Qt[Lt++]=Yl,Yl=e;var a=ll;e=al;var n=32-Ct(a)-1;a&=~(1<<n),l+=1;var s=32-Ct(t)+n;if(30<s){var o=n-n%5;s=(a&(1<<o)-1).toString(32),a>>=o,n-=o,ll=1<<32-Ct(t)+n|l<<n|a,al=s+e}else ll=1<<s|l<<n|a,al=e}function jr(e){e.return!==null&&(yl(e,1),ed(e,1,0))}function Nr(e){for(;e===Ri;)Ri=mn[--yn],mn[yn]=null,yu=mn[--yn],mn[yn]=null;for(;e===Yl;)Yl=Qt[--Lt],Qt[Lt]=null,al=Qt[--Lt],Qt[Lt]=null,ll=Qt[--Lt],Qt[Lt]=null}function td(e,t){Qt[Lt++]=ll,Qt[Lt++]=al,Qt[Lt++]=Yl,ll=t.id,al=t.overflow,Yl=e}var tt=null,_e=null,ve=!1,Gl=null,Yt=!1,Tr=Error(c(519));function Xl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vu(Bt(t,e)),Tr}function ld(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[ht]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Bu.length;l++)de(Bu[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),yf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),pf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||bm(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=dl),t=!0):t=!1,t||Xl(e,!0)}function ad(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:tt=tt.return}}function vn(e){if(e!==tt)return!1;if(!ve)return ad(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Xc(e.type,e.memoizedProps)),l=!l),l&&_e&&Xl(e),ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Rm(e)}else t===27?(t=_e,aa(e.type)?(e=kc,kc=null,_e=e):_e=t):_e=tt?Xt(e.stateNode.nextSibling):null;return!0}function za(){_e=tt=null,ve=!1}function Cr(){var e=Gl;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Gl=null),e}function vu(e){Gl===null?Gl=[e]:Gl.push(e)}var Or=T(null),Ma=null,vl=null;function Zl(e,t,l){F(Or,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=Or.current,X(Or)}function Rr(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ar(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var o=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var b=0;b<t.length;b++)if(h.context===t[b]){s.lanes|=l,h=s.alternate,h!==null&&(h.lanes|=l),Rr(s.return,l,e),a||(o=null);break e}s=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=l,s=o.alternate,s!==null&&(s.lanes|=l),Rr(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function pn(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;Ot(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Xu):e=[Xu])}n=n.return}e!==null&&Ar(t,e,l,a),t.flags|=262144}function Ai(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){Ma=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return nd(Ma,e)}function zi(e,t){return Ma===null&&_a(e),nd(e,t)}function nd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vl===null){if(e===null)throw Error(c(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return l}var Hp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},qp=u.unstable_scheduleCallback,Bp=u.unstable_NormalPriority,Ge={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zr(){return{controller:new Hp,data:new Map,refCount:0}}function pu(e){e.refCount--,e.refCount===0&&qp(Bp,function(){e.controller.abort()})}var gu=null,Mr=0,gn=0,bn=null;function Qp(e,t){if(gu===null){var l=gu=[];Mr=0,gn=Uc(),bn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Mr++,t.then(ud,ud),t}function ud(){if(--Mr===0&&gu!==null){bn!==null&&(bn.status="fulfilled");var e=gu;gu=null,gn=0,bn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var id=q.S;q.S=function(e,t){Xh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qp(e,t),id!==null&&id(e,t)};var Da=T(null);function _r(){var e=Da.current;return e!==null?e:Me.pooledCache}function Mi(e,t){t===null?F(Da,Da.current):F(Da,t.pool)}function sd(){var e=_r();return e===null?null:{parent:Ge._currentValue,pool:e}}var xn=Error(c(460)),Dr=Error(c(474)),_i=Error(c(542)),Di={then:function(){}};function rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function cd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dl,dl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e;default:if(typeof t.status=="string")t.then(dl,dl);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e}throw wa=t,xn}}function Ua(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,xn):l}}var wa=null;function od(){if(wa===null)throw Error(c(459));var e=wa;return wa=null,e}function fd(e){if(e===xn||e===_i)throw Error(c(483))}var Sn=null,bu=0;function Ui(e){var t=bu;return bu+=1,Sn===null&&(Sn=[]),cd(Sn,e,t)}function xu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===M?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function dd(e){function t(C,j){if(e){var R=C.deletions;R===null?(C.deletions=[j],C.flags|=16):R.push(j)}}function l(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function a(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function n(C,j){return C=ml(C,j),C.index=0,C.sibling=null,C}function s(C,j,R){return C.index=R,e?(R=C.alternate,R!==null?(R=R.index,R<j?(C.flags|=67108866,j):R):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function o(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function h(C,j,R,Q){return j===null||j.tag!==6?(j=Sr(R,C.mode,Q),j.return=C,j):(j=n(j,R),j.return=C,j)}function b(C,j,R,Q){var te=R.type;return te===O?w(C,j,R.props.children,Q,R.key):j!==null&&(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Ua(te)===j.type)?(j=n(j,R.props),xu(j,R),j.return=C,j):(j=Oi(R.type,R.key,R.props,null,C.mode,Q),xu(j,R),j.return=C,j)}function A(C,j,R,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==R.containerInfo||j.stateNode.implementation!==R.implementation?(j=Er(R,C.mode,Q),j.return=C,j):(j=n(j,R.children||[]),j.return=C,j)}function w(C,j,R,Q,te){return j===null||j.tag!==7?(j=Aa(R,C.mode,Q,te),j.return=C,j):(j=n(j,R),j.return=C,j)}function L(C,j,R){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Sr(""+j,C.mode,R),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return R=Oi(j.type,j.key,j.props,null,C.mode,R),xu(R,j),R.return=C,R;case K:return j=Er(j,C.mode,R),j.return=C,j;case le:return j=Ua(j),L(C,j,R)}if(ut(j)||ke(j))return j=Aa(j,C.mode,R,null),j.return=C,j;if(typeof j.then=="function")return L(C,Ui(j),R);if(j.$$typeof===B)return L(C,zi(C,j),R);wi(C,j)}return null}function z(C,j,R,Q){var te=j!==null?j.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return te!==null?null:h(C,j,""+R,Q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case U:return R.key===te?b(C,j,R,Q):null;case K:return R.key===te?A(C,j,R,Q):null;case le:return R=Ua(R),z(C,j,R,Q)}if(ut(R)||ke(R))return te!==null?null:w(C,j,R,Q,null);if(typeof R.then=="function")return z(C,j,Ui(R),Q);if(R.$$typeof===B)return z(C,j,zi(C,R),Q);wi(C,R)}return null}function _(C,j,R,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(R)||null,h(j,C,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case U:return C=C.get(Q.key===null?R:Q.key)||null,b(j,C,Q,te);case K:return C=C.get(Q.key===null?R:Q.key)||null,A(j,C,Q,te);case le:return Q=Ua(Q),_(C,j,R,Q,te)}if(ut(Q)||ke(Q))return C=C.get(R)||null,w(j,C,Q,te,null);if(typeof Q.then=="function")return _(C,j,R,Ui(Q),te);if(Q.$$typeof===B)return _(C,j,R,zi(j,Q),te);wi(j,Q)}return null}function W(C,j,R,Q){for(var te=null,ge=null,P=j,re=j=0,ye=null;P!==null&&re<R.length;re++){P.index>re?(ye=P,P=null):ye=P.sibling;var be=z(C,P,R[re],Q);if(be===null){P===null&&(P=ye);break}e&&P&&be.alternate===null&&t(C,P),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be,P=ye}if(re===R.length)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;re<R.length;re++)P=L(C,R[re],Q),P!==null&&(j=s(P,j,re),ge===null?te=P:ge.sibling=P,ge=P);return ve&&yl(C,re),te}for(P=a(P);re<R.length;re++)ye=_(P,C,re,R[re],Q),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?re:ye.key),j=s(ye,j,re),ge===null?te=ye:ge.sibling=ye,ge=ye);return e&&P.forEach(function(ra){return t(C,ra)}),ve&&yl(C,re),te}function ae(C,j,R,Q){if(R==null)throw Error(c(151));for(var te=null,ge=null,P=j,re=j=0,ye=null,be=R.next();P!==null&&!be.done;re++,be=R.next()){P.index>re?(ye=P,P=null):ye=P.sibling;var ra=z(C,P,be.value,Q);if(ra===null){P===null&&(P=ye);break}e&&P&&ra.alternate===null&&t(C,P),j=s(ra,j,re),ge===null?te=ra:ge.sibling=ra,ge=ra,P=ye}if(be.done)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;!be.done;re++,be=R.next())be=L(C,be.value,Q),be!==null&&(j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return ve&&yl(C,re),te}for(P=a(P);!be.done;re++,be=R.next())be=_(P,C,re,be.value,Q),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?re:be.key),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return e&&P.forEach(function(W0){return t(C,W0)}),ve&&yl(C,re),te}function Ae(C,j,R,Q){if(typeof R=="object"&&R!==null&&R.type===O&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case U:e:{for(var te=R.key;j!==null;){if(j.key===te){if(te=R.type,te===O){if(j.tag===7){l(C,j.sibling),Q=n(j,R.props.children),Q.return=C,C=Q;break e}}else if(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Ua(te)===j.type){l(C,j.sibling),Q=n(j,R.props),xu(Q,R),Q.return=C,C=Q;break e}l(C,j);break}else t(C,j);j=j.sibling}R.type===O?(Q=Aa(R.props.children,C.mode,Q,R.key),Q.return=C,C=Q):(Q=Oi(R.type,R.key,R.props,null,C.mode,Q),xu(Q,R),Q.return=C,C=Q)}return o(C);case K:e:{for(te=R.key;j!==null;){if(j.key===te)if(j.tag===4&&j.stateNode.containerInfo===R.containerInfo&&j.stateNode.implementation===R.implementation){l(C,j.sibling),Q=n(j,R.children||[]),Q.return=C,C=Q;break e}else{l(C,j);break}else t(C,j);j=j.sibling}Q=Er(R,C.mode,Q),Q.return=C,C=Q}return o(C);case le:return R=Ua(R),Ae(C,j,R,Q)}if(ut(R))return W(C,j,R,Q);if(ke(R)){if(te=ke(R),typeof te!="function")throw Error(c(150));return R=te.call(R),ae(C,j,R,Q)}if(typeof R.then=="function")return Ae(C,j,Ui(R),Q);if(R.$$typeof===B)return Ae(C,j,zi(C,R),Q);wi(C,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,j!==null&&j.tag===6?(l(C,j.sibling),Q=n(j,R),Q.return=C,C=Q):(l(C,j),Q=Sr(R,C.mode,Q),Q.return=C,C=Q),o(C)):l(C,j)}return function(C,j,R,Q){try{bu=0;var te=Ae(C,j,R,Q);return Sn=null,te}catch(P){if(P===xn||P===_i)throw P;var ge=Rt(29,P,null,C.mode);return ge.lanes=Q,ge.return=C,ge}finally{}}}var Ha=dd(!0),hd=dd(!1),Kl=!1;function Ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wr(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 Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Ci(e),$f(e,null,l),t}return Ti(e,a,t,l),Ci(e)}function Su(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,af(e,l)}}function Hr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=o:s=s.next=o,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var qr=!1;function Eu(){if(qr){var e=bn;if(e!==null)throw e}}function ju(e,t,l,a){qr=!1;var n=e.updateQueue;Kl=!1;var s=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var b=h,A=b.next;b.next=null,o===null?s=A:o.next=A,o=b;var w=e.alternate;w!==null&&(w=w.updateQueue,h=w.lastBaseUpdate,h!==o&&(h===null?w.firstBaseUpdate=A:h.next=A,w.lastBaseUpdate=b))}if(s!==null){var L=n.baseState;o=0,w=A=b=null,h=s;do{var z=h.lane&-536870913,_=z!==h.lane;if(_?(me&z)===z:(a&z)===z){z!==0&&z===gn&&(qr=!0),w!==null&&(w=w.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,ae=h;z=t;var Ae=l;switch(ae.tag){case 1:if(W=ae.payload,typeof W=="function"){L=W.call(Ae,L,z);break e}L=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ae.payload,z=typeof W=="function"?W.call(Ae,L,z):W,z==null)break e;L=p({},L,z);break e;case 2:Kl=!0}}z=h.callback,z!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[z]:_.push(z))}else _={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},w===null?(A=w=_,b=L):w=w.next=_,o|=z;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;_=h,h=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);w===null&&(b=L),n.baseState=b,n.firstBaseUpdate=A,n.lastBaseUpdate=w,s===null&&(n.shared.lanes=0),Il|=o,e.lanes=o,e.memoizedState=L}}function md(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function yd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)md(l[e],t)}var En=T(null),Hi=T(0);function vd(e,t){e=Cl,F(Hi,e),F(En,t),Cl=e|t.baseLanes}function Br(){F(Hi,Cl),F(En,En.current)}function Qr(){Cl=Hi.current,X(En),X(Hi)}var At=T(null),Gt=null;function kl(e){var t=e.alternate;F(Le,Le.current&1),F(At,e),Gt===null&&(t===null||En.current!==null||t.memoizedState!==null)&&(Gt=e)}function Lr(e){F(Le,Le.current),F(At,e),Gt===null&&(Gt=e)}function pd(e){e.tag===22?(F(Le,Le.current),F(At,e),Gt===null&&(Gt=e)):Fl()}function Fl(){F(Le,Le.current),F(At,At.current)}function zt(e){X(At),Gt===e&&(Gt=null),X(Le)}var Le=T(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Vc(l)||Jc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gl=0,se=null,Oe=null,Xe=null,Bi=!1,jn=!1,qa=!1,Qi=0,Nu=0,Nn=null,Yp=0;function He(){throw Error(c(321))}function Yr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ot(e[l],t[l]))return!1;return!0}function Gr(e,t,l,a,n,s){return gl=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?eh:ac,qa=!1,s=l(a,n),qa=!1,jn&&(s=bd(t,l,a,n)),gd(e),s}function gd(e){q.H=Ou;var t=Oe!==null&&Oe.next!==null;if(gl=0,Xe=Oe=se=null,Bi=!1,Nu=0,Nn=null,t)throw Error(c(300));e===null||Ze||(e=e.dependencies,e!==null&&Ai(e)&&(Ze=!0))}function bd(e,t,l,a){se=e;var n=0;do{if(jn&&(Nn=null),Nu=0,jn=!1,25<=n)throw Error(c(301));if(n+=1,Xe=Oe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}q.H=th,s=t(l,a)}while(jn);return s}function Gp(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Tu(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(se.flags|=1024),t}function Xr(){var e=Qi!==0;return Qi=0,e}function Zr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Kr(e){if(Bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bi=!1}gl=0,Xe=Oe=se=null,jn=!1,Nu=Qi=0,Nn=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?se.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ye(){if(Oe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Xe===null?se.memoizedState:Xe.next;if(t!==null)Xe=t,Oe=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Xe===null?se.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(e){var t=Nu;return Nu+=1,Nn===null&&(Nn=[]),e=cd(Nn,e,t),t=se,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?eh:ac),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tu(e);if(e.$$typeof===B)return lt(e)}throw Error(c(438,String(e)))}function Vr(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Li(),se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function bl(e,t){return typeof t=="function"?t(e):t}function Gi(e){var t=Ye();return Jr(t,Oe,e)}function Jr(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var o=n.next;n.next=s.next,s.next=o}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=o=null,b=null,A=t,w=!1;do{var L=A.lane&-536870913;if(L!==A.lane?(me&L)===L:(gl&L)===L){var z=A.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),L===gn&&(w=!0);else if((gl&z)===z){A=A.next,z===gn&&(w=!0);continue}else L={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(h=b=L,o=s):b=b.next=L,se.lanes|=z,Il|=z;L=A.action,qa&&l(s,L),s=A.hasEagerState?A.eagerState:l(s,L)}else z={lane:L,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(h=b=z,o=s):b=b.next=z,se.lanes|=L,Il|=L;A=A.next}while(A!==null&&A!==t);if(b===null?o=s:b.next=h,!Ot(s,e.memoizedState)&&(Ze=!0,w&&(l=bn,l!==null)))throw l;e.memoizedState=s,e.baseState=o,e.baseQueue=b,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function kr(e){var t=Ye(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do s=e(s,o.action),o=o.next;while(o!==n);Ot(s,t.memoizedState)||(Ze=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function xd(e,t,l){var a=se,n=Ye(),s=ve;if(s){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Ot((Oe||n).memoizedState,l);if(o&&(n.memoizedState=l,Ze=!0),n=n.queue,Wr(jd.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,Tn(9,{destroy:void 0},Ed.bind(null,a,n,l,t),null),Me===null)throw Error(c(349));s||(gl&127)!==0||Sd(a,t,l)}return l}function Sd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=Li(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Ed(e,t,l,a){t.value=l,t.getSnapshot=a,Nd(t)&&Td(e)}function jd(e,t,l){return l(function(){Nd(t)&&Td(e)})}function Nd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ot(e,l)}catch{return!0}}function Td(e){var t=Ra(e,2);t!==null&&bt(t,e,2)}function Fr(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),qa){Bl(!0);try{l()}finally{Bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t}function Cd(e,t,l,a){return e.baseState=l,Jr(e,Oe,typeof a=="function"?a:bl)}function Xp(e,t,l,a,n){if(Ki(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};q.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,Od(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Od(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=q.T,o={};q.T=o;try{var h=l(n,a),b=q.S;b!==null&&b(o,h),Rd(e,t,h)}catch(A){$r(e,t,A)}finally{s!==null&&o.types!==null&&(s.types=o.types),q.T=s}}else try{s=l(n,a),Rd(e,t,s)}catch(A){$r(e,t,A)}}function Rd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ad(e,t,a)},function(a){return $r(e,t,a)}):Ad(e,t,l)}function Ad(e,t,l){t.status="fulfilled",t.value=l,zd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Od(e,l)))}function $r(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,zd(t),t=t.next;while(t!==a)}e.action=null}function zd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Md(e,t){return t}function _d(e,t){if(ve){var l=Me.formState;if(l!==null){e:{var a=se;if(ve){if(_e){t:{for(var n=_e,s=Yt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Xt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){_e=Xt(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Md,lastRenderedState:t},l.queue=a,l=Wd.bind(null,se,a),a.dispatch=l,a=Fr(!1),s=lc.bind(null,se,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Xp.bind(null,se,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Dd(e){var t=Ye();return Ud(t,Oe,e)}function Ud(e,t,l){if(t=Jr(e,t,Md)[0],e=Gi(bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tu(t)}catch(o){throw o===xn?_i:o}else a=t;t=Ye();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&(se.flags|=2048,Tn(9,{destroy:void 0},Zp.bind(null,n,l),null)),[a,s,e]}function Zp(e,t){e.action=t}function wd(e){var t=Ye(),l=Oe;if(l!==null)return Ud(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Tn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=se.updateQueue,t===null&&(t=Li(),se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Hd(){return Ye().memoizedState}function Xi(e,t,l,a){var n=ct();se.flags|=e,n.memoizedState=Tn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Zi(e,t,l,a){var n=Ye();a=a===void 0?null:a;var s=n.memoizedState.inst;Oe!==null&&a!==null&&Yr(a,Oe.memoizedState.deps)?n.memoizedState=Tn(t,s,l,a):(se.flags|=e,n.memoizedState=Tn(1|t,s,l,a))}function qd(e,t){Xi(8390656,8,e,t)}function Wr(e,t){Zi(2048,8,e,t)}function Kp(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Li(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Bd(e){var t=Ye().memoizedState;return Kp({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Qd(e,t){return Zi(4,2,e,t)}function Ld(e,t){return Zi(4,4,e,t)}function Yd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gd(e,t,l){l=l!=null?l.concat([e]):null,Zi(4,4,Yd.bind(null,t,e),l)}function Ir(){}function Xd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Yr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Zd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Yr(t,a[1]))return a[0];if(a=e(),qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a}function Pr(e,t,l){return l===void 0||(gl&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Kh(),se.lanes|=e,Il|=e,l)}function Kd(e,t,l,a){return Ot(l,t)?l:En.current!==null?(e=Pr(e,l,a),Ot(e,t)||(Ze=!0),e):(gl&42)===0||(gl&1073741824)!==0&&(me&261930)===0?(Ze=!0,e.memoizedState=l):(e=Kh(),se.lanes|=e,Il|=e,t)}function Vd(e,t,l,a,n){var s=J.p;J.p=s!==0&&8>s?s:8;var o=q.T,h={};q.T=h,lc(e,!1,t,l);try{var b=n(),A=q.S;if(A!==null&&A(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var w=Lp(b,a);Cu(e,t,w,Dt(e))}else Cu(e,t,a,Dt(e))}catch(L){Cu(e,t,{then:function(){},status:"rejected",reason:L},Dt())}finally{J.p=s,o!==null&&h.types!==null&&(o.types=h.types),q.T=o}}function Vp(){}function ec(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=Jd(e).queue;Vd(e,n,t,ne,l===null?Vp:function(){return kd(e),l(a)})}function Jd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Jd(e);t.next===null&&(t=e.alternate.memoizedState),Cu(e,t.next.queue,{},Dt())}function tc(){return lt(Xu)}function Fd(){return Ye().memoizedState}function $d(){return Ye().memoizedState}function Jp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Dt();e=Vl(l);var a=Jl(t,e,l);a!==null&&(bt(a,t,l),Su(a,t,l)),t={cache:zr()},e.payload=t;return}t=t.return}}function kp(e,t,l){var a=Dt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Id(t,l):(l=br(e,t,l,a),l!==null&&(bt(l,e,a),Pd(l,t,a)))}function Wd(e,t,l){var a=Dt();Cu(e,t,l,a)}function Cu(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Id(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,h=s(o,l);if(n.hasEagerState=!0,n.eagerState=h,Ot(h,o))return Ti(e,t,n,0),Me===null&&Ni(),!1}catch{}finally{}if(l=br(e,t,n,a),l!==null)return bt(l,e,a),Pd(l,t,a),!0}return!1}function lc(e,t,l,a){if(a={lane:2,revertLane:Uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=br(e,l,a,2),t!==null&&bt(t,e,2)}function Ki(e){var t=e.alternate;return e===se||t!==null&&t===se}function Id(e,t){jn=Bi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Pd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,af(e,l)}}var Ou={readContext:lt,use:Yi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Ou.useEffectEvent=He;var eh={readContext:lt,use:Yi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:qd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Xi(4194308,4,Yd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(qa){Bl(!0);try{l(t)}finally{Bl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kp.bind(null,se,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Fr(e);var t=e.queue,l=Wd.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ir,useDeferredValue:function(e,t){var l=ct();return Pr(l,e,t)},useTransition:function(){var e=Fr(!1);return e=Vd.bind(null,se,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=se,n=ct();if(ve){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Me===null)throw Error(c(349));(me&127)!==0||Sd(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,qd(jd.bind(null,a,s,e),[e]),a.flags|=2048,Tn(9,{destroy:void 0},Ed.bind(null,a,s,l,t),null),l},useId:function(){var e=ct(),t=Me.identifierPrefix;if(ve){var l=al,a=ll;l=(a&~(1<<32-Ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Qi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Yp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:_d,useActionState:_d,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=lc.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:Vr,useCacheRefresh:function(){return ct().memoizedState=Jp.bind(null,se)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},ac={readContext:lt,use:Yi,useCallback:Xd,useContext:lt,useEffect:Wr,useImperativeHandle:Gd,useInsertionEffect:Qd,useLayoutEffect:Ld,useMemo:Zd,useReducer:Gi,useRef:Hd,useState:function(){return Gi(bl)},useDebugValue:Ir,useDeferredValue:function(e,t){var l=Ye();return Kd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Gi(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:xd,useId:Fd,useHostTransitionStatus:tc,useFormState:Dd,useActionState:Dd,useOptimistic:function(e,t){var l=Ye();return Cd(l,Oe,e,t)},useMemoCache:Vr,useCacheRefresh:$d};ac.useEffectEvent=Bd;var th={readContext:lt,use:Yi,useCallback:Xd,useContext:lt,useEffect:Wr,useImperativeHandle:Gd,useInsertionEffect:Qd,useLayoutEffect:Ld,useMemo:Zd,useReducer:kr,useRef:Hd,useState:function(){return kr(bl)},useDebugValue:Ir,useDeferredValue:function(e,t){var l=Ye();return Oe===null?Pr(l,e,t):Kd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=kr(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:xd,useId:Fd,useHostTransitionStatus:tc,useFormState:wd,useActionState:wd,useOptimistic:function(e,t){var l=Ye();return Oe!==null?Cd(l,Oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Vr,useCacheRefresh:$d};th.useEffectEvent=Bd;function nc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var uc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Vl(a);n.payload=t,l!=null&&(n.callback=l),t=Jl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Jl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Dt(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=Jl(e,a,l),t!==null&&(bt(t,e,l),Su(t,e,l))}};function lh(e,t,l,a,n,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,o):t.prototype&&t.prototype.isPureReactComponent?!hu(l,a)||!hu(n,s):!0}function ah(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&uc.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function nh(e){ji(e)}function uh(e){console.error(e)}function ih(e){ji(e)}function Vi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function sh(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ic(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Vi(e,t)},l}function rh(e){return e=Vl(e),e.tag=3,e}function ch(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){sh(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){sh(t,l,a),typeof n!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Fp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,n,!0),l=At.current,l!==null){switch(l.tag){case 31:case 13:return Gt===null?ns():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Mc(e,a,n)),!1;case 22:return l.flags|=65536,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Mc(e,a,n)),!1}throw Error(c(435,l.tag))}return Mc(e,a,n),ns(),!1}if(ve)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Tr&&(e=Error(c(422),{cause:a}),vu(Bt(e,l)))):(a!==Tr&&(t=Error(c(423),{cause:a}),vu(Bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Bt(a,l),n=ic(e.stateNode,a,n),Hr(e,n),qe!==4&&(qe=2)),!1;var s=Error(c(520),{cause:a});if(s=Bt(s,l),wu===null?wu=[s]:wu.push(s),qe!==4&&(qe=2),t===null)return!0;a=Bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ic(l.stateNode,a,e),Hr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Pl===null||!Pl.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=rh(n),ch(n,e,l,a),Hr(l,n),!1}l=l.return}while(l!==null);return!1}var sc=Error(c(461)),Ze=!1;function at(e,t,l,a){t.child=e===null?hd(t,null,l,a):Ha(t,e.child,l,a)}function oh(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}else o=a;return _a(t),a=Gr(e,t,l,o,s,n),h=Xr(),e!==null&&!Ze?(Zr(e,t,n),xl(e,t,n)):(ve&&h&&jr(t),t.flags|=1,at(e,t,a,n),t.child)}function fh(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!xr(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,dh(e,t,s,a,n)):(e=Oi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!yc(e,n)){var o=s.memoizedProps;if(l=l.compare,l=l!==null?l:hu,l(o,a)&&e.ref===t.ref)return xl(e,t,n)}return t.flags|=1,e=ml(s,a),e.ref=t.ref,e.return=t,t.child=e}function dh(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(hu(s,a)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=a=s,yc(e,n))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,xl(e,t,n)}return rc(e,t,l,a,n)}function hh(e,t,l,a){var n=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~s}else a=0,t.child=null;return mh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,s!==null?s.cachePool:null),s!==null?vd(t,s):Br(),pd(t);else return a=t.lanes=536870912,mh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Mi(t,s.cachePool),vd(t,s),Fl(),t.memoizedState=null):(e!==null&&Mi(t,null),Br(),Fl());return at(e,t,n,l),t.child}function Ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mh(e,t,l,a,n){var s=_r();return s=s===null?null:{parent:Ge._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Mi(t,null),Br(),pd(t),e!==null&&pn(e,t,a,!0),t.childLanes=n,null}function Ji(e,t){return t=Fi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yh(e,t,l){return Ha(t,e.child,null,l),e=Ji(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function $p(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Ji(t,a),t.lanes=536870912,Ru(null,e);if(Lr(t),(e=_e)?(e=Om(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=If(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return Ji(t,a)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Lr(t),n)if(t.flags&256)t.flags&=-257,t=yh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ze||pn(e,t,l,!1),n=(l&e.childLanes)!==0,Ze||n){if(a=Me,a!==null&&(o=nf(a,l),o!==0&&o!==s.retryLane))throw s.retryLane=o,Ra(e,o),bt(a,e,o),sc;ns(),t=yh(e,t,l)}else e=s.treeContext,_e=Xt(o.nextSibling),tt=t,ve=!0,Gl=null,Yt=!1,e!==null&&td(t,e),t=Ji(t,a),t.flags|=4096;return t}return e=ml(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ki(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function rc(e,t,l,a,n){return _a(t),l=Gr(e,t,l,a,void 0,n),a=Xr(),e!==null&&!Ze?(Zr(e,t,n),xl(e,t,n)):(ve&&a&&jr(t),t.flags|=1,at(e,t,l,n),t.child)}function vh(e,t,l,a,n,s){return _a(t),t.updateQueue=null,l=bd(t,a,l,n),gd(e),a=Xr(),e!==null&&!Ze?(Zr(e,t,s),xl(e,t,s)):(ve&&a&&jr(t),t.flags|=1,at(e,t,l,s),t.child)}function ph(e,t,l,a,n){if(_a(t),t.stateNode===null){var s=hn,o=l.contextType;typeof o=="object"&&o!==null&&(s=lt(o)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=uc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Ur(t),o=l.contextType,s.context=typeof o=="object"&&o!==null?lt(o):hn,s.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(nc(t,l,o,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&uc.enqueueReplaceState(s,s.state,null),ju(t,a,s,n),Eu(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,b=Ba(l,h);s.props=b;var A=s.context,w=l.contextType;o=hn,typeof w=="object"&&w!==null&&(o=lt(w));var L=l.getDerivedStateFromProps;w=typeof L=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,w||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||A!==o)&&ah(t,s,a,o),Kl=!1;var z=t.memoizedState;s.state=z,ju(t,a,s,n),Eu(),A=t.memoizedState,h||z!==A||Kl?(typeof L=="function"&&(nc(t,l,L,a),A=t.memoizedState),(b=Kl||lh(t,l,b,a,z,A,o))?(w||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),s.props=a,s.state=A,s.context=o,a=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,wr(e,t),o=t.memoizedProps,w=Ba(l,o),s.props=w,L=t.pendingProps,z=s.context,A=l.contextType,b=hn,typeof A=="object"&&A!==null&&(b=lt(A)),h=l.getDerivedStateFromProps,(A=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==L||z!==b)&&ah(t,s,a,b),Kl=!1,z=t.memoizedState,s.state=z,ju(t,a,s,n),Eu();var _=t.memoizedState;o!==L||z!==_||Kl||e!==null&&e.dependencies!==null&&Ai(e.dependencies)?(typeof h=="function"&&(nc(t,l,h,a),_=t.memoizedState),(w=Kl||lh(t,l,w,a,z,_,b)||e!==null&&e.dependencies!==null&&Ai(e.dependencies))?(A||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,_,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,_,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),s.props=a,s.state=_,s.context=b,a=w):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,ki(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Ha(t,e.child,null,n),t.child=Ha(t,null,l,n)):at(e,t,l,n),t.memoizedState=s.state,e=t.child):e=xl(e,t,n),e}function gh(e,t,l,a){return za(),t.flags|=256,at(e,t,l,a),t.child}var cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oc(e){return{baseLanes:e,cachePool:sd()}}function fc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=_t),e}function bh(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?kl(t):Fl(),(e=_e)?(e=Om(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=If(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return Jc(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(Fl(),n=t.mode,h=Fi({mode:"hidden",children:h},n),a=Aa(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=oc(l),a.childLanes=fc(e,o,l),t.memoizedState=cc,Ru(null,a)):(kl(t),dc(t,h))}var b=e.memoizedState;if(b!==null&&(h=b.dehydrated,h!==null)){if(s)t.flags&256?(kl(t),t.flags&=-257,t=hc(e,t,l)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,t=null):(Fl(),h=a.fallback,n=t.mode,a=Fi({mode:"visible",children:a.children},n),h=Aa(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Ha(t,e.child,null,l),a=t.child,a.memoizedState=oc(l),a.childLanes=fc(e,o,l),t.memoizedState=cc,t=Ru(null,a));else if(kl(t),Jc(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var A=o.dgst;o=A,a=Error(c(419)),a.stack="",a.digest=o,vu({value:a,source:null,stack:null}),t=hc(e,t,l)}else if(Ze||pn(e,t,l,!1),o=(l&e.childLanes)!==0,Ze||o){if(o=Me,o!==null&&(a=nf(o,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Ra(e,a),bt(o,e,a),sc;Vc(h)||ns(),t=hc(e,t,l)}else Vc(h)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,_e=Xt(h.nextSibling),tt=t,ve=!0,Gl=null,Yt=!1,e!==null&&td(t,e),t=dc(t,a.children),t.flags|=4096);return t}return n?(Fl(),h=a.fallback,n=t.mode,b=e.child,A=b.sibling,a=ml(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,A!==null?h=ml(A,h):(h=Aa(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,Ru(null,a),a=t.child,h=e.child.memoizedState,h===null?h=oc(l):(n=h.cachePool,n!==null?(b=Ge._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=sd(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=fc(e,o,l),t.memoizedState=cc,Ru(e.child,a)):(kl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function dc(e,t){return t=Fi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fi(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function hc(e,t,l){return Ha(t,e.child,null,l),e=dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Rr(e.return,t,l)}function mc(e,t,l,a,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=s)}function Sh(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var o=Le.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,F(Le,o),at(e,t,a,l),a=ve?yu:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xh(e,l,t);else if(e.tag===19)xh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&qi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),mc(t,!1,n,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}mc(t,!0,l,null,s,a);break;case"together":mc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function xl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function yc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ai(e)))}function Wp(e,t,l){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Zl(t,Ge,e.memoizedState.cache),za();break;case 27:case 5:eu(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(kl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?bh(e,t,l):(kl(t),e=xl(e,t,l),e!==null?e.sibling:null);kl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Sh(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),F(Le,Le.current),a)break;return null;case 22:return t.lanes=0,hh(e,t,l,t.pendingProps);case 24:Zl(t,Ge,e.memoizedState.cache)}return xl(e,t,l)}function Eh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!yc(e,l)&&(t.flags&128)===0)return Ze=!1,Wp(e,t,l);Ze=(e.flags&131072)!==0}else Ze=!1,ve&&(t.flags&1048576)!==0&&ed(t,yu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ua(t.elementType),t.type=e,typeof e=="function")xr(e)?(a=Ba(e,a),t.tag=1,t=ph(null,t,e,a,l)):(t.tag=0,t=rc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Z){t.tag=11,t=oh(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=fh(null,t,e,a,l);break e}}throw t=dt(e)||e,Error(c(306,t,""))}}return t;case 0:return rc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ba(a,t.pendingProps),ph(e,t,a,n,l);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,wr(e,t),ju(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Zl(t,Ge,a),a!==s.cache&&Ar(t,[Ge],l,!0),Eu(),a=o.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=gh(e,t,a,l);break e}else if(a!==n){n=Bt(Error(c(424)),t),vu(n),t=gh(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_e=Xt(e.firstChild),tt=t,ve=!0,Gl=null,Yt=!0,l=hd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(za(),a===n){t=xl(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return ki(e,t),e===null?(l=Dm(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=fs(oe.current).createElement(l),a[et]=t,a[ht]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=Dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eu(t),e===null&&ve&&(a=t.stateNode=zm(t.type,t.pendingProps,oe.current),tt=t,Yt=!0,n=_e,aa(t.type)?(kc=n,_e=Xt(a.firstChild)):_e=n),at(e,t,t.pendingProps.children,l),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=_e)&&(a=O0(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,tt=t,_e=Xt(a.firstChild),Yt=!1,n=!0):n=!1),n||Xl(t)),eu(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,a=s.children,Xc(n,s)?a=null:o!==null&&Xc(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Gr(e,t,Gp,null,null,l),Xu._currentValue=n),ki(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=_e)&&(l=R0(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,tt=t,_e=null,e=!0):e=!1),e||Xl(t)),null;case 13:return bh(e,t,l);case 4:return rt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ha(t,null,a,l):at(e,t,a,l),t.child;case 11:return oh(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,_a(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return fh(e,t,t.type,t.pendingProps,l);case 15:return dh(e,t,t.type,t.pendingProps,l);case 19:return Sh(e,t,l);case 31:return $p(e,t,l);case 22:return hh(e,t,l,t.pendingProps);case 24:return _a(t),a=lt(Ge),e===null?(n=_r(),n===null&&(n=Me,s=zr(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},Ur(t),Zl(t,Ge,n)):((e.lanes&l)!==0&&(wr(e,t),ju(t,null,null,l),Eu()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Zl(t,Ge,a)):(a=s.cache,Zl(t,Ge,a),a!==n.cache&&Ar(t,[Ge],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Sl(e){e.flags|=4}function vc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Fh())e.flags|=8192;else throw wa=Di,Dr}else e.flags&=-16777217}function jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bm(t))if(Fh())e.flags|=8192;else throw wa=Di,Dr}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tf():536870912,e.lanes|=t,An|=t)}function Au(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ip(e,t,l){var a=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 De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pl(Ge),Qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?Sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cr())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(Sl(t),s!==null?(De(t),jh(t,s)):(De(t),vc(t,n,null,a,l))):s?s!==e.memoizedState?(Sl(t),De(t),jh(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Sl(t),De(t),vc(t,n,e,a,l)),null;case 27:if(si(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}e=I.current,vn(t)?ld(t):(e=zm(n,a,l),t.stateNode=e,Sl(t))}return De(t),null;case 5:if(si(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}if(s=I.current,vn(t))ld(t);else{var o=fs(oe.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}s[et]=t,s[ht]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.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 e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(nt(s,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Sl(t)}}return De(t),vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||bm(e.nodeValue,l)),e||Xl(t,!0)}else e=fs(e).createTextNode(a),e[et]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=vn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[et]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else l=Cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=vn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[et]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=Cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),$i(t,t.updateQueue),De(t),null);case 4:return Qe(),e===null&&Bc(t.stateNode.containerInfo),De(t),null;case 10:return pl(t.type),De(t),null;case 19:if(X(Le),a=t.memoizedState,a===null)return De(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)Au(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qi(e),s!==null){for(t.flags|=128,Au(a,!1),e=s.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Wf(l,e),l=l.sibling;return F(Le,Le.current&1|2),ve&&yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Nt()>ts&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304)}else{if(!n)if(e=qi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ve)return De(t),null}else 2*Nt()-a.renderingStartTime>ts&&l!==536870912&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Nt(),e.sibling=null,l=Le.current,F(Le,n?l&1|2:l&1),ve&&yl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return zt(t),Qr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&$i(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&X(Da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(Ge),De(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Pp(e,t){switch(Nr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(Ge),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return si(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Le),null;case 4:return Qe(),null;case 10:return pl(t.type),null;case 22:case 23:return zt(t),Qr(),e!==null&&X(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(Ge),null;case 25:return null;default:return null}}function Nh(e,t){switch(Nr(t),t.tag){case 3:pl(Ge),Qe();break;case 26:case 27:case 5:si(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:X(Le);break;case 10:pl(t.type);break;case 22:case 23:zt(t),Qr(),e!==null&&X(Da);break;case 24:pl(Ge)}}function zu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var s=l.create,o=l.inst;a=s(),o.destroy=a}l=l.next}while(l!==n)}}catch(h){Ne(t,t.return,h)}}function $l(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var o=a.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var b=l,A=h;try{A()}catch(w){Ne(n,b,w)}}}a=a.next}while(a!==s)}}catch(w){Ne(t,t.return,w)}}function Th(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{yd(t,l)}catch(a){Ne(e,e.return,a)}}}function Ch(e,t,l){l.props=Ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function Mu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function nl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Oh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function pc(e,t,l){try{var a=e.stateNode;S0(a,e.type,l,t),a[ht]=t}catch(n){Ne(e,e.return,n)}}function Rh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rh(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&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=dl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(bc(e,t,l),e=e.sibling;e!==null;)bc(e,t,l),e=e.sibling}function Wi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wi(e,t,l),e=e.sibling;e!==null;)Wi(e,t,l),e=e.sibling}function Ah(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[ht]=l}catch(s){Ne(e,e.return,s)}}var El=!1,Ke=!1,xc=!1,zh=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function e0(e,t){if(e=e.containerInfo,Yc=gs,e=Gf(e),hr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var o=0,h=-1,b=-1,A=0,w=0,L=e,z=null;t:for(;;){for(var _;L!==l||n!==0&&L.nodeType!==3||(h=o+n),L!==s||a!==0&&L.nodeType!==3||(b=o+a),L.nodeType===3&&(o+=L.nodeValue.length),(_=L.firstChild)!==null;)z=L,L=_;for(;;){if(L===e)break t;if(z===l&&++A===n&&(h=o),z===s&&++w===a&&(b=o),(_=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=_}l=h===-1||b===-1?null:{start:h,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gc={focusedElem:e,selectionRange:l},gs=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var W=Ba(l.type,n);e=a.getSnapshotBeforeUpdate(W,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Ne(l,l.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Kc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Mh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(e,l),a&4&&zu(5,l);break;case 1:if(Nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Ne(l,l.return,o)}else{var n=Ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ne(l,l.return,o)}}a&64&&Th(l),a&512&&Mu(l,l.return);break;case 3:if(Nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{yd(e,t)}catch(o){Ne(l,l.return,o)}}break;case 27:t===null&&a&4&&Ah(l);case 26:case 5:Nl(e,l),t===null&&a&4&&Oh(l),a&512&&Mu(l,l.return);break;case 12:Nl(e,l);break;case 31:Nl(e,l),a&4&&Uh(e,l);break;case 13:Nl(e,l),a&4&&wh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=c0.bind(null,l),A0(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Ke,n=El;var s=Ke;El=a,(Ke=t)&&!s?Tl(e,l,(l.subtreeFlags&8772)!==0):Nl(e,l),El=n,Ke=s}break;case 30:break;default:Nl(e,l)}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$s(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,yt=!1;function jl(e,t,l){for(l=l.child;l!==null;)Dh(e,t,l),l=l.sibling}function Dh(e,t,l){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(tu,l)}catch{}switch(l.tag){case 26:Ke||nl(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ke||nl(l,t);var a=Ue,n=yt;aa(l.type)&&(Ue=l.stateNode,yt=!1),jl(e,t,l),Lu(l.stateNode),Ue=a,yt=n;break;case 5:Ke||nl(l,t);case 6:if(a=Ue,n=yt,Ue=null,jl(e,t,l),Ue=a,yt=n,Ue!==null)if(yt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(s){Ne(l,t,s)}else try{Ue.removeChild(l.stateNode)}catch(s){Ne(l,t,s)}break;case 18:Ue!==null&&(yt?(e=Ue,Tm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qn(e)):Tm(Ue,l.stateNode));break;case 4:a=Ue,n=yt,Ue=l.stateNode.containerInfo,yt=!0,jl(e,t,l),Ue=a,yt=n;break;case 0:case 11:case 14:case 15:$l(2,l,t),Ke||$l(4,l,t),jl(e,t,l);break;case 1:Ke||(nl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ch(l,t,a)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:Ke=(a=Ke)||l.memoizedState!==null,jl(e,t,l),Ke=a;break;default:jl(e,t,l)}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qn(e)}catch(l){Ne(t,t.return,l)}}}function wh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qn(e)}catch(l){Ne(t,t.return,l)}}function t0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zh),t;default:throw Error(c(435,e.tag))}}function Ii(e,t){var l=t0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=o0.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(aa(h.type)){Ue=h.stateNode,yt=!1;break e}break;case 5:Ue=h.stateNode,yt=!1;break e;case 3:case 4:Ue=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(Ue===null)throw Error(c(160));Dh(s,o,n),Ue=null,yt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hh(t,e),t=t.sibling}var Ft=null;function Hh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),a&4&&($l(3,e,e.return),zu(3,e),$l(5,e,e.return));break;case 1:vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ft;if(vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":s=n.getElementsByTagName("title")[0],(!s||s[nu]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),nt(s,a,l),s[et]=e,We(s),a=s;break e;case"link":var o=Hm("link","href",n).get(a+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;case"meta":if(o=Hm("meta","content",n).get(a+(l.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;default:throw Error(c(468,a))}s[et]=e,We(s),a=s}e.stateNode=a}else qm(n,e.type,e.stateNode);else e.stateNode=wm(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?qm(n,e.type,e.stateNode):wm(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&pc(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),l!==null&&a&4&&pc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),e.flags&32){n=e.stateNode;try{un(n,"")}catch(W){Ne(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,pc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(xc=!0);break;case 6:if(vt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){Ne(e,e.return,W)}}break;case 3:if(ms=null,n=Ft,Ft=ds(t.containerInfo),vt(t,e),Ft=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qn(t.containerInfo)}catch(W){Ne(e,e.return,W)}xc&&(xc=!1,qh(e));break;case 4:a=Ft,Ft=ds(e.stateNode.containerInfo),vt(t,e),pt(e),Ft=a;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(es=Nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 22:n=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,A=El,w=Ke;if(El=A||n,Ke=w||b,vt(t,e),Ke=w,El=A,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||b||El||Ke||Qa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(s=b.stateNode,n)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=b.stateNode;var L=b.memoizedProps.style,z=L!=null&&L.hasOwnProperty("display")?L.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){Ne(b,b.return,W)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(W){Ne(b,b.return,W)}}}else if(t.tag===18){if(l===null){b=t;try{var _=b.stateNode;n?Cm(_,!0):Cm(b.stateNode,!1)}catch(W){Ne(b,b.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ii(e,l))));break;case 19:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Rh(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,s=gc(e);Wi(e,s,n);break;case 5:var o=l.stateNode;l.flags&32&&(un(o,""),l.flags&=-33);var h=gc(e);Wi(e,h,o);break;case 3:case 4:var b=l.stateNode.containerInfo,A=gc(e);bc(e,A,b);break;default:throw Error(c(161))}}catch(w){Ne(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$l(4,t,t.return),Qa(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ch(t,t.return,l),Qa(t);break;case 27:Lu(t.stateNode);case 26:case 5:nl(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(n,s,l),zu(4,s);break;case 1:if(Tl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){Ne(a,a.return,A)}if(a=s,n=a.updateQueue,n!==null){var h=a.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)md(b[n],h)}catch(A){Ne(a,a.return,A)}}l&&o&64&&Th(s),Mu(s,s.return);break;case 27:Ah(s);case 26:case 5:Tl(n,s,l),l&&a===null&&o&4&&Oh(s),Mu(s,s.return);break;case 12:Tl(n,s,l);break;case 31:Tl(n,s,l),l&&o&4&&Uh(n,s);break;case 13:Tl(n,s,l),l&&o&4&&wh(n,s);break;case 22:s.memoizedState===null&&Tl(n,s,l),Mu(s,s.return);break;case 30:break;default:Tl(n,s,l)}t=t.sibling}}function Sc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&pu(l))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e))}function $t(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(e,t,l,a),t=t.sibling}function Bh(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,l,a),n&2048&&zu(9,t);break;case 1:$t(e,t,l,a);break;case 3:$t(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e)));break;case 12:if(n&2048){$t(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ne(t,t.return,b)}}else $t(e,t,l,a);break;case 31:$t(e,t,l,a);break;case 13:$t(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?$t(e,t,l,a):_u(e,t):s._visibility&2?$t(e,t,l,a):(s._visibility|=2,Cn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Sc(o,t);break;case 24:$t(e,t,l,a),n&2048&&Ec(t.alternate,t);break;default:$t(e,t,l,a)}}function Cn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,h=l,b=a,A=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(s,o,h,b,n),zu(8,o);break;case 23:break;case 22:var w=o.stateNode;o.memoizedState!==null?w._visibility&2?Cn(s,o,h,b,n):_u(s,o):(w._visibility|=2,Cn(s,o,h,b,n)),n&&A&2048&&Sc(o.alternate,o);break;case 24:Cn(s,o,h,b,n),n&&A&2048&&Ec(o.alternate,o);break;default:Cn(s,o,h,b,n)}t=t.sibling}}function _u(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:_u(l,a),n&2048&&Sc(a.alternate,a);break;case 24:_u(l,a),n&2048&&Ec(a.alternate,a);break;default:_u(l,a)}t=t.sibling}}var Du=8192;function On(e,t,l){if(e.subtreeFlags&Du)for(e=e.child;e!==null;)Qh(e,t,l),e=e.sibling}function Qh(e,t,l){switch(e.tag){case 26:On(e,t,l),e.flags&Du&&e.memoizedState!==null&&Y0(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:On(e,t,l);break;case 3:case 4:var a=Ft;Ft=ds(e.stateNode.containerInfo),On(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Du,Du=16777216,On(e,t,l),Du=a):On(e,t,l));break;default:On(e,t,l)}}function Lh(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 Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Gh(a,e)}Lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yh(e),e=e.sibling}function Yh(e){switch(e.tag){case 0:case 11:case 15:Uu(e),e.flags&2048&&$l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pi(e)):Uu(e);break;default:Uu(e)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Gh(a,e)}Lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$l(8,t,t.return),Pi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Pi(t));break;default:Pi(t)}e=e.sibling}}function Gh(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:$l(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,s=a.return;if(_h(a),a===l){Ie=null;break e}if(n!==null){n.return=s,Ie=n;break e}Ie=s}}}var l0={getCacheForType:function(e){var t=lt(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Ge).controller.signal}},a0=typeof WeakMap=="function"?WeakMap:Map,xe=0,Me=null,fe=null,me=0,je=0,Mt=null,Wl=!1,Rn=!1,jc=!1,Cl=0,qe=0,Il=0,La=0,Nc=0,_t=0,An=0,wu=null,gt=null,Tc=!1,es=0,Xh=0,ts=1/0,ls=null,Pl=null,Fe=0,ea=null,zn=null,Ol=0,Cc=0,Oc=null,Zh=null,Hu=0,Rc=null;function Dt(){return(xe&2)!==0&&me!==0?me&-me:q.T!==null?Uc():uf()}function Kh(){if(_t===0)if((me&536870912)===0||ve){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),_t=e}else _t=536870912;return e=At.current,e!==null&&(e.flags|=32),_t}function bt(e,t,l){(e===Me&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Mn(e,0),ta(e,me,_t,!1)),au(e,l),((xe&2)===0||e!==Me)&&(e===Me&&((xe&2)===0&&(La|=l),qe===4&&ta(e,me,_t,!1)),ul(e))}function Vh(e,t,l){if((xe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||lu(e,t),n=a?i0(e,t):zc(e,t,!0),s=a;do{if(n===0){Rn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!n0(l)){n=zc(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;n=wu;var b=h.current.memoizedState.isDehydrated;if(b&&(Mn(h,o).flags|=256),o=zc(h,o,!1),o!==2){if(jc&&!b){h.errorRecoveryDisabledLanes|=s,La|=s,n=4;break e}s=gt,gt=n,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}n=o}if(s=!1,n!==2)continue}}if(n===1){Mn(e,0),ta(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,_t,!Wl);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=es+300-Nt(),10<n)){if(ta(a,t,_t,!Wl),di(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=jm(Jh.bind(null,a,l,gt,ls,Tc,t,_t,La,An,Wl,s,"Throttled",-0,0),n);break e}Jh(a,l,gt,ls,Tc,t,_t,La,An,Wl,s,null,-0,0)}}break}while(!0);ul(e)}function Jh(e,t,l,a,n,s,o,h,b,A,w,L,z,_){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dl},Qh(t,s,L);var W=(s&62914560)===s?es-Nt():(s&4194048)===s?Xh-Nt():0;if(W=G0(L,W),W!==null){Ol=s,e.cancelPendingCommit=W(tm.bind(null,e,t,s,l,a,n,o,h,b,w,L,null,z,_)),ta(e,s,o,!A);return}}tm(e,t,s,l,a,n,o,h,b)}function n0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],s=n.getSnapshot;n=n.value;try{if(!Ot(s(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 ta(e,t,l,a){t&=~Nc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-Ct(n),o=1<<s;a[s]=-1,n&=~o}l!==0&&lf(e,l,t)}function as(){return(xe&6)===0?(qu(0),!1):!0}function Ac(){if(fe!==null){if(je===0)var e=fe.return;else e=fe,vl=Ma=null,Kr(e),Sn=null,bu=0,e=fe;for(;e!==null;)Nh(e.alternate,e),e=e.return;fe=null}}function Mn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,N0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ol=0,Ac(),Me=e,fe=l=ml(e.current,null),me=t,je=0,Mt=null,Wl=!1,Rn=lu(e,t),jc=!1,An=_t=Nc=La=Il=qe=0,gt=wu=null,Tc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Ct(a),s=1<<n;t|=e[n],a&=~s}return Cl=t,Ni(),l}function kh(e,t){se=null,q.H=Ou,t===xn||t===_i?(t=od(),je=3):t===Dr?(t=od(),je=4):je=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,fe===null&&(qe=1,Vi(e,Bt(t,e.current)))}function Fh(){var e=At.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function $h(){var e=q.H;return q.H=Ou,e===null?Ou:e}function Wh(){var e=q.A;return q.A=l0,e}function ns(){qe=4,Wl||(me&4194048)!==me&&At.current!==null||(Rn=!0),(Il&134217727)===0&&(La&134217727)===0||Me===null||ta(Me,me,_t,!1)}function zc(e,t,l){var a=xe;xe|=2;var n=$h(),s=Wh();(Me!==e||me!==t)&&(ls=null,Mn(e,t)),t=!1;var o=qe;e:do try{if(je!==0&&fe!==null){var h=fe,b=Mt;switch(je){case 8:Ac(),o=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var A=je;if(je=0,Mt=null,_n(e,h,b,A),l&&Rn){o=0;break e}break;default:A=je,je=0,Mt=null,_n(e,h,b,A)}}u0(),o=qe;break}catch(w){kh(e,w)}while(!0);return t&&e.shellSuspendCounter++,vl=Ma=null,xe=a,q.H=n,q.A=s,fe===null&&(Me=null,me=0,Ni()),o}function u0(){for(;fe!==null;)Ih(fe)}function i0(e,t){var l=xe;xe|=2;var a=$h(),n=Wh();Me!==e||me!==t?(ls=null,ts=Nt()+500,Mn(e,t)):Rn=lu(e,t);e:do try{if(je!==0&&fe!==null){t=fe;var s=Mt;t:switch(je){case 1:je=0,Mt=null,_n(e,t,s,1);break;case 2:case 9:if(rd(s)){je=0,Mt=null,Ph(t);break}t=function(){je!==2&&je!==9||Me!==e||(je=7),ul(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:rd(s)?(je=0,Mt=null,Ph(t)):(je=0,Mt=null,_n(e,t,s,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var h=fe;if(o?Bm(o):h.stateNode.complete){je=0,Mt=null;var b=h.sibling;if(b!==null)fe=b;else{var A=h.return;A!==null?(fe=A,us(A)):fe=null}break t}}je=0,Mt=null,_n(e,t,s,5);break;case 6:je=0,Mt=null,_n(e,t,s,6);break;case 8:Ac(),qe=6;break e;default:throw Error(c(462))}}s0();break}catch(w){kh(e,w)}while(!0);return vl=Ma=null,q.H=a,q.A=n,xe=l,fe!==null?0:(Me=null,me=0,Ni(),qe)}function s0(){for(;fe!==null&&!zv();)Ih(fe)}function Ih(e){var t=Eh(e.alternate,e,Cl);e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function Ph(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=vh(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=vh(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Kr(t);default:Nh(l,t),t=fe=Wf(t,Cl),t=Eh(l,t,Cl)}e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function _n(e,t,l,a){vl=Ma=null,Kr(t),Sn=null,bu=0;var n=t.return;try{if(Fp(e,n,t,l,me)){qe=1,Vi(e,Bt(l,e.current)),fe=null;return}}catch(s){if(n!==null)throw fe=n,s;qe=1,Vi(e,Bt(l,e.current)),fe=null;return}t.flags&32768?(ve||a===1?e=!0:Rn||(me&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),em(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){em(t,Wl);return}e=t.return;var l=Ip(t.alternate,t,Cl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);qe===0&&(qe=5)}function em(e,t){do{var l=Pp(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);qe=6,fe=null}function tm(e,t,l,a,n,s,o,h,b){e.cancelPendingCommit=null;do is();while(Fe!==0);if((xe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=gr,Lv(e,l,s,o,h,b),e===Me&&(fe=Me=null,me=0),zn=t,ea=e,Ol=l,Cc=s,Oc=n,Zh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f0(ri,function(){return im(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null,n=J.p,J.p=2,o=xe,xe|=4;try{e0(e,t,l)}finally{xe=o,J.p=n,q.T=a}}Fe=1,lm(),am(),nm()}}function lm(){if(Fe===1){Fe=0;var e=ea,t=zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var a=J.p;J.p=2;var n=xe;xe|=4;try{Hh(t,e);var s=Gc,o=Gf(e.containerInfo),h=s.focusedElem,b=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&Yf(h.ownerDocument.documentElement,h)){if(b!==null&&hr(h)){var A=b.start,w=b.end;if(w===void 0&&(w=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(w,h.value.length);else{var L=h.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var _=z.getSelection(),W=h.textContent.length,ae=Math.min(b.start,W),Ae=b.end===void 0?ae:Math.min(b.end,W);!_.extend&&ae>Ae&&(o=Ae,Ae=ae,ae=o);var C=Lf(h,ae),j=Lf(h,Ae);if(C&&j&&(_.rangeCount!==1||_.anchorNode!==C.node||_.anchorOffset!==C.offset||_.focusNode!==j.node||_.focusOffset!==j.offset)){var R=L.createRange();R.setStart(C.node,C.offset),_.removeAllRanges(),ae>Ae?(_.addRange(R),_.extend(j.node,j.offset)):(R.setEnd(j.node,j.offset),_.addRange(R))}}}}for(L=[],_=h;_=_.parentNode;)_.nodeType===1&&L.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<L.length;h++){var Q=L[h];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}gs=!!Yc,Gc=Yc=null}finally{xe=n,J.p=a,q.T=l}}e.current=t,Fe=2}}function am(){if(Fe===2){Fe=0;var e=ea,t=zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var a=J.p;J.p=2;var n=xe;xe|=4;try{Mh(e,t.alternate,t)}finally{xe=n,J.p=a,q.T=l}}Fe=3}}function nm(){if(Fe===4||Fe===3){Fe=0,Mv();var e=ea,t=zn,l=Ol,a=Zh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,zn=ea=null,um(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Pl=null),ks(l),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(tu,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=q.T,n=J.p,J.p=2,q.T=null;try{for(var s=e.onRecoverableError,o=0;o<a.length;o++){var h=a[o];s(h.value,{componentStack:h.stack})}}finally{q.T=t,J.p=n}}(Ol&3)!==0&&is(),ul(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Rc?Hu++:(Hu=0,Rc=e):Hu=0,qu(0)}}function um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pu(t)))}function is(){return lm(),am(),nm(),im()}function im(){if(Fe!==5)return!1;var e=ea,t=Cc;Cc=0;var l=ks(Ol),a=q.T,n=J.p;try{J.p=32>l?32:l,q.T=null,l=Oc,Oc=null;var s=ea,o=Ol;if(Fe=0,zn=ea=null,Ol=0,(xe&6)!==0)throw Error(c(331));var h=xe;if(xe|=4,Yh(s.current),Bh(s,s.current,o,l),xe=h,qu(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(tu,s)}catch{}return!0}finally{J.p=n,q.T=a,um(e,t)}}function sm(e,t,l){t=Bt(l,t),t=ic(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(au(e,2),ul(e))}function Ne(e,t,l){if(e.tag===3)sm(e,e,l);else for(;t!==null;){if(t.tag===3){sm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=Bt(l,e),l=rh(2),a=Jl(t,l,2),a!==null&&(ch(l,a,t,e),au(a,2),ul(a));break}}t=t.return}}function Mc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new a0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(jc=!0,n.add(l),e=r0.bind(null,e,t,l),t.then(e,e))}function r0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(me&l)===l&&(qe===4||qe===3&&(me&62914560)===me&&300>Nt()-es?(xe&2)===0&&Mn(e,0):Nc|=l,An===me&&(An=0)),ul(e)}function rm(e,t){t===0&&(t=tf()),e=Ra(e,t),e!==null&&(au(e,t),ul(e))}function c0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),rm(e,l)}function o0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),rm(e,l)}function f0(e,t){return Zs(e,t)}var ss=null,Dn=null,_c=!1,rs=!1,Dc=!1,la=0;function ul(e){e!==Dn&&e.next===null&&(Dn===null?ss=Dn=e:Dn=Dn.next=e),rs=!0,_c||(_c=!0,h0())}function qu(e,t){if(!Dc&&rs){Dc=!0;do for(var l=!1,a=ss;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var o=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-Ct(42|e)+1)-1,s&=n&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,dm(a,s))}else s=me,s=di(a,a===Me?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||lu(a,s)||(l=!0,dm(a,s));a=a.next}while(l);Dc=!1}}function d0(){cm()}function cm(){rs=_c=!1;var e=0;la!==0&&j0()&&(e=la);for(var t=Nt(),l=null,a=ss;a!==null;){var n=a.next,s=om(a,t);s===0?(a.next=null,l===null?ss=n:l.next=n,n===null&&(Dn=l)):(l=a,(e!==0||(s&3)!==0)&&(rs=!0)),a=n}Fe!==0&&Fe!==5||qu(e),la!==0&&(la=0)}function om(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-Ct(s),h=1<<o,b=n[o];b===-1?((h&l)===0||(h&a)!==0)&&(n[o]=Qv(h,t)):b<=t&&(e.expiredLanes|=h),s&=~h}if(t=Me,l=me,l=di(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ks(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||lu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ks(a),ks(l)){case 2:case 8:l=Po;break;case 32:l=ri;break;case 268435456:l=ef;break;default:l=ri}return a=fm.bind(null,e),l=Zs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ks(a),e.callbackPriority=2,e.callbackNode=null,2}function fm(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(is()&&e.callbackNode!==l)return null;var a=me;return a=di(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Vh(e,a,t),om(e,Nt()),e.callbackNode!=null&&e.callbackNode===l?fm.bind(null,e):null)}function dm(e,t){if(is())return null;Vh(e,t,!0)}function h0(){T0(function(){(xe&6)!==0?Zs(Io,d0):cm()})}function Uc(){if(la===0){var e=gn;e===0&&(e=ci,ci<<=1,(ci&261888)===0&&(ci=256)),la=e}return la}function hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function mm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function m0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=hm((n[ht]||null).action),o=a.submitter;o&&(t=(t=o[ht]||null)?hm(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var h=new xi("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var b=o?mm(n,o):new FormData(n);ec(l,{pending:!0,data:b,method:n.method,action:s},null,b)}}else typeof s=="function"&&(h.preventDefault(),b=o?mm(n,o):new FormData(n),ec(l,{pending:!0,data:b,method:n.method,action:s},s,b))},currentTarget:n}]})}}for(var wc=0;wc<pr.length;wc++){var Hc=pr[wc],y0=Hc.toLowerCase(),v0=Hc[0].toUpperCase()+Hc.slice(1);kt(y0,"on"+v0)}kt(Kf,"onAnimationEnd"),kt(Vf,"onAnimationIteration"),kt(Jf,"onAnimationStart"),kt("dblclick","onDoubleClick"),kt("focusin","onFocus"),kt("focusout","onBlur"),kt(_p,"onTransitionRun"),kt(Dp,"onTransitionStart"),kt(Up,"onTransitionCancel"),kt(kf,"onTransitionEnd"),an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bu="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(" "),p0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bu));function ym(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var o=a.length-1;0<=o;o--){var h=a[o],b=h.instance,A=h.currentTarget;if(h=h.listener,b!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=A;try{s(n)}catch(w){ji(w)}n.currentTarget=null,s=b}else for(o=0;o<a.length;o++){if(h=a[o],b=h.instance,A=h.currentTarget,h=h.listener,b!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=A;try{s(n)}catch(w){ji(w)}n.currentTarget=null,s=b}}}}function de(e,t){var l=t[Fs];l===void 0&&(l=t[Fs]=new Set);var a=e+"__bubble";l.has(a)||(vm(t,e,2,!1),l.add(a))}function qc(e,t,l){var a=0;t&&(a|=4),vm(l,e,a,t)}var cs="_reactListening"+Math.random().toString(36).slice(2);function Bc(e){if(!e[cs]){e[cs]=!0,cf.forEach(function(l){l!=="selectionchange"&&(p0.has(l)||qc(l,!1,e),qc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cs]||(t[cs]=!0,qc("selectionchange",!1,t))}}function vm(e,t,l,a){switch(Km(t)){case 2:var n=K0;break;case 8:n=V0;break;default:n=Pc}l=n.bind(null,t,l,e),n=void 0,!nr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Qc(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var h=a.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=a.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=en(h),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){a=s=o;continue e}h=h.parentNode}}a=a.return}Sf(function(){var A=s,w=lr(l),L=[];e:{var z=Ff.get(e);if(z!==void 0){var _=xi,W=e;switch(e){case"keypress":if(gi(l)===0)break e;case"keydown":case"keyup":_=op;break;case"focusin":W="focus",_=rr;break;case"focusout":W="blur",_=rr;break;case"beforeblur":case"afterblur":_=rr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Iv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=hp;break;case Kf:case Vf:case Jf:_=tp;break;case kf:_=yp;break;case"scroll":case"scrollend":_=$v;break;case"wheel":_=pp;break;case"copy":case"cut":case"paste":_=ap;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Cf;break;case"toggle":case"beforetoggle":_=bp}var ae=(t&4)!==0,Ae=!ae&&(e==="scroll"||e==="scrollend"),C=ae?z!==null?z+"Capture":null:z;ae=[];for(var j=A,R;j!==null;){var Q=j;if(R=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||R===null||C===null||(Q=iu(j,C),Q!=null&&ae.push(Qu(j,Q,R))),Ae)break;j=j.return}0<ae.length&&(z=new _(z,W,null,l,w),L.push({event:z,listeners:ae}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",z&&l!==tr&&(W=l.relatedTarget||l.fromElement)&&(en(W)||W[Pa]))break e;if((_||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,_?(W=l.relatedTarget||l.toElement,_=A,W=W?en(W):null,W!==null&&(Ae=m(W),ae=W.tag,W!==Ae||ae!==5&&ae!==27&&ae!==6)&&(W=null)):(_=null,W=A),_!==W)){if(ae=Nf,Q="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Cf,Q="onPointerLeave",C="onPointerEnter",j="pointer"),Ae=_==null?z:uu(_),R=W==null?z:uu(W),z=new ae(Q,j+"leave",_,l,w),z.target=Ae,z.relatedTarget=R,Q=null,en(w)===A&&(ae=new ae(C,j+"enter",W,l,w),ae.target=R,ae.relatedTarget=Ae,Q=ae),Ae=Q,_&&W)t:{for(ae=g0,C=_,j=W,R=0,Q=C;Q;Q=ae(Q))R++;Q=0;for(var te=j;te;te=ae(te))Q++;for(;0<R-Q;)C=ae(C),R--;for(;0<Q-R;)j=ae(j),Q--;for(;R--;){if(C===j||j!==null&&C===j.alternate){ae=C;break t}C=ae(C),j=ae(j)}ae=null}else ae=null;_!==null&&pm(L,z,_,ae,!1),W!==null&&Ae!==null&&pm(L,Ae,W,ae,!0)}}e:{if(z=A?uu(A):window,_=z.nodeName&&z.nodeName.toLowerCase(),_==="select"||_==="input"&&z.type==="file")var ge=Uf;else if(_f(z))if(wf)ge=Ap;else{ge=Op;var P=Cp}else _=z.nodeName,!_||_.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?A&&er(A.elementType)&&(ge=Uf):ge=Rp;if(ge&&(ge=ge(e,A))){Df(L,ge,l,w);break e}P&&P(e,z,A),e==="focusout"&&A&&z.type==="number"&&A.memoizedProps.value!=null&&Ps(z,"number",z.value)}switch(P=A?uu(A):window,e){case"focusin":(_f(P)||P.contentEditable==="true")&&(on=P,mr=A,mu=null);break;case"focusout":mu=mr=on=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,Xf(L,l,w);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":Xf(L,l,w)}var re;if(or)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else cn?zf(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Of&&l.locale!=="ko"&&(cn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&cn&&(re=Ef()):(Ll=w,ur="value"in Ll?Ll.value:Ll.textContent,cn=!0)),P=os(A,ye),0<P.length&&(ye=new Tf(ye,e,null,l,w),L.push({event:ye,listeners:P}),re?ye.data=re:(re=Mf(l),re!==null&&(ye.data=re)))),(re=Sp?Ep(e,l):jp(e,l))&&(ye=os(A,"onBeforeInput"),0<ye.length&&(P=new Tf("onBeforeInput","beforeinput",null,l,w),L.push({event:P,listeners:ye}),P.data=re)),m0(L,e,A,l,w)}ym(L,t)})}function Qu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function os(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=iu(e,l),n!=null&&a.unshift(Qu(e,n,s)),n=iu(e,t),n!=null&&a.push(Qu(e,n,s))),e.tag===3)return a;e=e.return}return[]}function g0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pm(e,t,l,a,n){for(var s=t._reactName,o=[];l!==null&&l!==a;){var h=l,b=h.alternate,A=h.stateNode;if(h=h.tag,b!==null&&b===a)break;h!==5&&h!==26&&h!==27||A===null||(b=A,n?(A=iu(l,s),A!=null&&o.unshift(Qu(l,A,b))):n||(A=iu(l,s),A!=null&&o.push(Qu(l,A,b)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var b0=/\r\n?/g,x0=/\u0000|\uFFFD/g;function gm(e){return(typeof e=="string"?e:""+e).replace(b0,`
49
- `).replace(x0,"")}function bm(e,t){return t=gm(t),gm(e)===t}function Re(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||un(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&un(e,""+a);break;case"className":mi(e,"class",a);break;case"tabIndex":mi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(e,l,a);break;case"style":bf(e,a,s);break;case"data":if(t!=="object"){mi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=dl);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=vi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":de("beforetoggle",e),de("toggle",e),hi(e,"popover",a);break;case"xlinkActuate":fl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":hi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=kv.get(l)||l,hi(e,l,a))}}function Lc(e,t,l,a,n,s){switch(l){case"style":bf(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?un(e,a):(typeof a=="number"||typeof a=="bigint")&&un(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!of.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[ht]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):hi(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var o=l[s];if(o!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,s,o,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var h=s=o=n=null,b=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":o=w;break;case"checked":b=w;break;case"defaultChecked":A=w;break;case"value":s=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,t));break;default:Re(e,t,a,w,l,null)}}yf(e,s,h,b,A,o,n,!1);return;case"select":de("invalid",e),a=o=s=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":a=h;default:Re(e,t,n,h,l,null)}t=s,l=o,e.multiple=!!a,t!=null?nn(e,!!a,t,!1):l!=null&&nn(e,!!a,l,!0);return;case"textarea":de("invalid",e),s=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":a=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,o,h,l,null)}pf(e,a,n,s);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,b,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Bu.length;a++)de(Bu[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,A,a,l,null)}return;default:if(er(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&Lc(e,t,w,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Re(e,t,h,a,l,null))}function S0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,o=null,h=null,b=null,A=null,w=null;for(_ in l){var L=l[_];if(l.hasOwnProperty(_)&&L!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":b=L;default:a.hasOwnProperty(_)||Re(e,t,_,null,a,L)}}for(var z in a){var _=a[z];if(L=l[z],a.hasOwnProperty(z)&&(_!=null||L!=null))switch(z){case"type":s=_;break;case"name":n=_;break;case"checked":A=_;break;case"defaultChecked":w=_;break;case"value":o=_;break;case"defaultValue":h=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(c(137,t));break;default:_!==L&&Re(e,t,z,_,a,L)}}Is(e,o,h,b,A,w,s,n);return;case"select":_=o=h=z=null;for(s in l)if(b=l[s],l.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":_=b;default:a.hasOwnProperty(s)||Re(e,t,s,null,a,b)}for(n in a)if(s=a[n],b=l[n],a.hasOwnProperty(n)&&(s!=null||b!=null))switch(n){case"value":z=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==b&&Re(e,t,n,s,a,b)}t=h,l=o,a=_,z!=null?nn(e,!!l,z,!1):!!a!=!!l&&(t!=null?nn(e,!!l,t,!0):nn(e,!!l,l?[]:"",!1));return;case"textarea":_=z=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,a,n)}for(o in a)if(n=a[o],s=l[o],a.hasOwnProperty(o)&&(n!=null||s!=null))switch(o){case"value":z=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==s&&Re(e,t,o,n,a,s)}vf(e,z,_);return;case"option":for(var W in l)if(z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Re(e,t,W,null,a,z)}for(b in a)if(z=a[b],_=l[b],a.hasOwnProperty(b)&&z!==_&&(z!=null||_!=null))switch(b){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Re(e,t,b,z,a,_)}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 ae in l)z=l[ae],l.hasOwnProperty(ae)&&z!=null&&!a.hasOwnProperty(ae)&&Re(e,t,ae,null,a,z);for(A in a)if(z=a[A],_=l[A],a.hasOwnProperty(A)&&z!==_&&(z!=null||_!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Re(e,t,A,z,a,_)}return;default:if(er(t)){for(var Ae in l)z=l[Ae],l.hasOwnProperty(Ae)&&z!==void 0&&!a.hasOwnProperty(Ae)&&Lc(e,t,Ae,void 0,a,z);for(w in a)z=a[w],_=l[w],!a.hasOwnProperty(w)||z===_||z===void 0&&_===void 0||Lc(e,t,w,z,a,_);return}}for(var C in l)z=l[C],l.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Re(e,t,C,null,a,z);for(L in a)z=a[L],_=l[L],!a.hasOwnProperty(L)||z===_||z==null&&_==null||Re(e,t,L,z,a,_)}function xm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],s=n.transferSize,o=n.initiatorType,h=n.duration;if(s&&h&&xm(o)){for(o=0,h=n.responseEnd,a+=1;a<l.length;a++){var b=l[a],A=b.startTime;if(A>h)break;var w=b.transferSize,L=b.initiatorType;w&&xm(L)&&(b=b.responseEnd,o+=w*(b<h?1:(h-A)/(b-A)))}if(--a,t+=8*(s+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Yc=null,Gc=null;function fs(e){return e.nodeType===9?e:e.ownerDocument}function Sm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Em(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zc=null;function j0(){var e=window.event;return e&&e.type==="popstate"?e===Zc?!1:(Zc=e,!0):(Zc=null,!1)}var jm=typeof setTimeout=="function"?setTimeout:void 0,N0=typeof clearTimeout=="function"?clearTimeout:void 0,Nm=typeof Promise=="function"?Promise:void 0,T0=typeof queueMicrotask=="function"?queueMicrotask:typeof Nm<"u"?function(e){return Nm.resolve(null).then(e).catch(C0)}:jm;function C0(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Tm(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),qn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Lu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Lu(l);for(var s=l.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[nu]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=o}}else l==="body"&&Lu(e.ownerDocument.body);l=n}while(l);qn(t)}function Cm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Kc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Kc(l),$s(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function O0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function R0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Xt(e.nextSibling),e===null))return null;return e}function Om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function Vc(e){return e.data==="$?"||e.data==="$~"}function Jc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function A0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kc=null;function Rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Xt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Am(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function zm(e,t,l){switch(t=fs(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$s(e)}var Zt=new Map,Mm=new Set;function ds(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rl=J.d;J.d={f:z0,r:M0,D:_0,C:D0,L:U0,m:w0,X:q0,S:H0,M:B0};function z0(){var e=Rl.f(),t=as();return e||t}function M0(e){var t=tn(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):Rl.r(e)}var Un=typeof document>"u"?null:document;function _m(e,t,l){var a=Un;if(a&&typeof t=="string"&&t){var n=Ht(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Mm.has(n)||(Mm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function _0(e){Rl.D(e),_m("dns-prefetch",e,null)}function D0(e,t){Rl.C(e,t),_m("preconnect",e,t)}function U0(e,t,l){Rl.L(e,t,l);var a=Un;if(a&&e&&t){var n='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ht(l.imageSizes)+'"]')):n+='[href="'+Ht(e)+'"]';var s=n;switch(t){case"style":s=wn(e);break;case"script":s=Hn(e)}Zt.has(s)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Yu(s))||t==="script"&&a.querySelector(Gu(s))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function w0(e,t){Rl.m(e,t);var l=Un;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ht(a)+'"][href="'+Ht(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Hn(e)}if(!Zt.has(s)&&(e=p({rel:"modulepreload",href:e},t),Zt.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gu(s)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function H0(e,t,l){Rl.S(e,t,l);var a=Un;if(a&&e){var n=ln(a).hoistableStyles,s=wn(e);t=t||"default";var o=n.get(s);if(!o){var h={loading:0,preload:null};if(o=a.querySelector(Yu(s)))h.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(s))&&Fc(e,l);var b=o=a.createElement("link");We(b),nt(b,"link",e),b._p=new Promise(function(A,w){b.onload=A,b.onerror=w}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,hs(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(s,o)}}}function q0(e,t){Rl.X(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=p({src:e,async:!0},t),(t=Zt.get(n))&&$c(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function B0(e,t){Rl.M(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=p({src:e,async:!0,type:"module"},t),(t=Zt.get(n))&&$c(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function Dm(e,t,l,a){var n=(n=oe.current)?ds(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=ln(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var s=ln(n).hoistableStyles,o=s.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=n.querySelector(Yu(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),s||Q0(n,e,l,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hn(l),l=ln(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function wn(e){return'href="'+Ht(e)+'"'}function Yu(e){return'link[rel="stylesheet"]['+e+"]"}function Um(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Q0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Hn(e){return'[src="'+Ht(e)+'"]'}function Gu(e){return"script[async]"+e}function wm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ht(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),hs(a,l.precedence,e),t.instance=a;case"stylesheet":n=wn(l.href);var s=e.querySelector(Yu(n));if(s)return t.state.loading|=4,t.instance=s,We(s),s;a=Um(l),(n=Zt.get(n))&&Fc(a,n),s=(e.ownerDocument||e).createElement("link"),We(s);var o=s;return o._p=new Promise(function(h,b){o.onload=h,o.onerror=b}),nt(s,"link",a),t.state.loading|=4,hs(s,l.precedence,e),t.instance=s;case"script":return s=Hn(l.src),(n=e.querySelector(Gu(s)))?(t.instance=n,We(n),n):(a=l,(n=Zt.get(s))&&(a=p({},l),$c(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,hs(a,l.precedence,e));return t.instance}function hs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,o=0;o<a.length;o++){var h=a[o];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ms=null;function Hm(e,t,l){if(ms===null){var a=new Map,n=ms=new Map;n.set(l,a)}else n=ms,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var s=l[n];if(!(s[nu]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var h=a.get(o);h?h.push(s):a.set(o,[s])}}return a}function qm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function L0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=wn(a.href),s=t.querySelector(Yu(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,We(s);return}s=t.ownerDocument||t,a=Um(a),(n=Zt.get(n))&&Fc(a,n),s=s.createElement("link"),We(s);var o=s;o._p=new Promise(function(h,b){o.onload=h,o.onerror=b}),nt(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ys.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Wc=0;function G0(e,t){return e.stylesheets&&e.count===0&&ps(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Wc===0&&(Wc=62500*E0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Wc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vs=null;function ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vs=new Map,t.forEach(X0,e),vs=null,ys.call(e))}function X0(e,t){if(!(t.state.loading&4)){var l=vs.get(e);if(l)var a=l.get(null);else{l=new Map,vs.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var o=n[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),s=l.get(o)||a,s===a&&l.set(null,n),l.set(o,n),this.count++,a=ys.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Xu={$$typeof:B,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Z0(e,t,l,a,n,s,o,h,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.hiddenUpdates=Vs(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Qm(e,t,l,a,n,s,o,h,b,A,w,L){return e=new Z0(e,t,l,o,b,A,w,L,h),t=1,s===!0&&(t|=24),s=Rt(3,null,null,t),e.current=s,s.stateNode=e,t=zr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},Ur(s),e}function Lm(e){return e?(e=hn,e):hn}function Ym(e,t,l,a,n,s){n=Lm(n),a.context===null?a.context=n:a.pendingContext=n,a=Vl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=Jl(e,a,t),l!==null&&(bt(l,e,t),Su(l,e,t))}function Gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ic(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}function Xm(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&bt(t,e,67108864),Ic(e,67108864)}}function Zm(e){if(e.tag===13||e.tag===31){var t=Dt();t=Js(t);var l=Ra(e,t);l!==null&&bt(l,e,t),Ic(e,t)}}var gs=!0;function K0(e,t,l,a){var n=q.T;q.T=null;var s=J.p;try{J.p=2,Pc(e,t,l,a)}finally{J.p=s,q.T=n}}function V0(e,t,l,a){var n=q.T;q.T=null;var s=J.p;try{J.p=8,Pc(e,t,l,a)}finally{J.p=s,q.T=n}}function Pc(e,t,l,a){if(gs){var n=eo(a);if(n===null)Qc(e,t,a,bs,l),Vm(e,a);else if(k0(n,e,t,l,a))a.stopPropagation();else if(Vm(e,a),t&4&&-1<J0.indexOf(e)){for(;n!==null;){var s=tn(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=ja(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var b=1<<31-Ct(o);h.entanglements[1]|=b,o&=~b}ul(s),(xe&6)===0&&(ts=Nt()+500,qu(0))}}break;case 31:case 13:h=Ra(s,2),h!==null&&bt(h,s,2),as(),Ic(s,2)}if(s=eo(a),s===null&&Qc(e,t,a,bs,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Qc(e,t,a,null,l)}}function eo(e){return e=lr(e),to(e)}var bs=null;function to(e){if(bs=null,e=en(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bs=e,null}function Km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_v()){case Io:return 2;case Po:return 8;case ri:case Dv:return 32;case ef:return 268435456;default:return 32}default:return 32}}var lo=!1,na=null,ua=null,ia=null,Zu=new Map,Ku=new Map,sa=[],J0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vm(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(t.pointerId)}}function Vu(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=tn(t),t!==null&&Xm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function k0(e,t,l,a,n){switch(t){case"focusin":return na=Vu(na,e,t,l,a,n),!0;case"dragenter":return ua=Vu(ua,e,t,l,a,n),!0;case"mouseover":return ia=Vu(ia,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return Zu.set(s,Vu(Zu.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Ku.set(s,Vu(Ku.get(s)||null,e,t,l,a,n)),!0}return!1}function Jm(e){var t=en(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,sf(e.priority,function(){Zm(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,sf(e.priority,function(){Zm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=eo(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);tr=a,l.target.dispatchEvent(a),tr=null}else return t=tn(l),t!==null&&Xm(t),e.blockedOn=l,!1;t.shift()}return!0}function km(e,t,l){xs(e)&&l.delete(t)}function F0(){lo=!1,na!==null&&xs(na)&&(na=null),ua!==null&&xs(ua)&&(ua=null),ia!==null&&xs(ia)&&(ia=null),Zu.forEach(km),Ku.forEach(km)}function Ss(e,t){e.blockedOn===t&&(e.blockedOn=null,lo||(lo=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,F0)))}var Es=null;function Fm(e){Es!==e&&(Es=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Es===e&&(Es=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(to(a||l)===null)continue;break}var s=tn(l);s!==null&&(e.splice(t,3),t-=3,ec(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function qn(e){function t(b){return Ss(b,e)}na!==null&&Ss(na,e),ua!==null&&Ss(ua,e),ia!==null&&Ss(ia,e),Zu.forEach(t),Ku.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)Jm(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],o=n[ht]||null;if(typeof s=="function")o||Fm(l);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,o=s[ht]||null)h=o.formAction;else if(to(n)!==null)continue}else h=o.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Fm(l)}}}function $m(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ao(e){this._internalRoot=e}js.prototype.render=ao.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Dt();Ym(l,a,e,t,null,null)},js.prototype.unmount=ao.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ym(e.current,2,null,e,null,null),as(),t[Pa]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=uf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&Jm(e)}};var Wm=i.version;if(Wm!=="19.2.4")throw Error(c(527,Wm,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var $0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{tu=Ns.inject($0),Tt=Ns}catch{}}return Fu.createRoot=function(e,t){if(!d(e))throw Error(c(299));var l=!1,a="",n=nh,s=uh,o=ih;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Qm(e,1,!1,null,null,l,a,null,n,s,o,$m),e[Pa]=t.current,Bc(e),new ao(t)},Fu.hydrateRoot=function(e,t,l){if(!d(e))throw Error(c(299));var a=!1,n="",s=nh,o=uh,h=ih,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=Qm(e,1,!0,t,l??null,a,n,b,s,o,h,$m),t.context=Lm(null),l=t.current,a=Dt(),a=Js(a),n=Vl(a),n.callback=null,Jl(l,n,a),l=a,t.current.lanes=l,au(t,l),ul(t),e[Pa]=t.current,Bc(e),new js(t)},Fu.version="19.2.4",Fu}var ry;function rg(){if(ry)return so.exports;ry=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),so.exports=sg(),so.exports}var cg=rg(),$n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},og={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},oa,wo,Oy,fg=(Oy=class{constructor(){ee(this,oa,og);ee(this,wo,!1)}setTimeoutProvider(u){$(this,oa,u)}setTimeout(u,i){return S(this,oa).setTimeout(u,i)}clearTimeout(u){S(this,oa).clearTimeout(u)}setInterval(u,i){return S(this,oa).setInterval(u,i)}clearInterval(u){S(this,oa).clearInterval(u)}},oa=new WeakMap,wo=new WeakMap,Oy),Ya=new fg;function dg(u){setTimeout(u,0)}var Wa=typeof window>"u"||"Deno"in globalThis;function ft(){}function hg(u,i){return typeof u=="function"?u(i):u}function yo(u){return typeof u=="number"&&u>=0&&u!==1/0}function By(u,i){return Math.max(u+(i||0)-Date.now(),0)}function xa(u,i){return typeof u=="function"?u(i):u}function Vt(u,i){return typeof u=="function"?u(i):u}function cy(u,i){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:g}=u;if(y){if(c){if(i.queryHash!==qo(y,i.options))return!1}else if(!Iu(i.queryKey,y))return!1}if(r!=="all"){const x=i.isActive();if(r==="active"&&!x||r==="inactive"&&x)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||d&&d!==i.state.fetchStatus||m&&!m(i))}function oy(u,i){const{exact:r,status:c,predicate:d,mutationKey:m}=u;if(m){if(!i.options.mutationKey)return!1;if(r){if(Ia(i.options.mutationKey)!==Ia(m))return!1}else if(!Iu(i.options.mutationKey,m))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function qo(u,i){return((i==null?void 0:i.queryKeyHashFn)||Ia)(u)}function Ia(u){return JSON.stringify(u,(i,r)=>vo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Iu(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(r=>Iu(u[r],i[r])):!1}var mg=Object.prototype.hasOwnProperty;function Qy(u,i,r=0){if(u===i)return u;if(r>500)return i;const c=fy(u)&&fy(i);if(!c&&!(vo(u)&&vo(i)))return i;const m=(c?u:Object.keys(u)).length,y=c?i:Object.keys(i),g=y.length,x=c?new Array(g):{};let v=0;for(let N=0;N<g;N++){const p=c?N:y[N],M=u[p],U=i[p];if(M===U){x[p]=M,(c?N<m:mg.call(u,p))&&v++;continue}if(M===null||U===null||typeof M!="object"||typeof U!="object"){x[p]=U;continue}const K=Qy(M,U,r+1);x[p]=K,K===M&&v++}return m===g&&v===m?u:x}function Ds(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const r in u)if(u[r]!==i[r])return!1;return!0}function fy(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function vo(u){if(!dy(u))return!1;const i=u.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!dy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function dy(u){return Object.prototype.toString.call(u)==="[object Object]"}function yg(u){return new Promise(i=>{Ya.setTimeout(i,u)})}function po(u,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(u,i):r.structuralSharing!==!1?Qy(u,i):i}function vg(u,i,r=0){const c=[...u,i];return r&&c.length>r?c.slice(1):c}function pg(u,i,r=0){const c=[i,...u];return r&&c.length>r?c.slice(0,-1):c}var Bo=Symbol();function Ly(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===Bo?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Qo(u,i){return typeof u=="function"?u(...i):!!u}function gg(u,i,r){let c=!1,d;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),u}var Ga,fa,Bn,Ry,bg=(Ry=class extends $n{constructor(){super();ee(this,Ga);ee(this,fa);ee(this,Bn);$(this,Bn,i=>{if(!Wa&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,fa)||this.setEventListener(S(this,Bn))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,fa))==null||i.call(this),$(this,fa,void 0))}setEventListener(i){var r;$(this,Bn,i),(r=S(this,fa))==null||r.call(this),$(this,fa,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){S(this,Ga)!==i&&($(this,Ga,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof S(this,Ga)=="boolean"?S(this,Ga):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ga=new WeakMap,fa=new WeakMap,Bn=new WeakMap,Ry),Lo=new bg;function go(){let u,i;const r=new Promise((d,m)=>{u=d,i=m});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),u(d)},r.reject=d=>{c({status:"rejected",reason:d}),i(d)},r}var xg=dg;function Sg(){let u=[],i=0,r=g=>{g()},c=g=>{g()},d=xg;const m=g=>{i?u.push(g):d(()=>{r(g)})},y=()=>{const g=u;u=[],g.length&&d(()=>{c(()=>{g.forEach(x=>{r(x)})})})};return{batch:g=>{let x;i++;try{x=g()}finally{i--,i||y()}return x},batchCalls:g=>(...x)=>{m(()=>{g(...x)})},schedule:m,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{d=g}}}var $e=Sg(),Qn,da,Ln,Ay,Eg=(Ay=class extends $n{constructor(){super();ee(this,Qn,!0);ee(this,da);ee(this,Ln);$(this,Ln,i=>{if(!Wa&&window.addEventListener){const r=()=>i(!0),c=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){S(this,da)||this.setEventListener(S(this,Ln))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,da))==null||i.call(this),$(this,da,void 0))}setEventListener(i){var r;$(this,Ln,i),(r=S(this,da))==null||r.call(this),$(this,da,i(this.setOnline.bind(this)))}setOnline(i){S(this,Qn)!==i&&($(this,Qn,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return S(this,Qn)}},Qn=new WeakMap,da=new WeakMap,Ln=new WeakMap,Ay),Us=new Eg;function jg(u){return Math.min(1e3*2**u,3e4)}function Yy(u){return(u??"online")==="online"?Us.isOnline():!0}var bo=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function Gy(u){let i=!1,r=0,c;const d=go(),m=()=>d.status!=="pending",y=O=>{var H;if(!m()){const D=new bo(O);M(D),(H=u.onCancel)==null||H.call(u,D)}},g=()=>{i=!0},x=()=>{i=!1},v=()=>Lo.isFocused()&&(u.networkMode==="always"||Us.isOnline())&&u.canRun(),N=()=>Yy(u.networkMode)&&u.canRun(),p=O=>{m()||(c==null||c(),d.resolve(O))},M=O=>{m()||(c==null||c(),d.reject(O))},U=()=>new Promise(O=>{var H;c=D=>{(m()||v())&&O(D)},(H=u.onPause)==null||H.call(u)}).then(()=>{var O;c=void 0,m()||(O=u.onContinue)==null||O.call(u)}),K=()=>{if(m())return;let O;const H=r===0?u.initialPromise:void 0;try{O=H??u.fn()}catch(D){O=Promise.reject(D)}Promise.resolve(O).then(p).catch(D=>{var V;if(m())return;const Y=u.retry??(Wa?0:3),B=u.retryDelay??jg,Z=typeof B=="function"?B(r,D):B,G=Y===!0||typeof Y=="number"&&r<Y||typeof Y=="function"&&Y(r,D);if(i||!G){M(D);return}r++,(V=u.onFail)==null||V.call(u,r,D),yg(Z).then(()=>v()?void 0:U()).then(()=>{i?M(D):K()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:x,canStart:N,start:()=>(N()?K():U().then(K),d)}}var Xa,zy,Xy=(zy=class{constructor(){ee(this,Xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yo(this.gcTime)&&$(this,Xa,Ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(Wa?1/0:300*1e3))}clearGcTimeout(){S(this,Xa)&&(Ya.clearTimeout(S(this,Xa)),$(this,Xa,void 0))}},Xa=new WeakMap,zy),Za,Yn,Kt,Ka,Pe,ei,Va,Wt,Al,My,Ng=(My=class extends Xy{constructor(i){super();ee(this,Wt);ee(this,Za);ee(this,Yn);ee(this,Kt);ee(this,Ka);ee(this,Pe);ee(this,ei);ee(this,Va);$(this,Va,!1),$(this,ei,i.defaultOptions),this.setOptions(i.options),this.observers=[],$(this,Ka,i.client),$(this,Kt,S(this,Ka).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,$(this,Za,my(this.options)),this.state=i.state??S(this,Za),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=S(this,Pe))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,ei),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=my(this.options);r.data!==void 0&&(this.setState(hy(r.data,r.dataUpdatedAt)),$(this,Za,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Kt).remove(this)}setData(i,r){const c=po(this.state.data,i,this.options);return ce(this,Wt,Al).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(i,r){ce(this,Wt,Al).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var c,d;const r=(c=S(this,Pe))==null?void 0:c.promise;return(d=S(this,Pe))==null||d.cancel(i),r?r.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Za))}isActive(){return this.observers.some(i=>Vt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>xa(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!By(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}onOnline(){var r;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(this,Kt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(S(this,Pe)&&(S(this,Va)?S(this,Pe).cancel({revert:!0}):S(this,Pe).cancelRetry()),this.scheduleGc()),S(this,Kt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,Wt,Al).call(this,{type:"invalidate"})}async fetch(i,r){var x,v,N,p,M,U,K,O,H,D,Y,B;if(this.state.fetchStatus!=="idle"&&((x=S(this,Pe))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Pe))return S(this,Pe).continueRetry(),S(this,Pe).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Z=this.observers.find(G=>G.options.queryFn);Z&&this.setOptions(Z.options)}const c=new AbortController,d=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>($(this,Va,!0),c.signal)})},m=()=>{const Z=Ly(this.options,r),V=(()=>{const k={client:S(this,Ka),queryKey:this.queryKey,meta:this.meta};return d(k),k})();return $(this,Va,!1),this.options.persister?this.options.persister(Z,V,this):Z(V)},g=(()=>{const Z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Ka),state:this.state,fetchFn:m};return d(Z),Z})();(v=this.options.behavior)==null||v.onFetch(g,this),$(this,Yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((N=g.fetchOptions)==null?void 0:N.meta))&&ce(this,Wt,Al).call(this,{type:"fetch",meta:(p=g.fetchOptions)==null?void 0:p.meta}),$(this,Pe,Gy({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:Z=>{Z instanceof bo&&Z.revert&&this.setState({...S(this,Yn),fetchStatus:"idle"}),c.abort()},onFail:(Z,G)=>{ce(this,Wt,Al).call(this,{type:"failed",failureCount:Z,error:G})},onPause:()=>{ce(this,Wt,Al).call(this,{type:"pause"})},onContinue:()=>{ce(this,Wt,Al).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const Z=await S(this,Pe).start();if(Z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Z),(U=(M=S(this,Kt).config).onSuccess)==null||U.call(M,Z,this),(O=(K=S(this,Kt).config).onSettled)==null||O.call(K,Z,this.state.error,this),Z}catch(Z){if(Z instanceof bo){if(Z.silent)return S(this,Pe).promise;if(Z.revert){if(this.state.data===void 0)throw Z;return this.state.data}}throw ce(this,Wt,Al).call(this,{type:"error",error:Z}),(D=(H=S(this,Kt).config).onError)==null||D.call(H,Z,this),(B=(Y=S(this,Kt).config).onSettled)==null||B.call(Y,this.state.data,Z,this),Z}finally{this.scheduleGc()}}},Za=new WeakMap,Yn=new WeakMap,Kt=new WeakMap,Ka=new WeakMap,Pe=new WeakMap,ei=new WeakMap,Va=new WeakMap,Wt=new WeakSet,Al=function(i){const r=c=>{switch(i.type){case"failed":return{...c,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Zy(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...hy(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,Yn,i.manual?d:void 0),d;case"error":const m=i.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=r(this.state),$e.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,Kt).notify({query:this,type:"updated",action:i})})},My);function Zy(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yy(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function hy(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function my(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,r=i!==void 0,c=r?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var xt,pe,ti,ot,Ja,Gn,zl,ha,li,Xn,Zn,ka,Fa,ma,Kn,Ee,Wu,xo,So,Eo,jo,No,To,Co,Ky,_y,Tg=(_y=class extends $n{constructor(i,r){super();ee(this,Ee);ee(this,xt);ee(this,pe);ee(this,ti);ee(this,ot);ee(this,Ja);ee(this,Gn);ee(this,zl);ee(this,ha);ee(this,li);ee(this,Xn);ee(this,Zn);ee(this,ka);ee(this,Fa);ee(this,ma);ee(this,Kn,new Set);this.options=r,$(this,xt,i),$(this,ha,null),$(this,zl,go()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pe).addObserver(this),yy(S(this,pe),this.options)?ce(this,Ee,Wu).call(this):this.updateResult(),ce(this,Ee,jo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oo(S(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oo(S(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ee,No).call(this),ce(this,Ee,To).call(this),S(this,pe).removeObserver(this)}setOptions(i){const r=this.options,c=S(this,pe);if(this.options=S(this,xt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,S(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ee,Co).call(this),S(this,pe).setOptions(this.options),r._defaulted&&!Ds(this.options,r)&&S(this,xt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pe),observer:this});const d=this.hasListeners();d&&vy(S(this,pe),c,this.options,r)&&ce(this,Ee,Wu).call(this),this.updateResult(),d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||xa(this.options.staleTime,S(this,pe))!==xa(r.staleTime,S(this,pe)))&&ce(this,Ee,xo).call(this);const m=ce(this,Ee,So).call(this);d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||m!==S(this,ma))&&ce(this,Ee,Eo).call(this,m)}getOptimisticResult(i){const r=S(this,xt).getQueryCache().build(S(this,xt),i),c=this.createResult(r,i);return Og(this,c)&&($(this,ot,c),$(this,Gn,this.options),$(this,Ja,S(this,pe).state)),c}getCurrentResult(){return S(this,ot)}trackResult(i,r){return new Proxy(i,{get:(c,d)=>(this.trackProp(d),r==null||r(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,zl).status==="pending"&&S(this,zl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){S(this,Kn).add(i)}getCurrentQuery(){return S(this,pe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=S(this,xt).defaultQueryOptions(i),c=S(this,xt).getQueryCache().build(S(this,xt),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(i){return ce(this,Ee,Wu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ot)))}createResult(i,r){var he;const c=S(this,pe),d=this.options,m=S(this,ot),y=S(this,Ja),g=S(this,Gn),v=i!==c?i.state:S(this,ti),{state:N}=i;let p={...N},M=!1,U;if(r._optimisticResults){const Te=this.hasListeners(),Je=!Te&&yy(i,r),ke=Te&&vy(i,c,r,d);(Je||ke)&&(p={...p,...Zy(N.data,i.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:K,errorUpdatedAt:O,status:H}=p;U=p.data;let D=!1;if(r.placeholderData!==void 0&&U===void 0&&H==="pending"){let Te;m!=null&&m.isPlaceholderData&&r.placeholderData===(g==null?void 0:g.placeholderData)?(Te=m.data,D=!0):Te=typeof r.placeholderData=="function"?r.placeholderData((he=S(this,Zn))==null?void 0:he.state.data,S(this,Zn)):r.placeholderData,Te!==void 0&&(H="success",U=po(m==null?void 0:m.data,Te,r),M=!0)}if(r.select&&U!==void 0&&!D)if(m&&U===(y==null?void 0:y.data)&&r.select===S(this,li))U=S(this,Xn);else try{$(this,li,r.select),U=r.select(U),U=po(m==null?void 0:m.data,U,r),$(this,Xn,U),$(this,ha,null)}catch(Te){$(this,ha,Te)}S(this,ha)&&(K=S(this,ha),U=S(this,Xn),O=Date.now(),H="error");const Y=p.fetchStatus==="fetching",B=H==="pending",Z=H==="error",G=B&&Y,V=U!==void 0,le={status:H,fetchStatus:p.fetchStatus,isPending:B,isSuccess:H==="success",isError:Z,isInitialLoading:G,isLoading:G,data:U,dataUpdatedAt:p.dataUpdatedAt,error:K,errorUpdatedAt:O,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>v.dataUpdateCount||p.errorUpdateCount>v.errorUpdateCount,isFetching:Y,isRefetching:Y&&!B,isLoadingError:Z&&!V,isPaused:p.fetchStatus==="paused",isPlaceholderData:M,isRefetchError:Z&&V,isStale:Yo(i,r),refetch:this.refetch,promise:S(this,zl),isEnabled:Vt(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Te=le.data!==void 0,Je=le.status==="error"&&!Te,ke=ut=>{Je?ut.reject(le.error):Te&&ut.resolve(le.data)},tl=()=>{const ut=$(this,zl,le.promise=go());ke(ut)},dt=S(this,zl);switch(dt.status){case"pending":i.queryHash===c.queryHash&&ke(dt);break;case"fulfilled":(Je||le.data!==dt.value)&&tl();break;case"rejected":(!Je||le.error!==dt.reason)&&tl();break}}return le}updateResult(){const i=S(this,ot),r=this.createResult(S(this,pe),this.options);if($(this,Ja,S(this,pe).state),$(this,Gn,this.options),S(this,Ja).data!==void 0&&$(this,Zn,S(this,pe)),Ds(r,i))return;$(this,ot,r);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,m=typeof d=="function"?d():d;if(m==="all"||!m&&!S(this,Kn).size)return!0;const y=new Set(m??S(this,Kn));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,ot)).some(g=>{const x=g;return S(this,ot)[x]!==i[x]&&y.has(x)})};ce(this,Ee,Ky).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ee,jo).call(this)}},xt=new WeakMap,pe=new WeakMap,ti=new WeakMap,ot=new WeakMap,Ja=new WeakMap,Gn=new WeakMap,zl=new WeakMap,ha=new WeakMap,li=new WeakMap,Xn=new WeakMap,Zn=new WeakMap,ka=new WeakMap,Fa=new WeakMap,ma=new WeakMap,Kn=new WeakMap,Ee=new WeakSet,Wu=function(i){ce(this,Ee,Co).call(this);let r=S(this,pe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(ft)),r},xo=function(){ce(this,Ee,No).call(this);const i=xa(this.options.staleTime,S(this,pe));if(Wa||S(this,ot).isStale||!yo(i))return;const c=By(S(this,ot).dataUpdatedAt,i)+1;$(this,ka,Ya.setTimeout(()=>{S(this,ot).isStale||this.updateResult()},c))},So=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pe)):this.options.refetchInterval)??!1},Eo=function(i){ce(this,Ee,To).call(this),$(this,ma,i),!(Wa||Vt(this.options.enabled,S(this,pe))===!1||!yo(S(this,ma))||S(this,ma)===0)&&$(this,Fa,Ya.setInterval(()=>{(this.options.refetchIntervalInBackground||Lo.isFocused())&&ce(this,Ee,Wu).call(this)},S(this,ma)))},jo=function(){ce(this,Ee,xo).call(this),ce(this,Ee,Eo).call(this,ce(this,Ee,So).call(this))},No=function(){S(this,ka)&&(Ya.clearTimeout(S(this,ka)),$(this,ka,void 0))},To=function(){S(this,Fa)&&(Ya.clearInterval(S(this,Fa)),$(this,Fa,void 0))},Co=function(){const i=S(this,xt).getQueryCache().build(S(this,xt),this.options);if(i===S(this,pe))return;const r=S(this,pe);$(this,pe,i),$(this,ti,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},Ky=function(i){$e.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(S(this,ot))}),S(this,xt).getQueryCache().notify({query:S(this,pe),type:"observerResultsUpdated"})})},_y);function Cg(u,i){return Vt(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&i.retryOnMount===!1)}function yy(u,i){return Cg(u,i)||u.state.data!==void 0&&Oo(u,i,i.refetchOnMount)}function Oo(u,i,r){if(Vt(i.enabled,u)!==!1&&xa(i.staleTime,u)!=="static"){const c=typeof r=="function"?r(u):r;return c==="always"||c!==!1&&Yo(u,i)}return!1}function vy(u,i,r,c){return(u!==i||Vt(c.enabled,u)===!1)&&(!r.suspense||u.state.status!=="error")&&Yo(u,r)}function Yo(u,i){return Vt(i.enabled,u)!==!1&&u.isStaleByTime(xa(i.staleTime,u))}function Og(u,i){return!Ds(u.getCurrentResult(),i)}function py(u){return{onFetch:(i,r)=>{var N,p,M,U,K;const c=i.options,d=(M=(p=(N=i.fetchOptions)==null?void 0:N.meta)==null?void 0:p.fetchMore)==null?void 0:M.direction,m=((U=i.state.data)==null?void 0:U.pages)||[],y=((K=i.state.data)==null?void 0:K.pageParams)||[];let g={pages:[],pageParams:[]},x=0;const v=async()=>{let O=!1;const H=B=>{gg(B,()=>i.signal,()=>O=!0)},D=Ly(i.options,i.fetchOptions),Y=async(B,Z,G)=>{if(O)return Promise.reject();if(Z==null&&B.pages.length)return Promise.resolve(B);const k=(()=>{const Je={client:i.client,queryKey:i.queryKey,pageParam:Z,direction:G?"backward":"forward",meta:i.options.meta};return H(Je),Je})(),le=await D(k),{maxPages:he}=i.options,Te=G?pg:vg;return{pages:Te(B.pages,le,he),pageParams:Te(B.pageParams,Z,he)}};if(d&&m.length){const B=d==="backward",Z=B?Rg:gy,G={pages:m,pageParams:y},V=Z(c,G);g=await Y(G,V,B)}else{const B=u??m.length;do{const Z=x===0?y[0]??c.initialPageParam:gy(c,g);if(x>0&&Z==null)break;g=await Y(g,Z),x++}while(x<B)}return g};i.options.persister?i.fetchFn=()=>{var O,H;return(H=(O=i.options).persister)==null?void 0:H.call(O,v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=v}}}function gy(u,{pages:i,pageParams:r}){const c=i.length-1;return i.length>0?u.getNextPageParam(i[c],i,r[c],r):void 0}function Rg(u,{pages:i,pageParams:r}){var c;return i.length>0?(c=u.getPreviousPageParam)==null?void 0:c.call(u,i[0],i,r[0],r):void 0}var ai,sl,st,$a,rl,ca,Dy,Ag=(Dy=class extends Xy{constructor(i){super();ee(this,rl);ee(this,ai);ee(this,sl);ee(this,st);ee(this,$a);$(this,ai,i.client),this.mutationId=i.mutationId,$(this,st,i.mutationCache),$(this,sl,[]),this.state=i.state||Vy(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,sl).includes(i)||(S(this,sl).push(i),this.clearGcTimeout(),S(this,st).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){$(this,sl,S(this,sl).filter(r=>r!==i)),this.scheduleGc(),S(this,st).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,sl).length||(this.state.status==="pending"?this.scheduleGc():S(this,st).remove(this))}continue(){var i;return((i=S(this,$a))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,g,x,v,N,p,M,U,K,O,H,D,Y,B,Z,G,V,k;const r=()=>{ce(this,rl,ca).call(this,{type:"continue"})},c={client:S(this,ai),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,$a,Gy({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(le,he)=>{ce(this,rl,ca).call(this,{type:"failed",failureCount:le,error:he})},onPause:()=>{ce(this,rl,ca).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,st).canRun(this)}));const d=this.state.status==="pending",m=!S(this,$a).canStart();try{if(d)r();else{ce(this,rl,ca).call(this,{type:"pending",variables:i,isPaused:m}),S(this,st).config.onMutate&&await S(this,st).config.onMutate(i,this,c);const he=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,i,c));he!==this.state.context&&ce(this,rl,ca).call(this,{type:"pending",context:he,variables:i,isPaused:m})}const le=await S(this,$a).start();return await((v=(x=S(this,st).config).onSuccess)==null?void 0:v.call(x,le,i,this.state.context,this,c)),await((p=(N=this.options).onSuccess)==null?void 0:p.call(N,le,i,this.state.context,c)),await((U=(M=S(this,st).config).onSettled)==null?void 0:U.call(M,le,null,this.state.variables,this.state.context,this,c)),await((O=(K=this.options).onSettled)==null?void 0:O.call(K,le,null,i,this.state.context,c)),ce(this,rl,ca).call(this,{type:"success",data:le}),le}catch(le){try{await((D=(H=S(this,st).config).onError)==null?void 0:D.call(H,le,i,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((B=(Y=this.options).onError)==null?void 0:B.call(Y,le,i,this.state.context,c))}catch(he){Promise.reject(he)}try{await((G=(Z=S(this,st).config).onSettled)==null?void 0:G.call(Z,void 0,le,this.state.variables,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((k=(V=this.options).onSettled)==null?void 0:k.call(V,void 0,le,i,this.state.context,c))}catch(he){Promise.reject(he)}throw ce(this,rl,ca).call(this,{type:"error",error:le}),le}finally{S(this,st).runNext(this)}}},ai=new WeakMap,sl=new WeakMap,st=new WeakMap,$a=new WeakMap,rl=new WeakSet,ca=function(i){const r=c=>{switch(i.type){case"failed":return{...c,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...c,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:i.error,failureCount:c.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),$e.batch(()=>{S(this,sl).forEach(c=>{c.onMutationUpdate(i)}),S(this,st).notify({mutation:this,type:"updated",action:i})})},Dy);function Vy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ml,It,ni,Uy,zg=(Uy=class extends $n{constructor(i={}){super();ee(this,Ml);ee(this,It);ee(this,ni);this.config=i,$(this,Ml,new Set),$(this,It,new Map),$(this,ni,0)}build(i,r,c){const d=new Ag({client:i,mutationCache:this,mutationId:++Ts(this,ni)._,options:i.defaultMutationOptions(r),state:c});return this.add(d),d}add(i){S(this,Ml).add(i);const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);c?c.push(i):S(this,It).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,Ml).delete(i)){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&S(this,It).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const r=Cs(i);if(typeof r=="string"){const d=(c=S(this,It).get(r))==null?void 0:c.find(m=>m!==i&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{S(this,Ml).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,Ml).clear(),S(this,It).clear()})}getAll(){return Array.from(S(this,Ml))}find(i){const r={exact:!0,...i};return this.getAll().find(c=>oy(r,c))}findAll(i={}){return this.getAll().filter(r=>oy(i,r))}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return $e.batch(()=>Promise.all(i.map(r=>r.continue().catch(ft))))}},Ml=new WeakMap,It=new WeakMap,ni=new WeakMap,Uy);function Cs(u){var i;return(i=u.options.scope)==null?void 0:i.id}var _l,ya,St,Dl,wl,As,Ro,wy,Mg=(wy=class extends $n{constructor(r,c){super();ee(this,wl);ee(this,_l);ee(this,ya);ee(this,St);ee(this,Dl);$(this,_l,r),this.setOptions(c),this.bindMethods(),ce(this,wl,As).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var d;const c=this.options;this.options=S(this,_l).defaultMutationOptions(r),Ds(this.options,c)||S(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,St),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Ia(c.mutationKey)!==Ia(this.options.mutationKey)?this.reset():((d=S(this,St))==null?void 0:d.state.status)==="pending"&&S(this,St).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=S(this,St))==null||r.removeObserver(this)}onMutationUpdate(r){ce(this,wl,As).call(this),ce(this,wl,Ro).call(this,r)}getCurrentResult(){return S(this,ya)}reset(){var r;(r=S(this,St))==null||r.removeObserver(this),$(this,St,void 0),ce(this,wl,As).call(this),ce(this,wl,Ro).call(this)}mutate(r,c){var d;return $(this,Dl,c),(d=S(this,St))==null||d.removeObserver(this),$(this,St,S(this,_l).getMutationCache().build(S(this,_l),this.options)),S(this,St).addObserver(this),S(this,St).execute(r)}},_l=new WeakMap,ya=new WeakMap,St=new WeakMap,Dl=new WeakMap,wl=new WeakSet,As=function(){var c;const r=((c=S(this,St))==null?void 0:c.state)??Vy();$(this,ya,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Ro=function(r){$e.batch(()=>{var c,d,m,y,g,x,v,N;if(S(this,Dl)&&this.hasListeners()){const p=S(this,ya).variables,M=S(this,ya).context,U={client:S(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(d=(c=S(this,Dl)).onSuccess)==null||d.call(c,r.data,p,M,U)}catch(K){Promise.reject(K)}try{(y=(m=S(this,Dl)).onSettled)==null||y.call(m,r.data,null,p,M,U)}catch(K){Promise.reject(K)}}else if((r==null?void 0:r.type)==="error"){try{(x=(g=S(this,Dl)).onError)==null||x.call(g,r.error,p,M,U)}catch(K){Promise.reject(K)}try{(N=(v=S(this,Dl)).onSettled)==null||N.call(v,void 0,r.error,p,M,U)}catch(K){Promise.reject(K)}}}this.listeners.forEach(p=>{p(S(this,ya))})})},wy),cl,Hy,_g=(Hy=class extends $n{constructor(i={}){super();ee(this,cl);this.config=i,$(this,cl,new Map)}build(i,r,c){const d=r.queryKey,m=r.queryHash??qo(d,r);let y=this.get(m);return y||(y=new Ng({client:i,queryKey:d,queryHash:m,options:i.defaultQueryOptions(r),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(y)),y}add(i){S(this,cl).has(i.queryHash)||(S(this,cl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=S(this,cl).get(i.queryHash);r&&(i.destroy(),r===i&&S(this,cl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){$e.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,cl).get(i)}getAll(){return[...S(this,cl).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(c=>cy(r,c))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(c=>cy(i,c)):r}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},cl=new WeakMap,Hy),Be,va,pa,Vn,Jn,ga,kn,Fn,qy,Dg=(qy=class{constructor(u={}){ee(this,Be);ee(this,va);ee(this,pa);ee(this,Vn);ee(this,Jn);ee(this,ga);ee(this,kn);ee(this,Fn);$(this,Be,u.queryCache||new _g),$(this,va,u.mutationCache||new zg),$(this,pa,u.defaultOptions||{}),$(this,Vn,new Map),$(this,Jn,new Map),$(this,ga,0)}mount(){Ts(this,ga)._++,S(this,ga)===1&&($(this,kn,Lo.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onFocus())})),$(this,Fn,Us.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onOnline())})))}unmount(){var u,i;Ts(this,ga)._--,S(this,ga)===0&&((u=S(this,kn))==null||u.call(this),$(this,kn,void 0),(i=S(this,Fn))==null||i.call(this),$(this,Fn,void 0))}isFetching(u){return S(this,Be).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,va).findAll({...u,status:"pending"}).length}getQueryData(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),r=S(this,Be).build(this,i),c=r.state.data;return c===void 0?this.fetchQuery(u):(u.revalidateIfStale&&r.isStaleByTime(xa(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(u){return S(this,Be).findAll(u).map(({queryKey:i,state:r})=>{const c=r.data;return[i,c]})}setQueryData(u,i,r){const c=this.defaultQueryOptions({queryKey:u}),d=S(this,Be).get(c.queryHash),m=d==null?void 0:d.state.data,y=hg(i,m);if(y!==void 0)return S(this,Be).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(u,i,r){return $e.batch(()=>S(this,Be).findAll(u).map(({queryKey:c})=>[c,this.setQueryData(c,i,r)]))}getQueryState(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state}removeQueries(u){const i=S(this,Be);$e.batch(()=>{i.findAll(u).forEach(r=>{i.remove(r)})})}resetQueries(u,i){const r=S(this,Be);return $e.batch(()=>(r.findAll(u).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const r={revert:!0,...i},c=$e.batch(()=>S(this,Be).findAll(u).map(d=>d.cancel(r)));return Promise.all(c).then(ft).catch(ft)}invalidateQueries(u,i={}){return $e.batch(()=>(S(this,Be).findAll(u).forEach(r=>{r.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},c=$e.batch(()=>S(this,Be).findAll(u).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ft)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const r=S(this,Be).build(this,i);return r.isStaleByTime(xa(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(ft).catch(ft)}fetchInfiniteQuery(u){return u.behavior=py(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(ft).catch(ft)}ensureInfiniteQueryData(u){return u.behavior=py(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return Us.isOnline()?S(this,va).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Be)}getMutationCache(){return S(this,va)}getDefaultOptions(){return S(this,pa)}setDefaultOptions(u){$(this,pa,u)}setQueryDefaults(u,i){S(this,Vn).set(Ia(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...S(this,Vn).values()],r={};return i.forEach(c=>{Iu(u,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(u,i){S(this,Jn).set(Ia(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...S(this,Jn).values()],r={};return i.forEach(c=>{Iu(u,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(u){if(u._defaulted)return u;const i={...S(this,pa).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=qo(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Bo&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,pa).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,Be).clear(),S(this,va).clear()}},Be=new WeakMap,va=new WeakMap,pa=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,ga=new WeakMap,kn=new WeakMap,Fn=new WeakMap,qy),Jy=E.createContext(void 0),qs=u=>{const i=E.useContext(Jy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Ug=({client:u,children:i})=>(E.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),f.jsx(Jy.Provider,{value:u,children:i})),ky=E.createContext(!1),wg=()=>E.useContext(ky);ky.Provider;function Hg(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var qg=E.createContext(Hg()),Bg=()=>E.useContext(qg),Qg=(u,i,r)=>{const c=r!=null&&r.state.error&&typeof u.throwOnError=="function"?Qo(u.throwOnError,[r.state.error,r]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||c)&&(i.isReset()||(u.retryOnMount=!1))},Lg=u=>{E.useEffect(()=>{u.clearReset()},[u])},Yg=({result:u,errorResetBoundary:i,throwOnError:r,query:c,suspense:d})=>u.isError&&!i.isReset()&&!u.isFetching&&c&&(d&&u.data===void 0||Qo(r,[u.error,c])),Gg=u=>{if(u.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=u.staleTime;u.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},Xg=(u,i)=>u.isLoading&&u.isFetching&&!i,Zg=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,by=(u,i,r)=>i.fetchOptimistic(u).catch(()=>{r.clearReset()});function Kg(u,i,r){var M,U,K,O;const c=wg(),d=Bg(),m=qs(),y=m.defaultQueryOptions(u);(U=(M=m.getDefaultOptions().queries)==null?void 0:M._experimental_beforeQuery)==null||U.call(M,y);const g=m.getQueryCache().get(y.queryHash);y._optimisticResults=c?"isRestoring":"optimistic",Gg(y),Qg(y,d,g),Lg(d);const x=!m.getQueryCache().get(y.queryHash),[v]=E.useState(()=>new i(m,y)),N=v.getOptimisticResult(y),p=!c&&u.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(H=>{const D=p?v.subscribe($e.batchCalls(H)):ft;return v.updateResult(),D},[v,p]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),E.useEffect(()=>{v.setOptions(y)},[y,v]),Zg(y,N))throw by(y,v,d);if(Yg({result:N,errorResetBoundary:d,throwOnError:y.throwOnError,query:g,suspense:y.suspense}))throw N.error;if((O=(K=m.getDefaultOptions().queries)==null?void 0:K._experimental_afterQuery)==null||O.call(K,y,N),y.experimental_prefetchInRender&&!Wa&&Xg(N,c)){const H=x?by(y,v,d):g==null?void 0:g.promise;H==null||H.catch(ft).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?N:v.trackResult(N)}function Pt(u,i){return Kg(u,Tg)}function Ao(u,i){const r=qs(),[c]=E.useState(()=>new Mg(r,u));E.useEffect(()=>{c.setOptions(u)},[c,u]);const d=E.useSyncExternalStore(E.useCallback(y=>c.subscribe($e.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m=E.useCallback((y,g)=>{c.mutate(y,g).catch(ft)},[c]);if(d.error&&Qo(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}const Vg=new Dg({defaultOptions:{queries:{staleTime:5e3,retry:1}}});/**
48
+ `+a.stack}}var Xs=Object.prototype.hasOwnProperty,Zs=u.unstable_scheduleCallback,Ks=u.unstable_cancelCallback,zv=u.unstable_shouldYield,Mv=u.unstable_requestPaint,Nt=u.unstable_now,_v=u.unstable_getCurrentPriorityLevel,Io=u.unstable_ImmediatePriority,Po=u.unstable_UserBlockingPriority,ri=u.unstable_NormalPriority,Dv=u.unstable_LowPriority,ef=u.unstable_IdlePriority,Uv=u.log,wv=u.unstable_setDisableYieldValue,tu=null,Tt=null;function Bl(e){if(typeof Uv=="function"&&wv(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(tu,e)}catch{}}var Ct=Math.clz32?Math.clz32:Bv,Hv=Math.log,qv=Math.LN2;function Bv(e){return e>>>=0,e===0?32:31-(Hv(e)/qv|0)|0}var ci=256,oi=262144,fi=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function di(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?n=ja(a):(o&=h,o!==0?n=ja(o):l||(l=h&~e,l!==0&&(n=ja(l))))):(h=a&~s,h!==0?n=ja(h):o!==0?n=ja(o):l||(l=a&~e,l!==0&&(n=ja(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function lu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tf(){var e=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),e}function Vs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function au(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lv(e,t,l,a,n,s){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,x=e.expirationTimes,A=e.hiddenUpdates;for(l=o&~l;0<l;){var w=31-Ct(l),L=1<<w;h[w]=0,x[w]=-1;var z=A[w];if(z!==null)for(A[w]=null,w=0;w<z.length;w++){var _=z[w];_!==null&&(_.lane&=-536870913)}l&=~L}a!==0&&lf(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function lf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function af(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function nf(e,t){var l=t&-t;return l=(l&42)!==0?1:Js(l),(l&(e.suspendedLanes|t))!==0?0:l}function Js(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 ks(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function uf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Km(e.type))}function sf(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Ql=Math.random().toString(36).slice(2),et="__reactFiber$"+Ql,ht="__reactProps$"+Ql,Pa="__reactContainer$"+Ql,Fs="__reactEvents$"+Ql,Yv="__reactListeners$"+Ql,Gv="__reactHandles$"+Ql,rf="__reactResources$"+Ql,nu="__reactMarker$"+Ql;function $s(e){delete e[et],delete e[ht],delete e[Fs],delete e[Yv],delete e[Gv]}function en(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pa]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Am(e);e!==null;){if(l=e[et])return l;e=Am(e)}return t}e=l,l=e.parentNode}return null}function tn(e){if(e=e[et]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function uu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ln(e){var t=e[rf];return t||(t=e[rf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[nu]=!0}var cf=new Set,of={};function Na(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){for(of[e]=t,e=0;e<t.length;e++)cf.add(t[e])}var Xv=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]*$"),ff={},df={};function Zv(e){return Xs.call(df,e)?!0:Xs.call(ff,e)?!1:Xv.test(e)?df[e]=!0:(ff[e]=!0,!1)}function hi(e,t,l){if(Zv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function mi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kv(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){if(!e._valueTracker){var t=hf(e)?"checked":"value";e._valueTracker=Kv(e,t,""+e[t])}}function mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Vv=/[\n"\\]/g;function Ht(e){return e.replace(Vv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Is(e,t,l,a,n,s,o,h){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Ps(e,o,wt(t)):l!=null?Ps(e,o,wt(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+wt(h):e.removeAttribute("name")}function yf(e,t,l,a,n,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ws(e);return}l=l!=null?""+wt(l):"",t=t!=null?""+wt(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ws(e)}function Ps(e,t,l){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function nn(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+wt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function vf(e,t,l){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+wt(l):""}function pf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(ut(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=wt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ws(e)}function un(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Jv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Jv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function bf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&gf(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&gf(e,s,t[s])}function er(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kv=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"]]),Fv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vi(e){return Fv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dl(){}var tr=null;function lr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,rn=null;function xf(e){var t=tn(e);if(t&&(e=t.stateNode)){var l=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Is(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ht]||null;if(!n)throw Error(c(90));Is(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&mf(a)}break e;case"textarea":vf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&nn(e,!!l.multiple,t,!1)}}}var ar=!1;function Sf(e,t,l){if(ar)return e(t,l);ar=!0;try{var a=e(t);return a}finally{if(ar=!1,(sn!==null||rn!==null)&&(as(),sn&&(t=sn,e=rn,rn=sn=null,xf(t),e)))for(t=0;t<e.length;t++)xf(e[t])}}function iu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ht]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nr=!1;if(hl)try{var su={};Object.defineProperty(su,"passive",{get:function(){nr=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{nr=!1}var Ll=null,ur=null,pi=null;function Ef(){if(pi)return pi;var e,t=ur,l=t.length,a,n="value"in Ll?Ll.value:Ll.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[s-a];a++);return pi=n.slice(e,1<a?1-a:void 0)}function gi(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 bi(){return!0}function jf(){return!1}function mt(e){function t(l,a,n,s,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?bi:jf,this.isPropagationStopped=jf,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=mt(Ta),ru=p({},Ta,{view:0,detail:0}),$v=mt(ru),ir,sr,cu,Si=p({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cr,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!==cu&&(cu&&e.type==="mousemove"?(ir=e.screenX-cu.screenX,sr=e.screenY-cu.screenY):sr=ir=0,cu=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),Nf=mt(Si),Wv=p({},Si,{dataTransfer:0}),Iv=mt(Wv),Pv=p({},ru,{relatedTarget:0}),rr=mt(Pv),ep=p({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),tp=mt(ep),lp=p({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ap=mt(lp),np=p({},Ta,{data:0}),Tf=mt(np),up={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ip={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"},sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sp[e])?!!t[e]:!1}function cr(){return rp}var cp=p({},ru,{key:function(e){if(e.key){var t=up[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ip[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cr,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),op=mt(cp),fp=p({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=mt(fp),dp=p({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cr}),hp=mt(dp),mp=p({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),yp=mt(mp),vp=p({},Si,{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}),pp=mt(vp),gp=p({},Ta,{newState:0,oldState:0}),bp=mt(gp),xp=[9,13,27,32],or=hl&&"CompositionEvent"in window,ou=null;hl&&"documentMode"in document&&(ou=document.documentMode);var Sp=hl&&"TextEvent"in window&&!ou,Of=hl&&(!or||ou&&8<ou&&11>=ou),Rf=" ",Af=!1;function zf(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function Ep(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(Af=!0,Rf);case"textInput":return e=t.data,e===Rf&&Af?null:e;default:return null}}function jp(e,t){if(cn)return e==="compositionend"||!or&&zf(e,t)?(e=Ef(),pi=ur=Ll=null,cn=!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 Of&&t.locale!=="ko"?null:t.data;default:return null}}var Np={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _f(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Np[e.type]:t==="textarea"}function Df(e,t,l,a){sn?rn?rn.push(a):rn=[a]:sn=a,t=os(t,"onChange"),0<t.length&&(l=new xi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var fu=null,du=null;function Tp(e){ym(e,0)}function Ei(e){var t=uu(e);if(mf(t))return e}function Uf(e,t){if(e==="change")return t}var wf=!1;if(hl){var fr;if(hl){var dr="oninput"in document;if(!dr){var Hf=document.createElement("div");Hf.setAttribute("oninput","return;"),dr=typeof Hf.oninput=="function"}fr=dr}else fr=!1;wf=fr&&(!document.documentMode||9<document.documentMode)}function qf(){fu&&(fu.detachEvent("onpropertychange",Bf),du=fu=null)}function Bf(e){if(e.propertyName==="value"&&Ei(du)){var t=[];Df(t,du,e,lr(e)),Sf(Tp,t)}}function Cp(e,t,l){e==="focusin"?(qf(),fu=t,du=l,fu.attachEvent("onpropertychange",Bf)):e==="focusout"&&qf()}function Op(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(du)}function Rp(e,t){if(e==="click")return Ei(t)}function Ap(e,t){if(e==="input"||e==="change")return Ei(t)}function zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:zp;function hu(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Xs.call(t,n)||!Ot(e[n],t[n]))return!1}return!0}function Qf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var l=Qf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Qf(l)}}function Yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=yi(e.document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mp=hl&&"documentMode"in document&&11>=document.documentMode,on=null,mr=null,mu=null,yr=!1;function Xf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;yr||on==null||on!==yi(a)||(a=on,"selectionStart"in a&&hr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mu&&hu(mu,a)||(mu=a,a=os(mr,"onSelect"),0<a.length&&(t=new xi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=on)))}function Ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},vr={},Zf={};hl&&(Zf=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Oa(e){if(vr[e])return vr[e];if(!fn[e])return e;var t=fn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zf)return vr[e]=t[l];return e}var Kf=Oa("animationend"),Vf=Oa("animationiteration"),Jf=Oa("animationstart"),_p=Oa("transitionrun"),Dp=Oa("transitionstart"),Up=Oa("transitioncancel"),kf=Oa("transitionend"),Ff=new Map,pr="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(" ");pr.push("scrollEnd");function kt(e,t){Ff.set(e,t),Na(t,[e])}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],dn=0,gr=0;function Ni(){for(var e=dn,t=gr=dn=0;t<e;){var l=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var n=qt[t];qt[t++]=null;var s=qt[t];if(qt[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}s!==0&&$f(l,n,s)}}function Ti(e,t,l,a){qt[dn++]=e,qt[dn++]=t,qt[dn++]=l,qt[dn++]=a,gr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function br(e,t,l,a){return Ti(e,t,l,a),Ci(e)}function Ra(e,t){return Ti(e,null,null,t),Ci(e)}function $f(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Ct(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function Ci(e){if(50<Hu)throw Hu=0,Rc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hn={};function wp(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,l,a){return new wp(e,t,l,a)}function xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Rt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Wf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,l,a,n,s){var o=0;if(a=e,typeof e=="function")xr(e)&&(o=1);else if(typeof e=="string")o=L0(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Rt(31,l,t,n),e.elementType=he,e.lanes=s,e;case O:return Aa(l.children,n,s,t);case H:o=8,n|=24;break;case D:return e=Rt(12,l,t,n|2),e.elementType=D,e.lanes=s,e;case G:return e=Rt(13,l,t,n),e.elementType=G,e.lanes=s,e;case V:return e=Rt(19,l,t,n),e.elementType=V,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:o=10;break e;case Y:o=9;break e;case Z:o=11;break e;case k:o=14;break e;case le:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Rt(o,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function Aa(e,t,l,a){return e=Rt(7,e,a,t),e.lanes=l,e}function Sr(e,t,l){return e=Rt(6,e,null,t),e.lanes=l,e}function If(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function Er(e,t,l){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pf=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var l=Pf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Wo(t)},Pf.set(e,t),t)}return{value:e,source:t,stack:Wo(t)}}var mn=[],yn=0,Ri=null,yu=0,Qt=[],Lt=0,Yl=null,ll=1,al="";function yl(e,t){mn[yn++]=yu,mn[yn++]=Ri,Ri=e,yu=t}function ed(e,t,l){Qt[Lt++]=ll,Qt[Lt++]=al,Qt[Lt++]=Yl,Yl=e;var a=ll;e=al;var n=32-Ct(a)-1;a&=~(1<<n),l+=1;var s=32-Ct(t)+n;if(30<s){var o=n-n%5;s=(a&(1<<o)-1).toString(32),a>>=o,n-=o,ll=1<<32-Ct(t)+n|l<<n|a,al=s+e}else ll=1<<s|l<<n|a,al=e}function jr(e){e.return!==null&&(yl(e,1),ed(e,1,0))}function Nr(e){for(;e===Ri;)Ri=mn[--yn],mn[yn]=null,yu=mn[--yn],mn[yn]=null;for(;e===Yl;)Yl=Qt[--Lt],Qt[Lt]=null,al=Qt[--Lt],Qt[Lt]=null,ll=Qt[--Lt],Qt[Lt]=null}function td(e,t){Qt[Lt++]=ll,Qt[Lt++]=al,Qt[Lt++]=Yl,ll=t.id,al=t.overflow,Yl=e}var tt=null,_e=null,ve=!1,Gl=null,Yt=!1,Tr=Error(c(519));function Xl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vu(Bt(t,e)),Tr}function ld(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[ht]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Bu.length;l++)de(Bu[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),yf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),pf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||bm(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=dl),t=!0):t=!1,t||Xl(e,!0)}function ad(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:tt=tt.return}}function vn(e){if(e!==tt)return!1;if(!ve)return ad(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Xc(e.type,e.memoizedProps)),l=!l),l&&_e&&Xl(e),ad(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Rm(e)}else t===27?(t=_e,aa(e.type)?(e=kc,kc=null,_e=e):_e=t):_e=tt?Xt(e.stateNode.nextSibling):null;return!0}function za(){_e=tt=null,ve=!1}function Cr(){var e=Gl;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Gl=null),e}function vu(e){Gl===null?Gl=[e]:Gl.push(e)}var Or=T(null),Ma=null,vl=null;function Zl(e,t,l){F(Or,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=Or.current,X(Or)}function Rr(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ar(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var o=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var x=0;x<t.length;x++)if(h.context===t[x]){s.lanes|=l,h=s.alternate,h!==null&&(h.lanes|=l),Rr(s.return,l,e),a||(o=null);break e}s=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=l,s=o.alternate,s!==null&&(s.lanes|=l),Rr(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function pn(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;Ot(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Xu):e=[Xu])}n=n.return}e!==null&&Ar(t,e,l,a),t.flags|=262144}function Ai(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){Ma=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return nd(Ma,e)}function zi(e,t){return Ma===null&&_a(e),nd(e,t)}function nd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vl===null){if(e===null)throw Error(c(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return l}var Hp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},qp=u.unstable_scheduleCallback,Bp=u.unstable_NormalPriority,Ge={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zr(){return{controller:new Hp,data:new Map,refCount:0}}function pu(e){e.refCount--,e.refCount===0&&qp(Bp,function(){e.controller.abort()})}var gu=null,Mr=0,gn=0,bn=null;function Qp(e,t){if(gu===null){var l=gu=[];Mr=0,gn=Uc(),bn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Mr++,t.then(ud,ud),t}function ud(){if(--Mr===0&&gu!==null){bn!==null&&(bn.status="fulfilled");var e=gu;gu=null,gn=0,bn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var id=q.S;q.S=function(e,t){Xh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qp(e,t),id!==null&&id(e,t)};var Da=T(null);function _r(){var e=Da.current;return e!==null?e:Me.pooledCache}function Mi(e,t){t===null?F(Da,Da.current):F(Da,t.pool)}function sd(){var e=_r();return e===null?null:{parent:Ge._currentValue,pool:e}}var xn=Error(c(460)),Dr=Error(c(474)),_i=Error(c(542)),Di={then:function(){}};function rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function cd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dl,dl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e;default:if(typeof t.status=="string")t.then(dl,dl);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fd(e),e}throw wa=t,xn}}function Ua(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,xn):l}}var wa=null;function od(){if(wa===null)throw Error(c(459));var e=wa;return wa=null,e}function fd(e){if(e===xn||e===_i)throw Error(c(483))}var Sn=null,bu=0;function Ui(e){var t=bu;return bu+=1,Sn===null&&(Sn=[]),cd(Sn,e,t)}function xu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===M?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function dd(e){function t(C,j){if(e){var R=C.deletions;R===null?(C.deletions=[j],C.flags|=16):R.push(j)}}function l(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function a(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function n(C,j){return C=ml(C,j),C.index=0,C.sibling=null,C}function s(C,j,R){return C.index=R,e?(R=C.alternate,R!==null?(R=R.index,R<j?(C.flags|=67108866,j):R):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function o(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function h(C,j,R,Q){return j===null||j.tag!==6?(j=Sr(R,C.mode,Q),j.return=C,j):(j=n(j,R),j.return=C,j)}function x(C,j,R,Q){var te=R.type;return te===O?w(C,j,R.props.children,Q,R.key):j!==null&&(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Ua(te)===j.type)?(j=n(j,R.props),xu(j,R),j.return=C,j):(j=Oi(R.type,R.key,R.props,null,C.mode,Q),xu(j,R),j.return=C,j)}function A(C,j,R,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==R.containerInfo||j.stateNode.implementation!==R.implementation?(j=Er(R,C.mode,Q),j.return=C,j):(j=n(j,R.children||[]),j.return=C,j)}function w(C,j,R,Q,te){return j===null||j.tag!==7?(j=Aa(R,C.mode,Q,te),j.return=C,j):(j=n(j,R),j.return=C,j)}function L(C,j,R){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Sr(""+j,C.mode,R),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case U:return R=Oi(j.type,j.key,j.props,null,C.mode,R),xu(R,j),R.return=C,R;case K:return j=Er(j,C.mode,R),j.return=C,j;case le:return j=Ua(j),L(C,j,R)}if(ut(j)||ke(j))return j=Aa(j,C.mode,R,null),j.return=C,j;if(typeof j.then=="function")return L(C,Ui(j),R);if(j.$$typeof===B)return L(C,zi(C,j),R);wi(C,j)}return null}function z(C,j,R,Q){var te=j!==null?j.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return te!==null?null:h(C,j,""+R,Q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case U:return R.key===te?x(C,j,R,Q):null;case K:return R.key===te?A(C,j,R,Q):null;case le:return R=Ua(R),z(C,j,R,Q)}if(ut(R)||ke(R))return te!==null?null:w(C,j,R,Q,null);if(typeof R.then=="function")return z(C,j,Ui(R),Q);if(R.$$typeof===B)return z(C,j,zi(C,R),Q);wi(C,R)}return null}function _(C,j,R,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(R)||null,h(j,C,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case U:return C=C.get(Q.key===null?R:Q.key)||null,x(j,C,Q,te);case K:return C=C.get(Q.key===null?R:Q.key)||null,A(j,C,Q,te);case le:return Q=Ua(Q),_(C,j,R,Q,te)}if(ut(Q)||ke(Q))return C=C.get(R)||null,w(j,C,Q,te,null);if(typeof Q.then=="function")return _(C,j,R,Ui(Q),te);if(Q.$$typeof===B)return _(C,j,R,zi(j,Q),te);wi(j,Q)}return null}function W(C,j,R,Q){for(var te=null,ge=null,P=j,re=j=0,ye=null;P!==null&&re<R.length;re++){P.index>re?(ye=P,P=null):ye=P.sibling;var be=z(C,P,R[re],Q);if(be===null){P===null&&(P=ye);break}e&&P&&be.alternate===null&&t(C,P),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be,P=ye}if(re===R.length)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;re<R.length;re++)P=L(C,R[re],Q),P!==null&&(j=s(P,j,re),ge===null?te=P:ge.sibling=P,ge=P);return ve&&yl(C,re),te}for(P=a(P);re<R.length;re++)ye=_(P,C,re,R[re],Q),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?re:ye.key),j=s(ye,j,re),ge===null?te=ye:ge.sibling=ye,ge=ye);return e&&P.forEach(function(ra){return t(C,ra)}),ve&&yl(C,re),te}function ae(C,j,R,Q){if(R==null)throw Error(c(151));for(var te=null,ge=null,P=j,re=j=0,ye=null,be=R.next();P!==null&&!be.done;re++,be=R.next()){P.index>re?(ye=P,P=null):ye=P.sibling;var ra=z(C,P,be.value,Q);if(ra===null){P===null&&(P=ye);break}e&&P&&ra.alternate===null&&t(C,P),j=s(ra,j,re),ge===null?te=ra:ge.sibling=ra,ge=ra,P=ye}if(be.done)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;!be.done;re++,be=R.next())be=L(C,be.value,Q),be!==null&&(j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return ve&&yl(C,re),te}for(P=a(P);!be.done;re++,be=R.next())be=_(P,C,re,be.value,Q),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?re:be.key),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return e&&P.forEach(function(W0){return t(C,W0)}),ve&&yl(C,re),te}function Ae(C,j,R,Q){if(typeof R=="object"&&R!==null&&R.type===O&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case U:e:{for(var te=R.key;j!==null;){if(j.key===te){if(te=R.type,te===O){if(j.tag===7){l(C,j.sibling),Q=n(j,R.props.children),Q.return=C,C=Q;break e}}else if(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===le&&Ua(te)===j.type){l(C,j.sibling),Q=n(j,R.props),xu(Q,R),Q.return=C,C=Q;break e}l(C,j);break}else t(C,j);j=j.sibling}R.type===O?(Q=Aa(R.props.children,C.mode,Q,R.key),Q.return=C,C=Q):(Q=Oi(R.type,R.key,R.props,null,C.mode,Q),xu(Q,R),Q.return=C,C=Q)}return o(C);case K:e:{for(te=R.key;j!==null;){if(j.key===te)if(j.tag===4&&j.stateNode.containerInfo===R.containerInfo&&j.stateNode.implementation===R.implementation){l(C,j.sibling),Q=n(j,R.children||[]),Q.return=C,C=Q;break e}else{l(C,j);break}else t(C,j);j=j.sibling}Q=Er(R,C.mode,Q),Q.return=C,C=Q}return o(C);case le:return R=Ua(R),Ae(C,j,R,Q)}if(ut(R))return W(C,j,R,Q);if(ke(R)){if(te=ke(R),typeof te!="function")throw Error(c(150));return R=te.call(R),ae(C,j,R,Q)}if(typeof R.then=="function")return Ae(C,j,Ui(R),Q);if(R.$$typeof===B)return Ae(C,j,zi(C,R),Q);wi(C,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,j!==null&&j.tag===6?(l(C,j.sibling),Q=n(j,R),Q.return=C,C=Q):(l(C,j),Q=Sr(R,C.mode,Q),Q.return=C,C=Q),o(C)):l(C,j)}return function(C,j,R,Q){try{bu=0;var te=Ae(C,j,R,Q);return Sn=null,te}catch(P){if(P===xn||P===_i)throw P;var ge=Rt(29,P,null,C.mode);return ge.lanes=Q,ge.return=C,ge}finally{}}}var Ha=dd(!0),hd=dd(!1),Kl=!1;function Ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wr(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 Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Ci(e),$f(e,null,l),t}return Ti(e,a,t,l),Ci(e)}function Su(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,af(e,l)}}function Hr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=o:s=s.next=o,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var qr=!1;function Eu(){if(qr){var e=bn;if(e!==null)throw e}}function ju(e,t,l,a){qr=!1;var n=e.updateQueue;Kl=!1;var s=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var x=h,A=x.next;x.next=null,o===null?s=A:o.next=A,o=x;var w=e.alternate;w!==null&&(w=w.updateQueue,h=w.lastBaseUpdate,h!==o&&(h===null?w.firstBaseUpdate=A:h.next=A,w.lastBaseUpdate=x))}if(s!==null){var L=n.baseState;o=0,w=A=x=null,h=s;do{var z=h.lane&-536870913,_=z!==h.lane;if(_?(me&z)===z:(a&z)===z){z!==0&&z===gn&&(qr=!0),w!==null&&(w=w.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,ae=h;z=t;var Ae=l;switch(ae.tag){case 1:if(W=ae.payload,typeof W=="function"){L=W.call(Ae,L,z);break e}L=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ae.payload,z=typeof W=="function"?W.call(Ae,L,z):W,z==null)break e;L=p({},L,z);break e;case 2:Kl=!0}}z=h.callback,z!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[z]:_.push(z))}else _={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},w===null?(A=w=_,x=L):w=w.next=_,o|=z;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;_=h,h=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);w===null&&(x=L),n.baseState=x,n.firstBaseUpdate=A,n.lastBaseUpdate=w,s===null&&(n.shared.lanes=0),Il|=o,e.lanes=o,e.memoizedState=L}}function md(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function yd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)md(l[e],t)}var En=T(null),Hi=T(0);function vd(e,t){e=Cl,F(Hi,e),F(En,t),Cl=e|t.baseLanes}function Br(){F(Hi,Cl),F(En,En.current)}function Qr(){Cl=Hi.current,X(En),X(Hi)}var At=T(null),Gt=null;function kl(e){var t=e.alternate;F(Le,Le.current&1),F(At,e),Gt===null&&(t===null||En.current!==null||t.memoizedState!==null)&&(Gt=e)}function Lr(e){F(Le,Le.current),F(At,e),Gt===null&&(Gt=e)}function pd(e){e.tag===22?(F(Le,Le.current),F(At,e),Gt===null&&(Gt=e)):Fl()}function Fl(){F(Le,Le.current),F(At,At.current)}function zt(e){X(At),Gt===e&&(Gt=null),X(Le)}var Le=T(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Vc(l)||Jc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gl=0,se=null,Oe=null,Xe=null,Bi=!1,jn=!1,qa=!1,Qi=0,Nu=0,Nn=null,Yp=0;function He(){throw Error(c(321))}function Yr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ot(e[l],t[l]))return!1;return!0}function Gr(e,t,l,a,n,s){return gl=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?eh:ac,qa=!1,s=l(a,n),qa=!1,jn&&(s=bd(t,l,a,n)),gd(e),s}function gd(e){q.H=Ou;var t=Oe!==null&&Oe.next!==null;if(gl=0,Xe=Oe=se=null,Bi=!1,Nu=0,Nn=null,t)throw Error(c(300));e===null||Ze||(e=e.dependencies,e!==null&&Ai(e)&&(Ze=!0))}function bd(e,t,l,a){se=e;var n=0;do{if(jn&&(Nn=null),Nu=0,jn=!1,25<=n)throw Error(c(301));if(n+=1,Xe=Oe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}q.H=th,s=t(l,a)}while(jn);return s}function Gp(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Tu(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(se.flags|=1024),t}function Xr(){var e=Qi!==0;return Qi=0,e}function Zr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Kr(e){if(Bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bi=!1}gl=0,Xe=Oe=se=null,jn=!1,Nu=Qi=0,Nn=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?se.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ye(){if(Oe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Xe===null?se.memoizedState:Xe.next;if(t!==null)Xe=t,Oe=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Xe===null?se.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(e){var t=Nu;return Nu+=1,Nn===null&&(Nn=[]),e=cd(Nn,e,t),t=se,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?eh:ac),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tu(e);if(e.$$typeof===B)return lt(e)}throw Error(c(438,String(e)))}function Vr(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Li(),se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function bl(e,t){return typeof t=="function"?t(e):t}function Gi(e){var t=Ye();return Jr(t,Oe,e)}function Jr(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var o=n.next;n.next=s.next,s.next=o}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=o=null,x=null,A=t,w=!1;do{var L=A.lane&-536870913;if(L!==A.lane?(me&L)===L:(gl&L)===L){var z=A.revertLane;if(z===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),L===gn&&(w=!0);else if((gl&z)===z){A=A.next,z===gn&&(w=!0);continue}else L={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},x===null?(h=x=L,o=s):x=x.next=L,se.lanes|=z,Il|=z;L=A.action,qa&&l(s,L),s=A.hasEagerState?A.eagerState:l(s,L)}else z={lane:L,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},x===null?(h=x=z,o=s):x=x.next=z,se.lanes|=L,Il|=L;A=A.next}while(A!==null&&A!==t);if(x===null?o=s:x.next=h,!Ot(s,e.memoizedState)&&(Ze=!0,w&&(l=bn,l!==null)))throw l;e.memoizedState=s,e.baseState=o,e.baseQueue=x,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function kr(e){var t=Ye(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do s=e(s,o.action),o=o.next;while(o!==n);Ot(s,t.memoizedState)||(Ze=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function xd(e,t,l){var a=se,n=Ye(),s=ve;if(s){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Ot((Oe||n).memoizedState,l);if(o&&(n.memoizedState=l,Ze=!0),n=n.queue,Wr(jd.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,Tn(9,{destroy:void 0},Ed.bind(null,a,n,l,t),null),Me===null)throw Error(c(349));s||(gl&127)!==0||Sd(a,t,l)}return l}function Sd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=Li(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Ed(e,t,l,a){t.value=l,t.getSnapshot=a,Nd(t)&&Td(e)}function jd(e,t,l){return l(function(){Nd(t)&&Td(e)})}function Nd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ot(e,l)}catch{return!0}}function Td(e){var t=Ra(e,2);t!==null&&bt(t,e,2)}function Fr(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),qa){Bl(!0);try{l()}finally{Bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t}function Cd(e,t,l,a){return e.baseState=l,Jr(e,Oe,typeof a=="function"?a:bl)}function Xp(e,t,l,a,n){if(Ki(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};q.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,Od(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Od(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=q.T,o={};q.T=o;try{var h=l(n,a),x=q.S;x!==null&&x(o,h),Rd(e,t,h)}catch(A){$r(e,t,A)}finally{s!==null&&o.types!==null&&(s.types=o.types),q.T=s}}else try{s=l(n,a),Rd(e,t,s)}catch(A){$r(e,t,A)}}function Rd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ad(e,t,a)},function(a){return $r(e,t,a)}):Ad(e,t,l)}function Ad(e,t,l){t.status="fulfilled",t.value=l,zd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Od(e,l)))}function $r(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,zd(t),t=t.next;while(t!==a)}e.action=null}function zd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Md(e,t){return t}function _d(e,t){if(ve){var l=Me.formState;if(l!==null){e:{var a=se;if(ve){if(_e){t:{for(var n=_e,s=Yt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Xt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){_e=Xt(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Md,lastRenderedState:t},l.queue=a,l=Wd.bind(null,se,a),a.dispatch=l,a=Fr(!1),s=lc.bind(null,se,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Xp.bind(null,se,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Dd(e){var t=Ye();return Ud(t,Oe,e)}function Ud(e,t,l){if(t=Jr(e,t,Md)[0],e=Gi(bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tu(t)}catch(o){throw o===xn?_i:o}else a=t;t=Ye();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&(se.flags|=2048,Tn(9,{destroy:void 0},Zp.bind(null,n,l),null)),[a,s,e]}function Zp(e,t){e.action=t}function wd(e){var t=Ye(),l=Oe;if(l!==null)return Ud(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Tn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=se.updateQueue,t===null&&(t=Li(),se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Hd(){return Ye().memoizedState}function Xi(e,t,l,a){var n=ct();se.flags|=e,n.memoizedState=Tn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Zi(e,t,l,a){var n=Ye();a=a===void 0?null:a;var s=n.memoizedState.inst;Oe!==null&&a!==null&&Yr(a,Oe.memoizedState.deps)?n.memoizedState=Tn(t,s,l,a):(se.flags|=e,n.memoizedState=Tn(1|t,s,l,a))}function qd(e,t){Xi(8390656,8,e,t)}function Wr(e,t){Zi(2048,8,e,t)}function Kp(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Li(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Bd(e){var t=Ye().memoizedState;return Kp({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Qd(e,t){return Zi(4,2,e,t)}function Ld(e,t){return Zi(4,4,e,t)}function Yd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gd(e,t,l){l=l!=null?l.concat([e]):null,Zi(4,4,Yd.bind(null,t,e),l)}function Ir(){}function Xd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Yr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Zd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Yr(t,a[1]))return a[0];if(a=e(),qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a}function Pr(e,t,l){return l===void 0||(gl&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Kh(),se.lanes|=e,Il|=e,l)}function Kd(e,t,l,a){return Ot(l,t)?l:En.current!==null?(e=Pr(e,l,a),Ot(e,t)||(Ze=!0),e):(gl&42)===0||(gl&1073741824)!==0&&(me&261930)===0?(Ze=!0,e.memoizedState=l):(e=Kh(),se.lanes|=e,Il|=e,t)}function Vd(e,t,l,a,n){var s=J.p;J.p=s!==0&&8>s?s:8;var o=q.T,h={};q.T=h,lc(e,!1,t,l);try{var x=n(),A=q.S;if(A!==null&&A(h,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var w=Lp(x,a);Cu(e,t,w,Dt(e))}else Cu(e,t,a,Dt(e))}catch(L){Cu(e,t,{then:function(){},status:"rejected",reason:L},Dt())}finally{J.p=s,o!==null&&h.types!==null&&(o.types=h.types),q.T=o}}function Vp(){}function ec(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=Jd(e).queue;Vd(e,n,t,ne,l===null?Vp:function(){return kd(e),l(a)})}function Jd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Jd(e);t.next===null&&(t=e.alternate.memoizedState),Cu(e,t.next.queue,{},Dt())}function tc(){return lt(Xu)}function Fd(){return Ye().memoizedState}function $d(){return Ye().memoizedState}function Jp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Dt();e=Vl(l);var a=Jl(t,e,l);a!==null&&(bt(a,t,l),Su(a,t,l)),t={cache:zr()},e.payload=t;return}t=t.return}}function kp(e,t,l){var a=Dt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Id(t,l):(l=br(e,t,l,a),l!==null&&(bt(l,e,a),Pd(l,t,a)))}function Wd(e,t,l){var a=Dt();Cu(e,t,l,a)}function Cu(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Id(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,h=s(o,l);if(n.hasEagerState=!0,n.eagerState=h,Ot(h,o))return Ti(e,t,n,0),Me===null&&Ni(),!1}catch{}finally{}if(l=br(e,t,n,a),l!==null)return bt(l,e,a),Pd(l,t,a),!0}return!1}function lc(e,t,l,a){if(a={lane:2,revertLane:Uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=br(e,l,a,2),t!==null&&bt(t,e,2)}function Ki(e){var t=e.alternate;return e===se||t!==null&&t===se}function Id(e,t){jn=Bi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Pd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,af(e,l)}}var Ou={readContext:lt,use:Yi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Ou.useEffectEvent=He;var eh={readContext:lt,use:Yi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:qd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Xi(4194308,4,Yd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(qa){Bl(!0);try{l(t)}finally{Bl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kp.bind(null,se,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Fr(e);var t=e.queue,l=Wd.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ir,useDeferredValue:function(e,t){var l=ct();return Pr(l,e,t)},useTransition:function(){var e=Fr(!1);return e=Vd.bind(null,se,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=se,n=ct();if(ve){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Me===null)throw Error(c(349));(me&127)!==0||Sd(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,qd(jd.bind(null,a,s,e),[e]),a.flags|=2048,Tn(9,{destroy:void 0},Ed.bind(null,a,s,l,t),null),l},useId:function(){var e=ct(),t=Me.identifierPrefix;if(ve){var l=al,a=ll;l=(a&~(1<<32-Ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Qi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Yp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:_d,useActionState:_d,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=lc.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:Vr,useCacheRefresh:function(){return ct().memoizedState=Jp.bind(null,se)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},ac={readContext:lt,use:Yi,useCallback:Xd,useContext:lt,useEffect:Wr,useImperativeHandle:Gd,useInsertionEffect:Qd,useLayoutEffect:Ld,useMemo:Zd,useReducer:Gi,useRef:Hd,useState:function(){return Gi(bl)},useDebugValue:Ir,useDeferredValue:function(e,t){var l=Ye();return Kd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Gi(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:xd,useId:Fd,useHostTransitionStatus:tc,useFormState:Dd,useActionState:Dd,useOptimistic:function(e,t){var l=Ye();return Cd(l,Oe,e,t)},useMemoCache:Vr,useCacheRefresh:$d};ac.useEffectEvent=Bd;var th={readContext:lt,use:Yi,useCallback:Xd,useContext:lt,useEffect:Wr,useImperativeHandle:Gd,useInsertionEffect:Qd,useLayoutEffect:Ld,useMemo:Zd,useReducer:kr,useRef:Hd,useState:function(){return kr(bl)},useDebugValue:Ir,useDeferredValue:function(e,t){var l=Ye();return Oe===null?Pr(l,e,t):Kd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=kr(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:xd,useId:Fd,useHostTransitionStatus:tc,useFormState:wd,useActionState:wd,useOptimistic:function(e,t){var l=Ye();return Oe!==null?Cd(l,Oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Vr,useCacheRefresh:$d};th.useEffectEvent=Bd;function nc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var uc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Vl(a);n.payload=t,l!=null&&(n.callback=l),t=Jl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Jl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Dt(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=Jl(e,a,l),t!==null&&(bt(t,e,l),Su(t,e,l))}};function lh(e,t,l,a,n,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,o):t.prototype&&t.prototype.isPureReactComponent?!hu(l,a)||!hu(n,s):!0}function ah(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&uc.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function nh(e){ji(e)}function uh(e){console.error(e)}function ih(e){ji(e)}function Vi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function sh(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ic(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Vi(e,t)},l}function rh(e){return e=Vl(e),e.tag=3,e}function ch(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){sh(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){sh(t,l,a),typeof n!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Fp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,n,!0),l=At.current,l!==null){switch(l.tag){case 31:case 13:return Gt===null?ns():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Mc(e,a,n)),!1;case 22:return l.flags|=65536,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Mc(e,a,n)),!1}throw Error(c(435,l.tag))}return Mc(e,a,n),ns(),!1}if(ve)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Tr&&(e=Error(c(422),{cause:a}),vu(Bt(e,l)))):(a!==Tr&&(t=Error(c(423),{cause:a}),vu(Bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Bt(a,l),n=ic(e.stateNode,a,n),Hr(e,n),qe!==4&&(qe=2)),!1;var s=Error(c(520),{cause:a});if(s=Bt(s,l),wu===null?wu=[s]:wu.push(s),qe!==4&&(qe=2),t===null)return!0;a=Bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ic(l.stateNode,a,e),Hr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Pl===null||!Pl.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=rh(n),ch(n,e,l,a),Hr(l,n),!1}l=l.return}while(l!==null);return!1}var sc=Error(c(461)),Ze=!1;function at(e,t,l,a){t.child=e===null?hd(t,null,l,a):Ha(t,e.child,l,a)}function oh(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}else o=a;return _a(t),a=Gr(e,t,l,o,s,n),h=Xr(),e!==null&&!Ze?(Zr(e,t,n),xl(e,t,n)):(ve&&h&&jr(t),t.flags|=1,at(e,t,a,n),t.child)}function fh(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!xr(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,dh(e,t,s,a,n)):(e=Oi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!yc(e,n)){var o=s.memoizedProps;if(l=l.compare,l=l!==null?l:hu,l(o,a)&&e.ref===t.ref)return xl(e,t,n)}return t.flags|=1,e=ml(s,a),e.ref=t.ref,e.return=t,t.child=e}function dh(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(hu(s,a)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=a=s,yc(e,n))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,xl(e,t,n)}return rc(e,t,l,a,n)}function hh(e,t,l,a){var n=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~s}else a=0,t.child=null;return mh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,s!==null?s.cachePool:null),s!==null?vd(t,s):Br(),pd(t);else return a=t.lanes=536870912,mh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Mi(t,s.cachePool),vd(t,s),Fl(),t.memoizedState=null):(e!==null&&Mi(t,null),Br(),Fl());return at(e,t,n,l),t.child}function Ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mh(e,t,l,a,n){var s=_r();return s=s===null?null:{parent:Ge._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Mi(t,null),Br(),pd(t),e!==null&&pn(e,t,a,!0),t.childLanes=n,null}function Ji(e,t){return t=Fi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yh(e,t,l){return Ha(t,e.child,null,l),e=Ji(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function $p(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Ji(t,a),t.lanes=536870912,Ru(null,e);if(Lr(t),(e=_e)?(e=Om(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=If(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return Ji(t,a)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Lr(t),n)if(t.flags&256)t.flags&=-257,t=yh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ze||pn(e,t,l,!1),n=(l&e.childLanes)!==0,Ze||n){if(a=Me,a!==null&&(o=nf(a,l),o!==0&&o!==s.retryLane))throw s.retryLane=o,Ra(e,o),bt(a,e,o),sc;ns(),t=yh(e,t,l)}else e=s.treeContext,_e=Xt(o.nextSibling),tt=t,ve=!0,Gl=null,Yt=!1,e!==null&&td(t,e),t=Ji(t,a),t.flags|=4096;return t}return e=ml(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ki(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function rc(e,t,l,a,n){return _a(t),l=Gr(e,t,l,a,void 0,n),a=Xr(),e!==null&&!Ze?(Zr(e,t,n),xl(e,t,n)):(ve&&a&&jr(t),t.flags|=1,at(e,t,l,n),t.child)}function vh(e,t,l,a,n,s){return _a(t),t.updateQueue=null,l=bd(t,a,l,n),gd(e),a=Xr(),e!==null&&!Ze?(Zr(e,t,s),xl(e,t,s)):(ve&&a&&jr(t),t.flags|=1,at(e,t,l,s),t.child)}function ph(e,t,l,a,n){if(_a(t),t.stateNode===null){var s=hn,o=l.contextType;typeof o=="object"&&o!==null&&(s=lt(o)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=uc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Ur(t),o=l.contextType,s.context=typeof o=="object"&&o!==null?lt(o):hn,s.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(nc(t,l,o,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&uc.enqueueReplaceState(s,s.state,null),ju(t,a,s,n),Eu(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,x=Ba(l,h);s.props=x;var A=s.context,w=l.contextType;o=hn,typeof w=="object"&&w!==null&&(o=lt(w));var L=l.getDerivedStateFromProps;w=typeof L=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,w||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||A!==o)&&ah(t,s,a,o),Kl=!1;var z=t.memoizedState;s.state=z,ju(t,a,s,n),Eu(),A=t.memoizedState,h||z!==A||Kl?(typeof L=="function"&&(nc(t,l,L,a),A=t.memoizedState),(x=Kl||lh(t,l,x,a,z,A,o))?(w||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=A),s.props=a,s.state=A,s.context=o,a=x):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,wr(e,t),o=t.memoizedProps,w=Ba(l,o),s.props=w,L=t.pendingProps,z=s.context,A=l.contextType,x=hn,typeof A=="object"&&A!==null&&(x=lt(A)),h=l.getDerivedStateFromProps,(A=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==L||z!==x)&&ah(t,s,a,x),Kl=!1,z=t.memoizedState,s.state=z,ju(t,a,s,n),Eu();var _=t.memoizedState;o!==L||z!==_||Kl||e!==null&&e.dependencies!==null&&Ai(e.dependencies)?(typeof h=="function"&&(nc(t,l,h,a),_=t.memoizedState),(w=Kl||lh(t,l,w,a,z,_,x)||e!==null&&e.dependencies!==null&&Ai(e.dependencies))?(A||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,_,x),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,_,x)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),s.props=a,s.state=_,s.context=x,a=w):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,ki(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Ha(t,e.child,null,n),t.child=Ha(t,null,l,n)):at(e,t,l,n),t.memoizedState=s.state,e=t.child):e=xl(e,t,n),e}function gh(e,t,l,a){return za(),t.flags|=256,at(e,t,l,a),t.child}var cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oc(e){return{baseLanes:e,cachePool:sd()}}function fc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=_t),e}function bh(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?kl(t):Fl(),(e=_e)?(e=Om(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=If(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return Jc(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(Fl(),n=t.mode,h=Fi({mode:"hidden",children:h},n),a=Aa(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=oc(l),a.childLanes=fc(e,o,l),t.memoizedState=cc,Ru(null,a)):(kl(t),dc(t,h))}var x=e.memoizedState;if(x!==null&&(h=x.dehydrated,h!==null)){if(s)t.flags&256?(kl(t),t.flags&=-257,t=hc(e,t,l)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,t=null):(Fl(),h=a.fallback,n=t.mode,a=Fi({mode:"visible",children:a.children},n),h=Aa(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Ha(t,e.child,null,l),a=t.child,a.memoizedState=oc(l),a.childLanes=fc(e,o,l),t.memoizedState=cc,t=Ru(null,a));else if(kl(t),Jc(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var A=o.dgst;o=A,a=Error(c(419)),a.stack="",a.digest=o,vu({value:a,source:null,stack:null}),t=hc(e,t,l)}else if(Ze||pn(e,t,l,!1),o=(l&e.childLanes)!==0,Ze||o){if(o=Me,o!==null&&(a=nf(o,l),a!==0&&a!==x.retryLane))throw x.retryLane=a,Ra(e,a),bt(o,e,a),sc;Vc(h)||ns(),t=hc(e,t,l)}else Vc(h)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,_e=Xt(h.nextSibling),tt=t,ve=!0,Gl=null,Yt=!1,e!==null&&td(t,e),t=dc(t,a.children),t.flags|=4096);return t}return n?(Fl(),h=a.fallback,n=t.mode,x=e.child,A=x.sibling,a=ml(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,A!==null?h=ml(A,h):(h=Aa(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,Ru(null,a),a=t.child,h=e.child.memoizedState,h===null?h=oc(l):(n=h.cachePool,n!==null?(x=Ge._currentValue,n=n.parent!==x?{parent:x,pool:x}:n):n=sd(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=fc(e,o,l),t.memoizedState=cc,Ru(e.child,a)):(kl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function dc(e,t){return t=Fi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fi(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function hc(e,t,l){return Ha(t,e.child,null,l),e=dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Rr(e.return,t,l)}function mc(e,t,l,a,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=s)}function Sh(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var o=Le.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,F(Le,o),at(e,t,a,l),a=ve?yu:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xh(e,l,t);else if(e.tag===19)xh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&qi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),mc(t,!1,n,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}mc(t,!0,l,null,s,a);break;case"together":mc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function xl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function yc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ai(e)))}function Wp(e,t,l){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Zl(t,Ge,e.memoizedState.cache),za();break;case 27:case 5:eu(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(kl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?bh(e,t,l):(kl(t),e=xl(e,t,l),e!==null?e.sibling:null);kl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Sh(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),F(Le,Le.current),a)break;return null;case 22:return t.lanes=0,hh(e,t,l,t.pendingProps);case 24:Zl(t,Ge,e.memoizedState.cache)}return xl(e,t,l)}function Eh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!yc(e,l)&&(t.flags&128)===0)return Ze=!1,Wp(e,t,l);Ze=(e.flags&131072)!==0}else Ze=!1,ve&&(t.flags&1048576)!==0&&ed(t,yu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ua(t.elementType),t.type=e,typeof e=="function")xr(e)?(a=Ba(e,a),t.tag=1,t=ph(null,t,e,a,l)):(t.tag=0,t=rc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Z){t.tag=11,t=oh(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=fh(null,t,e,a,l);break e}}throw t=dt(e)||e,Error(c(306,t,""))}}return t;case 0:return rc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ba(a,t.pendingProps),ph(e,t,a,n,l);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,wr(e,t),ju(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Zl(t,Ge,a),a!==s.cache&&Ar(t,[Ge],l,!0),Eu(),a=o.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=gh(e,t,a,l);break e}else if(a!==n){n=Bt(Error(c(424)),t),vu(n),t=gh(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_e=Xt(e.firstChild),tt=t,ve=!0,Gl=null,Yt=!0,l=hd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(za(),a===n){t=xl(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return ki(e,t),e===null?(l=Dm(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=fs(oe.current).createElement(l),a[et]=t,a[ht]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=Dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eu(t),e===null&&ve&&(a=t.stateNode=zm(t.type,t.pendingProps,oe.current),tt=t,Yt=!0,n=_e,aa(t.type)?(kc=n,_e=Xt(a.firstChild)):_e=n),at(e,t,t.pendingProps.children,l),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=_e)&&(a=O0(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,tt=t,_e=Xt(a.firstChild),Yt=!1,n=!0):n=!1),n||Xl(t)),eu(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,a=s.children,Xc(n,s)?a=null:o!==null&&Xc(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Gr(e,t,Gp,null,null,l),Xu._currentValue=n),ki(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=_e)&&(l=R0(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,tt=t,_e=null,e=!0):e=!1),e||Xl(t)),null;case 13:return bh(e,t,l);case 4:return rt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ha(t,null,a,l):at(e,t,a,l),t.child;case 11:return oh(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,_a(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return fh(e,t,t.type,t.pendingProps,l);case 15:return dh(e,t,t.type,t.pendingProps,l);case 19:return Sh(e,t,l);case 31:return $p(e,t,l);case 22:return hh(e,t,l,t.pendingProps);case 24:return _a(t),a=lt(Ge),e===null?(n=_r(),n===null&&(n=Me,s=zr(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},Ur(t),Zl(t,Ge,n)):((e.lanes&l)!==0&&(wr(e,t),ju(t,null,null,l),Eu()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Zl(t,Ge,a)):(a=s.cache,Zl(t,Ge,a),a!==n.cache&&Ar(t,[Ge],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Sl(e){e.flags|=4}function vc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Fh())e.flags|=8192;else throw wa=Di,Dr}else e.flags&=-16777217}function jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Bm(t))if(Fh())e.flags|=8192;else throw wa=Di,Dr}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tf():536870912,e.lanes|=t,An|=t)}function Au(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ip(e,t,l){var a=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 De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pl(Ge),Qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?Sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cr())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(Sl(t),s!==null?(De(t),jh(t,s)):(De(t),vc(t,n,null,a,l))):s?s!==e.memoizedState?(Sl(t),De(t),jh(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Sl(t),De(t),vc(t,n,e,a,l)),null;case 27:if(si(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}e=I.current,vn(t)?ld(t):(e=zm(n,a,l),t.stateNode=e,Sl(t))}return De(t),null;case 5:if(si(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}if(s=I.current,vn(t))ld(t);else{var o=fs(oe.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}s[et]=t,s[ht]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.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 e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(nt(s,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Sl(t)}}return De(t),vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||bm(e.nodeValue,l)),e||Xl(t,!0)}else e=fs(e).createTextNode(a),e[et]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=vn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[et]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else l=Cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=vn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[et]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=Cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),$i(t,t.updateQueue),De(t),null);case 4:return Qe(),e===null&&Bc(t.stateNode.containerInfo),De(t),null;case 10:return pl(t.type),De(t),null;case 19:if(X(Le),a=t.memoizedState,a===null)return De(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)Au(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qi(e),s!==null){for(t.flags|=128,Au(a,!1),e=s.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Wf(l,e),l=l.sibling;return F(Le,Le.current&1|2),ve&&yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Nt()>ts&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304)}else{if(!n)if(e=qi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ve)return De(t),null}else 2*Nt()-a.renderingStartTime>ts&&l!==536870912&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Nt(),e.sibling=null,l=Le.current,F(Le,n?l&1|2:l&1),ve&&yl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return zt(t),Qr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&$i(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&X(Da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(Ge),De(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Pp(e,t){switch(Nr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(Ge),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return si(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Le),null;case 4:return Qe(),null;case 10:return pl(t.type),null;case 22:case 23:return zt(t),Qr(),e!==null&&X(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(Ge),null;case 25:return null;default:return null}}function Nh(e,t){switch(Nr(t),t.tag){case 3:pl(Ge),Qe();break;case 26:case 27:case 5:si(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:X(Le);break;case 10:pl(t.type);break;case 22:case 23:zt(t),Qr(),e!==null&&X(Da);break;case 24:pl(Ge)}}function zu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var s=l.create,o=l.inst;a=s(),o.destroy=a}l=l.next}while(l!==n)}}catch(h){Ne(t,t.return,h)}}function $l(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var o=a.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var x=l,A=h;try{A()}catch(w){Ne(n,x,w)}}}a=a.next}while(a!==s)}}catch(w){Ne(t,t.return,w)}}function Th(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{yd(t,l)}catch(a){Ne(e,e.return,a)}}}function Ch(e,t,l){l.props=Ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function Mu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function nl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Oh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function pc(e,t,l){try{var a=e.stateNode;S0(a,e.type,l,t),a[ht]=t}catch(n){Ne(e,e.return,n)}}function Rh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rh(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&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=dl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(bc(e,t,l),e=e.sibling;e!==null;)bc(e,t,l),e=e.sibling}function Wi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wi(e,t,l),e=e.sibling;e!==null;)Wi(e,t,l),e=e.sibling}function Ah(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[ht]=l}catch(s){Ne(e,e.return,s)}}var El=!1,Ke=!1,xc=!1,zh=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function e0(e,t){if(e=e.containerInfo,Yc=gs,e=Gf(e),hr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var o=0,h=-1,x=-1,A=0,w=0,L=e,z=null;t:for(;;){for(var _;L!==l||n!==0&&L.nodeType!==3||(h=o+n),L!==s||a!==0&&L.nodeType!==3||(x=o+a),L.nodeType===3&&(o+=L.nodeValue.length),(_=L.firstChild)!==null;)z=L,L=_;for(;;){if(L===e)break t;if(z===l&&++A===n&&(h=o),z===s&&++w===a&&(x=o),(_=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=_}l=h===-1||x===-1?null:{start:h,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gc={focusedElem:e,selectionRange:l},gs=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var W=Ba(l.type,n);e=a.getSnapshotBeforeUpdate(W,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Ne(l,l.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Kc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Mh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(e,l),a&4&&zu(5,l);break;case 1:if(Nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Ne(l,l.return,o)}else{var n=Ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ne(l,l.return,o)}}a&64&&Th(l),a&512&&Mu(l,l.return);break;case 3:if(Nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{yd(e,t)}catch(o){Ne(l,l.return,o)}}break;case 27:t===null&&a&4&&Ah(l);case 26:case 5:Nl(e,l),t===null&&a&4&&Oh(l),a&512&&Mu(l,l.return);break;case 12:Nl(e,l);break;case 31:Nl(e,l),a&4&&Uh(e,l);break;case 13:Nl(e,l),a&4&&wh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=c0.bind(null,l),A0(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Ke,n=El;var s=Ke;El=a,(Ke=t)&&!s?Tl(e,l,(l.subtreeFlags&8772)!==0):Nl(e,l),El=n,Ke=s}break;case 30:break;default:Nl(e,l)}}function _h(e){var t=e.alternate;t!==null&&(e.alternate=null,_h(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$s(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,yt=!1;function jl(e,t,l){for(l=l.child;l!==null;)Dh(e,t,l),l=l.sibling}function Dh(e,t,l){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(tu,l)}catch{}switch(l.tag){case 26:Ke||nl(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ke||nl(l,t);var a=Ue,n=yt;aa(l.type)&&(Ue=l.stateNode,yt=!1),jl(e,t,l),Lu(l.stateNode),Ue=a,yt=n;break;case 5:Ke||nl(l,t);case 6:if(a=Ue,n=yt,Ue=null,jl(e,t,l),Ue=a,yt=n,Ue!==null)if(yt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(s){Ne(l,t,s)}else try{Ue.removeChild(l.stateNode)}catch(s){Ne(l,t,s)}break;case 18:Ue!==null&&(yt?(e=Ue,Tm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qn(e)):Tm(Ue,l.stateNode));break;case 4:a=Ue,n=yt,Ue=l.stateNode.containerInfo,yt=!0,jl(e,t,l),Ue=a,yt=n;break;case 0:case 11:case 14:case 15:$l(2,l,t),Ke||$l(4,l,t),jl(e,t,l);break;case 1:Ke||(nl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ch(l,t,a)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:Ke=(a=Ke)||l.memoizedState!==null,jl(e,t,l),Ke=a;break;default:jl(e,t,l)}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qn(e)}catch(l){Ne(t,t.return,l)}}}function wh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qn(e)}catch(l){Ne(t,t.return,l)}}function t0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zh),t;default:throw Error(c(435,e.tag))}}function Ii(e,t){var l=t0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=o0.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(aa(h.type)){Ue=h.stateNode,yt=!1;break e}break;case 5:Ue=h.stateNode,yt=!1;break e;case 3:case 4:Ue=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(Ue===null)throw Error(c(160));Dh(s,o,n),Ue=null,yt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hh(t,e),t=t.sibling}var Ft=null;function Hh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),a&4&&($l(3,e,e.return),zu(3,e),$l(5,e,e.return));break;case 1:vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ft;if(vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":s=n.getElementsByTagName("title")[0],(!s||s[nu]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),nt(s,a,l),s[et]=e,We(s),a=s;break e;case"link":var o=Hm("link","href",n).get(a+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;case"meta":if(o=Hm("meta","content",n).get(a+(l.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;default:throw Error(c(468,a))}s[et]=e,We(s),a=s}e.stateNode=a}else qm(n,e.type,e.stateNode);else e.stateNode=wm(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?qm(n,e.type,e.stateNode):wm(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&pc(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),l!==null&&a&4&&pc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),pt(e),a&512&&(Ke||l===null||nl(l,l.return)),e.flags&32){n=e.stateNode;try{un(n,"")}catch(W){Ne(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,pc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(xc=!0);break;case 6:if(vt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){Ne(e,e.return,W)}}break;case 3:if(ms=null,n=Ft,Ft=ds(t.containerInfo),vt(t,e),Ft=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qn(t.containerInfo)}catch(W){Ne(e,e.return,W)}xc&&(xc=!1,qh(e));break;case 4:a=Ft,Ft=ds(e.stateNode.containerInfo),vt(t,e),pt(e),Ft=a;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(es=Nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 22:n=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,A=El,w=Ke;if(El=A||n,Ke=w||x,vt(t,e),Ke=w,El=A,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||x||El||Ke||Qa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(s=x.stateNode,n)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=x.stateNode;var L=x.memoizedProps.style,z=L!=null&&L.hasOwnProperty("display")?L.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){Ne(x,x.return,W)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=n?"":x.memoizedProps}catch(W){Ne(x,x.return,W)}}}else if(t.tag===18){if(l===null){x=t;try{var _=x.stateNode;n?Cm(_,!0):Cm(x.stateNode,!1)}catch(W){Ne(x,x.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ii(e,l))));break;case 19:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Rh(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,s=gc(e);Wi(e,s,n);break;case 5:var o=l.stateNode;l.flags&32&&(un(o,""),l.flags&=-33);var h=gc(e);Wi(e,h,o);break;case 3:case 4:var x=l.stateNode.containerInfo,A=gc(e);bc(e,A,x);break;default:throw Error(c(161))}}catch(w){Ne(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$l(4,t,t.return),Qa(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ch(t,t.return,l),Qa(t);break;case 27:Lu(t.stateNode);case 26:case 5:nl(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(n,s,l),zu(4,s);break;case 1:if(Tl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){Ne(a,a.return,A)}if(a=s,n=a.updateQueue,n!==null){var h=a.stateNode;try{var x=n.shared.hiddenCallbacks;if(x!==null)for(n.shared.hiddenCallbacks=null,n=0;n<x.length;n++)md(x[n],h)}catch(A){Ne(a,a.return,A)}}l&&o&64&&Th(s),Mu(s,s.return);break;case 27:Ah(s);case 26:case 5:Tl(n,s,l),l&&a===null&&o&4&&Oh(s),Mu(s,s.return);break;case 12:Tl(n,s,l);break;case 31:Tl(n,s,l),l&&o&4&&Uh(n,s);break;case 13:Tl(n,s,l),l&&o&4&&wh(n,s);break;case 22:s.memoizedState===null&&Tl(n,s,l),Mu(s,s.return);break;case 30:break;default:Tl(n,s,l)}t=t.sibling}}function Sc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&pu(l))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e))}function $t(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bh(e,t,l,a),t=t.sibling}function Bh(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,l,a),n&2048&&zu(9,t);break;case 1:$t(e,t,l,a);break;case 3:$t(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e)));break;case 12:if(n&2048){$t(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else $t(e,t,l,a);break;case 31:$t(e,t,l,a);break;case 13:$t(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?$t(e,t,l,a):_u(e,t):s._visibility&2?$t(e,t,l,a):(s._visibility|=2,Cn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Sc(o,t);break;case 24:$t(e,t,l,a),n&2048&&Ec(t.alternate,t);break;default:$t(e,t,l,a)}}function Cn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,h=l,x=a,A=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(s,o,h,x,n),zu(8,o);break;case 23:break;case 22:var w=o.stateNode;o.memoizedState!==null?w._visibility&2?Cn(s,o,h,x,n):_u(s,o):(w._visibility|=2,Cn(s,o,h,x,n)),n&&A&2048&&Sc(o.alternate,o);break;case 24:Cn(s,o,h,x,n),n&&A&2048&&Ec(o.alternate,o);break;default:Cn(s,o,h,x,n)}t=t.sibling}}function _u(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:_u(l,a),n&2048&&Sc(a.alternate,a);break;case 24:_u(l,a),n&2048&&Ec(a.alternate,a);break;default:_u(l,a)}t=t.sibling}}var Du=8192;function On(e,t,l){if(e.subtreeFlags&Du)for(e=e.child;e!==null;)Qh(e,t,l),e=e.sibling}function Qh(e,t,l){switch(e.tag){case 26:On(e,t,l),e.flags&Du&&e.memoizedState!==null&&Y0(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:On(e,t,l);break;case 3:case 4:var a=Ft;Ft=ds(e.stateNode.containerInfo),On(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Du,Du=16777216,On(e,t,l),Du=a):On(e,t,l));break;default:On(e,t,l)}}function Lh(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 Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Gh(a,e)}Lh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yh(e),e=e.sibling}function Yh(e){switch(e.tag){case 0:case 11:case 15:Uu(e),e.flags&2048&&$l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pi(e)):Uu(e);break;default:Uu(e)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Gh(a,e)}Lh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$l(8,t,t.return),Pi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Pi(t));break;default:Pi(t)}e=e.sibling}}function Gh(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:$l(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,s=a.return;if(_h(a),a===l){Ie=null;break e}if(n!==null){n.return=s,Ie=n;break e}Ie=s}}}var l0={getCacheForType:function(e){var t=lt(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Ge).controller.signal}},a0=typeof WeakMap=="function"?WeakMap:Map,xe=0,Me=null,fe=null,me=0,je=0,Mt=null,Wl=!1,Rn=!1,jc=!1,Cl=0,qe=0,Il=0,La=0,Nc=0,_t=0,An=0,wu=null,gt=null,Tc=!1,es=0,Xh=0,ts=1/0,ls=null,Pl=null,Fe=0,ea=null,zn=null,Ol=0,Cc=0,Oc=null,Zh=null,Hu=0,Rc=null;function Dt(){return(xe&2)!==0&&me!==0?me&-me:q.T!==null?Uc():uf()}function Kh(){if(_t===0)if((me&536870912)===0||ve){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),_t=e}else _t=536870912;return e=At.current,e!==null&&(e.flags|=32),_t}function bt(e,t,l){(e===Me&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Mn(e,0),ta(e,me,_t,!1)),au(e,l),((xe&2)===0||e!==Me)&&(e===Me&&((xe&2)===0&&(La|=l),qe===4&&ta(e,me,_t,!1)),ul(e))}function Vh(e,t,l){if((xe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||lu(e,t),n=a?i0(e,t):zc(e,t,!0),s=a;do{if(n===0){Rn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!n0(l)){n=zc(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var h=e;n=wu;var x=h.current.memoizedState.isDehydrated;if(x&&(Mn(h,o).flags|=256),o=zc(h,o,!1),o!==2){if(jc&&!x){h.errorRecoveryDisabledLanes|=s,La|=s,n=4;break e}s=gt,gt=n,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}n=o}if(s=!1,n!==2)continue}}if(n===1){Mn(e,0),ta(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,_t,!Wl);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=es+300-Nt(),10<n)){if(ta(a,t,_t,!Wl),di(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=jm(Jh.bind(null,a,l,gt,ls,Tc,t,_t,La,An,Wl,s,"Throttled",-0,0),n);break e}Jh(a,l,gt,ls,Tc,t,_t,La,An,Wl,s,null,-0,0)}}break}while(!0);ul(e)}function Jh(e,t,l,a,n,s,o,h,x,A,w,L,z,_){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dl},Qh(t,s,L);var W=(s&62914560)===s?es-Nt():(s&4194048)===s?Xh-Nt():0;if(W=G0(L,W),W!==null){Ol=s,e.cancelPendingCommit=W(tm.bind(null,e,t,s,l,a,n,o,h,x,w,L,null,z,_)),ta(e,s,o,!A);return}}tm(e,t,s,l,a,n,o,h,x)}function n0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],s=n.getSnapshot;n=n.value;try{if(!Ot(s(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 ta(e,t,l,a){t&=~Nc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-Ct(n),o=1<<s;a[s]=-1,n&=~o}l!==0&&lf(e,l,t)}function as(){return(xe&6)===0?(qu(0),!1):!0}function Ac(){if(fe!==null){if(je===0)var e=fe.return;else e=fe,vl=Ma=null,Kr(e),Sn=null,bu=0,e=fe;for(;e!==null;)Nh(e.alternate,e),e=e.return;fe=null}}function Mn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,N0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ol=0,Ac(),Me=e,fe=l=ml(e.current,null),me=t,je=0,Mt=null,Wl=!1,Rn=lu(e,t),jc=!1,An=_t=Nc=La=Il=qe=0,gt=wu=null,Tc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Ct(a),s=1<<n;t|=e[n],a&=~s}return Cl=t,Ni(),l}function kh(e,t){se=null,q.H=Ou,t===xn||t===_i?(t=od(),je=3):t===Dr?(t=od(),je=4):je=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,fe===null&&(qe=1,Vi(e,Bt(t,e.current)))}function Fh(){var e=At.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function $h(){var e=q.H;return q.H=Ou,e===null?Ou:e}function Wh(){var e=q.A;return q.A=l0,e}function ns(){qe=4,Wl||(me&4194048)!==me&&At.current!==null||(Rn=!0),(Il&134217727)===0&&(La&134217727)===0||Me===null||ta(Me,me,_t,!1)}function zc(e,t,l){var a=xe;xe|=2;var n=$h(),s=Wh();(Me!==e||me!==t)&&(ls=null,Mn(e,t)),t=!1;var o=qe;e:do try{if(je!==0&&fe!==null){var h=fe,x=Mt;switch(je){case 8:Ac(),o=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var A=je;if(je=0,Mt=null,_n(e,h,x,A),l&&Rn){o=0;break e}break;default:A=je,je=0,Mt=null,_n(e,h,x,A)}}u0(),o=qe;break}catch(w){kh(e,w)}while(!0);return t&&e.shellSuspendCounter++,vl=Ma=null,xe=a,q.H=n,q.A=s,fe===null&&(Me=null,me=0,Ni()),o}function u0(){for(;fe!==null;)Ih(fe)}function i0(e,t){var l=xe;xe|=2;var a=$h(),n=Wh();Me!==e||me!==t?(ls=null,ts=Nt()+500,Mn(e,t)):Rn=lu(e,t);e:do try{if(je!==0&&fe!==null){t=fe;var s=Mt;t:switch(je){case 1:je=0,Mt=null,_n(e,t,s,1);break;case 2:case 9:if(rd(s)){je=0,Mt=null,Ph(t);break}t=function(){je!==2&&je!==9||Me!==e||(je=7),ul(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:rd(s)?(je=0,Mt=null,Ph(t)):(je=0,Mt=null,_n(e,t,s,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var h=fe;if(o?Bm(o):h.stateNode.complete){je=0,Mt=null;var x=h.sibling;if(x!==null)fe=x;else{var A=h.return;A!==null?(fe=A,us(A)):fe=null}break t}}je=0,Mt=null,_n(e,t,s,5);break;case 6:je=0,Mt=null,_n(e,t,s,6);break;case 8:Ac(),qe=6;break e;default:throw Error(c(462))}}s0();break}catch(w){kh(e,w)}while(!0);return vl=Ma=null,q.H=a,q.A=n,xe=l,fe!==null?0:(Me=null,me=0,Ni(),qe)}function s0(){for(;fe!==null&&!zv();)Ih(fe)}function Ih(e){var t=Eh(e.alternate,e,Cl);e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function Ph(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=vh(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=vh(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Kr(t);default:Nh(l,t),t=fe=Wf(t,Cl),t=Eh(l,t,Cl)}e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function _n(e,t,l,a){vl=Ma=null,Kr(t),Sn=null,bu=0;var n=t.return;try{if(Fp(e,n,t,l,me)){qe=1,Vi(e,Bt(l,e.current)),fe=null;return}}catch(s){if(n!==null)throw fe=n,s;qe=1,Vi(e,Bt(l,e.current)),fe=null;return}t.flags&32768?(ve||a===1?e=!0:Rn||(me&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),em(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){em(t,Wl);return}e=t.return;var l=Ip(t.alternate,t,Cl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);qe===0&&(qe=5)}function em(e,t){do{var l=Pp(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);qe=6,fe=null}function tm(e,t,l,a,n,s,o,h,x){e.cancelPendingCommit=null;do is();while(Fe!==0);if((xe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=gr,Lv(e,l,s,o,h,x),e===Me&&(fe=Me=null,me=0),zn=t,ea=e,Ol=l,Cc=s,Oc=n,Zh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f0(ri,function(){return im(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null,n=J.p,J.p=2,o=xe,xe|=4;try{e0(e,t,l)}finally{xe=o,J.p=n,q.T=a}}Fe=1,lm(),am(),nm()}}function lm(){if(Fe===1){Fe=0;var e=ea,t=zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var a=J.p;J.p=2;var n=xe;xe|=4;try{Hh(t,e);var s=Gc,o=Gf(e.containerInfo),h=s.focusedElem,x=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&Yf(h.ownerDocument.documentElement,h)){if(x!==null&&hr(h)){var A=x.start,w=x.end;if(w===void 0&&(w=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(w,h.value.length);else{var L=h.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var _=z.getSelection(),W=h.textContent.length,ae=Math.min(x.start,W),Ae=x.end===void 0?ae:Math.min(x.end,W);!_.extend&&ae>Ae&&(o=Ae,Ae=ae,ae=o);var C=Lf(h,ae),j=Lf(h,Ae);if(C&&j&&(_.rangeCount!==1||_.anchorNode!==C.node||_.anchorOffset!==C.offset||_.focusNode!==j.node||_.focusOffset!==j.offset)){var R=L.createRange();R.setStart(C.node,C.offset),_.removeAllRanges(),ae>Ae?(_.addRange(R),_.extend(j.node,j.offset)):(R.setEnd(j.node,j.offset),_.addRange(R))}}}}for(L=[],_=h;_=_.parentNode;)_.nodeType===1&&L.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<L.length;h++){var Q=L[h];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}gs=!!Yc,Gc=Yc=null}finally{xe=n,J.p=a,q.T=l}}e.current=t,Fe=2}}function am(){if(Fe===2){Fe=0;var e=ea,t=zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var a=J.p;J.p=2;var n=xe;xe|=4;try{Mh(e,t.alternate,t)}finally{xe=n,J.p=a,q.T=l}}Fe=3}}function nm(){if(Fe===4||Fe===3){Fe=0,Mv();var e=ea,t=zn,l=Ol,a=Zh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,zn=ea=null,um(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Pl=null),ks(l),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(tu,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=q.T,n=J.p,J.p=2,q.T=null;try{for(var s=e.onRecoverableError,o=0;o<a.length;o++){var h=a[o];s(h.value,{componentStack:h.stack})}}finally{q.T=t,J.p=n}}(Ol&3)!==0&&is(),ul(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Rc?Hu++:(Hu=0,Rc=e):Hu=0,qu(0)}}function um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pu(t)))}function is(){return lm(),am(),nm(),im()}function im(){if(Fe!==5)return!1;var e=ea,t=Cc;Cc=0;var l=ks(Ol),a=q.T,n=J.p;try{J.p=32>l?32:l,q.T=null,l=Oc,Oc=null;var s=ea,o=Ol;if(Fe=0,zn=ea=null,Ol=0,(xe&6)!==0)throw Error(c(331));var h=xe;if(xe|=4,Yh(s.current),Bh(s,s.current,o,l),xe=h,qu(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(tu,s)}catch{}return!0}finally{J.p=n,q.T=a,um(e,t)}}function sm(e,t,l){t=Bt(l,t),t=ic(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(au(e,2),ul(e))}function Ne(e,t,l){if(e.tag===3)sm(e,e,l);else for(;t!==null;){if(t.tag===3){sm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=Bt(l,e),l=rh(2),a=Jl(t,l,2),a!==null&&(ch(l,a,t,e),au(a,2),ul(a));break}}t=t.return}}function Mc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new a0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(jc=!0,n.add(l),e=r0.bind(null,e,t,l),t.then(e,e))}function r0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(me&l)===l&&(qe===4||qe===3&&(me&62914560)===me&&300>Nt()-es?(xe&2)===0&&Mn(e,0):Nc|=l,An===me&&(An=0)),ul(e)}function rm(e,t){t===0&&(t=tf()),e=Ra(e,t),e!==null&&(au(e,t),ul(e))}function c0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),rm(e,l)}function o0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),rm(e,l)}function f0(e,t){return Zs(e,t)}var ss=null,Dn=null,_c=!1,rs=!1,Dc=!1,la=0;function ul(e){e!==Dn&&e.next===null&&(Dn===null?ss=Dn=e:Dn=Dn.next=e),rs=!0,_c||(_c=!0,h0())}function qu(e,t){if(!Dc&&rs){Dc=!0;do for(var l=!1,a=ss;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var o=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-Ct(42|e)+1)-1,s&=n&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,dm(a,s))}else s=me,s=di(a,a===Me?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||lu(a,s)||(l=!0,dm(a,s));a=a.next}while(l);Dc=!1}}function d0(){cm()}function cm(){rs=_c=!1;var e=0;la!==0&&j0()&&(e=la);for(var t=Nt(),l=null,a=ss;a!==null;){var n=a.next,s=om(a,t);s===0?(a.next=null,l===null?ss=n:l.next=n,n===null&&(Dn=l)):(l=a,(e!==0||(s&3)!==0)&&(rs=!0)),a=n}Fe!==0&&Fe!==5||qu(e),la!==0&&(la=0)}function om(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-Ct(s),h=1<<o,x=n[o];x===-1?((h&l)===0||(h&a)!==0)&&(n[o]=Qv(h,t)):x<=t&&(e.expiredLanes|=h),s&=~h}if(t=Me,l=me,l=di(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ks(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||lu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ks(a),ks(l)){case 2:case 8:l=Po;break;case 32:l=ri;break;case 268435456:l=ef;break;default:l=ri}return a=fm.bind(null,e),l=Zs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ks(a),e.callbackPriority=2,e.callbackNode=null,2}function fm(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(is()&&e.callbackNode!==l)return null;var a=me;return a=di(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Vh(e,a,t),om(e,Nt()),e.callbackNode!=null&&e.callbackNode===l?fm.bind(null,e):null)}function dm(e,t){if(is())return null;Vh(e,t,!0)}function h0(){T0(function(){(xe&6)!==0?Zs(Io,d0):cm()})}function Uc(){if(la===0){var e=gn;e===0&&(e=ci,ci<<=1,(ci&261888)===0&&(ci=256)),la=e}return la}function hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function mm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function m0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=hm((n[ht]||null).action),o=a.submitter;o&&(t=(t=o[ht]||null)?hm(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var h=new xi("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var x=o?mm(n,o):new FormData(n);ec(l,{pending:!0,data:x,method:n.method,action:s},null,x)}}else typeof s=="function"&&(h.preventDefault(),x=o?mm(n,o):new FormData(n),ec(l,{pending:!0,data:x,method:n.method,action:s},s,x))},currentTarget:n}]})}}for(var wc=0;wc<pr.length;wc++){var Hc=pr[wc],y0=Hc.toLowerCase(),v0=Hc[0].toUpperCase()+Hc.slice(1);kt(y0,"on"+v0)}kt(Kf,"onAnimationEnd"),kt(Vf,"onAnimationIteration"),kt(Jf,"onAnimationStart"),kt("dblclick","onDoubleClick"),kt("focusin","onFocus"),kt("focusout","onBlur"),kt(_p,"onTransitionRun"),kt(Dp,"onTransitionStart"),kt(Up,"onTransitionCancel"),kt(kf,"onTransitionEnd"),an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bu="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(" "),p0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bu));function ym(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var o=a.length-1;0<=o;o--){var h=a[o],x=h.instance,A=h.currentTarget;if(h=h.listener,x!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=A;try{s(n)}catch(w){ji(w)}n.currentTarget=null,s=x}else for(o=0;o<a.length;o++){if(h=a[o],x=h.instance,A=h.currentTarget,h=h.listener,x!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=A;try{s(n)}catch(w){ji(w)}n.currentTarget=null,s=x}}}}function de(e,t){var l=t[Fs];l===void 0&&(l=t[Fs]=new Set);var a=e+"__bubble";l.has(a)||(vm(t,e,2,!1),l.add(a))}function qc(e,t,l){var a=0;t&&(a|=4),vm(l,e,a,t)}var cs="_reactListening"+Math.random().toString(36).slice(2);function Bc(e){if(!e[cs]){e[cs]=!0,cf.forEach(function(l){l!=="selectionchange"&&(p0.has(l)||qc(l,!1,e),qc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cs]||(t[cs]=!0,qc("selectionchange",!1,t))}}function vm(e,t,l,a){switch(Km(t)){case 2:var n=K0;break;case 8:n=V0;break;default:n=Pc}l=n.bind(null,t,l,e),n=void 0,!nr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Qc(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var h=a.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=a.return;o!==null;){var x=o.tag;if((x===3||x===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=en(h),o===null)return;if(x=o.tag,x===5||x===6||x===26||x===27){a=s=o;continue e}h=h.parentNode}}a=a.return}Sf(function(){var A=s,w=lr(l),L=[];e:{var z=Ff.get(e);if(z!==void 0){var _=xi,W=e;switch(e){case"keypress":if(gi(l)===0)break e;case"keydown":case"keyup":_=op;break;case"focusin":W="focus",_=rr;break;case"focusout":W="blur",_=rr;break;case"beforeblur":case"afterblur":_=rr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Iv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=hp;break;case Kf:case Vf:case Jf:_=tp;break;case kf:_=yp;break;case"scroll":case"scrollend":_=$v;break;case"wheel":_=pp;break;case"copy":case"cut":case"paste":_=ap;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Cf;break;case"toggle":case"beforetoggle":_=bp}var ae=(t&4)!==0,Ae=!ae&&(e==="scroll"||e==="scrollend"),C=ae?z!==null?z+"Capture":null:z;ae=[];for(var j=A,R;j!==null;){var Q=j;if(R=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||R===null||C===null||(Q=iu(j,C),Q!=null&&ae.push(Qu(j,Q,R))),Ae)break;j=j.return}0<ae.length&&(z=new _(z,W,null,l,w),L.push({event:z,listeners:ae}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",z&&l!==tr&&(W=l.relatedTarget||l.fromElement)&&(en(W)||W[Pa]))break e;if((_||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,_?(W=l.relatedTarget||l.toElement,_=A,W=W?en(W):null,W!==null&&(Ae=m(W),ae=W.tag,W!==Ae||ae!==5&&ae!==27&&ae!==6)&&(W=null)):(_=null,W=A),_!==W)){if(ae=Nf,Q="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Cf,Q="onPointerLeave",C="onPointerEnter",j="pointer"),Ae=_==null?z:uu(_),R=W==null?z:uu(W),z=new ae(Q,j+"leave",_,l,w),z.target=Ae,z.relatedTarget=R,Q=null,en(w)===A&&(ae=new ae(C,j+"enter",W,l,w),ae.target=R,ae.relatedTarget=Ae,Q=ae),Ae=Q,_&&W)t:{for(ae=g0,C=_,j=W,R=0,Q=C;Q;Q=ae(Q))R++;Q=0;for(var te=j;te;te=ae(te))Q++;for(;0<R-Q;)C=ae(C),R--;for(;0<Q-R;)j=ae(j),Q--;for(;R--;){if(C===j||j!==null&&C===j.alternate){ae=C;break t}C=ae(C),j=ae(j)}ae=null}else ae=null;_!==null&&pm(L,z,_,ae,!1),W!==null&&Ae!==null&&pm(L,Ae,W,ae,!0)}}e:{if(z=A?uu(A):window,_=z.nodeName&&z.nodeName.toLowerCase(),_==="select"||_==="input"&&z.type==="file")var ge=Uf;else if(_f(z))if(wf)ge=Ap;else{ge=Op;var P=Cp}else _=z.nodeName,!_||_.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?A&&er(A.elementType)&&(ge=Uf):ge=Rp;if(ge&&(ge=ge(e,A))){Df(L,ge,l,w);break e}P&&P(e,z,A),e==="focusout"&&A&&z.type==="number"&&A.memoizedProps.value!=null&&Ps(z,"number",z.value)}switch(P=A?uu(A):window,e){case"focusin":(_f(P)||P.contentEditable==="true")&&(on=P,mr=A,mu=null);break;case"focusout":mu=mr=on=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,Xf(L,l,w);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":Xf(L,l,w)}var re;if(or)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else cn?zf(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Of&&l.locale!=="ko"&&(cn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&cn&&(re=Ef()):(Ll=w,ur="value"in Ll?Ll.value:Ll.textContent,cn=!0)),P=os(A,ye),0<P.length&&(ye=new Tf(ye,e,null,l,w),L.push({event:ye,listeners:P}),re?ye.data=re:(re=Mf(l),re!==null&&(ye.data=re)))),(re=Sp?Ep(e,l):jp(e,l))&&(ye=os(A,"onBeforeInput"),0<ye.length&&(P=new Tf("onBeforeInput","beforeinput",null,l,w),L.push({event:P,listeners:ye}),P.data=re)),m0(L,e,A,l,w)}ym(L,t)})}function Qu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function os(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=iu(e,l),n!=null&&a.unshift(Qu(e,n,s)),n=iu(e,t),n!=null&&a.push(Qu(e,n,s))),e.tag===3)return a;e=e.return}return[]}function g0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pm(e,t,l,a,n){for(var s=t._reactName,o=[];l!==null&&l!==a;){var h=l,x=h.alternate,A=h.stateNode;if(h=h.tag,x!==null&&x===a)break;h!==5&&h!==26&&h!==27||A===null||(x=A,n?(A=iu(l,s),A!=null&&o.unshift(Qu(l,A,x))):n||(A=iu(l,s),A!=null&&o.push(Qu(l,A,x)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var b0=/\r\n?/g,x0=/\u0000|\uFFFD/g;function gm(e){return(typeof e=="string"?e:""+e).replace(b0,`
49
+ `).replace(x0,"")}function bm(e,t){return t=gm(t),gm(e)===t}function Re(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||un(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&un(e,""+a);break;case"className":mi(e,"class",a);break;case"tabIndex":mi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(e,l,a);break;case"style":bf(e,a,s);break;case"data":if(t!=="object"){mi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=dl);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=vi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":de("beforetoggle",e),de("toggle",e),hi(e,"popover",a);break;case"xlinkActuate":fl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":hi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=kv.get(l)||l,hi(e,l,a))}}function Lc(e,t,l,a,n,s){switch(l){case"style":bf(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?un(e,a):(typeof a=="number"||typeof a=="bigint")&&un(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!of.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[ht]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):hi(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var o=l[s];if(o!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,s,o,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var h=s=o=n=null,x=null,A=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":o=w;break;case"checked":x=w;break;case"defaultChecked":A=w;break;case"value":s=w;break;case"defaultValue":h=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,t));break;default:Re(e,t,a,w,l,null)}}yf(e,s,h,x,A,o,n,!1);return;case"select":de("invalid",e),a=o=s=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":a=h;default:Re(e,t,n,h,l,null)}t=s,l=o,e.multiple=!!a,t!=null?nn(e,!!a,t,!1):l!=null&&nn(e,!!a,l,!0);return;case"textarea":de("invalid",e),s=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":a=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,o,h,l,null)}pf(e,a,n,s);return;case"option":for(x in l)if(l.hasOwnProperty(x)&&(a=l[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,x,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Bu.length;a++)de(Bu[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,A,a,l,null)}return;default:if(er(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&Lc(e,t,w,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Re(e,t,h,a,l,null))}function S0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,o=null,h=null,x=null,A=null,w=null;for(_ in l){var L=l[_];if(l.hasOwnProperty(_)&&L!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":x=L;default:a.hasOwnProperty(_)||Re(e,t,_,null,a,L)}}for(var z in a){var _=a[z];if(L=l[z],a.hasOwnProperty(z)&&(_!=null||L!=null))switch(z){case"type":s=_;break;case"name":n=_;break;case"checked":A=_;break;case"defaultChecked":w=_;break;case"value":o=_;break;case"defaultValue":h=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(c(137,t));break;default:_!==L&&Re(e,t,z,_,a,L)}}Is(e,o,h,x,A,w,s,n);return;case"select":_=o=h=z=null;for(s in l)if(x=l[s],l.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":_=x;default:a.hasOwnProperty(s)||Re(e,t,s,null,a,x)}for(n in a)if(s=a[n],x=l[n],a.hasOwnProperty(n)&&(s!=null||x!=null))switch(n){case"value":z=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==x&&Re(e,t,n,s,a,x)}t=h,l=o,a=_,z!=null?nn(e,!!l,z,!1):!!a!=!!l&&(t!=null?nn(e,!!l,t,!0):nn(e,!!l,l?[]:"",!1));return;case"textarea":_=z=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,a,n)}for(o in a)if(n=a[o],s=l[o],a.hasOwnProperty(o)&&(n!=null||s!=null))switch(o){case"value":z=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==s&&Re(e,t,o,n,a,s)}vf(e,z,_);return;case"option":for(var W in l)if(z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Re(e,t,W,null,a,z)}for(x in a)if(z=a[x],_=l[x],a.hasOwnProperty(x)&&z!==_&&(z!=null||_!=null))switch(x){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Re(e,t,x,z,a,_)}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 ae in l)z=l[ae],l.hasOwnProperty(ae)&&z!=null&&!a.hasOwnProperty(ae)&&Re(e,t,ae,null,a,z);for(A in a)if(z=a[A],_=l[A],a.hasOwnProperty(A)&&z!==_&&(z!=null||_!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Re(e,t,A,z,a,_)}return;default:if(er(t)){for(var Ae in l)z=l[Ae],l.hasOwnProperty(Ae)&&z!==void 0&&!a.hasOwnProperty(Ae)&&Lc(e,t,Ae,void 0,a,z);for(w in a)z=a[w],_=l[w],!a.hasOwnProperty(w)||z===_||z===void 0&&_===void 0||Lc(e,t,w,z,a,_);return}}for(var C in l)z=l[C],l.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Re(e,t,C,null,a,z);for(L in a)z=a[L],_=l[L],!a.hasOwnProperty(L)||z===_||z==null&&_==null||Re(e,t,L,z,a,_)}function xm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],s=n.transferSize,o=n.initiatorType,h=n.duration;if(s&&h&&xm(o)){for(o=0,h=n.responseEnd,a+=1;a<l.length;a++){var x=l[a],A=x.startTime;if(A>h)break;var w=x.transferSize,L=x.initiatorType;w&&xm(L)&&(x=x.responseEnd,o+=w*(x<h?1:(h-A)/(x-A)))}if(--a,t+=8*(s+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Yc=null,Gc=null;function fs(e){return e.nodeType===9?e:e.ownerDocument}function Sm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Em(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zc=null;function j0(){var e=window.event;return e&&e.type==="popstate"?e===Zc?!1:(Zc=e,!0):(Zc=null,!1)}var jm=typeof setTimeout=="function"?setTimeout:void 0,N0=typeof clearTimeout=="function"?clearTimeout:void 0,Nm=typeof Promise=="function"?Promise:void 0,T0=typeof queueMicrotask=="function"?queueMicrotask:typeof Nm<"u"?function(e){return Nm.resolve(null).then(e).catch(C0)}:jm;function C0(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Tm(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),qn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Lu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Lu(l);for(var s=l.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[nu]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=o}}else l==="body"&&Lu(e.ownerDocument.body);l=n}while(l);qn(t)}function Cm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Kc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Kc(l),$s(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function O0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function R0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Xt(e.nextSibling),e===null))return null;return e}function Om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function Vc(e){return e.data==="$?"||e.data==="$~"}function Jc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function A0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kc=null;function Rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Xt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Am(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function zm(e,t,l){switch(t=fs(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$s(e)}var Zt=new Map,Mm=new Set;function ds(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rl=J.d;J.d={f:z0,r:M0,D:_0,C:D0,L:U0,m:w0,X:q0,S:H0,M:B0};function z0(){var e=Rl.f(),t=as();return e||t}function M0(e){var t=tn(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):Rl.r(e)}var Un=typeof document>"u"?null:document;function _m(e,t,l){var a=Un;if(a&&typeof t=="string"&&t){var n=Ht(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Mm.has(n)||(Mm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function _0(e){Rl.D(e),_m("dns-prefetch",e,null)}function D0(e,t){Rl.C(e,t),_m("preconnect",e,t)}function U0(e,t,l){Rl.L(e,t,l);var a=Un;if(a&&e&&t){var n='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ht(l.imageSizes)+'"]')):n+='[href="'+Ht(e)+'"]';var s=n;switch(t){case"style":s=wn(e);break;case"script":s=Hn(e)}Zt.has(s)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Yu(s))||t==="script"&&a.querySelector(Gu(s))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function w0(e,t){Rl.m(e,t);var l=Un;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ht(a)+'"][href="'+Ht(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Hn(e)}if(!Zt.has(s)&&(e=p({rel:"modulepreload",href:e},t),Zt.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gu(s)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function H0(e,t,l){Rl.S(e,t,l);var a=Un;if(a&&e){var n=ln(a).hoistableStyles,s=wn(e);t=t||"default";var o=n.get(s);if(!o){var h={loading:0,preload:null};if(o=a.querySelector(Yu(s)))h.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(s))&&Fc(e,l);var x=o=a.createElement("link");We(x),nt(x,"link",e),x._p=new Promise(function(A,w){x.onload=A,x.onerror=w}),x.addEventListener("load",function(){h.loading|=1}),x.addEventListener("error",function(){h.loading|=2}),h.loading|=4,hs(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(s,o)}}}function q0(e,t){Rl.X(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=p({src:e,async:!0},t),(t=Zt.get(n))&&$c(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function B0(e,t){Rl.M(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=p({src:e,async:!0,type:"module"},t),(t=Zt.get(n))&&$c(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function Dm(e,t,l,a){var n=(n=oe.current)?ds(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=ln(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var s=ln(n).hoistableStyles,o=s.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=n.querySelector(Yu(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),s||Q0(n,e,l,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hn(l),l=ln(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function wn(e){return'href="'+Ht(e)+'"'}function Yu(e){return'link[rel="stylesheet"]['+e+"]"}function Um(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Q0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Hn(e){return'[src="'+Ht(e)+'"]'}function Gu(e){return"script[async]"+e}function wm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ht(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),hs(a,l.precedence,e),t.instance=a;case"stylesheet":n=wn(l.href);var s=e.querySelector(Yu(n));if(s)return t.state.loading|=4,t.instance=s,We(s),s;a=Um(l),(n=Zt.get(n))&&Fc(a,n),s=(e.ownerDocument||e).createElement("link"),We(s);var o=s;return o._p=new Promise(function(h,x){o.onload=h,o.onerror=x}),nt(s,"link",a),t.state.loading|=4,hs(s,l.precedence,e),t.instance=s;case"script":return s=Hn(l.src),(n=e.querySelector(Gu(s)))?(t.instance=n,We(n),n):(a=l,(n=Zt.get(s))&&(a=p({},l),$c(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,hs(a,l.precedence,e));return t.instance}function hs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,o=0;o<a.length;o++){var h=a[o];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ms=null;function Hm(e,t,l){if(ms===null){var a=new Map,n=ms=new Map;n.set(l,a)}else n=ms,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var s=l[n];if(!(s[nu]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var h=a.get(o);h?h.push(s):a.set(o,[s])}}return a}function qm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function L0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Y0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=wn(a.href),s=t.querySelector(Yu(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,We(s);return}s=t.ownerDocument||t,a=Um(a),(n=Zt.get(n))&&Fc(a,n),s=s.createElement("link"),We(s);var o=s;o._p=new Promise(function(h,x){o.onload=h,o.onerror=x}),nt(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ys.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Wc=0;function G0(e,t){return e.stylesheets&&e.count===0&&ps(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Wc===0&&(Wc=62500*E0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Wc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vs=null;function ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vs=new Map,t.forEach(X0,e),vs=null,ys.call(e))}function X0(e,t){if(!(t.state.loading&4)){var l=vs.get(e);if(l)var a=l.get(null);else{l=new Map,vs.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var o=n[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),s=l.get(o)||a,s===a&&l.set(null,n),l.set(o,n),this.count++,a=ys.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Xu={$$typeof:B,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Z0(e,t,l,a,n,s,o,h,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.hiddenUpdates=Vs(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Qm(e,t,l,a,n,s,o,h,x,A,w,L){return e=new Z0(e,t,l,o,x,A,w,L,h),t=1,s===!0&&(t|=24),s=Rt(3,null,null,t),e.current=s,s.stateNode=e,t=zr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},Ur(s),e}function Lm(e){return e?(e=hn,e):hn}function Ym(e,t,l,a,n,s){n=Lm(n),a.context===null?a.context=n:a.pendingContext=n,a=Vl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=Jl(e,a,t),l!==null&&(bt(l,e,t),Su(l,e,t))}function Gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ic(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}function Xm(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&bt(t,e,67108864),Ic(e,67108864)}}function Zm(e){if(e.tag===13||e.tag===31){var t=Dt();t=Js(t);var l=Ra(e,t);l!==null&&bt(l,e,t),Ic(e,t)}}var gs=!0;function K0(e,t,l,a){var n=q.T;q.T=null;var s=J.p;try{J.p=2,Pc(e,t,l,a)}finally{J.p=s,q.T=n}}function V0(e,t,l,a){var n=q.T;q.T=null;var s=J.p;try{J.p=8,Pc(e,t,l,a)}finally{J.p=s,q.T=n}}function Pc(e,t,l,a){if(gs){var n=eo(a);if(n===null)Qc(e,t,a,bs,l),Vm(e,a);else if(k0(n,e,t,l,a))a.stopPropagation();else if(Vm(e,a),t&4&&-1<J0.indexOf(e)){for(;n!==null;){var s=tn(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=ja(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var x=1<<31-Ct(o);h.entanglements[1]|=x,o&=~x}ul(s),(xe&6)===0&&(ts=Nt()+500,qu(0))}}break;case 31:case 13:h=Ra(s,2),h!==null&&bt(h,s,2),as(),Ic(s,2)}if(s=eo(a),s===null&&Qc(e,t,a,bs,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Qc(e,t,a,null,l)}}function eo(e){return e=lr(e),to(e)}var bs=null;function to(e){if(bs=null,e=en(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bs=e,null}function Km(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_v()){case Io:return 2;case Po:return 8;case ri:case Dv:return 32;case ef:return 268435456;default:return 32}default:return 32}}var lo=!1,na=null,ua=null,ia=null,Zu=new Map,Ku=new Map,sa=[],J0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vm(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(t.pointerId)}}function Vu(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=tn(t),t!==null&&Xm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function k0(e,t,l,a,n){switch(t){case"focusin":return na=Vu(na,e,t,l,a,n),!0;case"dragenter":return ua=Vu(ua,e,t,l,a,n),!0;case"mouseover":return ia=Vu(ia,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return Zu.set(s,Vu(Zu.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Ku.set(s,Vu(Ku.get(s)||null,e,t,l,a,n)),!0}return!1}function Jm(e){var t=en(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,sf(e.priority,function(){Zm(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,sf(e.priority,function(){Zm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=eo(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);tr=a,l.target.dispatchEvent(a),tr=null}else return t=tn(l),t!==null&&Xm(t),e.blockedOn=l,!1;t.shift()}return!0}function km(e,t,l){xs(e)&&l.delete(t)}function F0(){lo=!1,na!==null&&xs(na)&&(na=null),ua!==null&&xs(ua)&&(ua=null),ia!==null&&xs(ia)&&(ia=null),Zu.forEach(km),Ku.forEach(km)}function Ss(e,t){e.blockedOn===t&&(e.blockedOn=null,lo||(lo=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,F0)))}var Es=null;function Fm(e){Es!==e&&(Es=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Es===e&&(Es=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(to(a||l)===null)continue;break}var s=tn(l);s!==null&&(e.splice(t,3),t-=3,ec(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function qn(e){function t(x){return Ss(x,e)}na!==null&&Ss(na,e),ua!==null&&Ss(ua,e),ia!==null&&Ss(ia,e),Zu.forEach(t),Ku.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)Jm(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],o=n[ht]||null;if(typeof s=="function")o||Fm(l);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,o=s[ht]||null)h=o.formAction;else if(to(n)!==null)continue}else h=o.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Fm(l)}}}function $m(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ao(e){this._internalRoot=e}js.prototype.render=ao.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Dt();Ym(l,a,e,t,null,null)},js.prototype.unmount=ao.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ym(e.current,2,null,e,null,null),as(),t[Pa]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=uf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&Jm(e)}};var Wm=i.version;if(Wm!=="19.2.4")throw Error(c(527,Wm,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var $0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{tu=Ns.inject($0),Tt=Ns}catch{}}return Fu.createRoot=function(e,t){if(!d(e))throw Error(c(299));var l=!1,a="",n=nh,s=uh,o=ih;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Qm(e,1,!1,null,null,l,a,null,n,s,o,$m),e[Pa]=t.current,Bc(e),new ao(t)},Fu.hydrateRoot=function(e,t,l){if(!d(e))throw Error(c(299));var a=!1,n="",s=nh,o=uh,h=ih,x=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=Qm(e,1,!0,t,l??null,a,n,x,s,o,h,$m),t.context=Lm(null),l=t.current,a=Dt(),a=Js(a),n=Vl(a),n.callback=null,Jl(l,n,a),l=a,t.current.lanes=l,au(t,l),ul(t),e[Pa]=t.current,Bc(e),new js(t)},Fu.version="19.2.4",Fu}var ry;function rg(){if(ry)return so.exports;ry=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),so.exports=sg(),so.exports}var cg=rg(),$n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},og={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},oa,wo,Oy,fg=(Oy=class{constructor(){ee(this,oa,og);ee(this,wo,!1)}setTimeoutProvider(u){$(this,oa,u)}setTimeout(u,i){return S(this,oa).setTimeout(u,i)}clearTimeout(u){S(this,oa).clearTimeout(u)}setInterval(u,i){return S(this,oa).setInterval(u,i)}clearInterval(u){S(this,oa).clearInterval(u)}},oa=new WeakMap,wo=new WeakMap,Oy),Ya=new fg;function dg(u){setTimeout(u,0)}var Wa=typeof window>"u"||"Deno"in globalThis;function ft(){}function hg(u,i){return typeof u=="function"?u(i):u}function yo(u){return typeof u=="number"&&u>=0&&u!==1/0}function By(u,i){return Math.max(u+(i||0)-Date.now(),0)}function xa(u,i){return typeof u=="function"?u(i):u}function Vt(u,i){return typeof u=="function"?u(i):u}function cy(u,i){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:g}=u;if(y){if(c){if(i.queryHash!==qo(y,i.options))return!1}else if(!Iu(i.queryKey,y))return!1}if(r!=="all"){const b=i.isActive();if(r==="active"&&!b||r==="inactive"&&b)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||d&&d!==i.state.fetchStatus||m&&!m(i))}function oy(u,i){const{exact:r,status:c,predicate:d,mutationKey:m}=u;if(m){if(!i.options.mutationKey)return!1;if(r){if(Ia(i.options.mutationKey)!==Ia(m))return!1}else if(!Iu(i.options.mutationKey,m))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function qo(u,i){return((i==null?void 0:i.queryKeyHashFn)||Ia)(u)}function Ia(u){return JSON.stringify(u,(i,r)=>vo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Iu(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(r=>Iu(u[r],i[r])):!1}var mg=Object.prototype.hasOwnProperty;function Qy(u,i,r=0){if(u===i)return u;if(r>500)return i;const c=fy(u)&&fy(i);if(!c&&!(vo(u)&&vo(i)))return i;const m=(c?u:Object.keys(u)).length,y=c?i:Object.keys(i),g=y.length,b=c?new Array(g):{};let v=0;for(let N=0;N<g;N++){const p=c?N:y[N],M=u[p],U=i[p];if(M===U){b[p]=M,(c?N<m:mg.call(u,p))&&v++;continue}if(M===null||U===null||typeof M!="object"||typeof U!="object"){b[p]=U;continue}const K=Qy(M,U,r+1);b[p]=K,K===M&&v++}return m===g&&v===m?u:b}function Ds(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const r in u)if(u[r]!==i[r])return!1;return!0}function fy(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function vo(u){if(!dy(u))return!1;const i=u.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!dy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function dy(u){return Object.prototype.toString.call(u)==="[object Object]"}function yg(u){return new Promise(i=>{Ya.setTimeout(i,u)})}function po(u,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(u,i):r.structuralSharing!==!1?Qy(u,i):i}function vg(u,i,r=0){const c=[...u,i];return r&&c.length>r?c.slice(1):c}function pg(u,i,r=0){const c=[i,...u];return r&&c.length>r?c.slice(0,-1):c}var Bo=Symbol();function Ly(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===Bo?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Qo(u,i){return typeof u=="function"?u(...i):!!u}function gg(u,i,r){let c=!1,d;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),u}var Ga,fa,Bn,Ry,bg=(Ry=class extends $n{constructor(){super();ee(this,Ga);ee(this,fa);ee(this,Bn);$(this,Bn,i=>{if(!Wa&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,fa)||this.setEventListener(S(this,Bn))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,fa))==null||i.call(this),$(this,fa,void 0))}setEventListener(i){var r;$(this,Bn,i),(r=S(this,fa))==null||r.call(this),$(this,fa,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){S(this,Ga)!==i&&($(this,Ga,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof S(this,Ga)=="boolean"?S(this,Ga):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ga=new WeakMap,fa=new WeakMap,Bn=new WeakMap,Ry),Lo=new bg;function go(){let u,i;const r=new Promise((d,m)=>{u=d,i=m});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),u(d)},r.reject=d=>{c({status:"rejected",reason:d}),i(d)},r}var xg=dg;function Sg(){let u=[],i=0,r=g=>{g()},c=g=>{g()},d=xg;const m=g=>{i?u.push(g):d(()=>{r(g)})},y=()=>{const g=u;u=[],g.length&&d(()=>{c(()=>{g.forEach(b=>{r(b)})})})};return{batch:g=>{let b;i++;try{b=g()}finally{i--,i||y()}return b},batchCalls:g=>(...b)=>{m(()=>{g(...b)})},schedule:m,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{d=g}}}var $e=Sg(),Qn,da,Ln,Ay,Eg=(Ay=class extends $n{constructor(){super();ee(this,Qn,!0);ee(this,da);ee(this,Ln);$(this,Ln,i=>{if(!Wa&&window.addEventListener){const r=()=>i(!0),c=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){S(this,da)||this.setEventListener(S(this,Ln))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,da))==null||i.call(this),$(this,da,void 0))}setEventListener(i){var r;$(this,Ln,i),(r=S(this,da))==null||r.call(this),$(this,da,i(this.setOnline.bind(this)))}setOnline(i){S(this,Qn)!==i&&($(this,Qn,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return S(this,Qn)}},Qn=new WeakMap,da=new WeakMap,Ln=new WeakMap,Ay),Us=new Eg;function jg(u){return Math.min(1e3*2**u,3e4)}function Yy(u){return(u??"online")==="online"?Us.isOnline():!0}var bo=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function Gy(u){let i=!1,r=0,c;const d=go(),m=()=>d.status!=="pending",y=O=>{var H;if(!m()){const D=new bo(O);M(D),(H=u.onCancel)==null||H.call(u,D)}},g=()=>{i=!0},b=()=>{i=!1},v=()=>Lo.isFocused()&&(u.networkMode==="always"||Us.isOnline())&&u.canRun(),N=()=>Yy(u.networkMode)&&u.canRun(),p=O=>{m()||(c==null||c(),d.resolve(O))},M=O=>{m()||(c==null||c(),d.reject(O))},U=()=>new Promise(O=>{var H;c=D=>{(m()||v())&&O(D)},(H=u.onPause)==null||H.call(u)}).then(()=>{var O;c=void 0,m()||(O=u.onContinue)==null||O.call(u)}),K=()=>{if(m())return;let O;const H=r===0?u.initialPromise:void 0;try{O=H??u.fn()}catch(D){O=Promise.reject(D)}Promise.resolve(O).then(p).catch(D=>{var V;if(m())return;const Y=u.retry??(Wa?0:3),B=u.retryDelay??jg,Z=typeof B=="function"?B(r,D):B,G=Y===!0||typeof Y=="number"&&r<Y||typeof Y=="function"&&Y(r,D);if(i||!G){M(D);return}r++,(V=u.onFail)==null||V.call(u,r,D),yg(Z).then(()=>v()?void 0:U()).then(()=>{i?M(D):K()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:b,canStart:N,start:()=>(N()?K():U().then(K),d)}}var Xa,zy,Xy=(zy=class{constructor(){ee(this,Xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yo(this.gcTime)&&$(this,Xa,Ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(Wa?1/0:300*1e3))}clearGcTimeout(){S(this,Xa)&&(Ya.clearTimeout(S(this,Xa)),$(this,Xa,void 0))}},Xa=new WeakMap,zy),Za,Yn,Kt,Ka,Pe,ei,Va,Wt,Al,My,Ng=(My=class extends Xy{constructor(i){super();ee(this,Wt);ee(this,Za);ee(this,Yn);ee(this,Kt);ee(this,Ka);ee(this,Pe);ee(this,ei);ee(this,Va);$(this,Va,!1),$(this,ei,i.defaultOptions),this.setOptions(i.options),this.observers=[],$(this,Ka,i.client),$(this,Kt,S(this,Ka).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,$(this,Za,my(this.options)),this.state=i.state??S(this,Za),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=S(this,Pe))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,ei),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=my(this.options);r.data!==void 0&&(this.setState(hy(r.data,r.dataUpdatedAt)),$(this,Za,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Kt).remove(this)}setData(i,r){const c=po(this.state.data,i,this.options);return ce(this,Wt,Al).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(i,r){ce(this,Wt,Al).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var c,d;const r=(c=S(this,Pe))==null?void 0:c.promise;return(d=S(this,Pe))==null||d.cancel(i),r?r.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Za))}isActive(){return this.observers.some(i=>Vt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>xa(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!By(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}onOnline(){var r;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(this,Kt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(S(this,Pe)&&(S(this,Va)?S(this,Pe).cancel({revert:!0}):S(this,Pe).cancelRetry()),this.scheduleGc()),S(this,Kt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,Wt,Al).call(this,{type:"invalidate"})}async fetch(i,r){var b,v,N,p,M,U,K,O,H,D,Y,B;if(this.state.fetchStatus!=="idle"&&((b=S(this,Pe))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Pe))return S(this,Pe).continueRetry(),S(this,Pe).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Z=this.observers.find(G=>G.options.queryFn);Z&&this.setOptions(Z.options)}const c=new AbortController,d=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>($(this,Va,!0),c.signal)})},m=()=>{const Z=Ly(this.options,r),V=(()=>{const k={client:S(this,Ka),queryKey:this.queryKey,meta:this.meta};return d(k),k})();return $(this,Va,!1),this.options.persister?this.options.persister(Z,V,this):Z(V)},g=(()=>{const Z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Ka),state:this.state,fetchFn:m};return d(Z),Z})();(v=this.options.behavior)==null||v.onFetch(g,this),$(this,Yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((N=g.fetchOptions)==null?void 0:N.meta))&&ce(this,Wt,Al).call(this,{type:"fetch",meta:(p=g.fetchOptions)==null?void 0:p.meta}),$(this,Pe,Gy({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:Z=>{Z instanceof bo&&Z.revert&&this.setState({...S(this,Yn),fetchStatus:"idle"}),c.abort()},onFail:(Z,G)=>{ce(this,Wt,Al).call(this,{type:"failed",failureCount:Z,error:G})},onPause:()=>{ce(this,Wt,Al).call(this,{type:"pause"})},onContinue:()=>{ce(this,Wt,Al).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const Z=await S(this,Pe).start();if(Z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Z),(U=(M=S(this,Kt).config).onSuccess)==null||U.call(M,Z,this),(O=(K=S(this,Kt).config).onSettled)==null||O.call(K,Z,this.state.error,this),Z}catch(Z){if(Z instanceof bo){if(Z.silent)return S(this,Pe).promise;if(Z.revert){if(this.state.data===void 0)throw Z;return this.state.data}}throw ce(this,Wt,Al).call(this,{type:"error",error:Z}),(D=(H=S(this,Kt).config).onError)==null||D.call(H,Z,this),(B=(Y=S(this,Kt).config).onSettled)==null||B.call(Y,this.state.data,Z,this),Z}finally{this.scheduleGc()}}},Za=new WeakMap,Yn=new WeakMap,Kt=new WeakMap,Ka=new WeakMap,Pe=new WeakMap,ei=new WeakMap,Va=new WeakMap,Wt=new WeakSet,Al=function(i){const r=c=>{switch(i.type){case"failed":return{...c,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Zy(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...hy(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,Yn,i.manual?d:void 0),d;case"error":const m=i.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=r(this.state),$e.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,Kt).notify({query:this,type:"updated",action:i})})},My);function Zy(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yy(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function hy(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function my(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,r=i!==void 0,c=r?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var xt,pe,ti,ot,Ja,Gn,zl,ha,li,Xn,Zn,ka,Fa,ma,Kn,Ee,Wu,xo,So,Eo,jo,No,To,Co,Ky,_y,Tg=(_y=class extends $n{constructor(i,r){super();ee(this,Ee);ee(this,xt);ee(this,pe);ee(this,ti);ee(this,ot);ee(this,Ja);ee(this,Gn);ee(this,zl);ee(this,ha);ee(this,li);ee(this,Xn);ee(this,Zn);ee(this,ka);ee(this,Fa);ee(this,ma);ee(this,Kn,new Set);this.options=r,$(this,xt,i),$(this,ha,null),$(this,zl,go()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pe).addObserver(this),yy(S(this,pe),this.options)?ce(this,Ee,Wu).call(this):this.updateResult(),ce(this,Ee,jo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oo(S(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oo(S(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ee,No).call(this),ce(this,Ee,To).call(this),S(this,pe).removeObserver(this)}setOptions(i){const r=this.options,c=S(this,pe);if(this.options=S(this,xt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,S(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ee,Co).call(this),S(this,pe).setOptions(this.options),r._defaulted&&!Ds(this.options,r)&&S(this,xt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pe),observer:this});const d=this.hasListeners();d&&vy(S(this,pe),c,this.options,r)&&ce(this,Ee,Wu).call(this),this.updateResult(),d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||xa(this.options.staleTime,S(this,pe))!==xa(r.staleTime,S(this,pe)))&&ce(this,Ee,xo).call(this);const m=ce(this,Ee,So).call(this);d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||m!==S(this,ma))&&ce(this,Ee,Eo).call(this,m)}getOptimisticResult(i){const r=S(this,xt).getQueryCache().build(S(this,xt),i),c=this.createResult(r,i);return Og(this,c)&&($(this,ot,c),$(this,Gn,this.options),$(this,Ja,S(this,pe).state)),c}getCurrentResult(){return S(this,ot)}trackResult(i,r){return new Proxy(i,{get:(c,d)=>(this.trackProp(d),r==null||r(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,zl).status==="pending"&&S(this,zl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){S(this,Kn).add(i)}getCurrentQuery(){return S(this,pe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=S(this,xt).defaultQueryOptions(i),c=S(this,xt).getQueryCache().build(S(this,xt),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(i){return ce(this,Ee,Wu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ot)))}createResult(i,r){var he;const c=S(this,pe),d=this.options,m=S(this,ot),y=S(this,Ja),g=S(this,Gn),v=i!==c?i.state:S(this,ti),{state:N}=i;let p={...N},M=!1,U;if(r._optimisticResults){const Te=this.hasListeners(),Je=!Te&&yy(i,r),ke=Te&&vy(i,c,r,d);(Je||ke)&&(p={...p,...Zy(N.data,i.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:K,errorUpdatedAt:O,status:H}=p;U=p.data;let D=!1;if(r.placeholderData!==void 0&&U===void 0&&H==="pending"){let Te;m!=null&&m.isPlaceholderData&&r.placeholderData===(g==null?void 0:g.placeholderData)?(Te=m.data,D=!0):Te=typeof r.placeholderData=="function"?r.placeholderData((he=S(this,Zn))==null?void 0:he.state.data,S(this,Zn)):r.placeholderData,Te!==void 0&&(H="success",U=po(m==null?void 0:m.data,Te,r),M=!0)}if(r.select&&U!==void 0&&!D)if(m&&U===(y==null?void 0:y.data)&&r.select===S(this,li))U=S(this,Xn);else try{$(this,li,r.select),U=r.select(U),U=po(m==null?void 0:m.data,U,r),$(this,Xn,U),$(this,ha,null)}catch(Te){$(this,ha,Te)}S(this,ha)&&(K=S(this,ha),U=S(this,Xn),O=Date.now(),H="error");const Y=p.fetchStatus==="fetching",B=H==="pending",Z=H==="error",G=B&&Y,V=U!==void 0,le={status:H,fetchStatus:p.fetchStatus,isPending:B,isSuccess:H==="success",isError:Z,isInitialLoading:G,isLoading:G,data:U,dataUpdatedAt:p.dataUpdatedAt,error:K,errorUpdatedAt:O,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>v.dataUpdateCount||p.errorUpdateCount>v.errorUpdateCount,isFetching:Y,isRefetching:Y&&!B,isLoadingError:Z&&!V,isPaused:p.fetchStatus==="paused",isPlaceholderData:M,isRefetchError:Z&&V,isStale:Yo(i,r),refetch:this.refetch,promise:S(this,zl),isEnabled:Vt(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Te=le.data!==void 0,Je=le.status==="error"&&!Te,ke=ut=>{Je?ut.reject(le.error):Te&&ut.resolve(le.data)},tl=()=>{const ut=$(this,zl,le.promise=go());ke(ut)},dt=S(this,zl);switch(dt.status){case"pending":i.queryHash===c.queryHash&&ke(dt);break;case"fulfilled":(Je||le.data!==dt.value)&&tl();break;case"rejected":(!Je||le.error!==dt.reason)&&tl();break}}return le}updateResult(){const i=S(this,ot),r=this.createResult(S(this,pe),this.options);if($(this,Ja,S(this,pe).state),$(this,Gn,this.options),S(this,Ja).data!==void 0&&$(this,Zn,S(this,pe)),Ds(r,i))return;$(this,ot,r);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,m=typeof d=="function"?d():d;if(m==="all"||!m&&!S(this,Kn).size)return!0;const y=new Set(m??S(this,Kn));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,ot)).some(g=>{const b=g;return S(this,ot)[b]!==i[b]&&y.has(b)})};ce(this,Ee,Ky).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ee,jo).call(this)}},xt=new WeakMap,pe=new WeakMap,ti=new WeakMap,ot=new WeakMap,Ja=new WeakMap,Gn=new WeakMap,zl=new WeakMap,ha=new WeakMap,li=new WeakMap,Xn=new WeakMap,Zn=new WeakMap,ka=new WeakMap,Fa=new WeakMap,ma=new WeakMap,Kn=new WeakMap,Ee=new WeakSet,Wu=function(i){ce(this,Ee,Co).call(this);let r=S(this,pe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(ft)),r},xo=function(){ce(this,Ee,No).call(this);const i=xa(this.options.staleTime,S(this,pe));if(Wa||S(this,ot).isStale||!yo(i))return;const c=By(S(this,ot).dataUpdatedAt,i)+1;$(this,ka,Ya.setTimeout(()=>{S(this,ot).isStale||this.updateResult()},c))},So=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pe)):this.options.refetchInterval)??!1},Eo=function(i){ce(this,Ee,To).call(this),$(this,ma,i),!(Wa||Vt(this.options.enabled,S(this,pe))===!1||!yo(S(this,ma))||S(this,ma)===0)&&$(this,Fa,Ya.setInterval(()=>{(this.options.refetchIntervalInBackground||Lo.isFocused())&&ce(this,Ee,Wu).call(this)},S(this,ma)))},jo=function(){ce(this,Ee,xo).call(this),ce(this,Ee,Eo).call(this,ce(this,Ee,So).call(this))},No=function(){S(this,ka)&&(Ya.clearTimeout(S(this,ka)),$(this,ka,void 0))},To=function(){S(this,Fa)&&(Ya.clearInterval(S(this,Fa)),$(this,Fa,void 0))},Co=function(){const i=S(this,xt).getQueryCache().build(S(this,xt),this.options);if(i===S(this,pe))return;const r=S(this,pe);$(this,pe,i),$(this,ti,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},Ky=function(i){$e.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(S(this,ot))}),S(this,xt).getQueryCache().notify({query:S(this,pe),type:"observerResultsUpdated"})})},_y);function Cg(u,i){return Vt(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&i.retryOnMount===!1)}function yy(u,i){return Cg(u,i)||u.state.data!==void 0&&Oo(u,i,i.refetchOnMount)}function Oo(u,i,r){if(Vt(i.enabled,u)!==!1&&xa(i.staleTime,u)!=="static"){const c=typeof r=="function"?r(u):r;return c==="always"||c!==!1&&Yo(u,i)}return!1}function vy(u,i,r,c){return(u!==i||Vt(c.enabled,u)===!1)&&(!r.suspense||u.state.status!=="error")&&Yo(u,r)}function Yo(u,i){return Vt(i.enabled,u)!==!1&&u.isStaleByTime(xa(i.staleTime,u))}function Og(u,i){return!Ds(u.getCurrentResult(),i)}function py(u){return{onFetch:(i,r)=>{var N,p,M,U,K;const c=i.options,d=(M=(p=(N=i.fetchOptions)==null?void 0:N.meta)==null?void 0:p.fetchMore)==null?void 0:M.direction,m=((U=i.state.data)==null?void 0:U.pages)||[],y=((K=i.state.data)==null?void 0:K.pageParams)||[];let g={pages:[],pageParams:[]},b=0;const v=async()=>{let O=!1;const H=B=>{gg(B,()=>i.signal,()=>O=!0)},D=Ly(i.options,i.fetchOptions),Y=async(B,Z,G)=>{if(O)return Promise.reject();if(Z==null&&B.pages.length)return Promise.resolve(B);const k=(()=>{const Je={client:i.client,queryKey:i.queryKey,pageParam:Z,direction:G?"backward":"forward",meta:i.options.meta};return H(Je),Je})(),le=await D(k),{maxPages:he}=i.options,Te=G?pg:vg;return{pages:Te(B.pages,le,he),pageParams:Te(B.pageParams,Z,he)}};if(d&&m.length){const B=d==="backward",Z=B?Rg:gy,G={pages:m,pageParams:y},V=Z(c,G);g=await Y(G,V,B)}else{const B=u??m.length;do{const Z=b===0?y[0]??c.initialPageParam:gy(c,g);if(b>0&&Z==null)break;g=await Y(g,Z),b++}while(b<B)}return g};i.options.persister?i.fetchFn=()=>{var O,H;return(H=(O=i.options).persister)==null?void 0:H.call(O,v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=v}}}function gy(u,{pages:i,pageParams:r}){const c=i.length-1;return i.length>0?u.getNextPageParam(i[c],i,r[c],r):void 0}function Rg(u,{pages:i,pageParams:r}){var c;return i.length>0?(c=u.getPreviousPageParam)==null?void 0:c.call(u,i[0],i,r[0],r):void 0}var ai,sl,st,$a,rl,ca,Dy,Ag=(Dy=class extends Xy{constructor(i){super();ee(this,rl);ee(this,ai);ee(this,sl);ee(this,st);ee(this,$a);$(this,ai,i.client),this.mutationId=i.mutationId,$(this,st,i.mutationCache),$(this,sl,[]),this.state=i.state||Vy(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,sl).includes(i)||(S(this,sl).push(i),this.clearGcTimeout(),S(this,st).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){$(this,sl,S(this,sl).filter(r=>r!==i)),this.scheduleGc(),S(this,st).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,sl).length||(this.state.status==="pending"?this.scheduleGc():S(this,st).remove(this))}continue(){var i;return((i=S(this,$a))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,g,b,v,N,p,M,U,K,O,H,D,Y,B,Z,G,V,k;const r=()=>{ce(this,rl,ca).call(this,{type:"continue"})},c={client:S(this,ai),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,$a,Gy({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(le,he)=>{ce(this,rl,ca).call(this,{type:"failed",failureCount:le,error:he})},onPause:()=>{ce(this,rl,ca).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,st).canRun(this)}));const d=this.state.status==="pending",m=!S(this,$a).canStart();try{if(d)r();else{ce(this,rl,ca).call(this,{type:"pending",variables:i,isPaused:m}),S(this,st).config.onMutate&&await S(this,st).config.onMutate(i,this,c);const he=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,i,c));he!==this.state.context&&ce(this,rl,ca).call(this,{type:"pending",context:he,variables:i,isPaused:m})}const le=await S(this,$a).start();return await((v=(b=S(this,st).config).onSuccess)==null?void 0:v.call(b,le,i,this.state.context,this,c)),await((p=(N=this.options).onSuccess)==null?void 0:p.call(N,le,i,this.state.context,c)),await((U=(M=S(this,st).config).onSettled)==null?void 0:U.call(M,le,null,this.state.variables,this.state.context,this,c)),await((O=(K=this.options).onSettled)==null?void 0:O.call(K,le,null,i,this.state.context,c)),ce(this,rl,ca).call(this,{type:"success",data:le}),le}catch(le){try{await((D=(H=S(this,st).config).onError)==null?void 0:D.call(H,le,i,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((B=(Y=this.options).onError)==null?void 0:B.call(Y,le,i,this.state.context,c))}catch(he){Promise.reject(he)}try{await((G=(Z=S(this,st).config).onSettled)==null?void 0:G.call(Z,void 0,le,this.state.variables,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((k=(V=this.options).onSettled)==null?void 0:k.call(V,void 0,le,i,this.state.context,c))}catch(he){Promise.reject(he)}throw ce(this,rl,ca).call(this,{type:"error",error:le}),le}finally{S(this,st).runNext(this)}}},ai=new WeakMap,sl=new WeakMap,st=new WeakMap,$a=new WeakMap,rl=new WeakSet,ca=function(i){const r=c=>{switch(i.type){case"failed":return{...c,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...c,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:i.error,failureCount:c.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),$e.batch(()=>{S(this,sl).forEach(c=>{c.onMutationUpdate(i)}),S(this,st).notify({mutation:this,type:"updated",action:i})})},Dy);function Vy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ml,It,ni,Uy,zg=(Uy=class extends $n{constructor(i={}){super();ee(this,Ml);ee(this,It);ee(this,ni);this.config=i,$(this,Ml,new Set),$(this,It,new Map),$(this,ni,0)}build(i,r,c){const d=new Ag({client:i,mutationCache:this,mutationId:++Ts(this,ni)._,options:i.defaultMutationOptions(r),state:c});return this.add(d),d}add(i){S(this,Ml).add(i);const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);c?c.push(i):S(this,It).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,Ml).delete(i)){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&S(this,It).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const r=Cs(i);if(typeof r=="string"){const d=(c=S(this,It).get(r))==null?void 0:c.find(m=>m!==i&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{S(this,Ml).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,Ml).clear(),S(this,It).clear()})}getAll(){return Array.from(S(this,Ml))}find(i){const r={exact:!0,...i};return this.getAll().find(c=>oy(r,c))}findAll(i={}){return this.getAll().filter(r=>oy(i,r))}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return $e.batch(()=>Promise.all(i.map(r=>r.continue().catch(ft))))}},Ml=new WeakMap,It=new WeakMap,ni=new WeakMap,Uy);function Cs(u){var i;return(i=u.options.scope)==null?void 0:i.id}var _l,ya,St,Dl,wl,As,Ro,wy,Mg=(wy=class extends $n{constructor(r,c){super();ee(this,wl);ee(this,_l);ee(this,ya);ee(this,St);ee(this,Dl);$(this,_l,r),this.setOptions(c),this.bindMethods(),ce(this,wl,As).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var d;const c=this.options;this.options=S(this,_l).defaultMutationOptions(r),Ds(this.options,c)||S(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,St),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Ia(c.mutationKey)!==Ia(this.options.mutationKey)?this.reset():((d=S(this,St))==null?void 0:d.state.status)==="pending"&&S(this,St).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=S(this,St))==null||r.removeObserver(this)}onMutationUpdate(r){ce(this,wl,As).call(this),ce(this,wl,Ro).call(this,r)}getCurrentResult(){return S(this,ya)}reset(){var r;(r=S(this,St))==null||r.removeObserver(this),$(this,St,void 0),ce(this,wl,As).call(this),ce(this,wl,Ro).call(this)}mutate(r,c){var d;return $(this,Dl,c),(d=S(this,St))==null||d.removeObserver(this),$(this,St,S(this,_l).getMutationCache().build(S(this,_l),this.options)),S(this,St).addObserver(this),S(this,St).execute(r)}},_l=new WeakMap,ya=new WeakMap,St=new WeakMap,Dl=new WeakMap,wl=new WeakSet,As=function(){var c;const r=((c=S(this,St))==null?void 0:c.state)??Vy();$(this,ya,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Ro=function(r){$e.batch(()=>{var c,d,m,y,g,b,v,N;if(S(this,Dl)&&this.hasListeners()){const p=S(this,ya).variables,M=S(this,ya).context,U={client:S(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(d=(c=S(this,Dl)).onSuccess)==null||d.call(c,r.data,p,M,U)}catch(K){Promise.reject(K)}try{(y=(m=S(this,Dl)).onSettled)==null||y.call(m,r.data,null,p,M,U)}catch(K){Promise.reject(K)}}else if((r==null?void 0:r.type)==="error"){try{(b=(g=S(this,Dl)).onError)==null||b.call(g,r.error,p,M,U)}catch(K){Promise.reject(K)}try{(N=(v=S(this,Dl)).onSettled)==null||N.call(v,void 0,r.error,p,M,U)}catch(K){Promise.reject(K)}}}this.listeners.forEach(p=>{p(S(this,ya))})})},wy),cl,Hy,_g=(Hy=class extends $n{constructor(i={}){super();ee(this,cl);this.config=i,$(this,cl,new Map)}build(i,r,c){const d=r.queryKey,m=r.queryHash??qo(d,r);let y=this.get(m);return y||(y=new Ng({client:i,queryKey:d,queryHash:m,options:i.defaultQueryOptions(r),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(y)),y}add(i){S(this,cl).has(i.queryHash)||(S(this,cl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=S(this,cl).get(i.queryHash);r&&(i.destroy(),r===i&&S(this,cl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){$e.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,cl).get(i)}getAll(){return[...S(this,cl).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(c=>cy(r,c))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(c=>cy(i,c)):r}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},cl=new WeakMap,Hy),Be,va,pa,Vn,Jn,ga,kn,Fn,qy,Dg=(qy=class{constructor(u={}){ee(this,Be);ee(this,va);ee(this,pa);ee(this,Vn);ee(this,Jn);ee(this,ga);ee(this,kn);ee(this,Fn);$(this,Be,u.queryCache||new _g),$(this,va,u.mutationCache||new zg),$(this,pa,u.defaultOptions||{}),$(this,Vn,new Map),$(this,Jn,new Map),$(this,ga,0)}mount(){Ts(this,ga)._++,S(this,ga)===1&&($(this,kn,Lo.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onFocus())})),$(this,Fn,Us.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onOnline())})))}unmount(){var u,i;Ts(this,ga)._--,S(this,ga)===0&&((u=S(this,kn))==null||u.call(this),$(this,kn,void 0),(i=S(this,Fn))==null||i.call(this),$(this,Fn,void 0))}isFetching(u){return S(this,Be).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,va).findAll({...u,status:"pending"}).length}getQueryData(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),r=S(this,Be).build(this,i),c=r.state.data;return c===void 0?this.fetchQuery(u):(u.revalidateIfStale&&r.isStaleByTime(xa(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(u){return S(this,Be).findAll(u).map(({queryKey:i,state:r})=>{const c=r.data;return[i,c]})}setQueryData(u,i,r){const c=this.defaultQueryOptions({queryKey:u}),d=S(this,Be).get(c.queryHash),m=d==null?void 0:d.state.data,y=hg(i,m);if(y!==void 0)return S(this,Be).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(u,i,r){return $e.batch(()=>S(this,Be).findAll(u).map(({queryKey:c})=>[c,this.setQueryData(c,i,r)]))}getQueryState(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state}removeQueries(u){const i=S(this,Be);$e.batch(()=>{i.findAll(u).forEach(r=>{i.remove(r)})})}resetQueries(u,i){const r=S(this,Be);return $e.batch(()=>(r.findAll(u).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const r={revert:!0,...i},c=$e.batch(()=>S(this,Be).findAll(u).map(d=>d.cancel(r)));return Promise.all(c).then(ft).catch(ft)}invalidateQueries(u,i={}){return $e.batch(()=>(S(this,Be).findAll(u).forEach(r=>{r.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},c=$e.batch(()=>S(this,Be).findAll(u).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ft)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const r=S(this,Be).build(this,i);return r.isStaleByTime(xa(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(ft).catch(ft)}fetchInfiniteQuery(u){return u.behavior=py(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(ft).catch(ft)}ensureInfiniteQueryData(u){return u.behavior=py(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return Us.isOnline()?S(this,va).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Be)}getMutationCache(){return S(this,va)}getDefaultOptions(){return S(this,pa)}setDefaultOptions(u){$(this,pa,u)}setQueryDefaults(u,i){S(this,Vn).set(Ia(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...S(this,Vn).values()],r={};return i.forEach(c=>{Iu(u,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(u,i){S(this,Jn).set(Ia(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...S(this,Jn).values()],r={};return i.forEach(c=>{Iu(u,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(u){if(u._defaulted)return u;const i={...S(this,pa).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=qo(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Bo&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,pa).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,Be).clear(),S(this,va).clear()}},Be=new WeakMap,va=new WeakMap,pa=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,ga=new WeakMap,kn=new WeakMap,Fn=new WeakMap,qy),Jy=E.createContext(void 0),qs=u=>{const i=E.useContext(Jy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Ug=({client:u,children:i})=>(E.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),f.jsx(Jy.Provider,{value:u,children:i})),ky=E.createContext(!1),wg=()=>E.useContext(ky);ky.Provider;function Hg(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var qg=E.createContext(Hg()),Bg=()=>E.useContext(qg),Qg=(u,i,r)=>{const c=r!=null&&r.state.error&&typeof u.throwOnError=="function"?Qo(u.throwOnError,[r.state.error,r]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||c)&&(i.isReset()||(u.retryOnMount=!1))},Lg=u=>{E.useEffect(()=>{u.clearReset()},[u])},Yg=({result:u,errorResetBoundary:i,throwOnError:r,query:c,suspense:d})=>u.isError&&!i.isReset()&&!u.isFetching&&c&&(d&&u.data===void 0||Qo(r,[u.error,c])),Gg=u=>{if(u.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=u.staleTime;u.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},Xg=(u,i)=>u.isLoading&&u.isFetching&&!i,Zg=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,by=(u,i,r)=>i.fetchOptimistic(u).catch(()=>{r.clearReset()});function Kg(u,i,r){var M,U,K,O;const c=wg(),d=Bg(),m=qs(),y=m.defaultQueryOptions(u);(U=(M=m.getDefaultOptions().queries)==null?void 0:M._experimental_beforeQuery)==null||U.call(M,y);const g=m.getQueryCache().get(y.queryHash);y._optimisticResults=c?"isRestoring":"optimistic",Gg(y),Qg(y,d,g),Lg(d);const b=!m.getQueryCache().get(y.queryHash),[v]=E.useState(()=>new i(m,y)),N=v.getOptimisticResult(y),p=!c&&u.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(H=>{const D=p?v.subscribe($e.batchCalls(H)):ft;return v.updateResult(),D},[v,p]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),E.useEffect(()=>{v.setOptions(y)},[y,v]),Zg(y,N))throw by(y,v,d);if(Yg({result:N,errorResetBoundary:d,throwOnError:y.throwOnError,query:g,suspense:y.suspense}))throw N.error;if((O=(K=m.getDefaultOptions().queries)==null?void 0:K._experimental_afterQuery)==null||O.call(K,y,N),y.experimental_prefetchInRender&&!Wa&&Xg(N,c)){const H=b?by(y,v,d):g==null?void 0:g.promise;H==null||H.catch(ft).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?N:v.trackResult(N)}function Pt(u,i){return Kg(u,Tg)}function Ao(u,i){const r=qs(),[c]=E.useState(()=>new Mg(r,u));E.useEffect(()=>{c.setOptions(u)},[c,u]);const d=E.useSyncExternalStore(E.useCallback(y=>c.subscribe($e.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m=E.useCallback((y,g)=>{c.mutate(y,g).catch(ft)},[c]);if(d.error&&Qo(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}const Vg=new Dg({defaultOptions:{queries:{staleTime:5e3,retry:1}}});/**
50
50
  * react-router v7.13.0
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,9 +55,9 @@ Error generating stack: `+a.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */var xy="popstate";function Jg(u={}){function i(c,d){let{pathname:m,search:y,hash:g}=c.location;return zo("",{pathname:m,search:y,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:Pu(d)}return Fg(i,r,null,u)}function we(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function el(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function kg(){return Math.random().toString(36).substring(2,10)}function Sy(u,i){return{usr:u.state,key:u.key,idx:i}}function zo(u,i,r=null,c){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?Wn(i):i,state:r,key:i&&i.key||c||kg()}}function Pu({pathname:u="/",search:i="",hash:r=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(u+=r.charAt(0)==="#"?r:"#"+r),u}function Wn(u){let i={};if(u){let r=u.indexOf("#");r>=0&&(i.hash=u.substring(r),u=u.substring(0,r));let c=u.indexOf("?");c>=0&&(i.search=u.substring(c),u=u.substring(0,c)),u&&(i.pathname=u)}return i}function Fg(u,i,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,g="POP",x=null,v=N();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function N(){return(y.state||{idx:null}).idx}function p(){g="POP";let H=N(),D=H==null?null:H-v;v=H,x&&x({action:g,location:O.location,delta:D})}function M(H,D){g="PUSH";let Y=zo(O.location,H,D);v=N()+1;let B=Sy(Y,v),Z=O.createHref(Y);try{y.pushState(B,"",Z)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;d.location.assign(Z)}m&&x&&x({action:g,location:O.location,delta:1})}function U(H,D){g="REPLACE";let Y=zo(O.location,H,D);v=N();let B=Sy(Y,v),Z=O.createHref(Y);y.replaceState(B,"",Z),m&&x&&x({action:g,location:O.location,delta:0})}function K(H){return $g(H)}let O={get action(){return g},get location(){return u(d,y)},listen(H){if(x)throw new Error("A history only accepts one active listener");return d.addEventListener(xy,p),x=H,()=>{d.removeEventListener(xy,p),x=null}},createHref(H){return i(d,H)},createURL:K,encodeLocation(H){let D=K(H);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:M,replace:U,go(H){return y.go(H)}};return O}function $g(u,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),we(r,"No window.location.(origin|href) available to create URL");let c=typeof u=="string"?u:Pu(u);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Fy(u,i,r="/"){return Wg(u,i,r,!1)}function Wg(u,i,r,c){let d=typeof i=="string"?Wn(i):i,m=Hl(d.pathname||"/",r);if(m==null)return null;let y=$y(u);Ig(y);let g=null;for(let x=0;g==null&&x<y.length;++x){let v=cb(m);g=sb(y[x],v,c)}return g}function $y(u,i=[],r=[],c="",d=!1){let m=(y,g,x=d,v)=>{let N={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:g,route:y};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(c)&&x)return;we(N.relativePath.startsWith(c),`Absolute route path "${N.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(c.length)}let p=Ul([c,N.relativePath]),M=r.concat(N);y.children&&y.children.length>0&&(we(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),$y(y.children,i,M,p,x)),!(y.path==null&&!y.index)&&i.push({path:p,score:ub(p,y.index),routesMeta:M})};return u.forEach((y,g)=>{var x;if(y.path===""||!((x=y.path)!=null&&x.includes("?")))m(y,g);else for(let v of Wy(y.path))m(y,g,!0,v)}),i}function Wy(u){let i=u.split("/");if(i.length===0)return[];let[r,...c]=i,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=Wy(c.join("/")),g=[];return g.push(...y.map(x=>x===""?m:[m,x].join("/"))),d&&g.push(...y),g.map(x=>u.startsWith("/")&&x===""?"/":x)}function Ig(u){u.sort((i,r)=>i.score!==r.score?r.score-i.score:ib(i.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var Pg=/^:[\w-]+$/,eb=3,tb=2,lb=1,ab=10,nb=-2,Ey=u=>u==="*";function ub(u,i){let r=u.split("/"),c=r.length;return r.some(Ey)&&(c+=nb),i&&(c+=tb),r.filter(d=>!Ey(d)).reduce((d,m)=>d+(Pg.test(m)?eb:m===""?lb:ab),c)}function ib(u,i){return u.length===i.length&&u.slice(0,-1).every((c,d)=>c===i[d])?u[u.length-1]-i[i.length-1]:0}function sb(u,i,r=!1){let{routesMeta:c}=u,d={},m="/",y=[];for(let g=0;g<c.length;++g){let x=c[g],v=g===c.length-1,N=m==="/"?i:i.slice(m.length)||"/",p=ws({path:x.relativePath,caseSensitive:x.caseSensitive,end:v},N),M=x.route;if(!p&&v&&r&&!c[c.length-1].route.index&&(p=ws({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},N)),!p)return null;Object.assign(d,p.params),y.push({params:d,pathname:Ul([m,p.pathname]),pathnameBase:hb(Ul([m,p.pathnameBase])),route:M}),p.pathnameBase!=="/"&&(m=Ul([m,p.pathnameBase]))}return y}function ws(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[r,c]=rb(u.path,u.caseSensitive,u.end),d=i.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((v,{paramName:N,isOptional:p},M)=>{if(N==="*"){let K=g[M]||"";y=m.slice(0,m.length-K.length).replace(/(.)\/+$/,"$1")}const U=g[M];return p&&!U?v[N]=void 0:v[N]=(U||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:u}}function rb(u,i=!1,r=!0){el(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let c=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,g,x)=>(c.push({paramName:g,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(c.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function cb(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Hl(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=u.charAt(r);return c&&c!=="/"?null:u.slice(r)||"/"}var ob=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fb(u,i="/"){let{pathname:r,search:c="",hash:d=""}=typeof u=="string"?Wn(u):u,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=jy(r.substring(1),"/"):m=jy(r,i)):m=i,{pathname:m,search:mb(c),hash:yb(d)}}function jy(u,i){let r=i.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function fo(u,i,r,c){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function db(u){return u.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Go(u){let i=db(u);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function Xo(u,i,r,c=!1){let d;typeof u=="string"?d=Wn(u):(d={...u},we(!d.pathname||!d.pathname.includes("?"),fo("?","pathname","search",d)),we(!d.pathname||!d.pathname.includes("#"),fo("#","pathname","hash",d)),we(!d.search||!d.search.includes("#"),fo("#","search","hash",d)));let m=u===""||d.pathname==="",y=m?"/":d.pathname,g;if(y==null)g=r;else{let p=i.length-1;if(!c&&y.startsWith("..")){let M=y.split("/");for(;M[0]==="..";)M.shift(),p-=1;d.pathname=M.join("/")}g=p>=0?i[p]:"/"}let x=fb(d,g),v=y&&y!=="/"&&y.endsWith("/"),N=(m||y===".")&&r.endsWith("/");return!x.pathname.endsWith("/")&&(v||N)&&(x.pathname+="/"),x}var Ul=u=>u.join("/").replace(/\/\/+/g,"/"),hb=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),mb=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,yb=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,vb=class{constructor(u,i,r,c=!1){this.status=u,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function pb(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function gb(u){return u.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Iy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Py(u,i){let r=u;if(typeof r!="string"||!ob.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Iy)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),g=Hl(y.pathname,i);y.origin===m.origin&&g!=null?r=g+y.search+y.hash:d=!0}catch{el(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ev=["POST","PUT","PATCH","DELETE"];new Set(ev);var bb=["GET",...ev];new Set(bb);var In=E.createContext(null);In.displayName="DataRouter";var Bs=E.createContext(null);Bs.displayName="DataRouterState";var xb=E.createContext(!1),tv=E.createContext({isTransitioning:!1});tv.displayName="ViewTransition";var Sb=E.createContext(new Map);Sb.displayName="Fetchers";var Eb=E.createContext(null);Eb.displayName="Await";var Ut=E.createContext(null);Ut.displayName="Navigation";var ui=E.createContext(null);ui.displayName="Location";var ol=E.createContext({outlet:null,matches:[],isDataRoute:!1});ol.displayName="Route";var Zo=E.createContext(null);Zo.displayName="RouteError";var lv="REACT_ROUTER_ERROR",jb="REDIRECT",Nb="ROUTE_ERROR_RESPONSE";function Tb(u){if(u.startsWith(`${lv}:${jb}:{`))try{let i=JSON.parse(u.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Cb(u){if(u.startsWith(`${lv}:${Nb}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new vb(i.status,i.statusText,i.data)}catch{}}function Ob(u,{relative:i}={}){we(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=E.useContext(Ut),{hash:d,pathname:m,search:y}=ii(u,{relative:i}),g=m;return r!=="/"&&(g=m==="/"?r:Ul([r,m])),c.createHref({pathname:g,search:y,hash:d})}function Pn(){return E.useContext(ui)!=null}function Sa(){return we(Pn(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ui).location}var av="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nv(u){E.useContext(Ut).static||E.useLayoutEffect(u)}function uv(){let{isDataRoute:u}=E.useContext(ol);return u?Lb():Rb()}function Rb(){we(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(In),{basename:i,navigator:r}=E.useContext(Ut),{matches:c}=E.useContext(ol),{pathname:d}=Sa(),m=JSON.stringify(Go(c)),y=E.useRef(!1);return nv(()=>{y.current=!0}),E.useCallback((x,v={})=>{if(el(y.current,av),!y.current)return;if(typeof x=="number"){r.go(x);return}let N=Xo(x,JSON.parse(m),d,v.relative==="path");u==null&&i!=="/"&&(N.pathname=N.pathname==="/"?i:Ul([i,N.pathname])),(v.replace?r.replace:r.push)(N,v.state,v)},[i,r,m,d,u])}E.createContext(null);function ii(u,{relative:i}={}){let{matches:r}=E.useContext(ol),{pathname:c}=Sa(),d=JSON.stringify(Go(r));return E.useMemo(()=>Xo(u,JSON.parse(d),c,i==="path"),[u,d,c,i])}function Ab(u,i){return iv(u,i)}function iv(u,i,r,c,d){var Y;we(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=E.useContext(Ut),{matches:y}=E.useContext(ol),g=y[y.length-1],x=g?g.params:{},v=g?g.pathname:"/",N=g?g.pathnameBase:"/",p=g&&g.route;{let B=p&&p.path||"";rv(v,!p||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${B}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
+ */var xy="popstate";function Jg(u={}){function i(c,d){let{pathname:m,search:y,hash:g}=c.location;return zo("",{pathname:m,search:y,hash:g},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:Pu(d)}return Fg(i,r,null,u)}function we(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function el(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function kg(){return Math.random().toString(36).substring(2,10)}function Sy(u,i){return{usr:u.state,key:u.key,idx:i}}function zo(u,i,r=null,c){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?Wn(i):i,state:r,key:i&&i.key||c||kg()}}function Pu({pathname:u="/",search:i="",hash:r=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(u+=r.charAt(0)==="#"?r:"#"+r),u}function Wn(u){let i={};if(u){let r=u.indexOf("#");r>=0&&(i.hash=u.substring(r),u=u.substring(0,r));let c=u.indexOf("?");c>=0&&(i.search=u.substring(c),u=u.substring(0,c)),u&&(i.pathname=u)}return i}function Fg(u,i,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,g="POP",b=null,v=N();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function N(){return(y.state||{idx:null}).idx}function p(){g="POP";let H=N(),D=H==null?null:H-v;v=H,b&&b({action:g,location:O.location,delta:D})}function M(H,D){g="PUSH";let Y=zo(O.location,H,D);v=N()+1;let B=Sy(Y,v),Z=O.createHref(Y);try{y.pushState(B,"",Z)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;d.location.assign(Z)}m&&b&&b({action:g,location:O.location,delta:1})}function U(H,D){g="REPLACE";let Y=zo(O.location,H,D);v=N();let B=Sy(Y,v),Z=O.createHref(Y);y.replaceState(B,"",Z),m&&b&&b({action:g,location:O.location,delta:0})}function K(H){return $g(H)}let O={get action(){return g},get location(){return u(d,y)},listen(H){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(xy,p),b=H,()=>{d.removeEventListener(xy,p),b=null}},createHref(H){return i(d,H)},createURL:K,encodeLocation(H){let D=K(H);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:M,replace:U,go(H){return y.go(H)}};return O}function $g(u,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),we(r,"No window.location.(origin|href) available to create URL");let c=typeof u=="string"?u:Pu(u);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Fy(u,i,r="/"){return Wg(u,i,r,!1)}function Wg(u,i,r,c){let d=typeof i=="string"?Wn(i):i,m=Hl(d.pathname||"/",r);if(m==null)return null;let y=$y(u);Ig(y);let g=null;for(let b=0;g==null&&b<y.length;++b){let v=cb(m);g=sb(y[b],v,c)}return g}function $y(u,i=[],r=[],c="",d=!1){let m=(y,g,b=d,v)=>{let N={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:g,route:y};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(c)&&b)return;we(N.relativePath.startsWith(c),`Absolute route path "${N.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(c.length)}let p=Ul([c,N.relativePath]),M=r.concat(N);y.children&&y.children.length>0&&(we(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),$y(y.children,i,M,p,b)),!(y.path==null&&!y.index)&&i.push({path:p,score:ub(p,y.index),routesMeta:M})};return u.forEach((y,g)=>{var b;if(y.path===""||!((b=y.path)!=null&&b.includes("?")))m(y,g);else for(let v of Wy(y.path))m(y,g,!0,v)}),i}function Wy(u){let i=u.split("/");if(i.length===0)return[];let[r,...c]=i,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=Wy(c.join("/")),g=[];return g.push(...y.map(b=>b===""?m:[m,b].join("/"))),d&&g.push(...y),g.map(b=>u.startsWith("/")&&b===""?"/":b)}function Ig(u){u.sort((i,r)=>i.score!==r.score?r.score-i.score:ib(i.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var Pg=/^:[\w-]+$/,eb=3,tb=2,lb=1,ab=10,nb=-2,Ey=u=>u==="*";function ub(u,i){let r=u.split("/"),c=r.length;return r.some(Ey)&&(c+=nb),i&&(c+=tb),r.filter(d=>!Ey(d)).reduce((d,m)=>d+(Pg.test(m)?eb:m===""?lb:ab),c)}function ib(u,i){return u.length===i.length&&u.slice(0,-1).every((c,d)=>c===i[d])?u[u.length-1]-i[i.length-1]:0}function sb(u,i,r=!1){let{routesMeta:c}=u,d={},m="/",y=[];for(let g=0;g<c.length;++g){let b=c[g],v=g===c.length-1,N=m==="/"?i:i.slice(m.length)||"/",p=ws({path:b.relativePath,caseSensitive:b.caseSensitive,end:v},N),M=b.route;if(!p&&v&&r&&!c[c.length-1].route.index&&(p=ws({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},N)),!p)return null;Object.assign(d,p.params),y.push({params:d,pathname:Ul([m,p.pathname]),pathnameBase:hb(Ul([m,p.pathnameBase])),route:M}),p.pathnameBase!=="/"&&(m=Ul([m,p.pathnameBase]))}return y}function ws(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[r,c]=rb(u.path,u.caseSensitive,u.end),d=i.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((v,{paramName:N,isOptional:p},M)=>{if(N==="*"){let K=g[M]||"";y=m.slice(0,m.length-K.length).replace(/(.)\/+$/,"$1")}const U=g[M];return p&&!U?v[N]=void 0:v[N]=(U||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:u}}function rb(u,i=!1,r=!0){el(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let c=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,g,b)=>(c.push({paramName:g,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(c.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function cb(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Hl(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=u.charAt(r);return c&&c!=="/"?null:u.slice(r)||"/"}var ob=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fb(u,i="/"){let{pathname:r,search:c="",hash:d=""}=typeof u=="string"?Wn(u):u,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=jy(r.substring(1),"/"):m=jy(r,i)):m=i,{pathname:m,search:mb(c),hash:yb(d)}}function jy(u,i){let r=i.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function fo(u,i,r,c){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function db(u){return u.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Go(u){let i=db(u);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function Xo(u,i,r,c=!1){let d;typeof u=="string"?d=Wn(u):(d={...u},we(!d.pathname||!d.pathname.includes("?"),fo("?","pathname","search",d)),we(!d.pathname||!d.pathname.includes("#"),fo("#","pathname","hash",d)),we(!d.search||!d.search.includes("#"),fo("#","search","hash",d)));let m=u===""||d.pathname==="",y=m?"/":d.pathname,g;if(y==null)g=r;else{let p=i.length-1;if(!c&&y.startsWith("..")){let M=y.split("/");for(;M[0]==="..";)M.shift(),p-=1;d.pathname=M.join("/")}g=p>=0?i[p]:"/"}let b=fb(d,g),v=y&&y!=="/"&&y.endsWith("/"),N=(m||y===".")&&r.endsWith("/");return!b.pathname.endsWith("/")&&(v||N)&&(b.pathname+="/"),b}var Ul=u=>u.join("/").replace(/\/\/+/g,"/"),hb=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),mb=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,yb=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,vb=class{constructor(u,i,r,c=!1){this.status=u,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function pb(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function gb(u){return u.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Iy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Py(u,i){let r=u;if(typeof r!="string"||!ob.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Iy)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),g=Hl(y.pathname,i);y.origin===m.origin&&g!=null?r=g+y.search+y.hash:d=!0}catch{el(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ev=["POST","PUT","PATCH","DELETE"];new Set(ev);var bb=["GET",...ev];new Set(bb);var In=E.createContext(null);In.displayName="DataRouter";var Bs=E.createContext(null);Bs.displayName="DataRouterState";var xb=E.createContext(!1),tv=E.createContext({isTransitioning:!1});tv.displayName="ViewTransition";var Sb=E.createContext(new Map);Sb.displayName="Fetchers";var Eb=E.createContext(null);Eb.displayName="Await";var Ut=E.createContext(null);Ut.displayName="Navigation";var ui=E.createContext(null);ui.displayName="Location";var ol=E.createContext({outlet:null,matches:[],isDataRoute:!1});ol.displayName="Route";var Zo=E.createContext(null);Zo.displayName="RouteError";var lv="REACT_ROUTER_ERROR",jb="REDIRECT",Nb="ROUTE_ERROR_RESPONSE";function Tb(u){if(u.startsWith(`${lv}:${jb}:{`))try{let i=JSON.parse(u.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Cb(u){if(u.startsWith(`${lv}:${Nb}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new vb(i.status,i.statusText,i.data)}catch{}}function Ob(u,{relative:i}={}){we(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=E.useContext(Ut),{hash:d,pathname:m,search:y}=ii(u,{relative:i}),g=m;return r!=="/"&&(g=m==="/"?r:Ul([r,m])),c.createHref({pathname:g,search:y,hash:d})}function Pn(){return E.useContext(ui)!=null}function Sa(){return we(Pn(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ui).location}var av="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nv(u){E.useContext(Ut).static||E.useLayoutEffect(u)}function uv(){let{isDataRoute:u}=E.useContext(ol);return u?Lb():Rb()}function Rb(){we(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(In),{basename:i,navigator:r}=E.useContext(Ut),{matches:c}=E.useContext(ol),{pathname:d}=Sa(),m=JSON.stringify(Go(c)),y=E.useRef(!1);return nv(()=>{y.current=!0}),E.useCallback((b,v={})=>{if(el(y.current,av),!y.current)return;if(typeof b=="number"){r.go(b);return}let N=Xo(b,JSON.parse(m),d,v.relative==="path");u==null&&i!=="/"&&(N.pathname=N.pathname==="/"?i:Ul([i,N.pathname])),(v.replace?r.replace:r.push)(N,v.state,v)},[i,r,m,d,u])}E.createContext(null);function ii(u,{relative:i}={}){let{matches:r}=E.useContext(ol),{pathname:c}=Sa(),d=JSON.stringify(Go(r));return E.useMemo(()=>Xo(u,JSON.parse(d),c,i==="path"),[u,d,c,i])}function Ab(u,i){return iv(u,i)}function iv(u,i,r,c,d){var Y;we(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=E.useContext(Ut),{matches:y}=E.useContext(ol),g=y[y.length-1],b=g?g.params:{},v=g?g.pathname:"/",N=g?g.pathnameBase:"/",p=g&&g.route;{let B=p&&p.path||"";rv(v,!p||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${B}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
59
 
60
- Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let M=Sa(),U;if(i){let B=typeof i=="string"?Wn(i):i;we(N==="/"||((Y=B.pathname)==null?void 0:Y.startsWith(N)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${N}" but pathname "${B.pathname}" was given in the \`location\` prop.`),U=B}else U=M;let K=U.pathname||"/",O=K;if(N!=="/"){let B=N.replace(/^\//,"").split("/");O="/"+K.replace(/^\//,"").split("/").slice(B.length).join("/")}let H=Fy(u,{pathname:O});el(p||H!=null,`No routes matched location "${U.pathname}${U.search}${U.hash}" `),el(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${U.pathname}${U.search}${U.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=Ub(H&&H.map(B=>Object.assign({},B,{params:Object.assign({},x,B.params),pathname:Ul([N,m.encodeLocation?m.encodeLocation(B.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?N:Ul([N,m.encodeLocation?m.encodeLocation(B.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),y,r,c,d);return i&&D?E.createElement(ui.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...U},navigationType:"POP"}},D):D}function zb(){let u=Qb(),i=pb(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:m},"ErrorBoundary")," or"," ",E.createElement("code",{style:m},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),r?E.createElement("pre",{style:d},r):null,y)}var Mb=E.createElement(zb,null),sv=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const r=Cb(u.digest);r&&(u=r)}let i=u!==void 0?E.createElement(ol.Provider,{value:this.props.routeContext},E.createElement(Zo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(_b,{error:u},i):i}};sv.contextType=xb;var ho=new WeakMap;function _b({children:u,error:i}){let{basename:r}=E.useContext(Ut);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Tb(i.digest);if(c){let d=ho.get(i);if(d)throw d;let m=Py(c.location,r);if(Iy&&!ho.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw ho.set(i,y),y}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function Db({routeContext:u,match:i,children:r}){let c=E.useContext(In);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(ol.Provider,{value:u},r)}function Ub(u,i=[],r=null,c=null,d=null){if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let m=u,y=r==null?void 0:r.errors;if(y!=null){let N=m.findIndex(p=>p.route.id&&(y==null?void 0:y[p.route.id])!==void 0);we(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,N+1))}let g=!1,x=-1;if(r)for(let N=0;N<m.length;N++){let p=m[N];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(x=N),p.route.id){let{loaderData:M,errors:U}=r,K=p.route.loader&&!M.hasOwnProperty(p.route.id)&&(!U||U[p.route.id]===void 0);if(p.route.lazy||K){g=!0,x>=0?m=m.slice(0,x+1):m=[m[0]];break}}}let v=r&&c?(N,p)=>{var M,U;c(N,{location:r.location,params:((U=(M=r.matches)==null?void 0:M[0])==null?void 0:U.params)??{},unstable_pattern:gb(r.matches),errorInfo:p})}:void 0;return m.reduceRight((N,p,M)=>{let U,K=!1,O=null,H=null;r&&(U=y&&p.route.id?y[p.route.id]:void 0,O=p.route.errorElement||Mb,g&&(x<0&&M===0?(rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,H=null):x===M&&(K=!0,H=p.route.hydrateFallbackElement||null)));let D=i.concat(m.slice(0,M+1)),Y=()=>{let B;return U?B=O:K?B=H:p.route.Component?B=E.createElement(p.route.Component,null):p.route.element?B=p.route.element:B=N,E.createElement(Db,{match:p,routeContext:{outlet:N,matches:D,isDataRoute:r!=null},children:B})};return r&&(p.route.ErrorBoundary||p.route.errorElement||M===0)?E.createElement(sv,{location:r.location,revalidation:r.revalidation,component:O,error:U,children:Y(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:v}):Y()},null)}function Ko(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wb(u){let i=E.useContext(In);return we(i,Ko(u)),i}function Hb(u){let i=E.useContext(Bs);return we(i,Ko(u)),i}function qb(u){let i=E.useContext(ol);return we(i,Ko(u)),i}function Vo(u){let i=qb(u),r=i.matches[i.matches.length-1];return we(r.route.id,`${u} can only be used on routes that contain a unique "id"`),r.route.id}function Bb(){return Vo("useRouteId")}function Qb(){var c;let u=E.useContext(Zo),i=Hb("useRouteError"),r=Vo("useRouteError");return u!==void 0?u:(c=i.errors)==null?void 0:c[r]}function Lb(){let{router:u}=wb("useNavigate"),i=Vo("useNavigate"),r=E.useRef(!1);return nv(()=>{r.current=!0}),E.useCallback(async(d,m={})=>{el(r.current,av),r.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:i,...m}))},[u,i])}var Ny={};function rv(u,i,r){!i&&!Ny[u]&&(Ny[u]=!0,el(!1,r))}E.memo(Yb);function Yb({routes:u,future:i,state:r,onError:c}){return iv(u,void 0,r,c,i)}function Gb({to:u,replace:i,state:r,relative:c}){we(Pn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=E.useContext(Ut);el(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=E.useContext(ol),{pathname:y}=Sa(),g=uv(),x=Xo(u,Go(m),y,c==="path"),v=JSON.stringify(x);return E.useEffect(()=>{g(JSON.parse(v),{replace:i,state:r,relative:c})},[g,v,c,i,r]),null}function il(u){we(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Xb({basename:u="/",children:i=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){we(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=u.replace(/^\/*/,"/"),x=E.useMemo(()=>({basename:g,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[g,d,m,y]);typeof r=="string"&&(r=Wn(r));let{pathname:v="/",search:N="",hash:p="",state:M=null,key:U="default"}=r,K=E.useMemo(()=>{let O=Hl(v,g);return O==null?null:{location:{pathname:O,search:N,hash:p,state:M,key:U},navigationType:c}},[g,v,N,p,M,U,c]);return el(K!=null,`<Router basename="${g}"> is not able to match the URL "${v}${N}${p}" because it does not start with the basename, so the <Router> won't render anything.`),K==null?null:E.createElement(Ut.Provider,{value:x},E.createElement(ui.Provider,{children:i,value:K}))}function Zb({children:u,location:i}){return Ab(Mo(u),i)}function Mo(u,i=[]){let r=[];return E.Children.forEach(u,(c,d)=>{if(!E.isValidElement(c))return;let m=[...i,d];if(c.type===E.Fragment){r.push.apply(r,Mo(c.props.children,m));return}we(c.type===il,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=Mo(c.props.children,m)),r.push(y)}),r}var zs="get",Ms="application/x-www-form-urlencoded";function Qs(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Kb(u){return Qs(u)&&u.tagName.toLowerCase()==="button"}function Vb(u){return Qs(u)&&u.tagName.toLowerCase()==="form"}function Jb(u){return Qs(u)&&u.tagName.toLowerCase()==="input"}function kb(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Fb(u,i){return u.button===0&&(!i||i==="_self")&&!kb(u)}var Os=null;function $b(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var Wb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mo(u){return u!=null&&!Wb.has(u)?(el(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ms}"`),null):u}function Ib(u,i){let r,c,d,m,y;if(Vb(u)){let g=u.getAttribute("action");c=g?Hl(g,i):null,r=u.getAttribute("method")||zs,d=mo(u.getAttribute("enctype"))||Ms,m=new FormData(u)}else if(Kb(u)||Jb(u)&&(u.type==="submit"||u.type==="image")){let g=u.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=u.getAttribute("formaction")||g.getAttribute("action");if(c=x?Hl(x,i):null,r=u.getAttribute("formmethod")||g.getAttribute("method")||zs,d=mo(u.getAttribute("formenctype"))||mo(g.getAttribute("enctype"))||Ms,m=new FormData(g,u),!$b()){let{name:v,type:N,value:p}=u;if(N==="image"){let M=v?`${v}.`:"";m.append(`${M}x`,"0"),m.append(`${M}y`,"0")}else v&&m.append(v,p)}}else{if(Qs(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=zs,c=null,d=Ms,y=u}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Jo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Pb(u,i,r,c){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&Hl(d.pathname,i)==="/"?d.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function ex(u,i){if(u.id in i)return i[u.id];try{let r=await import(u.module);return i[u.id]=r,r}catch(r){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tx(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function lx(u,i,r){let c=await Promise.all(u.map(async d=>{let m=i.routes[d.route.id];if(m){let y=await ex(m,r);return y.links?y.links():[]}return[]}));return ix(c.flat(1).filter(tx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ty(u,i,r,c,d,m){let y=(x,v)=>r[v]?x.route.id!==r[v].route.id:!0,g=(x,v)=>{var N;return r[v].pathname!==x.pathname||((N=r[v].route.path)==null?void 0:N.endsWith("*"))&&r[v].params["*"]!==x.params["*"]};return m==="assets"?i.filter((x,v)=>y(x,v)||g(x,v)):m==="data"?i.filter((x,v)=>{var p;let N=c.routes[x.route.id];if(!N||!N.hasLoader)return!1;if(y(x,v)||g(x,v))return!0;if(x.route.shouldRevalidate){let M=x.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((p=r[0])==null?void 0:p.params)||{},nextUrl:new URL(u,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof M=="boolean")return M}return!0}):[]}function ax(u,i,{includeHydrateFallback:r}={}){return nx(u.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function nx(u){return[...new Set(u)]}function ux(u){let i={},r=Object.keys(u).sort();for(let c of r)i[c]=u[c];return i}function ix(u,i){let r=new Set;return new Set(i),u.reduce((c,d)=>{let m=JSON.stringify(ux(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function cv(){let u=E.useContext(In);return Jo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function sx(){let u=E.useContext(Bs);return Jo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var ko=E.createContext(void 0);ko.displayName="FrameworkContext";function ov(){let u=E.useContext(ko);return Jo(u,"You must render this element inside a <HydratedRouter> element"),u}function rx(u,i){let r=E.useContext(ko),[c,d]=E.useState(!1),[m,y]=E.useState(!1),{onFocus:g,onBlur:x,onMouseEnter:v,onMouseLeave:N,onTouchStart:p}=i,M=E.useRef(null);E.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let O=D=>{D.forEach(Y=>{y(Y.isIntersecting)})},H=new IntersectionObserver(O,{threshold:.5});return M.current&&H.observe(M.current),()=>{H.disconnect()}}},[u]),E.useEffect(()=>{if(c){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[c]);let U=()=>{d(!0)},K=()=>{d(!1),y(!1)};return r?u!=="intent"?[m,M,{}]:[m,M,{onFocus:$u(g,U),onBlur:$u(x,K),onMouseEnter:$u(v,U),onMouseLeave:$u(N,K),onTouchStart:$u(p,U)}]:[!1,M,{}]}function $u(u,i){return r=>{u&&u(r),r.defaultPrevented||i(r)}}function cx({page:u,...i}){let{router:r}=cv(),c=E.useMemo(()=>Fy(r.routes,u,r.basename),[r.routes,u,r.basename]);return c?E.createElement(fx,{page:u,matches:c,...i}):null}function ox(u){let{manifest:i,routeModules:r}=ov(),[c,d]=E.useState([]);return E.useEffect(()=>{let m=!1;return lx(u,i,r).then(y=>{m||d(y)}),()=>{m=!0}},[u,i,r]),c}function fx({page:u,matches:i,...r}){let c=Sa(),{future:d,manifest:m,routeModules:y}=ov(),{basename:g}=cv(),{loaderData:x,matches:v}=sx(),N=E.useMemo(()=>Ty(u,i,v,m,c,"data"),[u,i,v,m,c]),p=E.useMemo(()=>Ty(u,i,v,m,c,"assets"),[u,i,v,m,c]),M=E.useMemo(()=>{if(u===c.pathname+c.search+c.hash)return[];let O=new Set,H=!1;if(i.forEach(Y=>{var Z;let B=m.routes[Y.route.id];!B||!B.hasLoader||(!N.some(G=>G.route.id===Y.route.id)&&Y.route.id in x&&((Z=y[Y.route.id])!=null&&Z.shouldRevalidate)||B.hasClientLoader?H=!0:O.add(Y.route.id))}),O.size===0)return[];let D=Pb(u,g,d.unstable_trailingSlashAwareDataRequests,"data");return H&&O.size>0&&D.searchParams.set("_routes",i.filter(Y=>O.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[D.pathname+D.search]},[g,d.unstable_trailingSlashAwareDataRequests,x,c,m,N,i,u,y]),U=E.useMemo(()=>ax(p,m),[p,m]),K=ox(p);return E.createElement(E.Fragment,null,M.map(O=>E.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),U.map(O=>E.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),K.map(({key:O,link:H})=>E.createElement("link",{key:O,nonce:r.nonce,...H,crossOrigin:H.crossOrigin??r.crossOrigin})))}function dx(...u){return i=>{u.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var hx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hx&&(window.__reactRouterVersion="7.13.0")}catch{}function mx({basename:u,children:i,unstable_useTransitions:r,window:c}){let d=E.useRef();d.current==null&&(d.current=Jg({window:c,v5Compat:!0}));let m=d.current,[y,g]=E.useState({action:m.action,location:m.location}),x=E.useCallback(v=>{r===!1?g(v):E.startTransition(()=>g(v))},[r]);return E.useLayoutEffect(()=>m.listen(x),[m,x]),E.createElement(Xb,{basename:u,children:i,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var fv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dv=E.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:g,target:x,to:v,preventScrollReset:N,viewTransition:p,unstable_defaultShouldRevalidate:M,...U},K){let{basename:O,unstable_useTransitions:H}=E.useContext(Ut),D=typeof v=="string"&&fv.test(v),Y=Py(v,O);v=Y.to;let B=Ob(v,{relative:d}),[Z,G,V]=rx(c,U),k=px(v,{replace:y,state:g,target:x,preventScrollReset:N,relative:d,viewTransition:p,unstable_defaultShouldRevalidate:M,unstable_useTransitions:H});function le(Te){i&&i(Te),Te.defaultPrevented||k(Te)}let he=E.createElement("a",{...U,...V,href:Y.absoluteURL||B,onClick:Y.isExternal||m?i:le,ref:dx(K,G),target:x,"data-discover":!D&&r==="render"?"true":void 0});return Z&&!D?E.createElement(E.Fragment,null,he,E.createElement(cx,{page:B})):he});dv.displayName="Link";var hv=E.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:g,children:x,...v},N){let p=ii(y,{relative:v.relative}),M=Sa(),U=E.useContext(Bs),{navigator:K,basename:O}=E.useContext(Ut),H=U!=null&&Ex(p)&&g===!0,D=K.encodeLocation?K.encodeLocation(p).pathname:p.pathname,Y=M.pathname,B=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;r||(Y=Y.toLowerCase(),B=B?B.toLowerCase():null,D=D.toLowerCase()),B&&O&&(B=Hl(B,O)||B);const Z=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let G=Y===D||!d&&Y.startsWith(D)&&Y.charAt(Z)==="/",V=B!=null&&(B===D||!d&&B.startsWith(D)&&B.charAt(D.length)==="/"),k={isActive:G,isPending:V,isTransitioning:H},le=G?i:void 0,he;typeof c=="function"?he=c(k):he=[c,G?"active":null,V?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let Te=typeof m=="function"?m(k):m;return E.createElement(dv,{...v,"aria-current":le,className:he,ref:N,style:Te,to:y,viewTransition:g},typeof x=="function"?x(k):x)});hv.displayName="NavLink";var yx=E.forwardRef(({discover:u="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:d,state:m,method:y=zs,action:g,onSubmit:x,relative:v,preventScrollReset:N,viewTransition:p,unstable_defaultShouldRevalidate:M,...U},K)=>{let{unstable_useTransitions:O}=E.useContext(Ut),H=xx(),D=Sx(g,{relative:v}),Y=y.toLowerCase()==="get"?"get":"post",B=typeof g=="string"&&fv.test(g),Z=G=>{if(x&&x(G),G.defaultPrevented)return;G.preventDefault();let V=G.nativeEvent.submitter,k=(V==null?void 0:V.getAttribute("formmethod"))||y,le=()=>H(V||G.currentTarget,{fetcherKey:i,method:k,navigate:r,replace:d,state:m,relative:v,preventScrollReset:N,viewTransition:p,unstable_defaultShouldRevalidate:M});O&&r!==!1?E.startTransition(()=>le()):le()};return E.createElement("form",{ref:K,method:Y,action:D,onSubmit:c?x:Z,...U,"data-discover":!B&&u==="render"?"true":void 0})});yx.displayName="Form";function vx(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mv(u){let i=E.useContext(In);return we(i,vx(u)),i}function px(u,{target:i,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:g,unstable_useTransitions:x}={}){let v=uv(),N=Sa(),p=ii(u,{relative:m});return E.useCallback(M=>{if(Fb(M,i)){M.preventDefault();let U=r!==void 0?r:Pu(N)===Pu(p),K=()=>v(u,{replace:U,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:g});x?E.startTransition(()=>K()):K()}},[N,v,p,r,c,i,u,d,m,y,g,x])}var gx=0,bx=()=>`__${String(++gx)}__`;function xx(){let{router:u}=mv("useSubmit"),{basename:i}=E.useContext(Ut),r=Bb(),c=u.fetch,d=u.navigate;return E.useCallback(async(m,y={})=>{let{action:g,method:x,encType:v,formData:N,body:p}=Ib(m,i);if(y.navigate===!1){let M=y.fetcherKey||bx();await c(M,r,y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:N,body:p,formMethod:y.method||x,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:N,body:p,formMethod:y.method||x,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,i,r])}function Sx(u,{relative:i}={}){let{basename:r}=E.useContext(Ut),c=E.useContext(ol);we(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...ii(u||".",{relative:i})},y=Sa();if(u==null){m.search=y.search;let g=new URLSearchParams(m.search),x=g.getAll("index");if(x.some(N=>N==="")){g.delete("index"),x.filter(p=>p).forEach(p=>g.append("index",p));let N=g.toString();m.search=N?`?${N}`:""}}return(!u||u===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:Ul([r,m.pathname])),Pu(m)}function Ex(u,{relative:i}={}){let r=E.useContext(tv);we(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=mv("useViewTransitionState"),d=ii(u,{relative:i});if(!r.isTransitioning)return!1;let m=Hl(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=Hl(r.nextLocation.pathname,c)||r.nextLocation.pathname;return ws(d.pathname,y)!=null||ws(d.pathname,m)!=null}/**
60
+ Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let M=Sa(),U;if(i){let B=typeof i=="string"?Wn(i):i;we(N==="/"||((Y=B.pathname)==null?void 0:Y.startsWith(N)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${N}" but pathname "${B.pathname}" was given in the \`location\` prop.`),U=B}else U=M;let K=U.pathname||"/",O=K;if(N!=="/"){let B=N.replace(/^\//,"").split("/");O="/"+K.replace(/^\//,"").split("/").slice(B.length).join("/")}let H=Fy(u,{pathname:O});el(p||H!=null,`No routes matched location "${U.pathname}${U.search}${U.hash}" `),el(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${U.pathname}${U.search}${U.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=Ub(H&&H.map(B=>Object.assign({},B,{params:Object.assign({},b,B.params),pathname:Ul([N,m.encodeLocation?m.encodeLocation(B.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?N:Ul([N,m.encodeLocation?m.encodeLocation(B.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),y,r,c,d);return i&&D?E.createElement(ui.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...U},navigationType:"POP"}},D):D}function zb(){let u=Qb(),i=pb(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:m},"ErrorBoundary")," or"," ",E.createElement("code",{style:m},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),r?E.createElement("pre",{style:d},r):null,y)}var Mb=E.createElement(zb,null),sv=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const r=Cb(u.digest);r&&(u=r)}let i=u!==void 0?E.createElement(ol.Provider,{value:this.props.routeContext},E.createElement(Zo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(_b,{error:u},i):i}};sv.contextType=xb;var ho=new WeakMap;function _b({children:u,error:i}){let{basename:r}=E.useContext(Ut);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Tb(i.digest);if(c){let d=ho.get(i);if(d)throw d;let m=Py(c.location,r);if(Iy&&!ho.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw ho.set(i,y),y}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function Db({routeContext:u,match:i,children:r}){let c=E.useContext(In);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(ol.Provider,{value:u},r)}function Ub(u,i=[],r=null,c=null,d=null){if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let m=u,y=r==null?void 0:r.errors;if(y!=null){let N=m.findIndex(p=>p.route.id&&(y==null?void 0:y[p.route.id])!==void 0);we(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,N+1))}let g=!1,b=-1;if(r)for(let N=0;N<m.length;N++){let p=m[N];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(b=N),p.route.id){let{loaderData:M,errors:U}=r,K=p.route.loader&&!M.hasOwnProperty(p.route.id)&&(!U||U[p.route.id]===void 0);if(p.route.lazy||K){g=!0,b>=0?m=m.slice(0,b+1):m=[m[0]];break}}}let v=r&&c?(N,p)=>{var M,U;c(N,{location:r.location,params:((U=(M=r.matches)==null?void 0:M[0])==null?void 0:U.params)??{},unstable_pattern:gb(r.matches),errorInfo:p})}:void 0;return m.reduceRight((N,p,M)=>{let U,K=!1,O=null,H=null;r&&(U=y&&p.route.id?y[p.route.id]:void 0,O=p.route.errorElement||Mb,g&&(b<0&&M===0?(rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,H=null):b===M&&(K=!0,H=p.route.hydrateFallbackElement||null)));let D=i.concat(m.slice(0,M+1)),Y=()=>{let B;return U?B=O:K?B=H:p.route.Component?B=E.createElement(p.route.Component,null):p.route.element?B=p.route.element:B=N,E.createElement(Db,{match:p,routeContext:{outlet:N,matches:D,isDataRoute:r!=null},children:B})};return r&&(p.route.ErrorBoundary||p.route.errorElement||M===0)?E.createElement(sv,{location:r.location,revalidation:r.revalidation,component:O,error:U,children:Y(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:v}):Y()},null)}function Ko(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wb(u){let i=E.useContext(In);return we(i,Ko(u)),i}function Hb(u){let i=E.useContext(Bs);return we(i,Ko(u)),i}function qb(u){let i=E.useContext(ol);return we(i,Ko(u)),i}function Vo(u){let i=qb(u),r=i.matches[i.matches.length-1];return we(r.route.id,`${u} can only be used on routes that contain a unique "id"`),r.route.id}function Bb(){return Vo("useRouteId")}function Qb(){var c;let u=E.useContext(Zo),i=Hb("useRouteError"),r=Vo("useRouteError");return u!==void 0?u:(c=i.errors)==null?void 0:c[r]}function Lb(){let{router:u}=wb("useNavigate"),i=Vo("useNavigate"),r=E.useRef(!1);return nv(()=>{r.current=!0}),E.useCallback(async(d,m={})=>{el(r.current,av),r.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:i,...m}))},[u,i])}var Ny={};function rv(u,i,r){!i&&!Ny[u]&&(Ny[u]=!0,el(!1,r))}E.memo(Yb);function Yb({routes:u,future:i,state:r,onError:c}){return iv(u,void 0,r,c,i)}function Gb({to:u,replace:i,state:r,relative:c}){we(Pn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=E.useContext(Ut);el(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=E.useContext(ol),{pathname:y}=Sa(),g=uv(),b=Xo(u,Go(m),y,c==="path"),v=JSON.stringify(b);return E.useEffect(()=>{g(JSON.parse(v),{replace:i,state:r,relative:c})},[g,v,c,i,r]),null}function il(u){we(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Xb({basename:u="/",children:i=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){we(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=u.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:g,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[g,d,m,y]);typeof r=="string"&&(r=Wn(r));let{pathname:v="/",search:N="",hash:p="",state:M=null,key:U="default"}=r,K=E.useMemo(()=>{let O=Hl(v,g);return O==null?null:{location:{pathname:O,search:N,hash:p,state:M,key:U},navigationType:c}},[g,v,N,p,M,U,c]);return el(K!=null,`<Router basename="${g}"> is not able to match the URL "${v}${N}${p}" because it does not start with the basename, so the <Router> won't render anything.`),K==null?null:E.createElement(Ut.Provider,{value:b},E.createElement(ui.Provider,{children:i,value:K}))}function Zb({children:u,location:i}){return Ab(Mo(u),i)}function Mo(u,i=[]){let r=[];return E.Children.forEach(u,(c,d)=>{if(!E.isValidElement(c))return;let m=[...i,d];if(c.type===E.Fragment){r.push.apply(r,Mo(c.props.children,m));return}we(c.type===il,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=Mo(c.props.children,m)),r.push(y)}),r}var zs="get",Ms="application/x-www-form-urlencoded";function Qs(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Kb(u){return Qs(u)&&u.tagName.toLowerCase()==="button"}function Vb(u){return Qs(u)&&u.tagName.toLowerCase()==="form"}function Jb(u){return Qs(u)&&u.tagName.toLowerCase()==="input"}function kb(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Fb(u,i){return u.button===0&&(!i||i==="_self")&&!kb(u)}var Os=null;function $b(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var Wb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mo(u){return u!=null&&!Wb.has(u)?(el(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ms}"`),null):u}function Ib(u,i){let r,c,d,m,y;if(Vb(u)){let g=u.getAttribute("action");c=g?Hl(g,i):null,r=u.getAttribute("method")||zs,d=mo(u.getAttribute("enctype"))||Ms,m=new FormData(u)}else if(Kb(u)||Jb(u)&&(u.type==="submit"||u.type==="image")){let g=u.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=u.getAttribute("formaction")||g.getAttribute("action");if(c=b?Hl(b,i):null,r=u.getAttribute("formmethod")||g.getAttribute("method")||zs,d=mo(u.getAttribute("formenctype"))||mo(g.getAttribute("enctype"))||Ms,m=new FormData(g,u),!$b()){let{name:v,type:N,value:p}=u;if(N==="image"){let M=v?`${v}.`:"";m.append(`${M}x`,"0"),m.append(`${M}y`,"0")}else v&&m.append(v,p)}}else{if(Qs(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=zs,c=null,d=Ms,y=u}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Jo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Pb(u,i,r,c){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&Hl(d.pathname,i)==="/"?d.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function ex(u,i){if(u.id in i)return i[u.id];try{let r=await import(u.module);return i[u.id]=r,r}catch(r){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tx(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function lx(u,i,r){let c=await Promise.all(u.map(async d=>{let m=i.routes[d.route.id];if(m){let y=await ex(m,r);return y.links?y.links():[]}return[]}));return ix(c.flat(1).filter(tx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ty(u,i,r,c,d,m){let y=(b,v)=>r[v]?b.route.id!==r[v].route.id:!0,g=(b,v)=>{var N;return r[v].pathname!==b.pathname||((N=r[v].route.path)==null?void 0:N.endsWith("*"))&&r[v].params["*"]!==b.params["*"]};return m==="assets"?i.filter((b,v)=>y(b,v)||g(b,v)):m==="data"?i.filter((b,v)=>{var p;let N=c.routes[b.route.id];if(!N||!N.hasLoader)return!1;if(y(b,v)||g(b,v))return!0;if(b.route.shouldRevalidate){let M=b.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((p=r[0])==null?void 0:p.params)||{},nextUrl:new URL(u,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof M=="boolean")return M}return!0}):[]}function ax(u,i,{includeHydrateFallback:r}={}){return nx(u.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function nx(u){return[...new Set(u)]}function ux(u){let i={},r=Object.keys(u).sort();for(let c of r)i[c]=u[c];return i}function ix(u,i){let r=new Set;return new Set(i),u.reduce((c,d)=>{let m=JSON.stringify(ux(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function cv(){let u=E.useContext(In);return Jo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function sx(){let u=E.useContext(Bs);return Jo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var ko=E.createContext(void 0);ko.displayName="FrameworkContext";function ov(){let u=E.useContext(ko);return Jo(u,"You must render this element inside a <HydratedRouter> element"),u}function rx(u,i){let r=E.useContext(ko),[c,d]=E.useState(!1),[m,y]=E.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:v,onMouseLeave:N,onTouchStart:p}=i,M=E.useRef(null);E.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let O=D=>{D.forEach(Y=>{y(Y.isIntersecting)})},H=new IntersectionObserver(O,{threshold:.5});return M.current&&H.observe(M.current),()=>{H.disconnect()}}},[u]),E.useEffect(()=>{if(c){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[c]);let U=()=>{d(!0)},K=()=>{d(!1),y(!1)};return r?u!=="intent"?[m,M,{}]:[m,M,{onFocus:$u(g,U),onBlur:$u(b,K),onMouseEnter:$u(v,U),onMouseLeave:$u(N,K),onTouchStart:$u(p,U)}]:[!1,M,{}]}function $u(u,i){return r=>{u&&u(r),r.defaultPrevented||i(r)}}function cx({page:u,...i}){let{router:r}=cv(),c=E.useMemo(()=>Fy(r.routes,u,r.basename),[r.routes,u,r.basename]);return c?E.createElement(fx,{page:u,matches:c,...i}):null}function ox(u){let{manifest:i,routeModules:r}=ov(),[c,d]=E.useState([]);return E.useEffect(()=>{let m=!1;return lx(u,i,r).then(y=>{m||d(y)}),()=>{m=!0}},[u,i,r]),c}function fx({page:u,matches:i,...r}){let c=Sa(),{future:d,manifest:m,routeModules:y}=ov(),{basename:g}=cv(),{loaderData:b,matches:v}=sx(),N=E.useMemo(()=>Ty(u,i,v,m,c,"data"),[u,i,v,m,c]),p=E.useMemo(()=>Ty(u,i,v,m,c,"assets"),[u,i,v,m,c]),M=E.useMemo(()=>{if(u===c.pathname+c.search+c.hash)return[];let O=new Set,H=!1;if(i.forEach(Y=>{var Z;let B=m.routes[Y.route.id];!B||!B.hasLoader||(!N.some(G=>G.route.id===Y.route.id)&&Y.route.id in b&&((Z=y[Y.route.id])!=null&&Z.shouldRevalidate)||B.hasClientLoader?H=!0:O.add(Y.route.id))}),O.size===0)return[];let D=Pb(u,g,d.unstable_trailingSlashAwareDataRequests,"data");return H&&O.size>0&&D.searchParams.set("_routes",i.filter(Y=>O.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[D.pathname+D.search]},[g,d.unstable_trailingSlashAwareDataRequests,b,c,m,N,i,u,y]),U=E.useMemo(()=>ax(p,m),[p,m]),K=ox(p);return E.createElement(E.Fragment,null,M.map(O=>E.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),U.map(O=>E.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),K.map(({key:O,link:H})=>E.createElement("link",{key:O,nonce:r.nonce,...H,crossOrigin:H.crossOrigin??r.crossOrigin})))}function dx(...u){return i=>{u.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var hx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hx&&(window.__reactRouterVersion="7.13.0")}catch{}function mx({basename:u,children:i,unstable_useTransitions:r,window:c}){let d=E.useRef();d.current==null&&(d.current=Jg({window:c,v5Compat:!0}));let m=d.current,[y,g]=E.useState({action:m.action,location:m.location}),b=E.useCallback(v=>{r===!1?g(v):E.startTransition(()=>g(v))},[r]);return E.useLayoutEffect(()=>m.listen(b),[m,b]),E.createElement(Xb,{basename:u,children:i,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var fv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dv=E.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:g,target:b,to:v,preventScrollReset:N,viewTransition:p,unstable_defaultShouldRevalidate:M,...U},K){let{basename:O,unstable_useTransitions:H}=E.useContext(Ut),D=typeof v=="string"&&fv.test(v),Y=Py(v,O);v=Y.to;let B=Ob(v,{relative:d}),[Z,G,V]=rx(c,U),k=px(v,{replace:y,state:g,target:b,preventScrollReset:N,relative:d,viewTransition:p,unstable_defaultShouldRevalidate:M,unstable_useTransitions:H});function le(Te){i&&i(Te),Te.defaultPrevented||k(Te)}let he=E.createElement("a",{...U,...V,href:Y.absoluteURL||B,onClick:Y.isExternal||m?i:le,ref:dx(K,G),target:b,"data-discover":!D&&r==="render"?"true":void 0});return Z&&!D?E.createElement(E.Fragment,null,he,E.createElement(cx,{page:B})):he});dv.displayName="Link";var hv=E.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:g,children:b,...v},N){let p=ii(y,{relative:v.relative}),M=Sa(),U=E.useContext(Bs),{navigator:K,basename:O}=E.useContext(Ut),H=U!=null&&Ex(p)&&g===!0,D=K.encodeLocation?K.encodeLocation(p).pathname:p.pathname,Y=M.pathname,B=U&&U.navigation&&U.navigation.location?U.navigation.location.pathname:null;r||(Y=Y.toLowerCase(),B=B?B.toLowerCase():null,D=D.toLowerCase()),B&&O&&(B=Hl(B,O)||B);const Z=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let G=Y===D||!d&&Y.startsWith(D)&&Y.charAt(Z)==="/",V=B!=null&&(B===D||!d&&B.startsWith(D)&&B.charAt(D.length)==="/"),k={isActive:G,isPending:V,isTransitioning:H},le=G?i:void 0,he;typeof c=="function"?he=c(k):he=[c,G?"active":null,V?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let Te=typeof m=="function"?m(k):m;return E.createElement(dv,{...v,"aria-current":le,className:he,ref:N,style:Te,to:y,viewTransition:g},typeof b=="function"?b(k):b)});hv.displayName="NavLink";var yx=E.forwardRef(({discover:u="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:d,state:m,method:y=zs,action:g,onSubmit:b,relative:v,preventScrollReset:N,viewTransition:p,unstable_defaultShouldRevalidate:M,...U},K)=>{let{unstable_useTransitions:O}=E.useContext(Ut),H=xx(),D=Sx(g,{relative:v}),Y=y.toLowerCase()==="get"?"get":"post",B=typeof g=="string"&&fv.test(g),Z=G=>{if(b&&b(G),G.defaultPrevented)return;G.preventDefault();let V=G.nativeEvent.submitter,k=(V==null?void 0:V.getAttribute("formmethod"))||y,le=()=>H(V||G.currentTarget,{fetcherKey:i,method:k,navigate:r,replace:d,state:m,relative:v,preventScrollReset:N,viewTransition:p,unstable_defaultShouldRevalidate:M});O&&r!==!1?E.startTransition(()=>le()):le()};return E.createElement("form",{ref:K,method:Y,action:D,onSubmit:c?b:Z,...U,"data-discover":!B&&u==="render"?"true":void 0})});yx.displayName="Form";function vx(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mv(u){let i=E.useContext(In);return we(i,vx(u)),i}function px(u,{target:i,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:g,unstable_useTransitions:b}={}){let v=uv(),N=Sa(),p=ii(u,{relative:m});return E.useCallback(M=>{if(Fb(M,i)){M.preventDefault();let U=r!==void 0?r:Pu(N)===Pu(p),K=()=>v(u,{replace:U,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:g});b?E.startTransition(()=>K()):K()}},[N,v,p,r,c,i,u,d,m,y,g,b])}var gx=0,bx=()=>`__${String(++gx)}__`;function xx(){let{router:u}=mv("useSubmit"),{basename:i}=E.useContext(Ut),r=Bb(),c=u.fetch,d=u.navigate;return E.useCallback(async(m,y={})=>{let{action:g,method:b,encType:v,formData:N,body:p}=Ib(m,i);if(y.navigate===!1){let M=y.fetcherKey||bx();await c(M,r,y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:N,body:p,formMethod:y.method||b,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:N,body:p,formMethod:y.method||b,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,i,r])}function Sx(u,{relative:i}={}){let{basename:r}=E.useContext(Ut),c=E.useContext(ol);we(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...ii(u||".",{relative:i})},y=Sa();if(u==null){m.search=y.search;let g=new URLSearchParams(m.search),b=g.getAll("index");if(b.some(N=>N==="")){g.delete("index"),b.filter(p=>p).forEach(p=>g.append("index",p));let N=g.toString();m.search=N?`?${N}`:""}}return(!u||u===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:Ul([r,m.pathname])),Pu(m)}function Ex(u,{relative:i}={}){let r=E.useContext(tv);we(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=mv("useViewTransitionState"),d=ii(u,{relative:i});if(!r.isTransitioning)return!1;let m=Hl(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=Hl(r.nextLocation.pathname,c)||r.nextLocation.pathname;return ws(d.pathname,y)!=null||ws(d.pathname,m)!=null}/**
61
61
  * @license lucide-react v0.474.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
@@ -72,7 +72,7 @@ Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const Tx=E.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:y,...g},x)=>E.createElement("svg",{ref:x,...Nx,width:i,height:i,stroke:u,strokeWidth:c?Number(r)*24/Number(i):r,className:yv("lucide",d),...g},[...y.map(([v,N])=>E.createElement(v,N)),...Array.isArray(m)?m:[m]]));/**
75
+ */const Tx=E.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:y,...g},b)=>E.createElement("svg",{ref:b,...Nx,width:i,height:i,stroke:u,strokeWidth:c?Number(r)*24/Number(i):r,className:yv("lucide",d),...g},[...y.map(([v,N])=>E.createElement(v,N)),...Array.isArray(m)?m:[m]]));/**
76
76
  * @license lucide-react v0.474.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
@@ -147,4 +147,4 @@ Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const Zx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],jv=jt("Wrench",Zx);function Do(...u){return u.filter(Boolean).join(" ")}function Nv(u){return u===0?"$0.00":u<.01?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function Kx(u){return u<1e3?`${Math.round(u)}ms`:u<6e4?`${(u/1e3).toFixed(1)}s`:`${(u/6e4).toFixed(1)}m`}function _s(u){return u.toLocaleString()}function Vx(u){switch(u){case"running":return"text-blue-500";case"completed":return"text-green-500";case"failed":return"text-red-500";case"waiting":return"text-amber-500";default:return"text-gray-500"}}const Jx=[{to:"/playground",label:"Playground",icon:_x},{to:"/workflows",label:"Workflows",icon:xv},{to:"/traces",label:"Traces",icon:vv},{to:"/costs",label:"Costs",icon:gv},{to:"/memory",label:"Memory",icon:pv},{to:"/sessions",label:"Sessions",icon:Ev},{to:"/tools",label:"Tools",icon:jv},{to:"/evals",label:"Evals",icon:bv}];function kx(){return f.jsxs("aside",{className:"w-56 border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] flex flex-col h-screen",children:[f.jsx("div",{className:"p-4 border-b border-[hsl(var(--border))]",children:f.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"Axl Studio"})}),f.jsx("nav",{className:"flex-1 p-2 space-y-0.5",children:Jx.map(({to:u,label:i,icon:r})=>f.jsxs(hv,{to:u,className:({isActive:c})=>Do("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",c?"bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))] font-medium":"text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]"),children:[f.jsx(r,{size:16}),i]},u))}),f.jsx("div",{className:"p-4 border-t border-[hsl(var(--border))] text-xs text-[hsl(var(--muted-foreground))]",children:"@axlsdk/studio"})]})}function ql({title:u,description:i,actions:r,children:c}){return f.jsxs("div",{className:"flex flex-col h-screen",children:[f.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-[hsl(var(--border))]",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-xl font-semibold",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-0.5",children:i})]}),r&&f.jsx("div",{className:"flex items-center gap-2",children:r})]}),f.jsx("main",{className:"flex-1 overflow-auto p-6",children:c})]})}function Jt({title:u,description:i,icon:r}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[r&&f.jsx("div",{className:"mb-3 text-[hsl(var(--muted-foreground))]",children:r}),f.jsx("h3",{className:"text-sm font-medium text-[hsl(var(--foreground))]",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-1 max-w-sm",children:i})]})}function Fx({text:u,className:i}){return f.jsxs("div",{className:`whitespace-pre-wrap ${i??""}`,children:[u,f.jsx("span",{className:"animate-pulse",children:"|"})]})}function Et({data:u,collapsed:i=!1,className:r}){const[c,d]=E.useState(i),m=JSON.stringify(u,null,2),y=m.length>200;return f.jsxs("div",{className:`relative ${r??""}`,children:[y&&f.jsx("button",{onClick:()=>d(!c),className:"text-xs text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] mb-1",children:c?"Expand":"Collapse"}),f.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96",children:c?JSON.stringify(u):m})]})}const $x="/api";async function Ve(u,i){const c=await(await fetch(`${$x}${u}`,{headers:{"Content-Type":"application/json",...i==null?void 0:i.headers},...i})).json();if(!c.ok)throw new Error(c.error.message);return c.data}const Tv=()=>Ve("/workflows"),Wx=u=>Ve(`/workflows/${encodeURIComponent(u)}`),Ix=(u,i,r=!1)=>Ve(`/workflows/${encodeURIComponent(u)}/execute`,{method:"POST",body:JSON.stringify({input:i,stream:r})}),Px=()=>Ve("/executions"),e1=()=>Ve("/sessions"),t1=u=>Ve(`/sessions/${encodeURIComponent(u)}`),l1=u=>Ve(`/sessions/${encodeURIComponent(u)}`,{method:"DELETE"}),a1=()=>Ve("/agents"),n1=()=>Ve("/tools"),u1=u=>Ve(`/tools/${encodeURIComponent(u)}`),i1=(u,i)=>Ve(`/tools/${encodeURIComponent(u)}/test`,{method:"POST",body:JSON.stringify({input:i})}),s1=u=>Ve(`/memory/${encodeURIComponent(u)}`),r1=(u,i,r)=>Ve(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify({value:r})}),c1=(u,i)=>Ve(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"DELETE"}),o1=(u,i,r)=>Ve("/memory/search",{method:"POST",body:JSON.stringify({query:u,scope:i,limit:r})}),f1=()=>Ve("/costs"),d1=()=>Ve("/costs/reset",{method:"POST"}),h1=u=>Ve("/evals/run",{method:"POST",body:JSON.stringify(u)}),m1=(u,i)=>Ve("/evals/compare",{method:"POST",body:JSON.stringify({baseline:u,candidate:i})}),y1=(u,i,r)=>Ve("/playground/chat",{method:"POST",body:JSON.stringify({message:u,sessionId:i,agent:r})});class v1{constructor(){Ju(this,"ws",null);Ju(this,"listeners",new Map);Ju(this,"reconnectTimer",null);Ju(this,"url");const i=window.location.protocol==="https:"?"wss:":"ws:";this.url=`${i}//${window.location.host}/ws`}connect(){var i;((i=this.ws)==null?void 0:i.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{for(const r of this.listeners.keys())this.send({type:"subscribe",channel:r})},this.ws.onmessage=r=>{try{const c=JSON.parse(r.data);if(c.type==="event"&&c.channel){const d=this.listeners.get(c.channel);if(d)for(const m of d)m(c.data)}}catch{}},this.ws.onclose=()=>{this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},2e3))}send(i){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(i))}subscribe(i,r){let c=this.listeners.get(i);return c||(c=new Set,this.listeners.set(i,c),this.send({type:"subscribe",channel:i})),c.add(r),this.connect(),()=>{c.delete(r),c.size===0&&(this.listeners.delete(i),this.send({type:"unsubscribe",channel:i}))}}disconnect(){var i;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(i=this.ws)==null||i.close(),this.ws=null}}const p1=new v1;function Fo(u,i){const r=E.useRef(i);r.current=i,E.useEffect(()=>{if(u)return p1.subscribe(u,c=>r.current(c))},[u])}function Cv(u){const[i,r]=E.useState({tokens:"",events:[],done:!1,error:null,result:null}),c=E.useCallback(d=>{const m=d;r(y=>{switch(m.type){case"token":return{...y,tokens:y.tokens+m.data,events:[...y.events,m]};case"done":return{...y,done:!0,result:m.result,events:[...y.events,m]};case"error":return{...y,done:!0,error:m.message,events:[...y.events,m]};default:return{...y,events:[...y.events,m]}}})},[]);return Fo(u?`execution:${u}`:null,c),i}function g1(){const[u,i]=E.useState([]),[r,c]=E.useState(""),[d,m]=E.useState(null),[y,g]=E.useState(null),[x,v]=E.useState(""),[N,p]=E.useState(!1),M=E.useRef(null),{data:U=[]}=Pt({queryKey:["agents"],queryFn:a1}),K=Cv(y);E.useEffect(()=>{K.tokens&&N&&i(D=>{const Y=D[D.length-1];return(Y==null?void 0:Y.role)==="assistant"?[...D.slice(0,-1),{...Y,content:K.tokens}]:[...D,{role:"assistant",content:K.tokens}]}),K.done&&(p(!1),g(null))},[K.tokens,K.done,N]),E.useEffect(()=>{const D=[],Y=[],B=[];for(const Z of K.events){if(Z.type==="tool_call"&&D.push({name:Z.name,args:Z.args}),Z.type==="tool_result"){const G=D.find(V=>V.name===Z.name&&!V.result);G&&(G.result=Z.result)}Z.type==="handoff"&&Y.push({source:Z.source,target:Z.target,mode:Z.mode??"oneway"}),Z.type==="tool_approval"&&B.push({tool:Z.name,approved:Z.approved})}(D.length>0||Y.length>0||B.length>0)&&i(Z=>{const G=Z[Z.length-1];return(G==null?void 0:G.role)==="assistant"?[...Z.slice(0,-1),{...G,toolCalls:D.length>0?D:G.toolCalls,handoffs:Y.length>0?Y:G.handoffs,approvals:B.length>0?B:G.approvals}]:Z})},[K.events]),E.useEffect(()=>{var D;(D=M.current)==null||D.scrollIntoView({behavior:"smooth"})},[u]);const O=E.useCallback(async()=>{if(!r.trim()||N)return;const D=r.trim();c(""),i(Y=>[...Y,{role:"user",content:D}]),p(!0);try{const Y=await y1(D,d??void 0,x||void 0);m(Y.sessionId),g(Y.executionId)}catch(Y){p(!1),i(B=>[...B,{role:"assistant",content:`Error: ${Y instanceof Error?Y.message:String(Y)}`}])}},[r,N,d,x]),H=D=>{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),O())};return f.jsx(ql,{title:"Agent Playground",description:"Chat with registered agents in real-time",actions:f.jsxs("div",{className:"flex items-center gap-2",children:[U.length>0&&f.jsxs("select",{value:x,onChange:D=>v(D.target.value),className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Default agent"}),U.map(D=>f.jsx("option",{value:D.name,children:D.name},D.name))]}),f.jsx("button",{onClick:()=>{i([]),m(null),g(null)},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"New Chat"})]}),children:f.jsxs("div",{className:"flex flex-col h-full max-w-3xl mx-auto",children:[f.jsxs("div",{className:"flex-1 overflow-auto space-y-4 pb-4",children:[u.length===0&&f.jsx(Jt,{title:"Start a conversation",description:"Type a message below to chat with an agent. Tool calls, handoffs, and streaming responses will be displayed in real-time."}),u.map((D,Y)=>f.jsx("div",{className:`flex ${D.role==="user"?"justify-end":"justify-start"}`,children:f.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2.5 text-sm ${D.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]"}`,children:[D.role==="assistant"&&N&&Y===u.length-1?f.jsx(Fx,{text:D.content}):f.jsx("div",{className:"whitespace-pre-wrap",children:D.content}),D.handoffs&&D.handoffs.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:D.handoffs.map((B,Z)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(_o,{size:12,className:"text-amber-500"}),f.jsx("span",{className:"font-medium",children:B.source}),f.jsx(_o,{size:10}),f.jsx("span",{className:"font-medium",children:B.target}),f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))]",children:["(",B.mode,")"]})]},Z))}),D.approvals&&D.approvals.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:D.approvals.map((B,Z)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(Yx,{size:12,className:B.approved?"text-green-500":"text-red-500"}),f.jsxs("span",{children:["Tool ",f.jsx("span",{className:"font-mono",children:B.tool}),":"," ",B.approved?"approved":"denied"]})]},Z))}),D.toolCalls&&D.toolCalls.length>0&&f.jsx("div",{className:"mt-2 space-y-2 border-t border-[hsl(var(--border))] pt-2",children:D.toolCalls.map((B,Z)=>f.jsxs("details",{className:"text-xs",children:[f.jsxs("summary",{className:"cursor-pointer font-medium",children:["Tool: ",B.name]}),f.jsxs("div",{className:"mt-1 space-y-1",children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Input:"}),f.jsx(Et,{data:B.args,collapsed:!0}),B.result!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Output:"}),f.jsx(Et,{data:B.result,collapsed:!0})]})]})]},Z))})]})},Y)),f.jsx("div",{ref:M})]}),f.jsx("div",{className:"border-t border-[hsl(var(--border))] pt-4",children:f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx("textarea",{value:r,onChange:D=>c(D.target.value),onKeyDown:H,placeholder:"Type a message...",rows:1,className:"flex-1 px-3 py-2.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] resize-none focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]"}),f.jsx("button",{onClick:O,disabled:!r.trim()||N,className:"p-2.5 rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50 transition-opacity",children:f.jsx(Qx,{size:16})})]})})]})})}function Hs({value:u,onChange:i,placeholder:r,className:c}){const[d,m]=E.useState(null),y=E.useCallback(g=>{const x=g.target.value;i(x);try{x.trim()&&JSON.parse(x),m(null)}catch(v){m(v instanceof Error?v.message:"Invalid JSON")}},[i]);return f.jsxs("div",{className:c,children:[f.jsx("textarea",{value:u,onChange:y,placeholder:r??"{}",className:"w-full h-32 p-3 text-xs font-mono rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] text-[hsl(var(--foreground))] resize-y focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]",spellCheck:!1}),d&&f.jsx("p",{className:"text-xs text-red-500 mt-1",children:d})]})}function Ov({schema:u,onSubmit:i,submitLabel:r="Submit",className:c}){const[d,m]=E.useState({}),y=u.properties??{},g=new Set(u.required??[]),x=E.useCallback(v=>{v.preventDefault();const N={};for(const[p,M]of Object.entries(y)){const U=d[p]??"";if(!(!U&&!g.has(p)))if(M.type==="number")N[p]=Number(U);else if(M.type==="boolean")N[p]=U==="true";else if(M.type==="object"||M.type==="array")try{N[p]=JSON.parse(U)}catch{N[p]=U}else N[p]=U}i(N)},[d,y,g,i]);return f.jsxs("form",{onSubmit:x,className:`space-y-3 ${c??""}`,children:[Object.entries(y).map(([v,N])=>f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium text-[hsl(var(--foreground))] mb-1",children:[v,g.has(v)&&f.jsx("span",{className:"text-red-500 ml-0.5",children:"*"}),N.description&&f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] font-normal ml-1",children:["- ",N.description]})]}),N.enum?f.jsxs("select",{value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),N.enum.map(p=>f.jsx("option",{value:p,children:p},p))]}):N.type==="boolean"?f.jsxs("select",{value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),f.jsx("option",{value:"true",children:"true"}),f.jsx("option",{value:"false",children:"false"})]}):f.jsx("input",{type:N.type==="number"?"number":"text",value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),placeholder:N.type??"string",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]},v)),f.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 transition-opacity",children:r})]})}function Rv({status:u,className:i}){return f.jsxs("span",{className:Do("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",Vx(u),u==="running"&&"animate-pulse",i),children:[f.jsx("span",{className:Do("w-1.5 h-1.5 rounded-full",u==="running"&&"bg-blue-500",u==="completed"&&"bg-green-500",u==="failed"&&"bg-red-500",u==="waiting"&&"bg-amber-500")}),u]})}function ba({cost:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Nv(u)})}function Uo({ms:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Kx(u)})}function b1(){const[u,i]=E.useState(""),[r,c]=E.useState("{}"),[d,m]=E.useState(!0),[y,g]=E.useState(null),[x,v]=E.useState(null),[N,p]=E.useState(null),[M,U]=E.useState("idle"),{data:K=[]}=Pt({queryKey:["workflows"],queryFn:Tv}),{data:O}=Pt({queryKey:["workflow",u],queryFn:()=>Wx(u),enabled:!!u}),H=Cv(y),D=E.useCallback(async V=>{if(u){v(null),p(null),U("running");try{const k=await Ix(u,V,!0);k.streaming&&k.executionId?g(k.executionId):(v(k.result),U("completed"))}catch(k){p(k instanceof Error?k.message:String(k)),U("failed")}}},[u]),Y=E.useCallback(()=>{try{const V=JSON.parse(r);D(V)}catch(V){p(V instanceof Error?V.message:String(V)),U("failed")}},[r,D]),B=E.useCallback(V=>{D(V)},[D]);E.useEffect(()=>{H.done&&M==="running"&&(U(H.error?"failed":"completed"),H.error&&p(H.error),H.result&&v(H.result),g(null))},[H.done,H.error,H.result,M]);const Z=H.events.filter(V=>V.type==="step").map(V=>V.data),G=!!(O!=null&&O.inputSchema);return f.jsx(ql,{title:"Workflow Runner",description:"Execute and debug registered workflows",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),f.jsxs("select",{value:u,onChange:V=>{i(V.target.value),c("{}"),v(null),p(null),U("idle")},className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select a workflow..."}),K.map(V=>f.jsx("option",{value:V.name,children:V.name},V.name))]})]}),(O==null?void 0:O.outputSchema)!=null&&f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer text-[hsl(var(--muted-foreground))]",children:"Output Schema"}),f.jsx("div",{className:"mt-1",children:f.jsx(Et,{data:O.outputSchema,collapsed:!0})})]}),G&&f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("label",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Input mode:"}),f.jsx("button",{onClick:()=>m(!0),className:`px-2 py-0.5 text-xs rounded ${d?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))]"}`,children:"Form"}),f.jsx("button",{onClick:()=>m(!1),className:`px-2 py-0.5 text-xs rounded ${d?"border border-[hsl(var(--input))]":"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]"}`,children:"JSON"})]}),G&&d?f.jsx(Ov,{schema:O.inputSchema,onSubmit:B,submitLabel:M==="running"?"Running...":"Execute"}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Input (JSON)"}),f.jsx(Hs,{value:r,onChange:c})]}),f.jsxs("button",{onClick:Y,disabled:!u||M==="running",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:[f.jsx(xv,{size:14}),"Execute"]})]})]}),f.jsxs("div",{className:"space-y-4",children:[M!=="idle"&&f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Rv,{status:M}),H.events.length>0&&f.jsxs(f.Fragment,{children:[Z.some(V=>V.cost)&&f.jsx(ba,{cost:Z.reduce((V,k)=>V+(k.cost??0),0)}),Z.some(V=>V.duration)&&f.jsx(Uo,{ms:Z.reduce((V,k)=>V+(k.duration??0),0)})]})]}),Z.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Timeline"}),f.jsx("div",{className:"space-y-1.5",children:Z.map((V,k)=>f.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))]",children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))]",children:["#",V.step]}),f.jsx("span",{className:"font-medium",children:V.type}),V.agent&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.agent}),V.tool&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.tool}),f.jsx("span",{className:"flex-1"}),V.duration&&f.jsx(Uo,{ms:V.duration}),V.cost&&f.jsx(ba,{cost:V.cost})]},k))})]}),x!==null&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(Et,{data:x})]}),N&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:N}),M==="idle"&&f.jsx(Jt,{title:"No execution",description:"Select a workflow and click Execute to see results."})]})]})})}const x1={agent_call:"bg-blue-500",tool_call:"bg-purple-500",tool_call_complete:"bg-purple-400",workflow_start:"bg-green-500",workflow_complete:"bg-green-400",handoff:"bg-amber-500",await_human:"bg-red-500",vote_start:"bg-cyan-500",spawn:"bg-indigo-500"};function Cy(u){return x1[u]??"bg-slate-500"}function S1(u){const i=u.type;return i==="workflow_start"||i==="workflow_complete"?0:i==="agent_call"||i==="spawn"||i==="vote_start"?1:i==="tool_call"||i==="tool_call_complete"||i==="handoff"?2:1}function E1(){const[u,i]=E.useState(null),[r,c]=E.useState([]),[d,m]=E.useState(""),[y,g]=E.useState(""),{data:x=[],refetch:v}=Pt({queryKey:["executions"],queryFn:Px,refetchInterval:3e3});Fo("trace:*",E.useCallback(O=>{c(H=>[...H.slice(-200),O])},[]));const N=u?u.steps:r;let p=N;d&&(p=p.filter(O=>O.type===d)),y&&(p=p.filter(O=>O.agent===y));const M=[...new Set(N.map(O=>O.type))],U=[...new Set(N.map(O=>O.agent).filter(Boolean))],K=Math.max(...p.map(O=>O.duration??0),1);return f.jsx(ql,{title:"Trace Explorer",description:"Inspect execution traces with waterfall visualization",actions:f.jsx("button",{onClick:()=>{v(),c([])},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Refresh"}),children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[f.jsxs("div",{className:"lg:col-span-1 space-y-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Executions"}),f.jsxs("button",{onClick:()=>i(null),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u?"border-[hsl(var(--border))]":"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]"}`,children:["Live Events (",r.length,")"]}),x.map(O=>f.jsxs("button",{onClick:()=>i(O),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${(u==null?void 0:u.executionId)===O.executionId?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium truncate",children:O.workflow}),f.jsx(Rv,{status:O.status})]}),f.jsxs("div",{className:"flex items-center justify-between mt-0.5",children:[f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] truncate",children:[O.executionId.slice(0,8),"... | ",O.steps.length," steps"]}),O.totalCost>0&&f.jsx(ba,{cost:O.totalCost})]})]},O.executionId)),x.length===0&&f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No executions yet"})]}),f.jsxs("div",{className:"lg:col-span-3",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[f.jsxs("select",{value:d,onChange:O=>m(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All types"}),M.map(O=>f.jsx("option",{value:O,children:O},O))]}),U.length>0&&f.jsxs("select",{value:y,onChange:O=>g(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All agents"}),U.map(O=>f.jsx("option",{value:O,children:O},O))]}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[p.length," events"]})]}),p.length===0?f.jsx(Jt,{icon:f.jsx(vv,{size:32}),title:"No trace events",description:"Execute a workflow to see trace events here."}):f.jsx("div",{className:"space-y-1",children:p.map((O,H)=>{const D=S1(O);return f.jsxs("details",{className:"group",children:[f.jsxs("summary",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))] cursor-pointer hover:bg-[hsl(var(--accent))]",style:{marginLeft:`${D*16}px`},children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))] w-8",children:["#",O.step]}),f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Cy(O.type)}`}),f.jsx("span",{className:"font-medium w-28 truncate",children:O.type}),O.agent&&f.jsx("span",{className:"text-blue-600 dark:text-blue-400 w-28 truncate",children:O.agent}),O.tool&&f.jsx("span",{className:"text-purple-600 dark:text-purple-400 w-28 truncate",children:O.tool}),f.jsx("div",{className:"flex-1 h-3 bg-[hsl(var(--background))] rounded overflow-hidden",children:O.duration&&f.jsx("div",{className:`h-full rounded ${Cy(O.type)}`,style:{width:`${Math.max(O.duration/K*100,2)}%`,opacity:.7}})}),O.duration&&f.jsx(Uo,{ms:O.duration}),O.cost&&f.jsx(ba,{cost:O.cost})]}),f.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))]",style:{marginLeft:`${D*16+32}px`},children:[O.model&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Model:"})," ",O.model]}),O.promptVersion&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Version:"})," ",O.promptVersion]}),O.tokens&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Tokens:"})," in=",O.tokens.input," out=",O.tokens.output,O.tokens.reasoning?` reasoning=${O.tokens.reasoning}`:""]}),O.data!=null&&f.jsx(Et,{data:O.data,collapsed:!0})]})]},H)})})]})]})})}function j1({tokens:u,label:i,className:r}){return f.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${r??""}`,children:[i&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:i}),_s(u)]})}function N1(){const[u,i]=E.useState(null),{data:r,refetch:c}=Pt({queryKey:["costs"],queryFn:f1});Fo("costs",E.useCallback(y=>{i(y)},[]));const d=u??r,m=async()=>{await d1(),i(null),c()};return d?f.jsxs(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",actions:f.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Reset"}),children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[f.jsx(Rs,{label:"Total Cost",value:Nv(d.totalCost)}),f.jsx(Rs,{label:"Input Tokens",value:_s(d.totalTokens.input)}),f.jsx(Rs,{label:"Output Tokens",value:_s(d.totalTokens.output)}),f.jsx(Rs,{label:"Reasoning Tokens",value:_s(d.totalTokens.reasoning)})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Agent"}),Object.keys(d.byAgent).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No agent data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Agent"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byAgent).sort(([,y],[,g])=>g.cost-y.cost).map(([y,g])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:g.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.cost})})]},y))})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Model"}),Object.keys(d.byModel).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No model data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Model"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Tokens"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byModel).sort(([,y],[,g])=>g.cost-y.cost).map(([y,g])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:g.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(j1,{tokens:g.tokens.input+g.tokens.output})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.cost})})]},y))})]})]}),f.jsxs("div",{className:"lg:col-span-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Workflow"}),Object.keys(d.byWorkflow).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No workflow data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Executions"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Total Cost"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Avg Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byWorkflow).sort(([,y],[,g])=>g.cost-y.cost).map(([y,g])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:g.executions}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.cost})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.executions>0?g.cost/g.executions:0})})]},y))})]})]})]})]}):f.jsx(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",children:f.jsx(Jt,{icon:f.jsx(gv,{size:32}),title:"No cost data",description:"Execute workflows to see cost data."})})}function Rs({label:u,value:i}){return f.jsxs("div",{className:"p-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:u}),f.jsx("p",{className:"text-2xl font-semibold mt-1",children:i})]})}function T1(){const[u,i]=E.useState("session"),[r,c]=E.useState(""),[d,m]=E.useState("{}"),[y,g]=E.useState(!1),[x,v]=E.useState(""),[N,p]=E.useState(null),M=qs(),{data:U=[]}=Pt({queryKey:["memory",u],queryFn:()=>s1(u)}),K=Ao({mutationFn:({key:Y,value:B})=>r1(u,Y,B),onSuccess:()=>{M.invalidateQueries({queryKey:["memory",u]}),g(!1),c(""),m("{}")}}),O=Ao({mutationFn:Y=>c1(u,Y),onSuccess:()=>{M.invalidateQueries({queryKey:["memory",u]})}}),H=E.useCallback(async()=>{if(!x.trim())return;const Y=await o1(x,u);p(Y.results)},[x,u]),D=E.useCallback(()=>{if(r.trim())try{const Y=JSON.parse(d);K.mutate({key:r,value:Y})}catch{K.mutate({key:r,value:d})}},[r,d,K]);return f.jsxs(ql,{title:"Memory Browser",description:"View and manage agent memory entries",actions:f.jsxs("button",{onClick:()=>g(!y),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:[f.jsx(wx,{size:14}),"Add Entry"]}),children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[["session","global"].map(Y=>f.jsx("button",{onClick:()=>{i(Y),p(null)},className:`px-3 py-1.5 text-sm rounded-md ${u===Y?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:Y.charAt(0).toUpperCase()+Y.slice(1)},Y)),f.jsx("div",{className:"flex-1"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("input",{value:x,onChange:Y=>v(Y.target.value),onKeyDown:Y=>Y.key==="Enter"&&H(),placeholder:"Semantic search...",className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] w-48"}),f.jsx("button",{onClick:H,className:"p-1.5 rounded-md hover:bg-[hsl(var(--accent))]",children:f.jsx(qx,{size:14})})]})]}),y&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] space-y-3",children:[f.jsx("input",{value:r,onChange:Y=>c(Y.target.value),placeholder:"Key",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"}),f.jsx(Hs,{value:d,onChange:m,placeholder:"Value (JSON)"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:D,disabled:!r.trim(),className:"px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:"Save"}),f.jsx("button",{onClick:()=>g(!1),className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Cancel"})]})]}),N&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Search Results"}),N.length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No results found"}):f.jsx(Et,{data:N})]}),U.length===0?f.jsx(Jt,{icon:f.jsx(pv,{size:32}),title:"No memory entries",description:`No entries in the ${u} scope. Use ctx.remember() in workflows or add entries manually.`}):f.jsx("div",{className:"space-y-2",children:U.map(Y=>f.jsxs("div",{className:"p-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm font-mono font-medium",children:Y.key}),f.jsx("button",{onClick:()=>O.mutate(Y.key),className:"p-1 rounded hover:bg-[hsl(var(--destructive))] hover:text-[hsl(var(--destructive-foreground))] text-[hsl(var(--muted-foreground))]",children:f.jsx(Sv,{size:14})})]}),f.jsx(Et,{data:Y.value,collapsed:!0})]},Y.key))})]})}function C1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),d=qs(),{data:m=[]}=Pt({queryKey:["sessions"],queryFn:e1,refetchInterval:5e3}),{data:y}=Pt({queryKey:["session",u],queryFn:()=>t1(u),enabled:!!u}),g=Ao({mutationFn:l1,onSuccess:()=>{d.invalidateQueries({queryKey:["sessions"]}),i(null)}}),x=y!=null&&y.history?r!==null?y.history.slice(0,r+1):y.history:[];return f.jsx(ql,{title:"Session Manager",description:"Browse active sessions, replay conversations, and view handoff chains",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Sessions (",m.length,")"]}),m.length===0?f.jsx(Jt,{icon:f.jsx(Ev,{size:24}),title:"No sessions",description:"Sessions are created when using runtime.session()"}):m.map(v=>f.jsxs("button",{onClick:()=>{i(v.id),c(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===v.id?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-mono truncate",children:v.id}),f.jsxs("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5",children:[v.messageCount," messages"]})]},v.id))]}),f.jsx("div",{className:"lg:col-span-2",children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium font-mono",children:y.id}),f.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[y.history.length," messages"]})]}),f.jsxs("button",{onClick:()=>g.mutate(y.id),className:"flex items-center gap-1 px-2 py-1 text-xs rounded-md border border-red-300 text-red-600 hover:bg-red-50 dark:border-red-800 dark:text-red-400 dark:hover:bg-red-950",children:[f.jsx(Sv,{size:12}),"Delete"]})]}),y.handoffHistory&&y.handoffHistory.length>0&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-xs font-medium mb-2",children:"Handoff Chain"}),f.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:y.handoffHistory.map((v,N)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.source}),f.jsx(_o,{size:12,className:"text-[hsl(var(--muted-foreground))]"}),f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.target}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["(",v.mode,")"]}),N<y.handoffHistory.length-1&&f.jsx("span",{className:"mx-1 text-[hsl(var(--muted-foreground))]",children:"|"})]},N))})]}),y.history.length>1&&f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium mb-1",children:["Replay:"," ",r!==null?`${r+1} / ${y.history.length}`:"All"]}),f.jsx("input",{type:"range",min:0,max:y.history.length-1,value:r??y.history.length-1,onChange:v=>c(Number(v.target.value)),className:"w-full"})]}),f.jsx("div",{className:"space-y-3",children:x.map((v,N)=>f.jsxs("div",{className:`p-3 rounded-md text-sm ${v.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] ml-8":v.role==="assistant"?"bg-[hsl(var(--secondary))] mr-8":"bg-[hsl(var(--muted))] text-xs font-mono"}`,children:[f.jsx("div",{className:"text-xs font-medium mb-1 opacity-70",children:v.role}),f.jsx("div",{className:"whitespace-pre-wrap",children:v.content}),v.tool_calls&&v.tool_calls.length>0&&f.jsx("div",{className:"mt-2 space-y-1",children:v.tool_calls.map(p=>f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer font-mono",children:p.function.name}),f.jsx(Et,{data:JSON.parse(p.function.arguments),collapsed:!0})]},p.id))})]},N))})]}):f.jsx(Jt,{title:"Select a session",description:"Click a session to view its history"})})]})})}function O1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),[d,m]=E.useState(null),[y,g]=E.useState(!1),{data:x=[]}=Pt({queryKey:["tools"],queryFn:n1}),{data:v}=Pt({queryKey:["tool",u],queryFn:()=>u1(u),enabled:!!u}),N=E.useCallback(async p=>{if(u){c(null),m(null),g(!0);try{const M=await i1(u,p);c(M.result)}catch(M){m(M instanceof Error?M.message:String(M))}finally{g(!1)}}},[u]);return f.jsx(ql,{title:"Tool Inspector",description:"View tool schemas and test tools directly",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Tools (",x.length,")"]}),x.length===0?f.jsx(Jt,{icon:f.jsx(jv,{size:24}),title:"No tools",description:"Register tools with runtime.registerTool()"}):x.map(p=>f.jsxs("button",{onClick:()=>{i(p.name),c(null),m(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===p.name?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-medium",children:p.name}),f.jsx("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5 truncate",children:p.description}),f.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[p.sensitive&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300 text-[10px]",children:"sensitive"}),p.requireApproval&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-[10px]",children:"approval"})]})]},p.name))]}),f.jsx("div",{className:"lg:col-span-2",children:u?v?f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium",children:v.name}),f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:v.description})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.sensitive&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300",children:"Sensitive"}),v.requireApproval&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:"Requires Approval"}),v.retry.attempts&&v.retry.attempts>1&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300",children:["Retry: ",v.retry.attempts,"x ",v.retry.backoff]}),v.hasHooks&&v.hooks&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300",children:["Hooks:"," ",[v.hooks.hasBefore&&"before",v.hooks.hasAfter&&"after"].filter(Boolean).join(" + ")]})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Input Schema"}),f.jsx(Et,{data:v.inputSchema})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Test Tool"}),f.jsx(Ov,{schema:v.inputSchema,onSubmit:N,submitLabel:y?"Running...":"Run Tool"})]}),r!==null&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(Et,{data:r})]}),d&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:d})]}):f.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading..."}):f.jsx(Jt,{title:"Select a tool",description:"Click a tool to view its schema and test it"})})]})})}function R1(){const[u,i]=E.useState("run"),[r,c]=E.useState(""),[d,m]=E.useState("[]"),[y,g]=E.useState("[]"),[x,v]=E.useState(!1),[N,p]=E.useState([]),[M,U]=E.useState(null),[K,O]=E.useState(null),[H,D]=E.useState(null),{data:Y=[]}=Pt({queryKey:["workflows"],queryFn:Tv}),B=E.useCallback(async()=>{if(r){v(!0),O(null),U(null);try{const G=JSON.parse(d),V=JSON.parse(y),k=await h1({workflow:r,dataset:G,scorers:V});U(k),p(le=>[{id:`eval-${Date.now()}`,timestamp:Date.now(),workflow:r,data:k},...le])}catch(G){O(G instanceof Error?G.message:String(G))}finally{v(!1)}}},[r,d,y]),Z=E.useCallback(async()=>{if(!(N.length<2))try{const G=await m1(N[1].data,N[0].data);D(G)}catch(G){O(G instanceof Error?G.message:String(G))}},[N]);return f.jsxs(ql,{title:"Eval Runner",description:"Run evaluations, view results, and compare runs",children:[f.jsx("div",{className:"flex items-center gap-1 mb-6",children:["run","history","compare"].map(G=>f.jsx("button",{onClick:()=>i(G),className:`px-3 py-1.5 text-sm rounded-md ${u===G?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:G.charAt(0).toUpperCase()+G.slice(1)},G))}),u==="run"&&f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),f.jsxs("select",{value:r,onChange:G=>c(G.target.value),className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select a workflow..."}),Y.map(G=>f.jsx("option",{value:G.name,children:G.name},G.name))]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Dataset (JSON array)"}),f.jsx(Hs,{value:d,onChange:m,placeholder:"[{ ... }, { ... }]"})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Scorers (JSON array)"}),f.jsx(Hs,{value:y,onChange:g,placeholder:"[]"})]}),f.jsx("button",{onClick:B,disabled:!r||x,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:x?"Running...":"Run Eval"})]}),f.jsxs("div",{children:[K&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm mb-4",children:K}),M?f.jsxs("div",{className:"space-y-4",children:[M.summary&&Object.keys(M.summary).length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Summary"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Mean"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Min"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Max"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Count"})]})}),f.jsx("tbody",{children:Object.entries(M.summary).map(([G,V])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:G}),f.jsx("td",{className:"py-2 text-right font-mono",children:V.mean.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:V.min.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:V.max.toFixed(3)}),f.jsx("td",{className:"py-2 text-right",children:V.count})]},G))})]})]}),M.items&&M.items.length>0&&f.jsxs("div",{children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Items (",M.items.length,")"]}),f.jsx("div",{className:"space-y-2",children:M.items.map((G,V)=>f.jsxs("details",{className:"border border-[hsl(var(--border))] rounded-md",children:[f.jsxs("summary",{className:"flex items-center justify-between px-3 py-2 text-xs cursor-pointer hover:bg-[hsl(var(--accent))]",children:[f.jsxs("span",{className:"font-mono",children:["Item #",V+1]}),f.jsx("div",{className:"flex items-center gap-2",children:Object.entries(G.scores).map(([k,le])=>f.jsxs("span",{className:`px-1.5 py-0.5 rounded font-mono ${le>=.8?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":le>=.5?"bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300":"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300"}`,children:[k,": ",le.toFixed(2)]},k))})]}),f.jsxs("div",{className:"px-3 py-2 border-t border-[hsl(var(--border))] space-y-2 text-xs",children:[f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Input:"}),f.jsx(Et,{data:G.input,collapsed:!0})]}),f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Output:"}),f.jsx(Et,{data:G.output,collapsed:!0})]})]})]},V))})]}),!M.summary&&!M.items&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Results"}),f.jsx(Et,{data:M})]})]}):f.jsx(Jt,{icon:f.jsx(bv,{size:32}),title:"No results",description:"Configure and run an eval to see results."})]})]}),u==="history"&&f.jsx("div",{children:N.length===0?f.jsx(Jt,{title:"No eval history",description:"Run evaluations to build history."}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),f.jsx("th",{className:"text-left py-2 font-medium",children:"Timestamp"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Items"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Scorers"})]})}),f.jsx("tbody",{children:N.map(G=>{var V;return f.jsxs("tr",{className:"border-b border-[hsl(var(--border))] cursor-pointer hover:bg-[hsl(var(--accent))]",onClick:()=>{U(G.data),i("run")},children:[f.jsx("td",{className:"py-2 font-mono",children:G.workflow}),f.jsx("td",{className:"py-2",children:new Date(G.timestamp).toLocaleString()}),f.jsx("td",{className:"py-2 text-right",children:((V=G.data.items)==null?void 0:V.length)??"?"}),f.jsx("td",{className:"py-2 text-right",children:G.data.summary?Object.keys(G.data.summary).length:"?"})]},G.id)})})]})}),u==="compare"&&f.jsx("div",{className:"space-y-4",children:N.length<2?f.jsx(Jt,{title:"Need at least 2 eval runs",description:"Run evaluations to compare results."}):f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Comparing most recent run against previous run."}),f.jsx("button",{onClick:Z,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:"Compare"}),H&&f.jsxs("div",{className:"space-y-4",children:[H.regressions&&H.regressions.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2 text-red-600 dark:text-red-400",children:"Regressions"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"})]})}),f.jsx("tbody",{children:H.regressions.map(G=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:G.scorer}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.baseline.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.candidate.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono text-red-600 dark:text-red-400",children:G.delta.toFixed(3)})]},G.scorer))})]})]}),H.improvements&&H.improvements.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2 text-green-600 dark:text-green-400",children:"Improvements"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"})]})}),f.jsx("tbody",{children:H.improvements.map(G=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:G.scorer}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.baseline.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.candidate.toFixed(3)}),f.jsxs("td",{className:"py-2 text-right font-mono text-green-600 dark:text-green-400",children:["+",G.delta.toFixed(3)]})]},G.scorer))})]})]}),!H.regressions&&!H.improvements&&f.jsx(Et,{data:H})]})]})})]})}function A1(){return f.jsx(mx,{children:f.jsxs("div",{className:"flex h-screen overflow-hidden",children:[f.jsx(kx,{}),f.jsx("div",{className:"flex-1 overflow-hidden",children:f.jsxs(Zb,{children:[f.jsx(il,{path:"/playground",element:f.jsx(g1,{})}),f.jsx(il,{path:"/workflows",element:f.jsx(b1,{})}),f.jsx(il,{path:"/traces",element:f.jsx(E1,{})}),f.jsx(il,{path:"/costs",element:f.jsx(N1,{})}),f.jsx(il,{path:"/memory",element:f.jsx(T1,{})}),f.jsx(il,{path:"/sessions",element:f.jsx(C1,{})}),f.jsx(il,{path:"/tools",element:f.jsx(O1,{})}),f.jsx(il,{path:"/evals",element:f.jsx(R1,{})}),f.jsx(il,{path:"*",element:f.jsx(Gb,{to:"/playground",replace:!0})})]})})]})})}cg.createRoot(document.getElementById("root")).render(f.jsx(E.StrictMode,{children:f.jsx(Ug,{client:Vg,children:f.jsx(A1,{})})}));
150
+ */const Zx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],jv=jt("Wrench",Zx);function Do(...u){return u.filter(Boolean).join(" ")}function Nv(u){return u===0?"$0.00":u<.01?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function Kx(u){return u<1e3?`${Math.round(u)}ms`:u<6e4?`${(u/1e3).toFixed(1)}s`:`${(u/6e4).toFixed(1)}m`}function _s(u){return u.toLocaleString()}function Vx(u){switch(u){case"running":return"text-blue-500";case"completed":return"text-green-500";case"failed":return"text-red-500";case"waiting":return"text-amber-500";default:return"text-gray-500"}}const Jx=[{to:"/playground",label:"Playground",icon:_x},{to:"/workflows",label:"Workflows",icon:xv},{to:"/traces",label:"Traces",icon:vv},{to:"/costs",label:"Costs",icon:gv},{to:"/memory",label:"Memory",icon:pv},{to:"/sessions",label:"Sessions",icon:Ev},{to:"/tools",label:"Tools",icon:jv},{to:"/evals",label:"Evals",icon:bv}];function kx(){return f.jsxs("aside",{className:"w-56 border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] flex flex-col h-screen",children:[f.jsx("div",{className:"p-4 border-b border-[hsl(var(--border))]",children:f.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"Axl Studio"})}),f.jsx("nav",{className:"flex-1 p-2 space-y-0.5",children:Jx.map(({to:u,label:i,icon:r})=>f.jsxs(hv,{to:u,className:({isActive:c})=>Do("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",c?"bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))] font-medium":"text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]"),children:[f.jsx(r,{size:16}),i]},u))}),f.jsx("div",{className:"p-4 border-t border-[hsl(var(--border))] text-xs text-[hsl(var(--muted-foreground))]",children:"@axlsdk/studio"})]})}function ql({title:u,description:i,actions:r,children:c}){return f.jsxs("div",{className:"flex flex-col h-screen",children:[f.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-[hsl(var(--border))]",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-xl font-semibold",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-0.5",children:i})]}),r&&f.jsx("div",{className:"flex items-center gap-2",children:r})]}),f.jsx("main",{className:"flex-1 overflow-auto p-6",children:c})]})}function Jt({title:u,description:i,icon:r}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[r&&f.jsx("div",{className:"mb-3 text-[hsl(var(--muted-foreground))]",children:r}),f.jsx("h3",{className:"text-sm font-medium text-[hsl(var(--foreground))]",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-1 max-w-sm",children:i})]})}function Fx({text:u,className:i}){return f.jsxs("div",{className:`whitespace-pre-wrap ${i??""}`,children:[u,f.jsx("span",{className:"animate-pulse",children:"|"})]})}function Et({data:u,collapsed:i=!1,className:r}){const[c,d]=E.useState(i),m=JSON.stringify(u,null,2),y=m.length>200;return f.jsxs("div",{className:`relative ${r??""}`,children:[y&&f.jsx("button",{onClick:()=>d(!c),className:"text-xs text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] mb-1",children:c?"Expand":"Collapse"}),f.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96",children:c?JSON.stringify(u):m})]})}const $x=(window.__AXL_STUDIO_BASE__??"")+"/api";async function Ve(u,i){const c=await(await fetch(`${$x}${u}`,{headers:{"Content-Type":"application/json",...i==null?void 0:i.headers},...i})).json();if(!c.ok)throw new Error(c.error.message);return c.data}const Tv=()=>Ve("/workflows"),Wx=u=>Ve(`/workflows/${encodeURIComponent(u)}`),Ix=(u,i,r=!1)=>Ve(`/workflows/${encodeURIComponent(u)}/execute`,{method:"POST",body:JSON.stringify({input:i,stream:r})}),Px=()=>Ve("/executions"),e1=()=>Ve("/sessions"),t1=u=>Ve(`/sessions/${encodeURIComponent(u)}`),l1=u=>Ve(`/sessions/${encodeURIComponent(u)}`,{method:"DELETE"}),a1=()=>Ve("/agents"),n1=()=>Ve("/tools"),u1=u=>Ve(`/tools/${encodeURIComponent(u)}`),i1=(u,i)=>Ve(`/tools/${encodeURIComponent(u)}/test`,{method:"POST",body:JSON.stringify({input:i})}),s1=u=>Ve(`/memory/${encodeURIComponent(u)}`),r1=(u,i,r)=>Ve(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify({value:r})}),c1=(u,i)=>Ve(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"DELETE"}),o1=(u,i,r)=>Ve("/memory/search",{method:"POST",body:JSON.stringify({query:u,scope:i,limit:r})}),f1=()=>Ve("/costs"),d1=()=>Ve("/costs/reset",{method:"POST"}),h1=u=>Ve("/evals/run",{method:"POST",body:JSON.stringify(u)}),m1=(u,i)=>Ve("/evals/compare",{method:"POST",body:JSON.stringify({baseline:u,candidate:i})}),y1=(u,i,r)=>Ve("/playground/chat",{method:"POST",body:JSON.stringify({message:u,sessionId:i,agent:r})});class v1{constructor(){Ju(this,"ws",null);Ju(this,"listeners",new Map);Ju(this,"reconnectTimer",null);Ju(this,"url");const i=window.location.protocol==="https:"?"wss:":"ws:",r=window.__AXL_STUDIO_BASE__??"";this.url=`${i}//${window.location.host}${r}/ws`}connect(){var i;((i=this.ws)==null?void 0:i.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{for(const r of this.listeners.keys())this.send({type:"subscribe",channel:r})},this.ws.onmessage=r=>{try{const c=JSON.parse(r.data);if(c.type==="event"&&c.channel){const d=this.listeners.get(c.channel);if(d)for(const y of d)y(c.data);const m=c.channel.indexOf(":");if(m>0){const y=c.channel.substring(0,m)+":*",g=this.listeners.get(y);if(g)for(const b of g)b(c.data)}}}catch{}},this.ws.onclose=()=>{this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},2e3))}send(i){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(i))}subscribe(i,r){let c=this.listeners.get(i);return c||(c=new Set,this.listeners.set(i,c),this.send({type:"subscribe",channel:i})),c.add(r),this.connect(),()=>{c.delete(r),c.size===0&&(this.listeners.delete(i),this.send({type:"unsubscribe",channel:i}))}}disconnect(){var i;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(i=this.ws)==null||i.close(),this.ws=null}}const p1=new v1;function Fo(u,i){const r=E.useRef(i);r.current=i,E.useEffect(()=>{if(u)return p1.subscribe(u,c=>r.current(c))},[u])}function Cv(u){const[i,r]=E.useState({tokens:"",events:[],done:!1,error:null,result:null}),c=E.useCallback(d=>{const m=d;r(y=>{switch(m.type){case"token":return{...y,tokens:y.tokens+m.data,events:[...y.events,m]};case"done":return{...y,done:!0,result:m.result,events:[...y.events,m]};case"error":return{...y,done:!0,error:m.message,events:[...y.events,m]};default:return{...y,events:[...y.events,m]}}})},[]);return Fo(u?`execution:${u}`:null,c),i}function g1(){const[u,i]=E.useState([]),[r,c]=E.useState(""),[d,m]=E.useState(null),[y,g]=E.useState(null),[b,v]=E.useState(""),[N,p]=E.useState(!1),M=E.useRef(null),{data:U=[]}=Pt({queryKey:["agents"],queryFn:a1}),K=Cv(y);E.useEffect(()=>{K.tokens&&N&&i(D=>{const Y=D[D.length-1];return(Y==null?void 0:Y.role)==="assistant"?[...D.slice(0,-1),{...Y,content:K.tokens}]:[...D,{role:"assistant",content:K.tokens}]}),K.done&&(p(!1),g(null))},[K.tokens,K.done,N]),E.useEffect(()=>{const D=[],Y=[],B=[];for(const Z of K.events){if(Z.type==="tool_call"&&D.push({name:Z.name,args:Z.args}),Z.type==="tool_result"){const G=D.find(V=>V.name===Z.name&&!V.result);G&&(G.result=Z.result)}Z.type==="handoff"&&Y.push({source:Z.source,target:Z.target,mode:Z.mode??"oneway"}),Z.type==="tool_approval"&&B.push({tool:Z.name,approved:Z.approved})}(D.length>0||Y.length>0||B.length>0)&&i(Z=>{const G=Z[Z.length-1];return(G==null?void 0:G.role)==="assistant"?[...Z.slice(0,-1),{...G,toolCalls:D.length>0?D:G.toolCalls,handoffs:Y.length>0?Y:G.handoffs,approvals:B.length>0?B:G.approvals}]:Z})},[K.events]),E.useEffect(()=>{var D;(D=M.current)==null||D.scrollIntoView({behavior:"smooth"})},[u]);const O=E.useCallback(async()=>{if(!r.trim()||N)return;const D=r.trim();c(""),i(Y=>[...Y,{role:"user",content:D}]),p(!0);try{const Y=await y1(D,d??void 0,b||void 0);m(Y.sessionId),g(Y.executionId)}catch(Y){p(!1),i(B=>[...B,{role:"assistant",content:`Error: ${Y instanceof Error?Y.message:String(Y)}`}])}},[r,N,d,b]),H=D=>{D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),O())};return f.jsx(ql,{title:"Agent Playground",description:"Chat with registered agents in real-time",actions:f.jsxs("div",{className:"flex items-center gap-2",children:[U.length>0&&f.jsxs("select",{value:b,onChange:D=>v(D.target.value),className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Default agent"}),U.map(D=>f.jsx("option",{value:D.name,children:D.name},D.name))]}),f.jsx("button",{onClick:()=>{i([]),m(null),g(null)},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"New Chat"})]}),children:f.jsxs("div",{className:"flex flex-col h-full max-w-3xl mx-auto",children:[f.jsxs("div",{className:"flex-1 overflow-auto space-y-4 pb-4",children:[u.length===0&&f.jsx(Jt,{title:"Start a conversation",description:"Type a message below to chat with an agent. Tool calls, handoffs, and streaming responses will be displayed in real-time."}),u.map((D,Y)=>f.jsx("div",{className:`flex ${D.role==="user"?"justify-end":"justify-start"}`,children:f.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2.5 text-sm ${D.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]"}`,children:[D.role==="assistant"&&N&&Y===u.length-1?f.jsx(Fx,{text:D.content}):f.jsx("div",{className:"whitespace-pre-wrap",children:D.content}),D.handoffs&&D.handoffs.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:D.handoffs.map((B,Z)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(_o,{size:12,className:"text-amber-500"}),f.jsx("span",{className:"font-medium",children:B.source}),f.jsx(_o,{size:10}),f.jsx("span",{className:"font-medium",children:B.target}),f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))]",children:["(",B.mode,")"]})]},Z))}),D.approvals&&D.approvals.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:D.approvals.map((B,Z)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(Yx,{size:12,className:B.approved?"text-green-500":"text-red-500"}),f.jsxs("span",{children:["Tool ",f.jsx("span",{className:"font-mono",children:B.tool}),":"," ",B.approved?"approved":"denied"]})]},Z))}),D.toolCalls&&D.toolCalls.length>0&&f.jsx("div",{className:"mt-2 space-y-2 border-t border-[hsl(var(--border))] pt-2",children:D.toolCalls.map((B,Z)=>f.jsxs("details",{className:"text-xs",children:[f.jsxs("summary",{className:"cursor-pointer font-medium",children:["Tool: ",B.name]}),f.jsxs("div",{className:"mt-1 space-y-1",children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Input:"}),f.jsx(Et,{data:B.args,collapsed:!0}),B.result!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Output:"}),f.jsx(Et,{data:B.result,collapsed:!0})]})]})]},Z))})]})},Y)),f.jsx("div",{ref:M})]}),f.jsx("div",{className:"border-t border-[hsl(var(--border))] pt-4",children:f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx("textarea",{value:r,onChange:D=>c(D.target.value),onKeyDown:H,placeholder:"Type a message...",rows:1,className:"flex-1 px-3 py-2.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] resize-none focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]"}),f.jsx("button",{onClick:O,disabled:!r.trim()||N,className:"p-2.5 rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50 transition-opacity",children:f.jsx(Qx,{size:16})})]})})]})})}function Hs({value:u,onChange:i,placeholder:r,className:c}){const[d,m]=E.useState(null),y=E.useCallback(g=>{const b=g.target.value;i(b);try{b.trim()&&JSON.parse(b),m(null)}catch(v){m(v instanceof Error?v.message:"Invalid JSON")}},[i]);return f.jsxs("div",{className:c,children:[f.jsx("textarea",{value:u,onChange:y,placeholder:r??"{}",className:"w-full h-32 p-3 text-xs font-mono rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] text-[hsl(var(--foreground))] resize-y focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]",spellCheck:!1}),d&&f.jsx("p",{className:"text-xs text-red-500 mt-1",children:d})]})}function Ov({schema:u,onSubmit:i,submitLabel:r="Submit",className:c}){const[d,m]=E.useState({}),y=u.properties??{},g=new Set(u.required??[]),b=E.useCallback(v=>{v.preventDefault();const N={};for(const[p,M]of Object.entries(y)){const U=d[p]??"";if(!(!U&&!g.has(p)))if(M.type==="number")N[p]=Number(U);else if(M.type==="boolean")N[p]=U==="true";else if(M.type==="object"||M.type==="array")try{N[p]=JSON.parse(U)}catch{N[p]=U}else N[p]=U}i(N)},[d,y,g,i]);return f.jsxs("form",{onSubmit:b,className:`space-y-3 ${c??""}`,children:[Object.entries(y).map(([v,N])=>f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium text-[hsl(var(--foreground))] mb-1",children:[v,g.has(v)&&f.jsx("span",{className:"text-red-500 ml-0.5",children:"*"}),N.description&&f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] font-normal ml-1",children:["- ",N.description]})]}),N.enum?f.jsxs("select",{value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),N.enum.map(p=>f.jsx("option",{value:p,children:p},p))]}):N.type==="boolean"?f.jsxs("select",{value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),f.jsx("option",{value:"true",children:"true"}),f.jsx("option",{value:"false",children:"false"})]}):f.jsx("input",{type:N.type==="number"?"number":"text",value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),placeholder:N.type??"string",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]},v)),f.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 transition-opacity",children:r})]})}function Rv({status:u,className:i}){return f.jsxs("span",{className:Do("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",Vx(u),u==="running"&&"animate-pulse",i),children:[f.jsx("span",{className:Do("w-1.5 h-1.5 rounded-full",u==="running"&&"bg-blue-500",u==="completed"&&"bg-green-500",u==="failed"&&"bg-red-500",u==="waiting"&&"bg-amber-500")}),u]})}function ba({cost:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Nv(u)})}function Uo({ms:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Kx(u)})}function b1(){const[u,i]=E.useState(""),[r,c]=E.useState("{}"),[d,m]=E.useState(!0),[y,g]=E.useState(null),[b,v]=E.useState(null),[N,p]=E.useState(null),[M,U]=E.useState("idle"),{data:K=[]}=Pt({queryKey:["workflows"],queryFn:Tv}),{data:O}=Pt({queryKey:["workflow",u],queryFn:()=>Wx(u),enabled:!!u}),H=Cv(y),D=E.useCallback(async V=>{if(u){v(null),p(null),U("running");try{const k=await Ix(u,V,!0);k.streaming&&k.executionId?g(k.executionId):(v(k.result),U("completed"))}catch(k){p(k instanceof Error?k.message:String(k)),U("failed")}}},[u]),Y=E.useCallback(()=>{try{const V=JSON.parse(r);D(V)}catch(V){p(V instanceof Error?V.message:String(V)),U("failed")}},[r,D]),B=E.useCallback(V=>{D(V)},[D]);E.useEffect(()=>{H.done&&M==="running"&&(U(H.error?"failed":"completed"),H.error&&p(H.error),H.result&&v(H.result),g(null))},[H.done,H.error,H.result,M]);const Z=H.events.filter(V=>V.type==="step").map(V=>V.data),G=!!(O!=null&&O.inputSchema);return f.jsx(ql,{title:"Workflow Runner",description:"Execute and debug registered workflows",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),f.jsxs("select",{value:u,onChange:V=>{i(V.target.value),c("{}"),v(null),p(null),U("idle")},className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select a workflow..."}),K.map(V=>f.jsx("option",{value:V.name,children:V.name},V.name))]})]}),(O==null?void 0:O.outputSchema)!=null&&f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer text-[hsl(var(--muted-foreground))]",children:"Output Schema"}),f.jsx("div",{className:"mt-1",children:f.jsx(Et,{data:O.outputSchema,collapsed:!0})})]}),G&&f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("label",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Input mode:"}),f.jsx("button",{onClick:()=>m(!0),className:`px-2 py-0.5 text-xs rounded ${d?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))]"}`,children:"Form"}),f.jsx("button",{onClick:()=>m(!1),className:`px-2 py-0.5 text-xs rounded ${d?"border border-[hsl(var(--input))]":"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]"}`,children:"JSON"})]}),G&&d?f.jsx(Ov,{schema:O.inputSchema,onSubmit:B,submitLabel:M==="running"?"Running...":"Execute"}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Input (JSON)"}),f.jsx(Hs,{value:r,onChange:c})]}),f.jsxs("button",{onClick:Y,disabled:!u||M==="running",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:[f.jsx(xv,{size:14}),"Execute"]})]})]}),f.jsxs("div",{className:"space-y-4",children:[M!=="idle"&&f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Rv,{status:M}),H.events.length>0&&f.jsxs(f.Fragment,{children:[Z.some(V=>V.cost)&&f.jsx(ba,{cost:Z.reduce((V,k)=>V+(k.cost??0),0)}),Z.some(V=>V.duration)&&f.jsx(Uo,{ms:Z.reduce((V,k)=>V+(k.duration??0),0)})]})]}),Z.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Timeline"}),f.jsx("div",{className:"space-y-1.5",children:Z.map((V,k)=>f.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))]",children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))]",children:["#",V.step]}),f.jsx("span",{className:"font-medium",children:V.type}),V.agent&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.agent}),V.tool&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.tool}),f.jsx("span",{className:"flex-1"}),V.duration&&f.jsx(Uo,{ms:V.duration}),V.cost&&f.jsx(ba,{cost:V.cost})]},k))})]}),b!==null&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(Et,{data:b})]}),N&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:N}),M==="idle"&&f.jsx(Jt,{title:"No execution",description:"Select a workflow and click Execute to see results."})]})]})})}const x1={agent_call:"bg-blue-500",tool_call:"bg-purple-500",tool_call_complete:"bg-purple-400",workflow_start:"bg-green-500",workflow_complete:"bg-green-400",handoff:"bg-amber-500",await_human:"bg-red-500",vote_start:"bg-cyan-500",spawn:"bg-indigo-500"};function Cy(u){return x1[u]??"bg-slate-500"}function S1(u){const i=u.type;return i==="workflow_start"||i==="workflow_complete"?0:i==="agent_call"||i==="spawn"||i==="vote_start"?1:i==="tool_call"||i==="tool_call_complete"||i==="handoff"?2:1}function E1(){const[u,i]=E.useState(null),[r,c]=E.useState([]),[d,m]=E.useState(""),[y,g]=E.useState(""),{data:b=[],refetch:v}=Pt({queryKey:["executions"],queryFn:Px,refetchInterval:3e3});Fo("trace:*",E.useCallback(O=>{c(H=>[...H.slice(-200),O])},[]));const N=u?u.steps:r;let p=N;d&&(p=p.filter(O=>O.type===d)),y&&(p=p.filter(O=>O.agent===y));const M=[...new Set(N.map(O=>O.type))],U=[...new Set(N.map(O=>O.agent).filter(Boolean))],K=Math.max(...p.map(O=>O.duration??0),1);return f.jsx(ql,{title:"Trace Explorer",description:"Inspect execution traces with waterfall visualization",actions:f.jsx("button",{onClick:()=>{v(),c([])},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Refresh"}),children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[f.jsxs("div",{className:"lg:col-span-1 space-y-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Executions"}),f.jsxs("button",{onClick:()=>i(null),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u?"border-[hsl(var(--border))]":"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]"}`,children:["Live Events (",r.length,")"]}),b.map(O=>f.jsxs("button",{onClick:()=>i(O),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${(u==null?void 0:u.executionId)===O.executionId?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium truncate",children:O.workflow}),f.jsx(Rv,{status:O.status})]}),f.jsxs("div",{className:"flex items-center justify-between mt-0.5",children:[f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] truncate",children:[O.executionId.slice(0,8),"... | ",O.steps.length," steps"]}),O.totalCost>0&&f.jsx(ba,{cost:O.totalCost})]})]},O.executionId)),b.length===0&&f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No executions yet"})]}),f.jsxs("div",{className:"lg:col-span-3",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[f.jsxs("select",{value:d,onChange:O=>m(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All types"}),M.map(O=>f.jsx("option",{value:O,children:O},O))]}),U.length>0&&f.jsxs("select",{value:y,onChange:O=>g(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All agents"}),U.map(O=>f.jsx("option",{value:O,children:O},O))]}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[p.length," events"]})]}),p.length===0?f.jsx(Jt,{icon:f.jsx(vv,{size:32}),title:"No trace events",description:"Execute a workflow to see trace events here."}):f.jsx("div",{className:"space-y-1",children:p.map((O,H)=>{const D=S1(O);return f.jsxs("details",{className:"group",children:[f.jsxs("summary",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))] cursor-pointer hover:bg-[hsl(var(--accent))]",style:{marginLeft:`${D*16}px`},children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))] w-8",children:["#",O.step]}),f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Cy(O.type)}`}),f.jsx("span",{className:"font-medium w-28 truncate",children:O.type}),O.agent&&f.jsx("span",{className:"text-blue-600 dark:text-blue-400 w-28 truncate",children:O.agent}),O.tool&&f.jsx("span",{className:"text-purple-600 dark:text-purple-400 w-28 truncate",children:O.tool}),f.jsx("div",{className:"flex-1 h-3 bg-[hsl(var(--background))] rounded overflow-hidden",children:O.duration&&f.jsx("div",{className:`h-full rounded ${Cy(O.type)}`,style:{width:`${Math.max(O.duration/K*100,2)}%`,opacity:.7}})}),O.duration&&f.jsx(Uo,{ms:O.duration}),O.cost&&f.jsx(ba,{cost:O.cost})]}),f.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))]",style:{marginLeft:`${D*16+32}px`},children:[O.model&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Model:"})," ",O.model]}),O.promptVersion&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Version:"})," ",O.promptVersion]}),O.tokens&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Tokens:"})," in=",O.tokens.input," out=",O.tokens.output,O.tokens.reasoning?` reasoning=${O.tokens.reasoning}`:""]}),O.data!=null&&f.jsx(Et,{data:O.data,collapsed:!0})]})]},H)})})]})]})})}function j1({tokens:u,label:i,className:r}){return f.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${r??""}`,children:[i&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:i}),_s(u)]})}function N1(){const[u,i]=E.useState(null),{data:r,refetch:c}=Pt({queryKey:["costs"],queryFn:f1});Fo("costs",E.useCallback(y=>{i(y)},[]));const d=u??r,m=async()=>{await d1(),i(null),c()};return d?f.jsxs(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",actions:f.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Reset"}),children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[f.jsx(Rs,{label:"Total Cost",value:Nv(d.totalCost)}),f.jsx(Rs,{label:"Input Tokens",value:_s(d.totalTokens.input)}),f.jsx(Rs,{label:"Output Tokens",value:_s(d.totalTokens.output)}),f.jsx(Rs,{label:"Reasoning Tokens",value:_s(d.totalTokens.reasoning)})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Agent"}),Object.keys(d.byAgent).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No agent data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Agent"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byAgent).sort(([,y],[,g])=>g.cost-y.cost).map(([y,g])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:g.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.cost})})]},y))})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Model"}),Object.keys(d.byModel).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No model data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Model"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Tokens"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byModel).sort(([,y],[,g])=>g.cost-y.cost).map(([y,g])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:g.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(j1,{tokens:g.tokens.input+g.tokens.output})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.cost})})]},y))})]})]}),f.jsxs("div",{className:"lg:col-span-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Workflow"}),Object.keys(d.byWorkflow).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No workflow data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Executions"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Total Cost"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Avg Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byWorkflow).sort(([,y],[,g])=>g.cost-y.cost).map(([y,g])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:g.executions}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.cost})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:g.executions>0?g.cost/g.executions:0})})]},y))})]})]})]})]}):f.jsx(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",children:f.jsx(Jt,{icon:f.jsx(gv,{size:32}),title:"No cost data",description:"Execute workflows to see cost data."})})}function Rs({label:u,value:i}){return f.jsxs("div",{className:"p-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:u}),f.jsx("p",{className:"text-2xl font-semibold mt-1",children:i})]})}function T1(){const[u,i]=E.useState("session"),[r,c]=E.useState(""),[d,m]=E.useState("{}"),[y,g]=E.useState(!1),[b,v]=E.useState(""),[N,p]=E.useState(null),M=qs(),{data:U=[]}=Pt({queryKey:["memory",u],queryFn:()=>s1(u)}),K=Ao({mutationFn:({key:Y,value:B})=>r1(u,Y,B),onSuccess:()=>{M.invalidateQueries({queryKey:["memory",u]}),g(!1),c(""),m("{}")}}),O=Ao({mutationFn:Y=>c1(u,Y),onSuccess:()=>{M.invalidateQueries({queryKey:["memory",u]})}}),H=E.useCallback(async()=>{if(!b.trim())return;const Y=await o1(b,u);p(Y.results)},[b,u]),D=E.useCallback(()=>{if(r.trim())try{const Y=JSON.parse(d);K.mutate({key:r,value:Y})}catch{K.mutate({key:r,value:d})}},[r,d,K]);return f.jsxs(ql,{title:"Memory Browser",description:"View and manage agent memory entries",actions:f.jsxs("button",{onClick:()=>g(!y),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:[f.jsx(wx,{size:14}),"Add Entry"]}),children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[["session","global"].map(Y=>f.jsx("button",{onClick:()=>{i(Y),p(null)},className:`px-3 py-1.5 text-sm rounded-md ${u===Y?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:Y.charAt(0).toUpperCase()+Y.slice(1)},Y)),f.jsx("div",{className:"flex-1"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("input",{value:b,onChange:Y=>v(Y.target.value),onKeyDown:Y=>Y.key==="Enter"&&H(),placeholder:"Semantic search...",className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] w-48"}),f.jsx("button",{onClick:H,className:"p-1.5 rounded-md hover:bg-[hsl(var(--accent))]",children:f.jsx(qx,{size:14})})]})]}),y&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] space-y-3",children:[f.jsx("input",{value:r,onChange:Y=>c(Y.target.value),placeholder:"Key",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"}),f.jsx(Hs,{value:d,onChange:m,placeholder:"Value (JSON)"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:D,disabled:!r.trim(),className:"px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:"Save"}),f.jsx("button",{onClick:()=>g(!1),className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Cancel"})]})]}),N&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Search Results"}),N.length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No results found"}):f.jsx(Et,{data:N})]}),U.length===0?f.jsx(Jt,{icon:f.jsx(pv,{size:32}),title:"No memory entries",description:`No entries in the ${u} scope. Use ctx.remember() in workflows or add entries manually.`}):f.jsx("div",{className:"space-y-2",children:U.map(Y=>f.jsxs("div",{className:"p-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm font-mono font-medium",children:Y.key}),f.jsx("button",{onClick:()=>O.mutate(Y.key),className:"p-1 rounded hover:bg-[hsl(var(--destructive))] hover:text-[hsl(var(--destructive-foreground))] text-[hsl(var(--muted-foreground))]",children:f.jsx(Sv,{size:14})})]}),f.jsx(Et,{data:Y.value,collapsed:!0})]},Y.key))})]})}function C1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),d=qs(),{data:m=[]}=Pt({queryKey:["sessions"],queryFn:e1,refetchInterval:5e3}),{data:y}=Pt({queryKey:["session",u],queryFn:()=>t1(u),enabled:!!u}),g=Ao({mutationFn:l1,onSuccess:()=>{d.invalidateQueries({queryKey:["sessions"]}),i(null)}}),b=y!=null&&y.history?r!==null?y.history.slice(0,r+1):y.history:[];return f.jsx(ql,{title:"Session Manager",description:"Browse active sessions, replay conversations, and view handoff chains",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Sessions (",m.length,")"]}),m.length===0?f.jsx(Jt,{icon:f.jsx(Ev,{size:24}),title:"No sessions",description:"Sessions are created when using runtime.session()"}):m.map(v=>f.jsxs("button",{onClick:()=>{i(v.id),c(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===v.id?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-mono truncate",children:v.id}),f.jsxs("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5",children:[v.messageCount," messages"]})]},v.id))]}),f.jsx("div",{className:"lg:col-span-2",children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium font-mono",children:y.id}),f.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[y.history.length," messages"]})]}),f.jsxs("button",{onClick:()=>g.mutate(y.id),className:"flex items-center gap-1 px-2 py-1 text-xs rounded-md border border-red-300 text-red-600 hover:bg-red-50 dark:border-red-800 dark:text-red-400 dark:hover:bg-red-950",children:[f.jsx(Sv,{size:12}),"Delete"]})]}),y.handoffHistory&&y.handoffHistory.length>0&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-xs font-medium mb-2",children:"Handoff Chain"}),f.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:y.handoffHistory.map((v,N)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.source}),f.jsx(_o,{size:12,className:"text-[hsl(var(--muted-foreground))]"}),f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.target}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["(",v.mode,")"]}),N<y.handoffHistory.length-1&&f.jsx("span",{className:"mx-1 text-[hsl(var(--muted-foreground))]",children:"|"})]},N))})]}),y.history.length>1&&f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium mb-1",children:["Replay:"," ",r!==null?`${r+1} / ${y.history.length}`:"All"]}),f.jsx("input",{type:"range",min:0,max:y.history.length-1,value:r??y.history.length-1,onChange:v=>c(Number(v.target.value)),className:"w-full"})]}),f.jsx("div",{className:"space-y-3",children:b.map((v,N)=>f.jsxs("div",{className:`p-3 rounded-md text-sm ${v.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] ml-8":v.role==="assistant"?"bg-[hsl(var(--secondary))] mr-8":"bg-[hsl(var(--muted))] text-xs font-mono"}`,children:[f.jsx("div",{className:"text-xs font-medium mb-1 opacity-70",children:v.role}),f.jsx("div",{className:"whitespace-pre-wrap",children:v.content}),v.tool_calls&&v.tool_calls.length>0&&f.jsx("div",{className:"mt-2 space-y-1",children:v.tool_calls.map(p=>f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer font-mono",children:p.function.name}),f.jsx(Et,{data:JSON.parse(p.function.arguments),collapsed:!0})]},p.id))})]},N))})]}):f.jsx(Jt,{title:"Select a session",description:"Click a session to view its history"})})]})})}function O1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),[d,m]=E.useState(null),[y,g]=E.useState(!1),{data:b=[]}=Pt({queryKey:["tools"],queryFn:n1}),{data:v}=Pt({queryKey:["tool",u],queryFn:()=>u1(u),enabled:!!u}),N=E.useCallback(async p=>{if(u){c(null),m(null),g(!0);try{const M=await i1(u,p);c(M.result)}catch(M){m(M instanceof Error?M.message:String(M))}finally{g(!1)}}},[u]);return f.jsx(ql,{title:"Tool Inspector",description:"View tool schemas and test tools directly",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Tools (",b.length,")"]}),b.length===0?f.jsx(Jt,{icon:f.jsx(jv,{size:24}),title:"No tools",description:"Register tools with runtime.registerTool()"}):b.map(p=>f.jsxs("button",{onClick:()=>{i(p.name),c(null),m(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===p.name?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-medium",children:p.name}),f.jsx("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5 truncate",children:p.description}),f.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[p.sensitive&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300 text-[10px]",children:"sensitive"}),p.requireApproval&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-[10px]",children:"approval"})]})]},p.name))]}),f.jsx("div",{className:"lg:col-span-2",children:u?v?f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium",children:v.name}),f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:v.description})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.sensitive&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300",children:"Sensitive"}),v.requireApproval&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:"Requires Approval"}),v.retry.attempts&&v.retry.attempts>1&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300",children:["Retry: ",v.retry.attempts,"x ",v.retry.backoff]}),v.hasHooks&&v.hooks&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300",children:["Hooks:"," ",[v.hooks.hasBefore&&"before",v.hooks.hasAfter&&"after"].filter(Boolean).join(" + ")]})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Input Schema"}),f.jsx(Et,{data:v.inputSchema})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Test Tool"}),f.jsx(Ov,{schema:v.inputSchema,onSubmit:N,submitLabel:y?"Running...":"Run Tool"})]}),r!==null&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(Et,{data:r})]}),d&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:d})]}):f.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading..."}):f.jsx(Jt,{title:"Select a tool",description:"Click a tool to view its schema and test it"})})]})})}function R1(){const[u,i]=E.useState("run"),[r,c]=E.useState(""),[d,m]=E.useState("[]"),[y,g]=E.useState("[]"),[b,v]=E.useState(!1),[N,p]=E.useState([]),[M,U]=E.useState(null),[K,O]=E.useState(null),[H,D]=E.useState(null),{data:Y=[]}=Pt({queryKey:["workflows"],queryFn:Tv}),B=E.useCallback(async()=>{if(r){v(!0),O(null),U(null);try{const G=JSON.parse(d),V=JSON.parse(y),k=await h1({workflow:r,dataset:G,scorers:V});U(k),p(le=>[{id:`eval-${Date.now()}`,timestamp:Date.now(),workflow:r,data:k},...le])}catch(G){O(G instanceof Error?G.message:String(G))}finally{v(!1)}}},[r,d,y]),Z=E.useCallback(async()=>{if(!(N.length<2))try{const G=await m1(N[1].data,N[0].data);D(G)}catch(G){O(G instanceof Error?G.message:String(G))}},[N]);return f.jsxs(ql,{title:"Eval Runner",description:"Run evaluations, view results, and compare runs",children:[f.jsx("div",{className:"flex items-center gap-1 mb-6",children:["run","history","compare"].map(G=>f.jsx("button",{onClick:()=>i(G),className:`px-3 py-1.5 text-sm rounded-md ${u===G?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:G.charAt(0).toUpperCase()+G.slice(1)},G))}),u==="run"&&f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),f.jsxs("select",{value:r,onChange:G=>c(G.target.value),className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select a workflow..."}),Y.map(G=>f.jsx("option",{value:G.name,children:G.name},G.name))]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Dataset (JSON array)"}),f.jsx(Hs,{value:d,onChange:m,placeholder:"[{ ... }, { ... }]"})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Scorers (JSON array)"}),f.jsx(Hs,{value:y,onChange:g,placeholder:"[]"})]}),f.jsx("button",{onClick:B,disabled:!r||b,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:b?"Running...":"Run Eval"})]}),f.jsxs("div",{children:[K&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm mb-4",children:K}),M?f.jsxs("div",{className:"space-y-4",children:[M.summary&&Object.keys(M.summary).length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Summary"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Mean"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Min"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Max"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Count"})]})}),f.jsx("tbody",{children:Object.entries(M.summary).map(([G,V])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:G}),f.jsx("td",{className:"py-2 text-right font-mono",children:V.mean.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:V.min.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:V.max.toFixed(3)}),f.jsx("td",{className:"py-2 text-right",children:V.count})]},G))})]})]}),M.items&&M.items.length>0&&f.jsxs("div",{children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Items (",M.items.length,")"]}),f.jsx("div",{className:"space-y-2",children:M.items.map((G,V)=>f.jsxs("details",{className:"border border-[hsl(var(--border))] rounded-md",children:[f.jsxs("summary",{className:"flex items-center justify-between px-3 py-2 text-xs cursor-pointer hover:bg-[hsl(var(--accent))]",children:[f.jsxs("span",{className:"font-mono",children:["Item #",V+1]}),f.jsx("div",{className:"flex items-center gap-2",children:Object.entries(G.scores).map(([k,le])=>f.jsxs("span",{className:`px-1.5 py-0.5 rounded font-mono ${le>=.8?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":le>=.5?"bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300":"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300"}`,children:[k,": ",le.toFixed(2)]},k))})]}),f.jsxs("div",{className:"px-3 py-2 border-t border-[hsl(var(--border))] space-y-2 text-xs",children:[f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Input:"}),f.jsx(Et,{data:G.input,collapsed:!0})]}),f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Output:"}),f.jsx(Et,{data:G.output,collapsed:!0})]})]})]},V))})]}),!M.summary&&!M.items&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Results"}),f.jsx(Et,{data:M})]})]}):f.jsx(Jt,{icon:f.jsx(bv,{size:32}),title:"No results",description:"Configure and run an eval to see results."})]})]}),u==="history"&&f.jsx("div",{children:N.length===0?f.jsx(Jt,{title:"No eval history",description:"Run evaluations to build history."}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),f.jsx("th",{className:"text-left py-2 font-medium",children:"Timestamp"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Items"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Scorers"})]})}),f.jsx("tbody",{children:N.map(G=>{var V;return f.jsxs("tr",{className:"border-b border-[hsl(var(--border))] cursor-pointer hover:bg-[hsl(var(--accent))]",onClick:()=>{U(G.data),i("run")},children:[f.jsx("td",{className:"py-2 font-mono",children:G.workflow}),f.jsx("td",{className:"py-2",children:new Date(G.timestamp).toLocaleString()}),f.jsx("td",{className:"py-2 text-right",children:((V=G.data.items)==null?void 0:V.length)??"?"}),f.jsx("td",{className:"py-2 text-right",children:G.data.summary?Object.keys(G.data.summary).length:"?"})]},G.id)})})]})}),u==="compare"&&f.jsx("div",{className:"space-y-4",children:N.length<2?f.jsx(Jt,{title:"Need at least 2 eval runs",description:"Run evaluations to compare results."}):f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Comparing most recent run against previous run."}),f.jsx("button",{onClick:Z,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:"Compare"}),H&&f.jsxs("div",{className:"space-y-4",children:[H.regressions&&H.regressions.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2 text-red-600 dark:text-red-400",children:"Regressions"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"})]})}),f.jsx("tbody",{children:H.regressions.map(G=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:G.scorer}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.baseline.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.candidate.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono text-red-600 dark:text-red-400",children:G.delta.toFixed(3)})]},G.scorer))})]})]}),H.improvements&&H.improvements.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2 text-green-600 dark:text-green-400",children:"Improvements"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"})]})}),f.jsx("tbody",{children:H.improvements.map(G=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:G.scorer}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.baseline.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:G.candidate.toFixed(3)}),f.jsxs("td",{className:"py-2 text-right font-mono text-green-600 dark:text-green-400",children:["+",G.delta.toFixed(3)]})]},G.scorer))})]})]}),!H.regressions&&!H.improvements&&f.jsx(Et,{data:H})]})]})})]})}function A1(){return f.jsx(mx,{basename:window.__AXL_STUDIO_BASE__||"/",children:f.jsxs("div",{className:"flex h-screen overflow-hidden",children:[f.jsx(kx,{}),f.jsx("div",{className:"flex-1 overflow-hidden",children:f.jsxs(Zb,{children:[f.jsx(il,{path:"/playground",element:f.jsx(g1,{})}),f.jsx(il,{path:"/workflows",element:f.jsx(b1,{})}),f.jsx(il,{path:"/traces",element:f.jsx(E1,{})}),f.jsx(il,{path:"/costs",element:f.jsx(N1,{})}),f.jsx(il,{path:"/memory",element:f.jsx(T1,{})}),f.jsx(il,{path:"/sessions",element:f.jsx(C1,{})}),f.jsx(il,{path:"/tools",element:f.jsx(O1,{})}),f.jsx(il,{path:"/evals",element:f.jsx(R1,{})}),f.jsx(il,{path:"*",element:f.jsx(Gb,{to:"/playground",replace:!0})})]})})]})})}cg.createRoot(document.getElementById("root")).render(f.jsx(E.StrictMode,{children:f.jsx(Ug,{client:Vg,children:f.jsx(A1,{})})}));