fluxy-bot 0.3.19 → 0.3.21
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-DmbQycIj.js → fluxy-D_vy8fea.js} +26 -26
- package/dist-fluxy/assets/globals-BmcQJ_1f.js +17 -0
- package/dist-fluxy/assets/{onboard-DnbGE0aK.js → onboard-Cp7fEIFC.js} +1 -1
- package/dist-fluxy/fluxy.html +2 -2
- package/dist-fluxy/onboard.html +2 -2
- package/package.json +1 -1
- package/supervisor/chat/ARCHITECTURE.md +89 -0
- package/supervisor/chat/OnboardWizard.tsx +7 -22
- package/supervisor/chat/fluxy-main.tsx +40 -1
- package/supervisor/chat/src/components/Chat/InputBar.tsx +14 -8
- package/supervisor/index.ts +35 -1
- package/worker/index.ts +0 -1
- package/workspace/client/public/sw.js +1 -0
- package/dist-fluxy/assets/globals-A5sTL-kb.js +0 -17
|
@@ -1,17 +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"]'))o(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"&&o(h)}).observe(document,{childList:!0,subtree:!0});function u(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(c){if(c.ep)return;c.ep=!0;const d=u(c);fetch(c.href,d)}})();function Py(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var lc={exports:{}},ql={};var bp;function k1(){if(bp)return ql;bp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(o,c,d){var h=null;if(d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:i,type:o,key:h,ref:c!==void 0?c:null,props:d}}return ql.Fragment=l,ql.jsx=u,ql.jsxs=u,ql}var Sp;function J1(){return Sp||(Sp=1,lc.exports=k1()),lc.exports}var b=J1(),sc={exports:{}},ot={};var Tp;function F1(){if(Tp)return ot;Tp=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function N(A){return A===null||typeof A!="object"?null:(A=T&&A[T]||A["@@iterator"],typeof A=="function"?A:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,G={};function H(A,B,Q){this.props=A,this.context=B,this.refs=G,this.updater=Q||z}H.prototype.isReactComponent={},H.prototype.setState=function(A,B){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,B,"setState")},H.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function K(){}K.prototype=H.prototype;function X(A,B,Q){this.props=A,this.context=B,this.refs=G,this.updater=Q||z}var J=X.prototype=new K;J.constructor=X,q(J,H.prototype),J.isPureReactComponent=!0;var Z=Array.isArray;function nt(){}var I={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function lt(A,B,Q){var P=Q.ref;return{$$typeof:i,type:A,key:B,ref:P!==void 0?P:null,props:Q}}function xt(A,B){return lt(A.type,B,A.props)}function _t(A){return typeof A=="object"&&A!==null&&A.$$typeof===i}function zt(A){var B={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Q){return B[Q]})}var Ot=/\/+/g;function le(A,B){return typeof A=="object"&&A!==null&&A.key!=null?zt(""+A.key):B.toString(36)}function Bt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(nt,nt):(A.status="pending",A.then(function(B){A.status==="pending"&&(A.status="fulfilled",A.value=B)},function(B){A.status==="pending"&&(A.status="rejected",A.reason=B)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function j(A,B,Q,P,et){var ut=typeof A;(ut==="undefined"||ut==="boolean")&&(A=null);var ht=!1;if(A===null)ht=!0;else switch(ut){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(A.$$typeof){case i:case l:ht=!0;break;case v:return ht=A._init,j(ht(A._payload),B,Q,P,et)}}if(ht)return et=et(A),ht=P===""?"."+le(A,0):P,Z(et)?(Q="",ht!=null&&(Q=ht.replace(Ot,"$&/")+"/"),j(et,B,Q,"",function(pe){return pe})):et!=null&&(_t(et)&&(et=xt(et,Q+(et.key==null||A&&A.key===et.key?"":(""+et.key).replace(Ot,"$&/")+"/")+ht)),B.push(et)),1;ht=0;var Kt=P===""?".":P+":";if(Z(A))for(var Dt=0;Dt<A.length;Dt++)P=A[Dt],ut=Kt+le(P,Dt),ht+=j(P,B,Q,ut,et);else if(Dt=N(A),typeof Dt=="function")for(A=Dt.call(A),Dt=0;!(P=A.next()).done;)P=P.value,ut=Kt+le(P,Dt++),ht+=j(P,B,Q,ut,et);else if(ut==="object"){if(typeof A.then=="function")return j(Bt(A),B,Q,P,et);throw B=String(A),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ht}function Y(A,B,Q){if(A==null)return A;var P=[],et=0;return j(A,P,"","",function(ut){return B.call(Q,ut,et++)}),P}function k(A){if(A._status===-1){var B=A._result;B=B(),B.then(function(Q){(A._status===0||A._status===-1)&&(A._status=1,A._result=Q)},function(Q){(A._status===0||A._status===-1)&&(A._status=2,A._result=Q)}),A._status===-1&&(A._status=0,A._result=B)}if(A._status===1)return A._result.default;throw A._result}var ct=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},dt={map:Y,forEach:function(A,B,Q){Y(A,function(){B.apply(this,arguments)},Q)},count:function(A){var B=0;return Y(A,function(){B++}),B},toArray:function(A){return Y(A,function(B){return B})||[]},only:function(A){if(!_t(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ot.Activity=x,ot.Children=dt,ot.Component=H,ot.Fragment=u,ot.Profiler=c,ot.PureComponent=X,ot.StrictMode=o,ot.Suspense=g,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ot.__COMPILER_RUNTIME={__proto__:null,c:function(A){return I.H.useMemoCache(A)}},ot.cache=function(A){return function(){return A.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(A,B,Q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var P=q({},A.props),et=A.key;if(B!=null)for(ut in B.key!==void 0&&(et=""+B.key),B)!F.call(B,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&B.ref===void 0||(P[ut]=B[ut]);var ut=arguments.length-2;if(ut===1)P.children=Q;else if(1<ut){for(var ht=Array(ut),Kt=0;Kt<ut;Kt++)ht[Kt]=arguments[Kt+2];P.children=ht}return lt(A.type,et,P)},ot.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},ot.createElement=function(A,B,Q){var P,et={},ut=null;if(B!=null)for(P in B.key!==void 0&&(ut=""+B.key),B)F.call(B,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(et[P]=B[P]);var ht=arguments.length-2;if(ht===1)et.children=Q;else if(1<ht){for(var Kt=Array(ht),Dt=0;Dt<ht;Dt++)Kt[Dt]=arguments[Dt+2];et.children=Kt}if(A&&A.defaultProps)for(P in ht=A.defaultProps,ht)et[P]===void 0&&(et[P]=ht[P]);return lt(A,ut,et)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(A){return{$$typeof:m,render:A}},ot.isValidElement=_t,ot.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:k}},ot.memo=function(A,B){return{$$typeof:p,type:A,compare:B===void 0?null:B}},ot.startTransition=function(A){var B=I.T,Q={};I.T=Q;try{var P=A(),et=I.S;et!==null&&et(Q,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(nt,ct)}catch(ut){ct(ut)}finally{B!==null&&Q.types!==null&&(B.types=Q.types),I.T=B}},ot.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ot.use=function(A){return I.H.use(A)},ot.useActionState=function(A,B,Q){return I.H.useActionState(A,B,Q)},ot.useCallback=function(A,B){return I.H.useCallback(A,B)},ot.useContext=function(A){return I.H.useContext(A)},ot.useDebugValue=function(){},ot.useDeferredValue=function(A,B){return I.H.useDeferredValue(A,B)},ot.useEffect=function(A,B){return I.H.useEffect(A,B)},ot.useEffectEvent=function(A){return I.H.useEffectEvent(A)},ot.useId=function(){return I.H.useId()},ot.useImperativeHandle=function(A,B,Q){return I.H.useImperativeHandle(A,B,Q)},ot.useInsertionEffect=function(A,B){return I.H.useInsertionEffect(A,B)},ot.useLayoutEffect=function(A,B){return I.H.useLayoutEffect(A,B)},ot.useMemo=function(A,B){return I.H.useMemo(A,B)},ot.useOptimistic=function(A,B){return I.H.useOptimistic(A,B)},ot.useReducer=function(A,B,Q){return I.H.useReducer(A,B,Q)},ot.useRef=function(A){return I.H.useRef(A)},ot.useState=function(A){return I.H.useState(A)},ot.useSyncExternalStore=function(A,B,Q){return I.H.useSyncExternalStore(A,B,Q)},ot.useTransition=function(){return I.H.useTransition()},ot.version="19.2.4",ot}var Ap;function $c(){return Ap||(Ap=1,sc.exports=F1()),sc.exports}var _=$c();const SA=Py(_);var uc={exports:{}},Gl={},oc={exports:{}},rc={};var Ep;function P1(){return Ep||(Ep=1,(function(i){function l(j,Y){var k=j.length;j.push(Y);t:for(;0<k;){var ct=k-1>>>1,dt=j[ct];if(0<c(dt,Y))j[ct]=Y,j[k]=dt,k=ct;else break t}}function u(j){return j.length===0?null:j[0]}function o(j){if(j.length===0)return null;var Y=j[0],k=j.pop();if(k!==Y){j[0]=k;t:for(var ct=0,dt=j.length,A=dt>>>1;ct<A;){var B=2*(ct+1)-1,Q=j[B],P=B+1,et=j[P];if(0>c(Q,k))P<dt&&0>c(et,Q)?(j[ct]=et,j[P]=k,ct=P):(j[ct]=Q,j[B]=k,ct=B);else if(P<dt&&0>c(et,k))j[ct]=et,j[P]=k,ct=P;else break t}}return Y}function c(j,Y){var k=j.sortIndex-Y.sortIndex;return k!==0?k:j.id-Y.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,m=h.now();i.unstable_now=function(){return h.now()-m}}var g=[],p=[],v=1,x=null,T=3,N=!1,z=!1,q=!1,G=!1,H=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function J(j){for(var Y=u(p);Y!==null;){if(Y.callback===null)o(p);else if(Y.startTime<=j)o(p),Y.sortIndex=Y.expirationTime,l(g,Y);else break;Y=u(p)}}function Z(j){if(q=!1,J(j),!z)if(u(g)!==null)z=!0,nt||(nt=!0,zt());else{var Y=u(p);Y!==null&&Bt(Z,Y.startTime-j)}}var nt=!1,I=-1,F=5,lt=-1;function xt(){return G?!0:!(i.unstable_now()-lt<F)}function _t(){if(G=!1,nt){var j=i.unstable_now();lt=j;var Y=!0;try{t:{z=!1,q&&(q=!1,K(I),I=-1),N=!0;var k=T;try{e:{for(J(j),x=u(g);x!==null&&!(x.expirationTime>j&&xt());){var ct=x.callback;if(typeof ct=="function"){x.callback=null,T=x.priorityLevel;var dt=ct(x.expirationTime<=j);if(j=i.unstable_now(),typeof dt=="function"){x.callback=dt,J(j),Y=!0;break e}x===u(g)&&o(g),J(j)}else o(g);x=u(g)}if(x!==null)Y=!0;else{var A=u(p);A!==null&&Bt(Z,A.startTime-j),Y=!1}}break t}finally{x=null,T=k,N=!1}Y=void 0}}finally{Y?zt():nt=!1}}}var zt;if(typeof X=="function")zt=function(){X(_t)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,le=Ot.port2;Ot.port1.onmessage=_t,zt=function(){le.postMessage(null)}}else zt=function(){H(_t,0)};function Bt(j,Y){I=H(function(){j(i.unstable_now())},Y)}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(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(j){switch(T){case 1:case 2:case 3:var Y=3;break;default:Y=T}var k=T;T=Y;try{return j()}finally{T=k}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var k=T;T=j;try{return Y()}finally{T=k}},i.unstable_scheduleCallback=function(j,Y,k){var ct=i.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ct+k:ct):k=ct,j){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=k+dt,j={id:v++,callback:Y,priorityLevel:j,startTime:k,expirationTime:dt,sortIndex:-1},k>ct?(j.sortIndex=k,l(p,j),u(g)===null&&j===u(p)&&(q?(K(I),I=-1):q=!0,Bt(Z,k-ct))):(j.sortIndex=dt,l(g,j),z||N||(z=!0,nt||(nt=!0,zt()))),j},i.unstable_shouldYield=xt,i.unstable_wrapCallback=function(j){var Y=T;return function(){var k=T;T=Y;try{return j.apply(this,arguments)}finally{T=k}}}})(rc)),rc}var Cp;function W1(){return Cp||(Cp=1,oc.exports=P1()),oc.exports}var cc={exports:{}},de={};var Mp;function $1(){if(Mp)return de;Mp=1;var i=$c();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(l(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(g,p,v){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:g,containerInfo:p,implementation:v}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return de.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,de.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(g,p,null,v)},de.flushSync=function(g){var p=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=p,o.p=v,o.d.f()}},de.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(g,p))},de.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},de.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?o.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:N}):v==="script"&&o.d.X(g,{crossOrigin:x,integrity:T,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},de.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(g)},de.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,x=m(v,p.crossOrigin);o.d.L(g,v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},de.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);o.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(g)},de.requestFormReset=function(g){o.d.r(g)},de.unstable_batchedUpdates=function(g,p){return g(p)},de.useFormState=function(g,p,v){return h.H.useFormState(g,p,v)},de.useFormStatus=function(){return h.H.useHostTransitionStatus()},de.version="19.2.4",de}var wp;function I1(){if(wp)return cc.exports;wp=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(),cc.exports=$1(),cc.exports}var Dp;function tx(){if(Dp)return Gl;Dp=1;var i=W1(),l=$c(),u=I1();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function 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 m(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(o(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,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(o(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(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),X=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),xt=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function zt(t){return t===null||typeof t!="object"?null:(t=_t&&t[_t]||t["@@iterator"],typeof t=="function"?t:null)}var Ot=Symbol.for("react.client.reference");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case H:return"Profiler";case G:return"StrictMode";case Z:return"Suspense";case nt:return"SuspenseList";case lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case z:return"Portal";case X:return t.displayName||"Context";case K:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return e=t.displayName||null,e!==null?e:le(t.type)||"Memo";case F:e=t._payload,t=t._init;try{return le(t(e))}catch{}}return null}var Bt=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},ct=[],dt=-1;function A(t){return{current:t}}function B(t){0>dt||(t.current=ct[dt],ct[dt]=null,dt--)}function Q(t,e){dt++,ct[dt]=t.current,t.current=e}var P=A(null),et=A(null),ut=A(null),ht=A(null);function Kt(t,e){switch(Q(ut,e),Q(et,t),Q(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Xm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Xm(e),t=Km(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(P),Q(P,t)}function Dt(){B(P),B(et),B(ut)}function pe(t){t.memoizedState!==null&&Q(ht,t);var e=P.current,n=Km(e,t.type);e!==n&&(Q(et,t),Q(P,n))}function pa(t){et.current===t&&(B(P),B(et)),ht.current===t&&(B(ht),Bl._currentValue=k)}var ze,Ga;function sn(t){if(ze===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ze=e&&e[1]||"",Ga=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+ze+t+Ga}var Xa=!1;function Xi(t,e){if(!t||Xa)return"";Xa=!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 D=O}Reflect.construct(t,[],L)}else{try{L.call()}catch(O){D=O}t.call(L.prototype)}}else{try{throw Error()}catch(O){D=O}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(O){if(O&&D&&typeof O.stack=="string")return[O.stack,D.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
|
-
`),w=y.split(`
|
|
5
|
-
`);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<w.length&&!w[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===w.length)for(a=S.length-1,s=w.length-1;1<=a&&0<=s&&S[a]!==w[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==w[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==w[s]){var R=`
|
|
6
|
-
`+S[a].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=a&&0<=s);break}}}finally{Xa=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?sn(n):""}function Qu(t,e){switch(t.tag){case 26:case 27:case 5:return sn(t.type);case 16:return sn("Lazy");case 13:return t.child!==e&&e!==null?sn("Suspense Fallback"):sn("Suspense");case 19:return sn("SuspenseList");case 0:case 15:return Xi(t.type,!1);case 11:return Xi(t.type.render,!1);case 1:return Xi(t.type,!0);case 31:return sn("Activity");default:return""}}function Re(t){try{var e="",n=null;do e+=Qu(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Ki=Object.prototype.hasOwnProperty,ya=i.unstable_scheduleCallback,Qi=i.unstable_cancelCallback,Zu=i.unstable_shouldYield,is=i.unstable_requestPaint,Ht=i.unstable_now,ku=i.unstable_getCurrentPriorityLevel,Zi=i.unstable_ImmediatePriority,ls=i.unstable_UserBlockingPriority,Hn=i.unstable_NormalPriority,Ju=i.unstable_LowPriority,ki=i.unstable_IdlePriority,Ka=i.log,Qa=i.unstable_setDisableYieldValue,Yn=null,he=null;function Je(t){if(typeof Ka=="function"&&Qa(t),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(Yn,t)}catch{}}var Yt=Math.clz32?Math.clz32:us,ss=Math.log,Fe=Math.LN2;function us(t){return t>>>=0,t===0?32:31-(ss(t)/Fe|0)|0}var qn=256,Ve=262144,Za=4194304;function vn(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 ka(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=vn(a):(f&=y,f!==0?s=vn(f):n||(n=y&~t,n!==0&&(s=vn(n))))):(y=a&~r,y!==0?s=vn(y):f!==0?s=vn(f):n||(n=a&~t,n!==0&&(s=vn(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 ga(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Fu(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 Ji(){var t=Za;return Za<<=1,(Za&62914560)===0&&(Za=4194304),t}function Fi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function va(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pu(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,w=t.hiddenUpdates;for(n=f&~n;0<n;){var R=31-Yt(n),L=1<<R;y[R]=0,S[R]=-1;var D=w[R];if(D!==null)for(w[R]=null,R=0;R<D.length;R++){var O=D[R];O!==null&&(O.lane&=-536870913)}n&=~L}a!==0&&os(t,a,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function os(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Yt(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Pi(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Yt(n),s=1<<a;s&e|t[a]&e&&(t[a]|=e),n&=~s}}function Wi(t,e){var n=e&-e;return n=(n&42)!==0?1:$i(n),(n&(t.suspendedLanes|e))!==0?0:n}function $i(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 xn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function un(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:dp(t.type))}function rs(t,e){var n=Y.p;try{return Y.p=t,e()}finally{Y.p=n}}var _e=Math.random().toString(36).slice(2),te="__reactFiber$"+_e,Qt="__reactProps$"+_e,xa="__reactContainer$"+_e,U="__reactEvents$"+_e,st="__reactListeners$"+_e,Zt="__reactHandles$"+_e,Pe="__reactResources$"+_e,on="__reactMarker$"+_e;function We(t){delete t[te],delete t[Qt],delete t[U],delete t[st],delete t[Zt]}function se(t){var e=t[te];if(e)return e;for(var n=t.parentNode;n;){if(e=n[xa]||n[te]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wm(t);t!==null;){if(n=t[te])return n;t=Wm(t)}return e}t=n,n=t.parentNode}return null}function Ja(t){if(t=t[te]||t[xa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ii(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Fa(t){var e=t[Pe];return e||(e=t[Pe]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[on]=!0}var jf=new Set,zf={};function ba(t,e){Pa(t,e),Pa(t+"Capture",e)}function Pa(t,e){for(zf[t]=e,t=0;t<e.length;t++)jf.add(e[t])}var Lg=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]*$"),Rf={},Vf={};function Hg(t){return Ki.call(Vf,t)?!0:Ki.call(Rf,t)?!1:Lg.test(t)?Vf[t]=!0:(Rf[t]=!0,!1)}function cs(t,e,n){if(Hg(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 fs(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 bn(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 Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function _f(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yg(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 Wu(t){if(!t._valueTracker){var e=_f(t)?"checked":"value";t._valueTracker=Yg(t,e,""+t[e])}}function Uf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=_f(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function hs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var qg=/[\n"\\]/g;function Be(t){return t.replace(qg,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $u(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=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Iu(t,f,Ue(e)):n!=null?Iu(t,f,Ue(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=""+Ue(y):t.removeAttribute("name")}function Bf(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)){Wu(t);return}n=n!=null?""+Ue(n):"",e=e!=null?""+Ue(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),Wu(t)}function Iu(t,e,n){e==="number"&&hs(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wa(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=""+Ue(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 Lf(t,e,n){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ue(n):""}function Hf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Bt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Ue(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Wu(t)}function $a(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Gg=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 Yf(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||Gg.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function qf(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(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&&Yf(t,s,a)}else for(var r in e)e.hasOwnProperty(r)&&Yf(t,r,e[r])}function to(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 Xg=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"]]),Kg=/^[\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 ds(t){return Kg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Sn(){}var eo=null;function no(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ia=null,ti=null;function Gf(t){var e=Ja(t);if(e&&(t=e.stateNode)){var n=t[Qt]||null;t:switch(t=e.stateNode,e.type){case"input":if($u(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="'+Be(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var s=a[Qt]||null;if(!s)throw Error(o(90));$u(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&&Uf(a)}break t;case"textarea":Lf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wa(t,!!n.multiple,e,!1)}}}var ao=!1;function Xf(t,e,n){if(ao)return t(e,n);ao=!0;try{var a=t(e);return a}finally{if(ao=!1,(Ia!==null||ti!==null)&&(tu(),Ia&&(e=Ia,t=ti,ti=Ia=null,Gf(e),t)))for(e=0;e<t.length;e++)Gf(t[e])}}function tl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[Qt]||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(o(231,e,typeof n));return n}var Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=!1;if(Tn)try{var el={};Object.defineProperty(el,"passive",{get:function(){io=!0}}),window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{io=!1}var Gn=null,lo=null,ms=null;function Kf(){if(ms)return ms;var t,e=lo,n=e.length,a,s="value"in Gn?Gn.value:Gn.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 ms=s.slice(t,1<a?1-a:void 0)}function ps(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 ys(){return!0}function Qf(){return!1}function xe(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)?ys:Qf,this.isPropagationStopped=Qf,this}return x(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=ys)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ys)},persist:function(){},isPersistent:ys}),e}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gs=xe(Sa),nl=x({},Sa,{view:0,detail:0}),Qg=xe(nl),so,uo,al,vs=x({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ro,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!==al&&(al&&t.type==="mousemove"?(so=t.screenX-al.screenX,uo=t.screenY-al.screenY):uo=so=0,al=t),so)},movementY:function(t){return"movementY"in t?t.movementY:uo}}),Zf=xe(vs),Zg=x({},vs,{dataTransfer:0}),kg=xe(Zg),Jg=x({},nl,{relatedTarget:0}),oo=xe(Jg),Fg=x({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),Pg=xe(Fg),Wg=x({},Sa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$g=xe(Wg),Ig=x({},Sa,{data:0}),kf=xe(Ig),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ev={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"},nv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function av(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nv[t])?!!e[t]:!1}function ro(){return av}var iv=x({},nl,{key:function(t){if(t.key){var e=tv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ps(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ev[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ro,charCode:function(t){return t.type==="keypress"?ps(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ps(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),lv=xe(iv),sv=x({},vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jf=xe(sv),uv=x({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ro}),ov=xe(uv),rv=x({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),cv=xe(rv),fv=x({},vs,{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}),hv=xe(fv),dv=x({},Sa,{newState:0,oldState:0}),mv=xe(dv),pv=[9,13,27,32],co=Tn&&"CompositionEvent"in window,il=null;Tn&&"documentMode"in document&&(il=document.documentMode);var yv=Tn&&"TextEvent"in window&&!il,Ff=Tn&&(!co||il&&8<il&&11>=il),Pf=" ",Wf=!1;function $f(t,e){switch(t){case"keyup":return pv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ei=!1;function gv(t,e){switch(t){case"compositionend":return If(e);case"keypress":return e.which!==32?null:(Wf=!0,Pf);case"textInput":return t=e.data,t===Pf&&Wf?null:t;default:return null}}function vv(t,e){if(ei)return t==="compositionend"||!co&&$f(t,e)?(t=Kf(),ms=lo=Gn=null,ei=!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 Ff&&e.locale!=="ko"?null:e.data;default:return null}}var xv={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 th(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xv[t.type]:e==="textarea"}function eh(t,e,n,a){Ia?ti?ti.push(a):ti=[a]:Ia=a,e=uu(e,"onChange"),0<e.length&&(n=new gs("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var ll=null,sl=null;function bv(t){Bm(t,0)}function xs(t){var e=Ii(t);if(Uf(e))return t}function nh(t,e){if(t==="change")return e}var ah=!1;if(Tn){var fo;if(Tn){var ho="oninput"in document;if(!ho){var ih=document.createElement("div");ih.setAttribute("oninput","return;"),ho=typeof ih.oninput=="function"}fo=ho}else fo=!1;ah=fo&&(!document.documentMode||9<document.documentMode)}function lh(){ll&&(ll.detachEvent("onpropertychange",sh),sl=ll=null)}function sh(t){if(t.propertyName==="value"&&xs(sl)){var e=[];eh(e,sl,t,no(t)),Xf(bv,e)}}function Sv(t,e,n){t==="focusin"?(lh(),ll=e,sl=n,ll.attachEvent("onpropertychange",sh)):t==="focusout"&&lh()}function Tv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return xs(sl)}function Av(t,e){if(t==="click")return xs(e)}function Ev(t,e){if(t==="input"||t==="change")return xs(e)}function Cv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:Cv;function ul(t,e){if(Ce(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(!Ki.call(e,s)||!Ce(t[s],e[s]))return!1}return!0}function uh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function oh(t,e){var n=uh(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=uh(n)}}function rh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?rh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ch(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=hs(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=hs(t.document)}return e}function mo(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 Mv=Tn&&"documentMode"in document&&11>=document.documentMode,ni=null,po=null,ol=null,yo=!1;function fh(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yo||ni==null||ni!==hs(a)||(a=ni,"selectionStart"in a&&mo(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}),ol&&ul(ol,a)||(ol=a,a=uu(po,"onSelect"),0<a.length&&(e=new gs("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=ni)))}function Ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ai={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},go={},hh={};Tn&&(hh=document.createElement("div").style,"AnimationEvent"in window||(delete ai.animationend.animation,delete ai.animationiteration.animation,delete ai.animationstart.animation),"TransitionEvent"in window||delete ai.transitionend.transition);function Aa(t){if(go[t])return go[t];if(!ai[t])return t;var e=ai[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in hh)return go[t]=e[n];return t}var dh=Aa("animationend"),mh=Aa("animationiteration"),ph=Aa("animationstart"),wv=Aa("transitionrun"),Dv=Aa("transitionstart"),Nv=Aa("transitioncancel"),yh=Aa("transitionend"),gh=new Map,vo="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(" ");vo.push("scrollEnd");function $e(t,e){gh.set(t,e),ba(e,[t])}var bs=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)},Le=[],ii=0,xo=0;function Ss(){for(var t=ii,e=xo=ii=0;e<t;){var n=Le[e];Le[e++]=null;var a=Le[e];Le[e++]=null;var s=Le[e];Le[e++]=null;var r=Le[e];if(Le[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&&vh(n,s,r)}}function Ts(t,e,n,a){Le[ii++]=t,Le[ii++]=e,Le[ii++]=n,Le[ii++]=a,xo|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function bo(t,e,n,a){return Ts(t,e,n,a),As(t)}function Ea(t,e){return Ts(t,null,null,e),As(t)}function vh(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-Yt(n),t=r.hiddenUpdates,a=t[s],a===null?t[s]=[e]:a.push(e),e.lane=n|536870912),r):null}function As(t){if(50<Ol)throw Ol=0,Nr=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var li={};function Ov(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 Me(t,e,n,a){return new Ov(t,e,n,a)}function So(t){return t=t.prototype,!(!t||!t.isReactComponent)}function An(t,e){var n=t.alternate;return n===null?(n=Me(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 xh(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 Es(t,e,n,a,s,r){var f=0;if(a=t,typeof t=="function")So(t)&&(f=1);else if(typeof t=="string")f=_1(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case lt:return t=Me(31,n,e,s),t.elementType=lt,t.lanes=r,t;case q:return Ca(n.children,s,r,e);case G:f=8,s|=24;break;case H:return t=Me(12,n,e,s|2),t.elementType=H,t.lanes=r,t;case Z:return t=Me(13,n,e,s),t.elementType=Z,t.lanes=r,t;case nt:return t=Me(19,n,e,s),t.elementType=nt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case K:f=9;break t;case J:f=11;break t;case I:f=14;break t;case F:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=Me(f,n,e,s),e.elementType=t,e.type=a,e.lanes=r,e}function Ca(t,e,n,a){return t=Me(7,t,a,e),t.lanes=n,t}function To(t,e,n){return t=Me(6,t,null,e),t.lanes=n,t}function bh(t){var e=Me(18,null,null,0);return e.stateNode=t,e}function Ao(t,e,n){return e=Me(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Sh=new WeakMap;function He(t,e){if(typeof t=="object"&&t!==null){var n=Sh.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Re(e)},Sh.set(t,e),e)}return{value:t,source:e,stack:Re(e)}}var si=[],ui=0,Cs=null,rl=0,Ye=[],qe=0,Xn=null,rn=1,cn="";function En(t,e){si[ui++]=rl,si[ui++]=Cs,Cs=t,rl=e}function Th(t,e,n){Ye[qe++]=rn,Ye[qe++]=cn,Ye[qe++]=Xn,Xn=t;var a=rn;t=cn;var s=32-Yt(a)-1;a&=~(1<<s),n+=1;var r=32-Yt(e)+s;if(30<r){var f=s-s%5;r=(a&(1<<f)-1).toString(32),a>>=f,s-=f,rn=1<<32-Yt(e)+s|n<<s|a,cn=r+t}else rn=1<<r|n<<s|a,cn=t}function Eo(t){t.return!==null&&(En(t,1),Th(t,1,0))}function Co(t){for(;t===Cs;)Cs=si[--ui],si[ui]=null,rl=si[--ui],si[ui]=null;for(;t===Xn;)Xn=Ye[--qe],Ye[qe]=null,cn=Ye[--qe],Ye[qe]=null,rn=Ye[--qe],Ye[qe]=null}function Ah(t,e){Ye[qe++]=rn,Ye[qe++]=cn,Ye[qe++]=Xn,rn=e.id,cn=e.overflow,Xn=t}var ue=null,Rt=null,vt=!1,Kn=null,Ge=!1,Mo=Error(o(519));function Qn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cl(He(e,t)),Mo}function Eh(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[te]=t,e[Qt]=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<zl.length;n++)pt(zl[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),Bf(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),Hf(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||qm(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=Sn),e=!0):e=!1,e||Qn(t,!0)}function Ch(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 31:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:ue=ue.return}}function oi(t){if(t!==ue)return!1;if(!vt)return Ch(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Kr(t.type,t.memoizedProps)),n=!n),n&&Rt&&Qn(t),Ch(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Rt=Pm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Rt=Pm(t)}else e===27?(e=Rt,la(t.type)?(t=Fr,Fr=null,Rt=t):Rt=e):Rt=ue?Ke(t.stateNode.nextSibling):null;return!0}function Ma(){Rt=ue=null,vt=!1}function wo(){var t=Kn;return t!==null&&(Ae===null?Ae=t:Ae.push.apply(Ae,t),Kn=null),t}function cl(t){Kn===null?Kn=[t]:Kn.push(t)}var Do=A(null),wa=null,Cn=null;function Zn(t,e,n){Q(Do,e._currentValue),e._currentValue=n}function Mn(t){t._currentValue=Do.current,B(Do)}function No(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 Oo(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),No(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(o(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),No(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 ri(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(o(387));if(f=f.memoizedProps,f!==null){var y=s.type;Ce(s.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(s===ht.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(Bl):t=[Bl])}s=s.return}t!==null&&Oo(e,t,n,a),e.flags|=262144}function Ms(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Da(t){wa=t,Cn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function oe(t){return Mh(wa,t)}function ws(t,e){return wa===null&&Da(t),Mh(t,e)}function Mh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Cn===null){if(t===null)throw Error(o(308));Cn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Cn=Cn.next=e;return n}var jv=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()})}},zv=i.unstable_scheduleCallback,Rv=i.unstable_NormalPriority,Ft={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jo(){return{controller:new jv,data:new Map,refCount:0}}function fl(t){t.refCount--,t.refCount===0&&zv(Rv,function(){t.controller.abort()})}var hl=null,zo=0,ci=0,fi=null;function Vv(t,e){if(hl===null){var n=hl=[];zo=0,ci=_r(),fi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return zo++,e.then(wh,wh),e}function wh(){if(--zo===0&&hl!==null){fi!==null&&(fi.status="fulfilled");var t=hl;hl=null,ci=0,fi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _v(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 Dh=j.S;j.S=function(t,e){fm=Ht(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Vv(t,e),Dh!==null&&Dh(t,e)};var Na=A(null);function Ro(){var t=Na.current;return t!==null?t:Nt.pooledCache}function Ds(t,e){e===null?Q(Na,Na.current):Q(Na,e.pool)}function Nh(){var t=Ro();return t===null?null:{parent:Ft._currentValue,pool:t}}var hi=Error(o(460)),Vo=Error(o(474)),Ns=Error(o(542)),Os={then:function(){}};function Oh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function jh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Sn,Sn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Rh(t),t;default:if(typeof e.status=="string")e.then(Sn,Sn);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(o(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,Rh(t),t}throw ja=e,hi}}function Oa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ja=n,hi):n}}var ja=null;function zh(){if(ja===null)throw Error(o(459));var t=ja;return ja=null,t}function Rh(t){if(t===hi||t===Ns)throw Error(o(483))}var di=null,dl=0;function js(t){var e=dl;return dl+=1,di===null&&(di=[]),jh(di,t,e)}function ml(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function zs(t,e){throw e.$$typeof===T?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Vh(t){function e(C,E){if(t){var M=C.deletions;M===null?(C.deletions=[E],C.flags|=16):M.push(E)}}function n(C,E){if(!t)return null;for(;E!==null;)e(C,E),E=E.sibling;return null}function a(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function s(C,E){return C=An(C,E),C.index=0,C.sibling=null,C}function r(C,E,M){return C.index=M,t?(M=C.alternate,M!==null?(M=M.index,M<E?(C.flags|=67108866,E):M):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function y(C,E,M,V){return E===null||E.tag!==6?(E=To(M,C.mode,V),E.return=C,E):(E=s(E,M),E.return=C,E)}function S(C,E,M,V){var at=M.type;return at===q?R(C,E,M.props.children,V,M.key):E!==null&&(E.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===F&&Oa(at)===E.type)?(E=s(E,M.props),ml(E,M),E.return=C,E):(E=Es(M.type,M.key,M.props,null,C.mode,V),ml(E,M),E.return=C,E)}function w(C,E,M,V){return E===null||E.tag!==4||E.stateNode.containerInfo!==M.containerInfo||E.stateNode.implementation!==M.implementation?(E=Ao(M,C.mode,V),E.return=C,E):(E=s(E,M.children||[]),E.return=C,E)}function R(C,E,M,V,at){return E===null||E.tag!==7?(E=Ca(M,C.mode,V,at),E.return=C,E):(E=s(E,M),E.return=C,E)}function L(C,E,M){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=To(""+E,C.mode,M),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return M=Es(E.type,E.key,E.props,null,C.mode,M),ml(M,E),M.return=C,M;case z:return E=Ao(E,C.mode,M),E.return=C,E;case F:return E=Oa(E),L(C,E,M)}if(Bt(E)||zt(E))return E=Ca(E,C.mode,M,null),E.return=C,E;if(typeof E.then=="function")return L(C,js(E),M);if(E.$$typeof===X)return L(C,ws(C,E),M);zs(C,E)}return null}function D(C,E,M,V){var at=E!==null?E.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return at!==null?null:y(C,E,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return M.key===at?S(C,E,M,V):null;case z:return M.key===at?w(C,E,M,V):null;case F:return M=Oa(M),D(C,E,M,V)}if(Bt(M)||zt(M))return at!==null?null:R(C,E,M,V,null);if(typeof M.then=="function")return D(C,E,js(M),V);if(M.$$typeof===X)return D(C,E,ws(C,M),V);zs(C,M)}return null}function O(C,E,M,V,at){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return C=C.get(M)||null,y(E,C,""+V,at);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return C=C.get(V.key===null?M:V.key)||null,S(E,C,V,at);case z:return C=C.get(V.key===null?M:V.key)||null,w(E,C,V,at);case F:return V=Oa(V),O(C,E,M,V,at)}if(Bt(V)||zt(V))return C=C.get(M)||null,R(E,C,V,at,null);if(typeof V.then=="function")return O(C,E,M,js(V),at);if(V.$$typeof===X)return O(C,E,M,ws(E,V),at);zs(E,V)}return null}function W(C,E,M,V){for(var at=null,bt=null,tt=E,ft=E=0,gt=null;tt!==null&&ft<M.length;ft++){tt.index>ft?(gt=tt,tt=null):gt=tt.sibling;var St=D(C,tt,M[ft],V);if(St===null){tt===null&&(tt=gt);break}t&&tt&&St.alternate===null&&e(C,tt),E=r(St,E,ft),bt===null?at=St:bt.sibling=St,bt=St,tt=gt}if(ft===M.length)return n(C,tt),vt&&En(C,ft),at;if(tt===null){for(;ft<M.length;ft++)tt=L(C,M[ft],V),tt!==null&&(E=r(tt,E,ft),bt===null?at=tt:bt.sibling=tt,bt=tt);return vt&&En(C,ft),at}for(tt=a(tt);ft<M.length;ft++)gt=O(tt,C,ft,M[ft],V),gt!==null&&(t&>.alternate!==null&&tt.delete(gt.key===null?ft:gt.key),E=r(gt,E,ft),bt===null?at=gt:bt.sibling=gt,bt=gt);return t&&tt.forEach(function(ca){return e(C,ca)}),vt&&En(C,ft),at}function it(C,E,M,V){if(M==null)throw Error(o(151));for(var at=null,bt=null,tt=E,ft=E=0,gt=null,St=M.next();tt!==null&&!St.done;ft++,St=M.next()){tt.index>ft?(gt=tt,tt=null):gt=tt.sibling;var ca=D(C,tt,St.value,V);if(ca===null){tt===null&&(tt=gt);break}t&&tt&&ca.alternate===null&&e(C,tt),E=r(ca,E,ft),bt===null?at=ca:bt.sibling=ca,bt=ca,tt=gt}if(St.done)return n(C,tt),vt&&En(C,ft),at;if(tt===null){for(;!St.done;ft++,St=M.next())St=L(C,St.value,V),St!==null&&(E=r(St,E,ft),bt===null?at=St:bt.sibling=St,bt=St);return vt&&En(C,ft),at}for(tt=a(tt);!St.done;ft++,St=M.next())St=O(tt,C,ft,St.value,V),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?ft:St.key),E=r(St,E,ft),bt===null?at=St:bt.sibling=St,bt=St);return t&&tt.forEach(function(Z1){return e(C,Z1)}),vt&&En(C,ft),at}function wt(C,E,M,V){if(typeof M=="object"&&M!==null&&M.type===q&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case N:t:{for(var at=M.key;E!==null;){if(E.key===at){if(at=M.type,at===q){if(E.tag===7){n(C,E.sibling),V=s(E,M.props.children),V.return=C,C=V;break t}}else if(E.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===F&&Oa(at)===E.type){n(C,E.sibling),V=s(E,M.props),ml(V,M),V.return=C,C=V;break t}n(C,E);break}else e(C,E);E=E.sibling}M.type===q?(V=Ca(M.props.children,C.mode,V,M.key),V.return=C,C=V):(V=Es(M.type,M.key,M.props,null,C.mode,V),ml(V,M),V.return=C,C=V)}return f(C);case z:t:{for(at=M.key;E!==null;){if(E.key===at)if(E.tag===4&&E.stateNode.containerInfo===M.containerInfo&&E.stateNode.implementation===M.implementation){n(C,E.sibling),V=s(E,M.children||[]),V.return=C,C=V;break t}else{n(C,E);break}else e(C,E);E=E.sibling}V=Ao(M,C.mode,V),V.return=C,C=V}return f(C);case F:return M=Oa(M),wt(C,E,M,V)}if(Bt(M))return W(C,E,M,V);if(zt(M)){if(at=zt(M),typeof at!="function")throw Error(o(150));return M=at.call(M),it(C,E,M,V)}if(typeof M.then=="function")return wt(C,E,js(M),V);if(M.$$typeof===X)return wt(C,E,ws(C,M),V);zs(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,E!==null&&E.tag===6?(n(C,E.sibling),V=s(E,M),V.return=C,C=V):(n(C,E),V=To(M,C.mode,V),V.return=C,C=V),f(C)):n(C,E)}return function(C,E,M,V){try{dl=0;var at=wt(C,E,M,V);return di=null,at}catch(tt){if(tt===hi||tt===Ns)throw tt;var bt=Me(29,tt,null,C.mode);return bt.lanes=V,bt.return=C,bt}}}var za=Vh(!0),_h=Vh(!1),kn=!1;function _o(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Uo(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 Jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Tt&2)!==0){var s=a.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),a.pending=e,e=As(t),vh(t,null,n),e}return Ts(t,a,e,n),As(t)}function pl(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,Pi(t,n)}}function Bo(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 Lo=!1;function yl(){if(Lo){var t=fi;if(t!==null)throw t}}function gl(t,e,n,a){Lo=!1;var s=t.updateQueue;kn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,w=S.next;S.next=null,f===null?r=w:f.next=w,f=S;var R=t.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==f&&(y===null?R.firstBaseUpdate=w:y.next=w,R.lastBaseUpdate=S))}if(r!==null){var L=s.baseState;f=0,R=w=S=null,y=r;do{var D=y.lane&-536870913,O=D!==y.lane;if(O?(yt&D)===D:(a&D)===D){D!==0&&D===ci&&(Lo=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var W=t,it=y;D=e;var wt=n;switch(it.tag){case 1:if(W=it.payload,typeof W=="function"){L=W.call(wt,L,D);break t}L=W;break t;case 3:W.flags=W.flags&-65537|128;case 0:if(W=it.payload,D=typeof W=="function"?W.call(wt,L,D):W,D==null)break t;L=x({},L,D);break t;case 2:kn=!0}}D=y.callback,D!==null&&(t.flags|=64,O&&(t.flags|=8192),O=s.callbacks,O===null?s.callbacks=[D]:O.push(D))}else O={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(w=R=O,S=L):R=R.next=O,f|=D;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);R===null&&(S=L),s.baseState=S,s.firstBaseUpdate=w,s.lastBaseUpdate=R,r===null&&(s.shared.lanes=0),ta|=f,t.lanes=f,t.memoizedState=L}}function Uh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Bh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Uh(n[t],e)}var mi=A(null),Rs=A(0);function Lh(t,e){t=_n,Q(Rs,t),Q(mi,e),_n=t|e.baseLanes}function Ho(){Q(Rs,_n),Q(mi,mi.current)}function Yo(){_n=Rs.current,B(mi),B(Rs)}var we=A(null),Xe=null;function Pn(t){var e=t.alternate;Q(kt,kt.current&1),Q(we,t),Xe===null&&(e===null||mi.current!==null||e.memoizedState!==null)&&(Xe=t)}function qo(t){Q(kt,kt.current),Q(we,t),Xe===null&&(Xe=t)}function Hh(t){t.tag===22?(Q(kt,kt.current),Q(we,t),Xe===null&&(Xe=t)):Wn()}function Wn(){Q(kt,kt.current),Q(we,we.current)}function De(t){B(we),Xe===t&&(Xe=null),B(kt)}var kt=A(0);function Vs(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||kr(n)||Jr(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 wn=0,rt=null,Ct=null,Pt=null,_s=!1,pi=!1,Ra=!1,Us=0,vl=0,yi=null,Uv=0;function qt(){throw Error(o(321))}function Go(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ce(t[n],e[n]))return!1;return!0}function Xo(t,e,n,a,s,r){return wn=r,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,j.H=t===null||t.memoizedState===null?Td:ir,Ra=!1,r=n(a,s),Ra=!1,pi&&(r=qh(e,n,a,s)),Yh(t),r}function Yh(t){j.H=Sl;var e=Ct!==null&&Ct.next!==null;if(wn=0,Pt=Ct=rt=null,_s=!1,vl=0,yi=null,e)throw Error(o(300));t===null||Wt||(t=t.dependencies,t!==null&&Ms(t)&&(Wt=!0))}function qh(t,e,n,a){rt=t;var s=0;do{if(pi&&(yi=null),vl=0,pi=!1,25<=s)throw Error(o(301));if(s+=1,Pt=Ct=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}j.H=Ad,r=e(n,a)}while(pi);return r}function Bv(){var t=j.H,e=t.useState()[0];return e=typeof e.then=="function"?xl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(rt.flags|=1024),e}function Ko(){var t=Us!==0;return Us=0,t}function Qo(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Zo(t){if(_s){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}_s=!1}wn=0,Pt=Ct=rt=null,pi=!1,vl=Us=0,yi=null}function ye(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?rt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function Jt(){if(Ct===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Pt===null?rt.memoizedState:Pt.next;if(e!==null)Pt=e,Ct=t;else{if(t===null)throw rt.alternate===null?Error(o(467)):Error(o(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Pt===null?rt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Bs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(t){var e=vl;return vl+=1,yi===null&&(yi=[]),t=jh(yi,t,e),e=rt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,j.H=e===null||e.memoizedState===null?Td:ir),t}function Ls(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xl(t);if(t.$$typeof===X)return oe(t)}throw Error(o(438,String(t)))}function ko(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=rt.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=Bs(),rt.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]=xt;return e.index++,n}function Dn(t,e){return typeof e=="function"?e(t):e}function Hs(t){var e=Jt();return Jo(e,Ct,t)}function Jo(t,e,n){var a=t.queue;if(a===null)throw Error(o(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,w=e,R=!1;do{var L=w.lane&-536870913;if(L!==w.lane?(yt&L)===L:(wn&L)===L){var D=w.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),L===ci&&(R=!0);else if((wn&D)===D){w=w.next,D===ci&&(R=!0);continue}else L={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},S===null?(y=S=L,f=r):S=S.next=L,rt.lanes|=D,ta|=D;L=w.action,Ra&&n(r,L),r=w.hasEagerState?w.eagerState:n(r,L)}else D={lane:L,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},S===null?(y=S=D,f=r):S=S.next=D,rt.lanes|=L,ta|=L;w=w.next}while(w!==null&&w!==e);if(S===null?f=r:S.next=y,!Ce(r,t.memoizedState)&&(Wt=!0,R&&(n=fi,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 Fo(t){var e=Jt(),n=e.queue;if(n===null)throw Error(o(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);Ce(r,e.memoizedState)||(Wt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function Gh(t,e,n){var a=rt,s=Jt(),r=vt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!Ce((Ct||s).memoizedState,n);if(f&&(s.memoizedState=n,Wt=!0),s=s.queue,$o(Qh.bind(null,a,s,t),[t]),s.getSnapshot!==e||f||Pt!==null&&Pt.memoizedState.tag&1){if(a.flags|=2048,gi(9,{destroy:void 0},Kh.bind(null,a,s,n,e),null),Nt===null)throw Error(o(349));r||(wn&127)!==0||Xh(a,e,n)}return n}function Xh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=Bs(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Kh(t,e,n,a){e.value=n,e.getSnapshot=a,Zh(e)&&kh(t)}function Qh(t,e,n){return n(function(){Zh(e)&&kh(t)})}function Zh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ce(t,n)}catch{return!0}}function kh(t){var e=Ea(t,2);e!==null&&Ee(e,t,2)}function Po(t){var e=ye();if(typeof t=="function"){var n=t;if(t=n(),Ra){Je(!0);try{n()}finally{Je(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:t},e}function Jh(t,e,n,a){return t.baseState=n,Jo(t,Ct,typeof a=="function"?a:Dn)}function Lv(t,e,n,a,s){if(Gs(t))throw Error(o(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)}};j.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,Fh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Fh(t,e){var n=e.action,a=e.payload,s=t.state;if(e.isTransition){var r=j.T,f={};j.T=f;try{var y=n(s,a),S=j.S;S!==null&&S(f,y),Ph(t,e,y)}catch(w){Wo(t,e,w)}finally{r!==null&&f.types!==null&&(r.types=f.types),j.T=r}}else try{r=n(s,a),Ph(t,e,r)}catch(w){Wo(t,e,w)}}function Ph(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Wh(t,e,a)},function(a){return Wo(t,e,a)}):Wh(t,e,n)}function Wh(t,e,n){e.status="fulfilled",e.value=n,$h(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Fh(t,n)))}function Wo(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,$h(e),e=e.next;while(e!==a)}t.action=null}function $h(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ih(t,e){return e}function td(t,e){if(vt){var n=Nt.formState;if(n!==null){t:{var a=rt;if(vt){if(Rt){e:{for(var s=Rt,r=Ge;s.nodeType!==8;){if(!r){s=null;break e}if(s=Ke(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Rt=Ke(s.nextSibling),a=s.data==="F!";break t}}Qn(a)}a=!1}a&&(e=n[0])}}return n=ye(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ih,lastRenderedState:e},n.queue=a,n=xd.bind(null,rt,a),a.dispatch=n,a=Po(!1),r=ar.bind(null,rt,!1,a.queue),a=ye(),s={state:e,dispatch:null,action:t,pending:null},a.queue=s,n=Lv.bind(null,rt,s,r,n),s.dispatch=n,a.memoizedState=t,[e,n,!1]}function ed(t){var e=Jt();return nd(e,Ct,t)}function nd(t,e,n){if(e=Jo(t,e,Ih)[0],t=Hs(Dn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=xl(e)}catch(f){throw f===hi?Ns:f}else a=e;e=Jt();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,gi(9,{destroy:void 0},Hv.bind(null,s,n),null)),[a,r,t]}function Hv(t,e){t.action=e}function ad(t){var e=Jt(),n=Ct;if(n!==null)return nd(e,n,t);Jt(),e=e.memoizedState,n=Jt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function gi(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=rt.updateQueue,e===null&&(e=Bs(),rt.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 id(){return Jt().memoizedState}function Ys(t,e,n,a){var s=ye();rt.flags|=t,s.memoizedState=gi(1|e,{destroy:void 0},n,a===void 0?null:a)}function qs(t,e,n,a){var s=Jt();a=a===void 0?null:a;var r=s.memoizedState.inst;Ct!==null&&a!==null&&Go(a,Ct.memoizedState.deps)?s.memoizedState=gi(e,r,n,a):(rt.flags|=t,s.memoizedState=gi(1|e,r,n,a))}function ld(t,e){Ys(8390656,8,t,e)}function $o(t,e){qs(2048,8,t,e)}function Yv(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=Bs(),rt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function sd(t){var e=Jt().memoizedState;return Yv({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function ud(t,e){return qs(4,2,t,e)}function od(t,e){return qs(4,4,t,e)}function rd(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 cd(t,e,n){n=n!=null?n.concat([t]):null,qs(4,4,rd.bind(null,e,t),n)}function Io(){}function fd(t,e){var n=Jt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Go(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function hd(t,e){var n=Jt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Go(e,a[1]))return a[0];if(a=t(),Ra){Je(!0);try{t()}finally{Je(!1)}}return n.memoizedState=[a,e],a}function tr(t,e,n){return n===void 0||(wn&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=dm(),rt.lanes|=t,ta|=t,n)}function dd(t,e,n,a){return Ce(n,e)?n:mi.current!==null?(t=tr(t,n,a),Ce(t,e)||(Wt=!0),t):(wn&42)===0||(wn&1073741824)!==0&&(yt&261930)===0?(Wt=!0,t.memoizedState=n):(t=dm(),rt.lanes|=t,ta|=t,e)}function md(t,e,n,a,s){var r=Y.p;Y.p=r!==0&&8>r?r:8;var f=j.T,y={};j.T=y,ar(t,!1,e,n);try{var S=s(),w=j.S;if(w!==null&&w(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var R=_v(S,a);bl(t,e,R,je(t))}else bl(t,e,a,je(t))}catch(L){bl(t,e,{then:function(){},status:"rejected",reason:L},je())}finally{Y.p=r,f!==null&&y.types!==null&&(f.types=y.types),j.T=f}}function qv(){}function er(t,e,n,a){if(t.tag!==5)throw Error(o(476));var s=pd(t).queue;md(t,s,e,k,n===null?qv:function(){return yd(t),n(a)})}function pd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:k},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function yd(t){var e=pd(t);e.next===null&&(e=t.alternate.memoizedState),bl(t,e.next.queue,{},je())}function nr(){return oe(Bl)}function gd(){return Jt().memoizedState}function vd(){return Jt().memoizedState}function Gv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=je();t=Jn(n);var a=Fn(e,t,n);a!==null&&(Ee(a,e,n),pl(a,e,n)),e={cache:jo()},t.payload=e;return}e=e.return}}function Xv(t,e,n){var a=je();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gs(t)?bd(e,n):(n=bo(t,e,n,a),n!==null&&(Ee(n,t,a),Sd(n,e,a)))}function xd(t,e,n){var a=je();bl(t,e,n,a)}function bl(t,e,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gs(t))bd(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,Ce(y,f))return Ts(t,e,s,0),Nt===null&&Ss(),!1}catch{}if(n=bo(t,e,s,a),n!==null)return Ee(n,t,a),Sd(n,e,a),!0}return!1}function ar(t,e,n,a){if(a={lane:2,revertLane:_r(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gs(t)){if(e)throw Error(o(479))}else e=bo(t,n,a,2),e!==null&&Ee(e,t,2)}function Gs(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function bd(t,e){pi=_s=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Sd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Pi(t,n)}}var Sl={readContext:oe,use:Ls,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};Sl.useEffectEvent=qt;var Td={readContext:oe,use:Ls,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:oe,useEffect:ld,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ys(4194308,4,rd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ys(4194308,4,t,e)},useInsertionEffect:function(t,e){Ys(4,2,t,e)},useMemo:function(t,e){var n=ye();e=e===void 0?null:e;var a=t();if(Ra){Je(!0);try{t()}finally{Je(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ye();if(n!==void 0){var s=n(e);if(Ra){Je(!0);try{n(e)}finally{Je(!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=Xv.bind(null,rt,t),[a.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=Po(t);var e=t.queue,n=xd.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Io,useDeferredValue:function(t,e){var n=ye();return tr(n,t,e)},useTransition:function(){var t=Po(!1);return t=md.bind(null,rt,t.queue,!0,!1),ye().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=rt,s=ye();if(vt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Nt===null)throw Error(o(349));(yt&127)!==0||Xh(a,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,ld(Qh.bind(null,a,r,t),[t]),a.flags|=2048,gi(9,{destroy:void 0},Kh.bind(null,a,r,n,e),null),n},useId:function(){var t=ye(),e=Nt.identifierPrefix;if(vt){var n=cn,a=rn;n=(a&~(1<<32-Yt(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Us++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Uv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:nr,useFormState:td,useActionState:td,useOptimistic:function(t){var e=ye();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=ar.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:ko,useCacheRefresh:function(){return ye().memoizedState=Gv.bind(null,rt)},useEffectEvent:function(t){var e=ye(),n={impl:t};return e.memoizedState=n,function(){if((Tt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},ir={readContext:oe,use:Ls,useCallback:fd,useContext:oe,useEffect:$o,useImperativeHandle:cd,useInsertionEffect:ud,useLayoutEffect:od,useMemo:hd,useReducer:Hs,useRef:id,useState:function(){return Hs(Dn)},useDebugValue:Io,useDeferredValue:function(t,e){var n=Jt();return dd(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Hs(Dn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:xl(t),e]},useSyncExternalStore:Gh,useId:gd,useHostTransitionStatus:nr,useFormState:ed,useActionState:ed,useOptimistic:function(t,e){var n=Jt();return Jh(n,Ct,t,e)},useMemoCache:ko,useCacheRefresh:vd};ir.useEffectEvent=sd;var Ad={readContext:oe,use:Ls,useCallback:fd,useContext:oe,useEffect:$o,useImperativeHandle:cd,useInsertionEffect:ud,useLayoutEffect:od,useMemo:hd,useReducer:Fo,useRef:id,useState:function(){return Fo(Dn)},useDebugValue:Io,useDeferredValue:function(t,e){var n=Jt();return Ct===null?tr(n,t,e):dd(n,Ct.memoizedState,t,e)},useTransition:function(){var t=Fo(Dn)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:xl(t),e]},useSyncExternalStore:Gh,useId:gd,useHostTransitionStatus:nr,useFormState:ad,useActionState:ad,useOptimistic:function(t,e){var n=Jt();return Ct!==null?Jh(n,Ct,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:ko,useCacheRefresh:vd};Ad.useEffectEvent=sd;function lr(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var sr={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=je(),s=Jn(a);s.payload=e,n!=null&&(s.callback=n),e=Fn(t,s,a),e!==null&&(Ee(e,t,a),pl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=je(),s=Jn(a);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Fn(t,s,a),e!==null&&(Ee(e,t,a),pl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=je(),a=Jn(n);a.tag=2,e!=null&&(a.callback=e),e=Fn(t,a,n),e!==null&&(Ee(e,t,n),pl(e,t,n))}};function Ed(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?!ul(n,a)||!ul(s,r):!0}function Cd(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&&sr.enqueueReplaceState(e,e.state,null)}function Va(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=x({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Md(t){bs(t)}function wd(t){console.error(t)}function Dd(t){bs(t)}function Xs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Nd(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 ur(t,e,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(t,e)},n}function Od(t){return t=Jn(t),t.tag=3,t}function jd(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(){Nd(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Nd(e,n,a),typeof s!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Kv(t,e,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&ri(e,n,s,!0),n=we.current,n!==null){switch(n.tag){case 31:case 13:return Xe===null?eu():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Os?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),zr(t,a,s)),!1;case 22:return n.flags|=65536,a===Os?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)),zr(t,a,s)),!1}throw Error(o(435,n.tag))}return zr(t,a,s),eu(),!1}if(vt)return e=we.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,a!==Mo&&(t=Error(o(422),{cause:a}),cl(He(t,n)))):(a!==Mo&&(e=Error(o(423),{cause:a}),cl(He(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,a=He(a,n),s=ur(t.stateNode,a,s),Bo(t,s),Gt!==4&&(Gt=2)),!1;var r=Error(o(520),{cause:a});if(r=He(r,n),Nl===null?Nl=[r]:Nl.push(r),Gt!==4&&(Gt=2),e===null)return!0;a=He(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=ur(n.stateNode,a,t),Bo(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"&&(ea===null||!ea.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Od(s),jd(s,t,n,a),Bo(n,s),!1}n=n.return}while(n!==null);return!1}var or=Error(o(461)),Wt=!1;function re(t,e,n,a){e.child=t===null?_h(e,null,n,a):za(e,t.child,n,a)}function zd(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 Da(e),a=Xo(t,e,n,f,r,s),y=Ko(),t!==null&&!Wt?(Qo(t,e,s),Nn(t,e,s)):(vt&&y&&Eo(e),e.flags|=1,re(t,e,a,s),e.child)}function Rd(t,e,n,a,s){if(t===null){var r=n.type;return typeof r=="function"&&!So(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Vd(t,e,r,a,s)):(t=Es(n.type,null,a,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!yr(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:ul,n(f,a)&&t.ref===e.ref)return Nn(t,e,s)}return e.flags|=1,t=An(r,a),t.ref=e.ref,t.return=e,e.child=t}function Vd(t,e,n,a,s){if(t!==null){var r=t.memoizedProps;if(ul(r,a)&&t.ref===e.ref)if(Wt=!1,e.pendingProps=a=r,yr(t,s))(t.flags&131072)!==0&&(Wt=!0);else return e.lanes=t.lanes,Nn(t,e,s)}return rr(t,e,n,a,s)}function _d(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 Ud(t,e,r,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ds(e,r!==null?r.cachePool:null),r!==null?Lh(e,r):Ho(),Hh(e);else return a=e.lanes=536870912,Ud(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Ds(e,r.cachePool),Lh(e,r),Wn(),e.memoizedState=null):(t!==null&&Ds(e,null),Ho(),Wn());return re(t,e,s,n),e.child}function Tl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ud(t,e,n,a,s){var r=Ro();return r=r===null?null:{parent:Ft._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Ds(e,null),Ho(),Hh(e),t!==null&&ri(t,e,a,!0),e.childLanes=s,null}function Ks(t,e){return e=Zs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Bd(t,e,n){return za(e,t.child,null,n),t=Ks(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function Qv(t,e,n){var a=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(a.mode==="hidden")return t=Ks(e,a),e.lanes=536870912,Tl(null,t);if(qo(e),(t=Rt)?(t=Fm(t,Ge),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xn!==null?{id:rn,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=bh(t),n.return=e,e.child=n,ue=e,Rt=null)):t=null,t===null)throw Qn(e);return e.lanes=536870912,null}return Ks(e,a)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(qo(e),s)if(e.flags&256)e.flags&=-257,e=Bd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Wt||ri(t,e,n,!1),s=(n&t.childLanes)!==0,Wt||s){if(a=Nt,a!==null&&(f=Wi(a,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,Ea(t,f),Ee(a,t,f),or;eu(),e=Bd(t,e,n)}else t=r.treeContext,Rt=Ke(f.nextSibling),ue=e,vt=!0,Kn=null,Ge=!1,t!==null&&Ah(e,t),e=Ks(e,a),e.flags|=4096;return e}return t=An(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Qs(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function rr(t,e,n,a,s){return Da(e),n=Xo(t,e,n,a,void 0,s),a=Ko(),t!==null&&!Wt?(Qo(t,e,s),Nn(t,e,s)):(vt&&a&&Eo(e),e.flags|=1,re(t,e,n,s),e.child)}function Ld(t,e,n,a,s,r){return Da(e),e.updateQueue=null,n=qh(e,a,n,s),Yh(t),a=Ko(),t!==null&&!Wt?(Qo(t,e,r),Nn(t,e,r)):(vt&&a&&Eo(e),e.flags|=1,re(t,e,n,r),e.child)}function Hd(t,e,n,a,s){if(Da(e),e.stateNode===null){var r=li,f=n.contextType;typeof f=="object"&&f!==null&&(r=oe(f)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=sr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},_o(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?oe(f):li,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(lr(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&&sr.enqueueReplaceState(r,r.state,null),gl(e,a,r,s),yl(),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=Va(n,y);r.props=S;var w=r.context,R=n.contextType;f=li,typeof R=="object"&&R!==null&&(f=oe(R));var L=n.getDerivedStateFromProps;R=typeof L=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||w!==f)&&Cd(e,r,a,f),kn=!1;var D=e.memoizedState;r.state=D,gl(e,a,r,s),yl(),w=e.memoizedState,y||D!==w||kn?(typeof L=="function"&&(lr(e,n,L,a),w=e.memoizedState),(S=kn||Ed(e,n,S,a,D,w,f))?(R||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=w),r.props=a,r.state=w,r.context=f,a=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,Uo(t,e),f=e.memoizedProps,R=Va(n,f),r.props=R,L=e.pendingProps,D=r.context,w=n.contextType,S=li,typeof w=="object"&&w!==null&&(S=oe(w)),y=n.getDerivedStateFromProps,(w=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==L||D!==S)&&Cd(e,r,a,S),kn=!1,D=e.memoizedState,r.state=D,gl(e,a,r,s),yl();var O=e.memoizedState;f!==L||D!==O||kn||t!==null&&t.dependencies!==null&&Ms(t.dependencies)?(typeof y=="function"&&(lr(e,n,y,a),O=e.memoizedState),(R=kn||Ed(e,n,R,a,D,O,S)||t!==null&&t.dependencies!==null&&Ms(t.dependencies))?(w||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&&D===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),r.props=a,r.state=O,r.context=S,a=R):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,Qs(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=za(e,t.child,null,s),e.child=za(e,null,n,s)):re(t,e,n,s),e.memoizedState=r.state,t=e.child):t=Nn(t,e,s),t}function Yd(t,e,n,a){return Ma(),e.flags|=256,re(t,e,n,a),e.child}var cr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(t){return{baseLanes:t,cachePool:Nh()}}function hr(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function qd(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:(kt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(s?Pn(e):Wn(),(t=Rt)?(t=Fm(t,Ge),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xn!==null?{id:rn,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=bh(t),n.return=e,e.child=n,ue=e,Rt=null)):t=null,t===null)throw Qn(e);return Jr(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(Wn(),s=e.mode,y=Zs({mode:"hidden",children:y},s),a=Ca(a,s,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=fr(n),a.childLanes=hr(t,f,n),e.memoizedState=cr,Tl(null,a)):(Pn(e),dr(e,y))}var S=t.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(r)e.flags&256?(Pn(e),e.flags&=-257,e=mr(t,e,n)):e.memoizedState!==null?(Wn(),e.child=t.child,e.flags|=128,e=null):(Wn(),y=a.fallback,s=e.mode,a=Zs({mode:"visible",children:a.children},s),y=Ca(y,s,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,za(e,t.child,null,n),a=e.child,a.memoizedState=fr(n),a.childLanes=hr(t,f,n),e.memoizedState=cr,e=Tl(null,a));else if(Pn(e),Jr(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var w=f.dgst;f=w,a=Error(o(419)),a.stack="",a.digest=f,cl({value:a,source:null,stack:null}),e=mr(t,e,n)}else if(Wt||ri(t,e,n,!1),f=(n&t.childLanes)!==0,Wt||f){if(f=Nt,f!==null&&(a=Wi(f,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,Ea(t,a),Ee(f,t,a),or;kr(y)||eu(),e=mr(t,e,n)}else kr(y)?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,Rt=Ke(y.nextSibling),ue=e,vt=!0,Kn=null,Ge=!1,t!==null&&Ah(e,t),e=dr(e,a.children),e.flags|=4096);return e}return s?(Wn(),y=a.fallback,s=e.mode,S=t.child,w=S.sibling,a=An(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,w!==null?y=An(w,y):(y=Ca(y,s,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,Tl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=fr(n):(s=y.cachePool,s!==null?(S=Ft._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Nh(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=hr(t,f,n),e.memoizedState=cr,Tl(t.child,a)):(Pn(e),n=t.child,t=n.sibling,n=An(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 dr(t,e){return e=Zs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Zs(t,e){return t=Me(22,t,null,e),t.lanes=0,t}function mr(t,e,n){return za(e,t.child,null,n),t=dr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),No(t.return,e,n)}function pr(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 Xd(t,e,n){var a=e.pendingProps,s=a.revealOrder,r=a.tail;a=a.children;var f=kt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,Q(kt,f),re(t,e,a,n),a=vt?rl:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gd(t,n,e);else if(t.tag===19)Gd(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&&Vs(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),pr(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&&Vs(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}pr(e,!0,n,null,r,a);break;case"together":pr(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Nn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ta|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ri(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=An(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=An(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function yr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ms(t)))}function Zv(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),Zn(e,Ft,t.memoizedState.cache),Ma();break;case 27:case 5:pe(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:Zn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,qo(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Pn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?qd(t,e,n):(Pn(e),t=Nn(t,e,n),t!==null?t.sibling:null);Pn(e);break;case 19:var s=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(ri(t,e,n,!1),a=(n&e.childLanes)!==0),s){if(a)return Xd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(kt,kt.current),a)break;return null;case 22:return e.lanes=0,_d(t,e,n,e.pendingProps);case 24:Zn(e,Ft,t.memoizedState.cache)}return Nn(t,e,n)}function Kd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Wt=!0;else{if(!yr(t,n)&&(e.flags&128)===0)return Wt=!1,Zv(t,e,n);Wt=(t.flags&131072)!==0}else Wt=!1,vt&&(e.flags&1048576)!==0&&Th(e,rl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Oa(e.elementType),e.type=t,typeof t=="function")So(t)?(a=Va(t,a),e.tag=1,e=Hd(null,e,t,a,n)):(e.tag=0,e=rr(null,e,t,a,n));else{if(t!=null){var s=t.$$typeof;if(s===J){e.tag=11,e=zd(null,e,t,a,n);break t}else if(s===I){e.tag=14,e=Rd(null,e,t,a,n);break t}}throw e=le(t)||t,Error(o(306,e,""))}}return e;case 0:return rr(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,s=Va(a,e.pendingProps),Hd(t,e,a,s,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var r=e.memoizedState;s=r.element,Uo(t,e),gl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Zn(e,Ft,a),a!==r.cache&&Oo(e,[Ft],n,!0),yl(),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=Yd(t,e,a,n);break t}else if(a!==s){s=He(Error(o(424)),e),cl(s),e=Yd(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,Rt=Ke(t.firstChild),ue=e,vt=!0,Kn=null,Ge=!0,n=_h(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ma(),a===s){e=Nn(t,e,n);break t}re(t,e,a,n)}e=e.child}return e;case 26:return Qs(t,e),t===null?(n=ep(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,a=ou(ut.current).createElement(n),a[te]=e,a[Qt]=t,ce(a,n,t),ae(a),e.stateNode=a):e.memoizedState=ep(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pe(e),t===null&&vt&&(a=e.stateNode=$m(e.type,e.pendingProps,ut.current),ue=e,Ge=!0,s=Rt,la(e.type)?(Fr=s,Rt=Ke(a.firstChild)):Rt=s),re(t,e,e.pendingProps.children,n),Qs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((s=a=Rt)&&(a=T1(a,e.type,e.pendingProps,Ge),a!==null?(e.stateNode=a,ue=e,Rt=Ke(a.firstChild),Ge=!1,s=!0):s=!1),s||Qn(e)),pe(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,a=r.children,Kr(s,r)?a=null:f!==null&&Kr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=Xo(t,e,Bv,null,null,n),Bl._currentValue=s),Qs(t,e),re(t,e,a,n),e.child;case 6:return t===null&&vt&&((t=n=Rt)&&(n=A1(n,e.pendingProps,Ge),n!==null?(e.stateNode=n,ue=e,Rt=null,t=!0):t=!1),t||Qn(e)),null;case 13:return qd(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=za(e,null,a,n):re(t,e,a,n),e.child;case 11:return zd(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,Zn(e,e.type,a.value),re(t,e,a.children,n),e.child;case 9:return s=e.type._context,a=e.pendingProps.children,Da(e),s=oe(s),a=a(s),e.flags|=1,re(t,e,a,n),e.child;case 14:return Rd(t,e,e.type,e.pendingProps,n);case 15:return Vd(t,e,e.type,e.pendingProps,n);case 19:return Xd(t,e,n);case 31:return Qv(t,e,n);case 22:return _d(t,e,n,e.pendingProps);case 24:return Da(e),a=oe(Ft),t===null?(s=Ro(),s===null&&(s=Nt,r=jo(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:a,cache:s},_o(e),Zn(e,Ft,s)):((t.lanes&n)!==0&&(Uo(t,e),gl(e,null,null,n),yl()),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),Zn(e,Ft,a)):(a=r.cache,Zn(e,Ft,a),a!==s.cache&&Oo(e,[Ft],n,!0))),re(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function On(t){t.flags|=4}function gr(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(gm())t.flags|=8192;else throw ja=Os,Vo}else t.flags&=-16777217}function Qd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!sp(e))if(gm())t.flags|=8192;else throw ja=Os,Vo}function ks(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ji():536870912,t.lanes|=e,Si|=e)}function Al(t,e){if(!vt)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 Vt(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 kv(t,e,n){var a=e.pendingProps;switch(Co(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Mn(Ft),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(oi(e)?On(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,wo())),Vt(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(On(e),r!==null?(Vt(e),Qd(e,r)):(Vt(e),gr(e,s,null,a,n))):r?r!==t.memoizedState?(On(e),Vt(e),Qd(e,r)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&On(e),Vt(e),gr(e,s,t,a,n)),null;case 27:if(pa(e),n=ut.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&On(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Vt(e),null}t=P.current,oi(e)?Eh(e):(t=$m(s,a,n),e.stateNode=t,On(e))}return Vt(e),null;case 5:if(pa(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&On(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Vt(e),null}if(r=P.current,oi(e))Eh(e);else{var f=ou(ut.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[te]=e,r[Qt]=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&&On(e)}}return Vt(e),gr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&On(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ut.current,oi(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,s=ue,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}t[te]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||qm(t.nodeValue,n)),t||Qn(e,!0)}else t=ou(t).createTextNode(a),t[te]=e,e.stateNode=t}return Vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=oi(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[te]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else n=wo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Vt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=oi(e),a!==null&&a.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[te]=e}else Ma(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),s=!1}else s=wo(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(De(e),e):(De(e),null)}return De(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),ks(e,e.updateQueue),Vt(e),null);case 4:return Dt(),t===null&&Hr(e.stateNode.containerInfo),Vt(e),null;case 10:return Mn(e.type),Vt(e),null;case 19:if(B(kt),a=e.memoizedState,a===null)return Vt(e),null;if(s=(e.flags&128)!==0,r=a.rendering,r===null)if(s)Al(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Vs(t),r!==null){for(e.flags|=128,Al(a,!1),t=r.updateQueue,e.updateQueue=t,ks(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)xh(n,t),n=n.sibling;return Q(kt,kt.current&1|2),vt&&En(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Ht()>$s&&(e.flags|=128,s=!0,Al(a,!1),e.lanes=4194304)}else{if(!s)if(t=Vs(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,ks(e,t),Al(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!vt)return Vt(e),null}else 2*Ht()-a.renderingStartTime>$s&&n!==536870912&&(e.flags|=128,s=!0,Al(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=Ht(),t.sibling=null,n=kt.current,Q(kt,s?n&1|2:n&1),vt&&En(e,a.treeForkCount),t):(Vt(e),null);case 22:case 23:return De(e),Yo(),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&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),n=e.updateQueue,n!==null&&ks(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&&B(Na),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Mn(Ft),Vt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Jv(t,e){switch(Co(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Mn(Ft),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return pa(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(o(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(kt),null;case 4:return Dt(),null;case 10:return Mn(e.type),null;case 22:case 23:return De(e),Yo(),t!==null&&B(Na),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Mn(Ft),null;case 25:return null;default:return null}}function Zd(t,e){switch(Co(e),e.tag){case 3:Mn(Ft),Dt();break;case 26:case 27:case 5:pa(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:B(kt);break;case 10:Mn(e.type);break;case 22:case 23:De(e),Yo(),t!==null&&B(Na);break;case 24:Mn(Ft)}}function El(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){Et(e,e.return,y)}}function $n(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,w=y;try{w()}catch(R){Et(s,S,R)}}}a=a.next}while(a!==r)}}catch(R){Et(e,e.return,R)}}function kd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Bh(e,n)}catch(a){Et(t,t.return,a)}}}function Jd(t,e,n){n.props=Va(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Et(t,e,a)}}function Cl(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){Et(t,e,s)}}function fn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Et(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){Et(t,e,s)}else n.current=null}function Fd(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){Et(t,t.return,s)}}function vr(t,e,n){try{var a=t.stateNode;y1(a,t.type,n,e),a[Qt]=e}catch(s){Et(t,t.return,s)}}function Pd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&la(t.type)||t.tag===4}function xr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Pd(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&&la(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 br(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=Sn));else if(a!==4&&(a===27&&la(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(br(t,e,n),t=t.sibling;t!==null;)br(t,e,n),t=t.sibling}function Js(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&&la(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Js(t,e,n),t=t.sibling;t!==null;)Js(t,e,n),t=t.sibling}function Wd(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[te]=t,e[Qt]=n}catch(r){Et(t,t.return,r)}}var jn=!1,$t=!1,Sr=!1,$d=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Fv(t,e){if(t=t.containerInfo,Gr=pu,t=ch(t),mo(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,w=0,R=0,L=t,D=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;)D=L,L=O;for(;;){if(L===t)break e;if(D===n&&++w===s&&(y=f),D===r&&++R===a&&(S=f),(O=L.nextSibling)!==null)break;L=D,D=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(Xr={focusedElem:t,selectionRange:n},pu=!1,ie=e;ie!==null;)if(e=ie,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ie=t;else for(;ie!==null;){switch(e=ie,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 W=Va(n.type,s);t=a.getSnapshotBeforeUpdate(W,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Et(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Zr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Zr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,ie=t;break}ie=e.return}}function Id(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Rn(t,n),a&4&&El(5,n);break;case 1:if(Rn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Et(n,n.return,f)}else{var s=Va(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Et(n,n.return,f)}}a&64&&kd(n),a&512&&Cl(n,n.return);break;case 3:if(Rn(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{Bh(t,e)}catch(f){Et(n,n.return,f)}}break;case 27:e===null&&a&4&&Wd(n);case 26:case 5:Rn(t,n),e===null&&a&4&&Fd(n),a&512&&Cl(n,n.return);break;case 12:Rn(t,n);break;case 31:Rn(t,n),a&4&&nm(t,n);break;case 13:Rn(t,n),a&4&&am(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=i1.bind(null,n),E1(t,n))));break;case 22:if(a=n.memoizedState!==null||jn,!a){e=e!==null&&e.memoizedState!==null||$t,s=jn;var r=$t;jn=a,($t=e)&&!r?Vn(t,n,(n.subtreeFlags&8772)!==0):Rn(t,n),jn=s,$t=r}break;case 30:break;default:Rn(t,n)}}function tm(t){var e=t.alternate;e!==null&&(t.alternate=null,tm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&We(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,be=!1;function zn(t,e,n){for(n=n.child;n!==null;)em(t,e,n),n=n.sibling}function em(t,e,n){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(Yn,n)}catch{}switch(n.tag){case 26:$t||fn(n,e),zn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$t||fn(n,e);var a=Ut,s=be;la(n.type)&&(Ut=n.stateNode,be=!1),zn(t,e,n),Vl(n.stateNode),Ut=a,be=s;break;case 5:$t||fn(n,e);case 6:if(a=Ut,s=be,Ut=null,zn(t,e,n),Ut=a,be=s,Ut!==null)if(be)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(r){Et(n,e,r)}else try{Ut.removeChild(n.stateNode)}catch(r){Et(n,e,r)}break;case 18:Ut!==null&&(be?(t=Ut,km(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Ni(t)):km(Ut,n.stateNode));break;case 4:a=Ut,s=be,Ut=n.stateNode.containerInfo,be=!0,zn(t,e,n),Ut=a,be=s;break;case 0:case 11:case 14:case 15:$n(2,n,e),$t||$n(4,n,e),zn(t,e,n);break;case 1:$t||(fn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Jd(n,e,a)),zn(t,e,n);break;case 21:zn(t,e,n);break;case 22:$t=(a=$t)||n.memoizedState!==null,zn(t,e,n),$t=a;break;default:zn(t,e,n)}}function nm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ni(t)}catch(n){Et(e,e.return,n)}}}function am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ni(t)}catch(n){Et(e,e.return,n)}}function Pv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new $d),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new $d),e;default:throw Error(o(435,t.tag))}}function Fs(t,e){var n=Pv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var s=l1.bind(null,t,a);a.then(s,s)}})}function Se(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(la(y.type)){Ut=y.stateNode,be=!1;break t}break;case 5:Ut=y.stateNode,be=!1;break t;case 3:case 4:Ut=y.stateNode.containerInfo,be=!0;break t}y=y.return}if(Ut===null)throw Error(o(160));em(r,f,s),Ut=null,be=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)im(e,t),e=e.sibling}var Ie=null;function im(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),Te(t),a&4&&($n(3,t,t.return),El(3,t),$n(5,t,t.return));break;case 1:Se(e,t),Te(t),a&512&&($t||n===null||fn(n,n.return)),a&64&&jn&&(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=Ie;if(Se(e,t),Te(t),a&512&&($t||n===null||fn(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[te]||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[te]=t,ae(r),a=r;break t;case"link":var f=ip("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=ip("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(o(468,a))}r[te]=t,ae(r),a=r}t.stateNode=a}else lp(s,t.type,t.stateNode);else t.stateNode=ap(s,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?lp(s,t.type,t.stateNode):ap(s,a,t.memoizedProps)):a===null&&t.stateNode!==null&&vr(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),Te(t),a&512&&($t||n===null||fn(n,n.return)),n!==null&&a&4&&vr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),Te(t),a&512&&($t||n===null||fn(n,n.return)),t.flags&32){s=t.stateNode;try{$a(s,"")}catch(W){Et(t,t.return,W)}}a&4&&t.stateNode!=null&&(s=t.memoizedProps,vr(t,s,n!==null?n.memoizedProps:s)),a&1024&&(Sr=!0);break;case 6:if(Se(e,t),Te(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(W){Et(t,t.return,W)}}break;case 3:if(fu=null,s=Ie,Ie=ru(e.containerInfo),Se(e,t),Ie=s,Te(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ni(e.containerInfo)}catch(W){Et(t,t.return,W)}Sr&&(Sr=!1,lm(t));break;case 4:a=Ie,Ie=ru(t.stateNode.containerInfo),Se(e,t),Te(t),Ie=a;break;case 12:Se(e,t),Te(t);break;case 31:Se(e,t),Te(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Fs(t,a)));break;case 13:Se(e,t),Te(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ws=Ht()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Fs(t,a)));break;case 22:s=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,w=jn,R=$t;if(jn=w||s,$t=R||S,Se(e,t),$t=R,jn=w,Te(t),a&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||S||jn||$t||_a(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,D=L!=null&&L.hasOwnProperty("display")?L.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(W){Et(S,S.return,W)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(W){Et(S,S.return,W)}}}else if(e.tag===18){if(n===null){S=e;try{var O=S.stateNode;s?Jm(O,!0):Jm(S.stateNode,!1)}catch(W){Et(S,S.return,W)}}}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,Fs(t,n))));break;case 19:Se(e,t),Te(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Fs(t,a)));break;case 30:break;case 21:break;default:Se(e,t),Te(t)}}function Te(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Pd(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=xr(t);Js(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&($a(f,""),n.flags&=-33);var y=xr(t);Js(t,y,f);break;case 3:case 4:var S=n.stateNode.containerInfo,w=xr(t);br(t,w,S);break;default:throw Error(o(161))}}catch(R){Et(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function lm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;lm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Rn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Id(t,e.alternate,e),e=e.sibling}function _a(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:$n(4,e,e.return),_a(e);break;case 1:fn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Jd(e,e.return,n),_a(e);break;case 27:Vl(e.stateNode);case 26:case 5:fn(e,e.return),_a(e);break;case 22:e.memoizedState===null&&_a(e);break;case 30:_a(e);break;default:_a(e)}t=t.sibling}}function Vn(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:Vn(s,r,n),El(4,r);break;case 1:if(Vn(s,r,n),a=r,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(w){Et(a,a.return,w)}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++)Uh(S[s],y)}catch(w){Et(a,a.return,w)}}n&&f&64&&kd(r),Cl(r,r.return);break;case 27:Wd(r);case 26:case 5:Vn(s,r,n),n&&a===null&&f&4&&Fd(r),Cl(r,r.return);break;case 12:Vn(s,r,n);break;case 31:Vn(s,r,n),n&&f&4&&nm(s,r);break;case 13:Vn(s,r,n),n&&f&4&&am(s,r);break;case 22:r.memoizedState===null&&Vn(s,r,n),Cl(r,r.return);break;case 30:break;default:Vn(s,r,n)}e=e.sibling}}function Tr(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&&fl(n))}function Ar(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&fl(t))}function tn(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sm(t,e,n,a),e=e.sibling}function sm(t,e,n,a){var s=e.flags;switch(e.tag){case 0:case 11:case 15:tn(t,e,n,a),s&2048&&El(9,e);break;case 1:tn(t,e,n,a);break;case 3:tn(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&&fl(t)));break;case 12:if(s&2048){tn(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){Et(e,e.return,S)}}else tn(t,e,n,a);break;case 31:tn(t,e,n,a);break;case 13:tn(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?tn(t,e,n,a):Ml(t,e):r._visibility&2?tn(t,e,n,a):(r._visibility|=2,vi(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Tr(f,e);break;case 24:tn(t,e,n,a),s&2048&&Ar(e.alternate,e);break;default:tn(t,e,n,a)}}function vi(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,w=f.flags;switch(f.tag){case 0:case 11:case 15:vi(r,f,y,S,s),El(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?vi(r,f,y,S,s):Ml(r,f):(R._visibility|=2,vi(r,f,y,S,s)),s&&w&2048&&Tr(f.alternate,f);break;case 24:vi(r,f,y,S,s),s&&w&2048&&Ar(f.alternate,f);break;default:vi(r,f,y,S,s)}e=e.sibling}}function Ml(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:Ml(n,a),s&2048&&Tr(a.alternate,a);break;case 24:Ml(n,a),s&2048&&Ar(a.alternate,a);break;default:Ml(n,a)}e=e.sibling}}var wl=8192;function xi(t,e,n){if(t.subtreeFlags&wl)for(t=t.child;t!==null;)um(t,e,n),t=t.sibling}function um(t,e,n){switch(t.tag){case 26:xi(t,e,n),t.flags&wl&&t.memoizedState!==null&&U1(n,Ie,t.memoizedState,t.memoizedProps);break;case 5:xi(t,e,n);break;case 3:case 4:var a=Ie;Ie=ru(t.stateNode.containerInfo),xi(t,e,n),Ie=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=wl,wl=16777216,xi(t,e,n),wl=a):xi(t,e,n));break;default:xi(t,e,n)}}function om(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 Dl(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];ie=a,cm(a,t)}om(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rm(t),t=t.sibling}function rm(t){switch(t.tag){case 0:case 11:case 15:Dl(t),t.flags&2048&&$n(9,t,t.return);break;case 3:Dl(t);break;case 12:Dl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ps(t)):Dl(t);break;default:Dl(t)}}function Ps(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];ie=a,cm(a,t)}om(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:$n(8,e,e.return),Ps(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ps(e));break;default:Ps(e)}t=t.sibling}}function cm(t,e){for(;ie!==null;){var n=ie;switch(n.tag){case 0:case 11:case 15:$n(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ie=a;else t:for(n=t;ie!==null;){a=ie;var s=a.sibling,r=a.return;if(tm(a),a===n){ie=null;break t}if(s!==null){s.return=r,ie=s;break t}ie=r}}}var Wv={getCacheForType:function(t){var e=oe(Ft),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return oe(Ft).controller.signal}},$v=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Nt=null,mt=null,yt=0,At=0,Ne=null,In=!1,bi=!1,Er=!1,_n=0,Gt=0,ta=0,Ua=0,Cr=0,Oe=0,Si=0,Nl=null,Ae=null,Mr=!1,Ws=0,fm=0,$s=1/0,Is=null,ea=null,ee=0,na=null,Ti=null,Un=0,wr=0,Dr=null,hm=null,Ol=0,Nr=null;function je(){return(Tt&2)!==0&&yt!==0?yt&-yt:j.T!==null?_r():un()}function dm(){if(Oe===0)if((yt&536870912)===0||vt){var t=Ve;Ve<<=1,(Ve&3932160)===0&&(Ve=262144),Oe=t}else Oe=536870912;return t=we.current,t!==null&&(t.flags|=32),Oe}function Ee(t,e,n){(t===Nt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Ai(t,0),aa(t,yt,Oe,!1)),va(t,n),((Tt&2)===0||t!==Nt)&&(t===Nt&&((Tt&2)===0&&(Ua|=n),Gt===4&&aa(t,yt,Oe,!1)),hn(t))}function mm(t,e,n){if((Tt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ga(t,e),s=a?e1(t,e):jr(t,e,!0),r=a;do{if(s===0){bi&&!a&&aa(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Iv(n)){s=jr(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=Nl;var S=y.current.memoizedState.isDehydrated;if(S&&(Ai(y,f).flags|=256),f=jr(y,f,!1),f!==2){if(Er&&!S){y.errorRecoveryDisabledLanes|=r,Ua|=r,s=4;break t}r=Ae,Ae=s,r!==null&&(Ae===null?Ae=r:Ae.push.apply(Ae,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Ai(t,0),aa(t,e,0,!0);break}t:{switch(a=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:aa(a,e,Oe,!In);break t;case 2:Ae=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=Ws+300-Ht(),10<s)){if(aa(a,e,Oe,!In),ka(a,0,!0)!==0)break t;Un=e,a.timeoutHandle=Qm(pm.bind(null,a,n,Ae,Is,Mr,e,Oe,Ua,Si,In,r,"Throttled",-0,0),s);break t}pm(a,n,Ae,Is,Mr,e,Oe,Ua,Si,In,r,null,-0,0)}}break}while(!0);hn(t)}function pm(t,e,n,a,s,r,f,y,S,w,R,L,D,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:Sn},um(e,r,L);var W=(r&62914560)===r?Ws-Ht():(r&4194048)===r?fm-Ht():0;if(W=B1(L,W),W!==null){Un=r,t.cancelPendingCommit=W(Am.bind(null,t,e,r,n,a,s,f,y,S,R,L,null,D,O)),aa(t,r,f,!w);return}}Am(t,e,r,n,a,s,f,y,S)}function Iv(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(!Ce(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 aa(t,e,n,a){e&=~Cr,e&=~Ua,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var s=e;0<s;){var r=31-Yt(s),f=1<<r;a[r]=-1,s&=~f}n!==0&&os(t,n,e)}function tu(){return(Tt&6)===0?(jl(0),!1):!0}function Or(){if(mt!==null){if(At===0)var t=mt.return;else t=mt,Cn=wa=null,Zo(t),di=null,dl=0,t=mt;for(;t!==null;)Zd(t.alternate,t),t=t.return;mt=null}}function Ai(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,x1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Un=0,Or(),Nt=t,mt=n=An(t.current,null),yt=e,At=0,Ne=null,In=!1,bi=ga(t,e),Er=!1,Si=Oe=Cr=Ua=ta=Gt=0,Ae=Nl=null,Mr=!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-Yt(a),r=1<<s;e|=t[s],a&=~r}return _n=e,Ss(),n}function ym(t,e){rt=null,j.H=Sl,e===hi||e===Ns?(e=zh(),At=3):e===Vo?(e=zh(),At=4):At=e===or?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ne=e,mt===null&&(Gt=1,Xs(t,He(e,t.current)))}function gm(){var t=we.current;return t===null?!0:(yt&4194048)===yt?Xe===null:(yt&62914560)===yt||(yt&536870912)!==0?t===Xe:!1}function vm(){var t=j.H;return j.H=Sl,t===null?Sl:t}function xm(){var t=j.A;return j.A=Wv,t}function eu(){Gt=4,In||(yt&4194048)!==yt&&we.current!==null||(bi=!0),(ta&134217727)===0&&(Ua&134217727)===0||Nt===null||aa(Nt,yt,Oe,!1)}function jr(t,e,n){var a=Tt;Tt|=2;var s=vm(),r=xm();(Nt!==t||yt!==e)&&(Is=null,Ai(t,e)),e=!1;var f=Gt;t:do try{if(At!==0&&mt!==null){var y=mt,S=Ne;switch(At){case 8:Or(),f=6;break t;case 3:case 2:case 9:case 6:we.current===null&&(e=!0);var w=At;if(At=0,Ne=null,Ei(t,y,S,w),n&&bi){f=0;break t}break;default:w=At,At=0,Ne=null,Ei(t,y,S,w)}}t1(),f=Gt;break}catch(R){ym(t,R)}while(!0);return e&&t.shellSuspendCounter++,Cn=wa=null,Tt=a,j.H=s,j.A=r,mt===null&&(Nt=null,yt=0,Ss()),f}function t1(){for(;mt!==null;)bm(mt)}function e1(t,e){var n=Tt;Tt|=2;var a=vm(),s=xm();Nt!==t||yt!==e?(Is=null,$s=Ht()+500,Ai(t,e)):bi=ga(t,e);t:do try{if(At!==0&&mt!==null){e=mt;var r=Ne;e:switch(At){case 1:At=0,Ne=null,Ei(t,e,r,1);break;case 2:case 9:if(Oh(r)){At=0,Ne=null,Sm(e);break}e=function(){At!==2&&At!==9||Nt!==t||(At=7),hn(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Oh(r)?(At=0,Ne=null,Sm(e)):(At=0,Ne=null,Ei(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?sp(f):y.stateNode.complete){At=0,Ne=null;var S=y.sibling;if(S!==null)mt=S;else{var w=y.return;w!==null?(mt=w,nu(w)):mt=null}break e}}At=0,Ne=null,Ei(t,e,r,5);break;case 6:At=0,Ne=null,Ei(t,e,r,6);break;case 8:Or(),Gt=6;break t;default:throw Error(o(462))}}n1();break}catch(R){ym(t,R)}while(!0);return Cn=wa=null,j.H=a,j.A=s,Tt=n,mt!==null?0:(Nt=null,yt=0,Ss(),Gt)}function n1(){for(;mt!==null&&!Zu();)bm(mt)}function bm(t){var e=Kd(t.alternate,t,_n);t.memoizedProps=t.pendingProps,e===null?nu(t):mt=e}function Sm(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ld(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Ld(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:Zo(e);default:Zd(n,e),e=mt=xh(e,_n),e=Kd(n,e,_n)}t.memoizedProps=t.pendingProps,e===null?nu(t):mt=e}function Ei(t,e,n,a){Cn=wa=null,Zo(e),di=null,dl=0;var s=e.return;try{if(Kv(t,s,e,n,yt)){Gt=1,Xs(t,He(n,t.current)),mt=null;return}}catch(r){if(s!==null)throw mt=s,r;Gt=1,Xs(t,He(n,t.current)),mt=null;return}e.flags&32768?(vt||a===1?t=!0:bi||(yt&536870912)!==0?t=!1:(In=t=!0,(a===2||a===9||a===3||a===6)&&(a=we.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tm(e,t)):nu(e)}function nu(t){var e=t;do{if((e.flags&32768)!==0){Tm(e,In);return}t=e.return;var n=kv(e.alternate,e,_n);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 Tm(t,e){do{var n=Jv(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 Am(t,e,n,a,s,r,f,y,S){t.cancelPendingCommit=null;do au();while(ee!==0);if((Tt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=xo,Pu(t,n,r,f,y,S),t===Nt&&(mt=Nt=null,yt=0),Ti=e,na=t,Un=n,wr=r,Dr=s,hm=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,s1(Hn,function(){return Dm(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,s=Y.p,Y.p=2,f=Tt,Tt|=4;try{Fv(t,e,n)}finally{Tt=f,Y.p=s,j.T=a}}ee=1,Em(),Cm(),Mm()}}function Em(){if(ee===1){ee=0;var t=na,e=Ti,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=Y.p;Y.p=2;var s=Tt;Tt|=4;try{im(e,t);var r=Xr,f=ch(t.containerInfo),y=r.focusedElem,S=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&rh(y.ownerDocument.documentElement,y)){if(S!==null&&mo(y)){var w=S.start,R=S.end;if(R===void 0&&(R=w),"selectionStart"in y)y.selectionStart=w,y.selectionEnd=Math.min(R,y.value.length);else{var L=y.ownerDocument||document,D=L&&L.defaultView||window;if(D.getSelection){var O=D.getSelection(),W=y.textContent.length,it=Math.min(S.start,W),wt=S.end===void 0?it:Math.min(S.end,W);!O.extend&&it>wt&&(f=wt,wt=it,it=f);var C=oh(y,it),E=oh(y,wt);if(C&&E&&(O.rangeCount!==1||O.anchorNode!==C.node||O.anchorOffset!==C.offset||O.focusNode!==E.node||O.focusOffset!==E.offset)){var M=L.createRange();M.setStart(C.node,C.offset),O.removeAllRanges(),it>wt?(O.addRange(M),O.extend(E.node,E.offset)):(M.setEnd(E.node,E.offset),O.addRange(M))}}}}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 V=L[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}pu=!!Gr,Xr=Gr=null}finally{Tt=s,Y.p=a,j.T=n}}t.current=e,ee=2}}function Cm(){if(ee===2){ee=0;var t=na,e=Ti,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=Y.p;Y.p=2;var s=Tt;Tt|=4;try{Id(t,e.alternate,e)}finally{Tt=s,Y.p=a,j.T=n}}ee=3}}function Mm(){if(ee===4||ee===3){ee=0,is();var t=na,e=Ti,n=Un,a=hm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ee=5:(ee=0,Ti=na=null,wm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(ea=null),xn(n),e=e.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(Yn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=j.T,s=Y.p,Y.p=2,j.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{j.T=e,Y.p=s}}(Un&3)!==0&&au(),hn(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Nr?Ol++:(Ol=0,Nr=t):Ol=0,jl(0)}}function wm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,fl(e)))}function au(){return Em(),Cm(),Mm(),Dm()}function Dm(){if(ee!==5)return!1;var t=na,e=wr;wr=0;var n=xn(Un),a=j.T,s=Y.p;try{Y.p=32>n?32:n,j.T=null,n=Dr,Dr=null;var r=na,f=Un;if(ee=0,Ti=na=null,Un=0,(Tt&6)!==0)throw Error(o(331));var y=Tt;if(Tt|=4,rm(r.current),sm(r,r.current,f,n),Tt=y,jl(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(Yn,r)}catch{}return!0}finally{Y.p=s,j.T=a,wm(t,e)}}function Nm(t,e,n){e=He(n,e),e=ur(t.stateNode,e,2),t=Fn(t,e,2),t!==null&&(va(t,2),hn(t))}function Et(t,e,n){if(t.tag===3)Nm(t,t,n);else for(;e!==null;){if(e.tag===3){Nm(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ea===null||!ea.has(a))){t=He(n,t),n=Od(2),a=Fn(e,n,2),a!==null&&(jd(n,a,e,t),va(a,2),hn(a));break}}e=e.return}}function zr(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new $v;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)||(Er=!0,s.add(n),t=a1.bind(null,t,e,n),e.then(t,t))}function a1(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Nt===t&&(yt&n)===n&&(Gt===4||Gt===3&&(yt&62914560)===yt&&300>Ht()-Ws?(Tt&2)===0&&Ai(t,0):Cr|=n,Si===yt&&(Si=0)),hn(t)}function Om(t,e){e===0&&(e=Ji()),t=Ea(t,e),t!==null&&(va(t,e),hn(t))}function i1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Om(t,n)}function l1(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(o(314))}a!==null&&a.delete(e),Om(t,n)}function s1(t,e){return ya(t,e)}var iu=null,Ci=null,Rr=!1,lu=!1,Vr=!1,ia=0;function hn(t){t!==Ci&&t.next===null&&(Ci===null?iu=Ci=t:Ci=Ci.next=t),lu=!0,Rr||(Rr=!0,o1())}function jl(t,e){if(!Vr&&lu){Vr=!0;do for(var n=!1,a=iu;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-Yt(42|t)+1)-1,r&=s&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Vm(a,r))}else r=yt,r=ka(a,a===Nt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||ga(a,r)||(n=!0,Vm(a,r));a=a.next}while(n);Vr=!1}}function u1(){jm()}function jm(){lu=Rr=!1;var t=0;ia!==0&&v1()&&(t=ia);for(var e=Ht(),n=null,a=iu;a!==null;){var s=a.next,r=zm(a,e);r===0?(a.next=null,n===null?iu=s:n.next=s,s===null&&(Ci=n)):(n=a,(t!==0||(r&3)!==0)&&(lu=!0)),a=s}ee!==0&&ee!==5||jl(t),ia!==0&&(ia=0)}function zm(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-Yt(r),y=1<<f,S=s[f];S===-1?((y&n)===0||(y&a)!==0)&&(s[f]=Fu(y,e)):S<=e&&(t.expiredLanes|=y),r&=~y}if(e=Nt,n=yt,n=ka(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Qi(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ga(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Qi(a),xn(n)){case 2:case 8:n=ls;break;case 32:n=Hn;break;case 268435456:n=ki;break;default:n=Hn}return a=Rm.bind(null,t),n=ya(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Qi(a),t.callbackPriority=2,t.callbackNode=null,2}function Rm(t,e){if(ee!==0&&ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(au()&&t.callbackNode!==n)return null;var a=yt;return a=ka(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(mm(t,a,e),zm(t,Ht()),t.callbackNode!=null&&t.callbackNode===n?Rm.bind(null,t):null)}function Vm(t,e){if(au())return null;mm(t,e,!0)}function o1(){b1(function(){(Tt&6)!==0?ya(Zi,u1):jm()})}function _r(){if(ia===0){var t=ci;t===0&&(t=qn,qn<<=1,(qn&261888)===0&&(qn=256)),ia=t}return ia}function _m(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ds(""+t)}function Um(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 r1(t,e,n,a,s){if(e==="submit"&&n&&n.stateNode===s){var r=_m((s[Qt]||null).action),f=a.submitter;f&&(e=(e=f[Qt]||null)?_m(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var y=new gs("action","action",null,a,s);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ia!==0){var S=f?Um(s,f):new FormData(s);er(n,{pending:!0,data:S,method:s.method,action:r},null,S)}}else typeof r=="function"&&(y.preventDefault(),S=f?Um(s,f):new FormData(s),er(n,{pending:!0,data:S,method:s.method,action:r},r,S))},currentTarget:s}]})}}for(var Ur=0;Ur<vo.length;Ur++){var Br=vo[Ur],c1=Br.toLowerCase(),f1=Br[0].toUpperCase()+Br.slice(1);$e(c1,"on"+f1)}$e(dh,"onAnimationEnd"),$e(mh,"onAnimationIteration"),$e(ph,"onAnimationStart"),$e("dblclick","onDoubleClick"),$e("focusin","onFocus"),$e("focusout","onBlur"),$e(wv,"onTransitionRun"),$e(Dv,"onTransitionStart"),$e(Nv,"onTransitionCancel"),$e(yh,"onTransitionEnd"),Pa("onMouseEnter",["mouseout","mouseover"]),Pa("onMouseLeave",["mouseout","mouseover"]),Pa("onPointerEnter",["pointerout","pointerover"]),Pa("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zl="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zl));function Bm(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,w=y.currentTarget;if(y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=w;try{r(s)}catch(R){bs(R)}s.currentTarget=null,r=S}else for(f=0;f<a.length;f++){if(y=a[f],S=y.instance,w=y.currentTarget,y=y.listener,S!==r&&s.isPropagationStopped())break t;r=y,s.currentTarget=w;try{r(s)}catch(R){bs(R)}s.currentTarget=null,r=S}}}}function pt(t,e){var n=e[U];n===void 0&&(n=e[U]=new Set);var a=t+"__bubble";n.has(a)||(Lm(e,t,2,!1),n.add(a))}function Lr(t,e,n){var a=0;e&&(a|=4),Lm(n,t,a,e)}var su="_reactListening"+Math.random().toString(36).slice(2);function Hr(t){if(!t[su]){t[su]=!0,jf.forEach(function(n){n!=="selectionchange"&&(h1.has(n)||Lr(n,!1,t),Lr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[su]||(e[su]=!0,Lr("selectionchange",!1,e))}}function Lm(t,e,n,a){switch(dp(e)){case 2:var s=Y1;break;case 8:s=q1;break;default:s=tc}n=s.bind(null,e,n,t),s=void 0,!io||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 Yr(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=se(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}Xf(function(){var w=r,R=no(n),L=[];t:{var D=gh.get(t);if(D!==void 0){var O=gs,W=t;switch(t){case"keypress":if(ps(n)===0)break t;case"keydown":case"keyup":O=lv;break;case"focusin":W="focus",O=oo;break;case"focusout":W="blur",O=oo;break;case"beforeblur":case"afterblur":O=oo;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=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ov;break;case dh:case mh:case ph:O=Pg;break;case yh:O=cv;break;case"scroll":case"scrollend":O=Qg;break;case"wheel":O=hv;break;case"copy":case"cut":case"paste":O=$g;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Jf;break;case"toggle":case"beforetoggle":O=mv}var it=(e&4)!==0,wt=!it&&(t==="scroll"||t==="scrollend"),C=it?D!==null?D+"Capture":null:D;it=[];for(var E=w,M;E!==null;){var V=E;if(M=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||M===null||C===null||(V=tl(E,C),V!=null&&it.push(Rl(E,V,M))),wt)break;E=E.return}0<it.length&&(D=new O(D,W,null,n,R),L.push({event:D,listeners:it}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",D&&n!==eo&&(W=n.relatedTarget||n.fromElement)&&(se(W)||W[xa]))break t;if((O||D)&&(D=R.window===R?R:(D=R.ownerDocument)?D.defaultView||D.parentWindow:window,O?(W=n.relatedTarget||n.toElement,O=w,W=W?se(W):null,W!==null&&(wt=d(W),it=W.tag,W!==wt||it!==5&&it!==27&&it!==6)&&(W=null)):(O=null,W=w),O!==W)){if(it=Zf,V="onMouseLeave",C="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(it=Jf,V="onPointerLeave",C="onPointerEnter",E="pointer"),wt=O==null?D:Ii(O),M=W==null?D:Ii(W),D=new it(V,E+"leave",O,n,R),D.target=wt,D.relatedTarget=M,V=null,se(R)===w&&(it=new it(C,E+"enter",W,n,R),it.target=M,it.relatedTarget=wt,V=it),wt=V,O&&W)e:{for(it=d1,C=O,E=W,M=0,V=C;V;V=it(V))M++;V=0;for(var at=E;at;at=it(at))V++;for(;0<M-V;)C=it(C),M--;for(;0<V-M;)E=it(E),V--;for(;M--;){if(C===E||E!==null&&C===E.alternate){it=C;break e}C=it(C),E=it(E)}it=null}else it=null;O!==null&&Hm(L,D,O,it,!1),W!==null&&wt!==null&&Hm(L,wt,W,it,!0)}}t:{if(D=w?Ii(w):window,O=D.nodeName&&D.nodeName.toLowerCase(),O==="select"||O==="input"&&D.type==="file")var bt=nh;else if(th(D))if(ah)bt=Ev;else{bt=Tv;var tt=Sv}else O=D.nodeName,!O||O.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?w&&to(w.elementType)&&(bt=nh):bt=Av;if(bt&&(bt=bt(t,w))){eh(L,bt,n,R);break t}tt&&tt(t,D,w),t==="focusout"&&w&&D.type==="number"&&w.memoizedProps.value!=null&&Iu(D,"number",D.value)}switch(tt=w?Ii(w):window,t){case"focusin":(th(tt)||tt.contentEditable==="true")&&(ni=tt,po=w,ol=null);break;case"focusout":ol=po=ni=null;break;case"mousedown":yo=!0;break;case"contextmenu":case"mouseup":case"dragend":yo=!1,fh(L,n,R);break;case"selectionchange":if(Mv)break;case"keydown":case"keyup":fh(L,n,R)}var ft;if(co)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 ei?$f(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(Ff&&n.locale!=="ko"&&(ei||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&ei&&(ft=Kf()):(Gn=R,lo="value"in Gn?Gn.value:Gn.textContent,ei=!0)),tt=uu(w,gt),0<tt.length&&(gt=new kf(gt,t,null,n,R),L.push({event:gt,listeners:tt}),ft?gt.data=ft:(ft=If(n),ft!==null&&(gt.data=ft)))),(ft=yv?gv(t,n):vv(t,n))&&(gt=uu(w,"onBeforeInput"),0<gt.length&&(tt=new kf("onBeforeInput","beforeinput",null,n,R),L.push({event:tt,listeners:gt}),tt.data=ft)),r1(L,t,w,n,R)}Bm(L,e)})}function Rl(t,e,n){return{instance:t,listener:e,currentTarget:n}}function uu(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=tl(t,n),s!=null&&a.unshift(Rl(t,s,r)),s=tl(t,e),s!=null&&a.push(Rl(t,s,r))),t.tag===3)return a;t=t.return}return[]}function d1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hm(t,e,n,a,s){for(var r=e._reactName,f=[];n!==null&&n!==a;){var y=n,S=y.alternate,w=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||w===null||(S=w,s?(w=tl(n,r),w!=null&&f.unshift(Rl(n,w,S))):s||(w=tl(n,r),w!=null&&f.push(Rl(n,w,S)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var m1=/\r\n?/g,p1=/\u0000|\uFFFD/g;function Ym(t){return(typeof t=="string"?t:""+t).replace(m1,`
|
|
9
|
-
`).replace(p1,"")}function qm(t,e){return e=Ym(e),Ym(t)===e}function Mt(t,e,n,a,s,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||$a(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&$a(t,""+a);break;case"className":fs(t,"class",a);break;case"tabIndex":fs(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fs(t,n,a);break;case"style":qf(t,a,r);break;case"data":if(e!=="object"){fs(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=ds(""+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"&&Mt(t,e,"name",s.name,s,null),Mt(t,e,"formEncType",s.formEncType,s,null),Mt(t,e,"formMethod",s.formMethod,s,null),Mt(t,e,"formTarget",s.formTarget,s,null)):(Mt(t,e,"encType",s.encType,s,null),Mt(t,e,"method",s.method,s,null),Mt(t,e,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=ds(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Sn);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(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(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=ds(""+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),cs(t,"popover",a);break;case"xlinkActuate":bn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":cs(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=Xg.get(n)||n,cs(t,n,a))}}function qr(t,e,n,a,s,r){switch(n){case"style":qf(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?$a(t,a):(typeof a=="number"||typeof a=="bigint")&&$a(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=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zf.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[Qt]||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,""):cs(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(o(137,e));default:Mt(t,e,r,f,n,null)}}s&&Mt(t,e,"srcSet",n.srcSet,n,null),a&&Mt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=r=f=s=null,S=null,w=null;for(a in n)if(n.hasOwnProperty(a)){var R=n[a];if(R!=null)switch(a){case"name":s=R;break;case"type":f=R;break;case"checked":S=R;break;case"defaultChecked":w=R;break;case"value":r=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:Mt(t,e,a,R,n,null)}}Bf(t,r,y,S,w,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:Mt(t,e,s,y,n,null)}e=r,n=f,t.multiple=!!a,e!=null?Wa(t,!!a,e,!1):n!=null&&Wa(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(o(91));break;default:Mt(t,e,f,y,n,null)}Hf(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":Mt(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<zl.length;a++)pt(zl[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(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,w,a,n,null)}return;default:if(to(e)){for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!==void 0&&qr(t,e,R,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Mt(t,e,y,a,n,null))}function y1(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,w=null,R=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)||Mt(t,e,O,null,a,L)}}for(var D in a){var O=a[D];if(L=n[D],a.hasOwnProperty(D)&&(O!=null||L!=null))switch(D){case"type":r=O;break;case"name":s=O;break;case"checked":w=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:O!==L&&Mt(t,e,D,O,a,L)}}$u(t,f,y,S,w,R,r,s);return;case"select":O=f=y=D=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)||Mt(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":D=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==S&&Mt(t,e,s,r,a,S)}e=y,n=f,a=O,D!=null?Wa(t,!!n,D,!1):!!a!=!!n&&(e!=null?Wa(t,!!n,e,!0):Wa(t,!!n,n?[]:"",!1));return;case"textarea":O=D=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:Mt(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":D=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&Mt(t,e,f,s,a,r)}Lf(t,D,O);return;case"option":for(var W in n)D=n[W],n.hasOwnProperty(W)&&D!=null&&!a.hasOwnProperty(W)&&(W==="selected"?t.selected=!1:Mt(t,e,W,null,a,D));for(S in a)D=a[S],O=n[S],a.hasOwnProperty(S)&&D!==O&&(D!=null||O!=null)&&(S==="selected"?t.selected=D&&typeof D!="function"&&typeof D!="symbol":Mt(t,e,S,D,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)D=n[it],n.hasOwnProperty(it)&&D!=null&&!a.hasOwnProperty(it)&&Mt(t,e,it,null,a,D);for(w in a)if(D=a[w],O=n[w],a.hasOwnProperty(w)&&D!==O&&(D!=null||O!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:Mt(t,e,w,D,a,O)}return;default:if(to(e)){for(var wt in n)D=n[wt],n.hasOwnProperty(wt)&&D!==void 0&&!a.hasOwnProperty(wt)&&qr(t,e,wt,void 0,a,D);for(R in a)D=a[R],O=n[R],!a.hasOwnProperty(R)||D===O||D===void 0&&O===void 0||qr(t,e,R,D,a,O);return}}for(var C in n)D=n[C],n.hasOwnProperty(C)&&D!=null&&!a.hasOwnProperty(C)&&Mt(t,e,C,null,a,D);for(L in a)D=a[L],O=n[L],!a.hasOwnProperty(L)||D===O||D==null&&O==null||Mt(t,e,L,D,a,O)}function Gm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){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&&Gm(f)){for(f=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],w=S.startTime;if(w>y)break;var R=S.transferSize,L=S.initiatorType;R&&Gm(L)&&(S=S.responseEnd,f+=R*(S<y?1:(y-w)/(S-w)))}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 Gr=null,Xr=null;function ou(t){return t.nodeType===9?t:t.ownerDocument}function Xm(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 Km(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 Kr(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 Qr=null;function v1(){var t=window.event;return t&&t.type==="popstate"?t===Qr?!1:(Qr=t,!0):(Qr=null,!1)}var Qm=typeof setTimeout=="function"?setTimeout:void 0,x1=typeof clearTimeout=="function"?clearTimeout:void 0,Zm=typeof Promise=="function"?Promise:void 0,b1=typeof queueMicrotask=="function"?queueMicrotask:typeof Zm<"u"?function(t){return Zm.resolve(null).then(t).catch(S1)}:Qm;function S1(t){setTimeout(function(){throw t})}function la(t){return t==="head"}function km(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),Ni(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Vl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Vl(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"&&Vl(t.ownerDocument.body);n=s}while(n);Ni(e)}function Jm(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 Zr(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":Zr(n),We(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function T1(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=Ke(t.nextSibling),t===null)break}return null}function A1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ke(t.nextSibling),t===null))return null;return t}function Fm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ke(t.nextSibling),t===null))return null;return t}function kr(t){return t.data==="$?"||t.data==="$~"}function Jr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function E1(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 Ke(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 Fr=null;function Pm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ke(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Wm(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 $m(t,e,n){switch(e=ou(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Vl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);We(t)}var Qe=new Map,Im=new Set;function ru(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Bn=Y.d;Y.d={f:C1,r:M1,D:w1,C:D1,L:N1,m:O1,X:z1,S:j1,M:R1};function C1(){var t=Bn.f(),e=tu();return t||e}function M1(t){var e=Ja(t);e!==null&&e.tag===5&&e.type==="form"?yd(e):Bn.r(t)}var Mi=typeof document>"u"?null:document;function tp(t,e,n){var a=Mi;if(a&&typeof e=="string"&&e){var s=Be(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Im.has(s)||(Im.add(s),t={rel:t,crossOrigin:n,href:e},a.querySelector(s)===null&&(e=a.createElement("link"),ce(e,"link",t),ae(e),a.head.appendChild(e)))}}function w1(t){Bn.D(t),tp("dns-prefetch",t,null)}function D1(t,e){Bn.C(t,e),tp("preconnect",t,e)}function N1(t,e,n){Bn.L(t,e,n);var a=Mi;if(a&&t&&e){var s='link[rel="preload"][as="'+Be(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Be(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Be(n.imageSizes)+'"]')):s+='[href="'+Be(t)+'"]';var r=s;switch(e){case"style":r=wi(t);break;case"script":r=Di(t)}Qe.has(r)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Qe.set(r,t),a.querySelector(s)!==null||e==="style"&&a.querySelector(_l(r))||e==="script"&&a.querySelector(Ul(r))||(e=a.createElement("link"),ce(e,"link",t),ae(e),a.head.appendChild(e)))}}function O1(t,e){Bn.m(t,e);var n=Mi;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Be(a)+'"][href="'+Be(t)+'"]',r=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Di(t)}if(!Qe.has(r)&&(t=x({rel:"modulepreload",href:t},e),Qe.set(r,t),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ul(r)))return}a=n.createElement("link"),ce(a,"link",t),ae(a),n.head.appendChild(a)}}}function j1(t,e,n){Bn.S(t,e,n);var a=Mi;if(a&&t){var s=Fa(a).hoistableStyles,r=wi(t);e=e||"default";var f=s.get(r);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(_l(r)))y.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Qe.get(r))&&Pr(t,n);var S=f=a.createElement("link");ae(S),ce(S,"link",t),S._p=new Promise(function(w,R){S.onload=w,S.onerror=R}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,cu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},s.set(r,f)}}}function z1(t,e){Bn.X(t,e);var n=Mi;if(n&&t){var a=Fa(n).hoistableScripts,s=Di(t),r=a.get(s);r||(r=n.querySelector(Ul(s)),r||(t=x({src:t,async:!0},e),(e=Qe.get(s))&&Wr(t,e),r=n.createElement("script"),ae(r),ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function R1(t,e){Bn.M(t,e);var n=Mi;if(n&&t){var a=Fa(n).hoistableScripts,s=Di(t),r=a.get(s);r||(r=n.querySelector(Ul(s)),r||(t=x({src:t,async:!0,type:"module"},e),(e=Qe.get(s))&&Wr(t,e),r=n.createElement("script"),ae(r),ce(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(s,r))}}function ep(t,e,n,a){var s=(s=ut.current)?ru(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=wi(n.href),n=Fa(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=wi(n.href);var r=Fa(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(_l(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Qe.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},Qe.set(t,n),r||V1(s,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Di(n),n=Fa(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(o(444,t))}}function wi(t){return'href="'+Be(t)+'"'}function _l(t){return'link[rel="stylesheet"]['+t+"]"}function np(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function V1(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),ae(e),t.head.appendChild(e))}function Di(t){return'[src="'+Be(t)+'"]'}function Ul(t){return"script[async]"+t}function ap(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Be(n.href)+'"]');if(a)return e.instance=a,ae(a),a;var s=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ae(a),ce(a,"style",s),cu(a,n.precedence,t),e.instance=a;case"stylesheet":s=wi(n.href);var r=t.querySelector(_l(s));if(r)return e.state.loading|=4,e.instance=r,ae(r),r;a=np(n),(s=Qe.get(s))&&Pr(a,s),r=(t.ownerDocument||t).createElement("link"),ae(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,cu(r,n.precedence,t),e.instance=r;case"script":return r=Di(n.src),(s=t.querySelector(Ul(r)))?(e.instance=s,ae(s),s):(a=n,(s=Qe.get(r))&&(a=x({},n),Wr(a,s)),t=t.ownerDocument||t,s=t.createElement("script"),ae(s),ce(s,"link",a),t.head.appendChild(s),e.instance=s);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,cu(a,n.precedence,t));return e.instance}function cu(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 Pr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Wr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var fu=null;function ip(t,e,n){if(fu===null){var a=new Map,s=fu=new Map;s.set(n,a)}else s=fu,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[te]||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 lp(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _1(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 sp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function U1(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=wi(a.href),r=e.querySelector(_l(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=hu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,ae(r);return}r=e.ownerDocument||e,a=np(a),(s=Qe.get(s))&&Pr(a,s),r=r.createElement("link"),ae(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=hu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var $r=0;function B1(t,e){return t.stylesheets&&t.count===0&&mu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&mu(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&$r===0&&($r=62500*g1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&mu(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>$r?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var du=null;function mu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,du=new Map,e.forEach(L1,t),du=null,hu.call(t))}function L1(t,e){if(!(e.state.loading&4)){var n=du.get(t);if(n)var a=n.get(null);else{n=new Map,du.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=hu.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 Bl={$$typeof:X,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function H1(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=Fi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fi(0),this.hiddenUpdates=Fi(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 up(t,e,n,a,s,r,f,y,S,w,R,L){return t=new H1(t,e,n,f,S,w,R,L,y),e=1,r===!0&&(e|=24),r=Me(3,null,null,e),t.current=r,r.stateNode=t,e=jo(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},_o(r),t}function op(t){return t?(t=li,t):li}function rp(t,e,n,a,s,r){s=op(s),a.context===null?a.context=s:a.pendingContext=s,a=Jn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=Fn(t,a,e),n!==null&&(Ee(n,t,e),pl(n,t,e))}function cp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ir(t,e){cp(t,e),(t=t.alternate)&&cp(t,e)}function fp(t){if(t.tag===13||t.tag===31){var e=Ea(t,67108864);e!==null&&Ee(e,t,67108864),Ir(t,67108864)}}function hp(t){if(t.tag===13||t.tag===31){var e=je();e=$i(e);var n=Ea(t,e);n!==null&&Ee(n,t,e),Ir(t,e)}}var pu=!0;function Y1(t,e,n,a){var s=j.T;j.T=null;var r=Y.p;try{Y.p=2,tc(t,e,n,a)}finally{Y.p=r,j.T=s}}function q1(t,e,n,a){var s=j.T;j.T=null;var r=Y.p;try{Y.p=8,tc(t,e,n,a)}finally{Y.p=r,j.T=s}}function tc(t,e,n,a){if(pu){var s=ec(a);if(s===null)Yr(t,e,a,yu,n),mp(t,a);else if(X1(s,t,e,n,a))a.stopPropagation();else if(mp(t,a),e&4&&-1<G1.indexOf(t)){for(;s!==null;){var r=Ja(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=vn(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var S=1<<31-Yt(f);y.entanglements[1]|=S,f&=~S}hn(r),(Tt&6)===0&&($s=Ht()+500,jl(0))}}break;case 31:case 13:y=Ea(r,2),y!==null&&Ee(y,r,2),tu(),Ir(r,2)}if(r=ec(a),r===null&&Yr(t,e,a,yu,n),r===s)break;s=r}s!==null&&a.stopPropagation()}else Yr(t,e,a,null,n)}}function ec(t){return t=no(t),nc(t)}var yu=null;function nc(t){if(yu=null,t=se(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=m(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 yu=t,null}function dp(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(ku()){case Zi:return 2;case ls:return 8;case Hn:case Ju:return 32;case ki:return 268435456;default:return 32}default:return 32}}var ac=!1,sa=null,ua=null,oa=null,Ll=new Map,Hl=new Map,ra=[],G1="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 mp(t,e){switch(t){case"focusin":case"focusout":sa=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":oa=null;break;case"pointerover":case"pointerout":Ll.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hl.delete(e.pointerId)}}function Yl(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=Ja(e),e!==null&&fp(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function X1(t,e,n,a,s){switch(e){case"focusin":return sa=Yl(sa,t,e,n,a,s),!0;case"dragenter":return ua=Yl(ua,t,e,n,a,s),!0;case"mouseover":return oa=Yl(oa,t,e,n,a,s),!0;case"pointerover":var r=s.pointerId;return Ll.set(r,Yl(Ll.get(r)||null,t,e,n,a,s)),!0;case"gotpointercapture":return r=s.pointerId,Hl.set(r,Yl(Hl.get(r)||null,t,e,n,a,s)),!0}return!1}function pp(t){var e=se(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,rs(t.priority,function(){hp(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,rs(t.priority,function(){hp(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 gu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ec(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);eo=a,n.target.dispatchEvent(a),eo=null}else return e=Ja(n),e!==null&&fp(e),t.blockedOn=n,!1;e.shift()}return!0}function yp(t,e,n){gu(t)&&n.delete(e)}function K1(){ac=!1,sa!==null&&gu(sa)&&(sa=null),ua!==null&&gu(ua)&&(ua=null),oa!==null&&gu(oa)&&(oa=null),Ll.forEach(yp),Hl.forEach(yp)}function vu(t,e){t.blockedOn===e&&(t.blockedOn=null,ac||(ac=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,K1)))}var xu=null;function gp(t){xu!==t&&(xu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){xu===t&&(xu=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(nc(a||n)===null)continue;break}var r=Ja(n);r!==null&&(t.splice(e,3),e-=3,er(r,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Ni(t){function e(S){return vu(S,t)}sa!==null&&vu(sa,t),ua!==null&&vu(ua,t),oa!==null&&vu(oa,t),Ll.forEach(e),Hl.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);)pp(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[Qt]||null;if(typeof r=="function")f||gp(n);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[Qt]||null)y=f.formAction;else if(nc(s)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),gp(n)}}}function vp(){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 ic(t){this._internalRoot=t}bu.prototype.render=ic.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=je();rp(n,a,t,e,null,null)},bu.prototype.unmount=ic.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;rp(t.current,2,null,t,null,null),tu(),e[xa]=null}};function bu(t){this._internalRoot=t}bu.prototype.unstable_scheduleHydration=function(t){if(t){var e=un();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&&pp(t)}};var xp=l.version;if(xp!=="19.2.4")throw Error(o(527,xp,"19.2.4"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var Q1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Su.isDisabled&&Su.supportsFiber)try{Yn=Su.inject(Q1),he=Su}catch{}}return Gl.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,a="",s=Md,r=wd,f=Dd;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=up(t,1,!1,null,null,n,a,null,s,r,f,vp),t[xa]=e.current,Hr(t),new ic(e)},Gl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var a=!1,s="",r=Md,f=wd,y=Dd,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=up(t,1,!0,e,n??null,a,s,S,r,f,y,vp),e.context=op(null),n=e.current,a=je(),a=$i(a),s=Jn(a),s.callback=null,Fn(n,s,a),n=a,e.current.lanes=n,va(e,n),hn(e),t[xa]=e.current,Hr(t),new bu(e)},Gl.version="19.2.4",Gl}var Np;function ex(){if(Np)return uc.exports;Np=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(),uc.exports=tx(),uc.exports}var nx=ex();const TA=Py(nx);const Wy=(...i)=>i.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim();const ax=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ix=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase());const Op=i=>{const l=ix(i);return l.charAt(0).toUpperCase()+l.slice(1)};var lx={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 sx=i=>{for(const l in i)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const ux=_.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...m},g)=>_.createElement("svg",{ref:g,...lx,width:l,height:l,stroke:i,strokeWidth:o?Number(u)*24/Number(l):u,className:Wy("lucide",c),...!d&&!sx(m)&&{"aria-hidden":"true"},...m},[...h.map(([p,v])=>_.createElement(p,v)),...Array.isArray(d)?d:[d]]));const gn=(i,l)=>{const u=_.forwardRef(({className:o,...c},d)=>_.createElement(ux,{ref:d,iconNode:l,className:Wy(`lucide-${ax(Op(i))}`,`lucide-${i}`,o),...c}));return u.displayName=Op(i),u};const ox=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],dn=gn("arrow-right",ox);const rx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oi=gn("check",rx);const cx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fx=gn("chevron-down",cx);const hx=[["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"}]],dx=gn("clipboard-paste",hx);const mx=[["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"}]],jp=gn("external-link",mx);const px=[["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"}]],yx=gn("eye-off",px);const gx=[["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"}]],vx=gn("eye",gx);const xx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ji=gn("loader-circle",xx);const bx=[["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"}]],Sx=gn("mic",bx);const Tx=[["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"}]],Ax=gn("refresh-cw",Tx),Ic=_.createContext({});function tf(i){const l=_.useRef(null);return l.current===null&&(l.current=i()),l.current}const $y=typeof window<"u",Iy=$y?_.useLayoutEffect:_.useEffect,qu=_.createContext(null);function ef(i,l){i.indexOf(l)===-1&&i.push(l)}function Ru(i,l){const u=i.indexOf(l);u>-1&&i.splice(u,1)}const yn=(i,l,u)=>u>l?l:u<i?i:u;let nf=()=>{};const Ln={},t0=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function e0(i){return typeof i=="object"&&i!==null}const n0=i=>/^0[^.\s]+$/u.test(i);function a0(i){let l;return()=>(l===void 0&&(l=i()),l)}const ke=i=>i,Ex=(i,l)=>u=>l(i(u)),ts=(...i)=>i.reduce(Ex),Fl=(i,l,u)=>{const o=l-i;return o===0?1:(u-i)/o};class af{constructor(){this.subscriptions=[]}add(l){return ef(this.subscriptions,l),()=>Ru(this.subscriptions,l)}notify(l,u,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](l,u,o);else for(let d=0;d<c;d++){const h=this.subscriptions[d];h&&h(l,u,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const an=i=>i*1e3,Ze=i=>i/1e3;function i0(i,l){return l?i*(1e3/l):0}const l0=(i,l,u)=>(((1-3*u+3*l)*i+(3*u-6*l))*i+3*l)*i,Cx=1e-7,Mx=12;function wx(i,l,u,o,c){let d,h,m=0;do h=l+(u-l)/2,d=l0(h,o,c)-i,d>0?u=h:l=h;while(Math.abs(d)>Cx&&++m<Mx);return h}function es(i,l,u,o){if(i===l&&u===o)return ke;const c=d=>wx(d,0,1,i,u);return d=>d===0||d===1?d:l0(c(d),l,o)}const s0=i=>l=>l<=.5?i(2*l)/2:(2-i(2*(1-l)))/2,u0=i=>l=>1-i(1-l),o0=es(.33,1.53,.69,.99),lf=u0(o0),r0=s0(lf),c0=i=>(i*=2)<1?.5*lf(i):.5*(2-Math.pow(2,-10*(i-1))),sf=i=>1-Math.sin(Math.acos(i)),f0=u0(sf),h0=s0(sf),Dx=es(.42,0,1,1),Nx=es(0,0,.58,1),d0=es(.42,0,.58,1),Ox=i=>Array.isArray(i)&&typeof i[0]!="number",m0=i=>Array.isArray(i)&&typeof i[0]=="number",jx={linear:ke,easeIn:Dx,easeInOut:d0,easeOut:Nx,circIn:sf,circInOut:h0,circOut:f0,backIn:lf,backInOut:r0,backOut:o0,anticipate:c0},zx=i=>typeof i=="string",zp=i=>{if(m0(i)){nf(i.length===4);const[l,u,o,c]=i;return es(l,u,o,c)}else if(zx(i))return jx[i];return i},Tu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Rx(i,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(p.schedule(v),i()),v(m)}const p={schedule:(v,x=!1,T=!1)=>{const z=T&&c?u:o;return x&&h.add(v),z.has(v)||z.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(m=v,c){d=!0;return}c=!0,[u,o]=[o,u],u.forEach(g),u.clear(),c=!1,d&&(d=!1,p.process(v))}};return p}const Vx=40;function p0(i,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=Tu.reduce((X,J)=>(X[J]=Rx(d),X),{}),{setup:m,read:g,resolveKeyframes:p,preUpdate:v,update:x,preRender:T,render:N,postRender:z}=h,q=()=>{const X=Ln.useManualTiming?c.timestamp:performance.now();u=!1,Ln.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(X-c.timestamp,Vx),1)),c.timestamp=X,c.isProcessing=!0,m.process(c),g.process(c),p.process(c),v.process(c),x.process(c),T.process(c),N.process(c),z.process(c),c.isProcessing=!1,u&&l&&(o=!1,i(q))},G=()=>{u=!0,o=!0,c.isProcessing||i(q)};return{schedule:Tu.reduce((X,J)=>{const Z=h[J];return X[J]=(nt,I=!1,F=!1)=>(u||G(),Z.schedule(nt,I,F)),X},{}),cancel:X=>{for(let J=0;J<Tu.length;J++)h[Tu[J]].cancel(X)},state:c,steps:h}}const{schedule:jt,cancel:da,state:fe,steps:fc}=p0(typeof requestAnimationFrame<"u"?requestAnimationFrame:ke,!0);let Mu;function _x(){Mu=void 0}const ge={now:()=>(Mu===void 0&&ge.set(fe.isProcessing||Ln.useManualTiming?fe.timestamp:performance.now()),Mu),set:i=>{Mu=i,queueMicrotask(_x)}},y0=i=>l=>typeof l=="string"&&l.startsWith(i),g0=y0("--"),Ux=y0("var(--"),uf=i=>Ux(i)?Bx.test(i.split("/*")[0].trim()):!1,Bx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Rp(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Yi={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Pl={...Yi,transform:i=>yn(0,1,i)},Au={...Yi,default:1},Ql=i=>Math.round(i*1e5)/1e5,of=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lx(i){return i==null}const Hx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rf=(i,l)=>u=>!!(typeof u=="string"&&Hx.test(u)&&u.startsWith(i)||l&&!Lx(u)&&Object.prototype.hasOwnProperty.call(u,l)),v0=(i,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,m]=o.match(of);return{[i]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:m!==void 0?parseFloat(m):1}},Yx=i=>yn(0,255,i),hc={...Yi,transform:i=>Math.round(Yx(i))},Ha={test:rf("rgb","red"),parse:v0("red","green","blue"),transform:({red:i,green:l,blue:u,alpha:o=1})=>"rgba("+hc.transform(i)+", "+hc.transform(l)+", "+hc.transform(u)+", "+Ql(Pl.transform(o))+")"};function qx(i){let l="",u="",o="",c="";return i.length>5?(l=i.substring(1,3),u=i.substring(3,5),o=i.substring(5,7),c=i.substring(7,9)):(l=i.substring(1,2),u=i.substring(2,3),o=i.substring(3,4),c=i.substring(4,5),l+=l,u+=u,o+=o,c+=c),{red:parseInt(l,16),green:parseInt(u,16),blue:parseInt(o,16),alpha:c?parseInt(c,16)/255:1}}const Dc={test:rf("#"),parse:qx,transform:Ha.transform},ns=i=>({test:l=>typeof l=="string"&&l.endsWith(i)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${i}`}),fa=ns("deg"),pn=ns("%"),$=ns("px"),Gx=ns("vh"),Xx=ns("vw"),Vp={...pn,parse:i=>pn.parse(i)/100,transform:i=>pn.transform(i*100)},Ri={test:rf("hsl","hue"),parse:v0("hue","saturation","lightness"),transform:({hue:i,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(i)+", "+pn.transform(Ql(l))+", "+pn.transform(Ql(u))+", "+Ql(Pl.transform(o))+")"},It={test:i=>Ha.test(i)||Dc.test(i)||Ri.test(i),parse:i=>Ha.test(i)?Ha.parse(i):Ri.test(i)?Ri.parse(i):Dc.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ha.transform(i):Ri.transform(i),getAnimatableNone:i=>{const l=It.parse(i);return l.alpha=0,It.transform(l)}},Kx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qx(i){return isNaN(i)&&typeof i=="string"&&(i.match(of)?.length||0)+(i.match(Kx)?.length||0)>0}const x0="number",b0="color",Zx="var",kx="var(",_p="${}",Jx=/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 Wl(i){const l=i.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const m=l.replace(Jx,g=>(It.test(g)?(o.color.push(d),c.push(b0),u.push(It.parse(g))):g.startsWith(kx)?(o.var.push(d),c.push(Zx),u.push(g)):(o.number.push(d),c.push(x0),u.push(parseFloat(g))),++d,_p)).split(_p);return{values:u,split:m,indexes:o,types:c}}function S0(i){return Wl(i).values}function T0(i){const{split:l,types:u}=Wl(i),o=l.length;return c=>{let d="";for(let h=0;h<o;h++)if(d+=l[h],c[h]!==void 0){const m=u[h];m===x0?d+=Ql(c[h]):m===b0?d+=It.transform(c[h]):d+=c[h]}return d}}const Fx=i=>typeof i=="number"?0:It.test(i)?It.getAnimatableNone(i):i;function Px(i){const l=S0(i);return T0(i)(l.map(Fx))}const ln={test:Qx,parse:S0,createTransformer:T0,getAnimatableNone:Px};function dc(i,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(l-i)*6*u:u<1/2?l:u<2/3?i+(l-i)*(2/3-u)*6:i}function Wx({hue:i,saturation:l,lightness:u,alpha:o}){i/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const m=u<.5?u*(1+l):u+l-u*l,g=2*u-m;c=dc(g,m,i+1/3),d=dc(g,m,i),h=dc(g,m,i-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function Vu(i,l){return u=>u>0?l:i}const Lt=(i,l,u)=>i+(l-i)*u,mc=(i,l,u)=>{const o=i*i,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},$x=[Dc,Ha,Ri],Ix=i=>$x.find(l=>l.test(i));function Up(i){const l=Ix(i);if(!l)return!1;let u=l.parse(i);return l===Ri&&(u=Wx(u)),u}const Bp=(i,l)=>{const u=Up(i),o=Up(l);if(!u||!o)return Vu(i,l);const c={...u};return d=>(c.red=mc(u.red,o.red,d),c.green=mc(u.green,o.green,d),c.blue=mc(u.blue,o.blue,d),c.alpha=Lt(u.alpha,o.alpha,d),Ha.transform(c))},Nc=new Set(["none","hidden"]);function tb(i,l){return Nc.has(i)?u=>u<=0?i:l:u=>u>=1?l:i}function eb(i,l){return u=>Lt(i,l,u)}function cf(i){return typeof i=="number"?eb:typeof i=="string"?uf(i)?Vu:It.test(i)?Bp:ib:Array.isArray(i)?A0:typeof i=="object"?It.test(i)?Bp:nb:Vu}function A0(i,l){const u=[...i],o=u.length,c=i.map((d,h)=>cf(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function nb(i,l){const u={...i,...l},o={};for(const c in u)i[c]!==void 0&&l[c]!==void 0&&(o[c]=cf(i[c])(i[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function ab(i,l){const u=[],o={color:0,var:0,number:0};for(let c=0;c<l.values.length;c++){const d=l.types[c],h=i.indexes[d][o[d]],m=i.values[h]??0;u[c]=m,o[d]++}return u}const ib=(i,l)=>{const u=ln.createTransformer(l),o=Wl(i),c=Wl(l);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>=c.indexes.number.length?Nc.has(i)&&!c.values.length||Nc.has(l)&&!o.values.length?tb(i,l):ts(A0(ab(o,c),c.values),u):Vu(i,l)};function E0(i,l,u){return typeof i=="number"&&typeof l=="number"&&typeof u=="number"?Lt(i,l,u):cf(i)(i,l)}const lb=i=>{const l=({timestamp:u})=>i(u);return{start:(u=!0)=>jt.update(l,u),stop:()=>da(l),now:()=>fe.isProcessing?fe.timestamp:ge.now()}},C0=(i,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(i(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},_u=2e4;function ff(i){let l=0;const u=50;let o=i.next(l);for(;!o.done&&l<_u;)l+=u,o=i.next(l);return l>=_u?1/0:l}function sb(i,l=100,u){const o=u({...i,keyframes:[0,l]}),c=Math.min(ff(o),_u);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:Ze(c)}}const ub=5;function M0(i,l,u){const o=Math.max(l-ub,0);return i0(u-i(o),l-o)}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},pc=.001;function ob({duration:i=Xt.duration,bounce:l=Xt.bounce,velocity:u=Xt.velocity,mass:o=Xt.mass}){let c,d,h=1-l;h=yn(Xt.minDamping,Xt.maxDamping,h),i=yn(Xt.minDuration,Xt.maxDuration,Ze(i)),h<1?(c=p=>{const v=p*h,x=v*i,T=v-u,N=Oc(p,h),z=Math.exp(-x);return pc-T/N*z},d=p=>{const x=p*h*i,T=x*u+u,N=Math.pow(h,2)*Math.pow(p,2)*i,z=Math.exp(-x),q=Oc(Math.pow(p,2),h);return(-c(p)+pc>0?-1:1)*((T-N)*z)/q}):(c=p=>{const v=Math.exp(-p*i),x=(p-u)*i+1;return-pc+v*x},d=p=>{const v=Math.exp(-p*i),x=(u-p)*(i*i);return v*x});const m=5/i,g=cb(c,d,m);if(i=an(i),isNaN(g))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:i};{const p=Math.pow(g,2)*o;return{stiffness:p,damping:h*2*Math.sqrt(o*p),duration:i}}}const rb=12;function cb(i,l,u){let o=u;for(let c=1;c<rb;c++)o=o-i(o)/l(o);return o}function Oc(i,l){return i*Math.sqrt(1-l*l)}const fb=["duration","bounce"],hb=["stiffness","damping","mass"];function Lp(i,l){return l.some(u=>i[u]!==void 0)}function db(i){let l={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...i};if(!Lp(i,hb)&&Lp(i,fb))if(l.velocity=0,i.visualDuration){const u=i.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*yn(.05,1,1-(i.bounce||0))*Math.sqrt(c);l={...l,mass:Xt.mass,stiffness:c,damping:d}}else{const u=ob({...i,velocity:0});l={...l,...u,mass:Xt.mass},l.isResolvedFromDuration=!0}return l}function Uu(i=Xt.visualDuration,l=Xt.bounce){const u=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:l}:i;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],m={done:!1,value:d},{stiffness:g,damping:p,mass:v,duration:x,velocity:T,isResolvedFromDuration:N}=db({...u,velocity:-Ze(u.velocity||0)}),z=T||0,q=p/(2*Math.sqrt(g*v)),G=h-d,H=Ze(Math.sqrt(g/v)),K=Math.abs(G)<5;o||(o=K?Xt.restSpeed.granular:Xt.restSpeed.default),c||(c=K?Xt.restDelta.granular:Xt.restDelta.default);let X;if(q<1){const Z=Oc(H,q);X=nt=>{const I=Math.exp(-q*H*nt);return h-I*((z+q*H*G)/Z*Math.sin(Z*nt)+G*Math.cos(Z*nt))}}else if(q===1)X=Z=>h-Math.exp(-H*Z)*(G+(z+H*G)*Z);else{const Z=H*Math.sqrt(q*q-1);X=nt=>{const I=Math.exp(-q*H*nt),F=Math.min(Z*nt,300);return h-I*((z+q*H*G)*Math.sinh(F)+Z*G*Math.cosh(F))/Z}}const J={calculatedDuration:N&&x||null,next:Z=>{const nt=X(Z);if(N)m.done=Z>=x;else{let I=Z===0?z:0;q<1&&(I=Z===0?an(z):M0(X,Z,nt));const F=Math.abs(I)<=o,lt=Math.abs(h-nt)<=c;m.done=F&<}return m.value=m.done?h:nt,m},toString:()=>{const Z=Math.min(ff(J),_u),nt=C0(I=>J.next(Z*I).value,Z,30);return Z+"ms "+nt},toTransition:()=>{}};return J}Uu.applyToOptions=i=>{const l=sb(i,100,Uu);return i.ease=l.ease,i.duration=an(l.duration),i.type="keyframes",i};function jc({keyframes:i,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:m,max:g,restDelta:p=.5,restSpeed:v}){const x=i[0],T={done:!1,value:x},N=F=>m!==void 0&&F<m||g!==void 0&&F>g,z=F=>m===void 0?g:g===void 0||Math.abs(m-F)<Math.abs(g-F)?m:g;let q=u*l;const G=x+q,H=h===void 0?G:h(G);H!==G&&(q=H-x);const K=F=>-q*Math.exp(-F/o),X=F=>H+K(F),J=F=>{const lt=K(F),xt=X(F);T.done=Math.abs(lt)<=p,T.value=T.done?H:xt};let Z,nt;const I=F=>{N(T.value)&&(Z=F,nt=Uu({keyframes:[T.value,z(T.value)],velocity:M0(X,F,T.value),damping:c,stiffness:d,restDelta:p,restSpeed:v}))};return I(0),{calculatedDuration:null,next:F=>{let lt=!1;return!nt&&Z===void 0&&(lt=!0,J(F),I(F)),Z!==void 0&&F>=Z?nt.next(F-Z):(!lt&&J(F),T)}}}function mb(i,l,u){const o=[],c=u||Ln.mix||E0,d=i.length-1;for(let h=0;h<d;h++){let m=c(i[h],i[h+1]);if(l){const g=Array.isArray(l)?l[h]||ke:l;m=ts(g,m)}o.push(m)}return o}function pb(i,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=i.length;if(nf(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 m=mb(l,o,c),g=m.length,p=v=>{if(h&&v<i[0])return l[0];let x=0;if(g>1)for(;x<i.length-2&&!(v<i[x+1]);x++);const T=Fl(i[x],i[x+1],v);return m[x](T)};return u?v=>p(yn(i[0],i[d-1],v)):p}function yb(i,l){const u=i[i.length-1];for(let o=1;o<=l;o++){const c=Fl(0,l,o);i.push(Lt(u,1,c))}}function gb(i){const l=[0];return yb(l,i.length-1),l}function vb(i,l){return i.map(u=>u*l)}function xb(i,l){return i.map(()=>l||d0).splice(0,i.length-1)}function Zl({duration:i=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=Ox(o)?o.map(zp):zp(o),d={done:!1,value:l[0]},h=vb(u&&u.length===l.length?u:gb(l),i),m=pb(h,l,{ease:Array.isArray(c)?c:xb(l,c)});return{calculatedDuration:i,next:g=>(d.value=m(g),d.done=g>=i,d)}}const bb=i=>i!==null;function hf(i,{repeat:l,repeatType:u="loop"},o,c=1){const d=i.filter(bb),m=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!m||o===void 0?d[m]:o}const Sb={decay:jc,inertia:jc,tween:Zl,keyframes:Zl,spring:Uu};function w0(i){typeof i.type=="string"&&(i.type=Sb[i.type])}class df{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,u){return this.finished.then(l,u)}}const Tb=i=>i/100;class mf extends df{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:u}=this.options;u&&u.updatedAt!==ge.now()&&this.tick(ge.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;w0(l);const{type:u=Zl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:m}=l;const g=u||Zl;g!==Zl&&typeof m[0]!="number"&&(this.mixKeyframes=ts(Tb,E0(m[0],m[1])),m=[0,100]);const p=g({...l,keyframes:m});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...m].reverse(),velocity:-h})),p.calculatedDuration===null&&(p.calculatedDuration=ff(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=p}updateTime(l){const u=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=u}tick(l,u=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:h,resolvedDuration:m,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:v,repeat:x,repeatType:T,repeatDelay:N,type:z,onUpdate:q,finalKeyframe:G}=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)),u?this.currentTime=l:this.updateTime(l);const H=this.currentTime-p*(this.playbackSpeed>=0?1:-1),K=this.playbackSpeed>=0?H<0:H>c;this.currentTime=Math.max(H,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let X=this.currentTime,J=o;if(x){const F=Math.min(this.currentTime,c)/m;let lt=Math.floor(F),xt=F%1;!xt&&F>=1&&(xt=1),xt===1&<--,lt=Math.min(lt,x+1),lt%2&&(T==="reverse"?(xt=1-xt,N&&(xt-=N/m)):T==="mirror"&&(J=h)),X=yn(0,1,xt)*m}const Z=K?{done:!1,value:v[0]}:J.next(X);d&&(Z.value=d(Z.value));let{done:nt}=Z;!K&&g!==null&&(nt=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&nt);return I&&z!==jc&&(Z.value=hf(v,this.options,G,this.speed)),q&&q(Z.value),I&&this.finish(),Z}then(l,u){return this.finished.then(l,u)}get duration(){return Ze(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ze(l)}get time(){return Ze(this.currentTime)}set time(l){l=an(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(ge.now());const u=this.playbackSpeed!==l;this.playbackSpeed=l,u&&(this.time=Ze(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=lb,startTime:u}=this.options;this.driver||(this.driver=l(c=>this.tick(c))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=u??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.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 Ab(i){for(let l=1;l<i.length;l++)i[l]??(i[l]=i[l-1])}const Ya=i=>i*180/Math.PI,zc=i=>{const l=Ya(Math.atan2(i[1],i[0]));return Rc(l)},Eb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:zc,rotateZ:zc,skewX:i=>Ya(Math.atan(i[1])),skewY:i=>Ya(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},Rc=i=>(i=i%360,i<0&&(i+=360),i),Hp=zc,Yp=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),qp=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),Cb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yp,scaleY:qp,scale:i=>(Yp(i)+qp(i))/2,rotateX:i=>Rc(Ya(Math.atan2(i[6],i[5]))),rotateY:i=>Rc(Ya(Math.atan2(-i[2],i[0]))),rotateZ:Hp,rotate:Hp,skewX:i=>Ya(Math.atan(i[4])),skewY:i=>Ya(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function Vc(i){return i.includes("scale")?1:0}function _c(i,l){if(!i||i==="none")return Vc(l);const u=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=Cb,c=u;else{const m=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Eb,c=m}if(!c)return Vc(l);const d=o[l],h=c[1].split(",").map(wb);return typeof d=="function"?d(h):h[d]}const Mb=(i,l)=>{const{transform:u="none"}=getComputedStyle(i);return _c(u,l)};function wb(i){return parseFloat(i.trim())}const qi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gi=new Set(qi),Gp=i=>i===Yi||i===$,Db=new Set(["x","y","z"]),Nb=qi.filter(i=>!Db.has(i));function Ob(i){const l=[];return Nb.forEach(u=>{const o=i.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const ha={width:({x:i},{paddingLeft:l="0",paddingRight:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),height:({y:i},{paddingTop:l="0",paddingBottom:u="0"})=>i.max-i.min-parseFloat(l)-parseFloat(u),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})=>_c(l,"x"),y:(i,{transform:l})=>_c(l,"y")};ha.translateX=ha.x;ha.translateY=ha.y;const qa=new Set;let Uc=!1,Bc=!1,Lc=!1;function D0(){if(Bc){const i=Array.from(qa).filter(o=>o.needsMeasurement),l=new Set(i.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=Ob(o);c.length&&(u.set(o,c),o.render())}),i.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),i.forEach(o=>o.measureEndState()),i.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Bc=!1,Uc=!1,qa.forEach(i=>i.complete(Lc)),qa.clear()}function N0(){qa.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(Bc=!0)})}function jb(){Lc=!0,N0(),D0(),Lc=!1}class pf{constructor(l,u,o,c,d,h=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=u,this.name=o,this.motionValue=c,this.element=d,this.isAsync=h}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),Uc||(Uc=!0,jt.read(N0),jt.resolveKeyframes(D0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:u,element:o,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(o&&u){const m=o.readValue(u,h);m!=null&&(l[0]=m)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}Ab(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const zb=i=>i.startsWith("--");function Rb(i,l,u){zb(l)?i.style.setProperty(l,u):i.style[l]=u}const Vb={};function O0(i,l){const u=a0(i);return()=>Vb[l]??u()}const _b=O0(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),j0=O0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kl=([i,l,u,o])=>`cubic-bezier(${i}, ${l}, ${u}, ${o})`,Xp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kl([0,.65,.55,1]),circOut:Kl([.55,0,1,.45]),backIn:Kl([.31,.01,.66,-.59]),backOut:Kl([.33,1.53,.69,.99])};function z0(i,l){if(i)return typeof i=="function"?j0()?C0(i,l):"ease-out":m0(i)?Kl(i):Array.isArray(i)?i.map(u=>z0(u,l)||Xp.easeOut):Xp[i]}function Ub(i,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:m="easeOut",times:g}={},p=void 0){const v={[l]:u};g&&(v.offset=g);const x=z0(m,c);Array.isArray(x)&&(v.easing=x);const T={delay:o,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return p&&(T.pseudoElement=p),i.animate(v,T)}function R0(i){return typeof i=="function"&&"applyToOptions"in i}function Bb({type:i,...l}){return R0(i)&&j0()?i.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class V0 extends df{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:u,name:o,keyframes:c,pseudoElement:d,allowFlatten:h=!1,finalKeyframe:m,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,nf(typeof l.type!="string");const p=Bb(l);this.animation=Ub(u,o,c,p,d),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=hf(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(v):Rb(u,o,v),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state: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 Ze(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ze(l)}get time(){return Ze(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=an(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:u}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,l&&_b()?(this.animation.timeline=l,ke):u(this)}}const _0={anticipate:c0,backInOut:r0,circInOut:h0};function Lb(i){return i in _0}function Hb(i){typeof i.ease=="string"&&Lb(i.ease)&&(i.ease=_0[i.ease])}const yc=10;class Yb extends V0{constructor(l){Hb(l),w0(l),super(l),l.startTime!==void 0&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:u,onUpdate:o,onComplete:c,element:d,...h}=this.options;if(!u)return;if(l!==void 0){u.set(l);return}const m=new mf({...h,autoplay:!1}),g=Math.max(yc,ge.now()-this.startTime),p=yn(0,yc,g-yc);u.setWithVelocity(m.sample(Math.max(0,g-p)).value,m.sample(g).value,p),m.stop()}}const Kp=(i,l)=>l==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(ln.test(i)||i==="0")&&!i.startsWith("url("));function qb(i){const l=i[0];if(i.length===1)return!0;for(let u=0;u<i.length;u++)if(i[u]!==l)return!0}function Gb(i,l,u,o){const c=i[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=i[i.length-1],h=Kp(c,l),m=Kp(d,l);return!h||!m?!1:qb(i)||(u==="spring"||R0(u))&&o}function Hc(i){i.duration=0,i.type="keyframes"}const Xb=new Set(["opacity","clipPath","filter","transform"]),Kb=a0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qb(i){const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h}=i;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:p}=l.owner.getProps();return Kb()&&u&&Xb.has(u)&&(u!=="transform"||!p)&&!g&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const Zb=40;class kb extends df{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:m,name:g,motionValue:p,element:v,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();const T={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:p,element:v,...x},N=v?.KeyframeResolver||pf;this.keyframeResolver=new N(m,(z,q,G)=>this.onKeyframesResolved(z,q,T,!G),g,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:m,delay:g,isHandoff:p,onUpdate:v}=o;this.resolvedAt=ge.now(),Gb(l,d,h,m)||((Ln.instantAnimations||!g)&&v?.(hf(l,o,u)),l[0]=l[l.length-1],Hc(o),o.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>Zb?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},N=!p&&Qb(T),z=T.motionValue?.owner?.current,q=N?new Yb({...T,element:z}):new mf(T);q.finished.then(()=>{this.notifyFinished()}).catch(ke),this.pendingTimeline&&(this.stopTimeline=q.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=q}get finished(){return this._animation?this.animation.finished:this._finished}then(l,u){return this.finished.finally(l).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),jb()),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 U0(i,l,u,o=0,c=1){const d=Array.from(i).sort((p,v)=>p.sortNodePosition(v)).indexOf(l),h=i.size,m=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:m-d*o}const Jb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fb(i){const l=Jb.exec(i);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function B0(i,l,u=1){const[o,c]=Fb(i);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return t0(h)?parseFloat(h):h}return uf(c)?B0(c,l,u+1):c}const Pb={type:"spring",stiffness:500,damping:25,restSpeed:10},Wb=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),$b={type:"keyframes",duration:.8},Ib={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tS=(i,{keyframes:l})=>l.length>2?$b:Gi.has(i)?i.startsWith("scale")?Wb(l[1]):Pb:Ib,eS=i=>i!==null;function nS(i,{repeat:l,repeatType:u="loop"},o){const c=i.filter(eS),d=l&&u!=="loop"&&l%2===1?0:c.length-1;return c[d]}function L0(i,l){if(i?.inherit&&l){const{inherit:u,...o}=i;return{...l,...o}}return i}function yf(i,l){const u=i?.[l]??i?.default??i;return u!==i?L0(u,i):u}function aS({when:i,delay:l,delayChildren:u,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:m,from:g,elapsed:p,...v}){return!!Object.keys(v).length}const gf=(i,l,u,o={},c,d)=>h=>{const m=yf(o,i)||{},g=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-an(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-p,onUpdate:T=>{l.set(T),m.onUpdate&&m.onUpdate(T)},onComplete:()=>{h(),m.onComplete&&m.onComplete()},name:i,motionValue:l,element:d?void 0:c};aS(m)||Object.assign(v,tS(i,v)),v.duration&&(v.duration=an(v.duration)),v.repeatDelay&&(v.repeatDelay=an(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let x=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Hc(v),v.delay===0&&(x=!0)),(Ln.instantAnimations||Ln.skipAnimations||c?.shouldSkipAnimations)&&(x=!0,Hc(v),v.delay=0),v.allowFlatten=!m.type&&!m.ease,x&&!d&&l.get()!==void 0){const T=nS(v.keyframes,m);if(T!==void 0){jt.update(()=>{v.onUpdate(T),v.onComplete()});return}}return m.isSync?new mf(v):new kb(v)};function Qp(i){const l=[{},{}];return i?.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function vf(i,l,u,o){if(typeof l=="function"){const[c,d]=Qp(o);l=l(u!==void 0?u:i.custom,c,d)}if(typeof l=="string"&&(l=i.variants&&i.variants[l]),typeof l=="function"){const[c,d]=Qp(o);l=l(u!==void 0?u:i.custom,c,d)}return l}function Li(i,l,u){const o=i.getProps();return vf(o,l,u!==void 0?u:o.custom,i)}const H0=new Set(["width","height","top","left","right","bottom",...qi]),Zp=30,iS=i=>!isNaN(parseFloat(i));class lS{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ge.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=u.owner}setCurrent(l){this.current=l,this.updatedAt=ge.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=iS(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,u){this.events[l]||(this.events[l]=new af);const o=this.events[l].add(u);return l==="change"?()=>{o(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,u){this.passiveEffect=l,this.stopPassiveEffect=u}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,u,o){this.set(u),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,u=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,u&&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=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Zp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Zp);return i0(parseFloat(this.current)-parseFloat(this.prevFrameValue),u)}start(l){return this.stop(),new Promise(u=>{this.hasAnimated=!0,this.animation=l(u),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 Hi(i,l){return new lS(i,l)}const Yc=i=>Array.isArray(i);function sS(i,l,u){i.hasValue(l)?i.getValue(l).set(u):i.addValue(l,Hi(u))}function uS(i){return Yc(i)?i[i.length-1]||0:i}function oS(i,l){const u=Li(i,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const m=uS(d[h]);sS(i,h,m)}}const me=i=>!!(i&&i.getVelocity);function rS(i){return!!(me(i)&&i.add)}function qc(i,l){const u=i.getValue("willChange");if(rS(u))return u.add(l);if(!u&&Ln.WillChange){const o=new Ln.WillChange("auto");i.addValue("willChange",o),o.add(l)}}function xf(i){return i.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const cS="framerAppearId",Y0="data-"+xf(cS);function q0(i){return i.props[Y0]}function fS({protectedKeys:i,needsAnimating:l},u){const o=i.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function G0(i,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...m}=l;const g=i.getDefaultTransition();d=d?L0(d,g):g;const p=d?.reduceMotion;o&&(d=o);const v=[],x=c&&i.animationState&&i.animationState.getState()[c];for(const T in m){const N=i.getValue(T,i.latestValues[T]??null),z=m[T];if(z===void 0||x&&fS(x,T))continue;const q={delay:u,...yf(d||{},T)},G=N.get();if(G!==void 0&&!N.isAnimating&&!Array.isArray(z)&&z===G&&!q.velocity)continue;let H=!1;if(window.MotionHandoffAnimation){const J=q0(i);if(J){const Z=window.MotionHandoffAnimation(J,T,jt);Z!==null&&(q.startTime=Z,H=!0)}}qc(i,T);const K=p??i.shouldReduceMotion;N.start(gf(T,N,z,K&&H0.has(T)?{type:!1}:q,i,H));const X=N.animation;X&&v.push(X)}if(h){const T=()=>jt.update(()=>{h&&oS(i,h)});v.length?Promise.all(v).then(T):T()}return v}function Gc(i,l,u={}){const o=Li(i,l,u.type==="exit"?i.presenceContext?.custom:void 0);let{transition:c=i.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(G0(i,o,u)):()=>Promise.resolve(),h=i.variantChildren&&i.variantChildren.size?(g=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:x}=c;return hS(i,l,g,p,v,x,u)}:()=>Promise.resolve(),{when:m}=c;if(m){const[g,p]=m==="beforeChildren"?[d,h]:[h,d];return g().then(()=>p())}else return Promise.all([d(),h(u.delay)])}function hS(i,l,u=0,o=0,c=0,d=1,h){const m=[];for(const g of i.variantChildren)g.notify("AnimationStart",l),m.push(Gc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+U0(i.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(m)}function dS(i,l,u={}){i.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>Gc(i,d,u));o=Promise.all(c)}else if(typeof l=="string")o=Gc(i,l,u);else{const c=typeof l=="function"?Li(i,l,u.custom):l;o=Promise.all(G0(i,c,u))}return o.then(()=>{i.notify("AnimationComplete",l)})}const mS={test:i=>i==="auto",parse:i=>i},X0=i=>l=>l.test(i),K0=[Yi,$,pn,fa,Xx,Gx,mS],kp=i=>K0.find(X0(i));function pS(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||n0(i):!0}const yS=new Set(["brightness","contrast","saturate","opacity"]);function gS(i){const[l,u]=i.slice(0,-1).split("(");if(l==="drop-shadow")return i;const[o]=u.match(of)||[];if(!o)return i;const c=u.replace(o,"");let d=yS.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const vS=/\b([a-z-]*)\(.*?\)/gu,Xc={...ln,getAnimatableNone:i=>{const l=i.match(vS);return l?l.map(gS).join(" "):i}},Kc={...ln,getAnimatableNone:i=>{const l=ln.parse(i);return ln.createTransformer(i)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Jp={...Yi,transform:Math.round},xS={rotate:fa,rotateX:fa,rotateY:fa,rotateZ:fa,scale:Au,scaleX:Au,scaleY:Au,scaleZ:Au,skew:fa,skewX:fa,skewY:fa,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Pl,originX:Vp,originY:Vp,originZ:$},bf={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,...xS,zIndex:Jp,fillOpacity:Pl,strokeOpacity:Pl,numOctaves:Jp},bS={...bf,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:Xc,WebkitFilter:Xc,mask:Kc,WebkitMask:Kc},Q0=i=>bS[i],SS=new Set([Xc,Kc]);function Z0(i,l){let u=Q0(i);return SS.has(u)||(u=ln),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const TS=new Set(["auto","none","0"]);function AS(i,l,u){let o=0,c;for(;o<i.length&&!c;){const d=i[o];typeof d=="string"&&!TS.has(d)&&Wl(d).values.length&&(c=i[o]),o++}if(c&&u)for(const d of l)i[d]=Z0(u,c)}class ES extends pf{constructor(l,u,o,c,d){super(l,u,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:u,name:o}=this;if(!u||!u.current)return;super.readKeyframes();for(let v=0;v<l.length;v++){let x=l[v];if(typeof x=="string"&&(x=x.trim(),uf(x))){const T=B0(x,u.current);T!==void 0&&(l[v]=T),v===l.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!H0.has(o)||l.length!==2)return;const[c,d]=l,h=kp(c),m=kp(d),g=Rp(c),p=Rp(d);if(g!==p&&ha[o]){this.needsMeasurement=!0;return}if(h!==m)if(Gp(h)&&Gp(m))for(let v=0;v<l.length;v++){const x=l[v];typeof x=="string"&&(l[v]=parseFloat(x))}else ha[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||pS(l[c]))&&o.push(c);o.length&&AS(l,o,u)}measureInitialState(){const{element:l,unresolvedKeyframes:u,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ha[o](l.measureViewportBox(),window.getComputedStyle(l.current)),u[0]=this.measuredOrigin;const c=u[u.length-1];c!==void 0&&l.getValue(o,c).jump(c,!1)}measureEndState(){const{element:l,name:u,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const c=l.getValue(u);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,h=o[d];o[d]=ha[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,g])=>{l.getValue(m).set(g)}),this.resolveNoneKeyframes()}}const CS=new Set(["opacity","clipPath","filter","transform"]);function k0(i,l,u){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let o=document;const c=u?.[i]??o.querySelectorAll(i);return c?Array.from(c):[]}return Array.from(i).filter(o=>o!=null)}const J0=(i,l)=>l&&typeof i=="number"?l.transform(i):i;function Qc(i){return e0(i)&&"offsetHeight"in i}const{schedule:Sf}=p0(queueMicrotask,!1),nn={x:!1,y:!1};function F0(){return nn.x||nn.y}function MS(i){return i==="x"||i==="y"?nn[i]?null:(nn[i]=!0,()=>{nn[i]=!1}):nn.x||nn.y?null:(nn.x=nn.y=!0,()=>{nn.x=nn.y=!1})}function P0(i,l){const u=k0(i),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function wS(i){return!(i.pointerType==="touch"||F0())}function DS(i,l,u={}){const[o,c,d]=P0(i,u);return o.forEach(h=>{let m=!1,g=!1,p;const v=()=>{h.removeEventListener("pointerleave",z)},x=G=>{p&&(p(G),p=void 0),v()},T=G=>{m=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),g&&(g=!1,x(G))},N=()=>{m=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},z=G=>{if(G.pointerType!=="touch"){if(m){g=!0;return}x(G)}},q=G=>{if(!wS(G))return;g=!1;const H=l(h,G);typeof H=="function"&&(p=H,h.addEventListener("pointerleave",z,c))};h.addEventListener("pointerenter",q,c),h.addEventListener("pointerdown",N,c)}),d}const W0=(i,l)=>l?i===l?!0:W0(i,l.parentElement):!1,Tf=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,NS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function OS(i){return NS.has(i.tagName)||i.isContentEditable===!0}const jS=new Set(["INPUT","SELECT","TEXTAREA"]);function zS(i){return jS.has(i.tagName)||i.isContentEditable===!0}const wu=new WeakSet;function Fp(i){return l=>{l.key==="Enter"&&i(l)}}function gc(i,l){i.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const RS=(i,l)=>{const u=i.currentTarget;if(!u)return;const o=Fp(()=>{if(wu.has(u))return;gc(u,"down");const c=Fp(()=>{gc(u,"up")}),d=()=>gc(u,"cancel");u.addEventListener("keyup",c,l),u.addEventListener("blur",d,l)});u.addEventListener("keydown",o,l),u.addEventListener("blur",()=>u.removeEventListener("keydown",o),l)};function Pp(i){return Tf(i)&&!F0()}const Wp=new WeakSet;function VS(i,l,u={}){const[o,c,d]=P0(i,u),h=m=>{const g=m.currentTarget;if(!Pp(m)||Wp.has(m))return;wu.add(g),u.stopPropagation&&Wp.add(m);const p=l(g,m),v=(N,z)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",T),wu.has(g)&&wu.delete(g),Pp(N)&&typeof p=="function"&&p(N,{success:z})},x=N=>{v(N,g===window||g===document||u.useGlobalTarget||W0(g,N.target))},T=N=>{v(N,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",T,c)};return o.forEach(m=>{(u.useGlobalTarget?window:m).addEventListener("pointerdown",h,c),Qc(m)&&(m.addEventListener("focus",p=>RS(p,c)),!OS(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Af(i){return e0(i)&&"ownerSVGElement"in i}const Du=new WeakMap;let Nu;const $0=(i,l,u)=>(o,c)=>c&&c[0]?c[0][i+"Size"]:Af(o)&&"getBBox"in o?o.getBBox()[l]:o[u],_S=$0("inline","width","offsetWidth"),US=$0("block","height","offsetHeight");function BS({target:i,borderBoxSize:l}){Du.get(i)?.forEach(u=>{u(i,{get width(){return _S(i,l)},get height(){return US(i,l)}})})}function LS(i){i.forEach(BS)}function HS(){typeof ResizeObserver>"u"||(Nu=new ResizeObserver(LS))}function YS(i,l){Nu||HS();const u=k0(i);return u.forEach(o=>{let c=Du.get(o);c||(c=new Set,Du.set(o,c)),c.add(l),Nu?.observe(o)}),()=>{u.forEach(o=>{const c=Du.get(o);c?.delete(l),c?.size||Nu?.unobserve(o)})}}const Ou=new Set;let Vi;function qS(){Vi=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ou.forEach(l=>l(i))},window.addEventListener("resize",Vi)}function GS(i){return Ou.add(i),Vi||qS(),()=>{Ou.delete(i),!Ou.size&&typeof Vi=="function"&&(window.removeEventListener("resize",Vi),Vi=void 0)}}function $p(i,l){return typeof i=="function"?GS(i):YS(i,l)}function XS(i){return Af(i)&&i.tagName==="svg"}const KS=[...K0,It,ln],QS=i=>KS.find(X0(i)),Ip=()=>({translate:0,scale:1,origin:0,originPoint:0}),_i=()=>({x:Ip(),y:Ip()}),ty=()=>({min:0,max:0}),ne=()=>({x:ty(),y:ty()}),ZS=new WeakMap;function Gu(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function $l(i){return typeof i=="string"||Array.isArray(i)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function Xu(i){return Gu(i.animate)||Cf.some(l=>$l(i[l]))}function I0(i){return!!(Xu(i)||i.variants)}function kS(i,l,u){for(const o in l){const c=l[o],d=u[o];if(me(c))i.addValue(o,c);else if(me(d))i.addValue(o,Hi(c,{owner:i}));else if(d!==c)if(i.hasValue(o)){const h=i.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=i.getStaticValue(o);i.addValue(o,Hi(h!==void 0?h:c,{owner:i}))}}for(const o in u)l[o]===void 0&&i.removeValue(o);return l}const Zc={current:null},tg={current:!1},JS=typeof window<"u";function FS(){if(tg.current=!0,!!JS)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),l=()=>Zc.current=i.matches;i.addEventListener("change",l),l()}else Zc.current=!1}const ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Bu={};function eg(i){Bu=i}function PS(){return Bu}class WS{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:m},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=pf,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 N=ge.now();this.renderScheduledAt<N&&(this.renderScheduledAt=N,jt.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=m;this.latestValues=p,this.baseTarget={...p},this.initialValues=u.initial?{...p}:{},this.renderState=v,this.parent=l,this.props=u,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=g,this.blockInitialAnimation=!!h,this.isControllingVariants=Xu(u),this.isVariantNode=I0(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:x,...T}=this.scrapeMotionValuesFromProps(u,{},this);for(const N in T){const z=T[N];p[N]!==void 0&&me(z)&&z.set(p[N])}}mount(l){if(this.hasBeenMounted)for(const u in this.initialValues)this.values.get(u)?.jump(this.initialValues[u]),this.latestValues[u]=this.initialValues[u];this.current=l,ZS.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((u,o)=>this.bindToMotionValue(o,u)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(tg.current||FS(),this.shouldReduceMotion=Zc.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(),da(this.notifyUpdate),da(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 u=this.features[l];u&&(u.unmount(),u.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,u){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),u.accelerate&&CS.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:m,times:g,ease:p,duration:v}=u.accelerate,x=new V0({element:this.current,name:l,keyframes:m,times:g,ease:p,duration:an(v)}),T=h(x);this.valueSubscriptions.set(l,()=>{T(),x.cancel()});return}const o=Gi.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&jt.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,l,u)),this.valueSubscriptions.set(l,()=>{c(),d&&d(),u.owner&&u.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 Bu){const u=Bu[l];if(!u)continue;const{isEnabled:o,Feature:c}=u;if(!this.features[l]&&c&&o(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):ne()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,u){this.latestValues[l]=u}update(l,u){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=u;for(let o=0;o<ey.length;o++){const c=ey[o];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=kS(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 u=this.getClosestVariantNode();if(u)return u.variantChildren&&u.variantChildren.add(l),()=>u.variantChildren.delete(l)}addValue(l,u){const o=this.values.get(l);u!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,u),this.values.set(l,u),this.latestValues[l]=u.get())}removeValue(l){this.values.delete(l);const u=this.valueSubscriptions.get(l);u&&(u(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,u){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&u!==void 0&&(o=Hi(u===null?void 0:u,{owner:this}),this.addValue(l,o)),o}readValue(l,u){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(t0(o)||n0(o))?o=parseFloat(o):!QS(o)&&ln.test(u)&&(o=Z0(l,u)),this.setBaseTarget(l,me(o)?o.get():o)),me(o)?o.get():o}setBaseTarget(l,u){this.baseTarget[l]=u}getBaseTarget(l){const{initial:u}=this.props;let o;if(typeof u=="string"||typeof u=="object"){const d=vf(this.props,u,this.presenceContext?.custom);d&&(o=d[l])}if(u&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,l);return c!==void 0&&!me(c)?c:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,u){return this.events[l]||(this.events[l]=new af),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Sf.render(this.render)}}class ng extends WS{constructor(){super(...arguments),this.KeyframeResolver=ES}sortInstanceNodePosition(l,u){return l.compareDocumentPosition(u)&2?1:-1}getBaseTargetFromProps(l,u){const o=l.style;return o?o[u]:void 0}removeValueFromRenderState(l,{vars:u,style:o}){delete u[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;me(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class ma{constructor(l){this.isMounted=!1,this.node=l}update(){}}function ag({top:i,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:i,max:o}}}function $S({x:i,y:l}){return{top:l.min,right:i.max,bottom:l.max,left:i.min}}function IS(i,l){if(!l)return i;const u=l({x:i.left,y:i.top}),o=l({x:i.right,y:i.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function vc(i){return i===void 0||i===1}function kc({scale:i,scaleX:l,scaleY:u}){return!vc(i)||!vc(l)||!vc(u)}function La(i){return kc(i)||ig(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function ig(i){return ny(i.x)||ny(i.y)}function ny(i){return i&&i!=="0%"}function Lu(i,l,u){const o=i-u,c=l*o;return u+c}function ay(i,l,u,o,c){return c!==void 0&&(i=Lu(i,c,o)),Lu(i,u,o)+l}function Jc(i,l=0,u=1,o,c){i.min=ay(i.min,l,u,o,c),i.max=ay(i.max,l,u,o,c)}function lg(i,{x:l,y:u}){Jc(i.x,l.translate,l.scale,l.originPoint),Jc(i.y,u.translate,u.scale,u.originPoint)}const iy=.999999999999,ly=1.0000000000001;function tT(i,l,u,o=!1){const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let m=0;m<c;m++){d=u[m],h=d.projectionDelta;const{visualElement:g}=d.options;g&&g.props.style&&g.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Bi(i,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,lg(i,h)),o&&La(d.latestValues)&&Bi(i,d.latestValues))}l.x<ly&&l.x>iy&&(l.x=1),l.y<ly&&l.y>iy&&(l.y=1)}function Ui(i,l){i.min=i.min+l,i.max=i.max+l}function sy(i,l,u,o,c=.5){const d=Lt(i.min,i.max,c);Jc(i,l,u,d,o)}function Bi(i,l){sy(i.x,l.x,l.scaleX,l.scale,l.originX),sy(i.y,l.y,l.scaleY,l.scale,l.originY)}function sg(i,l){return ag(IS(i.getBoundingClientRect(),l))}function eT(i,l,u){const o=sg(i,u),{scroll:c}=l;return c&&(Ui(o.x,c.offset.x),Ui(o.y,c.offset.y)),o}const nT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aT=qi.length;function iT(i,l,u){let o="",c=!0;for(let d=0;d<aT;d++){const h=qi[d],m=i[h];if(m===void 0)continue;let g=!0;if(typeof m=="number")g=m===(h.startsWith("scale")?1:0);else{const p=parseFloat(m);g=h.startsWith("scale")?p===1:p===0}if(!g||u){const p=J0(m,bf[h]);if(!g){c=!1;const v=nT[h]||h;o+=`${v}(${p}) `}u&&(l[h]=p)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Mf(i,l,u){const{style:o,vars:c,transformOrigin:d}=i;let h=!1,m=!1;for(const g in l){const p=l[g];if(Gi.has(g)){h=!0;continue}else if(g0(g)){c[g]=p;continue}else{const v=J0(p,bf[g]);g.startsWith("origin")?(m=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=iT(l,i.transform,u):o.transform&&(o.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${p} ${v}`}}function ug(i,{style:l,vars:u},o,c){const d=i.style;let h;for(h in l)d[h]=l[h];c?.applyProjectionStyles(d,o);for(h in u)d.setProperty(h,u[h])}function uy(i,l){return l.max===l.min?0:i/(l.max-l.min)*100}const Xl={correct:(i,l)=>{if(!l.target)return i;if(typeof i=="string")if($.test(i))i=parseFloat(i);else return i;const u=uy(i,l.target.x),o=uy(i,l.target.y);return`${u}% ${o}%`}},lT={correct:(i,{treeScale:l,projectionDelta:u})=>{const o=i,c=ln.parse(i);if(c.length>5)return o;const d=ln.createTransformer(i),h=typeof c[0]!="number"?1:0,m=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=m,c[1+h]/=g;const p=Lt(m,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=p),typeof c[3+h]=="number"&&(c[3+h]/=p),d(c)}},Fc={borderRadius:{...Xl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xl,borderTopRightRadius:Xl,borderBottomLeftRadius:Xl,borderBottomRightRadius:Xl,boxShadow:lT};function og(i,{layout:l,layoutId:u}){return Gi.has(i)||i.startsWith("origin")||(l||u!==void 0)&&(!!Fc[i]||i==="opacity")}function wf(i,l,u){const o=i.style,c=l?.style,d={};if(!o)return d;for(const h in o)(me(o[h])||c&&me(c[h])||og(h,i)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}function sT(i){return window.getComputedStyle(i)}class uT extends ng{constructor(){super(...arguments),this.type="html",this.renderInstance=ug}readValueFromInstance(l,u){if(Gi.has(u))return this.projection?.isProjecting?Vc(u):Mb(l,u);{const o=sT(l),c=(g0(u)?o.getPropertyValue(u):o[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return sg(l,u)}build(l,u,o){Mf(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return wf(l,u,o)}}const oT={offset:"stroke-dashoffset",array:"stroke-dasharray"},rT={offset:"strokeDashoffset",array:"strokeDasharray"};function cT(i,l,u=1,o=0,c=!0){i.pathLength=1;const d=c?oT:rT;i[d.offset]=`${-o}`,i[d.array]=`${l} ${u}`}const fT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function rg(i,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...m},g,p,v){if(Mf(i,m,p),g){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:x,style:T}=i;x.transform&&(T.transform=x.transform,delete x.transform),(T.transform||x.transformOrigin)&&(T.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),T.transform&&(T.transformBox=v?.transformBox??"fill-box",delete x.transformBox);for(const N of fT)x[N]!==void 0&&(T[N]=x[N],delete x[N]);l!==void 0&&(x.x=l),u!==void 0&&(x.y=u),o!==void 0&&(x.scale=o),c!==void 0&&cT(x,c,d,h,!1)}const cg=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"]),fg=i=>typeof i=="string"&&i.toLowerCase()==="svg";function hT(i,l,u,o){ug(i,l,void 0,o);for(const c in l.attrs)i.setAttribute(cg.has(c)?c:xf(c),l.attrs[c])}function hg(i,l,u){const o=wf(i,l,u);for(const c in i)if(me(i[c])||me(l[c])){const d=qi.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=i[c]}return o}class dT extends ng{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ne}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(Gi.has(u)){const o=Q0(u);return o&&o.default||0}return u=cg.has(u)?u:xf(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return hg(l,u,o)}build(l,u,o){rg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){hT(l,u,o,c)}mount(l){this.isSVGTag=fg(l.tagName),super.mount(l)}}const mT=Cf.length;function dg(i){if(!i)return;if(!i.isControllingVariants){const u=i.parent?dg(i.parent)||{}:{};return i.props.initial!==void 0&&(u.initial=i.props.initial),u}const l={};for(let u=0;u<mT;u++){const o=Cf[u],c=i.props[o];($l(c)||c===!1)&&(l[o]=c)}return l}function mg(i,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==i.length)return!1;for(let o=0;o<u;o++)if(l[o]!==i[o])return!1;return!0}const pT=[...Ef].reverse(),yT=Ef.length;function gT(i){return l=>Promise.all(l.map(({animation:u,options:o})=>dS(i,u,o)))}function vT(i){let l=gT(i),u=oy(),o=!0;const c=g=>(p,v)=>{const x=Li(i,v,g==="exit"?i.presenceContext?.custom:void 0);if(x){const{transition:T,transitionEnd:N,...z}=x;p={...p,...z,...N}}return p};function d(g){l=g(i)}function h(g){const{props:p}=i,v=dg(i.parent)||{},x=[],T=new Set;let N={},z=1/0;for(let G=0;G<yT;G++){const H=pT[G],K=u[H],X=p[H]!==void 0?p[H]:v[H],J=$l(X),Z=H===g?K.isActive:null;Z===!1&&(z=G);let nt=X===v[H]&&X!==p[H]&&J;if(nt&&o&&i.manuallyAnimateOnMount&&(nt=!1),K.protectedKeys={...N},!K.isActive&&Z===null||!X&&!K.prevProp||Gu(X)||typeof X=="boolean")continue;if(H==="exit"&&K.isActive&&Z!==!0){K.prevResolvedValues&&(N={...N,...K.prevResolvedValues});continue}const I=xT(K.prevProp,X);let F=I||H===g&&K.isActive&&!nt&&J||G>z&&J,lt=!1;const xt=Array.isArray(X)?X:[X];let _t=xt.reduce(c(H),{});Z===!1&&(_t={});const{prevResolvedValues:zt={}}=K,Ot={...zt,..._t},le=Y=>{F=!0,T.has(Y)&&(lt=!0,T.delete(Y)),K.needsAnimating[Y]=!0;const k=i.getValue(Y);k&&(k.liveStyle=!1)};for(const Y in Ot){const k=_t[Y],ct=zt[Y];if(N.hasOwnProperty(Y))continue;let dt=!1;Yc(k)&&Yc(ct)?dt=!mg(k,ct):dt=k!==ct,dt?k!=null?le(Y):T.add(Y):k!==void 0&&T.has(Y)?le(Y):K.protectedKeys[Y]=!0}K.prevProp=X,K.prevResolvedValues=_t,K.isActive&&(N={...N,..._t}),o&&i.blockInitialAnimation&&(F=!1);const Bt=nt&&I;F&&(!Bt||lt)&&x.push(...xt.map(Y=>{const k={type:H};if(typeof Y=="string"&&o&&!Bt&&i.manuallyAnimateOnMount&&i.parent){const{parent:ct}=i,dt=Li(ct,Y);if(ct.enteringChildren&&dt){const{delayChildren:A}=dt.transition||{};k.delay=U0(ct.enteringChildren,i,A)}}return{animation:Y,options:k}}))}if(T.size){const G={};if(typeof p.initial!="boolean"){const H=Li(i,Array.isArray(p.initial)?p.initial[0]:p.initial);H&&H.transition&&(G.transition=H.transition)}T.forEach(H=>{const K=i.getBaseTarget(H),X=i.getValue(H);X&&(X.liveStyle=!0),G[H]=K??null}),x.push({animation:G})}let q=!!x.length;return o&&(p.initial===!1||p.initial===p.animate)&&!i.manuallyAnimateOnMount&&(q=!1),o=!1,q?l(x):Promise.resolve()}function m(g,p){if(u[g].isActive===p)return Promise.resolve();i.variantChildren?.forEach(x=>x.animationState?.setActive(g,p)),u[g].isActive=p;const v=h(g);for(const x in u)u[x].protectedKeys={};return v}return{animateChanges:h,setActive:m,setAnimateFunction:d,getState:()=>u,reset:()=>{u=oy()}}}function xT(i,l){return typeof l=="string"?l!==i:Array.isArray(l)?!mg(l,i):!1}function Ba(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oy(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}function ry(i,l){i.min=l.min,i.max=l.max}function en(i,l){ry(i.x,l.x),ry(i.y,l.y)}function cy(i,l){i.translate=l.translate,i.scale=l.scale,i.originPoint=l.originPoint,i.origin=l.origin}const pg=1e-4,bT=1-pg,ST=1+pg,yg=.01,TT=0-yg,AT=0+yg;function ve(i){return i.max-i.min}function ET(i,l,u){return Math.abs(i-l)<=u}function fy(i,l,u,o=.5){i.origin=o,i.originPoint=Lt(l.min,l.max,i.origin),i.scale=ve(u)/ve(l),i.translate=Lt(u.min,u.max,i.origin)-i.originPoint,(i.scale>=bT&&i.scale<=ST||isNaN(i.scale))&&(i.scale=1),(i.translate>=TT&&i.translate<=AT||isNaN(i.translate))&&(i.translate=0)}function kl(i,l,u,o){fy(i.x,l.x,u.x,o?o.originX:void 0),fy(i.y,l.y,u.y,o?o.originY:void 0)}function hy(i,l,u){i.min=u.min+l.min,i.max=i.min+ve(l)}function CT(i,l,u){hy(i.x,l.x,u.x),hy(i.y,l.y,u.y)}function dy(i,l,u){i.min=l.min-u.min,i.max=i.min+ve(l)}function Hu(i,l,u){dy(i.x,l.x,u.x),dy(i.y,l.y,u.y)}function my(i,l,u,o,c){return i-=l,i=Lu(i,1/u,o),c!==void 0&&(i=Lu(i,1/c,o)),i}function MT(i,l=0,u=1,o=.5,c,d=i,h=i){if(pn.test(l)&&(l=parseFloat(l),l=Lt(h.min,h.max,l/100)-h.min),typeof l!="number")return;let m=Lt(d.min,d.max,o);i===d&&(m-=l),i.min=my(i.min,l,u,m,c),i.max=my(i.max,l,u,m,c)}function py(i,l,[u,o,c],d,h){MT(i,l[u],l[o],l[c],l.scale,d,h)}const wT=["x","scaleX","originX"],DT=["y","scaleY","originY"];function yy(i,l,u,o){py(i.x,l,wT,u?u.x:void 0,o?o.x:void 0),py(i.y,l,DT,u?u.y:void 0,o?o.y:void 0)}function gy(i){return i.translate===0&&i.scale===1}function gg(i){return gy(i.x)&&gy(i.y)}function vy(i,l){return i.min===l.min&&i.max===l.max}function NT(i,l){return vy(i.x,l.x)&&vy(i.y,l.y)}function xy(i,l){return Math.round(i.min)===Math.round(l.min)&&Math.round(i.max)===Math.round(l.max)}function vg(i,l){return xy(i.x,l.x)&&xy(i.y,l.y)}function by(i){return ve(i.x)/ve(i.y)}function Sy(i,l){return i.translate===l.translate&&i.scale===l.scale&&i.originPoint===l.originPoint}function mn(i){return[i("x"),i("y")]}function OT(i,l,u){let o="";const c=i.x.translate/l.x,d=i.y.translate/l.y,h=u?.z||0;if((c||d||h)&&(o=`translate3d(${c}px, ${d}px, ${h}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),u){const{transformPerspective:p,rotate:v,rotateX:x,rotateY:T,skewX:N,skewY:z}=u;p&&(o=`perspective(${p}px) ${o}`),v&&(o+=`rotate(${v}deg) `),x&&(o+=`rotateX(${x}deg) `),T&&(o+=`rotateY(${T}deg) `),N&&(o+=`skewX(${N}deg) `),z&&(o+=`skewY(${z}deg) `)}const m=i.x.scale*l.x,g=i.y.scale*l.y;return(m!==1||g!==1)&&(o+=`scale(${m}, ${g})`),o||"none"}const xg=["TopLeft","TopRight","BottomLeft","BottomRight"],jT=xg.length,Ty=i=>typeof i=="string"?parseFloat(i):i,Ay=i=>typeof i=="number"||$.test(i);function zT(i,l,u,o,c,d){c?(i.opacity=Lt(0,u.opacity??1,RT(o)),i.opacityExit=Lt(l.opacity??1,0,VT(o))):d&&(i.opacity=Lt(l.opacity??1,u.opacity??1,o));for(let h=0;h<jT;h++){const m=`border${xg[h]}Radius`;let g=Ey(l,m),p=Ey(u,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||Ay(g)===Ay(p)?(i[m]=Math.max(Lt(Ty(g),Ty(p),o),0),(pn.test(p)||pn.test(g))&&(i[m]+="%")):i[m]=p}(l.rotate||u.rotate)&&(i.rotate=Lt(l.rotate||0,u.rotate||0,o))}function Ey(i,l){return i[l]!==void 0?i[l]:i.borderRadius}const RT=bg(0,.5,f0),VT=bg(.5,.95,ke);function bg(i,l,u){return o=>o<i?0:o>l?1:u(Fl(i,l,o))}function _T(i,l,u){const o=me(i)?i:Hi(i);return o.start(gf("",o,l,u)),o.animation}function Il(i,l,u,o={passive:!0}){return i.addEventListener(l,u,o),()=>i.removeEventListener(l,u)}const UT=(i,l)=>i.depth-l.depth;class BT{constructor(){this.children=[],this.isDirty=!1}add(l){ef(this.children,l),this.isDirty=!0}remove(l){Ru(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(UT),this.isDirty=!1,this.children.forEach(l)}}function LT(i,l){const u=ge.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(da(o),i(d-l))};return jt.setup(o,!0),()=>da(o)}function ju(i){return me(i)?i.get():i}class HT{constructor(){this.members=[]}add(l){ef(this.members,l);for(let u=this.members.length-1;u>=0;u--){const o=this.members[u];if(o===l||o===this.lead||o===this.prevLead)continue;const c=o.instance;c&&c.isConnected===!1&&o.isPresent!==!1&&!o.snapshot&&Ru(this.members,o)}l.scheduleRender()}remove(l){if(Ru(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const u=this.members[this.members.length-1];u&&this.promote(u)}}relegate(l){const u=this.members.findIndex(c=>l===c);if(u===0)return!1;let o;for(let c=u;c>=0;c--){const d=this.members[c],h=d.instance;if(d.isPresent!==!1&&(!h||h.isConnected!==!1)){o=d;break}}return o?(this.promote(o),!0):!1}promote(l,u){const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.instance&&o.scheduleRender(),l.scheduleRender();const c=o.options.layoutDependency,d=l.options.layoutDependency;if(!(c!==void 0&&d!==void 0&&c===d)){const g=o.instance;g&&g.isConnected===!1&&!o.snapshot||(l.resumeFrom=o,u&&(l.resumeFrom.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),l.root&&l.root.isUpdating&&(l.isLayoutDirty=!0))}const{crossfade:m}=l.options;m===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{const{options:u,resumingFrom:o}=l;u.onExitComplete&&u.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const zu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xc=["","X","Y","Z"],YT=1e3;let qT=0;function bc(i,l,u,o){const{latestValues:c}=l;c[i]&&(u[i]=c[i],l.setStaticValue(i,0),o&&(o[i]=0))}function Sg(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:l}=i.options;if(!l)return;const u=q0(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=i.options;window.MotionCancelOptimisedAnimation(u,"transform",jt,!(c||d))}const{parent:o}=i;o&&!o.hasCheckedOptimisedAppear&&Sg(o)}function Tg({attachResizeListener:i,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},m=l?.()){this.id=qT++,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(KT),this.nodes.forEach(JT),this.nodes.forEach(FT),this.nodes.forEach(QT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new BT)}addEventListener(h,m){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new af),this.eventHandlers.get(h).add(m)}notifyListeners(h,...m){const g=this.eventHandlers.get(h);g&&g.notify(...m)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Af(h)&&!XS(h),this.instance=h;const{layoutId:m,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||m)&&(this.isLayoutDirty=!0),i){let v,x=0;const T=()=>this.root.updateBlockedByResize=!1;jt.read(()=>{x=window.innerWidth}),i(h,()=>{const N=window.innerWidth;N!==x&&(x=N,this.root.updateBlockedByResize=!0,v&&v(),v=LT(T,250),zu.hasAnimatedSinceResize&&(zu.hasAnimatedSinceResize=!1,this.nodes.forEach(wy)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:x,hasRelativeLayoutChanged:T,layout:N})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const z=this.options.transition||p.getDefaultTransition()||t2,{onLayoutAnimationStart:q,onLayoutAnimationComplete:G}=p.getProps(),H=!this.targetLayout||!vg(this.targetLayout,N),K=!x&&T;if(this.options.layoutRoot||this.resumeFrom||K||x&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const X={...yf(z,"layout"),onPlay:q,onComplete:G};(p.shouldReduceMotion||this.options.layoutRoot)&&(X.delay=0,X.type=!1),this.startAnimation(X),this.setAnimationOrigin(v,K)}else x||wy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=N})}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(),da(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(PT),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&&Sg(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const x=this.path[v];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(My);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kT),this.nodes.forEach(GT),this.nodes.forEach(XT)):this.nodes.forEach(My),this.clearAllSnapshots();const m=ge.now();fe.delta=yn(0,1e3/60,m-fe.timestamp),fe.timestamp=m,fe.isProcessing=!0,fc.update.process(fe),fc.preRender.process(fe),fc.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZT),this.sharedNodes.forEach(WT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ve(this.snapshot.measuredBox.x)&&!ve(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=ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(m=!1),m&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:g,offset:u(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!gg(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;h&&this.instance&&(m||La(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return h&&(g=this.removeTransform(g)),e2(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return ne();const m=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(n2))){const{scroll:p}=this.root;p&&(Ui(m.x,p.offset.x),Ui(m.y,p.offset.y))}return m}removeElementScroll(h){const m=ne();if(en(m,h),this.scroll?.wasRoot)return m;for(let g=0;g<this.path.length;g++){const p=this.path[g],{scroll:v,options:x}=p;p!==this.root&&v&&x.layoutScroll&&(v.wasRoot&&en(m,h),Ui(m.x,v.offset.x),Ui(m.y,v.offset.y))}return m}applyTransform(h,m=!1){const g=ne();en(g,h);for(let p=0;p<this.path.length;p++){const v=this.path[p];!m&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Bi(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),La(v.latestValues)&&Bi(g,v.latestValues)}return La(this.latestValues)&&Bi(g,this.latestValues),g}removeTransform(h){const m=ne();en(m,h);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!p.instance||!La(p.latestValues))continue;kc(p.latestValues)&&p.updateSnapshot();const v=ne(),x=p.measurePageBox();en(v,x),yy(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return La(this.latestValues)&&yy(m,this.latestValues),m}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 m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:x}=this.options;if(!this.layout||!(v||x))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=ne(),this.targetWithTransforms=ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):en(this.target,this.layout.layoutBox),lg(this.target,this.targetDelta)):en(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||kc(this.parent.latestValues)||ig(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,m,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ne(),this.relativeTargetOrigin=ne(),Hu(this.relativeTargetOrigin,m,g),en(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),m=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(g=!1),g)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;en(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,T=this.treeScale.y;tT(this.layoutCorrected,this.treeScale,this.path,m),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=ne());const{target:N}=h;if(!N){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cy(this.prevProjectionDelta.x,this.projectionDelta.x),cy(this.prevProjectionDelta.y,this.projectionDelta.y)),kl(this.projectionDelta,this.layoutCorrected,N,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==T||!Sy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",N))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_i(),this.projectionDelta=_i(),this.projectionDeltaWithTransform=_i()}setAnimationOrigin(h,m=!1){const g=this.snapshot,p=g?g.latestValues:{},v={...this.latestValues},x=_i();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const T=ne(),N=g?g.source:void 0,z=this.layout?this.layout.source:void 0,q=N!==z,G=this.getStack(),H=!G||G.members.length<=1,K=!!(q&&!H&&this.options.crossfade===!0&&!this.path.some(IT));this.animationProgress=0;let X;this.mixTargetDelta=J=>{const Z=J/1e3;Dy(x.x,h.x,Z),Dy(x.y,h.y,Z),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hu(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$T(this.relativeTarget,this.relativeTargetOrigin,T,Z),X&&NT(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=ne()),en(X,this.relativeTarget)),q&&(this.animationValues=v,zT(v,p,this.latestValues,Z,K,H)),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&&(da(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{zu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Hi(0)),this.motionValue.jump(0,!1),this.currentAnimation=_T(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),h.onUpdate&&h.onUpdate(m)},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(YT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:v}=h;if(!(!m||!g||!p)){if(this!==h&&this.layout&&p&&Ag(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||ne();const x=ve(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+x;const T=ve(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+T}en(m,g),Bi(m,v),kl(this.projectionDeltaWithTransform,this.layoutCorrected,m,v)}}registerSharedNode(h,m){this.sharedNodes.has(h)||this.sharedNodes.set(h,new HT),this.sharedNodes.get(h).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):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:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let m=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&bc("z",h,p,this.animationValues);for(let v=0;v<xc.length;v++)bc(`rotate${xc[v]}`,h,p,this.animationValues),bc(`skew${xc[v]}`,h,p,this.animationValues);h.render();for(const v in p)h.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);h.scheduleRender()}applyProjectionStyles(h,m){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=ju(m?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=ju(m?.pointerEvents)||""),this.hasProjected&&!La(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let x=OT(this.projectionDeltaWithTransform,this.treeScale,v);g&&(x=g(v,x)),h.transform=x;const{x:T,y:N}=this.projectionDelta;h.transformOrigin=`${T.origin*100}% ${N.origin*100}% 0`,p.animationValues?h.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const z in Fc){if(v[z]===void 0)continue;const{correct:q,applyTo:G,isCSSVariable:H}=Fc[z],K=x==="none"?v[z]:q(v[z],p);if(G){const X=G.length;for(let J=0;J<X;J++)h[G[J]]=K}else H?this.options.visualElement.renderState.vars[z]=K:h[z]=K}this.options.layoutId&&(h.pointerEvents=p===this?ju(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(Cy),this.root.sharedNodes.clear()}}}function GT(i){i.updateLayout()}function XT(i){const l=i.resumeFrom?.snapshot||i.snapshot;if(i.isLead()&&i.layout&&l&&i.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=i.layout,{animationType:c}=i.options,d=l.source!==i.layout.source;c==="size"?mn(v=>{const x=d?l.measuredBox[v]:l.layoutBox[v],T=ve(x);x.min=u[v].min,x.max=x.min+T}):Ag(c,l.layoutBox,u)&&mn(v=>{const x=d?l.measuredBox[v]:l.layoutBox[v],T=ve(u[v]);x.max=x.min+T,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[v].max=i.relativeTarget[v].min+T)});const h=_i();kl(h,u,l.layoutBox);const m=_i();d?kl(m,i.applyTransform(o,!0),l.measuredBox):kl(m,u,l.layoutBox);const g=!gg(h);let p=!1;if(!i.resumeFrom){const v=i.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:x,layout:T}=v;if(x&&T){const N=ne();Hu(N,l.layoutBox,x.layoutBox);const z=ne();Hu(z,u,T.layoutBox),vg(N,z)||(p=!0),v.options.layoutRoot&&(i.relativeTarget=z,i.relativeTargetOrigin=N,i.relativeParent=v)}}}i.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:p})}else if(i.isLead()){const{onExitComplete:u}=i.options;u&&u()}i.options.transition=void 0}function KT(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 QT(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function ZT(i){i.clearSnapshot()}function Cy(i){i.clearMeasurements()}function My(i){i.isLayoutDirty=!1}function kT(i){const{visualElement:l}=i.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),i.resetTransform()}function wy(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function JT(i){i.resolveTargetDelta()}function FT(i){i.calcProjection()}function PT(i){i.resetSkewAndRotation()}function WT(i){i.removeLeadSnapshot()}function Dy(i,l,u){i.translate=Lt(l.translate,0,u),i.scale=Lt(l.scale,1,u),i.origin=l.origin,i.originPoint=l.originPoint}function Ny(i,l,u,o){i.min=Lt(l.min,u.min,o),i.max=Lt(l.max,u.max,o)}function $T(i,l,u,o){Ny(i.x,l.x,u.x,o),Ny(i.y,l.y,u.y,o)}function IT(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const t2={duration:.45,ease:[.4,0,.1,1]},Oy=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),jy=Oy("applewebkit/")&&!Oy("chrome/")?Math.round:ke;function zy(i){i.min=jy(i.min),i.max=jy(i.max)}function e2(i){zy(i.x),zy(i.y)}function Ag(i,l,u){return i==="position"||i==="preserve-aspect"&&!ET(by(l),by(u),.2)}function n2(i){return i!==i.root&&i.scroll?.wasRoot}const a2=Tg({attachResizeListener:(i,l)=>Il(i,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Sc={current:void 0},Eg=Tg({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!Sc.current){const i=new a2({});i.mount(window),i.setOptions({layoutScroll:!0}),Sc.current=i}return Sc.current},resetTransform:(i,l)=>{i.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),Df=_.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function Ry(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function i2(...i){return l=>{let u=!1;const o=i.map(c=>{const d=Ry(c,l);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let c=0;c<o.length;c++){const d=o[c];typeof d=="function"?d():Ry(i[c],null)}}}}function l2(...i){return _.useCallback(i2(...i),i)}class s2 extends _.Component{getSnapshotBeforeUpdate(l){const u=this.props.childRef.current;if(u&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=u.offsetParent,c=Qc(o)&&o.offsetWidth||0,d=Qc(o)&&o.offsetHeight||0,h=this.props.sizeRef.current;h.height=u.offsetHeight||0,h.width=u.offsetWidth||0,h.top=u.offsetTop,h.left=u.offsetLeft,h.right=c-h.width-h.left,h.bottom=d-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function u2({children:i,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){const h=_.useId(),m=_.useRef(null),g=_.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=_.useContext(Df),v=i.props?.ref??i?.ref,x=l2(m,v);return _.useInsertionEffect(()=>{const{width:T,height:N,top:z,left:q,right:G,bottom:H}=g.current;if(l||d===!1||!m.current||!T||!N)return;const K=u==="left"?`left: ${q}`:`right: ${G}`,X=o==="bottom"?`bottom: ${H}`:`top: ${z}`;m.current.dataset.motionPopId=h;const J=document.createElement("style");p&&(J.nonce=p);const Z=c??document.head;return Z.appendChild(J),J.sheet&&J.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${h}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${T}px !important;
|
|
13
|
-
height: ${N}px !important;
|
|
14
|
-
${K}px !important;
|
|
15
|
-
${X}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{Z.contains(J)&&Z.removeChild(J)}},[l]),b.jsx(s2,{isPresent:l,childRef:m,sizeRef:g,pop:d,children:d===!1?i:_.cloneElement(i,{ref:x})})}const o2=({children:i,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:m,anchorY:g,root:p})=>{const v=tf(r2),x=_.useId();let T=!0,N=_.useMemo(()=>(T=!1,{id:x,initial:l,isPresent:u,custom:c,onExitComplete:z=>{v.set(z,!0);for(const q of v.values())if(!q)return;o&&o()},register:z=>(v.set(z,!1),()=>v.delete(z))}),[u,v,o]);return d&&T&&(N={...N}),_.useMemo(()=>{v.forEach((z,q)=>v.set(q,!1))},[u]),_.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),i=b.jsx(u2,{pop:h==="popLayout",isPresent:u,anchorX:m,anchorY:g,root:p,children:i}),b.jsx(qu.Provider,{value:N,children:i})};function r2(){return new Map}function Cg(i=!0){const l=_.useContext(qu);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=_.useId();_.useEffect(()=>{if(i)return c(d)},[i]);const h=_.useCallback(()=>i&&o&&o(d),[d,o,i]);return!u&&o?[!1,h]:[!0]}const Eu=i=>i.key||"";function Vy(i){const l=[];return _.Children.forEach(i,u=>{_.isValidElement(u)&&l.push(u)}),l}const c2=({children:i,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:m="left",anchorY:g="top",root:p})=>{const[v,x]=Cg(h),T=_.useMemo(()=>Vy(i),[i]),N=h&&!v?[]:T.map(Eu),z=_.useRef(!0),q=_.useRef(T),G=tf(()=>new Map),H=_.useRef(new Set),[K,X]=_.useState(T),[J,Z]=_.useState(T);Iy(()=>{z.current=!1,q.current=T;for(let F=0;F<J.length;F++){const lt=Eu(J[F]);N.includes(lt)?(G.delete(lt),H.current.delete(lt)):G.get(lt)!==!0&&G.set(lt,!1)}},[J,N.length,N.join("-")]);const nt=[];if(T!==K){let F=[...T];for(let lt=0;lt<J.length;lt++){const xt=J[lt],_t=Eu(xt);N.includes(_t)||(F.splice(lt,0,xt),nt.push(xt))}return d==="wait"&&nt.length&&(F=nt),Z(Vy(F)),X(T),null}const{forceRender:I}=_.useContext(Ic);return b.jsx(b.Fragment,{children:J.map(F=>{const lt=Eu(F),xt=h&&!v?!1:T===J||N.includes(lt),_t=()=>{if(H.current.has(lt))return;if(H.current.add(lt),G.has(lt))G.set(lt,!0);else return;let zt=!0;G.forEach(Ot=>{Ot||(zt=!1)}),zt&&(I?.(),Z(q.current),h&&x?.(),o&&o())};return b.jsx(o2,{isPresent:xt,initial:!z.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:xt?void 0:_t,anchorX:m,anchorY:g,children:F},lt)})})},Mg=_.createContext({strict:!1}),_y={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 Uy=!1;function f2(){if(Uy)return;const i={};for(const l in _y)i[l]={isEnabled:u=>_y[l].some(o=>!!u[o])};eg(i),Uy=!0}function wg(){return f2(),PS()}function h2(i){const l=wg();for(const u in i)l[u]={...l[u],...i[u]};eg(l)}const d2=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 Yu(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||d2.has(i)}let Dg=i=>!Yu(i);function m2(i){typeof i=="function"&&(Dg=l=>l.startsWith("on")?!Yu(l):i(l))}try{m2(require("@emotion/is-prop-valid").default)}catch{}function p2(i,l,u){const o={};for(const c in i)c==="values"&&typeof i.values=="object"||(Dg(c)||u===!0&&Yu(c)||!l&&!Yu(c)||i.draggable&&c.startsWith("onDrag"))&&(o[c]=i[c]);return o}const Ku=_.createContext({});function y2(i,l){if(Xu(i)){const{initial:u,animate:o}=i;return{initial:u===!1||$l(u)?u:void 0,animate:$l(o)?o:void 0}}return i.inherit!==!1?l:{}}function g2(i){const{initial:l,animate:u}=y2(i,_.useContext(Ku));return _.useMemo(()=>({initial:l,animate:u}),[By(l),By(u)])}function By(i){return Array.isArray(i)?i.join(" "):i}const Nf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ng(i,l,u){for(const o in l)!me(l[o])&&!og(o,u)&&(i[o]=l[o])}function v2({transformTemplate:i},l){return _.useMemo(()=>{const u=Nf();return Mf(u,l,i),Object.assign({},u.vars,u.style)},[l])}function x2(i,l){const u=i.style||{},o={};return Ng(o,u,i),Object.assign(o,v2(i,l)),o}function b2(i,l){const u={},o=x2(i,l);return i.drag&&i.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(u.tabIndex=0),u.style=o,u}const Og=()=>({...Nf(),attrs:{}});function S2(i,l,u,o){const c=_.useMemo(()=>{const d=Og();return rg(d,l,fg(o),i.transformTemplate,i.style),{...d.attrs,style:{...d.style}}},[l]);if(i.style){const d={};Ng(d,i.style,i),c.style={...d,...c.style}}return c}const T2=["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 Of(i){return typeof i!="string"||i.includes("-")?!1:!!(T2.indexOf(i)>-1||/[A-Z]/u.test(i))}function A2(i,l,u,{latestValues:o},c,d=!1,h){const g=(h??Of(i)?S2:b2)(l,o,c,i),p=p2(l,typeof i=="string",d),v=i!==_.Fragment?{...p,...g,ref:u}:{},{children:x}=l,T=_.useMemo(()=>me(x)?x.get():x,[x]);return _.createElement(i,{...v,children:T})}function E2({scrapeMotionValuesFromProps:i,createRenderState:l},u,o,c){return{latestValues:C2(u,o,c,i),renderState:l()}}function C2(i,l,u,o){const c={},d=o(i,{});for(const T in d)c[T]=ju(d[T]);let{initial:h,animate:m}=i;const g=Xu(i),p=I0(i);l&&p&&!g&&i.inherit!==!1&&(h===void 0&&(h=l.initial),m===void 0&&(m=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const x=v?m:h;if(x&&typeof x!="boolean"&&!Gu(x)){const T=Array.isArray(x)?x:[x];for(let N=0;N<T.length;N++){const z=vf(i,T[N]);if(z){const{transitionEnd:q,transition:G,...H}=z;for(const K in H){let X=H[K];if(Array.isArray(X)){const J=v?X.length-1:0;X=X[J]}X!==null&&(c[K]=X)}for(const K in q)c[K]=q[K]}}}return c}const jg=i=>(l,u)=>{const o=_.useContext(Ku),c=_.useContext(qu),d=()=>E2(i,l,o,c);return u?d():tf(d)},M2=jg({scrapeMotionValuesFromProps:wf,createRenderState:Nf}),w2=jg({scrapeMotionValuesFromProps:hg,createRenderState:Og}),D2=Symbol.for("motionComponentSymbol");function N2(i,l,u){const o=_.useRef(u);_.useInsertionEffect(()=>{o.current=u});const c=_.useRef(null);return _.useCallback(d=>{d&&i.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=o.current;if(typeof h=="function")if(d){const m=h(d);typeof m=="function"&&(c.current=m)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d)},[l])}const zg=_.createContext({});function zi(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function O2(i,l,u,o,c,d){const{visualElement:h}=_.useContext(Ku),m=_.useContext(Mg),g=_.useContext(qu),p=_.useContext(Df),v=p.reducedMotion,x=p.skipAnimations,T=_.useRef(null),N=_.useRef(!1);o=o||m.renderer,!T.current&&o&&(T.current=o(i,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:x,isSVG:d}),N.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const z=T.current,q=_.useContext(zg);z&&!z.projection&&c&&(z.type==="html"||z.type==="svg")&&j2(T.current,u,c,q);const G=_.useRef(!1);_.useInsertionEffect(()=>{z&&G.current&&z.update(u,g)});const H=u[Y0],K=_.useRef(!!H&&!window.MotionHandoffIsComplete?.(H)&&window.MotionHasOptimisedAnimation?.(H));return Iy(()=>{N.current=!0,z&&(G.current=!0,window.MotionIsMounted=!0,z.updateFeatures(),z.scheduleRenderMicrotask(),K.current&&z.animationState&&z.animationState.animateChanges())}),_.useEffect(()=>{z&&(!K.current&&z.animationState&&z.animationState.animateChanges(),K.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(H)}),K.current=!1),z.enteringChildren=void 0)}),z}function j2(i,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:m,layoutScroll:g,layoutRoot:p,layoutCrossfade:v}=l;i.projection=new u(i.latestValues,l["data-framer-portal-id"]?void 0:Rg(i.parent)),i.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||m&&zi(m),visualElement:i,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:p})}function Rg(i){if(i)return i.options.allowProjection!==!1?i.projection:Rg(i.parent)}function Tc(i,{forwardMotionProps:l=!1,type:u}={},o,c){o&&h2(o);const d=u?u==="svg":Of(i),h=d?w2:M2;function m(p,v){let x;const T={..._.useContext(Df),...p,layoutId:z2(p)},{isStatic:N}=T,z=g2(p),q=h(p,N);if(!N&&$y){R2();const G=V2(T);x=G.MeasureLayout,z.visualElement=O2(i,q,T,c,G.ProjectionNode,d)}return b.jsxs(Ku.Provider,{value:z,children:[x&&z.visualElement?b.jsx(x,{visualElement:z.visualElement,...T}):null,A2(i,p,N2(q,z.visualElement,v),q,N,l,d)]})}m.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const g=_.forwardRef(m);return g[D2]=i,g}function z2({layoutId:i}){const l=_.useContext(Ic).id;return l&&i!==void 0?l+"-"+i:i}function R2(i,l){_.useContext(Mg).strict}function V2(i){const l=wg(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u?.isEnabled(i)||o?.isEnabled(i)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function _2(i,l){if(typeof Proxy>"u")return Tc;const u=new Map,o=(d,h)=>Tc(d,h,i,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Tc(h,void 0,i,l)),u.get(h))})}const U2=(i,l)=>l.isSVG??Of(i)?new dT(l):new uT(l,{allowProjection:i!==_.Fragment});class B2 extends ma{constructor(l){super(l),l.animationState||(l.animationState=vT(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();Gu(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:u}=this.node.prevProps||{};l!==u&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let L2=0;class H2 extends ma{constructor(){super(...arguments),this.id=L2++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:u}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;const c=this.node.animationState.setActive("exit",!l);u&&!l&&c.then(()=>{u(this.id)})}mount(){const{register:l,onExitComplete:u}=this.node.presenceContext||{};u&&u(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const Y2={animation:{Feature:B2},exit:{Feature:H2}};function as(i){return{point:{x:i.pageX,y:i.pageY}}}const q2=i=>l=>Tf(l)&&i(l,as(l));function Jl(i,l,u,o){return Il(i,l,q2(u),o)}const Vg=({current:i})=>i?i.ownerDocument.defaultView:null,Ly=(i,l)=>Math.abs(i-l);function G2(i,l){const u=Ly(i.x,l.x),o=Ly(i.y,l.y);return Math.sqrt(u**2+o**2)}const Hy=new Set(["auto","scroll"]);class _g{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=N=>{this.handleScroll(N.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Ec(this.lastMoveEventInfo,this.history),z=this.startEvent!==null,q=G2(N.offset,{x:0,y:0})>=this.distanceThreshold;if(!z&&!q)return;const{point:G}=N,{timestamp:H}=fe;this.history.push({...G,timestamp:H});const{onStart:K,onMove:X}=this.handlers;z||(K&&K(this.lastMoveEvent,N),this.startEvent=this.lastMoveEvent),X&&X(this.lastMoveEvent,N)},this.handlePointerMove=(N,z)=>{this.lastMoveEvent=N,this.lastMoveEventInfo=Ac(z,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(N,z)=>{this.end();const{onEnd:q,onSessionEnd:G,resumeAnimation:H}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&H&&H(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const K=Ec(N.type==="pointercancel"?this.lastMoveEventInfo:Ac(z,this.transformPagePoint),this.history);this.startEvent&&q&&q(N,K),G&&G(N,K)},!Tf(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=as(l),p=Ac(g,this.transformPagePoint),{point:v}=p,{timestamp:x}=fe;this.history=[{...v,timestamp:x}];const{onSessionStart:T}=u;T&&T(l,Ec(p,this.history)),this.removeListeners=ts(Jl(this.contextWindow,"pointermove",this.handlePointerMove),Jl(this.contextWindow,"pointerup",this.handlePointerUp),Jl(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(Hy.has(o.overflowX)||Hy.has(o.overflowY))&&this.scrollPositions.set(u,{x:u.scrollLeft,y:u.scrollTop}),u=u.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 u=this.scrollPositions.get(l);if(!u)return;const o=l===window,c=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},d={x:c.x-u.x,y:c.y-u.y};d.x===0&&d.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=d.x,this.lastMoveEventInfo.point.y+=d.y):this.history.length>0&&(this.history[0].x-=d.x,this.history[0].y-=d.y),this.scrollPositions.set(l,c),jt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),da(this.updatePoint)}}function Ac(i,l){return l?{point:l(i.point)}:i}function Yy(i,l){return{x:i.x-l.x,y:i.y-l.y}}function Ec({point:i},l){return{point:i,delta:Yy(i,Ug(l)),offset:Yy(i,X2(l)),velocity:K2(l,.1)}}function X2(i){return i[0]}function Ug(i){return i[i.length-1]}function K2(i,l){if(i.length<2)return{x:0,y:0};let u=i.length-1,o=null;const c=Ug(i);for(;u>=0&&(o=i[u],!(c.timestamp-o.timestamp>an(l)));)u--;if(!o)return{x:0,y:0};o===i[0]&&i.length>2&&c.timestamp-o.timestamp>an(l)*2&&(o=i[1]);const d=Ze(c.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(c.x-o.x)/d,y:(c.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function Q2(i,{min:l,max:u},o){return l!==void 0&&i<l?i=o?Lt(l,i,o.min):Math.max(i,l):u!==void 0&&i>u&&(i=o?Lt(u,i,o.max):Math.min(i,u)),i}function qy(i,l,u){return{min:l!==void 0?i.min+l:void 0,max:u!==void 0?i.max+u-(i.max-i.min):void 0}}function Z2(i,{top:l,left:u,bottom:o,right:c}){return{x:qy(i.x,u,c),y:qy(i.y,l,o)}}function Gy(i,l){let u=l.min-i.min,o=l.max-i.max;return l.max-l.min<i.max-i.min&&([u,o]=[o,u]),{min:u,max:o}}function k2(i,l){return{x:Gy(i.x,l.x),y:Gy(i.y,l.y)}}function J2(i,l){let u=.5;const o=ve(i),c=ve(l);return c>o?u=Fl(l.min,l.max-o,i.min):o>c&&(u=Fl(i.min,i.max-c,l.min)),yn(0,1,u)}function F2(i,l){const u={};return l.min!==void 0&&(u.min=l.min-i.min),l.max!==void 0&&(u.max=l.max-i.min),u}const Pc=.35;function P2(i=Pc){return i===!1?i=0:i===!0&&(i=Pc),{x:Xy(i,"left","right"),y:Xy(i,"top","bottom")}}function Xy(i,l,u){return{min:Ky(i,l),max:Ky(i,u)}}function Ky(i,l){return typeof i=="number"?i:i[l]||0}const W2=new WeakMap;class $2{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=ne(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:u=!1,distanceThreshold:o}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=x=>{u&&this.snapToCursor(as(x).point),this.stopAnimation()},h=(x,T)=>{const{drag:N,dragPropagation:z,onDragStart:q}=this.getProps();if(N&&!z&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MS(N),!this.openDragLock))return;this.latestPointerEvent=x,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),mn(H=>{let K=this.getAxisMotionValue(H).get()||0;if(pn.test(K)){const{projection:X}=this.visualElement;if(X&&X.layout){const J=X.layout.layoutBox[H];J&&(K=ve(J)*(parseFloat(K)/100))}}this.originPoint[H]=K}),q&&jt.update(()=>q(x,T),!1,!0),qc(this.visualElement,"transform");const{animationState:G}=this.visualElement;G&&G.setActive("whileDrag",!0)},m=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T;const{dragPropagation:N,dragDirectionLock:z,onDirectionLock:q,onDrag:G}=this.getProps();if(!N&&!this.openDragLock)return;const{offset:H}=T;if(z&&this.currentDirection===null){this.currentDirection=tA(H),this.currentDirection!==null&&q&&q(this.currentDirection);return}this.updateAxis("x",T.point,H),this.updateAxis("y",T.point,H),this.visualElement.render(),G&&jt.update(()=>G(x,T),!1,!0)},g=(x,T)=>{this.latestPointerEvent=x,this.latestPanInfo=T,this.stop(x,T),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new _g(l,{onSessionStart:d,onStart:h,onMove:m,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:Vg(this.visualElement),element:this.visualElement.current})}stop(l,u){const o=l||this.latestPointerEvent,c=u||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!o)return;const{velocity:h}=c;this.startAnimation(h);const{onDragEnd:m}=this.getProps();m&&jt.postRender(()=>m(o,c))}cancel(){this.isDragging=!1;const{projection:l,animationState:u}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),u&&u.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,u,o){const{drag:c}=this.getProps();if(!o||!Cu(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=Q2(h,this.constraints[l],this.elastic[l])),d.set(h)}resolveConstraints(){const{dragConstraints:l,dragElastic:u}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;l&&zi(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=Z2(o.layoutBox,l):this.constraints=!1,this.elastic=P2(u),c!==this.constraints&&!zi(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&mn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=F2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!zi(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=eT(o,c.root,this.visualElement.getTransformPagePoint());let h=k2(c.layout.layoutBox,d);if(u){const m=u($S(h));this.hasMutatedConstraints=!!m,m&&(h=ag(m))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=mn(v=>{if(!Cu(v,u,this.currentDirection))return;let x=g&&g[v]||{};h&&(x={min:0,max:0});const T=c?200:1e6,N=c?40:1e7,z={type:"inertia",velocity:o?l[v]:0,bounceStiffness:T,bounceDamping:N,timeConstant:750,restDelta:1,restSpeed:10,...d,...x};return this.startAxisValueAnimation(v,z)});return Promise.all(p).then(m)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return qc(this.visualElement,l),o.start(gf(l,o,0,u,this.visualElement,!1))}stopAnimation(){mn(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const u=`_drag${l.toUpperCase()}`,o=this.visualElement.getProps(),c=o[u];return c||this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){mn(u=>{const{drag:o}=this.getProps();if(!Cu(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:m}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Lt(h,m,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!zi(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};mn(h=>{const m=this.getAxisMotionValue(h);if(m&&this.constraints!==!1){const g=m.get();c[h]=J2({min:g,max:g},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),mn(h=>{if(!Cu(h,l,null))return;const m=this.getAxisMotionValue(h),{min:g,max:p}=this.constraints[h];m.set(Lt(g,p,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;W2.set(this.visualElement,this);const l=this.visualElement.current,u=Jl(l,"pointerdown",p=>{const{drag:v,dragListener:x=!0}=this.getProps(),T=p.target,N=T!==l&&zS(T);v&&x&&!N&&this.start(p)});let o;const c=()=>{const{dragConstraints:p}=this.getProps();zi(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),o||(o=I2(l,p.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),jt.read(c);const m=Il(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(mn(x=>{const T=this.getAxisMotionValue(x);T&&(this.originPoint[x]+=p[x].translate,T.set(T.get()+p[x].translate))}),this.visualElement.render())}));return()=>{m(),u(),h(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:u=!1,dragDirectionLock:o=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:h=Pc,dragMomentum:m=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:m}}}function Qy(i){let l=!0;return()=>{if(l){l=!1;return}i()}}function I2(i,l,u){const o=$p(i,Qy(u)),c=$p(l,Qy(u));return()=>{o(),c()}}function Cu(i,l,u){return(l===!0||l===i)&&(u===null||u===i)}function tA(i,l=10){let u=null;return Math.abs(i.y)>l?u="y":Math.abs(i.x)>l&&(u="x"),u}class eA extends ma{constructor(l){super(l),this.removeGroupControls=ke,this.removeListeners=ke,this.controls=new $2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ke}update(){const{dragControls:l}=this.node.getProps(),{dragControls:u}=this.node.prevProps||{};l!==u&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Cc=i=>(l,u)=>{i&&jt.update(()=>i(l,u),!1,!0)};class nA extends ma{constructor(){super(...arguments),this.removePointerDownListener=ke}onPointerDown(l){this.session=new _g(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vg(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Cc(l),onStart:Cc(u),onMove:Cc(o),onEnd:(d,h)=>{delete this.session,c&&jt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=Jl(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 Mc=!1;class aA extends _.Component{componentDidMount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o,layoutId:c}=this.props,{projection:d}=l;d&&(u.group&&u.group.add(d),o&&o.register&&c&&o.register(d),Mc&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zu.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:u,visualElement:o,drag:c,isPresent:d}=this.props,{projection:h}=o;return h&&(h.isPresent=d,l.layoutDependency!==u&&h.setOptions({...h.options,layoutDependency:u}),Mc=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||jt.postRender(()=>{const m=h.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Sf.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;Mc=!0,c&&(c.scheduleCheckAfterUnmount(),u&&u.group&&u.group.remove(c),o&&o.deregister&&o.deregister(c))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function Bg(i){const[l,u]=Cg(),o=_.useContext(Ic);return b.jsx(aA,{...i,layoutGroup:o,switchLayoutGroup:_.useContext(zg),isPresent:l,safeToRemove:u})}const iA={pan:{Feature:nA},drag:{Feature:eA,ProjectionNode:Eg,MeasureLayout:Bg}};function Zy(i,l,u){const{props:o}=i;i.animationState&&o.whileHover&&i.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&jt.postRender(()=>d(l,as(l)))}class lA extends ma{mount(){const{current:l}=this.node;l&&(this.unmount=DS(l,(u,o)=>(Zy(this.node,o,"Start"),c=>Zy(this.node,c,"End"))))}unmount(){}}class sA extends ma{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=ts(Il(this.node.current,"focus",()=>this.onFocus()),Il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ky(i,l,u){const{props:o}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&o.whileTap&&i.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&jt.postRender(()=>d(l,as(l)))}class uA extends ma{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=VS(l,(c,d)=>(ky(this.node,d,"Start"),(h,{success:m})=>ky(this.node,h,m?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:o?.tap===!1})}unmount(){}}const Wc=new WeakMap,wc=new WeakMap,oA=i=>{const l=Wc.get(i.target);l&&l(i)},rA=i=>{i.forEach(oA)};function cA({root:i,...l}){const u=i||document;wc.has(u)||wc.set(u,{});const o=wc.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(rA,{root:i,...l})),o[c]}function fA(i,l,u){const o=cA(l);return Wc.set(i,u),o.observe(i),()=>{Wc.delete(i),o.unobserve(i)}}const hA={some:0,all:1};class dA extends ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps(),{root:u,margin:o,amount:c="some",once:d}=l,h={root:u?u.current:void 0,rootMargin:o,threshold:typeof c=="number"?c:hA[c]},m=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,d&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:x}=this.node.getProps(),T=p?v:x;T&&T(g)};return fA(this.node.current,h,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(mA(l,u))&&this.startObserver()}unmount(){}}function mA({viewport:i={}},{viewport:l={}}={}){return u=>i[u]!==l[u]}const pA={inView:{Feature:dA},tap:{Feature:uA},focus:{Feature:sA},hover:{Feature:lA}},yA={layout:{ProjectionNode:Eg,MeasureLayout:Bg}},gA={...Y2,...pA,...iA,...yA},Jy=_2(gA,U2),vA=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"}],xA={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)"}]},Fy=[{tier:"premium",label:i=>`${i}.fluxy.bot`,badge:"$5",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0},{tier:"at",label:i=>`${i}.at.fluxy.bot`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1}];function bA({models:i,value:l,onChange:u}){const[o,c]=_.useState(!1),d=_.useRef(null);_.useEffect(()=>{if(!o)return;const m=g=>{d.current&&!d.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[o]);const h=i.find(m=>m.id===l);return b.jsxs("div",{className:"relative",ref:d,children:[b.jsxs("button",{type:"button",onClick:()=>c(m=>!m),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:[b.jsx("span",{className:h?"text-white":"text-white/20",children:h?h.label:"Choose a model..."}),b.jsx(fx,{className:`h-4 w-4 text-white/30 transition-transform ${o?"rotate-180":""}`})]}),o&&b.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(m=>b.jsx("button",{onClick:()=>{u(m.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${l===m.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:m.label},m.id))})]})}function EA({onComplete:i,isInitialSetup:l=!1}){const u=l?7:6,[o,c]=_.useState(0),[d,h]=_.useState(""),[m,g]=_.useState("anthropic"),[p,v]=_.useState(""),[x,T]=_.useState(!1),[N,z]=_.useState({anthropic:"idle",openai:"idle"}),[q,G]=_.useState(!1),[H,K]=_.useState(""),[X,J]=_.useState(!1),[Z,nt]=_.useState(),[I,F]=_.useState(!1),[lt,xt]=_.useState(!1),[_t,zt]=_.useState(),[Ot,le]=_.useState(""),[Bt,j]=_.useState(null),[Y,k]=_.useState(""),[ct,dt]=_.useState({}),[A,B]=_.useState("at"),[Q,P]=_.useState(!1),[et,ut]=_.useState(!1),[ht,Kt]=_.useState(""),Dt=_.useRef(null),[pe,pa]=_.useState(null),[ze,Ga]=_.useState(!1),[sn,Xa]=_.useState(!1),[Xi,Qu]=_.useState("admin"),[Re,Ki]=_.useState(""),[ya,Qi]=_.useState(""),[Zu,is]=_.useState(!1),[Ht,ku]=_.useState(!1),[Zi,ls]=_.useState(!1),[Hn,Ju]=_.useState(""),[ki,Ka]=_.useState(""),[Qa,Yn]=_.useState(!1),[he,Je]=_.useState(!1),[Yt,ss]=_.useState(!1),[Fe,us]=_.useState(""),qn=_.useRef(!1),Ve=N[m]==="connected";_.useEffect(()=>{fetch("/api/onboard/status").then(U=>U.json()).then(U=>{U.userName&&h(U.userName),U.handle&&(le(U.handle.username),B(U.handle.tier||"at"),pa({username:U.handle.username,tier:U.handle.tier,url:U.handle.url}),ut(!0),Kt(U.handle.url)),U.portalUser&&Qu(U.portalUser),U.portalConfigured&&ku(!0),U.provider&&g(U.provider),U.model&&v(U.model),U.whisperEnabled&&(ss(!0),us(U.whisperKey||"")),qn.current=!0}).catch(()=>{qn.current=!0})},[]),_.useEffect(()=>{m!=="anthropic"||N.anthropic==="connected"||fetch("/api/auth/claude/status").then(U=>U.json()).then(U=>{U.authenticated&&z(st=>({...st,anthropic:"connected"}))}).catch(()=>{})},[m]),_.useEffect(()=>{m!=="openai"||N.openai==="connected"||fetch("/api/auth/codex/status").then(U=>U.json()).then(U=>{U.authenticated&&z(st=>({...st,openai:"connected"}))}).catch(()=>{})},[m]),_.useEffect(()=>{if(!lt)return;const U=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(xt(!1),z(Pe=>({...Pe,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(U)},[lt]),_.useEffect(()=>{if(Dt.current&&clearTimeout(Dt.current),!qn.current||pe&&et&&Ot===pe.username)return;j(null),k(""),dt({}),ut(!1),Kt("");const U=Ot.trim();if(U){if(U.length<3){j("invalid"),k("At least 3 characters");return}return j("checking"),Dt.current=setTimeout(async()=>{try{const Zt=await(await fetch(`/api/handle/check/${encodeURIComponent(U)}`)).json();if(!Zt.valid)j("invalid"),k(Zt.error);else{const Pe={};for(const We of Zt.handles)Pe[We.tier]=We.available;dt(Pe),j("ready");const on=Fy.find(We=>Pe[We.tier]);on&&!Pe[A]&&B(on.tier)}}catch{j(null)}},400),()=>{Dt.current&&clearTimeout(Dt.current)}}},[Ot]);const Za=U=>{le(U.toLowerCase().replace(/[^a-z0-9-]/g,""))},vn=async()=>{if(!(!Ot||Bt!=="ready"||!ct[A])){P(!0);try{const st=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Ot,tier:A})})).json();st.ok?(ut(!0),Kt(st.url)):(k(st.error||"Registration failed"),j("invalid"))}catch{k("Could not reach server"),j("invalid")}finally{P(!1)}}},ka=async()=>{if(!(!Ot||Bt!=="ready"||!ct[A])){Xa(!0);try{const st=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Ot,tier:A})})).json();st.ok?(ut(!0),Kt(st.url),pa({username:Ot,tier:A,url:st.url}),Ga(!1)):(k(st.error||"Handle change failed"),j("invalid"))}catch{k("Could not reach server"),j("invalid")}finally{Xa(!1)}}},ga=U=>{m==="openai"&&U!=="openai"&<&&(fetch("/api/auth/codex/cancel",{method:"POST"}),xt(!1)),g(U),v(""),G(!1),K(""),nt(void 0),xt(!1),zt(void 0)},Fu=async()=>{nt(void 0);try{const st=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();st.success&&st.authUrl?(window.open(st.authUrl,"_blank"),G(!0)):nt(st.error||"Failed to start authentication")}catch(U){nt(U.message)}},Ji=async()=>{if(H.trim()){J(!0),nt(void 0);try{const st=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:H.trim()})})).json();st.success?z(Zt=>({...Zt,anthropic:"connected"})):nt(st.error||"Code exchange failed")}catch(U){nt(U.message)}finally{J(!1)}}},Fi=async()=>{try{const U=await navigator.clipboard.readText();U&&K(U.trim())}catch{}},va=async()=>{F(!0),nt(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?z(Zt=>({...Zt,anthropic:"connected"})):nt("No active session found. Please authenticate first.")}catch{}finally{F(!1)}},Pu=async()=>{xt(!0),zt(void 0);try{const st=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();st.success&&st.authUrl?window.open(st.authUrl,"_blank"):(xt(!1),zt(st.error||"Failed to start authentication"))}catch(U){xt(!1),zt(U.message)}},os=()=>{xt(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Pi=Re===ya,Wi=Re.length>=6&&Pi,$i=Ht?Re.length===0||Qa&&Wi:Wi,xn=(()=>{switch(o){case 0:return!0;case 1:return d.trim().length>0;case 2:return et;case 3:return $i;case 4:return!!(m&&p&&Ve);case 5:return!0;default:return!1}})(),un=()=>{xn&&o<u-1&&c(U=>U+1)},rs=()=>{o>0&&c(U=>U-1)},_e=U=>{U.key==="Enter"&&xn&&un()},te=async()=>{T(!0);const U={userName:d.trim(),agentName:Ot.trim()||"Fluxy",provider:m,model:p,apiKey:"",whisperEnabled:Yt,whisperKey:Yt?Fe:"",portalUser:Xi.trim(),portalPass:Re};console.log("[OnboardWizard] handleComplete called"),console.log("[OnboardWizard] inIframe:",window.parent!==window,"origin:",window.location.origin,"href:",window.location.href);try{const st=window.parent!==window;let Zt;st?(console.log("[OnboardWizard] Using XHR for POST (iframe context)"),Zt=await new Promise((on,We)=>{const se=new XMLHttpRequest;se.open("POST","/api/onboard"),se.setRequestHeader("Content-Type","application/json"),se.onload=()=>on(new Response(se.responseText,{status:se.status,statusText:se.statusText})),se.onerror=()=>We(new Error("XHR network error")),se.ontimeout=()=>We(new Error("XHR timeout")),se.timeout=15e3,se.send(JSON.stringify(U))})):Zt=await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(U)}),console.log("[OnboardWizard] POST /api/onboard response:",Zt.status,Zt.statusText);const Pe=await Zt.json().catch(()=>null);console.log("[OnboardWizard] response body:",Pe),l?(T(!1),c(6)):i()}catch(st){console.error("[OnboardWizard] Onboard failed:",st),T(!1)}},Qt="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";return b.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[b.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),b.jsxs(Jy.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:[b.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:u},(U,st)=>b.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${st===o?"w-7 bg-gradient-brand":st<o?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},st))}),b.jsx(c2,{mode:"wait",children:b.jsxs(Jy.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:[o===0&&b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),b.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),b.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."}),b.jsxs("button",{onClick:un,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",b.jsx(dn,{className:"h-4 w-4"})]})]}),o===1&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),b.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),b.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[b.jsx("input",{type:"text",value:d,onChange:U=>h(U.target.value),onKeyDown:_e,placeholder:"Enter your name",autoFocus:!0,className:Qt+" flex-1"}),b.jsx("button",{onClick:un,disabled:!xn,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:b.jsx(dn,{className:"h-5 w-5"})})]})]}),o===2&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),b.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."}),pe&&et&&!ze&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Oi,{className:"h-4 w-4 text-emerald-400"}),b.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),b.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:ht})]}),b.jsxs("div",{className:"flex gap-2 mt-4",children:[b.jsxs("button",{onClick:un,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",b.jsx(dn,{className:"h-4 w-4"})]}),b.jsx("button",{onClick:()=>{Ga(!0),ut(!1),le(""),j(null),dt({})},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"})]})]}),ze&&!et&&b.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[b.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),b.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",b.jsx("span",{className:"font-mono",children:pe?.url})," will be released and become available for others."]})]}),(!pe||ze||!et)&&!(pe&&et&&!ze)&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"relative mt-5",children:[b.jsx("input",{type:"text",value:Ot,onChange:U=>Za(U.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:et,className:Qt+" pr-10 font-mono"+(et?" opacity-50":"")}),Bt&&Ot.length>0&&!et&&b.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[Bt==="checking"&&b.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),Bt==="invalid"&&b.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:b.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),Bt==="invalid"&&Y&&b.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:Y}),Bt==="ready"&&Ot.length>0&&!et&&b.jsx("div",{className:"space-y-2 mt-4",children:Fy.map(U=>{const Zt=ct[U.tier]===!1;return b.jsxs("button",{onClick:()=>!Zt&&B(U.tier),disabled:Zt,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${Zt?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":A===U.tier?U.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:[b.jsx("span",{className:"font-mono text-[13px] text-white/70",children:U.label(Ot)}),Zt?b.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"}):b.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${U.badgeCls}`,children:U.badge})]},U.tier)})}),et&&b.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Oi,{className:"h-4 w-4 text-emerald-400"}),b.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),b.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:ht})]}),Bt==="ready"&&ct[A]&&Ot.length>0&&!et&&b.jsx("button",{onClick:ze?ka:vn,disabled:Q||sn,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:Q||sn?b.jsxs(b.Fragment,{children:[b.jsx(ji,{className:"h-4 w-4 animate-spin"}),ze?"Changing...":"Claiming..."]}):b.jsxs(b.Fragment,{children:[ze?"Change Handle":"Claim & Continue",b.jsx(dn,{className:"h-4 w-4"})]})}),et&&b.jsxs("button",{onClick:un,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",b.jsx(dn,{className:"h-4 w-4"})]}),ze&&!et&&b.jsx("button",{onClick:()=>{Ga(!1),le(pe.username),ut(!0),Kt(pe.url),B(pe.tier),j(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),o===3&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Set a password"}),b.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."}),Ht&&b.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:b.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."})}),Ht&&b.jsxs("div",{className:"mt-5",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("input",{type:"password",value:Hn,onChange:U=>{Ju(U.target.value),Ka(""),Yn(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",autoFocus:!0,className:Qt+" flex-1"}),Hn.length>0&&!Qa&&b.jsx("button",{onClick:async()=>{Je(!0),Ka("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:Hn})})).json()).valid?Yn(!0):Ka("Incorrect password")}catch{Ka("Could not verify")}finally{Je(!1)}},disabled:he,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:he?b.jsx(ji,{className:"h-4 w-4 animate-spin"}):"Verify"}),Qa&&b.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:b.jsx(Oi,{className:"h-4 w-4 text-emerald-400"})})]}),ki&&b.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:ki})]}),(!Ht||Qa)&&b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Ht?"mt-3":"mt-5",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:Ht?"New password":"Password"}),b.jsx("input",{type:"password",value:Re,onChange:U=>Ki(U.target.value),placeholder:"••••••••",autoComplete:"new-password",autoFocus:!Ht,onKeyDown:_e,className:Qt}),Re.length>0&&Re.length<6&&b.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),b.jsxs("div",{className:"mt-3",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:Ht?"Confirm new password":"Confirm password"}),b.jsx("input",{type:"password",value:ya,onChange:U=>Qi(U.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:_e,className:Qt}),ya.length>0&&!Pi&&b.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),b.jsxs("button",{onClick:un,disabled:!xn,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",b.jsx(dn,{className:"h-4 w-4"})]})]}),o===4&&b.jsxs("div",{children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),b.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."}),b.jsx("div",{className:"flex gap-2.5 mt-4",children:vA.map(U=>b.jsxs("button",{onClick:()=>ga(U.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${m===U.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[b.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[U.icon?b.jsx("img",{src:U.icon,alt:U.name,className:"w-8 h-8 rounded-lg"}):b.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"}),b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"text-[13px] font-medium text-white",children:U.name}),b.jsx("div",{className:"text-[10px] text-white/30",children:U.subtitle})]})]}),N[U.id]==="connected"?b.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:b.jsx(Oi,{className:"h-2.5 w-2.5 text-emerald-400"})}):m===U.id?b.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},U.id))}),b.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),m==="anthropic"&&b.jsxs("div",{className:"space-y-2.5",children:[Ve&&b.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),!Ve&&b.jsxs(b.Fragment,{children:[Z&&b.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-red-400/90 text-[12px]",children:Z})}),b.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((U,st)=>b.jsxs("div",{className:"flex items-start gap-2",children:[b.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:st+1}),b.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:U})]},st))}),b.jsx("button",{onClick:Fu,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:q?b.jsxs(b.Fragment,{children:[b.jsx(jp,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):b.jsxs(b.Fragment,{children:["Authenticate with Anthropic",b.jsx(dn,{className:"h-3.5 w-3.5 opacity-60"})]})}),b.jsxs("div",{className:"relative",children:[b.jsx("input",{type:"text",value:H,onChange:U=>K(U.target.value),onKeyDown:U=>U.key==="Enter"&&Ji(),placeholder:"Paste your code here...",className:"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"+" pr-10 font-mono"}),b.jsx("button",{onClick:Fi,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:b.jsx(dx,{className:"h-3.5 w-3.5"})})]}),b.jsx("button",{onClick:Ji,disabled:!H.trim()||X,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:X?b.jsxs(b.Fragment,{children:[b.jsx(ji,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),b.jsxs("button",{onClick:va,disabled:I,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:[I?b.jsx(ji,{className:"h-3 w-3 animate-spin"}):b.jsx(Ax,{className:"h-3 w-3"}),I?"Checking...":"I'm already authenticated"]})]})]}),m==="openai"&&b.jsxs("div",{className:"space-y-2.5",children:[Ve&&b.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),!Ve&&b.jsxs(b.Fragment,{children:[_t&&b.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:b.jsx("p",{className:"text-red-400/90 text-[12px]",children:_t})}),b.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((U,st)=>b.jsxs("div",{className:"flex items-start gap-2",children:[b.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:st+1}),b.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:U})]},st))}),b.jsx("button",{onClick:Pu,disabled:lt,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:lt?b.jsxs(b.Fragment,{children:[b.jsx(ji,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):b.jsxs(b.Fragment,{children:["Authenticate with ChatGPT",b.jsx(dn,{className:"h-3.5 w-3.5 opacity-60"})]})}),lt&&b.jsx("button",{onClick:os,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),Ve&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),b.jsx(bA,{models:xA[m]||[],value:p,onChange:v})]}),Ve&&b.jsxs("button",{onClick:un,disabled:!xn,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",b.jsx(dn,{className:"h-4 w-4"})]})]}),o===5&&b.jsxs("div",{children:[b.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[b.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),b.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"})]}),b.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),b.jsx("button",{onClick:()=>ss(U=>!U),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Yt?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:b.jsxs("div",{className:"flex items-center gap-3.5",children:[b.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),b.jsxs("div",{className:"flex-1",children:[b.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),b.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."})]}),b.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Yt?"bg-gradient-brand":"bg-white/[0.08]"}`,children:b.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Yt?"translate-x-[18px]":"translate-x-0"}`})})]})}),Yt&&b.jsxs("div",{className:"mt-3",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),b.jsx("input",{type:"password",value:Fe,onChange:U=>us(U.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:Qt+" font-mono text-[13px]"}),Fe.length>0&&!Fe.startsWith("sk-")&&b.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Fe.length>0&&Fe.startsWith("sk-")&&Fe.length<20&&b.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),b.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:[b.jsx(Sx,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),b.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."})]})]}),b.jsx("button",{onClick:te,disabled:x||Yt&&(!Fe.startsWith("sk-")||Fe.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:x?b.jsxs(b.Fragment,{children:[b.jsx(ji,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):b.jsxs(b.Fragment,{children:["Complete Setup",b.jsx(dn,{className:"h-4 w-4"})]})}),!Yt&&b.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]}),o===6&&l&&b.jsxs("div",{className:"flex flex-col items-center text-center",children:[b.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:b.jsx(Oi,{className:"h-8 w-8 text-emerald-400"})}),b.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"All Set!"}),b.jsx("p",{className:"text-white/40 text-[13px] mt-2 leading-relaxed max-w-[340px]",children:"Your agent is live and ready. From now on, access it using your custom URL below."}),b.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:[b.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:ht}),b.jsx("button",{onClick:()=>{const U=ht.startsWith("http")?ht:`https://${ht}`;navigator.clipboard.writeText(U),is(!0),setTimeout(()=>is(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Zu?b.jsx(Oi,{className:"h-4 w-4 text-emerald-400"}):b.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[b.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),b.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),b.jsxs("div",{className:"w-full mt-3",children:[b.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block text-left",children:"Your password"}),b.jsxs("div",{className:"flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[b.jsx("span",{className:"font-mono text-[13px] text-white/70 truncate flex-1 text-left",children:Zi?Re:"•".repeat(Math.max(Re.length,8))}),b.jsx("button",{onClick:()=>ls(U=>!U),className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Zi?b.jsx(yx,{className:"h-4 w-4"}):b.jsx(vx,{className:"h-4 w-4"})})]})]}),b.jsxs("button",{onClick:()=>{const U=ht.startsWith("http")?ht:`https://${ht}`;(window.top||window).location.href=U},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:["Go to your agent",b.jsx(jp,{className:"h-4 w-4"})]}),b.jsx("p",{className:"text-white/20 text-[11px] mt-3 leading-relaxed",children:"You'll be redirected to your custom URL."})]})]},o)}),o>0&&o<u-1&&!(o===6&&l)&&b.jsx("div",{className:"px-8 pb-5 -mt-3",children:b.jsx("button",{onClick:rs,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}export{dn as A,ji as L,Sx as M,EA as O,SA as R,c2 as a,TA as b,gn as c,Py as g,b as j,Jy as m,_ as r};
|