fluxy-bot 0.7.8 → 0.8.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/dist-fluxy/assets/{fluxy-Bcd5tJrt.js → fluxy-BL_LI7ag.js} +10 -10
- package/dist-fluxy/assets/globals-BFIvNq55.css +1 -0
- package/dist-fluxy/assets/globals-C5RAI3N1.js +18 -0
- package/dist-fluxy/assets/{onboard-BSlNrxVH.js → onboard-B5MmiDn8.js} +1 -1
- package/dist-fluxy/fluxy.html +3 -3
- package/dist-fluxy/onboard.html +3 -3
- package/package.json +1 -1
- package/shared/relay.ts +21 -0
- package/supervisor/chat/OnboardWizard.tsx +367 -32
- package/supervisor/chat/fluxy-main.tsx +10 -0
- package/supervisor/index.ts +101 -0
- package/worker/index.ts +46 -1
- package/dist-fluxy/assets/globals-Bs_wR6rP.css +0 -1
- package/dist-fluxy/assets/globals-CMrTFJSE.js +0 -18
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function o(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 u(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function u0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Cc={exports:{}},ms={};var Op;function $x(){if(Op)return ms;Op=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(u,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+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:i,type:u,key:h,ref:c!==void 0?c:null,props:d}}return ms.Fragment=l,ms.jsx=o,ms.jsxs=o,ms}var zp;function Ix(){return zp||(zp=1,Cc.exports=$x()),Cc.exports}var v=Ix(),Mc={exports:{}},rt={};var Rp;function t1(){if(Rp)return rt;Rp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function D(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,X={};function q(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}q.prototype.isReactComponent={},q.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,U,"setState")},q.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function K(){}K.prototype=q.prototype;function G(E,U,Q){this.props=E,this.context=U,this.refs=X,this.updater=Q||V}var F=G.prototype=new K;F.constructor=G,Y(F,q.prototype),F.isPureReactComponent=!0;var Z=Array.isArray;function lt(){}var J={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function st(E,U,Q){var W=Q.ref;return{$$typeof:i,type:E,key:U,ref:W!==void 0?W:null,props:Q}}function bt(E,U){return st(E.type,U,E.props)}function wt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function Bt(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return U[Q]})}var ie=/\/+/g;function vt(E,U){return typeof E=="object"&&E!==null&&E.key!=null?Bt(""+E.key):U.toString(36)}function $t(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(lt,lt):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function R(E,U,Q,W,ot){var at=typeof E;(at==="undefined"||at==="boolean")&&(E=null);var dt=!1;if(E===null)dt=!0;else switch(at){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(E.$$typeof){case i:case l:dt=!0;break;case x:return dt=E._init,R(dt(E._payload),U,Q,W,ot)}}if(dt)return ot=ot(E),dt=W===""?"."+vt(E,0):W,Z(ot)?(Q="",dt!=null&&(Q=dt.replace(ie,"$&/")+"/"),R(ot,U,Q,"",function(ln){return ln})):ot!=null&&(wt(ot)&&(ot=bt(ot,Q+(ot.key==null||E&&E.key===ot.key?"":(""+ot.key).replace(ie,"$&/")+"/")+dt)),U.push(ot)),1;dt=0;var Kt=W===""?".":W+":";if(Z(E))for(var Ot=0;Ot<E.length;Ot++)W=E[Ot],at=Kt+vt(W,Ot),dt+=R(W,U,Q,at,ot);else if(Ot=D(E),typeof Ot=="function")for(E=Ot.call(E),Ot=0;!(W=E.next()).done;)W=W.value,at=Kt+vt(W,Ot++),dt+=R(W,U,Q,at,ot);else if(at==="object"){if(typeof E.then=="function")return R($t(E),U,Q,W,ot);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return dt}function H(E,U,Q){if(E==null)return E;var W=[],ot=0;return R(E,W,"","",function(at){return U.call(Q,at,ot++)}),W}function I(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var ut=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ht={map:H,forEach:function(E,U,Q){H(E,function(){U.apply(this,arguments)},Q)},count:function(E){var U=0;return H(E,function(){U++}),U},toArray:function(E){return H(E,function(U){return U})||[]},only:function(E){if(!wt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return rt.Activity=b,rt.Children=ht,rt.Component=q,rt.Fragment=o,rt.Profiler=c,rt.PureComponent=G,rt.StrictMode=u,rt.Suspense=g,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,rt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},rt.cache=function(E){return function(){return E.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(E,U,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=Y({},E.props),ot=E.key;if(U!=null)for(at in U.key!==void 0&&(ot=""+U.key),U)!P.call(U,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&U.ref===void 0||(W[at]=U[at]);var at=arguments.length-2;if(at===1)W.children=Q;else if(1<at){for(var dt=Array(at),Kt=0;Kt<at;Kt++)dt[Kt]=arguments[Kt+2];W.children=dt}return st(E.type,ot,W)},rt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},rt.createElement=function(E,U,Q){var W,ot={},at=null;if(U!=null)for(W in U.key!==void 0&&(at=""+U.key),U)P.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ot[W]=U[W]);var dt=arguments.length-2;if(dt===1)ot.children=Q;else if(1<dt){for(var Kt=Array(dt),Ot=0;Ot<dt;Ot++)Kt[Ot]=arguments[Ot+2];ot.children=Kt}if(E&&E.defaultProps)for(W in dt=E.defaultProps,dt)ot[W]===void 0&&(ot[W]=dt[W]);return st(E,at,ot)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(E){return{$$typeof:p,render:E}},rt.isValidElement=wt,rt.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:I}},rt.memo=function(E,U){return{$$typeof:m,type:E,compare:U===void 0?null:U}},rt.startTransition=function(E){var U=J.T,Q={};J.T=Q;try{var W=E(),ot=J.S;ot!==null&&ot(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(lt,ut)}catch(at){ut(at)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),J.T=U}},rt.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},rt.use=function(E){return J.H.use(E)},rt.useActionState=function(E,U,Q){return J.H.useActionState(E,U,Q)},rt.useCallback=function(E,U){return J.H.useCallback(E,U)},rt.useContext=function(E){return J.H.useContext(E)},rt.useDebugValue=function(){},rt.useDeferredValue=function(E,U){return J.H.useDeferredValue(E,U)},rt.useEffect=function(E,U){return J.H.useEffect(E,U)},rt.useEffectEvent=function(E){return J.H.useEffectEvent(E)},rt.useId=function(){return J.H.useId()},rt.useImperativeHandle=function(E,U,Q){return J.H.useImperativeHandle(E,U,Q)},rt.useInsertionEffect=function(E,U){return J.H.useInsertionEffect(E,U)},rt.useLayoutEffect=function(E,U){return J.H.useLayoutEffect(E,U)},rt.useMemo=function(E,U){return J.H.useMemo(E,U)},rt.useOptimistic=function(E,U){return J.H.useOptimistic(E,U)},rt.useReducer=function(E,U,Q){return J.H.useReducer(E,U,Q)},rt.useRef=function(E){return J.H.useRef(E)},rt.useState=function(E){return J.H.useState(E)},rt.useSyncExternalStore=function(E,U,Q){return J.H.useSyncExternalStore(E,U,Q)},rt.useTransition=function(){return J.H.useTransition()},rt.version="19.2.4",rt}var Vp;function Af(){return Vp||(Vp=1,Mc.exports=t1()),Mc.exports}var z=Af();const OA=u0(z);var jc={exports:{}},ps={},Nc={exports:{}},Dc={};var _p;function e1(){return _p||(_p=1,(function(i){function l(R,H){var I=R.length;R.push(H);t:for(;0<I;){var ut=I-1>>>1,ht=R[ut];if(0<c(ht,H))R[ut]=H,R[I]=ht,I=ut;else break t}}function o(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var H=R[0],I=R.pop();if(I!==H){R[0]=I;t:for(var ut=0,ht=R.length,E=ht>>>1;ut<E;){var U=2*(ut+1)-1,Q=R[U],W=U+1,ot=R[W];if(0>c(Q,I))W<ht&&0>c(ot,Q)?(R[ut]=ot,R[W]=I,ut=W):(R[ut]=Q,R[U]=I,ut=U);else if(W<ht&&0>c(ot,I))R[ut]=ot,R[W]=I,ut=W;else break t}}return H}function c(R,H){var I=R.sortIndex-H.sortIndex;return I!==0?I:R.id-H.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();i.unstable_now=function(){return h.now()-p}}var g=[],m=[],x=1,b=null,T=3,D=!1,V=!1,Y=!1,X=!1,q=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function F(R){for(var H=o(m);H!==null;){if(H.callback===null)u(m);else if(H.startTime<=R)u(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=o(m)}}function Z(R){if(Y=!1,F(R),!V)if(o(g)!==null)V=!0,lt||(lt=!0,Bt());else{var H=o(m);H!==null&&$t(Z,H.startTime-R)}}var lt=!1,J=-1,P=5,st=-1;function bt(){return X?!0:!(i.unstable_now()-st<P)}function wt(){if(X=!1,lt){var R=i.unstable_now();st=R;var H=!0;try{t:{V=!1,Y&&(Y=!1,K(J),J=-1),D=!0;var I=T;try{e:{for(F(R),b=o(g);b!==null&&!(b.expirationTime>R&&bt());){var ut=b.callback;if(typeof ut=="function"){b.callback=null,T=b.priorityLevel;var ht=ut(b.expirationTime<=R);if(R=i.unstable_now(),typeof ht=="function"){b.callback=ht,F(R),H=!0;break e}b===o(g)&&u(g),F(R)}else u(g);b=o(g)}if(b!==null)H=!0;else{var E=o(m);E!==null&&$t(Z,E.startTime-R),H=!1}}break t}finally{b=null,T=I,D=!1}H=void 0}}finally{H?Bt():lt=!1}}}var Bt;if(typeof G=="function")Bt=function(){G(wt)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,vt=ie.port2;ie.port1.onmessage=wt,Bt=function(){vt.postMessage(null)}}else Bt=function(){q(wt,0)};function $t(R,H){J=q(function(){R(i.unstable_now())},H)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(R){switch(T){case 1:case 2:case 3:var H=3;break;default:H=T}var I=T;T=H;try{return R()}finally{T=I}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var I=T;T=R;try{return H()}finally{T=I}},i.unstable_scheduleCallback=function(R,H,I){var ut=i.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ut+I:ut):I=ut,R){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=I+ht,R={id:x++,callback:H,priorityLevel:R,startTime:I,expirationTime:ht,sortIndex:-1},I>ut?(R.sortIndex=I,l(m,R),o(g)===null&&R===o(m)&&(Y?(K(J),J=-1):Y=!0,$t(Z,I-ut))):(R.sortIndex=ht,l(g,R),V||D||(V=!0,lt||(lt=!0,Bt()))),R},i.unstable_shouldYield=bt,i.unstable_wrapCallback=function(R){var H=T;return function(){var I=T;T=H;try{return R.apply(this,arguments)}finally{T=I}}}})(Dc)),Dc}var Up;function n1(){return Up||(Up=1,Nc.exports=e1()),Nc.exports}var Oc={exports:{}},me={};var Bp;function a1(){if(Bp)return me;Bp=1;var i=Af();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var u={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,m,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:m,implementation:x}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,me.createPortal=function(g,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,x)},me.flushSync=function(g){var m=h.T,x=u.p;try{if(h.T=null,u.p=2,g)return g()}finally{h.T=m,u.p=x,u.d.f()}},me.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(g,m))},me.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},me.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin),T=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:D}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:T,fetchPriority:D,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=p(m.as,m.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(g)},me.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,b=p(x,m.crossOrigin);u.d.L(g,x,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(g,m){if(typeof g=="string")if(m){var x=p(m.as,m.crossOrigin);u.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(g)},me.requestFormReset=function(g){u.d.r(g)},me.unstable_batchedUpdates=function(g,m){return g(m)},me.useFormState=function(g,m,x){return h.H.useFormState(g,m,x)},me.useFormStatus=function(){return h.H.useHostTransitionStatus()},me.version="19.2.4",me}var Lp;function i1(){if(Lp)return Oc.exports;Lp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),Oc.exports=a1(),Oc.exports}var Hp;function l1(){if(Hp)return ps;Hp=1;var i=n1(),l=Af(),o=i1();function u(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 h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(d(t)!==t)throw Error(u(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var n=t,a=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===a)return g(s),e;r=r.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=r;else{for(var f=!1,y=s.child;y;){if(y===n){f=!0,n=s,a=r;break}if(y===a){f=!0,a=s,n=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===n){f=!0,n=r,a=s;break}if(y===a){f=!0,a=r,n=s;break}y=y.sibling}if(!f)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(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,T=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),G=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),st=Symbol.for("react.activity"),bt=Symbol.for("react.memo_cache_sentinel"),wt=Symbol.iterator;function Bt(t){return t===null||typeof t!="object"?null:(t=wt&&t[wt]||t["@@iterator"],typeof t=="function"?t:null)}var ie=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case q:return"Profiler";case X:return"StrictMode";case Z:return"Suspense";case lt:return"SuspenseList";case st:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case G:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case F:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var $t=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ut=[],ht=-1;function E(t){return{current:t}}function U(t){0>ht||(t.current=ut[ht],ut[ht]=null,ht--)}function Q(t,e){ht++,ut[ht]=t.current,t.current=e}var W=E(null),ot=E(null),at=E(null),dt=E(null);function Kt(t,e){switch(Q(at,e),Q(ot,t),Q(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?tp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=tp(e),t=ep(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(W),Q(W,t)}function Ot(){U(W),U(ot),U(at)}function ln(t){t.memoizedState!==null&&Q(dt,t);var e=W.current,n=ep(e,t.type);e!==n&&(Q(ot,t),Q(W,n))}function le(t){ot.current===t&&(U(W),U(ot)),dt.current===t&&(U(dt),cs._currentValue=I)}var ml,yi;function Cn(t){if(ml===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ml=e&&e[1]||"",yi=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+ml+t+yi}var pl=!1;function yl(t,e){if(!t||pl)return"";pl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(O){var N=O}Reflect.construct(t,[],L)}else{try{L.call()}catch(O){N=O}t.call(L.prototype)}}else{try{throw Error()}catch(O){N=O}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(O){if(O&&N&&typeof O.stack=="string")return[O.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var S=f.split(`
|
|
4
|
-
`),j=y.split(`
|
|
5
|
-
`);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<j.length&&!j[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===j.length)for(a=S.length-1,s=j.length-1;1<=a&&0<=s&&S[a]!==j[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==j[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==j[s]){var _=`
|
|
6
|
-
`+S[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=s);break}}}finally{pl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Cn(n):""}function Xe(t,e){switch(t.tag){case 26:case 27:case 5:return Cn(t.type);case 16:return Cn("Lazy");case 13:return t.child!==e&&e!==null?Cn("Suspense Fallback"):Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 15:return yl(t.type,!1);case 11:return yl(t.type.render,!1);case 1:return yl(t.type,!0);case 31:return Cn("Activity");default:return""}}function na(t){try{var e="",n=null;do e+=Xe(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var ze=Object.prototype.hasOwnProperty,gi=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,gl=i.unstable_shouldYield,zs=i.unstable_requestPaint,he=i.unstable_now,Tu=i.unstable_getCurrentPriorityLevel,Rs=i.unstable_ImmediatePriority,de=i.unstable_UserBlockingPriority,Ha=i.unstable_NormalPriority,vi=i.unstable_LowPriority,vl=i.unstable_IdlePriority,Vs=i.log,xi=i.unstable_setDisableYieldValue,se=null,ye=null;function sn(t){if(typeof Vs=="function"&&xi(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(se,t)}catch{}}var ge=Math.clz32?Math.clz32:_s,aa=Math.log,Au=Math.LN2;function _s(t){return t>>>=0,t===0?32:31-(aa(t)/Au|0)|0}var Mn=256,jn=262144,Ya=4194304;function yn(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 qa(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var s=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=a&134217727;return y!==0?(a=y&~r,a!==0?s=yn(a):(f&=y,f!==0?s=yn(f):n||(n=y&~t,n!==0&&(s=yn(n))))):(y=a&~r,y!==0?s=yn(y):f!==0?s=yn(f):n||(n=a&~t,n!==0&&(s=yn(n)))),s===0?0:e!==0&&e!==s&&(e&r)===0&&(r=s&-s,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:s}function Ae(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Us(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 Qe(){var t=Ya;return Ya<<=1,(Ya&62914560)===0&&(Ya=4194304),t}function bi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ee(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function gn(t,e,n,a,s,r){var f=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 y=t.entanglements,S=t.expirationTimes,j=t.hiddenUpdates;for(n=f&~n;0<n;){var _=31-ge(n),L=1<<_;y[_]=0,S[_]=-1;var N=j[_];if(N!==null)for(j[_]=null,_=0;_<N.length;_++){var O=N[_];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&Si(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function Si(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ge(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function ia(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ge(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function Ga(t,e){var n=e&-e;return n=(n&42)!==0?1:Nn(n),(n&(t.suspendedLanes|e))!==0?0:n}function Nn(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 Ti(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function la(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Ep(t.type))}function Xa(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var ke=Math.random().toString(36).slice(2),Lt="__reactFiber$"+ke,ne="__reactProps$"+ke,Dn="__reactContainer$"+ke,Ai="__reactEvents$"+ke,Ei="__reactListeners$"+ke,vn="__reactHandles$"+ke,xl="__reactResources$"+ke,On="__reactMarker$"+ke;function Ka(t){delete t[Lt],delete t[ne],delete t[Ai],delete t[Ei],delete t[vn]}function zn(t){var e=t[Lt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Dn]||n[Lt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=up(t);t!==null;){if(n=t[Lt])return n;t=up(t)}return e}t=n,n=t.parentNode}return null}function sa(t){if(t=t[Lt]||t[Dn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Rn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function on(t){var e=t[xl];return e||(e=t[xl]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Yt(t){t[On]=!0}var bl=new Set,Qa={};function Vn(t,e){oa(t,e),oa(t+"Capture",e)}function oa(t,e){for(Qa[t]=e,t=0;t<e.length;t++)bl.add(e[t])}var ua=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]*$"),_n={},Sl={};function Bs(t){return ze.call(Sl,t)?!0:ze.call(_n,t)?!1:ua.test(t)?Sl[t]=!0:(_n[t]=!0,!1)}function ra(t,e,n){if(Bs(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ze(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 Re(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}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 Ls(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Tl(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ka(t){if(!t._valueTracker){var e=Ls(t)?"checked":"value";t._valueTracker=Tl(t,e,""+t[e])}}function Hs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Ls(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function wi(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 Eu=/[\n"\\]/g;function ve(t){return t.replace(Eu,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Al(t,e,n,a,s,r,f,y){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+we(e)):t.value!==""+we(e)&&(t.value=""+we(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?wl(t,f,we(e)):n!=null?wl(t,f,we(n)):a!=null&&t.removeAttribute("value"),s==null&&r!=null&&(t.defaultChecked=!!r),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+we(y):t.removeAttribute("name")}function El(t,e,n,a,s,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){ka(t);return}n=n!=null?""+we(n):"",e=e!=null?""+we(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=y?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ka(t)}function wl(t,e,n){e==="number"&&wi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ca(t,e,n,a){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&a&&(t[n].defaultSelected=!0)}else{for(n=""+we(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,a&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Ys(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 qs(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(u(92));if($t(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=we(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),ka(t)}function Un(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gs=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 Xs(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||Gs.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Bn(t,e,n){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var s in e)a=e[s],e.hasOwnProperty(s)&&n[s]!==a&&Xs(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Xs(t,r,e[r])}function Ve(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 wu=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"]]),Cl=/^[\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 Ci(t){return Cl.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function It(){}var Mi=null;function M(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var k=null,At=null;function un(t){var e=sa(t);if(e&&(t=e.stateNode)){var n=t[ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(Al(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="'+ve(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[ne]||null;if(!s)throw Error(u(90));Al(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Hs(a)}break t;case"textarea":Ys(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ca(t,!!n.multiple,e,!1)}}}var fa=!1;function Za(t,e,n){if(fa)return t(e,n);fa=!0;try{var a=t(e);return a}finally{if(fa=!1,(k!==null||At!==null)&&(Oo(),k&&(e=k,t=At,At=k=null,un(e),t)))for(e=0;e<t.length;e++)un(t[e])}}function Ml(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ne]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(u(231,e,typeof n));return n}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=!1;if(Ln)try{var jl={};Object.defineProperty(jl,"passive",{get:function(){Cu=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{Cu=!1}var ha=null,Mu=null,Ks=null;function eh(){if(Ks)return Ks;var t,e=Mu,n=e.length,a,s="value"in ha?ha.value:ha.textContent,r=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===s[r-a];a++);return Ks=s.slice(t,1<a?1-a:void 0)}function Qs(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 ks(){return!0}function nh(){return!1}function Ce(t){function e(n,a,s,r,f){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ks:nh,this.isPropagationStopped=nh,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=ks)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ks)},persist:function(){},isPersistent:ks}),e}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zs=Ce(Ja),Nl=b({},Ja,{view:0,detail:0}),Pg=Ce(Nl),ju,Nu,Dl,Js=b({},Nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,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!==Dl&&(Dl&&t.type==="mousemove"?(ju=t.screenX-Dl.screenX,Nu=t.screenY-Dl.screenY):Nu=ju=0,Dl=t),ju)},movementY:function(t){return"movementY"in t?t.movementY:Nu}}),ah=Ce(Js),Wg=b({},Js,{dataTransfer:0}),$g=Ce(Wg),Ig=b({},Nl,{relatedTarget:0}),Du=Ce(Ig),tv=b({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),ev=Ce(tv),nv=b({},Ja,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),av=Ce(nv),iv=b({},Ja,{data:0}),ih=Ce(iv),lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sv={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"},ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ov[t])?!!e[t]:!1}function Ou(){return uv}var rv=b({},Nl,{key:function(t){if(t.key){var e=lv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Qs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(t){return t.type==="keypress"?Qs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Qs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cv=Ce(rv),fv=b({},Js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lh=Ce(fv),hv=b({},Nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),dv=Ce(hv),mv=b({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),pv=Ce(mv),yv=b({},Js,{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}),gv=Ce(yv),vv=b({},Ja,{newState:0,oldState:0}),xv=Ce(vv),bv=[9,13,27,32],zu=Ln&&"CompositionEvent"in window,Ol=null;Ln&&"documentMode"in document&&(Ol=document.documentMode);var Sv=Ln&&"TextEvent"in window&&!Ol,sh=Ln&&(!zu||Ol&&8<Ol&&11>=Ol),oh=" ",uh=!1;function rh(t,e){switch(t){case"keyup":return bv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ch(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ji=!1;function Tv(t,e){switch(t){case"compositionend":return ch(e);case"keypress":return e.which!==32?null:(uh=!0,oh);case"textInput":return t=e.data,t===oh&&uh?null:t;default:return null}}function Av(t,e){if(ji)return t==="compositionend"||!zu&&rh(t,e)?(t=eh(),Ks=Mu=ha=null,ji=!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 sh&&e.locale!=="ko"?null:e.data;default:return null}}var Ev={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 fh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ev[t.type]:e==="textarea"}function hh(t,e,n,a){k?At?At.push(a):At=[a]:k=a,e=Lo(e,"onChange"),0<e.length&&(n=new Zs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var zl=null,Rl=null;function wv(t){Jm(t,0)}function Fs(t){var e=Rn(t);if(Hs(e))return t}function dh(t,e){if(t==="change")return e}var mh=!1;if(Ln){var Ru;if(Ln){var Vu="oninput"in document;if(!Vu){var ph=document.createElement("div");ph.setAttribute("oninput","return;"),Vu=typeof ph.oninput=="function"}Ru=Vu}else Ru=!1;mh=Ru&&(!document.documentMode||9<document.documentMode)}function yh(){zl&&(zl.detachEvent("onpropertychange",gh),Rl=zl=null)}function gh(t){if(t.propertyName==="value"&&Fs(Rl)){var e=[];hh(e,Rl,t,M(t)),Za(wv,e)}}function Cv(t,e,n){t==="focusin"?(yh(),zl=e,Rl=n,zl.attachEvent("onpropertychange",gh)):t==="focusout"&&yh()}function Mv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Fs(Rl)}function jv(t,e){if(t==="click")return Fs(e)}function Nv(t,e){if(t==="input"||t==="change")return Fs(e)}function Dv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:Dv;function Vl(t,e){if(_e(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!ze.call(e,s)||!_e(t[s],e[s]))return!1}return!0}function vh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function xh(t,e){var n=vh(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=vh(n)}}function bh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Sh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=wi(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=wi(t.document)}return e}function _u(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 Ov=Ln&&"documentMode"in document&&11>=document.documentMode,Ni=null,Uu=null,_l=null,Bu=!1;function Th(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bu||Ni==null||Ni!==wi(a)||(a=Ni,"selectionStart"in a&&_u(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),_l&&Vl(_l,a)||(_l=a,a=Lo(Uu,"onSelect"),0<a.length&&(e=new Zs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ni)))}function Fa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Di={animationend:Fa("Animation","AnimationEnd"),animationiteration:Fa("Animation","AnimationIteration"),animationstart:Fa("Animation","AnimationStart"),transitionrun:Fa("Transition","TransitionRun"),transitionstart:Fa("Transition","TransitionStart"),transitioncancel:Fa("Transition","TransitionCancel"),transitionend:Fa("Transition","TransitionEnd")},Lu={},Ah={};Ln&&(Ah=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);function Pa(t){if(Lu[t])return Lu[t];if(!Di[t])return t;var e=Di[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ah)return Lu[t]=e[n];return t}var Eh=Pa("animationend"),wh=Pa("animationiteration"),Ch=Pa("animationstart"),zv=Pa("transitionrun"),Rv=Pa("transitionstart"),Vv=Pa("transitioncancel"),Mh=Pa("transitionend"),jh=new Map,Hu="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(" ");Hu.push("scrollEnd");function rn(t,e){jh.set(t,e),Vn(e,[t])}var Ps=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)},Je=[],Oi=0,Yu=0;function Ws(){for(var t=Oi,e=Yu=Oi=0;e<t;){var n=Je[e];Je[e++]=null;var a=Je[e];Je[e++]=null;var s=Je[e];Je[e++]=null;var r=Je[e];if(Je[e++]=null,a!==null&&s!==null){var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}r!==0&&Nh(n,s,r)}}function $s(t,e,n,a){Je[Oi++]=t,Je[Oi++]=e,Je[Oi++]=n,Je[Oi++]=a,Yu|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function qu(t,e,n,a){return $s(t,e,n,a),Is(t)}function Wa(t,e){return $s(t,null,null,e),Is(t)}function Nh(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(s=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,s&&e!==null&&(s=31-ge(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function Is(t){if(50<as)throw as=0,Pr=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var zi={};function _v(t,e,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(t,e,n,a){return new _v(t,e,n,a)}function Gu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Hn(t,e){var n=t.alternate;return n===null?(n=Ue(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 Dh(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 to(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")Gu(t)&&(f=1);else if(typeof t=="string")f=Yx(t,n,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case st:return t=Ue(31,n,e,s),t.elementType=st,t.lanes=r,t;case Y:return $a(n.children,s,r,e);case X:f=8,s|=24;break;case q:return t=Ue(12,n,e,s|2),t.elementType=q,t.lanes=r,t;case Z:return t=Ue(13,n,e,s),t.elementType=Z,t.lanes=r,t;case lt:return t=Ue(19,n,e,s),t.elementType=lt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:f=10;break t;case K:f=9;break t;case F:f=11;break t;case J:f=14;break t;case P:f=16,a=null;break t}f=29,n=Error(u(130,t===null?"null":typeof t,"")),a=null}return e=Ue(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function $a(t,e,n,a){return t=Ue(7,t,a,e),t.lanes=n,t}function Xu(t,e,n){return t=Ue(6,t,null,e),t.lanes=n,t}function Oh(t){var e=Ue(18,null,null,0);return e.stateNode=t,e}function Ku(t,e,n){return e=Ue(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var zh=new WeakMap;function Fe(t,e){if(typeof t=="object"&&t!==null){var n=zh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:na(e)},zh.set(t,e),e)}return{value:t,source:e,stack:na(e)}}var Ri=[],Vi=0,eo=null,Ul=0,Pe=[],We=0,da=null,xn=1,bn="";function Yn(t,e){Ri[Vi++]=Ul,Ri[Vi++]=eo,eo=t,Ul=e}function Rh(t,e,n){Pe[We++]=xn,Pe[We++]=bn,Pe[We++]=da,da=t;var a=xn;t=bn;var s=32-ge(a)-1;a&=~(1<<s),n+=1;var r=32-ge(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,xn=1<<32-ge(e)+s|n<<s|a,bn=r+t}else xn=1<<r|n<<s|a,bn=t}function Qu(t){t.return!==null&&(Yn(t,1),Rh(t,1,0))}function ku(t){for(;t===eo;)eo=Ri[--Vi],Ri[Vi]=null,Ul=Ri[--Vi],Ri[Vi]=null;for(;t===da;)da=Pe[--We],Pe[We]=null,bn=Pe[--We],Pe[We]=null,xn=Pe[--We],Pe[We]=null}function Vh(t,e){Pe[We++]=xn,Pe[We++]=bn,Pe[We++]=da,xn=e.id,bn=e.overflow,da=t}var oe=null,Vt=null,xt=!1,ma=null,$e=!1,Zu=Error(u(519));function pa(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bl(Fe(e,t)),Zu}function _h(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Lt]=t,e[ne]=a,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<ls.length;n++)pt(ls[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),El(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),qs(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||$m(e.textContent,n)?(a.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),a.onScroll!=null&&pt("scroll",e),a.onScrollEnd!=null&&pt("scrollend",e),a.onClick!=null&&(e.onclick=It),e=!0):e=!1,e||pa(t,!0)}function Uh(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:$e=!1;return;case 27:case 3:$e=!0;return;default:oe=oe.return}}function _i(t){if(t!==oe)return!1;if(!xt)return Uh(t),xt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||fc(t.type,t.memoizedProps)),n=!n),n&&Vt&&pa(t),Uh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=op(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Vt=op(t)}else e===27?(e=Vt,Na(t.type)?(t=yc,yc=null,Vt=t):Vt=e):Vt=oe?tn(t.stateNode.nextSibling):null;return!0}function Ia(){Vt=oe=null,xt=!1}function Ju(){var t=ma;return t!==null&&(De===null?De=t:De.push.apply(De,t),ma=null),t}function Bl(t){ma===null?ma=[t]:ma.push(t)}var Fu=E(null),ti=null,qn=null;function ya(t,e,n){Q(Fu,e._currentValue),e._currentValue=n}function Gn(t){t._currentValue=Fu.current,U(Fu)}function Pu(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Wu(t,e,n,a){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var r=s.dependencies;if(r!==null){var f=s.child;r=r.firstContext;t:for(;r!==null;){var y=r;r=s;for(var S=0;S<e.length;S++)if(y.context===e[S]){r.lanes|=n,y=r.alternate,y!==null&&(y.lanes|=n),Pu(r.return,n,t),a||(f=null);break t}r=y.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(u(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),Pu(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Ui(t,e,n,a){t=null;for(var s=e,r=!1;s!==null;){if(!r){if((s.flags&524288)!==0)r=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(u(387));if(f=f.memoizedProps,f!==null){var y=s.type;_e(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===dt.current){if(f=s.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(cs):t=[cs])}s=s.return}t!==null&&Wu(e,t,n,a),e.flags|=262144}function no(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ei(t){ti=t,qn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return Bh(ti,t)}function ao(t,e){return ti===null&&ei(t),Bh(t,e)}function Bh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},qn===null){if(t===null)throw Error(u(308));qn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else qn=qn.next=e;return n}var Uv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Bv=i.unstable_scheduleCallback,Lv=i.unstable_NormalPriority,Zt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $u(){return{controller:new Uv,data:new Map,refCount:0}}function Ll(t){t.refCount--,t.refCount===0&&Bv(Lv,function(){t.controller.abort()})}var Hl=null,Iu=0,Bi=0,Li=null;function Hv(t,e){if(Hl===null){var n=Hl=[];Iu=0,Bi=nc(),Li={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Iu++,e.then(Lh,Lh),e}function Lh(){if(--Iu===0&&Hl!==null){Li!==null&&(Li.status="fulfilled");var t=Hl;Hl=null,Bi=0,Li=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Hh=R.S;R.S=function(t,e){Tm=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Hv(t,e),Hh!==null&&Hh(t,e)};var ni=E(null);function tr(){var t=ni.current;return t!==null?t:zt.pooledCache}function io(t,e){e===null?Q(ni,ni.current):Q(ni,e.pool)}function Yh(){var t=tr();return t===null?null:{parent:Zt._currentValue,pool:t}}var Hi=Error(u(460)),er=Error(u(474)),lo=Error(u(542)),so={then:function(){}};function qh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Gh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(It,It),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Kh(t),t;default:if(typeof e.status=="string")e.then(It,It);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=a}},function(a){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Kh(t),t}throw ii=e,Hi}}function ai(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ii=n,Hi):n}}var ii=null;function Xh(){if(ii===null)throw Error(u(459));var t=ii;return ii=null,t}function Kh(t){if(t===Hi||t===lo)throw Error(u(483))}var Yi=null,Yl=0;function oo(t){var e=Yl;return Yl+=1,Yi===null&&(Yi=[]),Gh(Yi,t,e)}function ql(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function uo(t,e){throw e.$$typeof===T?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qh(t){function e(w,A){if(t){var C=w.deletions;C===null?(w.deletions=[A],w.flags|=16):C.push(A)}}function n(w,A){if(!t)return null;for(;A!==null;)e(w,A),A=A.sibling;return null}function a(w){for(var A=new Map;w!==null;)w.key!==null?A.set(w.key,w):A.set(w.index,w),w=w.sibling;return A}function s(w,A){return w=Hn(w,A),w.index=0,w.sibling=null,w}function r(w,A,C){return w.index=C,t?(C=w.alternate,C!==null?(C=C.index,C<A?(w.flags|=67108866,A):C):(w.flags|=67108866,A)):(w.flags|=1048576,A)}function f(w){return t&&w.alternate===null&&(w.flags|=67108866),w}function y(w,A,C,B){return A===null||A.tag!==6?(A=Xu(C,w.mode,B),A.return=w,A):(A=s(A,C),A.return=w,A)}function S(w,A,C,B){var nt=C.type;return nt===Y?_(w,A,C.props.children,B,C.key):A!==null&&(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===P&&ai(nt)===A.type)?(A=s(A,C.props),ql(A,C),A.return=w,A):(A=to(C.type,C.key,C.props,null,w.mode,B),ql(A,C),A.return=w,A)}function j(w,A,C,B){return A===null||A.tag!==4||A.stateNode.containerInfo!==C.containerInfo||A.stateNode.implementation!==C.implementation?(A=Ku(C,w.mode,B),A.return=w,A):(A=s(A,C.children||[]),A.return=w,A)}function _(w,A,C,B,nt){return A===null||A.tag!==7?(A=$a(C,w.mode,B,nt),A.return=w,A):(A=s(A,C),A.return=w,A)}function L(w,A,C){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Xu(""+A,w.mode,C),A.return=w,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case D:return C=to(A.type,A.key,A.props,null,w.mode,C),ql(C,A),C.return=w,C;case V:return A=Ku(A,w.mode,C),A.return=w,A;case P:return A=ai(A),L(w,A,C)}if($t(A)||Bt(A))return A=$a(A,w.mode,C,null),A.return=w,A;if(typeof A.then=="function")return L(w,oo(A),C);if(A.$$typeof===G)return L(w,ao(w,A),C);uo(w,A)}return null}function N(w,A,C,B){var nt=A!==null?A.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return nt!==null?null:y(w,A,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case D:return C.key===nt?S(w,A,C,B):null;case V:return C.key===nt?j(w,A,C,B):null;case P:return C=ai(C),N(w,A,C,B)}if($t(C)||Bt(C))return nt!==null?null:_(w,A,C,B,null);if(typeof C.then=="function")return N(w,A,oo(C),B);if(C.$$typeof===G)return N(w,A,ao(w,C),B);uo(w,C)}return null}function O(w,A,C,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(C)||null,y(A,w,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case D:return w=w.get(B.key===null?C:B.key)||null,S(A,w,B,nt);case V:return w=w.get(B.key===null?C:B.key)||null,j(A,w,B,nt);case P:return B=ai(B),O(w,A,C,B,nt)}if($t(B)||Bt(B))return w=w.get(C)||null,_(A,w,B,nt,null);if(typeof B.then=="function")return O(w,A,C,oo(B),nt);if(B.$$typeof===G)return O(w,A,C,ao(A,B),nt);uo(A,B)}return null}function $(w,A,C,B){for(var nt=null,St=null,et=A,ft=A=0,gt=null;et!==null&&ft<C.length;ft++){et.index>ft?(gt=et,et=null):gt=et.sibling;var Tt=N(w,et,C[ft],B);if(Tt===null){et===null&&(et=gt);break}t&&et&&Tt.alternate===null&&e(w,et),A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt,et=gt}if(ft===C.length)return n(w,et),xt&&Yn(w,ft),nt;if(et===null){for(;ft<C.length;ft++)et=L(w,C[ft],B),et!==null&&(A=r(et,A,ft),St===null?nt=et:St.sibling=et,St=et);return xt&&Yn(w,ft),nt}for(et=a(et);ft<C.length;ft++)gt=O(et,w,ft,C[ft],B),gt!==null&&(t&>.alternate!==null&&et.delete(gt.key===null?ft:gt.key),A=r(gt,A,ft),St===null?nt=gt:St.sibling=gt,St=gt);return t&&et.forEach(function(Va){return e(w,Va)}),xt&&Yn(w,ft),nt}function it(w,A,C,B){if(C==null)throw Error(u(151));for(var nt=null,St=null,et=A,ft=A=0,gt=null,Tt=C.next();et!==null&&!Tt.done;ft++,Tt=C.next()){et.index>ft?(gt=et,et=null):gt=et.sibling;var Va=N(w,et,Tt.value,B);if(Va===null){et===null&&(et=gt);break}t&&et&&Va.alternate===null&&e(w,et),A=r(Va,A,ft),St===null?nt=Va:St.sibling=Va,St=Va,et=gt}if(Tt.done)return n(w,et),xt&&Yn(w,ft),nt;if(et===null){for(;!Tt.done;ft++,Tt=C.next())Tt=L(w,Tt.value,B),Tt!==null&&(A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt);return xt&&Yn(w,ft),nt}for(et=a(et);!Tt.done;ft++,Tt=C.next())Tt=O(et,w,ft,Tt.value,B),Tt!==null&&(t&&Tt.alternate!==null&&et.delete(Tt.key===null?ft:Tt.key),A=r(Tt,A,ft),St===null?nt=Tt:St.sibling=Tt,St=Tt);return t&&et.forEach(function(Wx){return e(w,Wx)}),xt&&Yn(w,ft),nt}function Dt(w,A,C,B){if(typeof C=="object"&&C!==null&&C.type===Y&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case D:t:{for(var nt=C.key;A!==null;){if(A.key===nt){if(nt=C.type,nt===Y){if(A.tag===7){n(w,A.sibling),B=s(A,C.props.children),B.return=w,w=B;break t}}else if(A.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===P&&ai(nt)===A.type){n(w,A.sibling),B=s(A,C.props),ql(B,C),B.return=w,w=B;break t}n(w,A);break}else e(w,A);A=A.sibling}C.type===Y?(B=$a(C.props.children,w.mode,B,C.key),B.return=w,w=B):(B=to(C.type,C.key,C.props,null,w.mode,B),ql(B,C),B.return=w,w=B)}return f(w);case V:t:{for(nt=C.key;A!==null;){if(A.key===nt)if(A.tag===4&&A.stateNode.containerInfo===C.containerInfo&&A.stateNode.implementation===C.implementation){n(w,A.sibling),B=s(A,C.children||[]),B.return=w,w=B;break t}else{n(w,A);break}else e(w,A);A=A.sibling}B=Ku(C,w.mode,B),B.return=w,w=B}return f(w);case P:return C=ai(C),Dt(w,A,C,B)}if($t(C))return $(w,A,C,B);if(Bt(C)){if(nt=Bt(C),typeof nt!="function")throw Error(u(150));return C=nt.call(C),it(w,A,C,B)}if(typeof C.then=="function")return Dt(w,A,oo(C),B);if(C.$$typeof===G)return Dt(w,A,ao(w,C),B);uo(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,A!==null&&A.tag===6?(n(w,A.sibling),B=s(A,C),B.return=w,w=B):(n(w,A),B=Xu(C,w.mode,B),B.return=w,w=B),f(w)):n(w,A)}return function(w,A,C,B){try{Yl=0;var nt=Dt(w,A,C,B);return Yi=null,nt}catch(et){if(et===Hi||et===lo)throw et;var St=Ue(29,et,null,w.mode);return St.lanes=B,St.return=w,St}}}var li=Qh(!0),kh=Qh(!1),ga=!1;function nr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ar(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 va(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xa(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Et&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=Is(t),Nh(t,null,n),e}return $s(t,a,e,n),Is(t)}function Gl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,ia(t,n)}}function ir(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?s=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?s=r=e:r=r.next=e}else s=r=e;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var lr=!1;function Xl(){if(lr){var t=Li;if(t!==null)throw t}}function Kl(t,e,n,a){lr=!1;var s=t.updateQueue;ga=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,j=S.next;S.next=null,f===null?r=j:f.next=j,f=S;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==f&&(y===null?_.firstBaseUpdate=j:y.next=j,_.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,_=j=S=null,y=r;do{var N=y.lane&-536870913,O=N!==y.lane;if(O?(yt&N)===N:(a&N)===N){N!==0&&N===Bi&&(lr=!0),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var $=t,it=y;N=e;var Dt=n;switch(it.tag){case 1:if($=it.payload,typeof $=="function"){L=$.call(Dt,L,N);break t}L=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=it.payload,N=typeof $=="function"?$.call(Dt,L,N):$,N==null)break t;L=b({},L,N);break t;case 2:ga=!0}}N=y.callback,N!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[N]:O.push(N))}else O={lane:N,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(j=_=O,S=L):_=_.next=O,f|=N;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;O=y,y=O.next,O.next=null,s.lastBaseUpdate=O,s.shared.pending=null}}while(!0);_===null&&(S=L),s.baseState=S,s.firstBaseUpdate=j,s.lastBaseUpdate=_,r===null&&(s.shared.lanes=0),Ea|=f,t.lanes=f,t.memoizedState=L}}function Zh(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function Jh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Zh(n[t],e)}var qi=E(null),ro=E(0);function Fh(t,e){t=Wn,Q(ro,t),Q(qi,e),Wn=t|e.baseLanes}function sr(){Q(ro,Wn),Q(qi,qi.current)}function or(){Wn=ro.current,U(qi),U(ro)}var Be=E(null),Ie=null;function ba(t){var e=t.alternate;Q(Qt,Qt.current&1),Q(Be,t),Ie===null&&(e===null||qi.current!==null||e.memoizedState!==null)&&(Ie=t)}function ur(t){Q(Qt,Qt.current),Q(Be,t),Ie===null&&(Ie=t)}function Ph(t){t.tag===22?(Q(Qt,Qt.current),Q(Be,t),Ie===null&&(Ie=t)):Sa()}function Sa(){Q(Qt,Qt.current),Q(Be,Be.current)}function Le(t){U(Be),Ie===t&&(Ie=null),U(Qt)}var Qt=E(0);function co(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mc(n)||pc(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 Xn=0,ct=null,jt=null,Jt=null,fo=!1,Gi=!1,si=!1,ho=0,Ql=0,Xi=null,qv=0;function qt(){throw Error(u(321))}function rr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!_e(t[n],e[n]))return!1;return!0}function cr(t,e,n,a,s,r){return Xn=r,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,R.H=t===null||t.memoizedState===null?Rd:wr,si=!1,r=n(a,s),si=!1,Gi&&(r=$h(e,n,a,s)),Wh(t),r}function Wh(t){R.H=Jl;var e=jt!==null&&jt.next!==null;if(Xn=0,Jt=jt=ct=null,fo=!1,Ql=0,Xi=null,e)throw Error(u(300));t===null||Ft||(t=t.dependencies,t!==null&&no(t)&&(Ft=!0))}function $h(t,e,n,a){ct=t;var s=0;do{if(Gi&&(Xi=null),Ql=0,Gi=!1,25<=s)throw Error(u(301));if(s+=1,Jt=jt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}R.H=Vd,r=e(n,a)}while(Gi);return r}function Gv(){var t=R.H,e=t.useState()[0];return e=typeof e.then=="function"?kl(e):e,t=t.useState()[0],(jt!==null?jt.memoizedState:null)!==t&&(ct.flags|=1024),e}function fr(){var t=ho!==0;return ho=0,t}function hr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function dr(t){if(fo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}fo=!1}Xn=0,Jt=jt=ct=null,Gi=!1,Ql=ho=0,Xi=null}function xe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t,Jt}function kt(){if(jt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=jt.next;var e=Jt===null?ct.memoizedState:Jt.next;if(e!==null)Jt=e,jt=t;else{if(t===null)throw ct.alternate===null?Error(u(467)):Error(u(310));jt=t,t={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},Jt===null?ct.memoizedState=Jt=t:Jt=Jt.next=t}return Jt}function mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(t){var e=Ql;return Ql+=1,Xi===null&&(Xi=[]),t=Gh(Xi,t,e),e=ct,(Jt===null?e.memoizedState:Jt.next)===null&&(e=e.alternate,R.H=e===null||e.memoizedState===null?Rd:wr),t}function po(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return kl(t);if(t.$$typeof===G)return ue(t)}throw Error(u(438,String(t)))}function mr(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=mo(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=bt;return e.index++,n}function Kn(t,e){return typeof e=="function"?e(t):e}function yo(t){var e=kt();return pr(e,jt,t)}function pr(t,e,n){var a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=t.baseQueue,r=a.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,a.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var y=f=null,S=null,j=e,_=!1;do{var L=j.lane&-536870913;if(L!==j.lane?(yt&L)===L:(Xn&L)===L){var N=j.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),L===Bi&&(_=!0);else if((Xn&N)===N){j=j.next,N===Bi&&(_=!0);continue}else L={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,ct.lanes|=N,Ea|=N;L=j.action,si&&n(r,L),r=j.hasEagerState?j.eagerState:n(r,L)}else N={lane:L,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},S===null?(y=S=N,f=r):S=S.next=N,ct.lanes|=L,Ea|=L;j=j.next}while(j!==null&&j!==e);if(S===null?f=r:S.next=y,!_e(r,t.memoizedState)&&(Ft=!0,_&&(n=Li,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=S,a.lastRenderedState=r}return s===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function yr(t){var e=kt(),n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=t;var a=n.dispatch,s=n.pending,r=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do r=t(r,f.action),f=f.next;while(f!==s);_e(r,e.memoizedState)||(Ft=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Ih(t,e,n){var a=ct,s=kt(),r=xt;if(r){if(n===void 0)throw Error(u(407));n=n()}else n=e();var f=!_e((jt||s).memoizedState,n);if(f&&(s.memoizedState=n,Ft=!0),s=s.queue,xr(nd.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Jt!==null&&Jt.memoizedState.tag&1){if(a.flags|=2048,Ki(9,{destroy:void 0},ed.bind(null,a,s,n,e),null),zt===null)throw Error(u(349));r||(Xn&127)!==0||td(a,e,n)}return n}function td(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=mo(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ed(t,e,n,a){e.value=n,e.getSnapshot=a,ad(e)&&id(t)}function nd(t,e,n){return n(function(){ad(e)&&id(t)})}function ad(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_e(t,n)}catch{return!0}}function id(t){var e=Wa(t,2);e!==null&&Oe(e,t,2)}function gr(t){var e=xe();if(typeof t=="function"){var n=t;if(t=n(),si){sn(!0);try{n()}finally{sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:t},e}function ld(t,e,n,a){return t.baseState=n,pr(t,jt,typeof a=="function"?a:Kn)}function Xv(t,e,n,a,s){if(xo(t))throw Error(u(485));if(t=e.action,t!==null){var r={payload:s,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};R.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,sd(e,r)):(r.next=n.next,e.pending=n.next=r)}}function sd(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=R.T,f={};R.T=f;try{var y=n(s,a),S=R.S;S!==null&&S(f,y),od(t,e,y)}catch(j){vr(t,e,j)}finally{r!==null&&f.types!==null&&(r.types=f.types),R.T=r}}else try{r=n(s,a),od(t,e,r)}catch(j){vr(t,e,j)}}function od(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ud(t,e,a)},function(a){return vr(t,e,a)}):ud(t,e,n)}function ud(t,e,n){e.status="fulfilled",e.value=n,rd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,sd(t,n)))}function vr(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,rd(e),e=e.next;while(e!==a)}t.action=null}function rd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function cd(t,e){return e}function fd(t,e){if(xt){var n=zt.formState;if(n!==null){t:{var a=ct;if(xt){if(Vt){e:{for(var s=Vt,r=$e;s.nodeType!==8;){if(!r){s=null;break e}if(s=tn(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Vt=tn(s.nextSibling),a=s.data==="F!";break t}}pa(a)}a=!1}a&&(e=n[0])}}return n=xe(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cd,lastRenderedState:e},n.queue=a,n=Dd.bind(null,ct,a),a.dispatch=n,a=gr(!1),r=Er.bind(null,ct,!1,a.queue),a=xe(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Xv.bind(null,ct,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function hd(t){var e=kt();return dd(e,jt,t)}function dd(t,e,n){if(e=pr(t,e,cd)[0],t=yo(Kn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=kl(e)}catch(f){throw f===Hi?lo:f}else a=e;e=kt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Ki(9,{destroy:void 0},Kv.bind(null,s,n),null)),[a,r,t]}function Kv(t,e){t.action=e}function md(t){var e=kt(),n=jt;if(n!==null)return dd(e,n,t);kt(),e=e.memoizedState,n=kt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Ki(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=mo(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function pd(){return kt().memoizedState}function go(t,e,n,a){var s=xe();ct.flags|=t,s.memoizedState=Ki(1|e,{destroy:void 0},n,a===void 0?null:a)}function vo(t,e,n,a){var s=kt();a=a===void 0?null:a;var r=s.memoizedState.inst;jt!==null&&a!==null&&rr(a,jt.memoizedState.deps)?s.memoizedState=Ki(e,r,n,a):(ct.flags|=t,s.memoizedState=Ki(1|e,r,n,a))}function yd(t,e){go(8390656,8,t,e)}function xr(t,e){vo(2048,8,t,e)}function Qv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=mo(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function gd(t){var e=kt().memoizedState;return Qv({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function vd(t,e){return vo(4,2,t,e)}function xd(t,e){return vo(4,4,t,e)}function bd(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 Sd(t,e,n){n=n!=null?n.concat([t]):null,vo(4,4,bd.bind(null,e,t),n)}function br(){}function Td(t,e){var n=kt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&rr(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Ad(t,e){var n=kt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&rr(e,a[1]))return a[0];if(a=t(),si){sn(!0);try{t()}finally{sn(!1)}}return n.memoizedState=[a,e],a}function Sr(t,e,n){return n===void 0||(Xn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Em(),ct.lanes|=t,Ea|=t,n)}function Ed(t,e,n,a){return _e(n,e)?n:qi.current!==null?(t=Sr(t,n,a),_e(t,e)||(Ft=!0),t):(Xn&42)===0||(Xn&1073741824)!==0&&(yt&261930)===0?(Ft=!0,t.memoizedState=n):(t=Em(),ct.lanes|=t,Ea|=t,e)}function wd(t,e,n,a,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=R.T,y={};R.T=y,Er(t,!1,e,n);try{var S=s(),j=R.S;if(j!==null&&j(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var _=Yv(S,a);Zl(t,e,_,qe(t))}else Zl(t,e,a,qe(t))}catch(L){Zl(t,e,{then:function(){},status:"rejected",reason:L},qe())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),R.T=f}}function kv(){}function Tr(t,e,n,a){if(t.tag!==5)throw Error(u(476));var s=Cd(t).queue;wd(t,s,e,I,n===null?kv:function(){return Md(t),n(a)})}function Cd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:I},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Md(t){var e=Cd(t);e.next===null&&(e=t.alternate.memoizedState),Zl(t,e.next.queue,{},qe())}function Ar(){return ue(cs)}function jd(){return kt().memoizedState}function Nd(){return kt().memoizedState}function Zv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=qe();t=va(n);var a=xa(e,t,n);a!==null&&(Oe(a,e,n),Gl(a,e,n)),e={cache:$u()},t.payload=e;return}e=e.return}}function Jv(t,e,n){var a=qe();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xo(t)?Od(e,n):(n=qu(t,e,n,a),n!==null&&(Oe(n,t,a),zd(n,e,a)))}function Dd(t,e,n){var a=qe();Zl(t,e,n,a)}function Zl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xo(t))Od(e,s);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,y=r(f,n);if(s.hasEagerState=!0,s.eagerState=y,_e(y,f))return $s(t,e,s,0),zt===null&&Ws(),!1}catch{}if(n=qu(t,e,s,a),n!==null)return Oe(n,t,a),zd(n,e,a),!0}return!1}function Er(t,e,n,a){if(a={lane:2,revertLane:nc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xo(t)){if(e)throw Error(u(479))}else e=qu(t,n,a,2),e!==null&&Oe(e,t,2)}function xo(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Od(t,e){Gi=fo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function zd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,ia(t,n)}}var Jl={readContext:ue,use:po,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Jl.useEffectEvent=qt;var Rd={readContext:ue,use:po,useCallback:function(t,e){return xe().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:yd,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,go(4194308,4,bd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return go(4194308,4,t,e)},useInsertionEffect:function(t,e){go(4,2,t,e)},useMemo:function(t,e){var n=xe();e=e===void 0?null:e;var a=t();if(si){sn(!0);try{t()}finally{sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=xe();if(n!==void 0){var s=n(e);if(si){sn(!0);try{n(e)}finally{sn(!1)}}}else s=e;return a.memoizedState=a.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},a.queue=t,t=t.dispatch=Jv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=xe();return t={current:t},e.memoizedState=t},useState:function(t){t=gr(t);var e=t.queue,n=Dd.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:br,useDeferredValue:function(t,e){var n=xe();return Sr(n,t,e)},useTransition:function(){var t=gr(!1);return t=wd.bind(null,ct,t.queue,!0,!1),xe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,s=xe();if(xt){if(n===void 0)throw Error(u(407));n=n()}else{if(n=e(),zt===null)throw Error(u(349));(yt&127)!==0||td(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,yd(nd.bind(null,a,r,t),[t]),a.flags|=2048,Ki(9,{destroy:void 0},ed.bind(null,a,r,n,e),null),n},useId:function(){var t=xe(),e=zt.identifierPrefix;if(xt){var n=bn,a=xn;n=(a&~(1<<32-ge(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ho++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=qv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ar,useFormState:fd,useActionState:fd,useOptimistic:function(t){var e=xe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Er.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:mr,useCacheRefresh:function(){return xe().memoizedState=Zv.bind(null,ct)},useEffectEvent:function(t){var e=xe(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},wr={readContext:ue,use:po,useCallback:Td,useContext:ue,useEffect:xr,useImperativeHandle:Sd,useInsertionEffect:vd,useLayoutEffect:xd,useMemo:Ad,useReducer:yo,useRef:pd,useState:function(){return yo(Kn)},useDebugValue:br,useDeferredValue:function(t,e){var n=kt();return Ed(n,jt.memoizedState,t,e)},useTransition:function(){var t=yo(Kn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:Ih,useId:jd,useHostTransitionStatus:Ar,useFormState:hd,useActionState:hd,useOptimistic:function(t,e){var n=kt();return ld(n,jt,t,e)},useMemoCache:mr,useCacheRefresh:Nd};wr.useEffectEvent=gd;var Vd={readContext:ue,use:po,useCallback:Td,useContext:ue,useEffect:xr,useImperativeHandle:Sd,useInsertionEffect:vd,useLayoutEffect:xd,useMemo:Ad,useReducer:yr,useRef:pd,useState:function(){return yr(Kn)},useDebugValue:br,useDeferredValue:function(t,e){var n=kt();return jt===null?Sr(n,t,e):Ed(n,jt.memoizedState,t,e)},useTransition:function(){var t=yr(Kn)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:Ih,useId:jd,useHostTransitionStatus:Ar,useFormState:md,useActionState:md,useOptimistic:function(t,e){var n=kt();return jt!==null?ld(n,jt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:mr,useCacheRefresh:Nd};Vd.useEffectEvent=gd;function Cr(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Mr={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=qe(),s=va(a);s.payload=e,n!=null&&(s.callback=n),e=xa(t,s,a),e!==null&&(Oe(e,t,a),Gl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=qe(),s=va(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=xa(t,s,a),e!==null&&(Oe(e,t,a),Gl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=qe(),a=va(n);a.tag=2,e!=null&&(a.callback=e),e=xa(t,a,n),e!==null&&(Oe(e,t,n),Gl(e,t,n))}};function _d(t,e,n,a,s,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,f):e.prototype&&e.prototype.isPureReactComponent?!Vl(n,a)||!Vl(s,r):!0}function Ud(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Mr.enqueueReplaceState(e,e.state,null)}function oi(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Bd(t){Ps(t)}function Ld(t){console.error(t)}function Hd(t){Ps(t)}function bo(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Yd(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function jr(t,e,n){return n=va(n),n.tag=3,n.payload={element:null},n.callback=function(){bo(t,e)},n}function qd(t){return t=va(t),t.tag=3,t}function Gd(t,e,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=a.value;t.payload=function(){return s(r)},t.callback=function(){Yd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Yd(e,n,a),typeof s!="function"&&(wa===null?wa=new Set([this]):wa.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Fv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Ui(e,n,s,!0),n=Be.current,n!==null){switch(n.tag){case 31:case 13:return Ie===null?zo():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===so?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Ir(t,a,s)),!1;case 22:return n.flags|=65536,a===so?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Ir(t,a,s)),!1}throw Error(u(435,n.tag))}return Ir(t,a,s),zo(),!1}if(xt)return e=Be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Zu&&(t=Error(u(422),{cause:a}),Bl(Fe(t,n)))):(a!==Zu&&(e=Error(u(423),{cause:a}),Bl(Fe(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=Fe(a,n),s=jr(t.stateNode,a,s),ir(t,s),Gt!==4&&(Gt=2)),!1;var r=Error(u(520),{cause:a});if(r=Fe(r,n),ns===null?ns=[r]:ns.push(r),Gt!==4&&(Gt=2),e===null)return!0;a=Fe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=jr(n.stateNode,a,t),ir(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(wa===null||!wa.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=qd(s),Gd(s,t,n,a),ir(n,s),!1}n=n.return}while(n!==null);return!1}var Nr=Error(u(461)),Ft=!1;function re(t,e,n,a){e.child=t===null?kh(e,null,n,a):li(e,t.child,n,a)}function Xd(t,e,n,a,s){n=n.render;var r=e.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return ei(e),a=cr(t,e,n,f,r,s),y=fr(),t!==null&&!Ft?(hr(t,e,s),Qn(t,e,s)):(xt&&y&&Qu(e),e.flags|=1,re(t,e,a,s),e.child)}function Kd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!Gu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Qd(t,e,r,a,s)):(t=to(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Br(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:Vl,n(f,a)&&t.ref===e.ref)return Qn(t,e,s)}return e.flags|=1,t=Hn(r,a),t.ref=e.ref,t.return=e,e.child=t}function Qd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(Vl(r,a)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=a=r,Br(t,s))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,Qn(t,e,s)}return Dr(t,e,n,a,s)}function kd(t,e,n,a){var s=a.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(a=e.child=t.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~r}else a=0,e.child=null;return Zd(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&io(e,r!==null?r.cachePool:null),r!==null?Fh(e,r):sr(),Ph(e);else return a=e.lanes=536870912,Zd(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(io(e,r.cachePool),Fh(e,r),Sa(),e.memoizedState=null):(t!==null&&io(e,null),sr(),Sa());return re(t,e,s,n),e.child}function Fl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Zd(t,e,n,a,s){var r=tr();return r=r===null?null:{parent:Zt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&io(e,null),sr(),Ph(e),t!==null&&Ui(t,e,a,!0),e.childLanes=s,null}function So(t,e){return e=Ao({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Jd(t,e,n){return li(e,t.child,null,n),t=So(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function Pv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(a.mode==="hidden")return t=So(e,a),e.lanes=536870912,Fl(null,t);if(ur(e),(t=Vt)?(t=sp(t,$e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:da!==null?{id:xn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=Oh(t),n.return=e,e.child=n,oe=e,Vt=null)):t=null,t===null)throw pa(e);return e.lanes=536870912,null}return So(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(ur(e),s)if(e.flags&256)e.flags&=-257,e=Jd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(Ft||Ui(t,e,n,!1),s=(n&t.childLanes)!==0,Ft||s){if(a=zt,a!==null&&(f=Ga(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,Wa(t,f),Oe(a,t,f),Nr;zo(),e=Jd(t,e,n)}else t=r.treeContext,Vt=tn(f.nextSibling),oe=e,xt=!0,ma=null,$e=!1,t!==null&&Vh(e,t),e=So(e,a),e.flags|=4096;return e}return t=Hn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function To(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(u(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Dr(t,e,n,a,s){return ei(e),n=cr(t,e,n,a,void 0,s),a=fr(),t!==null&&!Ft?(hr(t,e,s),Qn(t,e,s)):(xt&&a&&Qu(e),e.flags|=1,re(t,e,n,s),e.child)}function Fd(t,e,n,a,s,r){return ei(e),e.updateQueue=null,n=$h(e,a,n,s),Wh(t),a=fr(),t!==null&&!Ft?(hr(t,e,r),Qn(t,e,r)):(xt&&a&&Qu(e),e.flags|=1,re(t,e,n,r),e.child)}function Pd(t,e,n,a,s){if(ei(e),e.stateNode===null){var r=zi,f=n.contextType;typeof f=="object"&&f!==null&&(r=ue(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Mr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},nr(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?ue(f):zi,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Cr(e,n,f,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&Mr.enqueueReplaceState(r,r.state,null),Kl(e,a,r,s),Xl(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var y=e.memoizedProps,S=oi(n,y);r.props=S;var j=r.context,_=n.contextType;f=zi,typeof _=="object"&&_!==null&&(f=ue(_));var L=n.getDerivedStateFromProps;_=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,_||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||j!==f)&&Ud(e,r,a,f),ga=!1;var N=e.memoizedState;r.state=N,Kl(e,a,r,s),Xl(),j=e.memoizedState,y||N!==j||ga?(typeof L=="function"&&(Cr(e,n,L,a),j=e.memoizedState),(S=ga||_d(e,n,S,a,N,j,f))?(_||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=j),r.props=a,r.state=j,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,ar(t,e),f=e.memoizedProps,_=oi(n,f),r.props=_,L=e.pendingProps,N=r.context,j=n.contextType,S=zi,typeof j=="object"&&j!==null&&(S=ue(j)),y=n.getDerivedStateFromProps,(j=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||N!==S)&&Ud(e,r,a,S),ga=!1,N=e.memoizedState,r.state=N,Kl(e,a,r,s),Xl();var O=e.memoizedState;f!==L||N!==O||ga||t!==null&&t.dependencies!==null&&no(t.dependencies)?(typeof y=="function"&&(Cr(e,n,y,a),O=e.memoizedState),(_=ga||_d(e,n,_,a,N,O,S)||t!==null&&t.dependencies!==null&&no(t.dependencies))?(j||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,O,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,O,S)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=S,a=_):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,To(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=li(e,t.child,null,s),e.child=li(e,null,n,s)):re(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Qn(t,e,s),t}function Wd(t,e,n,a){return Ia(),e.flags|=256,re(t,e,n,a),e.child}var Or={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zr(t){return{baseLanes:t,cachePool:Yh()}}function Rr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ye),t}function $d(t,e,n){var a=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(s?ba(e):Sa(),(t=Vt)?(t=sp(t,$e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:da!==null?{id:xn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=Oh(t),n.return=e,e.child=n,oe=e,Vt=null)):t=null,t===null)throw pa(e);return pc(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(Sa(),s=e.mode,y=Ao({mode:"hidden",children:y},s),a=$a(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=zr(n),a.childLanes=Rr(t,f,n),e.memoizedState=Or,Fl(null,a)):(ba(e),Vr(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(ba(e),e.flags&=-257,e=_r(t,e,n)):e.memoizedState!==null?(Sa(),e.child=t.child,e.flags|=128,e=null):(Sa(),y=a.fallback,s=e.mode,a=Ao({mode:"visible",children:a.children},s),y=$a(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,li(e,t.child,null,n),a=e.child,a.memoizedState=zr(n),a.childLanes=Rr(t,f,n),e.memoizedState=Or,e=Fl(null,a));else if(ba(e),pc(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var j=f.dgst;f=j,a=Error(u(419)),a.stack="",a.digest=f,Bl({value:a,source:null,stack:null}),e=_r(t,e,n)}else if(Ft||Ui(t,e,n,!1),f=(n&t.childLanes)!==0,Ft||f){if(f=zt,f!==null&&(a=Ga(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,Wa(t,a),Oe(f,t,a),Nr;mc(y)||zo(),e=_r(t,e,n)}else mc(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Vt=tn(y.nextSibling),oe=e,xt=!0,ma=null,$e=!1,t!==null&&Vh(e,t),e=Vr(e,a.children),e.flags|=4096);return e}return s?(Sa(),y=a.fallback,s=e.mode,S=t.child,j=S.sibling,a=Hn(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,j!==null?y=Hn(j,y):(y=$a(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,Fl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=zr(n):(s=y.cachePool,s!==null?(S=Zt._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Yh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Rr(t,f,n),e.memoizedState=Or,Fl(t.child,a)):(ba(e),n=t.child,t=n.sibling,n=Hn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Vr(t,e){return e=Ao({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ao(t,e){return t=Ue(22,t,null,e),t.lanes=0,t}function _r(t,e,n){return li(e,t.child,null,n),t=Vr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Id(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Pu(t.return,e,n)}function Ur(t,e,n,a,s,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=s,f.treeForkCount=r)}function tm(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=Qt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(Qt,f),re(t,e,a,n),a=xt?Ul:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Id(t,n,e);else if(t.tag===19)Id(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(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&co(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Ur(e,!1,s,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&co(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Ur(e,!0,n,null,r,a);break;case"together":Ur(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Qn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ea|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ui(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,n=Hn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Hn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Br(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&no(t)))}function Wv(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),ya(e,Zt,t.memoizedState.cache),Ia();break;case 27:case 5:ln(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:ya(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ur(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ba(e),e.flags|=128,null):(n&e.child.childLanes)!==0?$d(t,e,n):(ba(e),t=Qn(t,e,n),t!==null?t.sibling:null);ba(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Ui(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return tm(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,kd(t,e,n,e.pendingProps);case 24:ya(e,Zt,t.memoizedState.cache)}return Qn(t,e,n)}function em(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!Br(t,n)&&(e.flags&128)===0)return Ft=!1,Wv(t,e,n);Ft=(t.flags&131072)!==0}else Ft=!1,xt&&(e.flags&1048576)!==0&&Rh(e,Ul,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ai(e.elementType),e.type=t,typeof t=="function")Gu(t)?(a=oi(t,a),e.tag=1,e=Pd(null,e,t,a,n)):(e.tag=0,e=Dr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===F){e.tag=11,e=Xd(null,e,t,a,n);break t}else if(s===J){e.tag=14,e=Kd(null,e,t,a,n);break t}}throw e=vt(t)||t,Error(u(306,e,""))}}return e;case 0:return Dr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=oi(a,e.pendingProps),Pd(t,e,a,s,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,ar(t,e),Kl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,ya(e,Zt,a),a!==r.cache&&Wu(e,[Zt],n,!0),Xl(),a=f.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Wd(t,e,a,n);break t}else if(a!==s){s=Fe(Error(u(424)),e),Bl(s),e=Wd(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Vt=tn(t.firstChild),oe=e,xt=!0,ma=null,$e=!0,n=kh(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ia(),a===s){e=Qn(t,e,n);break t}re(t,e,a,n)}e=e.child}return e;case 26:return To(t,e),t===null?(n=hp(e.type,null,e.pendingProps,null))?e.memoizedState=n:xt||(n=e.type,t=e.pendingProps,a=Ho(at.current).createElement(n),a[Lt]=e,a[ne]=t,ce(a,n,t),Yt(a),e.stateNode=a):e.memoizedState=hp(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ln(e),t===null&&xt&&(a=e.stateNode=rp(e.type,e.pendingProps,at.current),oe=e,$e=!0,s=Vt,Na(e.type)?(yc=s,Vt=tn(a.firstChild)):Vt=s),re(t,e,e.pendingProps.children,n),To(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((s=a=Vt)&&(a=Mx(a,e.type,e.pendingProps,$e),a!==null?(e.stateNode=a,oe=e,Vt=tn(a.firstChild),$e=!1,s=!0):s=!1),s||pa(e)),ln(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,fc(s,r)?a=null:f!==null&&fc(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=cr(t,e,Gv,null,null,n),cs._currentValue=s),To(t,e),re(t,e,a,n),e.child;case 6:return t===null&&xt&&((t=n=Vt)&&(n=jx(n,e.pendingProps,$e),n!==null?(e.stateNode=n,oe=e,Vt=null,t=!0):t=!1),t||pa(e)),null;case 13:return $d(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=li(e,null,a,n):re(t,e,a,n),e.child;case 11:return Xd(t,e,e.type,e.pendingProps,n);case 7:return re(t,e,e.pendingProps,n),e.child;case 8:return re(t,e,e.pendingProps.children,n),e.child;case 12:return re(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,ya(e,e.type,a.value),re(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,ei(e),s=ue(s),a=a(s),e.flags|=1,re(t,e,a,n),e.child;case 14:return Kd(t,e,e.type,e.pendingProps,n);case 15:return Qd(t,e,e.type,e.pendingProps,n);case 19:return tm(t,e,n);case 31:return Pv(t,e,n);case 22:return kd(t,e,n,e.pendingProps);case 24:return ei(e),a=ue(Zt),t===null?(s=tr(),s===null&&(s=zt,r=$u(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},nr(e),ya(e,Zt,s)):((t.lanes&n)!==0&&(ar(t,e),Kl(e,null,null,n),Xl()),s=t.memoizedState,r=e.memoizedState,s.parent!==a?(s={parent:a,cache:a},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),ya(e,Zt,a)):(a=r.cache,ya(e,Zt,a),a!==s.cache&&Wu(e,[Zt],n,!0))),re(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function kn(t){t.flags|=4}function Lr(t,e,n,a,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(jm())t.flags|=8192;else throw ii=so,er}else t.flags&=-16777217}function nm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gp(e))if(jm())t.flags|=8192;else throw ii=so,er}function Eo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Qe():536870912,t.lanes|=e,Ji|=e)}function Pl(t,e){if(!xt)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function $v(t,e,n){var a=e.pendingProps;switch(ku(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Gn(Zt),Ot(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(_i(e)?kn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ju())),_t(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(kn(e),r!==null?(_t(e),nm(e,r)):(_t(e),Lr(e,s,null,a,n))):r?r!==t.memoizedState?(kn(e),_t(e),nm(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&kn(e),_t(e),Lr(e,s,t,a,n)),null;case 27:if(le(e),n=at.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&kn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return _t(e),null}t=W.current,_i(e)?_h(e):(t=rp(s,a,n),e.stateNode=t,kn(e))}return _t(e),null;case 5:if(le(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&kn(e);else{if(!a){if(e.stateNode===null)throw Error(u(166));return _t(e),null}if(r=W.current,_i(e))_h(e);else{var f=Ho(at.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?f.createElement(s,{is:a.is}):f.createElement(s)}}r[Lt]=e,r[ne]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ce(r,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&kn(e)}}return _t(e),Lr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&kn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(u(166));if(t=at.current,_i(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=oe,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[Lt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||$m(t.nodeValue,n)),t||pa(e,!0)}else t=Ho(t).createTextNode(a),t[Lt]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=_i(e),n!==null){if(t===null){if(!a)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[Lt]=e}else Ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=Ju(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(u(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=_i(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(u(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Lt]=e}else Ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),s=!1}else s=Ju(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==s&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Eo(e,e.updateQueue),_t(e),null);case 4:return Ot(),t===null&&sc(e.stateNode.containerInfo),_t(e),null;case 10:return Gn(e.type),_t(e),null;case 19:if(U(Qt),a=e.memoizedState,a===null)return _t(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Pl(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=co(t),r!==null){for(e.flags|=128,Pl(a,!1),t=r.updateQueue,e.updateQueue=t,Eo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Dh(n,t),n=n.sibling;return Q(Qt,Qt.current&1|2),xt&&Yn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&he()>No&&(e.flags|=128,s=!0,Pl(a,!1),e.lanes=4194304)}else{if(!s)if(t=co(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,Eo(e,t),Pl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!xt)return _t(e),null}else 2*he()-a.renderingStartTime>No&&n!==536870912&&(e.flags|=128,s=!0,Pl(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=he(),t.sibling=null,n=Qt.current,Q(Qt,s?n&1|2:n&1),xt&&Yn(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Le(e),or(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&Eo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&U(ni),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Gn(Zt),_t(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function Iv(t,e){switch(ku(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Gn(Zt),Ot(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return le(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(u(340));Ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Qt),null;case 4:return Ot(),null;case 10:return Gn(e.type),null;case 22:case 23:return Le(e),or(),t!==null&&U(ni),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Gn(Zt),null;case 25:return null;default:return null}}function am(t,e){switch(ku(e),e.tag){case 3:Gn(Zt),Ot();break;case 26:case 27:case 5:le(e);break;case 4:Ot();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:U(Qt);break;case 10:Gn(e.type);break;case 22:case 23:Le(e),or(),t!==null&&U(ni);break;case 24:Gn(Zt)}}function Wl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&t)===t){a=void 0;var r=n.create,f=n.inst;a=r(),f.destroy=a}n=n.next}while(n!==s)}}catch(y){Mt(e,e.return,y)}}function Ta(t,e,n){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,s=e;var S=n,j=y;try{j()}catch(_){Mt(s,S,_)}}}a=a.next}while(a!==r)}}catch(_){Mt(e,e.return,_)}}function im(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Jh(e,n)}catch(a){Mt(t,t.return,a)}}}function lm(t,e,n){n.props=oi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(t,e,a)}}function $l(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(s){Mt(t,e,s)}}function Sn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Mt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Mt(t,e,s)}else n.current=null}function sm(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Mt(t,t.return,s)}}function Hr(t,e,n){try{var a=t.stateNode;Sx(a,t.type,n,e),a[ne]=e}catch(s){Mt(t,t.return,s)}}function om(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Na(t.type)||t.tag===4}function Yr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||om(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&&Na(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 qr(t,e,n){var a=t.tag;if(a===5||a===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=It));else if(a!==4&&(a===27&&Na(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(qr(t,e,n),t=t.sibling;t!==null;)qr(t,e,n),t=t.sibling}function wo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Na(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(wo(t,e,n),t=t.sibling;t!==null;)wo(t,e,n),t=t.sibling}function um(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);ce(e,a,n),e[Lt]=t,e[ne]=n}catch(r){Mt(t,t.return,r)}}var Zn=!1,Pt=!1,Gr=!1,rm=typeof WeakSet=="function"?WeakSet:Set,ae=null;function tx(t,e){if(t=t.containerInfo,rc=ko,t=Sh(t),_u(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,y=-1,S=-1,j=0,_=0,L=t,N=null;e:for(;;){for(var O;L!==n||s!==0&&L.nodeType!==3||(y=f+s),L!==r||a!==0&&L.nodeType!==3||(S=f+a),L.nodeType===3&&(f+=L.nodeValue.length),(O=L.firstChild)!==null;)N=L,L=O;for(;;){if(L===t)break e;if(N===n&&++j===s&&(y=f),N===r&&++_===a&&(S=f),(O=L.nextSibling)!==null)break;L=N,N=L.parentNode}L=O}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(cc={focusedElem:t,selectionRange:n},ko=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,r=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++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,s=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var $=oi(n.type,s);t=a.getSnapshotBeforeUpdate($,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Mt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)dc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":dc(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(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function cm(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Fn(t,n),a&4&&Wl(5,n);break;case 1:if(Fn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var s=oi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&im(n),a&512&&$l(n,n.return);break;case 3:if(Fn(t,n),a&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{Jh(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&um(n);case 26:case 5:Fn(t,n),e===null&&a&4&&sm(n),a&512&&$l(n,n.return);break;case 12:Fn(t,n);break;case 31:Fn(t,n),a&4&&dm(t,n);break;case 13:Fn(t,n),a&4&&mm(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=rx.bind(null,n),Nx(t,n))));break;case 22:if(a=n.memoizedState!==null||Zn,!a){e=e!==null&&e.memoizedState!==null||Pt,s=Zn;var r=Pt;Zn=a,(Pt=e)&&!r?Pn(t,n,(n.subtreeFlags&8772)!==0):Fn(t,n),Zn=s,Pt=r}break;case 30:break;default:Fn(t,n)}}function fm(t){var e=t.alternate;e!==null&&(t.alternate=null,fm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ka(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 Ut=null,Me=!1;function Jn(t,e,n){for(n=n.child;n!==null;)hm(t,e,n),n=n.sibling}function hm(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(se,n)}catch{}switch(n.tag){case 26:Pt||Sn(n,e),Jn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pt||Sn(n,e);var a=Ut,s=Me;Na(n.type)&&(Ut=n.stateNode,Me=!1),Jn(t,e,n),os(n.stateNode),Ut=a,Me=s;break;case 5:Pt||Sn(n,e);case 6:if(a=Ut,s=Me,Ut=null,Jn(t,e,n),Ut=a,Me=s,Ut!==null)if(Me)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(r){Mt(n,e,r)}else try{Ut.removeChild(n.stateNode)}catch(r){Mt(n,e,r)}break;case 18:Ut!==null&&(Me?(t=Ut,ip(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),nl(t)):ip(Ut,n.stateNode));break;case 4:a=Ut,s=Me,Ut=n.stateNode.containerInfo,Me=!0,Jn(t,e,n),Ut=a,Me=s;break;case 0:case 11:case 14:case 15:Ta(2,n,e),Pt||Ta(4,n,e),Jn(t,e,n);break;case 1:Pt||(Sn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&lm(n,e,a)),Jn(t,e,n);break;case 21:Jn(t,e,n);break;case 22:Pt=(a=Pt)||n.memoizedState!==null,Jn(t,e,n),Pt=a;break;default:Jn(t,e,n)}}function dm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{nl(t)}catch(n){Mt(e,e.return,n)}}}function mm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{nl(t)}catch(n){Mt(e,e.return,n)}}function ex(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new rm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new rm),e;default:throw Error(u(435,t.tag))}}function Co(t,e){var n=ex(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=cx.bind(null,t,a);a.then(s,s)}})}function je(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],r=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(Na(y.type)){Ut=y.stateNode,Me=!1;break t}break;case 5:Ut=y.stateNode,Me=!1;break t;case 3:case 4:Ut=y.stateNode.containerInfo,Me=!0;break t}y=y.return}if(Ut===null)throw Error(u(160));hm(r,f,s),Ut=null,Me=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)pm(e,t),e=e.sibling}var cn=null;function pm(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:je(e,t),Ne(t),a&4&&(Ta(3,t,t.return),Wl(3,t),Ta(5,t,t.return));break;case 1:je(e,t),Ne(t),a&512&&(Pt||n===null||Sn(n,n.return)),a&64&&Zn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=cn;if(je(e,t),Ne(t),a&512&&(Pt||n===null||Sn(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(a){case"title":r=s.getElementsByTagName("title")[0],(!r||r[On]||r[Lt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(a),s.head.insertBefore(r,s.querySelector("head > title"))),ce(r,a,n),r[Lt]=t,Yt(r),a=r;break t;case"link":var f=pp("link","href",s).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break e}}r=s.createElement(a),ce(r,a,n),s.head.appendChild(r);break;case"meta":if(f=pp("meta","content",s).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break e}}r=s.createElement(a),ce(r,a,n),s.head.appendChild(r);break;default:throw Error(u(468,a))}r[Lt]=t,Yt(r),a=r}t.stateNode=a}else yp(s,t.type,t.stateNode);else t.stateNode=mp(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?yp(s,t.type,t.stateNode):mp(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Hr(t,t.memoizedProps,n.memoizedProps)}break;case 27:je(e,t),Ne(t),a&512&&(Pt||n===null||Sn(n,n.return)),n!==null&&a&4&&Hr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(je(e,t),Ne(t),a&512&&(Pt||n===null||Sn(n,n.return)),t.flags&32){s=t.stateNode;try{Un(s,"")}catch($){Mt(t,t.return,$)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,Hr(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Gr=!0);break;case 6:if(je(e,t),Ne(t),a&4){if(t.stateNode===null)throw Error(u(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch($){Mt(t,t.return,$)}}break;case 3:if(Go=null,s=cn,cn=Yo(e.containerInfo),je(e,t),cn=s,Ne(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{nl(e.containerInfo)}catch($){Mt(t,t.return,$)}Gr&&(Gr=!1,ym(t));break;case 4:a=cn,cn=Yo(t.stateNode.containerInfo),je(e,t),Ne(t),cn=a;break;case 12:je(e,t),Ne(t);break;case 31:je(e,t),Ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Co(t,a)));break;case 13:je(e,t),Ne(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(jo=he()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Co(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,j=Zn,_=Pt;if(Zn=j||s,Pt=_||S,je(e,t),Pt=_,Zn=j,Ne(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||Zn||Pt||ui(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(r=S.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=S.stateNode;var L=S.memoizedProps.style,N=L!=null&&L.hasOwnProperty("display")?L.display:null;y.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch($){Mt(S,S.return,$)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch($){Mt(S,S.return,$)}}}else if(e.tag===18){if(n===null){S=e;try{var O=S.stateNode;s?lp(O,!0):lp(S.stateNode,!1)}catch($){Mt(S,S.return,$)}}}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}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Co(t,n))));break;case 19:je(e,t),Ne(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Co(t,a)));break;case 30:break;case 21:break;default:je(e,t),Ne(t)}}function Ne(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(om(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,r=Yr(t);wo(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(Un(f,""),n.flags&=-33);var y=Yr(t);wo(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,j=Yr(t);qr(t,j,S);break;default:throw Error(u(161))}}catch(_){Mt(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ym(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ym(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)cm(t,e.alternate,e),e=e.sibling}function ui(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ta(4,e,e.return),ui(e);break;case 1:Sn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&lm(e,e.return,n),ui(e);break;case 27:os(e.stateNode);case 26:case 5:Sn(e,e.return),ui(e);break;case 22:e.memoizedState===null&&ui(e);break;case 30:ui(e);break;default:ui(e)}t=t.sibling}}function Pn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:Pn(s,r,n),Wl(4,r);break;case 1:if(Pn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(j){Mt(a,a.return,j)}if(a=r,s=a.updateQueue,s!==null){var y=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Zh(S[s],y)}catch(j){Mt(a,a.return,j)}}n&&f&64&&im(r),$l(r,r.return);break;case 27:um(r);case 26:case 5:Pn(s,r,n),n&&a===null&&f&4&&sm(r),$l(r,r.return);break;case 12:Pn(s,r,n);break;case 31:Pn(s,r,n),n&&f&4&&dm(s,r);break;case 13:Pn(s,r,n),n&&f&4&&mm(s,r);break;case 22:r.memoizedState===null&&Pn(s,r,n),$l(r,r.return);break;case 30:break;default:Pn(s,r,n)}e=e.sibling}}function Xr(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&&Ll(n))}function Kr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ll(t))}function fn(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gm(t,e,n,a),e=e.sibling}function gm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:fn(t,e,n,a),s&2048&&Wl(9,e);break;case 1:fn(t,e,n,a);break;case 3:fn(t,e,n,a),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ll(t)));break;case 12:if(s&2048){fn(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Mt(e,e.return,S)}}else fn(t,e,n,a);break;case 31:fn(t,e,n,a);break;case 13:fn(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?fn(t,e,n,a):Il(t,e):r._visibility&2?fn(t,e,n,a):(r._visibility|=2,Qi(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Xr(f,e);break;case 24:fn(t,e,n,a),s&2048&&Kr(e.alternate,e);break;default:fn(t,e,n,a)}}function Qi(t,e,n,a,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,y=n,S=a,j=f.flags;switch(f.tag){case 0:case 11:case 15:Qi(r,f,y,S,s),Wl(8,f);break;case 23:break;case 22:var _=f.stateNode;f.memoizedState!==null?_._visibility&2?Qi(r,f,y,S,s):Il(r,f):(_._visibility|=2,Qi(r,f,y,S,s)),s&&j&2048&&Xr(f.alternate,f);break;case 24:Qi(r,f,y,S,s),s&&j&2048&&Kr(f.alternate,f);break;default:Qi(r,f,y,S,s)}e=e.sibling}}function Il(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,s=a.flags;switch(a.tag){case 22:Il(n,a),s&2048&&Xr(a.alternate,a);break;case 24:Il(n,a),s&2048&&Kr(a.alternate,a);break;default:Il(n,a)}e=e.sibling}}var ts=8192;function ki(t,e,n){if(t.subtreeFlags&ts)for(t=t.child;t!==null;)vm(t,e,n),t=t.sibling}function vm(t,e,n){switch(t.tag){case 26:ki(t,e,n),t.flags&ts&&t.memoizedState!==null&&qx(n,cn,t.memoizedState,t.memoizedProps);break;case 5:ki(t,e,n);break;case 3:case 4:var a=cn;cn=Yo(t.stateNode.containerInfo),ki(t,e,n),cn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ts,ts=16777216,ki(t,e,n),ts=a):ki(t,e,n));break;default:ki(t,e,n)}}function xm(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 es(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ae=a,Sm(a,t)}xm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bm(t),t=t.sibling}function bm(t){switch(t.tag){case 0:case 11:case 15:es(t),t.flags&2048&&Ta(9,t,t.return);break;case 3:es(t);break;case 12:es(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Mo(t)):es(t);break;default:es(t)}}function Mo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];ae=a,Sm(a,t)}xm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ta(8,e,e.return),Mo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Mo(e));break;default:Mo(e)}t=t.sibling}}function Sm(t,e){for(;ae!==null;){var n=ae;switch(n.tag){case 0:case 11:case 15:Ta(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ll(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ae=a;else t:for(n=t;ae!==null;){a=ae;var s=a.sibling,r=a.return;if(fm(a),a===n){ae=null;break t}if(s!==null){s.return=r,ae=s;break t}ae=r}}}var nx={getCacheForType:function(t){var e=ue(Zt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ue(Zt).controller.signal}},ax=typeof WeakMap=="function"?WeakMap:Map,Et=0,zt=null,mt=null,yt=0,Ct=0,He=null,Aa=!1,Zi=!1,Qr=!1,Wn=0,Gt=0,Ea=0,ri=0,kr=0,Ye=0,Ji=0,ns=null,De=null,Zr=!1,jo=0,Tm=0,No=1/0,Do=null,wa=null,te=0,Ca=null,Fi=null,$n=0,Jr=0,Fr=null,Am=null,as=0,Pr=null;function qe(){return(Et&2)!==0&&yt!==0?yt&-yt:R.T!==null?nc():la()}function Em(){if(Ye===0)if((yt&536870912)===0||xt){var t=jn;jn<<=1,(jn&3932160)===0&&(jn=262144),Ye=t}else Ye=536870912;return t=Be.current,t!==null&&(t.flags|=32),Ye}function Oe(t,e,n){(t===zt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(Pi(t,0),Ma(t,yt,Ye,!1)),Ee(t,n),((Et&2)===0||t!==zt)&&(t===zt&&((Et&2)===0&&(ri|=n),Gt===4&&Ma(t,yt,Ye,!1)),Tn(t))}function wm(t,e,n){if((Et&6)!==0)throw Error(u(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ae(t,e),s=a?sx(t,e):$r(t,e,!0),r=a;do{if(s===0){Zi&&!a&&Ma(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!ix(n)){s=$r(t,e,!1),r=!1;continue}if(s===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;s=ns;var S=y.current.memoizedState.isDehydrated;if(S&&(Pi(y,f).flags|=256),f=$r(y,f,!1),f!==2){if(Qr&&!S){y.errorRecoveryDisabledLanes|=r,ri|=r,s=4;break t}r=De,De=s,r!==null&&(De===null?De=r:De.push.apply(De,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Pi(t,0),Ma(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:Ma(a,e,Ye,!Aa);break t;case 2:De=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(s=jo+300-he(),10<s)){if(Ma(a,e,Ye,!Aa),qa(a,0,!0)!==0)break t;$n=e,a.timeoutHandle=np(Cm.bind(null,a,n,De,Do,Zr,e,Ye,ri,Ji,Aa,r,"Throttled",-0,0),s);break t}Cm(a,n,De,Do,Zr,e,Ye,ri,Ji,Aa,r,null,-0,0)}}break}while(!0);Tn(t)}function Cm(t,e,n,a,s,r,f,y,S,j,_,L,N,O){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},vm(e,r,L);var $=(r&62914560)===r?jo-he():(r&4194048)===r?Tm-he():0;if($=Gx(L,$),$!==null){$n=r,t.cancelPendingCommit=$(Vm.bind(null,t,e,r,n,a,s,f,y,S,_,L,null,N,O)),Ma(t,r,f,!j);return}}Vm(t,e,r,n,a,s,f,y,S)}function ix(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 a=0;a<n.length;a++){var s=n[a],r=s.getSnapshot;s=s.value;try{if(!_e(r(),s))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 Ma(t,e,n,a){e&=~kr,e&=~ri,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-ge(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&Si(t,n,e)}function Oo(){return(Et&6)===0?(is(0),!1):!0}function Wr(){if(mt!==null){if(Ct===0)var t=mt.return;else t=mt,qn=ti=null,dr(t),Yi=null,Yl=0,t=mt;for(;t!==null;)am(t.alternate,t),t=t.return;mt=null}}function Pi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Ex(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),$n=0,Wr(),zt=t,mt=n=Hn(t.current,null),yt=e,Ct=0,He=null,Aa=!1,Zi=Ae(t,e),Qr=!1,Ji=Ye=kr=ri=Ea=Gt=0,De=ns=null,Zr=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var s=31-ge(a),r=1<<s;e|=t[s],a&=~r}return Wn=e,Ws(),n}function Mm(t,e){ct=null,R.H=Jl,e===Hi||e===lo?(e=Xh(),Ct=3):e===er?(e=Xh(),Ct=4):Ct=e===Nr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,He=e,mt===null&&(Gt=1,bo(t,Fe(e,t.current)))}function jm(){var t=Be.current;return t===null?!0:(yt&4194048)===yt?Ie===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Ie:!1}function Nm(){var t=R.H;return R.H=Jl,t===null?Jl:t}function Dm(){var t=R.A;return R.A=nx,t}function zo(){Gt=4,Aa||(yt&4194048)!==yt&&Be.current!==null||(Zi=!0),(Ea&134217727)===0&&(ri&134217727)===0||zt===null||Ma(zt,yt,Ye,!1)}function $r(t,e,n){var a=Et;Et|=2;var s=Nm(),r=Dm();(zt!==t||yt!==e)&&(Do=null,Pi(t,e)),e=!1;var f=Gt;t:do try{if(Ct!==0&&mt!==null){var y=mt,S=He;switch(Ct){case 8:Wr(),f=6;break t;case 3:case 2:case 9:case 6:Be.current===null&&(e=!0);var j=Ct;if(Ct=0,He=null,Wi(t,y,S,j),n&&Zi){f=0;break t}break;default:j=Ct,Ct=0,He=null,Wi(t,y,S,j)}}lx(),f=Gt;break}catch(_){Mm(t,_)}while(!0);return e&&t.shellSuspendCounter++,qn=ti=null,Et=a,R.H=s,R.A=r,mt===null&&(zt=null,yt=0,Ws()),f}function lx(){for(;mt!==null;)Om(mt)}function sx(t,e){var n=Et;Et|=2;var a=Nm(),s=Dm();zt!==t||yt!==e?(Do=null,No=he()+500,Pi(t,e)):Zi=Ae(t,e);t:do try{if(Ct!==0&&mt!==null){e=mt;var r=He;e:switch(Ct){case 1:Ct=0,He=null,Wi(t,e,r,1);break;case 2:case 9:if(qh(r)){Ct=0,He=null,zm(e);break}e=function(){Ct!==2&&Ct!==9||zt!==t||(Ct=7),Tn(t)},r.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:qh(r)?(Ct=0,He=null,zm(e)):(Ct=0,He=null,Wi(t,e,r,7));break;case 5:var f=null;switch(mt.tag){case 26:f=mt.memoizedState;case 5:case 27:var y=mt;if(f?gp(f):y.stateNode.complete){Ct=0,He=null;var S=y.sibling;if(S!==null)mt=S;else{var j=y.return;j!==null?(mt=j,Ro(j)):mt=null}break e}}Ct=0,He=null,Wi(t,e,r,5);break;case 6:Ct=0,He=null,Wi(t,e,r,6);break;case 8:Wr(),Gt=6;break t;default:throw Error(u(462))}}ox();break}catch(_){Mm(t,_)}while(!0);return qn=ti=null,R.H=a,R.A=s,Et=n,mt!==null?0:(zt=null,yt=0,Ws(),Gt)}function ox(){for(;mt!==null&&!gl();)Om(mt)}function Om(t){var e=em(t.alternate,t,Wn);t.memoizedProps=t.pendingProps,e===null?Ro(t):mt=e}function zm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Fd(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Fd(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:dr(e);default:am(n,e),e=mt=Dh(e,Wn),e=em(n,e,Wn)}t.memoizedProps=t.pendingProps,e===null?Ro(t):mt=e}function Wi(t,e,n,a){qn=ti=null,dr(e),Yi=null,Yl=0;var s=e.return;try{if(Fv(t,s,e,n,yt)){Gt=1,bo(t,Fe(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Gt=1,bo(t,Fe(n,t.current)),mt=null;return}e.flags&32768?(xt||a===1?t=!0:Zi||(yt&536870912)!==0?t=!1:(Aa=t=!0,(a===2||a===9||a===3||a===6)&&(a=Be.current,a!==null&&a.tag===13&&(a.flags|=16384))),Rm(e,t)):Ro(e)}function Ro(t){var e=t;do{if((e.flags&32768)!==0){Rm(e,Aa);return}t=e.return;var n=$v(e.alternate,e,Wn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Rm(t,e){do{var n=Iv(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Gt=6,mt=null}function Vm(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do Vo();while(te!==0);if((Et&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(r=e.lanes|e.childLanes,r|=Yu,gn(t,n,r,f,y,S),t===zt&&(mt=zt=null,yt=0),Fi=e,Ca=t,$n=n,Jr=r,Fr=s,Am=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,fx(Ha,function(){return Hm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,s=H.p,H.p=2,f=Et,Et|=4;try{tx(t,e,n)}finally{Et=f,H.p=s,R.T=a}}te=1,_m(),Um(),Bm()}}function _m(){if(te===1){te=0;var t=Ca,e=Fi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=Et;Et|=4;try{pm(e,t);var r=cc,f=Sh(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&bh(y.ownerDocument.documentElement,y)){if(S!==null&&_u(y)){var j=S.start,_=S.end;if(_===void 0&&(_=j),"selectionStart"in y)y.selectionStart=j,y.selectionEnd=Math.min(_,y.value.length);else{var L=y.ownerDocument||document,N=L&&L.defaultView||window;if(N.getSelection){var O=N.getSelection(),$=y.textContent.length,it=Math.min(S.start,$),Dt=S.end===void 0?it:Math.min(S.end,$);!O.extend&&it>Dt&&(f=Dt,Dt=it,it=f);var w=xh(y,it),A=xh(y,Dt);if(w&&A&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==A.node||O.focusOffset!==A.offset)){var C=L.createRange();C.setStart(w.node,w.offset),O.removeAllRanges(),it>Dt?(O.addRange(C),O.extend(A.node,A.offset)):(C.setEnd(A.node,A.offset),O.addRange(C))}}}}for(L=[],O=y;O=O.parentNode;)O.nodeType===1&&L.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<L.length;y++){var B=L[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ko=!!rc,cc=rc=null}finally{Et=s,H.p=a,R.T=n}}t.current=e,te=2}}function Um(){if(te===2){te=0;var t=Ca,e=Fi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=H.p;H.p=2;var s=Et;Et|=4;try{cm(t,e.alternate,e)}finally{Et=s,H.p=a,R.T=n}}te=3}}function Bm(){if(te===4||te===3){te=0,zs();var t=Ca,e=Fi,n=$n,a=Am;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,Fi=Ca=null,Lm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(wa=null),Ti(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(se,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=R.T,s=H.p,H.p=2,R.T=null;try{for(var r=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];r(y.value,{componentStack:y.stack})}}finally{R.T=e,H.p=s}}($n&3)!==0&&Vo(),Tn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Pr?as++:(as=0,Pr=t):as=0,is(0)}}function Lm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ll(e)))}function Vo(){return _m(),Um(),Bm(),Hm()}function Hm(){if(te!==5)return!1;var t=Ca,e=Jr;Jr=0;var n=Ti($n),a=R.T,s=H.p;try{H.p=32>n?32:n,R.T=null,n=Fr,Fr=null;var r=Ca,f=$n;if(te=0,Fi=Ca=null,$n=0,(Et&6)!==0)throw Error(u(331));var y=Et;if(Et|=4,bm(r.current),gm(r,r.current,f,n),Et=y,is(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(se,r)}catch{}return!0}finally{H.p=s,R.T=a,Lm(t,e)}}function Ym(t,e,n){e=Fe(n,e),e=jr(t.stateNode,e,2),t=xa(t,e,2),t!==null&&(Ee(t,2),Tn(t))}function Mt(t,e,n){if(t.tag===3)Ym(t,t,n);else for(;e!==null;){if(e.tag===3){Ym(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(wa===null||!wa.has(a))){t=Fe(n,t),n=qd(2),a=xa(e,n,2),a!==null&&(Gd(n,a,e,t),Ee(a,2),Tn(a));break}}e=e.return}}function Ir(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new ax;var s=new Set;a.set(e,s)}else s=a.get(e),s===void 0&&(s=new Set,a.set(e,s));s.has(n)||(Qr=!0,s.add(n),t=ux.bind(null,t,e,n),e.then(t,t))}function ux(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(yt&n)===n&&(Gt===4||Gt===3&&(yt&62914560)===yt&&300>he()-jo?(Et&2)===0&&Pi(t,0):kr|=n,Ji===yt&&(Ji=0)),Tn(t)}function qm(t,e){e===0&&(e=Qe()),t=Wa(t,e),t!==null&&(Ee(t,e),Tn(t))}function rx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),qm(t,n)}function cx(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(e),qm(t,n)}function fx(t,e){return gi(t,e)}var _o=null,$i=null,tc=!1,Uo=!1,ec=!1,ja=0;function Tn(t){t!==$i&&t.next===null&&($i===null?_o=$i=t:$i=$i.next=t),Uo=!0,tc||(tc=!0,dx())}function is(t,e){if(!ec&&Uo){ec=!0;do for(var n=!1,a=_o;a!==null;){if(t!==0){var s=a.pendingLanes;if(s===0)var r=0;else{var f=a.suspendedLanes,y=a.pingedLanes;r=(1<<31-ge(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Qm(a,r))}else r=yt,r=qa(a,a===zt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||Ae(a,r)||(n=!0,Qm(a,r));a=a.next}while(n);ec=!1}}function hx(){Gm()}function Gm(){Uo=tc=!1;var t=0;ja!==0&&Ax()&&(t=ja);for(var e=he(),n=null,a=_o;a!==null;){var s=a.next,r=Xm(a,e);r===0?(a.next=null,n===null?_o=s:n.next=s,s===null&&($i=n)):(n=a,(t!==0||(r&3)!==0)&&(Uo=!0)),a=s}te!==0&&te!==5||is(t),ja!==0&&(ja=0)}function Xm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ge(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Us(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=zt,n=yt,n=qa(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ke(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ae(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ke(a),Ti(n)){case 2:case 8:n=de;break;case 32:n=Ha;break;case 268435456:n=vl;break;default:n=Ha}return a=Km.bind(null,t),n=gi(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ke(a),t.callbackPriority=2,t.callbackNode=null,2}function Km(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Vo()&&t.callbackNode!==n)return null;var a=yt;return a=qa(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(wm(t,a,e),Xm(t,he()),t.callbackNode!=null&&t.callbackNode===n?Km.bind(null,t):null)}function Qm(t,e){if(Vo())return null;wm(t,e,!0)}function dx(){wx(function(){(Et&6)!==0?gi(Rs,hx):Gm()})}function nc(){if(ja===0){var t=Bi;t===0&&(t=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),ja=t}return ja}function km(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ci(""+t)}function Zm(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 mx(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=km((s[ne]||null).action),f=a.submitter;f&&(e=(e=f[ne]||null)?km(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new Zs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ja!==0){var S=f?Zm(s,f):new FormData(s);Tr(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?Zm(s,f):new FormData(s),Tr(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var ac=0;ac<Hu.length;ac++){var ic=Hu[ac],px=ic.toLowerCase(),yx=ic[0].toUpperCase()+ic.slice(1);rn(px,"on"+yx)}rn(Eh,"onAnimationEnd"),rn(wh,"onAnimationIteration"),rn(Ch,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(zv,"onTransitionRun"),rn(Rv,"onTransitionStart"),rn(Vv,"onTransitionCancel"),rn(Mh,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ls="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(" "),gx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ls));function Jm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],s=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],S=y.instance,j=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=j;try{r(s)}catch(_){Ps(_)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,j=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=j;try{r(s)}catch(_){Ps(_)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[Ai];n===void 0&&(n=e[Ai]=new Set);var a=t+"__bubble";n.has(a)||(Fm(e,t,2,!1),n.add(a))}function lc(t,e,n){var a=0;e&&(a|=4),Fm(n,t,a,e)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function sc(t){if(!t[Bo]){t[Bo]=!0,bl.forEach(function(n){n!=="selectionchange"&&(gx.has(n)||lc(n,!1,t),lc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Bo]||(e[Bo]=!0,lc("selectionchange",!1,e))}}function Fm(t,e,n,a){switch(Ep(e)){case 2:var s=Qx;break;case 8:s=kx;break;default:s=Sc}n=s.bind(null,e,n,t),s=void 0,!Cu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),a?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function oc(t,e,n,a,s){var r=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===s)break;if(f===4)for(f=a.return;f!==null;){var S=f.tag;if((S===3||S===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;y!==null;){if(f=zn(y),f===null)return;if(S=f.tag,S===5||S===6||S===26||S===27){a=r=f;continue t}y=y.parentNode}}a=a.return}Za(function(){var j=r,_=M(n),L=[];t:{var N=jh.get(t);if(N!==void 0){var O=Zs,$=t;switch(t){case"keypress":if(Qs(n)===0)break t;case"keydown":case"keyup":O=cv;break;case"focusin":$="focus",O=Du;break;case"focusout":$="blur",O=Du;break;case"beforeblur":case"afterblur":O=Du;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":O=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=dv;break;case Eh:case wh:case Ch:O=ev;break;case Mh:O=pv;break;case"scroll":case"scrollend":O=Pg;break;case"wheel":O=gv;break;case"copy":case"cut":case"paste":O=av;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=lh;break;case"toggle":case"beforetoggle":O=xv}var it=(e&4)!==0,Dt=!it&&(t==="scroll"||t==="scrollend"),w=it?N!==null?N+"Capture":null:N;it=[];for(var A=j,C;A!==null;){var B=A;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||w===null||(B=Ml(A,w),B!=null&&it.push(ss(A,B,C))),Dt)break;A=A.return}0<it.length&&(N=new O(N,$,null,n,_),L.push({event:N,listeners:it}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",N&&n!==Mi&&($=n.relatedTarget||n.fromElement)&&(zn($)||$[Dn]))break t;if((O||N)&&(N=_.window===_?_:(N=_.ownerDocument)?N.defaultView||N.parentWindow:window,O?($=n.relatedTarget||n.toElement,O=j,$=$?zn($):null,$!==null&&(Dt=d($),it=$.tag,$!==Dt||it!==5&&it!==27&&it!==6)&&($=null)):(O=null,$=j),O!==$)){if(it=ah,B="onMouseLeave",w="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(it=lh,B="onPointerLeave",w="onPointerEnter",A="pointer"),Dt=O==null?N:Rn(O),C=$==null?N:Rn($),N=new it(B,A+"leave",O,n,_),N.target=Dt,N.relatedTarget=C,B=null,zn(_)===j&&(it=new it(w,A+"enter",$,n,_),it.target=C,it.relatedTarget=Dt,B=it),Dt=B,O&&$)e:{for(it=vx,w=O,A=$,C=0,B=w;B;B=it(B))C++;B=0;for(var nt=A;nt;nt=it(nt))B++;for(;0<C-B;)w=it(w),C--;for(;0<B-C;)A=it(A),B--;for(;C--;){if(w===A||A!==null&&w===A.alternate){it=w;break e}w=it(w),A=it(A)}it=null}else it=null;O!==null&&Pm(L,N,O,it,!1),$!==null&&Dt!==null&&Pm(L,Dt,$,it,!0)}}t:{if(N=j?Rn(j):window,O=N.nodeName&&N.nodeName.toLowerCase(),O==="select"||O==="input"&&N.type==="file")var St=dh;else if(fh(N))if(mh)St=Nv;else{St=Mv;var et=Cv}else O=N.nodeName,!O||O.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Ve(j.elementType)&&(St=dh):St=jv;if(St&&(St=St(t,j))){hh(L,St,n,_);break t}et&&et(t,N,j),t==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&wl(N,"number",N.value)}switch(et=j?Rn(j):window,t){case"focusin":(fh(et)||et.contentEditable==="true")&&(Ni=et,Uu=j,_l=null);break;case"focusout":_l=Uu=Ni=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Th(L,n,_);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":Th(L,n,_)}var ft;if(zu)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else ji?rh(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(sh&&n.locale!=="ko"&&(ji||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&ji&&(ft=eh()):(ha=_,Mu="value"in ha?ha.value:ha.textContent,ji=!0)),et=Lo(j,gt),0<et.length&&(gt=new ih(gt,t,null,n,_),L.push({event:gt,listeners:et}),ft?gt.data=ft:(ft=ch(n),ft!==null&&(gt.data=ft)))),(ft=Sv?Tv(t,n):Av(t,n))&&(gt=Lo(j,"onBeforeInput"),0<gt.length&&(et=new ih("onBeforeInput","beforeinput",null,n,_),L.push({event:et,listeners:gt}),et.data=ft)),mx(L,t,j,n,_)}Jm(L,e)})}function ss(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Lo(t,e){for(var n=e+"Capture",a=[];t!==null;){var s=t,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Ml(t,n),s!=null&&a.unshift(ss(t,s,r)),s=Ml(t,e),s!=null&&a.push(ss(t,s,r))),t.tag===3)return a;t=t.return}return[]}function vx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Pm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,j=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||j===null||(S=j,s?(j=Ml(n,r),j!=null&&f.unshift(ss(n,j,S))):s||(j=Ml(n,r),j!=null&&f.push(ss(n,j,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var xx=/\r\n?/g,bx=/\u0000|\uFFFD/g;function Wm(t){return(typeof t=="string"?t:""+t).replace(xx,`
|
|
9
|
-
`).replace(bx,"")}function $m(t,e){return e=Wm(e),Wm(t)===e}function Nt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Un(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Un(t,""+a);break;case"className":Ze(t,"class",a);break;case"tabIndex":Ze(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ze(t,n,a);break;case"style":Bn(t,a,r);break;case"data":if(e!=="object"){Ze(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ci(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 r=="function"&&(n==="formAction"?(e!=="input"&&Nt(t,e,"name",s.name,s,null),Nt(t,e,"formEncType",s.formEncType,s,null),Nt(t,e,"formMethod",s.formMethod,s,null),Nt(t,e,"formTarget",s.formTarget,s,null)):(Nt(t,e,"encType",s.encType,s,null),Nt(t,e,"method",s.method,s,null),Nt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ci(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=It);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Ci(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":pt("beforetoggle",t),pt("toggle",t),ra(t,"popover",a);break;case"xlinkActuate":Re(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Re(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Re(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Re(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Re(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Re(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Re(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Re(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Re(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ra(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=wu.get(n)||n,ra(t,n,a))}}function uc(t,e,n,a,s,r){switch(n){case"style":Bn(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Un(t,a):(typeof a=="number"||typeof a=="bigint")&&Un(t,""+a);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qa.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),r=t[ne]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,s);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):ra(t,n,a)}}}function ce(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var a=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Nt(t,e,r,f,n,null)}}s&&Nt(t,e,"srcSet",n.srcSet,n,null),a&&Nt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,j=null;for(a in n)if(n.hasOwnProperty(a)){var _=n[a];if(_!=null)switch(a){case"name":s=_;break;case"type":f=_;break;case"checked":S=_;break;case"defaultChecked":j=_;break;case"value":r=_;break;case"defaultValue":y=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,e));break;default:Nt(t,e,a,_,n,null)}}El(t,r,y,S,j,f,s,!1);return;case"select":pt("invalid",t),a=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:Nt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?ca(t,!!a,e,!1):n!=null&&ca(t,!!a,n,!0);return;case"textarea":pt("invalid",t),r=s=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":s=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(u(91));break;default:Nt(t,e,f,y,n,null)}qs(t,a,s,r);return;case"option":for(S in n)n.hasOwnProperty(S)&&(a=n[S],a!=null)&&(S==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Nt(t,e,S,a,n,null));return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<ls.length;a++)pt(ls[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(j in n)if(n.hasOwnProperty(j)&&(a=n[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Nt(t,e,j,a,n,null)}return;default:if(Ve(e)){for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!==void 0&&uc(t,e,_,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Nt(t,e,y,a,n,null))}function Sx(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,r=null,f=null,y=null,S=null,j=null,_=null;for(O in n){var L=n[O];if(n.hasOwnProperty(O)&&L!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":S=L;default:a.hasOwnProperty(O)||Nt(t,e,O,null,a,L)}}for(var N in a){var O=a[N];if(L=n[N],a.hasOwnProperty(N)&&(O!=null||L!=null))switch(N){case"type":r=O;break;case"name":s=O;break;case"checked":j=O;break;case"defaultChecked":_=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,e));break;default:O!==L&&Nt(t,e,N,O,a,L)}}Al(t,f,y,S,j,_,r,s);return;case"select":O=f=y=N=null;for(r in n)if(S=n[r],n.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":O=S;default:a.hasOwnProperty(r)||Nt(t,e,r,null,a,S)}for(s in a)if(r=a[s],S=n[s],a.hasOwnProperty(s)&&(r!=null||S!=null))switch(s){case"value":N=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==S&&Nt(t,e,s,r,a,S)}e=y,n=f,a=O,N!=null?ca(t,!!n,N,!1):!!a!=!!n&&(e!=null?ca(t,!!n,e,!0):ca(t,!!n,n?[]:"",!1));return;case"textarea":O=N=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Nt(t,e,y,null,a,s)}for(f in a)if(s=a[f],r=n[f],a.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":N=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==r&&Nt(t,e,f,s,a,r)}Ys(t,N,O);return;case"option":for(var $ in n)N=n[$],n.hasOwnProperty($)&&N!=null&&!a.hasOwnProperty($)&&($==="selected"?t.selected=!1:Nt(t,e,$,null,a,N));for(S in a)N=a[S],O=n[S],a.hasOwnProperty(S)&&N!==O&&(N!=null||O!=null)&&(S==="selected"?t.selected=N&&typeof N!="function"&&typeof N!="symbol":Nt(t,e,S,N,a,O));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var it in n)N=n[it],n.hasOwnProperty(it)&&N!=null&&!a.hasOwnProperty(it)&&Nt(t,e,it,null,a,N);for(j in a)if(N=a[j],O=n[j],a.hasOwnProperty(j)&&N!==O&&(N!=null||O!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,e));break;default:Nt(t,e,j,N,a,O)}return;default:if(Ve(e)){for(var Dt in n)N=n[Dt],n.hasOwnProperty(Dt)&&N!==void 0&&!a.hasOwnProperty(Dt)&&uc(t,e,Dt,void 0,a,N);for(_ in a)N=a[_],O=n[_],!a.hasOwnProperty(_)||N===O||N===void 0&&O===void 0||uc(t,e,_,N,a,O);return}}for(var w in n)N=n[w],n.hasOwnProperty(w)&&N!=null&&!a.hasOwnProperty(w)&&Nt(t,e,w,null,a,N);for(L in a)N=a[L],O=n[L],!a.hasOwnProperty(L)||N===O||N==null&&O==null||Nt(t,e,L,N,a,O)}function Im(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],r=s.transferSize,f=s.initiatorType,y=s.duration;if(r&&y&&Im(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],j=S.startTime;if(j>y)break;var _=S.transferSize,L=S.initiatorType;_&&Im(L)&&(S=S.responseEnd,f+=_*(S<y?1:(y-j)/(S-j)))}if(--a,e+=8*(r+f)/(s.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 rc=null,cc=null;function Ho(t){return t.nodeType===9?t:t.ownerDocument}function tp(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 ep(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 fc(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 hc=null;function Ax(){var t=window.event;return t&&t.type==="popstate"?t===hc?!1:(hc=t,!0):(hc=null,!1)}var np=typeof setTimeout=="function"?setTimeout:void 0,Ex=typeof clearTimeout=="function"?clearTimeout:void 0,ap=typeof Promise=="function"?Promise:void 0,wx=typeof queueMicrotask=="function"?queueMicrotask:typeof ap<"u"?function(t){return ap.resolve(null).then(t).catch(Cx)}:np;function Cx(t){setTimeout(function(){throw t})}function Na(t){return t==="head"}function ip(t,e){var n=e,a=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(s),nl(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")os(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,os(n);for(var r=n.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[On]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&os(t.ownerDocument.body);n=s}while(n);nl(e)}function lp(t,e){var n=t;t=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function dc(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":dc(n),Ka(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Mx(t,e,n,a){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[On])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=tn(t.nextSibling),t===null)break}return null}function jx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=tn(t.nextSibling),t===null))return null;return t}function sp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=tn(t.nextSibling),t===null))return null;return t}function mc(t){return t.data==="$?"||t.data==="$~"}function pc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Nx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function tn(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 yc=null;function op(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return tn(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function up(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 rp(t,e,n){switch(e=Ho(n),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function os(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ka(t)}var en=new Map,cp=new Set;function Yo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var In=H.d;H.d={f:Dx,r:Ox,D:zx,C:Rx,L:Vx,m:_x,X:Bx,S:Ux,M:Lx};function Dx(){var t=In.f(),e=Oo();return t||e}function Ox(t){var e=sa(t);e!==null&&e.tag===5&&e.type==="form"?Md(e):In.r(t)}var Ii=typeof document>"u"?null:document;function fp(t,e,n){var a=Ii;if(a&&typeof e=="string"&&e){var s=ve(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),cp.has(s)||(cp.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ce(e,"link",t),Yt(e),a.head.appendChild(e)))}}function zx(t){In.D(t),fp("dns-prefetch",t,null)}function Rx(t,e){In.C(t,e),fp("preconnect",t,e)}function Vx(t,e,n){In.L(t,e,n);var a=Ii;if(a&&t&&e){var s='link[rel="preload"][as="'+ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+ve(n.imageSizes)+'"]')):s+='[href="'+ve(t)+'"]';var r=s;switch(e){case"style":r=tl(t);break;case"script":r=el(t)}en.has(r)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),en.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(us(r))||e==="script"&&a.querySelector(rs(r))||(e=a.createElement("link"),ce(e,"link",t),Yt(e),a.head.appendChild(e)))}}function _x(t,e){In.m(t,e);var n=Ii;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+ve(a)+'"][href="'+ve(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=el(t)}if(!en.has(r)&&(t=b({rel:"modulepreload",href:t},e),en.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(rs(r)))return}a=n.createElement("link"),ce(a,"link",t),Yt(a),n.head.appendChild(a)}}}function Ux(t,e,n){In.S(t,e,n);var a=Ii;if(a&&t){var s=on(a).hoistableStyles,r=tl(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(us(r)))y.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=en.get(r))&&gc(t,n);var S=f=a.createElement("link");Yt(S),ce(S,"link",t),S._p=new Promise(function(j,_){S.onload=j,S.onerror=_}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,qo(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function Bx(t,e){In.X(t,e);var n=Ii;if(n&&t){var a=on(n).hoistableScripts,s=el(t),r=a.get(s);r||(r=n.querySelector(rs(s)),r||(t=b({src:t,async:!0},e),(e=en.get(s))&&vc(t,e),r=n.createElement("script"),Yt(r),ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function Lx(t,e){In.M(t,e);var n=Ii;if(n&&t){var a=on(n).hoistableScripts,s=el(t),r=a.get(s);r||(r=n.querySelector(rs(s)),r||(t=b({src:t,async:!0,type:"module"},e),(e=en.get(s))&&vc(t,e),r=n.createElement("script"),Yt(r),ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function hp(t,e,n,a){var s=(s=at.current)?Yo(s):null;if(!s)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=tl(n.href),n=on(s).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=tl(n.href);var r=on(s).hoistableStyles,f=r.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=s.querySelector(us(t)))&&!r._p&&(f.instance=r,f.state.loading=5),en.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},en.set(t,n),r||Hx(s,t,n,f.state))),e&&a===null)throw Error(u(528,""));return f}if(e&&a!==null)throw Error(u(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=el(n),n=on(s).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function tl(t){return'href="'+ve(t)+'"'}function us(t){return'link[rel="stylesheet"]['+t+"]"}function dp(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Hx(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ce(e,"link",n),Yt(e),t.head.appendChild(e))}function el(t){return'[src="'+ve(t)+'"]'}function rs(t){return"script[async]"+t}function mp(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ve(n.href)+'"]');if(a)return e.instance=a,Yt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Yt(a),ce(a,"style",s),qo(a,n.precedence,t),e.instance=a;case"stylesheet":s=tl(n.href);var r=t.querySelector(us(s));if(r)return e.state.loading|=4,e.instance=r,Yt(r),r;a=dp(n),(s=en.get(s))&&gc(a,s),r=(t.ownerDocument||t).createElement("link"),Yt(r);var f=r;return f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),ce(r,"link",a),e.state.loading|=4,qo(r,n.precedence,t),e.instance=r;case"script":return r=el(n.src),(s=t.querySelector(rs(r)))?(e.instance=s,Yt(s),s):(a=n,(s=en.get(r))&&(a=b({},n),vc(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),Yt(s),ce(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,qo(a,n.precedence,t));return e.instance}function qo(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,r=s,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===e)r=y;else if(r!==s)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function gc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function vc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Go=null;function pp(t,e,n){if(Go===null){var a=new Map,s=Go=new Map;s.set(n,a)}else s=Go,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var r=n[s];if(!(r[On]||r[Lt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var y=a.get(f);y?y.push(r):a.set(f,[r])}}return a}function yp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Yx(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 gp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function qx(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=tl(a.href),r=e.querySelector(us(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Xo.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Yt(r);return}r=e.ownerDocument||e,a=dp(a),(s=en.get(s))&&gc(a,s),r=r.createElement("link"),Yt(r);var f=r;f._p=new Promise(function(y,S){f.onload=y,f.onerror=S}),ce(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Xo.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var xc=0;function Gx(t,e){return t.stylesheets&&t.count===0&&Qo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Qo(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&xc===0&&(xc=62500*Tx());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Qo(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>xc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Xo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ko=null;function Qo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ko=new Map,e.forEach(Xx,t),Ko=null,Xo.call(t))}function Xx(t,e){if(!(e.state.loading&4)){var n=Ko.get(t);if(n)var a=n.get(null);else{n=new Map,Ko.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<s.length;r++){var f=s[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}s=e.instance,f=s.getAttribute("data-precedence"),r=n.get(f)||a,r===a&&n.set(null,s),n.set(f,s),this.count++,a=Xo.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),r?r.parentNode.insertBefore(s,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var cs={$$typeof:G,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Kx(t,e,n,a,s,r,f,y,S){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=bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.hiddenUpdates=bi(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function vp(t,e,n,a,s,r,f,y,S,j,_,L){return t=new Kx(t,e,n,f,S,j,_,L,y),e=1,r===!0&&(e|=24),r=Ue(3,null,null,e),t.current=r,r.stateNode=t,e=$u(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},nr(r),t}function xp(t){return t?(t=zi,t):zi}function bp(t,e,n,a,s,r){s=xp(s),a.context===null?a.context=s:a.pendingContext=s,a=va(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=xa(t,a,e),n!==null&&(Oe(n,t,e),Gl(n,t,e))}function Sp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function bc(t,e){Sp(t,e),(t=t.alternate)&&Sp(t,e)}function Tp(t){if(t.tag===13||t.tag===31){var e=Wa(t,67108864);e!==null&&Oe(e,t,67108864),bc(t,67108864)}}function Ap(t){if(t.tag===13||t.tag===31){var e=qe();e=Nn(e);var n=Wa(t,e);n!==null&&Oe(n,t,e),bc(t,e)}}var ko=!0;function Qx(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=2,Sc(t,e,n,a)}finally{H.p=r,R.T=s}}function kx(t,e,n,a){var s=R.T;R.T=null;var r=H.p;try{H.p=8,Sc(t,e,n,a)}finally{H.p=r,R.T=s}}function Sc(t,e,n,a){if(ko){var s=Tc(a);if(s===null)oc(t,e,a,Zo,n),wp(t,a);else if(Jx(s,t,e,n,a))a.stopPropagation();else if(wp(t,a),e&4&&-1<Zx.indexOf(t)){for(;s!==null;){var r=sa(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=yn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-ge(f);y.entanglements[1]|=S,f&=~S}Tn(r),(Et&6)===0&&(No=he()+500,is(0))}}break;case 31:case 13:y=Wa(r,2),y!==null&&Oe(y,r,2),Oo(),bc(r,2)}if(r=Tc(a),r===null&&oc(t,e,a,Zo,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else oc(t,e,a,null,n)}}function Tc(t){return t=M(t),Ac(t)}var Zo=null;function Ac(t){if(Zo=null,t=zn(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(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 Zo=t,null}function Ep(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(Tu()){case Rs:return 2;case de:return 8;case Ha:case vi:return 32;case vl:return 268435456;default:return 32}default:return 32}}var Ec=!1,Da=null,Oa=null,za=null,fs=new Map,hs=new Map,Ra=[],Zx="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 wp(t,e){switch(t){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":za=null;break;case"pointerover":case"pointerout":fs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":hs.delete(e.pointerId)}}function ds(t,e,n,a,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[s]},e!==null&&(e=sa(e),e!==null&&Tp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function Jx(t,e,n,a,s){switch(e){case"focusin":return Da=ds(Da,t,e,n,a,s),!0;case"dragenter":return Oa=ds(Oa,t,e,n,a,s),!0;case"mouseover":return za=ds(za,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return fs.set(r,ds(fs.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,hs.set(r,ds(hs.get(r)||null,t,e,n,a,s)),!0}return!1}function Cp(t){var e=zn(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,Xa(t.priority,function(){Ap(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,Xa(t.priority,function(){Ap(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 Jo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Tc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Mi=a,n.target.dispatchEvent(a),Mi=null}else return e=sa(n),e!==null&&Tp(e),t.blockedOn=n,!1;e.shift()}return!0}function Mp(t,e,n){Jo(t)&&n.delete(e)}function Fx(){Ec=!1,Da!==null&&Jo(Da)&&(Da=null),Oa!==null&&Jo(Oa)&&(Oa=null),za!==null&&Jo(za)&&(za=null),fs.forEach(Mp),hs.forEach(Mp)}function Fo(t,e){t.blockedOn===e&&(t.blockedOn=null,Ec||(Ec=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Fx)))}var Po=null;function jp(t){Po!==t&&(Po=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Po===t&&(Po=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],s=t[e+2];if(typeof a!="function"){if(Ac(a||n)===null)continue;break}var r=sa(n);r!==null&&(t.splice(e,3),e-=3,Tr(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function nl(t){function e(S){return Fo(S,t)}Da!==null&&Fo(Da,t),Oa!==null&&Fo(Oa,t),za!==null&&Fo(za,t),fs.forEach(e),hs.forEach(e);for(var n=0;n<Ra.length;n++){var a=Ra[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ra.length&&(n=Ra[0],n.blockedOn===null);)Cp(n),n.blockedOn===null&&Ra.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],r=n[a+1],f=s[ne]||null;if(typeof r=="function")f||jp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ne]||null)y=f.formAction;else if(Ac(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),jp(n)}}}function Np(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function wc(t){this._internalRoot=t}Wo.prototype.render=wc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var n=e.current,a=qe();bp(n,a,t,e,null,null)},Wo.prototype.unmount=wc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bp(t.current,2,null,t,null,null),Oo(),e[Dn]=null}};function Wo(t){this._internalRoot=t}Wo.prototype.unstable_scheduleHydration=function(t){if(t){var e=la();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ra.length&&e!==0&&e<Ra[n].priority;n++);Ra.splice(n,0,t),n===0&&Cp(t)}};var Dp=l.version;if(Dp!=="19.2.4")throw Error(u(527,Dp,"19.2.4"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=m(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var Px={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$o.isDisabled&&$o.supportsFiber)try{se=$o.inject(Px),ye=$o}catch{}}return ps.createRoot=function(t,e){if(!c(t))throw Error(u(299));var n=!1,a="",s=Bd,r=Ld,f=Hd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=vp(t,1,!1,null,null,n,a,null,s,r,f,Np),t[Dn]=e.current,sc(t),new wc(e)},ps.hydrateRoot=function(t,e,n){if(!c(t))throw Error(u(299));var a=!1,s="",r=Bd,f=Ld,y=Hd,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),e=vp(t,1,!0,e,n??null,a,s,S,r,f,y,Np),e.context=xp(null),n=e.current,a=qe(),a=Nn(a),s=va(a),s.callback=null,xa(n,s,a),n=a,e.current.lanes=n,Ee(e,n),Tn(e),t[Dn]=e.current,sc(t),new Wo(e)},ps.version="19.2.4",ps}var Yp;function s1(){if(Yp)return jc.exports;Yp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),jc.exports=l1(),jc.exports}var o1=s1();const zA=u0(o1);const r0=(...i)=>i.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();const u1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const r1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,u)=>u?u.toUpperCase():o.toLowerCase());const qp=i=>{const l=r1(i);return l.charAt(0).toUpperCase()+l.slice(1)};var c1={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 f1=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const h1=z.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:c="",children:d,iconNode:h,...p},g)=>z.createElement("svg",{ref:g,...c1,width:l,height:l,stroke:i,strokeWidth:u?Number(o)*24/Number(l):o,className:r0("lucide",c),...!d&&!f1(p)&&{"aria-hidden":"true"},...p},[...h.map(([m,x])=>z.createElement(m,x)),...Array.isArray(d)?d:[d]]));const Te=(i,l)=>{const o=z.forwardRef(({className:u,...c},d)=>z.createElement(h1,{ref:d,iconNode:l,className:r0(`lucide-${u1(qp(i))}`,`lucide-${i}`,u),...c}));return o.displayName=qp(i),o};const d1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],m1=Te("arrow-left",d1);const p1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ge=Te("arrow-right",p1);const y1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ta=Te("check",y1);const g1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],v1=Te("chevron-down",g1);const x1=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],Gp=Te("clipboard-paste",x1);const b1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],zc=Te("copy",b1);const S1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Xp=Te("external-link",S1);const T1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],A1=Te("eye-off",T1);const E1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],w1=Te("eye",E1);const C1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ci=Te("loader-circle",C1);const M1=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],j1=Te("mic",M1);const N1=[["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"}]],Rc=Te("refresh-cw",N1);const D1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Kp=Te("shield-check",D1);const O1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],z1=Te("shield",O1);const R1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],V1=Te("smartphone",R1),Ef=z.createContext({});function wf(i){const l=z.useRef(null);return l.current===null&&(l.current=i()),l.current}const c0=typeof window<"u",f0=c0?z.useLayoutEffect:z.useEffect,vu=z.createContext(null);function Cf(i,l){i.indexOf(l)===-1&&i.push(l)}function cu(i,l){const o=i.indexOf(l);o>-1&&i.splice(o,1)}const wn=(i,l,o)=>o>l?l:o<i?i:o;let Mf=()=>{};const ea={},h0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function d0(i){return typeof i=="object"&&i!==null}const m0=i=>/^0[^.\s]+$/u.test(i);function p0(i){let l;return()=>(l===void 0&&(l=i()),l)}const an=i=>i,_1=(i,l)=>o=>l(i(o)),js=(...i)=>i.reduce(_1),As=(i,l,o)=>{const u=l-i;return u===0?1:(o-i)/u};class jf{constructor(){this.subscriptions=[]}add(l){return Cf(this.subscriptions,l),()=>cu(this.subscriptions,l)}notify(l,o,u){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,o,u);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,o,u)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mn=i=>i*1e3,nn=i=>i/1e3;function y0(i,l){return l?i*(1e3/l):0}const g0=(i,l,o)=>(((1-3*o+3*l)*i+(3*o-6*l))*i+3*l)*i,U1=1e-7,B1=12;function L1(i,l,o,u,c){let d,h,p=0;do h=l+(o-l)/2,d=g0(h,u,c)-i,d>0?o=h:l=h;while(Math.abs(d)>U1&&++p<B1);return h}function Ns(i,l,o,u){if(i===l&&o===u)return an;const c=d=>L1(d,0,1,i,o);return d=>d===0||d===1?d:g0(c(d),l,u)}const v0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,x0=i=>l=>1-i(1-l),b0=Ns(.33,1.53,.69,.99),Nf=x0(b0),S0=v0(Nf),T0=i=>(i*=2)<1?.5*Nf(i):.5*(2-Math.pow(2,-10*(i-1))),Df=i=>1-Math.sin(Math.acos(i)),A0=x0(Df),E0=v0(Df),H1=Ns(.42,0,1,1),Y1=Ns(0,0,.58,1),w0=Ns(.42,0,.58,1),q1=i=>Array.isArray(i)&&typeof i[0]!="number",C0=i=>Array.isArray(i)&&typeof i[0]=="number",G1={linear:an,easeIn:H1,easeInOut:w0,easeOut:Y1,circIn:Df,circInOut:E0,circOut:A0,backIn:Nf,backInOut:S0,backOut:b0,anticipate:T0},X1=i=>typeof i=="string",Qp=i=>{if(C0(i)){Mf(i.length===4);const[l,o,u,c]=i;return Ns(l,o,u,c)}else if(X1(i))return G1[i];return i},Io=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function K1(i,l){let o=new Set,u=new Set,c=!1,d=!1;const h=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(x){h.has(x)&&(m.schedule(x),i()),x(p)}const m={schedule:(x,b=!1,T=!1)=>{const V=T&&c?o:u;return b&&h.add(x),V.has(x)||V.add(x),x},cancel:x=>{u.delete(x),h.delete(x)},process:x=>{if(p=x,c){d=!0;return}c=!0,[o,u]=[u,o],o.forEach(g),o.clear(),c=!1,d&&(d=!1,m.process(x))}};return m}const Q1=40;function M0(i,l){let o=!1,u=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>o=!0,h=Io.reduce((G,F)=>(G[F]=K1(d),G),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:x,update:b,preRender:T,render:D,postRender:V}=h,Y=()=>{const G=ea.useManualTiming?c.timestamp:performance.now();o=!1,ea.useManualTiming||(c.delta=u?1e3/60:Math.max(Math.min(G-c.timestamp,Q1),1)),c.timestamp=G,c.isProcessing=!0,p.process(c),g.process(c),m.process(c),x.process(c),b.process(c),T.process(c),D.process(c),V.process(c),c.isProcessing=!1,o&&l&&(u=!1,i(Y))},X=()=>{o=!0,u=!0,c.isProcessing||i(Y)};return{schedule:Io.reduce((G,F)=>{const Z=h[F];return G[F]=(lt,J=!1,P=!1)=>(o||X(),Z.schedule(lt,J,P)),G},{}),cancel:G=>{for(let F=0;F<Io.length;F++)h[Io[F]].cancel(G)},state:c,steps:h}}const{schedule:Rt,cancel:Ba,state:fe,steps:Vc}=M0(typeof requestAnimationFrame<"u"?requestAnimationFrame:an,!0);let au;function k1(){au=void 0}const be={now:()=>(au===void 0&&be.set(fe.isProcessing||ea.useManualTiming?fe.timestamp:performance.now()),au),set:i=>{au=i,queueMicrotask(k1)}},j0=i=>l=>typeof l=="string"&&l.startsWith(i),N0=j0("--"),Z1=j0("var(--"),Of=i=>Z1(i)?J1.test(i.split("/*")[0].trim()):!1,J1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const fl={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Es={...fl,transform:i=>wn(0,1,i)},tu={...fl,default:1},xs=i=>Math.round(i*1e5)/1e5,zf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function F1(i){return i==null}const P1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rf=(i,l)=>o=>!!(typeof o=="string"&&P1.test(o)&&o.startsWith(i)||l&&!F1(o)&&Object.prototype.hasOwnProperty.call(o,l)),D0=(i,l,o)=>u=>{if(typeof u!="string")return u;const[c,d,h,p]=u.match(zf);return{[i]:parseFloat(c),[l]:parseFloat(d),[o]:parseFloat(h),alpha:p!==void 0?parseFloat(p):1}},W1=i=>wn(0,255,i),_c={...fl,transform:i=>Math.round(W1(i))},di={test:Rf("rgb","red"),parse:D0("red","green","blue"),transform:({red:i,green:l,blue:o,alpha:u=1})=>"rgba("+_c.transform(i)+", "+_c.transform(l)+", "+_c.transform(o)+", "+xs(Es.transform(u))+")"};function $1(i){let l="",o="",u="",c="";return i.length>5?(l=i.substring(1,3),o=i.substring(3,5),u=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),o=i.substring(2,3),u=i.substring(3,4),c=i.substring(4,5),l+=l,o+=o,u+=u,c+=c),{red:parseInt(l,16),green:parseInt(o,16),blue:parseInt(u,16),alpha:c?parseInt(c,16)/255:1}}const $c={test:Rf("#"),parse:$1,transform:di.transform},Ds=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),_a=Ds("deg"),En=Ds("%"),tt=Ds("px"),I1=Ds("vh"),tb=Ds("vw"),Zp={...En,parse:i=>En.parse(i)/100,transform:i=>En.transform(i*100)},il={test:Rf("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:o,alpha:u=1})=>"hsla("+Math.round(i)+", "+En.transform(xs(l))+", "+En.transform(xs(o))+", "+xs(Es.transform(u))+")"},Wt={test:i=>di.test(i)||$c.test(i)||il.test(i),parse:i=>di.test(i)?di.parse(i):il.test(i)?il.parse(i):$c.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?di.transform(i):il.transform(i),getAnimatableNone:i=>{const l=Wt.parse(i);return l.alpha=0,Wt.transform(l)}},eb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nb(i){return isNaN(i)&&typeof i=="string"&&(i.match(zf)?.length||0)+(i.match(eb)?.length||0)>0}const O0="number",z0="color",ab="var",ib="var(",Jp="${}",lb=/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 ws(i){const l=i.toString(),o=[],u={color:[],number:[],var:[]},c=[];let d=0;const p=l.replace(lb,g=>(Wt.test(g)?(u.color.push(d),c.push(z0),o.push(Wt.parse(g))):g.startsWith(ib)?(u.var.push(d),c.push(ab),o.push(g)):(u.number.push(d),c.push(O0),o.push(parseFloat(g))),++d,Jp)).split(Jp);return{values:o,split:p,indexes:u,types:c}}function R0(i){return ws(i).values}function V0(i){const{split:l,types:o}=ws(i),u=l.length;return c=>{let d="";for(let h=0;h<u;h++)if(d+=l[h],c[h]!==void 0){const p=o[h];p===O0?d+=xs(c[h]):p===z0?d+=Wt.transform(c[h]):d+=c[h]}return d}}const sb=i=>typeof i=="number"?0:Wt.test(i)?Wt.getAnimatableNone(i):i;function ob(i){const l=R0(i);return V0(i)(l.map(sb))}const pn={test:nb,parse:R0,createTransformer:V0,getAnimatableNone:ob};function Uc(i,l,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(l-i)*6*o:o<1/2?l:o<2/3?i+(l-i)*(2/3-o)*6:i}function ub({hue:i,saturation:l,lightness:o,alpha:u}){i/=360,l/=100,o/=100;let c=0,d=0,h=0;if(!l)c=d=h=o;else{const p=o<.5?o*(1+l):o+l-o*l,g=2*o-p;c=Uc(g,p,i+1/3),d=Uc(g,p,i),h=Uc(g,p,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:u}}function fu(i,l){return o=>o>0?l:i}const Ht=(i,l,o)=>i+(l-i)*o,Bc=(i,l,o)=>{const u=i*i,c=o*(l*l-u)+u;return c<0?0:Math.sqrt(c)},rb=[$c,di,il],cb=i=>rb.find(l=>l.test(i));function Fp(i){const l=cb(i);if(!l)return!1;let o=l.parse(i);return l===il&&(o=ub(o)),o}const Pp=(i,l)=>{const o=Fp(i),u=Fp(l);if(!o||!u)return fu(i,l);const c={...o};return d=>(c.red=Bc(o.red,u.red,d),c.green=Bc(o.green,u.green,d),c.blue=Bc(o.blue,u.blue,d),c.alpha=Ht(o.alpha,u.alpha,d),di.transform(c))},Ic=new Set(["none","hidden"]);function fb(i,l){return Ic.has(i)?o=>o<=0?i:l:o=>o>=1?l:i}function hb(i,l){return o=>Ht(i,l,o)}function Vf(i){return typeof i=="number"?hb:typeof i=="string"?Of(i)?fu:Wt.test(i)?Pp:pb:Array.isArray(i)?_0:typeof i=="object"?Wt.test(i)?Pp:db:fu}function _0(i,l){const o=[...i],u=o.length,c=i.map((d,h)=>Vf(d)(d,l[h]));return d=>{for(let h=0;h<u;h++)o[h]=c[h](d);return o}}function db(i,l){const o={...i,...l},u={};for(const c in o)i[c]!==void 0&&l[c]!==void 0&&(u[c]=Vf(i[c])(i[c],l[c]));return c=>{for(const d in u)o[d]=u[d](c);return o}}function mb(i,l){const o=[],u={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][u[d]],p=i.values[h]??0;o[c]=p,u[d]++}return o}const pb=(i,l)=>{const o=pn.createTransformer(l),u=ws(i),c=ws(l);return u.indexes.var.length===c.indexes.var.length&&u.indexes.color.length===c.indexes.color.length&&u.indexes.number.length>=c.indexes.number.length?Ic.has(i)&&!c.values.length||Ic.has(l)&&!u.values.length?fb(i,l):js(_0(mb(u,c),c.values),o):fu(i,l)};function U0(i,l,o){return typeof i=="number"&&typeof l=="number"&&typeof o=="number"?Ht(i,l,o):Vf(i)(i,l)}const yb=i=>{const l=({timestamp:o})=>i(o);return{start:(o=!0)=>Rt.update(l,o),stop:()=>Ba(l),now:()=>fe.isProcessing?fe.timestamp:be.now()}},B0=(i,l,o=10)=>{let u="";const c=Math.max(Math.round(l/o),2);for(let d=0;d<c;d++)u+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${u.substring(0,u.length-2)})`},hu=2e4;function _f(i){let l=0;const o=50;let u=i.next(l);for(;!u.done&&l<hu;)l+=o,u=i.next(l);return l>=hu?1/0:l}function gb(i,l=100,o){const u=o({...i,keyframes:[0,l]}),c=Math.min(_f(u),hu);return{type:"keyframes",ease:d=>u.next(c*d).value/l,duration:nn(c)}}const vb=5;function L0(i,l,o){const u=Math.max(l-vb,0);return y0(o-i(u),l-u)}const Xt={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},Lc=.001;function xb({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:o=Xt.velocity,mass:u=Xt.mass}){let c,d,h=1-l;h=wn(Xt.minDamping,Xt.maxDamping,h),i=wn(Xt.minDuration,Xt.maxDuration,nn(i)),h<1?(c=m=>{const x=m*h,b=x*i,T=x-o,D=tf(m,h),V=Math.exp(-b);return Lc-T/D*V},d=m=>{const b=m*h*i,T=b*o+o,D=Math.pow(h,2)*Math.pow(m,2)*i,V=Math.exp(-b),Y=tf(Math.pow(m,2),h);return(-c(m)+Lc>0?-1:1)*((T-D)*V)/Y}):(c=m=>{const x=Math.exp(-m*i),b=(m-o)*i+1;return-Lc+x*b},d=m=>{const x=Math.exp(-m*i),b=(o-m)*(i*i);return x*b});const p=5/i,g=Sb(c,d,p);if(i=mn(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const m=Math.pow(g,2)*u;return{stiffness:m,damping:h*2*Math.sqrt(u*m),duration:i}}}const bb=12;function Sb(i,l,o){let u=o;for(let c=1;c<bb;c++)u=u-i(u)/l(u);return u}function tf(i,l){return i*Math.sqrt(1-l*l)}const Tb=["duration","bounce"],Ab=["stiffness","damping","mass"];function Wp(i,l){return l.some(o=>i[o]!==void 0)}function Eb(i){let l={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...i};if(!Wp(i,Ab)&&Wp(i,Tb))if(l.velocity=0,i.visualDuration){const o=i.visualDuration,u=2*Math.PI/(o*1.2),c=u*u,d=2*wn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Xt.mass,stiffness:c,damping:d}}else{const o=xb({...i,velocity:0});l={...l,...o,mass:Xt.mass},l.isResolvedFromDuration=!0}return l}function du(i=Xt.visualDuration,l=Xt.bounce){const o=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:u,restDelta:c}=o;const d=o.keyframes[0],h=o.keyframes[o.keyframes.length-1],p={done:!1,value:d},{stiffness:g,damping:m,mass:x,duration:b,velocity:T,isResolvedFromDuration:D}=Eb({...o,velocity:-nn(o.velocity||0)}),V=T||0,Y=m/(2*Math.sqrt(g*x)),X=h-d,q=nn(Math.sqrt(g/x)),K=Math.abs(X)<5;u||(u=K?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=K?Xt.restDelta.granular:Xt.restDelta.default);let G;if(Y<1){const Z=tf(q,Y);G=lt=>{const J=Math.exp(-Y*q*lt);return h-J*((V+Y*q*X)/Z*Math.sin(Z*lt)+X*Math.cos(Z*lt))}}else if(Y===1)G=Z=>h-Math.exp(-q*Z)*(X+(V+q*X)*Z);else{const Z=q*Math.sqrt(Y*Y-1);G=lt=>{const J=Math.exp(-Y*q*lt),P=Math.min(Z*lt,300);return h-J*((V+Y*q*X)*Math.sinh(P)+Z*X*Math.cosh(P))/Z}}const F={calculatedDuration:D&&b||null,next:Z=>{const lt=G(Z);if(D)p.done=Z>=b;else{let J=Z===0?V:0;Y<1&&(J=Z===0?mn(V):L0(G,Z,lt));const P=Math.abs(J)<=u,st=Math.abs(h-lt)<=c;p.done=P&&st}return p.value=p.done?h:lt,p},toString:()=>{const Z=Math.min(_f(F),hu),lt=B0(J=>F.next(Z*J).value,Z,30);return Z+"ms "+lt},toTransition:()=>{}};return F}du.applyToOptions=i=>{const l=gb(i,100,du);return i.ease=l.ease,i.duration=mn(l.duration),i.type="keyframes",i};function ef({keyframes:i,velocity:l=0,power:o=.8,timeConstant:u=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:p,max:g,restDelta:m=.5,restSpeed:x}){const b=i[0],T={done:!1,value:b},D=P=>p!==void 0&&P<p||g!==void 0&&P>g,V=P=>p===void 0?g:g===void 0||Math.abs(p-P)<Math.abs(g-P)?p:g;let Y=o*l;const X=b+Y,q=h===void 0?X:h(X);q!==X&&(Y=q-b);const K=P=>-Y*Math.exp(-P/u),G=P=>q+K(P),F=P=>{const st=K(P),bt=G(P);T.done=Math.abs(st)<=m,T.value=T.done?q:bt};let Z,lt;const J=P=>{D(T.value)&&(Z=P,lt=du({keyframes:[T.value,V(T.value)],velocity:L0(G,P,T.value),damping:c,stiffness:d,restDelta:m,restSpeed:x}))};return J(0),{calculatedDuration:null,next:P=>{let st=!1;return!lt&&Z===void 0&&(st=!0,F(P),J(P)),Z!==void 0&&P>=Z?lt.next(P-Z):(!st&&F(P),T)}}}function wb(i,l,o){const u=[],c=o||ea.mix||U0,d=i.length-1;for(let h=0;h<d;h++){let p=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||an:l;p=js(g,p)}u.push(p)}return u}function Cb(i,l,{clamp:o=!0,ease:u,mixer:c}={}){const d=i.length;if(Mf(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=i[0]===i[1];i[0]>i[d-1]&&(i=[...i].reverse(),l=[...l].reverse());const p=wb(l,u,c),g=p.length,m=x=>{if(h&&x<i[0])return l[0];let b=0;if(g>1)for(;b<i.length-2&&!(x<i[b+1]);b++);const T=As(i[b],i[b+1],x);return p[b](T)};return o?x=>m(wn(i[0],i[d-1],x)):m}function Mb(i,l){const o=i[i.length-1];for(let u=1;u<=l;u++){const c=As(0,l,u);i.push(Ht(o,1,c))}}function jb(i){const l=[0];return Mb(l,i.length-1),l}function Nb(i,l){return i.map(o=>o*l)}function Db(i,l){return i.map(()=>l||w0).splice(0,i.length-1)}function bs({duration:i=300,keyframes:l,times:o,ease:u="easeInOut"}){const c=q1(u)?u.map(Qp):Qp(u),d={done:!1,value:l[0]},h=Nb(o&&o.length===l.length?o:jb(l),i),p=Cb(h,l,{ease:Array.isArray(c)?c:Db(l,c)});return{calculatedDuration:i,next:g=>(d.value=p(g),d.done=g>=i,d)}}const Ob=i=>i!==null;function Uf(i,{repeat:l,repeatType:o="loop"},u,c=1){const d=i.filter(Ob),p=c<0||l&&o!=="loop"&&l%2===1?0:d.length-1;return!p||u===void 0?d[p]:u}const zb={decay:ef,inertia:ef,tween:bs,keyframes:bs,spring:du};function H0(i){typeof i.type=="string"&&(i.type=zb[i.type])}class Bf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,o){return this.finished.then(l,o)}}const Rb=i=>i/100;class Lf extends Bf{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==be.now()&&this.tick(be.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;H0(l);const{type:o=bs,repeat:u=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:p}=l;const g=o||bs;g!==bs&&typeof p[0]!="number"&&(this.mixKeyframes=js(Rb,U0(p[0],p[1])),p=[0,100]);const m=g({...l,keyframes:p});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...p].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=_f(m));const{calculatedDuration:x}=m;this.calculatedDuration=x,this.resolvedDuration=x+c,this.totalDuration=this.resolvedDuration*(u+1)-c,this.generator=m}updateTime(l){const o=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(l,o=!1){const{generator:u,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return u.next(0);const{delay:m=0,keyframes:x,repeat:b,repeatType:T,repeatDelay:D,type:V,onUpdate:Y,finalKeyframe:X}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-c/this.speed,this.startTime)),o?this.currentTime=l:this.updateTime(l);const q=this.currentTime-m*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?q<0:q>c;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let G=this.currentTime,F=u;if(b){const P=Math.min(this.currentTime,c)/p;let st=Math.floor(P),bt=P%1;!bt&&P>=1&&(bt=1),bt===1&&st--,st=Math.min(st,b+1),st%2&&(T==="reverse"?(bt=1-bt,D&&(bt-=D/p)):T==="mirror"&&(F=h)),G=wn(0,1,bt)*p}const Z=K?{done:!1,value:x[0]}:F.next(G);d&&(Z.value=d(Z.value));let{done:lt}=Z;!K&&g!==null&&(lt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&<);return J&&V!==ef&&(Z.value=Uf(x,this.options,X,this.speed)),Y&&Y(Z.value),J&&this.finish(),Z}then(l,o){return this.finished.then(l,o)}get duration(){return nn(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+nn(l)}get time(){return nn(this.currentTime)}set time(l){l=mn(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(be.now());const o=this.playbackSpeed!==l;this.playbackSpeed=l,o&&(this.time=nn(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=yb,startTime:o}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const u=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=u):this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime||(this.startTime=o??u),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(be.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(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),l.observe(this)}}function Vb(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const mi=i=>i*180/Math.PI,nf=i=>{const l=mi(Math.atan2(i[1],i[0]));return af(l)},_b={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:nf,rotateZ:nf,skewX:i=>mi(Math.atan(i[1])),skewY:i=>mi(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},af=i=>(i=i%360,i<0&&(i+=360),i),$p=nf,Ip=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),ty=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Ub={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ip,scaleY:ty,scale:i=>(Ip(i)+ty(i))/2,rotateX:i=>af(mi(Math.atan2(i[6],i[5]))),rotateY:i=>af(mi(Math.atan2(-i[2],i[0]))),rotateZ:$p,rotate:$p,skewX:i=>mi(Math.atan(i[4])),skewY:i=>mi(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function lf(i){return i.includes("scale")?1:0}function sf(i,l){if(!i||i==="none")return lf(l);const o=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let u,c;if(o)u=Ub,c=o;else{const p=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);u=_b,c=p}if(!c)return lf(l);const d=u[l],h=c[1].split(",").map(Lb);return typeof d=="function"?d(h):h[d]}const Bb=(i,l)=>{const{transform:o="none"}=getComputedStyle(i);return sf(o,l)};function Lb(i){return parseFloat(i.trim())}const hl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dl=new Set(hl),ey=i=>i===fl||i===tt,Hb=new Set(["x","y","z"]),Yb=hl.filter(i=>!Hb.has(i));function qb(i){const l=[];return Yb.forEach(o=>{const u=i.getValue(o);u!==void 0&&(l.push([o,u.get()]),u.set(o.startsWith("scale")?1:0))}),l}const Ua={width:({x:i},{paddingLeft:l="0",paddingRight:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),height:({y:i},{paddingTop:l="0",paddingBottom:o="0"})=>i.max-i.min-parseFloat(l)-parseFloat(o),top:(i,{top:l})=>parseFloat(l),left:(i,{left:l})=>parseFloat(l),bottom:({y:i},{top:l})=>parseFloat(l)+(i.max-i.min),right:({x:i},{left:l})=>parseFloat(l)+(i.max-i.min),x:(i,{transform:l})=>sf(l,"x"),y:(i,{transform:l})=>sf(l,"y")};Ua.translateX=Ua.x;Ua.translateY=Ua.y;const pi=new Set;let of=!1,uf=!1,rf=!1;function Y0(){if(uf){const i=Array.from(pi).filter(u=>u.needsMeasurement),l=new Set(i.map(u=>u.element)),o=new Map;l.forEach(u=>{const c=qb(u);c.length&&(o.set(u,c),u.render())}),i.forEach(u=>u.measureInitialState()),l.forEach(u=>{u.render();const c=o.get(u);c&&c.forEach(([d,h])=>{u.getValue(d)?.set(h)})}),i.forEach(u=>u.measureEndState()),i.forEach(u=>{u.suspendedScrollY!==void 0&&window.scrollTo(0,u.suspendedScrollY)})}uf=!1,of=!1,pi.forEach(i=>i.complete(rf)),pi.clear()}function q0(){pi.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(uf=!0)})}function Gb(){rf=!0,q0(),Y0(),rf=!1}class Hf{constructor(l,o,u,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=o,this.name=u,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(pi.add(this),of||(of=!0,Rt.read(q0),Rt.resolveKeyframes(Y0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:o,element:u,motionValue:c}=this;if(l[0]===null){const d=c?.get(),h=l[l.length-1];if(d!==void 0)l[0]=d;else if(u&&o){const p=u.readValue(o,h);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Vb(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),pi.delete(this)}cancel(){this.state==="scheduled"&&(pi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Xb=i=>i.startsWith("--");function Kb(i,l,o){Xb(l)?i.style.setProperty(l,o):i.style[l]=o}const Qb={};function G0(i,l){const o=p0(i);return()=>Qb[l]??o()}const kb=G0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),X0=G0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vs=([i,l,o,u])=>`cubic-bezier(${i}, ${l}, ${o}, ${u})`,ny={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vs([0,.65,.55,1]),circOut:vs([.55,0,1,.45]),backIn:vs([.31,.01,.66,-.59]),backOut:vs([.33,1.53,.69,.99])};function K0(i,l){if(i)return typeof i=="function"?X0()?B0(i,l):"ease-out":C0(i)?vs(i):Array.isArray(i)?i.map(o=>K0(o,l)||ny.easeOut):ny[i]}function Zb(i,l,o,{delay:u=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:p="easeOut",times:g}={},m=void 0){const x={[l]:o};g&&(x.offset=g);const b=K0(p,c);Array.isArray(b)&&(x.easing=b);const T={delay:u,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(T.pseudoElement=m),i.animate(x,T)}function Q0(i){return typeof i=="function"&&"applyToOptions"in i}function Jb({type:i,...l}){return Q0(i)&&X0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class k0 extends Bf{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:o,name:u,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,Mf(typeof l.type!="string");const m=Jb(l);this.animation=Zb(o,u,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const x=Uf(c,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(x):Kb(o,u,x),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const l=this.options?.element;!this.isPseudoElement&&l?.isConnected&&this.animation.commitStyles?.()}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return nn(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+nn(l)}get time(){return nn(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mn(l)}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&kb()?(this.animation.timeline=l,an):o(this)}}const Z0={anticipate:T0,backInOut:S0,circInOut:E0};function Fb(i){return i in Z0}function Pb(i){typeof i.ease=="string"&&Fb(i.ease)&&(i.ease=Z0[i.ease])}const Hc=10;class Wb extends k0{constructor(l){Pb(l),H0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:o,onUpdate:u,onComplete:c,element:d,...h}=this.options;if(!o)return;if(l!==void 0){o.set(l);return}const p=new Lf({...h,autoplay:!1}),g=Math.max(Hc,be.now()-this.startTime),m=wn(0,Hc,g-Hc);o.setWithVelocity(p.sample(Math.max(0,g-m)).value,p.sample(g).value,m),p.stop()}}const ay=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(pn.test(i)||i==="0")&&!i.startsWith("url("));function $b(i){const l=i[0];if(i.length===1)return!0;for(let o=0;o<i.length;o++)if(i[o]!==l)return!0}function Ib(i,l,o,u){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=ay(c,l),p=ay(d,l);return!h||!p?!1:$b(i)||(o==="spring"||Q0(o))&&u}function cf(i){i.duration=0,i.type="keyframes"}const tS=new Set(["opacity","clipPath","filter","transform"]),eS=p0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function nS(i){const{motionValue:l,name:o,repeatDelay:u,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return eS()&&o&&tS.has(o)&&(o!=="transform"||!m)&&!g&&!u&&c!=="mirror"&&d!==0&&h!=="inertia"}const aS=40;class iS extends Bf{constructor({autoplay:l=!0,delay:o=0,type:u="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:p,name:g,motionValue:m,element:x,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=be.now();const T={autoplay:l,delay:o,type:u,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:x,...b},D=x?.KeyframeResolver||Hf;this.keyframeResolver=new D(p,(V,Y,X)=>this.onKeyframesResolved(V,Y,T,!X),g,m,x),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,o,u,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:p,delay:g,isHandoff:m,onUpdate:x}=u;this.resolvedAt=be.now(),Ib(l,d,h,p)||((ea.instantAnimations||!g)&&x?.(Uf(l,u,o)),l[0]=l[l.length-1],cf(u),u.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>aS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...u,keyframes:l},D=!m&&nS(T),V=T.motionValue?.owner?.current,Y=D?new Wb({...T,element:V}):new Lf(T);Y.finished.then(()=>{this.notifyFinished()}).catch(an),this.pendingTimeline&&(this.stopTimeline=Y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=Y}get finished(){return this._animation?this.animation.finished:this._finished}then(l,o){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Gb()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function J0(i,l,o,u=0,c=1){const d=Array.from(i).sort((m,x)=>m.sortNodePosition(x)).indexOf(l),h=i.size,p=(h-1)*u;return typeof o=="function"?o(d,h):c===1?d*u:p-d*u}const lS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sS(i){const l=lS.exec(i);if(!l)return[,];const[,o,u,c]=l;return[`--${o??u}`,c]}function F0(i,l,o=1){const[u,c]=sS(i);if(!u)return;const d=window.getComputedStyle(l).getPropertyValue(u);if(d){const h=d.trim();return h0(h)?parseFloat(h):h}return Of(c)?F0(c,l,o+1):c}const oS={type:"spring",stiffness:500,damping:25,restSpeed:10},uS=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),rS={type:"keyframes",duration:.8},cS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fS=(i,{keyframes:l})=>l.length>2?rS:dl.has(i)?i.startsWith("scale")?uS(l[1]):oS:cS,hS=i=>i!==null;function dS(i,{repeat:l,repeatType:o="loop"},u){const c=i.filter(hS),d=l&&o!=="loop"&&l%2===1?0:c.length-1;return c[d]}function P0(i,l){if(i?.inherit&&l){const{inherit:o,...u}=i;return{...l,...u}}return i}function Yf(i,l){const o=i?.[l]??i?.default??i;return o!==i?P0(o,i):o}function mS({when:i,delay:l,delayChildren:o,staggerChildren:u,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:p,from:g,elapsed:m,...x}){return!!Object.keys(x).length}const qf=(i,l,o,u={},c,d)=>h=>{const p=Yf(u,i)||{},g=p.delay||u.delay||0;let{elapsed:m=0}=u;m=m-mn(g);const x={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-m,onUpdate:T=>{l.set(T),p.onUpdate&&p.onUpdate(T)},onComplete:()=>{h(),p.onComplete&&p.onComplete()},name:i,motionValue:l,element:d?void 0:c};mS(p)||Object.assign(x,fS(i,x)),x.duration&&(x.duration=mn(x.duration)),x.repeatDelay&&(x.repeatDelay=mn(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let b=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(cf(x),x.delay===0&&(b=!0)),(ea.instantAnimations||ea.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,cf(x),x.delay=0),x.allowFlatten=!p.type&&!p.ease,b&&!d&&l.get()!==void 0){const T=dS(x.keyframes,p);if(T!==void 0){Rt.update(()=>{x.onUpdate(T),x.onComplete()});return}}return p.isSync?new Lf(x):new iS(x)};function iy(i){const l=[{},{}];return i?.values.forEach((o,u)=>{l[0][u]=o.get(),l[1][u]=o.getVelocity()}),l}function Gf(i,l,o,u){if(typeof l=="function"){const[c,d]=iy(u);l=l(o!==void 0?o:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=iy(u);l=l(o!==void 0?o:i.custom,c,d)}return l}function rl(i,l,o){const u=i.getProps();return Gf(u,l,o!==void 0?o:u.custom,i)}const W0=new Set(["width","height","top","left","right","bottom",...hl]),ly=30,pS=i=>!isNaN(parseFloat(i));class yS{constructor(l,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=u=>{const c=be.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(u),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(l),this.owner=o.owner}setCurrent(l){this.current=l,this.updatedAt=be.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=pS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,o){this.events[l]||(this.events[l]=new jf);const u=this.events[l].add(o);return l==="change"?()=>{u(),Rt.read(()=>{this.events.change.getSize()||this.stop()})}:u}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,o){this.passiveEffect=l,this.stopPassiveEffect=o}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,o,u){this.set(o),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-u}jump(l,o=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>ly)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,ly);return y0(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(l){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=l(o),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 cl(i,l){return new yS(i,l)}const ff=i=>Array.isArray(i);function gS(i,l,o){i.hasValue(l)?i.getValue(l).set(o):i.addValue(l,cl(o))}function vS(i){return ff(i)?i[i.length-1]||0:i}function xS(i,l){const o=rl(i,l);let{transitionEnd:u={},transition:c={},...d}=o||{};d={...d,...u};for(const h in d){const p=vS(d[h]);gS(i,h,p)}}const pe=i=>!!(i&&i.getVelocity);function bS(i){return!!(pe(i)&&i.add)}function hf(i,l){const o=i.getValue("willChange");if(bS(o))return o.add(l);if(!o&&ea.WillChange){const u=new ea.WillChange("auto");i.addValue("willChange",u),u.add(l)}}function Xf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const SS="framerAppearId",$0="data-"+Xf(SS);function I0(i){return i.props[$0]}function TS({protectedKeys:i,needsAnimating:l},o){const u=i.hasOwnProperty(o)&&l[o]!==!0;return l[o]=!1,u}function tg(i,l,{delay:o=0,transitionOverride:u,type:c}={}){let{transition:d,transitionEnd:h,...p}=l;const g=i.getDefaultTransition();d=d?P0(d,g):g;const m=d?.reduceMotion;u&&(d=u);const x=[],b=c&&i.animationState&&i.animationState.getState()[c];for(const T in p){const D=i.getValue(T,i.latestValues[T]??null),V=p[T];if(V===void 0||b&&TS(b,T))continue;const Y={delay:o,...Yf(d||{},T)},X=D.get();if(X!==void 0&&!D.isAnimating&&!Array.isArray(V)&&V===X&&!Y.velocity)continue;let q=!1;if(window.MotionHandoffAnimation){const F=I0(i);if(F){const Z=window.MotionHandoffAnimation(F,T,Rt);Z!==null&&(Y.startTime=Z,q=!0)}}hf(i,T);const K=m??i.shouldReduceMotion;D.start(qf(T,D,V,K&&W0.has(T)?{type:!1}:Y,i,q));const G=D.animation;G&&x.push(G)}if(h){const T=()=>Rt.update(()=>{h&&xS(i,h)});x.length?Promise.all(x).then(T):T()}return x}function df(i,l,o={}){const u=rl(i,l,o.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=u||{};o.transitionOverride&&(c=o.transitionOverride);const d=u?()=>Promise.all(tg(i,u,o)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:x,staggerDirection:b}=c;return AS(i,l,g,m,x,b,o)}:()=>Promise.resolve(),{when:p}=c;if(p){const[g,m]=p==="beforeChildren"?[d,h]:[h,d];return g().then(()=>m())}else return Promise.all([d(),h(o.delay)])}function AS(i,l,o=0,u=0,c=0,d=1,h){const p=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),p.push(df(g,l,{...h,delay:o+(typeof u=="function"?0:u)+J0(i.variantChildren,g,u,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function ES(i,l,o={}){i.notify("AnimationStart",l);let u;if(Array.isArray(l)){const c=l.map(d=>df(i,d,o));u=Promise.all(c)}else if(typeof l=="string")u=df(i,l,o);else{const c=typeof l=="function"?rl(i,l,o.custom):l;u=Promise.all(tg(i,c,o))}return u.then(()=>{i.notify("AnimationComplete",l)})}const wS={test:i=>i==="auto",parse:i=>i},eg=i=>l=>l.test(i),ng=[fl,tt,En,_a,tb,I1,wS],sy=i=>ng.find(eg(i));function CS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||m0(i):!0}const MS=new Set(["brightness","contrast","saturate","opacity"]);function jS(i){const[l,o]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[u]=o.match(zf)||[];if(!u)return i;const c=o.replace(u,"");let d=MS.has(l)?1:0;return u!==o&&(d*=100),l+"("+d+c+")"}const NS=/\b([a-z-]*)\(.*?\)/gu,mf={...pn,getAnimatableNone:i=>{const l=i.match(NS);return l?l.map(jS).join(" "):i}},pf={...pn,getAnimatableNone:i=>{const l=pn.parse(i);return pn.createTransformer(i)(l.map(u=>typeof u=="number"?0:typeof u=="object"?{...u,alpha:1}:u))}},oy={...fl,transform:Math.round},DS={rotate:_a,rotateX:_a,rotateY:_a,rotateZ:_a,scale:tu,scaleX:tu,scaleY:tu,scaleZ:tu,skew:_a,skewX:_a,skewY:_a,distance:tt,translateX:tt,translateY:tt,translateZ:tt,x:tt,y:tt,z:tt,perspective:tt,transformPerspective:tt,opacity:Es,originX:Zp,originY:Zp,originZ:tt},Kf={borderWidth:tt,borderTopWidth:tt,borderRightWidth:tt,borderBottomWidth:tt,borderLeftWidth:tt,borderRadius:tt,borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomRightRadius:tt,borderBottomLeftRadius:tt,width:tt,maxWidth:tt,height:tt,maxHeight:tt,top:tt,right:tt,bottom:tt,left:tt,inset:tt,insetBlock:tt,insetBlockStart:tt,insetBlockEnd:tt,insetInline:tt,insetInlineStart:tt,insetInlineEnd:tt,padding:tt,paddingTop:tt,paddingRight:tt,paddingBottom:tt,paddingLeft:tt,paddingBlock:tt,paddingBlockStart:tt,paddingBlockEnd:tt,paddingInline:tt,paddingInlineStart:tt,paddingInlineEnd:tt,margin:tt,marginTop:tt,marginRight:tt,marginBottom:tt,marginLeft:tt,marginBlock:tt,marginBlockStart:tt,marginBlockEnd:tt,marginInline:tt,marginInlineStart:tt,marginInlineEnd:tt,fontSize:tt,backgroundPositionX:tt,backgroundPositionY:tt,...DS,zIndex:oy,fillOpacity:Es,strokeOpacity:Es,numOctaves:oy},OS={...Kf,color:Wt,backgroundColor:Wt,outlineColor:Wt,fill:Wt,stroke:Wt,borderColor:Wt,borderTopColor:Wt,borderRightColor:Wt,borderBottomColor:Wt,borderLeftColor:Wt,filter:mf,WebkitFilter:mf,mask:pf,WebkitMask:pf},ag=i=>OS[i],zS=new Set([mf,pf]);function ig(i,l){let o=ag(i);return zS.has(o)||(o=pn),o.getAnimatableNone?o.getAnimatableNone(l):void 0}const RS=new Set(["auto","none","0"]);function VS(i,l,o){let u=0,c;for(;u<i.length&&!c;){const d=i[u];typeof d=="string"&&!RS.has(d)&&ws(d).values.length&&(c=i[u]),u++}if(c&&o)for(const d of l)i[d]=ig(o,c)}class _S extends Hf{constructor(l,o,u,c,d){super(l,o,u,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:o,name:u}=this;if(!o||!o.current)return;super.readKeyframes();for(let x=0;x<l.length;x++){let b=l[x];if(typeof b=="string"&&(b=b.trim(),Of(b))){const T=F0(b,o.current);T!==void 0&&(l[x]=T),x===l.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!W0.has(u)||l.length!==2)return;const[c,d]=l,h=sy(c),p=sy(d),g=kp(c),m=kp(d);if(g!==m&&Ua[u]){this.needsMeasurement=!0;return}if(h!==p)if(ey(h)&&ey(p))for(let x=0;x<l.length;x++){const b=l[x];typeof b=="string"&&(l[x]=parseFloat(b))}else Ua[u]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:o}=this,u=[];for(let c=0;c<l.length;c++)(l[c]===null||CS(l[c]))&&u.push(c);u.length&&VS(l,u,o)}measureInitialState(){const{element:l,unresolvedKeyframes:o,name:u}=this;if(!l||!l.current)return;u==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ua[u](l.measureViewportBox(),window.getComputedStyle(l.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&l.getValue(u,c).jump(c,!1)}measureEndState(){const{element:l,name:o,unresolvedKeyframes:u}=this;if(!l||!l.current)return;const c=l.getValue(o);c&&c.jump(this.measuredOrigin,!1);const d=u.length-1,h=u[d];u[d]=Ua[o](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,g])=>{l.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const US=new Set(["opacity","clipPath","filter","transform"]);function lg(i,l,o){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let u=document;const c=o?.[i]??u.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(u=>u!=null)}const sg=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function yf(i){return d0(i)&&"offsetHeight"in i}const{schedule:Qf}=M0(queueMicrotask,!1),dn={x:!1,y:!1};function og(){return dn.x||dn.y}function BS(i){return i==="x"||i==="y"?dn[i]?null:(dn[i]=!0,()=>{dn[i]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function ug(i,l){const o=lg(i),u=new AbortController,c={passive:!0,...l,signal:u.signal};return[o,c,()=>u.abort()]}function LS(i){return!(i.pointerType==="touch"||og())}function HS(i,l,o={}){const[u,c,d]=ug(i,o);return u.forEach(h=>{let p=!1,g=!1,m;const x=()=>{h.removeEventListener("pointerleave",V)},b=X=>{m&&(m(X),m=void 0),x()},T=X=>{p=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,b(X))},D=()=>{p=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},V=X=>{if(X.pointerType!=="touch"){if(p){g=!0;return}b(X)}},Y=X=>{if(!LS(X))return;g=!1;const q=l(h,X);typeof q=="function"&&(m=q,h.addEventListener("pointerleave",V,c))};h.addEventListener("pointerenter",Y,c),h.addEventListener("pointerdown",D,c)}),d}const rg=(i,l)=>l?i===l?!0:rg(i,l.parentElement):!1,kf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,YS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qS(i){return YS.has(i.tagName)||i.isContentEditable===!0}const GS=new Set(["INPUT","SELECT","TEXTAREA"]);function XS(i){return GS.has(i.tagName)||i.isContentEditable===!0}const iu=new WeakSet;function uy(i){return l=>{l.key==="Enter"&&i(l)}}function Yc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const KS=(i,l)=>{const o=i.currentTarget;if(!o)return;const u=uy(()=>{if(iu.has(o))return;Yc(o,"down");const c=uy(()=>{Yc(o,"up")}),d=()=>Yc(o,"cancel");o.addEventListener("keyup",c,l),o.addEventListener("blur",d,l)});o.addEventListener("keydown",u,l),o.addEventListener("blur",()=>o.removeEventListener("keydown",u),l)};function ry(i){return kf(i)&&!og()}const cy=new WeakSet;function QS(i,l,o={}){const[u,c,d]=ug(i,o),h=p=>{const g=p.currentTarget;if(!ry(p)||cy.has(p))return;iu.add(g),o.stopPropagation&&cy.add(p);const m=l(g,p),x=(D,V)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),iu.has(g)&&iu.delete(g),ry(D)&&typeof m=="function"&&m(D,{success:V})},b=D=>{x(D,g===window||g===document||o.useGlobalTarget||rg(g,D.target))},T=D=>{x(D,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return u.forEach(p=>{(o.useGlobalTarget?window:p).addEventListener("pointerdown",h,c),yf(p)&&(p.addEventListener("focus",m=>KS(m,c)),!qS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),d}function Zf(i){return d0(i)&&"ownerSVGElement"in i}const lu=new WeakMap;let su;const cg=(i,l,o)=>(u,c)=>c&&c[0]?c[0][i+"Size"]:Zf(u)&&"getBBox"in u?u.getBBox()[l]:u[o],kS=cg("inline","width","offsetWidth"),ZS=cg("block","height","offsetHeight");function JS({target:i,borderBoxSize:l}){lu.get(i)?.forEach(o=>{o(i,{get width(){return kS(i,l)},get height(){return ZS(i,l)}})})}function FS(i){i.forEach(JS)}function PS(){typeof ResizeObserver>"u"||(su=new ResizeObserver(FS))}function WS(i,l){su||PS();const o=lg(i);return o.forEach(u=>{let c=lu.get(u);c||(c=new Set,lu.set(u,c)),c.add(l),su?.observe(u)}),()=>{o.forEach(u=>{const c=lu.get(u);c?.delete(l),c?.size||su?.unobserve(u)})}}const ou=new Set;let ll;function $S(){ll=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};ou.forEach(l=>l(i))},window.addEventListener("resize",ll)}function IS(i){return ou.add(i),ll||$S(),()=>{ou.delete(i),!ou.size&&typeof ll=="function"&&(window.removeEventListener("resize",ll),ll=void 0)}}function fy(i,l){return typeof i=="function"?IS(i):WS(i,l)}function t2(i){return Zf(i)&&i.tagName==="svg"}const e2=[...ng,Wt,pn],n2=i=>e2.find(eg(i)),hy=()=>({translate:0,scale:1,origin:0,originPoint:0}),sl=()=>({x:hy(),y:hy()}),dy=()=>({min:0,max:0}),ee=()=>({x:dy(),y:dy()}),a2=new WeakMap;function xu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Cs(i){return typeof i=="string"||Array.isArray(i)}const Jf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ff=["initial",...Jf];function bu(i){return xu(i.animate)||Ff.some(l=>Cs(i[l]))}function fg(i){return!!(bu(i)||i.variants)}function i2(i,l,o){for(const u in l){const c=l[u],d=o[u];if(pe(c))i.addValue(u,c);else if(pe(d))i.addValue(u,cl(c,{owner:i}));else if(d!==c)if(i.hasValue(u)){const h=i.getValue(u);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(u);i.addValue(u,cl(h!==void 0?h:c,{owner:i}))}}for(const u in o)l[u]===void 0&&i.removeValue(u);return l}const gf={current:null},hg={current:!1},l2=typeof window<"u";function s2(){if(hg.current=!0,!!l2)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>gf.current=i.matches;i.addEventListener("change",l),l()}else gf.current=!1}const my=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let mu={};function dg(i){mu=i}function o2(){return mu}class u2{scrapeMotionValuesFromProps(l,o,u){return{}}constructor({parent:l,props:o,presenceContext:u,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:p},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Hf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 D=be.now();this.renderScheduledAt<D&&(this.renderScheduledAt=D,Rt.render(this.render,!1,!0))};const{latestValues:m,renderState:x}=p;this.latestValues=m,this.baseTarget={...m},this.initialValues=o.initial?{...m}:{},this.renderState=x,this.parent=l,this.props=o,this.presenceContext=u,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=bu(o),this.isVariantNode=fg(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(o,{},this);for(const D in T){const V=T[D];m[D]!==void 0&&pe(V)&&V.set(m[D])}}mount(l){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=l,a2.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,u)=>this.bindToMotionValue(u,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hg.current||s2(),this.shouldReduceMotion=gf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ba(this.notifyUpdate),Ba(this.render),this.valueSubscriptions.forEach(l=>l()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const l in this.events)this.events[l].clear();for(const l in this.features){const o=this.features[l];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,o){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),o.accelerate&&US.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:p,times:g,ease:m,duration:x}=o.accelerate,b=new k0({element:this.current,name:l,keyframes:p,times:g,ease:m,duration:mn(x)}),T=h(b);this.valueSubscriptions.set(l,()=>{T(),b.cancel()});return}const u=dl.has(l);u&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&Rt.preRender(this.notifyUpdate),u&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,o)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),o.owner&&o.stop()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in mu){const o=mu[l];if(!o)continue;const{isEnabled:u,Feature:c}=o;if(!this.features[l]&&c&&u(this.props)&&(this.features[l]=new c(this)),this.features[l]){const d=this.features[l];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):ee()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,o){this.latestValues[l]=o}update(l,o){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let u=0;u<my.length;u++){const c=my[u];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,h=l[d];h&&(this.propEventSubscriptions[c]=this.on(c,h))}this.prevMotionValues=i2(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]: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(l){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(l),()=>o.variantChildren.delete(l)}addValue(l,o){const u=this.values.get(l);o!==u&&(u&&this.removeValue(l),this.bindToMotionValue(l,o),this.values.set(l,o),this.latestValues[l]=o.get())}removeValue(l){this.values.delete(l);const o=this.valueSubscriptions.get(l);o&&(o(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,o){if(this.props.values&&this.props.values[l])return this.props.values[l];let u=this.values.get(l);return u===void 0&&o!==void 0&&(u=cl(o===null?void 0:o,{owner:this}),this.addValue(l,u)),u}readValue(l,o){let u=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return u!=null&&(typeof u=="string"&&(h0(u)||m0(u))?u=parseFloat(u):!n2(u)&&pn.test(o)&&(u=ig(l,o)),this.setBaseTarget(l,pe(u)?u.get():u)),pe(u)?u.get():u}setBaseTarget(l,o){this.baseTarget[l]=o}getBaseTarget(l){const{initial:o}=this.props;let u;if(typeof o=="string"||typeof o=="object"){const d=Gf(this.props,o,this.presenceContext?.custom);d&&(u=d[l])}if(o&&u!==void 0)return u;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!pe(c)?c:this.initialValues[l]!==void 0&&u===void 0?void 0:this.baseTarget[l]}on(l,o){return this.events[l]||(this.events[l]=new jf),this.events[l].add(o)}notify(l,...o){this.events[l]&&this.events[l].notify(...o)}scheduleRenderMicrotask(){Qf.render(this.render)}}class mg extends u2{constructor(){super(...arguments),this.KeyframeResolver=_S}sortInstanceNodePosition(l,o){return l.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(l,o){const u=l.style;return u?u[o]:void 0}removeValueFromRenderState(l,{vars:o,style:u}){delete o[l],delete u[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;pe(l)&&(this.childSubscription=l.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class La{constructor(l){this.isMounted=!1,this.node=l}update(){}}function pg({top:i,left:l,right:o,bottom:u}){return{x:{min:l,max:o},y:{min:i,max:u}}}function r2({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function c2(i,l){if(!l)return i;const o=l({x:i.left,y:i.top}),u=l({x:i.right,y:i.bottom});return{top:o.y,left:o.x,bottom:u.y,right:u.x}}function qc(i){return i===void 0||i===1}function vf({scale:i,scaleX:l,scaleY:o}){return!qc(i)||!qc(l)||!qc(o)}function hi(i){return vf(i)||yg(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function yg(i){return py(i.x)||py(i.y)}function py(i){return i&&i!=="0%"}function pu(i,l,o){const u=i-o,c=l*u;return o+c}function yy(i,l,o,u,c){return c!==void 0&&(i=pu(i,c,u)),pu(i,o,u)+l}function xf(i,l=0,o=1,u,c){i.min=yy(i.min,l,o,u,c),i.max=yy(i.max,l,o,u,c)}function gg(i,{x:l,y:o}){xf(i.x,l.translate,l.scale,l.originPoint),xf(i.y,o.translate,o.scale,o.originPoint)}const gy=.999999999999,vy=1.0000000000001;function f2(i,l,o,u=!1){const c=o.length;if(!c)return;l.x=l.y=1;let d,h;for(let p=0;p<c;p++){d=o[p],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ul(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,gg(i,h)),u&&hi(d.latestValues)&&ul(i,d.latestValues))}l.x<vy&&l.x>gy&&(l.x=1),l.y<vy&&l.y>gy&&(l.y=1)}function ol(i,l){i.min=i.min+l,i.max=i.max+l}function xy(i,l,o,u,c=.5){const d=Ht(i.min,i.max,c);xf(i,l,o,d,u)}function ul(i,l){xy(i.x,l.x,l.scaleX,l.scale,l.originX),xy(i.y,l.y,l.scaleY,l.scale,l.originY)}function vg(i,l){return pg(c2(i.getBoundingClientRect(),l))}function h2(i,l,o){const u=vg(i,o),{scroll:c}=l;return c&&(ol(u.x,c.offset.x),ol(u.y,c.offset.y)),u}const d2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m2=hl.length;function p2(i,l,o){let u="",c=!0;for(let d=0;d<m2;d++){const h=hl[d],p=i[h];if(p===void 0)continue;let g=!0;if(typeof p=="number")g=p===(h.startsWith("scale")?1:0);else{const m=parseFloat(p);g=h.startsWith("scale")?m===1:m===0}if(!g||o){const m=sg(p,Kf[h]);if(!g){c=!1;const x=d2[h]||h;u+=`${x}(${m}) `}o&&(l[h]=m)}}return u=u.trim(),o?u=o(l,c?"":u):c&&(u="none"),u}function Pf(i,l,o){const{style:u,vars:c,transformOrigin:d}=i;let h=!1,p=!1;for(const g in l){const m=l[g];if(dl.has(g)){h=!0;continue}else if(N0(g)){c[g]=m;continue}else{const x=sg(m,Kf[g]);g.startsWith("origin")?(p=!0,d[g]=x):u[g]=x}}if(l.transform||(h||o?u.transform=p2(l,i.transform,o):u.transform&&(u.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:x=0}=d;u.transformOrigin=`${g} ${m} ${x}`}}function xg(i,{style:l,vars:o},u,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,u);for(h in o)d.setProperty(h,o[h])}function by(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const ys={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if(tt.test(i))i=parseFloat(i);else return i;const o=by(i,l.target.x),u=by(i,l.target.y);return`${o}% ${u}%`}},y2={correct:(i,{treeScale:l,projectionDelta:o})=>{const u=i,c=pn.parse(i);if(c.length>5)return u;const d=pn.createTransformer(i),h=typeof c[0]!="number"?1:0,p=o.x.scale*l.x,g=o.y.scale*l.y;c[0+h]/=p,c[1+h]/=g;const m=Ht(p,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},bf={borderRadius:{...ys,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ys,borderTopRightRadius:ys,borderBottomLeftRadius:ys,borderBottomRightRadius:ys,boxShadow:y2};function bg(i,{layout:l,layoutId:o}){return dl.has(i)||i.startsWith("origin")||(l||o!==void 0)&&(!!bf[i]||i==="opacity")}function Wf(i,l,o){const u=i.style,c=l?.style,d={};if(!u)return d;for(const h in u)(pe(u[h])||c&&pe(c[h])||bg(h,i)||o?.getValue(h)?.liveStyle!==void 0)&&(d[h]=u[h]);return d}function g2(i){return window.getComputedStyle(i)}class v2 extends mg{constructor(){super(...arguments),this.type="html",this.renderInstance=xg}readValueFromInstance(l,o){if(dl.has(o))return this.projection?.isProjecting?lf(o):Bb(l,o);{const u=g2(l),c=(N0(o)?u.getPropertyValue(o):u[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:o}){return vg(l,o)}build(l,o,u){Pf(l,o,u.transformTemplate)}scrapeMotionValuesFromProps(l,o,u){return Wf(l,o,u)}}const x2={offset:"stroke-dashoffset",array:"stroke-dasharray"},b2={offset:"strokeDashoffset",array:"strokeDasharray"};function S2(i,l,o=1,u=0,c=!0){i.pathLength=1;const d=c?x2:b2;i[d.offset]=`${-u}`,i[d.array]=`${l} ${o}`}const T2=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Sg(i,{attrX:l,attrY:o,attrScale:u,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...p},g,m,x){if(Pf(i,p,m),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:b,style:T}=i;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=x?.transformBox??"fill-box",delete b.transformBox);for(const D of T2)b[D]!==void 0&&(T[D]=b[D],delete b[D]);l!==void 0&&(b.x=l),o!==void 0&&(b.y=o),u!==void 0&&(b.scale=u),c!==void 0&&S2(b,c,d,h,!1)}const Tg=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"]),Ag=i=>typeof i=="string"&&i.toLowerCase()==="svg";function A2(i,l,o,u){xg(i,l,void 0,u);for(const c in l.attrs)i.setAttribute(Tg.has(c)?c:Xf(c),l.attrs[c])}function Eg(i,l,o){const u=Wf(i,l,o);for(const c in i)if(pe(i[c])||pe(l[c])){const d=hl.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;u[d]=i[c]}return u}class E2 extends mg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}getBaseTargetFromProps(l,o){return l[o]}readValueFromInstance(l,o){if(dl.has(o)){const u=ag(o);return u&&u.default||0}return o=Tg.has(o)?o:Xf(o),l.getAttribute(o)}scrapeMotionValuesFromProps(l,o,u){return Eg(l,o,u)}build(l,o,u){Sg(l,o,this.isSVGTag,u.transformTemplate,u.style)}renderInstance(l,o,u,c){A2(l,o,u,c)}mount(l){this.isSVGTag=Ag(l.tagName),super.mount(l)}}const w2=Ff.length;function wg(i){if(!i)return;if(!i.isControllingVariants){const o=i.parent?wg(i.parent)||{}:{};return i.props.initial!==void 0&&(o.initial=i.props.initial),o}const l={};for(let o=0;o<w2;o++){const u=Ff[o],c=i.props[u];(Cs(c)||c===!1)&&(l[u]=c)}return l}function Cg(i,l){if(!Array.isArray(l))return!1;const o=l.length;if(o!==i.length)return!1;for(let u=0;u<o;u++)if(l[u]!==i[u])return!1;return!0}const C2=[...Jf].reverse(),M2=Jf.length;function j2(i){return l=>Promise.all(l.map(({animation:o,options:u})=>ES(i,o,u)))}function N2(i){let l=j2(i),o=Sy(),u=!0;const c=g=>(m,x)=>{const b=rl(i,x,g==="exit"?i.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:D,...V}=b;m={...m,...V,...D}}return m};function d(g){l=g(i)}function h(g){const{props:m}=i,x=wg(i.parent)||{},b=[],T=new Set;let D={},V=1/0;for(let X=0;X<M2;X++){const q=C2[X],K=o[q],G=m[q]!==void 0?m[q]:x[q],F=Cs(G),Z=q===g?K.isActive:null;Z===!1&&(V=X);let lt=G===x[q]&&G!==m[q]&&F;if(lt&&u&&i.manuallyAnimateOnMount&&(lt=!1),K.protectedKeys={...D},!K.isActive&&Z===null||!G&&!K.prevProp||xu(G)||typeof G=="boolean")continue;if(q==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(D={...D,...K.prevResolvedValues});continue}const J=D2(K.prevProp,G);let P=J||q===g&&K.isActive&&!lt&&F||X>V&&F,st=!1;const bt=Array.isArray(G)?G:[G];let wt=bt.reduce(c(q),{});Z===!1&&(wt={});const{prevResolvedValues:Bt={}}=K,ie={...Bt,...wt},vt=H=>{P=!0,T.has(H)&&(st=!0,T.delete(H)),K.needsAnimating[H]=!0;const I=i.getValue(H);I&&(I.liveStyle=!1)};for(const H in ie){const I=wt[H],ut=Bt[H];if(D.hasOwnProperty(H))continue;let ht=!1;ff(I)&&ff(ut)?ht=!Cg(I,ut):ht=I!==ut,ht?I!=null?vt(H):T.add(H):I!==void 0&&T.has(H)?vt(H):K.protectedKeys[H]=!0}K.prevProp=G,K.prevResolvedValues=wt,K.isActive&&(D={...D,...wt}),u&&i.blockInitialAnimation&&(P=!1);const $t=lt&&J;P&&(!$t||st)&&b.push(...bt.map(H=>{const I={type:q};if(typeof H=="string"&&u&&!$t&&i.manuallyAnimateOnMount&&i.parent){const{parent:ut}=i,ht=rl(ut,H);if(ut.enteringChildren&&ht){const{delayChildren:E}=ht.transition||{};I.delay=J0(ut.enteringChildren,i,E)}}return{animation:H,options:I}}))}if(T.size){const X={};if(typeof m.initial!="boolean"){const q=rl(i,Array.isArray(m.initial)?m.initial[0]:m.initial);q&&q.transition&&(X.transition=q.transition)}T.forEach(q=>{const K=i.getBaseTarget(q),G=i.getValue(q);G&&(G.liveStyle=!0),X[q]=K??null}),b.push({animation:X})}let Y=!!b.length;return u&&(m.initial===!1||m.initial===m.animate)&&!i.manuallyAnimateOnMount&&(Y=!1),u=!1,Y?l(b):Promise.resolve()}function p(g,m){if(o[g].isActive===m)return Promise.resolve();i.variantChildren?.forEach(b=>b.animationState?.setActive(g,m)),o[g].isActive=m;const x=h(g);for(const b in o)o[b].protectedKeys={};return x}return{animateChanges:h,setActive:p,setAnimateFunction:d,getState:()=>o,reset:()=>{o=Sy()}}}function D2(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!Cg(l,i):!1}function fi(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sy(){return{animate:fi(!0),whileInView:fi(),whileHover:fi(),whileTap:fi(),whileDrag:fi(),whileFocus:fi(),exit:fi()}}function Ty(i,l){i.min=l.min,i.max=l.max}function hn(i,l){Ty(i.x,l.x),Ty(i.y,l.y)}function Ay(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const Mg=1e-4,O2=1-Mg,z2=1+Mg,jg=.01,R2=0-jg,V2=0+jg;function Se(i){return i.max-i.min}function _2(i,l,o){return Math.abs(i-l)<=o}function Ey(i,l,o,u=.5){i.origin=u,i.originPoint=Ht(l.min,l.max,i.origin),i.scale=Se(o)/Se(l),i.translate=Ht(o.min,o.max,i.origin)-i.originPoint,(i.scale>=O2&&i.scale<=z2||isNaN(i.scale))&&(i.scale=1),(i.translate>=R2&&i.translate<=V2||isNaN(i.translate))&&(i.translate=0)}function Ss(i,l,o,u){Ey(i.x,l.x,o.x,u?u.originX:void 0),Ey(i.y,l.y,o.y,u?u.originY:void 0)}function wy(i,l,o){i.min=o.min+l.min,i.max=i.min+Se(l)}function U2(i,l,o){wy(i.x,l.x,o.x),wy(i.y,l.y,o.y)}function Cy(i,l,o){i.min=l.min-o.min,i.max=i.min+Se(l)}function yu(i,l,o){Cy(i.x,l.x,o.x),Cy(i.y,l.y,o.y)}function My(i,l,o,u,c){return i-=l,i=pu(i,1/o,u),c!==void 0&&(i=pu(i,1/c,u)),i}function B2(i,l=0,o=1,u=.5,c,d=i,h=i){if(En.test(l)&&(l=parseFloat(l),l=Ht(h.min,h.max,l/100)-h.min),typeof l!="number")return;let p=Ht(d.min,d.max,u);i===d&&(p-=l),i.min=My(i.min,l,o,p,c),i.max=My(i.max,l,o,p,c)}function jy(i,l,[o,u,c],d,h){B2(i,l[o],l[u],l[c],l.scale,d,h)}const L2=["x","scaleX","originX"],H2=["y","scaleY","originY"];function Ny(i,l,o,u){jy(i.x,l,L2,o?o.x:void 0,u?u.x:void 0),jy(i.y,l,H2,o?o.y:void 0,u?u.y:void 0)}function Dy(i){return i.translate===0&&i.scale===1}function Ng(i){return Dy(i.x)&&Dy(i.y)}function Oy(i,l){return i.min===l.min&&i.max===l.max}function Y2(i,l){return Oy(i.x,l.x)&&Oy(i.y,l.y)}function zy(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function Dg(i,l){return zy(i.x,l.x)&&zy(i.y,l.y)}function Ry(i){return Se(i.x)/Se(i.y)}function Vy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function An(i){return[i("x"),i("y")]}function q2(i,l,o){let u="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=o?.z||0;if((c||d||h)&&(u=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(u+=`scale(${1/l.x}, ${1/l.y}) `),o){const{transformPerspective:m,rotate:x,rotateX:b,rotateY:T,skewX:D,skewY:V}=o;m&&(u=`perspective(${m}px) ${u}`),x&&(u+=`rotate(${x}deg) `),b&&(u+=`rotateX(${b}deg) `),T&&(u+=`rotateY(${T}deg) `),D&&(u+=`skewX(${D}deg) `),V&&(u+=`skewY(${V}deg) `)}const p=i.x.scale*l.x,g=i.y.scale*l.y;return(p!==1||g!==1)&&(u+=`scale(${p}, ${g})`),u||"none"}const Og=["TopLeft","TopRight","BottomLeft","BottomRight"],G2=Og.length,_y=i=>typeof i=="string"?parseFloat(i):i,Uy=i=>typeof i=="number"||tt.test(i);function X2(i,l,o,u,c,d){c?(i.opacity=Ht(0,o.opacity??1,K2(u)),i.opacityExit=Ht(l.opacity??1,0,Q2(u))):d&&(i.opacity=Ht(l.opacity??1,o.opacity??1,u));for(let h=0;h<G2;h++){const p=`border${Og[h]}Radius`;let g=By(l,p),m=By(o,p);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Uy(g)===Uy(m)?(i[p]=Math.max(Ht(_y(g),_y(m),u),0),(En.test(m)||En.test(g))&&(i[p]+="%")):i[p]=m}(l.rotate||o.rotate)&&(i.rotate=Ht(l.rotate||0,o.rotate||0,u))}function By(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const K2=zg(0,.5,A0),Q2=zg(.5,.95,an);function zg(i,l,o){return u=>u<i?0:u>l?1:o(As(i,l,u))}function k2(i,l,o){const u=pe(i)?i:cl(i);return u.start(qf("",u,l,o)),u.animation}function Ms(i,l,o,u={passive:!0}){return i.addEventListener(l,o,u),()=>i.removeEventListener(l,o)}const Z2=(i,l)=>i.depth-l.depth;class J2{constructor(){this.children=[],this.isDirty=!1}add(l){Cf(this.children,l),this.isDirty=!0}remove(l){cu(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(Z2),this.isDirty=!1,this.children.forEach(l)}}function F2(i,l){const o=be.now(),u=({timestamp:c})=>{const d=c-o;d>=l&&(Ba(u),i(d-l))};return Rt.setup(u,!0),()=>Ba(u)}function uu(i){return pe(i)?i.get():i}class P2{constructor(){this.members=[]}add(l){Cf(this.members,l);for(let o=this.members.length-1;o>=0;o--){const u=this.members[o];if(u===l||u===this.lead||u===this.prevLead)continue;const c=u.instance;c&&c.isConnected===!1&&u.isPresent!==!1&&!u.snapshot&&cu(this.members,u)}l.scheduleRender()}remove(l){if(cu(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(l){const o=this.members.findIndex(c=>l===c);if(o===0)return!1;let u;for(let c=o;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){u=d;break}}return u?(this.promote(u),!0):!1}promote(l,o){const u=this.lead;if(l!==u&&(this.prevLead=u,this.lead=l,l.show(),u)){u.instance&&u.scheduleRender(),l.scheduleRender();const c=u.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=u.instance;g&&g.isConnected===!1&&!u.snapshot||(l.resumeFrom=u,o&&(l.resumeFrom.preserveOpacity=!0),u.snapshot&&(l.snapshot=u.snapshot,l.snapshot.latestValues=u.animationValues||u.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:p}=l.options;p===!1&&u.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:o,resumingFrom:u}=l;o.onExitComplete&&o.onExitComplete(),u&&u.options.onExitComplete&&u.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ru={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gc=["","X","Y","Z"],W2=1e3;let $2=0;function Xc(i,l,o,u){const{latestValues:c}=l;c[i]&&(o[i]=c[i],l.setStaticValue(i,0),u&&(u[i]=0))}function Rg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const o=I0(l);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(o,"transform",Rt,!(c||d))}const{parent:u}=i;u&&!u.hasCheckedOptimisedAppear&&Rg(u)}function Vg({attachResizeListener:i,defaultParent:l,measureScroll:o,checkIsScrollRoot:u,resetTransform:c}){return class{constructor(h={},p=l?.()){this.id=$2++,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(eT),this.nodes.forEach(lT),this.nodes.forEach(sT),this.nodes.forEach(nT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new J2)}addEventListener(h,p){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new jf),this.eventHandlers.get(h).add(p)}notifyListeners(h,...p){const g=this.eventHandlers.get(h);g&&g.notify(...p)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Zf(h)&&!t2(h),this.instance=h;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),i){let x,b=0;const T=()=>this.root.updateBlockedByResize=!1;Rt.read(()=>{b=window.innerWidth}),i(h,()=>{const D=window.innerWidth;D!==b&&(b=D,this.root.updateBlockedByResize=!0,x&&x(),x=F2(T,250),ru.hasAnimatedSinceResize&&(ru.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:D})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||fT,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:X}=m.getProps(),q=!this.targetLayout||!Dg(this.targetLayout,D),K=!b&&T;if(this.options.layoutRoot||this.resumeFrom||K||b&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const G={...Yf(V,"layout"),onPlay:Y,onComplete:X};(m.shouldReduceMotion||this.options.layoutRoot)&&(G.delay=0,G.type=!1),this.startAnimation(G),this.setAnimationOrigin(x,K)}else b||Yy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=D})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ba(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(oT),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rg(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:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ly);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iT),this.nodes.forEach(I2),this.nodes.forEach(tT)):this.nodes.forEach(Hy),this.clearAllSnapshots();const p=be.now();fe.delta=wn(0,1e3/60,p-fe.timestamp),fe.timestamp=p,fe.isProcessing=!0,Vc.update.process(fe),Vc.preRender.process(fe),Vc.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aT),this.sharedNodes.forEach(uT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Se(this.snapshot.measuredBox.x)&&!Se(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ee(),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,h?h.layoutBox:void 0)}updateScroll(h="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(p=!1),p&&this.instance){const g=u(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Ng(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,x=m!==this.prevTransformTemplateValue;h&&this.instance&&(p||hi(this.latestValues)||x)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return h&&(g=this.removeTransform(g)),hT(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return ee();const p=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(dT))){const{scroll:m}=this.root;m&&(ol(p.x,m.offset.x),ol(p.y,m.offset.y))}return p}removeElementScroll(h){const p=ee();if(hn(p,h),this.scroll?.wasRoot)return p;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:x,options:b}=m;m!==this.root&&x&&b.layoutScroll&&(x.wasRoot&&hn(p,h),ol(p.x,x.offset.x),ol(p.y,x.offset.y))}return p}applyTransform(h,p=!1){const g=ee();hn(g,h);for(let m=0;m<this.path.length;m++){const x=this.path[m];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&ul(g,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),hi(x.latestValues)&&ul(g,x.latestValues)}return hi(this.latestValues)&&ul(g,this.latestValues),g}removeTransform(h){const p=ee();hn(p,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!hi(m.latestValues))continue;vf(m.latestValues)&&m.updateSnapshot();const x=ee(),b=m.measurePageBox();hn(x,b),Ny(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,x)}return hi(this.latestValues)&&Ny(p,this.latestValues),p}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.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!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(h||g&&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=fe.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),U2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hn(this.target,this.layout.layoutBox),gg(this.target,this.targetDelta)):hn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||vf(this.parent.latestValues)||yg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(h,p,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),yu(this.relativeTargetOrigin,p,g),hn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),p=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(g=!1),g)return;const{layout:m,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||!(m||x))return;hn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;f2(this.layoutCorrected,this.treeScale,this.path,p),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=ee());const{target:D}=h;if(!D){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),Ss(this.projectionDelta,this.layoutCorrected,D,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!Vy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",D))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sl(),this.projectionDelta=sl(),this.projectionDeltaWithTransform=sl()}setAnimationOrigin(h,p=!1){const g=this.snapshot,m=g?g.latestValues:{},x={...this.latestValues},b=sl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=ee(),D=g?g.source:void 0,V=this.layout?this.layout.source:void 0,Y=D!==V,X=this.getStack(),q=!X||X.members.length<=1,K=!!(Y&&!q&&this.options.crossfade===!0&&!this.path.some(cT));this.animationProgress=0;let G;this.mixTargetDelta=F=>{const Z=F/1e3;qy(b.x,h.x,Z),qy(b.y,h.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rT(this.relativeTarget,this.relativeTargetOrigin,T,Z),G&&Y2(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=ee()),hn(G,this.relativeTarget)),Y&&(this.animationValues=x,X2(x,m,this.latestValues,Z,K,q)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ba(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Rt.update(()=>{ru.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cl(0)),this.motionValue.jump(0,!1),this.currentAnimation=k2(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),h.onUpdate&&h.onUpdate(p)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.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 h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(W2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:x}=h;if(!(!p||!g||!m)){if(this!==h&&this.layout&&m&&_g(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||ee();const b=Se(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+b;const T=Se(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}hn(p,g),ul(p,x),Ss(this.projectionDeltaWithTransform,this.layoutCorrected,p,x)}}registerSharedNode(h,p){this.sharedNodes.has(h)||this.sharedNodes.set(h,new P2),this.sharedNodes.get(h).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){const{layoutId:h}=this.options;return h?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:h}=this.options;return h?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let p=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&Xc("z",h,m,this.animationValues);for(let x=0;x<Gc.length;x++)Xc(`rotate${Gc[x]}`,h,m,this.animationValues),Xc(`skew${Gc[x]}`,h,m,this.animationValues);h.render();for(const x in m)h.setStaticValue(x,m[x]),this.animationValues&&(this.animationValues[x]=m[x]);h.scheduleRender()}applyProjectionStyles(h,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){h.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,h.visibility="",h.opacity="",h.pointerEvents=uu(p?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=uu(p?.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const x=m.animationValues||m.latestValues;this.applyTransformsToTarget();let b=q2(this.projectionDeltaWithTransform,this.treeScale,x);g&&(b=g(x,b)),h.transform=b;const{x:T,y:D}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${D.origin*100}% 0`,m.animationValues?h.opacity=m===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:h.opacity=m===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const V in bf){if(x[V]===void 0)continue;const{correct:Y,applyTo:X,isCSSVariable:q}=bf[V],K=b==="none"?x[V]:Y(x[V],m);if(X){const G=X.length;for(let F=0;F<G;F++)h[X[F]]=K}else q?this.options.visualElement.renderState.vars[V]=K:h[V]=K}this.options.layoutId&&(h.pointerEvents=m===this?uu(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Ly),this.root.sharedNodes.clear()}}}function I2(i){i.updateLayout()}function tT(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?An(x=>{const b=d?l.measuredBox[x]:l.layoutBox[x],T=Se(b);b.min=o[x].min,b.max=b.min+T}):_g(c,l.layoutBox,o)&&An(x=>{const b=d?l.measuredBox[x]:l.layoutBox[x],T=Se(o[x]);b.max=b.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[x].max=i.relativeTarget[x].min+T)});const h=sl();Ss(h,o,l.layoutBox);const p=sl();d?Ss(p,i.applyTransform(u,!0),l.measuredBox):Ss(p,o,l.layoutBox);const g=!Ng(h);let m=!1;if(!i.resumeFrom){const x=i.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:b,layout:T}=x;if(b&&T){const D=ee();yu(D,l.layoutBox,b.layoutBox);const V=ee();yu(V,o,T.layoutBox),Dg(D,V)||(m=!0),x.options.layoutRoot&&(i.relativeTarget=V,i.relativeTargetOrigin=D,i.relativeParent=x)}}}i.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:p,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(i.isLead()){const{onExitComplete:o}=i.options;o&&o()}i.options.transition=void 0}function eT(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function nT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function aT(i){i.clearSnapshot()}function Ly(i){i.clearMeasurements()}function Hy(i){i.isLayoutDirty=!1}function iT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function Yy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function lT(i){i.resolveTargetDelta()}function sT(i){i.calcProjection()}function oT(i){i.resetSkewAndRotation()}function uT(i){i.removeLeadSnapshot()}function qy(i,l,o){i.translate=Ht(l.translate,0,o),i.scale=Ht(l.scale,1,o),i.origin=l.origin,i.originPoint=l.originPoint}function Gy(i,l,o,u){i.min=Ht(l.min,o.min,u),i.max=Ht(l.max,o.max,u)}function rT(i,l,o,u){Gy(i.x,l.x,o.x,u),Gy(i.y,l.y,o.y,u)}function cT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const fT={duration:.45,ease:[.4,0,.1,1]},Xy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),Ky=Xy("applewebkit/")&&!Xy("chrome/")?Math.round:an;function Qy(i){i.min=Ky(i.min),i.max=Ky(i.max)}function hT(i){Qy(i.x),Qy(i.y)}function _g(i,l,o){return i==="position"||i==="preserve-aspect"&&!_2(Ry(l),Ry(o),.2)}function dT(i){return i!==i.root&&i.scroll?.wasRoot}const mT=Vg({attachResizeListener:(i,l)=>Ms(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Kc={current:void 0},Ug=Vg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Kc.current){const i=new mT({});i.mount(window),i.setOptions({layoutScroll:!0}),Kc.current=i}return Kc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),$f=z.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function ky(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function pT(...i){return l=>{let o=!1;const u=i.map(c=>{const d=ky(c,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<u.length;c++){const d=u[c];typeof d=="function"?d():ky(i[c],null)}}}}function yT(...i){return z.useCallback(pT(...i),i)}class gT extends z.Component{getSnapshotBeforeUpdate(l){const o=this.props.childRef.current;if(o&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const u=o.offsetParent,c=yf(u)&&u.offsetWidth||0,d=yf(u)&&u.offsetHeight||0,h=this.props.sizeRef.current;h.height=o.offsetHeight||0,h.width=o.offsetWidth||0,h.top=o.offsetTop,h.left=o.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function vT({children:i,isPresent:l,anchorX:o,anchorY:u,root:c,pop:d}){const h=z.useId(),p=z.useRef(null),g=z.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=z.useContext($f),x=i.props?.ref??i?.ref,b=yT(p,x);return z.useInsertionEffect(()=>{const{width:T,height:D,top:V,left:Y,right:X,bottom:q}=g.current;if(l||d===!1||!p.current||!T||!D)return;const K=o==="left"?`left: ${Y}`:`right: ${X}`,G=u==="bottom"?`bottom: ${q}`:`top: ${V}`;p.current.dataset.motionPopId=h;const F=document.createElement("style");m&&(F.nonce=m);const Z=c??document.head;return Z.appendChild(F),F.sheet&&F.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${h}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${T}px !important;
|
|
13
|
-
height: ${D}px !important;
|
|
14
|
-
${K}px !important;
|
|
15
|
-
${G}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{Z.contains(F)&&Z.removeChild(F)}},[l]),v.jsx(gT,{isPresent:l,childRef:p,sizeRef:g,pop:d,children:d===!1?i:z.cloneElement(i,{ref:b})})}const xT=({children:i,initial:l,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:h,anchorX:p,anchorY:g,root:m})=>{const x=wf(bT),b=z.useId();let T=!0,D=z.useMemo(()=>(T=!1,{id:b,initial:l,isPresent:o,custom:c,onExitComplete:V=>{x.set(V,!0);for(const Y of x.values())if(!Y)return;u&&u()},register:V=>(x.set(V,!1),()=>x.delete(V))}),[o,x,u]);return d&&T&&(D={...D}),z.useMemo(()=>{x.forEach((V,Y)=>x.set(Y,!1))},[o]),z.useEffect(()=>{!o&&!x.size&&u&&u()},[o]),i=v.jsx(vT,{pop:h==="popLayout",isPresent:o,anchorX:p,anchorY:g,root:m,children:i}),v.jsx(vu.Provider,{value:D,children:i})};function bT(){return new Map}function Bg(i=!0){const l=z.useContext(vu);if(l===null)return[!0,null];const{isPresent:o,onExitComplete:u,register:c}=l,d=z.useId();z.useEffect(()=>{if(i)return c(d)},[i]);const h=z.useCallback(()=>i&&u&&u(d),[d,u,i]);return!o&&u?[!1,h]:[!0]}const eu=i=>i.key||"";function Zy(i){const l=[];return z.Children.forEach(i,o=>{z.isValidElement(o)&&l.push(o)}),l}const Jy=({children:i,custom:l,initial:o=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:p="left",anchorY:g="top",root:m})=>{const[x,b]=Bg(h),T=z.useMemo(()=>Zy(i),[i]),D=h&&!x?[]:T.map(eu),V=z.useRef(!0),Y=z.useRef(T),X=wf(()=>new Map),q=z.useRef(new Set),[K,G]=z.useState(T),[F,Z]=z.useState(T);f0(()=>{V.current=!1,Y.current=T;for(let P=0;P<F.length;P++){const st=eu(F[P]);D.includes(st)?(X.delete(st),q.current.delete(st)):X.get(st)!==!0&&X.set(st,!1)}},[F,D.length,D.join("-")]);const lt=[];if(T!==K){let P=[...T];for(let st=0;st<F.length;st++){const bt=F[st],wt=eu(bt);D.includes(wt)||(P.splice(st,0,bt),lt.push(bt))}return d==="wait"&<.length&&(P=lt),Z(Zy(P)),G(T),null}const{forceRender:J}=z.useContext(Ef);return v.jsx(v.Fragment,{children:F.map(P=>{const st=eu(P),bt=h&&!x?!1:T===F||D.includes(st),wt=()=>{if(q.current.has(st))return;if(q.current.add(st),X.has(st))X.set(st,!0);else return;let Bt=!0;X.forEach(ie=>{ie||(Bt=!1)}),Bt&&(J?.(),Z(Y.current),h&&b?.(),u&&u())};return v.jsx(xT,{isPresent:bt,initial:!V.current||o?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:bt?void 0:wt,anchorX:p,anchorY:g,children:P},st)})})},Lg=z.createContext({strict:!1}),Fy={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 Py=!1;function ST(){if(Py)return;const i={};for(const l in Fy)i[l]={isEnabled:o=>Fy[l].some(u=>!!o[u])};dg(i),Py=!0}function Hg(){return ST(),o2()}function TT(i){const l=Hg();for(const o in i)l[o]={...l[o],...i[o]};dg(l)}const AT=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","propagate","ignoreStrict","viewport"]);function gu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||AT.has(i)}let Yg=i=>!gu(i);function ET(i){typeof i=="function"&&(Yg=l=>l.startsWith("on")?!gu(l):i(l))}try{ET(require("@emotion/is-prop-valid").default)}catch{}function wT(i,l,o){const u={};for(const c in i)c==="values"&&typeof i.values=="object"||(Yg(c)||o===!0&&gu(c)||!l&&!gu(c)||i.draggable&&c.startsWith("onDrag"))&&(u[c]=i[c]);return u}const Su=z.createContext({});function CT(i,l){if(bu(i)){const{initial:o,animate:u}=i;return{initial:o===!1||Cs(o)?o:void 0,animate:Cs(u)?u:void 0}}return i.inherit!==!1?l:{}}function MT(i){const{initial:l,animate:o}=CT(i,z.useContext(Su));return z.useMemo(()=>({initial:l,animate:o}),[Wy(l),Wy(o)])}function Wy(i){return Array.isArray(i)?i.join(" "):i}const If=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qg(i,l,o){for(const u in l)!pe(l[u])&&!bg(u,o)&&(i[u]=l[u])}function jT({transformTemplate:i},l){return z.useMemo(()=>{const o=If();return Pf(o,l,i),Object.assign({},o.vars,o.style)},[l])}function NT(i,l){const o=i.style||{},u={};return qg(u,o,i),Object.assign(u,jT(i,l)),u}function DT(i,l){const o={},u=NT(i,l);return i.drag&&i.dragListener!==!1&&(o.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(o.tabIndex=0),o.style=u,o}const Gg=()=>({...If(),attrs:{}});function OT(i,l,o,u){const c=z.useMemo(()=>{const d=Gg();return Sg(d,l,Ag(u),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};qg(d,i.style,i),c.style={...d,...c.style}}return c}const zT=["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 th(i){return typeof i!="string"||i.includes("-")?!1:!!(zT.indexOf(i)>-1||/[A-Z]/u.test(i))}function RT(i,l,o,{latestValues:u},c,d=!1,h){const g=(h??th(i)?OT:DT)(l,u,c,i),m=wT(l,typeof i=="string",d),x=i!==z.Fragment?{...m,...g,ref:o}:{},{children:b}=l,T=z.useMemo(()=>pe(b)?b.get():b,[b]);return z.createElement(i,{...x,children:T})}function VT({scrapeMotionValuesFromProps:i,createRenderState:l},o,u,c){return{latestValues:_T(o,u,c,i),renderState:l()}}function _T(i,l,o,u){const c={},d=u(i,{});for(const T in d)c[T]=uu(d[T]);let{initial:h,animate:p}=i;const g=bu(i),m=fg(i);l&&m&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),p===void 0&&(p=l.animate));let x=o?o.initial===!1:!1;x=x||h===!1;const b=x?p:h;if(b&&typeof b!="boolean"&&!xu(b)){const T=Array.isArray(b)?b:[b];for(let D=0;D<T.length;D++){const V=Gf(i,T[D]);if(V){const{transitionEnd:Y,transition:X,...q}=V;for(const K in q){let G=q[K];if(Array.isArray(G)){const F=x?G.length-1:0;G=G[F]}G!==null&&(c[K]=G)}for(const K in Y)c[K]=Y[K]}}}return c}const Xg=i=>(l,o)=>{const u=z.useContext(Su),c=z.useContext(vu),d=()=>VT(i,l,u,c);return o?d():wf(d)},UT=Xg({scrapeMotionValuesFromProps:Wf,createRenderState:If}),BT=Xg({scrapeMotionValuesFromProps:Eg,createRenderState:Gg}),LT=Symbol.for("motionComponentSymbol");function HT(i,l,o){const u=z.useRef(o);z.useInsertionEffect(()=>{u.current=o});const c=z.useRef(null);return z.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=u.current;if(typeof h=="function")if(d){const p=h(d);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d)},[l])}const Kg=z.createContext({});function al(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function YT(i,l,o,u,c,d){const{visualElement:h}=z.useContext(Su),p=z.useContext(Lg),g=z.useContext(vu),m=z.useContext($f),x=m.reducedMotion,b=m.skipAnimations,T=z.useRef(null),D=z.useRef(!1);u=u||p.renderer,!T.current&&u&&(T.current=u(i,{visualState:l,parent:h,props:o,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:x,skipAnimations:b,isSVG:d}),D.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const V=T.current,Y=z.useContext(Kg);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&qT(T.current,o,c,Y);const X=z.useRef(!1);z.useInsertionEffect(()=>{V&&X.current&&V.update(o,g)});const q=o[$0],K=z.useRef(!!q&&!window.MotionHandoffIsComplete?.(q)&&window.MotionHasOptimisedAnimation?.(q));return f0(()=>{D.current=!0,V&&(X.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),K.current&&V.animationState&&V.animationState.animateChanges())}),z.useEffect(()=>{V&&(!K.current&&V.animationState&&V.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(q)}),K.current=!1),V.enteringChildren=void 0)}),V}function qT(i,l,o,u){const{layoutId:c,layout:d,drag:h,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:x}=l;i.projection=new o(i.latestValues,l["data-framer-portal-id"]?void 0:Qg(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||p&&al(p),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:u,crossfade:x,layoutScroll:g,layoutRoot:m})}function Qg(i){if(i)return i.options.allowProjection!==!1?i.projection:Qg(i.parent)}function Qc(i,{forwardMotionProps:l=!1,type:o}={},u,c){u&&TT(u);const d=o?o==="svg":th(i),h=d?BT:UT;function p(m,x){let b;const T={...z.useContext($f),...m,layoutId:GT(m)},{isStatic:D}=T,V=MT(m),Y=h(m,D);if(!D&&c0){XT();const X=KT(T);b=X.MeasureLayout,V.visualElement=YT(i,Y,T,c,X.ProjectionNode,d)}return v.jsxs(Su.Provider,{value:V,children:[b&&V.visualElement?v.jsx(b,{visualElement:V.visualElement,...T}):null,RT(i,m,HT(Y,V.visualElement,x),Y,D,l,d)]})}p.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=z.forwardRef(p);return g[LT]=i,g}function GT({layoutId:i}){const l=z.useContext(Ef).id;return l&&i!==void 0?l+"-"+i:i}function XT(i,l){z.useContext(Lg).strict}function KT(i){const l=Hg(),{drag:o,layout:u}=l;if(!o&&!u)return{};const c={...o,...u};return{MeasureLayout:o?.isEnabled(i)||u?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function QT(i,l){if(typeof Proxy>"u")return Qc;const o=new Map,u=(d,h)=>Qc(d,h,i,l),c=(d,h)=>u(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?u:(o.has(h)||o.set(h,Qc(h,void 0,i,l)),o.get(h))})}const kT=(i,l)=>l.isSVG??th(i)?new E2(l):new v2(l,{allowProjection:i!==z.Fragment});class ZT extends La{constructor(l){super(l),l.animationState||(l.animationState=N2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();xu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:o}=this.node.prevProps||{};l!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let JT=0;class FT extends La{constructor(){super(...arguments),this.id=JT++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:o}=this.node.presenceContext,{isPresent:u}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===u)return;const c=this.node.animationState.setActive("exit",!l);o&&!l&&c.then(()=>{o(this.id)})}mount(){const{register:l,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const PT={animation:{Feature:ZT},exit:{Feature:FT}};function Os(i){return{point:{x:i.pageX,y:i.pageY}}}const WT=i=>l=>kf(l)&&i(l,Os(l));function Ts(i,l,o,u){return Ms(i,l,WT(o),u)}const kg=({current:i})=>i?i.ownerDocument.defaultView:null,$y=(i,l)=>Math.abs(i-l);function $T(i,l){const o=$y(i.x,l.x),u=$y(i.y,l.y);return Math.sqrt(o**2+u**2)}const Iy=new Set(["auto","scroll"]);class Zg{constructor(l,o,{transformPagePoint:u,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=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=D=>{this.handleScroll(D.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Zc(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,Y=$T(D.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!Y)return;const{point:X}=D,{timestamp:q}=fe;this.history.push({...X,timestamp:q});const{onStart:K,onMove:G}=this.handlers;V||(K&&K(this.lastMoveEvent,D),this.startEvent=this.lastMoveEvent),G&&G(this.lastMoveEvent,D)},this.handlePointerMove=(D,V)=>{this.lastMoveEvent=D,this.lastMoveEventInfo=kc(V,this.transformPagePoint),Rt.update(this.updatePoint,!0)},this.handlePointerUp=(D,V)=>{this.end();const{onEnd:Y,onSessionEnd:X,resumeAnimation:q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&q&&q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const K=Zc(D.type==="pointercancel"?this.lastMoveEventInfo:kc(V,this.transformPagePoint),this.history);this.startEvent&&Y&&Y(D,K),X&&X(D,K)},!kf(l))return;this.dragSnapToOrigin=d,this.handlers=o,this.transformPagePoint=u,this.distanceThreshold=h,this.contextWindow=c||window;const g=Os(l),m=kc(g,this.transformPagePoint),{point:x}=m,{timestamp:b}=fe;this.history=[{...x,timestamp:b}];const{onSessionStart:T}=o;T&&T(l,Zc(m,this.history)),this.removeListeners=js(Ts(this.contextWindow,"pointermove",this.handlePointerMove),Ts(this.contextWindow,"pointerup",this.handlePointerUp),Ts(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(l){let o=l.parentElement;for(;o;){const u=getComputedStyle(o);(Iy.has(u.overflowX)||Iy.has(u.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const o=this.scrollPositions.get(l);if(!o)return;const u=l===window,c=u?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-o.x,y:c.y-o.y};d.x===0&&d.y===0||(u?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(l,c),Rt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ba(this.updatePoint)}}function kc(i,l){return l?{point:l(i.point)}:i}function t0(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Zc({point:i},l){return{point:i,delta:t0(i,Jg(l)),offset:t0(i,IT(l)),velocity:tA(l,.1)}}function IT(i){return i[0]}function Jg(i){return i[i.length-1]}function tA(i,l){if(i.length<2)return{x:0,y:0};let o=i.length-1,u=null;const c=Jg(i);for(;o>=0&&(u=i[o],!(c.timestamp-u.timestamp>mn(l)));)o--;if(!u)return{x:0,y:0};u===i[0]&&i.length>2&&c.timestamp-u.timestamp>mn(l)*2&&(u=i[1]);const d=nn(c.timestamp-u.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-u.x)/d,y:(c.y-u.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function eA(i,{min:l,max:o},u){return l!==void 0&&i<l?i=u?Ht(l,i,u.min):Math.max(i,l):o!==void 0&&i>o&&(i=u?Ht(o,i,u.max):Math.min(i,o)),i}function e0(i,l,o){return{min:l!==void 0?i.min+l:void 0,max:o!==void 0?i.max+o-(i.max-i.min):void 0}}function nA(i,{top:l,left:o,bottom:u,right:c}){return{x:e0(i.x,o,c),y:e0(i.y,l,u)}}function n0(i,l){let o=l.min-i.min,u=l.max-i.max;return l.max-l.min<i.max-i.min&&([o,u]=[u,o]),{min:o,max:u}}function aA(i,l){return{x:n0(i.x,l.x),y:n0(i.y,l.y)}}function iA(i,l){let o=.5;const u=Se(i),c=Se(l);return c>u?o=As(l.min,l.max-u,i.min):u>c&&(o=As(i.min,i.max-c,l.min)),wn(0,1,o)}function lA(i,l){const o={};return l.min!==void 0&&(o.min=l.min-i.min),l.max!==void 0&&(o.max=l.max-i.min),o}const Sf=.35;function sA(i=Sf){return i===!1?i=0:i===!0&&(i=Sf),{x:a0(i,"left","right"),y:a0(i,"top","bottom")}}function a0(i,l,o){return{min:i0(i,l),max:i0(i,o)}}function i0(i,l){return typeof i=="number"?i:i[l]||0}const oA=new WeakMap;class uA{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:o=!1,distanceThreshold:u}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{o&&this.snapToCursor(Os(b).point),this.stopAnimation()},h=(b,T)=>{const{drag:D,dragPropagation:V,onDragStart:Y}=this.getProps();if(D&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BS(D),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),An(q=>{let K=this.getAxisMotionValue(q).get()||0;if(En.test(K)){const{projection:G}=this.visualElement;if(G&&G.layout){const F=G.layout.layoutBox[q];F&&(K=Se(F)*(parseFloat(K)/100))}}this.originPoint[q]=K}),Y&&Rt.update(()=>Y(b,T),!1,!0),hf(this.visualElement,"transform");const{animationState:X}=this.visualElement;X&&X.setActive("whileDrag",!0)},p=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:D,dragDirectionLock:V,onDirectionLock:Y,onDrag:X}=this.getProps();if(!D&&!this.openDragLock)return;const{offset:q}=T;if(V&&this.currentDirection===null){this.currentDirection=cA(q),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",T.point,q),this.updateAxis("y",T.point,q),this.visualElement.render(),X&&Rt.update(()=>X(b,T),!1,!0)},g=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:x}=this.getProps();this.panSession=new Zg(l,{onSessionStart:d,onStart:h,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:u,contextWindow:kg(this.visualElement),element:this.visualElement.current})}stop(l,o){const u=l||this.latestPointerEvent,c=o||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!u)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:p}=this.getProps();p&&Rt.postRender(()=>p(u,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:o}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:u}=this.getProps();!u&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,o,u){const{drag:c}=this.getProps();if(!u||!nu(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+u[l];this.constraints&&this.constraints[l]&&(h=eA(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:o}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&al(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=nA(u.layoutBox,l):this.constraints=!1,this.elastic=sA(o),c!==this.constraints&&!al(l)&&u&&this.constraints&&!this.hasMutatedConstraints&&An(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=lA(u.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:o}=this.getProps();if(!l||!al(l))return!1;const u=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=h2(u,c.root,this.visualElement.getTransformPagePoint());let h=aA(c.layout.layoutBox,d);if(o){const p=o(r2(h));this.hasMutatedConstraints=!!p,p&&(h=pg(p))}return h}startAnimation(l){const{drag:o,dragMomentum:u,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=An(x=>{if(!nu(x,o,this.currentDirection))return;let b=g&&g[x]||{};h&&(b={min:0,max:0});const T=c?200:1e6,D=c?40:1e7,V={type:"inertia",velocity:u?l[x]:0,bounceStiffness:T,bounceDamping:D,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(x,V)});return Promise.all(m).then(p)}startAxisValueAnimation(l,o){const u=this.getAxisMotionValue(l);return hf(this.visualElement,l),u.start(qf(l,u,0,o,this.visualElement,!1))}stopAnimation(){An(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const o=`_drag${l.toUpperCase()}`,u=this.visualElement.getProps(),c=u[o];return c||this.visualElement.getValue(l,(u.initial?u.initial[l]:void 0)||0)}snapToCursor(l){An(o=>{const{drag:u}=this.getProps();if(!nu(o,u,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(o);if(c&&c.layout){const{min:h,max:p}=c.layout.layoutBox[o],g=d.get()||0;d.set(l[o]-Ht(h,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:o}=this.getProps(),{projection:u}=this.visualElement;if(!al(o)||!u||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};An(h=>{const p=this.getAxisMotionValue(h);if(p&&this.constraints!==!1){const g=p.get();c[h]=iA({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",u.root&&u.root.updateScroll(),u.updateLayout(),this.constraints=!1,this.resolveConstraints(),An(h=>{if(!nu(h,l,null))return;const p=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];p.set(Ht(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;oA.set(this.visualElement,this);const l=this.visualElement.current,o=Ts(l,"pointerdown",m=>{const{drag:x,dragListener:b=!0}=this.getProps(),T=m.target,D=T!==l&&XS(T);x&&b&&!D&&this.start(m)});let u;const c=()=>{const{dragConstraints:m}=this.getProps();al(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),u||(u=rA(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),Rt.read(c);const p=Ms(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:x})=>{this.isDragging&&x&&(An(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=m[b].translate,T.set(T.get()+m[b].translate))}),this.visualElement.render())}));return()=>{p(),o(),h(),g&&g(),u&&u()}}getProps(){const l=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:u=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Sf,dragMomentum:p=!0}=l;return{...l,drag:o,dragDirectionLock:u,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:p}}}function l0(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function rA(i,l,o){const u=fy(i,l0(o)),c=fy(l,l0(o));return()=>{u(),c()}}function nu(i,l,o){return(l===!0||l===i)&&(o===null||o===i)}function cA(i,l=10){let o=null;return Math.abs(i.y)>l?o="y":Math.abs(i.x)>l&&(o="x"),o}class fA extends La{constructor(l){super(l),this.removeGroupControls=an,this.removeListeners=an,this.controls=new uA(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||an}update(){const{dragControls:l}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};l!==o&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Jc=i=>(l,o)=>{i&&Rt.update(()=>i(l,o),!1,!0)};class hA extends La{constructor(){super(...arguments),this.removePointerDownListener=an}onPointerDown(l){this.session=new Zg(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:o,onPan:u,onPanEnd:c}=this.node.getProps();return{onSessionStart:Jc(l),onStart:Jc(o),onMove:Jc(u),onEnd:(d,h)=>{delete this.session,c&&Rt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=Ts(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Fc=!1;class dA extends z.Component{componentDidMount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u,layoutId:c}=this.props,{projection:d}=l;d&&(o.group&&o.group.add(d),u&&u.register&&c&&u.register(d),Fc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ru.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:o,visualElement:u,drag:c,isPresent:d}=this.props,{projection:h}=u;return h&&(h.isPresent=d,l.layoutDependency!==o&&h.setOptions({...h.options,layoutDependency:o}),Fc=!0,c||l.layoutDependency!==o||o===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||Rt.postRender(()=>{const p=h.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Qf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:o,switchLayoutGroup:u}=this.props,{projection:c}=l;Fc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),u&&u.deregister&&u.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Fg(i){const[l,o]=Bg(),u=z.useContext(Ef);return v.jsx(dA,{...i,layoutGroup:u,switchLayoutGroup:z.useContext(Kg),isPresent:l,safeToRemove:o})}const mA={pan:{Feature:hA},drag:{Feature:fA,ProjectionNode:Ug,MeasureLayout:Fg}};function s0(i,l,o){const{props:u}=i;i.animationState&&u.whileHover&&i.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,d=u[c];d&&Rt.postRender(()=>d(l,Os(l)))}class pA extends La{mount(){const{current:l}=this.node;l&&(this.unmount=HS(l,(o,u)=>(s0(this.node,u,"Start"),c=>s0(this.node,c,"End"))))}unmount(){}}class yA extends La{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!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=js(Ms(this.node.current,"focus",()=>this.onFocus()),Ms(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function o0(i,l,o){const{props:u}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&u.whileTap&&i.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),d=u[c];d&&Rt.postRender(()=>d(l,Os(l)))}class gA extends La{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:o,propagate:u}=this.node.props;this.unmount=QS(l,(c,d)=>(o0(this.node,d,"Start"),(h,{success:p})=>o0(this.node,h,p?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:u?.tap===!1})}unmount(){}}const Tf=new WeakMap,Pc=new WeakMap,vA=i=>{const l=Tf.get(i.target);l&&l(i)},xA=i=>{i.forEach(vA)};function bA({root:i,...l}){const o=i||document;Pc.has(o)||Pc.set(o,{});const u=Pc.get(o),c=JSON.stringify(l);return u[c]||(u[c]=new IntersectionObserver(xA,{root:i,...l})),u[c]}function SA(i,l,o){const u=bA(l);return Tf.set(i,o),u.observe(i),()=>{Tf.delete(i),u.unobserve(i)}}const TA={some:0,all:1};class AA extends La{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:o,margin:u,amount:c="some",once:d}=l,h={root:o?o.current:void 0,rootMargin:u,threshold:typeof c=="number"?c:TA[c]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:x,onViewportLeave:b}=this.node.getProps(),T=m?x:b;T&&T(g)};return SA(this.node.current,h,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:o}=this.node;["amount","margin","root"].some(EA(l,o))&&this.startObserver()}unmount(){}}function EA({viewport:i={}},{viewport:l={}}={}){return o=>i[o]!==l[o]}const wA={inView:{Feature:AA},tap:{Feature:gA},focus:{Feature:yA},hover:{Feature:pA}},CA={layout:{ProjectionNode:Ug,MeasureLayout:Fg}},MA={...PT,...wA,...mA,...CA},gs=QT(MA,kT),jA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],NA={anthropic:[{id:"claude-opus-4-6",label:"Opus 4.6"},{id:"claude-sonnet-4-6",label:"Sonnet 4.6"},{id:"claude-haiku-4-5-20251001",label:"Haiku 4.5"}],openai:[{id:"gpt-5.2-codex:medium",label:"GPT-5.2 Codex Medium"},{id:"gpt-5.2-codex:high",label:"GPT-5.2 Codex High"},{id:"gpt-5.2-codex:xhigh",label:"GPT-5.2 Codex Extra High"},{id:"gpt-5.3-codex:medium",label:"GPT-5.3 Codex Medium (Pro)"},{id:"gpt-5.3-codex:high",label:"GPT-5.3 Codex High (Pro)"},{id:"gpt-5.3-codex:xhigh",label:"GPT-5.3 Codex Extra High (Pro)"}]},Wc=[{tier:"at",prefix:"my.fluxy.bot/",label:i=>`my.fluxy.bot/${i}`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1},{tier:"premium",prefix:"fluxy.bot/",label:i=>`fluxy.bot/${i}`,badge:"$3",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0}];function DA({models:i,value:l,onChange:o}){const[u,c]=z.useState(!1),d=z.useRef(null);z.useEffect(()=>{if(!u)return;const p=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]);const h=i.find(p=>p.id===l);return v.jsxs("div",{className:"relative",ref:d,children:[v.jsxs("button",{type:"button",onClick:()=>c(p=>!p),className:"w-full flex items-center justify-between bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none hover:border-white/15 focus:border-[#AF27E3]/30 transition-colors",children:[v.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),v.jsx(v1,{className:`h-4 w-4 text-white/30 transition-transform ${u?"rotate-180":""}`})]}),u&&v.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 bg-[#222] border border-white/[0.08] rounded-xl shadow-xl py-1 z-10 max-h-48 overflow-y-auto",children:i.map(p=>v.jsx("button",{onClick:()=>{o(p.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===p.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:p.label},p.id))})]})}function VA({onComplete:i,isInitialSetup:l=!1,onSave:o}){const u=l?7:6,[c,d]=z.useState(0),[h,p]=z.useState(""),[g,m]=z.useState("anthropic"),[x,b]=z.useState(""),[T,D]=z.useState(!1),[V,Y]=z.useState({anthropic:"idle",openai:"idle"}),[X,q]=z.useState(!1),[K,G]=z.useState(""),[F,Z]=z.useState(!1),[lt,J]=z.useState(),[P,st]=z.useState(!1),[bt,wt]=z.useState(!1),[Bt,ie]=z.useState(),[vt,$t]=z.useState(""),[R,H]=z.useState(null),[I,ut]=z.useState(""),[ht,E]=z.useState({}),[U,Q]=z.useState("at"),[W,ot]=z.useState(!1),[at,dt]=z.useState(!1),[Kt,Ot]=z.useState(""),ln=z.useRef(null),[le,ml]=z.useState("quick"),[yi,Cn]=z.useState(""),[pl,yl]=z.useState(""),[Xe,na]=z.useState("relay"),[ze,gi]=z.useState(null),[Ke,gl]=z.useState(!1),[zs,he]=z.useState(!1),[Tu,Rs]=z.useState("admin"),[de,Ha]=z.useState(""),[vi,vl]=z.useState(""),[Vs,xi]=z.useState(!1),[se,ye]=z.useState(!1),[sn,ge]=z.useState(!1),[aa,Au]=z.useState(""),[_s,Mn]=z.useState(""),[jn,Ya]=z.useState(!1),[yn,qa]=z.useState(!1),[Ae,Us]=z.useState(!1),[Qe,bi]=z.useState(""),[Ee,gn]=z.useState(!1),[Si,ia]=z.useState(""),[Ga,Nn]=z.useState(""),[Ti,la]=z.useState(""),[Xa,ke]=z.useState(""),[Lt,ne]=z.useState(!1),[Dn,Ai]=z.useState(!1),[Ei,vn]=z.useState(""),[xl,On]=z.useState([]),[Ka,zn]=z.useState(!1),[sa,Rn]=z.useState(!1),[on,Yt]=z.useState(""),[bl,Qa]=z.useState(""),[Vn,oa]=z.useState(!1),[ua,_n]=z.useState("password"),[Sl,Bs]=z.useState(!1),ra=z.useRef(!1),Ze=V[g]==="connected",Re="fluxy_totp_setup";function we(){try{sessionStorage.setItem(Re,JSON.stringify({secret:Si,qrUri:Ga,otpauthUri:Ti,phase:ua,portalPass:de,portalPassConfirm:vi}))}catch{}}function Ls(){try{const M=sessionStorage.getItem(Re);if(!M)return!1;const k=JSON.parse(M);if(k.secret&&k.phase==="totp-setup")return ia(k.secret),Nn(k.qrUri||""),la(k.otpauthUri||""),gn(!0),_n("totp-setup"),d(3),k.portalPass&&(Ha(k.portalPass),vl(k.portalPassConfirm||"")),!0}catch{}return!1}function Tl(){try{sessionStorage.removeItem(Re)}catch{}}z.useEffect(()=>{fetch("/api/onboard/status").then(M=>M.json()).then(M=>{M.userName&&p(M.userName),M.handle&&($t(M.handle.username),Q(M.handle.tier||"at"),gi({username:M.handle.username,tier:M.handle.tier,url:M.handle.url}),dt(!0),Ot(M.handle.url)),M.portalUser&&Rs(M.portalUser),M.portalConfigured&&ye(!0),M.provider&&m(M.provider),M.model&&b(M.model),M.whisperEnabled&&(Us(!0),bi(M.whisperKey||"")),M.totpEnabled&&(gn(!0),ne(!0)),M.tunnelMode&&ml(M.tunnelMode),M.tunnelDomain&&Cn(M.tunnelDomain),M.tunnelUrl&&yl(M.tunnelUrl),M.handle||na("tunnel"),ra.current=!0,M.totpEnabled||Ls()}).catch(()=>{ra.current=!0})},[]),z.useEffect(()=>{oa(window.matchMedia("(max-width: 768px)").matches||"ontouchstart"in window)},[]),z.useEffect(()=>{g!=="anthropic"||V.anthropic==="connected"||fetch("/api/auth/claude/status").then(M=>M.json()).then(M=>{M.authenticated&&Y(k=>({...k,anthropic:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{g!=="openai"||V.openai==="connected"||fetch("/api/auth/codex/status").then(M=>M.json()).then(M=>{M.authenticated&&Y(k=>({...k,openai:"connected"}))}).catch(()=>{})},[g]),z.useEffect(()=>{if(!bt)return;const M=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(wt(!1),Y(un=>({...un,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(M)},[bt]),z.useEffect(()=>{if(ln.current&&clearTimeout(ln.current),!ra.current||le==="off"||ze&&at&&vt===ze.username)return;H(null),ut(""),E({}),dt(!1),Ot("");const M=vt.trim();if(M){if(M.length<3){H("invalid"),ut("At least 3 characters");return}return H("checking"),ln.current=setTimeout(async()=>{try{const At=await(await fetch(`/api/handle/check/${encodeURIComponent(M)}`)).json();if(!At.valid)H("invalid"),ut(At.error);else{const un={};for(const Za of At.handles)un[Za.tier]=Za.available;E(un),H("ready");const fa=Wc.find(Za=>un[Za.tier]);fa&&!un[U]&&Q(fa.tier)}}catch{H(null)}},400),()=>{ln.current&&clearTimeout(ln.current)}}},[vt]);const ka=M=>{$t(M.toLowerCase().replace(/[^a-z0-9-]/g,""))},Hs=async()=>{if(!(!vt||R!=="ready"||!ht[U])){ot(!0);try{const k=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();k.ok?(dt(!0),Ot(k.url)):(ut(k.error||"Registration failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{ot(!1)}}},wi=async()=>{if(!(!vt||R!=="ready"||!ht[U])){he(!0);try{const k=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:vt,tier:U})})).json();k.ok?(dt(!0),Ot(k.url),gi({username:vt,tier:U,url:k.url}),gl(!1)):(ut(k.error||"Handle change failed"),H("invalid"))}catch{ut("Could not reach server"),H("invalid")}finally{he(!1)}}},Eu=M=>{g==="openai"&&M!=="openai"&&bt&&(fetch("/api/auth/codex/cancel",{method:"POST"}),wt(!1)),m(M),b(""),q(!1),G(""),J(void 0),wt(!1),ie(void 0)},ve=M=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0){const At=document.createElement("a");At.href=M,At.target="_blank",At.rel="noopener noreferrer",document.body.appendChild(At),At.click(),document.body.removeChild(At)}else window.open(M,"_blank","noopener,noreferrer")},Al=async()=>{J(void 0);try{const k=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();k.success&&k.authUrl?(ve(k.authUrl),q(!0)):J(k.error||"Failed to start authentication")}catch(M){J(M.message)}},El=async()=>{if(K.trim()){Z(!0),J(void 0);try{const k=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:K.trim()})})).json();k.success?Y(At=>({...At,anthropic:"connected"})):J(k.error||"Code exchange failed")}catch(M){J(M.message)}finally{Z(!1)}}},wl=async()=>{try{const M=await navigator.clipboard.readText();M&&G(M.trim())}catch{}},ca=async()=>{st(!0),J(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?Y(At=>({...At,anthropic:"connected"})):J("No active session found. Please authenticate first.")}catch{}finally{st(!1)}},Ys=async()=>{wt(!0),ie(void 0);try{const k=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();k.success&&k.authUrl?ve(k.authUrl):(wt(!1),ie(k.error||"Failed to start authentication"))}catch(M){wt(!1),ie(M.message)}},qs=()=>{wt(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Un=de===vi,Gs=de.length>=6&&Un,Xs=se?de.length===0||jn&&Gs:Gs,Bn=(()=>{switch(c){case 0:return!0;case 1:return h.trim().length>0;case 2:return le==="off"||le==="named"||Xe==="tunnel"?vt.trim().length>=3:at;case 3:return!(ua!=="password"||!Xs||Ee&&!Lt);case 4:return!!(g&&x&&Ze);case 5:return!0;default:return!1}})(),Ve=()=>{Bn&&c<u-1&&d(M=>M+1)},wu=()=>{c>0&&d(M=>M-1)},Cl=M=>{M.key==="Enter"&&Bn&&Ve()},Ci=async()=>{D(!0);const M={userName:h.trim(),agentName:vt.trim()||"Fluxy",provider:g,model:x,apiKey:"",whisperEnabled:Ae,whisperKey:Ae?Qe:"",portalUser:Tu.trim(),portalPass:de};try{o?await o(M):await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)}),l?(D(!1),d(6)):i()}catch(k){console.error("[OnboardWizard] Onboard failed:",k),D(!1)}},It="w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all",Mi="w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all";return v.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[v.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),v.jsxs(gs.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative w-full max-w-[480px] bg-[#181818] border border-white/[0.06] rounded-[24px] shadow-2xl overflow-hidden",children:[v.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:u},(M,k)=>v.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${k===c?"w-7 bg-gradient-brand":k<c?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},k))}),v.jsx(Jy,{mode:"wait",children:v.jsxs(gs.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.2,ease:"easeOut"},className:"px-8 pt-6 pb-8",children:[c===0&&v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),v.jsx("p",{className:"text-white/40 text-[14px] mt-2 leading-relaxed max-w-[320px]",children:"Let's set up your AI assistant in just a few steps."}),v.jsxs("button",{onClick:Ve,className:"mt-6 px-7 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===1&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),v.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[v.jsx("input",{type:"text",value:h,onChange:M=>p(M.target.value),onKeyDown:Cl,placeholder:"Enter your name",autoFocus:!0,className:It+" flex-1"}),v.jsx("button",{onClick:Ve,disabled:!Bn,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-gradient-brand hover:opacity-90 text-white transition-colors disabled:opacity-30",children:v.jsx(Ge,{className:"h-5 w-5"})})]})]}),c===2&&le==="off"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Give your bot a name. This is used throughout the app as your bot's identity."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:M=>ka(M.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:It+" pr-10 font-mono"})}),v.jsx("div",{className:"mt-4 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:"Private network mode — your bot is only accessible via your local network or VPN. No public URL will be created."})}),v.jsxs("button",{onClick:Ve,disabled:!Bn,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===2&&le==="named"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's identity. Your named tunnel domain is already configured."}),v.jsx("div",{className:"relative mt-5",children:v.jsx("input",{type:"text",value:vt,onChange:M=>ka(M.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,className:It+" pr-10 font-mono"})}),v.jsxs("div",{className:"mt-4 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsxs("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:["https://",yi]}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(`https://${yi}`),xi(!0),setTimeout(()=>xi(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Vs?v.jsx(ta,{className:"h-4 w-4 text-emerald-400"}):v.jsx(Gp,{className:"h-4 w-4"})})]})]}),c===2&&le==="quick"&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's name and permanent handle — access it from anywhere."}),ze&&at&&!Ke&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(ta,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),v.jsxs("div",{className:"flex gap-2 mt-4",children:[v.jsxs("button",{onClick:Ve,className:"flex-1 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]}),v.jsx("button",{onClick:()=>{gl(!0),dt(!1),$t(""),H(null),E({}),na("relay")},className:"px-5 py-3 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Change"})]})]}),Ke&&!at&&v.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[v.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),v.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",v.jsx("span",{className:"font-mono",children:ze?.url})," will be released and become available for others."]})]}),(!ze||Ke||!at)&&!(ze&&at&&!Ke)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"relative mt-5",children:[v.jsx("input",{type:"text",value:vt,onChange:M=>ka(M.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:at,className:It+" pr-10 font-mono"+(at?" opacity-50":"")}),R&&vt.length>0&&!at&&v.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[R==="checking"&&v.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),R==="invalid"&&v.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:v.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),R==="invalid"&&I&&v.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:I}),R==="ready"&&vt.length>0&&!at&&Xe==="relay"&&v.jsxs("div",{className:"mt-4 text-center",children:[v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-white/25",children:Wc.find(M=>M.tier===U)?.prefix}),v.jsx("span",{className:"font-mono text-[15px] font-semibold tracking-tight text-gradient",children:vt})]}),R==="ready"&&vt.length>0&&!at&&v.jsxs("div",{className:"space-y-2 mt-4",children:[Wc.map(M=>{const At=ht[M.tier]===!1;return v.jsxs("button",{onClick:()=>{At||(Q(M.tier),na("relay"))},disabled:At,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${At?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":Xe==="relay"&&U===M.tier?M.highlight?"border-[#AF27E3]/40 bg-[#AF27E3]/[0.06]":"border-[#AF27E3]/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsx("span",{className:`font-mono text-[13px] ${At?"text-white/40":Xe==="relay"&&U===M.tier?"text-white/80":"text-white/50"}`,children:M.label(vt)}),At?v.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-red-500/10 text-red-400 border-red-500/20",children:"Taken"}):v.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${M.badgeCls}`,children:M.badge})]},M.tier)}),v.jsxs("button",{onClick:()=>na("tunnel"),className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Xe==="tunnel"?"border-white/[0.08] bg-white/[0.03]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsx("span",{className:"text-[13px] text-white/50",children:"No thanks, I'll use the random URL"}),v.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-white/[0.04] text-white/30 border-white/[0.08]",children:"Skip"})]})]}),at&&v.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(ta,{className:"h-4 w-4 text-emerald-400"}),v.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),v.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:Kt})]}),Xe==="relay"&&R==="ready"&&ht[U]&&vt.length>0&&!at&&v.jsx("button",{onClick:Ke?wi:Hs,disabled:W||zs,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:W||zs?v.jsxs(v.Fragment,{children:[v.jsx(ci,{className:"h-4 w-4 animate-spin"}),Ke?"Changing...":"Claiming..."]}):v.jsxs(v.Fragment,{children:[Ke?"Change Handle":"Claim & Continue",v.jsx(Ge,{className:"h-4 w-4"})]})}),Xe==="tunnel"&&R==="ready"&&vt.length>0&&!at&&v.jsxs("button",{onClick:Ve,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]}),at&&v.jsxs("button",{onClick:Ve,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]}),Ke&&!at&&v.jsx("button",{onClick:()=>{gl(!1),$t(ze.username),dt(!0),Ot(ze.url),Q(ze.tier),na("relay"),H(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),c===3&&v.jsx("div",{children:v.jsxs(Jy,{mode:"wait",children:[ua==="password"&&v.jsxs(gs.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.15},children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"You'll need this password to access your agent's chat. Keep it safe — anyone with your URL will need it to log in."}),se&&v.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:v.jsx("p",{className:"text-white/40 text-[12px]",children:"Password already set. Leave fields empty to keep your current password, or enter your current password to change it."})}),se&&v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"password",value:aa,onChange:M=>{Au(M.target.value),Mn(""),Ya(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:It+" flex-1"}),aa.length>0&&!jn&&v.jsx("button",{onClick:async()=>{qa(!0),Mn("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:aa})})).json()).valid?Ya(!0):Mn("Incorrect password")}catch{Mn("Could not verify")}finally{qa(!1)}},disabled:yn,className:"shrink-0 px-4 py-3 bg-white/[0.06] hover:bg-white/[0.1] text-white/60 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:yn?v.jsx(ci,{className:"h-4 w-4 animate-spin"}):"Verify"}),jn&&v.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:v.jsx(ta,{className:"h-4 w-4 text-emerald-400"})})]}),_s&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:_s})]}),(!se||jn)&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:se?"mt-3":"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:se?"New password":"Password"}),v.jsx("input",{type:"password",value:de,onChange:M=>Ha(M.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!se,onKeyDown:Cl,className:It}),de.length>0&&de.length<6&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:se?"Confirm new password":"Confirm password"}),v.jsx("input",{type:"password",value:vi,onChange:M=>vl(M.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:Cl,className:It}),vi.length>0&&!Un&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),v.jsxs("div",{className:"mt-5 border border-white/[0.06] rounded-xl overflow-hidden",children:[v.jsxs("button",{onClick:async()=>{if(Ee&&Lt){Rn(!0);return}if(Ee)gn(!1),Nn(""),ia(""),la("");else if(gn(!0),vn(""),ke(""),Ga)_n("totp-setup");else try{const M=await fetch("/api/portal/totp/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:se?aa:de})}),k=await M.json();M.ok?(ia(k.secret),Nn(k.qrDataUri),la(k.otpauthUri),_n("totp-setup")):(vn(k.error||"Setup failed"),gn(!1))}catch{vn("Could not reach server"),gn(!1)}},type:"button",className:"w-full flex items-center gap-3 px-4 py-3 text-left",children:[v.jsx("div",{className:`w-9 h-9 rounded-lg flex items-center justify-center shrink-0 ${Ee&&Lt?"bg-emerald-500/10":"bg-white/[0.04]"}`,children:Ee&&Lt?v.jsx(Kp,{className:"h-[18px] w-[18px] text-emerald-400"}):v.jsx(z1,{className:"h-[18px] w-[18px] text-white/30"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("span",{className:"text-[13px] font-medium text-white block",children:"Two-Factor Auth"}),v.jsx("p",{className:"text-[11px] text-white/30 mt-0.5",children:Ee&&Lt?v.jsx("span",{className:"text-emerald-400/70",children:"Active — authenticator app required"}):le==="quick"||le==="named"?v.jsx("span",{children:"Recommended for public bots"}):v.jsx("span",{children:"Extra security with an authenticator app"})})]}),v.jsx("div",{className:`w-10 h-6 rounded-full transition-colors relative shrink-0 ${Ee?"bg-emerald-500":"bg-white/10"}`,children:v.jsx("div",{className:`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform ${Ee?"translate-x-5":"translate-x-1"}`})})]}),sa&&v.jsxs("div",{className:"px-4 pb-3 border-t border-white/[0.06]",children:[v.jsx("p",{className:"text-[12px] text-white/40 mt-3 mb-2",children:"Enter your current TOTP code to disable 2FA:"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:on,onChange:M=>{Yt(M.target.value.replace(/\D/g,"")),Qa("")},placeholder:"000000",className:Mi+" flex-1 tracking-[0.3em] text-center font-mono"}),v.jsx("button",{onClick:async()=>{if(on.length===6)try{const M=await fetch("/api/portal/totp/disable",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:se?aa:de,code:on})}),k=await M.json();M.ok?(gn(!1),ne(!1),ia(""),Nn(""),la(""),Rn(!1),Yt(""),On([]),zn(!1)):Qa(k.error||"Failed to disable")}catch{Qa("Could not reach server")}},disabled:on.length!==6,className:"shrink-0 px-4 py-2.5 bg-red-500/10 hover:bg-red-500/20 text-red-400 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:"Disable"})]}),bl&&v.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:bl}),v.jsx("button",{onClick:()=>{Rn(!1),Yt(""),Qa("")},className:"text-[11px] text-white/30 hover:text-white/50 mt-2",children:"Cancel"})]}),Ei&&ua==="password"&&v.jsx("div",{className:"mx-4 mb-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:Ei})})]}),v.jsxs("button",{onClick:Ve,disabled:!Bn,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]})]},"password"),ua==="totp-setup"&&v.jsxs(gs.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[v.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[v.jsx("button",{onClick:()=>{gn(!1),Nn(""),ia(""),la(""),ke(""),vn(""),_n("password"),Tl()},className:"w-7 h-7 rounded-full bg-white/[0.04] flex items-center justify-center text-white/40 hover:text-white/70 transition-colors shrink-0",children:v.jsx(m1,{className:"h-4 w-4"})}),v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set up 2FA"})]}),Ei&&v.jsx("div",{className:"mt-3 bg-red-500/8 border border-red-500/15 rounded-xl px-3 py-2",children:v.jsx("p",{className:"text-red-400/90 text-[11px]",children:Ei})}),Ga&&v.jsxs(v.Fragment,{children:[Vn?v.jsxs("div",{className:"mt-4",children:[v.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed mb-4",children:"Add Fluxy to your authenticator app, then enter the 6-digit code below to confirm."}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(Si),Bs(!0),setTimeout(()=>Bs(!1),3e3)},className:`w-full py-3 text-[14px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 ${Sl?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/70 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:Sl?v.jsxs(v.Fragment,{children:[v.jsx(ta,{className:"h-4 w-4"}),"Secret key copied"]}):v.jsxs(v.Fragment,{children:[v.jsx(zc,{className:"h-4 w-4"}),"Copy secret key"]})}),v.jsx("p",{className:"text-[11px] text-white/20 text-center mt-2",children:"Paste it in your authenticator app → Add account → Enter key"}),v.jsxs("a",{href:Ti,onClick:()=>we(),className:"w-full mt-3 py-2.5 text-[13px] text-white/30 hover:text-white/50 flex items-center justify-center gap-1.5 transition-colors",children:[v.jsx(V1,{className:"h-3.5 w-3.5"}),"Or open directly in authenticator"]})]}):v.jsxs("div",{className:"mt-4 flex gap-4 items-start",children:[v.jsx("div",{className:"shrink-0",children:v.jsx("div",{className:"bg-white rounded-xl p-1.5",children:v.jsx("img",{src:Ga,alt:"TOTP QR Code",className:"w-[140px] h-[140px]"})})}),v.jsxs("div",{className:"flex-1 min-w-0 pt-1",children:[v.jsx("p",{className:"text-white/40 text-[13px] leading-relaxed",children:"Scan this QR code with your authenticator app."}),v.jsx("p",{className:"text-white/25 text-[11px] mt-2 leading-relaxed",children:"Google Authenticator, Authy, 1Password, or any TOTP app."}),v.jsxs("button",{onClick:()=>{navigator.clipboard.writeText(Si)},className:"mt-3 text-[11px] text-white/25 hover:text-white/40 flex items-center gap-1 transition-colors",children:[v.jsx(zc,{className:"h-3 w-3"}),"Copy secret key"]})]})]}),v.jsxs("div",{className:"mt-5",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Enter the 6-digit code from your app"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,value:Xa,onChange:M=>{ke(M.target.value.replace(/\D/g,"")),vn("")},placeholder:"000000",autoFocus:!0,className:It+" tracking-[0.3em] text-center font-mono flex-1"}),v.jsx("button",{onClick:async()=>{if(Xa.length===6){Ai(!0),vn("");try{const M=await fetch("/api/portal/totp/verify-setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:Xa,password:se?aa:de})}),k=await M.json();M.ok&&k.success?(ne(!0),On(k.recoveryCodes||[]),_n("recovery"),Tl()):vn(k.error||"Verification failed")}catch{vn("Could not reach server")}finally{Ai(!1)}}},disabled:Xa.length!==6||Dn,className:"shrink-0 px-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-xl transition-colors flex items-center gap-2 disabled:opacity-40",children:Dn?v.jsx(ci,{className:"h-4 w-4 animate-spin"}):"Verify"})]})]})]})]},"totp-setup"),ua==="recovery"&&v.jsxs(gs.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.15},children:[v.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[v.jsx("div",{className:"w-9 h-9 rounded-xl bg-emerald-500/10 flex items-center justify-center shrink-0",children:v.jsx(Kp,{className:"h-[18px] w-[18px] text-emerald-400"})}),v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"2FA enabled"}),v.jsx("p",{className:"text-emerald-400/70 text-[12px]",children:"Save your recovery codes"})]})]}),v.jsx("p",{className:"text-white/35 text-[13px] mt-3 leading-relaxed",children:"If you lose your authenticator app, you can use one of these codes to sign in. Each code works once. Store them somewhere safe."}),v.jsx("div",{className:"mt-4 grid grid-cols-2 gap-1.5",children:xl.map((M,k)=>v.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-lg px-3 py-2 text-center",children:v.jsx("code",{className:"text-[13px] text-white/60 font-mono tracking-wider",children:M})},k))}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(xl.join(`
|
|
18
|
-
`)),zn(!0)},className:`w-full mt-4 py-3 text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 ${Ka?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20":"bg-white/[0.05] text-white/60 hover:bg-white/[0.08] border border-white/[0.08]"}`,children:Ka?v.jsxs(v.Fragment,{children:[v.jsx(ta,{className:"h-4 w-4"}),"Copied"]}):v.jsxs(v.Fragment,{children:[v.jsx(zc,{className:"h-4 w-4"}),"Copy recovery codes"]})}),v.jsxs("button",{onClick:()=>{On([]),_n("password"),Tl()},disabled:!Ka,className:"w-full mt-3 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Done",v.jsx(Ge,{className:"h-4 w-4"})]})]},"recovery")]})}),c===4&&v.jsxs("div",{children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Pick one provider to power your bot, authenticate, and select a model."}),v.jsx("div",{className:"flex gap-2.5 mt-4",children:jA.map(M=>v.jsxs("button",{onClick:()=>Eu(M.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${g===M.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[v.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[M.icon?v.jsx("img",{src:M.icon,alt:M.name,className:"w-8 h-8 rounded-lg"}):v.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/[0.06] flex items-center justify-center text-white/50 text-sm font-bold",children:"O"}),v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"text-[13px] font-medium text-white",children:M.name}),v.jsx("div",{className:"text-[10px] text-white/30",children:M.subtitle})]})]}),V[M.id]==="connected"?v.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:v.jsx(ta,{className:"h-2.5 w-2.5 text-emerald-400"})}):g===M.id?v.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},M.id))}),v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),g==="anthropic"&&v.jsxs("div",{className:"space-y-2.5",children:[Ze&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(M=>({...M,anthropic:"idle"})),q(!1),G(""),J("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[v.jsx(Rc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Ze&&v.jsxs(v.Fragment,{children:[lt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:lt})}),v.jsx("div",{className:"space-y-1.5",children:["Click the button below to open Anthropic's login page","Sign in with your Anthropic account — a code will be generated","Copy the code and paste it in the field below"].map((M,k)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:k+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:M})]},k))}),v.jsx("button",{onClick:Al,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:X?v.jsxs(v.Fragment,{children:[v.jsx(Xp,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):v.jsxs(v.Fragment,{children:["Authenticate with Anthropic",v.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:"text",value:K,onChange:M=>G(M.target.value),onKeyDown:M=>M.key==="Enter"&&El(),placeholder:"Paste your code here...",className:Mi+" pr-10 font-mono"}),v.jsx("button",{onClick:wl,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:v.jsx(Gp,{className:"h-3.5 w-3.5"})})]}),v.jsx("button",{onClick:El,disabled:!K.trim()||F,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:F?v.jsxs(v.Fragment,{children:[v.jsx(ci,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),v.jsxs("button",{onClick:ca,disabled:P,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[P?v.jsx(ci,{className:"h-3 w-3 animate-spin"}):v.jsx(Rc,{className:"h-3 w-3"}),P?"Checking...":"I'm already authenticated"]})]})]}),g==="openai"&&v.jsxs("div",{className:"space-y-2.5",children:[Ze&&v.jsxs("div",{className:"space-y-2.5",children:[v.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),v.jsxs("button",{onClick:()=>{Y(M=>({...M,openai:"idle"})),ie("")},className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5",children:[v.jsx(Rc,{className:"h-3 w-3"}),"Re-authenticate"]})]}),!Ze&&v.jsxs(v.Fragment,{children:[Bt&&v.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:v.jsx("p",{className:"text-red-400/90 text-[12px]",children:Bt})}),v.jsx("div",{className:"space-y-1.5",children:["Click the button below — your browser will open for ChatGPT sign-in","Sign in with your ChatGPT Plus or Pro account","Authentication completes automatically — no code to copy"].map((M,k)=>v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:k+1}),v.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:M})]},k))}),v.jsx("button",{onClick:Ys,disabled:bt,className:"w-full py-2.5 px-4 bg-white/[0.06] hover:bg-white/[0.09] text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-60",children:bt?v.jsxs(v.Fragment,{children:[v.jsx(ci,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):v.jsxs(v.Fragment,{children:["Authenticate with ChatGPT",v.jsx(Ge,{className:"h-3.5 w-3.5 opacity-60"})]})}),bt&&v.jsx("button",{onClick:qs,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Ze&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),v.jsx(DA,{models:NA[g]||[],value:x,onChange:b})]}),Ze&&v.jsxs("button",{onClick:Ve,disabled:!Bn,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",v.jsx(Ge,{className:"h-4 w-4"})]})]}),c===5&&v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),v.jsx("span",{className:"text-[11px] text-white/25 font-medium bg-white/[0.04] border border-white/[0.06] rounded-full px-2.5 py-0.5",children:"Optional"})]}),v.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),v.jsx("button",{onClick:()=>Us(M=>!M),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Ae?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:v.jsxs("div",{className:"flex items-center gap-3.5",children:[v.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),v.jsxs("div",{className:"flex-1",children:[v.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),v.jsx("div",{className:"text-[12px] text-white/35 mt-0.5 leading-relaxed",children:"Speech-to-text powered by OpenAI. Requires an OpenAI API key."})]}),v.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Ae?"bg-gradient-brand":"bg-white/[0.08]"}`,children:v.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Ae?"translate-x-[18px]":"translate-x-0"}`})})]})}),Ae&&v.jsxs("div",{className:"mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),v.jsx("input",{type:"password",value:Qe,onChange:M=>bi(M.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:It+" font-mono text-[13px]"}),Qe.length>0&&!Qe.startsWith("sk-")&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Qe.length>0&&Qe.startsWith("sk-")&&Qe.length<20&&v.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),v.jsxs("div",{className:"flex items-start gap-2.5 mt-3 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx(j1,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),v.jsx("p",{className:"text-white/35 text-[12px] leading-relaxed",children:"Users will see a microphone button in the chat. Audio is sent to OpenAI's Whisper API for transcription, then processed as a regular text message."})]})]}),v.jsx("button",{onClick:Ci,disabled:T||Ae&&(!Qe.startsWith("sk-")||Qe.length<20),className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:T?v.jsxs(v.Fragment,{children:[v.jsx(ci,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):v.jsxs(v.Fragment,{children:["Complete Setup",v.jsx(Ge,{className:"h-4 w-4"})]})}),!Ae&&v.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),c===6&&l&&(()=>{const M=le==="off",k=M?window.location.origin:le==="named"?`https://${yi}`:Xe==="relay"&&Kt?Kt:pl||"http://localhost:3000",At=k.startsWith("http")?k:`https://${k}`,un=M?"Your agent is running on your private network. Access it from any device on your local network or VPN.":le==="named"?"Access your agent at your custom domain.":Xe==="relay"&&Kt?"Your agent is live and ready. From now on, access it using your custom URL below.":"Your agent is live and ready. Your tunnel URL is shown below. Note: this URL changes on restart.";return v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center mb-5",children:v.jsx(ta,{className:"h-8 w-8 text-emerald-400"})}),v.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),v.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:un}),v.jsxs("div",{className:"w-full mt-6 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:k}),v.jsx("button",{onClick:()=>{navigator.clipboard.writeText(At),xi(!0),setTimeout(()=>xi(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Vs?v.jsx(ta,{className:"h-4 w-4 text-emerald-400"}):v.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[v.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),v.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),v.jsxs("div",{className:"w-full mt-3",children:[v.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),v.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[v.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:sn?de:"•".repeat(Math.max(de.length,8))}),v.jsx("button",{onClick:()=>ge(fa=>!fa),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:sn?v.jsx(A1,{className:"h-4 w-4"}):v.jsx(w1,{className:"h-4 w-4"})})]})]}),v.jsxs("button",{onClick:()=>{M?(window.top||window).location.href="/":(window.top||window).location.href=At},className:"w-full mt-6 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:[M?"Go to dashboard":"Go to your agent",v.jsx(Xp,{className:"h-4 w-4"})]}),v.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:M?"Access from any device on your network using the URL above.":`You'll be redirected to your ${le==="named"?"custom domain":Xe==="relay"?"custom URL":"tunnel URL"}.`})]})})()]},c)}),c>0&&c<u-1&&!(c===6&&l)&&v.jsx("div",{className:"px-8 pb-5 -mt-3",children:v.jsx("button",{onClick:wu,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{Jy as A,ta as C,ci as L,j1 as M,VA as O,OA as R,z1 as S,Ge as a,m1 as b,Te as c,zc as d,zA as e,u0 as g,v as j,gs as m,z as r};
|