ocwatch 0.2.0 → 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 +2 -2
- 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/storage/partParser.ts +13 -0
- package/src/server/utils/projectResolver.ts +30 -0
- package/src/shared/types/index.ts +5 -2
- package/src/shared/utils/activityUtils.ts +1 -0
- package/src/shared/utils/burstGrouping.ts +6 -6
- package/src/client/dist/assets/index-BN8enf1I.css +0 -1
- package/src/client/dist/assets/index-qN9nCkAq.js +0 -41
|
@@ -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 d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=r(c);fetch(c.href,d)}})();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,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:f,ref:c!==void 0?c:null,props:d}}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"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=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,q={};function _(j,Y,Q){this.props=j,this.context=Y,this.refs=q,this.updater=Q||M}_.prototype.isReactComponent={},_.prototype.setState=function(j,Y){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,Y,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function H(){}H.prototype=_.prototype;function B(j,Y,Q){this.props=j,this.context=Y,this.refs=q,this.updater=Q||M}var X=B.prototype=new H;X.constructor=B,O(X,_.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,Y,Q){var $=Q.ref;return{$$typeof:a,type:j,key:Y,ref:$!==void 0?$:null,props:Q}}function jt(j,Y){return it(j.type,Y,j.props)}function _t(j){return typeof j=="object"&&j!==null&&j.$$typeof===a}function Ut(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Q){return Y[Q]})}var ge=/\/+/g;function et(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?Ut(""+j.key):Y.toString(36)}function ot(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(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function V(j,Y,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 x:return Tt=j._init,V(Tt(j._payload),Y,Q,$,lt)}}if(Tt)return lt=lt(j),Tt=$===""?"."+et(j,0):$,Z(lt)?(Q="",Tt!=null&&(Q=Tt.replace(ge,"$&/")+"/"),V(lt,Y,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)),Y.push(lt)),1;Tt=0;var le=$===""?".":$+":";if(Z(j))for(var kt=0;kt<j.length;kt++)$=j[kt],ct=le+et($,kt),Tt+=V($,Y,Q,ct,lt);else if(kt=A(j),typeof kt=="function")for(j=kt.call(j),kt=0;!($=j.next()).done;)$=$.value,ct=le+et($,kt++),Tt+=V($,Y,Q,ct,lt);else if(ct==="object"){if(typeof j.then=="function")return V(ot(j),Y,Q,$,lt);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function G(j,Y,Q){if(j==null)return j;var $=[],lt=0;return V(j,$,"","",function(ct){return Y.call(Q,ct,lt++)}),$}function P(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.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=Y)}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 Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},gt={map:G,forEach:function(j,Y,Q){G(j,function(){Y.apply(this,arguments)},Q)},count:function(j){var Y=0;return G(j,function(){Y++}),Y},toArray:function(j){return G(j,function(Y){return Y})||[]},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=_,st.Fragment=r,st.Profiler=c,st.PureComponent=B,st.StrictMode=o,st.Suspense=y,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,Y,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(Y!=null)for(ct in Y.key!==void 0&&(lt=""+Y.key),Y)!K.call(Y,ct)||ct==="key"||ct==="__self"||ct==="__source"||ct==="ref"&&Y.ref===void 0||($[ct]=Y[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:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},st.createElement=function(j,Y,Q){var $,lt={},ct=null;if(Y!=null)for($ in Y.key!==void 0&&(ct=""+Y.key),Y)K.call(Y,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(lt[$]=Y[$]);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:x,_payload:{_status:-1,_result:j},_init:P}},st.memo=function(j,Y){return{$$typeof:g,type:j,compare:Y===void 0?null:Y}},st.startTransition=function(j){var Y=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{Y!==null&&Q.types!==null&&(Y.types=Q.types),I.T=Y}},st.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},st.use=function(j){return I.H.use(j)},st.useActionState=function(j,Y,Q){return I.H.useActionState(j,Y,Q)},st.useCallback=function(j,Y){return I.H.useCallback(j,Y)},st.useContext=function(j){return I.H.useContext(j)},st.useDebugValue=function(){},st.useDeferredValue=function(j,Y){return I.H.useDeferredValue(j,Y)},st.useEffect=function(j,Y){return I.H.useEffect(j,Y)},st.useEffectEvent=function(j){return I.H.useEffectEvent(j)},st.useId=function(){return I.H.useId()},st.useImperativeHandle=function(j,Y,Q){return I.H.useImperativeHandle(j,Y,Q)},st.useInsertionEffect=function(j,Y){return I.H.useInsertionEffect(j,Y)},st.useLayoutEffect=function(j,Y){return I.H.useLayoutEffect(j,Y)},st.useMemo=function(j,Y){return I.H.useMemo(j,Y)},st.useOptimistic=function(j,Y){return I.H.useOptimistic(j,Y)},st.useReducer=function(j,Y,Q){return I.H.useReducer(j,Y,Q)},st.useRef=function(j){return I.H.useRef(j)},st.useState=function(j){return I.H.useState(j)},st.useSyncExternalStore=function(j,Y,Q){return I.H.useSyncExternalStore(j,Y,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(V,G){var P=V.length;V.push(G);t:for(;0<P;){var ht=P-1>>>1,gt=V[ht];if(0<c(gt,G))V[ht]=G,V[P]=gt,P=ht;else break t}}function r(V){return V.length===0?null:V[0]}function o(V){if(V.length===0)return null;var G=V[0],P=V.pop();if(P!==G){V[0]=P;t:for(var ht=0,gt=V.length,j=gt>>>1;ht<j;){var Y=2*(ht+1)-1,Q=V[Y],$=Y+1,lt=V[$];if(0>c(Q,P))$<gt&&0>c(lt,Q)?(V[ht]=lt,V[$]=P,ht=$):(V[ht]=Q,V[Y]=P,ht=Y);else if($<gt&&0>c(lt,P))V[ht]=lt,V[$]=P,ht=$;else break t}}return G}function c(V,G){var P=V.sortIndex-G.sortIndex;return P!==0?P:V.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var f=Date,p=f.now();a.unstable_now=function(){return f.now()-p}}var y=[],g=[],x=1,b=null,S=3,A=!1,M=!1,O=!1,q=!1,_=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function X(V){for(var G=r(g);G!==null;){if(G.callback===null)o(g);else if(G.startTime<=V)o(g),G.sortIndex=G.expirationTime,i(y,G);else break;G=r(g)}}function Z(V){if(O=!1,X(V),!M)if(r(y)!==null)M=!0,at||(at=!0,Ut());else{var G=r(g);G!==null&&ot(Z,G.startTime-V)}}var at=!1,I=-1,K=5,it=-1;function jt(){return q?!0:!(a.unstable_now()-it<K)}function _t(){if(q=!1,at){var V=a.unstable_now();it=V;var G=!0;try{t:{M=!1,O&&(O=!1,H(I),I=-1),A=!0;var P=S;try{e:{for(X(V),b=r(y);b!==null&&!(b.expirationTime>V&&jt());){var ht=b.callback;if(typeof ht=="function"){b.callback=null,S=b.priorityLevel;var gt=ht(b.expirationTime<=V);if(V=a.unstable_now(),typeof gt=="function"){b.callback=gt,X(V),G=!0;break e}b===r(y)&&o(y),X(V)}else o(y);b=r(y)}if(b!==null)G=!0;else{var j=r(g);j!==null&&ot(Z,j.startTime-V),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,et=ge.port2;ge.port1.onmessage=_t,Ut=function(){et.postMessage(null)}}else Ut=function(){_(_t,0)};function ot(V,G){I=_(function(){V(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(V){V.callback=null},a.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<V?Math.floor(1e3/V):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(V){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var P=S;S=G;try{return V()}finally{S=P}},a.unstable_requestPaint=function(){q=!0},a.unstable_runWithPriority=function(V,G){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var P=S;S=V;try{return G()}finally{S=P}},a.unstable_scheduleCallback=function(V,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,V){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,V={id:x++,callback:G,priorityLevel:V,startTime:P,expirationTime:gt,sortIndex:-1},P>ht?(V.sortIndex=P,i(g,V),r(y)===null&&V===r(g)&&(O?(H(I),I=-1):O=!0,ot(Z,P-ht))):(V.sortIndex=gt,i(y,V),M||A||(M=!0,at||(at=!0,Ut()))),V},a.unstable_shouldYield=jt,a.unstable_wrapCallback=function(V){var G=S;return function(){var P=S;S=G;try{return V.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(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" 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 d(y,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:y,containerInfo:g,implementation:x}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ie.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(y,g,null,x)},ie.flushSync=function(y){var g=f.T,x=o.p;try{if(f.T=null,o.p=2,y)return y()}finally{f.T=g,o.p=x,o.d.f()}},ie.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(y,g))},ie.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},ie.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,b=p(x,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?o.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:A}):x==="script"&&o.d.X(y,{crossOrigin:b,integrity:S,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ie.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=p(g.as,g.crossOrigin);o.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(y)},ie.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=p(x,g.crossOrigin);o.d.L(y,x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ie.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=p(g.as,g.crossOrigin);o.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(y)},ie.requestFormReset=function(y){o.d.r(y)},ie.unstable_batchedUpdates=function(y,g){return y(g)},ie.useFormState=function(y,g,x){return f.H.useFormState(y,g,x)},ie.useFormStatus=function(){return f.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 d(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 f(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 y(t){if(d(t)!==t)throw Error(o(188))}function g(t){var e=t.alternate;if(!e){if(e=d(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 y(l),t;if(u===s)return y(l),e;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=l,s=u;else{for(var h=!1,v=l.child;v;){if(v===n){h=!0,n=l,s=u;break}if(v===s){h=!0,s=l,n=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===n){h=!0,n=u,s=l;break}if(v===s){h=!0,s=u,n=l;break}v=v.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 x(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=x(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"),q=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),H=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 et(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 _:return"Profiler";case q: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 H: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:et(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return et(t(e))}catch{}}return null}var ot=Array.isArray,V=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 Y(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}}Y($),Q($,t)}function kt(){Y($),Y(lt),Y(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 zs(t){lt.current===t&&(Y($),Y(lt)),Tt.current===t&&(Y(Tt),rs._currentValue=P)}var vr,df;function In(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 k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(z){var R=z}Reflect.construct(t,[],k)}else{try{k.call()}catch(z){R=z}t.call(k.prototype)}}else{try{throw Error()}catch(z){R=z}(k=t())&&typeof k.catch=="function"&&k.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],v=u[1];if(h&&v){var T=h.split(`
|
|
4
|
-
`),D=v.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:"")?In(n):""}function Ug(t,e){switch(t.tag){case 26:case 27:case 5:return In(t.type);case 16:return In("Lazy");case 13:return t.child!==e&&e!==null?In("Suspense Fallback"):In("Suspense");case 19:return In("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 In("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,Os=a.unstable_NormalPriority,kg=a.unstable_LowPriority,yf=a.unstable_IdlePriority,qg=a.log,Yg=a.unstable_setDisableYieldValue,xi=null,xe=null;function Tn(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 _s=256,Vs=262144,Us=4194304;function ta(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 Bs(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 v=s&134217727;return v!==0?(s=v&~u,s!==0?l=ta(s):(h&=v,h!==0?l=ta(h):n||(n=v&~t,n!==0&&(l=ta(n))))):(v=s&~u,v!==0?l=ta(v):h!==0?l=ta(h):n||(n=s&~t,n!==0&&(l=ta(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=Us;return Us<<=1,(Us&62914560)===0&&(Us=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 v=t.entanglements,T=t.expirationTimes,D=t.hiddenUpdates;for(n=h&~n;0<n;){var U=31-be(n),k=1<<U;v[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&=~k}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 An=Math.random().toString(36).slice(2),Wt="__reactFiber$"+An,ce="__reactProps$"+An,Na="__reactContainer$"+An,Mr="__reactEvents$"+An,Jg="__reactListeners$"+An,Fg="__reactHandles$"+An,Af="__reactResources$"+An,Ti="__reactMarker$"+An;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 ea(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 Ls(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 Hs(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 tn(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 ks(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,v){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"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+we(v):t.removeAttribute("name")}function Cf(t,e,n,s,l,u,h,v){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,v||e===t.value||(t.value=e),t.defaultValue=e}s=s??l,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=v?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"&&ks(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(ot(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 qs(t){return nv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function en(){}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)&&(wl(),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 nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ur=!1;if(nn)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 Nn=null,Br=null,Ys=null;function Bf(){if(Ys)return Ys;var t,e=Br,n=e.length,s,l="value"in Nn?Nn.value:Nn.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 Ys=l.slice(t,1<s?1-s:void 0)}function Gs(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 Xs(){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 v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Xs: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=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),e}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zs=fe(na),Ei=b({},na,{view:0,detail:0}),av=fe(Ei),Lr,Hr,Mi,Qs=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(Qs),iv=b({},Qs,{dataTransfer:0}),sv=fe(iv),lv=b({},Ei,{relatedTarget:0}),kr=fe(lv),rv=b({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),ov=fe(rv),uv=b({},na,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),cv=fe(uv),fv=b({},na,{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=Gs(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"?Gs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Gs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gv=fe(yv),vv=b({},Qs,{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({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tv=fe(Sv),Av=b({},Qs,{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({},na,{newState:0,oldState:0}),Ev=fe(jv),Mv=[9,13,27,32],Yr=nn&&"CompositionEvent"in window,wi=null;nn&&"documentMode"in document&&(wi=document.documentMode);var wv=nn&&"TextEvent"in window&&!wi,Yf=nn&&(!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(),Ys=Br=Nn=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=Vl(e,"onChange"),0<e.length&&(n=new Zs("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var Di=null,Ci=null;function zv(t){Cm(t,0)}function Ks(t){var e=Ai(t);if(Df(e))return t}function Ff(t,e){if(t==="change")return e}var $f=!1;if(nn){var Gr;if(nn){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"&&Ks(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 Ks(Ci)}function Vv(t,e){if(t==="click")return Ks(e)}function Uv(t,e){if(t==="input"||t==="change")return Ks(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=ks(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=ks(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=nn&&"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!==ks(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=Vl(Qr,"onSelect"),0<s.length&&(e=new Zs("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=_a)))}function aa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Va={animationend:aa("Animation","AnimationEnd"),animationiteration:aa("Animation","AnimationIteration"),animationstart:aa("Animation","AnimationStart"),transitionrun:aa("Transition","TransitionRun"),transitionstart:aa("Transition","TransitionStart"),transitioncancel:aa("Transition","TransitionCancel"),transitionend:aa("Transition","TransitionEnd")},Jr={},sd={};nn&&(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 ia(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=ia("animationend"),rd=ia("animationiteration"),od=ia("animationstart"),Hv=ia("transitionrun"),kv=ia("transitionstart"),qv=ia("transitioncancel"),ud=ia("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),ea(e,[t])}var Js=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 Fs(){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 $s(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 $s(t,e,n,s),Ps(t)}function sa(t,e){return $s(t,null,null,e),Ps(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 Ps(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 an(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 Ws(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 la(n.children,l,u,e);case q:h=8,l|=24;break;case _:return t=Te(12,n,e,l|2),t.elementType=_,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 H: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 la(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,Is=null,Oi=0,ze=[],Oe=0,jn=null,Ke=1,Je="";function sn(t,e){La[Ha++]=Oi,La[Ha++]=Is,Is=t,Oi=e}function pd(t,e,n){ze[Oe++]=Ke,ze[Oe++]=Je,ze[Oe++]=jn,jn=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&&(sn(t,1),pd(t,1,0))}function no(t){for(;t===Is;)Is=La[--Ha],La[Ha]=null,Oi=La[--Ha],La[Ha]=null;for(;t===jn;)jn=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++]=jn,Ke=e.id,Je=e.overflow,jn=t}var It=null,Rt=null,yt=!1,En=null,_e=!1,ao=Error(o(519));function Mn(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=en),e=!0):e=!1,e||Mn(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&&Mn(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,qn(t.type)?(t=Mu,Mu=null,Rt=t):Rt=e):Rt=It?Ue(t.stateNode.nextSibling):null;return!0}function ra(){Rt=It=null,yt=!1}function io(){var t=En;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),En=null),t}function _i(t){En===null?En=[t]:En.push(t)}var so=j(null),oa=null,ln=null;function wn(t,e,n){Q(so,e._currentValue),e._currentValue=n}function rn(t){t._currentValue=so.current,Y(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 v=u;u=l;for(var T=0;T<e.length;T++)if(v.context===e[T]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),lo(u.return,n,t),s||(h=null);break t}u=v.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 v=l.type;Se(l.pendingProps.value,h.value)||(t!==null?t.push(v):t=[v])}}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 tl(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ua(t){oa=t,ln=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function te(t){return xd(oa,t)}function el(t,e){return oa===null&&ua(t),xd(t,e)}function xd(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ln===null){if(t===null)throw Error(o(308));ln=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ln=ln.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=V.S;V.S=function(t,e){im=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Qv(t,e),Sd!==null&&Sd(t,e)};var ca=j(null);function co(){var t=ca.current;return t!==null?t:Dt.pooledCache}function nl(t,e){e===null?Q(ca,ca.current):Q(ca,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)),al=Error(o(542)),il={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(en,en),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(en,en);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 da=e,Xa}}function fa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(da=n,Xa):n}}var da=null;function jd(){if(da===null)throw Error(o(459));var t=da;return da=null,t}function Ed(t){if(t===Xa||t===al)throw Error(o(483))}var Za=null,Bi=0;function sl(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 ll(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=an(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 v(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 tt=w.type;return tt===O?U(E,N,w.props.children,L,w.key):N!==null&&(N.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===K&&fa(tt)===N.type)?(N=l(N,w.props),Li(N,w),N.return=E,N):(N=Ws(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,tt){return N===null||N.tag!==7?(N=la(w,E.mode,L,tt),N.return=E,N):(N=l(N,w),N.return=E,N)}function k(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=Ws(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=fa(N),k(E,N,w)}if(ot(N)||Ut(N))return N=la(N,E.mode,w,null),N.return=E,N;if(typeof N.then=="function")return k(E,sl(N),w);if(N.$$typeof===B)return k(E,el(E,N),w);ll(E,N)}return null}function R(E,N,w,L){var tt=N!==null?N.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return tt!==null?null:v(E,N,""+w,L);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case A:return w.key===tt?T(E,N,w,L):null;case M:return w.key===tt?D(E,N,w,L):null;case K:return w=fa(w),R(E,N,w,L)}if(ot(w)||Ut(w))return tt!==null?null:U(E,N,w,L,null);if(typeof w.then=="function")return R(E,N,sl(w),L);if(w.$$typeof===B)return R(E,N,el(E,w),L);ll(E,w)}return null}function z(E,N,w,L,tt){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return E=E.get(w)||null,v(N,E,""+L,tt);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,tt);case M:return E=E.get(L.key===null?w:L.key)||null,D(N,E,L,tt);case K:return L=fa(L),z(E,N,w,L,tt)}if(ot(L)||Ut(L))return E=E.get(w)||null,U(N,E,L,tt,null);if(typeof L.then=="function")return z(E,N,w,sl(L),tt);if(L.$$typeof===B)return z(E,N,w,el(N,L),tt);ll(N,L)}return null}function J(E,N,w,L){for(var tt=null,xt=null,W=N,ut=N=0,pt=null;W!==null&&ut<w.length;ut++){W.index>ut?(pt=W,W=null):pt=W.sibling;var bt=R(E,W,w[ut],L);if(bt===null){W===null&&(W=pt);break}t&&W&&bt.alternate===null&&e(E,W),N=u(bt,N,ut),xt===null?tt=bt:xt.sibling=bt,xt=bt,W=pt}if(ut===w.length)return n(E,W),yt&&sn(E,ut),tt;if(W===null){for(;ut<w.length;ut++)W=k(E,w[ut],L),W!==null&&(N=u(W,N,ut),xt===null?tt=W:xt.sibling=W,xt=W);return yt&&sn(E,ut),tt}for(W=s(W);ut<w.length;ut++)pt=z(W,E,ut,w[ut],L),pt!==null&&(t&&pt.alternate!==null&&W.delete(pt.key===null?ut:pt.key),N=u(pt,N,ut),xt===null?tt=pt:xt.sibling=pt,xt=pt);return t&&W.forEach(function(Qn){return e(E,Qn)}),yt&&sn(E,ut),tt}function nt(E,N,w,L){if(w==null)throw Error(o(151));for(var tt=null,xt=null,W=N,ut=N=0,pt=null,bt=w.next();W!==null&&!bt.done;ut++,bt=w.next()){W.index>ut?(pt=W,W=null):pt=W.sibling;var Qn=R(E,W,bt.value,L);if(Qn===null){W===null&&(W=pt);break}t&&W&&Qn.alternate===null&&e(E,W),N=u(Qn,N,ut),xt===null?tt=Qn:xt.sibling=Qn,xt=Qn,W=pt}if(bt.done)return n(E,W),yt&&sn(E,ut),tt;if(W===null){for(;!bt.done;ut++,bt=w.next())bt=k(E,bt.value,L),bt!==null&&(N=u(bt,N,ut),xt===null?tt=bt:xt.sibling=bt,xt=bt);return yt&&sn(E,ut),tt}for(W=s(W);!bt.done;ut++,bt=w.next())bt=z(W,E,ut,bt.value,L),bt!==null&&(t&&bt.alternate!==null&&W.delete(bt.key===null?ut:bt.key),N=u(bt,N,ut),xt===null?tt=bt:xt.sibling=bt,xt=bt);return t&&W.forEach(function(i1){return e(E,i1)}),yt&&sn(E,ut),tt}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 tt=w.key;N!==null;){if(N.key===tt){if(tt=w.type,tt===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===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===K&&fa(tt)===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=la(w.props.children,E.mode,L,w.key),L.return=E,E=L):(L=Ws(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(tt=w.key;N!==null;){if(N.key===tt)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=fa(w),wt(E,N,w,L)}if(ot(w))return J(E,N,w,L);if(Ut(w)){if(tt=Ut(w),typeof tt!="function")throw Error(o(150));return w=tt.call(w),nt(E,N,w,L)}if(typeof w.then=="function")return wt(E,N,sl(w),L);if(w.$$typeof===B)return wt(E,N,el(E,w),L);ll(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 tt=wt(E,N,w,L);return Za=null,tt}catch(W){if(W===Xa||W===al)throw W;var xt=Te(29,W,null,E.mode);return xt.lanes=L,xt.return=E,xt}}}var ha=Md(!0),wd=Md(!1),Dn=!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 Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Rn(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=Ps(t),fd(t,null,n),e}return $s(t,s,e,n),Ps(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;Dn=!1;var u=l.firstBaseUpdate,h=l.lastBaseUpdate,v=l.shared.pending;if(v!==null){l.shared.pending=null;var T=v,D=T.next;T.next=null,h===null?u=D:h.next=D,h=T;var U=t.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==h&&(v===null?U.firstBaseUpdate=D:v.next=D,U.lastBaseUpdate=T))}if(u!==null){var k=l.baseState;h=0,U=D=T=null,v=u;do{var R=v.lane&-536870913,z=R!==v.lane;if(z?(mt&R)===R:(s&R)===R){R!==0&&R===Ya&&(yo=!0),U!==null&&(U=U.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var J=t,nt=v;R=e;var wt=n;switch(nt.tag){case 1:if(J=nt.payload,typeof J=="function"){k=J.call(wt,k,R);break t}k=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=nt.payload,R=typeof J=="function"?J.call(wt,k,R):J,R==null)break t;k=b({},k,R);break t;case 2:Dn=!0}}R=v.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:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(D=U=z,T=k):U=U.next=z,h|=R;if(v=v.next,v===null){if(v=l.shared.pending,v===null)break;z=v,v=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);U===null&&(T=k),l.baseState=T,l.firstBaseUpdate=D,l.lastBaseUpdate=U,u===null&&(l.shared.lanes=0),Un|=h,t.lanes=h,t.memoizedState=k}}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),rl=j(0);function Rd(t,e){t=yn,Q(rl,t),Q(Qa,e),yn=t|e.baseLanes}function go(){Q(rl,yn),Q(Qa,Qa.current)}function vo(){yn=rl.current,Y(Qa),Y(rl)}var Ae=j(null),Ve=null;function zn(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)):On()}function On(){Q(qt,qt.current),Q(Ae,Ae.current)}function Ne(t){Y(Ae),Ve===t&&(Ve=null),Y(qt)}var qt=j(0);function ol(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 on=0,rt=null,Et=null,Xt=null,ul=!1,Ka=!1,ma=!1,cl=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 on=u,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,V.H=t===null||t.memoizedState===null?ph:Uo,ma=!1,u=n(s,l),ma=!1,Ka&&(u=_d(e,n,s,l)),Od(t),u}function Od(t){V.H=Zi;var e=Et!==null&&Et.next!==null;if(on=0,Xt=Et=rt=null,ul=!1,Yi=0,Ja=null,e)throw Error(o(300));t===null||Zt||(t=t.dependencies,t!==null&&tl(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)}V.H=yh,u=e(n,s)}while(Ka);return u}function Fv(){var t=V.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=cl!==0;return cl=0,t}function Ao(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function No(t){if(ul){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ul=!1}on=0,Xt=Et=rt=null,Ka=!1,Yi=cl=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 fl(){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,V.H=e===null||e.memoizedState===null?ph:Uo),t}function dl(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=fl(),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 un(t,e){return typeof e=="function"?e(t):e}function hl(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 v=h=null,T=null,D=e,U=!1;do{var k=D.lane&-536870913;if(k!==D.lane?(mt&k)===k:(on&k)===k){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}),k===Ya&&(U=!0);else if((on&R)===R){D=D.next,R===Ya&&(U=!0);continue}else k={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(v=T=k,h=u):T=T.next=k,rt.lanes|=R,Un|=R;k=D.action,ma&&n(u,k),u=D.hasEagerState?D.eagerState:n(u,k)}else R={lane:k,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(v=T=R,h=u):T=T.next=R,rt.lanes|=k,Un|=k;D=D.next}while(D!==null&&D!==e);if(T===null?h=u:T.next=v,!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||(on&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=fl(),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=sa(t,2);e!==null&&ye(e,t,2)}function wo(t){var e=re();if(typeof t=="function"){var n=t;if(t=n(),ma){Tn(!0);try{n()}finally{Tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function qd(t,e,n,s){return t.baseState=n,Eo(t,Et,typeof s=="function"?s:un)}function $v(t,e,n,s,l){if(yl(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)}};V.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=V.T,h={};V.T=h;try{var v=n(l,s),T=V.S;T!==null&&T(h,v),Gd(t,e,v)}catch(D){Do(t,e,D)}finally{u!==null&&h.types!==null&&(u.types=h.types),V.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}}Mn(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=hl(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=Gi(e)}catch(h){throw h===Xa?al: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=fl(),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 ml(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 pl(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){ml(8390656,8,t,e)}function Co(t,e){pl(2048,8,t,e)}function Wv(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=fl(),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 pl(4,2,t,e)}function eh(t,e){return pl(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,pl(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(),ma){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[s,e],s}function zo(t,e,n){return n===void 0||(on&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=lm(),rt.lanes|=t,Un|=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):(on&42)===0||(on&1073741824)!==0&&(mt&261930)===0?(Zt=!0,t.memoizedState=n):(t=lm(),rt.lanes|=t,Un|=t,e)}function rh(t,e,n,s,l){var u=G.p;G.p=u!==0&&8>u?u:8;var h=V.T,v={};V.T=v,Vo(t,!1,e,n);try{var T=l(),D=V.S;if(D!==null&&D(v,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(k){Xi(t,e,{then:function(){},status:"rejected",reason:k},Me())}finally{G.p=u,h!==null&&v.types!==null&&(h.types=v.types),V.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:un,lastRenderedState:P},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,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=Cn(n);var s=Rn(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},yl(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(yl(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,v=u(h,n);if(l.hasEagerState=!0,l.eagerState=v,Se(v,h))return $s(t,e,l,0),Dt===null&&Fs(),!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},yl(t)){if(e)throw Error(o(479))}else e=Pr(t,n,s,2),e!==null&&ye(e,t,2)}function yl(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function hh(t,e){Ka=ul=!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:dl,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:dl,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,ml(4194308,4,nh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ml(4194308,4,t,e)},useInsertionEffect:function(t,e){ml(4,2,t,e)},useMemo:function(t,e){var n=re();e=e===void 0?null:e;var s=t();if(ma){Tn(!0);try{t()}finally{Tn(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=re();if(n!==void 0){var l=n(e);if(ma){Tn(!0);try{n(e)}finally{Tn(!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=cl++,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:dl,useCallback:ih,useContext:te,useEffect:Co,useImperativeHandle:ah,useInsertionEffect:th,useLayoutEffect:eh,useMemo:sh,useReducer:hl,useRef:Pd,useState:function(){return hl(un)},useDebugValue:Ro,useDeferredValue:function(t,e){var n=Yt();return lh(n,Et.memoizedState,t,e)},useTransition:function(){var t=hl(un)[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:dl,useCallback:ih,useContext:te,useEffect:Co,useImperativeHandle:ah,useInsertionEffect:th,useLayoutEffect:eh,useMemo:sh,useReducer:Mo,useRef:Pd,useState:function(){return Mo(un)},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(un)[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=Cn(s);l.payload=e,n!=null&&(l.callback=n),e=Rn(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=Cn(s);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=Rn(t,l,s),e!==null&&(ye(e,t,s),Hi(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Me(),s=Cn(n);s.tag=2,e!=null&&(s.callback=e),e=Rn(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 pa(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){Js(t)}function bh(t){console.error(t)}function Sh(t){Js(t)}function gl(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=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){gl(t,e)},n}function Ah(t){return t=Cn(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"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var v=s.stack;this.componentDidCatch(s.value,{componentStack:v!==null?v:""})})}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?Dl():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,s===il?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===il?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),Dl(),!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"&&(Bn===null||!Bn.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):ha(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 v in s)v!=="ref"&&(h[v]=s[v])}else h=s;return ua(e),s=So(t,e,n,h,u,l),v=To(),t!==null&&!Zt?(Ao(t,e,l),cn(t,e,l)):(yt&&v&&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=Ws(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 cn(t,e,l)}return e.flags|=1,t=an(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,cn(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&&nl(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?(nl(e,u.cachePool),Rd(e,u),On(),e.memoizedState=null):(t!==null&&nl(e,null),go(),On());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&&nl(e,null),go(),zd(e),t!==null&&qa(t,e,s,!0),e.childLanes=l,null}function vl(t,e){return e=bl({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 ha(e,t.child,null,n),t=vl(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=vl(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:jn!==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 Mn(e);return e.lanes=536870912,null}return vl(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,sa(t,h),ye(s,t,h),ko;Dl(),e=Ch(t,e,n)}else t=u.treeContext,Rt=Ue(h.nextSibling),It=e,yt=!0,En=null,_e=!1,t!==null&&yd(e,t),e=vl(e,s),e.flags|=4096;return e}return t=an(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function xl(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 ua(e),n=So(t,e,n,s,void 0,l),s=To(),t!==null&&!Zt?(Ao(t,e,l),cn(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 ua(e),e.updateQueue=null,n=_d(e,s,n,l),Od(t),s=To(),t!==null&&!Zt?(Ao(t,e,u),cn(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(ua(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 v=e.memoizedProps,T=pa(n,v);u.props=T;var D=u.context,U=n.contextType;h=Ba,typeof U=="object"&&U!==null&&(h=te(U));var k=n.getDerivedStateFromProps;U=typeof k=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||D!==h)&&vh(e,u,s,h),Dn=!1;var R=e.memoizedState;u.state=R,qi(e,s,u,l),ki(),D=e.memoizedState,v||R!==D||Dn?(typeof k=="function"&&(Bo(e,n,k,s),D=e.memoizedState),(T=Dn||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=pa(n,h),u.props=U,k=e.pendingProps,R=u.context,D=n.contextType,T=Ba,typeof D=="object"&&D!==null&&(T=te(D)),v=n.getDerivedStateFromProps,(D=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==k||R!==T)&&vh(e,u,s,T),Dn=!1,R=e.memoizedState,u.state=R,qi(e,s,u,l),ki();var z=e.memoizedState;h!==k||R!==z||Dn||t!==null&&t.dependencies!==null&&tl(t.dependencies)?(typeof v=="function"&&(Bo(e,n,v,s),z=e.memoizedState),(U=Dn||gh(e,n,U,s,R,z,T)||t!==null&&t.dependencies!==null&&tl(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,xl(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=ha(e,t.child,null,l),e.child=ha(e,null,n,l)):ee(t,e,n,l),e.memoizedState=u.state,t=e.child):t=cn(t,e,l),t}function Oh(t,e,n,s){return ra(),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?zn(e):On(),(t=Rt)?(t=Ym(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:jn!==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 Mn(e);return Eu(t)?e.lanes=32:e.lanes=536870912,null}var v=s.children;return s=s.fallback,l?(On(),l=e.mode,v=bl({mode:"hidden",children:v},l),s=la(s,l,n,null),v.return=e,s.return=e,v.sibling=s,e.child=v,s=e.child,s.memoizedState=Go(n),s.childLanes=Xo(t,h,n),e.memoizedState=Yo,Qi(null,s)):(zn(e),Zo(e,v))}var T=t.memoizedState;if(T!==null&&(v=T.dehydrated,v!==null)){if(u)e.flags&256?(zn(e),e.flags&=-257,e=Qo(t,e,n)):e.memoizedState!==null?(On(),e.child=t.child,e.flags|=128,e=null):(On(),v=s.fallback,l=e.mode,s=bl({mode:"visible",children:s.children},l),v=la(v,l,n,null),v.flags|=2,s.return=e,v.return=e,s.sibling=v,e.child=s,ha(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(zn(e),Eu(v)){if(h=v.nextSibling&&v.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,sa(t,s),ye(h,t,s),ko;ju(v)||Dl(),e=Qo(t,e,n)}else ju(v)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Rt=Ue(v.nextSibling),It=e,yt=!0,En=null,_e=!1,t!==null&&yd(e,t),e=Zo(e,s.children),e.flags|=4096);return e}return l?(On(),v=s.fallback,l=e.mode,T=t.child,D=T.sibling,s=an(T,{mode:"hidden",children:s.children}),s.subtreeFlags=T.subtreeFlags&65011712,D!==null?v=an(D,v):(v=la(v,l,n,null),v.flags|=2),v.return=e,s.return=e,s.sibling=v,e.child=s,Qi(null,s),s=e.child,v=t.child.memoizedState,v===null?v=Go(n):(l=v.cachePool,l!==null?(T=Gt._currentValue,l=l.parent!==T?{parent:T,pool:T}:l):l=Td(),v={baseLanes:v.baseLanes|n,cachePool:l}),s.memoizedState=v,s.childLanes=Xo(t,h,n),e.memoizedState=Yo,Qi(t.child,s)):(zn(e),n=t.child,t=n.sibling,n=an(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=bl({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function bl(t,e){return t=Te(22,t,null,e),t.lanes=0,t}function Qo(t,e,n){return ha(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,v=(h&2)!==0;if(v?(h=h&1|2,e.flags|=128):h&=1,Q(qt,h),ee(t,e,s,n),s=yt?Oi:0,!v&&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&&ol(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&&ol(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 cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Un|=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=an(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=an(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&&tl(t)))}function ix(t,e,n){switch(e.tag){case 3:le(e,e.stateNode.containerInfo),wn(e,Gt,t.memoizedState.cache),ra();break;case 27:case 5:vi(e);break;case 4:le(e,e.stateNode.containerInfo);break;case 10:wn(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?(zn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?_h(t,e,n):(zn(e),t=cn(t,e,n),t!==null?t.sibling:null);zn(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:wn(e,Gt,t.memoizedState.cache)}return cn(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=fa(e.elementType),e.type=t,typeof t=="function")Wr(t)?(s=pa(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=et(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=pa(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,wn(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,En=null,_e=!0,n=wd(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ra(),s===l){e=cn(t,e,n);break t}ee(t,e,s,n)}e=e.child}return e;case 26:return xl(t,e),t===null?(n=Jm(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,s=Ul(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,qn(e.type)?(Mu=l,Rt=Ue(s.firstChild)):Rt=l),ee(t,e,e.pendingProps.children,n),xl(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||Mn(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),xl(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||Mn(e)),null;case 13:return _h(t,e,n);case 4:return le(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=ha(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,wn(e,e.type,s.value),ee(t,e,s.children,n),e.child;case 9:return l=e.type._context,s=e.pendingProps.children,ua(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 ua(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),wn(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),wn(e,Gt,s)):(s=u.cache,wn(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 fn(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 da=il,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 da=il,fo}function Sl(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),rn(Gt),kt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ka(e)?fn(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?(fn(e),u!==null?(zt(e),Lh(e,u)):(zt(e),Fo(e,l,null,s,n))):u?u!==t.memoizedState?(fn(e),zt(e),Lh(e,u)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&fn(e),zt(e),Fo(e,l,t,s,n)),null;case 27:if(zs(e),n=ct.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&fn(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,fn(e))}return zt(e),null;case 5:if(zs(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&fn(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=Ul(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&&fn(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&&fn(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||Mn(e,!0)}else t=Ul(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 ra(),(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 ra(),(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),Sl(e,e.updateQueue),zt(e),null);case 4:return kt(),t===null&&gu(e.stateNode.containerInfo),zt(e),null;case 10:return rn(e.type),zt(e),null;case 19:if(Y(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=ol(t),u!==null){for(e.flags|=128,Ki(s,!1),t=u.updateQueue,e.updateQueue=t,Sl(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&&sn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&ve()>El&&(e.flags|=128,l=!0,Ki(s,!1),e.lanes=4194304)}else{if(!l)if(t=ol(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Sl(e,t),Ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!yt)return zt(e),null}else 2*ve()-s.renderingStartTime>El&&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&&sn(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&&Sl(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&&Y(ca),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),rn(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 rn(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 zs(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(o(340));ra()}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));ra()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(qt),null;case 4:return kt(),null;case 10:return rn(e.type),null;case 22:case 23:return Ne(e),vo(),t!==null&&Y(ca),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return rn(Gt),null;case 25:return null;default:return null}}function Hh(t,e){switch(no(e),e.tag){case 3:rn(Gt),kt();break;case 26:case 27:case 5:zs(e);break;case 4:kt();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:Y(qt);break;case 10:rn(e.type);break;case 22:case 23:Ne(e),vo(),t!==null&&Y(ca);break;case 24:rn(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(v){Nt(e,e.return,v)}}function _n(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,v=h.destroy;if(v!==void 0){h.destroy=void 0,l=e;var T=n,D=v;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=pa(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&&qn(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&&qn(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=en));else if(s!==4&&(s===27&&qn(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 Tl(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&&qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Tl(t,e,n),t=t.sibling;t!==null;)Tl(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 dn=!1,Qt=!1,Io=!1,Zh=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function rx(t,e){if(t=t.containerInfo,bu=Gl,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,v=-1,T=-1,D=0,U=0,k=t,R=null;e:for(;;){for(var z;k!==n||l!==0&&k.nodeType!==3||(v=h+l),k!==u||s!==0&&k.nodeType!==3||(T=h+s),k.nodeType===3&&(h+=k.nodeValue.length),(z=k.firstChild)!==null;)R=k,k=z;for(;;){if(k===t)break e;if(R===n&&++D===l&&(v=h),R===u&&++U===s&&(T=h),(z=k.nextSibling)!==null)break;k=R,R=k.parentNode}k=z}n=v===-1||T===-1?null:{start:v,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:t,selectionRange:n},Gl=!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=pa(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:mn(t,n),s&4&&Ji(5,n);break;case 1:if(mn(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(h){Nt(n,n.return,h)}else{var l=pa(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(mn(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:mn(t,n),e===null&&s&4&&Yh(n),s&512&&Fi(n,n.return);break;case 12:mn(t,n);break;case 31:mn(t,n),s&4&&Fh(t,n);break;case 13:mn(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||dn,!s){e=e!==null&&e.memoizedState!==null||Qt,l=dn;var u=Qt;dn=s,(Qt=e)&&!u?pn(t,n,(n.subtreeFlags&8772)!==0):mn(t,n),dn=l,Qt=u}break;case 30:break;default:mn(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 hn(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),hn(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;qn(n.type)&&(Ot=n.stateNode,de=!1),hn(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,hn(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,hn(t,e,n),Ot=s,de=l;break;case 0:case 11:case 14:case 15:_n(2,n,e),Qt||_n(4,n,e),hn(t,e,n);break;case 1:Qt||(Fe(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&qh(n,e,s)),hn(t,e,n);break;case 21:hn(t,e,n);break;case 22:Qt=(s=Qt)||n.memoizedState!==null,hn(t,e,n),Qt=s;break;default:hn(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 Al(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,v=h;t:for(;v!==null;){switch(v.tag){case 27:if(qn(v.type)){Ot=v.stateNode,de=!1;break t}break;case 5:Ot=v.stateNode,de=!1;break t;case 3:case 4:Ot=v.stateNode.containerInfo,de=!0;break t}v=v.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&&(_n(3,t,t.return),Ji(3,t),_n(5,t,t.return));break;case 1:he(e,t),me(t),s&512&&(Qt||n===null||Fe(n,n.return)),s&64&&dn&&(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 v=0;v<h.length;v++)if(u=h[v],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(v,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(v=0;v<h.length;v++)if(u=h[v],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(v,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(Hl=null,l=Ge,Ge=Bl(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=Bl(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,Al(t,s)));break;case 13:he(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(jl=ve()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Al(t,s)));break;case 22:l=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,D=dn,U=Qt;if(dn=D||l,Qt=U||T,he(e,t),Qt=U,dn=D,me(t),s&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||T||dn||Qt||ya(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{v=T.stateNode;var k=T.memoizedProps.style,R=k!=null&&k.hasOwnProperty("display")?k.display:null;v.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,Al(t,n))));break;case 19:he(e,t),me(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Al(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);Tl(t,u,l);break;case 5:var h=n.stateNode;n.flags&32&&(Ca(h,""),n.flags&=-33);var v=Po(t);Tl(t,v,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 mn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Qh(t,e.alternate,e),e=e.sibling}function ya(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:_n(4,e,e.return),ya(e);break;case 1:Fe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&qh(e,e.return,n),ya(e);break;case 27:is(e.stateNode);case 26:case 5:Fe(e,e.return),ya(e);break;case 22:e.memoizedState===null&&ya(e);break;case 30:ya(e);break;default:ya(e)}t=t.sibling}}function pn(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:pn(l,u,n),Ji(4,u);break;case 1:if(pn(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 v=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],v)}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:pn(l,u,n),n&&s===null&&h&4&&Yh(u),Fi(u,u.return);break;case 12:pn(l,u,n);break;case 31:pn(l,u,n),n&&h&4&&Fh(l,u);break;case 13:pn(l,u,n),n&&h&4&&$h(l,u);break;case 22:u.memoizedState===null&&pn(l,u,n),Fi(u,u.return);break;case 30:break;default:pn(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,v=u.onPostCommit;typeof v=="function"&&v(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,v=n,T=s,D=h.flags;switch(h.tag){case 0:case 11:case 15:$a(u,h,v,T,l),Ji(8,h);break;case 23:break;case 22:var U=h.stateNode;h.memoizedState!==null?U._visibility&2?$a(u,h,v,T,l):$i(u,h):(U._visibility|=2,$a(u,h,v,T,l)),l&&D&2048&&tu(h.alternate,h);break;case 24:$a(u,h,v,T,l),l&&D&2048&&eu(h.alternate,h);break;default:$a(u,h,v,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=Bl(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&&_n(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,Nl(t)):Wi(t);break;default:Wi(t)}}function Nl(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:_n(8,e,e.return),Nl(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Nl(e));break;default:Nl(e)}t=t.sibling}}function am(t,e){for(;Pt!==null;){var n=Pt;switch(n.tag){case 0:case 11:case 15:_n(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,Vn=!1,Wa=!1,nu=!1,yn=0,Lt=0,Un=0,ga=0,au=0,Ee=0,Ia=0,Ii=null,pe=null,iu=!1,jl=0,im=0,El=1/0,Ml=null,Bn=null,Jt=0,Ln=null,ti=null,gn=0,su=0,lu=null,sm=null,ts=0,ru=null;function Me(){return(St&2)!==0&&mt!==0?mt&-mt:V.T!==null?hu():Sf()}function lm(){if(Ee===0)if((mt&536870912)===0||yt){var t=Vs;Vs<<=1,(Vs&3932160)===0&&(Vs=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),Hn(t,mt,Ee,!1)),Si(t,n),((St&2)===0||t!==Dt)&&(t===Dt&&((St&2)===0&&(ga|=n),Lt===4&&Hn(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&&Hn(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 v=t;l=Ii;var T=v.current.memoizedState.isDehydrated;if(T&&(ei(v,h).flags|=256),h=uu(v,h,!1),h!==2){if(nu&&!T){v.errorRecoveryDisabledLanes|=u,ga|=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),Hn(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:Hn(s,e,Ee,!Vn);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(l=jl+300-ve(),10<l)){if(Hn(s,e,Ee,!Vn),Bs(s,0,!0)!==0)break t;gn=e,s.timeoutHandle=Lm(om.bind(null,s,n,pe,Ml,iu,e,Ee,ga,Ia,Vn,u,"Throttled",-0,0),l);break t}om(s,n,pe,Ml,iu,e,Ee,ga,Ia,Vn,u,null,-0,0)}}break}while(!0);$e(t)}function om(t,e,n,s,l,u,h,v,T,D,U,k,R,z){if(t.timeoutHandle=-1,k=e.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},tm(e,u,k);var J=(u&62914560)===u?jl-ve():(u&4194048)===u?im-ve():0;if(J=Fx(k,J),J!==null){gn=u,t.cancelPendingCommit=J(ym.bind(null,t,e,u,n,s,l,h,v,T,U,k,null,R,z)),Hn(t,u,h,!D);return}}ym(t,e,u,n,s,l,h,v,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 Hn(t,e,n,s){e&=~au,e&=~ga,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 wl(){return(St&6)===0?(es(0),!1):!0}function ou(){if(ft!==null){if(At===0)var t=ft.return;else t=ft,ln=oa=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()),gn=0,ou(),Dt=t,ft=n=an(t.current,null),mt=e,At=0,je=null,Vn=!1,Wa=bi(t,e),nu=!1,Ia=Ee=au=ga=Un=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 yn=e,Fs(),n}function um(t,e){rt=null,V.H=Zi,e===Xa||e===al?(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,gl(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=V.H;return V.H=Zi,t===null?Zi:t}function dm(){var t=V.A;return V.A=ux,t}function Dl(){Lt=4,Vn||(mt&4194048)!==mt&&Ae.current!==null||(Wa=!0),(Un&134217727)===0&&(ga&134217727)===0||Dt===null||Hn(Dt,mt,Ee,!1)}function uu(t,e,n){var s=St;St|=2;var l=fm(),u=dm();(Dt!==t||mt!==e)&&(Ml=null,ei(t,e)),e=!1;var h=Lt;t:do try{if(At!==0&&ft!==null){var v=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,v,T,D),n&&Wa){h=0;break t}break;default:D=At,At=0,je=null,ni(t,v,T,D)}}dx(),h=Lt;break}catch(U){um(t,U)}while(!0);return e&&t.shellSuspendCounter++,ln=oa=null,St=s,V.H=l,V.A=u,ft===null&&(Dt=null,mt=0,Fs()),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?(Ml=null,El=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 v=ft;if(h?Im(h):v.stateNode.complete){At=0,je=null;var T=v.sibling;if(T!==null)ft=T;else{var D=v.return;D!==null?(ft=D,Cl(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 ln=oa=null,V.H=s,V.A=l,St=n,ft!==null?0:(Dt=null,mt=0,Fs(),Lt)}function mx(){for(;ft!==null&&!Bg();)hm(ft)}function hm(t){var e=Bh(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Cl(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,yn),e=Bh(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Cl(t):ft=e}function ni(t,e,n,s){ln=oa=null,No(e),Za=null,Bi=0;var l=e.return;try{if(nx(t,l,e,n,mt)){Lt=1,gl(t,Re(n,t.current)),ft=null;return}}catch(u){if(l!==null)throw ft=l,u;Lt=1,gl(t,Re(n,t.current)),ft=null;return}e.flags&32768?(yt||s===1?t=!0:Wa||(mt&536870912)!==0?t=!1:(Vn=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ae.current,s!==null&&s.tag===13&&(s.flags|=16384))),pm(e,t)):Cl(e)}function Cl(t){var e=t;do{if((e.flags&32768)!==0){pm(e,Vn);return}t=e.return;var n=sx(e.alternate,e,yn);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,v,T){t.cancelPendingCommit=null;do Rl();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,v,T),t===Dt&&(ft=Dt=null,mt=0),ti=e,Ln=t,gn=n,su=u,lu=l,sm=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,vx(Os,function(){return Sm(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=V.T,V.T=null,l=G.p,G.p=2,h=St,St|=4;try{rx(t,e,n)}finally{St=h,G.p=l,V.T=s}}Jt=1,gm(),vm(),xm()}}function gm(){if(Jt===1){Jt=0;var t=Ln,e=ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=V.T,V.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),v=u.focusedElem,T=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&nd(v.ownerDocument.documentElement,v)){if(T!==null&&Zr(v)){var D=T.start,U=T.end;if(U===void 0&&(U=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(U,v.value.length);else{var k=v.ownerDocument||document,R=k&&k.defaultView||window;if(R.getSelection){var z=R.getSelection(),J=v.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(v,nt),N=ed(v,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=k.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(k=[],z=v;z=z.parentNode;)z.nodeType===1&&k.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<k.length;v++){var L=k[v];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Gl=!!bu,Su=bu=null}finally{St=l,G.p=s,V.T=n}}t.current=e,Jt=2}}function vm(){if(Jt===2){Jt=0;var t=Ln,e=ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=V.T,V.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,V.T=n}}Jt=3}}function xm(){if(Jt===4||Jt===3){Jt=0,Lg();var t=Ln,e=ti,n=gn,s=sm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,ti=Ln=null,bm(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Bn=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=V.T,l=G.p,G.p=2,V.T=null;try{for(var u=t.onRecoverableError,h=0;h<s.length;h++){var v=s[h];u(v.value,{componentStack:v.stack})}}finally{V.T=e,G.p=l}}(gn&3)!==0&&Rl(),$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 Rl(){return gm(),vm(),xm(),Sm()}function Sm(){if(Jt!==5)return!1;var t=Ln,e=su;su=0;var n=Er(gn),s=V.T,l=G.p;try{G.p=32>n?32:n,V.T=null,n=lu,lu=null;var u=Ln,h=gn;if(Jt=0,ti=Ln=null,gn=0,(St&6)!==0)throw Error(o(331));var v=St;if(St|=4,nm(u.current),Ih(u,u.current,h,n),St=v,es(0,!1),xe&&typeof xe.onPostCommitFiberRoot=="function")try{xe.onPostCommitFiberRoot(xi,u)}catch{}return!0}finally{G.p=l,V.T=s,bm(t,e)}}function Tm(t,e,n){e=Re(n,e),e=Ho(t.stateNode,e,2),t=Rn(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"&&(Bn===null||!Bn.has(s))){t=Re(n,t),n=Ah(2),s=Rn(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()-jl?(St&2)===0&&ei(t,0):au|=n,Ia===mt&&(Ia=0)),$e(t)}function Am(t,e){e===0&&(e=gf()),t=sa(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 zl=null,ai=null,fu=!1,Ol=!1,du=!1,kn=0;function $e(t){t!==ai&&t.next===null&&(ai===null?zl=ai=t:ai=ai.next=t),Ol=!0,fu||(fu=!0,bx())}function es(t,e){if(!du&&Ol){du=!0;do for(var n=!1,s=zl;s!==null;){if(t!==0){var l=s.pendingLanes;if(l===0)var u=0;else{var h=s.suspendedLanes,v=s.pingedLanes;u=(1<<31-be(42|t)+1)-1,u&=l&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Mm(s,u))}else u=mt,u=Bs(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(){Ol=fu=!1;var t=0;kn!==0&&Cx()&&(t=kn);for(var e=ve(),n=null,s=zl;s!==null;){var l=s.next,u=jm(s,e);u===0?(s.next=null,n===null?zl=l:n.next=l,l===null&&(ai=n)):(n=s,(t!==0||(u&3)!==0)&&(Ol=!0)),s=l}Jt!==0&&Jt!==5||es(t),kn!==0&&(kn=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),v=1<<h,T=l[h];T===-1?((v&n)===0||(v&s)!==0)&&(l[h]=Qg(v,e)):T<=e&&(t.expiredLanes|=v),u&=~v}if(e=Dt,n=mt,n=Bs(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=Os;break;case 268435456:n=yf;break;default:n=Os}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(Rl()&&t.callbackNode!==n)return null;var s=mt;return s=Bs(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(Rl())return null;rm(t,e,!0)}function bx(){zx(function(){(St&6)!==0?Tr(mf,xx):Nm()})}function hu(){if(kn===0){var t=Ya;t===0&&(t=_s,_s<<=1,(_s&261888)===0&&(_s=256)),kn=t}return kn}function wm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qs(""+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 v=new Zs("action","action",null,s,l);t.push({event:v,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(kn!==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"&&(v.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"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("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 v=s[h],T=v.instance,D=v.currentTarget;if(v=v.listener,T!==u&&l.isPropagationStopped())break t;u=v,l.currentTarget=D;try{u(l)}catch(U){Js(U)}l.currentTarget=null,u=T}else for(h=0;h<s.length;h++){if(v=s[h],T=v.instance,D=v.currentTarget,v=v.listener,T!==u&&l.isPropagationStopped())break t;u=v,l.currentTarget=D;try{u(l)}catch(U){Js(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 _l="_reactListening"+Math.random().toString(36).slice(2);function gu(t){if(!t[_l]){t[_l]=!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[_l]||(e[_l]=!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 v=s.stateNode.containerInfo;if(v===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(;v!==null;){if(h=ja(v),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){s=u=h;continue t}v=v.parentNode}}s=s.return}Uf(function(){var D=u,U=_r(n),k=[];t:{var R=cd.get(t);if(R!==void 0){var z=Zs,J=t;switch(t){case"keypress":if(Gs(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),k.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=d(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 tt=N;tt;tt=nt(tt))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(k,R,z,nt,!1),J!==null&&wt!==null&&zm(k,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(k,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(k,n,U);break;case"selectionchange":if(Lv)break;case"keydown":case"keyup":id(k,n,U)}var ut;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&&(ut=Bf()):(Nn=U,Br="value"in Nn?Nn.value:Nn.textContent,Oa=!0)),W=Vl(D,pt),0<W.length&&(pt=new kf(pt,t,null,n,U),k.push({event:pt,listeners:W}),ut?pt.data=ut:(ut=Qf(n),ut!==null&&(pt.data=ut)))),(ut=wv?Dv(t,n):Cv(t,n))&&(pt=Vl(D,"onBeforeInput"),0<pt.length&&(W=new kf("onBeforeInput","beforeinput",null,n,U),k.push({event:W,listeners:pt}),W.data=ut)),Sx(k,t,D,n,U)}Cm(k,e)})}function as(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Vl(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 v=n,T=v.alternate,D=v.stateNode;if(v=v.tag,T!==null&&T===s)break;v!==5&&v!==26&&v!==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":Hs(t,"class",s);break;case"tabIndex":Hs(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Hs(t,n,s);break;case"style":_f(t,s,u);break;case"data":if(e!=="object"){Hs(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=qs(""+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=qs(""+s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=en);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=qs(""+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),Ls(t,"popover",s);break;case"xlinkActuate":tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":tn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":tn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":tn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":tn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Ls(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,Ls(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=en);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,""):Ls(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 v=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":v=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,v,T,D,h,l,!1);return;case"select":dt("invalid",t),s=h=u=null;for(l in n)if(n.hasOwnProperty(l)&&(v=n[l],v!=null))switch(l){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":s=v;default:Mt(t,e,l,v,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)&&(v=n[h],v!=null))switch(h){case"value":s=v;break;case"defaultValue":l=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Mt(t,e,h,v,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(v in n)n.hasOwnProperty(v)&&(s=n[v],s!=null&&Mt(t,e,v,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,v=null,T=null,D=null,U=null;for(z in n){var k=n[z];if(n.hasOwnProperty(z)&&k!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=k;default:s.hasOwnProperty(z)||Mt(t,e,z,null,s,k)}}for(var R in s){var z=s[R];if(k=n[R],s.hasOwnProperty(R)&&(z!=null||k!=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":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:z!==k&&Mt(t,e,R,z,s,k)}}Cr(t,h,v,T,D,U,u,l);return;case"select":z=h=v=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":v=u;break;case"multiple":h=u;default:u!==T&&Mt(t,e,l,u,s,T)}e=v,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(v in n)if(l=n[v],n.hasOwnProperty(v)&&l!=null&&!s.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Mt(t,e,v,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(k in s)R=s[k],z=n[k],!s.hasOwnProperty(k)||R===z||R==null&&z==null||Mt(t,e,k,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,v=l.duration;if(u&&v&&Vm(h)){for(h=0,v=l.responseEnd,s+=1;s<n.length;s++){var T=n[s],D=T.startTime;if(D>v)break;var U=T.transferSize,k=T.initiatorType;U&&Vm(k)&&(T=T.responseEnd,h+=U*(T<v?1:(v-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 Ul(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 qn(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,v=u.nodeName;u[Ti]||v==="SCRIPT"||v==="STYLE"||v==="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=Ul(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 Bl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vn=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=vn.f(),e=wl();return t||e}function Lx(t){var e=Ea(t);e!==null&&e.tag===5&&e.type==="form"?uh(e):vn.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){vn.D(t),Km("dns-prefetch",t,null)}function kx(t,e){vn.C(t,e),Km("preconnect",t,e)}function qx(t,e,n){vn.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){vn.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){vn.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 v={loading:0,preload:null};if(h=s.querySelector(ss(u)))v.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(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ll(h,e,s)}h={type:"stylesheet",instance:h,count:1,state:v},l.set(u,h)}}}function Xx(t,e){vn.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){vn.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)?Bl(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),Ll(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(v,T){h.onload=v,h.onerror=T}),ne(u,"link",s),e.state.loading|=4,Ll(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,Ll(s,n.precedence,t));return e.instance}function Ll(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 v=s[h];if(v.dataset.precedence===e)u=v;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 Hl=null;function Pm(t,e,n){if(Hl===null){var s=new Map,l=Hl=new Map;l.set(n,s)}else l=Hl,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 v=s.get(h);v?v.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=kl.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(v,T){h.onload=v,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=kl.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Cu=0;function Fx(t,e){return t.stylesheets&&t.count===0&&Yl(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&Yl(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&&Yl(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 kl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ql=null;function Yl(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ql=new Map,e.forEach($x,t),ql=null,kl.call(t))}function $x(t,e){if(!(e.state.loading&4)){var n=ql.get(t);if(n)var s=n.get(null);else{n=new Map,ql.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=kl.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,v,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,v,T,D,U,k){return t=new Px(t,e,n,h,T,D,U,k,v),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=Cn(e),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Rn(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=sa(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=sa(t,e);n!==null&&ye(n,t,e),Ru(t,e)}}var Gl=!0;function Wx(t,e,n,s){var l=V.T;V.T=null;var u=G.p;try{G.p=2,zu(t,e,n,s)}finally{G.p=u,V.T=l}}function Ix(t,e,n,s){var l=V.T;V.T=null;var u=G.p;try{G.p=8,zu(t,e,n,s)}finally{G.p=u,V.T=l}}function zu(t,e,n,s){if(Gl){var l=Ou(s);if(l===null)vu(t,e,s,Xl,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=ta(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var T=1<<31-be(h);v.entanglements[1]|=T,h&=~T}$e(u),(St&6)===0&&(El=ve()+500,es(0))}}break;case 31:case 13:v=sa(u,2),v!==null&&ye(v,u,2),wl(),Ru(u,2)}if(u=Ou(s),u===null&&vu(t,e,s,Xl,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 Xl=null;function _u(t){if(Xl=null,t=ja(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(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 Xl=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 Os:case kg:return 32;case yf:return 268435456;default:return 32}default:return 32}}var Vu=!1,Yn=null,Gn=null,Xn=null,os=new Map,us=new Map,Zn=[],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":Yn=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Xn=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 Yn=cs(Yn,t,e,n,s,l),!0;case"dragenter":return Gn=cs(Gn,t,e,n,s,l),!0;case"mouseover":return Xn=cs(Xn,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=d(e);if(n!==null){if(e=n.tag,e===13){if(e=f(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 Zl(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){Zl(t)&&n.delete(e)}function n1(){Vu=!1,Yn!==null&&Zl(Yn)&&(Yn=null),Gn!==null&&Zl(Gn)&&(Gn=null),Xn!==null&&Zl(Xn)&&(Xn=null),os.forEach(up),us.forEach(up)}function Ql(t,e){t.blockedOn===e&&(t.blockedOn=null,Vu||(Vu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,n1)))}var Kl=null;function cp(t){Kl!==t&&(Kl=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Kl===t&&(Kl=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 Ql(T,t)}Yn!==null&&Ql(Yn,t),Gn!==null&&Ql(Gn,t),Xn!==null&&Ql(Xn,t),os.forEach(e),us.forEach(e);for(var n=0;n<Zn.length;n++){var s=Zn[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Zn.length&&(n=Zn[0],n.blockedOn===null);)op(n),n.blockedOn===null&&Zn.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 v=null;if(u&&u.hasAttribute("formAction")){if(l=u,h=u[ce]||null)v=h.formAction;else if(_u(l)!==null)continue}else v=h.action;typeof v=="function"?n[s+1]=v:(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}Jl.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)},Jl.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),wl(),e[Na]=null}};function Jl(t){this._internalRoot=t}Jl.prototype.unstable_scheduleHydration=function(t){if(t){var e=Sf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Zn.length&&e!==0&&e<Zn[n].priority;n++);Zn.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=g(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var a1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fl.isDisabled&&Fl.supportsFiber)try{xi=Fl.inject(a1),xe=Fl}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,v=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&&(v=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=tp(t,1,!0,e,n??null,s,l,T,u,h,v,fp),e.context=ep(null),n=e.current,s=Me(),s=jr(s),l=Cn(s),l.callback=null,Rn(n,l,s),n=s,e.current.lanes=n,Si(e,n),$e(e),t[Na]=e.current,gu(t),new Jl(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:d,iconNode:f,...p},y)=>C.createElement("svg",{ref:y,...v1,width:i,height:i,stroke:a,strokeWidth:o?Number(r)*24/Number(i):r,className:G0("lucide",c),...!d&&!x1(p)&&{"aria-hidden":"true"},...p},[...f.map(([g,x])=>C.createElement(g,x)),...Array.isArray(d)?d:[d]]));const vt=(a,i)=>{const r=C.forwardRef(({className:o,...c},d)=>C.createElement(b1,{ref:d,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"}]],Fn=vt("chevron-down",D1);const C1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ir=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"}]],js=vt("circle-alert",O1);const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],sr=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"}]],Es=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 Ie=(a,i,r)=>r>i?i:r<a?a:r;let Bc=()=>{};const Sn={},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)),Ms=(...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 d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bn=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 d,f,p=0;do f=i+(r-i)/2,d=ay(f,o,c)-a,d>0?r=f:i=f;while(Math.abs(d)>bb&&++p<Sb);return f}function ws(a,i,r,o){if(a===i&&r===o)return ke;const c=d=>Tb(d,0,1,a,r);return d=>d===0||d===1?d:ay(c(d),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=ws(.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=ws(.42,0,1,1),Nb=ws(0,0,.58,1),fy=ws(.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 ws(i,r,o,c)}else if(Mb(a))return Eb[a];return a},$l=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wb(a,i){let r=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function y(x){f.has(x)&&(g.schedule(x),a()),x(p)}const g={schedule:(x,b=!1,S=!1)=>{const M=S&&c?r:o;return b&&f.add(x),M.has(x)||M.add(x),x},cancel:x=>{o.delete(x),f.delete(x)},process:x=>{if(p=x,c){d=!0;return}c=!0,[r,o]=[o,r],r.forEach(y),r.clear(),c=!1,d&&(d=!1,g.process(x))}};return g}const Db=40;function hy(a,i){let r=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>r=!0,f=$l.reduce((B,X)=>(B[X]=wb(d),B),{}),{setup:p,read:y,resolveKeyframes:g,preUpdate:x,update:b,preRender:S,render:A,postRender:M}=f,O=()=>{const B=Sn.useManualTiming?c.timestamp:performance.now();r=!1,Sn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(B-c.timestamp,Db),1)),c.timestamp=B,c.isProcessing=!0,p.process(c),y.process(c),g.process(c),x.process(c),b.process(c),S.process(c),A.process(c),M.process(c),c.isProcessing=!1,r&&i&&(o=!1,a(O))},q=()=>{r=!0,o=!0,c.isProcessing||a(O)};return{schedule:$l.reduce((B,X)=>{const Z=f[X];return B[X]=(at,I=!1,K=!1)=>(r||q(),Z.schedule(at,I,K)),B},{}),cancel:B=>{for(let X=0;X<$l.length;X++)f[$l[X]].cancel(B)},state:c,steps:f}}const{schedule:Ct,cancel:$n,state:ae,steps:Gu}=hy(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0);let tr;function Cb(){tr=void 0}const oe={now:()=>(tr===void 0&&oe.set(ae.isProcessing||Sn.useManualTiming?ae.timestamp:performance.now()),tr),set:a=>{tr=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=>Ie(0,1,a)},Pl={...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,d,f,p]=o.match(Gc);return{[a]:parseFloat(c),[i]:parseFloat(d),[r]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Vb=a=>Ie(0,255,a),Xu={...pi,transform:a=>Math.round(Vb(a))},ba={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:ba.transform},Ds=a=>({test:i=>typeof i=="string"&&i.endsWith(a)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${a}`}),Kn=Ds("deg"),We=Ds("%"),F=Ds("px"),Bb=Ds("vh"),Lb=Ds("vw"),wp={...We,parse:a=>We.parse(a)/100,transform:a=>We.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)+", "+We.transform(ys(i))+", "+We.transform(ys(r))+", "+ys(Ss.transform(o))+")"},Kt={test:a=>ba.test(a)||rc.test(a)||oi.test(a),parse:a=>ba.test(a)?ba.parse(a):oi.test(a)?oi.parse(a):rc.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?ba.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 d=0;const p=i.replace(Gb,y=>(Kt.test(y)?(o.color.push(d),c.push(vy),r.push(Kt.parse(y))):y.startsWith(Yb)?(o.var.push(d),c.push(qb),r.push(y)):(o.number.push(d),c.push(gy),r.push(parseFloat(y))),++d,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 d="";for(let f=0;f<o;f++)if(d+=i[f],c[f]!==void 0){const p=r[f];p===gy?d+=ys(c[f]):p===vy?d+=Kt.transform(c[f]):d+=c[f]}return d}}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 Pn={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,d=0,f=0;if(!i)c=d=f=r;else{const p=r<.5?r*(1+i):r+i-r*i,y=2*r-p;c=Zu(y,p,a+1/3),d=Zu(y,p,a),f=Zu(y,p,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:o}}function lr(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,ba,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 lr(a,i);const c={...r};return d=>(c.red=Qu(r.red,o.red,d),c.green=Qu(r.green,o.green,d),c.blue=Qu(r.blue,o.blue,d),c.alpha=Vt(r.alpha,o.alpha,d),ba.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)?lr:Kt.test(a)?Rp:Ib:Array.isArray(a)?Sy:typeof a=="object"?Kt.test(a)?Rp:Pb:lr}function Sy(a,i){const r=[...a],o=r.length,c=a.map((d,f)=>Zc(d)(d,i[f]));return d=>{for(let f=0;f<o;f++)r[f]=c[f](d);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 d in o)r[d]=o[d](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 d=i.types[c],f=a.indexes[d][o[d]],p=a.values[f]??0;r[c]=p,o[d]++}return r}const Ib=(a,i)=>{const r=Pn.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):Ms(Sy(Wb(o,c),c.values),r):lr(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:()=>$n(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 d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},rr=2e4;function Qc(a){let i=0;const r=50;let o=a.next(i);for(;!o.done&&i<rr;)i+=r,o=a.next(i);return i>=rr?1/0:i}function e2(a,i=100,r){const o=r({...a,keyframes:[0,i]}),c=Math.min(Qc(o),rr);return{type:"keyframes",ease:d=>o.next(c*d).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,d,f=1-i;f=Ie(Ht.minDamping,Ht.maxDamping,f),a=Ie(Ht.minDuration,Ht.maxDuration,He(a)),f<1?(c=g=>{const x=g*f,b=x*a,S=x-r,A=uc(g,f),M=Math.exp(-b);return Ku-S/A*M},d=g=>{const b=g*f*a,S=b*r+r,A=Math.pow(f,2)*Math.pow(g,2)*a,M=Math.exp(-b),O=uc(Math.pow(g,2),f);return(-c(g)+Ku>0?-1:1)*((S-A)*M)/O}):(c=g=>{const x=Math.exp(-g*a),b=(g-r)*a+1;return-Ku+x*b},d=g=>{const x=Math.exp(-g*a),b=(r-g)*(a*a);return x*b});const p=5/a,y=s2(c,d,p);if(a=bn(a),isNaN(y))return{stiffness:Ht.stiffness,damping:Ht.damping,duration:a};{const g=Math.pow(y,2)*o;return{stiffness:g,damping:f*2*Math.sqrt(o*g),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,d=2*Ie(.05,1,1-(a.bounce||0))*Math.sqrt(c);i={...i,mass:Ht.mass,stiffness:c,damping:d}}else{const r=a2(a);i={...i,...r,mass:Ht.mass},i.isResolvedFromDuration=!0}return i}function or(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 d=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],p={done:!1,value:d},{stiffness:y,damping:g,mass:x,duration:b,velocity:S,isResolvedFromDuration:A}=o2({...r,velocity:-He(r.velocity||0)}),M=S||0,O=g/(2*Math.sqrt(y*x)),q=f-d,_=He(Math.sqrt(y/x)),H=Math.abs(q)<5;o||(o=H?Ht.restSpeed.granular:Ht.restSpeed.default),c||(c=H?Ht.restDelta.granular:Ht.restDelta.default);let B;if(O<1){const Z=uc(_,O);B=at=>{const I=Math.exp(-O*_*at);return f-I*((M+O*_*q)/Z*Math.sin(Z*at)+q*Math.cos(Z*at))}}else if(O===1)B=Z=>f-Math.exp(-_*Z)*(q+(M+_*q)*Z);else{const Z=_*Math.sqrt(O*O-1);B=at=>{const I=Math.exp(-O*_*at),K=Math.min(Z*at,300);return f-I*((M+O*_*q)*Math.sinh(K)+Z*q*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?bn(M):Ny(B,Z,at));const K=Math.abs(I)<=o,it=Math.abs(f-at)<=c;p.done=K&&it}return p.value=p.done?f:at,p},toString:()=>{const Z=Math.min(Qc(X),rr),at=Ay(I=>X.next(Z*I).value,Z,30);return Z+"ms "+at},toTransition:()=>{}};return X}or.applyToOptions=a=>{const i=e2(a,100,or);return a.ease=i.ease,a.duration=bn(i.duration),a.type="keyframes",a};function cc({keyframes:a,velocity:i=0,power:r=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:p,max:y,restDelta:g=.5,restSpeed:x}){const b=a[0],S={done:!1,value:b},A=K=>p!==void 0&&K<p||y!==void 0&&K>y,M=K=>p===void 0?y:y===void 0||Math.abs(p-K)<Math.abs(y-K)?p:y;let O=r*i;const q=b+O,_=f===void 0?q:f(q);_!==q&&(O=_-b);const H=K=>-O*Math.exp(-K/o),B=K=>_+H(K),X=K=>{const it=H(K),jt=B(K);S.done=Math.abs(it)<=g,S.value=S.done?_:jt};let Z,at;const I=K=>{A(S.value)&&(Z=K,at=or({keyframes:[S.value,M(S.value)],velocity:Ny(B,K,S.value),damping:c,stiffness:d,restDelta:g,restSpeed:x}))};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||Sn.mix||Ty,d=a.length-1;for(let f=0;f<d;f++){let p=c(a[f],a[f+1]);if(i){const y=Array.isArray(i)?i[f]||ke:i;p=Ms(y,p)}o.push(p)}return o}function c2(a,i,{clamp:r=!0,ease:o,mixer:c}={}){const d=a.length;if(Bc(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),i=[...i].reverse());const p=u2(i,o,c),y=p.length,g=x=>{if(f&&x<a[0])return i[0];let b=0;if(y>1)for(;b<a.length-2&&!(x<a[b+1]);b++);const S=bs(a[b],a[b+1],x);return p[b](S)};return r?x=>g(Ie(a[0],a[d-1],x)):g}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),d={done:!1,value:i[0]},f=h2(r&&r.length===i.length?r:d2(i),a),p=c2(f,i,{ease:Array.isArray(c)?c:m2(i,c)});return{calculatedDuration:a,next:y=>(d.value=p(y),d.done=y>=a,d)}}const p2=a=>a!==null;function Kc(a,{repeat:i,repeatType:r="loop"},o,c=1){const d=a.filter(p2),p=c<0||i&&r!=="loop"&&i%2===1?0:d.length-1;return!p||o===void 0?d[p]:o}const y2={decay:cc,inertia:cc,tween:gs,keyframes:gs,spring:or};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:d,velocity:f=0}=i;let{keyframes:p}=i;const y=r||gs;y!==gs&&typeof p[0]!="number"&&(this.mixKeyframes=Ms(g2,Ty(p[0],p[1])),p=[0,100]);const g=y({...i,keyframes:p});d==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...p].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=Qc(g));const{calculatedDuration:x}=g;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=g}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:d,mirroredGenerator:f,resolvedDuration:p,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:g=0,keyframes:x,repeat:b,repeatType:S,repeatDelay:A,type:M,onUpdate:O,finalKeyframe:q}=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 _=this.currentTime-g*(this.playbackSpeed>=0?1:-1),H=this.playbackSpeed>=0?_<0:_>c;this.currentTime=Math.max(_,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=f)),B=Ie(0,1,jt)*p}const Z=H?{done:!1,value:x[0]}:X.next(B);d&&(Z.value=d(Z.value));let{done:at}=Z;!H&&y!==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(x,this.options,q,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=bn(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 Sa=a=>a*180/Math.PI,fc=a=>{const i=Sa(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=>Sa(Math.atan(a[1])),skewY:a=>Sa(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(Sa(Math.atan2(a[6],a[5]))),rotateY:a=>dc(Sa(Math.atan2(-a[2],a[0]))),rotateZ:Op,rotate:Op,skewX:a=>Sa(Math.atan(a[4])),skewY:a=>Sa(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 d=o[i],f=c[1].split(",").map(T2);return typeof d=="function"?d(f):f[d]}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 Jn={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")};Jn.translateX=Jn.x;Jn.translateY=Jn.y;const Ta=new Set;let pc=!1,yc=!1,gc=!1;function Ey(){if(yc){const a=Array.from(Ta).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(([d,f])=>{o.getValue(d)?.set(f)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}yc=!1,pc=!1,Ta.forEach(a=>a.complete(gc)),Ta.clear()}function My(){Ta.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(yc=!0)})}function E2(){gc=!0,My(),Ey(),gc=!1}class $c{constructor(i,r,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=r,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ta.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 d=c?.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(o&&r){const p=o.readValue(r,f);p!=null&&(i[0]=p)}i[0]===void 0&&(i[0]=f),c&&d===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),Ta.delete(this)}cancel(){this.state==="scheduled"&&(Ta.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:d=0,repeatType:f="loop",ease:p="easeOut",times:y}={},g=void 0){const x={[i]:r};y&&(x.offset=y);const b=Dy(p,c);Array.isArray(b)&&(x.easing=b);const S={delay:o,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return g&&(S.pseudoElement=g),a.animate(x,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:d,allowFlatten:f=!1,finalKeyframe:p,onComplete:y}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,Bc(typeof i.type!="string");const g=O2(i);this.animation=z2(r,o,c,g,d),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const x=Kc(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(x):w2(r,o,x),this.animation.cancel()}y?.(),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=bn(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:d,...f}=this.options;if(!r)return;if(i!==void 0){r.set(i);return}const p=new Fc({...f,autoplay:!1}),y=Math.max(Ju,oe.now()-this.startTime),g=Ie(0,Ju,y-Ju);r.setWithVelocity(p.sample(Math.max(0,y-g)).value,p.sample(y).value,g),p.stop()}}const Lp=(a,i)=>i==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Pn.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 d=a[a.length-1],f=Lp(c,i),p=Lp(d,i);return!f||!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:d,type:f}=a;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:y,transformTemplate:g}=i.owner.getProps();return q2()&&r&&k2.has(r)&&(r!=="transform"||!g)&&!y&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const G2=40;class X2 extends Jc{constructor({autoplay:i=!0,delay:r=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:p,name:y,motionValue:g,element:x,...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:d,repeatType:f,name:y,motionValue:g,element:x,...b},A=x?.KeyframeResolver||$c;this.keyframeResolver=new A(p,(M,O,q)=>this.onKeyframesResolved(M,O,S,!q),y,g,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,r,o,c){this.keyframeResolver=void 0;const{name:d,type:f,velocity:p,delay:y,isHandoff:g,onUpdate:x}=o;this.resolvedAt=oe.now(),H2(i,d,f,p)||((Sn.instantAnimations||!y)&&x?.(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=!g&&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 d=Array.from(a).sort((g,x)=>g.sortNodePosition(x)).indexOf(i),f=a.size,p=(f-1)*o;return typeof r=="function"?r(d,f):c===1?d*o:p-d*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 d=window.getComputedStyle(i).getPropertyValue(o);if(d){const f=d.trim();return I0(f)?parseFloat(f):f}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),d=i&&r!=="loop"&&i%2===1?0:c.length-1;return c[d]}function Pc(a,i){return a?.[i]??a?.default??a}function tS({when:a,delay:i,delayChildren:r,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:p,from:y,elapsed:g,...x}){return!!Object.keys(x).length}const Wc=(a,i,r,o={},c,d)=>f=>{const p=Pc(o,a)||{},y=p.delay||o.delay||0;let{elapsed:g=0}=o;g=g-bn(y);const x={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:i.getVelocity(),...p,delay:-g,onUpdate:S=>{i.set(S),p.onUpdate&&p.onUpdate(S)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:a,motionValue:i,element:d?void 0:c};tS(p)||Object.assign(x,P2(a,x)),x.duration&&(x.duration=bn(x.duration)),x.repeatDelay&&(x.repeatDelay=bn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(vc(x),x.delay===0&&(b=!0)),(Sn.instantAnimations||Sn.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,vc(x),x.delay=0),x.allowFlatten=!p.type&&!p.ease,b&&!d&&i.get()!==void 0){const S=I2(x.keyframes,p);if(S!==void 0){Ct.update(()=>{x.onUpdate(S),x.onComplete()});return}}return p.isSync?new Fc(x):new X2(x)};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,d]=Hp(o);i=i(r!==void 0?r:a.custom,c,d)}if(typeof i=="string"&&(i=a.variants&&a.variants[i]),typeof i=="function"){const[c,d]=Hp(o);i=i(r!==void 0?r:a.custom,c,d)}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 d of this.dependents)d.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={},...d}=r||{};d={...d,...o};for(const f in d){const p=iS(d[f]);aS(a,f,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&&Sn.WillChange){const o=new Sn.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:d=a.getDefaultTransition(),transitionEnd:f,...p}=i;const y=d?.reduceMotion;o&&(d=o);const g=[],x=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||x&&oS(x,b))continue;const M={delay:r,...Pc(d||{},b)},O=S.get();if(O!==void 0&&!S.isAnimating&&!Array.isArray(A)&&A===O&&!M.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const B=Uy(a);if(B){const X=window.MotionHandoffAnimation(B,b,Ct);X!==null&&(M.startTime=X,q=!0)}}bc(a,b);const _=y??a.shouldReduceMotion;S.start(Wc(b,S,A,_&&_y.has(b)?{type:!1}:M,a,q));const H=S.animation;H&&g.push(H)}return f&&Promise.all(g).then(()=>{Ct.update(()=>{f&&sS(a,f)})}),g}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 d=o?()=>Promise.all(By(a,o,r)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:g=0,staggerChildren:x,staggerDirection:b}=c;return uS(a,i,y,g,x,b,r)}:()=>Promise.resolve(),{when:p}=c;if(p){const[y,g]=p==="beforeChildren"?[d,f]:[f,d];return y().then(()=>g())}else return Promise.all([d(),f(r.delay)])}function uS(a,i,r=0,o=0,c=0,d=1,f){const p=[];for(const y of a.variantChildren)y.notify("AnimationStart",i),p.push(Sc(y,i,{...f,delay:r+(typeof o=="function"?0:o)+zy(a.variantChildren,y,o,c,d)}).then(()=>y.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(d=>Sc(a,d,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,We,Kn,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 d=hS.has(i)?1:0;return o!==r&&(d*=100),i+"("+d+c+")"}const pS=/\b([a-z-]*)\(.*?\)/gu,Tc={...Pn,getAnimatableNone:a=>{const i=a.match(pS);return i?i.map(mS).join(" "):a}},Yp={...pi,transform:Math.round},yS={rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scale:Pl,scaleX:Pl,scaleY:Pl,scaleZ:Pl,skew:Kn,skewX:Kn,skewY:Kn,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=Pn),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 d=a[o];typeof d=="string"&&!vS.has(d)&&Ts(d).values.length&&(c=a[o]),o++}if(c&&r)for(const d of i)a[d]=qy(r,c)}class bS extends $c{constructor(i,r,o,c,d){super(i,r,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let x=0;x<i.length;x++){let b=i[x];if(typeof b=="string"&&(b=b.trim(),Yc(b))){const S=Oy(b,r.current);S!==void 0&&(i[x]=S),x===i.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!_y.has(o)||i.length!==2)return;const[c,d]=i,f=qp(c),p=qp(d),y=Mp(c),g=Mp(d);if(y!==g&&Jn[o]){this.needsMeasurement=!0;return}if(f!==p)if(Up(f)&&Up(p))for(let x=0;x<i.length;x++){const b=i[x];typeof b=="string"&&(i[x]=parseFloat(b))}else Jn[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=Jn[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 d=o.length-1,f=o[d];o[d]=Jn[r](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,y])=>{i.getValue(p).set(y)}),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,d]=Xy(a,r),f=p=>{if(!Gp(p))return;const{target:y}=p,g=i(y,p);if(typeof g!="function"||!y)return;const x=b=>{Gp(b)&&(g(b),y.removeEventListener("pointerleave",x))};y.addEventListener("pointerleave",x,c)};return o.forEach(p=>{p.addEventListener("pointerenter",f,c)}),d}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 er=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(er.has(r))return;Fu(r,"down");const c=Xp(()=>{Fu(r,"up")}),d=()=>Fu(r,"cancel");r.addEventListener("keyup",c,i),r.addEventListener("blur",d,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,d]=Xy(a,r),f=p=>{const y=p.currentTarget;if(!Zp(p))return;er.add(y);const g=i(y,p),x=(A,M)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),er.has(y)&&er.delete(y),Zp(A)&&typeof g=="function"&&g(A,{success:M})},b=A=>{x(A,y===window||y===document||r.useGlobalTarget||Zy(y,A.target))},S=A=>{x(A,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",S,c)};return o.forEach(p=>{(r.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),Ac(p)&&(p.addEventListener("focus",g=>wS(g,c)),!jS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Qy(a){return ty(a)&&"ownerSVGElement"in a}function CS(a){return Qy(a)&&a.tagName==="svg"}const RS=[...Hy,Kt,Pn],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],d=r[o];if(se(c))a.addValue(o,c);else if(se(d))a.addValue(o,mi(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const f=a.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(o);a.addValue(o,mi(f!==void 0?f: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 ur={};function Fy(a){ur=a}function BS(){return ur}class LS{scrapeMotionValuesFromProps(i,r,o){return{}}constructor({parent:i,props:r,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:p},y={}){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:g,renderState:x}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=r.initial?{...g}:{},this.renderState=x,this.parent=i,this.props=r,this.presenceContext=o,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=y,this.blockInitialAnimation=!!f,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];g[A]!==void 0&&se(M)&&M.set(g[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(),$n(this.notifyUpdate),$n(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",f=>{this.latestValues[i]=f,this.props.onUpdate&&Ct.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,r)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),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 ur){const r=ur[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 d=this.features[i];d.isMounted?d.update():(d.mount(),d.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 d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}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)&&Pn.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 d=Ic(this.props,r,this.presenceContext?.custom);d&&(o=d[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 Wn{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 xa(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 cr(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=cr(a,c,o)),cr(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 d,f;for(let p=0;p<c;p++){d=r[p],f=d.projectionDelta;const{visualElement:y}=d.options;y&&y.props.style&&y.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&fi(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,Iy(a,f)),o&&xa(d.latestValues)&&fi(a,d.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 d=Vt(a.min,a.max,c);Ec(a,i,r,d,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 d=0;d<XS;d++){const f=yi[d],p=a[f];if(p===void 0)continue;let y=!0;if(typeof p=="number")y=p===(f.startsWith("scale")?1:0);else{const g=parseFloat(p);y=f.startsWith("scale")?g===1:g===0}if(!y||r){const g=Yy(p,ef[f]);if(!y){c=!1;const x=GS[f]||f;o+=`${x}(${g}) `}r&&(i[f]=g)}}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:d}=a;let f=!1,p=!1;for(const y in i){const g=i[y];if(gi.has(y)){f=!0;continue}else if(py(y)){c[y]=g;continue}else{const x=Yy(g,ef[y]);y.startsWith("origin")?(p=!0,d[y]=x):o[y]=x}}if(i.transform||(f||r?o.transform=ZS(i,a.transform,r):o.transform&&(o.transform="none")),p){const{originX:y="50%",originY:g="50%",originZ:x=0}=d;o.transformOrigin=`${y} ${g} ${x}`}}function eg(a,{style:i,vars:r},o,c){const d=a.style;let f;for(f in i)d[f]=i[f];c?.applyProjectionStyles(d,o);for(f in r)d.setProperty(f,r[f])}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=Pn.parse(a);if(c.length>5)return o;const d=Pn.createTransformer(a),f=typeof c[0]!="number"?1:0,p=r.x.scale*i.x,y=r.y.scale*i.y;c[0+f]/=p,c[1+f]/=y;const g=Vt(p,y,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),d(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,d={};if(!o)return d;for(const f in o)(se(o[f])||c&&se(c[f])||ng(f,a)||r?.getValue(f)?.liveStyle!==void 0)&&(d[f]=o[f]);return d}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 d=c?FS:$S;a[d.offset]=`${-o}`,a[d.array]=`${i} ${r}`}const WS=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ag(a,{attrX:i,attrY:r,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p},y,g,x){if(rf(a,p,g),y){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=x?.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,d,f,!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 d=yi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=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=y=>(g,x)=>{const b=di(a,x,y==="exit"?a.presenceContext?.custom:void 0);if(b){const{transition:S,transitionEnd:A,...M}=b;g={...g,...M,...A}}return g};function d(y){i=y(a)}function f(y){const{props:g}=a,x=rg(a.parent)||{},b=[],S=new Set;let A={},M=1/0;for(let q=0;q<aT;q++){const _=nT[q],H=r[_],B=g[_]!==void 0?g[_]:x[_],X=As(B),Z=_===y?H.isActive:null;Z===!1&&(M=q);let at=B===x[_]&&B!==g[_]&&X;if(at&&o&&a.manuallyAnimateOnMount&&(at=!1),H.protectedKeys={...A},!H.isActive&&Z===null||!B&&!H.prevProp||pr(B)||typeof B=="boolean")continue;const I=lT(H.prevProp,B);let K=I||_===y&&H.isActive&&!at&&X||q>M&&X,it=!1;const jt=Array.isArray(B)?B:[B];let _t=jt.reduce(c(_),{});Z===!1&&(_t={});const{prevResolvedValues:Ut={}}=H,ge={...Ut,..._t},et=G=>{K=!0,S.has(G)&&(it=!0,S.delete(G)),H.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?et(G):S.add(G):P!==void 0&&S.has(G)?et(G):H.protectedKeys[G]=!0}H.prevProp=B,H.prevResolvedValues=_t,H.isActive&&(A={...A,..._t}),o&&a.blockInitialAnimation&&(K=!1);const ot=at&&I;K&&(!ot||it)&&b.push(...jt.map(G=>{const P={type:_};if(typeof G=="string"&&o&&!ot&&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 q={};if(typeof g.initial!="boolean"){const _=di(a,Array.isArray(g.initial)?g.initial[0]:g.initial);_&&_.transition&&(q.transition=_.transition)}S.forEach(_=>{const H=a.getBaseTarget(_),B=a.getValue(_);B&&(B.liveStyle=!0),q[_]=H??null}),b.push({animation:q})}let O=!!b.length;return o&&(g.initial===!1||g.initial===g.animate)&&!a.manuallyAnimateOnMount&&(O=!1),o=!1,O?i(b):Promise.resolve()}function p(y,g){if(r[y].isActive===g)return Promise.resolve();a.variantChildren?.forEach(b=>b.animationState?.setActive(y,g)),r[y].isActive=g;const x=f(y);for(const b in r)r[b].protectedKeys={};return x}return{animateChanges:f,setActive:p,setAnimateFunction:d,getState:()=>r,reset:()=>{r=e0()}}}function lT(a,i){return typeof i=="string"?i!==a:Array.isArray(i)?!og(i,a):!1}function va(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e0(){return{animate:va(!0),whileInView:va(),whileHover:va(),whileTap:va(),whileDrag:va(),whileFocus:va(),exit:va()}}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 fr(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=cr(a,1/r,o),c!==void 0&&(a=cr(a,1/c,o)),a}function hT(a,i=0,r=1,o=.5,c,d=a,f=a){if(We.test(i)&&(i=parseFloat(i),i=Vt(f.min,f.max,i/100)-f.min),typeof i!="number")return;let p=Vt(d.min,d.max,o);a===d&&(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],d,f){hT(a,i[r],i[o],i[c],i.scale,d,f)}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,d=a.y.translate/i.y,f=r?.z||0;if((c||d||f)&&(o=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(o+=`scale(${1/i.x}, ${1/i.y}) `),r){const{transformPerspective:g,rotate:x,rotateX:b,rotateY:S,skewX:A,skewY:M}=r;g&&(o=`perspective(${g}px) ${o}`),x&&(o+=`rotate(${x}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,y=a.y.scale*i.y;return(p!==1||y!==1)&&(o+=`scale(${p}, ${y})`),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,d){c?(a.opacity=Vt(0,r.opacity??1,bT(o)),a.opacityExit=Vt(i.opacity??1,0,ST(o))):d&&(a.opacity=Vt(i.opacity??1,r.opacity??1,o));for(let f=0;f<vT;f++){const p=`border${hg[f]}Radius`;let y=g0(i,p),g=g0(r,p);if(y===void 0&&g===void 0)continue;y||(y=0),g||(g=0),y===0||g===0||y0(y)===y0(g)?(a[p]=Math.max(Vt(p0(y),p0(g),o),0),(We.test(g)||We.test(y))&&(a[p]+="%")):a[p]=g}(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 d=c-r;d>=i&&($n(o),a(d-i))};return Ct.setup(o,!0),()=>$n(o)}function nr(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 d=this.members[c];if(d.isPresent!==!1){o=d;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,d=i.options.layoutDependency;c!==void 0&&d!==void 0&&c===d||(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 ar={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:d}=a.options;window.MotionCancelOptimisedAnimation(r,"transform",Ct,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&pg(o)}function yg({attachResizeListener:a,defaultParent:i,measureScroll:r,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(f={},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=f,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 y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new NT)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Hc),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const y=this.eventHandlers.get(f);y&&y.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Qy(f)&&!CS(f),this.instance=f;const{layoutId:p,layout:y,visualElement:g}=this.options;if(g&&!g.current&&g.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||p)&&(this.isLayoutDirty=!0),a){let x,b=0;const S=()=>this.root.updateBlockedByResize=!1;Ct.read(()=>{b=window.innerWidth}),a(f,()=>{const A=window.innerWidth;A!==b&&(b=A,this.root.updateBlockedByResize=!0,x&&x(),x=jT(S,250),ar.hasAnimatedSinceResize&&(ar.hasAnimatedSinceResize=!1,this.nodes.forEach(b0)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=this.options.transition||g.getDefaultTransition()||qT,{onLayoutAnimationStart:O,onLayoutAnimationComplete:q}=g.getProps(),_=!this.targetLayout||!dg(this.targetLayout,A),H=!b&&S;if(this.options.layoutRoot||this.resumeFrom||H||b&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const B={...Pc(M,"layout"),onPlay:O,onComplete:q};(g.shouldReduceMotion||this.options.layoutRoot)&&(B.delay=0,B.type=!1),this.startAnimation(B),this.setAnimationOrigin(x,H)}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 f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$n(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:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!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 x=0;x<this.path.length;x++){const b=this.path[x];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:p,layout:y}=this.options;if(p===void 0&&!y)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&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=Ie(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 y=0;y<this.path.length;y++)this.path[y].updateScroll();const f=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,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const y=o(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:y,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!fg(this.projectionDelta),y=this.getTransformTemplate(),g=y?y(this.latestValues,""):void 0,x=g!==this.prevTransformTemplateValue;f&&this.instance&&(p||xa(this.latestValues)||x)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let y=this.removeElementScroll(p);return f&&(y=this.removeTransform(y)),YT(y),{animationId:this.root.animationId,measuredBox:p,layoutBox:y,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return Ft();const p=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(GT))){const{scroll:g}=this.root;g&&(ci(p.x,g.offset.x),ci(p.y,g.offset.y))}return p}removeElementScroll(f){const p=Ft();if(Ze(p,f),this.scroll?.wasRoot)return p;for(let y=0;y<this.path.length;y++){const g=this.path[y],{scroll:x,options:b}=g;g!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&Ze(p,f),ci(p.x,x.offset.x),ci(p.y,x.offset.y))}return p}applyTransform(f,p=!1){const y=Ft();Ze(y,f);for(let g=0;g<this.path.length;g++){const x=this.path[g];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&fi(y,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),xa(x.latestValues)&&fi(y,x.latestValues)}return xa(this.latestValues)&&fi(y,this.latestValues),y}removeTransform(f){const p=Ft();Ze(p,f);for(let y=0;y<this.path.length;y++){const g=this.path[y];if(!g.instance||!xa(g.latestValues))continue;jc(g.latestValues)&&g.updateSnapshot();const x=Ft(),b=g.measurePageBox();Ze(x,b),u0(p,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,x)}return xa(this.latestValues)&&u0(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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(f=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==p;if(!(f||y&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:b}=this.options;if(!this.layout||!(x||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(f,p,y){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),fr(this.relativeTargetOrigin,p,y),Ze(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),p=!!this.resumingFrom||this!==f;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ae.timestamp&&(y=!1),y)return;const{layout:g,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||x))return;Ze(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;qS(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=Ft());const{target:A}=f;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(f=!0){if(this.options.visualElement?.scheduleRender(),f){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(f,p=!1){const y=this.snapshot,g=y?y.latestValues:{},x={...this.latestValues},b=ui();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const S=Ft(),A=y?y.source:void 0,M=this.layout?this.layout.source:void 0,O=A!==M,q=this.getStack(),_=!q||q.members.length<=1,H=!!(O&&!_&&this.options.crossfade===!0&&!this.path.some(kT));this.animationProgress=0;let B;this.mixTargetDelta=X=>{const Z=X/1e3;S0(b.x,f.x,Z),S0(b.y,f.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fr(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=x,xT(x,g,this.latestValues,Z,H,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&($n(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{ar.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mi(0)),this.currentAnimation=TT(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.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 f=this.getLead();let{targetWithTransforms:p,target:y,layout:g,latestValues:x}=f;if(!(!p||!y||!g)){if(this!==f&&this.layout&&g&&gg(this.options.animationType,this.layout.layoutBox,g.layoutBox)){y=this.target||Ft();const b=ue(this.layout.layoutBox.x);y.x.min=f.target.x.min,y.x.max=y.x.min+b;const S=ue(this.layout.layoutBox.y);y.y.min=f.target.y.min,y.y.max=y.y.min+S}Ze(p,y),fi(p,x),vs(this.projectionDeltaWithTransform,this.layoutCorrected,p,x)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new ET),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:y}={}){const g=this.getStack();g&&g.promote(this,y),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:y}=f;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(p=!0),!p)return;const g={};y.z&&Wu("z",f,g,this.animationValues);for(let x=0;x<Pu.length;x++)Wu(`rotate${Pu[x]}`,f,g,this.animationValues),Wu(`skew${Pu[x]}`,f,g,this.animationValues);f.render();for(const x in g)f.setStaticValue(x,g[x]),this.animationValues&&(this.animationValues[x]=g[x]);f.scheduleRender()}applyProjectionStyles(f,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=nr(p?.pointerEvents)||"",f.transform=y?y(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=nr(p?.pointerEvents)||""),this.hasProjected&&!xa(this.latestValues)&&(f.transform=y?y({},""):"none",this.hasProjected=!1);return}f.visibility="";const x=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=gT(this.projectionDeltaWithTransform,this.treeScale,x);y&&(b=y(x,b)),f.transform=b;const{x:S,y:A}=this.projectionDelta;f.transformOrigin=`${S.origin*100}% ${A.origin*100}% 0`,g.animationValues?f.opacity=g===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:f.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const M in Mc){if(x[M]===void 0)continue;const{correct:O,applyTo:q,isCSSVariable:_}=Mc[M],H=b==="none"?x[M]:O(x[M],g);if(q){const B=q.length;for(let X=0;X<B;X++)f[q[X]]=H}else _?this.options.visualElement.renderState.vars[M]=H:f[M]=H}this.options.layoutId&&(f.pointerEvents=g===this?nr(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.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,d=i.source!==a.layout.source;c==="size"?Le(x=>{const b=d?i.measuredBox[x]:i.layoutBox[x],S=ue(b);b.min=r[x].min,b.max=b.min+S}):gg(c,i.layoutBox,r)&&Le(x=>{const b=d?i.measuredBox[x]:i.layoutBox[x],S=ue(r[x]);b.max=b.min+S,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[x].max=a.relativeTarget[x].min+S)});const f=ui();vs(f,r,i.layoutBox);const p=ui();d?vs(p,a.applyTransform(o,!0),i.measuredBox):vs(p,r,i.layoutBox);const y=!fg(f);let g=!1;if(!a.resumeFrom){const x=a.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:S}=x;if(b&&S){const A=Ft();fr(A,i.layoutBox,b.layoutBox);const M=Ft();fr(M,r,S.layoutBox),dg(A,M)||(g=!0),x.options.layoutRoot&&(a.relativeTarget=M,a.relativeTargetOrigin=A,a.relativeParent=x)}}}a.notifyListeners("didUpdate",{layout:r,snapshot:i,delta:p,layoutDelta:f,hasLayoutChanged:y,hasRelativeLayoutChanged:g})}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 d=E0(c,i);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():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,d=Ac(o)&&o.offsetHeight||0,f=this.props.sizeRef.current;f.height=r.offsetHeight||0,f.width=r.offsetWidth||0,f.top=r.offsetTop,f.left=r.offsetLeft,f.right=c-f.width-f.left,f.bottom=d-f.height-f.top}return null}componentDidUpdate(){}render(){return this.props.children}}function JT({children:a,isPresent:i,anchorX:r,anchorY:o,root:c}){const d=C.useId(),f=C.useRef(null),p=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:y}=C.useContext(uf),g=a.props?.ref??a?.ref,x=QT(f,g);return C.useInsertionEffect(()=>{const{width:b,height:S,top:A,left:M,right:O,bottom:q}=p.current;if(i||!f.current||!b||!S)return;const _=r==="left"?`left: ${M}`:`right: ${O}`,H=o==="bottom"?`bottom: ${q}`:`top: ${A}`;f.current.dataset.motionPopId=d;const B=document.createElement("style");y&&(B.nonce=y);const X=c??document.head;return X.appendChild(B),B.sheet&&B.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${d}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${b}px !important;
|
|
13
|
-
height: ${S}px !important;
|
|
14
|
-
${_}px !important;
|
|
15
|
-
${H}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{X.contains(B)&&X.removeChild(B)}},[i]),m.jsx(KT,{isPresent:i,childRef:f,sizeRef:p,children:C.cloneElement(a,{ref:x})})}const FT=({children:a,initial:i,isPresent:r,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:f,anchorX:p,anchorY:y,root:g})=>{const x=_c($T),b=C.useId();let S=!0,A=C.useMemo(()=>(S=!1,{id:b,initial:i,isPresent:r,custom:c,onExitComplete:M=>{x.set(M,!0);for(const O of x.values())if(!O)return;o&&o()},register:M=>(x.set(M,!1),()=>x.delete(M))}),[r,x,o]);return d&&S&&(A={...A}),C.useMemo(()=>{x.forEach((M,O)=>x.set(O,!1))},[r]),C.useEffect(()=>{!r&&!x.size&&o&&o()},[r]),f==="popLayout"&&(a=m.jsx(JT,{isPresent:r,anchorX:p,anchorY:y,root:g,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,d=C.useId();C.useEffect(()=>{if(a)return c(d)},[a]);const f=C.useCallback(()=>a&&o&&o(d),[d,o,a]);return!r&&o?[!1,f]:[!0]}const Wl=a=>a.key||"";function M0(a){const i=[];return C.Children.forEach(a,r=>{C.isValidElement(r)&&i.push(r)}),i}const dr=({children:a,custom:i,initial:r=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:p="left",anchorY:y="top",root:g})=>{const[x,b]=xg(f),S=C.useMemo(()=>M0(a),[a]),A=f&&!x?[]:S.map(Wl),M=C.useRef(!0),O=C.useRef(S),q=_c(()=>new Map),_=C.useRef(new Set),[H,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=Wl(X[K]);A.includes(it)?(q.delete(it),_.current.delete(it)):q.get(it)!==!0&&q.set(it,!1)}},[X,A.length,A.join("-")]);const at=[];if(S!==H){let K=[...S];for(let it=0;it<X.length;it++){const jt=X[it],_t=Wl(jt);A.includes(_t)||(K.splice(it,0,jt),at.push(jt))}return d==="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=Wl(K),jt=f&&!x?!1:S===X||A.includes(it),_t=()=>{if(_.current.has(it))return;if(_.current.add(it),q.has(it))q.set(it,!0);else return;let Ut=!0;q.forEach(ge=>{ge||(Ut=!1)}),Ut&&(I?.(),Z(O.current),f&&b?.(),o&&o())};return m.jsx(FT,{isPresent:jt,initial:!M.current||r?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:g,onExitComplete:jt?void 0:_t,anchorX:p,anchorY:y,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 hr(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=>!hr(a);function tA(a){typeof a=="function"&&(Tg=i=>i.startsWith("on")?!hr(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&&hr(c)||!i&&!hr(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 d=Ng();return ag(d,i,sg(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[i]);if(a.style){const d={};Ag(d,a.style,a),c.style={...d,...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,d=!1,f){const y=(f??ff(a)?rA:lA)(i,o,c,a),g=eA(i,typeof a=="string",d),x=a!==C.Fragment?{...g,...y,ref:r}:{},{children:b}=i,S=C.useMemo(()=>se(b)?b.get():b,[b]);return C.createElement(a,{...x,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={},d=o(a,{});for(const S in d)c[S]=nr(d[S]);let{initial:f,animate:p}=a;const y=yr(a),g=Jy(a);i&&g&&!y&&a.inherit!==!1&&(f===void 0&&(f=i.initial),p===void 0&&(p=i.animate));let x=r?r.initial===!1:!1;x=x||f===!1;const b=x?p:f;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:q,..._}=M;for(const H in _){let B=_[H];if(Array.isArray(B)){const X=x?B.length-1:0;B=B[X]}B!==null&&(c[H]=B)}for(const H in O)c[H]=O[H]}}}return c}const jg=a=>(i,r)=>{const o=C.useContext(gr),c=C.useContext(mr),d=()=>cA(a,i,o,c);return r?d():_c(d)},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(d=>{d&&a.onMount?.(d),i&&(d?i.mount(d):i.unmount());const f=o.current;if(typeof f=="function")if(d){const p=f(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):f(d);else f&&(f.current=d)},[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,d){const{visualElement:f}=C.useContext(gr),p=C.useContext(bg),y=C.useContext(mr),g=C.useContext(uf),x=g.reducedMotion,b=g.skipAnimations,S=C.useRef(null),A=C.useRef(!1);o=o||p.renderer,!S.current&&o&&(S.current=o(a,{visualState:i,parent:f,props:r,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:d}),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 q=C.useRef(!1);C.useInsertionEffect(()=>{M&&q.current&&M.update(r,y)});const _=r[Vy],H=C.useRef(!!_&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return W0(()=>{A.current=!0,M&&(q.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),M.scheduleRenderMicrotask(),H.current&&M.animationState&&M.animationState.animateChanges())}),C.useEffect(()=>{M&&(!H.current&&M.animationState&&M.animationState.animateChanges(),H.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),H.current=!1),M.enteringChildren=void 0)}),M}function gA(a,i,r,o){const{layoutId:c,layout:d,drag:f,dragConstraints:p,layoutScroll:y,layoutRoot:g,layoutCrossfade:x}=i;a.projection=new r(a.latestValues,i["data-framer-portal-id"]?void 0:Mg(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||p&&ps(p),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:x,layoutScroll:y,layoutRoot:g})}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 d=r?r==="svg":ff(a),f=d?hA:dA;function p(g,x){let b;const S={...C.useContext(uf),...g,layoutId:vA(g)},{isStatic:A}=S,M=aA(g),O=f(g,A);if(!A&&P0){xA();const q=bA(S);b=q.MeasureLayout,M.visualElement=yA(a,O,S,c,q.ProjectionNode,d)}return m.jsxs(gr.Provider,{value:M,children:[b&&M.visualElement?m.jsx(b,{visualElement:M.visualElement,...S}):null,uA(a,g,pA(O,M.visualElement,x),O,A,i,d)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const y=C.forwardRef(p);return y[mA]=a,y}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=(d,f)=>tc(d,f,a,i),c=(d,f)=>o(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?o:(r.has(f)||r.set(f,tc(f,void 0,a,i)),r.get(f))})}const TA=(a,i)=>i.isSVG??ff(a)?new tT(i):new JS(i,{allowProjection:a!==C.Fragment});class AA extends Wn{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 Wn{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 Cs(a){return{point:{x:a.pageX,y:a.pageY}}}const MA=a=>i=>af(i)&&a(i,Cs(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:d=!1,distanceThreshold:f=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:q}=A,{timestamp:_}=ae;this.history.push({...q,timestamp:_});const{onStart:H,onMove:B}=this.handlers;M||(H&&H(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:q,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const H=nc(A.type==="pointercancel"?this.lastMoveEventInfo:ec(M,this.transformPagePoint),this.history);this.startEvent&&O&&O(A,H),q&&q(A,H)},!af(i))return;this.dragSnapToOrigin=d,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=f,this.contextWindow=c||window;const y=Cs(i),g=ec(y,this.transformPagePoint),{point:x}=g,{timestamp:b}=ae;this.history=[{...x,timestamp:b}];const{onSessionStart:S}=r;S&&S(i,nc(g,this.history)),this.removeListeners=Ms(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},d={x:c.x-r.x,y:c.y-r.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.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(),$n(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>bn(i)));)r--;if(!o)return{x:0,y:0};const d=He(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}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)),Ie(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 d=b=>{r?(this.stopAnimation(),this.snapToCursor(Cs(b).point)):this.pauseAnimation()},f=(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(_=>{let H=this.getAxisMotionValue(_).get()||0;if(We.test(H)){const{projection:B}=this.visualElement;if(B&&B.layout){const X=B.layout.layoutBox[_];X&&(H=ue(X)*(parseFloat(H)/100))}}this.originPoint[_]=H}),O&&Ct.update(()=>O(b,S),!1,!0),bc(this.visualElement,"transform");const{animationState:q}=this.visualElement;q&&q.setActive("whileDrag",!0)},p=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:A,dragDirectionLock:M,onDirectionLock:O,onDrag:q}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:_}=S;if(M&&this.currentDirection===null){this.currentDirection=HA(_),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",S.point,_),this.updateAxis("y",S.point,_),this.visualElement.render(),q&&Ct.update(()=>q(b,S),!1,!0)},y=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>Le(b=>this.getAnimationState(b)==="paused"&&this.getAxisMotionValue(b).animation?.play()),{dragSnapToOrigin:x}=this.getProps();this.panSession=new Dg(i,{onSessionStart:d,onStart:f,onMove:p,onSessionEnd:y,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:o,contextWindow:wg(this.visualElement),element:this.visualElement.current})}stop(i,r){const o=i||this.latestPointerEvent,c=r||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:f}=c;this.startAnimation(f);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||!Il(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+o[i];this.constraints&&this.constraints[i]&&(f=RA(f,this.constraints[i],this.elastic[i])),d.set(f)}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(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=VA(o.layoutBox[d],this.constraints[d]))})}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 d=YS(o,c.root,this.visualElement.getTransformPagePoint());let f=OA(c.layout.layoutBox,d);if(r){const p=r(HS(f));this.hasMutatedConstraints=!!p,p&&(f=Py(p))}return f}startAnimation(i){const{drag:r,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),y=this.constraints||{},g=Le(x=>{if(!Il(x,r,this.currentDirection))return;let b=y&&y[x]||{};f&&(b={min:0,max:0});const S=c?200:1e6,A=c?40:1e7,M={type:"inertia",velocity:o?i[x]:0,bounceStiffness:S,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(x,M)});return Promise.all(g).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(!Il(r,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(r);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[r],y=d.get()||0;d.set(i[r]-Vt(f,p,.5)+y)}})}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(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const y=p.get();c[f]=_A({min:y,max:y},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Le(f=>{if(!Il(f,i,null))return;const p=this.getAxisMotionValue(f),{min:y,max:g}=this.constraints[f];p.set(Vt(y,g,c[f]))})}addListeners(){if(!this.visualElement.current)return;BA.set(this.visualElement,this);const i=this.visualElement.current,r=xs(i,"pointerdown",y=>{const{drag:g,dragListener:x=!0}=this.getProps(),b=y.target,S=b!==i&&MS(b);g&&x&&!S&&this.start(y)}),o=()=>{const{dragConstraints:y}=this.getProps();ps(y)&&y.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Ct.read(o);const f=Ns(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",(({delta:y,hasLayoutChanged:g})=>{this.isDragging&&g&&(Le(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=y[x].translate,b.set(b.get()+y[x].translate))}),this.visualElement.render())}));return()=>{f(),r(),d(),p&&p()}}getProps(){const i=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=wc,dragMomentum:p=!0}=i;return{...i,drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:p}}}function Il(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 Wn{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 Wn{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:(d,f)=>{delete this.session,c&&Ct.postRender(()=>c(d,f))}}}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:d}=i;d&&(r.group&&r.group.add(d),o&&o.register&&c&&o.register(d),ic&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ar.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:r,visualElement:o,drag:c,isPresent:d}=this.props,{projection:f}=o;return f&&(f.isPresent=d,i.layoutDependency!==r&&f.setOptions({...f.options,layoutDependency:r}),ic=!0,c||i.layoutDependency!==r||r===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Ct.postRender(()=>{const p=f.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,d=o[c];d&&Ct.postRender(()=>d(i,Cs(i)))}class XA extends Wn{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 Wn{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=Ms(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),d=o[c];d&&Ct.postRender(()=>d(i,Cs(i)))}class QA extends Wn{mount(){const{current:i}=this.node;i&&(this.unmount=DS(i,(r,o)=>(H0(this.node,o,"Start"),(c,{success:d})=>H0(this.node,c,d?"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 Wn{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:d}=i,f={root:r?r.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:PA[c]},p=y=>{const{isIntersecting:g}=y;if(this.isInView===g||(this.isInView=g,d&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),S=g?x:b;S&&S(y)};return $A(this.node.current,f,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},Pe=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 xn(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),d=Math.floor(c/6e4);if(d<1)return"<1m";if(d<60)return`${d}m`;const f=Math.floor(d/60),p=d%60;return p===0?`${f}h`:`${f}h ${p}m`}function zg(a){const i=a.toLowerCase(),r=i.match(/(opus|sonnet|haiku)-(\d+)(?:-(\d+))?(?:-\d{8})?/);if(r){const[,f,p,y]=r;return y&&y.length<=2?`${f}-${p}.${y}`:`${f}-${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 f=i.match(/grok[\w-]*/);return(f?f[0]:"grok").replace(/-\d{8}$/,"")}const o=a.split("/"),d=o[o.length-1].replace(/-\d{8}$/,"");return d.length>16?`${d.slice(0,15)}…`:d}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),d=()=>{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"})}},f=()=>{if(i.type==="tool-call")switch(i.state){case"pending":return m.jsx(Es,{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(sr,{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"]})]})}},[y,g]=C.useState(!1),x=()=>{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:()=>g(!y),className:"flex items-center gap-1 text-xs text-gray-500 hover:text-gray-400 transition-colors",children:[y?m.jsx(Fn,{className:"w-3 h-3"}):m.jsx(ir,{className:"w-3 h-3"}),m.jsx("span",{children:"Advanced"})]}),m.jsx(dr,{children:y&&m.jsx(Pe.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:xn(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:d()}),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:[f(),b&&(r?m.jsx(Fn,{className:"w-3 h-3 text-gray-500"}):m.jsx(ir,{className:"w-3 h-3 text-gray-500"}))]})]}),m.jsx(dr,{children:r&&m.jsx(Pe.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:x()})})})]})});function r3({burst:a}){const[i,r]=C.useState(!1),o=qe(a.agentName),c=Object.entries(a.toolBreakdown).map(([p,y])=>`${p} ×${y}`).join(", "),d=a.errorCount>0,f=a.pendingCount>0;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:xn(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 text-sm flex items-center gap-2",children:[m.jsx("span",{className:"font-mono text-xs opacity-90",style:{color:o},children:a.agentName}),m.jsx("span",{className:"text-text-secondary text-xs truncate",children:c})]}),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"]}),d&&m.jsx(js,{className:"w-3 h-3 text-red-500"}),f&&m.jsx(Es,{className:"w-3 h-3 animate-spin text-accent"}),i?m.jsx(Fn,{className:"w-3 h-3 text-gray-500"}):m.jsx(ir,{className:"w-3 h-3 text-gray-500"})]})]}),m.jsx(dr,{children:i&&m.jsx(Pe.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(p=>m.jsx(l3,{item:p},p.id))})})})]})}function o3({entry:a}){const{item:i}=a;return i.type==="tool-call"&&i.state==="error"?m.jsxs("div",{className:"flex items-center gap-3 p-3 bg-red-500/5 border-b border-border/50 border-l-2 border-l-red-500","data-testid":"milestone-error",children:[m.jsx("span",{className:"text-xs text-gray-600 font-mono shrink-0 w-16",children:xn(i.timestamp)}),m.jsx(js,{className:"w-4 h-4 text-red-500 shrink-0"}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"text-sm text-red-200 font-medium",children:["Tool Error: ",i.toolName]}),m.jsx("div",{className:"text-xs text-red-300/70 font-mono truncate",children:i.error||"Unknown error"})]})]}):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:xn(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:xn(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 f=new Map;return a.forEach(p=>{const y=p.type==="burst"?p.agentName:p.item.agentName;f.has(y)||f.set(y,[]),f.get(y).push(p)}),f},[a]),c=C.useMemo(()=>Array.from(o.keys()).sort((p,y)=>{const g=lc(a,p),x=lc(a,y),b=g==="active"?0:1,S=x==="active"?0:1;if(b!==S)return b-S;const A=o.get(p)?.length??0,M=o.get(y)?.length??0;return A!==M?M-A:p.localeCompare(y)}),[a,o]),d=f=>{r(p=>{const y=new Set(p);return y.has(f)?y.delete(f):y.add(f),y})};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(f=>{const p=qe(f),y=lc(a,f),g=o.get(f)||[],x=y==="completed",b=y==="error",S=g.length,A=u3(S),M=S<=1&&!i.has(f);return m.jsxs(Pe.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]} ${x?"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 ${x?"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 ${x?"opacity-40":""}`,style:{backgroundColor:p}}),m.jsx("span",{className:`text-xs font-mono font-semibold truncate ${x?"text-text-secondary/60":""}`,style:{color:x?void 0:p},children:f}),S>0&&m.jsx("span",{className:"text-[10px] text-text-secondary/50 ml-auto shrink-0",children:S}),x&&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:()=>d(f),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(ir,{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:g.map((O,q)=>{if(O.type==="burst"){const B=O;return m.jsx(Pe.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:q*.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:xn(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(js,{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(Es,{className:"w-2.5 h-2.5 animate-spin"}),B.pendingCount," pending"]})]})]})},O.id)}const H=O.item;return H.type==="agent-spawn"?m.jsx(Pe.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:q*.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:xn(H.timestamp)}),m.jsx("span",{className:"text-text-secondary",children:"→"}),m.jsx("span",{className:"font-mono font-semibold truncate",style:{color:qe(H.spawnedAgentName)},children:H.spawnedAgentName})]})},O.id):H.type==="agent-complete"?m.jsx(Pe.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:q*.05},className:`p-2 text-xs ${H.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:xn(H.timestamp)}),H.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:H.status}),H.durationMs!=null&&m.jsxs("span",{className:"text-gray-600 text-[10px] ml-auto shrink-0",children:[Math.round(H.durationMs/1e3),"s"]})]})},O.id):H.type==="tool-call"&&H.state==="error"?m.jsx(Pe.div,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},transition:{delay:q*.05},className:"p-2 text-xs bg-red-500/5 hover:bg-red-500/10 transition-colors border-l-2 border-l-red-500",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:xn(H.timestamp)}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsx("div",{className:"text-red-300 font-medium truncate",children:H.toolName}),m.jsx("div",{className:"text-red-300/70 text-[10px] truncate",children:H.error||"Error"})]})]})},O.id):null})})})]},f)})})})}const d3=C.memo(function({entries:i,totalTokens:r=0}){const[o,c]=C.useState(!1),[d,f]=C.useState(new Set),[p,y]=C.useState("stream"),[g,x]=C.useState(!1),b=C.useRef(""),[S,A]=C.useState(0),M=C.useRef(i.length),O=C.useRef(null),[q,_]=C.useState(!0),[H,B]=C.useState(!1),X=C.useMemo(()=>{const et=new Set;return i.forEach(ot=>{ot.type==="burst"?et.add(ot.agentName):ot.type==="milestone"&&et.add(ot.item.agentName)}),Array.from(et).sort()},[i]);C.useEffect(()=>{const et=X.join(",");b.current!==""&&b.current!==et&&f(new Set),b.current=et},[X]),C.useEffect(()=>{if(i.length>M.current){const et=i.length-M.current;A(ot=>ot+et),q&&O.current?setTimeout(()=>{O.current?.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})},0):q||B(!0)}M.current=i.length},[i,q]);const Z=()=>{if(O.current){const{scrollTop:et,scrollHeight:ot,clientHeight:V}=O.current,G=ot-et-V<50;_(G),B(!G&&S>0)}},at=()=>{O.current&&O.current.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})},I=()=>{const et=!o;c(et),et||A(0)},K=C.useMemo(()=>{let et=i;return g&&(et=et.filter(ot=>ot.type==="milestone")),d.size===0?et:et.filter(ot=>{const V=ot.type==="burst"?ot.agentName:ot.item.agentName;return d.has(V)})},[i,d,g]),it=et=>{const ot=new Set(d);ot.has(et)?ot.delete(et):ot.add(et),f(ot)},jt=()=>{f(new Set)},_t=o?"h-auto":"h-80 max-h-[50vh]",Ut=i.reduce((et,ot)=>ot.type==="burst"?et+ot.items.length:ot.type==="milestone"&&ot.item.type==="tool-call"?et+1:et,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:[d.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(Fn,{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:()=>y("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:()=>y("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:()=>x(!g),className:`text-text-secondary hover:text-white transition-colors ${g?"text-accent":""}`,"aria-label":"Toggle milestones only","aria-pressed":g,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(Fn,{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(et=>m.jsx("button",{type:"button",onClick:()=>it(et),"aria-pressed":d.has(et),className:`
|
|
18
|
-
text-[10px] px-2 py-0.5 rounded-full border transition-all
|
|
19
|
-
${d.has(et)?"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:d.has(et)?qe(et):"transparent",backgroundColor:d.has(et)?qe(et):void 0},children:et},et))]}),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(dr,{children:K.map((et,ot)=>{const V=ot%10*.05;return m.jsx(Pe.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0,transition:{delay:V}},exit:{opacity:0,y:10},transition:{duration:.2},children:et.type==="burst"?m.jsx(r3,{burst:et}):m.jsx(o3,{entry:et})},et.id)})}):m.jsx(f3,{entries:K}),H&&m.jsxs(Pe.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(Fn,{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),d=Math.floor(c/60);if(c<1)return"<1m";if(c<60)return`${c}m`;if(d<24)return`${d}h`;const f=Math.floor(d/24);return f<7?`${f}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:d}=a,f=d?`${o}?sessionId=${d}`:o,[p,y]=C.useState({data:null,loading:!0,error:null,lastUpdate:0,isReconnecting:!1,failedAttempts:0}),g=C.useRef(null),x=C.useRef(null),b=C.useRef(null),S=C.useRef(d),A=C.useRef(0);C.useEffect(()=>{S.current!==d&&(S.current=d,g.current=null,b.current&&(clearTimeout(b.current),b.current=null),A.current=0,y(O=>({...O,loading:!0,data:O.data?{...O.data,messages:[],activitySessions:[],sessionStats:null}:null,error:null,failedAttempts:0})))},[d]);const M=C.useCallback(async()=>{const O=S.current;x.current&&x.current.abort();const q=new AbortController;x.current=q;try{const _={};g.current&&(_["If-None-Match"]=g.current);const H=await fetch(f,{headers:_,signal:q.signal});if(S.current!==O)return;if(H.status===304){y(Z=>({...Z,loading:!1,lastUpdate:Date.now(),isReconnecting:!1,failedAttempts:0})),A.current=0;return}if(!H.ok)throw new Error(`HTTP ${H.status}: ${H.statusText}`);const B=H.headers.get("ETag");B&&(g.current=B);const X=await H.json();if(S.current!==O)return;y({data:X,loading:!1,error:null,lastUpdate:Date.now(),isReconnecting:!1,failedAttempts:0}),A.current=0}catch(_){if(_ instanceof Error&&_.name==="AbortError"||S.current!==O)return;const H=A.current+1;A.current=H;const B=H<c;if(y(X=>({...X,loading:!1,error:_ instanceof Error?_:new Error("Unknown error"),isReconnecting:B,failedAttempts:H})),B){const X=Math.min(1e3*Math.pow(2,H-1),1e4);b.current=setTimeout(()=>{M()},X)}}},[f,c]);return C.useEffect(()=>{if(!r)return;M();const O=setInterval(M,i);return()=>{clearInterval(O),x.current&&x.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,[d,f]=C.useState(!1),[p,y]=C.useState({data:null,loading:!0,error:null,lastUpdate:0,isReconnecting:!1,failedAttempts:0}),g=C.useRef(null),x=C.useRef(null),b=C.useRef(null),S=C.useRef(c),A=C.useRef(Date.now()),M=m3({enabled:i&&d,interval:o,apiUrl:"/api/poll",sessionId:c}),O=C.useCallback(async()=>{const q=c?`/api/poll?sessionId=${c}`:"/api/poll";try{const _=await fetch(q);if(!_.ok)throw new Error(`HTTP ${_.status}`);const H=await _.json();S.current===c&&y(B=>({...B,data:H,loading:!1,lastUpdate:Date.now(),error:null}))}catch(_){console.error("Failed to fetch data:",_)}},[c]);return C.useEffect(()=>{S.current!==c&&(S.current=c,y(q=>({...q,loading:!0,data:q.data?{...q.data,messages:[],activitySessions:[],sessionStats:null}:null})))},[c]),C.useEffect(()=>{const q=()=>{document.visibilityState==="visible"&&i&&(y(H=>({...H,isReconnecting:!0})),f(!1))},_=()=>{i&&(y(H=>({...H,isReconnecting:!0})),f(!1))};return document.addEventListener("visibilitychange",q),window.addEventListener("online",_),()=>{document.removeEventListener("visibilitychange",q),window.removeEventListener("online",_)}},[i]),C.useEffect(()=>{if(!i||!d){x.current&&(clearTimeout(x.current),x.current=null);return}const q=Math.min(3e4,2e3*Math.max(1,p.failedAttempts));return x.current=setTimeout(()=>{y(_=>({..._,isReconnecting:!0})),f(!1)},q),()=>{x.current&&(clearTimeout(x.current),x.current=null)}},[i,d,p.failedAttempts]),C.useEffect(()=>{if(!i||d){b.current&&(b.current.close(),b.current=null);return}O();const q=c?`${r}?sessionId=${c}`:r,_=new EventSource(q);b.current=_;const H=X=>{A.current=Date.now(),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{O()},100)};_.addEventListener("connected",()=>{y(X=>({...X,error:null,isReconnecting:!1,failedAttempts:0}))}),_.addEventListener("session-update",H),_.addEventListener("message-update",H),_.addEventListener("part-update",H),_.addEventListener("plan-update",H),_.addEventListener("heartbeat",()=>{}),_.onerror=()=>{_.close(),b.current=null,y(X=>({...X,error:new Error("SSE Connection Failed"),isReconnecting:!0,failedAttempts:X.failedAttempts+1})),f(!0)};const B=setInterval(()=>{Date.now()-A.current>45e3&&(_.close(),b.current=null,y(Z=>({...Z,error:new Error("SSE Connection Stale"),isReconnecting:!0,failedAttempts:Z.failedAttempts+1})),f(!0))},1e4);return()=>{clearInterval(B),g.current&&clearTimeout(g.current),x.current&&(clearTimeout(x.current),x.current=null),_.close(),b.current===_&&(b.current=null)}},[i,d,r,c,O]),d?M:p}function y3(a,i,r=[]){const[o,c]=C.useState(()=>typeof Notification>"u"?"denied":Notification.permission),d=C.useRef(null),f=C.useRef(new Map),p=C.useRef(i),y=async()=>{if(o!=="default")return o;if(typeof Notification>"u")return"denied";try{const g=await Notification.requestPermission();return c(g),g}catch{try{await new Promise(g=>{Notification.requestPermission(x=>{g(x)})}).then(g=>(c(g),g))}catch{return"denied"}return"denied"}};return C.useEffect(()=>{const g=[...a,...r].map(A=>({id:A.id,activityType:A.activityType,parentID:A.parentID,agent:A.agent||null}));if(p.current===!0&&i===!1){d.current=g,p.current=i;return}if(p.current=i,d.current===null){d.current=g;return}if(o!=="granted"){d.current=g;return}const x=new Map;for(const A of d.current)x.set(A.id,A);const b=new Map;for(const A of g)b.set(A.id,A);const S=Date.now();for(const[A,M]of b.entries()){const O=x.get(A);if(!O)continue;const q=f.current.get(A);q&&S-q<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}),f.current.set(A,S))}d.current=g},[a,r,i,o]),{permission:o,requestPermission:y,enabled:o==="granted"}}const _g=C.createContext(void 0);function g3({children:a,apiUrl:i,pollingInterval:r}){const[o,c]=C.useState(null),[d,f]=C.useState([]),{data:p,loading:y,error:g,lastUpdate:x,isReconnecting:b}=p3({apiUrl:i,pollingInterval:r,sessionId:o}),{permission:S,requestPermission:A}=y3(p?.sessions||[],b,p?.activitySessions||[]),[M,O]=C.useState(null),[q,_]=C.useState([]);C.useEffect(()=>{(async()=>{try{const Z=await fetch(`${i||""}/api/projects`);if(Z.ok){const at=await Z.json();_(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 H=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:q,selectedProjectId:M,loading:y,error:g,lastUpdate:x,isReconnecting:b,agentFilter:d,notificationPermission:S,requestNotificationPermission:A,setSelectedSessionId:c,setSelectedProjectId:O,setAgentFilter:f}),[p,o,q,M,y,g,x,b,d,S,A]);return m.jsx(_g.Provider,{value:H,children:a})}function Rs(){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}=Rs(),o=C.useMemo(()=>a.find(f=>f.id===i),[a,i]),c=C.useMemo(()=>{if(i)return null;let f=0,p=0,y=0,g=0;return a.forEach(x=>{x.status==="working"?f++:x.status==="idle"?p++:x.status==="waiting"?y++:g++}),{working:f,idle:p,waiting:y,completed:g}},[a,i]),d=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:d?.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:d?.duration}),m.jsx("span",{children:"·"}),m.jsx("span",{className:"truncate",children:d?.model})]}),d&&d.agentCount>0&&m.jsxs("span",{className:"font-mono bg-background px-1.5 rounded-sm",children:[d.agentCount," agent",d.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}=Rs(),{displayAgents:r,overflowCount:o,isSessionMode:c}=C.useMemo(()=>{let d=[];const f=!!i;f?d=a.filter(y=>y.id===i||y.parentID===i):d=a.filter(y=>y.status==="working"||y.status==="idle");const p=[...d].sort((y,g)=>{const x=y.status==="working"?2:y.status==="idle"?1:0,b=g.status==="working"?2:g.status==="idle"?1:0;return x!==b?b-x:(g.tokens||0)-(y.tokens||0)});return f?{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(d=>m.jsx(b3,{session:d},d.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}=Rs();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,d=c.find(p=>!p.completed),f=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:`${f}%`}})}),m.jsxs("span",{className:"text-xs font-mono text-text-secondary whitespace-nowrap",children:[i,"/",r," tasks"]})]}),d&&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:d.description,children:d.description})]}),!d&&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}=Rs(),[o,c]=C.useState(()=>q0(a));C.useEffect(()=>{const p=setInterval(()=>{c(q0(a))},1e3);return()=>clearInterval(p)},[a]);let d="bg-green-500",f="Connected";return r?(d="bg-red-500",f="Error"):i&&(d="bg-amber-500",f="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 ${d}`}),m.jsx("span",{children:f}),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(Es,{className:"w-4 h-4 text-accent animate-spin","data-testid":"session-status-working"}):a==="idle"?m.jsx(sr,{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(sr,{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:d=()=>{}})=>{const[f,p]=C.useState(!1),g=[...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(!f),"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(Fn,{className:`w-4 h-4 shrink-0 transition-transform ${f?"rotate-180":""}`})]}),f&&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:()=>{d(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:()=>{d(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:g.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"}):g.map(A=>{const M=A.id===i,O=A.status||"completed",q=A.activityType;let _="border-l-transparent";return M||O==="working"?_="border-l-accent":O==="idle"?_="border-l-success":O==="waiting"&&q==="waiting-user"?_="border-l-transparent animate-attention":O==="completed"&&(_="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
|
-
${_}
|
|
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:q})}),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 ${q==="waiting-user"?"text-warning font-medium":"text-text-secondary"}`,title:A.currentAction||"",children:q==="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),d=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
|
-
${d?"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 d=i.get(c.id);c.parentID&&i.has(c.parentID)?i.get(c.parentID).children.push(d):r.push(d)});const o=c=>{c.sort((d,f)=>{const p=new Date(d.session.updatedAt).getTime();return new Date(f.session.updatedAt).getTime()-p}),c.forEach(d=>{o(d.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(Es,{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(sr,{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 d=String(r[c]);return d.length>i?"..."+d.slice(-i):d}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:d}=i,f=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":""}`:f==="completed"&&c.parentID&&c.title&&(p=c.title));const y=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 ${f==="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:f}),m.jsx(C3,{activityType:c.activityType,pendingCount:c.pendingToolCount,patchCount:c.patchFilesCount}),m.jsx(M3,{agent:c.agent,status:f}),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}),y&&!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:y.toolName}),y.toolArg&&m.jsx("span",{className:"text-gray-500 truncate",children:y.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"]})]})]})]})]}),d.map((g,x)=>m.jsx(a,{node:g,depth:r+1,isLast:x===d.length-1},g.session.id))]})}),_3=({sessions:a,loading:i})=>{const r=C.useRef(null),[o,c]=C.useState(!1),d=C.useMemo(()=>a.some(y=>y.status==="working"),[a]);C.useEffect(()=>{if(a.length>0){c(!0);const y=setTimeout(()=>c(!1),300);return()=>clearTimeout(y)}},[a]);const f=a[0]?.id;C.useEffect(()=>{r.current&&f&&r.current.scrollTo({top:0,behavior:"smooth"})},[f]);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"}),d&&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((y,g)=>m.jsx(O3,{node:y,depth:0,isLast:g===p.length-1},y.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),d=C.useRef(null),f=C.useRef(null);if(C.useEffect(()=>{const x=b=>{d.current&&!d.current.contains(b.target)&&r(!1)};return i&&document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[i]),C.useEffect(()=>{if(a?.totalTokens!==void 0&&f.current!==null&&a.totalTokens!==f.current){c(!0);const x=setTimeout(()=>c(!1),600);return()=>clearTimeout(x)}f.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)}`:"—",y=Cc(a.totalTokens),g=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:d,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:y})]}),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:g}),m.jsx(Fn,{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:[g," active"]})]}),m.jsx("div",{className:"max-h-64 overflow-y-auto py-1",children:a.modelBreakdown.map(x=>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:x.modelID,children:x.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(x.tokens)})]},x.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 d=r.get(c.parentID);i.push({id:`spawn-${c.id}`,type:"agent-spawn",timestamp:c.createdAt,agentName:d.agent,spawnedAgentName:c.agent})}if(c.toolCalls&&c.toolCalls.length>0&&c.toolCalls.forEach(d=>{o.has(d.id)||(o.add(d.id),i.push({id:d.id,type:"tool-call",timestamp:new Date(d.timestamp),agentName:d.agentName,toolName:d.name,state:d.state,summary:d.summary,input:d.input}))}),c.status==="completed"){const d=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:d})}}),i.sort((c,d)=>new Date(c.timestamp).getTime()-new Date(d.timestamp).getTime()),i}function L3(a){return a.type==="agent-spawn"||a.type==="agent-complete"?!0:a.type==="tool-call"&&a.state==="error"}function H3(a){const i=a[0],r=a[a.length-1],o={};let c=0,d=0;for(const f of a)o[f.toolName]=(o[f.toolName]??0)+1,f.state==="pending"&&(c+=1),f.state==="error"&&(d+=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:d}}function k3(a){const i=[];let r=[];const o=[...a].sort((d,f)=>new Date(d.timestamp).getTime()-new Date(f.timestamp).getTime()),c=()=>{r.length!==0&&(i.push(H3(r)),r=[])};for(const d of o){if(L3(d)){c();const y={id:d.id,type:"milestone",item:d};i.push(y);continue}if(d.type!=="tool-call")continue;const f=r[0]?.agentName;r.length>0&&f!==d.agentName&&c(),r.push(d)}return c(),i}function q3(a){const{sessions:i,selectedId:r,onSelect:o}=a,c=C.useCallback(d=>{if(!(document.activeElement?.tagName==="INPUT"||document.activeElement?.tagName==="TEXTAREA")){if(d.key==="Escape"){o(null);return}if(d.key==="j"||d.key==="ArrowDown"||d.key==="k"||d.key==="ArrowUp"){const f=[...i].sort((y,g)=>{const x=new Date(g.updatedAt).getTime()-new Date(y.updatedAt).getTime();return x!==0?x:y.id.localeCompare(g.id)}),p=f.findIndex(y=>y.id===r);d.key==="j"||d.key==="ArrowDown"?p===-1?f.length>0&&o(f[0].id):p<f.length-1&&o(f[p+1].id):(d.key==="k"||d.key==="ArrowUp")&&p>0&&o(f[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:d,projects:f,selectedProjectId:p,setSelectedProjectId:y,loading:g,error:x,isReconnecting:b,notificationPermission:S,requestNotificationPermission:A}=Rs();q3({sessions:a,selectedId:c,onSelect:d});const M=C.useMemo(()=>k3(B3(o)),[o]);return x&&!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(js,{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:x.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:[g&&a.length===0?m.jsx(E3,{}):m.jsx(N3,{sessions:a,selectedId:c,onSelect:d,projects:f,selectedProjectId:p,onProjectSelect:y}),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:g})})]}),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(js,{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,{})})}));
|