ocwatch 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client/dist/assets/index-27vUxwIP.css +1 -0
- package/src/client/dist/assets/index-B1aj6-ff.js +41 -0
- package/src/client/dist/index.html +2 -2
- package/src/server/index.ts +60 -9
- package/src/server/routes/health.ts +14 -2
- package/src/server/routes/index.ts +10 -2
- package/src/server/routes/poll.ts +28 -15
- package/src/server/services/pollService.ts +56 -22
- package/src/server/storage/boulderParser.ts +18 -8
- package/src/server/utils/projectResolver.ts +30 -0
- package/src/shared/types/index.ts +1 -0
- package/src/client/dist/assets/index-BVLDR2SA.js +0 -41
- package/src/client/dist/assets/index-yAq3NPUw.css +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function s1(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Bu={exports:{}},fs={};var hp;function l1(){if(hp)return fs;hp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:d,ref:c!==void 0?c:null,props:f}}return fs.Fragment=i,fs.jsx=r,fs.jsxs=r,fs}var mp;function r1(){return mp||(mp=1,Bu.exports=l1()),Bu.exports}var m=r1(),Lu={exports:{}},st={};var pp;function o1(){if(pp)return st;pp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function A(j){return j===null||typeof j!="object"?null:(j=S&&j[S]||j["@@iterator"],typeof j=="function"?j:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,k={};function V(j,q,Q){this.props=j,this.context=q,this.refs=k,this.updater=Q||M}V.prototype.isReactComponent={},V.prototype.setState=function(j,q){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,q,"setState")},V.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function Y(){}Y.prototype=V.prototype;function B(j,q,Q){this.props=j,this.context=q,this.refs=k,this.updater=Q||M}var X=B.prototype=new Y;X.constructor=B,O(X,V.prototype),X.isPureReactComponent=!0;var Z=Array.isArray;function at(){}var I={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function it(j,q,Q){var $=Q.ref;return{$$typeof:a,type:j,key:q,ref:$!==void 0?$:null,props:Q}}function jt(j,q){return it(j.type,q,j.props)}function _t(j){return typeof j=="object"&&j!==null&&j.$$typeof===a}function Ut(j){var q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Q){return q[Q]})}var ge=/\/+/g;function tt(j,q){return typeof j=="object"&&j!==null&&j.key!=null?Ut(""+j.key):q.toString(36)}function ut(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(at,at):(j.status="pending",j.then(function(q){j.status==="pending"&&(j.status="fulfilled",j.value=q)},function(q){j.status==="pending"&&(j.status="rejected",j.reason=q)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function _(j,q,Q,$,lt){var ct=typeof j;(ct==="undefined"||ct==="boolean")&&(j=null);var Tt=!1;if(j===null)Tt=!0;else switch(ct){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(j.$$typeof){case a:case i:Tt=!0;break;case v:return Tt=j._init,_(Tt(j._payload),q,Q,$,lt)}}if(Tt)return lt=lt(j),Tt=$===""?"."+tt(j,0):$,Z(lt)?(Q="",Tt!=null&&(Q=Tt.replace(ge,"$&/")+"/"),_(lt,q,Q,"",function(vi){return vi})):lt!=null&&(_t(lt)&&(lt=jt(lt,Q+(lt.key==null||j&&j.key===lt.key?"":(""+lt.key).replace(ge,"$&/")+"/")+Tt)),q.push(lt)),1;Tt=0;var le=$===""?".":$+":";if(Z(j))for(var kt=0;kt<j.length;kt++)$=j[kt],ct=le+tt($,kt),Tt+=_($,q,Q,ct,lt);else if(kt=A(j),typeof kt=="function")for(j=kt.call(j),kt=0;!($=j.next()).done;)$=$.value,ct=le+tt($,kt++),Tt+=_($,q,Q,ct,lt);else if(ct==="object"){if(typeof j.then=="function")return _(ut(j),q,Q,$,lt);throw q=String(j),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function G(j,q,Q){if(j==null)return j;var $=[],lt=0;return _(j,$,"","",function(ct){return q.call(Q,ct,lt++)}),$}function P(j){if(j._status===-1){var q=j._result;q=q(),q.then(function(Q){(j._status===0||j._status===-1)&&(j._status=1,j._result=Q)},function(Q){(j._status===0||j._status===-1)&&(j._status=2,j._result=Q)}),j._status===-1&&(j._status=0,j._result=q)}if(j._status===1)return j._result.default;throw j._result}var ht=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},gt={map:G,forEach:function(j,q,Q){G(j,function(){q.apply(this,arguments)},Q)},count:function(j){var q=0;return G(j,function(){q++}),q},toArray:function(j){return G(j,function(q){return q})||[]},only:function(j){if(!_t(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return st.Activity=b,st.Children=gt,st.Component=V,st.Fragment=r,st.Profiler=c,st.PureComponent=B,st.StrictMode=o,st.Suspense=g,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,st.__COMPILER_RUNTIME={__proto__:null,c:function(j){return I.H.useMemoCache(j)}},st.cache=function(j){return function(){return j.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(j,q,Q){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var $=O({},j.props),lt=j.key;if(q!=null)for(ct in q.key!==void 0&&(lt=""+q.key),q)!K.call(q,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&q.ref===void 0||($[ct]=q[ct]);var ct=arguments.length-2;if(ct===1)$.children=Q;else if(1<ct){for(var Tt=Array(ct),le=0;le<ct;le++)Tt[le]=arguments[le+2];$.children=Tt}return it(j.type,lt,$)},st.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:f,_context:j},j},st.createElement=function(j,q,Q){var $,lt={},ct=null;if(q!=null)for($ in q.key!==void 0&&(ct=""+q.key),q)K.call(q,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(lt[$]=q[$]);var Tt=arguments.length-2;if(Tt===1)lt.children=Q;else if(1<Tt){for(var le=Array(Tt),kt=0;kt<Tt;kt++)le[kt]=arguments[kt+2];lt.children=le}if(j&&j.defaultProps)for($ in Tt=j.defaultProps,Tt)lt[$]===void 0&&(lt[$]=Tt[$]);return it(j,ct,lt)},st.createRef=function(){return{current:null}},st.forwardRef=function(j){return{$$typeof:p,render:j}},st.isValidElement=_t,st.lazy=function(j){return{$$typeof:v,_payload:{_status:-1,_result:j},_init:P}},st.memo=function(j,q){return{$$typeof:y,type:j,compare:q===void 0?null:q}},st.startTransition=function(j){var q=I.T,Q={};I.T=Q;try{var $=j(),lt=I.S;lt!==null&<(Q,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(at,ht)}catch(ct){ht(ct)}finally{q!==null&&Q.types!==null&&(q.types=Q.types),I.T=q}},st.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},st.use=function(j){return I.H.use(j)},st.useActionState=function(j,q,Q){return I.H.useActionState(j,q,Q)},st.useCallback=function(j,q){return I.H.useCallback(j,q)},st.useContext=function(j){return I.H.useContext(j)},st.useDebugValue=function(){},st.useDeferredValue=function(j,q){return I.H.useDeferredValue(j,q)},st.useEffect=function(j,q){return I.H.useEffect(j,q)},st.useEffectEvent=function(j){return I.H.useEffectEvent(j)},st.useId=function(){return I.H.useId()},st.useImperativeHandle=function(j,q,Q){return I.H.useImperativeHandle(j,q,Q)},st.useInsertionEffect=function(j,q){return I.H.useInsertionEffect(j,q)},st.useLayoutEffect=function(j,q){return I.H.useLayoutEffect(j,q)},st.useMemo=function(j,q){return I.H.useMemo(j,q)},st.useOptimistic=function(j,q){return I.H.useOptimistic(j,q)},st.useReducer=function(j,q,Q){return I.H.useReducer(j,q,Q)},st.useRef=function(j){return I.H.useRef(j)},st.useState=function(j){return I.H.useState(j)},st.useSyncExternalStore=function(j,q,Q){return I.H.useSyncExternalStore(j,q,Q)},st.useTransition=function(){return I.H.useTransition()},st.version="19.2.4",st}var yp;function Rc(){return yp||(yp=1,Lu.exports=o1()),Lu.exports}var C=Rc();const Y0=s1(C);var Hu={exports:{}},ds={},ku={exports:{}},qu={};var gp;function u1(){return gp||(gp=1,(function(a){function i(_,G){var P=_.length;_.push(G);t:for(;0<P;){var ht=P-1>>>1,gt=_[ht];if(0<c(gt,G))_[ht]=G,_[P]=gt,P=ht;else break t}}function r(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var G=_[0],P=_.pop();if(P!==G){_[0]=P;t:for(var ht=0,gt=_.length,j=gt>>>1;ht<j;){var q=2*(ht+1)-1,Q=_[q],$=q+1,lt=_[$];if(0>c(Q,P))$<gt&&0>c(lt,Q)?(_[ht]=lt,_[$]=P,ht=$):(_[ht]=Q,_[q]=P,ht=q);else if($<gt&&0>c(lt,P))_[ht]=lt,_[$]=P,ht=$;else break t}}return G}function c(_,G){var P=_.sortIndex-G.sortIndex;return P!==0?P:_.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();a.unstable_now=function(){return d.now()-p}}var g=[],y=[],v=1,b=null,S=3,A=!1,M=!1,O=!1,k=!1,V=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function X(_){for(var G=r(y);G!==null;){if(G.callback===null)o(y);else if(G.startTime<=_)o(y),G.sortIndex=G.expirationTime,i(g,G);else break;G=r(y)}}function Z(_){if(O=!1,X(_),!M)if(r(g)!==null)M=!0,at||(at=!0,Ut());else{var G=r(y);G!==null&&ut(Z,G.startTime-_)}}var at=!1,I=-1,K=5,it=-1;function jt(){return k?!0:!(a.unstable_now()-it<K)}function _t(){if(k=!1,at){var _=a.unstable_now();it=_;var G=!0;try{t:{M=!1,O&&(O=!1,Y(I),I=-1),A=!0;var P=S;try{e:{for(X(_),b=r(g);b!==null&&!(b.expirationTime>_&&jt());){var ht=b.callback;if(typeof ht=="function"){b.callback=null,S=b.priorityLevel;var gt=ht(b.expirationTime<=_);if(_=a.unstable_now(),typeof gt=="function"){b.callback=gt,X(_),G=!0;break e}b===r(g)&&o(g),X(_)}else o(g);b=r(g)}if(b!==null)G=!0;else{var j=r(y);j!==null&&ut(Z,j.startTime-_),G=!1}}break t}finally{b=null,S=P,A=!1}G=void 0}}finally{G?Ut():at=!1}}}var Ut;if(typeof B=="function")Ut=function(){B(_t)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,tt=ge.port2;ge.port1.onmessage=_t,Ut=function(){tt.postMessage(null)}}else Ut=function(){V(_t,0)};function ut(_,G){I=V(function(){_(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(_){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var P=S;S=G;try{return _()}finally{S=P}},a.unstable_requestPaint=function(){k=!0},a.unstable_runWithPriority=function(_,G){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var P=S;S=_;try{return G()}finally{S=P}},a.unstable_scheduleCallback=function(_,G,P){var ht=a.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ht+P:ht):P=ht,_){case 1:var gt=-1;break;case 2:gt=250;break;case 5:gt=1073741823;break;case 4:gt=1e4;break;default:gt=5e3}return gt=P+gt,_={id:v++,callback:G,priorityLevel:_,startTime:P,expirationTime:gt,sortIndex:-1},P>ht?(_.sortIndex=P,i(y,_),r(g)===null&&_===r(y)&&(O?(Y(I),I=-1):O=!0,ut(Z,P-ht))):(_.sortIndex=gt,i(g,_),M||A||(M=!0,at||(at=!0,Ut()))),_},a.unstable_shouldYield=jt,a.unstable_wrapCallback=function(_){var G=S;return function(){var P=S;S=G;try{return _.apply(this,arguments)}finally{S=P}}}})(qu)),qu}var vp;function c1(){return vp||(vp=1,ku.exports=u1()),ku.exports}var Yu={exports:{}},ie={};var xp;function f1(){if(xp)return ie;xp=1;var a=Rc();function i(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,y,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:y,implementation:v}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ie.createPortal=function(g,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return f(g,y,null,v)},ie.flushSync=function(g){var y=d.T,v=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=y,o.p=v,o.d.f()}},ie.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(g,y))},ie.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},ie.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var v=y.as,b=p(v,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,A=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?o.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:A}):v==="script"&&o.d.X(g,{crossOrigin:b,integrity:S,fetchPriority:A,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ie.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=p(y.as,y.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(g)},ie.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,b=p(v,y.crossOrigin);o.d.L(g,v,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ie.preloadModule=function(g,y){if(typeof g=="string")if(y){var v=p(y.as,y.crossOrigin);o.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(g)},ie.requestFormReset=function(g){o.d.r(g)},ie.unstable_batchedUpdates=function(g,y){return g(y)},ie.useFormState=function(g,y,v){return d.H.useFormState(g,y,v)},ie.useFormStatus=function(){return d.H.useHostTransitionStatus()},ie.version="19.2.4",ie}var bp;function d1(){if(bp)return Yu.exports;bp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Yu.exports=f1(),Yu.exports}var Sp;function h1(){if(Sp)return ds;Sp=1;var a=c1(),i=Rc(),r=d1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(f(t)!==t)throw Error(o(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,s=e;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(s=l.return,s!==null){n=s;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return g(l),t;if(u===s)return g(l),e;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=l,s=u;else{for(var h=!1,x=l.child;x;){if(x===n){h=!0,n=l,s=u;break}if(x===s){h=!0,s=l,n=u;break}x=x.sibling}if(!h){for(x=u.child;x;){if(x===n){h=!0,n=u,s=l;break}if(x===s){h=!0,s=u,n=l;break}x=x.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==s)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),B=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),at=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),it=Symbol.for("react.activity"),jt=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function Ut(t){return t===null||typeof t!="object"?null:(t=_t&&t[_t]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Symbol.for("react.client.reference");function tt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ge?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case V:return"Profiler";case k:return"StrictMode";case Z:return"Suspense";case at:return"SuspenseList";case it:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case B:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return e=t.displayName||null,e!==null?e:tt(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return tt(t(e))}catch{}}return null}var ut=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ht=[],gt=-1;function j(t){return{current:t}}function q(t){0>gt||(t.current=ht[gt],ht[gt]=null,gt--)}function Q(t,e){gt++,ht[gt]=t.current,t.current=e}var $=j(null),lt=j(null),ct=j(null),Tt=j(null);function le(t,e){switch(Q(ct,e),Q(lt,t),Q($,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Um(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Um(e),t=Bm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q($),Q($,t)}function kt(){q($),q(lt),q(ct)}function vi(t){t.memoizedState!==null&&Q(Tt,t);var e=$.current,n=Bm(e,t.type);e!==n&&(Q(lt,t),Q($,n))}function Rs(t){lt.current===t&&(q($),q(lt)),Tt.current===t&&(q(Tt),rs._currentValue=P)}var vr,df;function Wn(t){if(vr===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);vr=e&&e[1]||"",df=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+vr+t+df}var xr=!1;function br(t,e){if(!t||xr)return"";xr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(z){var R=z}Reflect.construct(t,[],H)}else{try{H.call()}catch(z){R=z}t.call(H.prototype)}}else{try{throw Error()}catch(z){R=z}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(z){if(z&&R&&typeof z.stack=="string")return[z.stack,R.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),h=u[0],x=u[1];if(h&&x){var T=h.split(`
|
|
4
|
-
`),D=x.split(`
|
|
5
|
-
`);for(l=s=0;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;for(;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;if(s===T.length||l===D.length)for(s=T.length-1,l=D.length-1;1<=s&&0<=l&&T[s]!==D[l];)l--;for(;1<=s&&0<=l;s--,l--)if(T[s]!==D[l]){if(s!==1||l!==1)do if(s--,l--,0>l||T[s]!==D[l]){var U=`
|
|
6
|
-
`+T[s].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=s&&0<=l);break}}}finally{xr=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Wn(n):""}function Ug(t,e){switch(t.tag){case 26:case 27:case 5:return Wn(t.type);case 16:return Wn("Lazy");case 13:return t.child!==e&&e!==null?Wn("Suspense Fallback"):Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 15:return br(t.type,!1);case 11:return br(t.type.render,!1);case 1:return br(t.type,!0);case 31:return Wn("Activity");default:return""}}function hf(t){try{var e="",n=null;do e+=Ug(t,n),n=t,t=t.return;while(t);return e}catch(s){return`
|
|
7
|
-
Error generating stack: `+s.message+`
|
|
8
|
-
`+s.stack}}var Sr=Object.prototype.hasOwnProperty,Tr=a.unstable_scheduleCallback,Ar=a.unstable_cancelCallback,Bg=a.unstable_shouldYield,Lg=a.unstable_requestPaint,ve=a.unstable_now,Hg=a.unstable_getCurrentPriorityLevel,mf=a.unstable_ImmediatePriority,pf=a.unstable_UserBlockingPriority,zs=a.unstable_NormalPriority,kg=a.unstable_LowPriority,yf=a.unstable_IdlePriority,qg=a.log,Yg=a.unstable_setDisableYieldValue,xi=null,xe=null;function Sn(t){if(typeof qg=="function"&&Yg(t),xe&&typeof xe.setStrictMode=="function")try{xe.setStrictMode(xi,t)}catch{}}var be=Math.clz32?Math.clz32:Zg,Gg=Math.log,Xg=Math.LN2;function Zg(t){return t>>>=0,t===0?32:31-(Gg(t)/Xg|0)|0}var Os=256,_s=262144,Vs=4194304;function In(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Us(t,e,n){var s=t.pendingLanes;if(s===0)return 0;var l=0,u=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?l=In(s):(h&=x,h!==0?l=In(h):n||(n=x&~t,n!==0&&(l=In(n))))):(x=s&~u,x!==0?l=In(x):h!==0?l=In(h):n||(n=s&~t,n!==0&&(l=In(n)))),l===0?0:e!==0&&e!==l&&(e&u)===0&&(u=l&-l,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:l}function bi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Qg(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 gf(){var t=Vs;return Vs<<=1,(Vs&62914560)===0&&(Vs=4194304),t}function Nr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Si(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Kg(t,e,n,s,l,u){var h=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var x=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(n=h&~n;0<n;){var U=31-be(n),H=1<<U;x[U]=0,T[U]=-1;var R=D[U];if(R!==null)for(D[U]=null,U=0;U<R.length;U++){var z=R[U];z!==null&&(z.lane&=-536870913)}n&=~H}s!==0&&vf(t,s,0),u!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=u&~(h&~e))}function vf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-be(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|n&261930}function xf(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var s=31-be(n),l=1<<s;l&e|t[s]&e&&(t[s]|=e),n&=~l}}function bf(t,e){var n=e&-e;return n=(n&42)!==0?1:jr(n),(n&(t.suspendedLanes|e))!==0?0:n}function jr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Er(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Sf(){var t=G.p;return t!==0?t:(t=window.event,t===void 0?32:lp(t.type))}function Tf(t,e){var n=G.p;try{return G.p=t,e()}finally{G.p=n}}var Tn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Tn,ce="__reactProps$"+Tn,Na="__reactContainer$"+Tn,Mr="__reactEvents$"+Tn,Jg="__reactListeners$"+Tn,Fg="__reactHandles$"+Tn,Af="__reactResources$"+Tn,Ti="__reactMarker$"+Tn;function wr(t){delete t[Wt],delete t[ce],delete t[Mr],delete t[Jg],delete t[Fg]}function ja(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Na]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Xm(t);t!==null;){if(n=t[Wt])return n;t=Xm(t)}return e}t=n,n=t.parentNode}return null}function Ea(t){if(t=t[Wt]||t[Na]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ai(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Ma(t){var e=t[Af];return e||(e=t[Af]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function $t(t){t[Ti]=!0}var Nf=new Set,jf={};function ta(t,e){wa(t,e),wa(t+"Capture",e)}function wa(t,e){for(jf[t]=e,t=0;t<e.length;t++)Nf.add(e[t])}var $g=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]*$"),Ef={},Mf={};function Pg(t){return Sr.call(Mf,t)?!0:Sr.call(Ef,t)?!1:$g.test(t)?Mf[t]=!0:(Ef[t]=!0,!1)}function Bs(t,e,n){if(Pg(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ls(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Ie(t,e,n,s){if(s===null)t.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+s)}}function we(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Wg(t,e,n){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var l=s.get,u=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Dr(t){if(!t._valueTracker){var e=wf(t)?"checked":"value";t._valueTracker=Wg(t,e,""+t[e])}}function Df(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),s="";return t&&(s=wf(t)?t.checked?"true":"false":t.value),t=s,t!==n?(e.setValue(t),!0):!1}function Hs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ig=/[\n"\\]/g;function De(t){return t.replace(Ig,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Cr(t,e,n,s,l,u,h,x){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),e!=null?h==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+we(e)):t.value!==""+we(e)&&(t.value=""+we(e)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),e!=null?Rr(t,h,we(e)):n!=null?Rr(t,h,we(n)):s!=null&&t.removeAttribute("value"),l==null&&u!=null&&(t.defaultChecked=!!u),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+we(x):t.removeAttribute("name")}function Cf(t,e,n,s,l,u,h,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Dr(t);return}n=n!=null?""+we(n):"",e=e!=null?""+we(e):n,x||e===t.value||(t.value=e),t.defaultValue=e}s=s??l,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),Dr(t)}function Rr(t,e,n){e==="number"&&Hs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Da(t,e,n,s){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&s&&(t[n].defaultSelected=!0)}else{for(n=""+we(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,s&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Rf(t,e,n){if(e!=null&&(e=""+we(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+we(n):""}function zf(t,e,n,s){if(e==null){if(s!=null){if(n!=null)throw Error(o(92));if(ut(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),e=n}n=we(e),t.defaultValue=n,s=t.textContent,s===n&&s!==""&&s!==null&&(t.value=s),Dr(t)}function Ca(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var tv=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(t,e,n){var s=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,n):typeof n!="number"||n===0||tv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function _f(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var l in e)s=e[l],e.hasOwnProperty(l)&&n[l]!==s&&Of(t,l,s)}else for(var u in e)e.hasOwnProperty(u)&&Of(t,u,e[u])}function zr(t){if(t.indexOf("-")===-1)return!1;switch(t){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 ev=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"]]),nv=/^[\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 ks(t){return nv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tn(){}var Or=null;function _r(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ra=null,za=null;function Vf(t){var e=Ea(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Cr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+De(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var s=n[e];if(s!==t&&s.form===t.form){var l=s[ce]||null;if(!l)throw Error(o(90));Cr(s,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)s=n[e],s.form===t.form&&Df(s)}break t;case"textarea":Rf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Da(t,!!n.multiple,e,!1)}}}var Vr=!1;function Uf(t,e,n){if(Vr)return t(e,n);Vr=!0;try{var s=t(e);return s}finally{if(Vr=!1,(Ra!==null||za!==null)&&(Ml(),Ra&&(e=Ra,t=za,za=Ra=null,Vf(e),t)))for(e=0;e<t.length;e++)Vf(t[e])}}function Ni(t,e){var n=t.stateNode;if(n===null)return null;var s=n[ce]||null;if(s===null)return null;n=s[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ur=!1;if(en)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){Ur=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{Ur=!1}var An=null,Br=null,qs=null;function Bf(){if(qs)return qs;var t,e=Br,n=e.length,s,l="value"in An?An.value:An.textContent,u=l.length;for(t=0;t<n&&e[t]===l[t];t++);var h=n-t;for(s=1;s<=h&&e[n-s]===l[u-s];s++);return qs=l.slice(t,1<s?1-s:void 0)}function Ys(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Gs(){return!0}function Lf(){return!1}function fe(t){function e(n,s,l,u,h){this._reactName=n,this._targetInst=l,this.type=s,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(n=t[x],this[x]=n?n(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Gs:Lf,this.isPropagationStopped=Lf,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),e}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=fe(ea),Ei=b({},ea,{view:0,detail:0}),av=fe(Ei),Lr,Hr,Mi,Zs=b({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Mi&&(Mi&&t.type==="mousemove"?(Lr=t.screenX-Mi.screenX,Hr=t.screenY-Mi.screenY):Hr=Lr=0,Mi=t),Lr)},movementY:function(t){return"movementY"in t?t.movementY:Hr}}),Hf=fe(Zs),iv=b({},Zs,{dataTransfer:0}),sv=fe(iv),lv=b({},Ei,{relatedTarget:0}),kr=fe(lv),rv=b({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),ov=fe(rv),uv=b({},ea,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),cv=fe(uv),fv=b({},ea,{data:0}),kf=fe(fv),dv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hv={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"},mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=mv[t])?!!e[t]:!1}function qr(){return pv}var yv=b({},Ei,{key:function(t){if(t.key){var e=dv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ys(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?hv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qr,charCode:function(t){return t.type==="keypress"?Ys(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ys(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gv=fe(yv),vv=b({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qf=fe(vv),xv=b({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qr}),bv=fe(xv),Sv=b({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tv=fe(Sv),Av=b({},Zs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Nv=fe(Av),jv=b({},ea,{newState:0,oldState:0}),Ev=fe(jv),Mv=[9,13,27,32],Yr=en&&"CompositionEvent"in window,wi=null;en&&"documentMode"in document&&(wi=document.documentMode);var wv=en&&"TextEvent"in window&&!wi,Yf=en&&(!Yr||wi&&8<wi&&11>=wi),Gf=" ",Xf=!1;function Zf(t,e){switch(t){case"keyup":return Mv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Oa=!1;function Dv(t,e){switch(t){case"compositionend":return Qf(e);case"keypress":return e.which!==32?null:(Xf=!0,Gf);case"textInput":return t=e.data,t===Gf&&Xf?null:t;default:return null}}function Cv(t,e){if(Oa)return t==="compositionend"||!Yr&&Zf(t,e)?(t=Bf(),qs=Br=An=null,Oa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Yf&&e.locale!=="ko"?null:e.data;default:return null}}var Rv={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 Kf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Rv[t.type]:e==="textarea"}function Jf(t,e,n,s){Ra?za?za.push(s):za=[s]:Ra=s,e=_l(e,"onChange"),0<e.length&&(n=new Xs("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var Di=null,Ci=null;function zv(t){Cm(t,0)}function Qs(t){var e=Ai(t);if(Df(e))return t}function Ff(t,e){if(t==="change")return e}var $f=!1;if(en){var Gr;if(en){var Xr="oninput"in document;if(!Xr){var Pf=document.createElement("div");Pf.setAttribute("oninput","return;"),Xr=typeof Pf.oninput=="function"}Gr=Xr}else Gr=!1;$f=Gr&&(!document.documentMode||9<document.documentMode)}function Wf(){Di&&(Di.detachEvent("onpropertychange",If),Ci=Di=null)}function If(t){if(t.propertyName==="value"&&Qs(Ci)){var e=[];Jf(e,Ci,t,_r(t)),Uf(zv,e)}}function Ov(t,e,n){t==="focusin"?(Wf(),Di=e,Ci=n,Di.attachEvent("onpropertychange",If)):t==="focusout"&&Wf()}function _v(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qs(Ci)}function Vv(t,e){if(t==="click")return Qs(e)}function Uv(t,e){if(t==="input"||t==="change")return Qs(e)}function Bv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Se=typeof Object.is=="function"?Object.is:Bv;function Ri(t,e){if(Se(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var l=n[s];if(!Sr.call(e,l)||!Se(t[l],e[l]))return!1}return!0}function td(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ed(t,e){var n=td(t);t=0;for(var s;n;){if(n.nodeType===3){if(s=t+n.textContent.length,t<=e&&s>=e)return{node:n,offset:e-t};t=s}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=td(n)}}function nd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?nd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ad(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Hs(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Hs(t.document)}return e}function Zr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Lv=en&&"documentMode"in document&&11>=document.documentMode,_a=null,Qr=null,zi=null,Kr=!1;function id(t,e,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||_a==null||_a!==Hs(s)||(s=_a,"selectionStart"in s&&Zr(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),zi&&Ri(zi,s)||(zi=s,s=_l(Qr,"onSelect"),0<s.length&&(e=new Xs("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=_a)))}function na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Va={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},Jr={},sd={};en&&(sd=document.createElement("div").style,"AnimationEvent"in window||(delete Va.animationend.animation,delete Va.animationiteration.animation,delete Va.animationstart.animation),"TransitionEvent"in window||delete Va.transitionend.transition);function aa(t){if(Jr[t])return Jr[t];if(!Va[t])return t;var e=Va[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in sd)return Jr[t]=e[n];return t}var ld=aa("animationend"),rd=aa("animationiteration"),od=aa("animationstart"),Hv=aa("transitionrun"),kv=aa("transitionstart"),qv=aa("transitioncancel"),ud=aa("transitionend"),cd=new Map,Fr="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(" ");Fr.push("scrollEnd");function Ye(t,e){cd.set(t,e),ta(e,[t])}var Ks=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Ua=0,$r=0;function Js(){for(var t=Ua,e=$r=Ua=0;e<t;){var n=Ce[e];Ce[e++]=null;var s=Ce[e];Ce[e++]=null;var l=Ce[e];Ce[e++]=null;var u=Ce[e];if(Ce[e++]=null,s!==null&&l!==null){var h=s.pending;h===null?l.next=l:(l.next=h.next,h.next=l),s.pending=l}u!==0&&fd(n,l,u)}}function Fs(t,e,n,s){Ce[Ua++]=t,Ce[Ua++]=e,Ce[Ua++]=n,Ce[Ua++]=s,$r|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Pr(t,e,n,s){return Fs(t,e,n,s),$s(t)}function ia(t,e){return Fs(t,null,null,e),$s(t)}function fd(t,e,n){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n);for(var l=!1,u=t.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(l=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,l&&e!==null&&(l=31-be(n),t=u.hiddenUpdates,s=t[l],s===null?t[l]=[e]:s.push(e),e.lane=n|536870912),u):null}function $s(t){if(50<ts)throw ts=0,ru=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ba={};function Yv(t,e,n,s){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,n,s){return new Yv(t,e,n,s)}function Wr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nn(t,e){var n=t.alternate;return n===null?(n=Te(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function dd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ps(t,e,n,s,l,u){var h=0;if(s=t,typeof t=="function")Wr(t)&&(h=1);else if(typeof t=="string")h=Kx(t,n,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case it:return t=Te(31,n,e,l),t.elementType=it,t.lanes=u,t;case O:return sa(n.children,l,u,e);case k:h=8,l|=24;break;case V:return t=Te(12,n,e,l|2),t.elementType=V,t.lanes=u,t;case Z:return t=Te(13,n,e,l),t.elementType=Z,t.lanes=u,t;case at:return t=Te(19,n,e,l),t.elementType=at,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case B:h=10;break t;case Y:h=9;break t;case X:h=11;break t;case I:h=14;break t;case K:h=16,s=null;break t}h=29,n=Error(o(130,t===null?"null":typeof t,"")),s=null}return e=Te(h,n,e,l),e.elementType=t,e.type=s,e.lanes=u,e}function sa(t,e,n,s){return t=Te(7,t,s,e),t.lanes=n,t}function Ir(t,e,n){return t=Te(6,t,null,e),t.lanes=n,t}function hd(t){var e=Te(18,null,null,0);return e.stateNode=t,e}function to(t,e,n){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var md=new WeakMap;function Re(t,e){if(typeof t=="object"&&t!==null){var n=md.get(t);return n!==void 0?n:(e={value:t,source:e,stack:hf(e)},md.set(t,e),e)}return{value:t,source:e,stack:hf(e)}}var La=[],Ha=0,Ws=null,Oi=0,ze=[],Oe=0,Nn=null,Ke=1,Je="";function an(t,e){La[Ha++]=Oi,La[Ha++]=Ws,Ws=t,Oi=e}function pd(t,e,n){ze[Oe++]=Ke,ze[Oe++]=Je,ze[Oe++]=Nn,Nn=t;var s=Ke;t=Je;var l=32-be(s)-1;s&=~(1<<l),n+=1;var u=32-be(e)+l;if(30<u){var h=l-l%5;u=(s&(1<<h)-1).toString(32),s>>=h,l-=h,Ke=1<<32-be(e)+l|n<<l|s,Je=u+t}else Ke=1<<u|n<<l|s,Je=t}function eo(t){t.return!==null&&(an(t,1),pd(t,1,0))}function no(t){for(;t===Ws;)Ws=La[--Ha],La[Ha]=null,Oi=La[--Ha],La[Ha]=null;for(;t===Nn;)Nn=ze[--Oe],ze[Oe]=null,Je=ze[--Oe],ze[Oe]=null,Ke=ze[--Oe],ze[Oe]=null}function yd(t,e){ze[Oe++]=Ke,ze[Oe++]=Je,ze[Oe++]=Nn,Ke=e.id,Je=e.overflow,Nn=t}var It=null,Rt=null,yt=!1,jn=null,_e=!1,ao=Error(o(519));function En(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _i(Re(e,t)),ao}function gd(t){var e=t.stateNode,n=t.type,s=t.memoizedProps;switch(e[Wt]=t,e[ce]=s,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<ns.length;n++)dt(ns[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Cf(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),zf(e,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||s.suppressHydrationWarning===!0||_m(e.textContent,n)?(s.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),s.onScroll!=null&&dt("scroll",e),s.onScrollEnd!=null&&dt("scrollend",e),s.onClick!=null&&(e.onclick=tn),e=!0):e=!1,e||En(t,!0)}function vd(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:It=It.return}}function ka(t){if(t!==It)return!1;if(!yt)return vd(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Tu(t.type,t.memoizedProps)),n=!n),n&&Rt&&En(t),vd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Rt=Gm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Rt=Gm(t)}else e===27?(e=Rt,kn(t.type)?(t=Mu,Mu=null,Rt=t):Rt=e):Rt=It?Ue(t.stateNode.nextSibling):null;return!0}function la(){Rt=It=null,yt=!1}function io(){var t=jn;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),jn=null),t}function _i(t){jn===null?jn=[t]:jn.push(t)}var so=j(null),ra=null,sn=null;function Mn(t,e,n){Q(so,e._currentValue),e._currentValue=n}function ln(t){t._currentValue=so.current,q(so)}function lo(t,e,n){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===n)break;t=t.return}}function ro(t,e,n,s){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){var h=l.child;u=u.firstContext;t:for(;u!==null;){var x=u;u=l;for(var T=0;T<e.length;T++)if(x.context===e[T]){u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),lo(u.return,n,t),s||(h=null);break t}u=x.next}}else if(l.tag===18){if(h=l.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),lo(h,n,t),h=null}else h=l.child;if(h!==null)h.return=l;else for(h=l;h!==null;){if(h===t){h=null;break}if(l=h.sibling,l!==null){l.return=h.return,h=l;break}h=h.return}l=h}}function qa(t,e,n,s){t=null;for(var l=e,u=!1;l!==null;){if(!u){if((l.flags&524288)!==0)u=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var h=l.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var x=l.type;Se(l.pendingProps.value,h.value)||(t!==null?t.push(x):t=[x])}}else if(l===Tt.current){if(h=l.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(rs):t=[rs])}l=l.return}t!==null&&ro(e,t,n,s),e.flags|=262144}function Is(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oa(t){ra=t,sn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function te(t){return xd(ra,t)}function tl(t,e){return ra===null&&oa(t),xd(t,e)}function xd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},sn===null){if(t===null)throw Error(o(308));sn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sn=sn.next=e;return n}var Gv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Xv=a.unstable_scheduleCallback,Zv=a.unstable_NormalPriority,Gt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oo(){return{controller:new Gv,data:new Map,refCount:0}}function Vi(t){t.refCount--,t.refCount===0&&Xv(Zv,function(){t.controller.abort()})}var Ui=null,uo=0,Ya=0,Ga=null;function Qv(t,e){if(Ui===null){var n=Ui=[];uo=0,Ya=hu(),Ga={status:"pending",value:void 0,then:function(s){n.push(s)}}}return uo++,e.then(bd,bd),e}function bd(){if(--uo===0&&Ui!==null){Ga!==null&&(Ga.status="fulfilled");var t=Ui;Ui=null,Ya=0,Ga=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Kv(t,e){var n=[],s={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(s.status="rejected",s.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),s}var Sd=_.S;_.S=function(t,e){im=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Qv(t,e),Sd!==null&&Sd(t,e)};var ua=j(null);function co(){var t=ua.current;return t!==null?t:Dt.pooledCache}function el(t,e){e===null?Q(ua,ua.current):Q(ua,e.pool)}function Td(){var t=co();return t===null?null:{parent:Gt._currentValue,pool:t}}var Xa=Error(o(460)),fo=Error(o(474)),nl=Error(o(542)),al={then:function(){}};function Ad(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Nd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(tn,tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ed(t),t;default:if(typeof e.status=="string")e.then(tn,tn);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=s}},function(s){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ed(t),t}throw fa=e,Xa}}function ca(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(fa=n,Xa):n}}var fa=null;function jd(){if(fa===null)throw Error(o(459));var t=fa;return fa=null,t}function Ed(t){if(t===Xa||t===nl)throw Error(o(483))}var Za=null,Bi=0;function il(t){var e=Bi;return Bi+=1,Za===null&&(Za=[]),Nd(Za,t,e)}function Li(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function sl(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Md(t){function e(E,N){if(t){var w=E.deletions;w===null?(E.deletions=[N],E.flags|=16):w.push(N)}}function n(E,N){if(!t)return null;for(;N!==null;)e(E,N),N=N.sibling;return null}function s(E){for(var N=new Map;E!==null;)E.key!==null?N.set(E.key,E):N.set(E.index,E),E=E.sibling;return N}function l(E,N){return E=nn(E,N),E.index=0,E.sibling=null,E}function u(E,N,w){return E.index=w,t?(w=E.alternate,w!==null?(w=w.index,w<N?(E.flags|=67108866,N):w):(E.flags|=67108866,N)):(E.flags|=1048576,N)}function h(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function x(E,N,w,L){return N===null||N.tag!==6?(N=Ir(w,E.mode,L),N.return=E,N):(N=l(N,w),N.return=E,N)}function T(E,N,w,L){var et=w.type;return et===O?U(E,N,w.props.children,L,w.key):N!==null&&(N.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===K&&ca(et)===N.type)?(N=l(N,w.props),Li(N,w),N.return=E,N):(N=Ps(w.type,w.key,w.props,null,E.mode,L),Li(N,w),N.return=E,N)}function D(E,N,w,L){return N===null||N.tag!==4||N.stateNode.containerInfo!==w.containerInfo||N.stateNode.implementation!==w.implementation?(N=to(w,E.mode,L),N.return=E,N):(N=l(N,w.children||[]),N.return=E,N)}function U(E,N,w,L,et){return N===null||N.tag!==7?(N=sa(w,E.mode,L,et),N.return=E,N):(N=l(N,w),N.return=E,N)}function H(E,N,w){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ir(""+N,E.mode,w),N.return=E,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case A:return w=Ps(N.type,N.key,N.props,null,E.mode,w),Li(w,N),w.return=E,w;case M:return N=to(N,E.mode,w),N.return=E,N;case K:return N=ca(N),H(E,N,w)}if(ut(N)||Ut(N))return N=sa(N,E.mode,w,null),N.return=E,N;if(typeof N.then=="function")return H(E,il(N),w);if(N.$$typeof===B)return H(E,tl(E,N),w);sl(E,N)}return null}function R(E,N,w,L){var et=N!==null?N.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return et!==null?null:x(E,N,""+w,L);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case A:return w.key===et?T(E,N,w,L):null;case M:return w.key===et?D(E,N,w,L):null;case K:return w=ca(w),R(E,N,w,L)}if(ut(w)||Ut(w))return et!==null?null:U(E,N,w,L,null);if(typeof w.then=="function")return R(E,N,il(w),L);if(w.$$typeof===B)return R(E,N,tl(E,w),L);sl(E,w)}return null}function z(E,N,w,L,et){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return E=E.get(w)||null,x(N,E,""+L,et);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case A:return E=E.get(L.key===null?w:L.key)||null,T(N,E,L,et);case M:return E=E.get(L.key===null?w:L.key)||null,D(N,E,L,et);case K:return L=ca(L),z(E,N,w,L,et)}if(ut(L)||Ut(L))return E=E.get(w)||null,U(N,E,L,et,null);if(typeof L.then=="function")return z(E,N,w,il(L),et);if(L.$$typeof===B)return z(E,N,w,tl(N,L),et);sl(N,L)}return null}function J(E,N,w,L){for(var et=null,xt=null,W=N,ot=N=0,pt=null;W!==null&&ot<w.length;ot++){W.index>ot?(pt=W,W=null):pt=W.sibling;var bt=R(E,W,w[ot],L);if(bt===null){W===null&&(W=pt);break}t&&W&&bt.alternate===null&&e(E,W),N=u(bt,N,ot),xt===null?et=bt:xt.sibling=bt,xt=bt,W=pt}if(ot===w.length)return n(E,W),yt&&an(E,ot),et;if(W===null){for(;ot<w.length;ot++)W=H(E,w[ot],L),W!==null&&(N=u(W,N,ot),xt===null?et=W:xt.sibling=W,xt=W);return yt&&an(E,ot),et}for(W=s(W);ot<w.length;ot++)pt=z(W,E,ot,w[ot],L),pt!==null&&(t&&pt.alternate!==null&&W.delete(pt.key===null?ot:pt.key),N=u(pt,N,ot),xt===null?et=pt:xt.sibling=pt,xt=pt);return t&&W.forEach(function(Zn){return e(E,Zn)}),yt&&an(E,ot),et}function nt(E,N,w,L){if(w==null)throw Error(o(151));for(var et=null,xt=null,W=N,ot=N=0,pt=null,bt=w.next();W!==null&&!bt.done;ot++,bt=w.next()){W.index>ot?(pt=W,W=null):pt=W.sibling;var Zn=R(E,W,bt.value,L);if(Zn===null){W===null&&(W=pt);break}t&&W&&Zn.alternate===null&&e(E,W),N=u(Zn,N,ot),xt===null?et=Zn:xt.sibling=Zn,xt=Zn,W=pt}if(bt.done)return n(E,W),yt&&an(E,ot),et;if(W===null){for(;!bt.done;ot++,bt=w.next())bt=H(E,bt.value,L),bt!==null&&(N=u(bt,N,ot),xt===null?et=bt:xt.sibling=bt,xt=bt);return yt&&an(E,ot),et}for(W=s(W);!bt.done;ot++,bt=w.next())bt=z(W,E,ot,bt.value,L),bt!==null&&(t&&bt.alternate!==null&&W.delete(bt.key===null?ot:bt.key),N=u(bt,N,ot),xt===null?et=bt:xt.sibling=bt,xt=bt);return t&&W.forEach(function(i1){return e(E,i1)}),yt&&an(E,ot),et}function wt(E,N,w,L){if(typeof w=="object"&&w!==null&&w.type===O&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case A:t:{for(var et=w.key;N!==null;){if(N.key===et){if(et=w.type,et===O){if(N.tag===7){n(E,N.sibling),L=l(N,w.props.children),L.return=E,E=L;break t}}else if(N.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===K&&ca(et)===N.type){n(E,N.sibling),L=l(N,w.props),Li(L,w),L.return=E,E=L;break t}n(E,N);break}else e(E,N);N=N.sibling}w.type===O?(L=sa(w.props.children,E.mode,L,w.key),L.return=E,E=L):(L=Ps(w.type,w.key,w.props,null,E.mode,L),Li(L,w),L.return=E,E=L)}return h(E);case M:t:{for(et=w.key;N!==null;){if(N.key===et)if(N.tag===4&&N.stateNode.containerInfo===w.containerInfo&&N.stateNode.implementation===w.implementation){n(E,N.sibling),L=l(N,w.children||[]),L.return=E,E=L;break t}else{n(E,N);break}else e(E,N);N=N.sibling}L=to(w,E.mode,L),L.return=E,E=L}return h(E);case K:return w=ca(w),wt(E,N,w,L)}if(ut(w))return J(E,N,w,L);if(Ut(w)){if(et=Ut(w),typeof et!="function")throw Error(o(150));return w=et.call(w),nt(E,N,w,L)}if(typeof w.then=="function")return wt(E,N,il(w),L);if(w.$$typeof===B)return wt(E,N,tl(E,w),L);sl(E,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,N!==null&&N.tag===6?(n(E,N.sibling),L=l(N,w),L.return=E,E=L):(n(E,N),L=Ir(w,E.mode,L),L.return=E,E=L),h(E)):n(E,N)}return function(E,N,w,L){try{Bi=0;var et=wt(E,N,w,L);return Za=null,et}catch(W){if(W===Xa||W===nl)throw W;var xt=Te(29,W,null,E.mode);return xt.lanes=L,xt.return=E,xt}}}var da=Md(!0),wd=Md(!1),wn=!1;function ho(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(St&2)!==0){var l=s.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),s.pending=e,e=$s(t),fd(t,null,n),e}return Fs(t,s,e,n),$s(t)}function Hi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,xf(t,n)}}function po(t,e){var n=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?l=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?l=u=e:u=u.next=e}else l=u=e;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var yo=!1;function ki(){if(yo){var t=Ga;if(t!==null)throw t}}function qi(t,e,n,s){yo=!1;var l=t.updateQueue;wn=!1;var u=l.firstBaseUpdate,h=l.lastBaseUpdate,x=l.shared.pending;if(x!==null){l.shared.pending=null;var T=x,D=T.next;T.next=null,h===null?u=D:h.next=D,h=T;var U=t.alternate;U!==null&&(U=U.updateQueue,x=U.lastBaseUpdate,x!==h&&(x===null?U.firstBaseUpdate=D:x.next=D,U.lastBaseUpdate=T))}if(u!==null){var H=l.baseState;h=0,U=D=T=null,x=u;do{var R=x.lane&-536870913,z=R!==x.lane;if(z?(mt&R)===R:(s&R)===R){R!==0&&R===Ya&&(yo=!0),U!==null&&(U=U.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var J=t,nt=x;R=e;var wt=n;switch(nt.tag){case 1:if(J=nt.payload,typeof J=="function"){H=J.call(wt,H,R);break t}H=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=nt.payload,R=typeof J=="function"?J.call(wt,H,R):J,R==null)break t;H=b({},H,R);break t;case 2:wn=!0}}R=x.callback,R!==null&&(t.flags|=64,z&&(t.flags|=8192),z=l.callbacks,z===null?l.callbacks=[R]:z.push(R))}else z={lane:R,tag:x.tag,payload:x.payload,callback:x.callback,next:null},U===null?(D=U=z,T=H):U=U.next=z,h|=R;if(x=x.next,x===null){if(x=l.shared.pending,x===null)break;z=x,x=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);U===null&&(T=H),l.baseState=T,l.firstBaseUpdate=D,l.lastBaseUpdate=U,u===null&&(l.shared.lanes=0),Vn|=h,t.lanes=h,t.memoizedState=H}}function Dd(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Cd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Dd(n[t],e)}var Qa=j(null),ll=j(0);function Rd(t,e){t=pn,Q(ll,t),Q(Qa,e),pn=t|e.baseLanes}function go(){Q(ll,pn),Q(Qa,Qa.current)}function vo(){pn=ll.current,q(Qa),q(ll)}var Ae=j(null),Ve=null;function Rn(t){var e=t.alternate;Q(qt,qt.current&1),Q(Ae,t),Ve===null&&(e===null||Qa.current!==null||e.memoizedState!==null)&&(Ve=t)}function xo(t){Q(qt,qt.current),Q(Ae,t),Ve===null&&(Ve=t)}function zd(t){t.tag===22?(Q(qt,qt.current),Q(Ae,t),Ve===null&&(Ve=t)):zn()}function zn(){Q(qt,qt.current),Q(Ae,Ae.current)}function Ne(t){q(Ae),Ve===t&&(Ve=null),q(qt)}var qt=j(0);function rl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ju(n)||Eu(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var rn=0,rt=null,Et=null,Xt=null,ol=!1,Ka=!1,ha=!1,ul=0,Yi=0,Ja=null,Jv=0;function Bt(){throw Error(o(321))}function bo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Se(t[n],e[n]))return!1;return!0}function So(t,e,n,s,l,u){return rn=u,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?ph:Uo,ha=!1,u=n(s,l),ha=!1,Ka&&(u=_d(e,n,s,l)),Od(t),u}function Od(t){_.H=Zi;var e=Et!==null&&Et.next!==null;if(rn=0,Xt=Et=rt=null,ol=!1,Yi=0,Ja=null,e)throw Error(o(300));t===null||Zt||(t=t.dependencies,t!==null&&Is(t)&&(Zt=!0))}function _d(t,e,n,s){rt=t;var l=0;do{if(Ka&&(Ja=null),Yi=0,Ka=!1,25<=l)throw Error(o(301));if(l+=1,Xt=Et=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=yh,u=e(n,s)}while(Ka);return u}function Fv(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?Gi(e):e,t=t.useState()[0],(Et!==null?Et.memoizedState:null)!==t&&(rt.flags|=1024),e}function To(){var t=ul!==0;return ul=0,t}function Ao(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function No(t){if(ol){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ol=!1}rn=0,Xt=Et=rt=null,Ka=!1,Yi=ul=0,Ja=null}function re(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?rt.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Et===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Et.next;var e=Xt===null?rt.memoizedState:Xt.next;if(e!==null)Xt=e,Et=t;else{if(t===null)throw rt.alternate===null?Error(o(467)):Error(o(310));Et=t,t={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Xt===null?rt.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function cl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gi(t){var e=Yi;return Yi+=1,Ja===null&&(Ja=[]),t=Nd(Ja,t,e),e=rt,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?ph:Uo),t}function fl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Gi(t);if(t.$$typeof===B)return te(t)}throw Error(o(438,String(t)))}function jo(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var s=rt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=cl(),rt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),s=0;s<t;s++)n[s]=jt;return e.index++,n}function on(t,e){return typeof e=="function"?e(t):e}function dl(t){var e=Yt();return Eo(e,Et,t)}function Eo(t,e,n){var s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var l=t.baseQueue,u=s.pending;if(u!==null){if(l!==null){var h=l.next;l.next=u.next,u.next=h}e.baseQueue=l=u,s.pending=null}if(u=t.baseState,l===null)t.memoizedState=u;else{e=l.next;var x=h=null,T=null,D=e,U=!1;do{var H=D.lane&-536870913;if(H!==D.lane?(mt&H)===H:(rn&H)===H){var R=D.revertLane;if(R===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),H===Ya&&(U=!0);else if((rn&R)===R){D=D.next,R===Ya&&(U=!0);continue}else H={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(x=T=H,h=u):T=T.next=H,rt.lanes|=R,Vn|=R;H=D.action,ha&&n(u,H),u=D.hasEagerState?D.eagerState:n(u,H)}else R={lane:H,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(x=T=R,h=u):T=T.next=R,rt.lanes|=H,Vn|=H;D=D.next}while(D!==null&&D!==e);if(T===null?h=u:T.next=x,!Se(u,t.memoizedState)&&(Zt=!0,U&&(n=Ga,n!==null)))throw n;t.memoizedState=u,t.baseState=h,t.baseQueue=T,s.lastRenderedState=u}return l===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Mo(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var s=n.dispatch,l=n.pending,u=e.memoizedState;if(l!==null){n.pending=null;var h=l=l.next;do u=t(u,h.action),h=h.next;while(h!==l);Se(u,e.memoizedState)||(Zt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,s]}function Vd(t,e,n){var s=rt,l=Yt(),u=yt;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=e();var h=!Se((Et||l).memoizedState,n);if(h&&(l.memoizedState=n,Zt=!0),l=l.queue,Co(Ld.bind(null,s,l,t),[t]),l.getSnapshot!==e||h||Xt!==null&&Xt.memoizedState.tag&1){if(s.flags|=2048,Fa(9,{destroy:void 0},Bd.bind(null,s,l,n,e),null),Dt===null)throw Error(o(349));u||(rn&127)!==0||Ud(s,e,n)}return n}function Ud(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=cl(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Bd(t,e,n,s){e.value=n,e.getSnapshot=s,Hd(e)&&kd(t)}function Ld(t,e,n){return n(function(){Hd(e)&&kd(t)})}function Hd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Se(t,n)}catch{return!0}}function kd(t){var e=ia(t,2);e!==null&&ye(e,t,2)}function wo(t){var e=re();if(typeof t=="function"){var n=t;if(t=n(),ha){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:t},e}function qd(t,e,n,s){return t.baseState=n,Eo(t,Et,typeof s=="function"?s:on)}function $v(t,e,n,s,l){if(pl(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};_.T!==null?n(!0):u.isTransition=!1,s(u),n=e.pending,n===null?(u.next=e.pending=u,Yd(e,u)):(u.next=n.next,e.pending=n.next=u)}}function Yd(t,e){var n=e.action,s=e.payload,l=t.state;if(e.isTransition){var u=_.T,h={};_.T=h;try{var x=n(l,s),T=_.S;T!==null&&T(h,x),Gd(t,e,x)}catch(D){Do(t,e,D)}finally{u!==null&&h.types!==null&&(u.types=h.types),_.T=u}}else try{u=n(l,s),Gd(t,e,u)}catch(D){Do(t,e,D)}}function Gd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Xd(t,e,s)},function(s){return Do(t,e,s)}):Xd(t,e,n)}function Xd(t,e,n){e.status="fulfilled",e.value=n,Zd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Yd(t,n)))}function Do(t,e,n){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=n,Zd(e),e=e.next;while(e!==s)}t.action=null}function Zd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Qd(t,e){return e}function Kd(t,e){if(yt){var n=Dt.formState;if(n!==null){t:{var s=rt;if(yt){if(Rt){e:{for(var l=Rt,u=_e;l.nodeType!==8;){if(!u){l=null;break e}if(l=Ue(l.nextSibling),l===null){l=null;break e}}u=l.data,l=u==="F!"||u==="F"?l:null}if(l){Rt=Ue(l.nextSibling),s=l.data==="F!";break t}}En(s)}s=!1}s&&(e=n[0])}}return n=re(),n.memoizedState=n.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qd,lastRenderedState:e},n.queue=s,n=dh.bind(null,rt,s),s.dispatch=n,s=wo(!1),u=Vo.bind(null,rt,!1,s.queue),s=re(),l={state:e,dispatch:null,action:t,pending:null},s.queue=l,n=$v.bind(null,rt,l,u,n),l.dispatch=n,s.memoizedState=t,[e,n,!1]}function Jd(t){var e=Yt();return Fd(e,Et,t)}function Fd(t,e,n){if(e=Eo(t,e,Qd)[0],t=dl(on)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=Gi(e)}catch(h){throw h===Xa?nl:h}else s=e;e=Yt();var l=e.queue,u=l.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,Fa(9,{destroy:void 0},Pv.bind(null,l,n),null)),[s,u,t]}function Pv(t,e){t.action=e}function $d(t){var e=Yt(),n=Et;if(n!==null)return Fd(e,n,t);Yt(),e=e.memoizedState,n=Yt();var s=n.queue.dispatch;return n.memoizedState=t,[e,s,!1]}function Fa(t,e,n,s){return t={tag:t,create:n,deps:s,inst:e,next:null},e=rt.updateQueue,e===null&&(e=cl(),rt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(s=n.next,n.next=t,t.next=s,e.lastEffect=t),t}function Pd(){return Yt().memoizedState}function hl(t,e,n,s){var l=re();rt.flags|=t,l.memoizedState=Fa(1|e,{destroy:void 0},n,s===void 0?null:s)}function ml(t,e,n,s){var l=Yt();s=s===void 0?null:s;var u=l.memoizedState.inst;Et!==null&&s!==null&&bo(s,Et.memoizedState.deps)?l.memoizedState=Fa(e,u,n,s):(rt.flags|=t,l.memoizedState=Fa(1|e,u,n,s))}function Wd(t,e){hl(8390656,8,t,e)}function Co(t,e){ml(2048,8,t,e)}function Wv(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=cl(),rt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Id(t){var e=Yt().memoizedState;return Wv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function th(t,e){return ml(4,2,t,e)}function eh(t,e){return ml(4,4,t,e)}function nh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function ah(t,e,n){n=n!=null?n.concat([t]):null,ml(4,4,nh.bind(null,e,t),n)}function Ro(){}function ih(t,e){var n=Yt();e=e===void 0?null:e;var s=n.memoizedState;return e!==null&&bo(e,s[1])?s[0]:(n.memoizedState=[t,e],t)}function sh(t,e){var n=Yt();e=e===void 0?null:e;var s=n.memoizedState;if(e!==null&&bo(e,s[1]))return s[0];if(s=t(),ha){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[s,e],s}function zo(t,e,n){return n===void 0||(rn&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=lm(),rt.lanes|=t,Vn|=t,n)}function lh(t,e,n,s){return Se(n,e)?n:Qa.current!==null?(t=zo(t,n,s),Se(t,e)||(Zt=!0),t):(rn&42)===0||(rn&1073741824)!==0&&(mt&261930)===0?(Zt=!0,t.memoizedState=n):(t=lm(),rt.lanes|=t,Vn|=t,e)}function rh(t,e,n,s,l){var u=G.p;G.p=u!==0&&8>u?u:8;var h=_.T,x={};_.T=x,Vo(t,!1,e,n);try{var T=l(),D=_.S;if(D!==null&&D(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var U=Kv(T,s);Xi(t,e,U,Me(t))}else Xi(t,e,s,Me(t))}catch(H){Xi(t,e,{then:function(){},status:"rejected",reason:H},Me())}finally{G.p=u,h!==null&&x.types!==null&&(h.types=x.types),_.T=h}}function Iv(){}function Oo(t,e,n,s){if(t.tag!==5)throw Error(o(476));var l=oh(t).queue;rh(t,l,e,P,n===null?Iv:function(){return uh(t),n(s)})}function oh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:P},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function uh(t){var e=oh(t);e.next===null&&(e=t.alternate.memoizedState),Xi(t,e.next.queue,{},Me())}function _o(){return te(rs)}function ch(){return Yt().memoizedState}function fh(){return Yt().memoizedState}function tx(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Me();t=Dn(n);var s=Cn(e,t,n);s!==null&&(ye(s,e,n),Hi(s,e,n)),e={cache:oo()},t.payload=e;return}e=e.return}}function ex(t,e,n){var s=Me();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pl(t)?hh(e,n):(n=Pr(t,e,n,s),n!==null&&(ye(n,t,s),mh(n,e,s)))}function dh(t,e,n){var s=Me();Xi(t,e,n,s)}function Xi(t,e,n,s){var l={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pl(t))hh(e,l);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var h=e.lastRenderedState,x=u(h,n);if(l.hasEagerState=!0,l.eagerState=x,Se(x,h))return Fs(t,e,l,0),Dt===null&&Js(),!1}catch{}if(n=Pr(t,e,l,s),n!==null)return ye(n,t,s),mh(n,e,s),!0}return!1}function Vo(t,e,n,s){if(s={lane:2,revertLane:hu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},pl(t)){if(e)throw Error(o(479))}else e=Pr(t,n,s,2),e!==null&&ye(e,t,2)}function pl(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function hh(t,e){Ka=ol=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function mh(t,e,n){if((n&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,xf(t,n)}}var Zi={readContext:te,use:fl,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Zi.useEffectEvent=Bt;var ph={readContext:te,use:fl,useCallback:function(t,e){return re().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:Wd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,hl(4194308,4,nh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return hl(4194308,4,t,e)},useInsertionEffect:function(t,e){hl(4,2,t,e)},useMemo:function(t,e){var n=re();e=e===void 0?null:e;var s=t();if(ha){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=re();if(n!==void 0){var l=n(e);if(ha){Sn(!0);try{n(e)}finally{Sn(!1)}}}else l=e;return s.memoizedState=s.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},s.queue=t,t=t.dispatch=ex.bind(null,rt,t),[s.memoizedState,t]},useRef:function(t){var e=re();return t={current:t},e.memoizedState=t},useState:function(t){t=wo(t);var e=t.queue,n=dh.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Ro,useDeferredValue:function(t,e){var n=re();return zo(n,t,e)},useTransition:function(){var t=wo(!1);return t=rh.bind(null,rt,t.queue,!0,!1),re().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var s=rt,l=re();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Dt===null)throw Error(o(349));(mt&127)!==0||Ud(s,e,n)}l.memoizedState=n;var u={value:n,getSnapshot:e};return l.queue=u,Wd(Ld.bind(null,s,u,t),[t]),s.flags|=2048,Fa(9,{destroy:void 0},Bd.bind(null,s,u,n,e),null),n},useId:function(){var t=re(),e=Dt.identifierPrefix;if(yt){var n=Je,s=Ke;n=(s&~(1<<32-be(s)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ul++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Jv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:_o,useFormState:Kd,useActionState:Kd,useOptimistic:function(t){var e=re();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Vo.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:jo,useCacheRefresh:function(){return re().memoizedState=tx.bind(null,rt)},useEffectEvent:function(t){var e=re(),n={impl:t};return e.memoizedState=n,function(){if((St&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Uo={readContext:te,use:fl,useCallback:ih,useContext:te,useEffect:Co,useImperativeHandle:ah,useInsertionEffect:th,useLayoutEffect:eh,useMemo:sh,useReducer:dl,useRef:Pd,useState:function(){return dl(on)},useDebugValue:Ro,useDeferredValue:function(t,e){var n=Yt();return lh(n,Et.memoizedState,t,e)},useTransition:function(){var t=dl(on)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Gi(t),e]},useSyncExternalStore:Vd,useId:ch,useHostTransitionStatus:_o,useFormState:Jd,useActionState:Jd,useOptimistic:function(t,e){var n=Yt();return qd(n,Et,t,e)},useMemoCache:jo,useCacheRefresh:fh};Uo.useEffectEvent=Id;var yh={readContext:te,use:fl,useCallback:ih,useContext:te,useEffect:Co,useImperativeHandle:ah,useInsertionEffect:th,useLayoutEffect:eh,useMemo:sh,useReducer:Mo,useRef:Pd,useState:function(){return Mo(on)},useDebugValue:Ro,useDeferredValue:function(t,e){var n=Yt();return Et===null?zo(n,t,e):lh(n,Et.memoizedState,t,e)},useTransition:function(){var t=Mo(on)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Gi(t),e]},useSyncExternalStore:Vd,useId:ch,useHostTransitionStatus:_o,useFormState:$d,useActionState:$d,useOptimistic:function(t,e){var n=Yt();return Et!==null?qd(n,Et,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:jo,useCacheRefresh:fh};yh.useEffectEvent=Id;function Bo(t,e,n,s){e=t.memoizedState,n=n(s,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Lo={enqueueSetState:function(t,e,n){t=t._reactInternals;var s=Me(),l=Dn(s);l.payload=e,n!=null&&(l.callback=n),e=Cn(t,l,s),e!==null&&(ye(e,t,s),Hi(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var s=Me(),l=Dn(s);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=Cn(t,l,s),e!==null&&(ye(e,t,s),Hi(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Me(),s=Dn(n);s.tag=2,e!=null&&(s.callback=e),e=Cn(t,s,n),e!==null&&(ye(e,t,n),Hi(e,t,n))}};function gh(t,e,n,s,l,u,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,u,h):e.prototype&&e.prototype.isPureReactComponent?!Ri(n,s)||!Ri(l,u):!0}function vh(t,e,n,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,s),e.state!==t&&Lo.enqueueReplaceState(e,e.state,null)}function ma(t,e){var n=e;if("ref"in e){n={};for(var s in e)s!=="ref"&&(n[s]=e[s])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}function xh(t){Ks(t)}function bh(t){console.error(t)}function Sh(t){Ks(t)}function yl(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function Th(t,e,n){try{var s=t.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Ho(t,e,n){return n=Dn(n),n.tag=3,n.payload={element:null},n.callback=function(){yl(t,e)},n}function Ah(t){return t=Dn(t),t.tag=3,t}function Nh(t,e,n,s){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var u=s.value;t.payload=function(){return l(u)},t.callback=function(){Th(e,n,s)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Th(e,n,s),typeof l!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function nx(t,e,n,s,l){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=n.alternate,e!==null&&qa(e,n,l,!0),n=Ae.current,n!==null){switch(n.tag){case 31:case 13:return Ve===null?wl():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,s===al?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([s]):e.add(s),cu(t,s,l)),!1;case 22:return n.flags|=65536,s===al?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([s]):n.add(s)),cu(t,s,l)),!1}throw Error(o(435,n.tag))}return cu(t,s,l),wl(),!1}if(yt)return e=Ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,s!==ao&&(t=Error(o(422),{cause:s}),_i(Re(t,n)))):(s!==ao&&(e=Error(o(423),{cause:s}),_i(Re(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,s=Re(s,n),l=Ho(t.stateNode,s,l),po(t,l),Lt!==4&&(Lt=2)),!1;var u=Error(o(520),{cause:s});if(u=Re(u,n),Ii===null?Ii=[u]:Ii.push(u),Lt!==4&&(Lt=2),e===null)return!0;s=Re(s,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=Ho(n.stateNode,s,t),po(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Un===null||!Un.has(u))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Ah(l),Nh(l,t,n,s),po(n,l),!1}n=n.return}while(n!==null);return!1}var ko=Error(o(461)),Zt=!1;function ee(t,e,n,s){e.child=t===null?wd(e,null,n,s):da(e,t.child,n,s)}function jh(t,e,n,s,l){n=n.render;var u=e.ref;if("ref"in s){var h={};for(var x in s)x!=="ref"&&(h[x]=s[x])}else h=s;return oa(e),s=So(t,e,n,h,u,l),x=To(),t!==null&&!Zt?(Ao(t,e,l),un(t,e,l)):(yt&&x&&eo(e),e.flags|=1,ee(t,e,s,l),e.child)}function Eh(t,e,n,s,l){if(t===null){var u=n.type;return typeof u=="function"&&!Wr(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Mh(t,e,u,s,l)):(t=Ps(n.type,null,s,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Jo(t,l)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ri,n(h,s)&&t.ref===e.ref)return un(t,e,l)}return e.flags|=1,t=nn(u,s),t.ref=e.ref,t.return=e,e.child=t}function Mh(t,e,n,s,l){if(t!==null){var u=t.memoizedProps;if(Ri(u,s)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=s=u,Jo(t,l))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,un(t,e,l)}return qo(t,e,n,s,l)}function wh(t,e,n,s){var l=s.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(s=e.child=t.child,l=0;s!==null;)l=l|s.lanes|s.childLanes,s=s.sibling;s=l&~u}else s=0,e.child=null;return Dh(t,e,u,n,s)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&el(e,u!==null?u.cachePool:null),u!==null?Rd(e,u):go(),zd(e);else return s=e.lanes=536870912,Dh(t,e,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(el(e,u.cachePool),Rd(e,u),zn(),e.memoizedState=null):(t!==null&&el(e,null),go(),zn());return ee(t,e,l,n),e.child}function Qi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Dh(t,e,n,s,l){var u=co();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&el(e,null),go(),zd(e),t!==null&&qa(t,e,s,!0),e.childLanes=l,null}function gl(t,e){return e=xl({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ch(t,e,n){return da(e,t.child,null,n),t=gl(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function ax(t,e,n){var s=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(s.mode==="hidden")return t=gl(e,s),e.lanes=536870912,Qi(null,t);if(xo(e),(t=Rt)?(t=Ym(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=hd(t),n.return=e,e.child=n,It=e,Rt=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return gl(e,s)}var u=t.memoizedState;if(u!==null){var h=u.dehydrated;if(xo(e),l)if(e.flags&256)e.flags&=-257,e=Ch(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Zt||qa(t,e,n,!1),l=(n&t.childLanes)!==0,Zt||l){if(s=Dt,s!==null&&(h=bf(s,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,ia(t,h),ye(s,t,h),ko;wl(),e=Ch(t,e,n)}else t=u.treeContext,Rt=Ue(h.nextSibling),It=e,yt=!0,jn=null,_e=!1,t!==null&&yd(e,t),e=gl(e,s),e.flags|=4096;return e}return t=nn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function vl(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function qo(t,e,n,s,l){return oa(e),n=So(t,e,n,s,void 0,l),s=To(),t!==null&&!Zt?(Ao(t,e,l),un(t,e,l)):(yt&&s&&eo(e),e.flags|=1,ee(t,e,n,l),e.child)}function Rh(t,e,n,s,l,u){return oa(e),e.updateQueue=null,n=_d(e,s,n,l),Od(t),s=To(),t!==null&&!Zt?(Ao(t,e,u),un(t,e,u)):(yt&&s&&eo(e),e.flags|=1,ee(t,e,n,u),e.child)}function zh(t,e,n,s,l){if(oa(e),e.stateNode===null){var u=Ba,h=n.contextType;typeof h=="object"&&h!==null&&(u=te(h)),u=new n(s,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Lo,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},ho(e),h=n.contextType,u.context=typeof h=="object"&&h!==null?te(h):Ba,u.state=e.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Bo(e,n,h,s),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Lo.enqueueReplaceState(u,u.state,null),qi(e,s,u,l),ki(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){u=e.stateNode;var x=e.memoizedProps,T=ma(n,x);u.props=T;var D=u.context,U=n.contextType;h=Ba,typeof U=="object"&&U!==null&&(h=te(U));var H=n.getDerivedStateFromProps;U=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||D!==h)&&vh(e,u,s,h),wn=!1;var R=e.memoizedState;u.state=R,qi(e,s,u,l),ki(),D=e.memoizedState,x||R!==D||wn?(typeof H=="function"&&(Bo(e,n,H,s),D=e.memoizedState),(T=wn||gh(e,n,T,s,R,D,h))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=D),u.props=s,u.state=D,u.context=h,s=T):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,mo(t,e),h=e.memoizedProps,U=ma(n,h),u.props=U,H=e.pendingProps,R=u.context,D=n.contextType,T=Ba,typeof D=="object"&&D!==null&&(T=te(D)),x=n.getDerivedStateFromProps,(D=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==H||R!==T)&&vh(e,u,s,T),wn=!1,R=e.memoizedState,u.state=R,qi(e,s,u,l),ki();var z=e.memoizedState;h!==H||R!==z||wn||t!==null&&t.dependencies!==null&&Is(t.dependencies)?(typeof x=="function"&&(Bo(e,n,x,s),z=e.memoizedState),(U=wn||gh(e,n,U,s,R,z,T)||t!==null&&t.dependencies!==null&&Is(t.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,z,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,z,T)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=z),u.props=s,u.state=z,u.context=T,s=U):(typeof u.componentDidUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,vl(t,e),s=(e.flags&128)!==0,u||s?(u=e.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&s?(e.child=da(e,t.child,null,l),e.child=da(e,null,n,l)):ee(t,e,n,l),e.memoizedState=u.state,t=e.child):t=un(t,e,l),t}function Oh(t,e,n,s){return la(),e.flags|=256,ee(t,e,n,s),e.child}var Yo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Go(t){return{baseLanes:t,cachePool:Td()}}function Xo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ee),t}function _h(t,e,n){var s=e.pendingProps,l=!1,u=(e.flags&128)!==0,h;if((h=u)||(h=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),h&&(l=!0,e.flags&=-129),h=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(l?Rn(e):zn(),(t=Rt)?(t=Ym(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nn!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},n=hd(t),n.return=e,e.child=n,It=e,Rt=null)):t=null,t===null)throw En(e);return Eu(t)?e.lanes=32:e.lanes=536870912,null}var x=s.children;return s=s.fallback,l?(zn(),l=e.mode,x=xl({mode:"hidden",children:x},l),s=sa(s,l,n,null),x.return=e,s.return=e,x.sibling=s,e.child=x,s=e.child,s.memoizedState=Go(n),s.childLanes=Xo(t,h,n),e.memoizedState=Yo,Qi(null,s)):(Rn(e),Zo(e,x))}var T=t.memoizedState;if(T!==null&&(x=T.dehydrated,x!==null)){if(u)e.flags&256?(Rn(e),e.flags&=-257,e=Qo(t,e,n)):e.memoizedState!==null?(zn(),e.child=t.child,e.flags|=128,e=null):(zn(),x=s.fallback,l=e.mode,s=xl({mode:"visible",children:s.children},l),x=sa(x,l,n,null),x.flags|=2,s.return=e,x.return=e,s.sibling=x,e.child=s,da(e,t.child,null,n),s=e.child,s.memoizedState=Go(n),s.childLanes=Xo(t,h,n),e.memoizedState=Yo,e=Qi(null,s));else if(Rn(e),Eu(x)){if(h=x.nextSibling&&x.nextSibling.dataset,h)var D=h.dgst;h=D,s=Error(o(419)),s.stack="",s.digest=h,_i({value:s,source:null,stack:null}),e=Qo(t,e,n)}else if(Zt||qa(t,e,n,!1),h=(n&t.childLanes)!==0,Zt||h){if(h=Dt,h!==null&&(s=bf(h,n),s!==0&&s!==T.retryLane))throw T.retryLane=s,ia(t,s),ye(h,t,s),ko;ju(x)||wl(),e=Qo(t,e,n)}else ju(x)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Rt=Ue(x.nextSibling),It=e,yt=!0,jn=null,_e=!1,t!==null&&yd(e,t),e=Zo(e,s.children),e.flags|=4096);return e}return l?(zn(),x=s.fallback,l=e.mode,T=t.child,D=T.sibling,s=nn(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,D!==null?x=nn(D,x):(x=sa(x,l,n,null),x.flags|=2),x.return=e,s.return=e,s.sibling=x,e.child=s,Qi(null,s),s=e.child,x=t.child.memoizedState,x===null?x=Go(n):(l=x.cachePool,l!==null?(T=Gt._currentValue,l=l.parent!==T?{parent:T,pool:T}:l):l=Td(),x={baseLanes:x.baseLanes|n,cachePool:l}),s.memoizedState=x,s.childLanes=Xo(t,h,n),e.memoizedState=Yo,Qi(t.child,s)):(Rn(e),n=t.child,t=n.sibling,n=nn(n,{mode:"visible",children:s.children}),n.return=e,n.sibling=null,t!==null&&(h=e.deletions,h===null?(e.deletions=[t],e.flags|=16):h.push(t)),e.child=n,e.memoizedState=null,n)}function Zo(t,e){return e=xl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function xl(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function Qo(t,e,n){return da(e,t.child,null,n),t=Zo(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Vh(t,e,n){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),lo(t.return,e,n)}function Ko(t,e,n,s,l,u){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:l,treeForkCount:u}:(h.isBackwards=e,h.rendering=null,h.renderingStartTime=0,h.last=s,h.tail=n,h.tailMode=l,h.treeForkCount=u)}function Uh(t,e,n){var s=e.pendingProps,l=s.revealOrder,u=s.tail;s=s.children;var h=qt.current,x=(h&2)!==0;if(x?(h=h&1|2,e.flags|=128):h&=1,Q(qt,h),ee(t,e,s,n),s=yt?Oi:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vh(t,n,e);else if(t.tag===19)Vh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&rl(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),Ko(e,!1,l,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&rl(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}Ko(e,!0,n,null,u,s);break;case"together":Ko(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function un(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Vn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(qa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=nn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=nn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Jo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Is(t)))}function ix(t,e,n){switch(e.tag){case 3:le(e,e.stateNode.containerInfo),Mn(e,Gt,t.memoizedState.cache),la();break;case 27:case 5:vi(e);break;case 4:le(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,xo(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(Rn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?_h(t,e,n):(Rn(e),t=un(t,e,n),t!==null?t.sibling:null);Rn(e);break;case 19:var l=(t.flags&128)!==0;if(s=(n&e.childLanes)!==0,s||(qa(t,e,n,!1),s=(n&e.childLanes)!==0),l){if(s)return Uh(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(qt,qt.current),s)break;return null;case 22:return e.lanes=0,wh(t,e,n,e.pendingProps);case 24:Mn(e,Gt,t.memoizedState.cache)}return un(t,e,n)}function Bh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!Jo(t,n)&&(e.flags&128)===0)return Zt=!1,ix(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,yt&&(e.flags&1048576)!==0&&pd(e,Oi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=ca(e.elementType),e.type=t,typeof t=="function")Wr(t)?(s=ma(t,s),e.tag=1,e=zh(null,e,t,s,n)):(e.tag=0,e=qo(null,e,t,s,n));else{if(t!=null){var l=t.$$typeof;if(l===X){e.tag=11,e=jh(null,e,t,s,n);break t}else if(l===I){e.tag=14,e=Eh(null,e,t,s,n);break t}}throw e=tt(t)||t,Error(o(306,e,""))}}return e;case 0:return qo(t,e,e.type,e.pendingProps,n);case 1:return s=e.type,l=ma(s,e.pendingProps),zh(t,e,s,l,n);case 3:t:{if(le(e,e.stateNode.containerInfo),t===null)throw Error(o(387));s=e.pendingProps;var u=e.memoizedState;l=u.element,mo(t,e),qi(e,s,null,n);var h=e.memoizedState;if(s=h.cache,Mn(e,Gt,s),s!==u.cache&&ro(e,[Gt],n,!0),ki(),s=h.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:h.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Oh(t,e,s,n);break t}else if(s!==l){l=Re(Error(o(424)),e),_i(l),e=Oh(t,e,s,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Rt=Ue(t.firstChild),It=e,yt=!0,jn=null,_e=!0,n=wd(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(la(),s===l){e=un(t,e,n);break t}ee(t,e,s,n)}e=e.child}return e;case 26:return vl(t,e),t===null?(n=Jm(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,s=Vl(ct.current).createElement(n),s[Wt]=e,s[ce]=t,ne(s,n,t),$t(s),e.stateNode=s):e.memoizedState=Jm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return vi(e),t===null&&yt&&(s=e.stateNode=Zm(e.type,e.pendingProps,ct.current),It=e,_e=!0,l=Rt,kn(e.type)?(Mu=l,Rt=Ue(s.firstChild)):Rt=l),ee(t,e,e.pendingProps.children,n),vl(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((l=s=Rt)&&(s=_x(s,e.type,e.pendingProps,_e),s!==null?(e.stateNode=s,It=e,Rt=Ue(s.firstChild),_e=!1,l=!0):l=!1),l||En(e)),vi(e),l=e.type,u=e.pendingProps,h=t!==null?t.memoizedProps:null,s=u.children,Tu(l,u)?s=null:h!==null&&Tu(l,h)&&(e.flags|=32),e.memoizedState!==null&&(l=So(t,e,Fv,null,null,n),rs._currentValue=l),vl(t,e),ee(t,e,s,n),e.child;case 6:return t===null&&yt&&((t=n=Rt)&&(n=Vx(n,e.pendingProps,_e),n!==null?(e.stateNode=n,It=e,Rt=null,t=!0):t=!1),t||En(e)),null;case 13:return _h(t,e,n);case 4:return le(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=da(e,null,s,n):ee(t,e,s,n),e.child;case 11:return jh(t,e,e.type,e.pendingProps,n);case 7:return ee(t,e,e.pendingProps,n),e.child;case 8:return ee(t,e,e.pendingProps.children,n),e.child;case 12:return ee(t,e,e.pendingProps.children,n),e.child;case 10:return s=e.pendingProps,Mn(e,e.type,s.value),ee(t,e,s.children,n),e.child;case 9:return l=e.type._context,s=e.pendingProps.children,oa(e),l=te(l),s=s(l),e.flags|=1,ee(t,e,s,n),e.child;case 14:return Eh(t,e,e.type,e.pendingProps,n);case 15:return Mh(t,e,e.type,e.pendingProps,n);case 19:return Uh(t,e,n);case 31:return ax(t,e,n);case 22:return wh(t,e,n,e.pendingProps);case 24:return oa(e),s=te(Gt),t===null?(l=co(),l===null&&(l=Dt,u=oo(),l.pooledCache=u,u.refCount++,u!==null&&(l.pooledCacheLanes|=n),l=u),e.memoizedState={parent:s,cache:l},ho(e),Mn(e,Gt,l)):((t.lanes&n)!==0&&(mo(t,e),qi(e,null,null,n),ki()),l=t.memoizedState,u=e.memoizedState,l.parent!==s?(l={parent:s,cache:s},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),Mn(e,Gt,s)):(s=u.cache,Mn(e,Gt,s),s!==l.cache&&ro(e,[Gt],n,!0))),ee(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function Fo(t,e,n,s,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(cm())t.flags|=8192;else throw fa=al,fo}else t.flags&=-16777217}function Lh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Im(e))if(cm())t.flags|=8192;else throw fa=al,fo}function bl(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?gf():536870912,t.lanes|=e,Ia|=e)}function Ki(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,s=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags&65011712,s|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=s,t.childLanes=n,e}function sx(t,e,n){var s=e.pendingProps;switch(no(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),ln(Gt),kt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ka(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,io())),zt(e),null;case 26:var l=e.type,u=e.memoizedState;return t===null?(cn(e),u!==null?(zt(e),Lh(e,u)):(zt(e),Fo(e,l,null,s,n))):u?u!==t.memoizedState?(cn(e),zt(e),Lh(e,u)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&cn(e),zt(e),Fo(e,l,t,s,n)),null;case 27:if(Rs(e),n=ct.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&cn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return zt(e),null}t=$.current,ka(e)?gd(e):(t=Zm(l,s,n),e.stateNode=t,cn(e))}return zt(e),null;case 5:if(Rs(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&cn(e);else{if(!s){if(e.stateNode===null)throw Error(o(166));return zt(e),null}if(u=$.current,ka(e))gd(e);else{var h=Vl(ct.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?h.createElement(l,{is:s.is}):h.createElement(l)}}u[Wt]=e,u[ce]=s;t:for(h=e.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}e.stateNode=u;t:switch(ne(u,l,s),l){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&cn(e)}}return zt(e),Fo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&cn(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(o(166));if(t=ct.current,ka(e)){if(t=e.stateNode,n=e.memoizedProps,s=null,l=It,l!==null)switch(l.tag){case 27:case 5:s=l.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||_m(t.nodeValue,n)),t||En(e,!0)}else t=Vl(t).createTextNode(s),t[Wt]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(s=ka(e),n!==null){if(t===null){if(!s)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=io(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(o(558))}return zt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=ka(e),s!==null&&s.dehydrated!==null){if(t===null){if(!l)throw Error(o(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));l[Wt]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),l=!1}else l=io(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(e),(e.flags&128)!==0?(e.lanes=n,e):(n=s!==null,t=t!==null&&t.memoizedState!==null,n&&(s=e.child,l=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(l=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==l&&(s.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),bl(e,e.updateQueue),zt(e),null);case 4:return kt(),t===null&&gu(e.stateNode.containerInfo),zt(e),null;case 10:return ln(e.type),zt(e),null;case 19:if(q(qt),s=e.memoizedState,s===null)return zt(e),null;if(l=(e.flags&128)!==0,u=s.rendering,u===null)if(l)Ki(s,!1);else{if(Lt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=rl(t),u!==null){for(e.flags|=128,Ki(s,!1),t=u.updateQueue,e.updateQueue=t,bl(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)dd(n,t),n=n.sibling;return Q(qt,qt.current&1|2),yt&&an(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&ve()>jl&&(e.flags|=128,l=!0,Ki(s,!1),e.lanes=4194304)}else{if(!l)if(t=rl(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,bl(e,t),Ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!yt)return zt(e),null}else 2*ve()-s.renderingStartTime>jl&&n!==536870912&&(e.flags|=128,l=!0,Ki(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ve(),t.sibling=null,n=qt.current,Q(qt,l?n&1|2:n&1),yt&&an(e,s.treeForkCount),t):(zt(e),null);case 22:case 23:return Ne(e),vo(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&bl(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==n&&(e.flags|=2048),t!==null&&q(ua),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ln(Gt),zt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function lx(t,e){switch(no(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(Gt),kt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Rs(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(o(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(qt),null;case 4:return kt(),null;case 10:return ln(e.type),null;case 22:case 23:return Ne(e),vo(),t!==null&&q(ua),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(Gt),null;case 25:return null;default:return null}}function Hh(t,e){switch(no(e),e.tag){case 3:ln(Gt),kt();break;case 26:case 27:case 5:Rs(e);break;case 4:kt();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:q(qt);break;case 10:ln(e.type);break;case 22:case 23:Ne(e),vo(),t!==null&&q(ua);break;case 24:ln(Gt)}}function Ji(t,e){try{var n=e.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var l=s.next;n=l;do{if((n.tag&t)===t){s=void 0;var u=n.create,h=n.inst;s=u(),h.destroy=s}n=n.next}while(n!==l)}}catch(x){Nt(e,e.return,x)}}function On(t,e,n){try{var s=e.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var u=l.next;s=u;do{if((s.tag&t)===t){var h=s.inst,x=h.destroy;if(x!==void 0){h.destroy=void 0,l=e;var T=n,D=x;try{D()}catch(U){Nt(l,T,U)}}}s=s.next}while(s!==u)}}catch(U){Nt(e,e.return,U)}}function kh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Cd(e,n)}catch(s){Nt(t,t.return,s)}}}function qh(t,e,n){n.props=ma(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(s){Nt(t,e,s)}}function Fi(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof n=="function"?t.refCleanup=n(s):n.current=s}}catch(l){Nt(t,e,l)}}function Fe(t,e){var n=t.ref,s=t.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(l){Nt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Nt(t,e,l)}else n.current=null}function Yh(t){var e=t.type,n=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break t;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(l){Nt(t,t.return,l)}}function $o(t,e,n){try{var s=t.stateNode;wx(s,t.type,n,e),s[ce]=e}catch(l){Nt(t,t.return,l)}}function Gh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&kn(t.type)||t.tag===4}function Po(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Gh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&kn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Wo(t,e,n){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=tn));else if(s!==4&&(s===27&&kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Wo(t,e,n),t=t.sibling;t!==null;)Wo(t,e,n),t=t.sibling}function Sl(t,e,n){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(s!==4&&(s===27&&kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Sl(t,e,n),t=t.sibling;t!==null;)Sl(t,e,n),t=t.sibling}function Xh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var s=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);ne(e,s,n),e[Wt]=t,e[ce]=n}catch(u){Nt(t,t.return,u)}}var fn=!1,Qt=!1,Io=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function rx(t,e){if(t=t.containerInfo,bu=Yl,t=ad(t),Zr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var l=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var h=0,x=-1,T=-1,D=0,U=0,H=t,R=null;e:for(;;){for(var z;H!==n||l!==0&&H.nodeType!==3||(x=h+l),H!==u||s!==0&&H.nodeType!==3||(T=h+s),H.nodeType===3&&(h+=H.nodeValue.length),(z=H.firstChild)!==null;)R=H,H=z;for(;;){if(H===t)break e;if(R===n&&++D===l&&(x=h),R===u&&++U===s&&(T=h),(z=H.nextSibling)!==null)break;H=R,R=H.parentNode}H=z}n=x===-1||T===-1?null:{start:x,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:t,selectionRange:n},Yl=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)l=t[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,l=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var J=ma(n.type,l);t=s.getSnapshotBeforeUpdate(J,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Nt(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Nu(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Nu(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function Qh(t,e,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:hn(t,n),s&4&&Ji(5,n);break;case 1:if(hn(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Nt(n,n.return,h)}else{var l=ma(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Nt(n,n.return,h)}}s&64&&kh(n),s&512&&Fi(n,n.return);break;case 3:if(hn(t,n),s&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Cd(t,e)}catch(h){Nt(n,n.return,h)}}break;case 27:e===null&&s&4&&Xh(n);case 26:case 5:hn(t,n),e===null&&s&4&&Yh(n),s&512&&Fi(n,n.return);break;case 12:hn(t,n);break;case 31:hn(t,n),s&4&&Fh(t,n);break;case 13:hn(t,n),s&4&&$h(t,n),s&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=yx.bind(null,n),Ux(t,n))));break;case 22:if(s=n.memoizedState!==null||fn,!s){e=e!==null&&e.memoizedState!==null||Qt,l=fn;var u=Qt;fn=s,(Qt=e)&&!u?mn(t,n,(n.subtreeFlags&8772)!==0):hn(t,n),fn=l,Qt=u}break;case 30:break;default:hn(t,n)}}function Kh(t){var e=t.alternate;e!==null&&(t.alternate=null,Kh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&wr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ot=null,de=!1;function dn(t,e,n){for(n=n.child;n!==null;)Jh(t,e,n),n=n.sibling}function Jh(t,e,n){if(xe&&typeof xe.onCommitFiberUnmount=="function")try{xe.onCommitFiberUnmount(xi,n)}catch{}switch(n.tag){case 26:Qt||Fe(n,e),dn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qt||Fe(n,e);var s=Ot,l=de;kn(n.type)&&(Ot=n.stateNode,de=!1),dn(t,e,n),is(n.stateNode),Ot=s,de=l;break;case 5:Qt||Fe(n,e);case 6:if(s=Ot,l=de,Ot=null,dn(t,e,n),Ot=s,de=l,Ot!==null)if(de)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(n.stateNode)}catch(u){Nt(n,e,u)}else try{Ot.removeChild(n.stateNode)}catch(u){Nt(n,e,u)}break;case 18:Ot!==null&&(de?(t=Ot,km(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ri(t)):km(Ot,n.stateNode));break;case 4:s=Ot,l=de,Ot=n.stateNode.containerInfo,de=!0,dn(t,e,n),Ot=s,de=l;break;case 0:case 11:case 14:case 15:On(2,n,e),Qt||On(4,n,e),dn(t,e,n);break;case 1:Qt||(Fe(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&qh(n,e,s)),dn(t,e,n);break;case 21:dn(t,e,n);break;case 22:Qt=(s=Qt)||n.memoizedState!==null,dn(t,e,n),Qt=s;break;default:dn(t,e,n)}}function Fh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ri(t)}catch(n){Nt(e,e.return,n)}}}function $h(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ri(t)}catch(n){Nt(e,e.return,n)}}function ox(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Zh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Zh),e;default:throw Error(o(435,t.tag))}}function Tl(t,e){var n=ox(t);e.forEach(function(s){if(!n.has(s)){n.add(s);var l=gx.bind(null,t,s);s.then(l,l)}})}function he(t,e){var n=e.deletions;if(n!==null)for(var s=0;s<n.length;s++){var l=n[s],u=t,h=e,x=h;t:for(;x!==null;){switch(x.tag){case 27:if(kn(x.type)){Ot=x.stateNode,de=!1;break t}break;case 5:Ot=x.stateNode,de=!1;break t;case 3:case 4:Ot=x.stateNode.containerInfo,de=!0;break t}x=x.return}if(Ot===null)throw Error(o(160));Jh(u,h,l),Ot=null,de=!1,u=l.alternate,u!==null&&(u.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ph(e,t),e=e.sibling}var Ge=null;function Ph(t,e){var n=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:he(e,t),me(t),s&4&&(On(3,t,t.return),Ji(3,t),On(5,t,t.return));break;case 1:he(e,t),me(t),s&512&&(Qt||n===null||Fe(n,n.return)),s&64&&fn&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var l=Ge;if(he(e,t),me(t),s&512&&(Qt||n===null||Fe(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=t.memoizedState,n===null)if(s===null)if(t.stateNode===null){t:{s=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(s){case"title":u=l.getElementsByTagName("title")[0],(!u||u[Ti]||u[Wt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=l.createElement(s),l.head.insertBefore(u,l.querySelector("head > title"))),ne(u,s,n),u[Wt]=t,$t(u),s=u;break t;case"link":var h=Pm("link","href",l).get(s+(n.href||""));if(h){for(var x=0;x<h.length;x++)if(u=h[x],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(x,1);break e}}u=l.createElement(s),ne(u,s,n),l.head.appendChild(u);break;case"meta":if(h=Pm("meta","content",l).get(s+(n.content||""))){for(x=0;x<h.length;x++)if(u=h[x],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(x,1);break e}}u=l.createElement(s),ne(u,s,n),l.head.appendChild(u);break;default:throw Error(o(468,s))}u[Wt]=t,$t(u),s=u}t.stateNode=s}else Wm(l,t.type,t.stateNode);else t.stateNode=$m(l,s,t.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?Wm(l,t.type,t.stateNode):$m(l,s,t.memoizedProps)):s===null&&t.stateNode!==null&&$o(t,t.memoizedProps,n.memoizedProps)}break;case 27:he(e,t),me(t),s&512&&(Qt||n===null||Fe(n,n.return)),n!==null&&s&4&&$o(t,t.memoizedProps,n.memoizedProps);break;case 5:if(he(e,t),me(t),s&512&&(Qt||n===null||Fe(n,n.return)),t.flags&32){l=t.stateNode;try{Ca(l,"")}catch(J){Nt(t,t.return,J)}}s&4&&t.stateNode!=null&&(l=t.memoizedProps,$o(t,l,n!==null?n.memoizedProps:l)),s&1024&&(Io=!0);break;case 6:if(he(e,t),me(t),s&4){if(t.stateNode===null)throw Error(o(162));s=t.memoizedProps,n=t.stateNode;try{n.nodeValue=s}catch(J){Nt(t,t.return,J)}}break;case 3:if(Ll=null,l=Ge,Ge=Ul(e.containerInfo),he(e,t),Ge=l,me(t),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ri(e.containerInfo)}catch(J){Nt(t,t.return,J)}Io&&(Io=!1,Wh(t));break;case 4:s=Ge,Ge=Ul(t.stateNode.containerInfo),he(e,t),me(t),Ge=s;break;case 12:he(e,t),me(t);break;case 31:he(e,t),me(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Tl(t,s)));break;case 13:he(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Nl=ve()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Tl(t,s)));break;case 22:l=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,D=fn,U=Qt;if(fn=D||l,Qt=U||T,he(e,t),Qt=U,fn=D,me(t),s&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||T||fn||Qt||pa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(u=T.stateNode,l)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{x=T.stateNode;var H=T.memoizedProps.style,R=H!=null&&H.hasOwnProperty("display")?H.display:null;x.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(J){Nt(T,T.return,J)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=l?"":T.memoizedProps}catch(J){Nt(T,T.return,J)}}}else if(e.tag===18){if(n===null){T=e;try{var z=T.stateNode;l?qm(z,!0):qm(T.stateNode,!1)}catch(J){Nt(T,T.return,J)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,Tl(t,n))));break;case 19:he(e,t),me(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Tl(t,s)));break;case 30:break;case 21:break;default:he(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var n,s=t.return;s!==null;){if(Gh(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var l=n.stateNode,u=Po(t);Sl(t,u,l);break;case 5:var h=n.stateNode;n.flags&32&&(Ca(h,""),n.flags&=-33);var x=Po(t);Sl(t,x,h);break;case 3:case 4:var T=n.stateNode.containerInfo,D=Po(t);Wo(t,D,T);break;default:throw Error(o(161))}}catch(U){Nt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Wh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Wh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Qh(t,e.alternate,e),e=e.sibling}function pa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:On(4,e,e.return),pa(e);break;case 1:Fe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&qh(e,e.return,n),pa(e);break;case 27:is(e.stateNode);case 26:case 5:Fe(e,e.return),pa(e);break;case 22:e.memoizedState===null&&pa(e);break;case 30:pa(e);break;default:pa(e)}t=t.sibling}}function mn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,l=t,u=e,h=u.flags;switch(u.tag){case 0:case 11:case 15:mn(l,u,n),Ji(4,u);break;case 1:if(mn(l,u,n),s=u,l=s.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(D){Nt(s,s.return,D)}if(s=u,l=s.updateQueue,l!==null){var x=s.stateNode;try{var T=l.shared.hiddenCallbacks;if(T!==null)for(l.shared.hiddenCallbacks=null,l=0;l<T.length;l++)Dd(T[l],x)}catch(D){Nt(s,s.return,D)}}n&&h&64&&kh(u),Fi(u,u.return);break;case 27:Xh(u);case 26:case 5:mn(l,u,n),n&&s===null&&h&4&&Yh(u),Fi(u,u.return);break;case 12:mn(l,u,n);break;case 31:mn(l,u,n),n&&h&4&&Fh(l,u);break;case 13:mn(l,u,n),n&&h&4&&$h(l,u);break;case 22:u.memoizedState===null&&mn(l,u,n),Fi(u,u.return);break;case 30:break;default:mn(l,u,n)}e=e.sibling}}function tu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Vi(n))}function eu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vi(t))}function Xe(t,e,n,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ih(t,e,n,s),e=e.sibling}function Ih(t,e,n,s){var l=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,s),l&2048&&Ji(9,e);break;case 1:Xe(t,e,n,s);break;case 3:Xe(t,e,n,s),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vi(t)));break;case 12:if(l&2048){Xe(t,e,n,s),t=e.stateNode;try{var u=e.memoizedProps,h=u.id,x=u.onPostCommit;typeof x=="function"&&x(h,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Nt(e,e.return,T)}}else Xe(t,e,n,s);break;case 31:Xe(t,e,n,s);break;case 13:Xe(t,e,n,s);break;case 23:break;case 22:u=e.stateNode,h=e.alternate,e.memoizedState!==null?u._visibility&2?Xe(t,e,n,s):$i(t,e):u._visibility&2?Xe(t,e,n,s):(u._visibility|=2,$a(t,e,n,s,(e.subtreeFlags&10256)!==0||!1)),l&2048&&tu(h,e);break;case 24:Xe(t,e,n,s),l&2048&&eu(e.alternate,e);break;default:Xe(t,e,n,s)}}function $a(t,e,n,s,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,h=e,x=n,T=s,D=h.flags;switch(h.tag){case 0:case 11:case 15:$a(u,h,x,T,l),Ji(8,h);break;case 23:break;case 22:var U=h.stateNode;h.memoizedState!==null?U._visibility&2?$a(u,h,x,T,l):$i(u,h):(U._visibility|=2,$a(u,h,x,T,l)),l&&D&2048&&tu(h.alternate,h);break;case 24:$a(u,h,x,T,l),l&&D&2048&&eu(h.alternate,h);break;default:$a(u,h,x,T,l)}e=e.sibling}}function $i(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,s=e,l=s.flags;switch(s.tag){case 22:$i(n,s),l&2048&&tu(s.alternate,s);break;case 24:$i(n,s),l&2048&&eu(s.alternate,s);break;default:$i(n,s)}e=e.sibling}}var Pi=8192;function Pa(t,e,n){if(t.subtreeFlags&Pi)for(t=t.child;t!==null;)tm(t,e,n),t=t.sibling}function tm(t,e,n){switch(t.tag){case 26:Pa(t,e,n),t.flags&Pi&&t.memoizedState!==null&&Jx(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:Pa(t,e,n);break;case 3:case 4:var s=Ge;Ge=Ul(t.stateNode.containerInfo),Pa(t,e,n),Ge=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Pi,Pi=16777216,Pa(t,e,n),Pi=s):Pa(t,e,n));break;default:Pa(t,e,n)}}function em(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Wi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];Pt=s,am(s,t)}em(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)nm(t),t=t.sibling}function nm(t){switch(t.tag){case 0:case 11:case 15:Wi(t),t.flags&2048&&On(9,t,t.return);break;case 3:Wi(t);break;case 12:Wi(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Al(t)):Wi(t);break;default:Wi(t)}}function Al(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];Pt=s,am(s,t)}em(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:On(8,e,e.return),Al(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Al(e));break;default:Al(e)}t=t.sibling}}function am(t,e){for(;Pt!==null;){var n=Pt;switch(n.tag){case 0:case 11:case 15:On(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Vi(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Pt=s;else t:for(n=t;Pt!==null;){s=Pt;var l=s.sibling,u=s.return;if(Kh(s),s===n){Pt=null;break t}if(l!==null){l.return=u,Pt=l;break t}Pt=u}}}var ux={getCacheForType:function(t){var e=te(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return te(Gt).controller.signal}},cx=typeof WeakMap=="function"?WeakMap:Map,St=0,Dt=null,ft=null,mt=0,At=0,je=null,_n=!1,Wa=!1,nu=!1,pn=0,Lt=0,Vn=0,ya=0,au=0,Ee=0,Ia=0,Ii=null,pe=null,iu=!1,Nl=0,im=0,jl=1/0,El=null,Un=null,Jt=0,Bn=null,ti=null,yn=0,su=0,lu=null,sm=null,ts=0,ru=null;function Me(){return(St&2)!==0&&mt!==0?mt&-mt:_.T!==null?hu():Sf()}function lm(){if(Ee===0)if((mt&536870912)===0||yt){var t=_s;_s<<=1,(_s&3932160)===0&&(_s=262144),Ee=t}else Ee=536870912;return t=Ae.current,t!==null&&(t.flags|=32),Ee}function ye(t,e,n){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(ei(t,0),Ln(t,mt,Ee,!1)),Si(t,n),((St&2)===0||t!==Dt)&&(t===Dt&&((St&2)===0&&(ya|=n),Lt===4&&Ln(t,mt,Ee,!1)),$e(t))}function rm(t,e,n){if((St&6)!==0)throw Error(o(327));var s=!n&&(e&127)===0&&(e&t.expiredLanes)===0||bi(t,e),l=s?hx(t,e):uu(t,e,!0),u=s;do{if(l===0){Wa&&!s&&Ln(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!fx(n)){l=uu(t,e,!1),u=!1;continue}if(l===2){if(u=e,t.errorRecoveryDisabledLanes&u)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){e=h;t:{var x=t;l=Ii;var T=x.current.memoizedState.isDehydrated;if(T&&(ei(x,h).flags|=256),h=uu(x,h,!1),h!==2){if(nu&&!T){x.errorRecoveryDisabledLanes|=u,ya|=u,l=4;break t}u=pe,pe=l,u!==null&&(pe===null?pe=u:pe.push.apply(pe,u))}l=h}if(u=!1,l!==2)continue}}if(l===1){ei(t,0),Ln(t,e,0,!0);break}t:{switch(s=t,u=l,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Ln(s,e,Ee,!_n);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(l=Nl+300-ve(),10<l)){if(Ln(s,e,Ee,!_n),Us(s,0,!0)!==0)break t;yn=e,s.timeoutHandle=Lm(om.bind(null,s,n,pe,El,iu,e,Ee,ya,Ia,_n,u,"Throttled",-0,0),l);break t}om(s,n,pe,El,iu,e,Ee,ya,Ia,_n,u,null,-0,0)}}break}while(!0);$e(t)}function om(t,e,n,s,l,u,h,x,T,D,U,H,R,z){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},tm(e,u,H);var J=(u&62914560)===u?Nl-ve():(u&4194048)===u?im-ve():0;if(J=Fx(H,J),J!==null){yn=u,t.cancelPendingCommit=J(ym.bind(null,t,e,u,n,s,l,h,x,T,U,H,null,R,z)),Ln(t,u,h,!D);return}}ym(t,e,u,n,s,l,h,x,T)}function fx(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var l=n[s],u=l.getSnapshot;l=l.value;try{if(!Se(u(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ln(t,e,n,s){e&=~au,e&=~ya,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var l=e;0<l;){var u=31-be(l),h=1<<u;s[u]=-1,l&=~h}n!==0&&vf(t,n,e)}function Ml(){return(St&6)===0?(es(0),!1):!0}function ou(){if(ft!==null){if(At===0)var t=ft.return;else t=ft,sn=ra=null,No(t),Za=null,Bi=0,t=ft;for(;t!==null;)Hh(t.alternate,t),t=t.return;ft=null}}function ei(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Rx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),yn=0,ou(),Dt=t,ft=n=nn(t.current,null),mt=e,At=0,je=null,_n=!1,Wa=bi(t,e),nu=!1,Ia=Ee=au=ya=Vn=Lt=0,pe=Ii=null,iu=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var l=31-be(s),u=1<<l;e|=t[l],s&=~u}return pn=e,Js(),n}function um(t,e){rt=null,_.H=Zi,e===Xa||e===nl?(e=jd(),At=3):e===fo?(e=jd(),At=4):At=e===ko?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,je=e,ft===null&&(Lt=1,yl(t,Re(e,t.current)))}function cm(){var t=Ae.current;return t===null?!0:(mt&4194048)===mt?Ve===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Ve:!1}function fm(){var t=_.H;return _.H=Zi,t===null?Zi:t}function dm(){var t=_.A;return _.A=ux,t}function wl(){Lt=4,_n||(mt&4194048)!==mt&&Ae.current!==null||(Wa=!0),(Vn&134217727)===0&&(ya&134217727)===0||Dt===null||Ln(Dt,mt,Ee,!1)}function uu(t,e,n){var s=St;St|=2;var l=fm(),u=dm();(Dt!==t||mt!==e)&&(El=null,ei(t,e)),e=!1;var h=Lt;t:do try{if(At!==0&&ft!==null){var x=ft,T=je;switch(At){case 8:ou(),h=6;break t;case 3:case 2:case 9:case 6:Ae.current===null&&(e=!0);var D=At;if(At=0,je=null,ni(t,x,T,D),n&&Wa){h=0;break t}break;default:D=At,At=0,je=null,ni(t,x,T,D)}}dx(),h=Lt;break}catch(U){um(t,U)}while(!0);return e&&t.shellSuspendCounter++,sn=ra=null,St=s,_.H=l,_.A=u,ft===null&&(Dt=null,mt=0,Js()),h}function dx(){for(;ft!==null;)hm(ft)}function hx(t,e){var n=St;St|=2;var s=fm(),l=dm();Dt!==t||mt!==e?(El=null,jl=ve()+500,ei(t,e)):Wa=bi(t,e);t:do try{if(At!==0&&ft!==null){e=ft;var u=je;e:switch(At){case 1:At=0,je=null,ni(t,e,u,1);break;case 2:case 9:if(Ad(u)){At=0,je=null,mm(e);break}e=function(){At!==2&&At!==9||Dt!==t||(At=7),$e(t)},u.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Ad(u)?(At=0,je=null,mm(e)):(At=0,je=null,ni(t,e,u,7));break;case 5:var h=null;switch(ft.tag){case 26:h=ft.memoizedState;case 5:case 27:var x=ft;if(h?Im(h):x.stateNode.complete){At=0,je=null;var T=x.sibling;if(T!==null)ft=T;else{var D=x.return;D!==null?(ft=D,Dl(D)):ft=null}break e}}At=0,je=null,ni(t,e,u,5);break;case 6:At=0,je=null,ni(t,e,u,6);break;case 8:ou(),Lt=6;break t;default:throw Error(o(462))}}mx();break}catch(U){um(t,U)}while(!0);return sn=ra=null,_.H=s,_.A=l,St=n,ft!==null?0:(Dt=null,mt=0,Js(),Lt)}function mx(){for(;ft!==null&&!Bg();)hm(ft)}function hm(t){var e=Bh(t.alternate,t,pn);t.memoizedProps=t.pendingProps,e===null?Dl(t):ft=e}function mm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Rh(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Rh(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:No(e);default:Hh(n,e),e=ft=dd(e,pn),e=Bh(n,e,pn)}t.memoizedProps=t.pendingProps,e===null?Dl(t):ft=e}function ni(t,e,n,s){sn=ra=null,No(e),Za=null,Bi=0;var l=e.return;try{if(nx(t,l,e,n,mt)){Lt=1,yl(t,Re(n,t.current)),ft=null;return}}catch(u){if(l!==null)throw ft=l,u;Lt=1,yl(t,Re(n,t.current)),ft=null;return}e.flags&32768?(yt||s===1?t=!0:Wa||(mt&536870912)!==0?t=!1:(_n=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ae.current,s!==null&&s.tag===13&&(s.flags|=16384))),pm(e,t)):Dl(e)}function Dl(t){var e=t;do{if((e.flags&32768)!==0){pm(e,_n);return}t=e.return;var n=sx(e.alternate,e,pn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Lt===0&&(Lt=5)}function pm(t,e){do{var n=lx(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);Lt=6,ft=null}function ym(t,e,n,s,l,u,h,x,T){t.cancelPendingCommit=null;do Cl();while(Jt!==0);if((St&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=$r,Kg(t,n,u,h,x,T),t===Dt&&(ft=Dt=null,mt=0),ti=e,Bn=t,yn=n,su=u,lu=l,sm=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,vx(zs,function(){return Sm(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=_.T,_.T=null,l=G.p,G.p=2,h=St,St|=4;try{rx(t,e,n)}finally{St=h,G.p=l,_.T=s}}Jt=1,gm(),vm(),xm()}}function gm(){if(Jt===1){Jt=0;var t=Bn,e=ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var s=G.p;G.p=2;var l=St;St|=4;try{Ph(e,t);var u=Su,h=ad(t.containerInfo),x=u.focusedElem,T=u.selectionRange;if(h!==x&&x&&x.ownerDocument&&nd(x.ownerDocument.documentElement,x)){if(T!==null&&Zr(x)){var D=T.start,U=T.end;if(U===void 0&&(U=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(U,x.value.length);else{var H=x.ownerDocument||document,R=H&&H.defaultView||window;if(R.getSelection){var z=R.getSelection(),J=x.textContent.length,nt=Math.min(T.start,J),wt=T.end===void 0?nt:Math.min(T.end,J);!z.extend&&nt>wt&&(h=wt,wt=nt,nt=h);var E=ed(x,nt),N=ed(x,wt);if(E&&N&&(z.rangeCount!==1||z.anchorNode!==E.node||z.anchorOffset!==E.offset||z.focusNode!==N.node||z.focusOffset!==N.offset)){var w=H.createRange();w.setStart(E.node,E.offset),z.removeAllRanges(),nt>wt?(z.addRange(w),z.extend(N.node,N.offset)):(w.setEnd(N.node,N.offset),z.addRange(w))}}}}for(H=[],z=x;z=z.parentNode;)z.nodeType===1&&H.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<H.length;x++){var L=H[x];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Yl=!!bu,Su=bu=null}finally{St=l,G.p=s,_.T=n}}t.current=e,Jt=2}}function vm(){if(Jt===2){Jt=0;var t=Bn,e=ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var s=G.p;G.p=2;var l=St;St|=4;try{Qh(t,e.alternate,e)}finally{St=l,G.p=s,_.T=n}}Jt=3}}function xm(){if(Jt===4||Jt===3){Jt=0,Lg();var t=Bn,e=ti,n=yn,s=sm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,ti=Bn=null,bm(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Un=null),Er(n),e=e.stateNode,xe&&typeof xe.onCommitFiberRoot=="function")try{xe.onCommitFiberRoot(xi,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=_.T,l=G.p,G.p=2,_.T=null;try{for(var u=t.onRecoverableError,h=0;h<s.length;h++){var x=s[h];u(x.value,{componentStack:x.stack})}}finally{_.T=e,G.p=l}}(yn&3)!==0&&Cl(),$e(t),l=t.pendingLanes,(n&261930)!==0&&(l&42)!==0?t===ru?ts++:(ts=0,ru=t):ts=0,es(0)}}function bm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vi(e)))}function Cl(){return gm(),vm(),xm(),Sm()}function Sm(){if(Jt!==5)return!1;var t=Bn,e=su;su=0;var n=Er(yn),s=_.T,l=G.p;try{G.p=32>n?32:n,_.T=null,n=lu,lu=null;var u=Bn,h=yn;if(Jt=0,ti=Bn=null,yn=0,(St&6)!==0)throw Error(o(331));var x=St;if(St|=4,nm(u.current),Ih(u,u.current,h,n),St=x,es(0,!1),xe&&typeof xe.onPostCommitFiberRoot=="function")try{xe.onPostCommitFiberRoot(xi,u)}catch{}return!0}finally{G.p=l,_.T=s,bm(t,e)}}function Tm(t,e,n){e=Re(n,e),e=Ho(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(Si(t,2),$e(t))}function Nt(t,e,n){if(t.tag===3)Tm(t,t,n);else for(;e!==null;){if(e.tag===3){Tm(e,t,n);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Un===null||!Un.has(s))){t=Re(n,t),n=Ah(2),s=Cn(e,n,2),s!==null&&(Nh(n,s,e,t),Si(s,2),$e(s));break}}e=e.return}}function cu(t,e,n){var s=t.pingCache;if(s===null){s=t.pingCache=new cx;var l=new Set;s.set(e,l)}else l=s.get(e),l===void 0&&(l=new Set,s.set(e,l));l.has(n)||(nu=!0,l.add(n),t=px.bind(null,t,e,n),e.then(t,t))}function px(t,e,n){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Dt===t&&(mt&n)===n&&(Lt===4||Lt===3&&(mt&62914560)===mt&&300>ve()-Nl?(St&2)===0&&ei(t,0):au|=n,Ia===mt&&(Ia=0)),$e(t)}function Am(t,e){e===0&&(e=gf()),t=ia(t,e),t!==null&&(Si(t,e),$e(t))}function yx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Am(t,n)}function gx(t,e){var n=0;switch(t.tag){case 31:case 13:var s=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(e),Am(t,n)}function vx(t,e){return Tr(t,e)}var Rl=null,ai=null,fu=!1,zl=!1,du=!1,Hn=0;function $e(t){t!==ai&&t.next===null&&(ai===null?Rl=ai=t:ai=ai.next=t),zl=!0,fu||(fu=!0,bx())}function es(t,e){if(!du&&zl){du=!0;do for(var n=!1,s=Rl;s!==null;){if(t!==0){var l=s.pendingLanes;if(l===0)var u=0;else{var h=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-be(42|t)+1)-1,u&=l&~(h&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Mm(s,u))}else u=mt,u=Us(s,s===Dt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||bi(s,u)||(n=!0,Mm(s,u));s=s.next}while(n);du=!1}}function xx(){Nm()}function Nm(){zl=fu=!1;var t=0;Hn!==0&&Cx()&&(t=Hn);for(var e=ve(),n=null,s=Rl;s!==null;){var l=s.next,u=jm(s,e);u===0?(s.next=null,n===null?Rl=l:n.next=l,l===null&&(ai=n)):(n=s,(t!==0||(u&3)!==0)&&(zl=!0)),s=l}Jt!==0&&Jt!==5||es(t),Hn!==0&&(Hn=0)}function jm(t,e){for(var n=t.suspendedLanes,s=t.pingedLanes,l=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var h=31-be(u),x=1<<h,T=l[h];T===-1?((x&n)===0||(x&s)!==0)&&(l[h]=Qg(x,e)):T<=e&&(t.expiredLanes|=x),u&=~x}if(e=Dt,n=mt,n=Us(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Ar(s),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||bi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(s!==null&&Ar(s),Er(n)){case 2:case 8:n=pf;break;case 32:n=zs;break;case 268435456:n=yf;break;default:n=zs}return s=Em.bind(null,t),n=Tr(n,s),t.callbackPriority=e,t.callbackNode=n,e}return s!==null&&s!==null&&Ar(s),t.callbackPriority=2,t.callbackNode=null,2}function Em(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Cl()&&t.callbackNode!==n)return null;var s=mt;return s=Us(t,t===Dt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(rm(t,s,e),jm(t,ve()),t.callbackNode!=null&&t.callbackNode===n?Em.bind(null,t):null)}function Mm(t,e){if(Cl())return null;rm(t,e,!0)}function bx(){zx(function(){(St&6)!==0?Tr(mf,xx):Nm()})}function hu(){if(Hn===0){var t=Ya;t===0&&(t=Os,Os<<=1,(Os&261888)===0&&(Os=256)),Hn=t}return Hn}function wm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ks(""+t)}function Dm(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Sx(t,e,n,s,l){if(e==="submit"&&n&&n.stateNode===l){var u=wm((l[ce]||null).action),h=s.submitter;h&&(e=(e=h[ce]||null)?wm(e.formAction):h.getAttribute("formAction"),e!==null&&(u=e,h=null));var x=new Xs("action","action",null,s,l);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Hn!==0){var T=h?Dm(l,h):new FormData(l);Oo(n,{pending:!0,data:T,method:l.method,action:u},null,T)}}else typeof u=="function"&&(x.preventDefault(),T=h?Dm(l,h):new FormData(l),Oo(n,{pending:!0,data:T,method:l.method,action:u},u,T))},currentTarget:l}]})}}for(var mu=0;mu<Fr.length;mu++){var pu=Fr[mu],Tx=pu.toLowerCase(),Ax=pu[0].toUpperCase()+pu.slice(1);Ye(Tx,"on"+Ax)}Ye(ld,"onAnimationEnd"),Ye(rd,"onAnimationIteration"),Ye(od,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Hv,"onTransitionRun"),Ye(kv,"onTransitionStart"),Ye(qv,"onTransitionCancel"),Ye(ud,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ns="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(" "),Nx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ns));function Cm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var s=t[n],l=s.event;s=s.listeners;t:{var u=void 0;if(e)for(var h=s.length-1;0<=h;h--){var x=s[h],T=x.instance,D=x.currentTarget;if(x=x.listener,T!==u&&l.isPropagationStopped())break t;u=x,l.currentTarget=D;try{u(l)}catch(U){Ks(U)}l.currentTarget=null,u=T}else for(h=0;h<s.length;h++){if(x=s[h],T=x.instance,D=x.currentTarget,x=x.listener,T!==u&&l.isPropagationStopped())break t;u=x,l.currentTarget=D;try{u(l)}catch(U){Ks(U)}l.currentTarget=null,u=T}}}}function dt(t,e){var n=e[Mr];n===void 0&&(n=e[Mr]=new Set);var s=t+"__bubble";n.has(s)||(Rm(e,t,2,!1),n.add(s))}function yu(t,e,n){var s=0;e&&(s|=4),Rm(n,t,s,e)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function gu(t){if(!t[Ol]){t[Ol]=!0,Nf.forEach(function(n){n!=="selectionchange"&&(Nx.has(n)||yu(n,!1,t),yu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ol]||(e[Ol]=!0,yu("selectionchange",!1,e))}}function Rm(t,e,n,s){switch(lp(e)){case 2:var l=Wx;break;case 8:l=Ix;break;default:l=zu}n=l.bind(null,e,n,t),l=void 0,!Ur||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),s?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function vu(t,e,n,s,l){var u=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var h=s.tag;if(h===3||h===4){var x=s.stateNode.containerInfo;if(x===l)break;if(h===4)for(h=s.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===l)return;h=h.return}for(;x!==null;){if(h=ja(x),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){s=u=h;continue t}x=x.parentNode}}s=s.return}Uf(function(){var D=u,U=_r(n),H=[];t:{var R=cd.get(t);if(R!==void 0){var z=Xs,J=t;switch(t){case"keypress":if(Ys(n)===0)break t;case"keydown":case"keyup":z=gv;break;case"focusin":J="focus",z=kr;break;case"focusout":J="blur",z=kr;break;case"beforeblur":case"afterblur":z=kr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=sv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=bv;break;case ld:case rd:case od:z=ov;break;case ud:z=Tv;break;case"scroll":case"scrollend":z=av;break;case"wheel":z=Nv;break;case"copy":case"cut":case"paste":z=cv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=qf;break;case"toggle":case"beforetoggle":z=Ev}var nt=(e&4)!==0,wt=!nt&&(t==="scroll"||t==="scrollend"),E=nt?R!==null?R+"Capture":null:R;nt=[];for(var N=D,w;N!==null;){var L=N;if(w=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||w===null||E===null||(L=Ni(N,E),L!=null&&nt.push(as(N,L,w))),wt)break;N=N.return}0<nt.length&&(R=new z(R,J,null,n,U),H.push({event:R,listeners:nt}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",R&&n!==Or&&(J=n.relatedTarget||n.fromElement)&&(ja(J)||J[Na]))break t;if((z||R)&&(R=U.window===U?U:(R=U.ownerDocument)?R.defaultView||R.parentWindow:window,z?(J=n.relatedTarget||n.toElement,z=D,J=J?ja(J):null,J!==null&&(wt=f(J),nt=J.tag,J!==wt||nt!==5&&nt!==27&&nt!==6)&&(J=null)):(z=null,J=D),z!==J)){if(nt=Hf,L="onMouseLeave",E="onMouseEnter",N="mouse",(t==="pointerout"||t==="pointerover")&&(nt=qf,L="onPointerLeave",E="onPointerEnter",N="pointer"),wt=z==null?R:Ai(z),w=J==null?R:Ai(J),R=new nt(L,N+"leave",z,n,U),R.target=wt,R.relatedTarget=w,L=null,ja(U)===D&&(nt=new nt(E,N+"enter",J,n,U),nt.target=w,nt.relatedTarget=wt,L=nt),wt=L,z&&J)e:{for(nt=jx,E=z,N=J,w=0,L=E;L;L=nt(L))w++;L=0;for(var et=N;et;et=nt(et))L++;for(;0<w-L;)E=nt(E),w--;for(;0<L-w;)N=nt(N),L--;for(;w--;){if(E===N||N!==null&&E===N.alternate){nt=E;break e}E=nt(E),N=nt(N)}nt=null}else nt=null;z!==null&&zm(H,R,z,nt,!1),J!==null&&wt!==null&&zm(H,wt,J,nt,!0)}}t:{if(R=D?Ai(D):window,z=R.nodeName&&R.nodeName.toLowerCase(),z==="select"||z==="input"&&R.type==="file")var xt=Ff;else if(Kf(R))if($f)xt=Uv;else{xt=_v;var W=Ov}else z=R.nodeName,!z||z.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?D&&zr(D.elementType)&&(xt=Ff):xt=Vv;if(xt&&(xt=xt(t,D))){Jf(H,xt,n,U);break t}W&&W(t,R,D),t==="focusout"&&D&&R.type==="number"&&D.memoizedProps.value!=null&&Rr(R,"number",R.value)}switch(W=D?Ai(D):window,t){case"focusin":(Kf(W)||W.contentEditable==="true")&&(_a=W,Qr=D,zi=null);break;case"focusout":zi=Qr=_a=null;break;case"mousedown":Kr=!0;break;case"contextmenu":case"mouseup":case"dragend":Kr=!1,id(H,n,U);break;case"selectionchange":if(Lv)break;case"keydown":case"keyup":id(H,n,U)}var ot;if(Yr)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else Oa?Zf(t,n)&&(pt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(pt="onCompositionStart");pt&&(Yf&&n.locale!=="ko"&&(Oa||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&Oa&&(ot=Bf()):(An=U,Br="value"in An?An.value:An.textContent,Oa=!0)),W=_l(D,pt),0<W.length&&(pt=new kf(pt,t,null,n,U),H.push({event:pt,listeners:W}),ot?pt.data=ot:(ot=Qf(n),ot!==null&&(pt.data=ot)))),(ot=wv?Dv(t,n):Cv(t,n))&&(pt=_l(D,"onBeforeInput"),0<pt.length&&(W=new kf("onBeforeInput","beforeinput",null,n,U),H.push({event:W,listeners:pt}),W.data=ot)),Sx(H,t,D,n,U)}Cm(H,e)})}function as(t,e,n){return{instance:t,listener:e,currentTarget:n}}function _l(t,e){for(var n=e+"Capture",s=[];t!==null;){var l=t,u=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||u===null||(l=Ni(t,n),l!=null&&s.unshift(as(t,l,u)),l=Ni(t,e),l!=null&&s.push(as(t,l,u))),t.tag===3)return s;t=t.return}return[]}function jx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function zm(t,e,n,s,l){for(var u=e._reactName,h=[];n!==null&&n!==s;){var x=n,T=x.alternate,D=x.stateNode;if(x=x.tag,T!==null&&T===s)break;x!==5&&x!==26&&x!==27||D===null||(T=D,l?(D=Ni(n,u),D!=null&&h.unshift(as(n,D,T))):l||(D=Ni(n,u),D!=null&&h.push(as(n,D,T)))),n=n.return}h.length!==0&&t.push({event:e,listeners:h})}var Ex=/\r\n?/g,Mx=/\u0000|\uFFFD/g;function Om(t){return(typeof t=="string"?t:""+t).replace(Ex,`
|
|
9
|
-
`).replace(Mx,"")}function _m(t,e){return e=Om(e),Om(t)===e}function Mt(t,e,n,s,l,u){switch(n){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Ca(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Ca(t,""+s);break;case"className":Ls(t,"class",s);break;case"tabIndex":Ls(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Ls(t,n,s);break;case"style":_f(t,s,u);break;case"data":if(e!=="object"){Ls(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=ks(""+s),t.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Mt(t,e,"name",l.name,l,null),Mt(t,e,"formEncType",l.formEncType,l,null),Mt(t,e,"formMethod",l.formMethod,l,null),Mt(t,e,"formTarget",l.formTarget,l,null)):(Mt(t,e,"encType",l.encType,l,null),Mt(t,e,"method",l.method,l,null),Mt(t,e,"target",l.target,l,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=ks(""+s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=tn);break;case"onScroll":s!=null&&dt("scroll",t);break;case"onScrollEnd":s!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(l.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}n=ks(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""+s):t.removeAttribute(n);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":s===!0?t.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,s):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(n,s):t.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(n):t.setAttribute(n,s);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Bs(t,"popover",s);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Bs(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ev.get(n)||n,Bs(t,n,s))}}function xu(t,e,n,s,l,u){switch(n){case"style":_f(t,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(l.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof s=="string"?Ca(t,s):(typeof s=="number"||typeof s=="bigint")&&Ca(t,""+s);break;case"onScroll":s!=null&&dt("scroll",t);break;case"onScrollEnd":s!=null&&dt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jf.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),u=t[ce]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,l),typeof s=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,s,l);break t}n in t?t[n]=s:s===!0?t.setAttribute(n,""):Bs(t,n,s)}}}function ne(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var s=!1,l=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":s=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,u,h,n,null)}}l&&Mt(t,e,"srcSet",n.srcSet,n,null),s&&Mt(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var x=u=h=l=null,T=null,D=null;for(s in n)if(n.hasOwnProperty(s)){var U=n[s];if(U!=null)switch(s){case"name":l=U;break;case"type":h=U;break;case"checked":T=U;break;case"defaultChecked":D=U;break;case"value":u=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:Mt(t,e,s,U,n,null)}}Cf(t,u,x,T,D,h,l,!1);return;case"select":dt("invalid",t),s=h=u=null;for(l in n)if(n.hasOwnProperty(l)&&(x=n[l],x!=null))switch(l){case"value":u=x;break;case"defaultValue":h=x;break;case"multiple":s=x;default:Mt(t,e,l,x,n,null)}e=u,n=h,t.multiple=!!s,e!=null?Da(t,!!s,e,!1):n!=null&&Da(t,!!s,n,!0);return;case"textarea":dt("invalid",t),u=l=s=null;for(h in n)if(n.hasOwnProperty(h)&&(x=n[h],x!=null))switch(h){case"value":s=x;break;case"defaultValue":l=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Mt(t,e,h,x,n,null)}zf(t,s,l,u);return;case"option":for(T in n)n.hasOwnProperty(T)&&(s=n[T],s!=null)&&(T==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":Mt(t,e,T,s,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(s=0;s<ns.length;s++)dt(ns[s],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(s=n[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,D,s,n,null)}return;default:if(zr(e)){for(U in n)n.hasOwnProperty(U)&&(s=n[U],s!==void 0&&xu(t,e,U,s,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(s=n[x],s!=null&&Mt(t,e,x,s,n,null))}function wx(t,e,n,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,u=null,h=null,x=null,T=null,D=null,U=null;for(z in n){var H=n[z];if(n.hasOwnProperty(z)&&H!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=H;default:s.hasOwnProperty(z)||Mt(t,e,z,null,s,H)}}for(var R in s){var z=s[R];if(H=n[R],s.hasOwnProperty(R)&&(z!=null||H!=null))switch(R){case"type":u=z;break;case"name":l=z;break;case"checked":D=z;break;case"defaultChecked":U=z;break;case"value":h=z;break;case"defaultValue":x=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:z!==H&&Mt(t,e,R,z,s,H)}}Cr(t,h,x,T,D,U,u,l);return;case"select":z=h=x=R=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":z=T;default:s.hasOwnProperty(u)||Mt(t,e,u,null,s,T)}for(l in s)if(u=s[l],T=n[l],s.hasOwnProperty(l)&&(u!=null||T!=null))switch(l){case"value":R=u;break;case"defaultValue":x=u;break;case"multiple":h=u;default:u!==T&&Mt(t,e,l,u,s,T)}e=x,n=h,s=z,R!=null?Da(t,!!n,R,!1):!!s!=!!n&&(e!=null?Da(t,!!n,e,!0):Da(t,!!n,n?[]:"",!1));return;case"textarea":z=R=null;for(x in n)if(l=n[x],n.hasOwnProperty(x)&&l!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(t,e,x,null,s,l)}for(h in s)if(l=s[h],u=n[h],s.hasOwnProperty(h)&&(l!=null||u!=null))switch(h){case"value":R=l;break;case"defaultValue":z=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(o(91));break;default:l!==u&&Mt(t,e,h,l,s,u)}Rf(t,R,z);return;case"option":for(var J in n)R=n[J],n.hasOwnProperty(J)&&R!=null&&!s.hasOwnProperty(J)&&(J==="selected"?t.selected=!1:Mt(t,e,J,null,s,R));for(T in s)R=s[T],z=n[T],s.hasOwnProperty(T)&&R!==z&&(R!=null||z!=null)&&(T==="selected"?t.selected=R&&typeof R!="function"&&typeof R!="symbol":Mt(t,e,T,R,s,z));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 nt in n)R=n[nt],n.hasOwnProperty(nt)&&R!=null&&!s.hasOwnProperty(nt)&&Mt(t,e,nt,null,s,R);for(D in s)if(R=s[D],z=n[D],s.hasOwnProperty(D)&&R!==z&&(R!=null||z!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:Mt(t,e,D,R,s,z)}return;default:if(zr(e)){for(var wt in n)R=n[wt],n.hasOwnProperty(wt)&&R!==void 0&&!s.hasOwnProperty(wt)&&xu(t,e,wt,void 0,s,R);for(U in s)R=s[U],z=n[U],!s.hasOwnProperty(U)||R===z||R===void 0&&z===void 0||xu(t,e,U,R,s,z);return}}for(var E in n)R=n[E],n.hasOwnProperty(E)&&R!=null&&!s.hasOwnProperty(E)&&Mt(t,e,E,null,s,R);for(H in s)R=s[H],z=n[H],!s.hasOwnProperty(H)||R===z||R==null&&z==null||Mt(t,e,H,R,s,z)}function Vm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var l=n[s],u=l.transferSize,h=l.initiatorType,x=l.duration;if(u&&x&&Vm(h)){for(h=0,x=l.responseEnd,s+=1;s<n.length;s++){var T=n[s],D=T.startTime;if(D>x)break;var U=T.transferSize,H=T.initiatorType;U&&Vm(H)&&(T=T.responseEnd,h+=U*(T<x?1:(x-D)/(T-D)))}if(--s,e+=8*(u+h)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var bu=null,Su=null;function Vl(t){return t.nodeType===9?t:t.ownerDocument}function Um(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Tu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Au=null;function Cx(){var t=window.event;return t&&t.type==="popstate"?t===Au?!1:(Au=t,!0):(Au=null,!1)}var Lm=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,zx=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(t){return Hm.resolve(null).then(t).catch(Ox)}:Lm;function Ox(t){setTimeout(function(){throw t})}function kn(t){return t==="head"}function km(t,e){var n=e,s=0;do{var l=n.nextSibling;if(t.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(s===0){t.removeChild(l),ri(e);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")is(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,is(n);for(var u=n.firstChild;u;){var h=u.nextSibling,x=u.nodeName;u[Ti]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&is(t.ownerDocument.body);n=l}while(n);ri(e)}function qm(t,e){var n=t;t=0;do{var s=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=s}while(n)}function Nu(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Nu(n),wr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function _x(t,e,n,s){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Ti])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function Vx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function Ym(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function ju(t){return t.data==="$?"||t.data==="$~"}function Eu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ux(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var s=function(){e(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Mu=null;function Gm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Xm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Zm(t,e,n){switch(e=Vl(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function is(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);wr(t)}var Be=new Map,Qm=new Set;function Ul(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gn=G.d;G.d={f:Bx,r:Lx,D:Hx,C:kx,L:qx,m:Yx,X:Xx,S:Gx,M:Zx};function Bx(){var t=gn.f(),e=Ml();return t||e}function Lx(t){var e=Ea(t);e!==null&&e.tag===5&&e.type==="form"?uh(e):gn.r(t)}var ii=typeof document>"u"?null:document;function Km(t,e,n){var s=ii;if(s&&typeof e=="string"&&e){var l=De(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Qm.has(l)||(Qm.add(l),t={rel:t,crossOrigin:n,href:e},s.querySelector(l)===null&&(e=s.createElement("link"),ne(e,"link",t),$t(e),s.head.appendChild(e)))}}function Hx(t){gn.D(t),Km("dns-prefetch",t,null)}function kx(t,e){gn.C(t,e),Km("preconnect",t,e)}function qx(t,e,n){gn.L(t,e,n);var s=ii;if(s&&t&&e){var l='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+De(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+De(n.imageSizes)+'"]')):l+='[href="'+De(t)+'"]';var u=l;switch(e){case"style":u=si(t);break;case"script":u=li(t)}Be.has(u)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Be.set(u,t),s.querySelector(l)!==null||e==="style"&&s.querySelector(ss(u))||e==="script"&&s.querySelector(ls(u))||(e=s.createElement("link"),ne(e,"link",t),$t(e),s.head.appendChild(e)))}}function Yx(t,e){gn.m(t,e);var n=ii;if(n&&t){var s=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+De(s)+'"][href="'+De(t)+'"]',u=l;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=li(t)}if(!Be.has(u)&&(t=b({rel:"modulepreload",href:t},e),Be.set(u,t),n.querySelector(l)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ls(u)))return}s=n.createElement("link"),ne(s,"link",t),$t(s),n.head.appendChild(s)}}}function Gx(t,e,n){gn.S(t,e,n);var s=ii;if(s&&t){var l=Ma(s).hoistableStyles,u=si(t);e=e||"default";var h=l.get(u);if(!h){var x={loading:0,preload:null};if(h=s.querySelector(ss(u)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Be.get(u))&&wu(t,n);var T=h=s.createElement("link");$t(T),ne(T,"link",t),T._p=new Promise(function(D,U){T.onload=D,T.onerror=U}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Bl(h,e,s)}h={type:"stylesheet",instance:h,count:1,state:x},l.set(u,h)}}}function Xx(t,e){gn.X(t,e);var n=ii;if(n&&t){var s=Ma(n).hoistableScripts,l=li(t),u=s.get(l);u||(u=n.querySelector(ls(l)),u||(t=b({src:t,async:!0},e),(e=Be.get(l))&&Du(t,e),u=n.createElement("script"),$t(u),ne(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(l,u))}}function Zx(t,e){gn.M(t,e);var n=ii;if(n&&t){var s=Ma(n).hoistableScripts,l=li(t),u=s.get(l);u||(u=n.querySelector(ls(l)),u||(t=b({src:t,async:!0,type:"module"},e),(e=Be.get(l))&&Du(t,e),u=n.createElement("script"),$t(u),ne(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(l,u))}}function Jm(t,e,n,s){var l=(l=ct.current)?Ul(l):null;if(!l)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=si(n.href),n=Ma(l).hoistableStyles,s=n.get(e),s||(s={type:"style",instance:null,count:0,state:null},n.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=si(n.href);var u=Ma(l).hoistableStyles,h=u.get(t);if(h||(l=l.ownerDocument||l,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,h),(u=l.querySelector(ss(t)))&&!u._p&&(h.instance=u,h.state.loading=5),Be.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Be.set(t,n),u||Qx(l,t,n,h.state))),e&&s===null)throw Error(o(528,""));return h}if(e&&s!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=li(n),n=Ma(l).hoistableScripts,s=n.get(e),s||(s={type:"script",instance:null,count:0,state:null},n.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function si(t){return'href="'+De(t)+'"'}function ss(t){return'link[rel="stylesheet"]['+t+"]"}function Fm(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Qx(t,e,n,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),ne(e,"link",n),$t(e),t.head.appendChild(e))}function li(t){return'[src="'+De(t)+'"]'}function ls(t){return"script[async]"+t}function $m(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+De(n.href)+'"]');if(s)return e.instance=s,$t(s),s;var l=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),$t(s),ne(s,"style",l),Bl(s,n.precedence,t),e.instance=s;case"stylesheet":l=si(n.href);var u=t.querySelector(ss(l));if(u)return e.state.loading|=4,e.instance=u,$t(u),u;s=Fm(n),(l=Be.get(l))&&wu(s,l),u=(t.ownerDocument||t).createElement("link"),$t(u);var h=u;return h._p=new Promise(function(x,T){h.onload=x,h.onerror=T}),ne(u,"link",s),e.state.loading|=4,Bl(u,n.precedence,t),e.instance=u;case"script":return u=li(n.src),(l=t.querySelector(ls(u)))?(e.instance=l,$t(l),l):(s=n,(l=Be.get(u))&&(s=b({},n),Du(s,l)),t=t.ownerDocument||t,l=t.createElement("script"),$t(l),ne(l,"link",s),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,Bl(s,n.precedence,t));return e.instance}function Bl(t,e,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=s.length?s[s.length-1]:null,u=l,h=0;h<s.length;h++){var x=s[h];if(x.dataset.precedence===e)u=x;else if(u!==l)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function wu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Du(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ll=null;function Pm(t,e,n){if(Ll===null){var s=new Map,l=Ll=new Map;l.set(n,s)}else l=Ll,s=l.get(n),s||(s=new Map,l.set(n,s));if(s.has(t))return s;for(s.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var u=n[l];if(!(u[Ti]||u[Wt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(e)||"";h=t+h;var x=s.get(h);x?x.push(u):s.set(h,[u])}}return s}function Wm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Kx(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Im(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Jx(t,e,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=si(s.href),u=e.querySelector(ss(l));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Hl.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,$t(u);return}u=e.ownerDocument||e,s=Fm(s),(l=Be.get(l))&&wu(s,l),u=u.createElement("link"),$t(u);var h=u;h._p=new Promise(function(x,T){h.onload=x,h.onerror=T}),ne(u,"link",s),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Hl.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Cu=0;function Fx(t,e){return t.stylesheets&&t.count===0&&ql(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&ql(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Cu===0&&(Cu=62500*Dx());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ql(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Cu?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(l)}}:null}function Hl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ql(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var kl=null;function ql(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,kl=new Map,e.forEach($x,t),kl=null,Hl.call(t))}function $x(t,e){if(!(e.state.loading&4)){var n=kl.get(t);if(n)var s=n.get(null);else{n=new Map,kl.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<l.length;u++){var h=l[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),s=h)}s&&n.set(null,s)}l=e.instance,h=l.getAttribute("data-precedence"),u=n.get(h)||s,u===s&&n.set(null,l),n.set(h,l),this.count++,s=Hl.bind(this),l.addEventListener("load",s),l.addEventListener("error",s),u?u.parentNode.insertBefore(l,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var rs={$$typeof:B,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Px(t,e,n,s,l,u,h,x,T){this.tag=1,this.containerInfo=t,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=Nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nr(0),this.hiddenUpdates=Nr(null),this.identifierPrefix=s,this.onUncaughtError=l,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function tp(t,e,n,s,l,u,h,x,T,D,U,H){return t=new Px(t,e,n,h,T,D,U,H,x),e=1,u===!0&&(e|=24),u=Te(3,null,null,e),t.current=u,u.stateNode=t,e=oo(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:e},ho(u),t}function ep(t){return t?(t=Ba,t):Ba}function np(t,e,n,s,l,u){l=ep(l),s.context===null?s.context=l:s.pendingContext=l,s=Dn(e),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Cn(t,s,e),n!==null&&(ye(n,t,e),Hi(n,t,e))}function ap(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ru(t,e){ap(t,e),(t=t.alternate)&&ap(t,e)}function ip(t){if(t.tag===13||t.tag===31){var e=ia(t,67108864);e!==null&&ye(e,t,67108864),Ru(t,67108864)}}function sp(t){if(t.tag===13||t.tag===31){var e=Me();e=jr(e);var n=ia(t,e);n!==null&&ye(n,t,e),Ru(t,e)}}var Yl=!0;function Wx(t,e,n,s){var l=_.T;_.T=null;var u=G.p;try{G.p=2,zu(t,e,n,s)}finally{G.p=u,_.T=l}}function Ix(t,e,n,s){var l=_.T;_.T=null;var u=G.p;try{G.p=8,zu(t,e,n,s)}finally{G.p=u,_.T=l}}function zu(t,e,n,s){if(Yl){var l=Ou(s);if(l===null)vu(t,e,s,Gl,n),rp(t,s);else if(e1(l,t,e,n,s))s.stopPropagation();else if(rp(t,s),e&4&&-1<t1.indexOf(t)){for(;l!==null;){var u=Ea(l);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=In(u.pendingLanes);if(h!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;h;){var T=1<<31-be(h);x.entanglements[1]|=T,h&=~T}$e(u),(St&6)===0&&(jl=ve()+500,es(0))}}break;case 31:case 13:x=ia(u,2),x!==null&&ye(x,u,2),Ml(),Ru(u,2)}if(u=Ou(s),u===null&&vu(t,e,s,Gl,n),u===l)break;l=u}l!==null&&s.stopPropagation()}else vu(t,e,s,null,n)}}function Ou(t){return t=_r(t),_u(t)}var Gl=null;function _u(t){if(Gl=null,t=ja(t),t!==null){var e=f(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Gl=t,null}function lp(t){switch(t){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(Hg()){case mf:return 2;case pf:return 8;case zs:case kg:return 32;case yf:return 268435456;default:return 32}default:return 32}}var Vu=!1,qn=null,Yn=null,Gn=null,os=new Map,us=new Map,Xn=[],t1="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 rp(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":os.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":us.delete(e.pointerId)}}function cs(t,e,n,s,l,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[l]},e!==null&&(e=Ea(e),e!==null&&ip(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function e1(t,e,n,s,l){switch(e){case"focusin":return qn=cs(qn,t,e,n,s,l),!0;case"dragenter":return Yn=cs(Yn,t,e,n,s,l),!0;case"mouseover":return Gn=cs(Gn,t,e,n,s,l),!0;case"pointerover":var u=l.pointerId;return os.set(u,cs(os.get(u)||null,t,e,n,s,l)),!0;case"gotpointercapture":return u=l.pointerId,us.set(u,cs(us.get(u)||null,t,e,n,s,l)),!0}return!1}function op(t){var e=ja(t.target);if(e!==null){var n=f(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,Tf(t.priority,function(){sp(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,Tf(t.priority,function(){sp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Xl(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ou(t.nativeEvent);if(n===null){n=t.nativeEvent;var s=new n.constructor(n.type,n);Or=s,n.target.dispatchEvent(s),Or=null}else return e=Ea(n),e!==null&&ip(e),t.blockedOn=n,!1;e.shift()}return!0}function up(t,e,n){Xl(t)&&n.delete(e)}function n1(){Vu=!1,qn!==null&&Xl(qn)&&(qn=null),Yn!==null&&Xl(Yn)&&(Yn=null),Gn!==null&&Xl(Gn)&&(Gn=null),os.forEach(up),us.forEach(up)}function Zl(t,e){t.blockedOn===e&&(t.blockedOn=null,Vu||(Vu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,n1)))}var Ql=null;function cp(t){Ql!==t&&(Ql=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Ql===t&&(Ql=null);for(var e=0;e<t.length;e+=3){var n=t[e],s=t[e+1],l=t[e+2];if(typeof s!="function"){if(_u(s||n)===null)continue;break}var u=Ea(n);u!==null&&(t.splice(e,3),e-=3,Oo(u,{pending:!0,data:l,method:n.method,action:s},s,l))}}))}function ri(t){function e(T){return Zl(T,t)}qn!==null&&Zl(qn,t),Yn!==null&&Zl(Yn,t),Gn!==null&&Zl(Gn,t),os.forEach(e),us.forEach(e);for(var n=0;n<Xn.length;n++){var s=Xn[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Xn.length&&(n=Xn[0],n.blockedOn===null);)op(n),n.blockedOn===null&&Xn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var l=n[s],u=n[s+1],h=l[ce]||null;if(typeof u=="function")h||cp(n);else if(h){var x=null;if(u&&u.hasAttribute("formAction")){if(l=u,h=u[ce]||null)x=h.formAction;else if(_u(l)!==null)continue}else x=h.action;typeof x=="function"?n[s+1]=x:(n.splice(s,3),s-=3),cp(n)}}}function fp(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return l=h})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function Uu(t){this._internalRoot=t}Kl.prototype.render=Uu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,s=Me();np(n,s,t,e,null,null)},Kl.prototype.unmount=Uu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;np(t.current,2,null,t,null,null),Ml(),e[Na]=null}};function Kl(t){this._internalRoot=t}Kl.prototype.unstable_scheduleHydration=function(t){if(t){var e=Sf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Xn.length&&e!==0&&e<Xn[n].priority;n++);Xn.splice(n,0,t),n===0&&op(t)}};var dp=i.version;if(dp!=="19.2.4")throw Error(o(527,dp,"19.2.4"));G.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var a1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jl.isDisabled&&Jl.supportsFiber)try{xi=Jl.inject(a1),xe=Jl}catch{}}return ds.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,s="",l=xh,u=bh,h=Sh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(h=e.onRecoverableError)),e=tp(t,1,!1,null,null,n,s,null,l,u,h,fp),t[Na]=e.current,gu(t),new Uu(e)},ds.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var s=!1,l="",u=xh,h=bh,x=Sh,T=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=tp(t,1,!0,e,n??null,s,l,T,u,h,x,fp),e.context=ep(null),n=e.current,s=Me(),s=jr(s),l=Dn(s),l.callback=null,Cn(n,l,s),n=s,e.current.lanes=n,Si(e,n),$e(e),t[Na]=e.current,gu(t),new Kl(e)},ds.version="19.2.4",ds}var Tp;function m1(){if(Tp)return Hu.exports;Tp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Hu.exports=h1(),Hu.exports}var p1=m1();const G0=(...a)=>a.filter((i,r,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===r).join(" ").trim();const y1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const g1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,o)=>o?o.toUpperCase():r.toLowerCase());const Ap=a=>{const i=g1(a);return i.charAt(0).toUpperCase()+i.slice(1)};var v1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const x1=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const b1=C.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...p},g)=>C.createElement("svg",{ref:g,...v1,width:i,height:i,stroke:a,strokeWidth:o?Number(r)*24/Number(i):r,className:G0("lucide",c),...!f&&!x1(p)&&{"aria-hidden":"true"},...p},[...d.map(([y,v])=>C.createElement(y,v)),...Array.isArray(f)?f:[f]]));const vt=(a,i)=>{const r=C.forwardRef(({className:o,...c},f)=>C.createElement(b1,{ref:f,iconNode:i,className:G0(`lucide-${y1(Ap(a))}`,`lucide-${a}`,o),...c}));return r.displayName=Ap(a),r};const S1=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],X0=vt("activity",S1);const T1=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],Z0=vt("arrow-down-right",T1);const A1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],N1=vt("bell-off",A1);const j1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Np=vt("bell",j1);const E1=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],M1=vt("box",E1);const w1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Aa=vt("check",w1);const D1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jn=vt("chevron-down",D1);const C1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ar=vt("chevron-right",C1);const R1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],z1=vt("chevron-up",R1);const O1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],hr=vt("circle-alert",O1);const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ir=vt("circle",_1);const V1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Q0=vt("clock",V1);const U1=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],jp=vt("coins",U1);const B1=[["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z",key:"1f1r0c"}]],L1=vt("diamond",B1);const H1=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],zc=vt("file-pen",H1);const k1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],K0=vt("file-text",k1);const q1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Y1=vt("folder",q1);const G1=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],X1=vt("funnel",G1);const Z1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],J0=vt("globe",Z1);const Q1=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],K1=vt("inbox",Q1);const J1=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],F1=vt("layout-dashboard",J1);const $1=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],P1=vt("layout-list",$1);const W1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],js=vt("loader-circle",W1);const I1=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],F0=vt("message-circle-question-mark",I1);const tb=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],eb=vt("refresh-cw",tb);const nb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ab=vt("search",nb);const ib=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],sb=vt("sparkles",ib);const lb=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],rb=vt("square-check-big",lb);const ob=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ub=vt("square",ob);const cb=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$0=vt("terminal",cb);const fb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],db=vt("users",fb);const hb=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],mb=vt("wifi-off",hb);const pb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hi=vt("x",pb);const yb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],gb=vt("zap",yb),vb=50234,Oc=C.createContext({});function _c(a){const i=C.useRef(null);return i.current===null&&(i.current=a()),i.current}const P0=typeof window<"u",W0=P0?C.useLayoutEffect:C.useEffect,mr=C.createContext(null);function Vc(a,i){a.indexOf(i)===-1&&a.push(i)}function Uc(a,i){const r=a.indexOf(i);r>-1&&a.splice(r,1)}const We=(a,i,r)=>r>i?i:r<a?a:r;let Bc=()=>{};const bn={},I0=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function ty(a){return typeof a=="object"&&a!==null}const ey=a=>/^0[^.\s]+$/u.test(a);function Lc(a){let i;return()=>(i===void 0&&(i=a()),i)}const ke=a=>a,xb=(a,i)=>r=>i(a(r)),Es=(...a)=>a.reduce(xb),bs=(a,i,r)=>{const o=i-a;return o===0?1:(r-a)/o};class Hc{constructor(){this.subscriptions=[]}add(i){return Vc(this.subscriptions,i),()=>Uc(this.subscriptions,i)}notify(i,r,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,r,o);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xn=a=>a*1e3,He=a=>a/1e3;function ny(a,i){return i?a*(1e3/i):0}const ay=(a,i,r)=>(((1-3*r+3*i)*a+(3*r-6*i))*a+3*i)*a,bb=1e-7,Sb=12;function Tb(a,i,r,o,c){let f,d,p=0;do d=i+(r-i)/2,f=ay(d,o,c)-a,f>0?r=d:i=d;while(Math.abs(f)>bb&&++p<Sb);return d}function Ms(a,i,r,o){if(a===i&&r===o)return ke;const c=f=>Tb(f,0,1,a,r);return f=>f===0||f===1?f:ay(c(f),i,o)}const iy=a=>i=>i<=.5?a(2*i)/2:(2-a(2*(1-i)))/2,sy=a=>i=>1-a(1-i),ly=Ms(.33,1.53,.69,.99),kc=sy(ly),ry=iy(kc),oy=a=>(a*=2)<1?.5*kc(a):.5*(2-Math.pow(2,-10*(a-1))),qc=a=>1-Math.sin(Math.acos(a)),uy=sy(qc),cy=iy(qc),Ab=Ms(.42,0,1,1),Nb=Ms(0,0,.58,1),fy=Ms(.42,0,.58,1),jb=a=>Array.isArray(a)&&typeof a[0]!="number",dy=a=>Array.isArray(a)&&typeof a[0]=="number",Eb={linear:ke,easeIn:Ab,easeInOut:fy,easeOut:Nb,circIn:qc,circInOut:cy,circOut:uy,backIn:kc,backInOut:ry,backOut:ly,anticipate:oy},Mb=a=>typeof a=="string",Ep=a=>{if(dy(a)){Bc(a.length===4);const[i,r,o,c]=a;return Ms(i,r,o,c)}else if(Mb(a))return Eb[a];return a},Fl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wb(a,i){let r=new Set,o=new Set,c=!1,f=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(v){d.has(v)&&(y.schedule(v),a()),v(p)}const y={schedule:(v,b=!1,S=!1)=>{const M=S&&c?r:o;return b&&d.add(v),M.has(v)||M.add(v),v},cancel:v=>{o.delete(v),d.delete(v)},process:v=>{if(p=v,c){f=!0;return}c=!0,[r,o]=[o,r],r.forEach(g),r.clear(),c=!1,f&&(f=!1,y.process(v))}};return y}const Db=40;function hy(a,i){let r=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>r=!0,d=Fl.reduce((B,X)=>(B[X]=wb(f),B),{}),{setup:p,read:g,resolveKeyframes:y,preUpdate:v,update:b,preRender:S,render:A,postRender:M}=d,O=()=>{const B=bn.useManualTiming?c.timestamp:performance.now();r=!1,bn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(B-c.timestamp,Db),1)),c.timestamp=B,c.isProcessing=!0,p.process(c),g.process(c),y.process(c),v.process(c),b.process(c),S.process(c),A.process(c),M.process(c),c.isProcessing=!1,r&&i&&(o=!1,a(O))},k=()=>{r=!0,o=!0,c.isProcessing||a(O)};return{schedule:Fl.reduce((B,X)=>{const Z=d[X];return B[X]=(at,I=!1,K=!1)=>(r||k(),Z.schedule(at,I,K)),B},{}),cancel:B=>{for(let X=0;X<Fl.length;X++)d[Fl[X]].cancel(B)},state:c,steps:d}}const{schedule:Ct,cancel:Fn,state:ae,steps:Gu}=hy(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0);let Il;function Cb(){Il=void 0}const oe={now:()=>(Il===void 0&&oe.set(ae.isProcessing||bn.useManualTiming?ae.timestamp:performance.now()),Il),set:a=>{Il=a,queueMicrotask(Cb)}},my=a=>i=>typeof i=="string"&&i.startsWith(a),py=my("--"),Rb=my("var(--"),Yc=a=>Rb(a)?zb.test(a.split("/*")[0].trim()):!1,zb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const pi={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},Ss={...pi,transform:a=>We(0,1,a)},$l={...pi,default:1},ys=a=>Math.round(a*1e5)/1e5,Gc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ob(a){return a==null}const _b=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xc=(a,i)=>r=>!!(typeof r=="string"&&_b.test(r)&&r.startsWith(a)||i&&!Ob(r)&&Object.prototype.hasOwnProperty.call(r,i)),yy=(a,i,r)=>o=>{if(typeof o!="string")return o;const[c,f,d,p]=o.match(Gc);return{[a]:parseFloat(c),[i]:parseFloat(f),[r]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},Vb=a=>We(0,255,a),Xu={...pi,transform:a=>Math.round(Vb(a))},xa={test:Xc("rgb","red"),parse:yy("red","green","blue"),transform:({red:a,green:i,blue:r,alpha:o=1})=>"rgba("+Xu.transform(a)+", "+Xu.transform(i)+", "+Xu.transform(r)+", "+ys(Ss.transform(o))+")"};function Ub(a){let i="",r="",o="",c="";return a.length>5?(i=a.substring(1,3),r=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(i=a.substring(1,2),r=a.substring(2,3),o=a.substring(3,4),c=a.substring(4,5),i+=i,r+=r,o+=o,c+=c),{red:parseInt(i,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const rc={test:Xc("#"),parse:Ub,transform:xa.transform},ws=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Qn=ws("deg"),Pe=ws("%"),F=ws("px"),Bb=ws("vh"),Lb=ws("vw"),wp={...Pe,parse:a=>Pe.parse(a)/100,transform:a=>Pe.transform(a*100)},oi={test:Xc("hsl","hue"),parse:yy("hue","saturation","lightness"),transform:({hue:a,saturation:i,lightness:r,alpha:o=1})=>"hsla("+Math.round(a)+", "+Pe.transform(ys(i))+", "+Pe.transform(ys(r))+", "+ys(Ss.transform(o))+")"},Kt={test:a=>xa.test(a)||rc.test(a)||oi.test(a),parse:a=>xa.test(a)?xa.parse(a):oi.test(a)?oi.parse(a):rc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?xa.transform(a):oi.transform(a),getAnimatableNone:a=>{const i=Kt.parse(a);return i.alpha=0,Kt.transform(i)}},Hb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kb(a){return isNaN(a)&&typeof a=="string"&&(a.match(Gc)?.length||0)+(a.match(Hb)?.length||0)>0}const gy="number",vy="color",qb="var",Yb="var(",Dp="${}",Gb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ts(a){const i=a.toString(),r=[],o={color:[],number:[],var:[]},c=[];let f=0;const p=i.replace(Gb,g=>(Kt.test(g)?(o.color.push(f),c.push(vy),r.push(Kt.parse(g))):g.startsWith(Yb)?(o.var.push(f),c.push(qb),r.push(g)):(o.number.push(f),c.push(gy),r.push(parseFloat(g))),++f,Dp)).split(Dp);return{values:r,split:p,indexes:o,types:c}}function xy(a){return Ts(a).values}function by(a){const{split:i,types:r}=Ts(a),o=i.length;return c=>{let f="";for(let d=0;d<o;d++)if(f+=i[d],c[d]!==void 0){const p=r[d];p===gy?f+=ys(c[d]):p===vy?f+=Kt.transform(c[d]):f+=c[d]}return f}}const Xb=a=>typeof a=="number"?0:Kt.test(a)?Kt.getAnimatableNone(a):a;function Zb(a){const i=xy(a);return by(a)(i.map(Xb))}const $n={test:kb,parse:xy,createTransformer:by,getAnimatableNone:Zb};function Zu(a,i,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?a+(i-a)*6*r:r<1/2?i:r<2/3?a+(i-a)*(2/3-r)*6:a}function Qb({hue:a,saturation:i,lightness:r,alpha:o}){a/=360,i/=100,r/=100;let c=0,f=0,d=0;if(!i)c=f=d=r;else{const p=r<.5?r*(1+i):r+i-r*i,g=2*r-p;c=Zu(g,p,a+1/3),f=Zu(g,p,a),d=Zu(g,p,a-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:o}}function sr(a,i){return r=>r>0?i:a}const Vt=(a,i,r)=>a+(i-a)*r,Qu=(a,i,r)=>{const o=a*a,c=r*(i*i-o)+o;return c<0?0:Math.sqrt(c)},Kb=[rc,xa,oi],Jb=a=>Kb.find(i=>i.test(a));function Cp(a){const i=Jb(a);if(!i)return!1;let r=i.parse(a);return i===oi&&(r=Qb(r)),r}const Rp=(a,i)=>{const r=Cp(a),o=Cp(i);if(!r||!o)return sr(a,i);const c={...r};return f=>(c.red=Qu(r.red,o.red,f),c.green=Qu(r.green,o.green,f),c.blue=Qu(r.blue,o.blue,f),c.alpha=Vt(r.alpha,o.alpha,f),xa.transform(c))},oc=new Set(["none","hidden"]);function Fb(a,i){return oc.has(a)?r=>r<=0?a:i:r=>r>=1?i:a}function $b(a,i){return r=>Vt(a,i,r)}function Zc(a){return typeof a=="number"?$b:typeof a=="string"?Yc(a)?sr:Kt.test(a)?Rp:Ib:Array.isArray(a)?Sy:typeof a=="object"?Kt.test(a)?Rp:Pb:sr}function Sy(a,i){const r=[...a],o=r.length,c=a.map((f,d)=>Zc(f)(f,i[d]));return f=>{for(let d=0;d<o;d++)r[d]=c[d](f);return r}}function Pb(a,i){const r={...a,...i},o={};for(const c in r)a[c]!==void 0&&i[c]!==void 0&&(o[c]=Zc(a[c])(a[c],i[c]));return c=>{for(const f in o)r[f]=o[f](c);return r}}function Wb(a,i){const r=[],o={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=a.indexes[f][o[f]],p=a.values[d]??0;r[c]=p,o[f]++}return r}const Ib=(a,i)=>{const r=$n.createTransformer(i),o=Ts(a),c=Ts(i);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?oc.has(a)&&!c.values.length||oc.has(i)&&!o.values.length?Fb(a,i):Es(Sy(Wb(o,c),c.values),r):sr(a,i)};function Ty(a,i,r){return typeof a=="number"&&typeof i=="number"&&typeof r=="number"?Vt(a,i,r):Zc(a)(a,i)}const t2=a=>{const i=({timestamp:r})=>a(r);return{start:(r=!0)=>Ct.update(i,r),stop:()=>Fn(i),now:()=>ae.isProcessing?ae.timestamp:oe.now()}},Ay=(a,i,r=10)=>{let o="";const c=Math.max(Math.round(i/r),2);for(let f=0;f<c;f++)o+=Math.round(a(f/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},lr=2e4;function Qc(a){let i=0;const r=50;let o=a.next(i);for(;!o.done&&i<lr;)i+=r,o=a.next(i);return i>=lr?1/0:i}function e2(a,i=100,r){const o=r({...a,keyframes:[0,i]}),c=Math.min(Qc(o),lr);return{type:"keyframes",ease:f=>o.next(c*f).value/i,duration:He(c)}}const n2=5;function Ny(a,i,r){const o=Math.max(i-n2,0);return ny(r-a(o),i-o)}const Ht={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ku=.001;function a2({duration:a=Ht.duration,bounce:i=Ht.bounce,velocity:r=Ht.velocity,mass:o=Ht.mass}){let c,f,d=1-i;d=We(Ht.minDamping,Ht.maxDamping,d),a=We(Ht.minDuration,Ht.maxDuration,He(a)),d<1?(c=y=>{const v=y*d,b=v*a,S=v-r,A=uc(y,d),M=Math.exp(-b);return Ku-S/A*M},f=y=>{const b=y*d*a,S=b*r+r,A=Math.pow(d,2)*Math.pow(y,2)*a,M=Math.exp(-b),O=uc(Math.pow(y,2),d);return(-c(y)+Ku>0?-1:1)*((S-A)*M)/O}):(c=y=>{const v=Math.exp(-y*a),b=(y-r)*a+1;return-Ku+v*b},f=y=>{const v=Math.exp(-y*a),b=(r-y)*(a*a);return v*b});const p=5/a,g=s2(c,f,p);if(a=xn(a),isNaN(g))return{stiffness:Ht.stiffness,damping:Ht.damping,duration:a};{const y=Math.pow(g,2)*o;return{stiffness:y,damping:d*2*Math.sqrt(o*y),duration:a}}}const i2=12;function s2(a,i,r){let o=r;for(let c=1;c<i2;c++)o=o-a(o)/i(o);return o}function uc(a,i){return a*Math.sqrt(1-i*i)}const l2=["duration","bounce"],r2=["stiffness","damping","mass"];function zp(a,i){return i.some(r=>a[r]!==void 0)}function o2(a){let i={velocity:Ht.velocity,stiffness:Ht.stiffness,damping:Ht.damping,mass:Ht.mass,isResolvedFromDuration:!1,...a};if(!zp(a,r2)&&zp(a,l2))if(a.visualDuration){const r=a.visualDuration,o=2*Math.PI/(r*1.2),c=o*o,f=2*We(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Ht.mass,stiffness:c,damping:f}}else{const r=a2(a);i={...i,...r,mass:Ht.mass},i.isResolvedFromDuration=!0}return i}function rr(a=Ht.visualDuration,i=Ht.bounce){const r=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:i}:a;let{restSpeed:o,restDelta:c}=r;const f=r.keyframes[0],d=r.keyframes[r.keyframes.length-1],p={done:!1,value:f},{stiffness:g,damping:y,mass:v,duration:b,velocity:S,isResolvedFromDuration:A}=o2({...r,velocity:-He(r.velocity||0)}),M=S||0,O=y/(2*Math.sqrt(g*v)),k=d-f,V=He(Math.sqrt(g/v)),Y=Math.abs(k)<5;o||(o=Y?Ht.restSpeed.granular:Ht.restSpeed.default),c||(c=Y?Ht.restDelta.granular:Ht.restDelta.default);let B;if(O<1){const Z=uc(V,O);B=at=>{const I=Math.exp(-O*V*at);return d-I*((M+O*V*k)/Z*Math.sin(Z*at)+k*Math.cos(Z*at))}}else if(O===1)B=Z=>d-Math.exp(-V*Z)*(k+(M+V*k)*Z);else{const Z=V*Math.sqrt(O*O-1);B=at=>{const I=Math.exp(-O*V*at),K=Math.min(Z*at,300);return d-I*((M+O*V*k)*Math.sinh(K)+Z*k*Math.cosh(K))/Z}}const X={calculatedDuration:A&&b||null,next:Z=>{const at=B(Z);if(A)p.done=Z>=b;else{let I=Z===0?M:0;O<1&&(I=Z===0?xn(M):Ny(B,Z,at));const K=Math.abs(I)<=o,it=Math.abs(d-at)<=c;p.done=K&&it}return p.value=p.done?d:at,p},toString:()=>{const Z=Math.min(Qc(X),lr),at=Ay(I=>X.next(Z*I).value,Z,30);return Z+"ms "+at},toTransition:()=>{}};return X}rr.applyToOptions=a=>{const i=e2(a,100,rr);return a.ease=i.ease,a.duration=xn(i.duration),a.type="keyframes",a};function cc({keyframes:a,velocity:i=0,power:r=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:p,max:g,restDelta:y=.5,restSpeed:v}){const b=a[0],S={done:!1,value:b},A=K=>p!==void 0&&K<p||g!==void 0&&K>g,M=K=>p===void 0?g:g===void 0||Math.abs(p-K)<Math.abs(g-K)?p:g;let O=r*i;const k=b+O,V=d===void 0?k:d(k);V!==k&&(O=V-b);const Y=K=>-O*Math.exp(-K/o),B=K=>V+Y(K),X=K=>{const it=Y(K),jt=B(K);S.done=Math.abs(it)<=y,S.value=S.done?V:jt};let Z,at;const I=K=>{A(S.value)&&(Z=K,at=rr({keyframes:[S.value,M(S.value)],velocity:Ny(B,K,S.value),damping:c,stiffness:f,restDelta:y,restSpeed:v}))};return I(0),{calculatedDuration:null,next:K=>{let it=!1;return!at&&Z===void 0&&(it=!0,X(K),I(K)),Z!==void 0&&K>=Z?at.next(K-Z):(!it&&X(K),S)}}}function u2(a,i,r){const o=[],c=r||bn.mix||Ty,f=a.length-1;for(let d=0;d<f;d++){let p=c(a[d],a[d+1]);if(i){const g=Array.isArray(i)?i[d]||ke:i;p=Es(g,p)}o.push(p)}return o}function c2(a,i,{clamp:r=!0,ease:o,mixer:c}={}){const f=a.length;if(Bc(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),i=[...i].reverse());const p=u2(i,o,c),g=p.length,y=v=>{if(d&&v<a[0])return i[0];let b=0;if(g>1)for(;b<a.length-2&&!(v<a[b+1]);b++);const S=bs(a[b],a[b+1],v);return p[b](S)};return r?v=>y(We(a[0],a[f-1],v)):y}function f2(a,i){const r=a[a.length-1];for(let o=1;o<=i;o++){const c=bs(0,i,o);a.push(Vt(r,1,c))}}function d2(a){const i=[0];return f2(i,a.length-1),i}function h2(a,i){return a.map(r=>r*i)}function m2(a,i){return a.map(()=>i||fy).splice(0,a.length-1)}function gs({duration:a=300,keyframes:i,times:r,ease:o="easeInOut"}){const c=jb(o)?o.map(Ep):Ep(o),f={done:!1,value:i[0]},d=h2(r&&r.length===i.length?r:d2(i),a),p=c2(d,i,{ease:Array.isArray(c)?c:m2(i,c)});return{calculatedDuration:a,next:g=>(f.value=p(g),f.done=g>=a,f)}}const p2=a=>a!==null;function Kc(a,{repeat:i,repeatType:r="loop"},o,c=1){const f=a.filter(p2),p=c<0||i&&r!=="loop"&&i%2===1?0:f.length-1;return!p||o===void 0?f[p]:o}const y2={decay:cc,inertia:cc,tween:gs,keyframes:gs,spring:rr};function jy(a){typeof a.type=="string"&&(a.type=y2[a.type])}class Jc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,r){return this.finished.then(i,r)}}const g2=a=>a/100;class Fc extends Jc{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==oe.now()&&this.tick(oe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;jy(i);const{type:r=gs,repeat:o=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:p}=i;const g=r||gs;g!==gs&&typeof p[0]!="number"&&(this.mixKeyframes=Es(g2,Ty(p[0],p[1])),p=[0,100]);const y=g({...i,keyframes:p});f==="mirror"&&(this.mirroredGenerator=g({...i,keyframes:[...p].reverse(),velocity:-d})),y.calculatedDuration===null&&(y.calculatedDuration=Qc(y));const{calculatedDuration:v}=y;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=y}updateTime(i){const r=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(i,r=!1){const{generator:o,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:y=0,keyframes:v,repeat:b,repeatType:S,repeatDelay:A,type:M,onUpdate:O,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),r?this.currentTime=i:this.updateTime(i);const V=this.currentTime-y*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?V<0:V>c;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let B=this.currentTime,X=o;if(b){const K=Math.min(this.currentTime,c)/p;let it=Math.floor(K),jt=K%1;!jt&&K>=1&&(jt=1),jt===1&&it--,it=Math.min(it,b+1),it%2&&(S==="reverse"?(jt=1-jt,A&&(jt-=A/p)):S==="mirror"&&(X=d)),B=We(0,1,jt)*p}const Z=Y?{done:!1,value:v[0]}:X.next(B);f&&(Z.value=f(Z.value));let{done:at}=Z;!Y&&g!==null&&(at=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&at);return I&&M!==cc&&(Z.value=Kc(v,this.options,k,this.speed)),O&&O(Z.value),I&&this.finish(),Z}then(i,r){return this.finished.then(i,r)}get duration(){return He(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+He(i)}get time(){return He(this.currentTime)}set time(i){i=xn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(oe.now());const r=this.playbackSpeed!==i;this.playbackSpeed=i,r&&(this.time=He(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=t2,startTime:r}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function v2(a){for(let i=1;i<a.length;i++)a[i]??(a[i]=a[i-1])}const ba=a=>a*180/Math.PI,fc=a=>{const i=ba(Math.atan2(a[1],a[0]));return dc(i)},x2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:fc,rotateZ:fc,skewX:a=>ba(Math.atan(a[1])),skewY:a=>ba(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},dc=a=>(a=a%360,a<0&&(a+=360),a),Op=fc,_p=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Vp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),b2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_p,scaleY:Vp,scale:a=>(_p(a)+Vp(a))/2,rotateX:a=>dc(ba(Math.atan2(a[6],a[5]))),rotateY:a=>dc(ba(Math.atan2(-a[2],a[0]))),rotateZ:Op,rotate:Op,skewX:a=>ba(Math.atan(a[4])),skewY:a=>ba(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function hc(a){return a.includes("scale")?1:0}function mc(a,i){if(!a||a==="none")return hc(i);const r=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(r)o=b2,c=r;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=x2,c=p}if(!c)return hc(i);const f=o[i],d=c[1].split(",").map(T2);return typeof f=="function"?f(d):d[f]}const S2=(a,i)=>{const{transform:r="none"}=getComputedStyle(a);return mc(r,i)};function T2(a){return parseFloat(a.trim())}const yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gi=new Set(yi),Up=a=>a===pi||a===F,A2=new Set(["x","y","z"]),N2=yi.filter(a=>!A2.has(a));function j2(a){const i=[];return N2.forEach(r=>{const o=a.getValue(r);o!==void 0&&(i.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),i}const Kn={width:({x:a},{paddingLeft:i="0",paddingRight:r="0"})=>a.max-a.min-parseFloat(i)-parseFloat(r),height:({y:a},{paddingTop:i="0",paddingBottom:r="0"})=>a.max-a.min-parseFloat(i)-parseFloat(r),top:(a,{top:i})=>parseFloat(i),left:(a,{left:i})=>parseFloat(i),bottom:({y:a},{top:i})=>parseFloat(i)+(a.max-a.min),right:({x:a},{left:i})=>parseFloat(i)+(a.max-a.min),x:(a,{transform:i})=>mc(i,"x"),y:(a,{transform:i})=>mc(i,"y")};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const Sa=new Set;let pc=!1,yc=!1,gc=!1;function Ey(){if(yc){const a=Array.from(Sa).filter(o=>o.needsMeasurement),i=new Set(a.map(o=>o.element)),r=new Map;i.forEach(o=>{const c=j2(o);c.length&&(r.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),i.forEach(o=>{o.render();const c=r.get(o);c&&c.forEach(([f,d])=>{o.getValue(f)?.set(d)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}yc=!1,pc=!1,Sa.forEach(a=>a.complete(gc)),Sa.clear()}function My(){Sa.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(yc=!0)})}function E2(){gc=!0,My(),Ey(),gc=!1}class $c{constructor(i,r,o,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=r,this.name=o,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Sa.add(this),pc||(pc=!0,Ct.read(My),Ct.resolveKeyframes(Ey))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:r,element:o,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(o&&r){const p=o.readValue(r,d);p!=null&&(i[0]=p)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}v2(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Sa.delete(this)}cancel(){this.state==="scheduled"&&(Sa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const M2=a=>a.startsWith("--");function w2(a,i,r){M2(i)?a.style.setProperty(i,r):a.style[i]=r}const D2=Lc(()=>window.ScrollTimeline!==void 0),C2={};function R2(a,i){const r=Lc(a);return()=>C2[i]??r()}const wy=R2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ms=([a,i,r,o])=>`cubic-bezier(${a}, ${i}, ${r}, ${o})`,Bp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ms([0,.65,.55,1]),circOut:ms([.55,0,1,.45]),backIn:ms([.31,.01,.66,-.59]),backOut:ms([.33,1.53,.69,.99])};function Dy(a,i){if(a)return typeof a=="function"?wy()?Ay(a,i):"ease-out":dy(a)?ms(a):Array.isArray(a)?a.map(r=>Dy(r,i)||Bp.easeOut):Bp[a]}function z2(a,i,r,{delay:o=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:p="easeOut",times:g}={},y=void 0){const v={[i]:r};g&&(v.offset=g);const b=Dy(p,c);Array.isArray(b)&&(v.easing=b);const S={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return y&&(S.pseudoElement=y),a.animate(v,S)}function Cy(a){return typeof a=="function"&&"applyToOptions"in a}function O2({type:a,...i}){return Cy(a)&&wy()?a.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class _2 extends Jc{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:r,name:o,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:p,onComplete:g}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Bc(typeof i.type!="string");const y=O2(i);this.animation=z2(r,o,c,y,f),y.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=Kc(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(v):w2(r,o,v),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return He(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+He(i)}get time(){return He(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=xn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&D2()?(this.animation.timeline=i,ke):r(this)}}const Ry={anticipate:oy,backInOut:ry,circInOut:cy};function V2(a){return a in Ry}function U2(a){typeof a.ease=="string"&&V2(a.ease)&&(a.ease=Ry[a.ease])}const Ju=10;class B2 extends _2{constructor(i){U2(i),jy(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:r,onUpdate:o,onComplete:c,element:f,...d}=this.options;if(!r)return;if(i!==void 0){r.set(i);return}const p=new Fc({...d,autoplay:!1}),g=Math.max(Ju,oe.now()-this.startTime),y=We(0,Ju,g-Ju);r.setWithVelocity(p.sample(Math.max(0,g-y)).value,p.sample(g).value,y),p.stop()}}const Lp=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&($n.test(a)||a==="0")&&!a.startsWith("url("));function L2(a){const i=a[0];if(a.length===1)return!0;for(let r=0;r<a.length;r++)if(a[r]!==i)return!0}function H2(a,i,r,o){const c=a[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=a[a.length-1],d=Lp(c,i),p=Lp(f,i);return!d||!p?!1:L2(a)||(r==="spring"||Cy(r))&&o}function vc(a){a.duration=0,a.type="keyframes"}const k2=new Set(["opacity","clipPath","filter","transform"]),q2=Lc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Y2(a){const{motionValue:i,name:r,repeatDelay:o,repeatType:c,damping:f,type:d}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=i.owner.getProps();return q2()&&r&&k2.has(r)&&(r!=="transform"||!y)&&!g&&!o&&c!=="mirror"&&f!==0&&d!=="inertia"}const G2=40;class X2 extends Jc{constructor({autoplay:i=!0,delay:r=0,type:o="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:p,name:g,motionValue:y,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=oe.now();const S={autoplay:i,delay:r,type:o,repeat:c,repeatDelay:f,repeatType:d,name:g,motionValue:y,element:v,...b},A=v?.KeyframeResolver||$c;this.keyframeResolver=new A(p,(M,O,k)=>this.onKeyframesResolved(M,O,S,!k),g,y,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,r,o,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:p,delay:g,isHandoff:y,onUpdate:v}=o;this.resolvedAt=oe.now(),H2(i,f,d,p)||((bn.instantAnimations||!g)&&v?.(Kc(i,o,r)),i[0]=i[i.length-1],vc(o),o.repeat=0);const S={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>G2?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:i},A=!y&&Y2(S),M=S.motionValue?.owner?.current,O=A?new B2({...S,element:M}):new Fc(S);O.finished.then(()=>{this.notifyFinished()}).catch(ke),this.pendingTimeline&&(this.stopTimeline=O.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=O}get finished(){return this._animation?this.animation.finished:this._finished}then(i,r){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),E2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function zy(a,i,r,o=0,c=1){const f=Array.from(a).sort((y,v)=>y.sortNodePosition(v)).indexOf(i),d=a.size,p=(d-1)*o;return typeof r=="function"?r(f,d):c===1?f*o:p-f*o}const Z2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Q2(a){const i=Z2.exec(a);if(!i)return[,];const[,r,o,c]=i;return[`--${r??o}`,c]}function Oy(a,i,r=1){const[o,c]=Q2(a);if(!o)return;const f=window.getComputedStyle(i).getPropertyValue(o);if(f){const d=f.trim();return I0(d)?parseFloat(d):d}return Yc(c)?Oy(c,i,r+1):c}const K2={type:"spring",stiffness:500,damping:25,restSpeed:10},J2=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),F2={type:"keyframes",duration:.8},$2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P2=(a,{keyframes:i})=>i.length>2?F2:gi.has(a)?a.startsWith("scale")?J2(i[1]):K2:$2,W2=a=>a!==null;function I2(a,{repeat:i,repeatType:r="loop"},o){const c=a.filter(W2),f=i&&r!=="loop"&&i%2===1?0:c.length-1;return c[f]}function Pc(a,i){return a?.[i]??a?.default??a}function tS({when:a,delay:i,delayChildren:r,staggerChildren:o,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:p,from:g,elapsed:y,...v}){return!!Object.keys(v).length}const Wc=(a,i,r,o={},c,f)=>d=>{const p=Pc(o,a)||{},g=p.delay||o.delay||0;let{elapsed:y=0}=o;y=y-xn(g);const v={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-y,onUpdate:S=>{i.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:a,motionValue:i,element:f?void 0:c};tS(p)||Object.assign(v,P2(a,v)),v.duration&&(v.duration=xn(v.duration)),v.repeatDelay&&(v.repeatDelay=xn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(vc(v),v.delay===0&&(b=!0)),(bn.instantAnimations||bn.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,vc(v),v.delay=0),v.allowFlatten=!p.type&&!p.ease,b&&!f&&i.get()!==void 0){const S=I2(v.keyframes,p);if(S!==void 0){Ct.update(()=>{v.onUpdate(S),v.onComplete()});return}}return p.isSync?new Fc(v):new X2(v)};function Hp(a){const i=[{},{}];return a?.values.forEach((r,o)=>{i[0][o]=r.get(),i[1][o]=r.getVelocity()}),i}function Ic(a,i,r,o){if(typeof i=="function"){const[c,f]=Hp(o);i=i(r!==void 0?r:a.custom,c,f)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,f]=Hp(o);i=i(r!==void 0?r:a.custom,c,f)}return i}function di(a,i,r){const o=a.getProps();return Ic(o,i,r!==void 0?r:o.custom,a)}const _y=new Set(["width","height","top","left","right","bottom",...yi]),kp=30,eS=a=>!isNaN(parseFloat(a));class nS{constructor(i,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=oe.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=r.owner}setCurrent(i){this.current=i,this.updatedAt=oe.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=eS(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,r){this.events[i]||(this.events[i]=new Hc);const o=this.events[i].add(r);return i==="change"?()=>{o(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,r){this.passiveEffect=i,this.stopPassiveEffect=r}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-o}jump(i,r=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>kp)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,kp);return ny(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(i){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=i(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mi(a,i){return new nS(a,i)}const xc=a=>Array.isArray(a);function aS(a,i,r){a.hasValue(i)?a.getValue(i).set(r):a.addValue(i,mi(r))}function iS(a){return xc(a)?a[a.length-1]||0:a}function sS(a,i){const r=di(a,i);let{transitionEnd:o={},transition:c={},...f}=r||{};f={...f,...o};for(const d in f){const p=iS(f[d]);aS(a,d,p)}}const se=a=>!!(a&&a.getVelocity);function lS(a){return!!(se(a)&&a.add)}function bc(a,i){const r=a.getValue("willChange");if(lS(r))return r.add(i);if(!r&&bn.WillChange){const o=new bn.WillChange("auto");a.addValue("willChange",o),o.add(i)}}function tf(a){return a.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const rS="framerAppearId",Vy="data-"+tf(rS);function Uy(a){return a.props[Vy]}function oS({protectedKeys:a,needsAnimating:i},r){const o=a.hasOwnProperty(r)&&i[r]!==!0;return i[r]=!1,o}function By(a,i,{delay:r=0,transitionOverride:o,type:c}={}){let{transition:f=a.getDefaultTransition(),transitionEnd:d,...p}=i;const g=f?.reduceMotion;o&&(f=o);const y=[],v=c&&a.animationState&&a.animationState.getState()[c];for(const b in p){const S=a.getValue(b,a.latestValues[b]??null),A=p[b];if(A===void 0||v&&oS(v,b))continue;const M={delay:r,...Pc(f||{},b)},O=S.get();if(O!==void 0&&!S.isAnimating&&!Array.isArray(A)&&A===O&&!M.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const B=Uy(a);if(B){const X=window.MotionHandoffAnimation(B,b,Ct);X!==null&&(M.startTime=X,k=!0)}}bc(a,b);const V=g??a.shouldReduceMotion;S.start(Wc(b,S,A,V&&_y.has(b)?{type:!1}:M,a,k));const Y=S.animation;Y&&y.push(Y)}return d&&Promise.all(y).then(()=>{Ct.update(()=>{d&&sS(a,d)})}),y}function Sc(a,i,r={}){const o=di(a,i,r.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(c=r.transitionOverride);const f=o?()=>Promise.all(By(a,o,r)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=c;return uS(a,i,g,y,v,b,r)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,y]=p==="beforeChildren"?[f,d]:[d,f];return g().then(()=>y())}else return Promise.all([f(),d(r.delay)])}function uS(a,i,r=0,o=0,c=0,f=1,d){const p=[];for(const g of a.variantChildren)g.notify("AnimationStart",i),p.push(Sc(g,i,{...d,delay:r+(typeof o=="function"?0:o)+zy(a.variantChildren,g,o,c,f)}).then(()=>g.notify("AnimationComplete",i)));return Promise.all(p)}function cS(a,i,r={}){a.notify("AnimationStart",i);let o;if(Array.isArray(i)){const c=i.map(f=>Sc(a,f,r));o=Promise.all(c)}else if(typeof i=="string")o=Sc(a,i,r);else{const c=typeof i=="function"?di(a,i,r.custom):i;o=Promise.all(By(a,c,r))}return o.then(()=>{a.notify("AnimationComplete",i)})}const fS={test:a=>a==="auto",parse:a=>a},Ly=a=>i=>i.test(a),Hy=[pi,F,Pe,Qn,Lb,Bb,fS],qp=a=>Hy.find(Ly(a));function dS(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||ey(a):!0}const hS=new Set(["brightness","contrast","saturate","opacity"]);function mS(a){const[i,r]=a.slice(0,-1).split("(");if(i==="drop-shadow")return a;const[o]=r.match(Gc)||[];if(!o)return a;const c=r.replace(o,"");let f=hS.has(i)?1:0;return o!==r&&(f*=100),i+"("+f+c+")"}const pS=/\b([a-z-]*)\(.*?\)/gu,Tc={...$n,getAnimatableNone:a=>{const i=a.match(pS);return i?i.map(mS).join(" "):a}},Yp={...pi,transform:Math.round},yS={rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:$l,scaleX:$l,scaleY:$l,scaleZ:$l,skew:Qn,skewX:Qn,skewY:Qn,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Ss,originX:wp,originY:wp,originZ:F},ef={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,...yS,zIndex:Yp,fillOpacity:Ss,strokeOpacity:Ss,numOctaves:Yp},gS={...ef,color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:Tc,WebkitFilter:Tc},ky=a=>gS[a];function qy(a,i){let r=ky(a);return r!==Tc&&(r=$n),r.getAnimatableNone?r.getAnimatableNone(i):void 0}const vS=new Set(["auto","none","0"]);function xS(a,i,r){let o=0,c;for(;o<a.length&&!c;){const f=a[o];typeof f=="string"&&!vS.has(f)&&Ts(f).values.length&&(c=a[o]),o++}if(c&&r)for(const f of i)a[f]=qy(r,c)}class bS extends $c{constructor(i,r,o,c,f){super(i,r,o,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let b=i[v];if(typeof b=="string"&&(b=b.trim(),Yc(b))){const S=Oy(b,r.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!_y.has(o)||i.length!==2)return;const[c,f]=i,d=qp(c),p=qp(f),g=Mp(c),y=Mp(f);if(g!==y&&Kn[o]){this.needsMeasurement=!0;return}if(d!==p)if(Up(d)&&Up(p))for(let v=0;v<i.length;v++){const b=i[v];typeof b=="string"&&(i[v]=parseFloat(b))}else Kn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:r}=this,o=[];for(let c=0;c<i.length;c++)(i[c]===null||dS(i[c]))&&o.push(c);o.length&&xS(i,o,r)}measureInitialState(){const{element:i,unresolvedKeyframes:r,name:o}=this;if(!i||!i.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kn[o](i.measureViewportBox(),window.getComputedStyle(i.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&i.getValue(o,c).jump(c,!1)}measureEndState(){const{element:i,name:r,unresolvedKeyframes:o}=this;if(!i||!i.current)return;const c=i.getValue(r);c&&c.jump(this.measuredOrigin,!1);const f=o.length-1,d=o[f];o[f]=Kn[r](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{i.getValue(p).set(g)}),this.resolveNoneKeyframes()}}function SS(a,i,r){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=r?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(o=>o!=null)}const Yy=(a,i)=>i&&typeof a=="number"?i.transform(a):a;function Ac(a){return ty(a)&&"offsetHeight"in a}const{schedule:nf}=hy(queueMicrotask,!1),Qe={x:!1,y:!1};function Gy(){return Qe.x||Qe.y}function TS(a){return a==="x"||a==="y"?Qe[a]?null:(Qe[a]=!0,()=>{Qe[a]=!1}):Qe.x||Qe.y?null:(Qe.x=Qe.y=!0,()=>{Qe.x=Qe.y=!1})}function Xy(a,i){const r=SS(a),o=new AbortController,c={passive:!0,...i,signal:o.signal};return[r,c,()=>o.abort()]}function Gp(a){return!(a.pointerType==="touch"||Gy())}function AS(a,i,r={}){const[o,c,f]=Xy(a,r),d=p=>{if(!Gp(p))return;const{target:g}=p,y=i(g,p);if(typeof y!="function"||!g)return;const v=b=>{Gp(b)&&(y(b),g.removeEventListener("pointerleave",v))};g.addEventListener("pointerleave",v,c)};return o.forEach(p=>{p.addEventListener("pointerenter",d,c)}),f}const Zy=(a,i)=>i?a===i?!0:Zy(a,i.parentElement):!1,af=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,NS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jS(a){return NS.has(a.tagName)||a.isContentEditable===!0}const ES=new Set(["INPUT","SELECT","TEXTAREA"]);function MS(a){return ES.has(a.tagName)||a.isContentEditable===!0}const tr=new WeakSet;function Xp(a){return i=>{i.key==="Enter"&&a(i)}}function Fu(a,i){a.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const wS=(a,i)=>{const r=a.currentTarget;if(!r)return;const o=Xp(()=>{if(tr.has(r))return;Fu(r,"down");const c=Xp(()=>{Fu(r,"up")}),f=()=>Fu(r,"cancel");r.addEventListener("keyup",c,i),r.addEventListener("blur",f,i)});r.addEventListener("keydown",o,i),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),i)};function Zp(a){return af(a)&&!Gy()}function DS(a,i,r={}){const[o,c,f]=Xy(a,r),d=p=>{const g=p.currentTarget;if(!Zp(p))return;tr.add(g);const y=i(g,p),v=(A,M)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),tr.has(g)&&tr.delete(g),Zp(A)&&typeof y=="function"&&y(A,{success:M})},b=A=>{v(A,g===window||g===document||r.useGlobalTarget||Zy(g,A.target))},S=A=>{v(A,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",S,c)};return o.forEach(p=>{(r.useGlobalTarget?window:p).addEventListener("pointerdown",d,c),Ac(p)&&(p.addEventListener("focus",y=>wS(y,c)),!jS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),f}function Qy(a){return ty(a)&&"ownerSVGElement"in a}function CS(a){return Qy(a)&&a.tagName==="svg"}const RS=[...Hy,Kt,$n],zS=a=>RS.find(Ly(a)),Qp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ui=()=>({x:Qp(),y:Qp()}),Kp=()=>({min:0,max:0}),Ft=()=>({x:Kp(),y:Kp()}),Nc={current:null},Ky={current:!1},OS=typeof window<"u";function _S(){if(Ky.current=!0,!!OS)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),i=()=>Nc.current=a.matches;a.addEventListener("change",i),i()}else Nc.current=!1}const VS=new WeakMap;function pr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function As(a){return typeof a=="string"||Array.isArray(a)}const sf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],lf=["initial",...sf];function yr(a){return pr(a.animate)||lf.some(i=>As(a[i]))}function Jy(a){return!!(yr(a)||a.variants)}function US(a,i,r){for(const o in i){const c=i[o],f=r[o];if(se(c))a.addValue(o,c);else if(se(f))a.addValue(o,mi(c,{owner:a}));else if(f!==c)if(a.hasValue(o)){const d=a.getValue(o);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=a.getStaticValue(o);a.addValue(o,mi(d!==void 0?d:c,{owner:a}))}}for(const o in r)i[o]===void 0&&a.removeValue(o);return i}const Jp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let or={};function Fy(a){or=a}function BS(){return or}class LS{scrapeMotionValuesFromProps(i,r,o){return{}}constructor({parent:i,props:r,presenceContext:o,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:p},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=$c,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const A=oe.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,Ct.render(this.render,!1,!0))};const{latestValues:y,renderState:v}=p;this.latestValues=y,this.baseTarget={...y},this.initialValues=r.initial?{...y}:{},this.renderState=v,this.parent=i,this.props=r,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=yr(r),this.isVariantNode=Jy(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(r,{},this);for(const A in S){const M=S[A];y[A]!==void 0&&se(M)&&M.set(y[A])}}mount(i){this.current=i,VS.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ky.current||_S(),this.shouldReduceMotion=Nc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Fn(this.notifyUpdate),Fn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const r=this.features[i];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,r){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const o=gi.has(i);o&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Ct.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,r)),this.valueSubscriptions.set(i,()=>{c(),f&&f(),r.owner&&r.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in or){const r=or[i];if(!r)continue;const{isEnabled:o,Feature:c}=r;if(!this.features[i]&&c&&o(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,r){this.latestValues[i]=r}update(i,r){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<Jp.length;o++){const c=Jp[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=US(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(i),()=>r.variantChildren.delete(i)}addValue(i,r){const o=this.values.get(i);r!==o&&(o&&this.removeValue(i),this.bindToMotionValue(i,r),this.values.set(i,r),this.latestValues[i]=r.get())}removeValue(i){this.values.delete(i);const r=this.valueSubscriptions.get(i);r&&(r(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,r){if(this.props.values&&this.props.values[i])return this.props.values[i];let o=this.values.get(i);return o===void 0&&r!==void 0&&(o=mi(r===null?void 0:r,{owner:this}),this.addValue(i,o)),o}readValue(i,r){let o=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return o!=null&&(typeof o=="string"&&(I0(o)||ey(o))?o=parseFloat(o):!zS(o)&&$n.test(r)&&(o=qy(i,r)),this.setBaseTarget(i,se(o)?o.get():o)),se(o)?o.get():o}setBaseTarget(i,r){this.baseTarget[i]=r}getBaseTarget(i){const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const f=Ic(this.props,r,this.presenceContext?.custom);f&&(o=f[i])}if(r&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!se(c)?c:this.initialValues[i]!==void 0&&o===void 0?void 0:this.baseTarget[i]}on(i,r){return this.events[i]||(this.events[i]=new Hc),this.events[i].add(r)}notify(i,...r){this.events[i]&&this.events[i].notify(...r)}scheduleRenderMicrotask(){nf.render(this.render)}}class $y extends LS{constructor(){super(...arguments),this.KeyframeResolver=bS}sortInstanceNodePosition(i,r){return i.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(i,r){const o=i.style;return o?o[r]:void 0}removeValueFromRenderState(i,{vars:r,style:o}){delete r[i],delete o[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;se(i)&&(this.childSubscription=i.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Pn{constructor(i){this.isMounted=!1,this.node=i}update(){}}function Py({top:a,left:i,right:r,bottom:o}){return{x:{min:i,max:r},y:{min:a,max:o}}}function HS({x:a,y:i}){return{top:i.min,right:a.max,bottom:i.max,left:a.min}}function kS(a,i){if(!i)return a;const r=i({x:a.left,y:a.top}),o=i({x:a.right,y:a.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function $u(a){return a===void 0||a===1}function jc({scale:a,scaleX:i,scaleY:r}){return!$u(a)||!$u(i)||!$u(r)}function va(a){return jc(a)||Wy(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Wy(a){return Fp(a.x)||Fp(a.y)}function Fp(a){return a&&a!=="0%"}function ur(a,i,r){const o=a-r,c=i*o;return r+c}function $p(a,i,r,o,c){return c!==void 0&&(a=ur(a,c,o)),ur(a,r,o)+i}function Ec(a,i=0,r=1,o,c){a.min=$p(a.min,i,r,o,c),a.max=$p(a.max,i,r,o,c)}function Iy(a,{x:i,y:r}){Ec(a.x,i.translate,i.scale,i.originPoint),Ec(a.y,r.translate,r.scale,r.originPoint)}const Pp=.999999999999,Wp=1.0000000000001;function qS(a,i,r,o=!1){const c=r.length;if(!c)return;i.x=i.y=1;let f,d;for(let p=0;p<c;p++){f=r[p],d=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&fi(a,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,Iy(a,d)),o&&va(f.latestValues)&&fi(a,f.latestValues))}i.x<Wp&&i.x>Pp&&(i.x=1),i.y<Wp&&i.y>Pp&&(i.y=1)}function ci(a,i){a.min=a.min+i,a.max=a.max+i}function Ip(a,i,r,o,c=.5){const f=Vt(a.min,a.max,c);Ec(a,i,r,f,o)}function fi(a,i){Ip(a.x,i.x,i.scaleX,i.scale,i.originX),Ip(a.y,i.y,i.scaleY,i.scale,i.originY)}function tg(a,i){return Py(kS(a.getBoundingClientRect(),i))}function YS(a,i,r){const o=tg(a,r),{scroll:c}=i;return c&&(ci(o.x,c.offset.x),ci(o.y,c.offset.y)),o}const GS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XS=yi.length;function ZS(a,i,r){let o="",c=!0;for(let f=0;f<XS;f++){const d=yi[f],p=a[d];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(d.startsWith("scale")?1:0);else{const y=parseFloat(p);g=d.startsWith("scale")?y===1:y===0}if(!g||r){const y=Yy(p,ef[d]);if(!g){c=!1;const v=GS[d]||d;o+=`${v}(${y}) `}r&&(i[d]=y)}}return o=o.trim(),r?o=r(i,c?"":o):c&&(o="none"),o}function rf(a,i,r){const{style:o,vars:c,transformOrigin:f}=a;let d=!1,p=!1;for(const g in i){const y=i[g];if(gi.has(g)){d=!0;continue}else if(py(g)){c[g]=y;continue}else{const v=Yy(y,ef[g]);g.startsWith("origin")?(p=!0,f[g]=v):o[g]=v}}if(i.transform||(d||r?o.transform=ZS(i,a.transform,r):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:y="50%",originZ:v=0}=f;o.transformOrigin=`${g} ${y} ${v}`}}function eg(a,{style:i,vars:r},o,c){const f=a.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,o);for(d in r)f.setProperty(d,r[d])}function t0(a,i){return i.max===i.min?0:a/(i.max-i.min)*100}const hs={correct:(a,i)=>{if(!i.target)return a;if(typeof a=="string")if(F.test(a))a=parseFloat(a);else return a;const r=t0(a,i.target.x),o=t0(a,i.target.y);return`${r}% ${o}%`}},QS={correct:(a,{treeScale:i,projectionDelta:r})=>{const o=a,c=$n.parse(a);if(c.length>5)return o;const f=$n.createTransformer(a),d=typeof c[0]!="number"?1:0,p=r.x.scale*i.x,g=r.y.scale*i.y;c[0+d]/=p,c[1+d]/=g;const y=Vt(p,g,.5);return typeof c[2+d]=="number"&&(c[2+d]/=y),typeof c[3+d]=="number"&&(c[3+d]/=y),f(c)}},Mc={borderRadius:{...hs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hs,borderTopRightRadius:hs,borderBottomLeftRadius:hs,borderBottomRightRadius:hs,boxShadow:QS};function ng(a,{layout:i,layoutId:r}){return gi.has(a)||a.startsWith("origin")||(i||r!==void 0)&&(!!Mc[a]||a==="opacity")}function of(a,i,r){const o=a.style,c=i?.style,f={};if(!o)return f;for(const d in o)(se(o[d])||c&&se(c[d])||ng(d,a)||r?.getValue(d)?.liveStyle!==void 0)&&(f[d]=o[d]);return f}function KS(a){return window.getComputedStyle(a)}class JS extends $y{constructor(){super(...arguments),this.type="html",this.renderInstance=eg}readValueFromInstance(i,r){if(gi.has(r))return this.projection?.isProjecting?hc(r):S2(i,r);{const o=KS(i),c=(py(r)?o.getPropertyValue(r):o[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:r}){return tg(i,r)}build(i,r,o){rf(i,r,o.transformTemplate)}scrapeMotionValuesFromProps(i,r,o){return of(i,r,o)}}const FS={offset:"stroke-dashoffset",array:"stroke-dasharray"},$S={offset:"strokeDashoffset",array:"strokeDasharray"};function PS(a,i,r=1,o=0,c=!0){a.pathLength=1;const f=c?FS:$S;a[f.offset]=`${-o}`,a[f.array]=`${i} ${r}`}const WS=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ag(a,{attrX:i,attrY:r,attrScale:o,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...p},g,y,v){if(rf(a,p,y),g){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:b,style:S}=a;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=v?.transformBox??"fill-box",delete b.transformBox);for(const A of WS)b[A]!==void 0&&(S[A]=b[A],delete b[A]);i!==void 0&&(b.x=i),r!==void 0&&(b.y=r),o!==void 0&&(b.scale=o),c!==void 0&&PS(b,c,f,d,!1)}const ig=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),sg=a=>typeof a=="string"&&a.toLowerCase()==="svg";function IS(a,i,r,o){eg(a,i,void 0,o);for(const c in i.attrs)a.setAttribute(ig.has(c)?c:tf(c),i.attrs[c])}function lg(a,i,r){const o=of(a,i,r);for(const c in a)if(se(a[c])||se(i[c])){const f=yi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[f]=a[c]}return o}class tT extends $y{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(i,r){return i[r]}readValueFromInstance(i,r){if(gi.has(r)){const o=ky(r);return o&&o.default||0}return r=ig.has(r)?r:tf(r),i.getAttribute(r)}scrapeMotionValuesFromProps(i,r,o){return lg(i,r,o)}build(i,r,o){ag(i,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(i,r,o,c){IS(i,r,o,c)}mount(i){this.isSVGTag=sg(i.tagName),super.mount(i)}}const eT=lf.length;function rg(a){if(!a)return;if(!a.isControllingVariants){const r=a.parent?rg(a.parent)||{}:{};return a.props.initial!==void 0&&(r.initial=a.props.initial),r}const i={};for(let r=0;r<eT;r++){const o=lf[r],c=a.props[o];(As(c)||c===!1)&&(i[o]=c)}return i}function og(a,i){if(!Array.isArray(i))return!1;const r=i.length;if(r!==a.length)return!1;for(let o=0;o<r;o++)if(i[o]!==a[o])return!1;return!0}const nT=[...sf].reverse(),aT=sf.length;function iT(a){return i=>Promise.all(i.map(({animation:r,options:o})=>cS(a,r,o)))}function sT(a){let i=iT(a),r=e0(),o=!0;const c=g=>(y,v)=>{const b=di(a,v,g==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:S,transitionEnd:A,...M}=b;y={...y,...M,...A}}return y};function f(g){i=g(a)}function d(g){const{props:y}=a,v=rg(a.parent)||{},b=[],S=new Set;let A={},M=1/0;for(let k=0;k<aT;k++){const V=nT[k],Y=r[V],B=y[V]!==void 0?y[V]:v[V],X=As(B),Z=V===g?Y.isActive:null;Z===!1&&(M=k);let at=B===v[V]&&B!==y[V]&&X;if(at&&o&&a.manuallyAnimateOnMount&&(at=!1),Y.protectedKeys={...A},!Y.isActive&&Z===null||!B&&!Y.prevProp||pr(B)||typeof B=="boolean")continue;const I=lT(Y.prevProp,B);let K=I||V===g&&Y.isActive&&!at&&X||k>M&&X,it=!1;const jt=Array.isArray(B)?B:[B];let _t=jt.reduce(c(V),{});Z===!1&&(_t={});const{prevResolvedValues:Ut={}}=Y,ge={...Ut,..._t},tt=G=>{K=!0,S.has(G)&&(it=!0,S.delete(G)),Y.needsAnimating[G]=!0;const P=a.getValue(G);P&&(P.liveStyle=!1)};for(const G in ge){const P=_t[G],ht=Ut[G];if(A.hasOwnProperty(G))continue;let gt=!1;xc(P)&&xc(ht)?gt=!og(P,ht):gt=P!==ht,gt?P!=null?tt(G):S.add(G):P!==void 0&&S.has(G)?tt(G):Y.protectedKeys[G]=!0}Y.prevProp=B,Y.prevResolvedValues=_t,Y.isActive&&(A={...A,..._t}),o&&a.blockInitialAnimation&&(K=!1);const ut=at&&I;K&&(!ut||it)&&b.push(...jt.map(G=>{const P={type:V};if(typeof G=="string"&&o&&!ut&&a.manuallyAnimateOnMount&&a.parent){const{parent:ht}=a,gt=di(ht,G);if(ht.enteringChildren&>){const{delayChildren:j}=gt.transition||{};P.delay=zy(ht.enteringChildren,a,j)}}return{animation:G,options:P}}))}if(S.size){const k={};if(typeof y.initial!="boolean"){const V=di(a,Array.isArray(y.initial)?y.initial[0]:y.initial);V&&V.transition&&(k.transition=V.transition)}S.forEach(V=>{const Y=a.getBaseTarget(V),B=a.getValue(V);B&&(B.liveStyle=!0),k[V]=Y??null}),b.push({animation:k})}let O=!!b.length;return o&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(O=!1),o=!1,O?i(b):Promise.resolve()}function p(g,y){if(r[g].isActive===y)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(g,y)),r[g].isActive=y;const v=d(g);for(const b in r)r[b].protectedKeys={};return v}return{animateChanges:d,setActive:p,setAnimateFunction:f,getState:()=>r,reset:()=>{r=e0()}}}function lT(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!og(i,a):!1}function ga(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e0(){return{animate:ga(!0),whileInView:ga(),whileHover:ga(),whileTap:ga(),whileDrag:ga(),whileFocus:ga(),exit:ga()}}function n0(a,i){a.min=i.min,a.max=i.max}function Ze(a,i){n0(a.x,i.x),n0(a.y,i.y)}function a0(a,i){a.translate=i.translate,a.scale=i.scale,a.originPoint=i.originPoint,a.origin=i.origin}const ug=1e-4,rT=1-ug,oT=1+ug,cg=.01,uT=0-cg,cT=0+cg;function ue(a){return a.max-a.min}function fT(a,i,r){return Math.abs(a-i)<=r}function i0(a,i,r,o=.5){a.origin=o,a.originPoint=Vt(i.min,i.max,a.origin),a.scale=ue(r)/ue(i),a.translate=Vt(r.min,r.max,a.origin)-a.originPoint,(a.scale>=rT&&a.scale<=oT||isNaN(a.scale))&&(a.scale=1),(a.translate>=uT&&a.translate<=cT||isNaN(a.translate))&&(a.translate=0)}function vs(a,i,r,o){i0(a.x,i.x,r.x,o?o.originX:void 0),i0(a.y,i.y,r.y,o?o.originY:void 0)}function s0(a,i,r){a.min=r.min+i.min,a.max=a.min+ue(i)}function dT(a,i,r){s0(a.x,i.x,r.x),s0(a.y,i.y,r.y)}function l0(a,i,r){a.min=i.min-r.min,a.max=a.min+ue(i)}function cr(a,i,r){l0(a.x,i.x,r.x),l0(a.y,i.y,r.y)}function r0(a,i,r,o,c){return a-=i,a=ur(a,1/r,o),c!==void 0&&(a=ur(a,1/c,o)),a}function hT(a,i=0,r=1,o=.5,c,f=a,d=a){if(Pe.test(i)&&(i=parseFloat(i),i=Vt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let p=Vt(f.min,f.max,o);a===f&&(p-=i),a.min=r0(a.min,i,r,p,c),a.max=r0(a.max,i,r,p,c)}function o0(a,i,[r,o,c],f,d){hT(a,i[r],i[o],i[c],i.scale,f,d)}const mT=["x","scaleX","originX"],pT=["y","scaleY","originY"];function u0(a,i,r,o){o0(a.x,i,mT,r?r.x:void 0,o?o.x:void 0),o0(a.y,i,pT,r?r.y:void 0,o?o.y:void 0)}function c0(a){return a.translate===0&&a.scale===1}function fg(a){return c0(a.x)&&c0(a.y)}function f0(a,i){return a.min===i.min&&a.max===i.max}function yT(a,i){return f0(a.x,i.x)&&f0(a.y,i.y)}function d0(a,i){return Math.round(a.min)===Math.round(i.min)&&Math.round(a.max)===Math.round(i.max)}function dg(a,i){return d0(a.x,i.x)&&d0(a.y,i.y)}function h0(a){return ue(a.x)/ue(a.y)}function m0(a,i){return a.translate===i.translate&&a.scale===i.scale&&a.originPoint===i.originPoint}function Le(a){return[a("x"),a("y")]}function gT(a,i,r){let o="";const c=a.x.translate/i.x,f=a.y.translate/i.y,d=r?.z||0;if((c||f||d)&&(o=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),r){const{transformPerspective:y,rotate:v,rotateX:b,rotateY:S,skewX:A,skewY:M}=r;y&&(o=`perspective(${y}px) ${o}`),v&&(o+=`rotate(${v}deg) `),b&&(o+=`rotateX(${b}deg) `),S&&(o+=`rotateY(${S}deg) `),A&&(o+=`skewX(${A}deg) `),M&&(o+=`skewY(${M}deg) `)}const p=a.x.scale*i.x,g=a.y.scale*i.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const hg=["TopLeft","TopRight","BottomLeft","BottomRight"],vT=hg.length,p0=a=>typeof a=="string"?parseFloat(a):a,y0=a=>typeof a=="number"||F.test(a);function xT(a,i,r,o,c,f){c?(a.opacity=Vt(0,r.opacity??1,bT(o)),a.opacityExit=Vt(i.opacity??1,0,ST(o))):f&&(a.opacity=Vt(i.opacity??1,r.opacity??1,o));for(let d=0;d<vT;d++){const p=`border${hg[d]}Radius`;let g=g0(i,p),y=g0(r,p);if(g===void 0&&y===void 0)continue;g||(g=0),y||(y=0),g===0||y===0||y0(g)===y0(y)?(a[p]=Math.max(Vt(p0(g),p0(y),o),0),(Pe.test(y)||Pe.test(g))&&(a[p]+="%")):a[p]=y}(i.rotate||r.rotate)&&(a.rotate=Vt(i.rotate||0,r.rotate||0,o))}function g0(a,i){return a[i]!==void 0?a[i]:a.borderRadius}const bT=mg(0,.5,uy),ST=mg(.5,.95,ke);function mg(a,i,r){return o=>o<a?0:o>i?1:r(bs(a,i,o))}function TT(a,i,r){const o=se(a)?a:mi(a);return o.start(Wc("",o,i,r)),o.animation}function Ns(a,i,r,o={passive:!0}){return a.addEventListener(i,r,o),()=>a.removeEventListener(i,r)}const AT=(a,i)=>a.depth-i.depth;class NT{constructor(){this.children=[],this.isDirty=!1}add(i){Vc(this.children,i),this.isDirty=!0}remove(i){Uc(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(AT),this.isDirty=!1,this.children.forEach(i)}}function jT(a,i){const r=oe.now(),o=({timestamp:c})=>{const f=c-r;f>=i&&(Fn(o),a(f-i))};return Ct.setup(o,!0),()=>Fn(o)}function er(a){return se(a)?a.get():a}class ET{constructor(){this.members=[]}add(i){Vc(this.members,i),i.scheduleRender()}remove(i){if(Uc(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(i){const r=this.members.findIndex(c=>i===c);if(r===0)return!1;let o;for(let c=r;c>=0;c--){const f=this.members[c];if(f.isPresent!==!1){o=f;break}}return o?(this.promote(o),!0):!1}promote(i,r){const o=this.lead;if(i!==o&&(this.prevLead=o,this.lead=i,i.show(),o)){o.instance&&o.scheduleRender(),i.scheduleRender();const c=o.options.layoutDependency,f=i.options.layoutDependency;c!==void 0&&f!==void 0&&c===f||(i.resumeFrom=o,r&&(i.resumeFrom.preserveOpacity=!0),o.snapshot&&(i.snapshot=o.snapshot,i.snapshot.latestValues=o.animationValues||o.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0));const{crossfade:p}=i.options;p===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:r,resumingFrom:o}=i;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const nr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pu=["","X","Y","Z"],MT=1e3;let wT=0;function Wu(a,i,r,o){const{latestValues:c}=i;c[a]&&(r[a]=c[a],i.setStaticValue(a,0),o&&(o[a]=0))}function pg(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:i}=a.options;if(!i)return;const r=Uy(i);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:f}=a.options;window.MotionCancelOptimisedAnimation(r,"transform",Ct,!(c||f))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&pg(o)}function yg({attachResizeListener:a,defaultParent:i,measureScroll:r,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(d={},p=i?.()){this.id=wT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(RT),this.nodes.forEach(VT),this.nodes.forEach(UT),this.nodes.forEach(zT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new NT)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Hc),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const g=this.eventHandlers.get(d);g&&g.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Qy(d)&&!CS(d),this.instance=d;const{layoutId:p,layout:g,visualElement:y}=this.options;if(y&&!y.current&&y.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),a){let v,b=0;const S=()=>this.root.updateBlockedByResize=!1;Ct.read(()=>{b=window.innerWidth}),a(d,()=>{const A=window.innerWidth;A!==b&&(b=A,this.root.updateBlockedByResize=!0,v&&v(),v=jT(S,250),nr.hasAnimatedSinceResize&&(nr.hasAnimatedSinceResize=!1,this.nodes.forEach(b0)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&y&&(p||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||y.getDefaultTransition()||qT,{onLayoutAnimationStart:O,onLayoutAnimationComplete:k}=y.getProps(),V=!this.targetLayout||!dg(this.targetLayout,A),Y=!b&&S;if(this.options.layoutRoot||this.resumeFrom||Y||b&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...Pc(M,"layout"),onPlay:O,onComplete:k};(y.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(v,Y)}else b||b0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Fn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(BT),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(v0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(x0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(_T),this.nodes.forEach(DT),this.nodes.forEach(CT)):this.nodes.forEach(x0),this.clearAllSnapshots();const p=oe.now();ae.delta=We(0,1e3/60,p-ae.timestamp),ae.timestamp=p,ae.isProcessing=!0,Gu.update.process(ae),Gu.preRender.process(ae),Gu.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OT),this.sharedNodes.forEach(LT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ue(this.snapshot.measuredBox.x)&&!ue(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ft(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!fg(this.projectionDelta),g=this.getTransformTemplate(),y=g?g(this.latestValues,""):void 0,v=y!==this.prevTransformTemplateValue;d&&this.instance&&(p||va(this.latestValues)||v)&&(c(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return d&&(g=this.removeTransform(g)),YT(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Ft();const p=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(GT))){const{scroll:y}=this.root;y&&(ci(p.x,y.offset.x),ci(p.y,y.offset.y))}return p}removeElementScroll(d){const p=Ft();if(Ze(p,d),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:v,options:b}=y;y!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Ze(p,d),ci(p.x,v.offset.x),ci(p.y,v.offset.y))}return p}applyTransform(d,p=!1){const g=Ft();Ze(g,d);for(let y=0;y<this.path.length;y++){const v=this.path[y];!p&&v.options.layoutScroll&&v.scroll&&v!==v.root&&fi(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),va(v.latestValues)&&fi(g,v.latestValues)}return va(this.latestValues)&&fi(g,this.latestValues),g}removeTransform(d){const p=Ft();Ze(p,d);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!y.instance||!va(y.latestValues))continue;jc(y.latestValues)&&y.updateSnapshot();const v=Ft(),b=y.measurePageBox();Ze(v,b),u0(p,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,v)}return va(this.latestValues)&&u0(p,this.latestValues),p}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=ae.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ze(this.target,this.layout.layoutBox),Iy(this.target,this.targetDelta)):Ze(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||jc(this.parent.latestValues)||Wy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,p,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),cr(this.relativeTargetOrigin,p,g),Ze(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),p=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ae.timestamp&&(g=!1),g)return;const{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;Ze(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;qS(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ft());const{target:A}=d;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(a0(this.prevProjectionDelta.x,this.projectionDelta.x),a0(this.prevProjectionDelta.y,this.projectionDelta.y)),vs(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!m0(this.projectionDelta.x,this.prevProjectionDelta.x)||!m0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ui(),this.projectionDelta=ui(),this.projectionDeltaWithTransform=ui()}setAnimationOrigin(d,p=!1){const g=this.snapshot,y=g?g.latestValues:{},v={...this.latestValues},b=ui();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=Ft(),A=g?g.source:void 0,M=this.layout?this.layout.source:void 0,O=A!==M,k=this.getStack(),V=!k||k.members.length<=1,Y=!!(O&&!V&&this.options.crossfade===!0&&!this.path.some(kT));this.animationProgress=0;let B;this.mixTargetDelta=X=>{const Z=X/1e3;S0(b.x,d.x,Z),S0(b.y,d.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cr(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),HT(this.relativeTarget,this.relativeTargetOrigin,S,Z),B&&yT(this.relativeTarget,B)&&(this.isProjectionDirty=!1),B||(B=Ft()),Ze(B,this.relativeTarget)),O&&(this.animationValues=v,xT(v,y,this.latestValues,Z,Y,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Fn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{nr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mi(0)),this.currentAnimation=TT(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),d.onUpdate&&d.onUpdate(p)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(MT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:g,layout:y,latestValues:v}=d;if(!(!p||!g||!y)){if(this!==d&&this.layout&&y&&gg(this.options.animationType,this.layout.layoutBox,y.layoutBox)){g=this.target||Ft();const b=ue(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+b;const S=ue(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+S}Ze(p,g),fi(p,v),vs(this.projectionDeltaWithTransform,this.layoutCorrected,p,v)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new ET),this.sharedNodes.get(d).add(p);const y=p.options.initialPromotionConfig;p.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(p):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:p,preserveFollowOpacity:g}={}){const y=this.getStack();y&&y.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const y={};g.z&&Wu("z",d,y,this.animationValues);for(let v=0;v<Pu.length;v++)Wu(`rotate${Pu[v]}`,d,y,this.animationValues),Wu(`skew${Pu[v]}`,d,y,this.animationValues);d.render();for(const v in y)d.setStaticValue(v,y[v]),this.animationValues&&(this.animationValues[v]=y[v]);d.scheduleRender()}applyProjectionStyles(d,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=er(p?.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=er(p?.pointerEvents)||""),this.hasProjected&&!va(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=y.animationValues||y.latestValues;this.applyTransformsToTarget();let b=gT(this.projectionDeltaWithTransform,this.treeScale,v);g&&(b=g(v,b)),d.transform=b;const{x:S,y:A}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${A.origin*100}% 0`,y.animationValues?d.opacity=y===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const M in Mc){if(v[M]===void 0)continue;const{correct:O,applyTo:k,isCSSVariable:V}=Mc[M],Y=b==="none"?v[M]:O(v[M],y);if(k){const B=k.length;for(let X=0;X<B;X++)d[k[X]]=Y}else V?this.options.visualElement.renderState.vars[M]=Y:d[M]=Y}this.options.layoutId&&(d.pointerEvents=y===this?er(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(v0),this.root.sharedNodes.clear()}}}function DT(a){a.updateLayout()}function CT(a){const i=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&i&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=a.layout,{animationType:c}=a.options,f=i.source!==a.layout.source;c==="size"?Le(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],S=ue(b);b.min=r[v].min,b.max=b.min+S}):gg(c,i.layoutBox,r)&&Le(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],S=ue(r[v]);b.max=b.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+S)});const d=ui();vs(d,r,i.layoutBox);const p=ui();f?vs(p,a.applyTransform(o,!0),i.measuredBox):vs(p,r,i.layoutBox);const g=!fg(d);let y=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:S}=v;if(b&&S){const A=Ft();cr(A,i.layoutBox,b.layoutBox);const M=Ft();cr(M,r,S.layoutBox),dg(A,M)||(y=!0),v.options.layoutRoot&&(a.relativeTarget=M,a.relativeTargetOrigin=A,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:i,delta:p,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}function RT(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function zT(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function OT(a){a.clearSnapshot()}function v0(a){a.clearMeasurements()}function x0(a){a.isLayoutDirty=!1}function _T(a){const{visualElement:i}=a.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),a.resetTransform()}function b0(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function VT(a){a.resolveTargetDelta()}function UT(a){a.calcProjection()}function BT(a){a.resetSkewAndRotation()}function LT(a){a.removeLeadSnapshot()}function S0(a,i,r){a.translate=Vt(i.translate,0,r),a.scale=Vt(i.scale,1,r),a.origin=i.origin,a.originPoint=i.originPoint}function T0(a,i,r,o){a.min=Vt(i.min,r.min,o),a.max=Vt(i.max,r.max,o)}function HT(a,i,r,o){T0(a.x,i.x,r.x,o),T0(a.y,i.y,r.y,o)}function kT(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const qT={duration:.45,ease:[.4,0,.1,1]},A0=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),N0=A0("applewebkit/")&&!A0("chrome/")?Math.round:ke;function j0(a){a.min=N0(a.min),a.max=N0(a.max)}function YT(a){j0(a.x),j0(a.y)}function gg(a,i,r){return a==="position"||a==="preserve-aspect"&&!fT(h0(i),h0(r),.2)}function GT(a){return a!==a.root&&a.scroll?.wasRoot}const XT=yg({attachResizeListener:(a,i)=>Ns(a,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Iu={current:void 0},vg=yg({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Iu.current){const a=new XT({});a.mount(window),a.setOptions({layoutScroll:!0}),Iu.current=a}return Iu.current},resetTransform:(a,i)=>{a.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),uf=C.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function E0(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function ZT(...a){return i=>{let r=!1;const o=a.map(c=>{const f=E0(c,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():E0(a[c],null)}}}}function QT(...a){return C.useCallback(ZT(...a),a)}class KT extends C.Component{getSnapshotBeforeUpdate(i){const r=this.props.childRef.current;if(r&&i.isPresent&&!this.props.isPresent){const o=r.offsetParent,c=Ac(o)&&o.offsetWidth||0,f=Ac(o)&&o.offsetHeight||0,d=this.props.sizeRef.current;d.height=r.offsetHeight||0,d.width=r.offsetWidth||0,d.top=r.offsetTop,d.left=r.offsetLeft,d.right=c-d.width-d.left,d.bottom=f-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function JT({children:a,isPresent:i,anchorX:r,anchorY:o,root:c}){const f=C.useId(),d=C.useRef(null),p=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=C.useContext(uf),y=a.props?.ref??a?.ref,v=QT(d,y);return C.useInsertionEffect(()=>{const{width:b,height:S,top:A,left:M,right:O,bottom:k}=p.current;if(i||!d.current||!b||!S)return;const V=r==="left"?`left: ${M}`:`right: ${O}`,Y=o==="bottom"?`bottom: ${k}`:`top: ${A}`;d.current.dataset.motionPopId=f;const B=document.createElement("style");g&&(B.nonce=g);const X=c??document.head;return X.appendChild(B),B.sheet&&B.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${f}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${b}px !important;
|
|
13
|
-
height: ${S}px !important;
|
|
14
|
-
${V}px !important;
|
|
15
|
-
${Y}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{X.contains(B)&&X.removeChild(B)}},[i]),m.jsx(KT,{isPresent:i,childRef:d,sizeRef:p,children:C.cloneElement(a,{ref:v})})}const FT=({children:a,initial:i,isPresent:r,onExitComplete:o,custom:c,presenceAffectsLayout:f,mode:d,anchorX:p,anchorY:g,root:y})=>{const v=_c($T),b=C.useId();let S=!0,A=C.useMemo(()=>(S=!1,{id:b,initial:i,isPresent:r,custom:c,onExitComplete:M=>{v.set(M,!0);for(const O of v.values())if(!O)return;o&&o()},register:M=>(v.set(M,!1),()=>v.delete(M))}),[r,v,o]);return f&&S&&(A={...A}),C.useMemo(()=>{v.forEach((M,O)=>v.set(O,!1))},[r]),C.useEffect(()=>{!r&&!v.size&&o&&o()},[r]),d==="popLayout"&&(a=m.jsx(JT,{isPresent:r,anchorX:p,anchorY:g,root:y,children:a})),m.jsx(mr.Provider,{value:A,children:a})};function $T(){return new Map}function xg(a=!0){const i=C.useContext(mr);if(i===null)return[!0,null];const{isPresent:r,onExitComplete:o,register:c}=i,f=C.useId();C.useEffect(()=>{if(a)return c(f)},[a]);const d=C.useCallback(()=>a&&o&&o(f),[f,o,a]);return!r&&o?[!1,d]:[!0]}const Pl=a=>a.key||"";function M0(a){const i=[];return C.Children.forEach(a,r=>{C.isValidElement(r)&&i.push(r)}),i}const fr=({children:a,custom:i,initial:r=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:f="sync",propagate:d=!1,anchorX:p="left",anchorY:g="top",root:y})=>{const[v,b]=xg(d),S=C.useMemo(()=>M0(a),[a]),A=d&&!v?[]:S.map(Pl),M=C.useRef(!0),O=C.useRef(S),k=_c(()=>new Map),V=C.useRef(new Set),[Y,B]=C.useState(S),[X,Z]=C.useState(S);W0(()=>{M.current=!1,O.current=S;for(let K=0;K<X.length;K++){const it=Pl(X[K]);A.includes(it)?(k.delete(it),V.current.delete(it)):k.get(it)!==!0&&k.set(it,!1)}},[X,A.length,A.join("-")]);const at=[];if(S!==Y){let K=[...S];for(let it=0;it<X.length;it++){const jt=X[it],_t=Pl(jt);A.includes(_t)||(K.splice(it,0,jt),at.push(jt))}return f==="wait"&&at.length&&(K=at),Z(M0(K)),B(S),null}const{forceRender:I}=C.useContext(Oc);return m.jsx(m.Fragment,{children:X.map(K=>{const it=Pl(K),jt=d&&!v?!1:S===X||A.includes(it),_t=()=>{if(V.current.has(it))return;if(V.current.add(it),k.has(it))k.set(it,!0);else return;let Ut=!0;k.forEach(ge=>{ge||(Ut=!1)}),Ut&&(I?.(),Z(O.current),d&&b?.(),o&&o())};return m.jsx(FT,{isPresent:jt,initial:!M.current||r?void 0:!1,custom:i,presenceAffectsLayout:c,mode:f,root:y,onExitComplete:jt?void 0:_t,anchorX:p,anchorY:g,children:K},it)})})},bg=C.createContext({strict:!1}),w0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let D0=!1;function PT(){if(D0)return;const a={};for(const i in w0)a[i]={isEnabled:r=>w0[i].some(o=>!!r[o])};Fy(a),D0=!0}function Sg(){return PT(),BS()}function WT(a){const i=Sg();for(const r in a)i[r]={...i[r],...a[r]};Fy(i)}const IT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||IT.has(a)}let Tg=a=>!dr(a);function tA(a){typeof a=="function"&&(Tg=i=>i.startsWith("on")?!dr(i):a(i))}try{tA(require("@emotion/is-prop-valid").default)}catch{}function eA(a,i,r){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(Tg(c)||r===!0&&dr(c)||!i&&!dr(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const gr=C.createContext({});function nA(a,i){if(yr(a)){const{initial:r,animate:o}=a;return{initial:r===!1||As(r)?r:void 0,animate:As(o)?o:void 0}}return a.inherit!==!1?i:{}}function aA(a){const{initial:i,animate:r}=nA(a,C.useContext(gr));return C.useMemo(()=>({initial:i,animate:r}),[C0(i),C0(r)])}function C0(a){return Array.isArray(a)?a.join(" "):a}const cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ag(a,i,r){for(const o in i)!se(i[o])&&!ng(o,r)&&(a[o]=i[o])}function iA({transformTemplate:a},i){return C.useMemo(()=>{const r=cf();return rf(r,i,a),Object.assign({},r.vars,r.style)},[i])}function sA(a,i){const r=a.style||{},o={};return Ag(o,r,a),Object.assign(o,iA(a,i)),o}function lA(a,i){const r={},o=sA(a,i);return a.drag&&a.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(r.tabIndex=0),r.style=o,r}const Ng=()=>({...cf(),attrs:{}});function rA(a,i,r,o){const c=C.useMemo(()=>{const f=Ng();return ag(f,i,sg(o),a.transformTemplate,a.style),{...f.attrs,style:{...f.style}}},[i]);if(a.style){const f={};Ag(f,a.style,a),c.style={...f,...c.style}}return c}const oA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ff(a){return typeof a!="string"||a.includes("-")?!1:!!(oA.indexOf(a)>-1||/[A-Z]/u.test(a))}function uA(a,i,r,{latestValues:o},c,f=!1,d){const g=(d??ff(a)?rA:lA)(i,o,c,a),y=eA(i,typeof a=="string",f),v=a!==C.Fragment?{...y,...g,ref:r}:{},{children:b}=i,S=C.useMemo(()=>se(b)?b.get():b,[b]);return C.createElement(a,{...v,children:S})}function cA({scrapeMotionValuesFromProps:a,createRenderState:i},r,o,c){return{latestValues:fA(r,o,c,a),renderState:i()}}function fA(a,i,r,o){const c={},f=o(a,{});for(const S in f)c[S]=er(f[S]);let{initial:d,animate:p}=a;const g=yr(a),y=Jy(a);i&&y&&!g&&a.inherit!==!1&&(d===void 0&&(d=i.initial),p===void 0&&(p=i.animate));let v=r?r.initial===!1:!1;v=v||d===!1;const b=v?p:d;if(b&&typeof b!="boolean"&&!pr(b)){const S=Array.isArray(b)?b:[b];for(let A=0;A<S.length;A++){const M=Ic(a,S[A]);if(M){const{transitionEnd:O,transition:k,...V}=M;for(const Y in V){let B=V[Y];if(Array.isArray(B)){const X=v?B.length-1:0;B=B[X]}B!==null&&(c[Y]=B)}for(const Y in O)c[Y]=O[Y]}}}return c}const jg=a=>(i,r)=>{const o=C.useContext(gr),c=C.useContext(mr),f=()=>cA(a,i,o,c);return r?f():_c(f)},dA=jg({scrapeMotionValuesFromProps:of,createRenderState:cf}),hA=jg({scrapeMotionValuesFromProps:lg,createRenderState:Ng}),mA=Symbol.for("motionComponentSymbol");function pA(a,i,r){const o=C.useRef(r);C.useInsertionEffect(()=>{o.current=r});const c=C.useRef(null);return C.useCallback(f=>{f&&a.onMount?.(f),i&&(f?i.mount(f):i.unmount());const d=o.current;if(typeof d=="function")if(f){const p=d(f);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f)},[i])}const Eg=C.createContext({});function ps(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function yA(a,i,r,o,c,f){const{visualElement:d}=C.useContext(gr),p=C.useContext(bg),g=C.useContext(mr),y=C.useContext(uf),v=y.reducedMotion,b=y.skipAnimations,S=C.useRef(null),A=C.useRef(!1);o=o||p.renderer,!S.current&&o&&(S.current=o(a,{visualState:i,parent:d,props:r,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:f}),A.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const M=S.current,O=C.useContext(Eg);M&&!M.projection&&c&&(M.type==="html"||M.type==="svg")&&gA(S.current,r,c,O);const k=C.useRef(!1);C.useInsertionEffect(()=>{M&&k.current&&M.update(r,g)});const V=r[Vy],Y=C.useRef(!!V&&!window.MotionHandoffIsComplete?.(V)&&window.MotionHasOptimisedAnimation?.(V));return W0(()=>{A.current=!0,M&&(k.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),Y.current&&M.animationState&&M.animationState.animateChanges())}),C.useEffect(()=>{M&&(!Y.current&&M.animationState&&M.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(V)}),Y.current=!1),M.enteringChildren=void 0)}),M}function gA(a,i,r,o){const{layoutId:c,layout:f,drag:d,dragConstraints:p,layoutScroll:g,layoutRoot:y,layoutCrossfade:v}=i;a.projection=new r(a.latestValues,i["data-framer-portal-id"]?void 0:Mg(a.parent)),a.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||p&&ps(p),visualElement:a,animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:y})}function Mg(a){if(a)return a.options.allowProjection!==!1?a.projection:Mg(a.parent)}function tc(a,{forwardMotionProps:i=!1,type:r}={},o,c){o&&WT(o);const f=r?r==="svg":ff(a),d=f?hA:dA;function p(y,v){let b;const S={...C.useContext(uf),...y,layoutId:vA(y)},{isStatic:A}=S,M=aA(y),O=d(y,A);if(!A&&P0){xA();const k=bA(S);b=k.MeasureLayout,M.visualElement=yA(a,O,S,c,k.ProjectionNode,f)}return m.jsxs(gr.Provider,{value:M,children:[b&&M.visualElement?m.jsx(b,{visualElement:M.visualElement,...S}):null,uA(a,y,pA(O,M.visualElement,v),O,A,i,f)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const g=C.forwardRef(p);return g[mA]=a,g}function vA({layoutId:a}){const i=C.useContext(Oc).id;return i&&a!==void 0?i+"-"+a:a}function xA(a,i){C.useContext(bg).strict}function bA(a){const i=Sg(),{drag:r,layout:o}=i;if(!r&&!o)return{};const c={...r,...o};return{MeasureLayout:r?.isEnabled(a)||o?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function SA(a,i){if(typeof Proxy>"u")return tc;const r=new Map,o=(f,d)=>tc(f,d,a,i),c=(f,d)=>o(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?o:(r.has(d)||r.set(d,tc(d,void 0,a,i)),r.get(d))})}const TA=(a,i)=>i.isSVG??ff(a)?new tT(i):new JS(i,{allowProjection:a!==C.Fragment});class AA extends Pn{constructor(i){super(i),i.animationState||(i.animationState=sT(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();pr(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:r}=this.node.prevProps||{};i!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let NA=0;class jA extends Pn{constructor(){super(...arguments),this.id=NA++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===o)return;const c=this.node.animationState.setActive("exit",!i);r&&!i&&c.then(()=>{r(this.id)})}mount(){const{register:i,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const EA={animation:{Feature:AA},exit:{Feature:jA}};function Ds(a){return{point:{x:a.pageX,y:a.pageY}}}const MA=a=>i=>af(i)&&a(i,Ds(i));function xs(a,i,r,o){return Ns(a,i,MA(r),o)}const wg=({current:a})=>a?a.ownerDocument.defaultView:null,R0=(a,i)=>Math.abs(a-i);function wA(a,i){const r=R0(a.x,i.x),o=R0(a.y,i.y);return Math.sqrt(r**2+o**2)}const z0=new Set(["auto","scroll"]);class Dg{constructor(i,r,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=A=>{this.handleScroll(A.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=nc(this.lastMoveEventInfo,this.history),M=this.startEvent!==null,O=wA(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!M&&!O)return;const{point:k}=A,{timestamp:V}=ae;this.history.push({...k,timestamp:V});const{onStart:Y,onMove:B}=this.handlers;M||(Y&&Y(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,A)},this.handlePointerMove=(A,M)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=ec(M,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(A,M)=>{this.end();const{onEnd:O,onSessionEnd:k,resumeAnimation:V}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Y=nc(A.type==="pointercancel"?this.lastMoveEventInfo:ec(M,this.transformPagePoint),this.history);this.startEvent&&O&&O(A,Y),k&&k(A,Y)},!af(i))return;this.dragSnapToOrigin=f,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=c||window;const g=Ds(i),y=ec(g,this.transformPagePoint),{point:v}=y,{timestamp:b}=ae;this.history=[{...v,timestamp:b}];const{onSessionStart:S}=r;S&&S(i,nc(y,this.history)),this.removeListeners=Es(xs(this.contextWindow,"pointermove",this.handlePointerMove),xs(this.contextWindow,"pointerup",this.handlePointerUp),xs(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(i){let r=i.parentElement;for(;r;){const o=getComputedStyle(r);(z0.has(o.overflowX)||z0.has(o.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(i){const r=this.scrollPositions.get(i);if(!r)return;const o=i===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-r.x,y:c.y-r.y};f.x===0&&f.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),Ct.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Fn(this.updatePoint)}}function ec(a,i){return i?{point:i(a.point)}:a}function O0(a,i){return{x:a.x-i.x,y:a.y-i.y}}function nc({point:a},i){return{point:a,delta:O0(a,Cg(i)),offset:O0(a,DA(i)),velocity:CA(i,.1)}}function DA(a){return a[0]}function Cg(a){return a[a.length-1]}function CA(a,i){if(a.length<2)return{x:0,y:0};let r=a.length-1,o=null;const c=Cg(a);for(;r>=0&&(o=a[r],!(c.timestamp-o.timestamp>xn(i)));)r--;if(!o)return{x:0,y:0};const f=He(c.timestamp-o.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-o.x)/f,y:(c.y-o.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function RA(a,{min:i,max:r},o){return i!==void 0&&a<i?a=o?Vt(i,a,o.min):Math.max(a,i):r!==void 0&&a>r&&(a=o?Vt(r,a,o.max):Math.min(a,r)),a}function _0(a,i,r){return{min:i!==void 0?a.min+i:void 0,max:r!==void 0?a.max+r-(a.max-a.min):void 0}}function zA(a,{top:i,left:r,bottom:o,right:c}){return{x:_0(a.x,r,c),y:_0(a.y,i,o)}}function V0(a,i){let r=i.min-a.min,o=i.max-a.max;return i.max-i.min<a.max-a.min&&([r,o]=[o,r]),{min:r,max:o}}function OA(a,i){return{x:V0(a.x,i.x),y:V0(a.y,i.y)}}function _A(a,i){let r=.5;const o=ue(a),c=ue(i);return c>o?r=bs(i.min,i.max-o,a.min):o>c&&(r=bs(a.min,a.max-c,i.min)),We(0,1,r)}function VA(a,i){const r={};return i.min!==void 0&&(r.min=i.min-a.min),i.max!==void 0&&(r.max=i.max-a.min),r}const wc=.35;function UA(a=wc){return a===!1?a=0:a===!0&&(a=wc),{x:U0(a,"left","right"),y:U0(a,"top","bottom")}}function U0(a,i,r){return{min:B0(a,i),max:B0(a,r)}}function B0(a,i){return typeof a=="number"?a:a[i]||0}const BA=new WeakMap;class LA{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ft(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:r=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=b=>{r?(this.stopAnimation(),this.snapToCursor(Ds(b).point)):this.pauseAnimation()},d=(b,S)=>{this.stopAnimation();const{drag:A,dragPropagation:M,onDragStart:O}=this.getProps();if(A&&!M&&(this.openDragLock&&this.openDragLock(),this.openDragLock=TS(A),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Le(V=>{let Y=this.getAxisMotionValue(V).get()||0;if(Pe.test(Y)){const{projection:B}=this.visualElement;if(B&&B.layout){const X=B.layout.layoutBox[V];X&&(Y=ue(X)*(parseFloat(Y)/100))}}this.originPoint[V]=Y}),O&&Ct.update(()=>O(b,S),!1,!0),bc(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},p=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:A,dragDirectionLock:M,onDirectionLock:O,onDrag:k}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:V}=S;if(M&&this.currentDirection===null){this.currentDirection=HA(V),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",S.point,V),this.updateAxis("y",S.point,V),this.visualElement.render(),k&&Ct.update(()=>k(b,S),!1,!0)},g=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},y=()=>Le(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new Dg(i,{onSessionStart:f,onStart:d,onMove:p,onSessionEnd:g,resumeAnimation:y},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:wg(this.visualElement),element:this.visualElement.current})}stop(i,r){const o=i||this.latestPointerEvent,c=r||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!o)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&Ct.postRender(()=>p(o,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:r}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,r,o){const{drag:c}=this.getProps();if(!o||!Wl(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(d=RA(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&ps(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&o?this.constraints=zA(o.layoutBox,i):this.constraints=!1,this.elastic=UA(r),c!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Le(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=VA(o.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:r}=this.getProps();if(!i||!ps(i))return!1;const o=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=YS(o,c.root,this.visualElement.getTransformPagePoint());let d=OA(c.layout.layoutBox,f);if(r){const p=r(HS(d));this.hasMutatedConstraints=!!p,p&&(d=Py(p))}return d}startAnimation(i){const{drag:r,dragMomentum:o,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},y=Le(v=>{if(!Wl(v,r,this.currentDirection))return;let b=g&&g[v]||{};d&&(b={min:0,max:0});const S=c?200:1e6,A=c?40:1e7,M={type:"inertia",velocity:o?i[v]:0,bounceStiffness:S,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(v,M)});return Promise.all(y).then(p)}startAxisValueAnimation(i,r){const o=this.getAxisMotionValue(i);return bc(this.visualElement,i),o.start(Wc(i,o,0,r,this.visualElement,!1))}stopAnimation(){Le(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){Le(i=>this.getAxisMotionValue(i).animation?.pause())}getAnimationState(i){return this.getAxisMotionValue(i).animation?.state}getAxisMotionValue(i){const r=`_drag${i.toUpperCase()}`,o=this.visualElement.getProps(),c=o[r];return c||this.visualElement.getValue(i,(o.initial?o.initial[i]:void 0)||0)}snapToCursor(i){Le(r=>{const{drag:o}=this.getProps();if(!Wl(r,o,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(r);if(c&&c.layout){const{min:d,max:p}=c.layout.layoutBox[r],g=f.get()||0;f.set(i[r]-Vt(d,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!ps(r)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Le(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const g=p.get();c[d]=_A({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Le(d=>{if(!Wl(d,i,null))return;const p=this.getAxisMotionValue(d),{min:g,max:y}=this.constraints[d];p.set(Vt(g,y,c[d]))})}addListeners(){if(!this.visualElement.current)return;BA.set(this.visualElement,this);const i=this.visualElement.current,r=xs(i,"pointerdown",g=>{const{drag:y,dragListener:v=!0}=this.getProps(),b=g.target,S=b!==i&&MS(b);y&&v&&!S&&this.start(g)}),o=()=>{const{dragConstraints:g}=this.getProps();ps(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,f=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ct.read(o);const d=Ns(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(Le(v=>{const b=this.getAxisMotionValue(v);b&&(this.originPoint[v]+=g[v].translate,b.set(b.get()+g[v].translate))}),this.visualElement.render())}));return()=>{d(),r(),f(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=wc,dragMomentum:p=!0}=i;return{...i,drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:p}}}function Wl(a,i,r){return(i===!0||i===a)&&(r===null||r===a)}function HA(a,i=10){let r=null;return Math.abs(a.y)>i?r="y":Math.abs(a.x)>i&&(r="x"),r}class kA extends Pn{constructor(i){super(i),this.removeGroupControls=ke,this.removeListeners=ke,this.controls=new LA(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ke}update(){const{dragControls:i}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};i!==r&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ac=a=>(i,r)=>{a&&Ct.update(()=>a(i,r),!1,!0)};class qA extends Pn{constructor(){super(...arguments),this.removePointerDownListener=ke}onPointerDown(i){this.session=new Dg(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wg(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:r,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:ac(i),onStart:ac(r),onMove:ac(o),onEnd:(f,d)=>{delete this.session,c&&Ct.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=xs(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ic=!1;class YA extends C.Component{componentDidMount(){const{visualElement:i,layoutGroup:r,switchLayoutGroup:o,layoutId:c}=this.props,{projection:f}=i;f&&(r.group&&r.group.add(f),o&&o.register&&c&&o.register(f),ic&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nr.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:r,visualElement:o,drag:c,isPresent:f}=this.props,{projection:d}=o;return d&&(d.isPresent=f,i.layoutDependency!==r&&d.setOptions({...d.options,layoutDependency:r}),ic=!0,c||i.layoutDependency!==r||r===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Ct.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),nf.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:c}=i;ic=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Rg(a){const[i,r]=xg(),o=C.useContext(Oc);return m.jsx(YA,{...a,layoutGroup:o,switchLayoutGroup:C.useContext(Eg),isPresent:i,safeToRemove:r})}const GA={pan:{Feature:qA},drag:{Feature:kA,ProjectionNode:vg,MeasureLayout:Rg}};function L0(a,i,r){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,f=o[c];f&&Ct.postRender(()=>f(i,Ds(i)))}class XA extends Pn{mount(){const{current:i}=this.node;i&&(this.unmount=AS(i,(r,o)=>(L0(this.node,o,"Start"),c=>L0(this.node,c,"End"))))}unmount(){}}class ZA extends Pn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Es(Ns(this.node.current,"focus",()=>this.onFocus()),Ns(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function H0(a,i,r){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),f=o[c];f&&Ct.postRender(()=>f(i,Ds(i)))}class QA extends Pn{mount(){const{current:i}=this.node;i&&(this.unmount=DS(i,(r,o)=>(H0(this.node,o,"Start"),(c,{success:f})=>H0(this.node,c,f?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Dc=new WeakMap,sc=new WeakMap,KA=a=>{const i=Dc.get(a.target);i&&i(a)},JA=a=>{a.forEach(KA)};function FA({root:a,...i}){const r=a||document;sc.has(r)||sc.set(r,{});const o=sc.get(r),c=JSON.stringify(i);return o[c]||(o[c]=new IntersectionObserver(JA,{root:a,...i})),o[c]}function $A(a,i,r){const o=FA(i);return Dc.set(a,r),o.observe(a),()=>{Dc.delete(a),o.unobserve(a)}}const PA={some:0,all:1};class WA extends Pn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:r,margin:o,amount:c="some",once:f}=i,d={root:r?r.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:PA[c]},p=g=>{const{isIntersecting:y}=g;if(this.isInView===y||(this.isInView=y,f&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),S=y?v:b;S&&S(g)};return $A(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:r}=this.node;["amount","margin","root"].some(IA(i,r))&&this.startObserver()}unmount(){}}function IA({viewport:a={}},{viewport:i={}}={}){return r=>a[r]!==i[r]}const t3={inView:{Feature:WA},tap:{Feature:QA},focus:{Feature:ZA},hover:{Feature:XA}},e3={layout:{ProjectionNode:vg,MeasureLayout:Rg}},n3={...EA,...t3,...GA,...e3},vn=SA(n3,TA);function qe(a){const i=a?.toLowerCase()||"";return i.includes("sisyphus")?"#3b82f6":i.includes("prometheus")?"#a855f7":i.includes("explore")||i.includes("librarian")?"#22c55e":i.includes("oracle")?"#f59e0b":i.includes("build")?"#06b6d4":"#6b7280"}function Ta(a){return(typeof a=="string"?new Date(a):a).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Cc(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${Math.round(a/1e3)}k`:a.toString()}function a3(a,i){const r=new Date(a).getTime(),o=new Date(i).getTime(),c=Math.max(0,o-r),f=Math.floor(c/6e4);if(f<1)return"<1m";if(f<60)return`${f}m`;const d=Math.floor(f/60),p=f%60;return p===0?`${d}h`:`${d}h ${p}m`}function zg(a){const i=a.toLowerCase(),r=i.match(/(opus|sonnet|haiku)-(\d+)(?:-(\d+))?(?:-\d{8})?/);if(r){const[,d,p,g]=r;return g&&g.length<=2?`${d}-${p}.${g}`:`${d}-${p}`}if(i.includes("opus"))return"opus";if(i.includes("sonnet"))return"sonnet";if(i.includes("haiku"))return"haiku";if(i.includes("gpt-5"))return"gpt-5";if(i.includes("gpt-4o"))return"gpt-4o";if(i.includes("gpt-4"))return"gpt-4";if(i.includes("gemini-3"))return"gemini-3";if(i.includes("gemini-2"))return"gemini-2";if(i.includes("gemini"))return"gemini";if(i.includes("codex"))return"codex";if(i.includes("grok")){const d=i.match(/grok[\w-]*/);return(d?d[0]:"grok").replace(/-\d{8}$/,"")}const o=a.split("/"),f=o[o.length-1].replace(/-\d{8}$/,"");return f.length>16?`${f.slice(0,15)}…`:f}function i3(a){const i=a.toLowerCase();return i.includes("read")?K0:i.includes("write")||i.includes("edit")||i.includes("replace")?zc:i.includes("search")||i.includes("grep")||i.includes("glob")?ab:i.includes("fetch")||i.includes("web")?J0:$0}function s3(a,i){if(!i)return[];const r=a.toLowerCase(),o=[];return r.includes("read")?(i.filePath&&o.push({label:"File",value:i.filePath,icon:m.jsx(K0,{className:"w-3 h-3"})}),o):r.includes("write")||r.includes("edit")||r.includes("replace")?(i.filePath&&o.push({label:"File",value:i.filePath,icon:m.jsx(zc,{className:"w-3 h-3"})}),o):r.includes("grep")||r.includes("search")?(i.pattern&&o.push({label:"Pattern",value:i.pattern}),i.path&&o.push({label:"Path",value:String(i.path)}),i.include&&o.push({label:"Include",value:String(i.include)}),o):r.includes("glob")?(i.pattern&&o.push({label:"Pattern",value:i.pattern}),i.path&&o.push({label:"Path",value:String(i.path)}),o):r.includes("bash")?(i.command&&o.push({label:"Command",value:i.command}),i.description&&o.push({label:"Description",value:String(i.description)}),o):r.includes("fetch")||r.includes("web")?(i.url&&o.push({label:"URL",value:i.url,icon:m.jsx(J0,{className:"w-3 h-3"})}),o):[]}const l3=C.memo(function({item:i}){const[r,o]=C.useState(!1),c=qe(i.agentName),f=()=>{switch(i.type){case"tool-call":{const S=i3(i.toolName);return m.jsx(S,{className:"w-4 h-4 text-gray-400"})}case"agent-spawn":return m.jsx(Z0,{className:"w-4 h-4 text-accent"});case"agent-complete":return i.status==="completed"?m.jsx(Aa,{className:"w-4 h-4 text-green-500"}):m.jsx(hi,{className:"w-4 h-4 text-red-500"})}},d=()=>{if(i.type==="tool-call")switch(i.state){case"pending":return m.jsx(js,{className:"w-3 h-3 animate-spin text-accent"});case"error":return m.jsx(hi,{className:"w-3 h-3 text-red-500"});case"complete":return m.jsx(Aa,{className:"w-3 h-3 text-green-500"});default:return m.jsx(ir,{className:"w-3 h-3 text-gray-600"})}return null},p=()=>{switch(i.type){case"tool-call":return m.jsxs("span",{className:"truncate text-text-primary",children:[m.jsx("span",{className:"font-mono text-accent/80 mr-2",children:i.toolName}),m.jsx("span",{className:"text-gray-400",children:i.summary||(i.input?JSON.stringify(i.input).slice(0,50):"")})]});case"agent-spawn":return m.jsxs("span",{className:"text-gray-400",children:["Spawned ",m.jsx("span",{style:{color:qe(i.spawnedAgentName)},children:i.spawnedAgentName})]});case"agent-complete":return m.jsxs("span",{className:"text-gray-400",children:["Completed task (",i.status,")",i.durationMs!=null&&m.jsxs("span",{className:"ml-2 text-xs opacity-60",children:[Math.round(i.durationMs/1e3),"s"]})]})}},[g,y]=C.useState(!1),v=()=>{if(i.type==="tool-call"){const S=s3(i.toolName,i.input),A=S.length>0;return m.jsxs("div",{className:"mt-2 pl-6 space-y-2",children:[A&&m.jsx("div",{className:"space-y-1",children:S.map(M=>m.jsxs("div",{className:"flex items-start gap-2 text-xs",children:[M.icon&&m.jsx("span",{className:"text-gray-500 mt-0.5",children:M.icon}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("div",{className:"text-gray-500 uppercase text-[10px] tracking-wider",children:M.label}),m.jsx("div",{className:"text-gray-300 font-mono break-all",children:M.value})]})]},M.label))}),i.input&&m.jsxs("div",{className:"border-t border-border/30 pt-2",children:[m.jsxs("button",{type:"button",onClick:()=>y(!g),className:"flex items-center gap-1 text-xs text-gray-500 hover:text-gray-400 transition-colors",children:[g?m.jsx(Jn,{className:"w-3 h-3"}):m.jsx(ar,{className:"w-3 h-3"}),m.jsx("span",{children:"Advanced"})]}),m.jsx(fr,{children:g&&m.jsx(vn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden mt-1",children:m.jsx("div",{className:"bg-surface/50 rounded p-2 text-xs font-mono overflow-x-auto text-gray-300",children:m.jsx("pre",{children:JSON.stringify(i.input,null,2)})})})})]}),i.error&&m.jsxs("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-2 text-xs font-mono text-red-400",children:[m.jsx("div",{className:"uppercase text-[10px] tracking-wider mb-1",children:"Error"}),i.error]})]})}return null},b=i.type==="tool-call"&&(i.input||i.error);return m.jsxs("div",{className:"flex flex-col border-b border-border/50",children:[m.jsxs("button",{type:"button",disabled:!b,"aria-expanded":b?r:void 0,className:`flex items-center gap-3 p-2 hover:bg-white/[0.02] transition-colors text-left ${b?"cursor-pointer":""}`,onClick:()=>b&&o(!r),onKeyDown:S=>{b&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(!r))},children:[m.jsx("span",{className:"text-xs text-gray-600 font-mono shrink-0 w-16",children:Ta(i.timestamp)}),m.jsx("div",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:c},title:i.agentName}),m.jsx("div",{className:"shrink-0",children:f()}),m.jsx("div",{className:"flex-1 min-w-0 text-sm flex items-center",children:p()}),m.jsxs("div",{className:"shrink-0 flex items-center gap-2",children:[d(),b&&(r?m.jsx(Jn,{className:"w-3 h-3 text-gray-500"}):m.jsx(ar,{className:"w-3 h-3 text-gray-500"}))]})]}),m.jsx(fr,{children:r&&m.jsx(vn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:m.jsx("div",{className:"pb-2 pr-2",children:v()})})})]})});function r3({burst:a}){const[i,r]=C.useState(!1),o=qe(a.agentName),c=Object.entries(a.toolBreakdown).map(([v,b])=>`${v} ×${b}`).join(", "),f=a.errorCount>0,d=a.pendingCount>0,p=a.items[a.items.length-1],g=p?.summary||p?.toolName||"Unknown Action",y=a.items.findLast(v=>v.error)?.error;return m.jsxs("div",{className:"flex flex-col border-b border-border/50","data-testid":"burst-row",children:[m.jsxs("button",{type:"button",onClick:()=>r(!i),"aria-expanded":i,className:"flex items-center gap-3 p-2 hover:bg-white/[0.02] transition-colors text-left cursor-pointer group w-full",children:[m.jsx("span",{className:"text-xs text-gray-600 font-mono shrink-0 w-16",children:Ta(a.firstTimestamp)}),m.jsx("div",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:o}}),m.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-xs opacity-80",style:{color:o},children:a.agentName}),m.jsx("span",{className:"text-sm text-text-primary truncate font-medium flex-1 min-w-0",children:g}),m.jsx("span",{className:"text-xs text-text-secondary opacity-60 truncate shrink-0 max-w-[200px]",children:c})]}),(f||y)&&m.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[f&&m.jsxs("span",{className:"text-red-400 flex items-center gap-1 font-medium",children:[a.errorCount," error",a.errorCount>1?"s":""]}),y&&m.jsx("span",{className:"text-red-400/80 truncate max-w-[400px]",children:y.length>60?y.slice(0,60)+"...":y})]})]}),m.jsxs("div",{className:"shrink-0 flex items-center gap-3",children:[a.durationMs>0&&m.jsxs("span",{className:"text-xs text-gray-600 font-mono",children:[Math.round(a.durationMs/1e3),"s"]}),f&&m.jsx(hr,{className:"w-3 h-3 text-red-500"}),d&&m.jsx(js,{className:"w-3 h-3 animate-spin text-accent"}),i?m.jsx(Jn,{className:"w-3 h-3 text-gray-500"}):m.jsx(ar,{className:"w-3 h-3 text-gray-500"})]})]}),m.jsx(fr,{children:i&&m.jsx(vn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden bg-white/[0.01]",children:m.jsx("div",{className:"pl-4 border-l border-border/30 ml-4 mb-2",children:a.items.map(v=>m.jsx(l3,{item:v},v.id))})})})]})}function o3({entry:a}){const{item:i}=a;return i.type==="agent-spawn"?m.jsxs("div",{className:"flex items-center gap-3 p-3 bg-surface/50 border-b border-border/50","data-testid":"milestone-spawn",children:[m.jsx("span",{className:"text-xs text-gray-600 font-mono shrink-0 w-16",children:Ta(i.timestamp)}),m.jsx(Z0,{className:"w-4 h-4 text-accent shrink-0"}),m.jsxs("div",{className:"flex-1 min-w-0 text-sm",children:[m.jsx("span",{className:"text-gray-400",children:"Spawned "}),m.jsx("span",{style:{color:qe(i.spawnedAgentName)},className:"font-medium",children:i.spawnedAgentName}),m.jsxs("span",{className:"text-gray-600 text-xs ml-2",children:["from ",i.agentName]})]})]}):i.type==="agent-complete"?m.jsxs("div",{className:"flex items-center gap-3 p-3 bg-surface/50 border-b border-border/50","data-testid":"milestone-complete",children:[m.jsx("span",{className:"text-xs text-gray-600 font-mono shrink-0 w-16",children:Ta(i.timestamp)}),i.status==="completed"?m.jsx(Aa,{className:"w-4 h-4 text-green-500 shrink-0"}):m.jsx(hi,{className:"w-4 h-4 text-red-500 shrink-0"}),m.jsxs("div",{className:"flex-1 min-w-0 text-sm",children:[m.jsx("span",{style:{color:qe(i.agentName)},className:"font-medium",children:i.agentName}),m.jsxs("span",{className:"text-gray-400 ml-2",children:["completed (",i.status,")"]}),i.durationMs!=null&&m.jsxs("span",{className:"ml-2 text-xs text-gray-600 font-mono",children:[Math.round(i.durationMs/1e3),"s"]})]})]}):null}function lc(a,i){let r=null;for(const o of a)o.type==="milestone"&&o.item.type==="agent-complete"&&o.item.agentName===i&&(r=o.item.status==="completed"?"completed":"error");return r??"active"}function u3(a){return a>=5?"high":a>=2?"medium":"low"}const c3={high:"flex-[2_1_16rem]",medium:"flex-[1.4_1_13rem]",low:"flex-[1_1_10rem]"};function f3({entries:a}){const[i,r]=C.useState(new Set),o=C.useMemo(()=>{const d=new Map;return a.forEach(p=>{const g=p.type==="burst"?p.agentName:p.item.agentName;d.has(g)||d.set(g,[]),d.get(g).push(p)}),d},[a]),c=C.useMemo(()=>Array.from(o.keys()).sort((p,g)=>{const y=lc(a,p),v=lc(a,g),b=y==="active"?0:1,S=v==="active"?0:1;if(b!==S)return b-S;const A=o.get(p)?.length??0,M=o.get(g)?.length??0;return A!==M?M-A:p.localeCompare(g)}),[a,o]),f=d=>{r(p=>{const g=new Set(p);return g.has(d)?g.delete(d):g.add(d),g})};return c.length===0?m.jsx("div",{className:"p-8 text-center text-text-secondary text-sm",children:"No agents yet"}):m.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden bg-[#0d1117] min-h-0",children:m.jsx("div",{className:"flex gap-3 p-4 min-w-min h-full",children:c.map(d=>{const p=qe(d),g=lc(a,d),y=o.get(d)||[],v=g==="completed",b=g==="error",S=y.length,A=u3(S),M=S<=1&&!i.has(d);return m.jsxs(vn.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3},"data-testid":"swimlane-column",className:`flex flex-col shrink-0 rounded-lg border overflow-hidden ${M?"w-40":c3[A]} ${v?"border-border/30 bg-surface/30 opacity-60":b?"border-red-500/30 bg-red-500/5":"border-border bg-surface/50"}`,children:[m.jsx("div",{className:`px-3 py-2 border-b ${v?"border-border/20 bg-surface/20":b?"border-red-500/20 bg-red-500/10":"border-border/50 bg-surface"}`,children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:`w-2 h-2 rounded-full shrink-0 ${v?"opacity-40":""}`,style:{backgroundColor:p}}),m.jsx("span",{className:`text-xs font-mono font-semibold truncate ${v?"text-text-secondary/60":""}`,style:{color:v?void 0:p},children:d}),S>0&&m.jsx("span",{className:"text-[10px] text-text-secondary/50 ml-auto shrink-0",children:S}),v&&m.jsx(Aa,{className:"w-3 h-3 text-green-500/60 shrink-0"}),b&&m.jsx(hi,{className:"w-3 h-3 text-red-500/60 shrink-0"})]})}),M?m.jsx("button",{type:"button",onClick:()=>f(d),className:"flex-1 flex items-center justify-center gap-1 p-2 text-xs text-text-secondary/50 hover:text-text-secondary hover:bg-white/[0.02] transition-colors","data-testid":"compact-expand",children:S===0?m.jsx("span",{children:"No activity"}):m.jsxs(m.Fragment,{children:[m.jsxs("span",{children:[S," event"]}),m.jsx(ar,{className:"w-3 h-3"})]})}):m.jsx("div",{className:"flex-1 overflow-y-auto min-h-0",children:m.jsx("div",{className:"divide-y divide-border/30",children:y.map((O,k)=>{if(O.type==="burst"){const B=O;return m.jsx(vn.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:k*.05},className:"p-2 text-xs hover:bg-white/[0.02] transition-colors",children:m.jsxs("div",{className:"flex items-start gap-1.5",children:[m.jsx("span",{className:"text-gray-600 font-mono shrink-0 text-[10px]",children:Ta(B.firstTimestamp)}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("div",{className:"text-text-secondary truncate",children:Object.entries(B.toolBreakdown).map(([X,Z])=>`${X} ×${Z}`).join(", ")}),B.durationMs>0&&m.jsxs("div",{className:"text-gray-600 text-[10px]",children:[Math.round(B.durationMs/1e3),"s"]}),B.errorCount>0&&m.jsxs("div",{className:"text-red-400 text-[10px] flex items-center gap-1 mt-0.5",children:[m.jsx(hr,{className:"w-2.5 h-2.5"}),B.errorCount," error",B.errorCount>1?"s":""]}),B.pendingCount>0&&m.jsxs("div",{className:"text-accent text-[10px] flex items-center gap-1 mt-0.5",children:[m.jsx(js,{className:"w-2.5 h-2.5 animate-spin"}),B.pendingCount," pending"]})]})]})},O.id)}const Y=O.item;return Y.type==="agent-spawn"?m.jsx(vn.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:k*.05},className:"p-2 text-xs bg-accent/5 hover:bg-accent/10 transition-colors",children:m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-gray-600 font-mono shrink-0 text-[10px]",children:Ta(Y.timestamp)}),m.jsx("span",{className:"text-text-secondary",children:"→"}),m.jsx("span",{className:"font-mono font-semibold truncate",style:{color:qe(Y.spawnedAgentName)},children:Y.spawnedAgentName})]})},O.id):Y.type==="agent-complete"?m.jsx(vn.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:k*.05},className:`p-2 text-xs ${Y.status==="completed"?"bg-green-500/5 hover:bg-green-500/10":"bg-red-500/5 hover:bg-red-500/10"} transition-colors`,children:m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-gray-600 font-mono shrink-0 text-[10px]",children:Ta(Y.timestamp)}),Y.status==="completed"?m.jsx(Aa,{className:"w-3 h-3 text-green-500 shrink-0"}):m.jsx(hi,{className:"w-3 h-3 text-red-500 shrink-0"}),m.jsx("span",{className:"text-text-secondary truncate",children:Y.status}),Y.durationMs!=null&&m.jsxs("span",{className:"text-gray-600 text-[10px] ml-auto shrink-0",children:[Math.round(Y.durationMs/1e3),"s"]})]})},O.id):null})})})]},d)})})})}const d3=C.memo(function({entries:i,totalTokens:r=0}){const[o,c]=C.useState(!1),[f,d]=C.useState(new Set),[p,g]=C.useState("stream"),[y,v]=C.useState(!1),b=C.useRef(""),[S,A]=C.useState(0),M=C.useRef(null);M.current===null&&(M.current=new Set(i.map(tt=>tt.id)));const O=C.useRef(null),[k,V]=C.useState(!0),[Y,B]=C.useState(!1),X=C.useMemo(()=>{const tt=new Set;return i.forEach(ut=>{ut.type==="burst"?tt.add(ut.agentName):ut.type==="milestone"&&tt.add(ut.item.agentName)}),Array.from(tt).sort()},[i]);C.useEffect(()=>{const tt=X.join(",");b.current!==""&&b.current!==tt&&d(new Set),b.current=tt},[X]),C.useEffect(()=>{const tt=M.current;let ut=0;for(const _ of i)tt.has(_.id)||(tt.add(_.id),ut++);tt.size>2e3&&(M.current=new Set(i.map(_=>_.id))),ut>0&&(A(_=>_+ut),k&&O.current?requestAnimationFrame(()=>{O.current?.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})}):k||B(!0))},[i,k]);const Z=()=>{if(O.current){const{scrollTop:tt,scrollHeight:ut,clientHeight:_}=O.current,G=ut-tt-_<50;V(G),B(!G&&S>0)}},at=()=>{O.current&&O.current.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})},I=()=>{const tt=!o;c(tt),tt||A(0)},K=C.useMemo(()=>{let tt=i;return y&&(tt=tt.filter(ut=>ut.type==="milestone")),f.size===0?tt:tt.filter(ut=>{const _=ut.type==="burst"?ut.agentName:ut.item.agentName;return f.has(_)})},[i,f,y]),it=tt=>{const ut=new Set(f);ut.has(tt)?ut.delete(tt):ut.add(tt),d(ut)},jt=()=>{d(new Set)},_t=o?"h-auto":"h-80 max-h-[50vh]",Ut=i.reduce((tt,ut)=>ut.type==="burst"?tt+ut.items.length:(ut.type==="milestone",tt),0),ge=X.length;return m.jsxs("div",{className:`flex flex-col ${_t} bg-surface border-t border-border shadow-lg w-full shrink-0 overflow-hidden`,children:[m.jsxs("div",{className:"flex flex-col border-b border-border bg-surface shrink-0",children:[m.jsxs("div",{className:"flex items-center justify-between p-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(X0,{className:"w-4 h-4 text-accent"}),m.jsx("h3",{className:"font-semibold text-sm",children:"Activity Stream"}),m.jsx("span",{className:"text-xs text-text-secondary bg-white/5 px-1.5 py-0.5 rounded-full",children:K.length}),o&&S>0&&m.jsx("span",{className:"ml-2 bg-accent text-white text-xs px-2 py-0.5 rounded-full font-medium",children:S>9?"9+":S})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[f.size>0&&m.jsxs("button",{type:"button",onClick:jt,className:"text-xs text-text-secondary hover:text-white flex items-center gap-1 transition-colors",title:"Clear filters",children:[m.jsx(hi,{className:"w-3 h-3"}),"Clear"]}),m.jsx("button",{type:"button",onClick:I,className:"text-text-secondary hover:text-white transition-colors","aria-expanded":!o,"aria-label":"Toggle activity stream",children:o?m.jsx(z1,{className:"w-4 h-4"}):m.jsx(Jn,{className:"w-4 h-4"})})]})]}),!o&&m.jsxs("div",{className:"flex items-center justify-between px-3 gap-4 border-t border-border/50",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("button",{type:"button",onClick:()=>g("stream"),className:`py-2 text-xs font-medium border-b-2 transition-colors flex items-center gap-1.5 ${p==="stream"?"border-accent text-accent":"border-transparent text-text-secondary hover:text-text-primary"}`,children:[m.jsx(P1,{className:"w-3.5 h-3.5"}),"Stream"]}),m.jsxs("button",{type:"button",onClick:()=>g("agents"),className:`py-2 text-xs font-medium border-b-2 transition-colors flex items-center gap-1.5 ${p==="agents"?"border-accent text-accent":"border-transparent text-text-secondary hover:text-text-primary"}`,children:[m.jsx(db,{className:"w-3.5 h-3.5"}),"Agents"]})]}),p==="stream"&&m.jsx("button",{type:"button",onClick:()=>v(!y),className:`text-text-secondary hover:text-white transition-colors ${y?"text-accent":""}`,"aria-label":"Toggle milestones only","aria-pressed":y,title:"Milestones only",children:m.jsx(L1,{className:"w-4 h-4"})})]})]}),o?m.jsxs("button",{type:"button",className:"w-full p-3 bg-surface/50 text-xs text-text-secondary flex justify-between items-center cursor-pointer hover:bg-white/5 transition-colors",onClick:()=>{c(!1),A(0)},children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("span",{children:[Ut," calls"]}),m.jsxs("span",{children:[ge," agents"]}),r>0&&m.jsxs("span",{children:[r.toLocaleString()," tokens"]})]}),m.jsx(Jn,{className:"w-3 h-3 opacity-50"})]}):m.jsxs(m.Fragment,{children:[p==="stream"&&X.length>0&&m.jsxs("div",{className:"p-2 border-b border-border bg-surface/50 flex flex-wrap gap-1.5 max-h-24 overflow-y-auto shrink-0",children:[m.jsx("div",{className:"flex items-center mr-1",children:m.jsx(X1,{className:"w-3 h-3 text-text-secondary"})}),X.map(tt=>m.jsx("button",{type:"button",onClick:()=>it(tt),"aria-pressed":f.has(tt),className:`
|
|
18
|
-
text-[10px] px-2 py-0.5 rounded-full border transition-all
|
|
19
|
-
${f.has(tt)?"bg-opacity-20 border-opacity-50 text-white":"bg-transparent border-transparent text-text-secondary hover:bg-white/5 hover:text-gray-300"}
|
|
20
|
-
`,style:{borderColor:f.has(tt)?qe(tt):"transparent",backgroundColor:f.has(tt)?qe(tt):void 0},children:tt},tt))]}),m.jsxs("div",{ref:O,onScroll:Z,className:"flex-1 overflow-y-auto min-h-0 bg-[#0d1117] relative","aria-live":"polite",role:"log",children:[p==="stream"?K.length===0?m.jsx("div",{className:"p-8 text-center text-text-secondary text-sm",children:"No activity yet"}):m.jsx(fr,{children:K.map(tt=>m.jsx(vn.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},children:tt.type==="burst"?m.jsx(r3,{burst:tt}):m.jsx(o3,{entry:tt})},tt.id))}):m.jsx(f3,{entries:K}),Y&&m.jsxs(vn.button,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},onClick:at,type:"button",className:"absolute bottom-4 right-4 bg-accent text-white px-3 py-2 rounded-full shadow-lg flex items-center gap-2 hover:bg-accent/90 transition-colors text-sm font-medium",children:["Jump to latest ",m.jsx(Jn,{className:"w-4 h-4"})]})]})]})]})});function h3(a){const i=typeof a=="string"?new Date(a):a,o=Date.now()-i.getTime(),c=Math.floor(o/6e4),f=Math.floor(c/60);if(c<1)return"<1m";if(c<60)return`${c}m`;if(f<24)return`${f}h`;const d=Math.floor(f/24);return d<7?`${d}d`:i.toLocaleDateString()}function k0(a){const i=new Date(a),o=Math.max(0,Math.floor((new Date().getTime()-i.getTime())/1e3));return o<60?"just now":o<3600?`${Math.floor(o/60)}m ago`:o<86400?`${Math.floor(o/3600)}h ago`:`${Math.floor(o/86400)}d ago`}function Og({icon:a,title:i,description:r,action:o}){return m.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center",children:[m.jsx("div",{className:"p-4 bg-surface rounded-full border border-border mb-4",children:m.jsx(a,{className:"w-12 h-12 text-text-secondary"})}),m.jsx("h3",{className:"text-xl font-semibold mb-2",children:i}),m.jsx("p",{className:"text-text-secondary max-w-md mb-6",children:r}),o&&m.jsx("button",{onClick:o.onClick,className:"px-4 py-2 bg-accent text-white rounded-lg hover:bg-accent/90 transition-colors",children:o.label})]})}function m3(a={}){const{interval:i=2e3,enabled:r=!0,apiUrl:o="/api/poll",maxRetries:c=5,sessionId:f}=a,d=f?`${o}?sessionId=${f}`:o,[p,g]=C.useState({data:null,loading:!0,error:null,lastUpdate:0,isReconnecting:!1,failedAttempts:0}),y=C.useRef(null),v=C.useRef(null),b=C.useRef(null),S=C.useRef(f),A=C.useRef(0);C.useEffect(()=>{S.current!==f&&(S.current=f,y.current=null,b.current&&(clearTimeout(b.current),b.current=null),A.current=0,g(O=>({...O,loading:!0,data:O.data?{...O.data,messages:[],activitySessions:[],sessionStats:null}:null,error:null,failedAttempts:0})))},[f]);const M=C.useCallback(async()=>{const O=S.current;v.current&&v.current.abort();const k=new AbortController;v.current=k;try{const V={};y.current&&(V["If-None-Match"]=y.current);const Y=await fetch(d,{headers:V,signal:k.signal});if(S.current!==O)return;if(Y.status===304){g(Z=>({...Z,loading:!1,lastUpdate:Date.now(),isReconnecting:!1,failedAttempts:0})),A.current=0;return}if(!Y.ok)throw new Error(`HTTP ${Y.status}: ${Y.statusText}`);const B=Y.headers.get("ETag");B&&(y.current=B);const X=await Y.json();if(S.current!==O)return;g({data:X,loading:!1,error:null,lastUpdate:Date.now(),isReconnecting:!1,failedAttempts:0}),A.current=0}catch(V){if(V instanceof Error&&V.name==="AbortError"||S.current!==O)return;const Y=A.current+1;A.current=Y;const B=Y<c;if(g(X=>({...X,loading:!1,error:V instanceof Error?V:new Error("Unknown error"),isReconnecting:B,failedAttempts:Y})),B){const X=Math.min(1e3*Math.pow(2,Y-1),1e4);b.current=setTimeout(()=>{M()},X)}}},[d,c]);return C.useEffect(()=>{if(!r)return;M();const O=setInterval(M,i);return()=>{clearInterval(O),v.current&&v.current.abort(),b.current&&clearTimeout(b.current)}},[r,i,M]),p}function p3(a={}){const{enabled:i=!0,apiUrl:r="/api/sse",pollingInterval:o=2e3,sessionId:c}=a,[f,d]=C.useState(!1),[p,g]=C.useState({data:null,loading:!0,error:null,lastUpdate:0,isReconnecting:!1,failedAttempts:0}),y=C.useRef(null),v=C.useRef(null),b=C.useRef(null),S=C.useRef(c),A=C.useRef(Date.now()),M=m3({enabled:i&&f,interval:o,apiUrl:"/api/poll",sessionId:c}),O=C.useCallback(async()=>{const k=c?`/api/poll?sessionId=${c}`:"/api/poll";try{const V=await fetch(k);if(!V.ok)throw new Error(`HTTP ${V.status}`);const Y=await V.json();S.current===c&&g(B=>({...B,data:Y,loading:!1,lastUpdate:Date.now(),error:null}))}catch(V){console.error("Failed to fetch data:",V)}},[c]);return C.useEffect(()=>{S.current!==c&&(S.current=c,g(k=>({...k,loading:!0,data:k.data?{...k.data,messages:[],activitySessions:[],sessionStats:null}:null})))},[c]),C.useEffect(()=>{const k=()=>{document.visibilityState==="visible"&&i&&(g(Y=>({...Y,isReconnecting:!0})),d(!1))},V=()=>{i&&(g(Y=>({...Y,isReconnecting:!0})),d(!1))};return document.addEventListener("visibilitychange",k),window.addEventListener("online",V),()=>{document.removeEventListener("visibilitychange",k),window.removeEventListener("online",V)}},[i]),C.useEffect(()=>{if(!i||!f){v.current&&(clearTimeout(v.current),v.current=null);return}const k=Math.min(3e4,2e3*Math.max(1,p.failedAttempts));return v.current=setTimeout(()=>{g(V=>({...V,isReconnecting:!0})),d(!1)},k),()=>{v.current&&(clearTimeout(v.current),v.current=null)}},[i,f,p.failedAttempts]),C.useEffect(()=>{if(!i||f){b.current&&(b.current.close(),b.current=null);return}O();const k=c?`${r}?sessionId=${c}`:r,V=new EventSource(k);b.current=V;const Y=X=>{A.current=Date.now(),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{O()},100)};V.addEventListener("connected",()=>{g(X=>({...X,error:null,isReconnecting:!1,failedAttempts:0}))}),V.addEventListener("session-update",Y),V.addEventListener("message-update",Y),V.addEventListener("part-update",Y),V.addEventListener("plan-update",Y),V.addEventListener("heartbeat",()=>{}),V.onerror=()=>{V.close(),b.current=null,g(X=>({...X,error:new Error("SSE Connection Failed"),isReconnecting:!0,failedAttempts:X.failedAttempts+1})),d(!0)};const B=setInterval(()=>{Date.now()-A.current>45e3&&(V.close(),b.current=null,g(Z=>({...Z,error:new Error("SSE Connection Stale"),isReconnecting:!0,failedAttempts:Z.failedAttempts+1})),d(!0))},1e4);return()=>{clearInterval(B),y.current&&clearTimeout(y.current),v.current&&(clearTimeout(v.current),v.current=null),V.close(),b.current===V&&(b.current=null)}},[i,f,r,c,O]),f?M:p}function y3(a,i,r=[]){const[o,c]=C.useState(()=>typeof Notification>"u"?"denied":Notification.permission),f=C.useRef(null),d=C.useRef(new Map),p=C.useRef(i),g=async()=>{if(o!=="default")return o;if(typeof Notification>"u")return"denied";try{const y=await Notification.requestPermission();return c(y),y}catch{try{await new Promise(y=>{Notification.requestPermission(v=>{y(v)})}).then(y=>(c(y),y))}catch{return"denied"}return"denied"}};return C.useEffect(()=>{const y=[...a,...r].map(A=>({id:A.id,activityType:A.activityType,parentID:A.parentID,agent:A.agent||null}));if(p.current===!0&&i===!1){f.current=y,p.current=i;return}if(p.current=i,f.current===null){f.current=y;return}if(o!=="granted"){f.current=y;return}const v=new Map;for(const A of f.current)v.set(A.id,A);const b=new Map;for(const A of y)b.set(A.id,A);const S=Date.now();for(const[A,M]of b.entries()){const O=v.get(A);if(!O)continue;const k=d.current.get(A);k&&S-k<1e4||M.activityType==="waiting-user"&&O.activityType!=="waiting-user"&&(new Notification("🔔 Input needed",{body:`${M.agent||"Agent"} is waiting for your response`,tag:`ocwatch-waiting-${A}`,requireInteraction:!1}),d.current.set(A,S))}f.current=y},[a,r,i,o]),{permission:o,requestPermission:g,enabled:o==="granted"}}const _g=C.createContext(void 0);function g3({children:a,apiUrl:i,pollingInterval:r}){const[o,c]=C.useState(null),[f,d]=C.useState([]),{data:p,loading:g,error:y,lastUpdate:v,isReconnecting:b}=p3({apiUrl:i,pollingInterval:r,sessionId:o}),{permission:S,requestPermission:A}=y3(p?.sessions||[],b,p?.activitySessions||[]),[M,O]=C.useState(null),[k,V]=C.useState([]);C.useEffect(()=>{(async()=>{try{const Z=await fetch(`${i||""}/api/projects`);if(Z.ok){const at=await Z.json();V(at);const K=new URLSearchParams(window.location.search).get("project");K&&O(K)}}catch(X){console.error("Failed to fetch projects:",X)}})()},[i]),C.useEffect(()=>{if(M){const B=new URLSearchParams(window.location.search);B.set("project",M),window.history.replaceState({},"",`?${B.toString()}`)}},[M]),C.useEffect(()=>{const X=(p?.sessions||[]).some(Z=>Z.activityType==="waiting-user");document.title=X?"⚡ Input needed — OCWatch":"OCWatch"},[p?.sessions]);const Y=C.useMemo(()=>({sessions:p?.sessions||[],activeSession:p?.activeSession||null,planProgress:p?.planProgress||null,sessionStats:p?.sessionStats||null,messages:p?.messages||[],activitySessions:p?.activitySessions||[],selectedSessionId:o,projects:k,selectedProjectId:M,loading:g,error:y,lastUpdate:v,isReconnecting:b,agentFilter:f,notificationPermission:S,requestNotificationPermission:A,setSelectedSessionId:c,setSelectedProjectId:O,setAgentFilter:d}),[p,o,k,M,g,y,v,b,f,S,A]);return m.jsx(_g.Provider,{value:Y,children:a})}function Cs(){const a=C.useContext(_g);if(a===void 0)throw new Error("useAppContext must be used within AppProvider");return a}const Vg=Y0.memo(({status:a,color:i})=>a==="working"?m.jsxs("div",{className:"relative w-2 h-2 flex-shrink-0",children:[m.jsx("div",{className:"absolute inset-0 rounded-full opacity-75 animate-ping",style:{backgroundColor:i}}),m.jsx("div",{className:"relative w-2 h-2 rounded-full",style:{backgroundColor:i}})]}):a==="idle"?m.jsx("div",{className:"w-2 h-2 rounded-full animate-pulse flex-shrink-0 bg-success"}):a==="completed"?m.jsx("div",{className:"w-2 h-2 rounded-full bg-border flex-shrink-0"}):m.jsx("div",{className:"w-2 h-2 rounded-full bg-background flex-shrink-0"})),v3=()=>{const{sessions:a,selectedSessionId:i,activitySessions:r}=Cs(),o=C.useMemo(()=>a.find(d=>d.id===i),[a,i]),c=C.useMemo(()=>{if(i)return null;let d=0,p=0,g=0,y=0;return a.forEach(v=>{v.status==="working"?d++:v.status==="idle"?p++:v.status==="waiting"?g++:y++}),{working:d,idle:p,waiting:g,completed:y}},[a,i]),f=C.useMemo(()=>!i||!o?null:{agentCount:r.filter(p=>p.id===i||p.parentID===i).length,duration:a3(o.createdAt,o.updatedAt),model:o.modelID?zg(o.modelID):"—",color:qe(o.agent)},[i,o,r]);return i?m.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-surface rounded-md border border-border","data-testid":"scope-snapshot",children:[m.jsx("div",{className:"flex justify-between items-center gap-2",children:m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx(Vg,{status:o?.status,color:f?.color||"#6b7280"}),m.jsx("span",{className:"text-xs font-medium text-text-primary truncate",children:o?.title||"Untitled Session"})]})}),m.jsxs("div",{className:"flex justify-between items-center text-[10px] text-text-secondary",children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0 font-mono",children:[m.jsx("span",{children:f?.duration}),m.jsx("span",{children:"·"}),m.jsx("span",{className:"truncate",children:f?.model})]}),f&&f.agentCount>0&&m.jsxs("span",{className:"font-mono bg-background px-1.5 rounded-sm",children:[f.agentCount," agent",f.agentCount!==1?"s":""]})]})]}):m.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-surface rounded-md border border-border","data-testid":"scope-snapshot",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("span",{className:"text-xs font-medium text-text-primary",children:"All sessions"}),m.jsx("span",{className:"text-xs font-mono text-text-secondary bg-background px-1.5 rounded-sm",children:a.length})]}),m.jsx("div",{className:"flex gap-2 text-[10px] font-mono",children:c&&m.jsxs(m.Fragment,{children:[c.working>0&&m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"text-accent",children:[c.working," working"]}),m.jsx("span",{className:"text-text-secondary",children:"·"})]}),c.idle>0&&m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"text-success",children:[c.idle," idle"]}),m.jsx("span",{className:"text-text-secondary",children:"·"})]}),c.waiting>0&&m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"text-warning",children:[c.waiting," waiting"]}),m.jsx("span",{className:"text-text-secondary",children:"·"})]}),m.jsxs("span",{className:"text-text-secondary",children:[c.completed," done"]})]})})]})},x3=()=>{const{activitySessions:a,selectedSessionId:i}=Cs(),{displayAgents:r,overflowCount:o,isSessionMode:c}=C.useMemo(()=>{let f=[];const d=!!i;d?f=a.filter(g=>g.id===i||g.parentID===i):f=a.filter(g=>g.status==="working"||g.status==="idle");const p=[...f].sort((g,y)=>{const v=g.status==="working"?2:g.status==="idle"?1:0,b=y.status==="working"?2:y.status==="idle"?1:0;return v!==b?b-v:(y.tokens||0)-(g.tokens||0)});return d?{displayAgents:p.slice(0,5),overflowCount:Math.max(0,p.length-5),isSessionMode:!0}:{displayAgents:p,overflowCount:0,isSessionMode:!1}},[a,i]);return r.length===0?m.jsx("div",{className:"p-3 bg-surface rounded-md border border-border text-xs text-text-secondary text-center","data-testid":"active-agents-empty",children:"No active agents"}):m.jsxs("div",{className:"p-3 bg-surface rounded-md border border-border","data-testid":"active-agents",children:[m.jsx("div",{className:"flex flex-col gap-1.5 max-h-[200px] overflow-y-auto",children:r.map(f=>m.jsx(b3,{session:f},f.id))}),c&&o>0&&m.jsxs("div",{className:"text-[10px] text-text-secondary text-center mt-1.5 pt-1.5 border-t border-border/50",children:["+",o," more agents"]})]})},b3=Y0.memo(({session:a})=>{const i=qe(a.agent);return m.jsxs("div",{className:"flex items-center justify-between gap-2 text-xs",children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[m.jsx(Vg,{status:a.status,color:i}),m.jsx("span",{className:"font-medium text-text-primary truncate flex-1 min-w-0",title:a.agent,children:a.agent}),m.jsx("span",{className:"text-[10px] text-text-secondary truncate max-w-[80px]",title:a.modelID,children:a.modelID?zg(a.modelID):"—"})]}),m.jsx("span",{className:"font-mono text-text-secondary whitespace-nowrap ml-1",children:Cc(a.tokens||0)})]})}),S3=()=>{const{planProgress:a}=Cs();if(!a)return m.jsx("div",{className:"p-3 bg-surface rounded-md border border-border text-xs text-text-secondary text-center","data-testid":"sidebar-plan-empty",children:"No plan"});const{completed:i,total:r,progress:o,tasks:c}=a,f=c.find(p=>!p.completed),d=Math.min(100,Math.max(0,o));return m.jsxs("div",{className:"flex flex-col gap-2 p-3 bg-surface rounded-md border border-border","data-testid":"sidebar-plan-progress",children:[m.jsx("span",{className:"text-[10px] text-text-secondary uppercase tracking-wider font-semibold",children:"Plan"}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex-1 h-2 bg-background rounded-full overflow-hidden",children:m.jsx("div",{className:"h-full bg-accent transition-all duration-500 ease-out",style:{width:`${d}%`}})}),m.jsxs("span",{className:"text-xs font-mono text-text-secondary whitespace-nowrap",children:[i,"/",r," tasks"]})]}),f&&m.jsxs("div",{className:"flex flex-col gap-0.5",children:[m.jsx("span",{className:"text-[10px] text-text-secondary uppercase tracking-wider font-semibold",children:"Current"}),m.jsx("span",{className:"text-xs text-text-primary truncate",title:f.description,children:f.description})]}),!f&&i===r&&m.jsx("div",{className:"text-xs text-success",children:"All tasks completed"})]})};function q0(a){const i=Math.floor((Date.now()-a)/1e3);return i<60?`${i}s`:`${Math.floor(i/60)}m`}const T3=()=>{const{lastUpdate:a,isReconnecting:i,error:r}=Cs(),[o,c]=C.useState(()=>q0(a));C.useEffect(()=>{const p=setInterval(()=>{c(q0(a))},1e3);return()=>clearInterval(p)},[a]);let f="bg-green-500",d="Connected";return r?(f="bg-red-500",d="Error"):i&&(f="bg-amber-500",d="Reconnecting"),m.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-surface border-t border-border text-[10px] text-text-secondary mt-auto","data-testid":"system-health",children:[m.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${f}`}),m.jsx("span",{children:d}),m.jsx("span",{children:"·"}),m.jsx("span",{children:"2s poll"}),m.jsx("span",{children:"·"}),m.jsxs("span",{children:["Updated ",o," ago"]})]})},A3=({status:a,activityType:i})=>a==="working"?m.jsx(js,{className:"w-4 h-4 text-accent animate-spin","data-testid":"session-status-working"}):a==="idle"?m.jsx(ir,{className:"w-4 h-4 text-success animate-pulse","data-testid":"session-status-idle"}):a==="waiting"?i==="waiting-user"?m.jsx(F0,{className:"w-4 h-4 text-warning animate-waiting-user-icon","data-testid":"session-status-waiting-user"}):m.jsx(ir,{className:"w-4 h-4 text-text-secondary","data-testid":"session-status-waiting"}):m.jsx(Aa,{className:"w-4 h-4 text-text-secondary","data-testid":"session-status-completed"}),N3=({sessions:a,selectedId:i,onSelect:r,projects:o=[],selectedProjectId:c=null,onProjectSelect:f=()=>{}})=>{const[d,p]=C.useState(!1),y=[...c?a.filter(A=>A.projectID===c):a].sort((A,M)=>{const O=new Date(M.updatedAt).getTime()-new Date(A.updatedAt).getTime();return O!==0?O:A.id.localeCompare(M.id)}),b=o.find(A=>A.id===c)?.directory.split("/").pop()||"All Projects",S=A=>o.find(O=>O.id===A)?.directory.split("/").pop()||A.slice(0,8);return m.jsxs("div",{className:"w-[280px] h-full bg-surface border-r border-border flex flex-col","data-testid":"session-list",children:[m.jsxs("div",{className:"p-4 border-b border-border",children:[m.jsxs("div",{className:"relative mb-3",children:[m.jsxs("button",{type:"button",onClick:()=>p(!d),"data-testid":"project-dropdown-button",className:"w-full flex items-center justify-between gap-2 px-3 py-2 bg-background border border-border rounded hover:bg-surface transition-colors text-text-primary text-sm",children:[m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx(Y1,{className:"w-4 h-4 text-accent shrink-0"}),m.jsx("span",{className:"truncate",children:b})]}),m.jsx(Jn,{className:`w-4 h-4 shrink-0 transition-transform ${d?"rotate-180":""}`})]}),d&&m.jsxs("div",{className:"absolute top-full left-0 right-0 mt-1 bg-surface border border-border rounded shadow-lg z-10","data-testid":"project-dropdown-menu",children:[m.jsx("button",{type:"button",onClick:()=>{f(null),p(!1)},className:`w-full text-left px-3 py-2 text-sm transition-colors ${c===null?"bg-accent/20 text-accent":"text-text-primary hover:bg-background"}`,children:"All Projects"}),o.map(A=>m.jsxs("button",{type:"button",onClick:()=>{f(A.id),p(!1)},"data-testid":`project-option-${A.id}`,className:`w-full text-left px-3 py-2 text-sm transition-colors flex items-center justify-between ${c===A.id?"bg-accent/20 text-accent":"text-text-primary hover:bg-background"}`,children:[m.jsx("span",{className:"truncate",children:A.directory.split("/").pop()}),m.jsx("span",{className:"text-xs text-text-secondary ml-2 shrink-0",children:k0(A.lastActivityAt)})]},A.id))]})]}),m.jsx("h2",{className:"text-text-primary font-semibold text-lg",children:"Sessions"})]}),m.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",role:"listbox","aria-label":"Sessions",tabIndex:0,"aria-activedescendant":i||void 0,children:y.length===0?m.jsx(Og,{icon:K1,title:"No Sessions",description:c?"No sessions found in this project":"No active sessions in the last 24 hours"}):y.map(A=>{const M=A.id===i,O=A.status||"completed",k=A.activityType;let V="border-l-transparent";return M||O==="working"?V="border-l-accent":O==="idle"?V="border-l-success":O==="waiting"&&k==="waiting-user"?V="border-l-transparent animate-attention":O==="completed"&&(V="border-l-transparent"),m.jsxs("button",{type:"button","data-testid":`session-item-${A.id}`,onClick:()=>r(A.id),role:"option","aria-selected":M,className:`w-full text-left p-3 border-b border-border hover:bg-background transition-colors flex flex-col gap-1 group border-l-2
|
|
21
|
-
${V}
|
|
22
|
-
${M?"bg-background":""}
|
|
23
|
-
`,children:[m.jsxs("div",{className:"flex items-center gap-2 w-full",children:[m.jsx("div",{className:"shrink-0 mt-0.5",children:m.jsx(A3,{status:O,activityType:k})}),m.jsx("h3",{className:`font-medium truncate text-sm flex-1 ${M?"text-accent":"text-text-primary"}`,children:A.title||"Untitled Session"}),m.jsx("span",{className:"text-xs text-text-secondary shrink-0",children:k0(A.updatedAt)})]}),m.jsxs("div",{className:"flex items-center gap-2 pl-6 w-full min-w-0",children:[m.jsx("span",{className:`text-xs truncate flex-1 min-w-0 ${k==="waiting-user"?"text-warning font-medium":"text-text-secondary"}`,title:A.currentAction||"",children:k==="waiting-user"&&(!A.currentAction||A.currentAction==="question")?"⚡ Needs your input":A.currentAction||"No active task"}),A.agent&&m.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] bg-surface border border-border text-text-secondary shrink-0",children:A.agent}),c===null&&m.jsx("span",{className:"text-[10px] text-text-secondary bg-surface border border-border px-1.5 py-0.5 rounded truncate max-w-[80px] shrink-0",title:A.directory||A.projectID,children:S(A.projectID)})]})]},A.id)})}),m.jsxs("div",{className:"border-t border-border overflow-y-auto p-3 space-y-3 max-h-[45%] shrink-0",children:[m.jsx(v3,{}),m.jsx(x3,{}),m.jsx(S3,{})]}),m.jsx(T3,{})]})};function j3(){return m.jsxs("div",{className:"space-y-4 p-6",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-12 h-12 bg-surface rounded-lg animate-shimmer"}),m.jsxs("div",{className:"flex-1 space-y-2",children:[m.jsx("div",{className:"h-4 bg-surface rounded w-1/3 animate-shimmer"}),m.jsx("div",{className:"h-3 bg-surface rounded w-1/4 animate-shimmer"})]})]}),m.jsx("div",{className:"space-y-3",children:[...Array(5)].map((a,i)=>m.jsxs("div",{className:"flex items-center gap-3 p-3 bg-surface rounded-lg",children:[m.jsx("div",{className:"w-4 h-4 bg-background rounded-full animate-shimmer"}),m.jsxs("div",{className:"flex-1 space-y-2",children:[m.jsx("div",{className:"h-3 bg-background rounded w-2/3 animate-shimmer"}),m.jsx("div",{className:"h-2 bg-background rounded w-1/3 animate-shimmer"})]})]},i))})]})}function E3(){return m.jsxs("div",{className:"w-[280px] h-full bg-surface border-r border-border",children:[m.jsxs("div",{className:"p-4 border-b border-border",children:[m.jsx("div",{className:"h-10 rounded mb-3 animate-shimmer"}),m.jsx("div",{className:"h-6 rounded w-24 animate-shimmer"})]}),m.jsx("div",{className:"p-4 space-y-3",children:[...Array(8)].map((a,i)=>m.jsx("div",{children:m.jsxs("div",{className:"flex items-start gap-3 p-3",children:[m.jsx("div",{className:"w-4 h-4 rounded-full mt-1 animate-shimmer"}),m.jsxs("div",{className:"flex-1 space-y-2",children:[m.jsx("div",{className:"h-3 rounded w-3/4 animate-shimmer"}),m.jsx("div",{className:"h-2 rounded w-1/2 animate-shimmer"})]})]})},i))})]})}const M3=C.memo(function({agent:i,status:r,className:o=""}){const c=qe(i),f=r==="working";return m.jsx("span",{className:`
|
|
24
|
-
inline-flex items-center
|
|
25
|
-
px-2.5 py-1
|
|
26
|
-
rounded-md
|
|
27
|
-
text-white text-xs font-semibold
|
|
28
|
-
shrink-0
|
|
29
|
-
${f?"animate-badge-glow":""}
|
|
30
|
-
${o}
|
|
31
|
-
`,style:{backgroundColor:c,"--badge-color":`${c}60`},children:i})});function w3(a){const i=new Map,r=[];a.forEach(c=>{i.set(c.id,{session:c,children:[]})}),a.forEach(c=>{const f=i.get(c.id);c.parentID&&i.has(c.parentID)?i.get(c.parentID).children.push(f):r.push(f)});const o=c=>{c.sort((f,d)=>{const p=new Date(f.session.updatedAt).getTime();return new Date(d.session.updatedAt).getTime()-p}),c.forEach(f=>{o(f.children)})};return o(r),r}const D3=C.memo(function({status:i}){switch(i){case"working":return m.jsx("span",{className:"flex items-center justify-center w-4 h-4 rounded-full animate-badge-glow",style:{"--badge-color":"rgba(88, 166, 255, 0.5)"},"data-testid":"status-working",role:"img","aria-label":"Working",children:m.jsx(js,{className:"w-3 h-3 text-accent animate-spin"})});case"idle":return m.jsx("span",{className:"flex items-center justify-center w-4 h-4","data-testid":"status-idle",role:"img","aria-label":"Idle",children:m.jsx(ir,{className:"w-3 h-3 text-success animate-pulse"})});case"waiting":return m.jsx("span",{className:"flex items-center justify-center w-4 h-4","data-testid":"status-waiting",role:"img","aria-label":"Waiting",children:m.jsx(Q0,{className:"w-3 h-3 text-amber-500"})});default:return m.jsx("span",{className:"flex items-center justify-center w-4 h-4","data-testid":"status-completed",role:"img","aria-label":"Completed",children:m.jsx(Aa,{className:"w-3 h-3 text-green-500"})})}}),C3=C.memo(function({activityType:i,pendingCount:r,patchCount:o}){if(!i||i==="idle")return null;switch(i){case"reasoning":return m.jsx("span",{className:"flex items-center gap-1 text-purple-400",title:"Reasoning",children:m.jsx(sb,{className:"w-3 h-3"})});case"patch":return m.jsxs("span",{className:"flex items-center gap-1 text-orange-400",title:`Writing ${o} files`,children:[m.jsx(zc,{className:"w-3 h-3"}),o&&o>1&&m.jsx("span",{className:"text-[10px]",children:o})]});case"tool":return m.jsxs("span",{className:"flex items-center gap-1 text-blue-400",title:`Running ${r} tools`,children:[m.jsx($0,{className:"w-3 h-3"}),r&&r>1&&m.jsx("span",{className:"text-[10px]",children:r})]});case"waiting-tools":return m.jsx("span",{className:"flex items-center gap-1 text-amber-400",title:"Waiting for tools",children:m.jsx(Q0,{className:"w-3 h-3"})});case"waiting-user":return m.jsxs("span",{className:"flex items-center gap-1.5 text-warning animate-waiting-user-icon",title:"Waiting for your input",children:[m.jsx(F0,{className:"w-4 h-4"}),m.jsx("span",{className:"text-xs font-medium",children:"Needs input"})]});default:return null}});function R3(a,i=60){const r=a,o=["filePath","command","pattern","query","url"];for(const c of o)if(r[c]){const f=String(r[c]);return f.length>i?"..."+f.slice(-i):f}return null}function z3(a){if(!a||a.length===0)return null;const i=a[0],r=i.name.replace("mcp_",""),o=R3(i.input,60);return{toolName:r,toolArg:o}}const O3=C.memo(function a({node:i,depth:r,isLast:o}){const{session:c,children:f}=i,d=c.status||"completed";let p=c.currentAction;c.activityType==="waiting-user"&&(!p||p==="question")?p="Waiting for your response":p||(c.workingChildCount&&c.workingChildCount>0?p=`Waiting on ${c.workingChildCount} agent${c.workingChildCount>1?"s":""}`:d==="completed"&&c.parentID&&c.title&&(p=c.title));const g=z3(c.toolCalls);return m.jsxs("div",{className:"flex flex-col",children:[m.jsxs("div",{className:`flex items-center gap-2 py-1.5 hover:bg-white/[0.02] rounded px-2 -mx-2 ${d==="completed"?"opacity-60":""} ${c.activityType==="waiting-user"?"animate-waiting-user-row":""}`,style:{marginLeft:`${r*20}px`},"data-testid":`session-row-${c.id}`,children:[r>0&&m.jsxs("div",{className:"flex items-center text-border select-none shrink-0",children:[m.jsx("span",{className:"text-xs",children:o?"└":"├"}),m.jsx("span",{className:"text-xs",children:"─"})]}),m.jsx(D3,{status:d}),m.jsx(C3,{activityType:c.activityType,pendingCount:c.pendingToolCount,patchCount:c.patchFilesCount}),m.jsx(M3,{agent:c.agent,status:d}),m.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[m.jsx("span",{className:"text-text-secondary text-xs","data-testid":"current-action",children:p}),g&&!c.activityType?.startsWith("waiting")&&m.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-gray-500 font-mono","data-testid":"tool-info",children:[m.jsx("span",{className:"text-gray-400",children:g.toolName}),g.toolArg&&m.jsx("span",{className:"text-gray-500 truncate",children:g.toolArg})]})]}),m.jsxs("div",{className:"flex flex-col items-end shrink-0 text-xs",children:[(c.providerID||c.modelID)&&m.jsxs("span",{className:"text-gray-500 truncate max-w-[180px]",children:[c.providerID,"/",c.modelID]}),m.jsxs("div",{className:"flex items-center gap-1 text-gray-600",children:[m.jsx("span",{children:h3(c.updatedAt)}),c.tokens!==void 0&&m.jsxs(m.Fragment,{children:[m.jsx("span",{children:"·"}),m.jsxs("span",{children:[c.tokens.toLocaleString()," tokens"]})]})]})]})]}),f.map((y,v)=>m.jsx(a,{node:y,depth:r+1,isLast:v===f.length-1},y.session.id))]})}),_3=({sessions:a,loading:i})=>{const r=C.useRef(null),[o,c]=C.useState(!1),f=C.useMemo(()=>a.some(g=>g.status==="working"),[a]);C.useEffect(()=>{if(a.length>0){c(!0);const g=setTimeout(()=>c(!1),300);return()=>clearTimeout(g)}},[a]);const d=a[0]?.id;C.useEffect(()=>{r.current&&d&&r.current.scrollTo({top:0,behavior:"smooth"})},[d]);const p=C.useMemo(()=>w3(a),[a]);return i&&a.length===0?m.jsxs("div",{className:"h-full w-full bg-surface overflow-hidden flex flex-col",children:[m.jsx("div",{className:"px-4 py-3 border-b border-border flex items-center justify-between",children:m.jsx("h3",{className:"font-semibold text-sm",children:"Live Activity"})}),m.jsx(j3,{})]}):a.length===0?m.jsxs("div",{className:"h-full w-full bg-surface overflow-hidden flex flex-col",children:[m.jsx("div",{className:"px-4 py-3 border-b border-border flex items-center justify-between",children:m.jsx("h3",{className:"font-semibold text-sm",children:"Live Activity"})}),m.jsx(Og,{icon:X0,title:"No Activity",description:"Select a session to view live activity"})]}):m.jsxs("div",{className:"h-full w-full bg-surface overflow-hidden flex flex-col",children:[m.jsxs("div",{className:"px-4 py-3 border-b border-border flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("h3",{className:"font-semibold text-sm",children:"Live Activity"}),f&&m.jsxs("span",{className:"relative flex h-2 w-2",title:"Activity in progress",children:[m.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-accent opacity-75"}),m.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-accent"})]})]}),o&&m.jsxs("span",{className:"relative flex h-2 w-2",title:"Receiving data",children:[m.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),m.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-400"})]})]}),m.jsx("div",{ref:r,className:"flex-1 overflow-y-auto p-4 space-y-1",children:p.map((g,y)=>m.jsx(O3,{node:g,depth:0,isLast:y===p.length-1},g.session.id))})]})};function V3({plan:a,planName:i}){return a?m.jsxs("div",{className:"flex flex-col gap-3 p-4 bg-surface rounded-lg border border-border min-w-[300px]","data-testid":"plan-progress",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("h3",{className:"font-medium text-text-primary",children:i||"Current Plan"}),m.jsxs("span",{className:"text-sm text-text-secondary",children:[a.progress,"%"]})]}),m.jsx("div",{className:"w-full bg-background rounded-full h-2",role:"progressbar","aria-valuenow":a.completed,"aria-valuemax":a.total,"aria-label":"Plan progress",children:m.jsx("div",{className:"bg-accent h-2 rounded-full transition-all duration-500 ease-in-out",style:{width:`${a.progress}%`}})}),m.jsxs("div",{className:"text-xs text-text-secondary mb-1",children:[a.completed," of ",a.total," tasks completed"]}),m.jsx("div",{className:"flex flex-col gap-2 max-h-48 overflow-y-auto pr-1",children:a.tasks.map(r=>m.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[r.completed?m.jsx(rb,{className:"w-4 h-4 text-accent mt-0.5 shrink-0"}):m.jsx(ub,{className:"w-4 h-4 text-text-secondary mt-0.5 shrink-0"}),m.jsx("span",{className:r.completed?"text-text-secondary line-through":"text-text-primary",children:r.description})]},r.description))})]}):m.jsxs("div",{className:"flex flex-col gap-3 p-4 bg-surface rounded-lg border border-border min-w-[300px]","data-testid":"plan-progress",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"h-5 rounded w-24 animate-shimmer"}),m.jsx("div",{className:"h-5 rounded w-12 animate-shimmer"})]}),m.jsx("div",{className:"w-full bg-background rounded-full h-2",children:m.jsx("div",{className:"bg-accent h-2 rounded-full animate-shimmer"})}),m.jsx("div",{className:"h-3 rounded w-32 animate-shimmer"}),m.jsx("div",{className:"flex flex-col gap-2",children:[...Array(3)].map((r,o)=>m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx("div",{className:"w-4 h-4 rounded mt-0.5 animate-shimmer"}),m.jsx("div",{className:"flex-1 h-3 rounded animate-shimmer"})]},o))})]})}function U3({stats:a}){const[i,r]=C.useState(!1),[o,c]=C.useState(!1),f=C.useRef(null),d=C.useRef(null);if(C.useEffect(()=>{const v=b=>{f.current&&!f.current.contains(b.target)&&r(!1)};return i&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[i]),C.useEffect(()=>{if(a?.totalTokens!==void 0&&d.current!==null&&a.totalTokens!==d.current){c(!0);const v=setTimeout(()=>c(!1),600);return()=>clearTimeout(v)}d.current=a?.totalTokens??null},[a?.totalTokens]),!a)return m.jsxs("div",{className:"inline-flex items-center h-8 px-3 gap-2 bg-surface/50 border border-border/50 rounded-full text-text-secondary text-xs font-medium select-none","data-testid":"session-stats-empty",children:[m.jsx(jp,{className:"w-3.5 h-3.5 opacity-50"}),m.jsx("span",{children:"No stats"})]});const p=a.totalCost!==void 0?`$${a.totalCost.toFixed(2)}`:"—",g=Cc(a.totalTokens),y=a.modelBreakdown.length;return m.jsxs("div",{className:"relative inline-flex items-center h-8 bg-surface border border-border rounded-full shadow-sm select-none","data-testid":"session-stats",ref:f,children:[m.jsxs("div",{className:"flex items-center gap-1.5 pl-3 pr-3",children:[m.jsx(gb,{className:`w-4 h-4 transition-all duration-300 ${o?"text-white scale-110 drop-shadow-[0_0_6px_#58a6ff]":"text-[#58a6ff] scale-100"}`,strokeWidth:2.5}),m.jsx("span",{className:`font-mono text-sm font-semibold tabular-nums transition-colors duration-300 ${o?"text-white":"text-text-primary"}`,children:g})]}),m.jsx("div",{className:"w-px h-3.5 bg-border"}),m.jsxs("div",{className:"flex items-center gap-2 px-3",children:[m.jsx(jp,{className:"w-3.5 h-3.5 text-emerald-400",strokeWidth:2.5}),m.jsx("span",{className:"font-mono text-xs text-text-primary font-medium tracking-tight",children:p})]}),m.jsx("div",{className:"w-px h-3.5 bg-border"}),m.jsxs("button",{type:"button",onClick:()=>r(!i),className:`
|
|
32
|
-
group flex items-center gap-2 px-3 pr-4 h-full
|
|
33
|
-
hover:bg-white/5 transition-all duration-200
|
|
34
|
-
rounded-r-full outline-none focus:bg-white/5
|
|
35
|
-
${i?"bg-white/5":""}
|
|
36
|
-
`,children:[m.jsx(M1,{className:`w-3.5 h-3.5 ${i?"text-purple-400":"text-text-secondary group-hover:text-purple-400"} transition-colors duration-200`,strokeWidth:2.5}),m.jsx("span",{className:`text-xs font-medium ${i?"text-text-primary":"text-text-secondary group-hover:text-text-primary"} transition-colors duration-200`,children:y}),m.jsx(Jn,{className:`w-3 h-3 text-text-secondary transition-transform duration-200 ${i?"rotate-180":""}`,strokeWidth:2.5})]}),m.jsxs("div",{className:`
|
|
37
|
-
absolute top-full right-0 mt-2 w-64
|
|
38
|
-
bg-surface border border-border rounded-xl shadow-2xl
|
|
39
|
-
origin-top-right transition-all duration-200 z-50 overflow-hidden
|
|
40
|
-
${i?"opacity-100 scale-100 translate-y-0 pointer-events-auto":"opacity-0 scale-95 -translate-y-1 pointer-events-none"}
|
|
41
|
-
`,children:[m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-[#0d1117]/30 border-b border-border",children:[m.jsx("span",{className:"text-[10px] font-bold text-text-secondary uppercase tracking-wider",children:"Model Breakdown"}),m.jsxs("span",{className:"text-[10px] font-mono text-text-secondary opacity-70",children:[y," active"]})]}),m.jsx("div",{className:"max-h-64 overflow-y-auto py-1",children:a.modelBreakdown.map(v=>m.jsxs("div",{className:"flex items-center justify-between px-3 py-2 text-xs group hover:bg-white/5 transition-colors",children:[m.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[m.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-purple-400/50 group-hover:bg-purple-400 transition-colors shrink-0"}),m.jsx("span",{className:"text-text-secondary group-hover:text-text-primary transition-colors truncate",title:v.modelID,children:v.modelID})]}),m.jsx("span",{className:"text-text-primary font-mono ml-3 bg-white/5 px-1.5 py-0.5 rounded text-[10px]",children:Cc(v.tokens)})]},v.modelID))})]})]})}function B3(a){const i=[],r=new Map,o=new Set;return a.forEach(c=>{r.set(c.id,c)}),a.forEach(c=>{if(c.parentID&&r.has(c.parentID)){const f=r.get(c.parentID);i.push({id:`spawn-${c.id}`,type:"agent-spawn",timestamp:c.createdAt,agentName:f.agent,spawnedAgentName:c.agent})}if(c.toolCalls&&c.toolCalls.length>0&&c.toolCalls.forEach(f=>{o.has(f.id)||(o.add(f.id),i.push({id:f.id,type:"tool-call",timestamp:new Date(f.timestamp),agentName:f.agentName,toolName:f.name,state:f.state,summary:f.summary,input:f.input,error:f.error}))}),c.status==="completed"){const f=c.updatedAt?new Date(c.updatedAt).getTime()-new Date(c.createdAt).getTime():void 0;i.push({id:`complete-${c.id}`,type:"agent-complete",timestamp:c.updatedAt,agentName:c.agent,status:c.status,durationMs:f})}}),i.sort((c,f)=>new Date(c.timestamp).getTime()-new Date(f.timestamp).getTime()),i}function L3(a){return a.type==="agent-spawn"||a.type==="agent-complete"}function H3(a){const i=a[0],r=a[a.length-1],o={};let c=0,f=0;for(const d of a)o[d.toolName]=(o[d.toolName]??0)+1,d.state==="pending"&&(c+=1),d.state==="error"&&(f+=1);return{id:i.id,type:"burst",agentName:i.agentName,items:a,toolBreakdown:o,durationMs:new Date(r.timestamp).getTime()-new Date(i.timestamp).getTime(),firstTimestamp:new Date(i.timestamp),lastTimestamp:new Date(r.timestamp),pendingCount:c,errorCount:f}}function k3(a){const i=[];let r=[];const o=[...a].sort((f,d)=>new Date(f.timestamp).getTime()-new Date(d.timestamp).getTime()),c=()=>{r.length!==0&&(i.push(H3(r)),r=[])};for(const f of o){if(L3(f)){c();const g={id:f.id,type:"milestone",item:f};i.push(g);continue}if(f.type!=="tool-call")continue;const d=r[0]?.agentName;r.length>0&&d!==f.agentName&&c(),r.push(f)}return c(),i}function q3(a){const{sessions:i,selectedId:r,onSelect:o}=a,c=C.useCallback(f=>{if(!(document.activeElement?.tagName==="INPUT"||document.activeElement?.tagName==="TEXTAREA")){if(f.key==="Escape"){o(null);return}if(f.key==="j"||f.key==="ArrowDown"||f.key==="k"||f.key==="ArrowUp"){const d=[...i].sort((g,y)=>{const v=new Date(y.updatedAt).getTime()-new Date(g.updatedAt).getTime();return v!==0?v:g.id.localeCompare(y.id)}),p=d.findIndex(g=>g.id===r);f.key==="j"||f.key==="ArrowDown"?p===-1?d.length>0&&o(d[0].id):p<d.length-1&&o(d[p+1].id):(f.key==="k"||f.key==="ArrowUp")&&p>0&&o(d[p-1].id)}}},[i,r,o]);C.useEffect(()=>(document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}),[c])}function Y3(){const{sessions:a,planProgress:i,sessionStats:r,activitySessions:o,selectedSessionId:c,setSelectedSessionId:f,projects:d,selectedProjectId:p,setSelectedProjectId:g,loading:y,error:v,isReconnecting:b,notificationPermission:S,requestNotificationPermission:A}=Cs();q3({sessions:a,selectedId:c,onSelect:f});const M=C.useMemo(()=>k3(B3(o)),[o]);return v&&!b?m.jsx("div",{className:"flex h-screen bg-background text-text-primary items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4 max-w-md text-center",children:[m.jsx(hr,{className:"w-12 h-12 text-error"}),m.jsx("h2",{className:"text-xl font-semibold",children:"Connection Lost"}),m.jsxs("p",{className:"text-text-secondary",children:["Failed to connect to OCWatch backend. Make sure the server is running on port ",vb,"."]}),m.jsx("p",{className:"text-sm text-text-secondary font-mono bg-surface px-3 py-2 rounded border border-border",children:v.message}),m.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"px-4 py-2 bg-accent text-white rounded-lg hover:bg-accent/90 transition-colors",children:"Retry Connection"})]})}):m.jsxs("div",{className:"flex h-screen bg-background text-text-primary overflow-hidden",children:[y&&a.length===0?m.jsx(E3,{}):m.jsx(N3,{sessions:a,selectedId:c,onSelect:f,projects:d,selectedProjectId:p,onProjectSelect:g}),m.jsxs("div",{className:"flex-1 flex flex-col min-w-0 relative h-full",children:[m.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[m.jsxs("header",{className:"flex items-center justify-between gap-4 border-b border-border p-4 flex-shrink-0",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"p-1.5 bg-surface rounded-lg border border-border",children:m.jsx(F1,{className:"w-5 h-5 text-accent"})}),m.jsxs("div",{className:"flex items-baseline gap-2",children:[m.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"OCWatch"}),m.jsx("span",{className:"text-text-secondary text-xs hidden sm:inline-block",children:"Activity Monitor"})]}),b&&m.jsxs("div",{className:"flex items-center gap-2 px-2 py-1 bg-warning/10 border border-warning/20 rounded-lg",children:[m.jsx(mb,{className:"w-3 h-3 text-warning animate-pulse"}),m.jsx("span",{className:"text-xs text-warning",children:"Reconnecting..."})]})]}),m.jsxs("div",{className:"flex items-center gap-4",children:[i&&m.jsx("div",{className:"w-64 hidden lg:block",children:m.jsx(V3,{plan:i})}),m.jsx(U3,{stats:r}),S==="default"?m.jsx("button",{type:"button",onClick:()=>A(),className:"p-1.5 rounded-lg border border-border hover:bg-surface transition-colors",title:"Enable notifications",children:m.jsx(Np,{className:"w-4 h-4 text-text-secondary"})}):S==="granted"?m.jsx("span",{className:"p-1.5 rounded-lg border border-border bg-surface",title:"Notifications enabled",children:m.jsx(Np,{className:"w-4 h-4 text-accent"})}):m.jsx("span",{className:"p-1.5 rounded-lg border border-border opacity-50",title:"Notifications blocked — enable in browser settings",children:m.jsx(N1,{className:"w-4 h-4 text-text-secondary"})})]})]}),m.jsx("main",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:m.jsx(_3,{sessions:o,loading:y})})]}),m.jsx(d3,{entries:M})]})]})}function G3(){return m.jsx(g3,{children:m.jsx(Y3,{})})}class X3 extends C.Component{constructor(i){super(i),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(i){return{hasError:!0,error:i}}componentDidCatch(i,r){console.error("ErrorBoundary caught an error:",i),console.error("Component stack:",r.componentStack),this.setState({errorInfo:r})}handleReload=()=>{window.location.reload()};render(){return this.state.hasError?m.jsx("div",{className:"flex h-screen bg-background text-text-primary items-center justify-center p-6",children:m.jsxs("div",{className:"flex flex-col items-center gap-6 max-w-2xl text-center",children:[m.jsx("div",{className:"p-4 bg-error/10 rounded-full border border-error/20",children:m.jsx(hr,{className:"w-16 h-16 text-error"})}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("h1",{className:"text-3xl font-semibold",children:"Something went wrong"}),m.jsx("p",{className:"text-text-secondary text-lg",children:"OCWatch encountered an unexpected error and needs to reload."})]}),this.state.error&&m.jsxs("div",{className:"w-full bg-surface border border-border rounded-lg p-4 text-left",children:[m.jsx("p",{className:"text-sm font-mono text-error mb-2",children:this.state.error.toString()}),this.state.errorInfo&&m.jsxs("details",{className:"text-xs font-mono text-text-secondary",children:[m.jsx("summary",{className:"cursor-pointer hover:text-text-primary",children:"Show stack trace"}),m.jsx("pre",{className:"mt-2 overflow-auto max-h-64 whitespace-pre-wrap",children:this.state.errorInfo.componentStack})]})]}),m.jsxs("button",{onClick:this.handleReload,className:"flex items-center gap-2 px-6 py-3 bg-accent text-white rounded-lg hover:bg-accent/90 transition-colors font-medium",children:[m.jsx(eb,{className:"w-5 h-5"}),"Reload Application"]}),m.jsx("p",{className:"text-sm text-text-secondary",children:"If this problem persists, check the browser console for more details."})]})}):this.props.children}}p1.createRoot(document.getElementById("root")).render(m.jsx(C.StrictMode,{children:m.jsx(X3,{children:m.jsx(G3,{})})}));
|