@vizzly-testing/cli 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(){"use strict";function V0(n,u){for(var c=0;c<u.length;c++){const o=u[c];if(typeof o!="string"&&!Array.isArray(o)){for(const h in o)if(h!=="default"&&!(h in n)){const v=Object.getOwnPropertyDescriptor(o,h);v&&Object.defineProperty(n,h,v.get?v:{enumerable:!0,get:()=>o[h]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Dc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qs={exports:{}},an={};var _c;function Z0(){if(_c)return an;_c=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(o,h,v){var g=null;if(v!==void 0&&(g=""+v),h.key!==void 0&&(g=""+h.key),"key"in h){v={};for(var y in h)y!=="key"&&(v[y]=h[y])}else v=h;return h=v.ref,{$$typeof:n,type:o,key:g,ref:h!==void 0?h:null,props:v}}return an.Fragment=u,an.jsx=c,an.jsxs=c,an}var Uc;function X0(){return Uc||(Uc=1,Qs.exports=Z0()),Qs.exports}var r=X0(),ks={exports:{}},P={};var Lc;function K0(){if(Lc)return P;Lc=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),L=Symbol.iterator;function V(S){return S===null||typeof S!="object"?null:(S=L&&S[L]||S["@@iterator"],typeof S=="function"?S:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,H={};function q(S,U,Y){this.props=S,this.context=U,this.refs=H,this.updater=Y||B}q.prototype.isReactComponent={},q.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,U,"setState")},q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function $(){}$.prototype=q.prototype;function k(S,U,Y){this.props=S,this.context=U,this.refs=H,this.updater=Y||B}var ne=k.prototype=new $;ne.constructor=k,M(ne,q.prototype),ne.isPureReactComponent=!0;var xe=Array.isArray;function fe(){}var K={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ve(S,U,Y){var Z=Y.ref;return{$$typeof:n,type:S,key:U,ref:Z!==void 0?Z:null,props:Y}}function Me(S,U){return ve(S.type,U,S.props)}function he(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function J(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return U[Y]})}var de=/\/+/g;function Xe(S,U){return typeof S=="object"&&S!==null&&S.key!=null?J(""+S.key):U.toString(36)}function Ke(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(fe,fe):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,Y,Z,te){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(ie){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case u:be=!0;break;case N:return be=S._init,T(be(S._payload),U,Y,Z,te)}}if(be)return te=te(S),be=Z===""?"."+Xe(S,0):Z,xe(te)?(Y="",be!=null&&(Y=be.replace(de,"$&/")+"/"),T(te,U,Y,"",function(mn){return mn})):te!=null&&(he(te)&&(te=Me(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(de,"$&/")+"/")+be)),U.push(te)),1;be=0;var it=Z===""?".":Z+":";if(xe(S))for(var Ue=0;Ue<S.length;Ue++)Z=S[Ue],ie=it+Xe(Z,Ue),be+=T(Z,U,Y,ie,te);else if(Ue=V(S),typeof Ue=="function")for(S=Ue.call(S),Ue=0;!(Z=S.next()).done;)Z=Z.value,ie=it+Xe(Z,Ue++),be+=T(Z,U,Y,ie,te);else if(ie==="object"){if(typeof S.then=="function")return T(Ke(S),U,Y,Z,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(S,U,Y){if(S==null)return S;var Z=[],te=0;return T(S,Z,"","",function(ie){return U.call(Y,ie,te++)}),Z}function I(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var pe=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ce={map:Q,forEach:function(S,U,Y){Q(S,function(){U.apply(this,arguments)},Y)},count:function(S){var U=0;return Q(S,function(){U++}),U},toArray:function(S){return Q(S,function(U){return U})||[]},only:function(S){if(!he(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return P.Activity=A,P.Children=Ce,P.Component=q,P.Fragment=c,P.Profiler=h,P.PureComponent=k,P.StrictMode=o,P.Suspense=x,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,P.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},P.cache=function(S){return function(){return S.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(S,U,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=M({},S.props),te=S.key;if(U!=null)for(ie in U.key!==void 0&&(te=""+U.key),U)!ee.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(Z[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)Z.children=Y;else if(1<ie){for(var be=Array(ie),it=0;it<ie;it++)be[it]=arguments[it+2];Z.children=be}return ve(S.type,te,Z)},P.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:v,_context:S},S},P.createElement=function(S,U,Y){var Z,te={},ie=null;if(U!=null)for(Z in U.key!==void 0&&(ie=""+U.key),U)ee.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=U[Z]);var be=arguments.length-2;if(be===1)te.children=Y;else if(1<be){for(var it=Array(be),Ue=0;Ue<be;Ue++)it[Ue]=arguments[Ue+2];te.children=it}if(S&&S.defaultProps)for(Z in be=S.defaultProps,be)te[Z]===void 0&&(te[Z]=be[Z]);return ve(S,ie,te)},P.createRef=function(){return{current:null}},P.forwardRef=function(S){return{$$typeof:y,render:S}},P.isValidElement=he,P.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:I}},P.memo=function(S,U){return{$$typeof:p,type:S,compare:U===void 0?null:U}},P.startTransition=function(S){var U=K.T,Y={};K.T=Y;try{var Z=S(),te=K.S;te!==null&&te(Y,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(fe,pe)}catch(ie){pe(ie)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),K.T=U}},P.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},P.use=function(S){return K.H.use(S)},P.useActionState=function(S,U,Y){return K.H.useActionState(S,U,Y)},P.useCallback=function(S,U){return K.H.useCallback(S,U)},P.useContext=function(S){return K.H.useContext(S)},P.useDebugValue=function(){},P.useDeferredValue=function(S,U){return K.H.useDeferredValue(S,U)},P.useEffect=function(S,U){return K.H.useEffect(S,U)},P.useEffectEvent=function(S){return K.H.useEffectEvent(S)},P.useId=function(){return K.H.useId()},P.useImperativeHandle=function(S,U,Y){return K.H.useImperativeHandle(S,U,Y)},P.useInsertionEffect=function(S,U){return K.H.useInsertionEffect(S,U)},P.useLayoutEffect=function(S,U){return K.H.useLayoutEffect(S,U)},P.useMemo=function(S,U){return K.H.useMemo(S,U)},P.useOptimistic=function(S,U){return K.H.useOptimistic(S,U)},P.useReducer=function(S,U,Y){return K.H.useReducer(S,U,Y)},P.useRef=function(S){return K.H.useRef(S)},P.useState=function(S){return K.H.useState(S)},P.useSyncExternalStore=function(S,U,Y){return K.H.useSyncExternalStore(S,U,Y)},P.useTransition=function(){return K.H.useTransition()},P.version="19.2.0",P}var Bc;function ui(){return Bc||(Bc=1,ks.exports=K0()),ks.exports}var m=ui();const J0=V0({__proto__:null,default:Dc(m)},[m]);var Ys={exports:{}},nn={},Gs={exports:{}},Vs={};var qc;function $0(){return qc||(qc=1,function(n){function u(T,Q){var I=T.length;T.push(Q);e:for(;0<I;){var pe=I-1>>>1,Ce=T[pe];if(0<h(Ce,Q))T[pe]=Q,T[I]=Ce,I=pe;else break e}}function c(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var Q=T[0],I=T.pop();if(I!==Q){T[0]=I;e:for(var pe=0,Ce=T.length,S=Ce>>>1;pe<S;){var U=2*(pe+1)-1,Y=T[U],Z=U+1,te=T[Z];if(0>h(Y,I))Z<Ce&&0>h(te,Y)?(T[pe]=te,T[Z]=I,pe=Z):(T[pe]=Y,T[U]=I,pe=U);else if(Z<Ce&&0>h(te,I))T[pe]=te,T[Z]=I,pe=Z;else break e}}return Q}function h(T,Q){var I=T.sortIndex-Q.sortIndex;return I!==0?I:T.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;n.unstable_now=function(){return v.now()}}else{var g=Date,y=g.now();n.unstable_now=function(){return g.now()-y}}var x=[],p=[],N=1,A=null,L=3,V=!1,B=!1,M=!1,H=!1,q=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var Q=c(p);Q!==null;){if(Q.callback===null)o(p);else if(Q.startTime<=T)o(p),Q.sortIndex=Q.expirationTime,u(x,Q);else break;Q=c(p)}}function xe(T){if(M=!1,ne(T),!B)if(c(x)!==null)B=!0,fe||(fe=!0,J());else{var Q=c(p);Q!==null&&Ke(xe,Q.startTime-T)}}var fe=!1,K=-1,ee=5,ve=-1;function Me(){return H?!0:!(n.unstable_now()-ve<ee)}function he(){if(H=!1,fe){var T=n.unstable_now();ve=T;var Q=!0;try{e:{B=!1,M&&(M=!1,$(K),K=-1),V=!0;var I=L;try{t:{for(ne(T),A=c(x);A!==null&&!(A.expirationTime>T&&Me());){var pe=A.callback;if(typeof pe=="function"){A.callback=null,L=A.priorityLevel;var Ce=pe(A.expirationTime<=T);if(T=n.unstable_now(),typeof Ce=="function"){A.callback=Ce,ne(T),Q=!0;break t}A===c(x)&&o(x),ne(T)}else o(x);A=c(x)}if(A!==null)Q=!0;else{var S=c(p);S!==null&&Ke(xe,S.startTime-T),Q=!1}}break e}finally{A=null,L=I,V=!1}Q=void 0}}finally{Q?J():fe=!1}}}var J;if(typeof k=="function")J=function(){k(he)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,Xe=de.port2;de.port1.onmessage=he,J=function(){Xe.postMessage(null)}}else J=function(){q(he,0)};function Ke(T,Q){K=q(function(){T(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return L},n.unstable_next=function(T){switch(L){case 1:case 2:case 3:var Q=3;break;default:Q=L}var I=L;L=Q;try{return T()}finally{L=I}},n.unstable_requestPaint=function(){H=!0},n.unstable_runWithPriority=function(T,Q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var I=L;L=T;try{return Q()}finally{L=I}},n.unstable_scheduleCallback=function(T,Q,I){var pe=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?pe+I:pe):I=pe,T){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=I+Ce,T={id:N++,callback:Q,priorityLevel:T,startTime:I,expirationTime:Ce,sortIndex:-1},I>pe?(T.sortIndex=I,u(p,T),c(x)===null&&T===c(p)&&(M?($(K),K=-1):M=!0,Ke(xe,I-pe))):(T.sortIndex=Ce,u(x,T),B||V||(B=!0,fe||(fe=!0,J()))),T},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(T){var Q=L;return function(){var I=L;L=Q;try{return T.apply(this,arguments)}finally{L=I}}}}(Vs)),Vs}var Hc;function F0(){return Hc||(Hc=1,Gs.exports=$0()),Gs.exports}var Zs={exports:{}},tt={};var Qc;function W0(){if(Qc)return tt;Qc=1;var n=ui();function u(x){var p="https://react.dev/errors/"+x;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)p+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+x+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(x,p,N){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:A==null?null:""+A,children:x,containerInfo:p,implementation:N}}var g=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(x,p){if(x==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(x,p){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return v(x,p,null,N)},tt.flushSync=function(x){var p=g.T,N=o.p;try{if(g.T=null,o.p=2,x)return x()}finally{g.T=p,o.p=N,o.d.f()}},tt.preconnect=function(x,p){typeof x=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(x,p))},tt.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},tt.preinit=function(x,p){if(typeof x=="string"&&p&&typeof p.as=="string"){var N=p.as,A=y(N,p.crossOrigin),L=typeof p.integrity=="string"?p.integrity:void 0,V=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;N==="style"?o.d.S(x,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:A,integrity:L,fetchPriority:V}):N==="script"&&o.d.X(x,{crossOrigin:A,integrity:L,fetchPriority:V,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(x,p){if(typeof x=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var N=y(p.as,p.crossOrigin);o.d.M(x,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(x)},tt.preload=function(x,p){if(typeof x=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var N=p.as,A=y(N,p.crossOrigin);o.d.L(x,N,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(x,p){if(typeof x=="string")if(p){var N=y(p.as,p.crossOrigin);o.d.m(x,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(x)},tt.requestFormReset=function(x){o.d.r(x)},tt.unstable_batchedUpdates=function(x,p){return x(p)},tt.useFormState=function(x,p,N){return g.H.useFormState(x,p,N)},tt.useFormStatus=function(){return g.H.useHostTransitionStatus()},tt.version="19.2.0",tt}var kc;function Yc(){if(kc)return Zs.exports;kc=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Zs.exports=W0(),Zs.exports}var Gc;function I0(){if(Gc)return nn;Gc=1;var n=F0(),u=ui(),c=Yc();function o(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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(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 g(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 y(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(v(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===l)return x(i),e;if(s===a)return x(i),t;s=s.sibling}throw Error(o(188))}if(l.return!==a.return)l=i,a=s;else{for(var f=!1,d=i.child;d;){if(d===l){f=!0,l=i,a=s;break}if(d===a){f=!0,a=i,l=s;break}d=d.sibling}if(!f){for(d=s.child;d;){if(d===l){f=!0,l=s,a=i;break}if(d===a){f=!0,a=s,l=i;break}d=d.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(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 A=Object.assign,L=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),k=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function Xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case H:return"StrictMode";case xe:return"Suspense";case fe:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case k:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case ne: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:Xe(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Xe(e(t))}catch{}}return null}var Ke=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},pe=[],Ce=-1;function S(e){return{current:e}}function U(e){0>Ce||(e.current=pe[Ce],pe[Ce]=null,Ce--)}function Y(e,t){Ce++,pe[Ce]=e.current,e.current=t}var Z=S(null),te=S(null),ie=S(null),be=S(null);function it(e,t){switch(Y(ie,t),Y(te,e),Y(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?h0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=h0(t),e=m0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),Y(Z,e)}function Ue(){U(Z),U(te),U(ie)}function mn(e){e.memoizedState!==null&&Y(be,e);var t=Z.current,l=m0(t,e.type);t!==l&&(Y(te,e),Y(Z,l))}function Si(e){te.current===e&&(U(Z),U(te)),be.current===e&&(U(be),ai._currentValue=I)}var gu,Yo;function Jl(e){if(gu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gu=t&&t[1]||"",Yo=-1<l.stack.indexOf(`
|
|
1
|
+
(function(){"use strict";function V0(n,u){for(var c=0;c<u.length;c++){const o=u[c];if(typeof o!="string"&&!Array.isArray(o)){for(const h in o)if(h!=="default"&&!(h in n)){const v=Object.getOwnPropertyDescriptor(o,h);v&&Object.defineProperty(n,h,v.get?v:{enumerable:!0,get:()=>o[h]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Dc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qs={exports:{}},an={};var _c;function Z0(){if(_c)return an;_c=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(o,h,v){var g=null;if(v!==void 0&&(g=""+v),h.key!==void 0&&(g=""+h.key),"key"in h){v={};for(var y in h)y!=="key"&&(v[y]=h[y])}else v=h;return h=v.ref,{$$typeof:n,type:o,key:g,ref:h!==void 0?h:null,props:v}}return an.Fragment=u,an.jsx=c,an.jsxs=c,an}var Uc;function X0(){return Uc||(Uc=1,Qs.exports=Z0()),Qs.exports}var r=X0(),ks={exports:{}},P={};var Lc;function K0(){if(Lc)return P;Lc=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),L=Symbol.iterator;function V(S){return S===null||typeof S!="object"?null:(S=L&&S[L]||S["@@iterator"],typeof S=="function"?S:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,H={};function q(S,U,Y){this.props=S,this.context=U,this.refs=H,this.updater=Y||B}q.prototype.isReactComponent={},q.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,U,"setState")},q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function $(){}$.prototype=q.prototype;function k(S,U,Y){this.props=S,this.context=U,this.refs=H,this.updater=Y||B}var ne=k.prototype=new $;ne.constructor=k,M(ne,q.prototype),ne.isPureReactComponent=!0;var xe=Array.isArray;function de(){}var K={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ve(S,U,Y){var Z=Y.ref;return{$$typeof:n,type:S,key:U,ref:Z!==void 0?Z:null,props:Y}}function Me(S,U){return ve(S.type,U,S.props)}function he(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function J(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return U[Y]})}var oe=/\/+/g;function Ge(S,U){return typeof S=="object"&&S!==null&&S.key!=null?J(""+S.key):U.toString(36)}function Ke(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,Y,Z,te){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(ie){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case u:be=!0;break;case N:return be=S._init,T(be(S._payload),U,Y,Z,te)}}if(be)return te=te(S),be=Z===""?"."+Ge(S,0):Z,xe(te)?(Y="",be!=null&&(Y=be.replace(oe,"$&/")+"/"),T(te,U,Y,"",function(mn){return mn})):te!=null&&(he(te)&&(te=Me(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(oe,"$&/")+"/")+be)),U.push(te)),1;be=0;var it=Z===""?".":Z+":";if(xe(S))for(var Ue=0;Ue<S.length;Ue++)Z=S[Ue],ie=it+Ge(Z,Ue),be+=T(Z,U,Y,ie,te);else if(Ue=V(S),typeof Ue=="function")for(S=Ue.call(S),Ue=0;!(Z=S.next()).done;)Z=Z.value,ie=it+Ge(Z,Ue++),be+=T(Z,U,Y,ie,te);else if(ie==="object"){if(typeof S.then=="function")return T(Ke(S),U,Y,Z,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(S,U,Y){if(S==null)return S;var Z=[],te=0;return T(S,Z,"","",function(ie){return U.call(Y,ie,te++)}),Z}function W(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var pe=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ce={map:Q,forEach:function(S,U,Y){Q(S,function(){U.apply(this,arguments)},Y)},count:function(S){var U=0;return Q(S,function(){U++}),U},toArray:function(S){return Q(S,function(U){return U})||[]},only:function(S){if(!he(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return P.Activity=z,P.Children=Ce,P.Component=q,P.Fragment=c,P.Profiler=h,P.PureComponent=k,P.StrictMode=o,P.Suspense=b,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,P.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},P.cache=function(S){return function(){return S.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(S,U,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=M({},S.props),te=S.key;if(U!=null)for(ie in U.key!==void 0&&(te=""+U.key),U)!ee.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(Z[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)Z.children=Y;else if(1<ie){for(var be=Array(ie),it=0;it<ie;it++)be[it]=arguments[it+2];Z.children=be}return ve(S.type,te,Z)},P.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:v,_context:S},S},P.createElement=function(S,U,Y){var Z,te={},ie=null;if(U!=null)for(Z in U.key!==void 0&&(ie=""+U.key),U)ee.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=U[Z]);var be=arguments.length-2;if(be===1)te.children=Y;else if(1<be){for(var it=Array(be),Ue=0;Ue<be;Ue++)it[Ue]=arguments[Ue+2];te.children=it}if(S&&S.defaultProps)for(Z in be=S.defaultProps,be)te[Z]===void 0&&(te[Z]=be[Z]);return ve(S,ie,te)},P.createRef=function(){return{current:null}},P.forwardRef=function(S){return{$$typeof:y,render:S}},P.isValidElement=he,P.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:W}},P.memo=function(S,U){return{$$typeof:p,type:S,compare:U===void 0?null:U}},P.startTransition=function(S){var U=K.T,Y={};K.T=Y;try{var Z=S(),te=K.S;te!==null&&te(Y,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(de,pe)}catch(ie){pe(ie)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),K.T=U}},P.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},P.use=function(S){return K.H.use(S)},P.useActionState=function(S,U,Y){return K.H.useActionState(S,U,Y)},P.useCallback=function(S,U){return K.H.useCallback(S,U)},P.useContext=function(S){return K.H.useContext(S)},P.useDebugValue=function(){},P.useDeferredValue=function(S,U){return K.H.useDeferredValue(S,U)},P.useEffect=function(S,U){return K.H.useEffect(S,U)},P.useEffectEvent=function(S){return K.H.useEffectEvent(S)},P.useId=function(){return K.H.useId()},P.useImperativeHandle=function(S,U,Y){return K.H.useImperativeHandle(S,U,Y)},P.useInsertionEffect=function(S,U){return K.H.useInsertionEffect(S,U)},P.useLayoutEffect=function(S,U){return K.H.useLayoutEffect(S,U)},P.useMemo=function(S,U){return K.H.useMemo(S,U)},P.useOptimistic=function(S,U){return K.H.useOptimistic(S,U)},P.useReducer=function(S,U,Y){return K.H.useReducer(S,U,Y)},P.useRef=function(S){return K.H.useRef(S)},P.useState=function(S){return K.H.useState(S)},P.useSyncExternalStore=function(S,U,Y){return K.H.useSyncExternalStore(S,U,Y)},P.useTransition=function(){return K.H.useTransition()},P.version="19.2.0",P}var Bc;function ui(){return Bc||(Bc=1,ks.exports=K0()),ks.exports}var m=ui();const J0=V0({__proto__:null,default:Dc(m)},[m]);var Ys={exports:{}},nn={},Gs={exports:{}},Vs={};var qc;function $0(){return qc||(qc=1,function(n){function u(T,Q){var W=T.length;T.push(Q);e:for(;0<W;){var pe=W-1>>>1,Ce=T[pe];if(0<h(Ce,Q))T[pe]=Q,T[W]=Ce,W=pe;else break e}}function c(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var Q=T[0],W=T.pop();if(W!==Q){T[0]=W;e:for(var pe=0,Ce=T.length,S=Ce>>>1;pe<S;){var U=2*(pe+1)-1,Y=T[U],Z=U+1,te=T[Z];if(0>h(Y,W))Z<Ce&&0>h(te,Y)?(T[pe]=te,T[Z]=W,pe=Z):(T[pe]=Y,T[U]=W,pe=U);else if(Z<Ce&&0>h(te,W))T[pe]=te,T[Z]=W,pe=Z;else break e}}return Q}function h(T,Q){var W=T.sortIndex-Q.sortIndex;return W!==0?W:T.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;n.unstable_now=function(){return v.now()}}else{var g=Date,y=g.now();n.unstable_now=function(){return g.now()-y}}var b=[],p=[],N=1,z=null,L=3,V=!1,B=!1,M=!1,H=!1,q=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var Q=c(p);Q!==null;){if(Q.callback===null)o(p);else if(Q.startTime<=T)o(p),Q.sortIndex=Q.expirationTime,u(b,Q);else break;Q=c(p)}}function xe(T){if(M=!1,ne(T),!B)if(c(b)!==null)B=!0,de||(de=!0,J());else{var Q=c(p);Q!==null&&Ke(xe,Q.startTime-T)}}var de=!1,K=-1,ee=5,ve=-1;function Me(){return H?!0:!(n.unstable_now()-ve<ee)}function he(){if(H=!1,de){var T=n.unstable_now();ve=T;var Q=!0;try{e:{B=!1,M&&(M=!1,$(K),K=-1),V=!0;var W=L;try{t:{for(ne(T),z=c(b);z!==null&&!(z.expirationTime>T&&Me());){var pe=z.callback;if(typeof pe=="function"){z.callback=null,L=z.priorityLevel;var Ce=pe(z.expirationTime<=T);if(T=n.unstable_now(),typeof Ce=="function"){z.callback=Ce,ne(T),Q=!0;break t}z===c(b)&&o(b),ne(T)}else o(b);z=c(b)}if(z!==null)Q=!0;else{var S=c(p);S!==null&&Ke(xe,S.startTime-T),Q=!1}}break e}finally{z=null,L=W,V=!1}Q=void 0}}finally{Q?J():de=!1}}}var J;if(typeof k=="function")J=function(){k(he)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,Ge=oe.port2;oe.port1.onmessage=he,J=function(){Ge.postMessage(null)}}else J=function(){q(he,0)};function Ke(T,Q){K=q(function(){T(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return L},n.unstable_next=function(T){switch(L){case 1:case 2:case 3:var Q=3;break;default:Q=L}var W=L;L=Q;try{return T()}finally{L=W}},n.unstable_requestPaint=function(){H=!0},n.unstable_runWithPriority=function(T,Q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var W=L;L=T;try{return Q()}finally{L=W}},n.unstable_scheduleCallback=function(T,Q,W){var pe=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pe+W:pe):W=pe,T){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=W+Ce,T={id:N++,callback:Q,priorityLevel:T,startTime:W,expirationTime:Ce,sortIndex:-1},W>pe?(T.sortIndex=W,u(p,T),c(b)===null&&T===c(p)&&(M?($(K),K=-1):M=!0,Ke(xe,W-pe))):(T.sortIndex=Ce,u(b,T),B||V||(B=!0,de||(de=!0,J()))),T},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(T){var Q=L;return function(){var W=L;L=Q;try{return T.apply(this,arguments)}finally{L=W}}}}(Vs)),Vs}var Hc;function F0(){return Hc||(Hc=1,Gs.exports=$0()),Gs.exports}var Zs={exports:{}},tt={};var Qc;function W0(){if(Qc)return tt;Qc=1;var n=ui();function u(b){var p="https://react.dev/errors/"+b;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)p+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+b+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(b,p,N){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:z==null?null:""+z,children:b,containerInfo:p,implementation:N}}var g=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(b,p){if(b==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(b,p){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return v(b,p,null,N)},tt.flushSync=function(b){var p=g.T,N=o.p;try{if(g.T=null,o.p=2,b)return b()}finally{g.T=p,o.p=N,o.d.f()}},tt.preconnect=function(b,p){typeof b=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(b,p))},tt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},tt.preinit=function(b,p){if(typeof b=="string"&&p&&typeof p.as=="string"){var N=p.as,z=y(N,p.crossOrigin),L=typeof p.integrity=="string"?p.integrity:void 0,V=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;N==="style"?o.d.S(b,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:z,integrity:L,fetchPriority:V}):N==="script"&&o.d.X(b,{crossOrigin:z,integrity:L,fetchPriority:V,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(b,p){if(typeof b=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var N=y(p.as,p.crossOrigin);o.d.M(b,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(b)},tt.preload=function(b,p){if(typeof b=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var N=p.as,z=y(N,p.crossOrigin);o.d.L(b,N,{crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(b,p){if(typeof b=="string")if(p){var N=y(p.as,p.crossOrigin);o.d.m(b,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(b)},tt.requestFormReset=function(b){o.d.r(b)},tt.unstable_batchedUpdates=function(b,p){return b(p)},tt.useFormState=function(b,p,N){return g.H.useFormState(b,p,N)},tt.useFormStatus=function(){return g.H.useHostTransitionStatus()},tt.version="19.2.0",tt}var kc;function Yc(){if(kc)return Zs.exports;kc=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Zs.exports=W0(),Zs.exports}var Gc;function I0(){if(Gc)return nn;Gc=1;var n=F0(),u=ui(),c=Yc();function o(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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(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 g(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 y(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(v(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===l)return b(i),e;if(s===a)return b(i),t;s=s.sibling}throw Error(o(188))}if(l.return!==a.return)l=i,a=s;else{for(var f=!1,d=i.child;d;){if(d===l){f=!0,l=i,a=s;break}if(d===a){f=!0,a=i,l=s;break}d=d.sibling}if(!f){for(d=s.child;d;){if(d===l){f=!0,l=s,a=i;break}if(d===a){f=!0,a=s,l=i;break}d=d.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(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 z=Object.assign,L=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),k=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function Ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case H:return"StrictMode";case xe:return"Suspense";case de:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case k:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case ne: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:Ge(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Ge(e(t))}catch{}}return null}var Ke=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pe=[],Ce=-1;function S(e){return{current:e}}function U(e){0>Ce||(e.current=pe[Ce],pe[Ce]=null,Ce--)}function Y(e,t){Ce++,pe[Ce]=e.current,e.current=t}var Z=S(null),te=S(null),ie=S(null),be=S(null);function it(e,t){switch(Y(ie,t),Y(te,e),Y(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?h0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=h0(t),e=m0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),Y(Z,e)}function Ue(){U(Z),U(te),U(ie)}function mn(e){e.memoizedState!==null&&Y(be,e);var t=Z.current,l=m0(t,e.type);t!==l&&(Y(te,e),Y(Z,l))}function Si(e){te.current===e&&(U(Z),U(te)),be.current===e&&(U(be),ai._currentValue=W)}var gu,Yo;function Jl(e){if(gu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gu=t&&t[1]||"",Yo=-1<l.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+gu+e+Yo}var vu=!1;function yu(e,t){if(!e||vu)return"";vu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){var
|
|
3
|
+
`+gu+e+Yo}var vu=!1;function yu(e,t){if(!e||vu)return"";vu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){var A=O}Reflect.construct(e,[],_)}else{try{_.call()}catch(O){A=O}e.call(_.prototype)}}else{try{throw Error()}catch(O){A=O}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(O){if(O&&A&&typeof O.stack=="string")return[O.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),f=s[0],d=s[1];if(f&&d){var x=f.split(`
|
|
4
4
|
`),C=d.split(`
|
|
5
|
-
`);for(i=a=0;a<
|
|
6
|
-
`+
|
|
5
|
+
`);for(i=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===x.length||i===C.length)for(a=x.length-1,i=C.length-1;1<=a&&0<=i&&x[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(x[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||x[a]!==C[i]){var R=`
|
|
6
|
+
`+x[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=a&&0<=i);break}}}finally{vu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jl(l):""}function b1(e,t){switch(e.tag){case 26:case 27:case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return e.child!==t&&t!==null?Jl("Suspense Fallback"):Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return yu(e.type,!1);case 11:return yu(e.type.render,!1);case 1:return yu(e.type,!0);case 31:return Jl("Activity");default:return""}}function Go(e){try{var t="",l=null;do t+=b1(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
7
|
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var pu=Object.prototype.hasOwnProperty,bu=n.unstable_scheduleCallback,xu=n.unstable_cancelCallback,x1=n.unstable_shouldYield,j1=n.unstable_requestPaint,gt=n.unstable_now,S1=n.unstable_getCurrentPriorityLevel,Vo=n.unstable_ImmediatePriority,Zo=n.unstable_UserBlockingPriority,wi=n.unstable_NormalPriority,w1=n.unstable_LowPriority,Xo=n.unstable_IdlePriority,N1=n.log,E1=n.unstable_setDisableYieldValue,gn=null,vt=null;function ml(e){if(typeof N1=="function"&&E1(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(gn,e)}catch{}}var yt=Math.clz32?Math.clz32:A1,C1=Math.log,z1=Math.LN2;function A1(e){return e>>>=0,e===0?32:31-(C1(e)/z1|0)|0}var Ni=256,Ei=262144,Ci=4194304;function $l(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 zi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?i=$l(a):(f&=d,f!==0?i=$l(f):l||(l=d&~e,l!==0&&(i=$l(l))))):(d=a&~s,d!==0?i=$l(d):f!==0?i=$l(f):l||(l=a&~e,l!==0&&(i=$l(l)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:i}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function O1(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 Ko(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function T1(e,t,l,a,i,s){var f=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 d=e.entanglements,b=e.expirationTimes,C=e.hiddenUpdates;for(l=f&~l;0<l;){var R=31-yt(l),_=1<<R;d[R]=0,b[R]=-1;var z=C[R];if(z!==null)for(C[R]=null,R=0;R<z.length;R++){var O=z[R];O!==null&&(O.lane&=-536870913)}l&=~_}a!==0&&Jo(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Jo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function $o(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Fo(e,t){var l=t&-t;return l=(l&42)!==0?1:Su(l),(l&(e.suspendedLanes|t))!==0?0:l}function Su(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 wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wo(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:B0(e.type))}function Io(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var gl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+gl,rt="__reactProps$"+gl,ba="__reactContainer$"+gl,Nu="__reactEvents$"+gl,M1="__reactListeners$"+gl,R1="__reactHandles$"+gl,Po="__reactResources$"+gl,pn="__reactMarker$"+gl;function Eu(e){delete e[Fe],delete e[rt],delete e[Nu],delete e[M1],delete e[R1]}function xa(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ba]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=j0(e);e!==null;){if(l=e[Fe])return l;e=j0(e)}return t}e=l,l=e.parentNode}return null}function ja(e){if(e=e[Fe]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sa(e){var t=e[Po];return t||(t=e[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[pn]=!0}var ef=new Set,tf={};function Fl(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(tf[e]=t,e=0;e<t.length;e++)ef.add(t[e])}var D1=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]*$"),lf={},af={};function _1(e){return pu.call(af,e)?!0:pu.call(lf,e)?!1:D1.test(e)?af[e]=!0:(lf[e]=!0,!1)}function Ai(e,t,l){if(_1(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 Oi(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 Xt(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 Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U1(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 i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){if(!e._valueTracker){var t=nf(e)?"checked":"value";e._valueTracker=U1(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=nf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ti(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 L1=/[\n"\\]/g;function zt(e){return e.replace(L1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,a,i,s,f,d){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Au(e,f,Ct(t)):l!=null?Au(e,f,Ct(l)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function uf(e,t,l,a,i,s,f,d){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)){Cu(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Cu(e)}function Au(e,t,l){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Na(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rf(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function cf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ke(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Cu(e)}function Ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var B1=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 of(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||B1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ff(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(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 i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&of(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&of(e,s,t[s])}function Ou(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 q1=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"]]),H1=/^[\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 Mi(e){return H1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var Tu=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,za=null;function df(e){var t=ja(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(zu(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="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[rt]||null;if(!i)throw Error(o(90));zu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&sf(a)}break e;case"textarea":rf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Na(e,!!l.multiple,t,!1)}}}var Ru=!1;function hf(e,t,l){if(Ru)return e(t,l);Ru=!0;try{var a=e(t);return a}finally{if(Ru=!1,(Ca!==null||za!==null)&&(ps(),Ca&&(t=Ca,e=za,za=Ca=null,df(t),e)))for(t=0;t<e.length;t++)df(e[t])}}function xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||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(o(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(Jt)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Du=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Du=!1}var vl=null,_u=null,Ri=null;function mf(){if(Ri)return Ri;var e,t=_u,l=t.length,a,i="value"in vl?vl.value:vl.textContent,s=i.length;for(e=0;e<l&&t[e]===i[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===i[s-a];a++);return Ri=i.slice(e,1<a?1-a:void 0)}function Di(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 _i(){return!0}function gf(){return!1}function ct(e){function t(l,a,i,s,f){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_i:gf,this.isPropagationStopped=gf,this}return A(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=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=ct(Wl),Sn=A({},Wl,{view:0,detail:0}),Q1=ct(Sn),Uu,Lu,wn,Li=A({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qu,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!==wn&&(wn&&e.type==="mousemove"?(Uu=e.screenX-wn.screenX,Lu=e.screenY-wn.screenY):Lu=Uu=0,wn=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),vf=ct(Li),k1=A({},Li,{dataTransfer:0}),Y1=ct(k1),G1=A({},Sn,{relatedTarget:0}),Bu=ct(G1),V1=A({},Wl,{animationName:0,elapsedTime:0,pseudoElement:0}),Z1=ct(V1),X1=A({},Wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K1=ct(X1),J1=A({},Wl,{data:0}),yf=ct(J1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F1={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"},W1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W1[e])?!!t[e]:!1}function qu(){return I1}var P1=A({},Sn,{key:function(e){if(e.key){var t=$1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qu,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ey=ct(P1),ty=A({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=ct(ty),ly=A({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),ay=ct(ly),ny=A({},Wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),iy=ct(ny),sy=A({},Li,{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}),uy=ct(sy),ry=A({},Wl,{newState:0,oldState:0}),cy=ct(ry),oy=[9,13,27,32],Hu=Jt&&"CompositionEvent"in window,Nn=null;Jt&&"documentMode"in document&&(Nn=document.documentMode);var fy=Jt&&"TextEvent"in window&&!Nn,bf=Jt&&(!Hu||Nn&&8<Nn&&11>=Nn),xf=" ",jf=!1;function Sf(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Aa=!1;function dy(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(jf=!0,xf);case"textInput":return e=t.data,e===xf&&jf?null:e;default:return null}}function hy(e,t){if(Aa)return e==="compositionend"||!Hu&&Sf(e,t)?(e=mf(),Ri=_u=vl=null,Aa=!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 bf&&t.locale!=="ko"?null:t.data;default:return null}}var my={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!my[e.type]:t==="textarea"}function Ef(e,t,l,a){Ca?za?za.push(a):za=[a]:Ca=a,t=Es(t,"onChange"),0<t.length&&(l=new Ui("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var En=null,Cn=null;function gy(e){u0(e,0)}function Bi(e){var t=bn(e);if(sf(t))return e}function Cf(e,t){if(e==="change")return t}var zf=!1;if(Jt){var Qu;if(Jt){var ku="oninput"in document;if(!ku){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),ku=typeof Af.oninput=="function"}Qu=ku}else Qu=!1;zf=Qu&&(!document.documentMode||9<document.documentMode)}function Of(){En&&(En.detachEvent("onpropertychange",Tf),Cn=En=null)}function Tf(e){if(e.propertyName==="value"&&Bi(Cn)){var t=[];Ef(t,Cn,e,Mu(e)),hf(gy,t)}}function vy(e,t,l){e==="focusin"?(Of(),En=t,Cn=l,En.attachEvent("onpropertychange",Tf)):e==="focusout"&&Of()}function yy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Cn)}function py(e,t){if(e==="click")return Bi(t)}function by(e,t){if(e==="input"||e==="change")return Bi(t)}function xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:xy;function zn(e,t){if(pt(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 i=l[a];if(!pu.call(t,i)||!pt(e[i],t[i]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rf(e,t){var l=Mf(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=Mf(l)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(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=Ti(e.document)}return t}function Yu(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 jy=Jt&&"documentMode"in document&&11>=document.documentMode,Oa=null,Gu=null,An=null,Vu=!1;function Uf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vu||Oa==null||Oa!==Ti(a)||(a=Oa,"selectionStart"in a&&Yu(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}),An&&zn(An,a)||(An=a,a=Es(Gu,"onSelect"),0<a.length&&(t=new Ui("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Oa)))}function Il(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ta={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Zu={},Lf={};Jt&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Pl(e){if(Zu[e])return Zu[e];if(!Ta[e])return e;var t=Ta[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Lf)return Zu[e]=t[l];return e}var Bf=Pl("animationend"),qf=Pl("animationiteration"),Hf=Pl("animationstart"),Sy=Pl("transitionrun"),wy=Pl("transitionstart"),Ny=Pl("transitioncancel"),Qf=Pl("transitionend"),kf=new Map,Xu="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(" ");Xu.push("scrollEnd");function Bt(e,t){kf.set(e,t),Fl(t,[e])}var qi=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)},At=[],Ma=0,Ku=0;function Hi(){for(var e=Ma,t=Ku=Ma=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var i=At[t];At[t++]=null;var s=At[t];if(At[t++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}s!==0&&Yf(l,i,s)}}function Qi(e,t,l,a){At[Ma++]=e,At[Ma++]=t,At[Ma++]=l,At[Ma++]=a,Ku|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ju(e,t,l,a){return Qi(e,t,l,a),ki(e)}function ea(e,t){return Qi(e,null,null,t),ki(e)}function Yf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!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||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-yt(l),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),s):null}function ki(e){if(50<Fn)throw Fn=0,ac=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ra={};function Ey(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 bt(e,t,l,a){return new Ey(e,t,l,a)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=bt(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 Gf(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 Yi(e,t,l,a,i,s){var f=0;if(a=e,typeof e=="function")$u(e)&&(f=1);else if(typeof e=="string")f=Tp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=bt(31,l,t,i),e.elementType=ve,e.lanes=s,e;case M:return ta(l.children,i,s,t);case H:f=8,i|=24;break;case q:return e=bt(12,l,t,i|2),e.elementType=q,e.lanes=s,e;case xe:return e=bt(13,l,t,i),e.elementType=xe,e.lanes=s,e;case fe:return e=bt(19,l,t,i),e.elementType=fe,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:f=10;break e;case $:f=9;break e;case ne:f=11;break e;case K:f=14;break e;case ee:f=16,a=null;break e}f=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=bt(f,l,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function ta(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Fu(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Vf(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Wu(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=Zf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Go(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:Go(t)}}var Da=[],_a=0,Gi=null,On=0,Tt=[],Mt=0,yl=null,Yt=1,Gt="";function Ft(e,t){Da[_a++]=On,Da[_a++]=Gi,Gi=e,On=t}function Xf(e,t,l){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,yl=e;var a=Yt;e=Gt;var i=32-yt(a)-1;a&=~(1<<i),l+=1;var s=32-yt(t)+i;if(30<s){var f=i-i%5;s=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Yt=1<<32-yt(t)+i|l<<i|a,Gt=s+e}else Yt=1<<s|l<<i|a,Gt=e}function Iu(e){e.return!==null&&(Ft(e,1),Xf(e,1,0))}function Pu(e){for(;e===Gi;)Gi=Da[--_a],Da[_a]=null,On=Da[--_a],Da[_a]=null;for(;e===yl;)yl=Tt[--Mt],Tt[Mt]=null,Gt=Tt[--Mt],Tt[Mt]=null,Yt=Tt[--Mt],Tt[Mt]=null}function Kf(e,t){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,Yt=t.id,Gt=t.overflow,yl=e}var We=null,Ae=null,oe=!1,pl=null,Rt=!1,er=Error(o(519));function bl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tn(Ot(t,e)),er}function Jf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[rt]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<In.length;l++)ue(In[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),cf(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||f0(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||bl(e,!0)}function $f(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:We=We.return}}function Ua(e){if(e!==We)return!1;if(!oe)return $f(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||pc(e.type,e.memoizedProps)),l=!l),l&&Ae&&bl(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=x0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=x0(e)}else t===27?(t=Ae,Dl(e.type)?(e=wc,wc=null,Ae=e):Ae=t):Ae=We?_t(e.stateNode.nextSibling):null;return!0}function la(){Ae=We=null,oe=!1}function tr(){var e=pl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),pl=null),e}function Tn(e){pl===null?pl=[e]:pl.push(e)}var lr=S(null),aa=null,Wt=null;function xl(e,t,l){Y(lr,t._currentValue),t._currentValue=l}function It(e){e._currentValue=lr.current,U(lr)}function ar(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 nr(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var b=0;b<t.length;b++)if(d.context===t[b]){s.lanes|=l,d=s.alternate,d!==null&&(d.lanes|=l),ar(s.return,l,e),a||(f=null);break e}s=d.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),ar(f,l,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function La(e,t,l,a){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var d=i.type;pt(i.pendingProps.value,f.value)||(e!==null?e.push(d):e=[d])}}else if(i===be.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}i=i.return}e!==null&&nr(t,e,l,a),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){aa=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Ff(aa,e)}function Zi(e,t){return aa===null&&na(e),Ff(e,t)}function Ff(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var Cy=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()})}},zy=n.unstable_scheduleCallback,Ay=n.unstable_NormalPriority,qe={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ir(){return{controller:new Cy,data:new Map,refCount:0}}function Mn(e){e.refCount--,e.refCount===0&&zy(Ay,function(){e.controller.abort()})}var Rn=null,sr=0,Ba=0,qa=null;function Oy(e,t){if(Rn===null){var l=Rn=[];sr=0,Ba=cc(),qa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return sr++,t.then(Wf,Wf),t}function Wf(){if(--sr===0&&Rn!==null){qa!==null&&(qa.status="fulfilled");var e=Rn;Rn=null,Ba=0,qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ty(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var If=T.S;T.S=function(e,t){Uh=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Oy(e,t),If!==null&&If(e,t)};var ia=S(null);function ur(){var e=ia.current;return e!==null?e:ze.pooledCache}function Xi(e,t){t===null?Y(ia,ia.current):Y(ia,t.pool)}function Pf(){var e=ur();return e===null?null:{parent:qe._currentValue,pool:e}}var Ha=Error(o(460)),rr=Error(o(474)),Ki=Error(o(542)),Ji={then:function(){}};function ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function td(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Kt,Kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e}throw ua=t,Ha}}function sa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,Ha):l}}var ua=null;function ld(){if(ua===null)throw Error(o(459));var e=ua;return ua=null,e}function ad(e){if(e===Ha||e===Ki)throw Error(o(483))}var Qa=null,Dn=0;function $i(e){var t=Dn;return Dn+=1,Qa===null&&(Qa=[]),td(Qa,e,t)}function _n(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===L?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){function t(w,j){if(e){var E=w.deletions;E===null?(w.deletions=[j],w.flags|=16):E.push(j)}}function l(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function a(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=$t(w,j),w.index=0,w.sibling=null,w}function s(w,j,E){return w.index=E,e?(E=w.alternate,E!==null?(E=E.index,E<j?(w.flags|=67108866,j):E):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function f(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,j,E,D){return j===null||j.tag!==6?(j=Fu(E,w.mode,D),j.return=w,j):(j=i(j,E),j.return=w,j)}function b(w,j,E,D){var F=E.type;return F===M?R(w,j,E.props.children,D,E.key):j!==null&&(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type)?(j=i(j,E.props),_n(j,E),j.return=w,j):(j=Yi(E.type,E.key,E.props,null,w.mode,D),_n(j,E),j.return=w,j)}function C(w,j,E,D){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Wu(E,w.mode,D),j.return=w,j):(j=i(j,E.children||[]),j.return=w,j)}function R(w,j,E,D,F){return j===null||j.tag!==7?(j=ta(E,w.mode,D,F),j.return=w,j):(j=i(j,E),j.return=w,j)}function _(w,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Fu(""+j,w.mode,E),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case V:return E=Yi(j.type,j.key,j.props,null,w.mode,E),_n(E,j),E.return=w,E;case B:return j=Wu(j,w.mode,E),j.return=w,j;case ee:return j=sa(j),_(w,j,E)}if(Ke(j)||J(j))return j=ta(j,w.mode,E,null),j.return=w,j;if(typeof j.then=="function")return _(w,$i(j),E);if(j.$$typeof===k)return _(w,Zi(w,j),E);Fi(w,j)}return null}function z(w,j,E,D){var F=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return F!==null?null:d(w,j,""+E,D);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case V:return E.key===F?b(w,j,E,D):null;case B:return E.key===F?C(w,j,E,D):null;case ee:return E=sa(E),z(w,j,E,D)}if(Ke(E)||J(E))return F!==null?null:R(w,j,E,D,null);if(typeof E.then=="function")return z(w,j,$i(E),D);if(E.$$typeof===k)return z(w,j,Zi(w,E),D);Fi(w,E)}return null}function O(w,j,E,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return w=w.get(E)||null,d(j,w,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return w=w.get(D.key===null?E:D.key)||null,b(j,w,D,F);case B:return w=w.get(D.key===null?E:D.key)||null,C(j,w,D,F);case ee:return D=sa(D),O(w,j,E,D,F)}if(Ke(D)||J(D))return w=w.get(E)||null,R(j,w,D,F,null);if(typeof D.then=="function")return O(w,j,E,$i(D),F);if(D.$$typeof===k)return O(w,j,E,Zi(j,D),F);Fi(j,D)}return null}function G(w,j,E,D){for(var F=null,me=null,X=j,ae=j=0,ce=null;X!==null&&ae<E.length;ae++){X.index>ae?(ce=X,X=null):ce=X.sibling;var ge=z(w,X,E[ae],D);if(ge===null){X===null&&(X=ce);break}e&&X&&ge.alternate===null&&t(w,X),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge,X=ce}if(ae===E.length)return l(w,X),oe&&Ft(w,ae),F;if(X===null){for(;ae<E.length;ae++)X=_(w,E[ae],D),X!==null&&(j=s(X,j,ae),me===null?F=X:me.sibling=X,me=X);return oe&&Ft(w,ae),F}for(X=a(X);ae<E.length;ae++)ce=O(X,w,ae,E[ae],D),ce!==null&&(e&&ce.alternate!==null&&X.delete(ce.key===null?ae:ce.key),j=s(ce,j,ae),me===null?F=ce:me.sibling=ce,me=ce);return e&&X.forEach(function(ql){return t(w,ql)}),oe&&Ft(w,ae),F}function W(w,j,E,D){if(E==null)throw Error(o(151));for(var F=null,me=null,X=j,ae=j=0,ce=null,ge=E.next();X!==null&&!ge.done;ae++,ge=E.next()){X.index>ae?(ce=X,X=null):ce=X.sibling;var ql=z(w,X,ge.value,D);if(ql===null){X===null&&(X=ce);break}e&&X&&ql.alternate===null&&t(w,X),j=s(ql,j,ae),me===null?F=ql:me.sibling=ql,me=ql,X=ce}if(ge.done)return l(w,X),oe&&Ft(w,ae),F;if(X===null){for(;!ge.done;ae++,ge=E.next())ge=_(w,ge.value,D),ge!==null&&(j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return oe&&Ft(w,ae),F}for(X=a(X);!ge.done;ae++,ge=E.next())ge=O(X,w,ae,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&X.delete(ge.key===null?ae:ge.key),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return e&&X.forEach(function(kp){return t(w,kp)}),oe&&Ft(w,ae),F}function Ee(w,j,E,D){if(typeof E=="object"&&E!==null&&E.type===M&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case V:e:{for(var F=E.key;j!==null;){if(j.key===F){if(F=E.type,F===M){if(j.tag===7){l(w,j.sibling),D=i(j,E.props.children),D.return=w,w=D;break e}}else if(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type){l(w,j.sibling),D=i(j,E.props),_n(D,E),D.return=w,w=D;break e}l(w,j);break}else t(w,j);j=j.sibling}E.type===M?(D=ta(E.props.children,w.mode,D,E.key),D.return=w,w=D):(D=Yi(E.type,E.key,E.props,null,w.mode,D),_n(D,E),D.return=w,w=D)}return f(w);case B:e:{for(F=E.key;j!==null;){if(j.key===F)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){l(w,j.sibling),D=i(j,E.children||[]),D.return=w,w=D;break e}else{l(w,j);break}else t(w,j);j=j.sibling}D=Wu(E,w.mode,D),D.return=w,w=D}return f(w);case ee:return E=sa(E),Ee(w,j,E,D)}if(Ke(E))return G(w,j,E,D);if(J(E)){if(F=J(E),typeof F!="function")throw Error(o(150));return E=F.call(E),W(w,j,E,D)}if(typeof E.then=="function")return Ee(w,j,$i(E),D);if(E.$$typeof===k)return Ee(w,j,Zi(w,E),D);Fi(w,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(l(w,j.sibling),D=i(j,E),D.return=w,w=D):(l(w,j),D=Fu(E,w.mode,D),D.return=w,w=D),f(w)):l(w,j)}return function(w,j,E,D){try{Dn=0;var F=Ee(w,j,E,D);return Qa=null,F}catch(X){if(X===Ha||X===Ki)throw X;var me=bt(29,X,null,w.mode);return me.lanes=D,me.return=w,me}finally{}}}var ra=nd(!0),id=nd(!1),jl=!1;function cr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function or(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 Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ki(e),Yf(e,null,l),t}return Qi(e,a,t,l),ki(e)}function Un(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,$o(e,l)}}function fr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?i=s=t:s=s.next=t}else i=s=t;l={baseState:a.baseState,firstBaseUpdate:i,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 dr=!1;function Ln(){if(dr){var e=qa;if(e!==null)throw e}}function Bn(e,t,l,a){dr=!1;var i=e.updateQueue;jl=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var b=d,C=b.next;b.next=null,f===null?s=C:f.next=C,f=b;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==f&&(d===null?R.firstBaseUpdate=C:d.next=C,R.lastBaseUpdate=b))}if(s!==null){var _=i.baseState;f=0,R=C=b=null,d=s;do{var z=d.lane&-536870913,O=z!==d.lane;if(O?(re&z)===z:(a&z)===z){z!==0&&z===Ba&&(dr=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var G=e,W=d;z=t;var Ee=l;switch(W.tag){case 1:if(G=W.payload,typeof G=="function"){_=G.call(Ee,_,z);break e}_=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=W.payload,z=typeof G=="function"?G.call(Ee,_,z):G,z==null)break e;_=A({},_,z);break e;case 2:jl=!0}}z=d.callback,z!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[z]:O.push(z))}else O={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(C=R=O,b=_):R=R.next=O,f|=z;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;O=d,d=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);R===null&&(b=_),i.baseState=b,i.firstBaseUpdate=C,i.lastBaseUpdate=R,s===null&&(i.shared.lanes=0),Al|=f,e.lanes=f,e.memoizedState=_}}function sd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ud(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)sd(l[e],t)}var ka=S(null),Wi=S(0);function rd(e,t){e=ul,Y(Wi,e),Y(ka,t),ul=e|t.baseLanes}function hr(){Y(Wi,ul),Y(ka,ka.current)}function mr(){ul=Wi.current,U(ka),U(Wi)}var xt=S(null),Dt=null;function Nl(e){var t=e.alternate;Y(Le,Le.current&1),Y(xt,e),Dt===null&&(t===null||ka.current!==null||t.memoizedState!==null)&&(Dt=e)}function gr(e){Y(Le,Le.current),Y(xt,e),Dt===null&&(Dt=e)}function cd(e){e.tag===22?(Y(Le,Le.current),Y(xt,e),Dt===null&&(Dt=e)):El()}function El(){Y(Le,Le.current),Y(xt,xt.current)}function jt(e){U(xt),Dt===e&&(Dt=null),U(Le)}var Le=S(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jc(l)||Sc(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 Pt=0,le=null,we=null,He=null,Pi=!1,Ya=!1,ca=!1,es=0,qn=0,Ga=null,My=0;function De(){throw Error(o(321))}function vr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function yr(e,t,l,a,i,s){return Pt=s,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Xd:Rr,ca=!1,s=l(a,i),ca=!1,Ya&&(s=fd(t,l,a,i)),od(e),s}function od(e){T.H=kn;var t=we!==null&&we.next!==null;if(Pt=0,He=we=le=null,Pi=!1,qn=0,Ga=null,t)throw Error(o(300));e===null||Qe||(e=e.dependencies,e!==null&&Vi(e)&&(Qe=!0))}function fd(e,t,l,a){le=e;var i=0;do{if(Ya&&(Ga=null),qn=0,Ya=!1,25<=i)throw Error(o(301));if(i+=1,He=we=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}T.H=Kd,s=t(l,a)}while(Ya);return s}function Ry(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?Hn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(le.flags|=1024),t}function pr(){var e=es!==0;return es=0,e}function br(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xr(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}Pt=0,He=we=le=null,Ya=!1,qn=es=0,Ga=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?le.memoizedState=He=e:He=He.next=e,He}function Be(){if(we===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=He===null?le.memoizedState:He.next;if(t!==null)He=t,we=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},He===null?le.memoizedState=He=e:He=He.next=e}return He}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hn(e){var t=qn;return qn+=1,Ga===null&&(Ga=[]),e=td(Ga,e,t),t=le,(He===null?t.memoizedState:He.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Xd:Rr),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hn(e);if(e.$$typeof===k)return Ie(e)}throw Error(o(438,String(e)))}function jr(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ts(),le.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]=Me;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function as(e){var t=Be();return Sr(t,we,e)}function Sr(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=f=null,b=null,C=t,R=!1;do{var _=C.lane&-536870913;if(_!==C.lane?(re&_)===_:(Pt&_)===_){var z=C.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_===Ba&&(R=!0);else if((Pt&z)===z){C=C.next,z===Ba&&(R=!0);continue}else _={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(d=b=_,f=s):b=b.next=_,le.lanes|=z,Al|=z;_=C.action,ca&&l(s,_),s=C.hasEagerState?C.eagerState:l(s,_)}else z={lane:_,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(d=b=z,f=s):b=b.next=z,le.lanes|=_,Al|=_;C=C.next}while(C!==null&&C!==t);if(b===null?f=s:b.next=d,!pt(s,e.memoizedState)&&(Qe=!0,R&&(l=qa,l!==null)))throw l;e.memoizedState=s,e.baseState=f,e.baseQueue=b,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wr(e){var t=Be(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,s=t.memoizedState;if(i!==null){l.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);pt(s,t.memoizedState)||(Qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function dd(e,t,l){var a=le,i=Be(),s=oe;if(s){if(l===void 0)throw Error(o(407));l=l()}else l=t();var f=!pt((we||i).memoizedState,l);if(f&&(i.memoizedState=l,Qe=!0),i=i.queue,Cr(gd.bind(null,a,i,e),[e]),i.getSnapshot!==t||f||He!==null&&He.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,i,l,t),null),ze===null)throw Error(o(349));s||(Pt&127)!==0||hd(a,t,l)}return l}function hd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=ts(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function md(e,t,l,a){t.value=l,t.getSnapshot=a,vd(t)&&yd(e)}function gd(e,t,l){return l(function(){vd(t)&&yd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function yd(e){var t=ea(e,2);t!==null&&mt(t,e,2)}function Nr(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ca){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function pd(e,t,l,a){return e.baseState=l,Sr(e,we,typeof a=="function"?a:el)}function Dy(e,t,l,a,i){if(ss(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};T.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,bd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function bd(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=T.T,f={};T.T=f;try{var d=l(i,a),b=T.S;b!==null&&b(f,d),xd(e,t,d)}catch(C){Er(e,t,C)}finally{s!==null&&f.types!==null&&(s.types=f.types),T.T=s}}else try{s=l(i,a),xd(e,t,s)}catch(C){Er(e,t,C)}}function xd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){jd(e,t,a)},function(a){return Er(e,t,a)}):jd(e,t,l)}function jd(e,t,l){t.status="fulfilled",t.value=l,Sd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,bd(e,l)))}function Er(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Nd(e,t){if(oe){var l=ze.formState;if(l!==null){e:{var a=le;if(oe){if(Ae){t:{for(var i=Ae,s=Rt;i.nodeType!==8;){if(!s){i=null;break t}if(i=_t(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Ae=_t(i.nextSibling),a=i.data==="F!";break e}}bl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},l.queue=a,l=Gd.bind(null,le,a),a.dispatch=l,a=Nr(!1),s=Mr.bind(null,le,!1,a.queue),a=st(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Dy.bind(null,le,i,s,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ed(e){var t=Be();return Cd(t,we,e)}function Cd(e,t,l){if(t=Sr(e,t,wd)[0],e=as(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Hn(t)}catch(f){throw f===Ha?Ki:f}else a=t;t=Be();var i=t.queue,s=i.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Va(9,{destroy:void 0},_y.bind(null,i,l),null)),[a,s,e]}function _y(e,t){e.action=t}function zd(e){var t=Be(),l=we;if(l!==null)return Cd(t,l,e);Be(),t=t.memoizedState,l=Be();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=ts(),le.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 Ad(){return Be().memoizedState}function ns(e,t,l,a){var i=st();le.flags|=e,i.memoizedState=Va(1|t,{destroy:void 0},l,a===void 0?null:a)}function is(e,t,l,a){var i=Be();a=a===void 0?null:a;var s=i.memoizedState.inst;we!==null&&a!==null&&vr(a,we.memoizedState.deps)?i.memoizedState=Va(t,s,l,a):(le.flags|=e,i.memoizedState=Va(1|t,s,l,a))}function Od(e,t){ns(8390656,8,e,t)}function Cr(e,t){is(2048,8,e,t)}function Uy(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=ts(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Td(e){var t=Be().memoizedState;return Uy({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Md(e,t){return is(4,2,e,t)}function Rd(e,t){return is(4,4,e,t)}function Dd(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 _d(e,t,l){l=l!=null?l.concat([e]):null,is(4,4,Dd.bind(null,t,e),l)}function zr(){}function Ud(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&vr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ld(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&vr(t,a[1]))return a[0];if(a=e(),ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a}function Ar(e,t,l){return l===void 0||(Pt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Bh(),le.lanes|=e,Al|=e,l)}function Bd(e,t,l,a){return pt(l,t)?l:ka.current!==null?(e=Ar(e,l,a),pt(e,t)||(Qe=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(re&261930)===0?(Qe=!0,e.memoizedState=l):(e=Bh(),le.lanes|=e,Al|=e,t)}function qd(e,t,l,a,i){var s=Q.p;Q.p=s!==0&&8>s?s:8;var f=T.T,d={};T.T=d,Mr(e,!1,t,l);try{var b=i(),C=T.S;if(C!==null&&C(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Ty(b,a);Qn(e,t,R,Nt(e))}else Qn(e,t,a,Nt(e))}catch(_){Qn(e,t,{then:function(){},status:"rejected",reason:_},Nt())}finally{Q.p=s,f!==null&&d.types!==null&&(f.types=d.types),T.T=f}}function Ly(){}function Or(e,t,l,a){if(e.tag!==5)throw Error(o(476));var i=Hd(e).queue;qd(e,i,t,I,l===null?Ly:function(){return Qd(e),l(a)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),Qn(e,t.next.queue,{},Nt())}function Tr(){return Ie(ai)}function kd(){return Be().memoizedState}function Yd(){return Be().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=Sl(l);var a=wl(t,e,l);a!==null&&(mt(a,t,l),Un(a,t,l)),t={cache:ir()},e.payload=t;return}t=t.return}}function qy(e,t,l){var a=Nt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ss(e)?Vd(t,l):(l=Ju(e,t,l,a),l!==null&&(mt(l,e,a),Zd(l,t,a)))}function Gd(e,t,l){var a=Nt();Qn(e,t,l,a)}function Qn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ss(e))Vd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,d=s(f,l);if(i.hasEagerState=!0,i.eagerState=d,pt(d,f))return Qi(e,t,i,0),ze===null&&Hi(),!1}catch{}finally{}if(l=Ju(e,t,i,a),l!==null)return mt(l,e,a),Zd(l,t,a),!0}return!1}function Mr(e,t,l,a){if(a={lane:2,revertLane:cc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ss(e)){if(t)throw Error(o(479))}else t=Ju(e,l,a,2),t!==null&&mt(t,e,2)}function ss(e){var t=e.alternate;return e===le||t!==null&&t===le}function Vd(e,t){Ya=Pi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Zd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,$o(e,l)}}var kn={readContext:Ie,use:ls,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};kn.useEffectEvent=De;var Xd={readContext:Ie,use:ls,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Od,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ns(4194308,4,Dd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var i=l(t);if(ca){ml(!0);try{l(t)}finally{ml(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=qy.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Nr(e);var t=e.queue,l=Gd.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zr,useDeferredValue:function(e,t){var l=st();return Ar(l,e,t)},useTransition:function(){var e=Nr(!1);return e=qd.bind(null,le,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,i=st();if(oe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),ze===null)throw Error(o(349));(re&127)!==0||hd(a,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,Od(gd.bind(null,a,s,e),[e]),a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,s,l,t),null),l},useId:function(){var e=st(),t=ze.identifierPrefix;if(oe){var l=Gt,a=Yt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=es++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=My++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tr,useFormState:Nd,useActionState:Nd,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Mr.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:jr,useCacheRefresh:function(){return st().memoizedState=By.bind(null,le)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Rr={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:as,useRef:Ad,useState:function(){return as(el)},useDebugValue:zr,useDeferredValue:function(e,t){var l=Be();return Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=as(el)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:Ed,useActionState:Ed,useOptimistic:function(e,t){var l=Be();return pd(l,we,e,t)},useMemoCache:jr,useCacheRefresh:Yd};Rr.useEffectEvent=Td;var Kd={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:wr,useRef:Ad,useState:function(){return wr(el)},useDebugValue:zr,useDeferredValue:function(e,t){var l=Be();return we===null?Ar(l,e,t):Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=wr(el)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:zd,useActionState:zd,useOptimistic:function(e,t){var l=Be();return we!==null?pd(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jr,useCacheRefresh:Yd};Kd.useEffectEvent=Td;function Dr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _r={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=wl(e,a,l),t!==null&&(mt(t,e,l),Un(t,e,l))}};function Jd(e,t,l,a,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,f):t.prototype&&t.prototype.isPureReactComponent?!zn(l,a)||!zn(i,s):!0}function $d(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&&_r.enqueueReplaceState(t,t.state,null)}function oa(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=A({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Fd(e){qi(e)}function Wd(e){console.error(e)}function Id(e){qi(e)}function us(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Pd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ur(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){us(e,t)},l}function eh(e){return e=Sl(e),e.tag=3,e}function th(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Pd(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Pd(t,l,a),typeof i!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Hy(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&La(t,l,i,!0),l=xt.current,l!==null){switch(l.tag){case 31:case 13:return Dt===null?bs():l.alternate===null&&_e===0&&(_e=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Ji?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),sc(e,a,i)),!1;case 22:return l.flags|=65536,a===Ji?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)),sc(e,a,i)),!1}throw Error(o(435,l.tag))}return sc(e,a,i),bs(),!1}if(oe)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==er&&(e=Error(o(422),{cause:a}),Tn(Ot(e,l)))):(a!==er&&(t=Error(o(423),{cause:a}),Tn(Ot(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Ot(a,l),i=Ur(e.stateNode,a,i),fr(e,i),_e!==4&&(_e=2)),!1;var s=Error(o(520),{cause:a});if(s=Ot(s,l),$n===null?$n=[s]:$n.push(s),_e!==4&&(_e=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Ur(l.stateNode,a,e),fr(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"&&(Ol===null||!Ol.has(s))))return l.flags|=65536,i&=-i,l.lanes|=i,i=eh(i),th(i,e,l,a),fr(l,i),!1}l=l.return}while(l!==null);return!1}var Lr=Error(o(461)),Qe=!1;function Pe(e,t,l,a){t.child=e===null?id(t,null,l,a):ra(t,e.child,l,a)}function lh(e,t,l,a,i){l=l.render;var s=t.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return na(t),a=yr(e,t,l,f,s,i),d=pr(),e!==null&&!Qe?(br(e,t,i),tl(e,t,i)):(oe&&d&&Iu(t),t.flags|=1,Pe(e,t,a,i),t.child)}function ah(e,t,l,a,i){if(e===null){var s=l.type;return typeof s=="function"&&!$u(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,nh(e,t,s,a,i)):(e=Yi(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vr(e,i)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:zn,l(f,a)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,e=$t(s,a),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,l,a,i){if(e!==null){var s=e.memoizedProps;if(zn(s,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=s,Vr(e,i))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,tl(e,t,i)}return Br(e,t,l,a,i)}function ih(e,t,l,a){var i=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,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return sh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,s!==null?s.cachePool:null),s!==null?rd(t,s):hr(),cd(t);else return a=t.lanes=536870912,sh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Xi(t,s.cachePool),rd(t,s),El(),t.memoizedState=null):(e!==null&&Xi(t,null),hr(),El());return Pe(e,t,i,l),t.child}function Yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,l,a,i){var s=ur();return s=s===null?null:{parent:qe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Xi(t,null),hr(),cd(t),e!==null&&La(e,t,a,!0),t.childLanes=i,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uh(e,t,l){return ra(t,e.child,null,l),e=rs(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Qy(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=rs(t,a),t.lanes=536870912,Yn(null,e);if(gr(t),(e=Ae)?(e=b0(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,Ae=null)):e=null,e===null)throw bl(t);return t.lanes=536870912,null}return rs(t,a)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(gr(t),i)if(t.flags&256)t.flags&=-257,t=uh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Qe||La(e,t,l,!1),i=(l&e.childLanes)!==0,Qe||i){if(a=ze,a!==null&&(f=Fo(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,ea(e,f),mt(a,e,f),Lr;bs(),t=uh(e,t,l)}else e=s.treeContext,Ae=_t(f.nextSibling),We=t,oe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=rs(t,a),t.flags|=4096;return t}return e=$t(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cs(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(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Br(e,t,l,a,i){return na(t),l=yr(e,t,l,a,void 0,i),a=pr(),e!==null&&!Qe?(br(e,t,i),tl(e,t,i)):(oe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,i),t.child)}function rh(e,t,l,a,i,s){return na(t),t.updateQueue=null,l=fd(t,a,l,i),od(e),a=pr(),e!==null&&!Qe?(br(e,t,s),tl(e,t,s)):(oe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,s),t.child)}function ch(e,t,l,a,i){if(na(t),t.stateNode===null){var s=Ra,f=l.contextType;typeof f=="object"&&f!==null&&(s=Ie(f)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_r,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},cr(t),f=l.contextType,s.context=typeof f=="object"&&f!==null?Ie(f):Ra,s.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Dr(t,l,f,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&_r.enqueueReplaceState(s,s.state,null),Bn(t,a,s,i),Ln(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,b=oa(l,d);s.props=b;var C=s.context,R=l.contextType;f=Ra,typeof R=="object"&&R!==null&&(f=Ie(R));var _=l.getDerivedStateFromProps;R=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||C!==f)&&$d(t,s,a,f),jl=!1;var z=t.memoizedState;s.state=z,Bn(t,a,s,i),Ln(),C=t.memoizedState,d||z!==C||jl?(typeof _=="function"&&(Dr(t,l,_,a),C=t.memoizedState),(b=jl||Jd(t,l,b,a,z,C,f))?(R||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=C),s.props=a,s.state=C,s.context=f,a=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,or(e,t),f=t.memoizedProps,R=oa(l,f),s.props=R,_=t.pendingProps,z=s.context,C=l.contextType,b=Ra,typeof C=="object"&&C!==null&&(b=Ie(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==_||z!==b)&&$d(t,s,a,b),jl=!1,z=t.memoizedState,s.state=z,Bn(t,a,s,i),Ln();var O=t.memoizedState;f!==_||z!==O||jl||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof d=="function"&&(Dr(t,l,d,a),O=t.memoizedState),(R=jl||Jd(t,l,R,a,z,O,b)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,O,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,O,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),s.props=a,s.state=O,s.context=b,a=R):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,cs(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=ra(t,e.child,null,i),t.child=ra(t,null,l,i)):Pe(e,t,l,i),t.memoizedState=s.state,e=t.child):e=tl(e,t,i),e}function oh(e,t,l,a){return la(),t.flags|=256,Pe(e,t,l,a),t.child}var qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hr(e){return{baseLanes:e,cachePool:Pf()}}function Qr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=wt),e}function fh(e,t,l){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(i?Nl(t):El(),(e=Ae)?(e=b0(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,Ae=null)):e=null,e===null)throw bl(t);return Sc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,i?(El(),i=t.mode,d=os({mode:"hidden",children:d},i),a=ta(a,i,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(null,a)):(Nl(t),kr(t,d))}var b=e.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(s)t.flags&256?(Nl(t),t.flags&=-257,t=Yr(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,i=t.mode,a=os({mode:"visible",children:a.children},i),d=ta(d,i,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ra(t,e.child,null,l),a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,t=Yn(null,a));else if(Nl(t),Sc(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Tn({value:a,source:null,stack:null}),t=Yr(e,t,l)}else if(Qe||La(e,t,l,!1),f=(l&e.childLanes)!==0,Qe||f){if(f=ze,f!==null&&(a=Fo(f,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,ea(e,a),mt(f,e,a),Lr;jc(d)||bs(),t=Yr(e,t,l)}else jc(d)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ae=_t(d.nextSibling),We=t,oe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=kr(t,a.children),t.flags|=4096);return t}return i?(El(),d=a.fallback,i=t.mode,b=e.child,C=b.sibling,a=$t(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,C!==null?d=$t(C,d):(d=ta(d,i,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Yn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Hr(l):(i=d.cachePool,i!==null?(b=qe._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=Pf(),d={baseLanes:d.baseLanes|l,cachePool:i}),a.memoizedState=d,a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(e.child,a)):(Nl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function kr(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,l){return ra(t,e.child,null,l),e=kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ar(e.return,t,l)}function Gr(e,t,l,a,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=i,f.treeForkCount=s)}function hh(e,t,l){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var f=Le.current,d=(f&2)!==0;if(d?(f=f&1|2,t.flags|=128):f&=1,Y(Le,f),Pe(e,t,a,l),a=oe?On:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dh(e,l,t);else if(e.tag===19)dh(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(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&Ii(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Gr(t,!1,i,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ii(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Gr(t,!0,l,null,s,a);break;case"together":Gr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(La(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vi(e)))}function ky(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),xl(t,qe,e.memoizedState.cache),la();break;case 27:case 5:mn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Nl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?fh(e,t,l):(Nl(t),e=tl(e,t,l),e!==null?e.sibling:null);Nl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(La(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return hh(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Le,Le.current),a)break;return null;case 22:return t.lanes=0,ih(e,t,l,t.pendingProps);case 24:xl(t,qe,e.memoizedState.cache)}return tl(e,t,l)}function mh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Vr(e,l)&&(t.flags&128)===0)return Qe=!1,ky(e,t,l);Qe=(e.flags&131072)!==0}else Qe=!1,oe&&(t.flags&1048576)!==0&&Xf(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=sa(t.elementType),t.type=e,typeof e=="function")$u(e)?(a=oa(e,a),t.tag=1,t=ch(null,t,e,a,l)):(t.tag=0,t=Br(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===ne){t.tag=11,t=lh(null,t,e,a,l);break e}else if(i===K){t.tag=14,t=ah(null,t,e,a,l);break e}}throw t=Xe(e)||e,Error(o(306,t,""))}}return t;case 0:return Br(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=oa(a,t.pendingProps),ch(e,t,a,i,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,or(e,t),Bn(t,a,null,l);var f=t.memoizedState;if(a=f.cache,xl(t,qe,a),a!==s.cache&&nr(t,[qe],l,!0),Ln(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=oh(e,t,a,l);break e}else if(a!==i){i=Ot(Error(o(424)),t),Tn(i),t=oh(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(Ae=_t(e.firstChild),We=t,oe=!0,pl=null,Rt=!0,l=id(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(la(),a===i){t=tl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return cs(e,t),e===null?(l=E0(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Cs(ie.current).createElement(l),a[Fe]=t,a[rt]=e,et(a,l,e),Je(a),t.stateNode=a):t.memoizedState=E0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mn(t),e===null&&oe&&(a=t.stateNode=S0(t.type,t.pendingProps,ie.current),We=t,Rt=!0,i=Ae,Dl(t.type)?(wc=i,Ae=_t(a.firstChild)):Ae=i),Pe(e,t,t.pendingProps.children,l),cs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((i=a=Ae)&&(a=yp(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,We=t,Ae=_t(a.firstChild),Rt=!1,i=!0):i=!1),i||bl(t)),mn(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,a=s.children,pc(i,s)?a=null:f!==null&&pc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=yr(e,t,Ry,null,null,l),ai._currentValue=i),cs(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=Ae)&&(l=pp(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,We=t,Ae=null,e=!0):e=!1),e||bl(t)),null;case 13:return fh(e,t,l);case 4:return it(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ra(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return lh(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,xl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,na(t),i=Ie(i),a=a(i),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return ah(e,t,t.type,t.pendingProps,l);case 15:return nh(e,t,t.type,t.pendingProps,l);case 19:return hh(e,t,l);case 31:return Qy(e,t,l);case 22:return ih(e,t,l,t.pendingProps);case 24:return na(t),a=Ie(qe),e===null?(i=ur(),i===null&&(i=ze,s=ir(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=l),i=s),t.memoizedState={parent:a,cache:i},cr(t),xl(t,qe,i)):((e.lanes&l)!==0&&(or(e,t),Bn(t,null,null,l),Ln()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xl(t,qe,a)):(a=s.cache,xl(t,qe,a),a!==i.cache&&nr(t,[qe],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ll(e){e.flags|=4}function Zr(e,t,l,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(kh())e.flags|=8192;else throw ua=Ji,rr}else e.flags&=-16777217}function gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(kh())e.flags|=8192;else throw ua=Ji,rr}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ko():536870912,e.lanes|=t,Ja|=t)}function Gn(e,t){if(!oe)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 Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Yy(e,t,l){var a=t.pendingProps;switch(Pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(qe),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ua(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tr())),Oe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(ll(t),s!==null?(Oe(t),gh(t,s)):(Oe(t),Zr(t,i,null,a,l))):s?s!==e.memoizedState?(ll(t),Oe(t),gh(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),Oe(t),Zr(t,i,e,a,l)),null;case 27:if(Si(t),l=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=Z.current,Ua(t)?Jf(t):(e=S0(i,a,l),t.stateNode=e,ll(t))}return Oe(t),null;case 5:if(Si(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(s=Z.current,Ua(t))Jf(t);else{var f=Cs(ie.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}s[Fe]=t,s[rt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(et(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return Oe(t),Zr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Ua(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=We,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||f0(e.nodeValue,l)),e||bl(t,!0)}else e=Cs(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ua(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ua(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),i=!1}else i=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),fs(t,t.updateQueue),Oe(t),null);case 4:return Ue(),e===null&&hc(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(U(Le),a=t.memoizedState,a===null)return Oe(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)Gn(a,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ii(e),s!==null){for(t.flags|=128,Gn(a,!1),e=s.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Gf(l,e),l=l.sibling;return Y(Le,Le.current&1|2),oe&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>vs&&(t.flags|=128,i=!0,Gn(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ii(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!oe)return Oe(t),null}else 2*gt()-a.renderingStartTime>vs&&l!==536870912&&(t.flags|=128,i=!0,Gn(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=gt(),e.sibling=null,l=Le.current,Y(Le,i?l&1|2:l&1),oe&&Ft(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return jt(t),mr(),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&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&fs(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&&U(ia),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gy(e,t){switch(Pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(qe),Ue(),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(jt(t),t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Le),null;case 4:return Ue(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),mr(),e!==null&&U(ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(qe),null;case 25:return null;default:return null}}function vh(e,t){switch(Pu(t),t.tag){case 3:It(qe),Ue();break;case 26:case 27:case 5:Si(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:U(Le);break;case 10:It(t.type);break;case 22:case 23:jt(t),mr(),e!==null&&U(ia);break;case 24:It(qe)}}function Vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==i)}}catch(d){Se(t,t.return,d)}}function Cl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,i=t;var b=l,C=d;try{C()}catch(R){Se(i,b,R)}}}a=a.next}while(a!==s)}}catch(R){Se(t,t.return,R)}}function yh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ud(t,l)}catch(a){Se(e,e.return,a)}}}function ph(e,t,l){l.props=oa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function Zn(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(i){Se(e,t,i)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Se(e,t,i)}else l.current=null}function bh(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(i){Se(e,e.return,i)}}function Xr(e,t,l){try{var a=e.stateNode;fp(a,e.type,l,t),a[rt]=t}catch(i){Se(e,e.return,i)}}function xh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Kr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(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&&Dl(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 Jr(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=Kt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Jr(e,t,l),e=e.sibling;e!==null;)Jr(e,t,l),e=e.sibling}function ds(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&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ds(e,t,l),e=e.sibling;e!==null;)ds(e,t,l),e=e.sibling}function jh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);et(t,a,l),t[Fe]=e,t[rt]=l}catch(s){Se(e,e.return,s)}}var al=!1,ke=!1,$r=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Vy(e,t){if(e=e.containerInfo,vc=Ds,e=_f(e),Yu(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 i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var f=0,d=-1,b=-1,C=0,R=0,_=e,z=null;t:for(;;){for(var O;_!==l||i!==0&&_.nodeType!==3||(d=f+i),_!==s||a!==0&&_.nodeType!==3||(b=f+a),_.nodeType===3&&(f+=_.nodeValue.length),(O=_.firstChild)!==null;)z=_,_=O;for(;;){if(_===e)break t;if(z===l&&++C===i&&(d=f),z===s&&++R===a&&(b=f),(O=_.nextSibling)!==null)break;_=z,z=_.parentNode}_=O}l=d===-1||b===-1?null:{start:d,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(yc={focusedElem:e,selectionRange:l},Ds=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,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++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,i=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var G=oa(l.type,i);e=a.getSnapshotBeforeUpdate(G,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){Se(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xc(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function wh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:il(e,l),a&4&&Vn(5,l);break;case 1:if(il(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Se(l,l.return,f)}else{var i=oa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Se(l,l.return,f)}}a&64&&yh(l),a&512&&Zn(l,l.return);break;case 3:if(il(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{ud(e,t)}catch(f){Se(l,l.return,f)}}break;case 27:t===null&&a&4&&jh(l);case 26:case 5:il(e,l),t===null&&a&4&&bh(l),a&512&&Zn(l,l.return);break;case 12:il(e,l);break;case 31:il(e,l),a&4&&Ch(e,l);break;case 13:il(e,l),a&4&&zh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Py.bind(null,l),bp(e,l))));break;case 22:if(a=l.memoizedState!==null||al,!a){t=t!==null&&t.memoizedState!==null||ke,i=al;var s=ke;al=a,(ke=t)&&!s?sl(e,l,(l.subtreeFlags&8772)!==0):il(e,l),al=i,ke=s}break;case 30:break;default:il(e,l)}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eu(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 Re=null,ot=!1;function nl(e,t,l){for(l=l.child;l!==null;)Eh(e,t,l),l=l.sibling}function Eh(e,t,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:ke||Vt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ke||Vt(l,t);var a=Re,i=ot;Dl(l.type)&&(Re=l.stateNode,ot=!1),nl(e,t,l),ei(l.stateNode),Re=a,ot=i;break;case 5:ke||Vt(l,t);case 6:if(a=Re,i=ot,Re=null,nl(e,t,l),Re=a,ot=i,Re!==null)if(ot)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(s){Se(l,t,s)}else try{Re.removeChild(l.stateNode)}catch(s){Se(l,t,s)}break;case 18:Re!==null&&(ot?(e=Re,y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ln(e)):y0(Re,l.stateNode));break;case 4:a=Re,i=ot,Re=l.stateNode.containerInfo,ot=!0,nl(e,t,l),Re=a,ot=i;break;case 0:case 11:case 14:case 15:Cl(2,l,t),ke||Cl(4,l,t),nl(e,t,l);break;case 1:ke||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ph(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:ke=(a=ke)||l.memoizedState!==null,nl(e,t,l),ke=a;break;default:nl(e,t,l)}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ln(e)}catch(l){Se(t,t.return,l)}}}function zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ln(e)}catch(l){Se(t,t.return,l)}}function Zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sh),t;default:throw Error(o(435,e.tag))}}function hs(e,t){var l=Zy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=ep.bind(null,e,a);a.then(i,i)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],s=e,f=t,d=f;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Re=d.stateNode,ot=!1;break e}break;case 5:Re=d.stateNode,ot=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(Re===null)throw Error(o(160));Eh(s,f,i),Re=null,ot=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ah(t,e),t=t.sibling}var qt=null;function Ah(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(Cl(3,e,e.return),Vn(3,e),Cl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&(ke||l===null||Vt(l,l.return)),a&64&&al&&(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 i=qt;if(ft(t,e),dt(e),a&512&&(ke||l===null||Vt(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,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[pn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),et(s,a,l),s[Fe]=e,Je(s),a=s;break e;case"link":var f=A0("link","href",i).get(a+(l.href||""));if(f){for(var d=0;d<f.length;d++)if(s=f[d],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)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;case"meta":if(f=A0("meta","content",i).get(a+(l.content||""))){for(d=0;d<f.length;d++)if(s=f[d],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)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;default:throw Error(o(468,a))}s[Fe]=e,Je(s),a=s}e.stateNode=a}else O0(i,e.type,e.stateNode);else e.stateNode=z0(i,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?O0(i,e.type,e.stateNode):z0(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xr(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&(ke||l===null||Vt(l,l.return)),l!==null&&a&4&&Xr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&(ke||l===null||Vt(l,l.return)),e.flags&32){i=e.stateNode;try{Ea(i,"")}catch(G){Se(e,e.return,G)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Xr(e,i,l!==null?l.memoizedProps:i)),a&1024&&($r=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(G){Se(e,e.return,G)}}break;case 3:if(Os=null,i=qt,qt=zs(t.containerInfo),ft(t,e),qt=i,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ln(t.containerInfo)}catch(G){Se(e,e.return,G)}$r&&($r=!1,Oh(e));break;case 4:a=qt,qt=zs(e.stateNode.containerInfo),ft(t,e),dt(e),qt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gs=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 22:i=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,C=al,R=ke;if(al=C||i,ke=R||b,ft(t,e),ke=R,al=C,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||b||al||ke||fa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(s=b.stateNode,i)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=b.stateNode;var _=b.memoizedProps.style,z=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(G){Se(b,b.return,G)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(G){Se(b,b.return,G)}}}else if(t.tag===18){if(l===null){b=t;try{var O=b.stateNode;i?p0(O,!0):p0(b.stateNode,!1)}catch(G){Se(b,b.return,G)}}}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,hs(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(xh(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var i=l.stateNode,s=Kr(e);ds(e,s,i);break;case 5:var f=l.stateNode;l.flags&32&&(Ea(f,""),l.flags&=-33);var d=Kr(e);ds(e,d,f);break;case 3:case 4:var b=l.stateNode.containerInfo,C=Kr(e);Jr(e,C,b);break;default:throw Error(o(161))}}catch(R){Se(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Oh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Oh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cl(4,t,t.return),fa(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ph(t,t.return,l),fa(t);break;case 27:ei(t.stateNode);case 26:case 5:Vt(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:sl(i,s,l),Vn(4,s);break;case 1:if(sl(i,s,l),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Se(a,a.return,C)}if(a=s,i=a.updateQueue,i!==null){var d=a.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)sd(b[i],d)}catch(C){Se(a,a.return,C)}}l&&f&64&&yh(s),Zn(s,s.return);break;case 27:jh(s);case 26:case 5:sl(i,s,l),l&&a===null&&f&4&&bh(s),Zn(s,s.return);break;case 12:sl(i,s,l);break;case 31:sl(i,s,l),l&&f&4&&Ch(i,s);break;case 13:sl(i,s,l),l&&f&4&&zh(i,s);break;case 22:s.memoizedState===null&&sl(i,s,l),Zn(s,s.return);break;case 30:break;default:sl(i,s,l)}t=t.sibling}}function Fr(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&&Mn(l))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(e,t,l,a),t=t.sibling}function Th(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),i&2048&&Vn(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e)));break;case 12:if(i&2048){Ht(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,d=s.onPostCommit;typeof d=="function"&&d(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Se(t,t.return,b)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,l,a):Xn(e,t):s._visibility&2?Ht(e,t,l,a):(s._visibility|=2,Za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Fr(f,t);break;case 24:Ht(e,t,l,a),i&2048&&Wr(t.alternate,t);break;default:Ht(e,t,l,a)}}function Za(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,d=l,b=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:Za(s,f,d,b,i),Vn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Za(s,f,d,b,i):Xn(s,f):(R._visibility|=2,Za(s,f,d,b,i)),i&&C&2048&&Fr(f.alternate,f);break;case 24:Za(s,f,d,b,i),i&&C&2048&&Wr(f.alternate,f);break;default:Za(s,f,d,b,i)}t=t.sibling}}function Xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:Xn(l,a),i&2048&&Fr(a.alternate,a);break;case 24:Xn(l,a),i&2048&&Wr(a.alternate,a);break;default:Xn(l,a)}t=t.sibling}}var Kn=8192;function Xa(e,t,l){if(e.subtreeFlags&Kn)for(e=e.child;e!==null;)Mh(e,t,l),e=e.sibling}function Mh(e,t,l){switch(e.tag){case 26:Xa(e,t,l),e.flags&Kn&&e.memoizedState!==null&&Mp(l,qt,e.memoizedState,e.memoizedProps);break;case 5:Xa(e,t,l);break;case 3:case 4:var a=qt;qt=zs(e.stateNode.containerInfo),Xa(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Kn,Kn=16777216,Xa(e,t,l),Kn=a):Xa(e,t,l));break;default:Xa(e,t,l)}}function Rh(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 Jn(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];$e=a,_h(a,e)}Rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dh(e),e=e.sibling}function Dh(e){switch(e.tag){case 0:case 11:case 15:Jn(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Jn(e);break;case 12:Jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ms(e)):Jn(e);break;default:Jn(e)}}function ms(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];$e=a,_h(a,e)}Rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),ms(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ms(t));break;default:ms(t)}e=e.sibling}}function _h(e,t){for(;$e!==null;){var l=$e;switch(l.tag){case 0:case 11:case 15:Cl(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:Mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$e=a;else e:for(l=e;$e!==null;){a=$e;var i=a.sibling,s=a.return;if(Nh(a),a===l){$e=null;break e}if(i!==null){i.return=s,$e=i;break e}$e=s}}}var Xy={getCacheForType:function(e){var t=Ie(qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(qe).controller.signal}},Ky=typeof WeakMap=="function"?WeakMap:Map,ye=0,ze=null,se=null,re=0,je=0,St=null,zl=!1,Ka=!1,Ir=!1,ul=0,_e=0,Al=0,da=0,Pr=0,wt=0,Ja=0,$n=null,ht=null,ec=!1,gs=0,Uh=0,vs=1/0,ys=null,Ol=null,Ge=0,Tl=null,$a=null,rl=0,tc=0,lc=null,Lh=null,Fn=0,ac=null;function Nt(){return(ye&2)!==0&&re!==0?re&-re:T.T!==null?cc():Wo()}function Bh(){if(wt===0)if((re&536870912)===0||oe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),wt=e}else wt=536870912;return e=xt.current,e!==null&&(e.flags|=32),wt}function mt(e,t,l){(e===ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Ml(e,re,wt,!1)),yn(e,l),((ye&2)===0||e!==ze)&&(e===ze&&((ye&2)===0&&(da|=l),_e===4&&Ml(e,re,wt,!1)),Zt(e))}function qh(e,t,l){if((ye&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t),i=a?Fy(e,t):ic(e,t,!0),s=a;do{if(i===0){Ka&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Jy(l)){i=ic(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var d=e;i=$n;var b=d.current.memoizedState.isDehydrated;if(b&&(Fa(d,f).flags|=256),f=ic(d,f,!1),f!==2){if(Ir&&!b){d.errorRecoveryDisabledLanes|=s,da|=s,i=4;break e}s=ht,ht=i,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){Fa(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,wt,!zl);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=gs+300-gt(),10<i)){if(Ml(a,t,wt,!zl),zi(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=g0(Hh.bind(null,a,l,ht,ys,ec,t,wt,da,Ja,zl,s,"Throttled",-0,0),i);break e}Hh(a,l,ht,ys,ec,t,wt,da,Ja,zl,s,null,-0,0)}}break}while(!0);Zt(e)}function Hh(e,t,l,a,i,s,f,d,b,C,R,_,z,O){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Mh(t,s,_);var G=(s&62914560)===s?gs-gt():(s&4194048)===s?Uh-gt():0;if(G=Rp(_,G),G!==null){rl=s,e.cancelPendingCommit=G(Kh.bind(null,e,t,s,l,a,i,f,d,b,R,_,null,z,O)),Ml(e,s,f,!C);return}}Kh(e,t,s,l,a,i,f,d,b)}function Jy(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 i=l[a],s=i.getSnapshot;i=i.value;try{if(!pt(s(),i))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 Ml(e,t,l,a){t&=~Pr,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-yt(i),f=1<<s;a[s]=-1,i&=~f}l!==0&&Jo(e,l,t)}function ps(){return(ye&6)===0?(Wn(0),!1):!0}function nc(){if(se!==null){if(je===0)var e=se.return;else e=se,Wt=aa=null,xr(e),Qa=null,Dn=0,e=se;for(;e!==null;)vh(e.alternate,e),e=e.return;se=null}}function Fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,mp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,nc(),ze=e,se=l=$t(e.current,null),re=t,je=0,St=null,zl=!1,Ka=vn(e,t),Ir=!1,Ja=wt=Pr=da=Al=_e=0,ht=$n=null,ec=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-yt(a),s=1<<i;t|=e[i],a&=~s}return ul=t,Hi(),l}function Qh(e,t){le=null,T.H=kn,t===Ha||t===Ki?(t=ld(),je=3):t===rr?(t=ld(),je=4):je=t===Lr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,se===null&&(_e=1,us(e,Ot(t,e.current)))}function kh(){var e=xt.current;return e===null?!0:(re&4194048)===re?Dt===null:(re&62914560)===re||(re&536870912)!==0?e===Dt:!1}function Yh(){var e=T.H;return T.H=kn,e===null?kn:e}function Gh(){var e=T.A;return T.A=Xy,e}function bs(){_e=4,zl||(re&4194048)!==re&&xt.current!==null||(Ka=!0),(Al&134217727)===0&&(da&134217727)===0||ze===null||Ml(ze,re,wt,!1)}function ic(e,t,l){var a=ye;ye|=2;var i=Yh(),s=Gh();(ze!==e||re!==t)&&(ys=null,Fa(e,t)),t=!1;var f=_e;e:do try{if(je!==0&&se!==null){var d=se,b=St;switch(je){case 8:nc(),f=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var C=je;if(je=0,St=null,Wa(e,d,b,C),l&&Ka){f=0;break e}break;default:C=je,je=0,St=null,Wa(e,d,b,C)}}$y(),f=_e;break}catch(R){Qh(e,R)}while(!0);return t&&e.shellSuspendCounter++,Wt=aa=null,ye=a,T.H=i,T.A=s,se===null&&(ze=null,re=0,Hi()),f}function $y(){for(;se!==null;)Vh(se)}function Fy(e,t){var l=ye;ye|=2;var a=Yh(),i=Gh();ze!==e||re!==t?(ys=null,vs=gt()+500,Fa(e,t)):Ka=vn(e,t);e:do try{if(je!==0&&se!==null){t=se;var s=St;t:switch(je){case 1:je=0,St=null,Wa(e,t,s,1);break;case 2:case 9:if(ed(s)){je=0,St=null,Zh(t);break}t=function(){je!==2&&je!==9||ze!==e||(je=7),Zt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:ed(s)?(je=0,St=null,Zh(t)):(je=0,St=null,Wa(e,t,s,7));break;case 5:var f=null;switch(se.tag){case 26:f=se.memoizedState;case 5:case 27:var d=se;if(f?T0(f):d.stateNode.complete){je=0,St=null;var b=d.sibling;if(b!==null)se=b;else{var C=d.return;C!==null?(se=C,xs(C)):se=null}break t}}je=0,St=null,Wa(e,t,s,5);break;case 6:je=0,St=null,Wa(e,t,s,6);break;case 8:nc(),_e=6;break e;default:throw Error(o(462))}}Wy();break}catch(R){Qh(e,R)}while(!0);return Wt=aa=null,T.H=a,T.A=i,ye=l,se!==null?0:(ze=null,re=0,Hi(),_e)}function Wy(){for(;se!==null&&!x1();)Vh(se)}function Vh(e){var t=mh(e.alternate,e,ul);e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Zh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=rh(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=rh(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:xr(t);default:vh(l,t),t=se=Gf(t,ul),t=mh(l,t,ul)}e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Wa(e,t,l,a){Wt=aa=null,xr(t),Qa=null,Dn=0;var i=t.return;try{if(Hy(e,i,t,l,re)){_e=1,us(e,Ot(l,e.current)),se=null;return}}catch(s){if(i!==null)throw se=i,s;_e=1,us(e,Ot(l,e.current)),se=null;return}t.flags&32768?(oe||a===1?e=!0:Ka||(re&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Xh(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){Xh(t,zl);return}e=t.return;var l=Yy(t.alternate,t,ul);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);_e===0&&(_e=5)}function Xh(e,t){do{var l=Gy(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);_e=6,se=null}function Kh(e,t,l,a,i,s,f,d,b){e.cancelPendingCommit=null;do js();while(Ge!==0);if((ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Ku,T1(e,l,s,f,d,b),e===ze&&(se=ze=null,re=0),$a=t,Tl=e,rl=l,tc=s,lc=i,Lh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tp(wi,function(){return Ih(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,i=Q.p,Q.p=2,f=ye,ye|=4;try{Vy(e,t,l)}finally{ye=f,Q.p=i,T.T=a}}Ge=1,Jh(),$h(),Fh()}}function Jh(){if(Ge===1){Ge=0;var e=Tl,t=$a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{Ah(t,e);var s=yc,f=_f(e.containerInfo),d=s.focusedElem,b=s.selectionRange;if(f!==d&&d&&d.ownerDocument&&Df(d.ownerDocument.documentElement,d)){if(b!==null&&Yu(d)){var C=b.start,R=b.end;if(R===void 0&&(R=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(R,d.value.length);else{var _=d.ownerDocument||document,z=_&&_.defaultView||window;if(z.getSelection){var O=z.getSelection(),G=d.textContent.length,W=Math.min(b.start,G),Ee=b.end===void 0?W:Math.min(b.end,G);!O.extend&&W>Ee&&(f=Ee,Ee=W,W=f);var w=Rf(d,W),j=Rf(d,Ee);if(w&&j&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==j.node||O.focusOffset!==j.offset)){var E=_.createRange();E.setStart(w.node,w.offset),O.removeAllRanges(),W>Ee?(O.addRange(E),O.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),O.addRange(E))}}}}for(_=[],O=d;O=O.parentNode;)O.nodeType===1&&_.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var D=_[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ds=!!vc,yc=vc=null}finally{ye=i,Q.p=a,T.T=l}}e.current=t,Ge=2}}function $h(){if(Ge===2){Ge=0;var e=Tl,t=$a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{wh(e,t.alternate,t)}finally{ye=i,Q.p=a,T.T=l}}Ge=3}}function Fh(){if(Ge===4||Ge===3){Ge=0,j1();var e=Tl,t=$a,l=rl,a=Lh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,$a=Tl=null,Wh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ol=null),wu(l),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,i=Q.p,Q.p=2,T.T=null;try{for(var s=e.onRecoverableError,f=0;f<a.length;f++){var d=a[f];s(d.value,{componentStack:d.stack})}}finally{T.T=t,Q.p=i}}(rl&3)!==0&&js(),Zt(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===ac?Fn++:(Fn=0,ac=e):Fn=0,Wn(0)}}function Wh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mn(t)))}function js(){return Jh(),$h(),Fh(),Ih()}function Ih(){if(Ge!==5)return!1;var e=Tl,t=tc;tc=0;var l=wu(rl),a=T.T,i=Q.p;try{Q.p=32>l?32:l,T.T=null,l=lc,lc=null;var s=Tl,f=rl;if(Ge=0,$a=Tl=null,rl=0,(ye&6)!==0)throw Error(o(331));var d=ye;if(ye|=4,Dh(s.current),Th(s,s.current,f,l),ye=d,Wn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(gn,s)}catch{}return!0}finally{Q.p=i,T.T=a,Wh(e,t)}}function Ph(e,t,l){t=Ot(l,t),t=Ur(e.stateNode,t,2),e=wl(e,t,2),e!==null&&(yn(e,2),Zt(e))}function Se(e,t,l){if(e.tag===3)Ph(e,e,l);else for(;t!==null;){if(t.tag===3){Ph(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){e=Ot(l,e),l=eh(2),a=wl(t,l,2),a!==null&&(th(l,a,t,e),yn(a,2),Zt(a));break}}t=t.return}}function sc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ky;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(Ir=!0,i.add(l),e=Iy.bind(null,e,t,l),t.then(e,e))}function Iy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(re&l)===l&&(_e===4||_e===3&&(re&62914560)===re&&300>gt()-gs?(ye&2)===0&&Fa(e,0):Pr|=l,Ja===re&&(Ja=0)),Zt(e)}function e0(e,t){t===0&&(t=Ko()),e=ea(e,t),e!==null&&(yn(e,t),Zt(e))}function Py(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),e0(e,l)}function ep(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),e0(e,l)}function tp(e,t){return bu(e,t)}var Ss=null,Ia=null,uc=!1,ws=!1,rc=!1,Rl=0;function Zt(e){e!==Ia&&e.next===null&&(Ia===null?Ss=Ia=e:Ia=Ia.next=e),ws=!0,uc||(uc=!0,ap())}function Wn(e,t){if(!rc&&ws){rc=!0;do for(var l=!1,a=Ss;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var f=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=i&~(f&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,n0(a,s))}else s=re,s=zi(a,a===ze?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||vn(a,s)||(l=!0,n0(a,s));a=a.next}while(l);rc=!1}}function lp(){t0()}function t0(){ws=uc=!1;var e=0;Rl!==0&&hp()&&(e=Rl);for(var t=gt(),l=null,a=Ss;a!==null;){var i=a.next,s=l0(a,t);s===0?(a.next=null,l===null?Ss=i:l.next=i,i===null&&(Ia=l)):(l=a,(e!==0||(s&3)!==0)&&(ws=!0)),a=i}Ge!==0&&Ge!==5||Wn(e),Rl!==0&&(Rl=0)}function l0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-yt(s),d=1<<f,b=i[f];b===-1?((d&l)===0||(d&a)!==0)&&(i[f]=O1(d,t)):b<=t&&(e.expiredLanes|=d),s&=~d}if(t=ze,l=re,l=zi(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&&xu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||vn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xu(a),wu(l)){case 2:case 8:l=Zo;break;case 32:l=wi;break;case 268435456:l=Xo;break;default:l=wi}return a=a0.bind(null,e),l=bu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xu(a),e.callbackPriority=2,e.callbackNode=null,2}function a0(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(js()&&e.callbackNode!==l)return null;var a=re;return a=zi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qh(e,a,t),l0(e,gt()),e.callbackNode!=null&&e.callbackNode===l?a0.bind(null,e):null)}function n0(e,t){if(js())return null;qh(e,t,!0)}function ap(){gp(function(){(ye&6)!==0?bu(Vo,lp):t0()})}function cc(){if(Rl===0){var e=Ba;e===0&&(e=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),Rl=e}return Rl}function i0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mi(""+e)}function s0(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 np(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var s=i0((i[rt]||null).action),f=a.submitter;f&&(t=(t=f[rt]||null)?i0(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var d=new Ui("action","action",null,a,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Rl!==0){var b=f?s0(i,f):new FormData(i);Or(l,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(d.preventDefault(),b=f?s0(i,f):new FormData(i),Or(l,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var oc=0;oc<Xu.length;oc++){var fc=Xu[oc],ip=fc.toLowerCase(),sp=fc[0].toUpperCase()+fc.slice(1);Bt(ip,"on"+sp)}Bt(Bf,"onAnimationEnd"),Bt(qf,"onAnimationIteration"),Bt(Hf,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Sy,"onTransitionRun"),Bt(wy,"onTransitionStart"),Bt(Ny,"onTransitionCancel"),Bt(Qf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function u0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var f=a.length-1;0<=f;f--){var d=a[f],b=d.instance,C=d.currentTarget;if(d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=b}else for(f=0;f<a.length;f++){if(d=a[f],b=d.instance,C=d.currentTarget,d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=b}}}}function ue(e,t){var l=t[Nu];l===void 0&&(l=t[Nu]=new Set);var a=e+"__bubble";l.has(a)||(r0(t,e,2,!1),l.add(a))}function dc(e,t,l){var a=0;t&&(a|=4),r0(l,e,a,t)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Ns]){e[Ns]=!0,ef.forEach(function(l){l!=="selectionchange"&&(up.has(l)||dc(l,!1,e),dc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ns]||(t[Ns]=!0,dc("selectionchange",!1,t))}}function r0(e,t,l,a){switch(B0(t)){case 2:var i=Up;break;case 8:i=Lp;break;default:i=Ac}l=i.bind(null,t,l,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function mc(e,t,l,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===i)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;d!==null;){if(f=xa(d),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=s=f;continue e}d=d.parentNode}}a=a.return}hf(function(){var C=s,R=Mu(l),_=[];e:{var z=kf.get(e);if(z!==void 0){var O=Ui,G=e;switch(e){case"keypress":if(Di(l)===0)break e;case"keydown":case"keyup":O=ey;break;case"focusin":G="focus",O=Bu;break;case"focusout":G="blur",O=Bu;break;case"beforeblur":case"afterblur":O=Bu;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":O=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ay;break;case Bf:case qf:case Hf:O=Z1;break;case Qf:O=iy;break;case"scroll":case"scrollend":O=Q1;break;case"wheel":O=uy;break;case"copy":case"cut":case"paste":O=K1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=pf;break;case"toggle":case"beforetoggle":O=cy}var W=(t&4)!==0,Ee=!W&&(e==="scroll"||e==="scrollend"),w=W?z!==null?z+"Capture":null:z;W=[];for(var j=C,E;j!==null;){var D=j;if(E=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||E===null||w===null||(D=xn(j,w),D!=null&&W.push(Pn(j,D,E))),Ee)break;j=j.return}0<W.length&&(z=new O(z,G,null,l,R),_.push({event:z,listeners:W}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",z&&l!==Tu&&(G=l.relatedTarget||l.fromElement)&&(xa(G)||G[ba]))break e;if((O||z)&&(z=R.window===R?R:(z=R.ownerDocument)?z.defaultView||z.parentWindow:window,O?(G=l.relatedTarget||l.toElement,O=C,G=G?xa(G):null,G!==null&&(Ee=v(G),W=G.tag,G!==Ee||W!==5&&W!==27&&W!==6)&&(G=null)):(O=null,G=C),O!==G)){if(W=vf,D="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(W=pf,D="onPointerLeave",w="onPointerEnter",j="pointer"),Ee=O==null?z:bn(O),E=G==null?z:bn(G),z=new W(D,j+"leave",O,l,R),z.target=Ee,z.relatedTarget=E,D=null,xa(R)===C&&(W=new W(w,j+"enter",G,l,R),W.target=E,W.relatedTarget=Ee,D=W),Ee=D,O&&G)t:{for(W=rp,w=O,j=G,E=0,D=w;D;D=W(D))E++;D=0;for(var F=j;F;F=W(F))D++;for(;0<E-D;)w=W(w),E--;for(;0<D-E;)j=W(j),D--;for(;E--;){if(w===j||j!==null&&w===j.alternate){W=w;break t}w=W(w),j=W(j)}W=null}else W=null;O!==null&&c0(_,z,O,W,!1),G!==null&&Ee!==null&&c0(_,Ee,G,W,!0)}}e:{if(z=C?bn(C):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var me=Cf;else if(Nf(z))if(zf)me=by;else{me=yy;var X=vy}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Ou(C.elementType)&&(me=Cf):me=py;if(me&&(me=me(e,C))){Ef(_,me,l,R);break e}X&&X(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Au(z,"number",z.value)}switch(X=C?bn(C):window,e){case"focusin":(Nf(X)||X.contentEditable==="true")&&(Oa=X,Gu=C,An=null);break;case"focusout":An=Gu=Oa=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Uf(_,l,R);break;case"selectionchange":if(jy)break;case"keydown":case"keyup":Uf(_,l,R)}var ae;if(Hu)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Aa?Sf(e,l)&&(ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ce="onCompositionStart");ce&&(bf&&l.locale!=="ko"&&(Aa||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Aa&&(ae=mf()):(vl=R,_u="value"in vl?vl.value:vl.textContent,Aa=!0)),X=Es(C,ce),0<X.length&&(ce=new yf(ce,e,null,l,R),_.push({event:ce,listeners:X}),ae?ce.data=ae:(ae=wf(l),ae!==null&&(ce.data=ae)))),(ae=fy?dy(e,l):hy(e,l))&&(ce=Es(C,"onBeforeInput"),0<ce.length&&(X=new yf("onBeforeInput","beforeinput",null,l,R),_.push({event:X,listeners:ce}),X.data=ae)),np(_,e,C,l,R)}u0(_,t)})}function Pn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Es(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=xn(e,l),i!=null&&a.unshift(Pn(e,i,s)),i=xn(e,t),i!=null&&a.push(Pn(e,i,s))),e.tag===3)return a;e=e.return}return[]}function rp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function c0(e,t,l,a,i){for(var s=t._reactName,f=[];l!==null&&l!==a;){var d=l,b=d.alternate,C=d.stateNode;if(d=d.tag,b!==null&&b===a)break;d!==5&&d!==26&&d!==27||C===null||(b=C,i?(C=xn(l,s),C!=null&&f.unshift(Pn(l,C,b))):i||(C=xn(l,s),C!=null&&f.push(Pn(l,C,b)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var cp=/\r\n?/g,op=/\u0000|\uFFFD/g;function o0(e){return(typeof e=="string"?e:""+e).replace(cp,`
|
|
9
|
-
`).replace(op,"")}function f0(e,t){return t=o0(t),o0(e)===t}function Ne(e,t,l,a,i,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ea(e,""+a);break;case"className":Oi(e,"class",a);break;case"tabIndex":Oi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,l,a);break;case"style":ff(e,a,s);break;case"data":if(t!=="object"){Oi(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=Mi(""+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"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(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=Mi(""+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":ue("beforetoggle",e),ue("toggle",e),Ai(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ai(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=q1.get(l)||l,Ai(e,l,a))}}function gc(e,t,l,a,i,s){switch(l){case"style":ff(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&Ea(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),s=e[rt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Ai(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,i=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,s,f,l,null)}}i&&Ne(e,t,"srcSet",l.srcSet,l,null),a&&Ne(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var d=s=f=i=null,b=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":i=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":C=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Ne(e,t,a,R,l,null)}}uf(e,s,d,b,C,f,i,!1);return;case"select":ue("invalid",e),a=f=s=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:Ne(e,t,i,d,l,null)}t=s,l=f,e.multiple=!!a,t!=null?Na(e,!!a,t,!1):l!=null&&Na(e,!!a,l,!0);return;case"textarea":ue("invalid",e),s=i=a=null;for(f in l)if(l.hasOwnProperty(f)&&(d=l[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Ne(e,t,f,d,l,null)}cf(e,a,i,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:Ne(e,t,b,a,l,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<In.length;a++)ue(In[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("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(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,C,a,l,null)}return;default:if(Ou(t)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&gc(e,t,R,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Ne(e,t,d,a,l,null))}function fp(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 i=null,s=null,f=null,d=null,b=null,C=null,R=null;for(O in l){var _=l[O];if(l.hasOwnProperty(O)&&_!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":b=_;default:a.hasOwnProperty(O)||Ne(e,t,O,null,a,_)}}for(var z in a){var O=a[z];if(_=l[z],a.hasOwnProperty(z)&&(O!=null||_!=null))switch(z){case"type":s=O;break;case"name":i=O;break;case"checked":C=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:O!==_&&Ne(e,t,z,O,a,_)}}zu(e,f,d,b,C,R,s,i);return;case"select":O=f=d=z=null;for(s in l)if(b=l[s],l.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":O=b;default:a.hasOwnProperty(s)||Ne(e,t,s,null,a,b)}for(i in a)if(s=a[i],b=l[i],a.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":z=s;break;case"defaultValue":d=s;break;case"multiple":f=s;default:s!==b&&Ne(e,t,i,s,a,b)}t=d,l=f,a=O,z!=null?Na(e,!!l,z,!1):!!a!=!!l&&(t!=null?Na(e,!!l,t,!0):Na(e,!!l,l?[]:"",!1));return;case"textarea":O=z=null;for(d in l)if(i=l[d],l.hasOwnProperty(d)&&i!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ne(e,t,d,null,a,i)}for(f in a)if(i=a[f],s=l[f],a.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":z=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&Ne(e,t,f,i,a,s)}rf(e,z,O);return;case"option":for(var G in l)if(z=l[G],l.hasOwnProperty(G)&&z!=null&&!a.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:Ne(e,t,G,null,a,z)}for(b in a)if(z=a[b],O=l[b],a.hasOwnProperty(b)&&z!==O&&(z!=null||O!=null))switch(b){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ne(e,t,b,z,a,O)}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 W in l)z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W)&&Ne(e,t,W,null,a,z);for(C in a)if(z=a[C],O=l[C],a.hasOwnProperty(C)&&z!==O&&(z!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Ne(e,t,C,z,a,O)}return;default:if(Ou(t)){for(var Ee in l)z=l[Ee],l.hasOwnProperty(Ee)&&z!==void 0&&!a.hasOwnProperty(Ee)&&gc(e,t,Ee,void 0,a,z);for(R in a)z=a[R],O=l[R],!a.hasOwnProperty(R)||z===O||z===void 0&&O===void 0||gc(e,t,R,z,a,O);return}}for(var w in l)z=l[w],l.hasOwnProperty(w)&&z!=null&&!a.hasOwnProperty(w)&&Ne(e,t,w,null,a,z);for(_ in a)z=a[_],O=l[_],!a.hasOwnProperty(_)||z===O||z==null&&O==null||Ne(e,t,_,z,a,O)}function d0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],s=i.transferSize,f=i.initiatorType,d=i.duration;if(s&&d&&d0(f)){for(f=0,d=i.responseEnd,a+=1;a<l.length;a++){var b=l[a],C=b.startTime;if(C>d)break;var R=b.transferSize,_=b.initiatorType;R&&d0(_)&&(b=b.responseEnd,f+=R*(b<d?1:(d-C)/(b-C)))}if(--a,t+=8*(s+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vc=null,yc=null;function Cs(e){return e.nodeType===9?e:e.ownerDocument}function h0(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 m0(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 pc(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 bc=null;function hp(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var g0=typeof setTimeout=="function"?setTimeout:void 0,mp=typeof clearTimeout=="function"?clearTimeout:void 0,v0=typeof Promise=="function"?Promise:void 0,gp=typeof queueMicrotask=="function"?queueMicrotask:typeof v0<"u"?function(e){return v0.resolve(null).then(e).catch(vp)}:g0;function vp(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function y0(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),ln(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ei(l);for(var s=l.firstChild;s;){var f=s.nextSibling,d=s.nodeName;s[pn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&ei(e.ownerDocument.body);l=i}while(l);ln(t)}function p0(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 xc(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":xc(l),Eu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yp(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[pn])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!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function pp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function b0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function jc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bp(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 _t(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 wc=null;function x0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function j0(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 S0(e,t,l){switch(t=Cs(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eu(e)}var Ut=new Map,w0=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Q.d;Q.d={f:xp,r:jp,D:Sp,C:wp,L:Np,m:Ep,X:zp,S:Cp,M:Ap};function xp(){var e=cl.f(),t=ps();return e||t}function jp(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?Qd(t):cl.r(e)}var Pa=typeof document>"u"?null:document;function N0(e,t,l){var a=Pa;if(a&&typeof t=="string"&&t){var i=zt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),w0.has(i)||(w0.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Sp(e){cl.D(e),N0("dns-prefetch",e,null)}function wp(e,t){cl.C(e,t),N0("preconnect",e,t)}function Np(e,t,l){cl.L(e,t,l);var a=Pa;if(a&&e&&t){var i='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+zt(l.imageSizes)+'"]')):i+='[href="'+zt(e)+'"]';var s=i;switch(t){case"style":s=en(e);break;case"script":s=tn(e)}Ut.has(s)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ti(s))||t==="script"&&a.querySelector(li(s))||(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Ep(e,t){cl.m(e,t);var l=Pa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+zt(a)+'"][href="'+zt(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=tn(e)}if(!Ut.has(s)&&(e=A({rel:"modulepreload",href:e},t),Ut.set(s,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(li(s)))return}a=l.createElement("link"),et(a,"link",e),Je(a),l.head.appendChild(a)}}}function Cp(e,t,l){cl.S(e,t,l);var a=Pa;if(a&&e){var i=Sa(a).hoistableStyles,s=en(e);t=t||"default";var f=i.get(s);if(!f){var d={loading:0,preload:null};if(f=a.querySelector(ti(s)))d.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(s))&&Nc(e,l);var b=f=a.createElement("link");Je(b),et(b,"link",e),b._p=new Promise(function(C,R){b.onload=C,b.onerror=R}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,As(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:d},i.set(s,f)}}}function zp(e,t){cl.X(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=A({src:e,async:!0},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function Ap(e,t){cl.M(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=A({src:e,async:!0,type:"module"},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function E0(e,t,l,a){var i=(i=ie.current)?zs(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=en(l.href),l=Sa(i).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=en(l.href);var s=Sa(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(ti(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Ut.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},Ut.set(e,l),s||Op(i,e,l,f.state))),t&&a===null)throw Error(o(528,""));return f}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(l),l=Sa(i).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(o(444,e))}}function en(e){return'href="'+zt(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Op(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}),et(t,"link",l),Je(t),e.head.appendChild(t))}function tn(e){return'[src="'+zt(e)+'"]'}function li(e){return"script[async]"+e}function z0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),et(a,"style",i),As(a,l.precedence,e),t.instance=a;case"stylesheet":i=en(l.href);var s=e.querySelector(ti(i));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;a=C0(l),(i=Ut.get(i))&&Nc(a,i),s=(e.ownerDocument||e).createElement("link"),Je(s);var f=s;return f._p=new Promise(function(d,b){f.onload=d,f.onerror=b}),et(s,"link",a),t.state.loading|=4,As(s,l.precedence,e),t.instance=s;case"script":return s=tn(l.src),(i=e.querySelector(li(s)))?(t.instance=i,Je(i),i):(a=l,(i=Ut.get(s))&&(a=A({},l),Ec(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),et(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,As(a,l.precedence,e));return t.instance}function As(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function A0(e,t,l){if(Os===null){var a=new Map,i=Os=new Map;i.set(l,a)}else i=Os,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var s=l[i];if(!(s[pn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var d=a.get(f);d?d.push(s):a.set(f,[s])}}return a}function O0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Tp(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 T0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mp(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 i=en(a.href),s=t.querySelector(ti(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Je(s);return}s=t.ownerDocument||t,a=C0(a),(i=Ut.get(i))&&Nc(a,i),s=s.createElement("link"),Je(s);var f=s;f._p=new Promise(function(d,b){f.onload=d,f.onerror=b}),et(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=Ts.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Cc=0;function Rp(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ms=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ms=new Map,t.forEach(Dp,e),Ms=null,Ts.call(e))}function Dp(e,t){if(!(t.state.loading&4)){var l=Ms.get(e);if(l)var a=l.get(null);else{l=new Map,Ms.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}i=t.instance,f=i.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,i),l.set(f,i),this.count++,a=Ts.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:k,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function _p(e,t,l,a,i,s,f,d,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=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function M0(e,t,l,a,i,s,f,d,b,C,R,_){return e=new _p(e,t,l,f,b,C,R,_,d),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=ir(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},cr(s),e}function R0(e){return e?(e=Ra,e):Ra}function D0(e,t,l,a,i,s){i=R0(i),a.context===null?a.context=i:a.pendingContext=i,a=Sl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=wl(e,a,t),l!==null&&(mt(l,e,t),Un(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function zc(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function U0(e){if(e.tag===13||e.tag===31){var t=ea(e,67108864);t!==null&&mt(t,e,67108864),zc(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=Nt();t=Su(t);var l=ea(e,t);l!==null&&mt(l,e,t),zc(e,t)}}var Ds=!0;function Up(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=2,Ac(e,t,l,a)}finally{Q.p=s,T.T=i}}function Lp(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=8,Ac(e,t,l,a)}finally{Q.p=s,T.T=i}}function Ac(e,t,l,a){if(Ds){var i=Oc(a);if(i===null)mc(e,t,a,_s,l),q0(e,a);else if(qp(i,e,t,l,a))a.stopPropagation();else if(q0(e,a),t&4&&-1<Bp.indexOf(e)){for(;i!==null;){var s=ja(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=$l(s.pendingLanes);if(f!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var b=1<<31-yt(f);d.entanglements[1]|=b,f&=~b}Zt(s),(ye&6)===0&&(vs=gt()+500,Wn(0))}}break;case 31:case 13:d=ea(s,2),d!==null&&mt(d,s,2),ps(),zc(s,2)}if(s=Oc(a),s===null&&mc(e,t,a,_s,l),s===i)break;i=s}i!==null&&a.stopPropagation()}else mc(e,t,a,null,l)}}function Oc(e){return e=Mu(e),Tc(e)}var _s=null;function Tc(e){if(_s=null,e=xa(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 _s=e,null}function B0(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(S1()){case Vo:return 2;case Zo:return 8;case wi:case w1:return 32;case Xo:return 268435456;default:return 32}default:return 32}}var Mc=!1,_l=null,Ul=null,Ll=null,ni=new Map,ii=new Map,Bl=[],Bp="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 q0(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,l,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ja(t),t!==null&&U0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qp(e,t,l,a,i){switch(t){case"focusin":return _l=si(_l,e,t,l,a,i),!0;case"dragenter":return Ul=si(Ul,e,t,l,a,i),!0;case"mouseover":return Ll=si(Ll,e,t,l,a,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,si(ni.get(s)||null,e,t,l,a,i)),!0;case"gotpointercapture":return s=i.pointerId,ii.set(s,si(ii.get(s)||null,e,t,l,a,i)),!0}return!1}function H0(e){var t=xa(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(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 Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Oc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Tu=a,l.target.dispatchEvent(a),Tu=null}else return t=ja(l),t!==null&&U0(t),e.blockedOn=l,!1;t.shift()}return!0}function Q0(e,t,l){Us(e)&&l.delete(t)}function Hp(){Mc=!1,_l!==null&&Us(_l)&&(_l=null),Ul!==null&&Us(Ul)&&(Ul=null),Ll!==null&&Us(Ll)&&(Ll=null),ni.forEach(Q0),ii.forEach(Q0)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Hp)))}var Bs=null;function k0(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Tc(a||l)===null)continue;break}var s=ja(l);s!==null&&(e.splice(t,3),t-=3,Or(s,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function ln(e){function t(b){return Ls(b,e)}_l!==null&&Ls(_l,e),Ul!==null&&Ls(Ul,e),Ll!==null&&Ls(Ll,e),ni.forEach(t),ii.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)H0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],s=l[a+1],f=i[rt]||null;if(typeof s=="function")f||k0(l);else if(f){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[rt]||null)d=f.formAction;else if(Tc(i)!==null)continue}else d=f.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),k0(l)}}}function Y0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=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,i=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),i!==null&&(i(),i=null)}}}function Rc(e){this._internalRoot=e}qs.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Nt();D0(l,a,e,t,null,null)},qs.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;D0(e.current,2,null,e,null,null),ps(),t[ba]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wo();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&H0(e)}};var G0=u.version;if(G0!=="19.2.0")throw Error(o(527,G0,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{gn=Hs.inject(Qp),vt=Hs}catch{}}return nn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",i=Fd,s=Wd,f=Id;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=M0(e,1,!1,null,null,l,a,null,i,s,f,Y0),e[ba]=t.current,hc(e),new Rc(t)},nn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,i="",s=Fd,f=Wd,d=Id,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=M0(e,1,!0,t,l??null,a,i,b,s,f,d,Y0),t.context=R0(null),l=t.current,a=Nt(),a=Su(a),i=Sl(a),i.callback=null,wl(l,i,a),l=a,t.current.lanes=l,yn(t,l),Zt(t),e[ba]=t.current,hc(e),new qs(t)},nn.version="19.2.0",nn}var Vc;function P0(){if(Vc)return Ys.exports;Vc=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Ys.exports=I0(),Ys.exports}var em=P0();const tm=Dc(em);var ha=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lm={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},am=class{#e=lm;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},Hl=new am;function nm(n){setTimeout(n,0)}var Ql=typeof window>"u"||"Deno"in globalThis;function at(){}function im(n,u){return typeof n=="function"?n(u):n}function Xs(n){return typeof n=="number"&&n>=0&&n!==1/0}function Zc(n,u){return Math.max(n+(u||0)-Date.now(),0)}function ol(n,u){return typeof n=="function"?n(u):n}function Et(n,u){return typeof n=="function"?n(u):n}function Xc(n,u){const{type:c="all",exact:o,fetchStatus:h,predicate:v,queryKey:g,stale:y}=n;if(g){if(o){if(u.queryHash!==Ks(g,u.options))return!1}else if(!sn(u.queryKey,g))return!1}if(c!=="all"){const x=u.isActive();if(c==="active"&&!x||c==="inactive"&&x)return!1}return!(typeof y=="boolean"&&u.isStale()!==y||h&&h!==u.state.fetchStatus||v&&!v(u))}function Kc(n,u){const{exact:c,status:o,predicate:h,mutationKey:v}=n;if(v){if(!u.options.mutationKey)return!1;if(c){if(kl(u.options.mutationKey)!==kl(v))return!1}else if(!sn(u.options.mutationKey,v))return!1}return!(o&&u.state.status!==o||h&&!h(u))}function Ks(n,u){return(u?.queryKeyHashFn||kl)(n)}function kl(n){return JSON.stringify(n,(u,c)=>Js(c)?Object.keys(c).sort().reduce((o,h)=>(o[h]=c[h],o),{}):c)}function sn(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>sn(n[c],u[c])):!1}var sm=Object.prototype.hasOwnProperty;function Jc(n,u){if(n===u)return n;const c=$c(n)&&$c(u);if(!c&&!(Js(n)&&Js(u)))return u;const h=(c?n:Object.keys(n)).length,v=c?u:Object.keys(u),g=v.length,y=c?new Array(g):{};let x=0;for(let p=0;p<g;p++){const N=c?p:v[p],A=n[N],L=u[N];if(A===L){y[N]=A,(c?p<h:sm.call(n,N))&&x++;continue}if(A===null||L===null||typeof A!="object"||typeof L!="object"){y[N]=L;continue}const V=Jc(A,L);y[N]=V,V===A&&x++}return h===g&&x===h?n:y}function ri(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const c in n)if(n[c]!==u[c])return!1;return!0}function $c(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Js(n){if(!Fc(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!Fc(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Fc(n){return Object.prototype.toString.call(n)==="[object Object]"}function um(n){return new Promise(u=>{Hl.setTimeout(u,n)})}function $s(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?Jc(n,u):u}function rm(n,u,c=0){const o=[...n,u];return c&&o.length>c?o.slice(1):o}function cm(n,u,c=0){const o=[u,...n];return c&&o.length>c?o.slice(0,-1):o}var Fs=Symbol();function Wc(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Fs?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ic(n,u){return typeof n=="function"?n(...u):!!n}var om=class extends ha{#e;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ws=new om;function Is(){let n,u;const c=new Promise((h,v)=>{n=h,u=v});c.status="pending",c.catch(()=>{});function o(h){Object.assign(c,h),delete c.resolve,delete c.reject}return c.resolve=h=>{o({status:"fulfilled",value:h}),n(h)},c.reject=h=>{o({status:"rejected",reason:h}),u(h)},c}var fm=nm;function dm(){let n=[],u=0,c=y=>{y()},o=y=>{y()},h=fm;const v=y=>{u?n.push(y):h(()=>{c(y)})},g=()=>{const y=n;n=[],y.length&&h(()=>{o(()=>{y.forEach(x=>{c(x)})})})};return{batch:y=>{let x;u++;try{x=y()}finally{u--,u||g()}return x},batchCalls:y=>(...x)=>{v(()=>{y(...x)})},schedule:v,setNotifyFunction:y=>{c=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{h=y}}}var Ye=dm(),hm=class extends ha{#e=!0;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},ci=new hm;function mm(n){return Math.min(1e3*2**n,3e4)}function Pc(n){return(n??"online")==="online"?ci.isOnline():!0}var Ps=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function eo(n){let u=!1,c=0,o;const h=Is(),v=()=>h.status!=="pending",g=M=>{if(!v()){const H=new Ps(M);L(H),n.onCancel?.(H)}},y=()=>{u=!0},x=()=>{u=!1},p=()=>Ws.isFocused()&&(n.networkMode==="always"||ci.isOnline())&&n.canRun(),N=()=>Pc(n.networkMode)&&n.canRun(),A=M=>{v()||(o?.(),h.resolve(M))},L=M=>{v()||(o?.(),h.reject(M))},V=()=>new Promise(M=>{o=H=>{(v()||p())&&M(H)},n.onPause?.()}).then(()=>{o=void 0,v()||n.onContinue?.()}),B=()=>{if(v())return;let M;const H=c===0?n.initialPromise:void 0;try{M=H??n.fn()}catch(q){M=Promise.reject(q)}Promise.resolve(M).then(A).catch(q=>{if(v())return;const $=n.retry??(Ql?0:3),k=n.retryDelay??mm,ne=typeof k=="function"?k(c,q):k,xe=$===!0||typeof $=="number"&&c<$||typeof $=="function"&&$(c,q);if(u||!xe){L(q);return}c++,n.onFail?.(c,q),um(ne).then(()=>p()?void 0:V()).then(()=>{u?L(q):B()})})};return{promise:h,status:()=>h.status,cancel:g,continue:()=>(o?.(),h),cancelRetry:y,continueRetry:x,canStart:N,start:()=>(N()?B():V().then(B),h)}}var to=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xs(this.gcTime)&&(this.#e=Hl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ql?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Hl.clearTimeout(this.#e),this.#e=void 0)}},gm=class extends to{#e;#t;#l;#n;#a;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#l=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=no(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=no(this.options);u.data!==void 0&&(this.setState(ao(u.data,u.dataUpdatedAt)),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(n,u){const c=$s(this.state.data,n,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),c}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#a?.promise;return this.#a?.cancel(n),u?u.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Et(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fs||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ol(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Zc(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,u){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(x=>x.options.queryFn);y&&this.setOptions(y.options)}const c=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,c.signal)})},h=()=>{const y=Wc(this.options,u),p=(()=>{const N={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(N),N})();return this.#u=!1,this.options.persister?this.options.persister(y,p,this):y(p)},g=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:h};return o(y),y})();this.options.behavior?.onFetch(g,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==g.fetchOptions?.meta)&&this.#i({type:"fetch",meta:g.fetchOptions?.meta}),this.#a=eo({initialPromise:u?.initialPromise,fn:g.fetchFn,onCancel:y=>{y instanceof Ps&&y.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(y,x)=>{this.#i({type:"failed",failureCount:y,error:x})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#l.config.onSuccess?.(y,this),this.#l.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Ps){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#l.config.onError?.(y,this),this.#l.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(n){const u=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...lo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...ao(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const h=n.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=u(this.state),Ye.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:n})})}};function lo(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pc(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ao(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function no(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var vm=class extends ha{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=Is(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#l=void 0;#n=void 0;#a;#s;#u;#i;#g;#d;#h;#c;#o;#r;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),io(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const u=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Et(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),u._defaulted&&!ri(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&so(this.#t,c,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||ol(this.options.staleTime,this.#t)!==ol(u.staleTime,this.#t))&&this.#v();const h=this.#y();o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||h!==this.#r)&&this.#p(h)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(u,n);return pm(this,c)&&(this.#n=c,this.#s=this.options,this.#a=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,u){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,u);return c.fetch().then(()=>this.createResult(c,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#S();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(at)),u}#v(){this.#x();const n=ol(this.options.staleTime,this.#t);if(Ql||this.#n.isStale||!Xs(n))return;const c=Zc(this.#n.dataUpdatedAt,n)+1;this.#c=Hl.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#p(n){this.#j(),this.#r=n,!(Ql||Et(this.options.enabled,this.#t)===!1||!Xs(this.#r)||this.#r===0)&&(this.#o=Hl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ws.isFocused())&&this.#f()},this.#r))}#b(){this.#v(),this.#p(this.#y())}#x(){this.#c&&(Hl.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Hl.clearInterval(this.#o),this.#o=void 0)}createResult(n,u){const c=this.#t,o=this.options,h=this.#n,v=this.#a,g=this.#s,x=n!==c?n.state:this.#l,{state:p}=n;let N={...p},A=!1,L;if(u._optimisticResults){const ee=this.hasListeners(),ve=!ee&&io(n,u),Me=ee&&so(n,c,u,o);(ve||Me)&&(N={...N,...lo(p.data,n.options)}),u._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:V,errorUpdatedAt:B,status:M}=N;L=N.data;let H=!1;if(u.placeholderData!==void 0&&L===void 0&&M==="pending"){let ee;h?.isPlaceholderData&&u.placeholderData===g?.placeholderData?(ee=h.data,H=!0):ee=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,ee!==void 0&&(M="success",L=$s(h?.data,ee,u),A=!0)}if(u.select&&L!==void 0&&!H)if(h&&L===v?.data&&u.select===this.#g)L=this.#d;else try{this.#g=u.select,L=u.select(L),L=$s(h?.data,L,u),this.#d=L,this.#i=null}catch(ee){this.#i=ee}this.#i&&(V=this.#i,L=this.#d,B=Date.now(),M="error");const q=N.fetchStatus==="fetching",$=M==="pending",k=M==="error",ne=$&&q,xe=L!==void 0,K={status:M,fetchStatus:N.fetchStatus,isPending:$,isSuccess:M==="success",isError:k,isInitialLoading:ne,isLoading:ne,data:L,dataUpdatedAt:N.dataUpdatedAt,error:V,errorUpdatedAt:B,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>x.dataUpdateCount||N.errorUpdateCount>x.errorUpdateCount,isFetching:q,isRefetching:q&&!$,isLoadingError:k&&!xe,isPaused:N.fetchStatus==="paused",isPlaceholderData:A,isRefetchError:k&&xe,isStale:tu(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Et(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=he=>{K.status==="error"?he.reject(K.error):K.data!==void 0&&he.resolve(K.data)},ve=()=>{const he=this.#u=K.promise=Is();ee(he)},Me=this.#u;switch(Me.status){case"pending":n.queryHash===c.queryHash&&ee(Me);break;case"fulfilled":(K.status==="error"||K.data!==Me.value)&&ve();break;case"rejected":(K.status!=="error"||K.error!==Me.reason)&&ve();break}}return K}updateResult(){const n=this.#n,u=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ri(u,n))return;this.#n=u;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!this.#m.size)return!0;const v=new Set(h??this.#m);return this.options.throwOnError&&v.add("error"),Object.keys(this.#n).some(g=>{const y=g;return this.#n[y]!==n[y]&&v.has(y)})};this.#w({listeners:c()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#l=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ye.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ym(n,u){return Et(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function io(n,u){return ym(n,u)||n.state.data!==void 0&&eu(n,u,u.refetchOnMount)}function eu(n,u,c){if(Et(u.enabled,n)!==!1&&ol(u.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&tu(n,u)}return!1}function so(n,u,c,o){return(n!==u||Et(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&tu(n,c)}function tu(n,u){return Et(u.enabled,n)!==!1&&n.isStaleByTime(ol(u.staleTime,n))}function pm(n,u){return!ri(n.getCurrentResult(),u)}function uo(n){return{onFetch:(u,c)=>{const o=u.options,h=u.fetchOptions?.meta?.fetchMore?.direction,v=u.state.data?.pages||[],g=u.state.data?.pageParams||[];let y={pages:[],pageParams:[]},x=0;const p=async()=>{let N=!1;const A=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(u.signal.aborted?N=!0:u.signal.addEventListener("abort",()=>{N=!0}),u.signal)})},L=Wc(u.options,u.fetchOptions),V=async(B,M,H)=>{if(N)return Promise.reject();if(M==null&&B.pages.length)return Promise.resolve(B);const $=(()=>{const fe={client:u.client,queryKey:u.queryKey,pageParam:M,direction:H?"backward":"forward",meta:u.options.meta};return A(fe),fe})(),k=await L($),{maxPages:ne}=u.options,xe=H?cm:rm;return{pages:xe(B.pages,k,ne),pageParams:xe(B.pageParams,M,ne)}};if(h&&v.length){const B=h==="backward",M=B?bm:ro,H={pages:v,pageParams:g},q=M(o,H);y=await V(H,q,B)}else{const B=n??v.length;do{const M=x===0?g[0]??o.initialPageParam:ro(o,y);if(x>0&&M==null)break;y=await V(y,M),x++}while(x<B)}return y};u.options.persister?u.fetchFn=()=>u.options.persister?.(p,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c):u.fetchFn=p}}}function ro(n,{pages:u,pageParams:c}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,c[o],c):void 0}function bm(n,{pages:u,pageParams:c}){return u.length>0?n.getPreviousPageParam?.(u[0],u,c[0],c):void 0}var xm=class extends to{#e;#t;#l;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#l=n.mutationCache,this.#t=[],this.state=n.state||co(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#l.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#a({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=eo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(v,g)=>{this.#a({type:"failed",failureCount:v,error:g})},onPause:()=>{this.#a({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)});const o=this.state.status==="pending",h=!this.#n.canStart();try{if(o)u();else{this.#a({type:"pending",variables:n,isPaused:h}),await this.#l.config.onMutate?.(n,this,c);const g=await this.options.onMutate?.(n,c);g!==this.state.context&&this.#a({type:"pending",context:g,variables:n,isPaused:h})}const v=await this.#n.start();return await this.#l.config.onSuccess?.(v,n,this.state.context,this,c),await this.options.onSuccess?.(v,n,this.state.context,c),await this.#l.config.onSettled?.(v,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(v,null,n,this.state.context,c),this.#a({type:"success",data:v}),v}catch(v){try{throw await this.#l.config.onError?.(v,n,this.state.context,this,c),await this.options.onError?.(v,n,this.state.context,c),await this.#l.config.onSettled?.(void 0,v,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(void 0,v,n,this.state.context,c),v}finally{this.#a({type:"error",error:v})}}finally{this.#l.runNext(this)}}#a(n){const u=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Ye.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#l.notify({mutation:this,type:"updated",action:n})})}};function co(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(n,u,c){const o=new xm({client:n,mutationCache:this,mutationId:++this.#l,options:n.defaultMutationOptions(u),state:c});return this.add(o),o}add(n){this.#e.add(n);const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);c?c.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=oi(n);if(typeof u=="string"){const o=this.#t.get(u)?.find(h=>h.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=oi(n);return typeof u=="string"?this.#t.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ye.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Kc(u,c))}findAll(n={}){return this.getAll().filter(u=>Kc(n,u))}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Ye.batch(()=>Promise.all(n.map(u=>u.continue().catch(at))))}};function oi(n){return n.options.scope?.id}var Sm=class extends ha{#e;#t=void 0;#l;#n;constructor(n,u){super(),this.#e=n,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const u=this.options;this.options=this.#e.defaultMutationOptions(n),ri(this.options,u)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),u?.mutationKey&&this.options.mutationKey&&kl(u.mutationKey)!==kl(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#a(),this.#s()}mutate(n,u){return this.#n=u,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(n)}#a(){const n=this.#l?.state??co();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Ye.batch(()=>{if(this.#n&&this.hasListeners()){const u=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#n.onSuccess?.(n.data,u,c,o),this.#n.onSettled?.(n.data,null,u,c,o)):n?.type==="error"&&(this.#n.onError?.(n.error,u,c,o),this.#n.onSettled?.(void 0,n.error,u,c,o))}this.listeners.forEach(u=>{u(this.#t)})})}},wm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,c){const o=u.queryKey,h=u.queryHash??Ks(o,u);let v=this.get(h);return v||(v=new gm({client:n,queryKey:o,queryHash:h,options:n.defaultQueryOptions(u),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(v)),v}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ye.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Xc(u,c))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(c=>Xc(n,c)):u}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Nm=class{#e;#t;#l;#n;#a;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new wm,this.#t=n.mutationCache||new jm,this.#l=n.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Ws.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ci.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=this.#e.build(this,u),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ol(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:c})=>{const o=c.data;return[u,o]})}setQueryData(n,u,c){const o=this.defaultQueryOptions({queryKey:n}),v=this.#e.get(o.queryHash)?.state.data,g=im(u,v);if(g!==void 0)return this.#e.build(this,o).setData(g,{...c,manual:!0})}setQueriesData(n,u,c){return Ye.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,c)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;Ye.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=this.#e;return Ye.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},o=Ye.batch(()=>this.#e.findAll(n).map(h=>h.cancel(c)));return Promise.all(o).then(at).catch(at)}invalidateQueries(n,u={}){return Ye.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},o=Ye.batch(()=>this.#e.findAll(n).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let v=h.fetch(void 0,c);return c.throwOnError||(v=v.catch(at)),h.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(o).then(at)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=this.#e.build(this,u);return c.isStaleByTime(ol(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(at).catch(at)}fetchInfiniteQuery(n){return n.behavior=uo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(at).catch(at)}ensureInfiniteQueryData(n){return n.behavior=uo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ci.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(n){this.#l=n}setQueryDefaults(n,u){this.#n.set(kl(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#n.values()],c={};return u.forEach(o=>{sn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,u){this.#a.set(kl(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#a.values()],c={};return u.forEach(o=>{sn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#l.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Ks(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Fs&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#l.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},oo=m.createContext(void 0),Lt=n=>{const u=m.useContext(oo);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},Em=({client:n,children:u})=>(m.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(oo.Provider,{value:n,children:u})),fo=m.createContext(!1),Cm=()=>m.useContext(fo);fo.Provider;function zm(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Am=m.createContext(zm()),Om=()=>m.useContext(Am),Tm=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},Mm=n=>{m.useEffect(()=>{n.clearReset()},[n])},Rm=({result:n,errorResetBoundary:u,throwOnError:c,query:o,suspense:h})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(h&&n.data===void 0||Ic(c,[n.error,o])),Dm=n=>{if(n.suspense){const c=h=>h==="static"?h:Math.max(h??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...h)=>c(o(...h)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},_m=(n,u)=>n.isLoading&&n.isFetching&&!u,Um=(n,u)=>n?.suspense&&u.isPending,ho=(n,u,c)=>u.fetchOptimistic(n).catch(()=>{c.clearReset()});function Lm(n,u,c){const o=Cm(),h=Om(),v=Lt(),g=v.defaultQueryOptions(n);v.getDefaultOptions().queries?._experimental_beforeQuery?.(g),g._optimisticResults=o?"isRestoring":"optimistic",Dm(g),Tm(g,h),Mm(h);const y=!v.getQueryCache().get(g.queryHash),[x]=m.useState(()=>new u(v,g)),p=x.getOptimisticResult(g),N=!o&&n.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(A=>{const L=N?x.subscribe(Ye.batchCalls(A)):at;return x.updateResult(),L},[x,N]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),m.useEffect(()=>{x.setOptions(g)},[g,x]),Um(g,p))throw ho(g,x,h);if(Rm({result:p,errorResetBoundary:h,throwOnError:g.throwOnError,query:v.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw p.error;return v.getDefaultOptions().queries?._experimental_afterQuery?.(g,p),g.experimental_prefetchInRender&&!Ql&&_m(p,o)&&(y?ho(g,x,h):v.getQueryCache().get(g.queryHash)?.promise)?.catch(at).finally(()=>{x.updateResult()}),g.notifyOnChangeProps?p:x.trackResult(p)}function ma(n,u){return Lm(n,vm)}function Qt(n,u){const c=Lt(),[o]=m.useState(()=>new Sm(c,n));m.useEffect(()=>{o.setOptions(n)},[o,n]);const h=m.useSyncExternalStore(m.useCallback(g=>o.subscribe(Ye.batchCalls(g)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),v=m.useCallback((g,y)=>{o.mutate(g,y).catch(at)},[o]);if(h.error&&Ic(o.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:v,mutateAsync:h.mutate}}let Bm=new Nm({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});function qm(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,h,v,g=[],y="",x=n.split("/");for(x[0]||x.shift();h=x.shift();)c=h[0],c==="*"?(g.push(c),y+=h[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=h.indexOf("?",1),v=h.indexOf(".",1),g.push(h.substring(1,~o?o:~v?v:h.length)),y+=~o&&!~v?"(?:/([^/]+?))?":"/([^/]+?)",~v&&(y+=(~o?"?":"")+"\\"+h.substring(v))):y+="/"+h;return{keys:g,pattern:new RegExp("^"+y+(u?"(?=$|/)":"/?$"),"i")}}var lu={exports:{}},au={};var mo;function Hm(){if(mo)return au;mo=1;var n=ui();function u(A,L){return A===L&&(A!==0||1/A===1/L)||A!==A&&L!==L}var c=typeof Object.is=="function"?Object.is:u,o=n.useState,h=n.useEffect,v=n.useLayoutEffect,g=n.useDebugValue;function y(A,L){var V=L(),B=o({inst:{value:V,getSnapshot:L}}),M=B[0].inst,H=B[1];return v(function(){M.value=V,M.getSnapshot=L,x(M)&&H({inst:M})},[A,V,L]),h(function(){return x(M)&&H({inst:M}),A(function(){x(M)&&H({inst:M})})},[A]),g(V),V}function x(A){var L=A.getSnapshot;A=A.value;try{var V=L();return!c(A,V)}catch{return!0}}function p(A,L){return L()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:y;return au.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:N,au}var go;function Qm(){return go||(go=1,lu.exports=Hm()),lu.exports}var km=Qm();const Ym=J0.useInsertionEffect,Gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,Vm=Ym||Gm,vo=n=>{const u=m.useRef([n,(...c)=>u[0](...c)]).current;return Vm(()=>{u[0]=n}),u[1]},Zm="popstate",nu="pushState",iu="replaceState",yo=[Zm,nu,iu,"hashchange"],Xm=n=>{for(const u of yo)addEventListener(u,n);return()=>{for(const u of yo)removeEventListener(u,n)}},po=(n,u)=>km.useSyncExternalStore(Xm,n,u),Km=()=>location.search,Jm=({ssrSearch:n=""}={})=>po(Km,()=>n),bo=()=>location.pathname,$m=({ssrPath:n}={})=>po(bo,n?()=>n:bo),Fm=(n,{replace:u=!1,state:c=null}={})=>history[u?iu:nu](c,"",n),Wm=(n={})=>[$m(n),Fm],xo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[xo]>"u"){for(const n of[nu,iu]){const u=history[n];history[n]=function(){const c=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,xo,{value:!0})}const Im=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",jo=(n="")=>n==="/"?"":n,Pm=(n,u)=>n[0]==="~"?n.slice(1):jo(u)+n,eg=(n="",u)=>Im(So(jo(n)),So(u)),So=n=>{try{return decodeURI(n)}catch{return n}},wo={hook:Wm,searchHook:Jm,parser:qm,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},No=m.createContext(wo),ga=()=>m.useContext(No),Eo={},Co=m.createContext(Eo),tg=()=>m.useContext(Co),fi=n=>{const[u,c]=n.hook(n);return[eg(n.base,u),vo((o,h)=>c(Pm(o,n.base),h))]},di=()=>fi(ga()),su=(n,u,c,o)=>{const{pattern:h,keys:v}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),g=h.exec(c)||[],[y,...x]=g;return y!==void 0?[!0,(()=>{const p=v!==!1?Object.fromEntries(v.map((A,L)=>[A,x[L]])):g.groups;let N={...x};return p&&Object.assign(N,p),N})(),...o?[y]:[]]:[!1,null]},lg=n=>su(ga().parser,n,di()[0]),ag=({children:n,...u})=>{const c=ga(),o=u.hook?wo:c;let h=o;const[v,g]=u.ssrPath?.split("?")??[];g&&(u.ssrSearch=g,u.ssrPath=v),u.hrefs=u.hrefs??u.hook?.hrefs;let y=m.useRef({}),x=y.current,p=x;for(let N in o){const A=N==="base"?o[N]+(u[N]||""):u[N]||o[N];x===p&&A!==p[N]&&(y.current=p={...p}),p[N]=A,(A!==o[N]||A!==h[N])&&(h=p)}return m.createElement(No.Provider,{value:h,children:n})},zo=({children:n,component:u},c)=>u?m.createElement(u,{params:c}):typeof n=="function"?n(c):n,ng=n=>{let u=m.useRef(Eo);const c=u.current;return u.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,h])=>h!==c[o])?n:c},va=({path:n,nest:u,match:c,...o})=>{const h=ga(),[v]=fi(h),[g,y,x]=c??su(h.parser,n,v,u),p=ng({...tg(),...y});if(!g)return null;const N=x?m.createElement(ag,{base:x},zo(o,p)):zo(o,p);return m.createElement(Co.Provider,{value:p,children:N})};m.forwardRef((n,u)=>{const c=ga(),[o,h]=fi(c),{to:v="",href:g=v,onClick:y,asChild:x,children:p,className:N,replace:A,state:L,...V}=n,B=vo(H=>{H.ctrlKey||H.metaKey||H.altKey||H.shiftKey||H.button!==0||(y?.(H),H.defaultPrevented||(H.preventDefault(),h(g,n)))}),M=c.hrefs(g[0]==="~"?g.slice(1):c.base+g,c);return x&&m.isValidElement(p)?m.cloneElement(p,{onClick:B,href:M}):m.createElement("a",{...V,onClick:B,href:M,className:N?.call?N(o===g):N,children:p,ref:u})});const Ao=n=>Array.isArray(n)?n.flatMap(u=>Ao(u&&u.type===m.Fragment?u.props.children:u)):[n],Oo=({children:n,location:u})=>{const c=ga(),[o]=fi(c);for(const h of Ao(n)){let v=0;if(m.isValidElement(h)&&(v=su(c.parser,h.props.path,u||o,h.props.nest))[0])return m.cloneElement(h,{match:v})}return null};async function Ve(n,u={}){let c=await fetch(n,{...u,headers:{"Content-Type":"application/json",...u.headers}}),o=await c.json();if(!c.ok){let h=new Error(o.error||"Request failed");throw h.status=c.status,h.data=o,h}return o}let un={async getReportData(){return Ve("/api/report-data")},async getStatus(){return Ve("/api/status")},async acceptBaseline(n){return Ve("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Ve("/api/baseline/accept-all",{method:"POST"})},async resetBaselines(){return Ve("/api/baseline/reset",{method:"POST"})},async downloadBaselines(n,u,c){return Ve("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:u,projectSlug:c})})}},To={async get(){return Ve("/api/config")},async updateProject(n){return Ve("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},hi={async getStatus(){return Ve("/api/auth/status")},async initiateLogin(){return Ve("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Ve("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Ve("/api/auth/logout",{method:"POST"})}},mi={async list(){return Ve("/api/projects")},async listMappings(){return Ve("/api/projects/mappings")},async createMapping(n){return Ve("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Ve(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){let u=new URLSearchParams;n.limit&&u.append("limit",String(n.limit)),n.branch&&u.append("branch",n.branch);let c=u.toString();return Ve(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,u,c={}){let o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);let h=o.toString(),v=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(u)}/builds${h?`?${h}`:""}`;return Ve(v)}},Te={auth:["auth"],authStatus:()=>[...Te.auth,"status"],config:["config"],projectConfig:()=>[...Te.config,"project"],globalConfig:()=>[...Te.config,"global"],tdd:["tdd"],reportData:()=>[...Te.tdd,"report"],status:()=>[...Te.tdd,"status"],cloud:["cloud"],projects:()=>[...Te.cloud,"projects"],builds:(n,u)=>[...Te.cloud,"builds",n,u]};function rn(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}function ig(){return typeof window<"u"&&window.VIZZLY_REPORTER_DATA?window.VIZZLY_REPORTER_DATA:null}function gi(n={}){let u=ig(),c=rn();return ma({queryKey:Te.reportData(),queryFn:async()=>c&&u?u:un.getReportData(),initialData:u||void 0,refetchInterval:c?!1:n.polling!==!1?2e3:!1,refetchOnWindowFocus:!c,...n})}function sg(){let n=Lt();return Qt({mutationFn:u=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptBaseline(u)},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function Mo(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptAllBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function ug(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");return un.resetBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function rg(){return Qt({mutationFn:async n=>{if(rn())throw new Error("Cannot reject baselines in static report mode. Use the live dev server.");return{success:!0,id:n}}})}function cg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const og=m.forwardRef(cg);function fg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const dg=m.forwardRef(fg);function hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const mg=m.forwardRef(hg);function gg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const fl=m.forwardRef(gg);function vg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Ro=m.forwardRef(vg);function yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const pg=m.forwardRef(yg);function bg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const xg=m.forwardRef(bg);function jg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Sg=m.forwardRef(jg);function wg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Ng=m.forwardRef(wg);function Eg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const Cg=m.forwardRef(Eg);function zg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Ag=m.forwardRef(zg);function Og({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Yl=m.forwardRef(Og);function Tg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Do=m.forwardRef(Tg);function Mg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const uu=m.forwardRef(Mg);function Rg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Dg=m.forwardRef(Rg);function _g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const ru=m.forwardRef(_g);function Ug({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const vi=m.forwardRef(Ug);function Lg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const Bg=m.forwardRef(Lg);function qg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const cu=m.forwardRef(qg);function Hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const Qg=m.forwardRef(Hg);function kg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const dl=m.forwardRef(kg);function Yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const cn=m.forwardRef(Yg);function Gg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const Vg=m.forwardRef(Gg);function Zg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Xg=m.forwardRef(Zg);function Kg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const Jg=m.forwardRef(Kg);function $g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Fg=m.forwardRef($g);function Wg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ig=m.forwardRef(Wg);function Pg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const ou=m.forwardRef(Pg);function ev({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"}))}const _o=m.forwardRef(ev);function tv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const lv=m.forwardRef(tv);function av({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const nv=m.forwardRef(av);function iv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const fu=m.forwardRef(iv);function sv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))}const Uo=m.forwardRef(sv);function uv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const du=m.forwardRef(uv);function rv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const yi=m.forwardRef(rv);function Ze({children:n,variant:u="primary",size:c="md",disabled:o=!1,loading:h=!1,icon:v,iconPosition:g="left",fullWidth:y=!1,className:x="",...p}){let N="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",A={primary:"bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},L={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},V=[N,A[u],L[c],y?"w-full":"",o||h?"opacity-50 cursor-not-allowed pointer-events-none":"",x].filter(Boolean).join(" ");return r.jsxs("button",{className:V,disabled:o||h,...p,children:[h&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),v&&g==="left"&&!h&&r.jsx(v,{className:"w-4 h-4"}),n,v&&g==="right"&&!h&&r.jsx(v,{className:"w-4 h-4"})]})}function on({children:n,variant:u="default",size:c="sm",dot:o=!1,pulseDot:h=!1,className:v="",...g}){let y={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},x={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},p={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},N=["inline-flex items-center gap-1.5 font-medium rounded-full border",y[u],p[c],v].filter(Boolean).join(" ");return r.jsxs("span",{className:N,...g,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[h&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${x[u]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${x[u]}`})]}),n]})}function pi({label:n,hint:u,error:c,icon:o,size:h="md",className:v="",...g}){let x=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[h],o?"pl-10":"",g.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,g.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:x,...g})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function cv({label:n,hint:u,error:c,options:o=[],placeholder:h="Select an option",size:v="md",className:g="",...y}){let p=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[v],y.disabled?"opacity-50 cursor-not-allowed":"",g].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,y.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:p,...y,children:[h&&r.jsx("option",{value:"",disabled:!0,children:h}),o.map(N=>r.jsx("option",{value:N.value,children:N.label},N.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function ov({label:n,description:u,checked:c,onChange:o,disabled:h=!1,size:v="md",className:g="",...y}){let x={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"peer-checked:translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"peer-checked:translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"peer-checked:translate-x-7"}},{track:p,thumb:N,translate:A}=x[v];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${h?"opacity-50 cursor-not-allowed":""} ${g}`,children:[r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),u&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:h,className:"sr-only peer",...y}),r.jsx("div",{className:`${p} rounded-full bg-slate-700 transition-colors peer-checked:bg-amber-500 peer-focus-visible:ring-2 peer-focus-visible:ring-amber-500/50 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-slate-900`}),r.jsx("div",{className:`absolute left-1 top-1 ${N} rounded-full bg-white shadow-sm transition-transform ${A}`})]})]})}function lt({children:n,variant:u,hover:c=!0,className:o="",...h}){let g=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",u?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[u]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:g,...h,children:n})}function Gl({icon:n,title:u,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:h,className:v=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${v}`,children:r.jsxs("div",{className:`flex items-center ${h?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),h&&r.jsx("div",{className:"flex items-center gap-2",children:h})]})})}function nt({children:n,className:u="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${u}`,children:n})}function fv({children:n,className:u=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${u}`,children:n})}let dv={success:{icon:Yl,bg:"bg-emerald-500/10",border:"border-emerald-500/20",iconColor:"text-emerald-400",textColor:"text-emerald-300"},warning:{icon:dl,bg:"bg-amber-500/10",border:"border-amber-500/20",iconColor:"text-amber-400",textColor:"text-amber-300"},danger:{icon:du,bg:"bg-red-500/10",border:"border-red-500/20",iconColor:"text-red-400",textColor:"text-red-300"},info:{icon:Xg,bg:"bg-blue-500/10",border:"border-blue-500/20",iconColor:"text-blue-400",textColor:"text-blue-300"}};function hu({variant:n="info",title:u,children:c,icon:o,dismissible:h=!1,onDismiss:v,className:g=""}){let y=dv[n],x=o||y.icon;return r.jsx("div",{className:`rounded-xl border ${y.bg} ${y.border} p-4 ${g}`,role:"alert",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx("div",{className:`flex-shrink-0 ${y.iconColor}`,children:r.jsx(x,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[u&&r.jsx("h3",{className:`text-sm font-medium ${y.textColor}`,children:u}),c&&r.jsx("div",{className:`text-sm ${u?"mt-1":""} text-slate-400`,children:c})]}),h&&v&&r.jsx("button",{onClick:v,className:"flex-shrink-0 text-slate-500 hover:text-slate-300 transition-colors",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function hv({value:n=0,label:u,size:c=120,strokeWidth:o=8,className:h=""}){let[v,g]=m.useState(0);m.useEffect(()=>{if(typeof window>"u")return;let A=v,L=Math.min(100,Math.max(0,n)),V=1e3,B=window.performance.now();function M(H){let q=H-B,$=Math.min(q/V,1),k=1-Math.pow(1-$,3),ne=A+(L-A)*k;g(Math.round(ne)),$<1&&window.requestAnimationFrame(M)}window.requestAnimationFrame(M)},[n,v]);let y=(c-o)/2,x=y*2*Math.PI,p=x-v/100*x,N=v>=80?"health-ring__progress--success":v>=50?"health-ring__progress--warning":"health-ring__progress--danger";return r.jsxs("div",{className:`health-ring ${h}`,style:{width:c,height:c,"--ring-size":`${c}px`,"--ring-stroke":`${o}px`},children:[r.jsxs("svg",{className:"health-ring__svg",viewBox:`0 0 ${c} ${c}`,children:[r.jsx("circle",{className:"health-ring__track",cx:c/2,cy:c/2,r:y}),r.jsx("circle",{className:`health-ring__progress ${N}`,cx:c/2,cy:c/2,r:y,strokeDasharray:x,strokeDashoffset:p})]}),r.jsxs("div",{className:"health-ring__value",children:[r.jsxs("span",{className:"health-ring__percentage",children:[v,"%"]}),u&&r.jsx("span",{className:"health-ring__label",children:u})]})]})}function mv({tabs:n=[],activeTab:u,onChange:c,variant:o="default",className:h=""}){let g={default:{container:"border-b border-slate-700/50",tab:"px-4 py-3 text-sm font-medium transition-colors relative",active:"text-amber-400",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"},pills:{container:"bg-slate-800/50 p-1 rounded-lg inline-flex gap-1",tab:"px-4 py-2 text-sm font-medium rounded-md transition-all",active:"bg-amber-500 text-slate-900",inactive:"text-slate-400 hover:text-white hover:bg-white/5",indicator:""},underline:{container:"flex gap-6",tab:"pb-3 text-sm font-medium transition-colors relative",active:"text-white",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"}}[o];return r.jsx("div",{className:`${g.container} ${h}`,children:n.map(y=>{let x=u===y.key;return r.jsxs("button",{onClick:()=>c?.(y.key),className:`${g.tab} ${x?g.active:g.inactive}`,children:[r.jsxs("span",{className:"flex items-center gap-2",children:[y.icon&&r.jsx(y.icon,{className:"w-4 h-4"}),y.label,y.count!==void 0&&r.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded-full ${x?o==="pills"?"bg-slate-900/20 text-slate-900":"bg-amber-500/20 text-amber-400":"bg-slate-700 text-slate-400"}`,children:y.count})]}),x&&g.indicator&&r.jsx("div",{className:g.indicator})]},y.key)})})}function ut({variant:n="text",className:u="",count:c=1}){let o={text:"h-4 w-full",heading:"h-6 w-3/5",avatar:"w-10 h-10 rounded-full",button:"h-9 w-24 rounded-lg",badge:"h-5 w-16 rounded-full",card:"h-32 w-full rounded-xl"},h=Array.from({length:c},(v,g)=>g);return r.jsx(r.Fragment,{children:h.map(v=>r.jsx("div",{className:`skeleton ${o[n]} ${u}`},v))})}function Vl({className:n=""}){return r.jsxs("div",{className:`vz-card vz-card--no-hover p-6 space-y-4 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ut,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(ut,{variant:"heading"}),r.jsx(ut,{variant:"text",className:"w-2/3"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text",className:"w-4/5"})]})]})}function ya({icon:n,title:u,description:c,action:o,className:h=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-6 text-center ${h}`,children:[n&&r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-6",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),u&&r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}Yc();function fn({size:n="md",className:u=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${u}`,viewBox:"0 0 24 24",fill:"none",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}let Lo=[{key:"comparisons",label:"Comparisons",icon:ou},{key:"stats",label:"Stats",icon:Ag},{key:"builds",label:"Builds",icon:Bg},{key:"projects",label:"Projects",icon:cn},{key:"settings",label:"Settings",icon:cu}];function gv({currentView:n,onNavigate:u,loading:c}){let[o,h]=m.useState(!1),v=g=>{u?.(g),h(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{onClick:()=>v("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),u&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Lo.map(g=>{let y=n===g.key;return r.jsxs("button",{onClick:()=>v(g.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${y?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(g.icon,{className:"w-4 h-4"}),g.label]},g.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(fn,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),u&&r.jsx("button",{onClick:()=>h(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(yi,{className:"w-6 h-6"}):r.jsx(xg,{className:"w-6 h-6"})})]})]}),u&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Lo.map(g=>{let y=n===g.key;return r.jsxs("button",{onClick:()=>v(g.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${y?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(g.icon,{className:"w-5 h-5"}),g.label]},g.key)})})})]})})}function dn({children:n,currentView:u,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(gv,{currentView:u,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}let Bo=m.createContext(null);function vv({children:n}){let[u,c]=m.useState([]),o=m.useCallback((g,y="success",x={})=>{let p=Date.now();c(A=>[...A,{id:p,message:g,type:y,...x}]);let N=x.duration!==void 0?x.duration:x.actions?null:5e3;return N&&setTimeout(()=>{c(A=>A.filter(L=>L.id!==p))},N),p},[]),h=m.useCallback(g=>{c(y=>y.filter(x=>x.id!==g))},[]),v=m.useCallback((g,y)=>new Promise(x=>{let p=Date.now();c(N=>[...N,{id:p,message:g,title:y,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(A=>A.filter(L=>L.id!==p)),x(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(A=>A.filter(L=>L.id!==p)),x(!0)}}]}])}),[]);return r.jsxs(Bo.Provider,{value:{addToast:o,removeToast:h,confirm:v},children:[n,r.jsx(yv,{toasts:u,onRemove:h})]})}function Zl(){let n=m.useContext(Bo);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function yv({toasts:n,onRemove:u}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(pv,{toast:c,onRemove:u},c.id))})}function pv({toast:n,onRemove:u}){let c=n.type==="success"?Yl:n.type==="confirm"?dl:du,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",h=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${h} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map((v,g)=>r.jsx("button",{onClick:v.onClick,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},g))})]}),!n.actions&&r.jsx("button",{onClick:()=>u(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function bi({icon:n,label:u,value:c,subvalue:o,variant:h,iconColor:v}){return r.jsx(lt,{variant:h,hover:!1,children:r.jsx(nt,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:u}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${v}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function bv(){let{addToast:n,confirm:u}=Zl(),{data:c,isLoading:o,refetch:h}=gi(),v=Mo(),g=ug(),y=c?.comparisons,x=c?.baseline,p=y?.length||0,N=y?.filter(q=>q.status==="passed").length||0,A=y?.filter(q=>q.status==="failed").length||0,L=y?.filter(q=>q.status==="new").length||0,V=p>0?Math.round(N/p*100):0,B=y?.some(q=>q.status==="failed"||q.status==="new"),M=m.useCallback(async()=>{await u("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:$=>{console.error("Failed to accept all baselines:",$),n("Failed to accept all baselines. Please try again.","error")}})},[v,n,u]),H=m.useCallback(async()=>{await u("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&g.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:$=>{console.error("Failed to reset baselines:",$),n("Failed to reset baselines. Please try again.","error")}})},[g,n,u]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(hv,{value:V,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[N," of ",p," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(bi,{icon:ou,label:"Total Screenshots",value:p,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(bi,{icon:Do,label:"Passed",value:N,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(bi,{icon:dl,label:"Failed",value:A,variant:A>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(bi,{icon:lv,label:"New",value:L,variant:L>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),x&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:vi,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:L>0&&r.jsxs(on,{variant:"warning",dot:!0,children:[L," new without baseline"]})}),r.jsx(nt,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:x.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:x.createdAt?new Date(x.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(fv,{className:"flex flex-wrap gap-3",children:[r.jsx(Ze,{variant:"success",onClick:M,loading:v.isPending,disabled:!B||o,icon:Do,children:B?"Accept All Changes":"No Changes to Accept"}),r.jsx(Ze,{variant:"secondary",onClick:H,loading:g.isPending,disabled:o,icon:fl,children:"Reset Baselines"}),r.jsx(Ze,{variant:"ghost",onClick:()=>h(),loading:o,icon:fl,className:"ml-auto",children:"Refresh"})]})]})]})}const hn={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},kt={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},hl={PRIORITY:"priority",NAME:"name",TIME:"time"},Xl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function xv(n,u){return[...n].sort((c,o)=>{if(u==="priority"){const h={[Xl.FAILED]:3,[Xl.NEW]:2,[Xl.PASSED]:1},v=h[c.status]||0,g=h[o.status]||0;return v!==g?g-v:(o.diffPercentage||0)-(c.diffPercentage||0)}return u==="name"?(c.name||"").localeCompare(o.name||""):u==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function jv(n,u){return u==="failed"?n.filter(c=>c.status===Xl.FAILED):u==="passed"?n.filter(c=>c.status===Xl.PASSED):u==="new"?n.filter(c=>c.status===Xl.NEW||c.status===Xl.BASELINE_CREATED):n}let Sv=()=>{let n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||kt.ALL,sortBy:n.get("sort")||hl.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function wv(n=[]){let u=Sv(),[c,o]=m.useState(u.filter),[h,v]=m.useState(u.sortBy),[g,y]=m.useState(u.searchQuery),[x,p]=m.useState(u.selectedBrowser),[N,A]=m.useState(u.selectedViewport);m.useEffect(()=>{let B=new URLSearchParams;c!==kt.ALL&&B.set("filter",c),h!==hl.PRIORITY&&B.set("sort",h),g&&B.set("search",g),x!=="all"&&B.set("browser",x),N!=="all"&&B.set("viewport",N);let M=B.toString()?`?${B.toString()}`:window.location.pathname;window.history.replaceState({},"",M)},[c,h,g,x,N]);let L=m.useMemo(()=>{let B=new Set,M=new Set;return n.forEach(H=>{if(H.properties?.browser&&B.add(H.properties.browser),H.properties?.viewport_width&&H.properties?.viewport_height){let q=`${H.properties.viewport_width}x${H.properties.viewport_height}`;M.add(q)}else if(H.properties?.viewport){let q=`${H.properties.viewport.width}x${H.properties.viewport.height}`;M.add(q)}}),{browsers:Array.from(B).sort(),viewports:Array.from(M).sort()}},[n]);return{filteredComparisons:m.useMemo(()=>{let B=jv(n,c);if(g.trim()){let M=g.toLowerCase();B=B.filter(H=>H.name.toLowerCase().includes(M)||H.originalName?.toLowerCase().includes(M))}return x!=="all"&&(B=B.filter(M=>M.properties?.browser===x)),N!=="all"&&(B=B.filter(M=>{let H=null;return M.properties?.viewport_width&&M.properties?.viewport_height?H=`${M.properties.viewport_width}x${M.properties.viewport_height}`:M.properties?.viewport&&(H=`${M.properties.viewport.width}x${M.properties.viewport.height}`),H===N})),xv(B,h)},[n,c,h,g,x,N]),filter:c,setFilter:o,sortBy:h,setSortBy:v,searchQuery:g,setSearchQuery:y,selectedBrowser:x,setSelectedBrowser:p,selectedViewport:N,setSelectedViewport:A,availableFilters:L,counts:{all:n.length,failed:n.filter(B=>B.status==="failed").length,passed:n.filter(B=>B.status==="passed").length,new:n.filter(B=>B.status==="new").length}}}function Nv({filter:n,setFilter:u,sortBy:c,setSortBy:o,searchQuery:h,setSearchQuery:v,selectedBrowser:g,setSelectedBrowser:y,selectedViewport:x,setSelectedViewport:p,availableFilters:N,counts:A,onRefresh:L,loading:V}){let[B,M]=m.useState(!1),H=N.browsers.length>1||N.viewports.length>1;return r.jsxs("div",{className:"space-y-3 md:space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx(Ig,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),r.jsx("input",{type:"text",placeholder:"Search screenshots...",value:h,onChange:q=>v(q.target.value),className:"w-full bg-slate-800 border border-slate-700 rounded-lg pl-10 pr-4 py-3 md:py-2.5 text-white placeholder-slate-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors text-base md:text-sm"})]}),H&&r.jsx("button",{onClick:()=>M(!B),className:`md:hidden inline-flex items-center justify-center bg-slate-800 border border-slate-700 p-3 rounded-lg transition-colors touch-manipulation ${B?"text-amber-400 border-amber-500":"text-slate-300 hover:text-white"}`,title:"Filters",children:r.jsx(og,{className:"w-5 h-5"})}),r.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[r.jsxs("select",{value:c,onChange:q=>o(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]}),r.jsx("button",{onClick:L,disabled:V,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsx("button",{onClick:L,disabled:V,className:"md:hidden inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed touch-manipulation",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1 scroll-snap-x md:flex-wrap md:overflow-visible",children:[r.jsx("span",{className:"hidden md:inline text-sm text-slate-400 mr-1 flex-shrink-0",children:"Status:"}),r.jsxs("button",{onClick:()=>u(kt.ALL),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.ALL?"bg-amber-500 text-slate-900 shadow-lg shadow-amber-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["All ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.all,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.FAILED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Failed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.failed,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.NEW),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["New ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.new,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.PASSED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.PASSED?"bg-emerald-500 text-white shadow-lg shadow-emerald-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Passed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.passed,")"]})]}),N.browsers.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Browser:"}),r.jsxs("select",{value:g,onChange:q=>y(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(q=>r.jsx("option",{value:q,children:q},q))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Viewport:"}),r.jsxs("select",{value:x,onChange:q=>p(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(q=>r.jsx("option",{value:q,children:q},q))]})]})]}),B&&H&&r.jsxs("div",{className:"md:hidden bg-slate-800/50 border border-slate-700 rounded-lg p-3 space-y-3 animate-slide-down",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by:"}),r.jsxs("select",{value:c,onChange:q=>o(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]})]}),N.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser:"}),r.jsxs("select",{value:g,onChange:q=>y(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(q=>r.jsx("option",{value:q,children:q},q))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport:"}),r.jsxs("select",{value:x,onChange:q=>p(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(q=>r.jsx("option",{value:q,children:q},q))]})]})]})]})}function Ev(n){let[u,c]=m.useState("loading");return m.useEffect(()=>{if(!n){c("missing");return}c("loading");let o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),u}function Cv({src:n,alt:u,className:c,style:o,onClick:h}){let v=Ev(n);return v==="missing"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(ou,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",u.toLowerCase()," available"]})]})}):v==="loading"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(fl,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",u.toLowerCase(),"..."]})]})}):v==="error"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(dl,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",u.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})}):r.jsx("img",{src:n,alt:u,className:c,style:o,onClick:h})}function zv(n){return n.id||n.signature||n.name}function Av({status:n}){let u={failed:"bg-red-500",passed:"bg-emerald-500",new:"bg-blue-500","baseline-created":"bg-blue-500"};return r.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${u[n]||"bg-slate-500"}`})}function Ov({userAction:n}){return n==="accepted"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/20 text-emerald-400",children:[r.jsx(Yl,{className:"w-3 h-3"}),"Accepted"]}):n==="rejected"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/20 text-amber-400",children:[r.jsx(Qg,{className:"w-3 h-3"}),"Rejected"]}):null}function Tv(n){return n.properties?.viewport_width&&n.properties?.viewport_height?`${n.properties.viewport_width}×${n.properties.viewport_height}`:n.properties?.viewport?`${n.properties.viewport.width}×${n.properties.viewport.height}`:null}function Mv({comparison:n,onClick:u,userAction:c}){let o=Tv(n),h=n.properties?.browser,v=n.status==="failed",g=n.status==="new"||n.status==="baseline-created",y=n.current||n.baseline;return r.jsxs("button",{onClick:()=>u(n),className:`
|
|
8
|
+
`+a.stack}}var pu=Object.prototype.hasOwnProperty,bu=n.unstable_scheduleCallback,xu=n.unstable_cancelCallback,x1=n.unstable_shouldYield,j1=n.unstable_requestPaint,gt=n.unstable_now,S1=n.unstable_getCurrentPriorityLevel,Vo=n.unstable_ImmediatePriority,Zo=n.unstable_UserBlockingPriority,wi=n.unstable_NormalPriority,w1=n.unstable_LowPriority,Xo=n.unstable_IdlePriority,N1=n.log,E1=n.unstable_setDisableYieldValue,gn=null,vt=null;function ml(e){if(typeof N1=="function"&&E1(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(gn,e)}catch{}}var yt=Math.clz32?Math.clz32:z1,C1=Math.log,A1=Math.LN2;function z1(e){return e>>>=0,e===0?32:31-(C1(e)/A1|0)|0}var Ni=256,Ei=262144,Ci=4194304;function $l(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 Ai(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?i=$l(a):(f&=d,f!==0?i=$l(f):l||(l=d&~e,l!==0&&(i=$l(l))))):(d=a&~s,d!==0?i=$l(d):f!==0?i=$l(f):l||(l=a&~e,l!==0&&(i=$l(l)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:i}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function O1(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 Ko(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function T1(e,t,l,a,i,s){var f=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 d=e.entanglements,x=e.expirationTimes,C=e.hiddenUpdates;for(l=f&~l;0<l;){var R=31-yt(l),_=1<<R;d[R]=0,x[R]=-1;var A=C[R];if(A!==null)for(C[R]=null,R=0;R<A.length;R++){var O=A[R];O!==null&&(O.lane&=-536870913)}l&=~_}a!==0&&Jo(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Jo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function $o(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Fo(e,t){var l=t&-t;return l=(l&42)!==0?1:Su(l),(l&(e.suspendedLanes|t))!==0?0:l}function Su(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 wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wo(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:B0(e.type))}function Io(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var gl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+gl,rt="__reactProps$"+gl,ba="__reactContainer$"+gl,Nu="__reactEvents$"+gl,M1="__reactListeners$"+gl,R1="__reactHandles$"+gl,Po="__reactResources$"+gl,pn="__reactMarker$"+gl;function Eu(e){delete e[Fe],delete e[rt],delete e[Nu],delete e[M1],delete e[R1]}function xa(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ba]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=j0(e);e!==null;){if(l=e[Fe])return l;e=j0(e)}return t}e=l,l=e.parentNode}return null}function ja(e){if(e=e[Fe]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sa(e){var t=e[Po];return t||(t=e[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[pn]=!0}var ef=new Set,tf={};function Fl(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(tf[e]=t,e=0;e<t.length;e++)ef.add(t[e])}var D1=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]*$"),lf={},af={};function _1(e){return pu.call(af,e)?!0:pu.call(lf,e)?!1:D1.test(e)?af[e]=!0:(lf[e]=!0,!1)}function zi(e,t,l){if(_1(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 Oi(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 Xt(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 Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U1(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 i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){if(!e._valueTracker){var t=nf(e)?"checked":"value";e._valueTracker=U1(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=nf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ti(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 L1=/[\n"\\]/g;function At(e){return e.replace(L1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Au(e,t,l,a,i,s,f,d){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?zu(e,f,Ct(t)):l!=null?zu(e,f,Ct(l)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function uf(e,t,l,a,i,s,f,d){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)){Cu(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Cu(e)}function zu(e,t,l){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Na(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rf(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function cf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ke(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Cu(e)}function Ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var B1=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 of(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||B1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ff(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(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 i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&of(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&of(e,s,t[s])}function Ou(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 q1=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"]]),H1=/^[\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 Mi(e){return H1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var Tu=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,Aa=null;function df(e){var t=ja(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Au(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="'+At(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[rt]||null;if(!i)throw Error(o(90));Au(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&sf(a)}break e;case"textarea":rf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Na(e,!!l.multiple,t,!1)}}}var Ru=!1;function hf(e,t,l){if(Ru)return e(t,l);Ru=!0;try{var a=e(t);return a}finally{if(Ru=!1,(Ca!==null||Aa!==null)&&(ps(),Ca&&(t=Ca,e=Aa,Aa=Ca=null,df(t),e)))for(t=0;t<e.length;t++)df(e[t])}}function xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||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(o(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(Jt)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Du=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Du=!1}var vl=null,_u=null,Ri=null;function mf(){if(Ri)return Ri;var e,t=_u,l=t.length,a,i="value"in vl?vl.value:vl.textContent,s=i.length;for(e=0;e<l&&t[e]===i[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===i[s-a];a++);return Ri=i.slice(e,1<a?1-a:void 0)}function Di(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 _i(){return!0}function gf(){return!1}function ct(e){function t(l,a,i,s,f){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_i:gf,this.isPropagationStopped=gf,this}return z(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=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=ct(Wl),Sn=z({},Wl,{view:0,detail:0}),Q1=ct(Sn),Uu,Lu,wn,Li=z({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qu,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!==wn&&(wn&&e.type==="mousemove"?(Uu=e.screenX-wn.screenX,Lu=e.screenY-wn.screenY):Lu=Uu=0,wn=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),vf=ct(Li),k1=z({},Li,{dataTransfer:0}),Y1=ct(k1),G1=z({},Sn,{relatedTarget:0}),Bu=ct(G1),V1=z({},Wl,{animationName:0,elapsedTime:0,pseudoElement:0}),Z1=ct(V1),X1=z({},Wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K1=ct(X1),J1=z({},Wl,{data:0}),yf=ct(J1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F1={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"},W1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W1[e])?!!t[e]:!1}function qu(){return I1}var P1=z({},Sn,{key:function(e){if(e.key){var t=$1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qu,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ey=ct(P1),ty=z({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=ct(ty),ly=z({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),ay=ct(ly),ny=z({},Wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),iy=ct(ny),sy=z({},Li,{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}),uy=ct(sy),ry=z({},Wl,{newState:0,oldState:0}),cy=ct(ry),oy=[9,13,27,32],Hu=Jt&&"CompositionEvent"in window,Nn=null;Jt&&"documentMode"in document&&(Nn=document.documentMode);var fy=Jt&&"TextEvent"in window&&!Nn,bf=Jt&&(!Hu||Nn&&8<Nn&&11>=Nn),xf=" ",jf=!1;function Sf(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function dy(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(jf=!0,xf);case"textInput":return e=t.data,e===xf&&jf?null:e;default:return null}}function hy(e,t){if(za)return e==="compositionend"||!Hu&&Sf(e,t)?(e=mf(),Ri=_u=vl=null,za=!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 bf&&t.locale!=="ko"?null:t.data;default:return null}}var my={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!my[e.type]:t==="textarea"}function Ef(e,t,l,a){Ca?Aa?Aa.push(a):Aa=[a]:Ca=a,t=Es(t,"onChange"),0<t.length&&(l=new Ui("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var En=null,Cn=null;function gy(e){u0(e,0)}function Bi(e){var t=bn(e);if(sf(t))return e}function Cf(e,t){if(e==="change")return t}var Af=!1;if(Jt){var Qu;if(Jt){var ku="oninput"in document;if(!ku){var zf=document.createElement("div");zf.setAttribute("oninput","return;"),ku=typeof zf.oninput=="function"}Qu=ku}else Qu=!1;Af=Qu&&(!document.documentMode||9<document.documentMode)}function Of(){En&&(En.detachEvent("onpropertychange",Tf),Cn=En=null)}function Tf(e){if(e.propertyName==="value"&&Bi(Cn)){var t=[];Ef(t,Cn,e,Mu(e)),hf(gy,t)}}function vy(e,t,l){e==="focusin"?(Of(),En=t,Cn=l,En.attachEvent("onpropertychange",Tf)):e==="focusout"&&Of()}function yy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Cn)}function py(e,t){if(e==="click")return Bi(t)}function by(e,t){if(e==="input"||e==="change")return Bi(t)}function xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:xy;function An(e,t){if(pt(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 i=l[a];if(!pu.call(t,i)||!pt(e[i],t[i]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rf(e,t){var l=Mf(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=Mf(l)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(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=Ti(e.document)}return t}function Yu(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 jy=Jt&&"documentMode"in document&&11>=document.documentMode,Oa=null,Gu=null,zn=null,Vu=!1;function Uf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vu||Oa==null||Oa!==Ti(a)||(a=Oa,"selectionStart"in a&&Yu(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}),zn&&An(zn,a)||(zn=a,a=Es(Gu,"onSelect"),0<a.length&&(t=new Ui("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Oa)))}function Il(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ta={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Zu={},Lf={};Jt&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Pl(e){if(Zu[e])return Zu[e];if(!Ta[e])return e;var t=Ta[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Lf)return Zu[e]=t[l];return e}var Bf=Pl("animationend"),qf=Pl("animationiteration"),Hf=Pl("animationstart"),Sy=Pl("transitionrun"),wy=Pl("transitionstart"),Ny=Pl("transitioncancel"),Qf=Pl("transitionend"),kf=new Map,Xu="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(" ");Xu.push("scrollEnd");function Bt(e,t){kf.set(e,t),Fl(t,[e])}var qi=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)},zt=[],Ma=0,Ku=0;function Hi(){for(var e=Ma,t=Ku=Ma=0;t<e;){var l=zt[t];zt[t++]=null;var a=zt[t];zt[t++]=null;var i=zt[t];zt[t++]=null;var s=zt[t];if(zt[t++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}s!==0&&Yf(l,i,s)}}function Qi(e,t,l,a){zt[Ma++]=e,zt[Ma++]=t,zt[Ma++]=l,zt[Ma++]=a,Ku|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ju(e,t,l,a){return Qi(e,t,l,a),ki(e)}function ea(e,t){return Qi(e,null,null,t),ki(e)}function Yf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!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||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-yt(l),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),s):null}function ki(e){if(50<Fn)throw Fn=0,ac=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ra={};function Ey(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 bt(e,t,l,a){return new Ey(e,t,l,a)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=bt(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 Gf(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 Yi(e,t,l,a,i,s){var f=0;if(a=e,typeof e=="function")$u(e)&&(f=1);else if(typeof e=="string")f=Tp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=bt(31,l,t,i),e.elementType=ve,e.lanes=s,e;case M:return ta(l.children,i,s,t);case H:f=8,i|=24;break;case q:return e=bt(12,l,t,i|2),e.elementType=q,e.lanes=s,e;case xe:return e=bt(13,l,t,i),e.elementType=xe,e.lanes=s,e;case de:return e=bt(19,l,t,i),e.elementType=de,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:f=10;break e;case $:f=9;break e;case ne:f=11;break e;case K:f=14;break e;case ee:f=16,a=null;break e}f=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=bt(f,l,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function ta(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Fu(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Vf(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Wu(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=Zf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Go(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:Go(t)}}var Da=[],_a=0,Gi=null,On=0,Tt=[],Mt=0,yl=null,Yt=1,Gt="";function Ft(e,t){Da[_a++]=On,Da[_a++]=Gi,Gi=e,On=t}function Xf(e,t,l){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,yl=e;var a=Yt;e=Gt;var i=32-yt(a)-1;a&=~(1<<i),l+=1;var s=32-yt(t)+i;if(30<s){var f=i-i%5;s=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Yt=1<<32-yt(t)+i|l<<i|a,Gt=s+e}else Yt=1<<s|l<<i|a,Gt=e}function Iu(e){e.return!==null&&(Ft(e,1),Xf(e,1,0))}function Pu(e){for(;e===Gi;)Gi=Da[--_a],Da[_a]=null,On=Da[--_a],Da[_a]=null;for(;e===yl;)yl=Tt[--Mt],Tt[Mt]=null,Gt=Tt[--Mt],Tt[Mt]=null,Yt=Tt[--Mt],Tt[Mt]=null}function Kf(e,t){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,Yt=t.id,Gt=t.overflow,yl=e}var We=null,ze=null,fe=!1,pl=null,Rt=!1,er=Error(o(519));function bl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tn(Ot(t,e)),er}function Jf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[rt]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<In.length;l++)ue(In[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),cf(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||f0(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||bl(e,!0)}function $f(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:We=We.return}}function Ua(e){if(e!==We)return!1;if(!fe)return $f(e),fe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||pc(e.type,e.memoizedProps)),l=!l),l&&ze&&bl(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=x0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=x0(e)}else t===27?(t=ze,Dl(e.type)?(e=wc,wc=null,ze=e):ze=t):ze=We?_t(e.stateNode.nextSibling):null;return!0}function la(){ze=We=null,fe=!1}function tr(){var e=pl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),pl=null),e}function Tn(e){pl===null?pl=[e]:pl.push(e)}var lr=S(null),aa=null,Wt=null;function xl(e,t,l){Y(lr,t._currentValue),t._currentValue=l}function It(e){e._currentValue=lr.current,U(lr)}function ar(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 nr(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var x=0;x<t.length;x++)if(d.context===t[x]){s.lanes|=l,d=s.alternate,d!==null&&(d.lanes|=l),ar(s.return,l,e),a||(f=null);break e}s=d.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),ar(f,l,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function La(e,t,l,a){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var d=i.type;pt(i.pendingProps.value,f.value)||(e!==null?e.push(d):e=[d])}}else if(i===be.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}i=i.return}e!==null&&nr(t,e,l,a),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){aa=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Ff(aa,e)}function Zi(e,t){return aa===null&&na(e),Ff(e,t)}function Ff(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var Cy=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()})}},Ay=n.unstable_scheduleCallback,zy=n.unstable_NormalPriority,qe={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ir(){return{controller:new Cy,data:new Map,refCount:0}}function Mn(e){e.refCount--,e.refCount===0&&Ay(zy,function(){e.controller.abort()})}var Rn=null,sr=0,Ba=0,qa=null;function Oy(e,t){if(Rn===null){var l=Rn=[];sr=0,Ba=cc(),qa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return sr++,t.then(Wf,Wf),t}function Wf(){if(--sr===0&&Rn!==null){qa!==null&&(qa.status="fulfilled");var e=Rn;Rn=null,Ba=0,qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ty(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var If=T.S;T.S=function(e,t){Uh=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Oy(e,t),If!==null&&If(e,t)};var ia=S(null);function ur(){var e=ia.current;return e!==null?e:Ae.pooledCache}function Xi(e,t){t===null?Y(ia,ia.current):Y(ia,t.pool)}function Pf(){var e=ur();return e===null?null:{parent:qe._currentValue,pool:e}}var Ha=Error(o(460)),rr=Error(o(474)),Ki=Error(o(542)),Ji={then:function(){}};function ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function td(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Kt,Kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e}throw ua=t,Ha}}function sa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,Ha):l}}var ua=null;function ld(){if(ua===null)throw Error(o(459));var e=ua;return ua=null,e}function ad(e){if(e===Ha||e===Ki)throw Error(o(483))}var Qa=null,Dn=0;function $i(e){var t=Dn;return Dn+=1,Qa===null&&(Qa=[]),td(Qa,e,t)}function _n(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===L?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){function t(w,j){if(e){var E=w.deletions;E===null?(w.deletions=[j],w.flags|=16):E.push(j)}}function l(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function a(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=$t(w,j),w.index=0,w.sibling=null,w}function s(w,j,E){return w.index=E,e?(E=w.alternate,E!==null?(E=E.index,E<j?(w.flags|=67108866,j):E):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function f(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,j,E,D){return j===null||j.tag!==6?(j=Fu(E,w.mode,D),j.return=w,j):(j=i(j,E),j.return=w,j)}function x(w,j,E,D){var F=E.type;return F===M?R(w,j,E.props.children,D,E.key):j!==null&&(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type)?(j=i(j,E.props),_n(j,E),j.return=w,j):(j=Yi(E.type,E.key,E.props,null,w.mode,D),_n(j,E),j.return=w,j)}function C(w,j,E,D){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Wu(E,w.mode,D),j.return=w,j):(j=i(j,E.children||[]),j.return=w,j)}function R(w,j,E,D,F){return j===null||j.tag!==7?(j=ta(E,w.mode,D,F),j.return=w,j):(j=i(j,E),j.return=w,j)}function _(w,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Fu(""+j,w.mode,E),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case V:return E=Yi(j.type,j.key,j.props,null,w.mode,E),_n(E,j),E.return=w,E;case B:return j=Wu(j,w.mode,E),j.return=w,j;case ee:return j=sa(j),_(w,j,E)}if(Ke(j)||J(j))return j=ta(j,w.mode,E,null),j.return=w,j;if(typeof j.then=="function")return _(w,$i(j),E);if(j.$$typeof===k)return _(w,Zi(w,j),E);Fi(w,j)}return null}function A(w,j,E,D){var F=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return F!==null?null:d(w,j,""+E,D);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case V:return E.key===F?x(w,j,E,D):null;case B:return E.key===F?C(w,j,E,D):null;case ee:return E=sa(E),A(w,j,E,D)}if(Ke(E)||J(E))return F!==null?null:R(w,j,E,D,null);if(typeof E.then=="function")return A(w,j,$i(E),D);if(E.$$typeof===k)return A(w,j,Zi(w,E),D);Fi(w,E)}return null}function O(w,j,E,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return w=w.get(E)||null,d(j,w,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return w=w.get(D.key===null?E:D.key)||null,x(j,w,D,F);case B:return w=w.get(D.key===null?E:D.key)||null,C(j,w,D,F);case ee:return D=sa(D),O(w,j,E,D,F)}if(Ke(D)||J(D))return w=w.get(E)||null,R(j,w,D,F,null);if(typeof D.then=="function")return O(w,j,E,$i(D),F);if(D.$$typeof===k)return O(w,j,E,Zi(j,D),F);Fi(j,D)}return null}function G(w,j,E,D){for(var F=null,me=null,X=j,ae=j=0,ce=null;X!==null&&ae<E.length;ae++){X.index>ae?(ce=X,X=null):ce=X.sibling;var ge=A(w,X,E[ae],D);if(ge===null){X===null&&(X=ce);break}e&&X&&ge.alternate===null&&t(w,X),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge,X=ce}if(ae===E.length)return l(w,X),fe&&Ft(w,ae),F;if(X===null){for(;ae<E.length;ae++)X=_(w,E[ae],D),X!==null&&(j=s(X,j,ae),me===null?F=X:me.sibling=X,me=X);return fe&&Ft(w,ae),F}for(X=a(X);ae<E.length;ae++)ce=O(X,w,ae,E[ae],D),ce!==null&&(e&&ce.alternate!==null&&X.delete(ce.key===null?ae:ce.key),j=s(ce,j,ae),me===null?F=ce:me.sibling=ce,me=ce);return e&&X.forEach(function(ql){return t(w,ql)}),fe&&Ft(w,ae),F}function I(w,j,E,D){if(E==null)throw Error(o(151));for(var F=null,me=null,X=j,ae=j=0,ce=null,ge=E.next();X!==null&&!ge.done;ae++,ge=E.next()){X.index>ae?(ce=X,X=null):ce=X.sibling;var ql=A(w,X,ge.value,D);if(ql===null){X===null&&(X=ce);break}e&&X&&ql.alternate===null&&t(w,X),j=s(ql,j,ae),me===null?F=ql:me.sibling=ql,me=ql,X=ce}if(ge.done)return l(w,X),fe&&Ft(w,ae),F;if(X===null){for(;!ge.done;ae++,ge=E.next())ge=_(w,ge.value,D),ge!==null&&(j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return fe&&Ft(w,ae),F}for(X=a(X);!ge.done;ae++,ge=E.next())ge=O(X,w,ae,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&X.delete(ge.key===null?ae:ge.key),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return e&&X.forEach(function(kp){return t(w,kp)}),fe&&Ft(w,ae),F}function Ee(w,j,E,D){if(typeof E=="object"&&E!==null&&E.type===M&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case V:e:{for(var F=E.key;j!==null;){if(j.key===F){if(F=E.type,F===M){if(j.tag===7){l(w,j.sibling),D=i(j,E.props.children),D.return=w,w=D;break e}}else if(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type){l(w,j.sibling),D=i(j,E.props),_n(D,E),D.return=w,w=D;break e}l(w,j);break}else t(w,j);j=j.sibling}E.type===M?(D=ta(E.props.children,w.mode,D,E.key),D.return=w,w=D):(D=Yi(E.type,E.key,E.props,null,w.mode,D),_n(D,E),D.return=w,w=D)}return f(w);case B:e:{for(F=E.key;j!==null;){if(j.key===F)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){l(w,j.sibling),D=i(j,E.children||[]),D.return=w,w=D;break e}else{l(w,j);break}else t(w,j);j=j.sibling}D=Wu(E,w.mode,D),D.return=w,w=D}return f(w);case ee:return E=sa(E),Ee(w,j,E,D)}if(Ke(E))return G(w,j,E,D);if(J(E)){if(F=J(E),typeof F!="function")throw Error(o(150));return E=F.call(E),I(w,j,E,D)}if(typeof E.then=="function")return Ee(w,j,$i(E),D);if(E.$$typeof===k)return Ee(w,j,Zi(w,E),D);Fi(w,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(l(w,j.sibling),D=i(j,E),D.return=w,w=D):(l(w,j),D=Fu(E,w.mode,D),D.return=w,w=D),f(w)):l(w,j)}return function(w,j,E,D){try{Dn=0;var F=Ee(w,j,E,D);return Qa=null,F}catch(X){if(X===Ha||X===Ki)throw X;var me=bt(29,X,null,w.mode);return me.lanes=D,me.return=w,me}finally{}}}var ra=nd(!0),id=nd(!1),jl=!1;function cr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function or(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 Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ki(e),Yf(e,null,l),t}return Qi(e,a,t,l),ki(e)}function Un(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,$o(e,l)}}function fr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?i=s=t:s=s.next=t}else i=s=t;l={baseState:a.baseState,firstBaseUpdate:i,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 dr=!1;function Ln(){if(dr){var e=qa;if(e!==null)throw e}}function Bn(e,t,l,a){dr=!1;var i=e.updateQueue;jl=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var x=d,C=x.next;x.next=null,f===null?s=C:f.next=C,f=x;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==f&&(d===null?R.firstBaseUpdate=C:d.next=C,R.lastBaseUpdate=x))}if(s!==null){var _=i.baseState;f=0,R=C=x=null,d=s;do{var A=d.lane&-536870913,O=A!==d.lane;if(O?(re&A)===A:(a&A)===A){A!==0&&A===Ba&&(dr=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var G=e,I=d;A=t;var Ee=l;switch(I.tag){case 1:if(G=I.payload,typeof G=="function"){_=G.call(Ee,_,A);break e}_=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=I.payload,A=typeof G=="function"?G.call(Ee,_,A):G,A==null)break e;_=z({},_,A);break e;case 2:jl=!0}}A=d.callback,A!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[A]:O.push(A))}else O={lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(C=R=O,x=_):R=R.next=O,f|=A;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;O=d,d=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);R===null&&(x=_),i.baseState=x,i.firstBaseUpdate=C,i.lastBaseUpdate=R,s===null&&(i.shared.lanes=0),zl|=f,e.lanes=f,e.memoizedState=_}}function sd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ud(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)sd(l[e],t)}var ka=S(null),Wi=S(0);function rd(e,t){e=ul,Y(Wi,e),Y(ka,t),ul=e|t.baseLanes}function hr(){Y(Wi,ul),Y(ka,ka.current)}function mr(){ul=Wi.current,U(ka),U(Wi)}var xt=S(null),Dt=null;function Nl(e){var t=e.alternate;Y(Le,Le.current&1),Y(xt,e),Dt===null&&(t===null||ka.current!==null||t.memoizedState!==null)&&(Dt=e)}function gr(e){Y(Le,Le.current),Y(xt,e),Dt===null&&(Dt=e)}function cd(e){e.tag===22?(Y(Le,Le.current),Y(xt,e),Dt===null&&(Dt=e)):El()}function El(){Y(Le,Le.current),Y(xt,xt.current)}function jt(e){U(xt),Dt===e&&(Dt=null),U(Le)}var Le=S(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jc(l)||Sc(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 Pt=0,le=null,we=null,He=null,Pi=!1,Ya=!1,ca=!1,es=0,qn=0,Ga=null,My=0;function De(){throw Error(o(321))}function vr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function yr(e,t,l,a,i,s){return Pt=s,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Xd:Rr,ca=!1,s=l(a,i),ca=!1,Ya&&(s=fd(t,l,a,i)),od(e),s}function od(e){T.H=kn;var t=we!==null&&we.next!==null;if(Pt=0,He=we=le=null,Pi=!1,qn=0,Ga=null,t)throw Error(o(300));e===null||Qe||(e=e.dependencies,e!==null&&Vi(e)&&(Qe=!0))}function fd(e,t,l,a){le=e;var i=0;do{if(Ya&&(Ga=null),qn=0,Ya=!1,25<=i)throw Error(o(301));if(i+=1,He=we=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}T.H=Kd,s=t(l,a)}while(Ya);return s}function Ry(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?Hn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(le.flags|=1024),t}function pr(){var e=es!==0;return es=0,e}function br(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xr(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}Pt=0,He=we=le=null,Ya=!1,qn=es=0,Ga=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?le.memoizedState=He=e:He=He.next=e,He}function Be(){if(we===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=He===null?le.memoizedState:He.next;if(t!==null)He=t,we=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},He===null?le.memoizedState=He=e:He=He.next=e}return He}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hn(e){var t=qn;return qn+=1,Ga===null&&(Ga=[]),e=td(Ga,e,t),t=le,(He===null?t.memoizedState:He.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Xd:Rr),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hn(e);if(e.$$typeof===k)return Ie(e)}throw Error(o(438,String(e)))}function jr(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ts(),le.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]=Me;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function as(e){var t=Be();return Sr(t,we,e)}function Sr(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=f=null,x=null,C=t,R=!1;do{var _=C.lane&-536870913;if(_!==C.lane?(re&_)===_:(Pt&_)===_){var A=C.revertLane;if(A===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_===Ba&&(R=!0);else if((Pt&A)===A){C=C.next,A===Ba&&(R=!0);continue}else _={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(d=x=_,f=s):x=x.next=_,le.lanes|=A,zl|=A;_=C.action,ca&&l(s,_),s=C.hasEagerState?C.eagerState:l(s,_)}else A={lane:_,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},x===null?(d=x=A,f=s):x=x.next=A,le.lanes|=_,zl|=_;C=C.next}while(C!==null&&C!==t);if(x===null?f=s:x.next=d,!pt(s,e.memoizedState)&&(Qe=!0,R&&(l=qa,l!==null)))throw l;e.memoizedState=s,e.baseState=f,e.baseQueue=x,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wr(e){var t=Be(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,s=t.memoizedState;if(i!==null){l.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);pt(s,t.memoizedState)||(Qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function dd(e,t,l){var a=le,i=Be(),s=fe;if(s){if(l===void 0)throw Error(o(407));l=l()}else l=t();var f=!pt((we||i).memoizedState,l);if(f&&(i.memoizedState=l,Qe=!0),i=i.queue,Cr(gd.bind(null,a,i,e),[e]),i.getSnapshot!==t||f||He!==null&&He.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,i,l,t),null),Ae===null)throw Error(o(349));s||(Pt&127)!==0||hd(a,t,l)}return l}function hd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=ts(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function md(e,t,l,a){t.value=l,t.getSnapshot=a,vd(t)&&yd(e)}function gd(e,t,l){return l(function(){vd(t)&&yd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function yd(e){var t=ea(e,2);t!==null&&mt(t,e,2)}function Nr(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ca){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function pd(e,t,l,a){return e.baseState=l,Sr(e,we,typeof a=="function"?a:el)}function Dy(e,t,l,a,i){if(ss(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};T.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,bd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function bd(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=T.T,f={};T.T=f;try{var d=l(i,a),x=T.S;x!==null&&x(f,d),xd(e,t,d)}catch(C){Er(e,t,C)}finally{s!==null&&f.types!==null&&(s.types=f.types),T.T=s}}else try{s=l(i,a),xd(e,t,s)}catch(C){Er(e,t,C)}}function xd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){jd(e,t,a)},function(a){return Er(e,t,a)}):jd(e,t,l)}function jd(e,t,l){t.status="fulfilled",t.value=l,Sd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,bd(e,l)))}function Er(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Nd(e,t){if(fe){var l=Ae.formState;if(l!==null){e:{var a=le;if(fe){if(ze){t:{for(var i=ze,s=Rt;i.nodeType!==8;){if(!s){i=null;break t}if(i=_t(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){ze=_t(i.nextSibling),a=i.data==="F!";break e}}bl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},l.queue=a,l=Gd.bind(null,le,a),a.dispatch=l,a=Nr(!1),s=Mr.bind(null,le,!1,a.queue),a=st(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Dy.bind(null,le,i,s,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ed(e){var t=Be();return Cd(t,we,e)}function Cd(e,t,l){if(t=Sr(e,t,wd)[0],e=as(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Hn(t)}catch(f){throw f===Ha?Ki:f}else a=t;t=Be();var i=t.queue,s=i.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Va(9,{destroy:void 0},_y.bind(null,i,l),null)),[a,s,e]}function _y(e,t){e.action=t}function Ad(e){var t=Be(),l=we;if(l!==null)return Cd(t,l,e);Be(),t=t.memoizedState,l=Be();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=ts(),le.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 zd(){return Be().memoizedState}function ns(e,t,l,a){var i=st();le.flags|=e,i.memoizedState=Va(1|t,{destroy:void 0},l,a===void 0?null:a)}function is(e,t,l,a){var i=Be();a=a===void 0?null:a;var s=i.memoizedState.inst;we!==null&&a!==null&&vr(a,we.memoizedState.deps)?i.memoizedState=Va(t,s,l,a):(le.flags|=e,i.memoizedState=Va(1|t,s,l,a))}function Od(e,t){ns(8390656,8,e,t)}function Cr(e,t){is(2048,8,e,t)}function Uy(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=ts(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Td(e){var t=Be().memoizedState;return Uy({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Md(e,t){return is(4,2,e,t)}function Rd(e,t){return is(4,4,e,t)}function Dd(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 _d(e,t,l){l=l!=null?l.concat([e]):null,is(4,4,Dd.bind(null,t,e),l)}function Ar(){}function Ud(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&vr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ld(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&vr(t,a[1]))return a[0];if(a=e(),ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a}function zr(e,t,l){return l===void 0||(Pt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Bh(),le.lanes|=e,zl|=e,l)}function Bd(e,t,l,a){return pt(l,t)?l:ka.current!==null?(e=zr(e,l,a),pt(e,t)||(Qe=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(re&261930)===0?(Qe=!0,e.memoizedState=l):(e=Bh(),le.lanes|=e,zl|=e,t)}function qd(e,t,l,a,i){var s=Q.p;Q.p=s!==0&&8>s?s:8;var f=T.T,d={};T.T=d,Mr(e,!1,t,l);try{var x=i(),C=T.S;if(C!==null&&C(d,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var R=Ty(x,a);Qn(e,t,R,Nt(e))}else Qn(e,t,a,Nt(e))}catch(_){Qn(e,t,{then:function(){},status:"rejected",reason:_},Nt())}finally{Q.p=s,f!==null&&d.types!==null&&(f.types=d.types),T.T=f}}function Ly(){}function Or(e,t,l,a){if(e.tag!==5)throw Error(o(476));var i=Hd(e).queue;qd(e,i,t,W,l===null?Ly:function(){return Qd(e),l(a)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:W},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),Qn(e,t.next.queue,{},Nt())}function Tr(){return Ie(ai)}function kd(){return Be().memoizedState}function Yd(){return Be().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=Sl(l);var a=wl(t,e,l);a!==null&&(mt(a,t,l),Un(a,t,l)),t={cache:ir()},e.payload=t;return}t=t.return}}function qy(e,t,l){var a=Nt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ss(e)?Vd(t,l):(l=Ju(e,t,l,a),l!==null&&(mt(l,e,a),Zd(l,t,a)))}function Gd(e,t,l){var a=Nt();Qn(e,t,l,a)}function Qn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ss(e))Vd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,d=s(f,l);if(i.hasEagerState=!0,i.eagerState=d,pt(d,f))return Qi(e,t,i,0),Ae===null&&Hi(),!1}catch{}finally{}if(l=Ju(e,t,i,a),l!==null)return mt(l,e,a),Zd(l,t,a),!0}return!1}function Mr(e,t,l,a){if(a={lane:2,revertLane:cc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ss(e)){if(t)throw Error(o(479))}else t=Ju(e,l,a,2),t!==null&&mt(t,e,2)}function ss(e){var t=e.alternate;return e===le||t!==null&&t===le}function Vd(e,t){Ya=Pi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Zd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,$o(e,l)}}var kn={readContext:Ie,use:ls,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};kn.useEffectEvent=De;var Xd={readContext:Ie,use:ls,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Od,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ns(4194308,4,Dd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var i=l(t);if(ca){ml(!0);try{l(t)}finally{ml(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=qy.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Nr(e);var t=e.queue,l=Gd.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ar,useDeferredValue:function(e,t){var l=st();return zr(l,e,t)},useTransition:function(){var e=Nr(!1);return e=qd.bind(null,le,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,i=st();if(fe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Ae===null)throw Error(o(349));(re&127)!==0||hd(a,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,Od(gd.bind(null,a,s,e),[e]),a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,s,l,t),null),l},useId:function(){var e=st(),t=Ae.identifierPrefix;if(fe){var l=Gt,a=Yt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=es++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=My++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tr,useFormState:Nd,useActionState:Nd,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Mr.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:jr,useCacheRefresh:function(){return st().memoizedState=By.bind(null,le)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Rr={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:as,useRef:zd,useState:function(){return as(el)},useDebugValue:Ar,useDeferredValue:function(e,t){var l=Be();return Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=as(el)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:Ed,useActionState:Ed,useOptimistic:function(e,t){var l=Be();return pd(l,we,e,t)},useMemoCache:jr,useCacheRefresh:Yd};Rr.useEffectEvent=Td;var Kd={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:wr,useRef:zd,useState:function(){return wr(el)},useDebugValue:Ar,useDeferredValue:function(e,t){var l=Be();return we===null?zr(l,e,t):Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=wr(el)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var l=Be();return we!==null?pd(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jr,useCacheRefresh:Yd};Kd.useEffectEvent=Td;function Dr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:z({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _r={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=wl(e,a,l),t!==null&&(mt(t,e,l),Un(t,e,l))}};function Jd(e,t,l,a,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,f):t.prototype&&t.prototype.isPureReactComponent?!An(l,a)||!An(i,s):!0}function $d(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&&_r.enqueueReplaceState(t,t.state,null)}function oa(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=z({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Fd(e){qi(e)}function Wd(e){console.error(e)}function Id(e){qi(e)}function us(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Pd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ur(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){us(e,t)},l}function eh(e){return e=Sl(e),e.tag=3,e}function th(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Pd(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Pd(t,l,a),typeof i!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Hy(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&La(t,l,i,!0),l=xt.current,l!==null){switch(l.tag){case 31:case 13:return Dt===null?bs():l.alternate===null&&_e===0&&(_e=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Ji?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),sc(e,a,i)),!1;case 22:return l.flags|=65536,a===Ji?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)),sc(e,a,i)),!1}throw Error(o(435,l.tag))}return sc(e,a,i),bs(),!1}if(fe)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==er&&(e=Error(o(422),{cause:a}),Tn(Ot(e,l)))):(a!==er&&(t=Error(o(423),{cause:a}),Tn(Ot(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Ot(a,l),i=Ur(e.stateNode,a,i),fr(e,i),_e!==4&&(_e=2)),!1;var s=Error(o(520),{cause:a});if(s=Ot(s,l),$n===null?$n=[s]:$n.push(s),_e!==4&&(_e=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Ur(l.stateNode,a,e),fr(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"&&(Ol===null||!Ol.has(s))))return l.flags|=65536,i&=-i,l.lanes|=i,i=eh(i),th(i,e,l,a),fr(l,i),!1}l=l.return}while(l!==null);return!1}var Lr=Error(o(461)),Qe=!1;function Pe(e,t,l,a){t.child=e===null?id(t,null,l,a):ra(t,e.child,l,a)}function lh(e,t,l,a,i){l=l.render;var s=t.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return na(t),a=yr(e,t,l,f,s,i),d=pr(),e!==null&&!Qe?(br(e,t,i),tl(e,t,i)):(fe&&d&&Iu(t),t.flags|=1,Pe(e,t,a,i),t.child)}function ah(e,t,l,a,i){if(e===null){var s=l.type;return typeof s=="function"&&!$u(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,nh(e,t,s,a,i)):(e=Yi(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vr(e,i)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:An,l(f,a)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,e=$t(s,a),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,l,a,i){if(e!==null){var s=e.memoizedProps;if(An(s,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=s,Vr(e,i))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,tl(e,t,i)}return Br(e,t,l,a,i)}function ih(e,t,l,a){var i=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,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return sh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,s!==null?s.cachePool:null),s!==null?rd(t,s):hr(),cd(t);else return a=t.lanes=536870912,sh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Xi(t,s.cachePool),rd(t,s),El(),t.memoizedState=null):(e!==null&&Xi(t,null),hr(),El());return Pe(e,t,i,l),t.child}function Yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,l,a,i){var s=ur();return s=s===null?null:{parent:qe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Xi(t,null),hr(),cd(t),e!==null&&La(e,t,a,!0),t.childLanes=i,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uh(e,t,l){return ra(t,e.child,null,l),e=rs(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Qy(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(a.mode==="hidden")return e=rs(t,a),t.lanes=536870912,Yn(null,e);if(gr(t),(e=ze)?(e=b0(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,ze=null)):e=null,e===null)throw bl(t);return t.lanes=536870912,null}return rs(t,a)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(gr(t),i)if(t.flags&256)t.flags&=-257,t=uh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Qe||La(e,t,l,!1),i=(l&e.childLanes)!==0,Qe||i){if(a=Ae,a!==null&&(f=Fo(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,ea(e,f),mt(a,e,f),Lr;bs(),t=uh(e,t,l)}else e=s.treeContext,ze=_t(f.nextSibling),We=t,fe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=rs(t,a),t.flags|=4096;return t}return e=$t(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cs(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(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Br(e,t,l,a,i){return na(t),l=yr(e,t,l,a,void 0,i),a=pr(),e!==null&&!Qe?(br(e,t,i),tl(e,t,i)):(fe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,i),t.child)}function rh(e,t,l,a,i,s){return na(t),t.updateQueue=null,l=fd(t,a,l,i),od(e),a=pr(),e!==null&&!Qe?(br(e,t,s),tl(e,t,s)):(fe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,s),t.child)}function ch(e,t,l,a,i){if(na(t),t.stateNode===null){var s=Ra,f=l.contextType;typeof f=="object"&&f!==null&&(s=Ie(f)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_r,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},cr(t),f=l.contextType,s.context=typeof f=="object"&&f!==null?Ie(f):Ra,s.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Dr(t,l,f,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&_r.enqueueReplaceState(s,s.state,null),Bn(t,a,s,i),Ln(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,x=oa(l,d);s.props=x;var C=s.context,R=l.contextType;f=Ra,typeof R=="object"&&R!==null&&(f=Ie(R));var _=l.getDerivedStateFromProps;R=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||C!==f)&&$d(t,s,a,f),jl=!1;var A=t.memoizedState;s.state=A,Bn(t,a,s,i),Ln(),C=t.memoizedState,d||A!==C||jl?(typeof _=="function"&&(Dr(t,l,_,a),C=t.memoizedState),(x=jl||Jd(t,l,x,a,A,C,f))?(R||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=C),s.props=a,s.state=C,s.context=f,a=x):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,or(e,t),f=t.memoizedProps,R=oa(l,f),s.props=R,_=t.pendingProps,A=s.context,C=l.contextType,x=Ra,typeof C=="object"&&C!==null&&(x=Ie(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==_||A!==x)&&$d(t,s,a,x),jl=!1,A=t.memoizedState,s.state=A,Bn(t,a,s,i),Ln();var O=t.memoizedState;f!==_||A!==O||jl||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof d=="function"&&(Dr(t,l,d,a),O=t.memoizedState),(R=jl||Jd(t,l,R,a,A,O,x)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,O,x),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,O,x)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),s.props=a,s.state=O,s.context=x,a=R):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,cs(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=ra(t,e.child,null,i),t.child=ra(t,null,l,i)):Pe(e,t,l,i),t.memoizedState=s.state,e=t.child):e=tl(e,t,i),e}function oh(e,t,l,a){return la(),t.flags|=256,Pe(e,t,l,a),t.child}var qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hr(e){return{baseLanes:e,cachePool:Pf()}}function Qr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=wt),e}function fh(e,t,l){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(i?Nl(t):El(),(e=ze)?(e=b0(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,ze=null)):e=null,e===null)throw bl(t);return Sc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,i?(El(),i=t.mode,d=os({mode:"hidden",children:d},i),a=ta(a,i,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(null,a)):(Nl(t),kr(t,d))}var x=e.memoizedState;if(x!==null&&(d=x.dehydrated,d!==null)){if(s)t.flags&256?(Nl(t),t.flags&=-257,t=Yr(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,i=t.mode,a=os({mode:"visible",children:a.children},i),d=ta(d,i,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ra(t,e.child,null,l),a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,t=Yn(null,a));else if(Nl(t),Sc(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Tn({value:a,source:null,stack:null}),t=Yr(e,t,l)}else if(Qe||La(e,t,l,!1),f=(l&e.childLanes)!==0,Qe||f){if(f=Ae,f!==null&&(a=Fo(f,l),a!==0&&a!==x.retryLane))throw x.retryLane=a,ea(e,a),mt(f,e,a),Lr;jc(d)||bs(),t=Yr(e,t,l)}else jc(d)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,ze=_t(d.nextSibling),We=t,fe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=kr(t,a.children),t.flags|=4096);return t}return i?(El(),d=a.fallback,i=t.mode,x=e.child,C=x.sibling,a=$t(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,C!==null?d=$t(C,d):(d=ta(d,i,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Yn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Hr(l):(i=d.cachePool,i!==null?(x=qe._currentValue,i=i.parent!==x?{parent:x,pool:x}:i):i=Pf(),d={baseLanes:d.baseLanes|l,cachePool:i}),a.memoizedState=d,a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(e.child,a)):(Nl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function kr(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,l){return ra(t,e.child,null,l),e=kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ar(e.return,t,l)}function Gr(e,t,l,a,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=i,f.treeForkCount=s)}function hh(e,t,l){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var f=Le.current,d=(f&2)!==0;if(d?(f=f&1|2,t.flags|=128):f&=1,Y(Le,f),Pe(e,t,a,l),a=fe?On:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dh(e,l,t);else if(e.tag===19)dh(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(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&Ii(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Gr(t,!1,i,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ii(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Gr(t,!0,l,null,s,a);break;case"together":Gr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(La(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vi(e)))}function ky(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),xl(t,qe,e.memoizedState.cache),la();break;case 27:case 5:mn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Nl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?fh(e,t,l):(Nl(t),e=tl(e,t,l),e!==null?e.sibling:null);Nl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(La(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return hh(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Le,Le.current),a)break;return null;case 22:return t.lanes=0,ih(e,t,l,t.pendingProps);case 24:xl(t,qe,e.memoizedState.cache)}return tl(e,t,l)}function mh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!Vr(e,l)&&(t.flags&128)===0)return Qe=!1,ky(e,t,l);Qe=(e.flags&131072)!==0}else Qe=!1,fe&&(t.flags&1048576)!==0&&Xf(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=sa(t.elementType),t.type=e,typeof e=="function")$u(e)?(a=oa(e,a),t.tag=1,t=ch(null,t,e,a,l)):(t.tag=0,t=Br(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===ne){t.tag=11,t=lh(null,t,e,a,l);break e}else if(i===K){t.tag=14,t=ah(null,t,e,a,l);break e}}throw t=Ge(e)||e,Error(o(306,t,""))}}return t;case 0:return Br(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=oa(a,t.pendingProps),ch(e,t,a,i,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,or(e,t),Bn(t,a,null,l);var f=t.memoizedState;if(a=f.cache,xl(t,qe,a),a!==s.cache&&nr(t,[qe],l,!0),Ln(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=oh(e,t,a,l);break e}else if(a!==i){i=Ot(Error(o(424)),t),Tn(i),t=oh(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(ze=_t(e.firstChild),We=t,fe=!0,pl=null,Rt=!0,l=id(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(la(),a===i){t=tl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return cs(e,t),e===null?(l=E0(t.type,null,t.pendingProps,null))?t.memoizedState=l:fe||(l=t.type,e=t.pendingProps,a=Cs(ie.current).createElement(l),a[Fe]=t,a[rt]=e,et(a,l,e),Je(a),t.stateNode=a):t.memoizedState=E0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mn(t),e===null&&fe&&(a=t.stateNode=S0(t.type,t.pendingProps,ie.current),We=t,Rt=!0,i=ze,Dl(t.type)?(wc=i,ze=_t(a.firstChild)):ze=i),Pe(e,t,t.pendingProps.children,l),cs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((i=a=ze)&&(a=yp(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,We=t,ze=_t(a.firstChild),Rt=!1,i=!0):i=!1),i||bl(t)),mn(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,a=s.children,pc(i,s)?a=null:f!==null&&pc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=yr(e,t,Ry,null,null,l),ai._currentValue=i),cs(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=ze)&&(l=pp(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,We=t,ze=null,e=!0):e=!1),e||bl(t)),null;case 13:return fh(e,t,l);case 4:return it(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ra(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return lh(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,xl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,na(t),i=Ie(i),a=a(i),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return ah(e,t,t.type,t.pendingProps,l);case 15:return nh(e,t,t.type,t.pendingProps,l);case 19:return hh(e,t,l);case 31:return Qy(e,t,l);case 22:return ih(e,t,l,t.pendingProps);case 24:return na(t),a=Ie(qe),e===null?(i=ur(),i===null&&(i=Ae,s=ir(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=l),i=s),t.memoizedState={parent:a,cache:i},cr(t),xl(t,qe,i)):((e.lanes&l)!==0&&(or(e,t),Bn(t,null,null,l),Ln()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xl(t,qe,a)):(a=s.cache,xl(t,qe,a),a!==i.cache&&nr(t,[qe],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ll(e){e.flags|=4}function Zr(e,t,l,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(kh())e.flags|=8192;else throw ua=Ji,rr}else e.flags&=-16777217}function gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(kh())e.flags|=8192;else throw ua=Ji,rr}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ko():536870912,e.lanes|=t,Ja|=t)}function Gn(e,t){if(!fe)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 Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Yy(e,t,l){var a=t.pendingProps;switch(Pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(qe),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ua(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tr())),Oe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(ll(t),s!==null?(Oe(t),gh(t,s)):(Oe(t),Zr(t,i,null,a,l))):s?s!==e.memoizedState?(ll(t),Oe(t),gh(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),Oe(t),Zr(t,i,e,a,l)),null;case 27:if(Si(t),l=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=Z.current,Ua(t)?Jf(t):(e=S0(i,a,l),t.stateNode=e,ll(t))}return Oe(t),null;case 5:if(Si(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(s=Z.current,Ua(t))Jf(t);else{var f=Cs(ie.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}s[Fe]=t,s[rt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(et(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return Oe(t),Zr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Ua(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=We,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||f0(e.nodeValue,l)),e||bl(t,!0)}else e=Cs(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ua(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ua(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),i=!1}else i=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),fs(t,t.updateQueue),Oe(t),null);case 4:return Ue(),e===null&&hc(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(U(Le),a=t.memoizedState,a===null)return Oe(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)Gn(a,!1);else{if(_e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ii(e),s!==null){for(t.flags|=128,Gn(a,!1),e=s.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Gf(l,e),l=l.sibling;return Y(Le,Le.current&1|2),fe&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>vs&&(t.flags|=128,i=!0,Gn(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ii(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!fe)return Oe(t),null}else 2*gt()-a.renderingStartTime>vs&&l!==536870912&&(t.flags|=128,i=!0,Gn(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=gt(),e.sibling=null,l=Le.current,Y(Le,i?l&1|2:l&1),fe&&Ft(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return jt(t),mr(),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&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&fs(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&&U(ia),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gy(e,t){switch(Pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(qe),Ue(),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(jt(t),t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Le),null;case 4:return Ue(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),mr(),e!==null&&U(ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(qe),null;case 25:return null;default:return null}}function vh(e,t){switch(Pu(t),t.tag){case 3:It(qe),Ue();break;case 26:case 27:case 5:Si(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:U(Le);break;case 10:It(t.type);break;case 22:case 23:jt(t),mr(),e!==null&&U(ia);break;case 24:It(qe)}}function Vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==i)}}catch(d){Se(t,t.return,d)}}function Cl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,i=t;var x=l,C=d;try{C()}catch(R){Se(i,x,R)}}}a=a.next}while(a!==s)}}catch(R){Se(t,t.return,R)}}function yh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ud(t,l)}catch(a){Se(e,e.return,a)}}}function ph(e,t,l){l.props=oa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function Zn(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(i){Se(e,t,i)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Se(e,t,i)}else l.current=null}function bh(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(i){Se(e,e.return,i)}}function Xr(e,t,l){try{var a=e.stateNode;fp(a,e.type,l,t),a[rt]=t}catch(i){Se(e,e.return,i)}}function xh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Kr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(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&&Dl(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 Jr(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=Kt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Jr(e,t,l),e=e.sibling;e!==null;)Jr(e,t,l),e=e.sibling}function ds(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&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ds(e,t,l),e=e.sibling;e!==null;)ds(e,t,l),e=e.sibling}function jh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);et(t,a,l),t[Fe]=e,t[rt]=l}catch(s){Se(e,e.return,s)}}var al=!1,ke=!1,$r=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Vy(e,t){if(e=e.containerInfo,vc=Ds,e=_f(e),Yu(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 i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var f=0,d=-1,x=-1,C=0,R=0,_=e,A=null;t:for(;;){for(var O;_!==l||i!==0&&_.nodeType!==3||(d=f+i),_!==s||a!==0&&_.nodeType!==3||(x=f+a),_.nodeType===3&&(f+=_.nodeValue.length),(O=_.firstChild)!==null;)A=_,_=O;for(;;){if(_===e)break t;if(A===l&&++C===i&&(d=f),A===s&&++R===a&&(x=f),(O=_.nextSibling)!==null)break;_=A,A=_.parentNode}_=O}l=d===-1||x===-1?null:{start:d,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(yc={focusedElem:e,selectionRange:l},Ds=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,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++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,i=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var G=oa(l.type,i);e=a.getSnapshotBeforeUpdate(G,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){Se(l,l.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xc(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function wh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:il(e,l),a&4&&Vn(5,l);break;case 1:if(il(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Se(l,l.return,f)}else{var i=oa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Se(l,l.return,f)}}a&64&&yh(l),a&512&&Zn(l,l.return);break;case 3:if(il(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{ud(e,t)}catch(f){Se(l,l.return,f)}}break;case 27:t===null&&a&4&&jh(l);case 26:case 5:il(e,l),t===null&&a&4&&bh(l),a&512&&Zn(l,l.return);break;case 12:il(e,l);break;case 31:il(e,l),a&4&&Ch(e,l);break;case 13:il(e,l),a&4&&Ah(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Py.bind(null,l),bp(e,l))));break;case 22:if(a=l.memoizedState!==null||al,!a){t=t!==null&&t.memoizedState!==null||ke,i=al;var s=ke;al=a,(ke=t)&&!s?sl(e,l,(l.subtreeFlags&8772)!==0):il(e,l),al=i,ke=s}break;case 30:break;default:il(e,l)}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eu(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 Re=null,ot=!1;function nl(e,t,l){for(l=l.child;l!==null;)Eh(e,t,l),l=l.sibling}function Eh(e,t,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:ke||Vt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ke||Vt(l,t);var a=Re,i=ot;Dl(l.type)&&(Re=l.stateNode,ot=!1),nl(e,t,l),ei(l.stateNode),Re=a,ot=i;break;case 5:ke||Vt(l,t);case 6:if(a=Re,i=ot,Re=null,nl(e,t,l),Re=a,ot=i,Re!==null)if(ot)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(s){Se(l,t,s)}else try{Re.removeChild(l.stateNode)}catch(s){Se(l,t,s)}break;case 18:Re!==null&&(ot?(e=Re,y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ln(e)):y0(Re,l.stateNode));break;case 4:a=Re,i=ot,Re=l.stateNode.containerInfo,ot=!0,nl(e,t,l),Re=a,ot=i;break;case 0:case 11:case 14:case 15:Cl(2,l,t),ke||Cl(4,l,t),nl(e,t,l);break;case 1:ke||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ph(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:ke=(a=ke)||l.memoizedState!==null,nl(e,t,l),ke=a;break;default:nl(e,t,l)}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ln(e)}catch(l){Se(t,t.return,l)}}}function Ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ln(e)}catch(l){Se(t,t.return,l)}}function Zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sh),t;default:throw Error(o(435,e.tag))}}function hs(e,t){var l=Zy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=ep.bind(null,e,a);a.then(i,i)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],s=e,f=t,d=f;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Re=d.stateNode,ot=!1;break e}break;case 5:Re=d.stateNode,ot=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(Re===null)throw Error(o(160));Eh(s,f,i),Re=null,ot=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zh(t,e),t=t.sibling}var qt=null;function zh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(Cl(3,e,e.return),Vn(3,e),Cl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&(ke||l===null||Vt(l,l.return)),a&64&&al&&(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 i=qt;if(ft(t,e),dt(e),a&512&&(ke||l===null||Vt(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,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[pn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),et(s,a,l),s[Fe]=e,Je(s),a=s;break e;case"link":var f=z0("link","href",i).get(a+(l.href||""));if(f){for(var d=0;d<f.length;d++)if(s=f[d],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)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;case"meta":if(f=z0("meta","content",i).get(a+(l.content||""))){for(d=0;d<f.length;d++)if(s=f[d],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)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;default:throw Error(o(468,a))}s[Fe]=e,Je(s),a=s}e.stateNode=a}else O0(i,e.type,e.stateNode);else e.stateNode=A0(i,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?O0(i,e.type,e.stateNode):A0(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xr(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&(ke||l===null||Vt(l,l.return)),l!==null&&a&4&&Xr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&(ke||l===null||Vt(l,l.return)),e.flags&32){i=e.stateNode;try{Ea(i,"")}catch(G){Se(e,e.return,G)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Xr(e,i,l!==null?l.memoizedProps:i)),a&1024&&($r=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(G){Se(e,e.return,G)}}break;case 3:if(Os=null,i=qt,qt=As(t.containerInfo),ft(t,e),qt=i,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ln(t.containerInfo)}catch(G){Se(e,e.return,G)}$r&&($r=!1,Oh(e));break;case 4:a=qt,qt=As(e.stateNode.containerInfo),ft(t,e),dt(e),qt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gs=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 22:i=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,C=al,R=ke;if(al=C||i,ke=R||x,ft(t,e),ke=R,al=C,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||x||al||ke||fa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(s=x.stateNode,i)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=x.stateNode;var _=x.memoizedProps.style,A=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(G){Se(x,x.return,G)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=i?"":x.memoizedProps}catch(G){Se(x,x.return,G)}}}else if(t.tag===18){if(l===null){x=t;try{var O=x.stateNode;i?p0(O,!0):p0(x.stateNode,!1)}catch(G){Se(x,x.return,G)}}}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,hs(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(xh(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var i=l.stateNode,s=Kr(e);ds(e,s,i);break;case 5:var f=l.stateNode;l.flags&32&&(Ea(f,""),l.flags&=-33);var d=Kr(e);ds(e,d,f);break;case 3:case 4:var x=l.stateNode.containerInfo,C=Kr(e);Jr(e,C,x);break;default:throw Error(o(161))}}catch(R){Se(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Oh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Oh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cl(4,t,t.return),fa(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ph(t,t.return,l),fa(t);break;case 27:ei(t.stateNode);case 26:case 5:Vt(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:sl(i,s,l),Vn(4,s);break;case 1:if(sl(i,s,l),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Se(a,a.return,C)}if(a=s,i=a.updateQueue,i!==null){var d=a.stateNode;try{var x=i.shared.hiddenCallbacks;if(x!==null)for(i.shared.hiddenCallbacks=null,i=0;i<x.length;i++)sd(x[i],d)}catch(C){Se(a,a.return,C)}}l&&f&64&&yh(s),Zn(s,s.return);break;case 27:jh(s);case 26:case 5:sl(i,s,l),l&&a===null&&f&4&&bh(s),Zn(s,s.return);break;case 12:sl(i,s,l);break;case 31:sl(i,s,l),l&&f&4&&Ch(i,s);break;case 13:sl(i,s,l),l&&f&4&&Ah(i,s);break;case 22:s.memoizedState===null&&sl(i,s,l),Zn(s,s.return);break;case 30:break;default:sl(i,s,l)}t=t.sibling}}function Fr(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&&Mn(l))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(e,t,l,a),t=t.sibling}function Th(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),i&2048&&Vn(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e)));break;case 12:if(i&2048){Ht(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,d=s.onPostCommit;typeof d=="function"&&d(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Se(t,t.return,x)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,l,a):Xn(e,t):s._visibility&2?Ht(e,t,l,a):(s._visibility|=2,Za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Fr(f,t);break;case 24:Ht(e,t,l,a),i&2048&&Wr(t.alternate,t);break;default:Ht(e,t,l,a)}}function Za(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,d=l,x=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:Za(s,f,d,x,i),Vn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Za(s,f,d,x,i):Xn(s,f):(R._visibility|=2,Za(s,f,d,x,i)),i&&C&2048&&Fr(f.alternate,f);break;case 24:Za(s,f,d,x,i),i&&C&2048&&Wr(f.alternate,f);break;default:Za(s,f,d,x,i)}t=t.sibling}}function Xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:Xn(l,a),i&2048&&Fr(a.alternate,a);break;case 24:Xn(l,a),i&2048&&Wr(a.alternate,a);break;default:Xn(l,a)}t=t.sibling}}var Kn=8192;function Xa(e,t,l){if(e.subtreeFlags&Kn)for(e=e.child;e!==null;)Mh(e,t,l),e=e.sibling}function Mh(e,t,l){switch(e.tag){case 26:Xa(e,t,l),e.flags&Kn&&e.memoizedState!==null&&Mp(l,qt,e.memoizedState,e.memoizedProps);break;case 5:Xa(e,t,l);break;case 3:case 4:var a=qt;qt=As(e.stateNode.containerInfo),Xa(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Kn,Kn=16777216,Xa(e,t,l),Kn=a):Xa(e,t,l));break;default:Xa(e,t,l)}}function Rh(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 Jn(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];$e=a,_h(a,e)}Rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dh(e),e=e.sibling}function Dh(e){switch(e.tag){case 0:case 11:case 15:Jn(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Jn(e);break;case 12:Jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ms(e)):Jn(e);break;default:Jn(e)}}function ms(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];$e=a,_h(a,e)}Rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),ms(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ms(t));break;default:ms(t)}e=e.sibling}}function _h(e,t){for(;$e!==null;){var l=$e;switch(l.tag){case 0:case 11:case 15:Cl(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:Mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$e=a;else e:for(l=e;$e!==null;){a=$e;var i=a.sibling,s=a.return;if(Nh(a),a===l){$e=null;break e}if(i!==null){i.return=s,$e=i;break e}$e=s}}}var Xy={getCacheForType:function(e){var t=Ie(qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(qe).controller.signal}},Ky=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ae=null,se=null,re=0,je=0,St=null,Al=!1,Ka=!1,Ir=!1,ul=0,_e=0,zl=0,da=0,Pr=0,wt=0,Ja=0,$n=null,ht=null,ec=!1,gs=0,Uh=0,vs=1/0,ys=null,Ol=null,Ve=0,Tl=null,$a=null,rl=0,tc=0,lc=null,Lh=null,Fn=0,ac=null;function Nt(){return(ye&2)!==0&&re!==0?re&-re:T.T!==null?cc():Wo()}function Bh(){if(wt===0)if((re&536870912)===0||fe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),wt=e}else wt=536870912;return e=xt.current,e!==null&&(e.flags|=32),wt}function mt(e,t,l){(e===Ae&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Ml(e,re,wt,!1)),yn(e,l),((ye&2)===0||e!==Ae)&&(e===Ae&&((ye&2)===0&&(da|=l),_e===4&&Ml(e,re,wt,!1)),Zt(e))}function qh(e,t,l){if((ye&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t),i=a?Fy(e,t):ic(e,t,!0),s=a;do{if(i===0){Ka&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Jy(l)){i=ic(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var d=e;i=$n;var x=d.current.memoizedState.isDehydrated;if(x&&(Fa(d,f).flags|=256),f=ic(d,f,!1),f!==2){if(Ir&&!x){d.errorRecoveryDisabledLanes|=s,da|=s,i=4;break e}s=ht,ht=i,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){Fa(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,wt,!Al);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=gs+300-gt(),10<i)){if(Ml(a,t,wt,!Al),Ai(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=g0(Hh.bind(null,a,l,ht,ys,ec,t,wt,da,Ja,Al,s,"Throttled",-0,0),i);break e}Hh(a,l,ht,ys,ec,t,wt,da,Ja,Al,s,null,-0,0)}}break}while(!0);Zt(e)}function Hh(e,t,l,a,i,s,f,d,x,C,R,_,A,O){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Mh(t,s,_);var G=(s&62914560)===s?gs-gt():(s&4194048)===s?Uh-gt():0;if(G=Rp(_,G),G!==null){rl=s,e.cancelPendingCommit=G(Kh.bind(null,e,t,s,l,a,i,f,d,x,R,_,null,A,O)),Ml(e,s,f,!C);return}}Kh(e,t,s,l,a,i,f,d,x)}function Jy(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 i=l[a],s=i.getSnapshot;i=i.value;try{if(!pt(s(),i))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 Ml(e,t,l,a){t&=~Pr,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-yt(i),f=1<<s;a[s]=-1,i&=~f}l!==0&&Jo(e,l,t)}function ps(){return(ye&6)===0?(Wn(0),!1):!0}function nc(){if(se!==null){if(je===0)var e=se.return;else e=se,Wt=aa=null,xr(e),Qa=null,Dn=0,e=se;for(;e!==null;)vh(e.alternate,e),e=e.return;se=null}}function Fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,mp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,nc(),Ae=e,se=l=$t(e.current,null),re=t,je=0,St=null,Al=!1,Ka=vn(e,t),Ir=!1,Ja=wt=Pr=da=zl=_e=0,ht=$n=null,ec=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-yt(a),s=1<<i;t|=e[i],a&=~s}return ul=t,Hi(),l}function Qh(e,t){le=null,T.H=kn,t===Ha||t===Ki?(t=ld(),je=3):t===rr?(t=ld(),je=4):je=t===Lr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,se===null&&(_e=1,us(e,Ot(t,e.current)))}function kh(){var e=xt.current;return e===null?!0:(re&4194048)===re?Dt===null:(re&62914560)===re||(re&536870912)!==0?e===Dt:!1}function Yh(){var e=T.H;return T.H=kn,e===null?kn:e}function Gh(){var e=T.A;return T.A=Xy,e}function bs(){_e=4,Al||(re&4194048)!==re&&xt.current!==null||(Ka=!0),(zl&134217727)===0&&(da&134217727)===0||Ae===null||Ml(Ae,re,wt,!1)}function ic(e,t,l){var a=ye;ye|=2;var i=Yh(),s=Gh();(Ae!==e||re!==t)&&(ys=null,Fa(e,t)),t=!1;var f=_e;e:do try{if(je!==0&&se!==null){var d=se,x=St;switch(je){case 8:nc(),f=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var C=je;if(je=0,St=null,Wa(e,d,x,C),l&&Ka){f=0;break e}break;default:C=je,je=0,St=null,Wa(e,d,x,C)}}$y(),f=_e;break}catch(R){Qh(e,R)}while(!0);return t&&e.shellSuspendCounter++,Wt=aa=null,ye=a,T.H=i,T.A=s,se===null&&(Ae=null,re=0,Hi()),f}function $y(){for(;se!==null;)Vh(se)}function Fy(e,t){var l=ye;ye|=2;var a=Yh(),i=Gh();Ae!==e||re!==t?(ys=null,vs=gt()+500,Fa(e,t)):Ka=vn(e,t);e:do try{if(je!==0&&se!==null){t=se;var s=St;t:switch(je){case 1:je=0,St=null,Wa(e,t,s,1);break;case 2:case 9:if(ed(s)){je=0,St=null,Zh(t);break}t=function(){je!==2&&je!==9||Ae!==e||(je=7),Zt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:ed(s)?(je=0,St=null,Zh(t)):(je=0,St=null,Wa(e,t,s,7));break;case 5:var f=null;switch(se.tag){case 26:f=se.memoizedState;case 5:case 27:var d=se;if(f?T0(f):d.stateNode.complete){je=0,St=null;var x=d.sibling;if(x!==null)se=x;else{var C=d.return;C!==null?(se=C,xs(C)):se=null}break t}}je=0,St=null,Wa(e,t,s,5);break;case 6:je=0,St=null,Wa(e,t,s,6);break;case 8:nc(),_e=6;break e;default:throw Error(o(462))}}Wy();break}catch(R){Qh(e,R)}while(!0);return Wt=aa=null,T.H=a,T.A=i,ye=l,se!==null?0:(Ae=null,re=0,Hi(),_e)}function Wy(){for(;se!==null&&!x1();)Vh(se)}function Vh(e){var t=mh(e.alternate,e,ul);e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Zh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=rh(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=rh(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:xr(t);default:vh(l,t),t=se=Gf(t,ul),t=mh(l,t,ul)}e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Wa(e,t,l,a){Wt=aa=null,xr(t),Qa=null,Dn=0;var i=t.return;try{if(Hy(e,i,t,l,re)){_e=1,us(e,Ot(l,e.current)),se=null;return}}catch(s){if(i!==null)throw se=i,s;_e=1,us(e,Ot(l,e.current)),se=null;return}t.flags&32768?(fe||a===1?e=!0:Ka||(re&536870912)!==0?e=!1:(Al=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Xh(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){Xh(t,Al);return}e=t.return;var l=Yy(t.alternate,t,ul);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);_e===0&&(_e=5)}function Xh(e,t){do{var l=Gy(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);_e=6,se=null}function Kh(e,t,l,a,i,s,f,d,x){e.cancelPendingCommit=null;do js();while(Ve!==0);if((ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Ku,T1(e,l,s,f,d,x),e===Ae&&(se=Ae=null,re=0),$a=t,Tl=e,rl=l,tc=s,lc=i,Lh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tp(wi,function(){return Ih(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,i=Q.p,Q.p=2,f=ye,ye|=4;try{Vy(e,t,l)}finally{ye=f,Q.p=i,T.T=a}}Ve=1,Jh(),$h(),Fh()}}function Jh(){if(Ve===1){Ve=0;var e=Tl,t=$a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{zh(t,e);var s=yc,f=_f(e.containerInfo),d=s.focusedElem,x=s.selectionRange;if(f!==d&&d&&d.ownerDocument&&Df(d.ownerDocument.documentElement,d)){if(x!==null&&Yu(d)){var C=x.start,R=x.end;if(R===void 0&&(R=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(R,d.value.length);else{var _=d.ownerDocument||document,A=_&&_.defaultView||window;if(A.getSelection){var O=A.getSelection(),G=d.textContent.length,I=Math.min(x.start,G),Ee=x.end===void 0?I:Math.min(x.end,G);!O.extend&&I>Ee&&(f=Ee,Ee=I,I=f);var w=Rf(d,I),j=Rf(d,Ee);if(w&&j&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==j.node||O.focusOffset!==j.offset)){var E=_.createRange();E.setStart(w.node,w.offset),O.removeAllRanges(),I>Ee?(O.addRange(E),O.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),O.addRange(E))}}}}for(_=[],O=d;O=O.parentNode;)O.nodeType===1&&_.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var D=_[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ds=!!vc,yc=vc=null}finally{ye=i,Q.p=a,T.T=l}}e.current=t,Ve=2}}function $h(){if(Ve===2){Ve=0;var e=Tl,t=$a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{wh(e,t.alternate,t)}finally{ye=i,Q.p=a,T.T=l}}Ve=3}}function Fh(){if(Ve===4||Ve===3){Ve=0,j1();var e=Tl,t=$a,l=rl,a=Lh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ve=5:(Ve=0,$a=Tl=null,Wh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ol=null),wu(l),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,i=Q.p,Q.p=2,T.T=null;try{for(var s=e.onRecoverableError,f=0;f<a.length;f++){var d=a[f];s(d.value,{componentStack:d.stack})}}finally{T.T=t,Q.p=i}}(rl&3)!==0&&js(),Zt(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===ac?Fn++:(Fn=0,ac=e):Fn=0,Wn(0)}}function Wh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mn(t)))}function js(){return Jh(),$h(),Fh(),Ih()}function Ih(){if(Ve!==5)return!1;var e=Tl,t=tc;tc=0;var l=wu(rl),a=T.T,i=Q.p;try{Q.p=32>l?32:l,T.T=null,l=lc,lc=null;var s=Tl,f=rl;if(Ve=0,$a=Tl=null,rl=0,(ye&6)!==0)throw Error(o(331));var d=ye;if(ye|=4,Dh(s.current),Th(s,s.current,f,l),ye=d,Wn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(gn,s)}catch{}return!0}finally{Q.p=i,T.T=a,Wh(e,t)}}function Ph(e,t,l){t=Ot(l,t),t=Ur(e.stateNode,t,2),e=wl(e,t,2),e!==null&&(yn(e,2),Zt(e))}function Se(e,t,l){if(e.tag===3)Ph(e,e,l);else for(;t!==null;){if(t.tag===3){Ph(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){e=Ot(l,e),l=eh(2),a=wl(t,l,2),a!==null&&(th(l,a,t,e),yn(a,2),Zt(a));break}}t=t.return}}function sc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ky;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(Ir=!0,i.add(l),e=Iy.bind(null,e,t,l),t.then(e,e))}function Iy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(re&l)===l&&(_e===4||_e===3&&(re&62914560)===re&&300>gt()-gs?(ye&2)===0&&Fa(e,0):Pr|=l,Ja===re&&(Ja=0)),Zt(e)}function e0(e,t){t===0&&(t=Ko()),e=ea(e,t),e!==null&&(yn(e,t),Zt(e))}function Py(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),e0(e,l)}function ep(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),e0(e,l)}function tp(e,t){return bu(e,t)}var Ss=null,Ia=null,uc=!1,ws=!1,rc=!1,Rl=0;function Zt(e){e!==Ia&&e.next===null&&(Ia===null?Ss=Ia=e:Ia=Ia.next=e),ws=!0,uc||(uc=!0,ap())}function Wn(e,t){if(!rc&&ws){rc=!0;do for(var l=!1,a=Ss;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var f=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=i&~(f&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,n0(a,s))}else s=re,s=Ai(a,a===Ae?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||vn(a,s)||(l=!0,n0(a,s));a=a.next}while(l);rc=!1}}function lp(){t0()}function t0(){ws=uc=!1;var e=0;Rl!==0&&hp()&&(e=Rl);for(var t=gt(),l=null,a=Ss;a!==null;){var i=a.next,s=l0(a,t);s===0?(a.next=null,l===null?Ss=i:l.next=i,i===null&&(Ia=l)):(l=a,(e!==0||(s&3)!==0)&&(ws=!0)),a=i}Ve!==0&&Ve!==5||Wn(e),Rl!==0&&(Rl=0)}function l0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-yt(s),d=1<<f,x=i[f];x===-1?((d&l)===0||(d&a)!==0)&&(i[f]=O1(d,t)):x<=t&&(e.expiredLanes|=d),s&=~d}if(t=Ae,l=re,l=Ai(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&&xu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||vn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xu(a),wu(l)){case 2:case 8:l=Zo;break;case 32:l=wi;break;case 268435456:l=Xo;break;default:l=wi}return a=a0.bind(null,e),l=bu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xu(a),e.callbackPriority=2,e.callbackNode=null,2}function a0(e,t){if(Ve!==0&&Ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(js()&&e.callbackNode!==l)return null;var a=re;return a=Ai(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qh(e,a,t),l0(e,gt()),e.callbackNode!=null&&e.callbackNode===l?a0.bind(null,e):null)}function n0(e,t){if(js())return null;qh(e,t,!0)}function ap(){gp(function(){(ye&6)!==0?bu(Vo,lp):t0()})}function cc(){if(Rl===0){var e=Ba;e===0&&(e=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),Rl=e}return Rl}function i0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mi(""+e)}function s0(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 np(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var s=i0((i[rt]||null).action),f=a.submitter;f&&(t=(t=f[rt]||null)?i0(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var d=new Ui("action","action",null,a,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Rl!==0){var x=f?s0(i,f):new FormData(i);Or(l,{pending:!0,data:x,method:i.method,action:s},null,x)}}else typeof s=="function"&&(d.preventDefault(),x=f?s0(i,f):new FormData(i),Or(l,{pending:!0,data:x,method:i.method,action:s},s,x))},currentTarget:i}]})}}for(var oc=0;oc<Xu.length;oc++){var fc=Xu[oc],ip=fc.toLowerCase(),sp=fc[0].toUpperCase()+fc.slice(1);Bt(ip,"on"+sp)}Bt(Bf,"onAnimationEnd"),Bt(qf,"onAnimationIteration"),Bt(Hf,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Sy,"onTransitionRun"),Bt(wy,"onTransitionStart"),Bt(Ny,"onTransitionCancel"),Bt(Qf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function u0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var f=a.length-1;0<=f;f--){var d=a[f],x=d.instance,C=d.currentTarget;if(d=d.listener,x!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=x}else for(f=0;f<a.length;f++){if(d=a[f],x=d.instance,C=d.currentTarget,d=d.listener,x!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=x}}}}function ue(e,t){var l=t[Nu];l===void 0&&(l=t[Nu]=new Set);var a=e+"__bubble";l.has(a)||(r0(t,e,2,!1),l.add(a))}function dc(e,t,l){var a=0;t&&(a|=4),r0(l,e,a,t)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Ns]){e[Ns]=!0,ef.forEach(function(l){l!=="selectionchange"&&(up.has(l)||dc(l,!1,e),dc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ns]||(t[Ns]=!0,dc("selectionchange",!1,t))}}function r0(e,t,l,a){switch(B0(t)){case 2:var i=Up;break;case 8:i=Lp;break;default:i=zc}l=i.bind(null,t,l,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function mc(e,t,l,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===i)break;if(f===4)for(f=a.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;d!==null;){if(f=xa(d),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){a=s=f;continue e}d=d.parentNode}}a=a.return}hf(function(){var C=s,R=Mu(l),_=[];e:{var A=kf.get(e);if(A!==void 0){var O=Ui,G=e;switch(e){case"keypress":if(Di(l)===0)break e;case"keydown":case"keyup":O=ey;break;case"focusin":G="focus",O=Bu;break;case"focusout":G="blur",O=Bu;break;case"beforeblur":case"afterblur":O=Bu;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":O=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ay;break;case Bf:case qf:case Hf:O=Z1;break;case Qf:O=iy;break;case"scroll":case"scrollend":O=Q1;break;case"wheel":O=uy;break;case"copy":case"cut":case"paste":O=K1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=pf;break;case"toggle":case"beforetoggle":O=cy}var I=(t&4)!==0,Ee=!I&&(e==="scroll"||e==="scrollend"),w=I?A!==null?A+"Capture":null:A;I=[];for(var j=C,E;j!==null;){var D=j;if(E=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||E===null||w===null||(D=xn(j,w),D!=null&&I.push(Pn(j,D,E))),Ee)break;j=j.return}0<I.length&&(A=new O(A,G,null,l,R),_.push({event:A,listeners:I}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",A&&l!==Tu&&(G=l.relatedTarget||l.fromElement)&&(xa(G)||G[ba]))break e;if((O||A)&&(A=R.window===R?R:(A=R.ownerDocument)?A.defaultView||A.parentWindow:window,O?(G=l.relatedTarget||l.toElement,O=C,G=G?xa(G):null,G!==null&&(Ee=v(G),I=G.tag,G!==Ee||I!==5&&I!==27&&I!==6)&&(G=null)):(O=null,G=C),O!==G)){if(I=vf,D="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(I=pf,D="onPointerLeave",w="onPointerEnter",j="pointer"),Ee=O==null?A:bn(O),E=G==null?A:bn(G),A=new I(D,j+"leave",O,l,R),A.target=Ee,A.relatedTarget=E,D=null,xa(R)===C&&(I=new I(w,j+"enter",G,l,R),I.target=E,I.relatedTarget=Ee,D=I),Ee=D,O&&G)t:{for(I=rp,w=O,j=G,E=0,D=w;D;D=I(D))E++;D=0;for(var F=j;F;F=I(F))D++;for(;0<E-D;)w=I(w),E--;for(;0<D-E;)j=I(j),D--;for(;E--;){if(w===j||j!==null&&w===j.alternate){I=w;break t}w=I(w),j=I(j)}I=null}else I=null;O!==null&&c0(_,A,O,I,!1),G!==null&&Ee!==null&&c0(_,Ee,G,I,!0)}}e:{if(A=C?bn(C):window,O=A.nodeName&&A.nodeName.toLowerCase(),O==="select"||O==="input"&&A.type==="file")var me=Cf;else if(Nf(A))if(Af)me=by;else{me=yy;var X=vy}else O=A.nodeName,!O||O.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?C&&Ou(C.elementType)&&(me=Cf):me=py;if(me&&(me=me(e,C))){Ef(_,me,l,R);break e}X&&X(e,A,C),e==="focusout"&&C&&A.type==="number"&&C.memoizedProps.value!=null&&zu(A,"number",A.value)}switch(X=C?bn(C):window,e){case"focusin":(Nf(X)||X.contentEditable==="true")&&(Oa=X,Gu=C,zn=null);break;case"focusout":zn=Gu=Oa=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Uf(_,l,R);break;case"selectionchange":if(jy)break;case"keydown":case"keyup":Uf(_,l,R)}var ae;if(Hu)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else za?Sf(e,l)&&(ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ce="onCompositionStart");ce&&(bf&&l.locale!=="ko"&&(za||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&za&&(ae=mf()):(vl=R,_u="value"in vl?vl.value:vl.textContent,za=!0)),X=Es(C,ce),0<X.length&&(ce=new yf(ce,e,null,l,R),_.push({event:ce,listeners:X}),ae?ce.data=ae:(ae=wf(l),ae!==null&&(ce.data=ae)))),(ae=fy?dy(e,l):hy(e,l))&&(ce=Es(C,"onBeforeInput"),0<ce.length&&(X=new yf("onBeforeInput","beforeinput",null,l,R),_.push({event:X,listeners:ce}),X.data=ae)),np(_,e,C,l,R)}u0(_,t)})}function Pn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Es(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=xn(e,l),i!=null&&a.unshift(Pn(e,i,s)),i=xn(e,t),i!=null&&a.push(Pn(e,i,s))),e.tag===3)return a;e=e.return}return[]}function rp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function c0(e,t,l,a,i){for(var s=t._reactName,f=[];l!==null&&l!==a;){var d=l,x=d.alternate,C=d.stateNode;if(d=d.tag,x!==null&&x===a)break;d!==5&&d!==26&&d!==27||C===null||(x=C,i?(C=xn(l,s),C!=null&&f.unshift(Pn(l,C,x))):i||(C=xn(l,s),C!=null&&f.push(Pn(l,C,x)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var cp=/\r\n?/g,op=/\u0000|\uFFFD/g;function o0(e){return(typeof e=="string"?e:""+e).replace(cp,`
|
|
9
|
+
`).replace(op,"")}function f0(e,t){return t=o0(t),o0(e)===t}function Ne(e,t,l,a,i,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ea(e,""+a);break;case"className":Oi(e,"class",a);break;case"tabIndex":Oi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,l,a);break;case"style":ff(e,a,s);break;case"data":if(t!=="object"){Oi(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=Mi(""+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"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(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=Mi(""+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":ue("beforetoggle",e),ue("toggle",e),zi(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":zi(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=q1.get(l)||l,zi(e,l,a))}}function gc(e,t,l,a,i,s){switch(l){case"style":ff(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&Ea(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),s=e[rt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):zi(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,i=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,s,f,l,null)}}i&&Ne(e,t,"srcSet",l.srcSet,l,null),a&&Ne(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var d=s=f=i=null,x=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":i=R;break;case"type":f=R;break;case"checked":x=R;break;case"defaultChecked":C=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Ne(e,t,a,R,l,null)}}uf(e,s,d,x,C,f,i,!1);return;case"select":ue("invalid",e),a=f=s=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:Ne(e,t,i,d,l,null)}t=s,l=f,e.multiple=!!a,t!=null?Na(e,!!a,t,!1):l!=null&&Na(e,!!a,l,!0);return;case"textarea":ue("invalid",e),s=i=a=null;for(f in l)if(l.hasOwnProperty(f)&&(d=l[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Ne(e,t,f,d,l,null)}cf(e,a,i,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:Ne(e,t,x,a,l,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<In.length;a++)ue(In[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("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(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,C,a,l,null)}return;default:if(Ou(t)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&gc(e,t,R,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Ne(e,t,d,a,l,null))}function fp(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 i=null,s=null,f=null,d=null,x=null,C=null,R=null;for(O in l){var _=l[O];if(l.hasOwnProperty(O)&&_!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":x=_;default:a.hasOwnProperty(O)||Ne(e,t,O,null,a,_)}}for(var A in a){var O=a[A];if(_=l[A],a.hasOwnProperty(A)&&(O!=null||_!=null))switch(A){case"type":s=O;break;case"name":i=O;break;case"checked":C=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:O!==_&&Ne(e,t,A,O,a,_)}}Au(e,f,d,x,C,R,s,i);return;case"select":O=f=d=A=null;for(s in l)if(x=l[s],l.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":O=x;default:a.hasOwnProperty(s)||Ne(e,t,s,null,a,x)}for(i in a)if(s=a[i],x=l[i],a.hasOwnProperty(i)&&(s!=null||x!=null))switch(i){case"value":A=s;break;case"defaultValue":d=s;break;case"multiple":f=s;default:s!==x&&Ne(e,t,i,s,a,x)}t=d,l=f,a=O,A!=null?Na(e,!!l,A,!1):!!a!=!!l&&(t!=null?Na(e,!!l,t,!0):Na(e,!!l,l?[]:"",!1));return;case"textarea":O=A=null;for(d in l)if(i=l[d],l.hasOwnProperty(d)&&i!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ne(e,t,d,null,a,i)}for(f in a)if(i=a[f],s=l[f],a.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":A=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&Ne(e,t,f,i,a,s)}rf(e,A,O);return;case"option":for(var G in l)if(A=l[G],l.hasOwnProperty(G)&&A!=null&&!a.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:Ne(e,t,G,null,a,A)}for(x in a)if(A=a[x],O=l[x],a.hasOwnProperty(x)&&A!==O&&(A!=null||O!=null))switch(x){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ne(e,t,x,A,a,O)}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 I in l)A=l[I],l.hasOwnProperty(I)&&A!=null&&!a.hasOwnProperty(I)&&Ne(e,t,I,null,a,A);for(C in a)if(A=a[C],O=l[C],a.hasOwnProperty(C)&&A!==O&&(A!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:Ne(e,t,C,A,a,O)}return;default:if(Ou(t)){for(var Ee in l)A=l[Ee],l.hasOwnProperty(Ee)&&A!==void 0&&!a.hasOwnProperty(Ee)&&gc(e,t,Ee,void 0,a,A);for(R in a)A=a[R],O=l[R],!a.hasOwnProperty(R)||A===O||A===void 0&&O===void 0||gc(e,t,R,A,a,O);return}}for(var w in l)A=l[w],l.hasOwnProperty(w)&&A!=null&&!a.hasOwnProperty(w)&&Ne(e,t,w,null,a,A);for(_ in a)A=a[_],O=l[_],!a.hasOwnProperty(_)||A===O||A==null&&O==null||Ne(e,t,_,A,a,O)}function d0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],s=i.transferSize,f=i.initiatorType,d=i.duration;if(s&&d&&d0(f)){for(f=0,d=i.responseEnd,a+=1;a<l.length;a++){var x=l[a],C=x.startTime;if(C>d)break;var R=x.transferSize,_=x.initiatorType;R&&d0(_)&&(x=x.responseEnd,f+=R*(x<d?1:(d-C)/(x-C)))}if(--a,t+=8*(s+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vc=null,yc=null;function Cs(e){return e.nodeType===9?e:e.ownerDocument}function h0(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 m0(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 pc(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 bc=null;function hp(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var g0=typeof setTimeout=="function"?setTimeout:void 0,mp=typeof clearTimeout=="function"?clearTimeout:void 0,v0=typeof Promise=="function"?Promise:void 0,gp=typeof queueMicrotask=="function"?queueMicrotask:typeof v0<"u"?function(e){return v0.resolve(null).then(e).catch(vp)}:g0;function vp(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function y0(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),ln(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ei(l);for(var s=l.firstChild;s;){var f=s.nextSibling,d=s.nodeName;s[pn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&ei(e.ownerDocument.body);l=i}while(l);ln(t)}function p0(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 xc(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":xc(l),Eu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yp(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[pn])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!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function pp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function b0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function jc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bp(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 _t(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 wc=null;function x0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function j0(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 S0(e,t,l){switch(t=Cs(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eu(e)}var Ut=new Map,w0=new Set;function As(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Q.d;Q.d={f:xp,r:jp,D:Sp,C:wp,L:Np,m:Ep,X:Ap,S:Cp,M:zp};function xp(){var e=cl.f(),t=ps();return e||t}function jp(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?Qd(t):cl.r(e)}var Pa=typeof document>"u"?null:document;function N0(e,t,l){var a=Pa;if(a&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),w0.has(i)||(w0.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Sp(e){cl.D(e),N0("dns-prefetch",e,null)}function wp(e,t){cl.C(e,t),N0("preconnect",e,t)}function Np(e,t,l){cl.L(e,t,l);var a=Pa;if(a&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+At(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+At(l.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var s=i;switch(t){case"style":s=en(e);break;case"script":s=tn(e)}Ut.has(s)||(e=z({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ti(s))||t==="script"&&a.querySelector(li(s))||(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Ep(e,t){cl.m(e,t);var l=Pa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(a)+'"][href="'+At(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=tn(e)}if(!Ut.has(s)&&(e=z({rel:"modulepreload",href:e},t),Ut.set(s,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(li(s)))return}a=l.createElement("link"),et(a,"link",e),Je(a),l.head.appendChild(a)}}}function Cp(e,t,l){cl.S(e,t,l);var a=Pa;if(a&&e){var i=Sa(a).hoistableStyles,s=en(e);t=t||"default";var f=i.get(s);if(!f){var d={loading:0,preload:null};if(f=a.querySelector(ti(s)))d.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(s))&&Nc(e,l);var x=f=a.createElement("link");Je(x),et(x,"link",e),x._p=new Promise(function(C,R){x.onload=C,x.onerror=R}),x.addEventListener("load",function(){d.loading|=1}),x.addEventListener("error",function(){d.loading|=2}),d.loading|=4,zs(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:d},i.set(s,f)}}}function Ap(e,t){cl.X(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=z({src:e,async:!0},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function zp(e,t){cl.M(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=z({src:e,async:!0,type:"module"},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function E0(e,t,l,a){var i=(i=ie.current)?As(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=en(l.href),l=Sa(i).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=en(l.href);var s=Sa(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(ti(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Ut.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},Ut.set(e,l),s||Op(i,e,l,f.state))),t&&a===null)throw Error(o(528,""));return f}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(l),l=Sa(i).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(o(444,e))}}function en(e){return'href="'+At(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Op(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}),et(t,"link",l),Je(t),e.head.appendChild(t))}function tn(e){return'[src="'+At(e)+'"]'}function li(e){return"script[async]"+e}function A0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+At(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=z({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),et(a,"style",i),zs(a,l.precedence,e),t.instance=a;case"stylesheet":i=en(l.href);var s=e.querySelector(ti(i));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;a=C0(l),(i=Ut.get(i))&&Nc(a,i),s=(e.ownerDocument||e).createElement("link"),Je(s);var f=s;return f._p=new Promise(function(d,x){f.onload=d,f.onerror=x}),et(s,"link",a),t.state.loading|=4,zs(s,l.precedence,e),t.instance=s;case"script":return s=tn(l.src),(i=e.querySelector(li(s)))?(t.instance=i,Je(i),i):(a=l,(i=Ut.get(s))&&(a=z({},l),Ec(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),et(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,zs(a,l.precedence,e));return t.instance}function zs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function z0(e,t,l){if(Os===null){var a=new Map,i=Os=new Map;i.set(l,a)}else i=Os,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var s=l[i];if(!(s[pn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var d=a.get(f);d?d.push(s):a.set(f,[s])}}return a}function O0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Tp(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 T0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mp(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 i=en(a.href),s=t.querySelector(ti(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Je(s);return}s=t.ownerDocument||t,a=C0(a),(i=Ut.get(i))&&Nc(a,i),s=s.createElement("link"),Je(s);var f=s;f._p=new Promise(function(d,x){f.onload=d,f.onerror=x}),et(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=Ts.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Cc=0;function Rp(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ms=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ms=new Map,t.forEach(Dp,e),Ms=null,Ts.call(e))}function Dp(e,t){if(!(t.state.loading&4)){var l=Ms.get(e);if(l)var a=l.get(null);else{l=new Map,Ms.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}i=t.instance,f=i.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,i),l.set(f,i),this.count++,a=Ts.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:k,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function _p(e,t,l,a,i,s,f,d,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=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function M0(e,t,l,a,i,s,f,d,x,C,R,_){return e=new _p(e,t,l,f,x,C,R,_,d),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=ir(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},cr(s),e}function R0(e){return e?(e=Ra,e):Ra}function D0(e,t,l,a,i,s){i=R0(i),a.context===null?a.context=i:a.pendingContext=i,a=Sl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=wl(e,a,t),l!==null&&(mt(l,e,t),Un(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ac(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function U0(e){if(e.tag===13||e.tag===31){var t=ea(e,67108864);t!==null&&mt(t,e,67108864),Ac(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=Nt();t=Su(t);var l=ea(e,t);l!==null&&mt(l,e,t),Ac(e,t)}}var Ds=!0;function Up(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=2,zc(e,t,l,a)}finally{Q.p=s,T.T=i}}function Lp(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=8,zc(e,t,l,a)}finally{Q.p=s,T.T=i}}function zc(e,t,l,a){if(Ds){var i=Oc(a);if(i===null)mc(e,t,a,_s,l),q0(e,a);else if(qp(i,e,t,l,a))a.stopPropagation();else if(q0(e,a),t&4&&-1<Bp.indexOf(e)){for(;i!==null;){var s=ja(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=$l(s.pendingLanes);if(f!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var x=1<<31-yt(f);d.entanglements[1]|=x,f&=~x}Zt(s),(ye&6)===0&&(vs=gt()+500,Wn(0))}}break;case 31:case 13:d=ea(s,2),d!==null&&mt(d,s,2),ps(),Ac(s,2)}if(s=Oc(a),s===null&&mc(e,t,a,_s,l),s===i)break;i=s}i!==null&&a.stopPropagation()}else mc(e,t,a,null,l)}}function Oc(e){return e=Mu(e),Tc(e)}var _s=null;function Tc(e){if(_s=null,e=xa(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 _s=e,null}function B0(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(S1()){case Vo:return 2;case Zo:return 8;case wi:case w1:return 32;case Xo:return 268435456;default:return 32}default:return 32}}var Mc=!1,_l=null,Ul=null,Ll=null,ni=new Map,ii=new Map,Bl=[],Bp="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 q0(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,l,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ja(t),t!==null&&U0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qp(e,t,l,a,i){switch(t){case"focusin":return _l=si(_l,e,t,l,a,i),!0;case"dragenter":return Ul=si(Ul,e,t,l,a,i),!0;case"mouseover":return Ll=si(Ll,e,t,l,a,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,si(ni.get(s)||null,e,t,l,a,i)),!0;case"gotpointercapture":return s=i.pointerId,ii.set(s,si(ii.get(s)||null,e,t,l,a,i)),!0}return!1}function H0(e){var t=xa(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=g(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(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 Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Oc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Tu=a,l.target.dispatchEvent(a),Tu=null}else return t=ja(l),t!==null&&U0(t),e.blockedOn=l,!1;t.shift()}return!0}function Q0(e,t,l){Us(e)&&l.delete(t)}function Hp(){Mc=!1,_l!==null&&Us(_l)&&(_l=null),Ul!==null&&Us(Ul)&&(Ul=null),Ll!==null&&Us(Ll)&&(Ll=null),ni.forEach(Q0),ii.forEach(Q0)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Hp)))}var Bs=null;function k0(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Tc(a||l)===null)continue;break}var s=ja(l);s!==null&&(e.splice(t,3),t-=3,Or(s,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function ln(e){function t(x){return Ls(x,e)}_l!==null&&Ls(_l,e),Ul!==null&&Ls(Ul,e),Ll!==null&&Ls(Ll,e),ni.forEach(t),ii.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)H0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],s=l[a+1],f=i[rt]||null;if(typeof s=="function")f||k0(l);else if(f){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[rt]||null)d=f.formAction;else if(Tc(i)!==null)continue}else d=f.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),k0(l)}}}function Y0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=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,i=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),i!==null&&(i(),i=null)}}}function Rc(e){this._internalRoot=e}qs.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Nt();D0(l,a,e,t,null,null)},qs.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;D0(e.current,2,null,e,null,null),ps(),t[ba]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wo();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&H0(e)}};var G0=u.version;if(G0!=="19.2.0")throw Error(o(527,G0,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{gn=Hs.inject(Qp),vt=Hs}catch{}}return nn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",i=Fd,s=Wd,f=Id;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=M0(e,1,!1,null,null,l,a,null,i,s,f,Y0),e[ba]=t.current,hc(e),new Rc(t)},nn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,i="",s=Fd,f=Wd,d=Id,x=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=M0(e,1,!0,t,l??null,a,i,x,s,f,d,Y0),t.context=R0(null),l=t.current,a=Nt(),a=Su(a),i=Sl(a),i.callback=null,wl(l,i,a),l=a,t.current.lanes=l,yn(t,l),Zt(t),e[ba]=t.current,hc(e),new qs(t)},nn.version="19.2.0",nn}var Vc;function P0(){if(Vc)return Ys.exports;Vc=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Ys.exports=I0(),Ys.exports}var em=P0();const tm=Dc(em);var ha=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lm={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},am=class{#e=lm;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},Hl=new am;function nm(n){setTimeout(n,0)}var Ql=typeof window>"u"||"Deno"in globalThis;function at(){}function im(n,u){return typeof n=="function"?n(u):n}function Xs(n){return typeof n=="number"&&n>=0&&n!==1/0}function Zc(n,u){return Math.max(n+(u||0)-Date.now(),0)}function ol(n,u){return typeof n=="function"?n(u):n}function Et(n,u){return typeof n=="function"?n(u):n}function Xc(n,u){const{type:c="all",exact:o,fetchStatus:h,predicate:v,queryKey:g,stale:y}=n;if(g){if(o){if(u.queryHash!==Ks(g,u.options))return!1}else if(!sn(u.queryKey,g))return!1}if(c!=="all"){const b=u.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof y=="boolean"&&u.isStale()!==y||h&&h!==u.state.fetchStatus||v&&!v(u))}function Kc(n,u){const{exact:c,status:o,predicate:h,mutationKey:v}=n;if(v){if(!u.options.mutationKey)return!1;if(c){if(kl(u.options.mutationKey)!==kl(v))return!1}else if(!sn(u.options.mutationKey,v))return!1}return!(o&&u.state.status!==o||h&&!h(u))}function Ks(n,u){return(u?.queryKeyHashFn||kl)(n)}function kl(n){return JSON.stringify(n,(u,c)=>Js(c)?Object.keys(c).sort().reduce((o,h)=>(o[h]=c[h],o),{}):c)}function sn(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>sn(n[c],u[c])):!1}var sm=Object.prototype.hasOwnProperty;function Jc(n,u){if(n===u)return n;const c=$c(n)&&$c(u);if(!c&&!(Js(n)&&Js(u)))return u;const h=(c?n:Object.keys(n)).length,v=c?u:Object.keys(u),g=v.length,y=c?new Array(g):{};let b=0;for(let p=0;p<g;p++){const N=c?p:v[p],z=n[N],L=u[N];if(z===L){y[N]=z,(c?p<h:sm.call(n,N))&&b++;continue}if(z===null||L===null||typeof z!="object"||typeof L!="object"){y[N]=L;continue}const V=Jc(z,L);y[N]=V,V===z&&b++}return h===g&&b===h?n:y}function ri(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const c in n)if(n[c]!==u[c])return!1;return!0}function $c(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Js(n){if(!Fc(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!Fc(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Fc(n){return Object.prototype.toString.call(n)==="[object Object]"}function um(n){return new Promise(u=>{Hl.setTimeout(u,n)})}function $s(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?Jc(n,u):u}function rm(n,u,c=0){const o=[...n,u];return c&&o.length>c?o.slice(1):o}function cm(n,u,c=0){const o=[u,...n];return c&&o.length>c?o.slice(0,-1):o}var Fs=Symbol();function Wc(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Fs?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ic(n,u){return typeof n=="function"?n(...u):!!n}var om=class extends ha{#e;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ws=new om;function Is(){let n,u;const c=new Promise((h,v)=>{n=h,u=v});c.status="pending",c.catch(()=>{});function o(h){Object.assign(c,h),delete c.resolve,delete c.reject}return c.resolve=h=>{o({status:"fulfilled",value:h}),n(h)},c.reject=h=>{o({status:"rejected",reason:h}),u(h)},c}var fm=nm;function dm(){let n=[],u=0,c=y=>{y()},o=y=>{y()},h=fm;const v=y=>{u?n.push(y):h(()=>{c(y)})},g=()=>{const y=n;n=[],y.length&&h(()=>{o(()=>{y.forEach(b=>{c(b)})})})};return{batch:y=>{let b;u++;try{b=y()}finally{u--,u||g()}return b},batchCalls:y=>(...b)=>{v(()=>{y(...b)})},schedule:v,setNotifyFunction:y=>{c=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{h=y}}}var Ye=dm(),hm=class extends ha{#e=!0;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},ci=new hm;function mm(n){return Math.min(1e3*2**n,3e4)}function Pc(n){return(n??"online")==="online"?ci.isOnline():!0}var Ps=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function eo(n){let u=!1,c=0,o;const h=Is(),v=()=>h.status!=="pending",g=M=>{if(!v()){const H=new Ps(M);L(H),n.onCancel?.(H)}},y=()=>{u=!0},b=()=>{u=!1},p=()=>Ws.isFocused()&&(n.networkMode==="always"||ci.isOnline())&&n.canRun(),N=()=>Pc(n.networkMode)&&n.canRun(),z=M=>{v()||(o?.(),h.resolve(M))},L=M=>{v()||(o?.(),h.reject(M))},V=()=>new Promise(M=>{o=H=>{(v()||p())&&M(H)},n.onPause?.()}).then(()=>{o=void 0,v()||n.onContinue?.()}),B=()=>{if(v())return;let M;const H=c===0?n.initialPromise:void 0;try{M=H??n.fn()}catch(q){M=Promise.reject(q)}Promise.resolve(M).then(z).catch(q=>{if(v())return;const $=n.retry??(Ql?0:3),k=n.retryDelay??mm,ne=typeof k=="function"?k(c,q):k,xe=$===!0||typeof $=="number"&&c<$||typeof $=="function"&&$(c,q);if(u||!xe){L(q);return}c++,n.onFail?.(c,q),um(ne).then(()=>p()?void 0:V()).then(()=>{u?L(q):B()})})};return{promise:h,status:()=>h.status,cancel:g,continue:()=>(o?.(),h),cancelRetry:y,continueRetry:b,canStart:N,start:()=>(N()?B():V().then(B),h)}}var to=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xs(this.gcTime)&&(this.#e=Hl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ql?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Hl.clearTimeout(this.#e),this.#e=void 0)}},gm=class extends to{#e;#t;#l;#n;#a;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#l=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=no(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=no(this.options);u.data!==void 0&&(this.setState(ao(u.data,u.dataUpdatedAt)),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(n,u){const c=$s(this.state.data,n,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),c}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#a?.promise;return this.#a?.cancel(n),u?u.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Et(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fs||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ol(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Zc(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,u){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const c=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,c.signal)})},h=()=>{const y=Wc(this.options,u),p=(()=>{const N={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(N),N})();return this.#u=!1,this.options.persister?this.options.persister(y,p,this):y(p)},g=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:h};return o(y),y})();this.options.behavior?.onFetch(g,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==g.fetchOptions?.meta)&&this.#i({type:"fetch",meta:g.fetchOptions?.meta}),this.#a=eo({initialPromise:u?.initialPromise,fn:g.fetchFn,onCancel:y=>{y instanceof Ps&&y.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(y,b)=>{this.#i({type:"failed",failureCount:y,error:b})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#l.config.onSuccess?.(y,this),this.#l.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Ps){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#l.config.onError?.(y,this),this.#l.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(n){const u=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...lo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...ao(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const h=n.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=u(this.state),Ye.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:n})})}};function lo(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pc(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ao(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function no(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var vm=class extends ha{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=Is(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#l=void 0;#n=void 0;#a;#s;#u;#i;#g;#d;#h;#c;#o;#r;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),io(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const u=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Et(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),u._defaulted&&!ri(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&so(this.#t,c,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||ol(this.options.staleTime,this.#t)!==ol(u.staleTime,this.#t))&&this.#v();const h=this.#y();o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||h!==this.#r)&&this.#p(h)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(u,n);return pm(this,c)&&(this.#n=c,this.#s=this.options,this.#a=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,u){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,u);return c.fetch().then(()=>this.createResult(c,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#S();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(at)),u}#v(){this.#x();const n=ol(this.options.staleTime,this.#t);if(Ql||this.#n.isStale||!Xs(n))return;const c=Zc(this.#n.dataUpdatedAt,n)+1;this.#c=Hl.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#p(n){this.#j(),this.#r=n,!(Ql||Et(this.options.enabled,this.#t)===!1||!Xs(this.#r)||this.#r===0)&&(this.#o=Hl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ws.isFocused())&&this.#f()},this.#r))}#b(){this.#v(),this.#p(this.#y())}#x(){this.#c&&(Hl.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Hl.clearInterval(this.#o),this.#o=void 0)}createResult(n,u){const c=this.#t,o=this.options,h=this.#n,v=this.#a,g=this.#s,b=n!==c?n.state:this.#l,{state:p}=n;let N={...p},z=!1,L;if(u._optimisticResults){const ee=this.hasListeners(),ve=!ee&&io(n,u),Me=ee&&so(n,c,u,o);(ve||Me)&&(N={...N,...lo(p.data,n.options)}),u._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:V,errorUpdatedAt:B,status:M}=N;L=N.data;let H=!1;if(u.placeholderData!==void 0&&L===void 0&&M==="pending"){let ee;h?.isPlaceholderData&&u.placeholderData===g?.placeholderData?(ee=h.data,H=!0):ee=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,ee!==void 0&&(M="success",L=$s(h?.data,ee,u),z=!0)}if(u.select&&L!==void 0&&!H)if(h&&L===v?.data&&u.select===this.#g)L=this.#d;else try{this.#g=u.select,L=u.select(L),L=$s(h?.data,L,u),this.#d=L,this.#i=null}catch(ee){this.#i=ee}this.#i&&(V=this.#i,L=this.#d,B=Date.now(),M="error");const q=N.fetchStatus==="fetching",$=M==="pending",k=M==="error",ne=$&&q,xe=L!==void 0,K={status:M,fetchStatus:N.fetchStatus,isPending:$,isSuccess:M==="success",isError:k,isInitialLoading:ne,isLoading:ne,data:L,dataUpdatedAt:N.dataUpdatedAt,error:V,errorUpdatedAt:B,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>b.dataUpdateCount||N.errorUpdateCount>b.errorUpdateCount,isFetching:q,isRefetching:q&&!$,isLoadingError:k&&!xe,isPaused:N.fetchStatus==="paused",isPlaceholderData:z,isRefetchError:k&&xe,isStale:tu(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Et(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=he=>{K.status==="error"?he.reject(K.error):K.data!==void 0&&he.resolve(K.data)},ve=()=>{const he=this.#u=K.promise=Is();ee(he)},Me=this.#u;switch(Me.status){case"pending":n.queryHash===c.queryHash&&ee(Me);break;case"fulfilled":(K.status==="error"||K.data!==Me.value)&&ve();break;case"rejected":(K.status!=="error"||K.error!==Me.reason)&&ve();break}}return K}updateResult(){const n=this.#n,u=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ri(u,n))return;this.#n=u;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!this.#m.size)return!0;const v=new Set(h??this.#m);return this.options.throwOnError&&v.add("error"),Object.keys(this.#n).some(g=>{const y=g;return this.#n[y]!==n[y]&&v.has(y)})};this.#w({listeners:c()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#l=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ye.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ym(n,u){return Et(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function io(n,u){return ym(n,u)||n.state.data!==void 0&&eu(n,u,u.refetchOnMount)}function eu(n,u,c){if(Et(u.enabled,n)!==!1&&ol(u.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&tu(n,u)}return!1}function so(n,u,c,o){return(n!==u||Et(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&tu(n,c)}function tu(n,u){return Et(u.enabled,n)!==!1&&n.isStaleByTime(ol(u.staleTime,n))}function pm(n,u){return!ri(n.getCurrentResult(),u)}function uo(n){return{onFetch:(u,c)=>{const o=u.options,h=u.fetchOptions?.meta?.fetchMore?.direction,v=u.state.data?.pages||[],g=u.state.data?.pageParams||[];let y={pages:[],pageParams:[]},b=0;const p=async()=>{let N=!1;const z=B=>{Object.defineProperty(B,"signal",{enumerable:!0,get:()=>(u.signal.aborted?N=!0:u.signal.addEventListener("abort",()=>{N=!0}),u.signal)})},L=Wc(u.options,u.fetchOptions),V=async(B,M,H)=>{if(N)return Promise.reject();if(M==null&&B.pages.length)return Promise.resolve(B);const $=(()=>{const de={client:u.client,queryKey:u.queryKey,pageParam:M,direction:H?"backward":"forward",meta:u.options.meta};return z(de),de})(),k=await L($),{maxPages:ne}=u.options,xe=H?cm:rm;return{pages:xe(B.pages,k,ne),pageParams:xe(B.pageParams,M,ne)}};if(h&&v.length){const B=h==="backward",M=B?bm:ro,H={pages:v,pageParams:g},q=M(o,H);y=await V(H,q,B)}else{const B=n??v.length;do{const M=b===0?g[0]??o.initialPageParam:ro(o,y);if(b>0&&M==null)break;y=await V(y,M),b++}while(b<B)}return y};u.options.persister?u.fetchFn=()=>u.options.persister?.(p,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c):u.fetchFn=p}}}function ro(n,{pages:u,pageParams:c}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,c[o],c):void 0}function bm(n,{pages:u,pageParams:c}){return u.length>0?n.getPreviousPageParam?.(u[0],u,c[0],c):void 0}var xm=class extends to{#e;#t;#l;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#l=n.mutationCache,this.#t=[],this.state=n.state||co(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#l.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#a({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=eo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(v,g)=>{this.#a({type:"failed",failureCount:v,error:g})},onPause:()=>{this.#a({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)});const o=this.state.status==="pending",h=!this.#n.canStart();try{if(o)u();else{this.#a({type:"pending",variables:n,isPaused:h}),await this.#l.config.onMutate?.(n,this,c);const g=await this.options.onMutate?.(n,c);g!==this.state.context&&this.#a({type:"pending",context:g,variables:n,isPaused:h})}const v=await this.#n.start();return await this.#l.config.onSuccess?.(v,n,this.state.context,this,c),await this.options.onSuccess?.(v,n,this.state.context,c),await this.#l.config.onSettled?.(v,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(v,null,n,this.state.context,c),this.#a({type:"success",data:v}),v}catch(v){try{throw await this.#l.config.onError?.(v,n,this.state.context,this,c),await this.options.onError?.(v,n,this.state.context,c),await this.#l.config.onSettled?.(void 0,v,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(void 0,v,n,this.state.context,c),v}finally{this.#a({type:"error",error:v})}}finally{this.#l.runNext(this)}}#a(n){const u=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Ye.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#l.notify({mutation:this,type:"updated",action:n})})}};function co(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(n,u,c){const o=new xm({client:n,mutationCache:this,mutationId:++this.#l,options:n.defaultMutationOptions(u),state:c});return this.add(o),o}add(n){this.#e.add(n);const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);c?c.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=oi(n);if(typeof u=="string"){const o=this.#t.get(u)?.find(h=>h.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=oi(n);return typeof u=="string"?this.#t.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ye.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Kc(u,c))}findAll(n={}){return this.getAll().filter(u=>Kc(n,u))}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Ye.batch(()=>Promise.all(n.map(u=>u.continue().catch(at))))}};function oi(n){return n.options.scope?.id}var Sm=class extends ha{#e;#t=void 0;#l;#n;constructor(n,u){super(),this.#e=n,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const u=this.options;this.options=this.#e.defaultMutationOptions(n),ri(this.options,u)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),u?.mutationKey&&this.options.mutationKey&&kl(u.mutationKey)!==kl(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#a(),this.#s()}mutate(n,u){return this.#n=u,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(n)}#a(){const n=this.#l?.state??co();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Ye.batch(()=>{if(this.#n&&this.hasListeners()){const u=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#n.onSuccess?.(n.data,u,c,o),this.#n.onSettled?.(n.data,null,u,c,o)):n?.type==="error"&&(this.#n.onError?.(n.error,u,c,o),this.#n.onSettled?.(void 0,n.error,u,c,o))}this.listeners.forEach(u=>{u(this.#t)})})}},wm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,c){const o=u.queryKey,h=u.queryHash??Ks(o,u);let v=this.get(h);return v||(v=new gm({client:n,queryKey:o,queryHash:h,options:n.defaultQueryOptions(u),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(v)),v}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ye.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Xc(u,c))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(c=>Xc(n,c)):u}notify(n){Ye.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Nm=class{#e;#t;#l;#n;#a;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new wm,this.#t=n.mutationCache||new jm,this.#l=n.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Ws.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ci.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=this.#e.build(this,u),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ol(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:c})=>{const o=c.data;return[u,o]})}setQueryData(n,u,c){const o=this.defaultQueryOptions({queryKey:n}),v=this.#e.get(o.queryHash)?.state.data,g=im(u,v);if(g!==void 0)return this.#e.build(this,o).setData(g,{...c,manual:!0})}setQueriesData(n,u,c){return Ye.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,c)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;Ye.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=this.#e;return Ye.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},o=Ye.batch(()=>this.#e.findAll(n).map(h=>h.cancel(c)));return Promise.all(o).then(at).catch(at)}invalidateQueries(n,u={}){return Ye.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},o=Ye.batch(()=>this.#e.findAll(n).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let v=h.fetch(void 0,c);return c.throwOnError||(v=v.catch(at)),h.state.fetchStatus==="paused"?Promise.resolve():v}));return Promise.all(o).then(at)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=this.#e.build(this,u);return c.isStaleByTime(ol(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(at).catch(at)}fetchInfiniteQuery(n){return n.behavior=uo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(at).catch(at)}ensureInfiniteQueryData(n){return n.behavior=uo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ci.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(n){this.#l=n}setQueryDefaults(n,u){this.#n.set(kl(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#n.values()],c={};return u.forEach(o=>{sn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,u){this.#a.set(kl(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#a.values()],c={};return u.forEach(o=>{sn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#l.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Ks(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Fs&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#l.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},oo=m.createContext(void 0),Lt=n=>{const u=m.useContext(oo);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},Em=({client:n,children:u})=>(m.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(oo.Provider,{value:n,children:u})),fo=m.createContext(!1),Cm=()=>m.useContext(fo);fo.Provider;function Am(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var zm=m.createContext(Am()),Om=()=>m.useContext(zm),Tm=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},Mm=n=>{m.useEffect(()=>{n.clearReset()},[n])},Rm=({result:n,errorResetBoundary:u,throwOnError:c,query:o,suspense:h})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(h&&n.data===void 0||Ic(c,[n.error,o])),Dm=n=>{if(n.suspense){const c=h=>h==="static"?h:Math.max(h??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...h)=>c(o(...h)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},_m=(n,u)=>n.isLoading&&n.isFetching&&!u,Um=(n,u)=>n?.suspense&&u.isPending,ho=(n,u,c)=>u.fetchOptimistic(n).catch(()=>{c.clearReset()});function Lm(n,u,c){const o=Cm(),h=Om(),v=Lt(),g=v.defaultQueryOptions(n);v.getDefaultOptions().queries?._experimental_beforeQuery?.(g),g._optimisticResults=o?"isRestoring":"optimistic",Dm(g),Tm(g,h),Mm(h);const y=!v.getQueryCache().get(g.queryHash),[b]=m.useState(()=>new u(v,g)),p=b.getOptimisticResult(g),N=!o&&n.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(z=>{const L=N?b.subscribe(Ye.batchCalls(z)):at;return b.updateResult(),L},[b,N]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),m.useEffect(()=>{b.setOptions(g)},[g,b]),Um(g,p))throw ho(g,b,h);if(Rm({result:p,errorResetBoundary:h,throwOnError:g.throwOnError,query:v.getQueryCache().get(g.queryHash),suspense:g.suspense}))throw p.error;return v.getDefaultOptions().queries?._experimental_afterQuery?.(g,p),g.experimental_prefetchInRender&&!Ql&&_m(p,o)&&(y?ho(g,b,h):v.getQueryCache().get(g.queryHash)?.promise)?.catch(at).finally(()=>{b.updateResult()}),g.notifyOnChangeProps?p:b.trackResult(p)}function ma(n,u){return Lm(n,vm)}function Qt(n,u){const c=Lt(),[o]=m.useState(()=>new Sm(c,n));m.useEffect(()=>{o.setOptions(n)},[o,n]);const h=m.useSyncExternalStore(m.useCallback(g=>o.subscribe(Ye.batchCalls(g)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),v=m.useCallback((g,y)=>{o.mutate(g,y).catch(at)},[o]);if(h.error&&Ic(o.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:v,mutateAsync:h.mutate}}let Bm=new Nm({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});function qm(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,h,v,g=[],y="",b=n.split("/");for(b[0]||b.shift();h=b.shift();)c=h[0],c==="*"?(g.push(c),y+=h[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=h.indexOf("?",1),v=h.indexOf(".",1),g.push(h.substring(1,~o?o:~v?v:h.length)),y+=~o&&!~v?"(?:/([^/]+?))?":"/([^/]+?)",~v&&(y+=(~o?"?":"")+"\\"+h.substring(v))):y+="/"+h;return{keys:g,pattern:new RegExp("^"+y+(u?"(?=$|/)":"/?$"),"i")}}var lu={exports:{}},au={};var mo;function Hm(){if(mo)return au;mo=1;var n=ui();function u(z,L){return z===L&&(z!==0||1/z===1/L)||z!==z&&L!==L}var c=typeof Object.is=="function"?Object.is:u,o=n.useState,h=n.useEffect,v=n.useLayoutEffect,g=n.useDebugValue;function y(z,L){var V=L(),B=o({inst:{value:V,getSnapshot:L}}),M=B[0].inst,H=B[1];return v(function(){M.value=V,M.getSnapshot=L,b(M)&&H({inst:M})},[z,V,L]),h(function(){return b(M)&&H({inst:M}),z(function(){b(M)&&H({inst:M})})},[z]),g(V),V}function b(z){var L=z.getSnapshot;z=z.value;try{var V=L();return!c(z,V)}catch{return!0}}function p(z,L){return L()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:y;return au.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:N,au}var go;function Qm(){return go||(go=1,lu.exports=Hm()),lu.exports}var km=Qm();const Ym=J0.useInsertionEffect,Gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,Vm=Ym||Gm,vo=n=>{const u=m.useRef([n,(...c)=>u[0](...c)]).current;return Vm(()=>{u[0]=n}),u[1]},Zm="popstate",nu="pushState",iu="replaceState",yo=[Zm,nu,iu,"hashchange"],Xm=n=>{for(const u of yo)addEventListener(u,n);return()=>{for(const u of yo)removeEventListener(u,n)}},po=(n,u)=>km.useSyncExternalStore(Xm,n,u),Km=()=>location.search,Jm=({ssrSearch:n=""}={})=>po(Km,()=>n),bo=()=>location.pathname,$m=({ssrPath:n}={})=>po(bo,n?()=>n:bo),Fm=(n,{replace:u=!1,state:c=null}={})=>history[u?iu:nu](c,"",n),Wm=(n={})=>[$m(n),Fm],xo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[xo]>"u"){for(const n of[nu,iu]){const u=history[n];history[n]=function(){const c=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,xo,{value:!0})}const Im=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",jo=(n="")=>n==="/"?"":n,Pm=(n,u)=>n[0]==="~"?n.slice(1):jo(u)+n,eg=(n="",u)=>Im(So(jo(n)),So(u)),So=n=>{try{return decodeURI(n)}catch{return n}},wo={hook:Wm,searchHook:Jm,parser:qm,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},No=m.createContext(wo),ga=()=>m.useContext(No),Eo={},Co=m.createContext(Eo),tg=()=>m.useContext(Co),fi=n=>{const[u,c]=n.hook(n);return[eg(n.base,u),vo((o,h)=>c(Pm(o,n.base),h))]},di=()=>fi(ga()),su=(n,u,c,o)=>{const{pattern:h,keys:v}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),g=h.exec(c)||[],[y,...b]=g;return y!==void 0?[!0,(()=>{const p=v!==!1?Object.fromEntries(v.map((z,L)=>[z,b[L]])):g.groups;let N={...b};return p&&Object.assign(N,p),N})(),...o?[y]:[]]:[!1,null]},lg=n=>su(ga().parser,n,di()[0]),ag=({children:n,...u})=>{const c=ga(),o=u.hook?wo:c;let h=o;const[v,g]=u.ssrPath?.split("?")??[];g&&(u.ssrSearch=g,u.ssrPath=v),u.hrefs=u.hrefs??u.hook?.hrefs;let y=m.useRef({}),b=y.current,p=b;for(let N in o){const z=N==="base"?o[N]+(u[N]||""):u[N]||o[N];b===p&&z!==p[N]&&(y.current=p={...p}),p[N]=z,(z!==o[N]||z!==h[N])&&(h=p)}return m.createElement(No.Provider,{value:h,children:n})},Ao=({children:n,component:u},c)=>u?m.createElement(u,{params:c}):typeof n=="function"?n(c):n,ng=n=>{let u=m.useRef(Eo);const c=u.current;return u.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,h])=>h!==c[o])?n:c},va=({path:n,nest:u,match:c,...o})=>{const h=ga(),[v]=fi(h),[g,y,b]=c??su(h.parser,n,v,u),p=ng({...tg(),...y});if(!g)return null;const N=b?m.createElement(ag,{base:b},Ao(o,p)):Ao(o,p);return m.createElement(Co.Provider,{value:p,children:N})};m.forwardRef((n,u)=>{const c=ga(),[o,h]=fi(c),{to:v="",href:g=v,onClick:y,asChild:b,children:p,className:N,replace:z,state:L,...V}=n,B=vo(H=>{H.ctrlKey||H.metaKey||H.altKey||H.shiftKey||H.button!==0||(y?.(H),H.defaultPrevented||(H.preventDefault(),h(g,n)))}),M=c.hrefs(g[0]==="~"?g.slice(1):c.base+g,c);return b&&m.isValidElement(p)?m.cloneElement(p,{onClick:B,href:M}):m.createElement("a",{...V,onClick:B,href:M,className:N?.call?N(o===g):N,children:p,ref:u})});const zo=n=>Array.isArray(n)?n.flatMap(u=>zo(u&&u.type===m.Fragment?u.props.children:u)):[n],Oo=({children:n,location:u})=>{const c=ga(),[o]=fi(c);for(const h of zo(n)){let v=0;if(m.isValidElement(h)&&(v=su(c.parser,h.props.path,u||o,h.props.nest))[0])return m.cloneElement(h,{match:v})}return null};async function Ze(n,u={}){let c=await fetch(n,{...u,headers:{"Content-Type":"application/json",...u.headers}}),o=await c.json();if(!c.ok){let h=new Error(o.error||"Request failed");throw h.status=c.status,h.data=o,h}return o}let un={async getReportData(){return Ze("/api/report-data")},async getStatus(){return Ze("/api/status")},async acceptBaseline(n){return Ze("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Ze("/api/baseline/accept-all",{method:"POST"})},async resetBaselines(){return Ze("/api/baseline/reset",{method:"POST"})},async downloadBaselines(n,u,c){return Ze("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:u,projectSlug:c})})}},To={async get(){return Ze("/api/config")},async updateProject(n){return Ze("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},hi={async getStatus(){return Ze("/api/auth/status")},async initiateLogin(){return Ze("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Ze("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Ze("/api/auth/logout",{method:"POST"})}},mi={async list(){return Ze("/api/projects")},async listMappings(){return Ze("/api/projects/mappings")},async createMapping(n){return Ze("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Ze(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){let u=new URLSearchParams;n.limit&&u.append("limit",String(n.limit)),n.branch&&u.append("branch",n.branch);let c=u.toString();return Ze(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,u,c={}){let o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);let h=o.toString(),v=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(u)}/builds${h?`?${h}`:""}`;return Ze(v)}},Te={auth:["auth"],authStatus:()=>[...Te.auth,"status"],config:["config"],projectConfig:()=>[...Te.config,"project"],globalConfig:()=>[...Te.config,"global"],tdd:["tdd"],reportData:()=>[...Te.tdd,"report"],status:()=>[...Te.tdd,"status"],cloud:["cloud"],projects:()=>[...Te.cloud,"projects"],builds:(n,u)=>[...Te.cloud,"builds",n,u]};function rn(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}function ig(){return typeof window<"u"&&window.VIZZLY_REPORTER_DATA?window.VIZZLY_REPORTER_DATA:null}function gi(n={}){let u=ig(),c=rn();return ma({queryKey:Te.reportData(),queryFn:async()=>c&&u?u:un.getReportData(),initialData:u||void 0,refetchInterval:c?!1:n.polling!==!1?2e3:!1,refetchOnWindowFocus:!c,...n})}function sg(){let n=Lt();return Qt({mutationFn:u=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptBaseline(u)},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function Mo(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptAllBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function ug(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");return un.resetBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function rg(){return Qt({mutationFn:async n=>{if(rn())throw new Error("Cannot reject baselines in static report mode. Use the live dev server.");return{success:!0,id:n}}})}function cg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const og=m.forwardRef(cg);function fg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const dg=m.forwardRef(fg);function hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const mg=m.forwardRef(hg);function gg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const fl=m.forwardRef(gg);function vg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Ro=m.forwardRef(vg);function yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const pg=m.forwardRef(yg);function bg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const xg=m.forwardRef(bg);function jg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Sg=m.forwardRef(jg);function wg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Ng=m.forwardRef(wg);function Eg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const Cg=m.forwardRef(Eg);function Ag({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const zg=m.forwardRef(Ag);function Og({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Yl=m.forwardRef(Og);function Tg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Do=m.forwardRef(Tg);function Mg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const uu=m.forwardRef(Mg);function Rg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Dg=m.forwardRef(Rg);function _g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const ru=m.forwardRef(_g);function Ug({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const vi=m.forwardRef(Ug);function Lg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const Bg=m.forwardRef(Lg);function qg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const cu=m.forwardRef(qg);function Hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const Qg=m.forwardRef(Hg);function kg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const dl=m.forwardRef(kg);function Yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const cn=m.forwardRef(Yg);function Gg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const Vg=m.forwardRef(Gg);function Zg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Xg=m.forwardRef(Zg);function Kg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const Jg=m.forwardRef(Kg);function $g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Fg=m.forwardRef($g);function Wg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ig=m.forwardRef(Wg);function Pg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const ou=m.forwardRef(Pg);function ev({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"}))}const _o=m.forwardRef(ev);function tv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const lv=m.forwardRef(tv);function av({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const nv=m.forwardRef(av);function iv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const fu=m.forwardRef(iv);function sv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))}const Uo=m.forwardRef(sv);function uv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const du=m.forwardRef(uv);function rv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const yi=m.forwardRef(rv);function Xe({children:n,variant:u="primary",size:c="md",disabled:o=!1,loading:h=!1,icon:v,iconPosition:g="left",fullWidth:y=!1,className:b="",...p}){let N="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",z={primary:"bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},L={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},V=[N,z[u],L[c],y?"w-full":"",o||h?"opacity-50 cursor-not-allowed pointer-events-none":"",b].filter(Boolean).join(" ");return r.jsxs("button",{className:V,disabled:o||h,...p,children:[h&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),v&&g==="left"&&!h&&r.jsx(v,{className:"w-4 h-4"}),n,v&&g==="right"&&!h&&r.jsx(v,{className:"w-4 h-4"})]})}function on({children:n,variant:u="default",size:c="sm",dot:o=!1,pulseDot:h=!1,className:v="",...g}){let y={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},b={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},p={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},N=["inline-flex items-center gap-1.5 font-medium rounded-full border",y[u],p[c],v].filter(Boolean).join(" ");return r.jsxs("span",{className:N,...g,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[h&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${b[u]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${b[u]}`})]}),n]})}function pi({label:n,hint:u,error:c,icon:o,size:h="md",className:v="",...g}){let b=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[h],o?"pl-10":"",g.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,g.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:b,...g})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function cv({label:n,hint:u,error:c,options:o=[],placeholder:h="Select an option",size:v="md",className:g="",...y}){let p=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[v],y.disabled?"opacity-50 cursor-not-allowed":"",g].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,y.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:p,...y,children:[h&&r.jsx("option",{value:"",disabled:!0,children:h}),o.map(N=>r.jsx("option",{value:N.value,children:N.label},N.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function ov({label:n,description:u,checked:c,onChange:o,disabled:h=!1,size:v="md",className:g="",...y}){let b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"peer-checked:translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"peer-checked:translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"peer-checked:translate-x-7"}},{track:p,thumb:N,translate:z}=b[v];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${h?"opacity-50 cursor-not-allowed":""} ${g}`,children:[r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),u&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:h,className:"sr-only peer",...y}),r.jsx("div",{className:`${p} rounded-full bg-slate-700 transition-colors peer-checked:bg-amber-500 peer-focus-visible:ring-2 peer-focus-visible:ring-amber-500/50 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-slate-900`}),r.jsx("div",{className:`absolute left-1 top-1 ${N} rounded-full bg-white shadow-sm transition-transform ${z}`})]})]})}function lt({children:n,variant:u,hover:c=!0,className:o="",...h}){let g=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",u?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[u]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:g,...h,children:n})}function Gl({icon:n,title:u,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:h,className:v=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${v}`,children:r.jsxs("div",{className:`flex items-center ${h?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),h&&r.jsx("div",{className:"flex items-center gap-2",children:h})]})})}function nt({children:n,className:u="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${u}`,children:n})}function fv({children:n,className:u=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${u}`,children:n})}let dv={success:{icon:Yl,bg:"bg-emerald-500/10",border:"border-emerald-500/20",iconColor:"text-emerald-400",textColor:"text-emerald-300"},warning:{icon:dl,bg:"bg-amber-500/10",border:"border-amber-500/20",iconColor:"text-amber-400",textColor:"text-amber-300"},danger:{icon:du,bg:"bg-red-500/10",border:"border-red-500/20",iconColor:"text-red-400",textColor:"text-red-300"},info:{icon:Xg,bg:"bg-blue-500/10",border:"border-blue-500/20",iconColor:"text-blue-400",textColor:"text-blue-300"}};function hu({variant:n="info",title:u,children:c,icon:o,dismissible:h=!1,onDismiss:v,className:g=""}){let y=dv[n],b=o||y.icon;return r.jsx("div",{className:`rounded-xl border ${y.bg} ${y.border} p-4 ${g}`,role:"alert",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx("div",{className:`flex-shrink-0 ${y.iconColor}`,children:r.jsx(b,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[u&&r.jsx("h3",{className:`text-sm font-medium ${y.textColor}`,children:u}),c&&r.jsx("div",{className:`text-sm ${u?"mt-1":""} text-slate-400`,children:c})]}),h&&v&&r.jsx("button",{onClick:v,className:"flex-shrink-0 text-slate-500 hover:text-slate-300 transition-colors",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function hv({value:n=0,label:u,size:c=120,strokeWidth:o=8,className:h=""}){let[v,g]=m.useState(0);m.useEffect(()=>{if(typeof window>"u")return;let z=v,L=Math.min(100,Math.max(0,n)),V=1e3,B=window.performance.now();function M(H){let q=H-B,$=Math.min(q/V,1),k=1-Math.pow(1-$,3),ne=z+(L-z)*k;g(Math.round(ne)),$<1&&window.requestAnimationFrame(M)}window.requestAnimationFrame(M)},[n,v]);let y=(c-o)/2,b=y*2*Math.PI,p=b-v/100*b,N=v>=80?"health-ring__progress--success":v>=50?"health-ring__progress--warning":"health-ring__progress--danger";return r.jsxs("div",{className:`health-ring ${h}`,style:{width:c,height:c,"--ring-size":`${c}px`,"--ring-stroke":`${o}px`},children:[r.jsxs("svg",{className:"health-ring__svg",viewBox:`0 0 ${c} ${c}`,children:[r.jsx("circle",{className:"health-ring__track",cx:c/2,cy:c/2,r:y}),r.jsx("circle",{className:`health-ring__progress ${N}`,cx:c/2,cy:c/2,r:y,strokeDasharray:b,strokeDashoffset:p})]}),r.jsxs("div",{className:"health-ring__value",children:[r.jsxs("span",{className:"health-ring__percentage",children:[v,"%"]}),u&&r.jsx("span",{className:"health-ring__label",children:u})]})]})}function mv({tabs:n=[],activeTab:u,onChange:c,variant:o="default",className:h=""}){let g={default:{container:"border-b border-slate-700/50",tab:"px-4 py-3 text-sm font-medium transition-colors relative",active:"text-amber-400",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"},pills:{container:"bg-slate-800/50 p-1 rounded-lg inline-flex gap-1",tab:"px-4 py-2 text-sm font-medium rounded-md transition-all",active:"bg-amber-500 text-slate-900",inactive:"text-slate-400 hover:text-white hover:bg-white/5",indicator:""},underline:{container:"flex gap-6",tab:"pb-3 text-sm font-medium transition-colors relative",active:"text-white",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"}}[o];return r.jsx("div",{className:`${g.container} ${h}`,children:n.map(y=>{let b=u===y.key;return r.jsxs("button",{onClick:()=>c?.(y.key),className:`${g.tab} ${b?g.active:g.inactive}`,children:[r.jsxs("span",{className:"flex items-center gap-2",children:[y.icon&&r.jsx(y.icon,{className:"w-4 h-4"}),y.label,y.count!==void 0&&r.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded-full ${b?o==="pills"?"bg-slate-900/20 text-slate-900":"bg-amber-500/20 text-amber-400":"bg-slate-700 text-slate-400"}`,children:y.count})]}),b&&g.indicator&&r.jsx("div",{className:g.indicator})]},y.key)})})}function ut({variant:n="text",className:u="",count:c=1}){let o={text:"h-4 w-full",heading:"h-6 w-3/5",avatar:"w-10 h-10 rounded-full",button:"h-9 w-24 rounded-lg",badge:"h-5 w-16 rounded-full",card:"h-32 w-full rounded-xl"},h=Array.from({length:c},(v,g)=>g);return r.jsx(r.Fragment,{children:h.map(v=>r.jsx("div",{className:`skeleton ${o[n]} ${u}`},v))})}function Vl({className:n=""}){return r.jsxs("div",{className:`vz-card vz-card--no-hover p-6 space-y-4 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ut,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(ut,{variant:"heading"}),r.jsx(ut,{variant:"text",className:"w-2/3"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text",className:"w-4/5"})]})]})}function ya({icon:n,title:u,description:c,action:o,className:h=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-6 text-center ${h}`,children:[n&&r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-6",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),u&&r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}Yc();function fn({size:n="md",className:u=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${u}`,viewBox:"0 0 24 24",fill:"none",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}let Lo=[{key:"comparisons",label:"Comparisons",icon:ou},{key:"stats",label:"Stats",icon:zg},{key:"builds",label:"Builds",icon:Bg},{key:"projects",label:"Projects",icon:cn},{key:"settings",label:"Settings",icon:cu}];function gv({currentView:n,onNavigate:u,loading:c}){let[o,h]=m.useState(!1),v=g=>{u?.(g),h(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{onClick:()=>v("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),u&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Lo.map(g=>{let y=n===g.key;return r.jsxs("button",{onClick:()=>v(g.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${y?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(g.icon,{className:"w-4 h-4"}),g.label]},g.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(fn,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),u&&r.jsx("button",{onClick:()=>h(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(yi,{className:"w-6 h-6"}):r.jsx(xg,{className:"w-6 h-6"})})]})]}),u&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Lo.map(g=>{let y=n===g.key;return r.jsxs("button",{onClick:()=>v(g.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${y?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(g.icon,{className:"w-5 h-5"}),g.label]},g.key)})})})]})})}function dn({children:n,currentView:u,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(gv,{currentView:u,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}let Bo=m.createContext(null);function vv({children:n}){let[u,c]=m.useState([]),o=m.useCallback((g,y="success",b={})=>{let p=Date.now();c(z=>[...z,{id:p,message:g,type:y,...b}]);let N=b.duration!==void 0?b.duration:b.actions?null:5e3;return N&&setTimeout(()=>{c(z=>z.filter(L=>L.id!==p))},N),p},[]),h=m.useCallback(g=>{c(y=>y.filter(b=>b.id!==g))},[]),v=m.useCallback((g,y)=>new Promise(b=>{let p=Date.now();c(N=>[...N,{id:p,message:g,title:y,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(z=>z.filter(L=>L.id!==p)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(z=>z.filter(L=>L.id!==p)),b(!0)}}]}])}),[]);return r.jsxs(Bo.Provider,{value:{addToast:o,removeToast:h,confirm:v},children:[n,r.jsx(yv,{toasts:u,onRemove:h})]})}function Zl(){let n=m.useContext(Bo);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function yv({toasts:n,onRemove:u}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(pv,{toast:c,onRemove:u},c.id))})}function pv({toast:n,onRemove:u}){let c=n.type==="success"?Yl:n.type==="confirm"?dl:du,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",h=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${h} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map((v,g)=>r.jsx("button",{onClick:v.onClick,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},g))})]}),!n.actions&&r.jsx("button",{onClick:()=>u(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function bi({icon:n,label:u,value:c,subvalue:o,variant:h,iconColor:v}){return r.jsx(lt,{variant:h,hover:!1,children:r.jsx(nt,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:u}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${v}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function bv(){let{addToast:n,confirm:u}=Zl(),{data:c,isLoading:o,refetch:h}=gi(),v=Mo(),g=ug(),y=c?.comparisons,b=c?.baseline,p=y?.length||0,N=y?.filter(q=>q.status==="passed").length||0,z=y?.filter(q=>q.status==="failed").length||0,L=y?.filter(q=>q.status==="new").length||0,V=p>0?Math.round(N/p*100):0,B=y?.some(q=>q.status==="failed"||q.status==="new"),M=m.useCallback(async()=>{await u("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:$=>{console.error("Failed to accept all baselines:",$),n("Failed to accept all baselines. Please try again.","error")}})},[v,n,u]),H=m.useCallback(async()=>{await u("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&g.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:$=>{console.error("Failed to reset baselines:",$),n("Failed to reset baselines. Please try again.","error")}})},[g,n,u]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(hv,{value:V,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[N," of ",p," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(bi,{icon:ou,label:"Total Screenshots",value:p,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(bi,{icon:Do,label:"Passed",value:N,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(bi,{icon:dl,label:"Failed",value:z,variant:z>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(bi,{icon:lv,label:"New",value:L,variant:L>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:vi,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:L>0&&r.jsxs(on,{variant:"warning",dot:!0,children:[L," new without baseline"]})}),r.jsx(nt,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(fv,{className:"flex flex-wrap gap-3",children:[r.jsx(Xe,{variant:"success",onClick:M,loading:v.isPending,disabled:!B||o,icon:Do,children:B?"Accept All Changes":"No Changes to Accept"}),r.jsx(Xe,{variant:"secondary",onClick:H,loading:g.isPending,disabled:o,icon:fl,children:"Reset Baselines"}),r.jsx(Xe,{variant:"ghost",onClick:()=>h(),loading:o,icon:fl,className:"ml-auto",children:"Refresh"})]})]})]})}const hn={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},kt={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},hl={PRIORITY:"priority",NAME:"name",TIME:"time"},Xl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function xv(n,u){return[...n].sort((c,o)=>{if(u==="priority"){const h={[Xl.FAILED]:3,[Xl.NEW]:2,[Xl.PASSED]:1},v=c.initialStatus||c.status,g=o.initialStatus||o.status,y=h[v]||0,b=h[g]||0;return y!==b?b-y:(o.diffPercentage||0)-(c.diffPercentage||0)}return u==="name"?(c.name||"").localeCompare(o.name||""):u==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function jv(n,u){return u==="failed"?n.filter(c=>c.status===Xl.FAILED):u==="passed"?n.filter(c=>c.status===Xl.PASSED):u==="new"?n.filter(c=>c.status===Xl.NEW||c.status===Xl.BASELINE_CREATED):n}let Sv=()=>{let n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||kt.ALL,sortBy:n.get("sort")||hl.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function wv(n=[]){let u=Sv(),[c,o]=m.useState(u.filter),[h,v]=m.useState(u.sortBy),[g,y]=m.useState(u.searchQuery),[b,p]=m.useState(u.selectedBrowser),[N,z]=m.useState(u.selectedViewport);m.useEffect(()=>{let B=new URLSearchParams;c!==kt.ALL&&B.set("filter",c),h!==hl.PRIORITY&&B.set("sort",h),g&&B.set("search",g),b!=="all"&&B.set("browser",b),N!=="all"&&B.set("viewport",N);let M=B.toString()?`?${B.toString()}`:window.location.pathname;window.history.replaceState({},"",M)},[c,h,g,b,N]);let L=m.useMemo(()=>{let B=new Set,M=new Set;return n.forEach(H=>{if(H.properties?.browser&&B.add(H.properties.browser),H.properties?.viewport_width&&H.properties?.viewport_height){let q=`${H.properties.viewport_width}x${H.properties.viewport_height}`;M.add(q)}else if(H.properties?.viewport){let q=`${H.properties.viewport.width}x${H.properties.viewport.height}`;M.add(q)}}),{browsers:Array.from(B).sort(),viewports:Array.from(M).sort()}},[n]);return{filteredComparisons:m.useMemo(()=>{let B=jv(n,c);if(g.trim()){let M=g.toLowerCase();B=B.filter(H=>H.name.toLowerCase().includes(M)||H.originalName?.toLowerCase().includes(M))}return b!=="all"&&(B=B.filter(M=>M.properties?.browser===b)),N!=="all"&&(B=B.filter(M=>{let H=null;return M.properties?.viewport_width&&M.properties?.viewport_height?H=`${M.properties.viewport_width}x${M.properties.viewport_height}`:M.properties?.viewport&&(H=`${M.properties.viewport.width}x${M.properties.viewport.height}`),H===N})),xv(B,h)},[n,c,h,g,b,N]),filter:c,setFilter:o,sortBy:h,setSortBy:v,searchQuery:g,setSearchQuery:y,selectedBrowser:b,setSelectedBrowser:p,selectedViewport:N,setSelectedViewport:z,availableFilters:L,counts:{all:n.length,failed:n.filter(B=>B.status==="failed").length,passed:n.filter(B=>B.status==="passed").length,new:n.filter(B=>B.status==="new").length}}}function Nv({filter:n,setFilter:u,sortBy:c,setSortBy:o,searchQuery:h,setSearchQuery:v,selectedBrowser:g,setSelectedBrowser:y,selectedViewport:b,setSelectedViewport:p,availableFilters:N,counts:z,onRefresh:L,loading:V}){let[B,M]=m.useState(!1),H=N.browsers.length>1||N.viewports.length>1;return r.jsxs("div",{className:"space-y-3 md:space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx(Ig,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),r.jsx("input",{type:"text",placeholder:"Search screenshots...",value:h,onChange:q=>v(q.target.value),className:"w-full bg-slate-800 border border-slate-700 rounded-lg pl-10 pr-4 py-3 md:py-2.5 text-white placeholder-slate-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors text-base md:text-sm"})]}),H&&r.jsx("button",{onClick:()=>M(!B),className:`md:hidden inline-flex items-center justify-center bg-slate-800 border border-slate-700 p-3 rounded-lg transition-colors touch-manipulation ${B?"text-amber-400 border-amber-500":"text-slate-300 hover:text-white"}`,title:"Filters",children:r.jsx(og,{className:"w-5 h-5"})}),r.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[r.jsxs("select",{value:c,onChange:q=>o(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]}),r.jsx("button",{onClick:L,disabled:V,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsx("button",{onClick:L,disabled:V,className:"md:hidden inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed touch-manipulation",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1 scroll-snap-x md:flex-wrap md:overflow-visible",children:[r.jsx("span",{className:"hidden md:inline text-sm text-slate-400 mr-1 flex-shrink-0",children:"Status:"}),r.jsxs("button",{onClick:()=>u(kt.ALL),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.ALL?"bg-amber-500 text-slate-900 shadow-lg shadow-amber-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["All ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.all,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.FAILED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Failed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.failed,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.NEW),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["New ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.new,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.PASSED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.PASSED?"bg-emerald-500 text-white shadow-lg shadow-emerald-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Passed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",z.passed,")"]})]}),N.browsers.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Browser:"}),r.jsxs("select",{value:g,onChange:q=>y(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(q=>r.jsx("option",{value:q,children:q},q))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Viewport:"}),r.jsxs("select",{value:b,onChange:q=>p(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(q=>r.jsx("option",{value:q,children:q},q))]})]})]}),B&&H&&r.jsxs("div",{className:"md:hidden bg-slate-800/50 border border-slate-700 rounded-lg p-3 space-y-3 animate-slide-down",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by:"}),r.jsxs("select",{value:c,onChange:q=>o(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]})]}),N.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser:"}),r.jsxs("select",{value:g,onChange:q=>y(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(q=>r.jsx("option",{value:q,children:q},q))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport:"}),r.jsxs("select",{value:b,onChange:q=>p(q.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(q=>r.jsx("option",{value:q,children:q},q))]})]})]})]})}function Ev(n){let[u,c]=m.useState("loading");return m.useEffect(()=>{if(!n){c("missing");return}c("loading");let o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),u}function Cv({src:n,alt:u,className:c,style:o,onClick:h}){let v=Ev(n);return v==="missing"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(ou,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",u.toLowerCase()," available"]})]})}):v==="loading"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(fl,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",u.toLowerCase(),"..."]})]})}):v==="error"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(dl,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",u.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})}):r.jsx("img",{src:n,alt:u,className:c,style:o,onClick:h})}function Av(n){return n.id||n.signature||n.name}function zv({status:n}){let u={failed:"bg-red-500",passed:"bg-emerald-500",new:"bg-blue-500","baseline-created":"bg-blue-500"};return r.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${u[n]||"bg-slate-500"}`})}function Ov({userAction:n}){return n==="accepted"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/20 text-emerald-400",children:[r.jsx(Yl,{className:"w-3 h-3"}),"Accepted"]}):n==="rejected"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/20 text-amber-400",children:[r.jsx(Qg,{className:"w-3 h-3"}),"Rejected"]}):null}function Tv(n){return n.properties?.viewport_width&&n.properties?.viewport_height?`${n.properties.viewport_width}×${n.properties.viewport_height}`:n.properties?.viewport?`${n.properties.viewport.width}×${n.properties.viewport.height}`:null}function Mv({comparison:n,onClick:u,userAction:c}){let o=Tv(n),h=n.properties?.browser,v=n.status==="failed",g=n.status==="new"||n.status==="baseline-created",y=n.current||n.baseline;return r.jsxs("button",{onClick:()=>u(n),className:`
|
|
10
10
|
w-full flex items-center gap-3 md:gap-4 p-3 md:p-4
|
|
11
11
|
bg-white/5 hover:bg-white/10 active:bg-white/15
|
|
12
12
|
border rounded-lg transition-all duration-150
|
|
@@ -15,20 +15,20 @@ Error generating stack: `+a.message+`
|
|
|
15
15
|
`,children:[r.jsxs("div",{className:`
|
|
16
16
|
relative w-16 h-12 md:w-20 md:h-14 rounded-md overflow-hidden flex-shrink-0 bg-slate-800
|
|
17
17
|
${v?"ring-2 ring-red-500/50":g?"ring-2 ring-blue-500/50":""}
|
|
18
|
-
`,children:[y?r.jsx(Cv,{src:y,alt:n.name||"Screenshot",className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full"})}),g&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/20 flex items-center justify-center",children:r.jsx("span",{className:"text-[10px] font-bold text-blue-400 bg-blue-900/80 px-1.5 py-0.5 rounded",children:"NEW"})})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-base md:text-lg font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),r.jsx(Av,{status:n.status})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-slate-400",children:[h&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:h}),o&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:o}),n.diffPercentage>0&&r.jsxs("span",{className:"text-red-400",children:[n.diffPercentage.toFixed(2),"% diff"]})]})]}),r.jsx("div",{className:"flex-shrink-0",children:r.jsx(Ov,{userAction:c})}),r.jsx("div",{className:"flex-shrink-0 text-slate-500",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})}function Rv({comparisons:n,onSelectComparison:u,loadingStates:c={}}){return!n||n.length===0?r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"}):r.jsx("div",{className:"space-y-2",children:n.map(o=>{let h=zv(o);return r.jsx(Mv,{comparison:{...o,id:h},onClick:u,userAction:c[h]},h)})})}function Dv(){let[,n]=di(),{addToast:u,confirm:c}=Zl(),{data:o,isLoading:h,refetch:v}=gi(),g=Mo(),{filteredComparisons:y,filter:x,setFilter:p,sortBy:N,setSortBy:A,searchQuery:L,setSearchQuery:V,selectedBrowser:B,setSelectedBrowser:M,selectedViewport:H,setSelectedViewport:q,availableFilters:$,counts:k}=wv(o?.comparisons),ne=m.useCallback(J=>{let de=J.id||J.signature||J.name;de&&n(`/comparison/${encodeURIComponent(de)}`)},[n]),xe=m.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&g.mutate(void 0,{onSuccess:()=>{u("All baselines accepted successfully","success")},onError:de=>{console.error("Failed to accept all baselines:",de),u("Failed to accept all baselines. Please try again.","error")}})},[g,u,c]),fe=!o?.comparisons||o.comparisons.length===0,K=x!=="all"||L.trim()||B!=="all"||H!=="all",ee=o?.comparisons?.some(J=>J.status==="failed"||J.status==="new"),ve=o?.comparisons?.filter(J=>J.status==="failed").length||0,Me=o?.comparisons?.filter(J=>J.status==="new").length||0,he=ve+Me;return fe?r.jsx(ya,{icon:Cg,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Nv,{filter:x,setFilter:p,sortBy:N,setSortBy:A,searchQuery:L,setSearchQuery:V,selectedBrowser:B,setSelectedBrowser:M,selectedViewport:H,setSelectedViewport:q,availableFilters:$,counts:k,onRefresh:v,loading:h}),ee&&r.jsx(hu,{variant:"success",title:_v(ve,Me),children:r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 mt-3",children:[r.jsx("p",{className:"text-sm text-slate-400 flex-1",children:ve>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"}),r.jsxs(Ze,{variant:"success",onClick:xe,loading:g.isPending,icon:Yl,className:"w-full sm:w-auto",children:["Accept All (",he,")"]})]})}),y.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{className:"py-12",children:r.jsx(ya,{icon:Vg,title:"No matches",description:"No comparisons match your current filters.",action:K&&r.jsx(Ze,{variant:"ghost",size:"sm",onClick:()=>{p("all"),V(""),M("all"),q("all")},children:"Clear all filters"})})})}):r.jsx(Rv,{comparisons:y,onSelectComparison:ne,loadingStates:{}})]})}function _v(n,u){return n>0&&u>0?`${n} Failed, ${u} New`:n>0?`${n} Visual Difference${n!==1?"s":""}`:`${u} New Baseline${u!==1?"s":""}`}function Uv({children:n,containerClassName:u="",onClick:c,style:o={},...h}){let g=`relative inline-block ${u}`;return r.jsx("div",{className:g,style:o,onClick:c,...h,children:n})}function xi({children:n,containerClassName:u="",interactive:c=!1,onClick:o,style:h={}}){let v=c?"cursor-pointer":"";return r.jsx(Uv,{containerClassName:`${u} ${v}`,onClick:o,style:h,children:n})}function Lv({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:v,onLoad:g,imageErrors:y,style:x={},loading:p="lazy",...N}){let A={absolute:"absolute block",relative:"block"},L=o==="absolute"&&!h.includes("top-")&&!h.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",V=`${A[o]} ${L} ${h}`.trim();if(y&&y.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:B,zoom:M,...H}=N;return r.jsx("img",{src:u,alt:c,className:V,style:x,loading:p,decoding:"async",onError:()=>v&&v(n),onLoad:()=>g&&g(n),...H})}function Kl({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:v,onLoad:g,imageErrors:y,showErrorPlaceholder:x=!0,loading:p="lazy",...N}){return y&&y.has(n)&&!x?null:r.jsx(Lv,{imageKey:n,url:u,alt:c,position:o,className:h,onError:v,onLoad:g,imageErrors:y,loading:p,...N})}function Bv({baselineImageUrl:n,currentImageUrl:u,screenshot:c,onImageError:o,onImageLoad:h,imageErrors:v=new Set}){let[g,y]=m.useState(!0),x=()=>{y(p=>!p)};return r.jsxs(xi,{interactive:!0,onClick:x,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:g?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:g?"relative":"absolute",className:`${g?"":"top-0 left-0"} ${g?"":"hidden"}`,loading:"eager",onError:o,onLoad:h,imageErrors:v,showErrorPlaceholder:!1,screenshot:c}),r.jsx(Kl,{imageKey:`current-${c?.id||"unknown"}`,url:u,alt:"Current",position:g?"absolute":"relative",className:`${g?"top-0 left-0":""} ${g?"hidden":""}`,loading:"eager",onError:o,onLoad:h,imageErrors:v,showErrorPlaceholder:!1,screenshot:c})]})]})}function qv({baselineImageUrl:n,currentImageUrl:u,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:h,onImageError:v,onImageLoad:g,imageErrors:y,onDiffToggle:x}){let p=()=>{c&&x&&x()};return n?r.jsxs(xi,{interactive:!!c,onClick:p,children:[r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h}),o&&c&&r.jsx(Kl,{imageKey:`diff-${h?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:v,onLoad:g,imageErrors:y,showErrorPlaceholder:!1,screenshot:h}),o&&c&&y?.has(`diff-${h?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})}),c&&r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[o?"Diff On":"Diff Off"," (click to toggle)"]})]}):r.jsx(xi,{interactive:!!c,onClick:p,children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h})})}function Hv({baselineImageUrl:n,currentImageUrl:u,sliderPosition:c=50,onSliderChange:o,screenshot:h,onImageError:v,onImageLoad:g,imageErrors:y=new Set}){return r.jsxs(xi,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${h?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:v,onLoad:g,imageErrors:y,screenshot:h})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"}}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:x=>o(parseInt(x.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function Qv({comparison:n,viewMode:u="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:h,onDiffToggle:v,disableLoadingOverlay:g=!1,zoom:y="fit",className:x=""}){let[p,N]=m.useState(new Set),[A,L]=m.useState(new Map),[V,B]=m.useState(1),[M,H]=m.useState({width:0,height:0}),q=m.useRef(null),$=m.useRef(null);m.useEffect(()=>{let ee=()=>{let he=q.current,J=he?.querySelector("img");if(!he||!J||!J.naturalWidth)return;H({width:J.naturalWidth,height:J.naturalHeight});let de=he.getBoundingClientRect(),Xe=40,Ke=de.width-Xe,T=de.height-Xe,Q=Ke/J.naturalWidth,I=T/J.naturalHeight,pe=Math.min(Q,I,1);B(pe)};ee();let ve=new window.ResizeObserver(ee);q.current&&ve.observe(q.current);let Me=q.current?.querySelectorAll("img")||[];return Me.forEach(he=>he.addEventListener("load",ee)),()=>{ve.disconnect(),Me.forEach(he=>he.removeEventListener("load",ee))}},[A]);let k=m.useMemo(()=>{let ee=y==="fit",ve=ee?V:typeof y=="number"?y:1,Me=!ee&&ve>V;return{isFit:ee,scale:ve,allowsOverflow:Me,containerClass:Me?"overflow-auto":"overflow-hidden"}},[y,V]),ne=m.useCallback(ee=>{N(ve=>new Set([...ve,ee]))},[]),xe=m.useCallback(ee=>{L(ve=>new Map(ve).set(ee,"loaded"))},[]),fe=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},K=m.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${x}`,children:r.jsxs("div",{ref:q,className:`bg-gray-800 relative h-full ${k.containerClass}`,style:{backgroundImage:`
|
|
18
|
+
`,children:[y?r.jsx(Cv,{src:y,alt:n.name||"Screenshot",className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full"})}),g&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/20 flex items-center justify-center",children:r.jsx("span",{className:"text-[10px] font-bold text-blue-400 bg-blue-900/80 px-1.5 py-0.5 rounded",children:"NEW"})})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-base md:text-lg font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),r.jsx(zv,{status:n.status})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-slate-400",children:[h&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:h}),o&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:o}),n.diffPercentage>0&&r.jsxs("span",{className:"text-red-400",children:[n.diffPercentage.toFixed(2),"% diff"]})]})]}),r.jsx("div",{className:"flex-shrink-0",children:r.jsx(Ov,{userAction:c})}),r.jsx("div",{className:"flex-shrink-0 text-slate-500",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})}function Rv({comparisons:n,onSelectComparison:u,loadingStates:c={}}){return!n||n.length===0?r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"}):r.jsx("div",{className:"space-y-2",children:n.map(o=>{let h=Av(o);return r.jsx(Mv,{comparison:{...o,id:h},onClick:u,userAction:c[h]},h)})})}function Dv(){let[,n]=di(),{addToast:u,confirm:c}=Zl(),{data:o,isLoading:h,refetch:v}=gi(),g=Mo(),{filteredComparisons:y,filter:b,setFilter:p,sortBy:N,setSortBy:z,searchQuery:L,setSearchQuery:V,selectedBrowser:B,setSelectedBrowser:M,selectedViewport:H,setSelectedViewport:q,availableFilters:$,counts:k}=wv(o?.comparisons),ne=m.useCallback(J=>{let oe=J.id||J.signature||J.name;oe&&n(`/comparison/${encodeURIComponent(oe)}`)},[n]),xe=m.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&g.mutate(void 0,{onSuccess:()=>{u("All baselines accepted successfully","success")},onError:oe=>{console.error("Failed to accept all baselines:",oe),u("Failed to accept all baselines. Please try again.","error")}})},[g,u,c]),de=!o?.comparisons||o.comparisons.length===0,K=b!=="all"||L.trim()||B!=="all"||H!=="all",ee=o?.comparisons?.some(J=>J.status==="failed"||J.status==="new"),ve=o?.comparisons?.filter(J=>J.status==="failed").length||0,Me=o?.comparisons?.filter(J=>J.status==="new").length||0,he=ve+Me;return de?r.jsx(ya,{icon:Cg,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Nv,{filter:b,setFilter:p,sortBy:N,setSortBy:z,searchQuery:L,setSearchQuery:V,selectedBrowser:B,setSelectedBrowser:M,selectedViewport:H,setSelectedViewport:q,availableFilters:$,counts:k,onRefresh:v,loading:h}),ee&&r.jsx(hu,{variant:"success",title:_v(ve,Me),children:r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 mt-3",children:[r.jsx("p",{className:"text-sm text-slate-400 flex-1",children:ve>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"}),r.jsxs(Xe,{variant:"success",onClick:xe,loading:g.isPending,icon:Yl,className:"w-full sm:w-auto",children:["Accept All (",he,")"]})]})}),y.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{className:"py-12",children:r.jsx(ya,{icon:Vg,title:"No matches",description:"No comparisons match your current filters.",action:K&&r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>{p("all"),V(""),M("all"),q("all")},children:"Clear all filters"})})})}):r.jsx(Rv,{comparisons:y,onSelectComparison:ne,loadingStates:{}})]})}function _v(n,u){return n>0&&u>0?`${n} Failed, ${u} New`:n>0?`${n} Visual Difference${n!==1?"s":""}`:`${u} New Baseline${u!==1?"s":""}`}function Uv({children:n,containerClassName:u="",onClick:c,style:o={},...h}){let g=`relative inline-block ${u}`;return r.jsx("div",{className:g,style:o,onClick:c,...h,children:n})}function xi({children:n,containerClassName:u="",interactive:c=!1,onClick:o,style:h={}}){let v=c?"cursor-pointer":"";return r.jsx(Uv,{containerClassName:`${u} ${v}`,onClick:o,style:h,children:n})}function Lv({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:v,onLoad:g,imageErrors:y,style:b={},loading:p="lazy",...N}){let z={absolute:"absolute block",relative:"block"},L=o==="absolute"&&!h.includes("top-")&&!h.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",V=`${z[o]} ${L} ${h}`.trim();if(y&&y.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:B,zoom:M,...H}=N;return r.jsx("img",{src:u,alt:c,className:V,style:b,loading:p,decoding:"async",onError:()=>v&&v(n),onLoad:()=>g&&g(n),...H})}function Kl({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:v,onLoad:g,imageErrors:y,showErrorPlaceholder:b=!0,loading:p="lazy",...N}){return y&&y.has(n)&&!b?null:r.jsx(Lv,{imageKey:n,url:u,alt:c,position:o,className:h,onError:v,onLoad:g,imageErrors:y,loading:p,...N})}function Bv({baselineImageUrl:n,currentImageUrl:u,screenshot:c,onImageError:o,onImageLoad:h,imageErrors:v=new Set}){let[g,y]=m.useState(!0),b=()=>{y(p=>!p)};return r.jsxs(xi,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:g?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:g?"relative":"absolute",className:`${g?"":"top-0 left-0"} ${g?"":"hidden"}`,loading:"eager",onError:o,onLoad:h,imageErrors:v,showErrorPlaceholder:!1,screenshot:c}),r.jsx(Kl,{imageKey:`current-${c?.id||"unknown"}`,url:u,alt:"Current",position:g?"absolute":"relative",className:`${g?"top-0 left-0":""} ${g?"hidden":""}`,loading:"eager",onError:o,onLoad:h,imageErrors:v,showErrorPlaceholder:!1,screenshot:c})]})]})}function qv({baselineImageUrl:n,currentImageUrl:u,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:h,onImageError:v,onImageLoad:g,imageErrors:y,onDiffToggle:b}){let p=()=>{c&&b&&b()};return n?r.jsxs(xi,{interactive:!!c,onClick:p,children:[r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h}),o&&c&&r.jsx(Kl,{imageKey:`diff-${h?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:v,onLoad:g,imageErrors:y,showErrorPlaceholder:!1,screenshot:h}),o&&c&&y?.has(`diff-${h?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})}),c&&r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[o?"Diff On":"Diff Off"," (click to toggle)"]})]}):r.jsx(xi,{interactive:!!c,onClick:p,children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h})})}function Hv({baselineImageUrl:n,currentImageUrl:u,sliderPosition:c=50,onSliderChange:o,screenshot:h,onImageError:v,onImageLoad:g,imageErrors:y=new Set}){return r.jsxs(xi,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${h?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:v,onLoad:g,imageErrors:y,screenshot:h}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:v,onLoad:g,imageErrors:y,screenshot:h})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"}}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:b=>o(parseInt(b.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function Qv({comparison:n,viewMode:u="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:h,onDiffToggle:v,disableLoadingOverlay:g=!1,zoom:y="fit",className:b=""}){let[p,N]=m.useState(new Set),[z,L]=m.useState(new Map),[V,B]=m.useState(1),[M,H]=m.useState({width:0,height:0}),q=m.useRef(null),$=m.useRef(null);m.useEffect(()=>{let ee=()=>{let he=q.current,J=he?.querySelector("img");if(!he||!J||!J.naturalWidth)return;H({width:J.naturalWidth,height:J.naturalHeight});let oe=he.getBoundingClientRect(),Ge=40,Ke=oe.width-Ge,T=oe.height-Ge,Q=Ke/J.naturalWidth,W=T/J.naturalHeight,pe=Math.min(Q,W,1);B(pe)};ee();let ve=new window.ResizeObserver(ee);q.current&&ve.observe(q.current);let Me=q.current?.querySelectorAll("img")||[];return Me.forEach(he=>he.addEventListener("load",ee)),()=>{ve.disconnect(),Me.forEach(he=>he.removeEventListener("load",ee))}},[z]);let k=m.useMemo(()=>{let ee=y==="fit",ve=ee?V:typeof y=="number"?y:1,Me=!ee&&ve>V;return{isFit:ee,scale:ve,allowsOverflow:Me,containerClass:Me?"overflow-auto":"overflow-hidden"}},[y,V]),ne=m.useCallback(ee=>{N(ve=>new Set([...ve,ee]))},[]),xe=m.useCallback(ee=>{L(ve=>new Map(ve).set(ee,"loaded"))},[]),de=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},K=m.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:q,className:`bg-gray-800 relative h-full ${k.containerClass}`,style:{backgroundImage:`
|
|
19
19
|
linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
|
20
20
|
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
|
21
21
|
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
|
22
22
|
linear-gradient(-45deg, transparent 75%, #1f2937 75%)
|
|
23
|
-
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>xe(`current-${K?.id}`),onError:()=>ne(`current-${K?.id}`)})})}),!g&&n&&!
|
|
23
|
+
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>xe(`current-${K?.id}`),onError:()=>ne(`current-${K?.id}`)})})}),!g&&n&&!z.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:q,className:`bg-gray-800 relative unified-screenshot-container h-full ${k.containerClass}`,style:{backgroundImage:`
|
|
24
24
|
linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
|
25
25
|
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
|
26
26
|
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
|
27
27
|
linear-gradient(-45deg, transparent 75%, #1f2937 75%)
|
|
28
|
-
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:u==="toggle"&&fe.baseline?r.jsx(Bv,{baselineImageUrl:fe.baseline,currentImageUrl:fe.current,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):u==="onion-skin"&&fe.baseline?r.jsx(Hv,{baselineImageUrl:fe.baseline,currentImageUrl:fe.current,sliderPosition:o,onSliderChange:h,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):r.jsx(qv,{baselineImageUrl:fe.baseline,currentImageUrl:fe.current,diffImageUrl:fe.diff,showDiffOverlay:c,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p,onDiffToggle:v})})}),!g&&!A.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function pa(n){return n?.id||n?.signature||n?.name}function kv({zoom:n,onZoomChange:u}){let c=m.useCallback(()=>{u(n==="fit"?.75:Math.min(3,n+.25))},[n,u]),o=m.useCallback(()=>{u(n==="fit"?.5:Math.max(.1,n-.25))},[n,u]),h=m.useCallback(()=>{u("fit")},[u]),v=m.useCallback(()=>{u(1)},[u]),g=n==="fit"?"Fit":`${Math.round(n*100)}%`;return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center bg-gray-800/90 backdrop-blur-md rounded-lg border border-gray-600/40 shadow-lg",children:[r.jsx("button",{onClick:o,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-l-lg transition-colors",title:"Zoom out (−)",children:r.jsx(Jg,{className:"w-4 h-4"})}),r.jsx("div",{className:"px-3 py-1.5 min-w-[60px] text-center text-sm font-medium text-gray-200",children:g}),r.jsx("button",{onClick:c,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-r-lg transition-colors",title:"Zoom in (+)",children:r.jsx(Fg,{className:"w-4 h-4"})})]}),r.jsx("button",{onClick:h,className:`p-2 rounded-lg transition-colors ${n==="fit"?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Fit to screen",children:r.jsx(pg,{className:"w-4 h-4"})}),r.jsx("button",{onClick:v,className:`p-2 rounded-lg transition-colors ${n===1?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Actual size",children:r.jsx("span",{className:"text-xs font-bold w-4 h-4 flex items-center justify-center",children:"1:1"})})]})}function Yv({comparison:n,isActive:u,onClick:c,index:o}){let h=n.current||n.baseline,v=n.status==="failed",g=n.status==="new"||n.status==="baseline-created";return r.jsxs("button",{onClick:c,className:`relative flex-shrink-0 group transition-all duration-200 ${u?"ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-900 rounded-lg scale-110":"hover:ring-2 hover:ring-gray-500 hover:ring-offset-2 hover:ring-offset-gray-900 rounded-lg opacity-60 hover:opacity-100"}`,title:n.name||`Screenshot ${o+1}`,children:[r.jsxs("div",{className:"relative w-14 h-20 bg-gray-800 rounded-lg overflow-hidden",children:[h?r.jsx("img",{src:h,alt:n.name||"Thumbnail",className:"absolute inset-0 w-full h-full object-cover object-top",loading:"lazy"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-700 flex items-center justify-center",children:r.jsx("span",{className:"text-lg font-medium text-gray-500",children:n.name?n.name.charAt(0).toUpperCase():"?"})}),g&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-blue-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"NEW"}),v&&!g&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-amber-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"DIFF"})]}),r.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 bg-gray-800 border border-gray-700 text-xs text-gray-200 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-20 shadow-lg",children:n.name||`Screenshot ${o+1}`})]})}function Gv({comparison:n,comparisons:u=[],onClose:c,onAccept:o,onReject:h,onNavigate:v,userAction:g}){let[y,x]=m.useState(hn.OVERLAY),[p,N]=m.useState(!1),[A,L]=m.useState("fit"),[V,B]=m.useState(!0),[M,H]=m.useState(50),q=m.useRef(null),$=m.useMemo(()=>{let J={failed:0,new:1,"baseline-created":1,passed:2};return[...u].sort((de,Xe)=>{let Ke=J[de.status]??3,T=J[Xe.status]??3;return Ke-T})},[u]),k=m.useMemo(()=>{let J=pa(n);return $.findIndex((de,Xe)=>pa(de)===J)},[n,$]),ne=m.useMemo(()=>({prev:k>0,next:k<$.length-1}),[k,$.length]),xe=m.useCallback(()=>{ne.prev&&$[k-1]&&v($[k-1])},[ne.prev,$,k,v]),fe=m.useCallback(()=>{ne.next&&$[k+1]&&v($[k+1])},[ne.next,$,k,v]);if(m.useEffect(()=>{if(q.current&&k>=0){let J=q.current,de=J.children;if(de[k]){let Xe=de[k],Ke=J.getBoundingClientRect(),T=Xe.getBoundingClientRect();(T.left<Ke.left||T.right>Ke.right)&&Xe.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}},[k]),m.useEffect(()=>{let J=de=>{if(!(de.target.tagName==="INPUT"||de.target.tagName==="TEXTAREA"))switch(de.key){case"ArrowLeft":de.preventDefault(),ne.prev&&xe();break;case"ArrowRight":de.preventDefault(),ne.next&&fe();break;case"Escape":de.preventDefault(),c();break}};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[ne,xe,fe,c]),!n)return r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsx("button",{onClick:c,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})});let K=n.status==="failed"||n.status==="passed",ee=g==="accepted"||n.status==="passed"&&g!=="rejected",ve=g==="rejected",Me=[{value:hn.OVERLAY,label:"Overlay"},{value:hn.TOGGLE,label:"Toggle"},{value:hn.ONION,label:"Slide"}],he=[];return n.properties?.browser&&he.push({key:"Browser",value:n.properties.browser}),n.properties?.viewport_width&&n.properties?.viewport_height&&he.push({key:"Viewport",value:`${n.properties.viewport_width}×${n.properties.viewport_height}`}),n.properties?.device&&he.push({key:"Device",value:n.properties.device}),r.jsxs("div",{className:"fixed inset-0 bg-gray-900 z-50 flex flex-col","data-testid":"fullscreen-viewer",children:[r.jsxs("div",{className:"flex-shrink-0 bg-gray-900/95 backdrop-blur-md border-b border-gray-800/50 z-30",children:[r.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between gap-2",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("button",{onClick:c,className:"p-1.5 text-gray-400 hover:text-white rounded-lg hover:bg-gray-700/60 transition-colors",title:"Back (Esc)",children:r.jsx(yi,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{onClick:xe,disabled:!ne.prev,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Previous (←)",children:r.jsx(Dg,{className:"w-4 h-4"})}),r.jsxs("span",{className:"text-xs text-gray-500 font-medium tabular-nums min-w-[3rem] text-center",children:[k+1,"/",$.length]}),r.jsx("button",{onClick:fe,disabled:!ne.next,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Next (→)",children:r.jsx(ru,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"h-5 w-px bg-gray-700/50"}),r.jsx("h1",{className:"text-sm font-medium text-gray-200 truncate max-w-[300px]",children:n.name||n.originalName||"Unknown"}),he.length>0&&r.jsxs("button",{onClick:()=>N(!p),className:"flex items-center gap-1 px-2 py-1 text-xs text-gray-500 hover:text-gray-300 transition-colors",children:[r.jsxs("span",{children:[he.length," props"]}),r.jsx(uu,{className:`w-3 h-3 transition-transform ${p?"rotate-180":""}`})]})]}),K&&r.jsxs("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:[r.jsxs("button",{onClick:()=>h(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ve?"bg-red-600 text-white":"text-red-400 hover:text-red-300 hover:bg-red-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Reject"]}),r.jsxs("button",{onClick:()=>o(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ee?"bg-green-600 text-white":"text-green-400 hover:text-green-300 hover:bg-green-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Approve"]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(kv,{zoom:A,onZoomChange:L}),r.jsx("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:Me.map(J=>r.jsx("button",{onClick:()=>n.diff&&x(J.value),disabled:!n.diff,className:`px-2.5 py-1 text-xs font-medium rounded-md transition-all ${n.diff?y===J.value?"bg-blue-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-700/60":"text-gray-600 cursor-not-allowed"}`,children:J.label},J.value))})]})]}),p&&he.length>0&&r.jsx("div",{className:"px-4 py-2 border-t border-gray-800/50 bg-gray-900/50",children:r.jsx("div",{className:"flex flex-wrap gap-2",children:he.map((J,de)=>r.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-800/60 text-xs rounded-md",children:[r.jsxs("span",{className:"text-gray-500",children:[J.key,":"]}),r.jsx("span",{className:"ml-1 text-gray-300",children:J.value})]},de))})})]}),r.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:r.jsx(Qv,{comparison:n,viewMode:y===hn.ONION?"onion-skin":y,showDiffOverlay:V,onDiffToggle:()=>B(J=>!J),onionSkinPosition:M,onOnionSkinChange:H,zoom:A,disableLoadingOverlay:!0,className:"w-full h-full"},pa(n))}),r.jsx("div",{className:"flex-shrink-0 bg-gray-900 border-t border-gray-800/50",children:r.jsx("div",{className:"px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"text-sm text-gray-500 flex-shrink-0",children:[k+1," of ",$.length]}),r.jsx("div",{ref:q,className:"flex-1 flex items-center gap-2 overflow-x-auto scrollbar-hide py-1",children:$.map((J,de)=>r.jsx(Yv,{comparison:J,index:de,isActive:de===k,onClick:()=>v(J)},pa(J)))}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 text-xs text-gray-500 flex-shrink-0",children:[r.jsxs("span",{children:["Use"," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"←"})," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"→"})," ","to navigate"]}),r.jsx(uu,{className:"w-4 h-4 rotate-[-90deg]"})]})]})})})]})}function Vv(){let[,n]=di(),[,u]=lg("/comparison/:id"),[c,o]=m.useState({}),{data:h}=gi(),v=sg(),g=rg(),y=m.useMemo(()=>h?.comparisons||[],[h?.comparisons]),x=m.useMemo(()=>{let B=u?.id?decodeURIComponent(u.id):null;return!B||y.length===0?null:y.find(M=>M.id===B||M.signature===B||M.name===B)},[u,y]),p=m.useCallback(B=>{let M=B.id||B.signature||B.name;M&&n(`/comparison/${encodeURIComponent(M)}`)},[n]),N=m.useCallback(()=>{n("/")},[n]),A=m.useMemo(()=>x?x.id||x.signature||x.name:null,[x]),L=m.useCallback(B=>{o(M=>({...M,[B]:"accepting"})),v.mutate(B,{onSettled:()=>{o(M=>({...M,[B]:void 0}))}})},[v]),V=m.useCallback(B=>{o(M=>({...M,[B]:"rejecting"})),g.mutate(B,{onSettled:()=>{o(M=>({...M,[B]:void 0}))}})},[g]);return x?r.jsx(Gv,{comparison:x,comparisons:y,onClose:N,onAccept:L,onReject:V,onNavigate:p,userAction:c[A]}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",u?.id||"none"]}),r.jsx("button",{onClick:N,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Zv(n={}){return ma({queryKey:Te.config,queryFn:To.get,...n})}function Xv(){let n=Lt();return Qt({mutationFn:To.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:Te.config})}})}function qo(n){return{threshold:n?.comparison?.threshold??.1,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function mu({source:n}){let u={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(on,{variant:u[n]||"default",size:"sm",children:c[n]||n})}function Kv({config:n,sources:u,onSave:c,isSaving:o}){let h=qo(n),[v,g]=m.useState(h),[y,x]=m.useState(!1),[p,N]=m.useState("general"),A=m.useCallback((M,H)=>{g(q=>({...q,[M]:H})),x(!0)},[]),L=m.useCallback(()=>{g(qo(n)),x(!1)},[n]),V=m.useCallback(()=>{let M={comparison:{threshold:v.threshold},server:{port:v.port,timeout:v.timeout},build:{name:v.buildName,environment:v.environment},tdd:{openReport:v.openReport}};c(M,()=>x(!1))},[v,c]),B=[{key:"general",label:"General",icon:cu},{key:"server",label:"Server",icon:_o},{key:"build",label:"Build",icon:Uo}];return r.jsxs("div",{className:"space-y-6",children:[r.jsx(mv,{tabs:B,activeTab:p,onChange:N,variant:"default"}),p==="general"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cu,title:"General Settings",description:"Configure visual comparison and TDD behavior",iconColor:"bg-amber-500/10 text-amber-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Visual Comparison Threshold",type:"number",value:v.threshold,onChange:M=>A("threshold",parseFloat(M.target.value)),hint:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",step:"0.01",min:"0",max:"1"}),r.jsx(ov,{label:"Auto-open Report",description:"Automatically open the dashboard in your browser when starting TDD mode",checked:v.openReport,onChange:M=>A("openReport",M.target.checked)}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.comparison||"default"})]})]})]}),p==="server"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:_o,title:"Server Settings",description:"Local screenshot server configuration",iconColor:"bg-blue-500/10 text-blue-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Server Port",type:"number",value:v.port,onChange:M=>A("port",parseInt(M.target.value,10)),hint:"Port for the local screenshot server"}),r.jsx(pi,{label:"Server Timeout",type:"number",value:v.timeout,onChange:M=>A("timeout",parseInt(M.target.value,10)),hint:"Request timeout in milliseconds"}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.server||"default"})]})]})]}),p==="build"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:Uo,title:"Build Settings",description:"Configure build naming and environment",iconColor:"bg-purple-500/10 text-purple-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Build Name Template",type:"text",value:v.buildName,onChange:M=>A("buildName",M.target.value),hint:"Template for build names (use {timestamp} for current time)"}),r.jsx(cv,{label:"Environment",value:v.environment,onChange:M=>A("environment",M.target.value),hint:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.build||"default"})]})]})]}),y&&r.jsx("div",{className:"fixed bottom-6 right-6 left-6 md:left-auto md:w-auto",children:r.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl p-4 flex items-center gap-4",children:[r.jsx("span",{className:"text-sm text-slate-400 hidden md:inline",children:"Unsaved changes"}),r.jsxs("div",{className:"flex gap-3 flex-1 md:flex-initial",children:[r.jsx(Ze,{variant:"ghost",onClick:L,disabled:o,className:"flex-1 md:flex-initial",children:"Reset"}),r.jsx(Ze,{variant:"primary",onClick:V,loading:o,icon:Yl,className:"flex-1 md:flex-initial",children:"Save Changes"})]})]})})]})}function Jv(){let{data:n,isLoading:u,error:c,refetch:o}=Zv(),h=Xv(),{addToast:v}=Zl(),g=m.useCallback((y,x)=>{h.mutate(y,{onSuccess:()=>{x(),v("Settings saved successfully!","success")},onError:p=>{v(`Failed to save settings: ${p.message}`,"error")}})},[h,v]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsx(ut,{variant:"text",className:"w-96 h-10"}),r.jsx(Vl,{})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(hu,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Ze,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6 pb-24",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(Kv,{config:n?.config,sources:n?.sources,onSave:g,isSaving:h.isPending},JSON.stringify(n?.config))]})}function Ho(){return ma({queryKey:Te.authStatus(),queryFn:hi.getStatus,staleTime:30*1e3})}function $v(){return Qt({mutationFn:hi.initiateLogin})}function Fv(){let n=Lt();return Qt({mutationFn:u=>hi.pollAuthorization(u),onSuccess:u=>{u.status==="complete"&&(n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud}))}})}function Wv(){let n=Lt();return Qt({mutationFn:hi.logout,onSuccess:()=>{n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud})}})}function Iv(n={}){return ma({queryKey:Te.projects(),queryFn:mi.list,staleTime:60*1e3,...n})}function Pv(n,u,c={}){return ma({queryKey:Te.builds(n,u),queryFn:()=>mi.getBuilds(n,u,{limit:20}),enabled:!!(n&&u),staleTime:30*1e3,...c})}function e1(){let n=Lt();return Qt({mutationFn:({buildId:u,organizationSlug:c,projectSlug:o})=>un.downloadBaselines(u,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function t1(n={}){return ma({queryKey:[...Te.projects(),"mappings"],queryFn:mi.listMappings,staleTime:60*1e3,...n})}function l1(){let n=Lt();return Qt({mutationFn:u=>mi.deleteMapping(u),onSuccess:()=>{n.invalidateQueries({queryKey:Te.projects()})}})}function a1({onComplete:n}){let[u,c]=m.useState(null),[o,h]=m.useState(null),v=$v(),g=Fv(),{addToast:y}=Zl();m.useEffect(()=>{async function p(){try{let N=await v.mutateAsync();c(N)}catch(N){h(N.message),y(`Failed to start login: ${N.message}`,"error")}}p()},[]);async function x(){if(u?.deviceCode){h(null);try{let p=await g.mutateAsync(u.deviceCode);p.status==="complete"?(y("Login successful!","success"),n?.()):p.status==="pending"?y("Still waiting for authorization...","info"):h("Unexpected response from server")}catch(p){h(p.message),y(`Check failed: ${p.message}`,"error")}}}return o?r.jsx(hu,{variant:"danger",title:"Login Error",children:o}):u?r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:u.verificationUriComplete||u.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:u.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Ze,{variant:"secondary",onClick:x,loading:g.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function n1(){let[n,u]=m.useState(!1),c=Lt(),{data:o,isLoading:h}=Ho(),v=Wv(),{addToast:g}=Zl(),y=o?.user,x=o?.authenticated,p=m.useCallback(async()=>{try{await v.mutateAsync(),g("Logged out successfully","success")}catch(A){g(`Logout failed: ${A.message}`,"error")}},[v,g]),N=m.useCallback(()=>{u(!1),c.invalidateQueries({queryKey:Te.auth})},[c]);return h?r.jsx(Vl,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Ze,{variant:"ghost",size:"sm",onClick:()=>u(!1),children:"← Back"}),r.jsx(a1,{onComplete:N})]}):x?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(fu,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:y?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:y?.email}),y?.organizationName&&r.jsx(on,{variant:"default",className:"mt-2",children:y.organizationName})]})]}),r.jsx(Ze,{variant:"ghost",onClick:p,loading:v.isPending,icon:mg,children:"Sign Out"})]})})}):r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Ze,{variant:"primary",onClick:()=>u(!0),icon:Ro,children:"Sign In"})]})})}function i1({mappings:n,onDelete:u,deleting:c}){let{addToast:o,confirm:h}=Zl(),v=m.useCallback(async g=>{if(await h(`Remove project mapping for ${g}?`,"This will not delete any files, only the project association."))try{await u(g),o("Mapping removed successfully","success")}catch(x){o(`Failed to remove mapping: ${x.message}`,"error")}},[u,o,h]);return n.length===0?r.jsx(ya,{icon:cn,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map((g,y)=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:g.directory}),r.jsx("td",{className:"text-white",children:g.projectName||g.projectSlug}),r.jsx("td",{children:g.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Ze,{variant:"danger",size:"sm",onClick:()=>v(g.directory),disabled:c,icon:nv,className:"!p-2"})})]},y))})]})})}function s1(){let{data:n,isLoading:u,refetch:c}=t1(),o=l1(),h=n?.mappings||[],v=m.useCallback(async g=>{await o.mutateAsync(g)},[o]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Vl,{})}),r.jsx(Vl,{})]}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(n1,{})}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Quick Stats"}),r.jsx(nt,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:h.length})]})})]})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cn,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Ze,{variant:"ghost",size:"sm",onClick:()=>c(),icon:fl,children:"Refresh"})}),r.jsx(nt,{padding:"p-0",children:r.jsx(i1,{mappings:h,onDelete:v,deleting:o.isPending})})]})]})}function u1({status:n}){let u={passed:{variant:"success",icon:Yl},completed:{variant:"success",icon:Yl},failed:{variant:"danger",icon:du},pending:{variant:"warning",icon:vi},processing:{variant:"info",icon:fl}},c=u[n]||u.pending;return r.jsx(on,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function r1(n){let u=Math.floor((new Date-n)/1e3);return u<60?"just now":u<3600?`${Math.floor(u/60)}m ago`:u<86400?`${Math.floor(u/3600)}h ago`:u<604800?`${Math.floor(u/86400)}d ago`:n.toLocaleDateString()}function c1({build:n,project:u,onDownload:c,downloading:o}){let h=new Date(n.createdAt||n.created_at),v=r1(h);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(u1,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:v}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Ze,{variant:"ghost",size:"sm",onClick:()=>c(n,u),loading:o,icon:dg,title:"Download baselines from this build"})]})}function o1({project:n,onExpand:u,expanded:c,onDownload:o,downloadingBuildId:h}){let{data:v,isLoading:g}=Pv(c?n.organizationSlug:null,c?n.slug:null),y=v?.builds||[];return r.jsxs(lt,{hover:!1,children:[r.jsxs("button",{onClick:()=>u(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(cn,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[g&&r.jsx(fn,{size:"sm",className:"text-amber-400"}),c?r.jsx(uu,{className:"w-5 h-5 text-slate-400"}):r.jsx(ru,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(nt,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:g?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(fn,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):y&&y.length>0?r.jsx("div",{className:"space-y-3",children:y.map((x,p)=>r.jsx(c1,{build:x,project:n,onDownload:o,downloading:h===x.id},x.id||p))}):r.jsx(ya,{icon:vi,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function f1({org:n,expandedProjects:u,onExpand:c,onDownload:o,downloadingBuildId:h}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Ng,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(on,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(v=>{let g=`${v.organizationSlug}/${v.slug}`;return r.jsx(o1,{project:v,expanded:u[g],onExpand:c,onDownload:o,downloadingBuildId:h},g)})})]})}function d1({onLogin:n}){return r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Ze,{variant:"primary",onClick:n,icon:Ro,children:"Sign In"})]})})}function h1(){let[n,u]=m.useState({}),[c,o]=m.useState(null),{addToast:h}=Zl(),{data:v,isLoading:g}=Ho(),{data:y,isLoading:x,refetch:p}=Iv(),N=e1(),A=v?.authenticated,L=m.useMemo(()=>{let H=y?.projects||[],q={};for(let $ of H){let k=$.organizationSlug||"unknown";q[k]||(q[k]={slug:k,name:$.organizationName||k,projects:[]}),q[k].projects.push($)}return Object.values(q)},[y?.projects]),V=m.useCallback((H,q)=>{let $=`${H}/${q}`;u(k=>({...k,[$]:!k[$]}))},[]),B=m.useCallback((H,q)=>{o(H.id),N.mutate({buildId:H.id,organizationSlug:q?.organizationSlug,projectSlug:q?.slug},{onSuccess:()=>{h(`Baselines downloaded from "${H.name||H.id}"`,"success"),o(null)},onError:$=>{h(`Failed to download baselines: ${$.message}`,"error"),o(null)}})},[N,h]),M=m.useCallback(()=>{window.location.href="/projects"},[]);return x||g?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-40 mb-2"}),r.jsx(ut,{variant:"text",className:"w-72"})]}),r.jsx(ut,{variant:"button"})]}),r.jsx(Vl,{}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Ze,{variant:"secondary",onClick:()=>p(),icon:fl,children:"Refresh"})]}),A?L.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsx(ya,{icon:cn,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Ze,{variant:"secondary",icon:ru,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:L.map(H=>r.jsx(f1,{org:H,expandedProjects:n,onExpand:V,onDownload:B,downloadingBuildId:c},H.slug))}):r.jsx(d1,{onLogin:M})]})}function m1(n,u){let c=[];if(u==="shell")return n.split(`
|
|
29
|
-
`).forEach((g,y)=>{let
|
|
28
|
+
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:u==="toggle"&&de.baseline?r.jsx(Bv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):u==="onion-skin"&&de.baseline?r.jsx(Hv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,sliderPosition:o,onSliderChange:h,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):r.jsx(qv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,diffImageUrl:de.diff,showDiffOverlay:c,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p,onDiffToggle:v})})}),!g&&!z.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function pa(n){return n?.id||n?.signature||n?.name}function kv({zoom:n,onZoomChange:u}){let c=m.useCallback(()=>{u(n==="fit"?.75:Math.min(3,n+.25))},[n,u]),o=m.useCallback(()=>{u(n==="fit"?.5:Math.max(.1,n-.25))},[n,u]),h=m.useCallback(()=>{u("fit")},[u]),v=m.useCallback(()=>{u(1)},[u]),g=n==="fit"?"Fit":`${Math.round(n*100)}%`;return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center bg-gray-800/90 backdrop-blur-md rounded-lg border border-gray-600/40 shadow-lg",children:[r.jsx("button",{onClick:o,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-l-lg transition-colors",title:"Zoom out (−)",children:r.jsx(Jg,{className:"w-4 h-4"})}),r.jsx("div",{className:"px-3 py-1.5 min-w-[60px] text-center text-sm font-medium text-gray-200",children:g}),r.jsx("button",{onClick:c,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-r-lg transition-colors",title:"Zoom in (+)",children:r.jsx(Fg,{className:"w-4 h-4"})})]}),r.jsx("button",{onClick:h,className:`p-2 rounded-lg transition-colors ${n==="fit"?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Fit to screen",children:r.jsx(pg,{className:"w-4 h-4"})}),r.jsx("button",{onClick:v,className:`p-2 rounded-lg transition-colors ${n===1?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Actual size",children:r.jsx("span",{className:"text-xs font-bold w-4 h-4 flex items-center justify-center",children:"1:1"})})]})}function Yv({comparison:n,isActive:u,onClick:c,index:o}){let h=n.current||n.baseline,v=n.status==="failed",g=n.status==="new"||n.status==="baseline-created";return r.jsxs("button",{onClick:c,className:`relative flex-shrink-0 group transition-all duration-200 ${u?"ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-900 rounded-lg scale-110":"hover:ring-2 hover:ring-gray-500 hover:ring-offset-2 hover:ring-offset-gray-900 rounded-lg opacity-60 hover:opacity-100"}`,title:n.name||`Screenshot ${o+1}`,children:[r.jsxs("div",{className:"relative w-14 h-20 bg-gray-800 rounded-lg overflow-hidden",children:[h?r.jsx("img",{src:h,alt:n.name||"Thumbnail",className:"absolute inset-0 w-full h-full object-cover object-top",loading:"lazy"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-700 flex items-center justify-center",children:r.jsx("span",{className:"text-lg font-medium text-gray-500",children:n.name?n.name.charAt(0).toUpperCase():"?"})}),g&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-blue-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"NEW"}),v&&!g&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-amber-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"DIFF"})]}),r.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 bg-gray-800 border border-gray-700 text-xs text-gray-200 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-20 shadow-lg",children:n.name||`Screenshot ${o+1}`})]})}function Gv({comparison:n,comparisons:u=[],onClose:c,onAccept:o,onReject:h,onNavigate:v,userAction:g}){let[y,b]=m.useState(hn.OVERLAY),[p,N]=m.useState(!1),[z,L]=m.useState("fit"),[V,B]=m.useState(!0),[M,H]=m.useState(50),q=m.useRef(null),$=m.useMemo(()=>{let J={failed:0,new:1,"baseline-created":1,passed:2};return[...u].sort((oe,Ge)=>{let Ke=oe.initialStatus||oe.status,T=Ge.initialStatus||Ge.status,Q=J[Ke]??3,W=J[T]??3;return Q-W})},[u]),k=m.useMemo(()=>{let J=pa(n);return $.findIndex((oe,Ge)=>pa(oe)===J)},[n,$]),ne=m.useMemo(()=>({prev:k>0,next:k<$.length-1}),[k,$.length]),xe=m.useCallback(()=>{ne.prev&&$[k-1]&&v($[k-1])},[ne.prev,$,k,v]),de=m.useCallback(()=>{ne.next&&$[k+1]&&v($[k+1])},[ne.next,$,k,v]);if(m.useEffect(()=>{if(q.current&&k>=0){let J=q.current,oe=J.children;if(oe[k]){let Ge=oe[k],Ke=J.getBoundingClientRect(),T=Ge.getBoundingClientRect();(T.left<Ke.left||T.right>Ke.right)&&Ge.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}},[k]),m.useEffect(()=>{let J=oe=>{if(!(oe.target.tagName==="INPUT"||oe.target.tagName==="TEXTAREA"))switch(oe.key){case"ArrowLeft":oe.preventDefault(),ne.prev&&xe();break;case"ArrowRight":oe.preventDefault(),ne.next&&de();break;case"Escape":oe.preventDefault(),c();break}};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[ne,xe,de,c]),!n)return r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsx("button",{onClick:c,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})});let K=n.status==="failed"||n.status==="passed",ee=g==="accepted"||n.status==="passed"&&g!=="rejected",ve=g==="rejected",Me=[{value:hn.OVERLAY,label:"Overlay"},{value:hn.TOGGLE,label:"Toggle"},{value:hn.ONION,label:"Slide"}],he=[];return n.properties?.browser&&he.push({key:"Browser",value:n.properties.browser}),n.properties?.viewport_width&&n.properties?.viewport_height&&he.push({key:"Viewport",value:`${n.properties.viewport_width}×${n.properties.viewport_height}`}),n.properties?.device&&he.push({key:"Device",value:n.properties.device}),r.jsxs("div",{className:"fixed inset-0 bg-gray-900 z-50 flex flex-col","data-testid":"fullscreen-viewer",children:[r.jsxs("div",{className:"flex-shrink-0 bg-gray-900/95 backdrop-blur-md border-b border-gray-800/50 z-30",children:[r.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between gap-2",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("button",{onClick:c,className:"p-1.5 text-gray-400 hover:text-white rounded-lg hover:bg-gray-700/60 transition-colors",title:"Back (Esc)",children:r.jsx(yi,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{onClick:xe,disabled:!ne.prev,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Previous (←)",children:r.jsx(Dg,{className:"w-4 h-4"})}),r.jsxs("span",{className:"text-xs text-gray-500 font-medium tabular-nums min-w-[3rem] text-center",children:[k+1,"/",$.length]}),r.jsx("button",{onClick:de,disabled:!ne.next,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Next (→)",children:r.jsx(ru,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"h-5 w-px bg-gray-700/50"}),r.jsx("h1",{className:"text-sm font-medium text-gray-200 truncate max-w-[300px]",children:n.name||n.originalName||"Unknown"}),he.length>0&&r.jsxs("button",{onClick:()=>N(!p),className:"flex items-center gap-1 px-2 py-1 text-xs text-gray-500 hover:text-gray-300 transition-colors",children:[r.jsxs("span",{children:[he.length," props"]}),r.jsx(uu,{className:`w-3 h-3 transition-transform ${p?"rotate-180":""}`})]})]}),K&&r.jsxs("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:[r.jsxs("button",{onClick:()=>h(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ve?"bg-red-600 text-white":"text-red-400 hover:text-red-300 hover:bg-red-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Reject"]}),r.jsxs("button",{onClick:()=>o(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ee?"bg-green-600 text-white":"text-green-400 hover:text-green-300 hover:bg-green-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Approve"]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(kv,{zoom:z,onZoomChange:L}),r.jsx("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:Me.map(J=>r.jsx("button",{onClick:()=>n.diff&&b(J.value),disabled:!n.diff,className:`px-2.5 py-1 text-xs font-medium rounded-md transition-all ${n.diff?y===J.value?"bg-blue-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-700/60":"text-gray-600 cursor-not-allowed"}`,children:J.label},J.value))})]})]}),p&&he.length>0&&r.jsx("div",{className:"px-4 py-2 border-t border-gray-800/50 bg-gray-900/50",children:r.jsx("div",{className:"flex flex-wrap gap-2",children:he.map((J,oe)=>r.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-800/60 text-xs rounded-md",children:[r.jsxs("span",{className:"text-gray-500",children:[J.key,":"]}),r.jsx("span",{className:"ml-1 text-gray-300",children:J.value})]},oe))})})]}),r.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:r.jsx(Qv,{comparison:n,viewMode:y===hn.ONION?"onion-skin":y,showDiffOverlay:V,onDiffToggle:()=>B(J=>!J),onionSkinPosition:M,onOnionSkinChange:H,zoom:z,disableLoadingOverlay:!0,className:"w-full h-full"},pa(n))}),r.jsx("div",{className:"flex-shrink-0 bg-gray-900 border-t border-gray-800/50",children:r.jsx("div",{className:"px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"text-sm text-gray-500 flex-shrink-0",children:[k+1," of ",$.length]}),r.jsx("div",{ref:q,className:"flex-1 flex items-center gap-2 overflow-x-auto scrollbar-hide py-1",children:$.map((J,oe)=>r.jsx(Yv,{comparison:J,index:oe,isActive:oe===k,onClick:()=>v(J)},pa(J)))}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 text-xs text-gray-500 flex-shrink-0",children:[r.jsxs("span",{children:["Use"," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"←"})," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"→"})," ","to navigate"]}),r.jsx(uu,{className:"w-4 h-4 rotate-[-90deg]"})]})]})})})]})}function Vv(){let[,n]=di(),[,u]=lg("/comparison/:id"),[c,o]=m.useState({}),{data:h}=gi(),v=sg(),g=rg(),y=m.useMemo(()=>h?.comparisons||[],[h?.comparisons]),b=m.useMemo(()=>{let B=u?.id?decodeURIComponent(u.id):null;return!B||y.length===0?null:y.find(M=>M.id===B||M.signature===B||M.name===B)},[u,y]),p=m.useCallback(B=>{let M=B.id||B.signature||B.name;M&&n(`/comparison/${encodeURIComponent(M)}`)},[n]),N=m.useCallback(()=>{n("/")},[n]),z=m.useMemo(()=>b?b.id||b.signature||b.name:null,[b]),L=m.useCallback(B=>{o(M=>({...M,[B]:"accepting"})),v.mutate(B,{onSettled:()=>{o(M=>({...M,[B]:void 0}))}})},[v]),V=m.useCallback(B=>{o(M=>({...M,[B]:"rejecting"})),g.mutate(B,{onSettled:()=>{o(M=>({...M,[B]:void 0}))}})},[g]);return b?r.jsx(Gv,{comparison:b,comparisons:y,onClose:N,onAccept:L,onReject:V,onNavigate:p,userAction:c[z]}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",u?.id||"none"]}),r.jsx("button",{onClick:N,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Zv(n={}){return ma({queryKey:Te.config,queryFn:To.get,...n})}function Xv(){let n=Lt();return Qt({mutationFn:To.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:Te.config})}})}function qo(n){return{threshold:n?.comparison?.threshold??.1,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function mu({source:n}){let u={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(on,{variant:u[n]||"default",size:"sm",children:c[n]||n})}function Kv({config:n,sources:u,onSave:c,isSaving:o}){let h=qo(n),[v,g]=m.useState(h),[y,b]=m.useState(!1),[p,N]=m.useState("general"),z=m.useCallback((M,H)=>{g(q=>({...q,[M]:H})),b(!0)},[]),L=m.useCallback(()=>{g(qo(n)),b(!1)},[n]),V=m.useCallback(()=>{let M={comparison:{threshold:v.threshold},server:{port:v.port,timeout:v.timeout},build:{name:v.buildName,environment:v.environment},tdd:{openReport:v.openReport}};c(M,()=>b(!1))},[v,c]),B=[{key:"general",label:"General",icon:cu},{key:"server",label:"Server",icon:_o},{key:"build",label:"Build",icon:Uo}];return r.jsxs("div",{className:"space-y-6",children:[r.jsx(mv,{tabs:B,activeTab:p,onChange:N,variant:"default"}),p==="general"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cu,title:"General Settings",description:"Configure visual comparison and TDD behavior",iconColor:"bg-amber-500/10 text-amber-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Visual Comparison Threshold",type:"number",value:v.threshold,onChange:M=>z("threshold",parseFloat(M.target.value)),hint:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",step:"0.01",min:"0",max:"1"}),r.jsx(ov,{label:"Auto-open Report",description:"Automatically open the dashboard in your browser when starting TDD mode",checked:v.openReport,onChange:M=>z("openReport",M.target.checked)}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.comparison||"default"})]})]})]}),p==="server"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:_o,title:"Server Settings",description:"Local screenshot server configuration",iconColor:"bg-blue-500/10 text-blue-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Server Port",type:"number",value:v.port,onChange:M=>z("port",parseInt(M.target.value,10)),hint:"Port for the local screenshot server"}),r.jsx(pi,{label:"Server Timeout",type:"number",value:v.timeout,onChange:M=>z("timeout",parseInt(M.target.value,10)),hint:"Request timeout in milliseconds"}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.server||"default"})]})]})]}),p==="build"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:Uo,title:"Build Settings",description:"Configure build naming and environment",iconColor:"bg-purple-500/10 text-purple-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Build Name Template",type:"text",value:v.buildName,onChange:M=>z("buildName",M.target.value),hint:"Template for build names (use {timestamp} for current time)"}),r.jsx(cv,{label:"Environment",value:v.environment,onChange:M=>z("environment",M.target.value),hint:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.build||"default"})]})]})]}),y&&r.jsx("div",{className:"fixed bottom-6 right-6 left-6 md:left-auto md:w-auto",children:r.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl p-4 flex items-center gap-4",children:[r.jsx("span",{className:"text-sm text-slate-400 hidden md:inline",children:"Unsaved changes"}),r.jsxs("div",{className:"flex gap-3 flex-1 md:flex-initial",children:[r.jsx(Xe,{variant:"ghost",onClick:L,disabled:o,className:"flex-1 md:flex-initial",children:"Reset"}),r.jsx(Xe,{variant:"primary",onClick:V,loading:o,icon:Yl,className:"flex-1 md:flex-initial",children:"Save Changes"})]})]})})]})}function Jv(){let{data:n,isLoading:u,error:c,refetch:o}=Zv(),h=Xv(),{addToast:v}=Zl(),g=m.useCallback((y,b)=>{h.mutate(y,{onSuccess:()=>{b(),v("Settings saved successfully!","success")},onError:p=>{v(`Failed to save settings: ${p.message}`,"error")}})},[h,v]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsx(ut,{variant:"text",className:"w-96 h-10"}),r.jsx(Vl,{})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(hu,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Xe,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6 pb-24",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(Kv,{config:n?.config,sources:n?.sources,onSave:g,isSaving:h.isPending},JSON.stringify(n?.config))]})}function Ho(){return ma({queryKey:Te.authStatus(),queryFn:hi.getStatus,staleTime:30*1e3})}function $v(){return Qt({mutationFn:hi.initiateLogin})}function Fv(){let n=Lt();return Qt({mutationFn:u=>hi.pollAuthorization(u),onSuccess:u=>{u.status==="complete"&&(n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud}))}})}function Wv(){let n=Lt();return Qt({mutationFn:hi.logout,onSuccess:()=>{n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud})}})}function Iv(n={}){return ma({queryKey:Te.projects(),queryFn:mi.list,staleTime:60*1e3,...n})}function Pv(n,u,c={}){return ma({queryKey:Te.builds(n,u),queryFn:()=>mi.getBuilds(n,u,{limit:20}),enabled:!!(n&&u),staleTime:30*1e3,...c})}function e1(){let n=Lt();return Qt({mutationFn:({buildId:u,organizationSlug:c,projectSlug:o})=>un.downloadBaselines(u,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function t1(n={}){return ma({queryKey:[...Te.projects(),"mappings"],queryFn:mi.listMappings,staleTime:60*1e3,...n})}function l1(){let n=Lt();return Qt({mutationFn:u=>mi.deleteMapping(u),onSuccess:()=>{n.invalidateQueries({queryKey:Te.projects()})}})}function a1({onComplete:n}){let[u,c]=m.useState(null),[o,h]=m.useState(null),v=$v(),g=Fv(),{addToast:y}=Zl();m.useEffect(()=>{async function p(){try{let N=await v.mutateAsync();c(N)}catch(N){h(N.message),y(`Failed to start login: ${N.message}`,"error")}}p()},[]);async function b(){if(u?.deviceCode){h(null);try{let p=await g.mutateAsync(u.deviceCode);p.status==="complete"?(y("Login successful!","success"),n?.()):p.status==="pending"?y("Still waiting for authorization...","info"):h("Unexpected response from server")}catch(p){h(p.message),y(`Check failed: ${p.message}`,"error")}}}return o?r.jsx(hu,{variant:"danger",title:"Login Error",children:o}):u?r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:u.verificationUriComplete||u.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:u.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Xe,{variant:"secondary",onClick:b,loading:g.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function n1(){let[n,u]=m.useState(!1),c=Lt(),{data:o,isLoading:h}=Ho(),v=Wv(),{addToast:g}=Zl(),y=o?.user,b=o?.authenticated,p=m.useCallback(async()=>{try{await v.mutateAsync(),g("Logged out successfully","success")}catch(z){g(`Logout failed: ${z.message}`,"error")}},[v,g]),N=m.useCallback(()=>{u(!1),c.invalidateQueries({queryKey:Te.auth})},[c]);return h?r.jsx(Vl,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>u(!1),children:"← Back"}),r.jsx(a1,{onComplete:N})]}):b?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(fu,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:y?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:y?.email}),y?.organizationName&&r.jsx(on,{variant:"default",className:"mt-2",children:y.organizationName})]})]}),r.jsx(Xe,{variant:"ghost",onClick:p,loading:v.isPending,icon:mg,children:"Sign Out"})]})})}):r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Xe,{variant:"primary",onClick:()=>u(!0),icon:Ro,children:"Sign In"})]})})}function i1({mappings:n,onDelete:u,deleting:c}){let{addToast:o,confirm:h}=Zl(),v=m.useCallback(async g=>{if(await h(`Remove project mapping for ${g}?`,"This will not delete any files, only the project association."))try{await u(g),o("Mapping removed successfully","success")}catch(b){o(`Failed to remove mapping: ${b.message}`,"error")}},[u,o,h]);return n.length===0?r.jsx(ya,{icon:cn,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map((g,y)=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:g.directory}),r.jsx("td",{className:"text-white",children:g.projectName||g.projectSlug}),r.jsx("td",{children:g.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Xe,{variant:"danger",size:"sm",onClick:()=>v(g.directory),disabled:c,icon:nv,className:"!p-2"})})]},y))})]})})}function s1(){let{data:n,isLoading:u,refetch:c}=t1(),o=l1(),h=n?.mappings||[],v=m.useCallback(async g=>{await o.mutateAsync(g)},[o]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Vl,{})}),r.jsx(Vl,{})]}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(n1,{})}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Quick Stats"}),r.jsx(nt,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:h.length})]})})]})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cn,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>c(),icon:fl,children:"Refresh"})}),r.jsx(nt,{padding:"p-0",children:r.jsx(i1,{mappings:h,onDelete:v,deleting:o.isPending})})]})]})}function u1({status:n}){let u={passed:{variant:"success",icon:Yl},completed:{variant:"success",icon:Yl},failed:{variant:"danger",icon:du},pending:{variant:"warning",icon:vi},processing:{variant:"info",icon:fl}},c=u[n]||u.pending;return r.jsx(on,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function r1(n){let u=Math.floor((new Date-n)/1e3);return u<60?"just now":u<3600?`${Math.floor(u/60)}m ago`:u<86400?`${Math.floor(u/3600)}h ago`:u<604800?`${Math.floor(u/86400)}d ago`:n.toLocaleDateString()}function c1({build:n,project:u,onDownload:c,downloading:o}){let h=new Date(n.createdAt||n.created_at),v=r1(h);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(u1,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:v}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>c(n,u),loading:o,icon:dg,title:"Download baselines from this build"})]})}function o1({project:n,onExpand:u,expanded:c,onDownload:o,downloadingBuildId:h}){let{data:v,isLoading:g}=Pv(c?n.organizationSlug:null,c?n.slug:null),y=v?.builds||[];return r.jsxs(lt,{hover:!1,children:[r.jsxs("button",{onClick:()=>u(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(cn,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[g&&r.jsx(fn,{size:"sm",className:"text-amber-400"}),c?r.jsx(uu,{className:"w-5 h-5 text-slate-400"}):r.jsx(ru,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(nt,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:g?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(fn,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):y&&y.length>0?r.jsx("div",{className:"space-y-3",children:y.map((b,p)=>r.jsx(c1,{build:b,project:n,onDownload:o,downloading:h===b.id},b.id||p))}):r.jsx(ya,{icon:vi,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function f1({org:n,expandedProjects:u,onExpand:c,onDownload:o,downloadingBuildId:h}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Ng,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(on,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(v=>{let g=`${v.organizationSlug}/${v.slug}`;return r.jsx(o1,{project:v,expanded:u[g],onExpand:c,onDownload:o,downloadingBuildId:h},g)})})]})}function d1({onLogin:n}){return r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Xe,{variant:"primary",onClick:n,icon:Ro,children:"Sign In"})]})})}function h1(){let[n,u]=m.useState({}),[c,o]=m.useState(null),{addToast:h}=Zl(),{data:v,isLoading:g}=Ho(),{data:y,isLoading:b,refetch:p}=Iv(),N=e1(),z=v?.authenticated,L=m.useMemo(()=>{let H=y?.projects||[],q={};for(let $ of H){let k=$.organizationSlug||"unknown";q[k]||(q[k]={slug:k,name:$.organizationName||k,projects:[]}),q[k].projects.push($)}return Object.values(q)},[y?.projects]),V=m.useCallback((H,q)=>{let $=`${H}/${q}`;u(k=>({...k,[$]:!k[$]}))},[]),B=m.useCallback((H,q)=>{o(H.id),N.mutate({buildId:H.id,organizationSlug:q?.organizationSlug,projectSlug:q?.slug},{onSuccess:()=>{h(`Baselines downloaded from "${H.name||H.id}"`,"success"),o(null)},onError:$=>{h(`Failed to download baselines: ${$.message}`,"error"),o(null)}})},[N,h]),M=m.useCallback(()=>{window.location.href="/projects"},[]);return b||g?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-40 mb-2"}),r.jsx(ut,{variant:"text",className:"w-72"})]}),r.jsx(ut,{variant:"button"})]}),r.jsx(Vl,{}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Xe,{variant:"secondary",onClick:()=>p(),icon:fl,children:"Refresh"})]}),z?L.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsx(ya,{icon:cn,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Xe,{variant:"secondary",icon:ru,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:L.map(H=>r.jsx(f1,{org:H,expandedProjects:n,onExpand:V,onDownload:B,downloadingBuildId:c},H.slug))}):r.jsx(d1,{onLogin:M})]})}function m1(n,u){let c=[];if(u==="shell")return n.split(`
|
|
29
|
+
`).forEach((g,y)=>{let b=n.split(`
|
|
30
30
|
`).slice(0,y).join(`
|
|
31
|
-
`).length+(y>0?1:0);g.trim().startsWith("#")?c.push({type:"comment",start:
|
|
31
|
+
`).length+(y>0?1:0);g.trim().startsWith("#")?c.push({type:"comment",start:b,end:b+g.length}):(g.trim().startsWith("npm")||g.trim().startsWith("npx"))&&c.push({type:"command",start:b,end:b+g.length})}),c;[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}].forEach(({type:g,regex:y})=>{let b;for(;(b=y.exec(n))!==null;)c.push({type:g,start:b.index,end:b.index+b[0].length})}),c.sort((g,y)=>g.start-y.start);let h=[],v=0;return c.forEach(g=>{g.start>=v&&(h.push(g),v=g.end)}),h}function g1({code:n,language:u="javascript"}){let c=m.useRef(null),o=u==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return m.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;let h=c.current.firstChild;if(!h||h.nodeType!==window.Node.TEXT_NODE)return;let g=m1(n,o?"shell":u).map(p=>{let N=new window.Range;return N.setStart(h,p.start),N.setEnd(h,p.end),{type:p.type,range:N}}),y=new Map;g.forEach(({type:p,range:N})=>{y.has(p)||y.set(p,[]),y.get(p).push(N)});let b=new Map;for(let[p,N]of y){let z=new window.Highlight(...N);b.set(p,z),window.CSS.highlights.set(`code-${p}`,z)}return()=>{for(let[p]of b)window.CSS.highlights.delete(`code-${p}`)}},[n,u,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}let Qo=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
|
|
32
32
|
|
|
33
33
|
test('homepage', async ({ page }) => {
|
|
34
34
|
await page.goto('/');
|
|
@@ -77,4 +77,4 @@ class VisualTests: XCTestCase {
|
|
|
77
77
|
# Just run the CLI against your Storybook build:
|
|
78
78
|
|
|
79
79
|
npm run build-storybook
|
|
80
|
-
npx vizzly storybook ./storybook-static`}];function ji(){let[n,u]=m.useState("playwright"),c=Qo.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(vi,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:Qo.map(o=>r.jsx("button",{onClick:()=>u(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(g1,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Sg,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function v1(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function y1({error:n,onRetry:u}){return r.jsx(ya,{icon:dl,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{onClick:u,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function p1(){let[n,u]=di(),{data:c,isLoading:o,error:h,refetch:v}=gi(),g=n.startsWith("/comparison/"),y=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",
|
|
80
|
+
npx vizzly storybook ./storybook-static`}];function ji(){let[n,u]=m.useState("playwright"),c=Qo.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(vi,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:Qo.map(o=>r.jsx("button",{onClick:()=>u(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(g1,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Sg,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function v1(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function y1({error:n,onRetry:u}){return r.jsx(ya,{icon:dl,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{onClick:u,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function p1(){let[n,u]=di(),{data:c,isLoading:o,error:h,refetch:v}=gi(),g=n.startsWith("/comparison/"),y=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",b=N=>{u(N==="stats"?"/stats":N==="settings"?"/settings":N==="projects"?"/projects":N==="builds"?"/builds":"/")},p=n==="/settings"||n==="/projects"||n==="/builds";return o&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsx(v1,{})}):h&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsx(y1,{error:h.message,onRetry:v})}):!c&&!p?r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsx(ji,{})}):g?c?r.jsx(Oo,{children:r.jsx(va,{path:"/comparison/:id",children:r.jsx(Vv,{})})}):r.jsx(dn,{currentView:"comparisons",onNavigate:b,loading:o,children:r.jsx(ji,{})}):r.jsx(dn,{currentView:y,onNavigate:b,loading:o,children:r.jsxs(Oo,{children:[r.jsx(va,{path:"/stats",children:c?r.jsx(bv,{}):r.jsx(ji,{})}),r.jsx(va,{path:"/settings",children:r.jsx(Jv,{})}),r.jsx(va,{path:"/projects",children:r.jsx(s1,{})}),r.jsx(va,{path:"/builds",children:r.jsx(h1,{})}),r.jsx(va,{path:"/",children:c?r.jsx(Dv,{}):r.jsx(ji,{})})]})})}let ko=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n));let u=window.VIZZLY_REPORTER_DATA||null;tm.createRoot(n).render(r.jsx(m.StrictMode,{children:r.jsx(Em,{client:Bm,children:r.jsx(vv,{children:r.jsx(p1,{initialData:u})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ko):ko()})();
|