fluxy-bot 0.2.36 → 0.2.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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 Ry(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Rr={exports:{}},sl={};var np;function Y1(){if(np)return sl;np=1;var a=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 y in c)y!=="key"&&(d[y]=c[y])}else d=c;return c=d.ref,{$$typeof:a,type:o,key:h,ref:c!==void 0?c:null,props:d}}return sl.Fragment=l,sl.jsx=u,sl.jsxs=u,sl}var ip;function q1(){return ip||(ip=1,Rr.exports=Y1()),Rr.exports}var gn=q1(),Or={exports:{}},nt={};var ap;function G1(){if(ap)return nt;ap=1;var a=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"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,w={};function L(E,N,G){this.props=E,this.context=N,this.refs=w,this.updater=G||V}L.prototype.isReactComponent={},L.prototype.setState=function(E,N){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,N,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function q(){}q.prototype=L.prototype;function Y(E,N,G){this.props=E,this.context=N,this.refs=w,this.updater=G||V}var K=Y.prototype=new q;K.constructor=Y,j(K,L.prototype),K.isPureReactComponent=!0;var Q=Array.isArray;function et(){}var $={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function it(E,N,G){var F=G.ref;return{$$typeof:a,type:E,key:N,ref:F!==void 0?F:null,props:G}}function Dt(E,N){return it(E.type,N,E.props)}function Bt(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function jt(E){var N={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(G){return N[G]})}var He=/\/+/g;function Me(E,N){return typeof E=="object"&&E!==null&&E.key!=null?jt(""+E.key):N.toString(36)}function se(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(et,et):(E.status="pending",E.then(function(N){E.status==="pending"&&(E.status="fulfilled",E.value=N)},function(N){E.status==="pending"&&(E.status="rejected",E.reason=N)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function _(E,N,G,F,at){var ut=typeof E;(ut==="undefined"||ut==="boolean")&&(E=null);var vt=!1;if(E===null)vt=!0;else switch(ut){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(E.$$typeof){case a:case l:vt=!0;break;case v:return vt=E._init,_(vt(E._payload),N,G,F,at)}}if(vt)return at=at(E),vt=F===""?"."+Me(E,0):F,Q(at)?(G="",vt!=null&&(G=vt.replace(He,"$&/")+"/"),_(at,N,G,"",function(da){return da})):at!=null&&(Bt(at)&&(at=Dt(at,G+(at.key==null||E&&E.key===at.key?"":(""+at.key).replace(He,"$&/")+"/")+vt)),N.push(at)),1;vt=0;var ne=F===""?".":F+":";if(Q(E))for(var Nt=0;Nt<E.length;Nt++)F=E[Nt],ut=ne+Me(F,Nt),vt+=_(F,N,G,ut,at);else if(Nt=R(E),typeof Nt=="function")for(E=Nt.call(E),Nt=0;!(F=E.next()).done;)F=F.value,ut=ne+Me(F,Nt++),vt+=_(F,N,G,ut,at);else if(ut==="object"){if(typeof E.then=="function")return _(se(E),N,G,F,at);throw N=String(E),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return vt}function H(E,N,G){if(E==null)return E;var F=[],at=0;return _(E,F,"","",function(ut){return N.call(G,ut,at++)}),F}function W(E){if(E._status===-1){var N=E._result;N=N(),N.then(function(G){(E._status===0||E._status===-1)&&(E._status=1,E._result=G)},function(G){(E._status===0||E._status===-1)&&(E._status=2,E._result=G)}),E._status===-1&&(E._status=0,E._result=N)}if(E._status===1)return E._result.default;throw E._result}var ct=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},mt={map:H,forEach:function(E,N,G){H(E,function(){N.apply(this,arguments)},G)},count:function(E){var N=0;return H(E,function(){N++}),N},toArray:function(E){return H(E,function(N){return N})||[]},only:function(E){if(!Bt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return nt.Activity=S,nt.Children=mt,nt.Component=L,nt.Fragment=u,nt.Profiler=c,nt.PureComponent=Y,nt.StrictMode=o,nt.Suspense=g,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,nt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return $.H.useMemoCache(E)}},nt.cache=function(E){return function(){return E.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(E,N,G){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var F=j({},E.props),at=E.key;if(N!=null)for(ut in N.key!==void 0&&(at=""+N.key),N)!k.call(N,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&N.ref===void 0||(F[ut]=N[ut]);var ut=arguments.length-2;if(ut===1)F.children=G;else if(1<ut){for(var vt=Array(ut),ne=0;ne<ut;ne++)vt[ne]=arguments[ne+2];F.children=vt}return it(E.type,at,F)},nt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},nt.createElement=function(E,N,G){var F,at={},ut=null;if(N!=null)for(F in N.key!==void 0&&(ut=""+N.key),N)k.call(N,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(at[F]=N[F]);var vt=arguments.length-2;if(vt===1)at.children=G;else if(1<vt){for(var ne=Array(vt),Nt=0;Nt<vt;Nt++)ne[Nt]=arguments[Nt+2];at.children=ne}if(E&&E.defaultProps)for(F in vt=E.defaultProps,vt)at[F]===void 0&&(at[F]=vt[F]);return it(E,ut,at)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(E){return{$$typeof:y,render:E}},nt.isValidElement=Bt,nt.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:W}},nt.memo=function(E,N){return{$$typeof:m,type:E,compare:N===void 0?null:N}},nt.startTransition=function(E){var N=$.T,G={};$.T=G;try{var F=E(),at=$.S;at!==null&&at(G,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(et,ct)}catch(ut){ct(ut)}finally{N!==null&&G.types!==null&&(N.types=G.types),$.T=N}},nt.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},nt.use=function(E){return $.H.use(E)},nt.useActionState=function(E,N,G){return $.H.useActionState(E,N,G)},nt.useCallback=function(E,N){return $.H.useCallback(E,N)},nt.useContext=function(E){return $.H.useContext(E)},nt.useDebugValue=function(){},nt.useDeferredValue=function(E,N){return $.H.useDeferredValue(E,N)},nt.useEffect=function(E,N){return $.H.useEffect(E,N)},nt.useEffectEvent=function(E){return $.H.useEffectEvent(E)},nt.useId=function(){return $.H.useId()},nt.useImperativeHandle=function(E,N,G){return $.H.useImperativeHandle(E,N,G)},nt.useInsertionEffect=function(E,N){return $.H.useInsertionEffect(E,N)},nt.useLayoutEffect=function(E,N){return $.H.useLayoutEffect(E,N)},nt.useMemo=function(E,N){return $.H.useMemo(E,N)},nt.useOptimistic=function(E,N){return $.H.useOptimistic(E,N)},nt.useReducer=function(E,N,G){return $.H.useReducer(E,N,G)},nt.useRef=function(E){return $.H.useRef(E)},nt.useState=function(E){return $.H.useState(E)},nt.useSyncExternalStore=function(E,N,G){return $.H.useSyncExternalStore(E,N,G)},nt.useTransition=function(){return $.H.useTransition()},nt.version="19.2.4",nt}var lp;function Ac(){return lp||(lp=1,Or.exports=G1()),Or.exports}var X=Ac();const W2=Ry(X);var Vr={exports:{}},ul={},_r={exports:{}},Ur={};var sp;function X1(){return sp||(sp=1,(function(a){function l(_,H){var W=_.length;_.push(H);t:for(;0<W;){var ct=W-1>>>1,mt=_[ct];if(0<c(mt,H))_[ct]=H,_[W]=mt,W=ct;else break t}}function u(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var H=_[0],W=_.pop();if(W!==H){_[0]=W;t:for(var ct=0,mt=_.length,E=mt>>>1;ct<E;){var N=2*(ct+1)-1,G=_[N],F=N+1,at=_[F];if(0>c(G,W))F<mt&&0>c(at,G)?(_[ct]=at,_[F]=W,ct=F):(_[ct]=G,_[N]=W,ct=N);else if(F<mt&&0>c(at,W))_[ct]=at,_[F]=W,ct=F;else break t}}return H}function c(_,H){var W=_.sortIndex-H.sortIndex;return W!==0?W:_.id-H.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();a.unstable_now=function(){return h.now()-y}}var g=[],m=[],v=1,S=null,b=3,R=!1,V=!1,j=!1,w=!1,L=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function K(_){for(var H=u(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=_)o(m),H.sortIndex=H.expirationTime,l(g,H);else break;H=u(m)}}function Q(_){if(j=!1,K(_),!V)if(u(g)!==null)V=!0,et||(et=!0,jt());else{var H=u(m);H!==null&&se(Q,H.startTime-_)}}var et=!1,$=-1,k=5,it=-1;function Dt(){return w?!0:!(a.unstable_now()-it<k)}function Bt(){if(w=!1,et){var _=a.unstable_now();it=_;var H=!0;try{t:{V=!1,j&&(j=!1,q($),$=-1),R=!0;var W=b;try{e:{for(K(_),S=u(g);S!==null&&!(S.expirationTime>_&&Dt());){var ct=S.callback;if(typeof ct=="function"){S.callback=null,b=S.priorityLevel;var mt=ct(S.expirationTime<=_);if(_=a.unstable_now(),typeof mt=="function"){S.callback=mt,K(_),H=!0;break e}S===u(g)&&o(g),K(_)}else o(g);S=u(g)}if(S!==null)H=!0;else{var E=u(m);E!==null&&se(Q,E.startTime-_),H=!1}}break t}finally{S=null,b=W,R=!1}H=void 0}}finally{H?jt():et=!1}}}var jt;if(typeof Y=="function")jt=function(){Y(Bt)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Me=He.port2;He.port1.onmessage=Bt,jt=function(){Me.postMessage(null)}}else jt=function(){L(Bt,0)};function se(_,H){$=L(function(){_(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(_){switch(b){case 1:case 2:case 3:var H=3;break;default:H=b}var W=b;b=H;try{return _()}finally{b=W}},a.unstable_requestPaint=function(){w=!0},a.unstable_runWithPriority=function(_,H){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var W=b;b=_;try{return H()}finally{b=W}},a.unstable_scheduleCallback=function(_,H,W){var ct=a.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ct+W:ct):W=ct,_){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=W+mt,_={id:v++,callback:H,priorityLevel:_,startTime:W,expirationTime:mt,sortIndex:-1},W>ct?(_.sortIndex=W,l(m,_),u(g)===null&&_===u(m)&&(j?(q($),$=-1):j=!0,se(Q,W-ct))):(_.sortIndex=mt,l(g,_),V||R||(V=!0,et||(et=!0,jt()))),_},a.unstable_shouldYield=Dt,a.unstable_wrapCallback=function(_){var H=b;return function(){var W=b;b=H;try{return _.apply(this,arguments)}finally{b=W}}}})(Ur)),Ur}var up;function Q1(){return up||(up=1,_r.exports=X1()),_r.exports}var Br={exports:{}},te={};var op;function Z1(){if(op)return te;op=1;var a=Ac();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function 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,m,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:g,containerInfo:m,implementation:v}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return te.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,te.createPortal=function(g,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return d(g,m,null,v)},te.flushSync=function(g){var m=h.T,v=o.p;try{if(h.T=null,o.p=2,g)return g()}finally{h.T=m,o.p=v,o.d.f()}},te.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},te.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},te.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var v=m.as,S=y(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,R=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:R}):v==="script"&&o.d.X(g,{crossOrigin:S,integrity:b,fetchPriority:R,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},te.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=y(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(g)},te.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,S=y(v,m.crossOrigin);o.d.L(g,v,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},te.preloadModule=function(g,m){if(typeof g=="string")if(m){var v=y(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(g)},te.requestFormReset=function(g){o.d.r(g)},te.unstable_batchedUpdates=function(g,m){return g(m)},te.useFormState=function(g,m,v){return h.H.useFormState(g,m,v)},te.useFormStatus=function(){return h.H.useHostTransitionStatus()},te.version="19.2.4",te}var rp;function K1(){if(rp)return Br.exports;rp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Br.exports=Z1(),Br.exports}var cp;function J1(){if(cp)return ul;cp=1;var a=Q1(),l=Ac(),u=K1();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 y(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 m(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,i=e;;){var s=n.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===n)return g(s),t;if(r===i)return g(s),e;r=r.sibling}throw Error(o(188))}if(n.return!==i.return)n=s,i=r;else{for(var f=!1,p=s.child;p;){if(p===n){f=!0,n=s,i=r;break}if(p===i){f=!0,i=s,n=r;break}p=p.sibling}if(!f){for(p=r.child;p;){if(p===n){f=!0,n=r,i=s;break}if(p===i){f=!0,i=r,n=s;break}p=p.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==i)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 S=Object.assign,b=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),it=Symbol.for("react.activity"),Dt=Symbol.for("react.memo_cache_sentinel"),Bt=Symbol.iterator;function jt(t){return t===null||typeof t!="object"?null:(t=Bt&&t[Bt]||t["@@iterator"],typeof t=="function"?t:null)}var He=Symbol.for("react.client.reference");function Me(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===He?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case L:return"Profiler";case w:return"StrictMode";case Q:return"Suspense";case et:return"SuspenseList";case it:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case Y:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case K:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:Me(t.type)||"Memo";case k:e=t._payload,t=t._init;try{return Me(t(e))}catch{}}return null}var se=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},ct=[],mt=-1;function E(t){return{current:t}}function N(t){0>mt||(t.current=ct[mt],ct[mt]=null,mt--)}function G(t,e){mt++,ct[mt]=t.current,t.current=e}var F=E(null),at=E(null),ut=E(null),vt=E(null);function ne(t,e){switch(G(ut,e),G(at,t),G(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Dm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Dm(e),t=xm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(F),G(F,t)}function Nt(){N(F),N(at),N(ut)}function da(t){t.memoizedState!==null&&G(vt,t);var e=F.current,n=xm(e,t.type);e!==n&&(G(at,t),G(F,n))}function El(t){at.current===t&&(N(F),N(at)),vt.current===t&&(N(vt),nl._currentValue=W)}var cu,tf;function kn(t){if(cu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);cu=e&&e[1]||"",tf=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+cu+t+tf}var fu=!1;function hu(t,e){if(!t||fu)return"";fu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(z){var C=z}Reflect.construct(t,[],B)}else{try{B.call()}catch(z){C=z}t.call(B.prototype)}}else{try{throw Error()}catch(z){C=z}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),f=r[0],p=r[1];if(f&&p){var T=f.split(`
4
- `),x=p.split(`
5
- `);for(s=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;s<x.length&&!x[s].includes("DetermineComponentFrameRoot");)s++;if(i===T.length||s===x.length)for(i=T.length-1,s=x.length-1;1<=i&&0<=s&&T[i]!==x[s];)s--;for(;1<=i&&0<=s;i--,s--)if(T[i]!==x[s]){if(i!==1||s!==1)do if(i--,s--,0>s||T[i]!==x[s]){var O=`
6
- `+T[i].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=i&&0<=s);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?kn(n):""}function g0(t,e){switch(t.tag){case 26:case 27:case 5:return kn(t.type);case 16:return kn("Lazy");case 13:return t.child!==e&&e!==null?kn("Suspense Fallback"):kn("Suspense");case 19:return kn("SuspenseList");case 0:case 15:return hu(t.type,!1);case 11:return hu(t.type.render,!1);case 1:return hu(t.type,!0);case 31:return kn("Activity");default:return""}}function ef(t){try{var e="",n=null;do e+=g0(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
7
- Error generating stack: `+i.message+`
8
- `+i.stack}}var du=Object.prototype.hasOwnProperty,mu=a.unstable_scheduleCallback,pu=a.unstable_cancelCallback,v0=a.unstable_shouldYield,S0=a.unstable_requestPaint,me=a.unstable_now,T0=a.unstable_getCurrentPriorityLevel,nf=a.unstable_ImmediatePriority,af=a.unstable_UserBlockingPriority,Ml=a.unstable_NormalPriority,b0=a.unstable_LowPriority,lf=a.unstable_IdlePriority,A0=a.log,E0=a.unstable_setDisableYieldValue,ma=null,pe=null;function Sn(t){if(typeof A0=="function"&&E0(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(ma,t)}catch{}}var ye=Math.clz32?Math.clz32:x0,M0=Math.log,D0=Math.LN2;function x0(t){return t>>>=0,t===0?32:31-(M0(t)/D0|0)|0}var Dl=256,xl=262144,Cl=4194304;function Fn(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 zl(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var s=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=i&134217727;return p!==0?(i=p&~r,i!==0?s=Fn(i):(f&=p,f!==0?s=Fn(f):n||(n=p&~t,n!==0&&(s=Fn(n))))):(p=i&~r,p!==0?s=Fn(p):f!==0?s=Fn(f):n||(n=i&~t,n!==0&&(s=Fn(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 pa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function C0(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 sf(){var t=Cl;return Cl<<=1,(Cl&62914560)===0&&(Cl=4194304),t}function yu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ya(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function z0(t,e,n,i,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 p=t.entanglements,T=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var O=31-ye(n),B=1<<O;p[O]=0,T[O]=-1;var C=x[O];if(C!==null)for(x[O]=null,O=0;O<C.length;O++){var z=C[O];z!==null&&(z.lane&=-536870913)}n&=~B}i!==0&&uf(t,i,0),r!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function uf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-ye(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function of(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-ye(n),s=1<<i;s&e|t[i]&e&&(t[i]|=e),n&=~s}}function rf(t,e){var n=e&-e;return n=(n&42)!==0?1:gu(n),(n&(t.suspendedLanes|e))!==0?0:n}function gu(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 vu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function cf(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Fm(t.type))}function ff(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var Tn=Math.random().toString(36).slice(2),kt="__reactFiber$"+Tn,ue="__reactProps$"+Tn,vi="__reactContainer$"+Tn,Su="__reactEvents$"+Tn,R0="__reactListeners$"+Tn,O0="__reactHandles$"+Tn,hf="__reactResources$"+Tn,ga="__reactMarker$"+Tn;function Tu(t){delete t[kt],delete t[ue],delete t[Su],delete t[R0],delete t[O0]}function Si(t){var e=t[kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[vi]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Um(t);t!==null;){if(n=t[kt])return n;t=Um(t)}return e}t=n,n=t.parentNode}return null}function Ti(t){if(t=t[kt]||t[vi]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function va(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function bi(t){var e=t[hf];return e||(e=t[hf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Kt(t){t[ga]=!0}var df=new Set,mf={};function Wn(t,e){Ai(t,e),Ai(t+"Capture",e)}function Ai(t,e){for(mf[t]=e,t=0;t<e.length;t++)df.add(e[t])}var V0=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]*$"),pf={},yf={};function _0(t){return du.call(yf,t)?!0:du.call(pf,t)?!1:V0.test(t)?yf[t]=!0:(pf[t]=!0,!1)}function Rl(t,e,n){if(_0(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ol(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 $e(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function De(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function gf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function U0(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,r=i.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:i.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function bu(t){if(!t._valueTracker){var e=gf(t)?"checked":"value";t._valueTracker=U0(t,e,""+t[e])}}function vf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=gf(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Vl(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 B0=/[\n"\\]/g;function xe(t){return t.replace(B0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Au(t,e,n,i,s,r,f,p){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=""+De(e)):t.value!==""+De(e)&&(t.value=""+De(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Eu(t,f,De(e)):n!=null?Eu(t,f,De(n)):i!=null&&t.removeAttribute("value"),s==null&&r!=null&&(t.defaultChecked=!!r),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+De(p):t.removeAttribute("name")}function Sf(t,e,n,i,s,r,f,p){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)){bu(t);return}n=n!=null?""+De(n):"",e=e!=null?""+De(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=p?t.checked:!!i,t.defaultChecked=!!i,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),bu(t)}function Eu(t,e,n){e==="number"&&Vl(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Ei(t,e,n,i){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&&i&&(t[n].defaultSelected=!0)}else{for(n=""+De(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,i&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Tf(t,e,n){if(e!=null&&(e=""+De(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+De(n):""}function bf(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(o(92));if(se(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=De(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),bu(t)}function Mi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var N0=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 Af(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||N0.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Ef(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var s in e)i=e[s],e.hasOwnProperty(s)&&n[s]!==i&&Af(t,s,i)}else for(var r in e)e.hasOwnProperty(r)&&Af(t,r,e[r])}function Mu(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 L0=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"]]),H0=/^[\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 _l(t){return H0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var Du=null;function xu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Di=null,xi=null;function Mf(t){var e=Ti(t);if(e&&(t=e.stateNode)){var n=t[ue]||null;t:switch(t=e.stateNode,e.type){case"input":if(Au(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="'+xe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var s=i[ue]||null;if(!s)throw Error(o(90));Au(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&vf(i)}break t;case"textarea":Tf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Ei(t,!!n.multiple,e,!1)}}}var Cu=!1;function Df(t,e,n){if(Cu)return t(e,n);Cu=!0;try{var i=t(e);return i}finally{if(Cu=!1,(Di!==null||xi!==null)&&(Ss(),Di&&(e=Di,t=xi,xi=Di=null,Mf(e),t)))for(e=0;e<t.length;e++)Mf(t[e])}}function Sa(t,e){var n=t.stateNode;if(n===null)return null;var i=n[ue]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;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"),zu=!1;if(tn)try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){zu=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{zu=!1}var bn=null,Ru=null,Ul=null;function xf(){if(Ul)return Ul;var t,e=Ru,n=e.length,i,s="value"in bn?bn.value:bn.textContent,r=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(i=1;i<=f&&e[n-i]===s[r-i];i++);return Ul=s.slice(t,1<i?1-i:void 0)}function Bl(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 Nl(){return!0}function Cf(){return!1}function oe(t){function e(n,i,s,r,f){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(n=t[p],this[p]=n?n(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Nl:Cf,this.isPropagationStopped=Cf,this}return S(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=Nl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nl)},persist:function(){},isPersistent:Nl}),e}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ll=oe(Pn),ba=S({},Pn,{view:0,detail:0}),j0=oe(ba),Ou,Vu,Aa,Hl=S({},ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uu,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!==Aa&&(Aa&&t.type==="mousemove"?(Ou=t.screenX-Aa.screenX,Vu=t.screenY-Aa.screenY):Vu=Ou=0,Aa=t),Ou)},movementY:function(t){return"movementY"in t?t.movementY:Vu}}),zf=oe(Hl),w0=S({},Hl,{dataTransfer:0}),Y0=oe(w0),q0=S({},ba,{relatedTarget:0}),_u=oe(q0),G0=S({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),X0=oe(G0),Q0=S({},Pn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Z0=oe(Q0),K0=S({},Pn,{data:0}),Rf=oe(K0),J0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k0={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"},F0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=F0[t])?!!e[t]:!1}function Uu(){return W0}var P0=S({},ba,{key:function(t){if(t.key){var e=J0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Bl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?k0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uu,charCode:function(t){return t.type==="keypress"?Bl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$0=oe(P0),I0=S({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=oe(I0),tv=S({},ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uu}),ev=oe(tv),nv=S({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),iv=oe(nv),av=S({},Hl,{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}),lv=oe(av),sv=S({},Pn,{newState:0,oldState:0}),uv=oe(sv),ov=[9,13,27,32],Bu=tn&&"CompositionEvent"in window,Ea=null;tn&&"documentMode"in document&&(Ea=document.documentMode);var rv=tn&&"TextEvent"in window&&!Ea,Vf=tn&&(!Bu||Ea&&8<Ea&&11>=Ea),_f=" ",Uf=!1;function Bf(t,e){switch(t){case"keyup":return ov.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function cv(t,e){switch(t){case"compositionend":return Nf(e);case"keypress":return e.which!==32?null:(Uf=!0,_f);case"textInput":return t=e.data,t===_f&&Uf?null:t;default:return null}}function fv(t,e){if(Ci)return t==="compositionend"||!Bu&&Bf(t,e)?(t=xf(),Ul=Ru=bn=null,Ci=!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 Vf&&e.locale!=="ko"?null:e.data;default:return null}}var hv={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 Lf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!hv[t.type]:e==="textarea"}function Hf(t,e,n,i){Di?xi?xi.push(i):xi=[i]:Di=i,e=xs(e,"onChange"),0<e.length&&(n=new Ll("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Ma=null,Da=null;function dv(t){Sm(t,0)}function jl(t){var e=va(t);if(vf(e))return t}function jf(t,e){if(t==="change")return e}var wf=!1;if(tn){var Nu;if(tn){var Lu="oninput"in document;if(!Lu){var Yf=document.createElement("div");Yf.setAttribute("oninput","return;"),Lu=typeof Yf.oninput=="function"}Nu=Lu}else Nu=!1;wf=Nu&&(!document.documentMode||9<document.documentMode)}function qf(){Ma&&(Ma.detachEvent("onpropertychange",Gf),Da=Ma=null)}function Gf(t){if(t.propertyName==="value"&&jl(Da)){var e=[];Hf(e,Da,t,xu(t)),Df(dv,e)}}function mv(t,e,n){t==="focusin"?(qf(),Ma=e,Da=n,Ma.attachEvent("onpropertychange",Gf)):t==="focusout"&&qf()}function pv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return jl(Da)}function yv(t,e){if(t==="click")return jl(e)}function gv(t,e){if(t==="input"||t==="change")return jl(e)}function vv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:vv;function xa(t,e){if(ge(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!du.call(e,s)||!ge(t[s],e[s]))return!1}return!0}function Xf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qf(t,e){var n=Xf(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Xf(n)}}function Zf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Zf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Kf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Vl(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=Vl(t.document)}return e}function Hu(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 Sv=tn&&"documentMode"in document&&11>=document.documentMode,zi=null,ju=null,Ca=null,wu=!1;function Jf(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wu||zi==null||zi!==Vl(i)||(i=zi,"selectionStart"in i&&Hu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ca&&xa(Ca,i)||(Ca=i,i=xs(ju,"onSelect"),0<i.length&&(e=new Ll("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=zi)))}function $n(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ri={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Yu={},kf={};tn&&(kf=document.createElement("div").style,"AnimationEvent"in window||(delete Ri.animationend.animation,delete Ri.animationiteration.animation,delete Ri.animationstart.animation),"TransitionEvent"in window||delete Ri.transitionend.transition);function In(t){if(Yu[t])return Yu[t];if(!Ri[t])return t;var e=Ri[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in kf)return Yu[t]=e[n];return t}var Ff=In("animationend"),Wf=In("animationiteration"),Pf=In("animationstart"),Tv=In("transitionrun"),bv=In("transitionstart"),Av=In("transitioncancel"),$f=In("transitionend"),If=new Map,qu="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(" ");qu.push("scrollEnd");function je(t,e){If.set(t,e),Wn(e,[t])}var wl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Oi=0,Gu=0;function Yl(){for(var t=Oi,e=Gu=Oi=0;e<t;){var n=Ce[e];Ce[e++]=null;var i=Ce[e];Ce[e++]=null;var s=Ce[e];Ce[e++]=null;var r=Ce[e];if(Ce[e++]=null,i!==null&&s!==null){var f=i.pending;f===null?s.next=s:(s.next=f.next,f.next=s),i.pending=s}r!==0&&th(n,s,r)}}function ql(t,e,n,i){Ce[Oi++]=t,Ce[Oi++]=e,Ce[Oi++]=n,Ce[Oi++]=i,Gu|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Xu(t,e,n,i){return ql(t,e,n,i),Gl(t)}function ti(t,e){return ql(t,null,null,e),Gl(t)}function th(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var s=!1,r=t.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.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-ye(n),t=r.hiddenUpdates,i=t[s],i===null?t[s]=[e]:i.push(e),e.lane=n|536870912),r):null}function Gl(t){if(50<Fa)throw Fa=0,Io=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Vi={};function Ev(t,e,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ve(t,e,n,i){return new Ev(t,e,n,i)}function Qu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function en(t,e){var n=t.alternate;return n===null?(n=ve(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 eh(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 Xl(t,e,n,i,s,r){var f=0;if(i=t,typeof t=="function")Qu(t)&&(f=1);else if(typeof t=="string")f=z1(t,n,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case it:return t=ve(31,n,e,s),t.elementType=it,t.lanes=r,t;case j:return ei(n.children,s,r,e);case w:f=8,s|=24;break;case L:return t=ve(12,n,e,s|2),t.elementType=L,t.lanes=r,t;case Q:return t=ve(13,n,e,s),t.elementType=Q,t.lanes=r,t;case et:return t=ve(19,n,e,s),t.elementType=et,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:f=10;break t;case q:f=9;break t;case K:f=11;break t;case $:f=14;break t;case k:f=16,i=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),i=null}return e=ve(f,n,e,s),e.elementType=t,e.type=i,e.lanes=r,e}function ei(t,e,n,i){return t=ve(7,t,i,e),t.lanes=n,t}function Zu(t,e,n){return t=ve(6,t,null,e),t.lanes=n,t}function nh(t){var e=ve(18,null,null,0);return e.stateNode=t,e}function Ku(t,e,n){return e=ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ih=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var n=ih.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ef(e)},ih.set(t,e),e)}return{value:t,source:e,stack:ef(e)}}var _i=[],Ui=0,Ql=null,za=0,Re=[],Oe=0,An=null,Ze=1,Ke="";function nn(t,e){_i[Ui++]=za,_i[Ui++]=Ql,Ql=t,za=e}function ah(t,e,n){Re[Oe++]=Ze,Re[Oe++]=Ke,Re[Oe++]=An,An=t;var i=Ze;t=Ke;var s=32-ye(i)-1;i&=~(1<<s),n+=1;var r=32-ye(e)+s;if(30<r){var f=s-s%5;r=(i&(1<<f)-1).toString(32),i>>=f,s-=f,Ze=1<<32-ye(e)+s|n<<s|i,Ke=r+t}else Ze=1<<r|n<<s|i,Ke=t}function Ju(t){t.return!==null&&(nn(t,1),ah(t,1,0))}function ku(t){for(;t===Ql;)Ql=_i[--Ui],_i[Ui]=null,za=_i[--Ui],_i[Ui]=null;for(;t===An;)An=Re[--Oe],Re[Oe]=null,Ke=Re[--Oe],Re[Oe]=null,Ze=Re[--Oe],Re[Oe]=null}function lh(t,e){Re[Oe++]=Ze,Re[Oe++]=Ke,Re[Oe++]=An,Ze=e.id,Ke=e.overflow,An=t}var Ft=null,Ct=null,dt=!1,En=null,Ve=!1,Fu=Error(o(519));function Mn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ra(ze(e,t)),Fu}function sh(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[kt]=t,e[ue]=i,n){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(n=0;n<Pa.length;n++)rt(Pa[n],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":rt("invalid",e),Sf(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":rt("invalid",e);break;case"textarea":rt("invalid",e),bf(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||Em(e.textContent,n)?(i.popover!=null&&(rt("beforetoggle",e),rt("toggle",e)),i.onScroll!=null&&rt("scroll",e),i.onScrollEnd!=null&&rt("scrollend",e),i.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||Mn(t,!0)}function uh(t){for(Ft=t.return;Ft;)switch(Ft.tag){case 5:case 31:case 13:Ve=!1;return;case 27:case 3:Ve=!0;return;default:Ft=Ft.return}}function Bi(t){if(t!==Ft)return!1;if(!dt)return uh(t),dt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||mr(t.type,t.memoizedProps)),n=!n),n&&Ct&&Mn(t),uh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ct=_m(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ct=_m(t)}else e===27?(e=Ct,jn(t.type)?(t=Sr,Sr=null,Ct=t):Ct=e):Ct=Ft?Ue(t.stateNode.nextSibling):null;return!0}function ni(){Ct=Ft=null,dt=!1}function Wu(){var t=En;return t!==null&&(he===null?he=t:he.push.apply(he,t),En=null),t}function Ra(t){En===null?En=[t]:En.push(t)}var Pu=E(null),ii=null,an=null;function Dn(t,e,n){G(Pu,e._currentValue),e._currentValue=n}function ln(t){t._currentValue=Pu.current,N(Pu)}function $u(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Iu(t,e,n,i){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 p=r;r=s;for(var T=0;T<e.length;T++)if(p.context===e[T]){r.lanes|=n,p=r.alternate,p!==null&&(p.lanes|=n),$u(r.return,n,t),i||(f=null);break t}r=p.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),$u(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 Ni(t,e,n,i){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 p=s.type;ge(s.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(s===vt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(nl):t=[nl])}s=s.return}t!==null&&Iu(e,t,n,i),e.flags|=262144}function Zl(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ai(t){ii=t,an=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return oh(ii,t)}function Kl(t,e){return ii===null&&ai(t),oh(t,e)}function oh(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},an===null){if(t===null)throw Error(o(308));an=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else an=an.next=e;return n}var Mv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Dv=a.unstable_scheduleCallback,xv=a.unstable_NormalPriority,wt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function to(){return{controller:new Mv,data:new Map,refCount:0}}function Oa(t){t.refCount--,t.refCount===0&&Dv(xv,function(){t.controller.abort()})}var Va=null,eo=0,Li=0,Hi=null;function Cv(t,e){if(Va===null){var n=Va=[];eo=0,Li=lr(),Hi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return eo++,e.then(rh,rh),e}function rh(){if(--eo===0&&Va!==null){Hi!==null&&(Hi.status="fulfilled");var t=Va;Va=null,Li=0,Hi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function zv(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var ch=_.S;_.S=function(t,e){Jd=me(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Cv(t,e),ch!==null&&ch(t,e)};var li=E(null);function no(){var t=li.current;return t!==null?t:Mt.pooledCache}function Jl(t,e){e===null?G(li,li.current):G(li,e.pool)}function fh(){var t=no();return t===null?null:{parent:wt._currentValue,pool:t}}var ji=Error(o(460)),io=Error(o(474)),kl=Error(o(542)),Fl={then:function(){}};function hh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dh(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ie,Ie),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ph(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=Mt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=i}},function(i){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ph(t),t}throw ui=e,ji}}function si(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ui=n,ji):n}}var ui=null;function mh(){if(ui===null)throw Error(o(459));var t=ui;return ui=null,t}function ph(t){if(t===ji||t===kl)throw Error(o(483))}var wi=null,_a=0;function Wl(t){var e=_a;return _a+=1,wi===null&&(wi=[]),dh(wi,t,e)}function Ua(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Pl(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function yh(t){function e(M,A){if(t){var D=M.deletions;D===null?(M.deletions=[A],M.flags|=16):D.push(A)}}function n(M,A){if(!t)return null;for(;A!==null;)e(M,A),A=A.sibling;return null}function i(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function s(M,A){return M=en(M,A),M.index=0,M.sibling=null,M}function r(M,A,D){return M.index=D,t?(D=M.alternate,D!==null?(D=D.index,D<A?(M.flags|=67108866,A):D):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function f(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function p(M,A,D,U){return A===null||A.tag!==6?(A=Zu(D,M.mode,U),A.return=M,A):(A=s(A,D),A.return=M,A)}function T(M,A,D,U){var I=D.type;return I===j?O(M,A,D.props.children,U,D.key):A!==null&&(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===k&&si(I)===A.type)?(A=s(A,D.props),Ua(A,D),A.return=M,A):(A=Xl(D.type,D.key,D.props,null,M.mode,U),Ua(A,D),A.return=M,A)}function x(M,A,D,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Ku(D,M.mode,U),A.return=M,A):(A=s(A,D.children||[]),A.return=M,A)}function O(M,A,D,U,I){return A===null||A.tag!==7?(A=ei(D,M.mode,U,I),A.return=M,A):(A=s(A,D),A.return=M,A)}function B(M,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Zu(""+A,M.mode,D),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case R:return D=Xl(A.type,A.key,A.props,null,M.mode,D),Ua(D,A),D.return=M,D;case V:return A=Ku(A,M.mode,D),A.return=M,A;case k:return A=si(A),B(M,A,D)}if(se(A)||jt(A))return A=ei(A,M.mode,D,null),A.return=M,A;if(typeof A.then=="function")return B(M,Wl(A),D);if(A.$$typeof===Y)return B(M,Kl(M,A),D);Pl(M,A)}return null}function C(M,A,D,U){var I=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return I!==null?null:p(M,A,""+D,U);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case R:return D.key===I?T(M,A,D,U):null;case V:return D.key===I?x(M,A,D,U):null;case k:return D=si(D),C(M,A,D,U)}if(se(D)||jt(D))return I!==null?null:O(M,A,D,U,null);if(typeof D.then=="function")return C(M,A,Wl(D),U);if(D.$$typeof===Y)return C(M,A,Kl(M,D),U);Pl(M,D)}return null}function z(M,A,D,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return M=M.get(D)||null,p(A,M,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case R:return M=M.get(U.key===null?D:U.key)||null,T(A,M,U,I);case V:return M=M.get(U.key===null?D:U.key)||null,x(A,M,U,I);case k:return U=si(U),z(M,A,D,U,I)}if(se(U)||jt(U))return M=M.get(D)||null,O(A,M,U,I,null);if(typeof U.then=="function")return z(M,A,D,Wl(U),I);if(U.$$typeof===Y)return z(M,A,D,Kl(A,U),I);Pl(A,U)}return null}function Z(M,A,D,U){for(var I=null,pt=null,P=A,st=A=0,ht=null;P!==null&&st<D.length;st++){P.index>st?(ht=P,P=null):ht=P.sibling;var yt=C(M,P,D[st],U);if(yt===null){P===null&&(P=ht);break}t&&P&&yt.alternate===null&&e(M,P),A=r(yt,A,st),pt===null?I=yt:pt.sibling=yt,pt=yt,P=ht}if(st===D.length)return n(M,P),dt&&nn(M,st),I;if(P===null){for(;st<D.length;st++)P=B(M,D[st],U),P!==null&&(A=r(P,A,st),pt===null?I=P:pt.sibling=P,pt=P);return dt&&nn(M,st),I}for(P=i(P);st<D.length;st++)ht=z(P,M,st,D[st],U),ht!==null&&(t&&ht.alternate!==null&&P.delete(ht.key===null?st:ht.key),A=r(ht,A,st),pt===null?I=ht:pt.sibling=ht,pt=ht);return t&&P.forEach(function(Xn){return e(M,Xn)}),dt&&nn(M,st),I}function tt(M,A,D,U){if(D==null)throw Error(o(151));for(var I=null,pt=null,P=A,st=A=0,ht=null,yt=D.next();P!==null&&!yt.done;st++,yt=D.next()){P.index>st?(ht=P,P=null):ht=P.sibling;var Xn=C(M,P,yt.value,U);if(Xn===null){P===null&&(P=ht);break}t&&P&&Xn.alternate===null&&e(M,P),A=r(Xn,A,st),pt===null?I=Xn:pt.sibling=Xn,pt=Xn,P=ht}if(yt.done)return n(M,P),dt&&nn(M,st),I;if(P===null){for(;!yt.done;st++,yt=D.next())yt=B(M,yt.value,U),yt!==null&&(A=r(yt,A,st),pt===null?I=yt:pt.sibling=yt,pt=yt);return dt&&nn(M,st),I}for(P=i(P);!yt.done;st++,yt=D.next())yt=z(P,M,st,yt.value,U),yt!==null&&(t&&yt.alternate!==null&&P.delete(yt.key===null?st:yt.key),A=r(yt,A,st),pt===null?I=yt:pt.sibling=yt,pt=yt);return t&&P.forEach(function(w1){return e(M,w1)}),dt&&nn(M,st),I}function Et(M,A,D,U){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case R:t:{for(var I=D.key;A!==null;){if(A.key===I){if(I=D.type,I===j){if(A.tag===7){n(M,A.sibling),U=s(A,D.props.children),U.return=M,M=U;break t}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===k&&si(I)===A.type){n(M,A.sibling),U=s(A,D.props),Ua(U,D),U.return=M,M=U;break t}n(M,A);break}else e(M,A);A=A.sibling}D.type===j?(U=ei(D.props.children,M.mode,U,D.key),U.return=M,M=U):(U=Xl(D.type,D.key,D.props,null,M.mode,U),Ua(U,D),U.return=M,M=U)}return f(M);case V:t:{for(I=D.key;A!==null;){if(A.key===I)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){n(M,A.sibling),U=s(A,D.children||[]),U.return=M,M=U;break t}else{n(M,A);break}else e(M,A);A=A.sibling}U=Ku(D,M.mode,U),U.return=M,M=U}return f(M);case k:return D=si(D),Et(M,A,D,U)}if(se(D))return Z(M,A,D,U);if(jt(D)){if(I=jt(D),typeof I!="function")throw Error(o(150));return D=I.call(D),tt(M,A,D,U)}if(typeof D.then=="function")return Et(M,A,Wl(D),U);if(D.$$typeof===Y)return Et(M,A,Kl(M,D),U);Pl(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(n(M,A.sibling),U=s(A,D),U.return=M,M=U):(n(M,A),U=Zu(D,M.mode,U),U.return=M,M=U),f(M)):n(M,A)}return function(M,A,D,U){try{_a=0;var I=Et(M,A,D,U);return wi=null,I}catch(P){if(P===ji||P===kl)throw P;var pt=ve(29,P,null,M.mode);return pt.lanes=U,pt.return=M,pt}}}var oi=yh(!0),gh=yh(!1),xn=!1;function ao(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(gt&2)!==0){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,e=Gl(t),th(t,null,n),e}return ql(t,i,e,n),Gl(t)}function Ba(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,of(t,n)}}function so(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){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:i.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var uo=!1;function Na(){if(uo){var t=Hi;if(t!==null)throw t}}function La(t,e,n,i){uo=!1;var s=t.updateQueue;xn=!1;var r=s.firstBaseUpdate,f=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var T=p,x=T.next;T.next=null,f===null?r=x:f.next=x,f=T;var O=t.alternate;O!==null&&(O=O.updateQueue,p=O.lastBaseUpdate,p!==f&&(p===null?O.firstBaseUpdate=x:p.next=x,O.lastBaseUpdate=T))}if(r!==null){var B=s.baseState;f=0,O=x=T=null,p=r;do{var C=p.lane&-536870913,z=C!==p.lane;if(z?(ft&C)===C:(i&C)===C){C!==0&&C===Li&&(uo=!0),O!==null&&(O=O.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var Z=t,tt=p;C=e;var Et=n;switch(tt.tag){case 1:if(Z=tt.payload,typeof Z=="function"){B=Z.call(Et,B,C);break t}B=Z;break t;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=tt.payload,C=typeof Z=="function"?Z.call(Et,B,C):Z,C==null)break t;B=S({},B,C);break t;case 2:xn=!0}}C=p.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=s.callbacks,z===null?s.callbacks=[C]:z.push(C))}else z={lane:C,tag:p.tag,payload:p.payload,callback:p.callback,next:null},O===null?(x=O=z,T=B):O=O.next=z,f|=C;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;z=p,p=z.next,z.next=null,s.lastBaseUpdate=z,s.shared.pending=null}}while(!0);O===null&&(T=B),s.baseState=T,s.firstBaseUpdate=x,s.lastBaseUpdate=O,r===null&&(s.shared.lanes=0),Un|=f,t.lanes=f,t.memoizedState=B}}function vh(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Sh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)vh(n[t],e)}var Yi=E(null),$l=E(0);function Th(t,e){t=mn,G($l,t),G(Yi,e),mn=t|e.baseLanes}function oo(){G($l,mn),G(Yi,Yi.current)}function ro(){mn=$l.current,N(Yi),N($l)}var Se=E(null),_e=null;function Rn(t){var e=t.alternate;G(Lt,Lt.current&1),G(Se,t),_e===null&&(e===null||Yi.current!==null||e.memoizedState!==null)&&(_e=t)}function co(t){G(Lt,Lt.current),G(Se,t),_e===null&&(_e=t)}function bh(t){t.tag===22?(G(Lt,Lt.current),G(Se,t),_e===null&&(_e=t)):On()}function On(){G(Lt,Lt.current),G(Se,Se.current)}function Te(t){N(Se),_e===t&&(_e=null),N(Lt)}var Lt=E(0);function Il(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gr(n)||vr(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 sn=0,lt=null,bt=null,Yt=null,ts=!1,qi=!1,ri=!1,es=0,Ha=0,Gi=null,Rv=0;function Vt(){throw Error(o(321))}function fo(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ge(t[n],e[n]))return!1;return!0}function ho(t,e,n,i,s,r){return sn=r,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?ad:zo,ri=!1,r=n(i,s),ri=!1,qi&&(r=Eh(e,n,i,s)),Ah(t),r}function Ah(t){_.H=Ya;var e=bt!==null&&bt.next!==null;if(sn=0,Yt=bt=lt=null,ts=!1,Ha=0,Gi=null,e)throw Error(o(300));t===null||qt||(t=t.dependencies,t!==null&&Zl(t)&&(qt=!0))}function Eh(t,e,n,i){lt=t;var s=0;do{if(qi&&(Gi=null),Ha=0,qi=!1,25<=s)throw Error(o(301));if(s+=1,Yt=bt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}_.H=ld,r=e(n,i)}while(qi);return r}function Ov(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?ja(e):e,t=t.useState()[0],(bt!==null?bt.memoizedState:null)!==t&&(lt.flags|=1024),e}function mo(){var t=es!==0;return es=0,t}function po(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function yo(t){if(ts){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ts=!1}sn=0,Yt=bt=lt=null,qi=!1,Ha=es=0,Gi=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?lt.memoizedState=Yt=t:Yt=Yt.next=t,Yt}function Ht(){if(bt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=bt.next;var e=Yt===null?lt.memoizedState:Yt.next;if(e!==null)Yt=e,bt=t;else{if(t===null)throw lt.alternate===null?Error(o(467)):Error(o(310));bt=t,t={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Yt===null?lt.memoizedState=Yt=t:Yt=Yt.next=t}return Yt}function ns(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ja(t){var e=Ha;return Ha+=1,Gi===null&&(Gi=[]),t=dh(Gi,t,e),e=lt,(Yt===null?e.memoizedState:Yt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?ad:zo),t}function is(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ja(t);if(t.$$typeof===Y)return Wt(t)}throw Error(o(438,String(t)))}function go(t){var e=null,n=lt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=lt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ns(),lt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=Dt;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function as(t){var e=Ht();return vo(e,bt,t)}function vo(t,e,n){var i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var s=t.baseQueue,r=i.pending;if(r!==null){if(s!==null){var f=s.next;s.next=r.next,r.next=f}e.baseQueue=s=r,i.pending=null}if(r=t.baseState,s===null)t.memoizedState=r;else{e=s.next;var p=f=null,T=null,x=e,O=!1;do{var B=x.lane&-536870913;if(B!==x.lane?(ft&B)===B:(sn&B)===B){var C=x.revertLane;if(C===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),B===Li&&(O=!0);else if((sn&C)===C){x=x.next,C===Li&&(O=!0);continue}else B={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},T===null?(p=T=B,f=r):T=T.next=B,lt.lanes|=C,Un|=C;B=x.action,ri&&n(r,B),r=x.hasEagerState?x.eagerState:n(r,B)}else C={lane:B,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},T===null?(p=T=C,f=r):T=T.next=C,lt.lanes|=B,Un|=B;x=x.next}while(x!==null&&x!==e);if(T===null?f=r:T.next=p,!ge(r,t.memoizedState)&&(qt=!0,O&&(n=Hi,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=T,i.lastRenderedState=r}return s===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function So(t){var e=Ht(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var i=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);ge(r,e.memoizedState)||(qt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,i]}function Mh(t,e,n){var i=lt,s=Ht(),r=dt;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ge((bt||s).memoizedState,n);if(f&&(s.memoizedState=n,qt=!0),s=s.queue,Ao(Ch.bind(null,i,s,t),[t]),s.getSnapshot!==e||f||Yt!==null&&Yt.memoizedState.tag&1){if(i.flags|=2048,Xi(9,{destroy:void 0},xh.bind(null,i,s,n,e),null),Mt===null)throw Error(o(349));r||(sn&127)!==0||Dh(i,e,n)}return n}function Dh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=lt.updateQueue,e===null?(e=ns(),lt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function xh(t,e,n,i){e.value=n,e.getSnapshot=i,zh(e)&&Rh(t)}function Ch(t,e,n){return n(function(){zh(e)&&Rh(t)})}function zh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ge(t,n)}catch{return!0}}function Rh(t){var e=ti(t,2);e!==null&&de(e,t,2)}function To(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ri){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Oh(t,e,n,i){return t.baseState=n,vo(t,bt,typeof i=="function"?i:un)}function Vv(t,e,n,i,s){if(us(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)}};_.T!==null?n(!0):r.isTransition=!1,i(r),n=e.pending,n===null?(r.next=e.pending=r,Vh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Vh(t,e){var n=e.action,i=e.payload,s=t.state;if(e.isTransition){var r=_.T,f={};_.T=f;try{var p=n(s,i),T=_.S;T!==null&&T(f,p),_h(t,e,p)}catch(x){bo(t,e,x)}finally{r!==null&&f.types!==null&&(r.types=f.types),_.T=r}}else try{r=n(s,i),_h(t,e,r)}catch(x){bo(t,e,x)}}function _h(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Uh(t,e,i)},function(i){return bo(t,e,i)}):Uh(t,e,n)}function Uh(t,e,n){e.status="fulfilled",e.value=n,Bh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Vh(t,n)))}function bo(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,Bh(e),e=e.next;while(e!==i)}t.action=null}function Bh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Nh(t,e){return e}function Lh(t,e){if(dt){var n=Mt.formState;if(n!==null){t:{var i=lt;if(dt){if(Ct){e:{for(var s=Ct,r=Ve;s.nodeType!==8;){if(!r){s=null;break e}if(s=Ue(s.nextSibling),s===null){s=null;break e}}r=s.data,s=r==="F!"||r==="F"?s:null}if(s){Ct=Ue(s.nextSibling),i=s.data==="F!";break t}}Mn(i)}i=!1}i&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nh,lastRenderedState:e},n.queue=i,n=ed.bind(null,lt,i),i.dispatch=n,i=To(!1),r=Co.bind(null,lt,!1,i.queue),i=ie(),s={state:e,dispatch:null,action:t,pending:null},i.queue=s,n=Vv.bind(null,lt,s,r,n),s.dispatch=n,i.memoizedState=t,[e,n,!1]}function Hh(t){var e=Ht();return jh(e,bt,t)}function jh(t,e,n){if(e=vo(t,e,Nh)[0],t=as(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=ja(e)}catch(f){throw f===ji?kl:f}else i=e;e=Ht();var s=e.queue,r=s.dispatch;return n!==e.memoizedState&&(lt.flags|=2048,Xi(9,{destroy:void 0},_v.bind(null,s,n),null)),[i,r,t]}function _v(t,e){t.action=e}function wh(t){var e=Ht(),n=bt;if(n!==null)return jh(e,n,t);Ht(),e=e.memoizedState,n=Ht();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Xi(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=lt.updateQueue,e===null&&(e=ns(),lt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function Yh(){return Ht().memoizedState}function ls(t,e,n,i){var s=ie();lt.flags|=t,s.memoizedState=Xi(1|e,{destroy:void 0},n,i===void 0?null:i)}function ss(t,e,n,i){var s=Ht();i=i===void 0?null:i;var r=s.memoizedState.inst;bt!==null&&i!==null&&fo(i,bt.memoizedState.deps)?s.memoizedState=Xi(e,r,n,i):(lt.flags|=t,s.memoizedState=Xi(1|e,r,n,i))}function qh(t,e){ls(8390656,8,t,e)}function Ao(t,e){ss(2048,8,t,e)}function Uv(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=ns(),lt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Gh(t){var e=Ht().memoizedState;return Uv({ref:e,nextImpl:t}),function(){if((gt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Xh(t,e){return ss(4,2,t,e)}function Qh(t,e){return ss(4,4,t,e)}function Zh(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 Kh(t,e,n){n=n!=null?n.concat([t]):null,ss(4,4,Zh.bind(null,e,t),n)}function Eo(){}function Jh(t,e){var n=Ht();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&fo(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function kh(t,e){var n=Ht();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&fo(e,i[1]))return i[0];if(i=t(),ri){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[i,e],i}function Mo(t,e,n){return n===void 0||(sn&1073741824)!==0&&(ft&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Fd(),lt.lanes|=t,Un|=t,n)}function Fh(t,e,n,i){return ge(n,e)?n:Yi.current!==null?(t=Mo(t,n,i),ge(t,e)||(qt=!0),t):(sn&42)===0||(sn&1073741824)!==0&&(ft&261930)===0?(qt=!0,t.memoizedState=n):(t=Fd(),lt.lanes|=t,Un|=t,e)}function Wh(t,e,n,i,s){var r=H.p;H.p=r!==0&&8>r?r:8;var f=_.T,p={};_.T=p,Co(t,!1,e,n);try{var T=s(),x=_.S;if(x!==null&&x(p,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var O=zv(T,i);wa(t,e,O,Ee(t))}else wa(t,e,i,Ee(t))}catch(B){wa(t,e,{then:function(){},status:"rejected",reason:B},Ee())}finally{H.p=r,f!==null&&p.types!==null&&(f.types=p.types),_.T=f}}function Bv(){}function Do(t,e,n,i){if(t.tag!==5)throw Error(o(476));var s=Ph(t).queue;Wh(t,s,e,W,n===null?Bv:function(){return $h(t),n(i)})}function Ph(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:W},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function $h(t){var e=Ph(t);e.next===null&&(e=t.alternate.memoizedState),wa(t,e.next.queue,{},Ee())}function xo(){return Wt(nl)}function Ih(){return Ht().memoizedState}function td(){return Ht().memoizedState}function Nv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=Cn(n);var i=zn(e,t,n);i!==null&&(de(i,e,n),Ba(i,e,n)),e={cache:to()},t.payload=e;return}e=e.return}}function Lv(t,e,n){var i=Ee();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},us(t)?nd(e,n):(n=Xu(t,e,n,i),n!==null&&(de(n,t,i),id(n,e,i)))}function ed(t,e,n){var i=Ee();wa(t,e,n,i)}function wa(t,e,n,i){var s={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(us(t))nd(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,p=r(f,n);if(s.hasEagerState=!0,s.eagerState=p,ge(p,f))return ql(t,e,s,0),Mt===null&&Yl(),!1}catch{}if(n=Xu(t,e,s,i),n!==null)return de(n,t,i),id(n,e,i),!0}return!1}function Co(t,e,n,i){if(i={lane:2,revertLane:lr(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},us(t)){if(e)throw Error(o(479))}else e=Xu(t,n,i,2),e!==null&&de(e,t,2)}function us(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function nd(t,e){qi=ts=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function id(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,of(t,n)}}var Ya={readContext:Wt,use:is,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt};Ya.useEffectEvent=Vt;var ad={readContext:Wt,use:is,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:qh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ls(4194308,4,Zh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ls(4194308,4,t,e)},useInsertionEffect:function(t,e){ls(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var i=t();if(ri){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=ie();if(n!==void 0){var s=n(e);if(ri){Sn(!0);try{n(e)}finally{Sn(!1)}}}else s=e;return i.memoizedState=i.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},i.queue=t,t=t.dispatch=Lv.bind(null,lt,t),[i.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=To(t);var e=t.queue,n=ed.bind(null,lt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Eo,useDeferredValue:function(t,e){var n=ie();return Mo(n,t,e)},useTransition:function(){var t=To(!1);return t=Wh.bind(null,lt,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=lt,s=ie();if(dt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),Mt===null)throw Error(o(349));(ft&127)!==0||Dh(i,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,qh(Ch.bind(null,i,r,t),[t]),i.flags|=2048,Xi(9,{destroy:void 0},xh.bind(null,i,r,n,e),null),n},useId:function(){var t=ie(),e=Mt.identifierPrefix;if(dt){var n=Ke,i=Ze;n=(i&~(1<<32-ye(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=es++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Rv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:xo,useFormState:Lh,useActionState:Lh,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Co.bind(null,lt,!0,n),n.dispatch=e,[t,e]},useMemoCache:go,useCacheRefresh:function(){return ie().memoizedState=Nv.bind(null,lt)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((gt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},zo={readContext:Wt,use:is,useCallback:Jh,useContext:Wt,useEffect:Ao,useImperativeHandle:Kh,useInsertionEffect:Xh,useLayoutEffect:Qh,useMemo:kh,useReducer:as,useRef:Yh,useState:function(){return as(un)},useDebugValue:Eo,useDeferredValue:function(t,e){var n=Ht();return Fh(n,bt.memoizedState,t,e)},useTransition:function(){var t=as(un)[0],e=Ht().memoizedState;return[typeof t=="boolean"?t:ja(t),e]},useSyncExternalStore:Mh,useId:Ih,useHostTransitionStatus:xo,useFormState:Hh,useActionState:Hh,useOptimistic:function(t,e){var n=Ht();return Oh(n,bt,t,e)},useMemoCache:go,useCacheRefresh:td};zo.useEffectEvent=Gh;var ld={readContext:Wt,use:is,useCallback:Jh,useContext:Wt,useEffect:Ao,useImperativeHandle:Kh,useInsertionEffect:Xh,useLayoutEffect:Qh,useMemo:kh,useReducer:So,useRef:Yh,useState:function(){return So(un)},useDebugValue:Eo,useDeferredValue:function(t,e){var n=Ht();return bt===null?Mo(n,t,e):Fh(n,bt.memoizedState,t,e)},useTransition:function(){var t=So(un)[0],e=Ht().memoizedState;return[typeof t=="boolean"?t:ja(t),e]},useSyncExternalStore:Mh,useId:Ih,useHostTransitionStatus:xo,useFormState:wh,useActionState:wh,useOptimistic:function(t,e){var n=Ht();return bt!==null?Oh(n,bt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:go,useCacheRefresh:td};ld.useEffectEvent=Gh;function Ro(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Oo={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=Ee(),s=Cn(i);s.payload=e,n!=null&&(s.callback=n),e=zn(t,s,i),e!==null&&(de(e,t,i),Ba(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=Ee(),s=Cn(i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=zn(t,s,i),e!==null&&(de(e,t,i),Ba(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),i=Cn(n);i.tag=2,e!=null&&(i.callback=e),e=zn(t,i,n),e!==null&&(de(e,t,n),Ba(e,t,n))}};function sd(t,e,n,i,s,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,r,f):e.prototype&&e.prototype.isPureReactComponent?!xa(n,i)||!xa(s,r):!0}function ud(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Oo.enqueueReplaceState(e,e.state,null)}function ci(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=S({},n));for(var s in t)n[s]===void 0&&(n[s]=t[s])}return n}function od(t){wl(t)}function rd(t){console.error(t)}function cd(t){wl(t)}function os(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function fd(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Vo(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){os(t,e)},n}function hd(t){return t=Cn(t),t.tag=3,t}function dd(t,e,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var r=i.value;t.payload=function(){return s(r)},t.callback=function(){fd(e,n,i)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){fd(e,n,i),typeof s!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var p=i.stack;this.componentDidCatch(i.value,{componentStack:p!==null?p:""})})}function Hv(t,e,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&Ni(e,n,s,!0),n=Se.current,n!==null){switch(n.tag){case 31:case 13:return _e===null?Ts():n.alternate===null&&_t===0&&(_t=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===Fl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),nr(t,i,s)),!1;case 22:return n.flags|=65536,i===Fl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),nr(t,i,s)),!1}throw Error(o(435,n.tag))}return nr(t,i,s),Ts(),!1}if(dt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,i!==Fu&&(t=Error(o(422),{cause:i}),Ra(ze(t,n)))):(i!==Fu&&(e=Error(o(423),{cause:i}),Ra(ze(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,i=ze(i,n),s=Vo(t.stateNode,i,s),so(t,s),_t!==4&&(_t=2)),!1;var r=Error(o(520),{cause:i});if(r=ze(r,n),ka===null?ka=[r]:ka.push(r),_t!==4&&(_t=2),e===null)return!0;i=ze(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Vo(n.stateNode,i,t),so(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"&&(Bn===null||!Bn.has(r))))return n.flags|=65536,s&=-s,n.lanes|=s,s=hd(s),dd(s,t,n,i),so(n,s),!1}n=n.return}while(n!==null);return!1}var _o=Error(o(461)),qt=!1;function Pt(t,e,n,i){e.child=t===null?gh(e,null,n,i):oi(e,t.child,n,i)}function md(t,e,n,i,s){n=n.render;var r=e.ref;if("ref"in i){var f={};for(var p in i)p!=="ref"&&(f[p]=i[p])}else f=i;return ai(e),i=ho(t,e,n,f,r,s),p=mo(),t!==null&&!qt?(po(t,e,s),on(t,e,s)):(dt&&p&&Ju(e),e.flags|=1,Pt(t,e,i,s),e.child)}function pd(t,e,n,i,s){if(t===null){var r=n.type;return typeof r=="function"&&!Qu(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,yd(t,e,r,i,s)):(t=Xl(n.type,null,i,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Yo(t,s)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:xa,n(f,i)&&t.ref===e.ref)return on(t,e,s)}return e.flags|=1,t=en(r,i),t.ref=e.ref,t.return=e,e.child=t}function yd(t,e,n,i,s){if(t!==null){var r=t.memoizedProps;if(xa(r,i)&&t.ref===e.ref)if(qt=!1,e.pendingProps=i=r,Yo(t,s))(t.flags&131072)!==0&&(qt=!0);else return e.lanes=t.lanes,on(t,e,s)}return Uo(t,e,n,i,s)}function gd(t,e,n,i){var s=i.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,t!==null){for(i=e.child=t.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~r}else i=0,e.child=null;return vd(t,e,r,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Jl(e,r!==null?r.cachePool:null),r!==null?Th(e,r):oo(),bh(e);else return i=e.lanes=536870912,vd(t,e,r!==null?r.baseLanes|n:n,n,i)}else r!==null?(Jl(e,r.cachePool),Th(e,r),On(),e.memoizedState=null):(t!==null&&Jl(e,null),oo(),On());return Pt(t,e,s,n),e.child}function qa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function vd(t,e,n,i,s){var r=no();return r=r===null?null:{parent:wt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Jl(e,null),oo(),bh(e),t!==null&&Ni(t,e,i,!0),e.childLanes=s,null}function rs(t,e){return e=fs({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Sd(t,e,n){return oi(e,t.child,null,n),t=rs(e,e.pendingProps),t.flags|=2,Te(e),e.memoizedState=null,t}function jv(t,e,n){var i=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(dt){if(i.mode==="hidden")return t=rs(e,i),e.lanes=536870912,qa(null,t);if(co(e),(t=Ct)?(t=Vm(t,Ve),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:An!==null?{id:Ze,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=nh(t),n.return=e,e.child=n,Ft=e,Ct=null)):t=null,t===null)throw Mn(e);return e.lanes=536870912,null}return rs(e,i)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(co(e),s)if(e.flags&256)e.flags&=-257,e=Sd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(qt||Ni(t,e,n,!1),s=(n&t.childLanes)!==0,qt||s){if(i=Mt,i!==null&&(f=rf(i,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,ti(t,f),de(i,t,f),_o;Ts(),e=Sd(t,e,n)}else t=r.treeContext,Ct=Ue(f.nextSibling),Ft=e,dt=!0,En=null,Ve=!1,t!==null&&lh(e,t),e=rs(e,i),e.flags|=4096;return e}return t=en(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function cs(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 Uo(t,e,n,i,s){return ai(e),n=ho(t,e,n,i,void 0,s),i=mo(),t!==null&&!qt?(po(t,e,s),on(t,e,s)):(dt&&i&&Ju(e),e.flags|=1,Pt(t,e,n,s),e.child)}function Td(t,e,n,i,s,r){return ai(e),e.updateQueue=null,n=Eh(e,i,n,s),Ah(t),i=mo(),t!==null&&!qt?(po(t,e,r),on(t,e,r)):(dt&&i&&Ju(e),e.flags|=1,Pt(t,e,n,r),e.child)}function bd(t,e,n,i,s){if(ai(e),e.stateNode===null){var r=Vi,f=n.contextType;typeof f=="object"&&f!==null&&(r=Wt(f)),r=new n(i,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Oo,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=i,r.state=e.memoizedState,r.refs={},ao(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?Wt(f):Vi,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Ro(e,n,f,i),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&&Oo.enqueueReplaceState(r,r.state,null),La(e,i,r,s),Na(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){r=e.stateNode;var p=e.memoizedProps,T=ci(n,p);r.props=T;var x=r.context,O=n.contextType;f=Vi,typeof O=="object"&&O!==null&&(f=Wt(O));var B=n.getDerivedStateFromProps;O=typeof B=="function"||typeof r.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,O||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(p||x!==f)&&ud(e,r,i,f),xn=!1;var C=e.memoizedState;r.state=C,La(e,i,r,s),Na(),x=e.memoizedState,p||C!==x||xn?(typeof B=="function"&&(Ro(e,n,B,i),x=e.memoizedState),(T=xn||sd(e,n,T,i,C,x,f))?(O||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=i,e.memoizedState=x),r.props=i,r.state=x,r.context=f,i=T):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{r=e.stateNode,lo(t,e),f=e.memoizedProps,O=ci(n,f),r.props=O,B=e.pendingProps,C=r.context,x=n.contextType,T=Vi,typeof x=="object"&&x!==null&&(T=Wt(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==B||C!==T)&&ud(e,r,i,T),xn=!1,C=e.memoizedState,r.state=C,La(e,i,r,s),Na();var z=e.memoizedState;f!==B||C!==z||xn||t!==null&&t.dependencies!==null&&Zl(t.dependencies)?(typeof p=="function"&&(Ro(e,n,p,i),z=e.memoizedState),(O=xn||sd(e,n,O,i,C,z,T)||t!==null&&t.dependencies!==null&&Zl(t.dependencies))?(x||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,z,T),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,z,T)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=z),r.props=i,r.state=z,r.context=T,i=O):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),i=!1)}return r=i,cs(t,e),i=(e.flags&128)!==0,r||i?(r=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&i?(e.child=oi(e,t.child,null,s),e.child=oi(e,null,n,s)):Pt(t,e,n,s),e.memoizedState=r.state,t=e.child):t=on(t,e,s),t}function Ad(t,e,n,i){return ni(),e.flags|=256,Pt(t,e,n,i),e.child}var Bo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function No(t){return{baseLanes:t,cachePool:fh()}}function Lo(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ae),t}function Ed(t,e,n){var i=e.pendingProps,s=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Lt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(dt){if(s?Rn(e):On(),(t=Ct)?(t=Vm(t,Ve),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:An!==null?{id:Ze,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=nh(t),n.return=e,e.child=n,Ft=e,Ct=null)):t=null,t===null)throw Mn(e);return vr(t)?e.lanes=32:e.lanes=536870912,null}var p=i.children;return i=i.fallback,s?(On(),s=e.mode,p=fs({mode:"hidden",children:p},s),i=ei(i,s,n,null),p.return=e,i.return=e,p.sibling=i,e.child=p,i=e.child,i.memoizedState=No(n),i.childLanes=Lo(t,f,n),e.memoizedState=Bo,qa(null,i)):(Rn(e),Ho(e,p))}var T=t.memoizedState;if(T!==null&&(p=T.dehydrated,p!==null)){if(r)e.flags&256?(Rn(e),e.flags&=-257,e=jo(t,e,n)):e.memoizedState!==null?(On(),e.child=t.child,e.flags|=128,e=null):(On(),p=i.fallback,s=e.mode,i=fs({mode:"visible",children:i.children},s),p=ei(p,s,n,null),p.flags|=2,i.return=e,p.return=e,i.sibling=p,e.child=i,oi(e,t.child,null,n),i=e.child,i.memoizedState=No(n),i.childLanes=Lo(t,f,n),e.memoizedState=Bo,e=qa(null,i));else if(Rn(e),vr(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var x=f.dgst;f=x,i=Error(o(419)),i.stack="",i.digest=f,Ra({value:i,source:null,stack:null}),e=jo(t,e,n)}else if(qt||Ni(t,e,n,!1),f=(n&t.childLanes)!==0,qt||f){if(f=Mt,f!==null&&(i=rf(f,n),i!==0&&i!==T.retryLane))throw T.retryLane=i,ti(t,i),de(f,t,i),_o;gr(p)||Ts(),e=jo(t,e,n)}else gr(p)?(e.flags|=192,e.child=t.child,e=null):(t=T.treeContext,Ct=Ue(p.nextSibling),Ft=e,dt=!0,En=null,Ve=!1,t!==null&&lh(e,t),e=Ho(e,i.children),e.flags|=4096);return e}return s?(On(),p=i.fallback,s=e.mode,T=t.child,x=T.sibling,i=en(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,x!==null?p=en(x,p):(p=ei(p,s,n,null),p.flags|=2),p.return=e,i.return=e,i.sibling=p,e.child=i,qa(null,i),i=e.child,p=t.child.memoizedState,p===null?p=No(n):(s=p.cachePool,s!==null?(T=wt._currentValue,s=s.parent!==T?{parent:T,pool:T}:s):s=fh(),p={baseLanes:p.baseLanes|n,cachePool:s}),i.memoizedState=p,i.childLanes=Lo(t,f,n),e.memoizedState=Bo,qa(t.child,i)):(Rn(e),n=t.child,t=n.sibling,n=en(n,{mode:"visible",children:i.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 Ho(t,e){return e=fs({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function fs(t,e){return t=ve(22,t,null,e),t.lanes=0,t}function jo(t,e,n){return oi(e,t.child,null,n),t=Ho(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Md(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),$u(t.return,e,n)}function wo(t,e,n,i,s,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=i,f.tail=n,f.tailMode=s,f.treeForkCount=r)}function Dd(t,e,n){var i=e.pendingProps,s=i.revealOrder,r=i.tail;i=i.children;var f=Lt.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,G(Lt,f),Pt(t,e,i,n),i=dt?za:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Md(t,n,e);else if(t.tag===19)Md(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&&Il(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),wo(e,!1,s,n,r,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Il(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}wo(e,!0,n,null,r,i);break;case"together":wo(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function on(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Un|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ni(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=en(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=en(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Yo(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Zl(t)))}function wv(t,e,n){switch(e.tag){case 3:ne(e,e.stateNode.containerInfo),Dn(e,wt,t.memoizedState.cache),ni();break;case 27:case 5:da(e);break;case 4:ne(e,e.stateNode.containerInfo);break;case 10:Dn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,co(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(Rn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Ed(t,e,n):(Rn(e),t=on(t,e,n),t!==null?t.sibling:null);Rn(e);break;case 19:var s=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(Ni(t,e,n,!1),i=(n&e.childLanes)!==0),s){if(i)return Dd(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),G(Lt,Lt.current),i)break;return null;case 22:return e.lanes=0,gd(t,e,n,e.pendingProps);case 24:Dn(e,wt,t.memoizedState.cache)}return on(t,e,n)}function xd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)qt=!0;else{if(!Yo(t,n)&&(e.flags&128)===0)return qt=!1,wv(t,e,n);qt=(t.flags&131072)!==0}else qt=!1,dt&&(e.flags&1048576)!==0&&ah(e,za,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=si(e.elementType),e.type=t,typeof t=="function")Qu(t)?(i=ci(t,i),e.tag=1,e=bd(null,e,t,i,n)):(e.tag=0,e=Uo(null,e,t,i,n));else{if(t!=null){var s=t.$$typeof;if(s===K){e.tag=11,e=md(null,e,t,i,n);break t}else if(s===$){e.tag=14,e=pd(null,e,t,i,n);break t}}throw e=Me(t)||t,Error(o(306,e,""))}}return e;case 0:return Uo(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,s=ci(i,e.pendingProps),bd(t,e,i,s,n);case 3:t:{if(ne(e,e.stateNode.containerInfo),t===null)throw Error(o(387));i=e.pendingProps;var r=e.memoizedState;s=r.element,lo(t,e),La(e,i,null,n);var f=e.memoizedState;if(i=f.cache,Dn(e,wt,i),i!==r.cache&&Iu(e,[wt],n,!0),Na(),i=f.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=Ad(t,e,i,n);break t}else if(i!==s){s=ze(Error(o(424)),e),Ra(s),e=Ad(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ct=Ue(t.firstChild),Ft=e,dt=!0,En=null,Ve=!0,n=gh(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ni(),i===s){e=on(t,e,n);break t}Pt(t,e,i,n)}e=e.child}return e;case 26:return cs(t,e),t===null?(n=Hm(e.type,null,e.pendingProps,null))?e.memoizedState=n:dt||(n=e.type,t=e.pendingProps,i=Cs(ut.current).createElement(n),i[kt]=e,i[ue]=t,$t(i,n,t),Kt(i),e.stateNode=i):e.memoizedState=Hm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return da(e),t===null&&dt&&(i=e.stateNode=Bm(e.type,e.pendingProps,ut.current),Ft=e,Ve=!0,s=Ct,jn(e.type)?(Sr=s,Ct=Ue(i.firstChild)):Ct=s),Pt(t,e,e.pendingProps.children,n),cs(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&dt&&((s=i=Ct)&&(i=p1(i,e.type,e.pendingProps,Ve),i!==null?(e.stateNode=i,Ft=e,Ct=Ue(i.firstChild),Ve=!1,s=!0):s=!1),s||Mn(e)),da(e),s=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,i=r.children,mr(s,r)?i=null:f!==null&&mr(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=ho(t,e,Ov,null,null,n),nl._currentValue=s),cs(t,e),Pt(t,e,i,n),e.child;case 6:return t===null&&dt&&((t=n=Ct)&&(n=y1(n,e.pendingProps,Ve),n!==null?(e.stateNode=n,Ft=e,Ct=null,t=!0):t=!1),t||Mn(e)),null;case 13:return Ed(t,e,n);case 4:return ne(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=oi(e,null,i,n):Pt(t,e,i,n),e.child;case 11:return md(t,e,e.type,e.pendingProps,n);case 7:return Pt(t,e,e.pendingProps,n),e.child;case 8:return Pt(t,e,e.pendingProps.children,n),e.child;case 12:return Pt(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Dn(e,e.type,i.value),Pt(t,e,i.children,n),e.child;case 9:return s=e.type._context,i=e.pendingProps.children,ai(e),s=Wt(s),i=i(s),e.flags|=1,Pt(t,e,i,n),e.child;case 14:return pd(t,e,e.type,e.pendingProps,n);case 15:return yd(t,e,e.type,e.pendingProps,n);case 19:return Dd(t,e,n);case 31:return jv(t,e,n);case 22:return gd(t,e,n,e.pendingProps);case 24:return ai(e),i=Wt(wt),t===null?(s=no(),s===null&&(s=Mt,r=to(),s.pooledCache=r,r.refCount++,r!==null&&(s.pooledCacheLanes|=n),s=r),e.memoizedState={parent:i,cache:s},ao(e),Dn(e,wt,s)):((t.lanes&n)!==0&&(lo(t,e),La(e,null,null,n),Na()),s=t.memoizedState,r=e.memoizedState,s.parent!==i?(s={parent:i,cache:i},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Dn(e,wt,i)):(i=r.cache,Dn(e,wt,i),i!==s.cache&&Iu(e,[wt],n,!0))),Pt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function rn(t){t.flags|=4}function qo(t,e,n,i,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(Id())t.flags|=8192;else throw ui=Fl,io}else t.flags&=-16777217}function Cd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Gm(e))if(Id())t.flags|=8192;else throw ui=Fl,io}function hs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?sf():536870912,t.lanes|=e,Ji|=e)}function Ga(t,e){if(!dt)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function Yv(t,e,n){var i=e.pendingProps;switch(ku(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),ln(wt),Nt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Bi(e)?rn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wu())),zt(e),null;case 26:var s=e.type,r=e.memoizedState;return t===null?(rn(e),r!==null?(zt(e),Cd(e,r)):(zt(e),qo(e,s,null,i,n))):r?r!==t.memoizedState?(rn(e),zt(e),Cd(e,r)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&rn(e),zt(e),qo(e,s,t,i,n)),null;case 27:if(El(e),n=ut.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&rn(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return zt(e),null}t=F.current,Bi(e)?sh(e):(t=Bm(s,i,n),e.stateNode=t,rn(e))}return zt(e),null;case 5:if(El(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&rn(e);else{if(!i){if(e.stateNode===null)throw Error(o(166));return zt(e),null}if(r=F.current,Bi(e))sh(e);else{var f=Cs(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 i.is=="string"?f.createElement("select",{is:i.is}):f.createElement("select"),i.multiple?r.multiple=!0:i.size&&(r.size=i.size);break;default:r=typeof i.is=="string"?f.createElement(s,{is:i.is}):f.createElement(s)}}r[kt]=e,r[ue]=i;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($t(r,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&rn(e)}}return zt(e),qo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&rn(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(o(166));if(t=ut.current,Bi(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,s=Ft,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Em(t.nodeValue,n)),t||Mn(e,!0)}else t=Cs(t).createTextNode(i),t[kt]=e,e.stateNode=t}return zt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=Bi(e),n!==null){if(t===null){if(!i)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[kt]=e}else ni(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else n=Wu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Te(e),e):(Te(e),null);if((e.flags&128)!==0)throw Error(o(558))}return zt(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(s=Bi(e),i!==null&&i.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[kt]=e}else ni(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),s=!1}else s=Wu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Te(e),e):(Te(e),null)}return Te(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==s&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),hs(e,e.updateQueue),zt(e),null);case 4:return Nt(),t===null&&rr(e.stateNode.containerInfo),zt(e),null;case 10:return ln(e.type),zt(e),null;case 19:if(N(Lt),i=e.memoizedState,i===null)return zt(e),null;if(s=(e.flags&128)!==0,r=i.rendering,r===null)if(s)Ga(i,!1);else{if(_t!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Il(t),r!==null){for(e.flags|=128,Ga(i,!1),t=r.updateQueue,e.updateQueue=t,hs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)eh(n,t),n=n.sibling;return G(Lt,Lt.current&1|2),dt&&nn(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&me()>gs&&(e.flags|=128,s=!0,Ga(i,!1),e.lanes=4194304)}else{if(!s)if(t=Il(r),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,hs(e,t),Ga(i,!0),i.tail===null&&i.tailMode==="hidden"&&!r.alternate&&!dt)return zt(e),null}else 2*me()-i.renderingStartTime>gs&&n!==536870912&&(e.flags|=128,s=!0,Ga(i,!1),e.lanes=4194304);i.isBackwards?(r.sibling=e.child,e.child=r):(t=i.last,t!==null?t.sibling=r:e.child=r,i.last=r)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,n=Lt.current,G(Lt,s?n&1|2:n&1),dt&&nn(e,i.treeForkCount),t):(zt(e),null);case 22:case 23:return Te(e),ro(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),n=e.updateQueue,n!==null&&hs(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&N(li),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ln(wt),zt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function qv(t,e){switch(ku(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(wt),Nt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return El(e),null;case 31:if(e.memoizedState!==null){if(Te(e),e.alternate===null)throw Error(o(340));ni()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Te(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ni()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(Lt),null;case 4:return Nt(),null;case 10:return ln(e.type),null;case 22:case 23:return Te(e),ro(),t!==null&&N(li),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(wt),null;case 25:return null;default:return null}}function zd(t,e){switch(ku(e),e.tag){case 3:ln(wt),Nt();break;case 26:case 27:case 5:El(e);break;case 4:Nt();break;case 31:e.memoizedState!==null&&Te(e);break;case 13:Te(e);break;case 19:N(Lt);break;case 10:ln(e.type);break;case 22:case 23:Te(e),ro(),t!==null&&N(li);break;case 24:ln(wt)}}function Xa(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){i=void 0;var r=n.create,f=n.inst;i=r(),f.destroy=i}n=n.next}while(n!==s)}}catch(p){Tt(e,e.return,p)}}function Vn(t,e,n){try{var i=e.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var r=s.next;i=r;do{if((i.tag&t)===t){var f=i.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,s=e;var T=n,x=p;try{x()}catch(O){Tt(s,T,O)}}}i=i.next}while(i!==r)}}catch(O){Tt(e,e.return,O)}}function Rd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Sh(e,n)}catch(i){Tt(t,t.return,i)}}}function Od(t,e,n){n.props=ci(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Tt(t,e,i)}}function Qa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(s){Tt(t,e,s)}}function Je(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){Tt(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){Tt(t,e,s)}else n.current=null}function Vd(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){Tt(t,t.return,s)}}function Go(t,e,n){try{var i=t.stateNode;r1(i,t.type,n,e),i[ue]=e}catch(s){Tt(t,t.return,s)}}function _d(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jn(t.type)||t.tag===4}function Xo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||_d(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&&jn(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 Qo(t,e,n){var i=t.tag;if(i===5||i===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=Ie));else if(i!==4&&(i===27&&jn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Qo(t,e,n),t=t.sibling;t!==null;)Qo(t,e,n),t=t.sibling}function ds(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&jn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ds(t,e,n),t=t.sibling;t!==null;)ds(t,e,n),t=t.sibling}function Ud(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);$t(e,i,n),e[kt]=t,e[ue]=n}catch(r){Tt(t,t.return,r)}}var cn=!1,Gt=!1,Zo=!1,Bd=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Gv(t,e){if(t=t.containerInfo,hr=Bs,t=Kf(t),Hu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,p=-1,T=-1,x=0,O=0,B=t,C=null;e:for(;;){for(var z;B!==n||s!==0&&B.nodeType!==3||(p=f+s),B!==r||i!==0&&B.nodeType!==3||(T=f+i),B.nodeType===3&&(f+=B.nodeValue.length),(z=B.firstChild)!==null;)C=B,B=z;for(;;){if(B===t)break e;if(C===n&&++x===s&&(p=f),C===r&&++O===i&&(T=f),(z=B.nextSibling)!==null)break;B=C,C=B.parentNode}B=z}n=p===-1||T===-1?null:{start:p,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(dr={focusedElem:t,selectionRange:n},Bs=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,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,i=n.stateNode;try{var Z=ci(n.type,s);t=i.getSnapshotBeforeUpdate(Z,r),i.__reactInternalSnapshotBeforeUpdate=t}catch(tt){Tt(n,n.return,tt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)yr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yr(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,Jt=t;break}Jt=e.return}}function Nd(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:hn(t,n),i&4&&Xa(5,n);break;case 1:if(hn(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var s=ci(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}i&64&&Rd(n),i&512&&Qa(n,n.return);break;case 3:if(hn(t,n),i&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{Sh(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&i&4&&Ud(n);case 26:case 5:hn(t,n),e===null&&i&4&&Vd(n),i&512&&Qa(n,n.return);break;case 12:hn(t,n);break;case 31:hn(t,n),i&4&&jd(t,n);break;case 13:hn(t,n),i&4&&wd(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Pv.bind(null,n),g1(t,n))));break;case 22:if(i=n.memoizedState!==null||cn,!i){e=e!==null&&e.memoizedState!==null||Gt,s=cn;var r=Gt;cn=i,(Gt=e)&&!r?dn(t,n,(n.subtreeFlags&8772)!==0):hn(t,n),cn=s,Gt=r}break;case 30:break;default:hn(t,n)}}function Ld(t){var e=t.alternate;e!==null&&(t.alternate=null,Ld(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Tu(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 Rt=null,re=!1;function fn(t,e,n){for(n=n.child;n!==null;)Hd(t,e,n),n=n.sibling}function Hd(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 26:Gt||Je(n,e),fn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Gt||Je(n,e);var i=Rt,s=re;jn(n.type)&&(Rt=n.stateNode,re=!1),fn(t,e,n),Ia(n.stateNode),Rt=i,re=s;break;case 5:Gt||Je(n,e);case 6:if(i=Rt,s=re,Rt=null,fn(t,e,n),Rt=i,re=s,Rt!==null)if(re)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(r){Tt(n,e,r)}else try{Rt.removeChild(n.stateNode)}catch(r){Tt(n,e,r)}break;case 18:Rt!==null&&(re?(t=Rt,Rm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ea(t)):Rm(Rt,n.stateNode));break;case 4:i=Rt,s=re,Rt=n.stateNode.containerInfo,re=!0,fn(t,e,n),Rt=i,re=s;break;case 0:case 11:case 14:case 15:Vn(2,n,e),Gt||Vn(4,n,e),fn(t,e,n);break;case 1:Gt||(Je(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Od(n,e,i)),fn(t,e,n);break;case 21:fn(t,e,n);break;case 22:Gt=(i=Gt)||n.memoizedState!==null,fn(t,e,n),Gt=i;break;default:fn(t,e,n)}}function jd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ea(t)}catch(n){Tt(e,e.return,n)}}}function wd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ea(t)}catch(n){Tt(e,e.return,n)}}function Xv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Bd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Bd),e;default:throw Error(o(435,t.tag))}}function ms(t,e){var n=Xv(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var s=$v.bind(null,t,i);i.then(s,s)}})}function ce(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],r=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(jn(p.type)){Rt=p.stateNode,re=!1;break t}break;case 5:Rt=p.stateNode,re=!1;break t;case 3:case 4:Rt=p.stateNode.containerInfo,re=!0;break t}p=p.return}if(Rt===null)throw Error(o(160));Hd(r,f,s),Rt=null,re=!1,r=s.alternate,r!==null&&(r.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Yd(e,t),e=e.sibling}var we=null;function Yd(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ce(e,t),fe(t),i&4&&(Vn(3,t,t.return),Xa(3,t),Vn(5,t,t.return));break;case 1:ce(e,t),fe(t),i&512&&(Gt||n===null||Je(n,n.return)),i&64&&cn&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=we;if(ce(e,t),fe(t),i&512&&(Gt||n===null||Je(n,n.return)),i&4){var r=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,s=s.ownerDocument||s;e:switch(i){case"title":r=s.getElementsByTagName("title")[0],(!r||r[ga]||r[kt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=s.createElement(i),s.head.insertBefore(r,s.querySelector("head > title"))),$t(r,i,n),r[kt]=t,Kt(r),i=r;break t;case"link":var f=Ym("link","href",s).get(i+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(r=f[p],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(p,1);break e}}r=s.createElement(i),$t(r,i,n),s.head.appendChild(r);break;case"meta":if(f=Ym("meta","content",s).get(i+(n.content||""))){for(p=0;p<f.length;p++)if(r=f[p],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(p,1);break e}}r=s.createElement(i),$t(r,i,n),s.head.appendChild(r);break;default:throw Error(o(468,i))}r[kt]=t,Kt(r),i=r}t.stateNode=i}else qm(s,t.type,t.stateNode);else t.stateNode=wm(s,i,t.memoizedProps);else r!==i?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,i===null?qm(s,t.type,t.stateNode):wm(s,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Go(t,t.memoizedProps,n.memoizedProps)}break;case 27:ce(e,t),fe(t),i&512&&(Gt||n===null||Je(n,n.return)),n!==null&&i&4&&Go(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ce(e,t),fe(t),i&512&&(Gt||n===null||Je(n,n.return)),t.flags&32){s=t.stateNode;try{Mi(s,"")}catch(Z){Tt(t,t.return,Z)}}i&4&&t.stateNode!=null&&(s=t.memoizedProps,Go(t,s,n!==null?n.memoizedProps:s)),i&1024&&(Zo=!0);break;case 6:if(ce(e,t),fe(t),i&4){if(t.stateNode===null)throw Error(o(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(Z){Tt(t,t.return,Z)}}break;case 3:if(Os=null,s=we,we=zs(e.containerInfo),ce(e,t),we=s,fe(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ea(e.containerInfo)}catch(Z){Tt(t,t.return,Z)}Zo&&(Zo=!1,qd(t));break;case 4:i=we,we=zs(t.stateNode.containerInfo),ce(e,t),fe(t),we=i;break;case 12:ce(e,t),fe(t);break;case 31:ce(e,t),fe(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ms(t,i)));break;case 13:ce(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ys=me()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ms(t,i)));break;case 22:s=t.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,x=cn,O=Gt;if(cn=x||s,Gt=O||T,ce(e,t),Gt=O,cn=x,fe(t),i&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||T||cn||Gt||fi(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){T=n=e;try{if(r=T.stateNode,s)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=T.stateNode;var B=T.memoizedProps.style,C=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(Z){Tt(T,T.return,Z)}}}else if(e.tag===6){if(n===null){T=e;try{T.stateNode.nodeValue=s?"":T.memoizedProps}catch(Z){Tt(T,T.return,Z)}}}else if(e.tag===18){if(n===null){T=e;try{var z=T.stateNode;s?Om(z,!0):Om(T.stateNode,!1)}catch(Z){Tt(T,T.return,Z)}}}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}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ms(t,n))));break;case 19:ce(e,t),fe(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,ms(t,i)));break;case 30:break;case 21:break;default:ce(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(_d(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,r=Xo(t);ds(t,r,s);break;case 5:var f=n.stateNode;n.flags&32&&(Mi(f,""),n.flags&=-33);var p=Xo(t);ds(t,p,f);break;case 3:case 4:var T=n.stateNode.containerInfo,x=Xo(t);Qo(t,x,T);break;default:throw Error(o(161))}}catch(O){Tt(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function qd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;qd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Nd(t,e.alternate,e),e=e.sibling}function fi(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Vn(4,e,e.return),fi(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Od(e,e.return,n),fi(e);break;case 27:Ia(e.stateNode);case 26:case 5:Je(e,e.return),fi(e);break;case 22:e.memoizedState===null&&fi(e);break;case 30:fi(e);break;default:fi(e)}t=t.sibling}}function dn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,s=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:dn(s,r,n),Xa(4,r);break;case 1:if(dn(s,r,n),i=r,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(x){Tt(i,i.return,x)}if(i=r,s=i.updateQueue,s!==null){var p=i.stateNode;try{var T=s.shared.hiddenCallbacks;if(T!==null)for(s.shared.hiddenCallbacks=null,s=0;s<T.length;s++)vh(T[s],p)}catch(x){Tt(i,i.return,x)}}n&&f&64&&Rd(r),Qa(r,r.return);break;case 27:Ud(r);case 26:case 5:dn(s,r,n),n&&i===null&&f&4&&Vd(r),Qa(r,r.return);break;case 12:dn(s,r,n);break;case 31:dn(s,r,n),n&&f&4&&jd(s,r);break;case 13:dn(s,r,n),n&&f&4&&wd(s,r);break;case 22:r.memoizedState===null&&dn(s,r,n),Qa(r,r.return);break;case 30:break;default:dn(s,r,n)}e=e.sibling}}function Ko(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&&Oa(n))}function Jo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t))}function Ye(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gd(t,e,n,i),e=e.sibling}function Gd(t,e,n,i){var s=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,i),s&2048&&Xa(9,e);break;case 1:Ye(t,e,n,i);break;case 3:Ye(t,e,n,i),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Oa(t)));break;case 12:if(s&2048){Ye(t,e,n,i),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,p=r.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Tt(e,e.return,T)}}else Ye(t,e,n,i);break;case 31:Ye(t,e,n,i);break;case 13:Ye(t,e,n,i);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?Ye(t,e,n,i):Za(t,e):r._visibility&2?Ye(t,e,n,i):(r._visibility|=2,Qi(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Ko(f,e);break;case 24:Ye(t,e,n,i),s&2048&&Jo(e.alternate,e);break;default:Ye(t,e,n,i)}}function Qi(t,e,n,i,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,p=n,T=i,x=f.flags;switch(f.tag){case 0:case 11:case 15:Qi(r,f,p,T,s),Xa(8,f);break;case 23:break;case 22:var O=f.stateNode;f.memoizedState!==null?O._visibility&2?Qi(r,f,p,T,s):Za(r,f):(O._visibility|=2,Qi(r,f,p,T,s)),s&&x&2048&&Ko(f.alternate,f);break;case 24:Qi(r,f,p,T,s),s&&x&2048&&Jo(f.alternate,f);break;default:Qi(r,f,p,T,s)}e=e.sibling}}function Za(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,s=i.flags;switch(i.tag){case 22:Za(n,i),s&2048&&Ko(i.alternate,i);break;case 24:Za(n,i),s&2048&&Jo(i.alternate,i);break;default:Za(n,i)}e=e.sibling}}var Ka=8192;function Zi(t,e,n){if(t.subtreeFlags&Ka)for(t=t.child;t!==null;)Xd(t,e,n),t=t.sibling}function Xd(t,e,n){switch(t.tag){case 26:Zi(t,e,n),t.flags&Ka&&t.memoizedState!==null&&R1(n,we,t.memoizedState,t.memoizedProps);break;case 5:Zi(t,e,n);break;case 3:case 4:var i=we;we=zs(t.stateNode.containerInfo),Zi(t,e,n),we=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Ka,Ka=16777216,Zi(t,e,n),Ka=i):Zi(t,e,n));break;default:Zi(t,e,n)}}function Qd(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 Ja(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];Jt=i,Kd(i,t)}Qd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zd(t),t=t.sibling}function Zd(t){switch(t.tag){case 0:case 11:case 15:Ja(t),t.flags&2048&&Vn(9,t,t.return);break;case 3:Ja(t);break;case 12:Ja(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)):Ja(t);break;default:Ja(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 i=e[n];Jt=i,Kd(i,t)}Qd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Vn(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 Kd(t,e){for(;Jt!==null;){var n=Jt;switch(n.tag){case 0:case 11:case 15:Vn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Oa(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Jt=i;else t:for(n=t;Jt!==null;){i=Jt;var s=i.sibling,r=i.return;if(Ld(i),i===n){Jt=null;break t}if(s!==null){s.return=r,Jt=s;break t}Jt=r}}}var Qv={getCacheForType:function(t){var e=Wt(wt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(wt).controller.signal}},Zv=typeof WeakMap=="function"?WeakMap:Map,gt=0,Mt=null,ot=null,ft=0,St=0,be=null,_n=!1,Ki=!1,ko=!1,mn=0,_t=0,Un=0,hi=0,Fo=0,Ae=0,Ji=0,ka=null,he=null,Wo=!1,ys=0,Jd=0,gs=1/0,vs=null,Bn=null,Qt=0,Nn=null,ki=null,pn=0,Po=0,$o=null,kd=null,Fa=0,Io=null;function Ee(){return(gt&2)!==0&&ft!==0?ft&-ft:_.T!==null?lr():cf()}function Fd(){if(Ae===0)if((ft&536870912)===0||dt){var t=xl;xl<<=1,(xl&3932160)===0&&(xl=262144),Ae=t}else Ae=536870912;return t=Se.current,t!==null&&(t.flags|=32),Ae}function de(t,e,n){(t===Mt&&(St===2||St===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Ln(t,ft,Ae,!1)),ya(t,n),((gt&2)===0||t!==Mt)&&(t===Mt&&((gt&2)===0&&(hi|=n),_t===4&&Ln(t,ft,Ae,!1)),ke(t))}function Wd(t,e,n){if((gt&6)!==0)throw Error(o(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||pa(t,e),s=i?kv(t,e):er(t,e,!0),r=i;do{if(s===0){Ki&&!i&&Ln(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Kv(n)){s=er(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 p=t;s=ka;var T=p.current.memoizedState.isDehydrated;if(T&&(Fi(p,f).flags|=256),f=er(p,f,!1),f!==2){if(ko&&!T){p.errorRecoveryDisabledLanes|=r,hi|=r,s=4;break t}r=he,he=s,r!==null&&(he===null?he=r:he.push.apply(he,r))}s=f}if(r=!1,s!==2)continue}}if(s===1){Fi(t,0),Ln(t,e,0,!0);break}t:{switch(i=t,r=s,r){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Ln(i,e,Ae,!_n);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=ys+300-me(),10<s)){if(Ln(i,e,Ae,!_n),zl(i,0,!0)!==0)break t;pn=e,i.timeoutHandle=Cm(Pd.bind(null,i,n,he,vs,Wo,e,Ae,hi,Ji,_n,r,"Throttled",-0,0),s);break t}Pd(i,n,he,vs,Wo,e,Ae,hi,Ji,_n,r,null,-0,0)}}break}while(!0);ke(t)}function Pd(t,e,n,i,s,r,f,p,T,x,O,B,C,z){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},Xd(e,r,B);var Z=(r&62914560)===r?ys-me():(r&4194048)===r?Jd-me():0;if(Z=O1(B,Z),Z!==null){pn=r,t.cancelPendingCommit=Z(lm.bind(null,t,e,r,n,i,s,f,p,T,O,B,null,C,z)),Ln(t,r,f,!x);return}}lm(t,e,r,n,i,s,f,p,T)}function Kv(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 i=0;i<n.length;i++){var s=n[i],r=s.getSnapshot;s=s.value;try{if(!ge(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 Ln(t,e,n,i){e&=~Fo,e&=~hi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var s=e;0<s;){var r=31-ye(s),f=1<<r;i[r]=-1,s&=~f}n!==0&&uf(t,n,e)}function Ss(){return(gt&6)===0?(Wa(0),!1):!0}function tr(){if(ot!==null){if(St===0)var t=ot.return;else t=ot,an=ii=null,yo(t),wi=null,_a=0,t=ot;for(;t!==null;)zd(t.alternate,t),t=t.return;ot=null}}function Fi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,h1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),pn=0,tr(),Mt=t,ot=n=en(t.current,null),ft=e,St=0,be=null,_n=!1,Ki=pa(t,e),ko=!1,Ji=Ae=Fo=hi=Un=_t=0,he=ka=null,Wo=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var s=31-ye(i),r=1<<s;e|=t[s],i&=~r}return mn=e,Yl(),n}function $d(t,e){lt=null,_.H=Ya,e===ji||e===kl?(e=mh(),St=3):e===io?(e=mh(),St=4):St=e===_o?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,be=e,ot===null&&(_t=1,os(t,ze(e,t.current)))}function Id(){var t=Se.current;return t===null?!0:(ft&4194048)===ft?_e===null:(ft&62914560)===ft||(ft&536870912)!==0?t===_e:!1}function tm(){var t=_.H;return _.H=Ya,t===null?Ya:t}function em(){var t=_.A;return _.A=Qv,t}function Ts(){_t=4,_n||(ft&4194048)!==ft&&Se.current!==null||(Ki=!0),(Un&134217727)===0&&(hi&134217727)===0||Mt===null||Ln(Mt,ft,Ae,!1)}function er(t,e,n){var i=gt;gt|=2;var s=tm(),r=em();(Mt!==t||ft!==e)&&(vs=null,Fi(t,e)),e=!1;var f=_t;t:do try{if(St!==0&&ot!==null){var p=ot,T=be;switch(St){case 8:tr(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=St;if(St=0,be=null,Wi(t,p,T,x),n&&Ki){f=0;break t}break;default:x=St,St=0,be=null,Wi(t,p,T,x)}}Jv(),f=_t;break}catch(O){$d(t,O)}while(!0);return e&&t.shellSuspendCounter++,an=ii=null,gt=i,_.H=s,_.A=r,ot===null&&(Mt=null,ft=0,Yl()),f}function Jv(){for(;ot!==null;)nm(ot)}function kv(t,e){var n=gt;gt|=2;var i=tm(),s=em();Mt!==t||ft!==e?(vs=null,gs=me()+500,Fi(t,e)):Ki=pa(t,e);t:do try{if(St!==0&&ot!==null){e=ot;var r=be;e:switch(St){case 1:St=0,be=null,Wi(t,e,r,1);break;case 2:case 9:if(hh(r)){St=0,be=null,im(e);break}e=function(){St!==2&&St!==9||Mt!==t||(St=7),ke(t)},r.then(e,e);break t;case 3:St=7;break t;case 4:St=5;break t;case 7:hh(r)?(St=0,be=null,im(e)):(St=0,be=null,Wi(t,e,r,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var p=ot;if(f?Gm(f):p.stateNode.complete){St=0,be=null;var T=p.sibling;if(T!==null)ot=T;else{var x=p.return;x!==null?(ot=x,bs(x)):ot=null}break e}}St=0,be=null,Wi(t,e,r,5);break;case 6:St=0,be=null,Wi(t,e,r,6);break;case 8:tr(),_t=6;break t;default:throw Error(o(462))}}Fv();break}catch(O){$d(t,O)}while(!0);return an=ii=null,_.H=i,_.A=s,gt=n,ot!==null?0:(Mt=null,ft=0,Yl(),_t)}function Fv(){for(;ot!==null&&!v0();)nm(ot)}function nm(t){var e=xd(t.alternate,t,mn);t.memoizedProps=t.pendingProps,e===null?bs(t):ot=e}function im(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Td(n,e,e.pendingProps,e.type,void 0,ft);break;case 11:e=Td(n,e,e.pendingProps,e.type.render,e.ref,ft);break;case 5:yo(e);default:zd(n,e),e=ot=eh(e,mn),e=xd(n,e,mn)}t.memoizedProps=t.pendingProps,e===null?bs(t):ot=e}function Wi(t,e,n,i){an=ii=null,yo(e),wi=null,_a=0;var s=e.return;try{if(Hv(t,s,e,n,ft)){_t=1,os(t,ze(n,t.current)),ot=null;return}}catch(r){if(s!==null)throw ot=s,r;_t=1,os(t,ze(n,t.current)),ot=null;return}e.flags&32768?(dt||i===1?t=!0:Ki||(ft&536870912)!==0?t=!1:(_n=t=!0,(i===2||i===9||i===3||i===6)&&(i=Se.current,i!==null&&i.tag===13&&(i.flags|=16384))),am(e,t)):bs(e)}function bs(t){var e=t;do{if((e.flags&32768)!==0){am(e,_n);return}t=e.return;var n=Yv(e.alternate,e,mn);if(n!==null){ot=n;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);_t===0&&(_t=5)}function am(t,e){do{var n=qv(t.alternate,t);if(n!==null){n.flags&=32767,ot=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=n}while(t!==null);_t=6,ot=null}function lm(t,e,n,i,s,r,f,p,T){t.cancelPendingCommit=null;do As();while(Qt!==0);if((gt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(r=e.lanes|e.childLanes,r|=Gu,z0(t,n,r,f,p,T),t===Mt&&(ot=Mt=null,ft=0),ki=e,Nn=t,pn=n,Po=r,$o=s,kd=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Iv(Ml,function(){return cm(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=_.T,_.T=null,s=H.p,H.p=2,f=gt,gt|=4;try{Gv(t,e,n)}finally{gt=f,H.p=s,_.T=i}}Qt=1,sm(),um(),om()}}function sm(){if(Qt===1){Qt=0;var t=Nn,e=ki,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var i=H.p;H.p=2;var s=gt;gt|=4;try{Yd(e,t);var r=dr,f=Kf(t.containerInfo),p=r.focusedElem,T=r.selectionRange;if(f!==p&&p&&p.ownerDocument&&Zf(p.ownerDocument.documentElement,p)){if(T!==null&&Hu(p)){var x=T.start,O=T.end;if(O===void 0&&(O=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(O,p.value.length);else{var B=p.ownerDocument||document,C=B&&B.defaultView||window;if(C.getSelection){var z=C.getSelection(),Z=p.textContent.length,tt=Math.min(T.start,Z),Et=T.end===void 0?tt:Math.min(T.end,Z);!z.extend&&tt>Et&&(f=Et,Et=tt,tt=f);var M=Qf(p,tt),A=Qf(p,Et);if(M&&A&&(z.rangeCount!==1||z.anchorNode!==M.node||z.anchorOffset!==M.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var D=B.createRange();D.setStart(M.node,M.offset),z.removeAllRanges(),tt>Et?(z.addRange(D),z.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),z.addRange(D))}}}}for(B=[],z=p;z=z.parentNode;)z.nodeType===1&&B.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var U=B[p];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Bs=!!hr,dr=hr=null}finally{gt=s,H.p=i,_.T=n}}t.current=e,Qt=2}}function um(){if(Qt===2){Qt=0;var t=Nn,e=ki,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var i=H.p;H.p=2;var s=gt;gt|=4;try{Nd(t,e.alternate,e)}finally{gt=s,H.p=i,_.T=n}}Qt=3}}function om(){if(Qt===4||Qt===3){Qt=0,S0();var t=Nn,e=ki,n=pn,i=kd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Qt=5:(Qt=0,ki=Nn=null,rm(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Bn=null),vu(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(ma,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=_.T,s=H.p,H.p=2,_.T=null;try{for(var r=t.onRecoverableError,f=0;f<i.length;f++){var p=i[f];r(p.value,{componentStack:p.stack})}}finally{_.T=e,H.p=s}}(pn&3)!==0&&As(),ke(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===Io?Fa++:(Fa=0,Io=t):Fa=0,Wa(0)}}function rm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Oa(e)))}function As(){return sm(),um(),om(),cm()}function cm(){if(Qt!==5)return!1;var t=Nn,e=Po;Po=0;var n=vu(pn),i=_.T,s=H.p;try{H.p=32>n?32:n,_.T=null,n=$o,$o=null;var r=Nn,f=pn;if(Qt=0,ki=Nn=null,pn=0,(gt&6)!==0)throw Error(o(331));var p=gt;if(gt|=4,Zd(r.current),Gd(r,r.current,f,n),gt=p,Wa(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(ma,r)}catch{}return!0}finally{H.p=s,_.T=i,rm(t,e)}}function fm(t,e,n){e=ze(n,e),e=Vo(t.stateNode,e,2),t=zn(t,e,2),t!==null&&(ya(t,2),ke(t))}function Tt(t,e,n){if(t.tag===3)fm(t,t,n);else for(;e!==null;){if(e.tag===3){fm(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Bn===null||!Bn.has(i))){t=ze(n,t),n=hd(2),i=zn(e,n,2),i!==null&&(dd(n,i,e,t),ya(i,2),ke(i));break}}e=e.return}}function nr(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new Zv;var s=new Set;i.set(e,s)}else s=i.get(e),s===void 0&&(s=new Set,i.set(e,s));s.has(n)||(ko=!0,s.add(n),t=Wv.bind(null,t,e,n),e.then(t,t))}function Wv(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Mt===t&&(ft&n)===n&&(_t===4||_t===3&&(ft&62914560)===ft&&300>me()-ys?(gt&2)===0&&Fi(t,0):Fo|=n,Ji===ft&&(Ji=0)),ke(t)}function hm(t,e){e===0&&(e=sf()),t=ti(t,e),t!==null&&(ya(t,e),ke(t))}function Pv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),hm(t,n)}function $v(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(e),hm(t,n)}function Iv(t,e){return mu(t,e)}var Es=null,Pi=null,ir=!1,Ms=!1,ar=!1,Hn=0;function ke(t){t!==Pi&&t.next===null&&(Pi===null?Es=Pi=t:Pi=Pi.next=t),Ms=!0,ir||(ir=!0,e1())}function Wa(t,e){if(!ar&&Ms){ar=!0;do for(var n=!1,i=Es;i!==null;){if(t!==0){var s=i.pendingLanes;if(s===0)var r=0;else{var f=i.suspendedLanes,p=i.pingedLanes;r=(1<<31-ye(42|t)+1)-1,r&=s&~(f&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,ym(i,r))}else r=ft,r=zl(i,i===Mt?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(r&3)===0||pa(i,r)||(n=!0,ym(i,r));i=i.next}while(n);ar=!1}}function t1(){dm()}function dm(){Ms=ir=!1;var t=0;Hn!==0&&f1()&&(t=Hn);for(var e=me(),n=null,i=Es;i!==null;){var s=i.next,r=mm(i,e);r===0?(i.next=null,n===null?Es=s:n.next=s,s===null&&(Pi=n)):(n=i,(t!==0||(r&3)!==0)&&(Ms=!0)),i=s}Qt!==0&&Qt!==5||Wa(t),Hn!==0&&(Hn=0)}function mm(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,s=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ye(r),p=1<<f,T=s[f];T===-1?((p&n)===0||(p&i)!==0)&&(s[f]=C0(p,e)):T<=e&&(t.expiredLanes|=p),r&=~p}if(e=Mt,n=ft,n=zl(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(St===2||St===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&pu(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||pa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&pu(i),vu(n)){case 2:case 8:n=af;break;case 32:n=Ml;break;case 268435456:n=lf;break;default:n=Ml}return i=pm.bind(null,t),n=mu(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&pu(i),t.callbackPriority=2,t.callbackNode=null,2}function pm(t,e){if(Qt!==0&&Qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(As()&&t.callbackNode!==n)return null;var i=ft;return i=zl(t,t===Mt?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(Wd(t,i,e),mm(t,me()),t.callbackNode!=null&&t.callbackNode===n?pm.bind(null,t):null)}function ym(t,e){if(As())return null;Wd(t,e,!0)}function e1(){d1(function(){(gt&6)!==0?mu(nf,t1):dm()})}function lr(){if(Hn===0){var t=Li;t===0&&(t=Dl,Dl<<=1,(Dl&261888)===0&&(Dl=256)),Hn=t}return Hn}function gm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:_l(""+t)}function vm(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 n1(t,e,n,i,s){if(e==="submit"&&n&&n.stateNode===s){var r=gm((s[ue]||null).action),f=i.submitter;f&&(e=(e=f[ue]||null)?gm(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var p=new Ll("action","action",null,i,s);t.push({event:p,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Hn!==0){var T=f?vm(s,f):new FormData(s);Do(n,{pending:!0,data:T,method:s.method,action:r},null,T)}}else typeof r=="function"&&(p.preventDefault(),T=f?vm(s,f):new FormData(s),Do(n,{pending:!0,data:T,method:s.method,action:r},r,T))},currentTarget:s}]})}}for(var sr=0;sr<qu.length;sr++){var ur=qu[sr],i1=ur.toLowerCase(),a1=ur[0].toUpperCase()+ur.slice(1);je(i1,"on"+a1)}je(Ff,"onAnimationEnd"),je(Wf,"onAnimationIteration"),je(Pf,"onAnimationStart"),je("dblclick","onDoubleClick"),je("focusin","onFocus"),je("focusout","onBlur"),je(Tv,"onTransitionRun"),je(bv,"onTransitionStart"),je(Av,"onTransitionCancel"),je($f,"onTransitionEnd"),Ai("onMouseEnter",["mouseout","mouseover"]),Ai("onMouseLeave",["mouseout","mouseover"]),Ai("onPointerEnter",["pointerout","pointerover"]),Ai("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),l1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));function Sm(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],s=i.event;i=i.listeners;t:{var r=void 0;if(e)for(var f=i.length-1;0<=f;f--){var p=i[f],T=p.instance,x=p.currentTarget;if(p=p.listener,T!==r&&s.isPropagationStopped())break t;r=p,s.currentTarget=x;try{r(s)}catch(O){wl(O)}s.currentTarget=null,r=T}else for(f=0;f<i.length;f++){if(p=i[f],T=p.instance,x=p.currentTarget,p=p.listener,T!==r&&s.isPropagationStopped())break t;r=p,s.currentTarget=x;try{r(s)}catch(O){wl(O)}s.currentTarget=null,r=T}}}}function rt(t,e){var n=e[Su];n===void 0&&(n=e[Su]=new Set);var i=t+"__bubble";n.has(i)||(Tm(e,t,2,!1),n.add(i))}function or(t,e,n){var i=0;e&&(i|=4),Tm(n,t,i,e)}var Ds="_reactListening"+Math.random().toString(36).slice(2);function rr(t){if(!t[Ds]){t[Ds]=!0,df.forEach(function(n){n!=="selectionchange"&&(l1.has(n)||or(n,!1,t),or(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ds]||(e[Ds]=!0,or("selectionchange",!1,e))}}function Tm(t,e,n,i){switch(Fm(e)){case 2:var s=U1;break;case 8:s=B1;break;default:s=Mr}n=s.bind(null,e,n,t),s=void 0,!zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),i?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 cr(t,e,n,i,s){var r=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var f=i.tag;if(f===3||f===4){var p=i.stateNode.containerInfo;if(p===s)break;if(f===4)for(f=i.return;f!==null;){var T=f.tag;if((T===3||T===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;p!==null;){if(f=Si(p),f===null)return;if(T=f.tag,T===5||T===6||T===26||T===27){i=r=f;continue t}p=p.parentNode}}i=i.return}Df(function(){var x=r,O=xu(n),B=[];t:{var C=If.get(t);if(C!==void 0){var z=Ll,Z=t;switch(t){case"keypress":if(Bl(n)===0)break t;case"keydown":case"keyup":z=$0;break;case"focusin":Z="focus",z=_u;break;case"focusout":Z="blur",z=_u;break;case"beforeblur":case"afterblur":z=_u;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Y0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=ev;break;case Ff:case Wf:case Pf:z=X0;break;case $f:z=iv;break;case"scroll":case"scrollend":z=j0;break;case"wheel":z=lv;break;case"copy":case"cut":case"paste":z=Z0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Of;break;case"toggle":case"beforetoggle":z=uv}var tt=(e&4)!==0,Et=!tt&&(t==="scroll"||t==="scrollend"),M=tt?C!==null?C+"Capture":null:C;tt=[];for(var A=x,D;A!==null;){var U=A;if(D=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||D===null||M===null||(U=Sa(A,M),U!=null&&tt.push($a(A,U,D))),Et)break;A=A.return}0<tt.length&&(C=new z(C,Z,null,n,O),B.push({event:C,listeners:tt}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&n!==Du&&(Z=n.relatedTarget||n.fromElement)&&(Si(Z)||Z[vi]))break t;if((z||C)&&(C=O.window===O?O:(C=O.ownerDocument)?C.defaultView||C.parentWindow:window,z?(Z=n.relatedTarget||n.toElement,z=x,Z=Z?Si(Z):null,Z!==null&&(Et=d(Z),tt=Z.tag,Z!==Et||tt!==5&&tt!==27&&tt!==6)&&(Z=null)):(z=null,Z=x),z!==Z)){if(tt=zf,U="onMouseLeave",M="onMouseEnter",A="mouse",(t==="pointerout"||t==="pointerover")&&(tt=Of,U="onPointerLeave",M="onPointerEnter",A="pointer"),Et=z==null?C:va(z),D=Z==null?C:va(Z),C=new tt(U,A+"leave",z,n,O),C.target=Et,C.relatedTarget=D,U=null,Si(O)===x&&(tt=new tt(M,A+"enter",Z,n,O),tt.target=D,tt.relatedTarget=Et,U=tt),Et=U,z&&Z)e:{for(tt=s1,M=z,A=Z,D=0,U=M;U;U=tt(U))D++;U=0;for(var I=A;I;I=tt(I))U++;for(;0<D-U;)M=tt(M),D--;for(;0<U-D;)A=tt(A),U--;for(;D--;){if(M===A||A!==null&&M===A.alternate){tt=M;break e}M=tt(M),A=tt(A)}tt=null}else tt=null;z!==null&&bm(B,C,z,tt,!1),Z!==null&&Et!==null&&bm(B,Et,Z,tt,!0)}}t:{if(C=x?va(x):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var pt=jf;else if(Lf(C))if(wf)pt=gv;else{pt=pv;var P=mv}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?x&&Mu(x.elementType)&&(pt=jf):pt=yv;if(pt&&(pt=pt(t,x))){Hf(B,pt,n,O);break t}P&&P(t,C,x),t==="focusout"&&x&&C.type==="number"&&x.memoizedProps.value!=null&&Eu(C,"number",C.value)}switch(P=x?va(x):window,t){case"focusin":(Lf(P)||P.contentEditable==="true")&&(zi=P,ju=x,Ca=null);break;case"focusout":Ca=ju=zi=null;break;case"mousedown":wu=!0;break;case"contextmenu":case"mouseup":case"dragend":wu=!1,Jf(B,n,O);break;case"selectionchange":if(Sv)break;case"keydown":case"keyup":Jf(B,n,O)}var st;if(Bu)t:{switch(t){case"compositionstart":var ht="onCompositionStart";break t;case"compositionend":ht="onCompositionEnd";break t;case"compositionupdate":ht="onCompositionUpdate";break t}ht=void 0}else Ci?Bf(t,n)&&(ht="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(ht="onCompositionStart");ht&&(Vf&&n.locale!=="ko"&&(Ci||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&Ci&&(st=xf()):(bn=O,Ru="value"in bn?bn.value:bn.textContent,Ci=!0)),P=xs(x,ht),0<P.length&&(ht=new Rf(ht,t,null,n,O),B.push({event:ht,listeners:P}),st?ht.data=st:(st=Nf(n),st!==null&&(ht.data=st)))),(st=rv?cv(t,n):fv(t,n))&&(ht=xs(x,"onBeforeInput"),0<ht.length&&(P=new Rf("onBeforeInput","beforeinput",null,n,O),B.push({event:P,listeners:ht}),P.data=st)),n1(B,t,x,n,O)}Sm(B,e)})}function $a(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xs(t,e){for(var n=e+"Capture",i=[];t!==null;){var s=t,r=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||r===null||(s=Sa(t,n),s!=null&&i.unshift($a(t,s,r)),s=Sa(t,e),s!=null&&i.push($a(t,s,r))),t.tag===3)return i;t=t.return}return[]}function s1(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function bm(t,e,n,i,s){for(var r=e._reactName,f=[];n!==null&&n!==i;){var p=n,T=p.alternate,x=p.stateNode;if(p=p.tag,T!==null&&T===i)break;p!==5&&p!==26&&p!==27||x===null||(T=x,s?(x=Sa(n,r),x!=null&&f.unshift($a(n,x,T))):s||(x=Sa(n,r),x!=null&&f.push($a(n,x,T)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var u1=/\r\n?/g,o1=/\u0000|\uFFFD/g;function Am(t){return(typeof t=="string"?t:""+t).replace(u1,`
9
- `).replace(o1,"")}function Em(t,e){return e=Am(e),Am(t)===e}function At(t,e,n,i,s,r){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Mi(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Mi(t,""+i);break;case"className":Ol(t,"class",i);break;case"tabIndex":Ol(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ol(t,n,i);break;case"style":Ef(t,i,r);break;case"data":if(e!=="object"){Ol(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=_l(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="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"&&At(t,e,"name",s.name,s,null),At(t,e,"formEncType",s.formEncType,s,null),At(t,e,"formMethod",s.formMethod,s,null),At(t,e,"formTarget",s.formTarget,s,null)):(At(t,e,"encType",s.encType,s,null),At(t,e,"method",s.method,s,null),At(t,e,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=_l(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Ie);break;case"onScroll":i!=null&&rt("scroll",t);break;case"onScrollEnd":i!=null&&rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=_l(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):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":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":rt("beforetoggle",t),rt("toggle",t),Rl(t,"popover",i);break;case"xlinkActuate":$e(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":$e(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":$e(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":$e(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":$e(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":$e(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":$e(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":$e(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":$e(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Rl(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=L0.get(n)||n,Rl(t,n,i))}}function fr(t,e,n,i,s,r){switch(n){case"style":Ef(t,i,r);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof i=="string"?Mi(t,i):(typeof i=="number"||typeof i=="bigint")&&Mi(t,""+i);break;case"onScroll":i!=null&&rt("scroll",t);break;case"onScrollEnd":i!=null&&rt("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mf.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[ue]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,s),typeof i=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,s);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):Rl(t,n,i)}}}function $t(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",t),rt("load",t);var i=!1,s=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:At(t,e,r,f,n,null)}}s&&At(t,e,"srcSet",n.srcSet,n,null),i&&At(t,e,"src",n.src,n,null);return;case"input":rt("invalid",t);var p=r=f=s=null,T=null,x=null;for(i in n)if(n.hasOwnProperty(i)){var O=n[i];if(O!=null)switch(i){case"name":s=O;break;case"type":f=O;break;case"checked":T=O;break;case"defaultChecked":x=O;break;case"value":r=O;break;case"defaultValue":p=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,e));break;default:At(t,e,i,O,n,null)}}Sf(t,r,p,T,x,f,s,!1);return;case"select":rt("invalid",t),i=f=r=null;for(s in n)if(n.hasOwnProperty(s)&&(p=n[s],p!=null))switch(s){case"value":r=p;break;case"defaultValue":f=p;break;case"multiple":i=p;default:At(t,e,s,p,n,null)}e=r,n=f,t.multiple=!!i,e!=null?Ei(t,!!i,e,!1):n!=null&&Ei(t,!!i,n,!0);return;case"textarea":rt("invalid",t),r=s=i=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":i=p;break;case"defaultValue":s=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:At(t,e,f,p,n,null)}bf(t,i,s,r);return;case"option":for(T in n)n.hasOwnProperty(T)&&(i=n[T],i!=null)&&(T==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":At(t,e,T,i,n,null));return;case"dialog":rt("beforetoggle",t),rt("toggle",t),rt("cancel",t),rt("close",t);break;case"iframe":case"object":rt("load",t);break;case"video":case"audio":for(i=0;i<Pa.length;i++)rt(Pa[i],t);break;case"image":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"embed":case"source":case"link":rt("error",t),rt("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(x in n)if(n.hasOwnProperty(x)&&(i=n[x],i!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:At(t,e,x,i,n,null)}return;default:if(Mu(e)){for(O in n)n.hasOwnProperty(O)&&(i=n[O],i!==void 0&&fr(t,e,O,i,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(i=n[p],i!=null&&At(t,e,p,i,n,null))}function r1(t,e,n,i){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,p=null,T=null,x=null,O=null;for(z in n){var B=n[z];if(n.hasOwnProperty(z)&&B!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":T=B;default:i.hasOwnProperty(z)||At(t,e,z,null,i,B)}}for(var C in i){var z=i[C];if(B=n[C],i.hasOwnProperty(C)&&(z!=null||B!=null))switch(C){case"type":r=z;break;case"name":s=z;break;case"checked":x=z;break;case"defaultChecked":O=z;break;case"value":f=z;break;case"defaultValue":p=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:z!==B&&At(t,e,C,z,i,B)}}Au(t,f,p,T,x,O,r,s);return;case"select":z=f=p=C=null;for(r in n)if(T=n[r],n.hasOwnProperty(r)&&T!=null)switch(r){case"value":break;case"multiple":z=T;default:i.hasOwnProperty(r)||At(t,e,r,null,i,T)}for(s in i)if(r=i[s],T=n[s],i.hasOwnProperty(s)&&(r!=null||T!=null))switch(s){case"value":C=r;break;case"defaultValue":p=r;break;case"multiple":f=r;default:r!==T&&At(t,e,s,r,i,T)}e=p,n=f,i=z,C!=null?Ei(t,!!n,C,!1):!!i!=!!n&&(e!=null?Ei(t,!!n,e,!0):Ei(t,!!n,n?[]:"",!1));return;case"textarea":z=C=null;for(p in n)if(s=n[p],n.hasOwnProperty(p)&&s!=null&&!i.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:At(t,e,p,null,i,s)}for(f in i)if(s=i[f],r=n[f],i.hasOwnProperty(f)&&(s!=null||r!=null))switch(f){case"value":C=s;break;case"defaultValue":z=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==r&&At(t,e,f,s,i,r)}Tf(t,C,z);return;case"option":for(var Z in n)C=n[Z],n.hasOwnProperty(Z)&&C!=null&&!i.hasOwnProperty(Z)&&(Z==="selected"?t.selected=!1:At(t,e,Z,null,i,C));for(T in i)C=i[T],z=n[T],i.hasOwnProperty(T)&&C!==z&&(C!=null||z!=null)&&(T==="selected"?t.selected=C&&typeof C!="function"&&typeof C!="symbol":At(t,e,T,C,i,z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tt in n)C=n[tt],n.hasOwnProperty(tt)&&C!=null&&!i.hasOwnProperty(tt)&&At(t,e,tt,null,i,C);for(x in i)if(C=i[x],z=n[x],i.hasOwnProperty(x)&&C!==z&&(C!=null||z!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,e));break;default:At(t,e,x,C,i,z)}return;default:if(Mu(e)){for(var Et in n)C=n[Et],n.hasOwnProperty(Et)&&C!==void 0&&!i.hasOwnProperty(Et)&&fr(t,e,Et,void 0,i,C);for(O in i)C=i[O],z=n[O],!i.hasOwnProperty(O)||C===z||C===void 0&&z===void 0||fr(t,e,O,C,i,z);return}}for(var M in n)C=n[M],n.hasOwnProperty(M)&&C!=null&&!i.hasOwnProperty(M)&&At(t,e,M,null,i,C);for(B in i)C=i[B],z=n[B],!i.hasOwnProperty(B)||C===z||C==null&&z==null||At(t,e,B,C,i,z)}function Mm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function c1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var s=n[i],r=s.transferSize,f=s.initiatorType,p=s.duration;if(r&&p&&Mm(f)){for(f=0,p=s.responseEnd,i+=1;i<n.length;i++){var T=n[i],x=T.startTime;if(x>p)break;var O=T.transferSize,B=T.initiatorType;O&&Mm(B)&&(T=T.responseEnd,f+=O*(T<p?1:(p-x)/(T-x)))}if(--i,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 hr=null,dr=null;function Cs(t){return t.nodeType===9?t:t.ownerDocument}function Dm(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 xm(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 mr(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 pr=null;function f1(){var t=window.event;return t&&t.type==="popstate"?t===pr?!1:(pr=t,!0):(pr=null,!1)}var Cm=typeof setTimeout=="function"?setTimeout:void 0,h1=typeof clearTimeout=="function"?clearTimeout:void 0,zm=typeof Promise=="function"?Promise:void 0,d1=typeof queueMicrotask=="function"?queueMicrotask:typeof zm<"u"?function(t){return zm.resolve(null).then(t).catch(m1)}:Cm;function m1(t){setTimeout(function(){throw t})}function jn(t){return t==="head"}function Rm(t,e){var n=e,i=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(s),ea(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ia(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ia(n);for(var r=n.firstChild;r;){var f=r.nextSibling,p=r.nodeName;r[ga]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&Ia(t.ownerDocument.body);n=s}while(n);ea(e)}function Om(t,e){var n=t;t=0;do{var i=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||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function yr(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":yr(n),Tu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function p1(t,e,n,i){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[ga])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=Ue(t.nextSibling),t===null)break}return null}function y1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function Vm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function gr(t){return t.data==="$?"||t.data==="$~"}function vr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function g1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Sr=null;function _m(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Um(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 Bm(t,e,n){switch(e=Cs(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 Ia(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Tu(t)}var Be=new Map,Nm=new Set;function zs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=H.d;H.d={f:v1,r:S1,D:T1,C:b1,L:A1,m:E1,X:D1,S:M1,M:x1};function v1(){var t=yn.f(),e=Ss();return t||e}function S1(t){var e=Ti(t);e!==null&&e.tag===5&&e.type==="form"?$h(e):yn.r(t)}var $i=typeof document>"u"?null:document;function Lm(t,e,n){var i=$i;if(i&&typeof e=="string"&&e){var s=xe(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Nm.has(s)||(Nm.add(s),t={rel:t,crossOrigin:n,href:e},i.querySelector(s)===null&&(e=i.createElement("link"),$t(e,"link",t),Kt(e),i.head.appendChild(e)))}}function T1(t){yn.D(t),Lm("dns-prefetch",t,null)}function b1(t,e){yn.C(t,e),Lm("preconnect",t,e)}function A1(t,e,n){yn.L(t,e,n);var i=$i;if(i&&t&&e){var s='link[rel="preload"][as="'+xe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+xe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+xe(n.imageSizes)+'"]')):s+='[href="'+xe(t)+'"]';var r=s;switch(e){case"style":r=Ii(t);break;case"script":r=ta(t)}Be.has(r)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Be.set(r,t),i.querySelector(s)!==null||e==="style"&&i.querySelector(tl(r))||e==="script"&&i.querySelector(el(r))||(e=i.createElement("link"),$t(e,"link",t),Kt(e),i.head.appendChild(e)))}}function E1(t,e){yn.m(t,e);var n=$i;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+xe(i)+'"][href="'+xe(t)+'"]',r=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=ta(t)}if(!Be.has(r)&&(t=S({rel:"modulepreload",href:t},e),Be.set(r,t),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(el(r)))return}i=n.createElement("link"),$t(i,"link",t),Kt(i),n.head.appendChild(i)}}}function M1(t,e,n){yn.S(t,e,n);var i=$i;if(i&&t){var s=bi(i).hoistableStyles,r=Ii(t);e=e||"default";var f=s.get(r);if(!f){var p={loading:0,preload:null};if(f=i.querySelector(tl(r)))p.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Be.get(r))&&Tr(t,n);var T=f=i.createElement("link");Kt(T),$t(T,"link",t),T._p=new Promise(function(x,O){T.onload=x,T.onerror=O}),T.addEventListener("load",function(){p.loading|=1}),T.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Rs(f,e,i)}f={type:"stylesheet",instance:f,count:1,state:p},s.set(r,f)}}}function D1(t,e){yn.X(t,e);var n=$i;if(n&&t){var i=bi(n).hoistableScripts,s=ta(t),r=i.get(s);r||(r=n.querySelector(el(s)),r||(t=S({src:t,async:!0},e),(e=Be.get(s))&&br(t,e),r=n.createElement("script"),Kt(r),$t(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(s,r))}}function x1(t,e){yn.M(t,e);var n=$i;if(n&&t){var i=bi(n).hoistableScripts,s=ta(t),r=i.get(s);r||(r=n.querySelector(el(s)),r||(t=S({src:t,async:!0,type:"module"},e),(e=Be.get(s))&&br(t,e),r=n.createElement("script"),Kt(r),$t(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(s,r))}}function Hm(t,e,n,i){var s=(s=ut.current)?zs(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=Ii(n.href),n=bi(s).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Ii(n.href);var r=bi(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(tl(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Be.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Be.set(t,n),r||C1(s,t,n,f.state))),e&&i===null)throw Error(o(528,""));return f}if(e&&i!==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=ta(n),n=bi(s).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ii(t){return'href="'+xe(t)+'"'}function tl(t){return'link[rel="stylesheet"]['+t+"]"}function jm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function C1(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),$t(e,"link",n),Kt(e),t.head.appendChild(e))}function ta(t){return'[src="'+xe(t)+'"]'}function el(t){return"script[async]"+t}function wm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+xe(n.href)+'"]');if(i)return e.instance=i,Kt(i),i;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Kt(i),$t(i,"style",s),Rs(i,n.precedence,t),e.instance=i;case"stylesheet":s=Ii(n.href);var r=t.querySelector(tl(s));if(r)return e.state.loading|=4,e.instance=r,Kt(r),r;i=jm(n),(s=Be.get(s))&&Tr(i,s),r=(t.ownerDocument||t).createElement("link"),Kt(r);var f=r;return f._p=new Promise(function(p,T){f.onload=p,f.onerror=T}),$t(r,"link",i),e.state.loading|=4,Rs(r,n.precedence,t),e.instance=r;case"script":return r=ta(n.src),(s=t.querySelector(el(r)))?(e.instance=s,Kt(s),s):(i=n,(s=Be.get(r))&&(i=S({},n),br(i,s)),t=t.ownerDocument||t,s=t.createElement("script"),Kt(s),$t(s,"link",i),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&&(i=e.instance,e.state.loading|=4,Rs(i,n.precedence,t));return e.instance}function Rs(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,r=s,f=0;f<i.length;f++){var p=i[f];if(p.dataset.precedence===e)r=p;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 Tr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function br(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Os=null;function Ym(t,e,n){if(Os===null){var i=new Map,s=Os=new Map;s.set(n,i)}else s=Os,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var r=n[s];if(!(r[ga]||r[kt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var p=i.get(f);p?p.push(r):i.set(f,[r])}}return i}function qm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function z1(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 Gm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function R1(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Ii(i.href),r=e.querySelector(tl(s));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Kt(r);return}r=e.ownerDocument||e,i=jm(i),(s=Be.get(s))&&Tr(i,s),r=r.createElement("link"),Kt(r);var f=r;f._p=new Promise(function(p,T){f.onload=p,f.onerror=T}),$t(r,"link",i),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=Vs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ar=0;function O1(t,e){return t.stylesheets&&t.count===0&&Us(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&Us(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Ar===0&&(Ar=62500*c1());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Us(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Ar?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function Vs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Us(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _s=null;function Us(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_s=new Map,e.forEach(V1,t),_s=null,Vs.call(t))}function V1(t,e){if(!(e.state.loading&4)){var n=_s.get(t);if(n)var i=n.get(null);else{n=new Map,_s.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),i=f)}i&&n.set(null,i)}s=e.instance,f=s.getAttribute("data-precedence"),r=n.get(f)||i,r===i&&n.set(null,s),n.set(f,s),this.count++,i=Vs.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),r?r.parentNode.insertBefore(s,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var nl={$$typeof:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function _1(t,e,n,i,s,r,f,p,T){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Xm(t,e,n,i,s,r,f,p,T,x,O,B){return t=new _1(t,e,n,f,T,x,O,B,p),e=1,r===!0&&(e|=24),r=ve(3,null,null,e),t.current=r,r.stateNode=t,e=to(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:e},ao(r),t}function Qm(t){return t?(t=Vi,t):Vi}function Zm(t,e,n,i,s,r){s=Qm(s),i.context===null?i.context=s:i.pendingContext=s,i=Cn(e),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=zn(t,i,e),n!==null&&(de(n,t,e),Ba(n,t,e))}function Km(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Er(t,e){Km(t,e),(t=t.alternate)&&Km(t,e)}function Jm(t){if(t.tag===13||t.tag===31){var e=ti(t,67108864);e!==null&&de(e,t,67108864),Er(t,67108864)}}function km(t){if(t.tag===13||t.tag===31){var e=Ee();e=gu(e);var n=ti(t,e);n!==null&&de(n,t,e),Er(t,e)}}var Bs=!0;function U1(t,e,n,i){var s=_.T;_.T=null;var r=H.p;try{H.p=2,Mr(t,e,n,i)}finally{H.p=r,_.T=s}}function B1(t,e,n,i){var s=_.T;_.T=null;var r=H.p;try{H.p=8,Mr(t,e,n,i)}finally{H.p=r,_.T=s}}function Mr(t,e,n,i){if(Bs){var s=Dr(i);if(s===null)cr(t,e,i,Ns,n),Wm(t,i);else if(L1(s,t,e,n,i))i.stopPropagation();else if(Wm(t,i),e&4&&-1<N1.indexOf(t)){for(;s!==null;){var r=Ti(s);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Fn(r.pendingLanes);if(f!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var T=1<<31-ye(f);p.entanglements[1]|=T,f&=~T}ke(r),(gt&6)===0&&(gs=me()+500,Wa(0))}}break;case 31:case 13:p=ti(r,2),p!==null&&de(p,r,2),Ss(),Er(r,2)}if(r=Dr(i),r===null&&cr(t,e,i,Ns,n),r===s)break;s=r}s!==null&&i.stopPropagation()}else cr(t,e,i,null,n)}}function Dr(t){return t=xu(t),xr(t)}var Ns=null;function xr(t){if(Ns=null,t=Si(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=y(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 Ns=t,null}function Fm(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(T0()){case nf:return 2;case af:return 8;case Ml:case b0:return 32;case lf:return 268435456;default:return 32}default:return 32}}var Cr=!1,wn=null,Yn=null,qn=null,il=new Map,al=new Map,Gn=[],N1="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 Wm(t,e){switch(t){case"focusin":case"focusout":wn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":il.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":al.delete(e.pointerId)}}function ll(t,e,n,i,s,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[s]},e!==null&&(e=Ti(e),e!==null&&Jm(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function L1(t,e,n,i,s){switch(e){case"focusin":return wn=ll(wn,t,e,n,i,s),!0;case"dragenter":return Yn=ll(Yn,t,e,n,i,s),!0;case"mouseover":return qn=ll(qn,t,e,n,i,s),!0;case"pointerover":var r=s.pointerId;return il.set(r,ll(il.get(r)||null,t,e,n,i,s)),!0;case"gotpointercapture":return r=s.pointerId,al.set(r,ll(al.get(r)||null,t,e,n,i,s)),!0}return!1}function Pm(t){var e=Si(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,ff(t.priority,function(){km(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,ff(t.priority,function(){km(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 Ls(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Dr(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);Du=i,n.target.dispatchEvent(i),Du=null}else return e=Ti(n),e!==null&&Jm(e),t.blockedOn=n,!1;e.shift()}return!0}function $m(t,e,n){Ls(t)&&n.delete(e)}function H1(){Cr=!1,wn!==null&&Ls(wn)&&(wn=null),Yn!==null&&Ls(Yn)&&(Yn=null),qn!==null&&Ls(qn)&&(qn=null),il.forEach($m),al.forEach($m)}function Hs(t,e){t.blockedOn===e&&(t.blockedOn=null,Cr||(Cr=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,H1)))}var js=null;function Im(t){js!==t&&(js=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){js===t&&(js=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],s=t[e+2];if(typeof i!="function"){if(xr(i||n)===null)continue;break}var r=Ti(n);r!==null&&(t.splice(e,3),e-=3,Do(r,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function ea(t){function e(T){return Hs(T,t)}wn!==null&&Hs(wn,t),Yn!==null&&Hs(Yn,t),qn!==null&&Hs(qn,t),il.forEach(e),al.forEach(e);for(var n=0;n<Gn.length;n++){var i=Gn[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)Pm(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],r=n[i+1],f=s[ue]||null;if(typeof r=="function")f||Im(n);else if(f){var p=null;if(r&&r.hasAttribute("formAction")){if(s=r,f=r[ue]||null)p=f.formAction;else if(xr(s)!==null)continue}else p=f.action;typeof p=="function"?n[i+1]=p:(n.splice(i,3),i-=3),Im(n)}}}function tp(){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),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,s=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),s!==null&&(s(),s=null)}}}function zr(t){this._internalRoot=t}ws.prototype.render=zr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,i=Ee();Zm(n,i,t,e,null,null)},ws.prototype.unmount=zr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Zm(t.current,2,null,t,null,null),Ss(),e[vi]=null}};function ws(t){this._internalRoot=t}ws.prototype.unstable_scheduleHydration=function(t){if(t){var e=cf();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&Pm(t)}};var ep=l.version;if(ep!=="19.2.4")throw Error(o(527,ep,"19.2.4"));H.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=m(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var j1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ys.isDisabled&&Ys.supportsFiber)try{ma=Ys.inject(j1),pe=Ys}catch{}}return ul.createRoot=function(t,e){if(!c(t))throw Error(o(299));var n=!1,i="",s=od,r=rd,f=cd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Xm(t,1,!1,null,null,n,i,null,s,r,f,tp),t[vi]=e.current,rr(t),new zr(e)},ul.hydrateRoot=function(t,e,n){if(!c(t))throw Error(o(299));var i=!1,s="",r=od,f=rd,p=cd,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!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&&(p=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),e=Xm(t,1,!0,e,n??null,i,s,T,r,f,p,tp),e.context=Qm(null),n=e.current,i=Ee(),i=gu(i),s=Cn(i),s.callback=null,zn(n,s,i),n=i,e.current.lanes=n,ya(e,n),ke(e),t[vi]=e.current,rr(t),new ws(e)},ul.version="19.2.4",ul}var fp;function k1(){if(fp)return Vr.exports;fp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Vr.exports=J1(),Vr.exports}var F1=k1();const P2=Ry(F1);const Oy=(...a)=>a.filter((l,u,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===u).join(" ").trim();const W1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const P1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,u,o)=>o?o.toUpperCase():u.toLowerCase());const hp=a=>{const l=P1(a);return l.charAt(0).toUpperCase()+l.slice(1)};var $1={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 I1=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1};const tS=X.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:u=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:h,...y},g)=>X.createElement("svg",{ref:g,...$1,width:l,height:l,stroke:a,strokeWidth:o?Number(u)*24/Number(l):u,className:Oy("lucide",c),...!d&&!I1(y)&&{"aria-hidden":"true"},...y},[...h.map(([m,v])=>X.createElement(m,v)),...Array.isArray(d)?d:[d]]));const eS=(a,l)=>{const u=X.forwardRef(({className:o,...c},d)=>X.createElement(tS,{ref:d,iconNode:l,className:Oy(`lucide-${W1(hp(a))}`,`lucide-${a}`,o),...c}));return u.displayName=hp(a),u};const nS=[["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"}]],$2=eS("mic",nS),Ec=X.createContext({});function Mc(a){const l=X.useRef(null);return l.current===null&&(l.current=a()),l.current}const Vy=typeof window<"u",_y=Vy?X.useLayoutEffect:X.useEffect,su=X.createContext(null);function Dc(a,l){a.indexOf(l)===-1&&a.push(l)}function $s(a,l){const u=a.indexOf(l);u>-1&&a.splice(u,1)}const Pe=(a,l,u)=>u>l?l:u<a?a:u;let xc=()=>{};const vn={},Uy=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);function By(a){return typeof a=="object"&&a!==null}const Ny=a=>/^0[^.\s]+$/u.test(a);function Ly(a){let l;return()=>(l===void 0&&(l=a()),l)}const Le=a=>a,iS=(a,l)=>u=>l(a(u)),Sl=(...a)=>a.reduce(iS),ml=(a,l,u)=>{const o=l-a;return o===0?1:(u-a)/o};class Cc{constructor(){this.subscriptions=[]}add(l){return Dc(this.subscriptions,l),()=>$s(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 Xe=a=>a*1e3,Ne=a=>a/1e3;function Hy(a,l){return l?a*(1e3/l):0}const jy=(a,l,u)=>(((1-3*u+3*l)*a+(3*u-6*l))*a+3*l)*a,aS=1e-7,lS=12;function sS(a,l,u,o,c){let d,h,y=0;do h=l+(u-l)/2,d=jy(h,o,c)-a,d>0?u=h:l=h;while(Math.abs(d)>aS&&++y<lS);return h}function Tl(a,l,u,o){if(a===l&&u===o)return Le;const c=d=>sS(d,0,1,a,u);return d=>d===0||d===1?d:jy(c(d),l,o)}const wy=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,Yy=a=>l=>1-a(1-l),qy=Tl(.33,1.53,.69,.99),zc=Yy(qy),Gy=wy(zc),Xy=a=>(a*=2)<1?.5*zc(a):.5*(2-Math.pow(2,-10*(a-1))),Rc=a=>1-Math.sin(Math.acos(a)),Qy=Yy(Rc),Zy=wy(Rc),uS=Tl(.42,0,1,1),oS=Tl(0,0,.58,1),Ky=Tl(.42,0,.58,1),rS=a=>Array.isArray(a)&&typeof a[0]!="number",Jy=a=>Array.isArray(a)&&typeof a[0]=="number",cS={linear:Le,easeIn:uS,easeInOut:Ky,easeOut:oS,circIn:Rc,circInOut:Zy,circOut:Qy,backIn:zc,backInOut:Gy,backOut:qy,anticipate:Xy},fS=a=>typeof a=="string",dp=a=>{if(Jy(a)){xc(a.length===4);const[l,u,o,c]=a;return Tl(l,u,o,c)}else if(fS(a))return cS[a];return a},qs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hS(a,l){let u=new Set,o=new Set,c=!1,d=!1;const h=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function g(v){h.has(v)&&(m.schedule(v),a()),v(y)}const m={schedule:(v,S=!1,b=!1)=>{const V=b&&c?u:o;return S&&h.add(v),V.has(v)||V.add(v),v},cancel:v=>{o.delete(v),h.delete(v)},process:v=>{if(y=v,c){d=!0;return}c=!0,[u,o]=[o,u],u.forEach(g),u.clear(),c=!1,d&&(d=!1,m.process(v))}};return m}const dS=40;function ky(a,l){let u=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>u=!0,h=qs.reduce((Y,K)=>(Y[K]=hS(d),Y),{}),{setup:y,read:g,resolveKeyframes:m,preUpdate:v,update:S,preRender:b,render:R,postRender:V}=h,j=()=>{const Y=vn.useManualTiming?c.timestamp:performance.now();u=!1,vn.useManualTiming||(c.delta=o?1e3/60:Math.max(Math.min(Y-c.timestamp,dS),1)),c.timestamp=Y,c.isProcessing=!0,y.process(c),g.process(c),m.process(c),v.process(c),S.process(c),b.process(c),R.process(c),V.process(c),c.isProcessing=!1,u&&l&&(o=!1,a(j))},w=()=>{u=!0,o=!0,c.isProcessing||a(j)};return{schedule:qs.reduce((Y,K)=>{const Q=h[K];return Y[K]=(et,$=!1,k=!1)=>(u||w(),Q.schedule(et,$,k)),Y},{}),cancel:Y=>{for(let K=0;K<qs.length;K++)h[qs[K]].cancel(Y)},state:c,steps:h}}const{schedule:xt,cancel:Kn,state:It,steps:Nr}=ky(typeof requestAnimationFrame<"u"?requestAnimationFrame:Le,!0);let Zs;function mS(){Zs=void 0}const ae={now:()=>(Zs===void 0&&ae.set(It.isProcessing||vn.useManualTiming?It.timestamp:performance.now()),Zs),set:a=>{Zs=a,queueMicrotask(mS)}},Fy=a=>l=>typeof l=="string"&&l.startsWith(a),Wy=Fy("--"),pS=Fy("var(--"),Oc=a=>pS(a)?yS.test(a.split("/*")[0].trim()):!1,yS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function mp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const ca={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},pl={...ca,transform:a=>Pe(0,1,a)},Gs={...ca,default:1},cl=a=>Math.round(a*1e5)/1e5,Vc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gS(a){return a==null}const vS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_c=(a,l)=>u=>!!(typeof u=="string"&&vS.test(u)&&u.startsWith(a)||l&&!gS(u)&&Object.prototype.hasOwnProperty.call(u,l)),Py=(a,l,u)=>o=>{if(typeof o!="string")return o;const[c,d,h,y]=o.match(Vc);return{[a]:parseFloat(c),[l]:parseFloat(d),[u]:parseFloat(h),alpha:y!==void 0?parseFloat(y):1}},SS=a=>Pe(0,255,a),Lr={...ca,transform:a=>Math.round(SS(a))},pi={test:_c("rgb","red"),parse:Py("red","green","blue"),transform:({red:a,green:l,blue:u,alpha:o=1})=>"rgba("+Lr.transform(a)+", "+Lr.transform(l)+", "+Lr.transform(u)+", "+cl(pl.transform(o))+")"};function TS(a){let l="",u="",o="",c="";return a.length>5?(l=a.substring(1,3),u=a.substring(3,5),o=a.substring(5,7),c=a.substring(7,9)):(l=a.substring(1,2),u=a.substring(2,3),o=a.substring(3,4),c=a.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 $r={test:_c("#"),parse:TS,transform:pi.transform},bl=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),Qn=bl("deg"),We=bl("%"),J=bl("px"),bS=bl("vh"),AS=bl("vw"),pp={...We,parse:a=>We.parse(a)/100,transform:a=>We.transform(a*100)},ia={test:_c("hsl","hue"),parse:Py("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:u,alpha:o=1})=>"hsla("+Math.round(a)+", "+We.transform(cl(l))+", "+We.transform(cl(u))+", "+cl(pl.transform(o))+")"},Xt={test:a=>pi.test(a)||$r.test(a)||ia.test(a),parse:a=>pi.test(a)?pi.parse(a):ia.test(a)?ia.parse(a):$r.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?pi.transform(a):ia.transform(a),getAnimatableNone:a=>{const l=Xt.parse(a);return l.alpha=0,Xt.transform(l)}},ES=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MS(a){return isNaN(a)&&typeof a=="string"&&(a.match(Vc)?.length||0)+(a.match(ES)?.length||0)>0}const $y="number",Iy="color",DS="var",xS="var(",yp="${}",CS=/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 yl(a){const l=a.toString(),u=[],o={color:[],number:[],var:[]},c=[];let d=0;const y=l.replace(CS,g=>(Xt.test(g)?(o.color.push(d),c.push(Iy),u.push(Xt.parse(g))):g.startsWith(xS)?(o.var.push(d),c.push(DS),u.push(g)):(o.number.push(d),c.push($y),u.push(parseFloat(g))),++d,yp)).split(yp);return{values:u,split:y,indexes:o,types:c}}function tg(a){return yl(a).values}function eg(a){const{split:l,types:u}=yl(a),o=l.length;return c=>{let d="";for(let h=0;h<o;h++)if(d+=l[h],c[h]!==void 0){const y=u[h];y===$y?d+=cl(c[h]):y===Iy?d+=Xt.transform(c[h]):d+=c[h]}return d}}const zS=a=>typeof a=="number"?0:Xt.test(a)?Xt.getAnimatableNone(a):a;function RS(a){const l=tg(a);return eg(a)(l.map(zS))}const Qe={test:MS,parse:tg,createTransformer:eg,getAnimatableNone:RS};function Hr(a,l,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?a+(l-a)*6*u:u<1/2?l:u<2/3?a+(l-a)*(2/3-u)*6:a}function OS({hue:a,saturation:l,lightness:u,alpha:o}){a/=360,l/=100,u/=100;let c=0,d=0,h=0;if(!l)c=d=h=u;else{const y=u<.5?u*(1+l):u+l-u*l,g=2*u-y;c=Hr(g,y,a+1/3),d=Hr(g,y,a),h=Hr(g,y,a-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function Is(a,l){return u=>u>0?l:a}const Ot=(a,l,u)=>a+(l-a)*u,jr=(a,l,u)=>{const o=a*a,c=u*(l*l-o)+o;return c<0?0:Math.sqrt(c)},VS=[$r,pi,ia],_S=a=>VS.find(l=>l.test(a));function gp(a){const l=_S(a);if(!l)return!1;let u=l.parse(a);return l===ia&&(u=OS(u)),u}const vp=(a,l)=>{const u=gp(a),o=gp(l);if(!u||!o)return Is(a,l);const c={...u};return d=>(c.red=jr(u.red,o.red,d),c.green=jr(u.green,o.green,d),c.blue=jr(u.blue,o.blue,d),c.alpha=Ot(u.alpha,o.alpha,d),pi.transform(c))},Ir=new Set(["none","hidden"]);function US(a,l){return Ir.has(a)?u=>u<=0?a:l:u=>u>=1?l:a}function BS(a,l){return u=>Ot(a,l,u)}function Uc(a){return typeof a=="number"?BS:typeof a=="string"?Oc(a)?Is:Xt.test(a)?vp:HS:Array.isArray(a)?ng:typeof a=="object"?Xt.test(a)?vp:NS:Is}function ng(a,l){const u=[...a],o=u.length,c=a.map((d,h)=>Uc(d)(d,l[h]));return d=>{for(let h=0;h<o;h++)u[h]=c[h](d);return u}}function NS(a,l){const u={...a,...l},o={};for(const c in u)a[c]!==void 0&&l[c]!==void 0&&(o[c]=Uc(a[c])(a[c],l[c]));return c=>{for(const d in o)u[d]=o[d](c);return u}}function LS(a,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=a.indexes[d][o[d]],y=a.values[h]??0;u[c]=y,o[d]++}return u}const HS=(a,l)=>{const u=Qe.createTransformer(l),o=yl(a),c=yl(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?Ir.has(a)&&!c.values.length||Ir.has(l)&&!o.values.length?US(a,l):Sl(ng(LS(o,c),c.values),u):Is(a,l)};function ig(a,l,u){return typeof a=="number"&&typeof l=="number"&&typeof u=="number"?Ot(a,l,u):Uc(a)(a,l)}const jS=a=>{const l=({timestamp:u})=>a(u);return{start:(u=!0)=>xt.update(l,u),stop:()=>Kn(l),now:()=>It.isProcessing?It.timestamp:ae.now()}},ag=(a,l,u=10)=>{let o="";const c=Math.max(Math.round(l/u),2);for(let d=0;d<c;d++)o+=Math.round(a(d/(c-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},tu=2e4;function Bc(a){let l=0;const u=50;let o=a.next(l);for(;!o.done&&l<tu;)l+=u,o=a.next(l);return l>=tu?1/0:l}function wS(a,l=100,u){const o=u({...a,keyframes:[0,l]}),c=Math.min(Bc(o),tu);return{type:"keyframes",ease:d=>o.next(c*d).value/l,duration:Ne(c)}}const YS=5;function lg(a,l,u){const o=Math.max(l-YS,0);return Hy(u-a(o),l-o)}const Ut={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},wr=.001;function qS({duration:a=Ut.duration,bounce:l=Ut.bounce,velocity:u=Ut.velocity,mass:o=Ut.mass}){let c,d,h=1-l;h=Pe(Ut.minDamping,Ut.maxDamping,h),a=Pe(Ut.minDuration,Ut.maxDuration,Ne(a)),h<1?(c=m=>{const v=m*h,S=v*a,b=v-u,R=tc(m,h),V=Math.exp(-S);return wr-b/R*V},d=m=>{const S=m*h*a,b=S*u+u,R=Math.pow(h,2)*Math.pow(m,2)*a,V=Math.exp(-S),j=tc(Math.pow(m,2),h);return(-c(m)+wr>0?-1:1)*((b-R)*V)/j}):(c=m=>{const v=Math.exp(-m*a),S=(m-u)*a+1;return-wr+v*S},d=m=>{const v=Math.exp(-m*a),S=(u-m)*(a*a);return v*S});const y=5/a,g=XS(c,d,y);if(a=Xe(a),isNaN(g))return{stiffness:Ut.stiffness,damping:Ut.damping,duration:a};{const m=Math.pow(g,2)*o;return{stiffness:m,damping:h*2*Math.sqrt(o*m),duration:a}}}const GS=12;function XS(a,l,u){let o=u;for(let c=1;c<GS;c++)o=o-a(o)/l(o);return o}function tc(a,l){return a*Math.sqrt(1-l*l)}const QS=["duration","bounce"],ZS=["stiffness","damping","mass"];function Sp(a,l){return l.some(u=>a[u]!==void 0)}function KS(a){let l={velocity:Ut.velocity,stiffness:Ut.stiffness,damping:Ut.damping,mass:Ut.mass,isResolvedFromDuration:!1,...a};if(!Sp(a,ZS)&&Sp(a,QS))if(l.velocity=0,a.visualDuration){const u=a.visualDuration,o=2*Math.PI/(u*1.2),c=o*o,d=2*Pe(.05,1,1-(a.bounce||0))*Math.sqrt(c);l={...l,mass:Ut.mass,stiffness:c,damping:d}}else{const u=qS({...a,velocity:0});l={...l,...u,mass:Ut.mass},l.isResolvedFromDuration=!0}return l}function eu(a=Ut.visualDuration,l=Ut.bounce){const u=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:o,restDelta:c}=u;const d=u.keyframes[0],h=u.keyframes[u.keyframes.length-1],y={done:!1,value:d},{stiffness:g,damping:m,mass:v,duration:S,velocity:b,isResolvedFromDuration:R}=KS({...u,velocity:-Ne(u.velocity||0)}),V=b||0,j=m/(2*Math.sqrt(g*v)),w=h-d,L=Ne(Math.sqrt(g/v)),q=Math.abs(w)<5;o||(o=q?Ut.restSpeed.granular:Ut.restSpeed.default),c||(c=q?Ut.restDelta.granular:Ut.restDelta.default);let Y;if(j<1){const Q=tc(L,j);Y=et=>{const $=Math.exp(-j*L*et);return h-$*((V+j*L*w)/Q*Math.sin(Q*et)+w*Math.cos(Q*et))}}else if(j===1)Y=Q=>h-Math.exp(-L*Q)*(w+(V+L*w)*Q);else{const Q=L*Math.sqrt(j*j-1);Y=et=>{const $=Math.exp(-j*L*et),k=Math.min(Q*et,300);return h-$*((V+j*L*w)*Math.sinh(k)+Q*w*Math.cosh(k))/Q}}const K={calculatedDuration:R&&S||null,next:Q=>{const et=Y(Q);if(R)y.done=Q>=S;else{let $=Q===0?V:0;j<1&&($=Q===0?Xe(V):lg(Y,Q,et));const k=Math.abs($)<=o,it=Math.abs(h-et)<=c;y.done=k&&it}return y.value=y.done?h:et,y},toString:()=>{const Q=Math.min(Bc(K),tu),et=ag($=>K.next(Q*$).value,Q,30);return Q+"ms "+et},toTransition:()=>{}};return K}eu.applyToOptions=a=>{const l=wS(a,100,eu);return a.ease=l.ease,a.duration=Xe(l.duration),a.type="keyframes",a};function ec({keyframes:a,velocity:l=0,power:u=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:h,min:y,max:g,restDelta:m=.5,restSpeed:v}){const S=a[0],b={done:!1,value:S},R=k=>y!==void 0&&k<y||g!==void 0&&k>g,V=k=>y===void 0?g:g===void 0||Math.abs(y-k)<Math.abs(g-k)?y:g;let j=u*l;const w=S+j,L=h===void 0?w:h(w);L!==w&&(j=L-S);const q=k=>-j*Math.exp(-k/o),Y=k=>L+q(k),K=k=>{const it=q(k),Dt=Y(k);b.done=Math.abs(it)<=m,b.value=b.done?L:Dt};let Q,et;const $=k=>{R(b.value)&&(Q=k,et=eu({keyframes:[b.value,V(b.value)],velocity:lg(Y,k,b.value),damping:c,stiffness:d,restDelta:m,restSpeed:v}))};return $(0),{calculatedDuration:null,next:k=>{let it=!1;return!et&&Q===void 0&&(it=!0,K(k),$(k)),Q!==void 0&&k>=Q?et.next(k-Q):(!it&&K(k),b)}}}function JS(a,l,u){const o=[],c=u||vn.mix||ig,d=a.length-1;for(let h=0;h<d;h++){let y=c(a[h],a[h+1]);if(l){const g=Array.isArray(l)?l[h]||Le:l;y=Sl(g,y)}o.push(y)}return o}function kS(a,l,{clamp:u=!0,ease:o,mixer:c}={}){const d=a.length;if(xc(d===l.length),d===1)return()=>l[0];if(d===2&&l[0]===l[1])return()=>l[1];const h=a[0]===a[1];a[0]>a[d-1]&&(a=[...a].reverse(),l=[...l].reverse());const y=JS(l,o,c),g=y.length,m=v=>{if(h&&v<a[0])return l[0];let S=0;if(g>1)for(;S<a.length-2&&!(v<a[S+1]);S++);const b=ml(a[S],a[S+1],v);return y[S](b)};return u?v=>m(Pe(a[0],a[d-1],v)):m}function FS(a,l){const u=a[a.length-1];for(let o=1;o<=l;o++){const c=ml(0,l,o);a.push(Ot(u,1,c))}}function WS(a){const l=[0];return FS(l,a.length-1),l}function PS(a,l){return a.map(u=>u*l)}function $S(a,l){return a.map(()=>l||Ky).splice(0,a.length-1)}function fl({duration:a=300,keyframes:l,times:u,ease:o="easeInOut"}){const c=rS(o)?o.map(dp):dp(o),d={done:!1,value:l[0]},h=PS(u&&u.length===l.length?u:WS(l),a),y=kS(h,l,{ease:Array.isArray(c)?c:$S(l,c)});return{calculatedDuration:a,next:g=>(d.value=y(g),d.done=g>=a,d)}}const IS=a=>a!==null;function Nc(a,{repeat:l,repeatType:u="loop"},o,c=1){const d=a.filter(IS),y=c<0||l&&u!=="loop"&&l%2===1?0:d.length-1;return!y||o===void 0?d[y]:o}const tT={decay:ec,inertia:ec,tween:fl,keyframes:fl,spring:eu};function sg(a){typeof a.type=="string"&&(a.type=tT[a.type])}class Lc{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 eT=a=>a/100;class Hc extends Lc{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!==ae.now()&&this.tick(ae.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;sg(l);const{type:u=fl,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:h=0}=l;let{keyframes:y}=l;const g=u||fl;g!==fl&&typeof y[0]!="number"&&(this.mixKeyframes=Sl(eT,ig(y[0],y[1])),y=[0,100]);const m=g({...l,keyframes:y});d==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...y].reverse(),velocity:-h})),m.calculatedDuration===null&&(m.calculatedDuration=Bc(m));const{calculatedDuration:v}=m;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=m}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:y,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:m=0,keyframes:v,repeat:S,repeatType:b,repeatDelay:R,type:V,onUpdate:j,finalKeyframe:w}=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 L=this.currentTime-m*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?L<0:L>c;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let Y=this.currentTime,K=o;if(S){const k=Math.min(this.currentTime,c)/y;let it=Math.floor(k),Dt=k%1;!Dt&&k>=1&&(Dt=1),Dt===1&&it--,it=Math.min(it,S+1),it%2&&(b==="reverse"?(Dt=1-Dt,R&&(Dt-=R/y)):b==="mirror"&&(K=h)),Y=Pe(0,1,Dt)*y}const Q=q?{done:!1,value:v[0]}:K.next(Y);d&&(Q.value=d(Q.value));let{done:et}=Q;!q&&g!==null&&(et=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&et);return $&&V!==ec&&(Q.value=Nc(v,this.options,w,this.speed)),j&&j(Q.value),$&&this.finish(),Q}then(l,u){return this.finished.then(l,u)}get duration(){return Ne(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ne(l)}get time(){return Ne(this.currentTime)}set time(l){l=Xe(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(ae.now());const u=this.playbackSpeed!==l;this.playbackSpeed=l,u&&(this.time=Ne(this.currentTime))}play(){if(this.isStopped)return;const{driver:l=jS,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(ae.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 nT(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const yi=a=>a*180/Math.PI,nc=a=>{const l=yi(Math.atan2(a[1],a[0]));return ic(l)},iT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:nc,rotateZ:nc,skewX:a=>yi(Math.atan(a[1])),skewY:a=>yi(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},ic=a=>(a=a%360,a<0&&(a+=360),a),Tp=nc,bp=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),Ap=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),aT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bp,scaleY:Ap,scale:a=>(bp(a)+Ap(a))/2,rotateX:a=>ic(yi(Math.atan2(a[6],a[5]))),rotateY:a=>ic(yi(Math.atan2(-a[2],a[0]))),rotateZ:Tp,rotate:Tp,skewX:a=>yi(Math.atan(a[4])),skewY:a=>yi(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function ac(a){return a.includes("scale")?1:0}function lc(a,l){if(!a||a==="none")return ac(l);const u=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(u)o=aT,c=u;else{const y=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=iT,c=y}if(!c)return ac(l);const d=o[l],h=c[1].split(",").map(sT);return typeof d=="function"?d(h):h[d]}const lT=(a,l)=>{const{transform:u="none"}=getComputedStyle(a);return lc(u,l)};function sT(a){return parseFloat(a.trim())}const fa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ha=new Set(fa),Ep=a=>a===ca||a===J,uT=new Set(["x","y","z"]),oT=fa.filter(a=>!uT.has(a));function rT(a){const l=[];return oT.forEach(u=>{const o=a.getValue(u);o!==void 0&&(l.push([u,o.get()]),o.set(u.startsWith("scale")?1:0))}),l}const Zn={width:({x:a},{paddingLeft:l="0",paddingRight:u="0"})=>a.max-a.min-parseFloat(l)-parseFloat(u),height:({y:a},{paddingTop:l="0",paddingBottom:u="0"})=>a.max-a.min-parseFloat(l)-parseFloat(u),top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>lc(l,"x"),y:(a,{transform:l})=>lc(l,"y")};Zn.translateX=Zn.x;Zn.translateY=Zn.y;const gi=new Set;let sc=!1,uc=!1,oc=!1;function ug(){if(uc){const a=Array.from(gi).filter(o=>o.needsMeasurement),l=new Set(a.map(o=>o.element)),u=new Map;l.forEach(o=>{const c=rT(o);c.length&&(u.set(o,c),o.render())}),a.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const c=u.get(o);c&&c.forEach(([d,h])=>{o.getValue(d)?.set(h)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}uc=!1,sc=!1,gi.forEach(a=>a.complete(oc)),gi.clear()}function og(){gi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(uc=!0)})}function cT(){oc=!0,og(),ug(),oc=!1}class jc{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?(gi.add(this),sc||(sc=!0,xt.read(og),xt.resolveKeyframes(ug))):(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 y=o.readValue(u,h);y!=null&&(l[0]=y)}l[0]===void 0&&(l[0]=h),c&&d===void 0&&c.set(l[0])}nT(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),gi.delete(this)}cancel(){this.state==="scheduled"&&(gi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fT=a=>a.startsWith("--");function hT(a,l,u){fT(l)?a.style.setProperty(l,u):a.style[l]=u}const dT={};function rg(a,l){const u=Ly(a);return()=>dT[l]??u()}const mT=rg(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),cg=rg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rl=([a,l,u,o])=>`cubic-bezier(${a}, ${l}, ${u}, ${o})`,Mp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rl([0,.65,.55,1]),circOut:rl([.55,0,1,.45]),backIn:rl([.31,.01,.66,-.59]),backOut:rl([.33,1.53,.69,.99])};function fg(a,l){if(a)return typeof a=="function"?cg()?ag(a,l):"ease-out":Jy(a)?rl(a):Array.isArray(a)?a.map(u=>fg(u,l)||Mp.easeOut):Mp[a]}function pT(a,l,u,{delay:o=0,duration:c=300,repeat:d=0,repeatType:h="loop",ease:y="easeOut",times:g}={},m=void 0){const v={[l]:u};g&&(v.offset=g);const S=fg(y,c);Array.isArray(S)&&(v.easing=S);const b={delay:o,duration:c,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),a.animate(v,b)}function hg(a){return typeof a=="function"&&"applyToOptions"in a}function yT({type:a,...l}){return hg(a)&&cg()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class dg extends Lc{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:y,onComplete:g}=l;this.isPseudoElement=!!d,this.allowFlatten=h,this.options=l,xc(typeof l.type!="string");const m=yT(l);this.animation=pT(u,o,c,m,d),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const v=Nc(c,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(v):hT(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 Ne(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ne(l)}get time(){return Ne(Number(this.animation.currentTime)||0)}set time(l){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Xe(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&&mT()?(this.animation.timeline=l,Le):u(this)}}const mg={anticipate:Xy,backInOut:Gy,circInOut:Zy};function gT(a){return a in mg}function vT(a){typeof a.ease=="string"&&gT(a.ease)&&(a.ease=mg[a.ease])}const Yr=10;class ST extends dg{constructor(l){vT(l),sg(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 y=new Hc({...h,autoplay:!1}),g=Math.max(Yr,ae.now()-this.startTime),m=Pe(0,Yr,g-Yr);u.setWithVelocity(y.sample(Math.max(0,g-m)).value,y.sample(g).value,m),y.stop()}}const Dp=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Qe.test(a)||a==="0")&&!a.startsWith("url("));function TT(a){const l=a[0];if(a.length===1)return!0;for(let u=0;u<a.length;u++)if(a[u]!==l)return!0}function bT(a,l,u,o){const c=a[0];if(c===null)return!1;if(l==="display"||l==="visibility")return!0;const d=a[a.length-1],h=Dp(c,l),y=Dp(d,l);return!h||!y?!1:TT(a)||(u==="spring"||hg(u))&&o}function rc(a){a.duration=0,a.type="keyframes"}const AT=new Set(["opacity","clipPath","filter","transform"]),ET=Ly(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function MT(a){const{motionValue:l,name:u,repeatDelay:o,repeatType:c,damping:d,type:h}=a;if(!(l?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=l.owner.getProps();return ET()&&u&&AT.has(u)&&(u!=="transform"||!m)&&!g&&!o&&c!=="mirror"&&d!==0&&h!=="inertia"}const DT=40;class xT extends Lc{constructor({autoplay:l=!0,delay:u=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:h="loop",keyframes:y,name:g,motionValue:m,element:v,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ae.now();const b={autoplay:l,delay:u,type:o,repeat:c,repeatDelay:d,repeatType:h,name:g,motionValue:m,element:v,...S},R=v?.KeyframeResolver||jc;this.keyframeResolver=new R(y,(V,j,w)=>this.onKeyframesResolved(V,j,b,!w),g,m,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,u,o,c){this.keyframeResolver=void 0;const{name:d,type:h,velocity:y,delay:g,isHandoff:m,onUpdate:v}=o;this.resolvedAt=ae.now(),bT(l,d,h,y)||((vn.instantAnimations||!g)&&v?.(Nc(l,o,u)),l[0]=l[l.length-1],rc(o),o.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>DT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:u,...o,keyframes:l},R=!m&&MT(b),V=b.motionValue?.owner?.current,j=R?new ST({...b,element:V}):new Hc(b);j.finished.then(()=>{this.notifyFinished()}).catch(Le),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}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(),cT()),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 pg(a,l,u,o=0,c=1){const d=Array.from(a).sort((m,v)=>m.sortNodePosition(v)).indexOf(l),h=a.size,y=(h-1)*o;return typeof u=="function"?u(d,h):c===1?d*o:y-d*o}const CT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zT(a){const l=CT.exec(a);if(!l)return[,];const[,u,o,c]=l;return[`--${u??o}`,c]}function yg(a,l,u=1){const[o,c]=zT(a);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const h=d.trim();return Uy(h)?parseFloat(h):h}return Oc(c)?yg(c,l,u+1):c}const RT={type:"spring",stiffness:500,damping:25,restSpeed:10},OT=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),VT={type:"keyframes",duration:.8},_T={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},UT=(a,{keyframes:l})=>l.length>2?VT:ha.has(a)?a.startsWith("scale")?OT(l[1]):RT:_T,BT=a=>a!==null;function NT(a,{repeat:l,repeatType:u="loop"},o){const c=a.filter(BT),d=l&&u!=="loop"&&l%2===1?0:c.length-1;return c[d]}function gg(a,l){if(a?.inherit&&l){const{inherit:u,...o}=a;return{...l,...o}}return a}function wc(a,l){const u=a?.[l]??a?.default??a;return u!==a?gg(u,a):u}function LT({when:a,delay:l,delayChildren:u,staggerChildren:o,staggerDirection:c,repeat:d,repeatType:h,repeatDelay:y,from:g,elapsed:m,...v}){return!!Object.keys(v).length}const Yc=(a,l,u,o={},c,d)=>h=>{const y=wc(o,a)||{},g=y.delay||o.delay||0;let{elapsed:m=0}=o;m=m-Xe(g);const v={keyframes:Array.isArray(u)?u:[null,u],ease:"easeOut",velocity:l.getVelocity(),...y,delay:-m,onUpdate:b=>{l.set(b),y.onUpdate&&y.onUpdate(b)},onComplete:()=>{h(),y.onComplete&&y.onComplete()},name:a,motionValue:l,element:d?void 0:c};LT(y)||Object.assign(v,UT(a,v)),v.duration&&(v.duration=Xe(v.duration)),v.repeatDelay&&(v.repeatDelay=Xe(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let S=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(rc(v),v.delay===0&&(S=!0)),(vn.instantAnimations||vn.skipAnimations||c?.shouldSkipAnimations)&&(S=!0,rc(v),v.delay=0),v.allowFlatten=!y.type&&!y.ease,S&&!d&&l.get()!==void 0){const b=NT(v.keyframes,y);if(b!==void 0){xt.update(()=>{v.onUpdate(b),v.onComplete()});return}}return y.isSync?new Hc(v):new xT(v)};function xp(a){const l=[{},{}];return a?.values.forEach((u,o)=>{l[0][o]=u.get(),l[1][o]=u.getVelocity()}),l}function qc(a,l,u,o){if(typeof l=="function"){const[c,d]=xp(o);l=l(u!==void 0?u:a.custom,c,d)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[c,d]=xp(o);l=l(u!==void 0?u:a.custom,c,d)}return l}function oa(a,l,u){const o=a.getProps();return qc(o,l,u!==void 0?u:o.custom,a)}const vg=new Set(["width","height","top","left","right","bottom",...fa]),Cp=30,HT=a=>!isNaN(parseFloat(a));class jT{constructor(l,u={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const c=ae.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=ae.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=HT(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 Cc);const o=this.events[l].add(u);return l==="change"?()=>{o(),xt.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=ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Cp)return 0;const u=Math.min(this.updatedAt-this.prevUpdatedAt,Cp);return Hy(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 ra(a,l){return new jT(a,l)}const cc=a=>Array.isArray(a);function wT(a,l,u){a.hasValue(l)?a.getValue(l).set(u):a.addValue(l,ra(u))}function YT(a){return cc(a)?a[a.length-1]||0:a}function qT(a,l){const u=oa(a,l);let{transitionEnd:o={},transition:c={},...d}=u||{};d={...d,...o};for(const h in d){const y=YT(d[h]);wT(a,h,y)}}const ee=a=>!!(a&&a.getVelocity);function GT(a){return!!(ee(a)&&a.add)}function fc(a,l){const u=a.getValue("willChange");if(GT(u))return u.add(l);if(!u&&vn.WillChange){const o=new vn.WillChange("auto");a.addValue("willChange",o),o.add(l)}}function Gc(a){return a.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const XT="framerAppearId",Sg="data-"+Gc(XT);function Tg(a){return a.props[Sg]}function QT({protectedKeys:a,needsAnimating:l},u){const o=a.hasOwnProperty(u)&&l[u]!==!0;return l[u]=!1,o}function bg(a,l,{delay:u=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:h,...y}=l;const g=a.getDefaultTransition();d=d?gg(d,g):g;const m=d?.reduceMotion;o&&(d=o);const v=[],S=c&&a.animationState&&a.animationState.getState()[c];for(const b in y){const R=a.getValue(b,a.latestValues[b]??null),V=y[b];if(V===void 0||S&&QT(S,b))continue;const j={delay:u,...wc(d||{},b)},w=R.get();if(w!==void 0&&!R.isAnimating&&!Array.isArray(V)&&V===w&&!j.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const K=Tg(a);if(K){const Q=window.MotionHandoffAnimation(K,b,xt);Q!==null&&(j.startTime=Q,L=!0)}}fc(a,b);const q=m??a.shouldReduceMotion;R.start(Yc(b,R,V,q&&vg.has(b)?{type:!1}:j,a,L));const Y=R.animation;Y&&v.push(Y)}if(h){const b=()=>xt.update(()=>{h&&qT(a,h)});v.length?Promise.all(v).then(b):b()}return v}function hc(a,l,u={}){const o=oa(a,l,u.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=o||{};u.transitionOverride&&(c=u.transitionOverride);const d=o?()=>Promise.all(bg(a,o,u)):()=>Promise.resolve(),h=a.variantChildren&&a.variantChildren.size?(g=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:S}=c;return ZT(a,l,g,m,v,S,u)}:()=>Promise.resolve(),{when:y}=c;if(y){const[g,m]=y==="beforeChildren"?[d,h]:[h,d];return g().then(()=>m())}else return Promise.all([d(),h(u.delay)])}function ZT(a,l,u=0,o=0,c=0,d=1,h){const y=[];for(const g of a.variantChildren)g.notify("AnimationStart",l),y.push(hc(g,l,{...h,delay:u+(typeof o=="function"?0:o)+pg(a.variantChildren,g,o,c,d)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(y)}function KT(a,l,u={}){a.notify("AnimationStart",l);let o;if(Array.isArray(l)){const c=l.map(d=>hc(a,d,u));o=Promise.all(c)}else if(typeof l=="string")o=hc(a,l,u);else{const c=typeof l=="function"?oa(a,l,u.custom):l;o=Promise.all(bg(a,c,u))}return o.then(()=>{a.notify("AnimationComplete",l)})}const JT={test:a=>a==="auto",parse:a=>a},Ag=a=>l=>l.test(a),Eg=[ca,J,We,Qn,AS,bS,JT],zp=a=>Eg.find(Ag(a));function kT(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||Ny(a):!0}const FT=new Set(["brightness","contrast","saturate","opacity"]);function WT(a){const[l,u]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[o]=u.match(Vc)||[];if(!o)return a;const c=u.replace(o,"");let d=FT.has(l)?1:0;return o!==u&&(d*=100),l+"("+d+c+")"}const PT=/\b([a-z-]*)\(.*?\)/gu,dc={...Qe,getAnimatableNone:a=>{const l=a.match(PT);return l?l.map(WT).join(" "):a}},mc={...Qe,getAnimatableNone:a=>{const l=Qe.parse(a);return Qe.createTransformer(a)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Rp={...ca,transform:Math.round},$T={rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:Gs,scaleX:Gs,scaleY:Gs,scaleZ:Gs,skew:Qn,skewX:Qn,skewY:Qn,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:pl,originX:pp,originY:pp,originZ:J},Xc={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,...$T,zIndex:Rp,fillOpacity:pl,strokeOpacity:pl,numOctaves:Rp},IT={...Xc,color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:dc,WebkitFilter:dc,mask:mc,WebkitMask:mc},Mg=a=>IT[a],tb=new Set([dc,mc]);function Dg(a,l){let u=Mg(a);return tb.has(u)||(u=Qe),u.getAnimatableNone?u.getAnimatableNone(l):void 0}const eb=new Set(["auto","none","0"]);function nb(a,l,u){let o=0,c;for(;o<a.length&&!c;){const d=a[o];typeof d=="string"&&!eb.has(d)&&yl(d).values.length&&(c=a[o]),o++}if(c&&u)for(const d of l)a[d]=Dg(u,c)}class ib extends jc{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 S=l[v];if(typeof S=="string"&&(S=S.trim(),Oc(S))){const b=yg(S,u.current);b!==void 0&&(l[v]=b),v===l.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!vg.has(o)||l.length!==2)return;const[c,d]=l,h=zp(c),y=zp(d),g=mp(c),m=mp(d);if(g!==m&&Zn[o]){this.needsMeasurement=!0;return}if(h!==y)if(Ep(h)&&Ep(y))for(let v=0;v<l.length;v++){const S=l[v];typeof S=="string"&&(l[v]=parseFloat(S))}else Zn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:u}=this,o=[];for(let c=0;c<l.length;c++)(l[c]===null||kT(l[c]))&&o.push(c);o.length&&nb(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=Zn[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]=Zn[u](l.measureViewportBox(),window.getComputedStyle(l.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),this.removedTransforms?.length&&this.removedTransforms.forEach(([y,g])=>{l.getValue(y).set(g)}),this.resolveNoneKeyframes()}}const ab=new Set(["opacity","clipPath","filter","transform"]);function xg(a,l,u){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const c=u?.[a]??o.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(o=>o!=null)}const Cg=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function pc(a){return By(a)&&"offsetHeight"in a}const{schedule:Qc}=ky(queueMicrotask,!1),Ge={x:!1,y:!1};function zg(){return Ge.x||Ge.y}function lb(a){return a==="x"||a==="y"?Ge[a]?null:(Ge[a]=!0,()=>{Ge[a]=!1}):Ge.x||Ge.y?null:(Ge.x=Ge.y=!0,()=>{Ge.x=Ge.y=!1})}function Rg(a,l){const u=xg(a),o=new AbortController,c={passive:!0,...l,signal:o.signal};return[u,c,()=>o.abort()]}function sb(a){return!(a.pointerType==="touch"||zg())}function ub(a,l,u={}){const[o,c,d]=Rg(a,u);return o.forEach(h=>{let y=!1,g=!1,m;const v=()=>{h.removeEventListener("pointerleave",V)},S=w=>{m&&(m(w),m=void 0),v()},b=w=>{y=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),g&&(g=!1,S(w))},R=()=>{y=!0,window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",b,c)},V=w=>{if(w.pointerType!=="touch"){if(y){g=!0;return}S(w)}},j=w=>{if(!sb(w))return;g=!1;const L=l(h,w);typeof L=="function"&&(m=L,h.addEventListener("pointerleave",V,c))};h.addEventListener("pointerenter",j,c),h.addEventListener("pointerdown",R,c)}),d}const Og=(a,l)=>l?a===l?!0:Og(a,l.parentElement):!1,Zc=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,ob=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rb(a){return ob.has(a.tagName)||a.isContentEditable===!0}const cb=new Set(["INPUT","SELECT","TEXTAREA"]);function fb(a){return cb.has(a.tagName)||a.isContentEditable===!0}const Ks=new WeakSet;function Op(a){return l=>{l.key==="Enter"&&a(l)}}function qr(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const hb=(a,l)=>{const u=a.currentTarget;if(!u)return;const o=Op(()=>{if(Ks.has(u))return;qr(u,"down");const c=Op(()=>{qr(u,"up")}),d=()=>qr(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 Vp(a){return Zc(a)&&!zg()}const _p=new WeakSet;function db(a,l,u={}){const[o,c,d]=Rg(a,u),h=y=>{const g=y.currentTarget;if(!Vp(y)||_p.has(y))return;Ks.add(g),u.stopPropagation&&_p.add(y);const m=l(g,y),v=(R,V)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",b),Ks.has(g)&&Ks.delete(g),Vp(R)&&typeof m=="function"&&m(R,{success:V})},S=R=>{v(R,g===window||g===document||u.useGlobalTarget||Og(g,R.target))},b=R=>{v(R,!1)};window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",b,c)};return o.forEach(y=>{(u.useGlobalTarget?window:y).addEventListener("pointerdown",h,c),pc(y)&&(y.addEventListener("focus",m=>hb(m,c)),!rb(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),d}function Kc(a){return By(a)&&"ownerSVGElement"in a}const Js=new WeakMap;let ks;const Vg=(a,l,u)=>(o,c)=>c&&c[0]?c[0][a+"Size"]:Kc(o)&&"getBBox"in o?o.getBBox()[l]:o[u],mb=Vg("inline","width","offsetWidth"),pb=Vg("block","height","offsetHeight");function yb({target:a,borderBoxSize:l}){Js.get(a)?.forEach(u=>{u(a,{get width(){return mb(a,l)},get height(){return pb(a,l)}})})}function gb(a){a.forEach(yb)}function vb(){typeof ResizeObserver>"u"||(ks=new ResizeObserver(gb))}function Sb(a,l){ks||vb();const u=xg(a);return u.forEach(o=>{let c=Js.get(o);c||(c=new Set,Js.set(o,c)),c.add(l),ks?.observe(o)}),()=>{u.forEach(o=>{const c=Js.get(o);c?.delete(l),c?.size||ks?.unobserve(o)})}}const Fs=new Set;let aa;function Tb(){aa=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fs.forEach(l=>l(a))},window.addEventListener("resize",aa)}function bb(a){return Fs.add(a),aa||Tb(),()=>{Fs.delete(a),!Fs.size&&typeof aa=="function"&&(window.removeEventListener("resize",aa),aa=void 0)}}function Up(a,l){return typeof a=="function"?bb(a):Sb(a,l)}function Ab(a){return Kc(a)&&a.tagName==="svg"}const Eb=[...Eg,Xt,Qe],Mb=a=>Eb.find(Ag(a)),Bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),la=()=>({x:Bp(),y:Bp()}),Np=()=>({min:0,max:0}),Zt=()=>({x:Np(),y:Np()}),Db=new WeakMap;function uu(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function gl(a){return typeof a=="string"||Array.isArray(a)}const Jc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kc=["initial",...Jc];function ou(a){return uu(a.animate)||kc.some(l=>gl(a[l]))}function _g(a){return!!(ou(a)||a.variants)}function xb(a,l,u){for(const o in l){const c=l[o],d=u[o];if(ee(c))a.addValue(o,c);else if(ee(d))a.addValue(o,ra(c,{owner:a}));else if(d!==c)if(a.hasValue(o)){const h=a.getValue(o);h.liveStyle===!0?h.jump(c):h.hasAnimated||h.set(c)}else{const h=a.getStaticValue(o);a.addValue(o,ra(h!==void 0?h:c,{owner:a}))}}for(const o in u)l[o]===void 0&&a.removeValue(o);return l}const yc={current:null},Ug={current:!1},Cb=typeof window<"u";function zb(){if(Ug.current=!0,!!Cb)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>yc.current=a.matches;a.addEventListener("change",l),l()}else yc.current=!1}const Lp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nu={};function Bg(a){nu=a}function Rb(){return nu}class Ob{scrapeMotionValuesFromProps(l,u,o){return{}}constructor({parent:l,props:u,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:h,visualState:y},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=jc,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 R=ae.now();this.renderScheduledAt<R&&(this.renderScheduledAt=R,xt.render(this.render,!1,!0))};const{latestValues:m,renderState:v}=y;this.latestValues=m,this.baseTarget={...m},this.initialValues=u.initial?{...m}:{},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=ou(u),this.isVariantNode=_g(u),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:S,...b}=this.scrapeMotionValuesFromProps(u,{},this);for(const R in b){const V=b[R];m[R]!==void 0&&ee(V)&&V.set(m[R])}}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,Db.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:(Ug.current||zb(),this.shouldReduceMotion=yc.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(),Kn(this.notifyUpdate),Kn(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&&ab.has(l)&&this.current instanceof HTMLElement){const{factory:h,keyframes:y,times:g,ease:m,duration:v}=u.accelerate,S=new dg({element:this.current,name:l,keyframes:y,times:g,ease:m,duration:Xe(v)}),b=h(S);this.valueSubscriptions.set(l,()=>{b(),S.cancel()});return}const o=ha.has(l);o&&this.onBindTransform&&this.onBindTransform();const c=u.on("change",h=>{this.latestValues[l]=h,this.props.onUpdate&&xt.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 nu){const u=nu[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):Zt()}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<Lp.length;o++){const c=Lp[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=xb(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=ra(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"&&(Uy(o)||Ny(o))?o=parseFloat(o):!Mb(o)&&Qe.test(u)&&(o=Dg(l,u)),this.setBaseTarget(l,ee(o)?o.get():o)),ee(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=qc(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&&!ee(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 Cc),this.events[l].add(u)}notify(l,...u){this.events[l]&&this.events[l].notify(...u)}scheduleRenderMicrotask(){Qc.render(this.render)}}class Ng extends Ob{constructor(){super(...arguments),this.KeyframeResolver=ib}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;ee(l)&&(this.childSubscription=l.on("change",u=>{this.current&&(this.current.textContent=`${u}`)}))}}class Jn{constructor(l){this.isMounted=!1,this.node=l}update(){}}function Lg({top:a,left:l,right:u,bottom:o}){return{x:{min:l,max:u},y:{min:a,max:o}}}function Vb({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function _b(a,l){if(!l)return a;const u=l({x:a.left,y:a.top}),o=l({x:a.right,y:a.bottom});return{top:u.y,left:u.x,bottom:o.y,right:o.x}}function Gr(a){return a===void 0||a===1}function gc({scale:a,scaleX:l,scaleY:u}){return!Gr(a)||!Gr(l)||!Gr(u)}function mi(a){return gc(a)||Hg(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Hg(a){return Hp(a.x)||Hp(a.y)}function Hp(a){return a&&a!=="0%"}function iu(a,l,u){const o=a-u,c=l*o;return u+c}function jp(a,l,u,o,c){return c!==void 0&&(a=iu(a,c,o)),iu(a,u,o)+l}function vc(a,l=0,u=1,o,c){a.min=jp(a.min,l,u,o,c),a.max=jp(a.max,l,u,o,c)}function jg(a,{x:l,y:u}){vc(a.x,l.translate,l.scale,l.originPoint),vc(a.y,u.translate,u.scale,u.originPoint)}const wp=.999999999999,Yp=1.0000000000001;function Ub(a,l,u,o=!1){const c=u.length;if(!c)return;l.x=l.y=1;let d,h;for(let y=0;y<c;y++){d=u[y],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&&ua(a,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(l.x*=h.x.scale,l.y*=h.y.scale,jg(a,h)),o&&mi(d.latestValues)&&ua(a,d.latestValues))}l.x<Yp&&l.x>wp&&(l.x=1),l.y<Yp&&l.y>wp&&(l.y=1)}function sa(a,l){a.min=a.min+l,a.max=a.max+l}function qp(a,l,u,o,c=.5){const d=Ot(a.min,a.max,c);vc(a,l,u,d,o)}function ua(a,l){qp(a.x,l.x,l.scaleX,l.scale,l.originX),qp(a.y,l.y,l.scaleY,l.scale,l.originY)}function wg(a,l){return Lg(_b(a.getBoundingClientRect(),l))}function Bb(a,l,u){const o=wg(a,u),{scroll:c}=l;return c&&(sa(o.x,c.offset.x),sa(o.y,c.offset.y)),o}const Nb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lb=fa.length;function Hb(a,l,u){let o="",c=!0;for(let d=0;d<Lb;d++){const h=fa[d],y=a[h];if(y===void 0)continue;let g=!0;if(typeof y=="number")g=y===(h.startsWith("scale")?1:0);else{const m=parseFloat(y);g=h.startsWith("scale")?m===1:m===0}if(!g||u){const m=Cg(y,Xc[h]);if(!g){c=!1;const v=Nb[h]||h;o+=`${v}(${m}) `}u&&(l[h]=m)}}return o=o.trim(),u?o=u(l,c?"":o):c&&(o="none"),o}function Fc(a,l,u){const{style:o,vars:c,transformOrigin:d}=a;let h=!1,y=!1;for(const g in l){const m=l[g];if(ha.has(g)){h=!0;continue}else if(Wy(g)){c[g]=m;continue}else{const v=Cg(m,Xc[g]);g.startsWith("origin")?(y=!0,d[g]=v):o[g]=v}}if(l.transform||(h||u?o.transform=Hb(l,a.transform,u):o.transform&&(o.transform="none")),y){const{originX:g="50%",originY:m="50%",originZ:v=0}=d;o.transformOrigin=`${g} ${m} ${v}`}}function Yg(a,{style:l,vars:u},o,c){const d=a.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 Gp(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const ol={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(J.test(a))a=parseFloat(a);else return a;const u=Gp(a,l.target.x),o=Gp(a,l.target.y);return`${u}% ${o}%`}},jb={correct:(a,{treeScale:l,projectionDelta:u})=>{const o=a,c=Qe.parse(a);if(c.length>5)return o;const d=Qe.createTransformer(a),h=typeof c[0]!="number"?1:0,y=u.x.scale*l.x,g=u.y.scale*l.y;c[0+h]/=y,c[1+h]/=g;const m=Ot(y,g,.5);return typeof c[2+h]=="number"&&(c[2+h]/=m),typeof c[3+h]=="number"&&(c[3+h]/=m),d(c)}},Sc={borderRadius:{...ol,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ol,borderTopRightRadius:ol,borderBottomLeftRadius:ol,borderBottomRightRadius:ol,boxShadow:jb};function qg(a,{layout:l,layoutId:u}){return ha.has(a)||a.startsWith("origin")||(l||u!==void 0)&&(!!Sc[a]||a==="opacity")}function Wc(a,l,u){const o=a.style,c=l?.style,d={};if(!o)return d;for(const h in o)(ee(o[h])||c&&ee(c[h])||qg(h,a)||u?.getValue(h)?.liveStyle!==void 0)&&(d[h]=o[h]);return d}function wb(a){return window.getComputedStyle(a)}class Yb extends Ng{constructor(){super(...arguments),this.type="html",this.renderInstance=Yg}readValueFromInstance(l,u){if(ha.has(u))return this.projection?.isProjecting?ac(u):lT(l,u);{const o=wb(l),c=(Wy(u)?o.getPropertyValue(u):o[u])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(l,{transformPagePoint:u}){return wg(l,u)}build(l,u,o){Fc(l,u,o.transformTemplate)}scrapeMotionValuesFromProps(l,u,o){return Wc(l,u,o)}}const qb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gb={offset:"strokeDashoffset",array:"strokeDasharray"};function Xb(a,l,u=1,o=0,c=!0){a.pathLength=1;const d=c?qb:Gb;a[d.offset]=`${-o}`,a[d.array]=`${l} ${u}`}const Qb=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Gg(a,{attrX:l,attrY:u,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:h=0,...y},g,m,v){if(Fc(a,y,m),g){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:S,style:b}=a;S.transform&&(b.transform=S.transform,delete S.transform),(b.transform||S.transformOrigin)&&(b.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),b.transform&&(b.transformBox=v?.transformBox??"fill-box",delete S.transformBox);for(const R of Qb)S[R]!==void 0&&(b[R]=S[R],delete S[R]);l!==void 0&&(S.x=l),u!==void 0&&(S.y=u),o!==void 0&&(S.scale=o),c!==void 0&&Xb(S,c,d,h,!1)}const Xg=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"]),Qg=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Zb(a,l,u,o){Yg(a,l,void 0,o);for(const c in l.attrs)a.setAttribute(Xg.has(c)?c:Gc(c),l.attrs[c])}function Zg(a,l,u){const o=Wc(a,l,u);for(const c in a)if(ee(a[c])||ee(l[c])){const d=fa.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;o[d]=a[c]}return o}class Kb extends Ng{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Zt}getBaseTargetFromProps(l,u){return l[u]}readValueFromInstance(l,u){if(ha.has(u)){const o=Mg(u);return o&&o.default||0}return u=Xg.has(u)?u:Gc(u),l.getAttribute(u)}scrapeMotionValuesFromProps(l,u,o){return Zg(l,u,o)}build(l,u,o){Gg(l,u,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,u,o,c){Zb(l,u,o,c)}mount(l){this.isSVGTag=Qg(l.tagName),super.mount(l)}}const Jb=kc.length;function Kg(a){if(!a)return;if(!a.isControllingVariants){const u=a.parent?Kg(a.parent)||{}:{};return a.props.initial!==void 0&&(u.initial=a.props.initial),u}const l={};for(let u=0;u<Jb;u++){const o=kc[u],c=a.props[o];(gl(c)||c===!1)&&(l[o]=c)}return l}function Jg(a,l){if(!Array.isArray(l))return!1;const u=l.length;if(u!==a.length)return!1;for(let o=0;o<u;o++)if(l[o]!==a[o])return!1;return!0}const kb=[...Jc].reverse(),Fb=Jc.length;function Wb(a){return l=>Promise.all(l.map(({animation:u,options:o})=>KT(a,u,o)))}function Pb(a){let l=Wb(a),u=Xp(),o=!0;const c=g=>(m,v)=>{const S=oa(a,v,g==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:b,transitionEnd:R,...V}=S;m={...m,...V,...R}}return m};function d(g){l=g(a)}function h(g){const{props:m}=a,v=Kg(a.parent)||{},S=[],b=new Set;let R={},V=1/0;for(let w=0;w<Fb;w++){const L=kb[w],q=u[L],Y=m[L]!==void 0?m[L]:v[L],K=gl(Y),Q=L===g?q.isActive:null;Q===!1&&(V=w);let et=Y===v[L]&&Y!==m[L]&&K;if(et&&o&&a.manuallyAnimateOnMount&&(et=!1),q.protectedKeys={...R},!q.isActive&&Q===null||!Y&&!q.prevProp||uu(Y)||typeof Y=="boolean")continue;if(L==="exit"&&q.isActive&&Q!==!0){q.prevResolvedValues&&(R={...R,...q.prevResolvedValues});continue}const $=$b(q.prevProp,Y);let k=$||L===g&&q.isActive&&!et&&K||w>V&&K,it=!1;const Dt=Array.isArray(Y)?Y:[Y];let Bt=Dt.reduce(c(L),{});Q===!1&&(Bt={});const{prevResolvedValues:jt={}}=q,He={...jt,...Bt},Me=H=>{k=!0,b.has(H)&&(it=!0,b.delete(H)),q.needsAnimating[H]=!0;const W=a.getValue(H);W&&(W.liveStyle=!1)};for(const H in He){const W=Bt[H],ct=jt[H];if(R.hasOwnProperty(H))continue;let mt=!1;cc(W)&&cc(ct)?mt=!Jg(W,ct):mt=W!==ct,mt?W!=null?Me(H):b.add(H):W!==void 0&&b.has(H)?Me(H):q.protectedKeys[H]=!0}q.prevProp=Y,q.prevResolvedValues=Bt,q.isActive&&(R={...R,...Bt}),o&&a.blockInitialAnimation&&(k=!1);const se=et&&$;k&&(!se||it)&&S.push(...Dt.map(H=>{const W={type:L};if(typeof H=="string"&&o&&!se&&a.manuallyAnimateOnMount&&a.parent){const{parent:ct}=a,mt=oa(ct,H);if(ct.enteringChildren&&mt){const{delayChildren:E}=mt.transition||{};W.delay=pg(ct.enteringChildren,a,E)}}return{animation:H,options:W}}))}if(b.size){const w={};if(typeof m.initial!="boolean"){const L=oa(a,Array.isArray(m.initial)?m.initial[0]:m.initial);L&&L.transition&&(w.transition=L.transition)}b.forEach(L=>{const q=a.getBaseTarget(L),Y=a.getValue(L);Y&&(Y.liveStyle=!0),w[L]=q??null}),S.push({animation:w})}let j=!!S.length;return o&&(m.initial===!1||m.initial===m.animate)&&!a.manuallyAnimateOnMount&&(j=!1),o=!1,j?l(S):Promise.resolve()}function y(g,m){if(u[g].isActive===m)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(g,m)),u[g].isActive=m;const v=h(g);for(const S in u)u[S].protectedKeys={};return v}return{animateChanges:h,setActive:y,setAnimateFunction:d,getState:()=>u,reset:()=>{u=Xp()}}}function $b(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!Jg(l,a):!1}function di(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xp(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}function Qp(a,l){a.min=l.min,a.max=l.max}function qe(a,l){Qp(a.x,l.x),Qp(a.y,l.y)}function Zp(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}const kg=1e-4,Ib=1-kg,tA=1+kg,Fg=.01,eA=0-Fg,nA=0+Fg;function le(a){return a.max-a.min}function iA(a,l,u){return Math.abs(a-l)<=u}function Kp(a,l,u,o=.5){a.origin=o,a.originPoint=Ot(l.min,l.max,a.origin),a.scale=le(u)/le(l),a.translate=Ot(u.min,u.max,a.origin)-a.originPoint,(a.scale>=Ib&&a.scale<=tA||isNaN(a.scale))&&(a.scale=1),(a.translate>=eA&&a.translate<=nA||isNaN(a.translate))&&(a.translate=0)}function hl(a,l,u,o){Kp(a.x,l.x,u.x,o?o.originX:void 0),Kp(a.y,l.y,u.y,o?o.originY:void 0)}function Jp(a,l,u){a.min=u.min+l.min,a.max=a.min+le(l)}function aA(a,l,u){Jp(a.x,l.x,u.x),Jp(a.y,l.y,u.y)}function kp(a,l,u){a.min=l.min-u.min,a.max=a.min+le(l)}function au(a,l,u){kp(a.x,l.x,u.x),kp(a.y,l.y,u.y)}function Fp(a,l,u,o,c){return a-=l,a=iu(a,1/u,o),c!==void 0&&(a=iu(a,1/c,o)),a}function lA(a,l=0,u=1,o=.5,c,d=a,h=a){if(We.test(l)&&(l=parseFloat(l),l=Ot(h.min,h.max,l/100)-h.min),typeof l!="number")return;let y=Ot(d.min,d.max,o);a===d&&(y-=l),a.min=Fp(a.min,l,u,y,c),a.max=Fp(a.max,l,u,y,c)}function Wp(a,l,[u,o,c],d,h){lA(a,l[u],l[o],l[c],l.scale,d,h)}const sA=["x","scaleX","originX"],uA=["y","scaleY","originY"];function Pp(a,l,u,o){Wp(a.x,l,sA,u?u.x:void 0,o?o.x:void 0),Wp(a.y,l,uA,u?u.y:void 0,o?o.y:void 0)}function $p(a){return a.translate===0&&a.scale===1}function Wg(a){return $p(a.x)&&$p(a.y)}function Ip(a,l){return a.min===l.min&&a.max===l.max}function oA(a,l){return Ip(a.x,l.x)&&Ip(a.y,l.y)}function ty(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function Pg(a,l){return ty(a.x,l.x)&&ty(a.y,l.y)}function ey(a){return le(a.x)/le(a.y)}function ny(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}function Fe(a){return[a("x"),a("y")]}function rA(a,l,u){let o="";const c=a.x.translate/l.x,d=a.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:m,rotate:v,rotateX:S,rotateY:b,skewX:R,skewY:V}=u;m&&(o=`perspective(${m}px) ${o}`),v&&(o+=`rotate(${v}deg) `),S&&(o+=`rotateX(${S}deg) `),b&&(o+=`rotateY(${b}deg) `),R&&(o+=`skewX(${R}deg) `),V&&(o+=`skewY(${V}deg) `)}const y=a.x.scale*l.x,g=a.y.scale*l.y;return(y!==1||g!==1)&&(o+=`scale(${y}, ${g})`),o||"none"}const $g=["TopLeft","TopRight","BottomLeft","BottomRight"],cA=$g.length,iy=a=>typeof a=="string"?parseFloat(a):a,ay=a=>typeof a=="number"||J.test(a);function fA(a,l,u,o,c,d){c?(a.opacity=Ot(0,u.opacity??1,hA(o)),a.opacityExit=Ot(l.opacity??1,0,dA(o))):d&&(a.opacity=Ot(l.opacity??1,u.opacity??1,o));for(let h=0;h<cA;h++){const y=`border${$g[h]}Radius`;let g=ly(l,y),m=ly(u,y);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||ay(g)===ay(m)?(a[y]=Math.max(Ot(iy(g),iy(m),o),0),(We.test(m)||We.test(g))&&(a[y]+="%")):a[y]=m}(l.rotate||u.rotate)&&(a.rotate=Ot(l.rotate||0,u.rotate||0,o))}function ly(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const hA=Ig(0,.5,Qy),dA=Ig(.5,.95,Le);function Ig(a,l,u){return o=>o<a?0:o>l?1:u(ml(a,l,o))}function mA(a,l,u){const o=ee(a)?a:ra(a);return o.start(Yc("",o,l,u)),o.animation}function vl(a,l,u,o={passive:!0}){return a.addEventListener(l,u,o),()=>a.removeEventListener(l,u)}const pA=(a,l)=>a.depth-l.depth;class yA{constructor(){this.children=[],this.isDirty=!1}add(l){Dc(this.children,l),this.isDirty=!0}remove(l){$s(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(pA),this.isDirty=!1,this.children.forEach(l)}}function gA(a,l){const u=ae.now(),o=({timestamp:c})=>{const d=c-u;d>=l&&(Kn(o),a(d-l))};return xt.setup(o,!0),()=>Kn(o)}function Ws(a){return ee(a)?a.get():a}class vA{constructor(){this.members=[]}add(l){Dc(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&&$s(this.members,o)}l.scheduleRender()}remove(l){if($s(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:y}=l.options;y===!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 Ps={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xr=["","X","Y","Z"],SA=1e3;let TA=0;function Qr(a,l,u,o){const{latestValues:c}=l;c[a]&&(u[a]=c[a],l.setStaticValue(a,0),o&&(o[a]=0))}function t0(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const u=Tg(l);if(window.MotionHasOptimisedAnimation(u,"transform")){const{layout:c,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(u,"transform",xt,!(c||d))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&t0(o)}function e0({attachResizeListener:a,defaultParent:l,measureScroll:u,checkIsScrollRoot:o,resetTransform:c}){return class{constructor(h={},y=l?.()){this.id=TA++,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(EA),this.nodes.forEach(CA),this.nodes.forEach(zA),this.nodes.forEach(MA)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new yA)}addEventListener(h,y){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Cc),this.eventHandlers.get(h).add(y)}notifyListeners(h,...y){const g=this.eventHandlers.get(h);g&&g.notify(...y)}hasListeners(h){return this.eventHandlers.has(h)}mount(h){if(this.instance)return;this.isSVG=Kc(h)&&!Ab(h),this.instance=h;const{layoutId:y,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||y)&&(this.isLayoutDirty=!0),a){let v,S=0;const b=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{S=window.innerWidth}),a(h,()=>{const R=window.innerWidth;R!==S&&(S=R,this.root.updateBlockedByResize=!0,v&&v(),v=gA(b,250),Ps.hasAnimatedSinceResize&&(Ps.hasAnimatedSinceResize=!1,this.nodes.forEach(oy)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&m&&(y||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:S,hasRelativeLayoutChanged:b,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||m.getDefaultTransition()||UA,{onLayoutAnimationStart:j,onLayoutAnimationComplete:w}=m.getProps(),L=!this.targetLayout||!Pg(this.targetLayout,R),q=!S&&b;if(this.options.layoutRoot||this.resumeFrom||q||S&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Y={...wc(V,"layout"),onPlay:j,onComplete:w};(m.shouldReduceMotion||this.options.layoutRoot)&&(Y.delay=0,Y.type=!1),this.startAnimation(Y),this.setAnimationOrigin(v,q)}else S||oy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}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(),Kn(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(RA),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&&t0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const S=this.path[v];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:y,layout:g}=this.options;if(y===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(uy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(xA),this.nodes.forEach(bA),this.nodes.forEach(AA)):this.nodes.forEach(uy),this.clearAllSnapshots();const y=ae.now();It.delta=Pe(0,1e3/60,y-It.timestamp),It.timestamp=y,It.isProcessing=!0,Nr.update.process(It),Nr.preRender.process(It),Nr.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(DA),this.sharedNodes.forEach(OA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!le(this.snapshot.measuredBox.x)&&!le(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=Zt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(y=!1),y&&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,y=this.projectionDelta&&!Wg(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,v=m!==this.prevTransformTemplateValue;h&&this.instance&&(y||mi(this.latestValues)||v)&&(c(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const y=this.measurePageBox();let g=this.removeElementScroll(y);return h&&(g=this.removeTransform(g)),BA(g),{animationId:this.root.animationId,measuredBox:y,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:h}=this.options;if(!h)return Zt();const y=h.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(NA))){const{scroll:m}=this.root;m&&(sa(y.x,m.offset.x),sa(y.y,m.offset.y))}return y}removeElementScroll(h){const y=Zt();if(qe(y,h),this.scroll?.wasRoot)return y;for(let g=0;g<this.path.length;g++){const m=this.path[g],{scroll:v,options:S}=m;m!==this.root&&v&&S.layoutScroll&&(v.wasRoot&&qe(y,h),sa(y.x,v.offset.x),sa(y.y,v.offset.y))}return y}applyTransform(h,y=!1){const g=Zt();qe(g,h);for(let m=0;m<this.path.length;m++){const v=this.path[m];!y&&v.options.layoutScroll&&v.scroll&&v!==v.root&&ua(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),mi(v.latestValues)&&ua(g,v.latestValues)}return mi(this.latestValues)&&ua(g,this.latestValues),g}removeTransform(h){const y=Zt();qe(y,h);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!mi(m.latestValues))continue;gc(m.latestValues)&&m.updateSnapshot();const v=Zt(),S=m.measurePageBox();qe(v,S),Pp(y,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,v)}return mi(this.latestValues)&&Pp(y,this.latestValues),y}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!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==y;if(!(h||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:S}=this.options;if(!this.layout||!(v||S))return;this.resolvedRelativeTargetAt=It.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Zt(),this.targetWithTransforms=Zt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),aA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):qe(this.target,this.layout.layoutBox),jg(this.target,this.targetDelta)):qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||gc(this.parent.latestValues)||Hg(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,y,g){this.relativeParent=h,this.linkedParentVersion=h.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zt(),this.relativeTargetOrigin=Zt(),au(this.relativeTargetOrigin,y,g),qe(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const h=this.getLead(),y=!!this.resumingFrom||this!==h;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===It.timestamp&&(g=!1),g)return;const{layout:m,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||!(m||v))return;qe(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,b=this.treeScale.y;Ub(this.layoutCorrected,this.treeScale,this.path,y),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=Zt());const{target:R}=h;if(!R){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Zp(this.prevProjectionDelta.x,this.projectionDelta.x),Zp(this.prevProjectionDelta.y,this.projectionDelta.y)),hl(this.projectionDelta,this.layoutCorrected,R,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==b||!ny(this.projectionDelta.x,this.prevProjectionDelta.x)||!ny(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",R))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){if(this.options.visualElement?.scheduleRender(),h){const y=this.getStack();y&&y.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=la(),this.projectionDelta=la(),this.projectionDeltaWithTransform=la()}setAnimationOrigin(h,y=!1){const g=this.snapshot,m=g?g.latestValues:{},v={...this.latestValues},S=la();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const b=Zt(),R=g?g.source:void 0,V=this.layout?this.layout.source:void 0,j=R!==V,w=this.getStack(),L=!w||w.members.length<=1,q=!!(j&&!L&&this.options.crossfade===!0&&!this.path.some(_A));this.animationProgress=0;let Y;this.mixTargetDelta=K=>{const Q=K/1e3;ry(S.x,h.x,Q),ry(S.y,h.y,Q),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(au(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),VA(this.relativeTarget,this.relativeTargetOrigin,b,Q),Y&&oA(this.relativeTarget,Y)&&(this.isProjectionDirty=!1),Y||(Y=Zt()),qe(Y,this.relativeTarget)),j&&(this.animationValues=v,fA(v,m,this.latestValues,Q,q,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{Ps.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ra(0)),this.motionValue.jump(0,!1),this.currentAnimation=mA(this.motionValue,[0,1e3],{...h,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),h.onUpdate&&h.onUpdate(y)},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(SA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:y,target:g,layout:m,latestValues:v}=h;if(!(!y||!g||!m)){if(this!==h&&this.layout&&m&&n0(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||Zt();const S=le(this.layout.layoutBox.x);g.x.min=h.target.x.min,g.x.max=g.x.min+S;const b=le(this.layout.layoutBox.y);g.y.min=h.target.y.min,g.y.max=g.y.min+b}qe(y,g),ua(y,v),hl(this.projectionDeltaWithTransform,this.layoutCorrected,y,v)}}registerSharedNode(h,y){this.sharedNodes.has(h)||this.sharedNodes.set(h,new vA),this.sharedNodes.get(h).add(y);const m=y.options.initialPromotionConfig;y.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(y):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:y,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),h&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let y=!1;const{latestValues:g}=h;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(y=!0),!y)return;const m={};g.z&&Qr("z",h,m,this.animationValues);for(let v=0;v<Xr.length;v++)Qr(`rotate${Xr[v]}`,h,m,this.animationValues),Qr(`skew${Xr[v]}`,h,m,this.animationValues);h.render();for(const v in m)h.setStaticValue(v,m[v]),this.animationValues&&(this.animationValues[v]=m[v]);h.scheduleRender()}applyProjectionStyles(h,y){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=Ws(y?.pointerEvents)||"",h.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Ws(y?.pointerEvents)||""),this.hasProjected&&!mi(this.latestValues)&&(h.transform=g?g({},""):"none",this.hasProjected=!1);return}h.visibility="";const v=m.animationValues||m.latestValues;this.applyTransformsToTarget();let S=rA(this.projectionDeltaWithTransform,this.treeScale,v);g&&(S=g(v,S)),h.transform=S;const{x:b,y:R}=this.projectionDelta;h.transformOrigin=`${b.origin*100}% ${R.origin*100}% 0`,m.animationValues?h.opacity=m===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=m===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const V in Sc){if(v[V]===void 0)continue;const{correct:j,applyTo:w,isCSSVariable:L}=Sc[V],q=S==="none"?v[V]:j(v[V],m);if(w){const Y=w.length;for(let K=0;K<Y;K++)h[w[K]]=q}else L?this.options.visualElement.renderState.vars[V]=q:h[V]=q}this.options.layoutId&&(h.pointerEvents=m===this?Ws(y?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>h.currentAnimation?.stop()),this.root.nodes.forEach(sy),this.root.sharedNodes.clear()}}}function bA(a){a.updateLayout()}function AA(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:u,measuredBox:o}=a.layout,{animationType:c}=a.options,d=l.source!==a.layout.source;c==="size"?Fe(v=>{const S=d?l.measuredBox[v]:l.layoutBox[v],b=le(S);S.min=u[v].min,S.max=S.min+b}):n0(c,l.layoutBox,u)&&Fe(v=>{const S=d?l.measuredBox[v]:l.layoutBox[v],b=le(u[v]);S.max=S.min+b,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+b)});const h=la();hl(h,u,l.layoutBox);const y=la();d?hl(y,a.applyTransform(o,!0),l.measuredBox):hl(y,u,l.layoutBox);const g=!Wg(h);let m=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:S,layout:b}=v;if(S&&b){const R=Zt();au(R,l.layoutBox,S.layoutBox);const V=Zt();au(V,u,b.layoutBox),Pg(R,V)||(m=!0),v.options.layoutRoot&&(a.relativeTarget=V,a.relativeTargetOrigin=R,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:u,snapshot:l,delta:y,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:m})}else if(a.isLead()){const{onExitComplete:u}=a.options;u&&u()}a.options.transition=void 0}function EA(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function MA(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function DA(a){a.clearSnapshot()}function sy(a){a.clearMeasurements()}function uy(a){a.isLayoutDirty=!1}function xA(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function oy(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function CA(a){a.resolveTargetDelta()}function zA(a){a.calcProjection()}function RA(a){a.resetSkewAndRotation()}function OA(a){a.removeLeadSnapshot()}function ry(a,l,u){a.translate=Ot(l.translate,0,u),a.scale=Ot(l.scale,1,u),a.origin=l.origin,a.originPoint=l.originPoint}function cy(a,l,u,o){a.min=Ot(l.min,u.min,o),a.max=Ot(l.max,u.max,o)}function VA(a,l,u,o){cy(a.x,l.x,u.x,o),cy(a.y,l.y,u.y,o)}function _A(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const UA={duration:.45,ease:[.4,0,.1,1]},fy=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),hy=fy("applewebkit/")&&!fy("chrome/")?Math.round:Le;function dy(a){a.min=hy(a.min),a.max=hy(a.max)}function BA(a){dy(a.x),dy(a.y)}function n0(a,l,u){return a==="position"||a==="preserve-aspect"&&!iA(ey(l),ey(u),.2)}function NA(a){return a!==a.root&&a.scroll?.wasRoot}const LA=e0({attachResizeListener:(a,l)=>vl(a,"resize",l),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Zr={current:void 0},i0=e0({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Zr.current){const a=new LA({});a.mount(window),a.setOptions({layoutScroll:!0}),Zr.current=a}return Zr.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Pc=X.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function my(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function HA(...a){return l=>{let u=!1;const o=a.map(c=>{const d=my(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():my(a[c],null)}}}}function jA(...a){return X.useCallback(HA(...a),a)}class wA extends X.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=pc(o)&&o.offsetWidth||0,d=pc(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 YA({children:a,isPresent:l,anchorX:u,anchorY:o,root:c,pop:d}){const h=X.useId(),y=X.useRef(null),g=X.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=X.useContext(Pc),v=a.props?.ref??a?.ref,S=jA(y,v);return X.useInsertionEffect(()=>{const{width:b,height:R,top:V,left:j,right:w,bottom:L}=g.current;if(l||d===!1||!y.current||!b||!R)return;const q=u==="left"?`left: ${j}`:`right: ${w}`,Y=o==="bottom"?`bottom: ${L}`:`top: ${V}`;y.current.dataset.motionPopId=h;const K=document.createElement("style");m&&(K.nonce=m);const Q=c??document.head;return Q.appendChild(K),K.sheet&&K.sheet.insertRule(`
10
- [data-motion-pop-id="${h}"] {
11
- position: absolute !important;
12
- width: ${b}px !important;
13
- height: ${R}px !important;
14
- ${q}px !important;
15
- ${Y}px !important;
16
- }
17
- `),()=>{Q.contains(K)&&Q.removeChild(K)}},[l]),gn.jsx(wA,{isPresent:l,childRef:y,sizeRef:g,pop:d,children:d===!1?a:X.cloneElement(a,{ref:S})})}const qA=({children:a,initial:l,isPresent:u,onExitComplete:o,custom:c,presenceAffectsLayout:d,mode:h,anchorX:y,anchorY:g,root:m})=>{const v=Mc(GA),S=X.useId();let b=!0,R=X.useMemo(()=>(b=!1,{id:S,initial:l,isPresent:u,custom:c,onExitComplete:V=>{v.set(V,!0);for(const j of v.values())if(!j)return;o&&o()},register:V=>(v.set(V,!1),()=>v.delete(V))}),[u,v,o]);return d&&b&&(R={...R}),X.useMemo(()=>{v.forEach((V,j)=>v.set(j,!1))},[u]),X.useEffect(()=>{!u&&!v.size&&o&&o()},[u]),a=gn.jsx(YA,{pop:h==="popLayout",isPresent:u,anchorX:y,anchorY:g,root:m,children:a}),gn.jsx(su.Provider,{value:R,children:a})};function GA(){return new Map}function a0(a=!0){const l=X.useContext(su);if(l===null)return[!0,null];const{isPresent:u,onExitComplete:o,register:c}=l,d=X.useId();X.useEffect(()=>{if(a)return c(d)},[a]);const h=X.useCallback(()=>a&&o&&o(d),[d,o,a]);return!u&&o?[!1,h]:[!0]}const Xs=a=>a.key||"";function py(a){const l=[];return X.Children.forEach(a,u=>{X.isValidElement(u)&&l.push(u)}),l}const tE=({children:a,custom:l,initial:u=!0,onExitComplete:o,presenceAffectsLayout:c=!0,mode:d="sync",propagate:h=!1,anchorX:y="left",anchorY:g="top",root:m})=>{const[v,S]=a0(h),b=X.useMemo(()=>py(a),[a]),R=h&&!v?[]:b.map(Xs),V=X.useRef(!0),j=X.useRef(b),w=Mc(()=>new Map),L=X.useRef(new Set),[q,Y]=X.useState(b),[K,Q]=X.useState(b);_y(()=>{V.current=!1,j.current=b;for(let k=0;k<K.length;k++){const it=Xs(K[k]);R.includes(it)?(w.delete(it),L.current.delete(it)):w.get(it)!==!0&&w.set(it,!1)}},[K,R.length,R.join("-")]);const et=[];if(b!==q){let k=[...b];for(let it=0;it<K.length;it++){const Dt=K[it],Bt=Xs(Dt);R.includes(Bt)||(k.splice(it,0,Dt),et.push(Dt))}return d==="wait"&&et.length&&(k=et),Q(py(k)),Y(b),null}const{forceRender:$}=X.useContext(Ec);return gn.jsx(gn.Fragment,{children:K.map(k=>{const it=Xs(k),Dt=h&&!v?!1:b===K||R.includes(it),Bt=()=>{if(L.current.has(it))return;if(L.current.add(it),w.has(it))w.set(it,!0);else return;let jt=!0;w.forEach(He=>{He||(jt=!1)}),jt&&($?.(),Q(j.current),h&&S?.(),o&&o())};return gn.jsx(qA,{isPresent:Dt,initial:!V.current||u?void 0:!1,custom:l,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:Dt?void 0:Bt,anchorX:y,anchorY:g,children:k},it)})})},l0=X.createContext({strict:!1}),yy={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 gy=!1;function XA(){if(gy)return;const a={};for(const l in yy)a[l]={isEnabled:u=>yy[l].some(o=>!!u[o])};Bg(a),gy=!0}function s0(){return XA(),Rb()}function QA(a){const l=s0();for(const u in a)l[u]={...l[u],...a[u]};Bg(l)}const ZA=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 lu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||ZA.has(a)}let u0=a=>!lu(a);function KA(a){typeof a=="function"&&(u0=l=>l.startsWith("on")?!lu(l):a(l))}try{KA(require("@emotion/is-prop-valid").default)}catch{}function JA(a,l,u){const o={};for(const c in a)c==="values"&&typeof a.values=="object"||(u0(c)||u===!0&&lu(c)||!l&&!lu(c)||a.draggable&&c.startsWith("onDrag"))&&(o[c]=a[c]);return o}const ru=X.createContext({});function kA(a,l){if(ou(a)){const{initial:u,animate:o}=a;return{initial:u===!1||gl(u)?u:void 0,animate:gl(o)?o:void 0}}return a.inherit!==!1?l:{}}function FA(a){const{initial:l,animate:u}=kA(a,X.useContext(ru));return X.useMemo(()=>({initial:l,animate:u}),[vy(l),vy(u)])}function vy(a){return Array.isArray(a)?a.join(" "):a}const $c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o0(a,l,u){for(const o in l)!ee(l[o])&&!qg(o,u)&&(a[o]=l[o])}function WA({transformTemplate:a},l){return X.useMemo(()=>{const u=$c();return Fc(u,l,a),Object.assign({},u.vars,u.style)},[l])}function PA(a,l){const u=a.style||{},o={};return o0(o,u,a),Object.assign(o,WA(a,l)),o}function $A(a,l){const u={},o=PA(a,l);return a.drag&&a.dragListener!==!1&&(u.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(u.tabIndex=0),u.style=o,u}const r0=()=>({...$c(),attrs:{}});function IA(a,l,u,o){const c=X.useMemo(()=>{const d=r0();return Gg(d,l,Qg(o),a.transformTemplate,a.style),{...d.attrs,style:{...d.style}}},[l]);if(a.style){const d={};o0(d,a.style,a),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 Ic(a){return typeof a!="string"||a.includes("-")?!1:!!(t2.indexOf(a)>-1||/[A-Z]/u.test(a))}function e2(a,l,u,{latestValues:o},c,d=!1,h){const g=(h??Ic(a)?IA:$A)(l,o,c,a),m=JA(l,typeof a=="string",d),v=a!==X.Fragment?{...m,...g,ref:u}:{},{children:S}=l,b=X.useMemo(()=>ee(S)?S.get():S,[S]);return X.createElement(a,{...v,children:b})}function n2({scrapeMotionValuesFromProps:a,createRenderState:l},u,o,c){return{latestValues:i2(u,o,c,a),renderState:l()}}function i2(a,l,u,o){const c={},d=o(a,{});for(const b in d)c[b]=Ws(d[b]);let{initial:h,animate:y}=a;const g=ou(a),m=_g(a);l&&m&&!g&&a.inherit!==!1&&(h===void 0&&(h=l.initial),y===void 0&&(y=l.animate));let v=u?u.initial===!1:!1;v=v||h===!1;const S=v?y:h;if(S&&typeof S!="boolean"&&!uu(S)){const b=Array.isArray(S)?S:[S];for(let R=0;R<b.length;R++){const V=qc(a,b[R]);if(V){const{transitionEnd:j,transition:w,...L}=V;for(const q in L){let Y=L[q];if(Array.isArray(Y)){const K=v?Y.length-1:0;Y=Y[K]}Y!==null&&(c[q]=Y)}for(const q in j)c[q]=j[q]}}}return c}const c0=a=>(l,u)=>{const o=X.useContext(ru),c=X.useContext(su),d=()=>n2(a,l,o,c);return u?d():Mc(d)},a2=c0({scrapeMotionValuesFromProps:Wc,createRenderState:$c}),l2=c0({scrapeMotionValuesFromProps:Zg,createRenderState:r0}),s2=Symbol.for("motionComponentSymbol");function u2(a,l,u){const o=X.useRef(u);X.useInsertionEffect(()=>{o.current=u});const c=X.useRef(null);return X.useCallback(d=>{d&&a.onMount?.(d),l&&(d?l.mount(d):l.unmount());const h=o.current;if(typeof h=="function")if(d){const y=h(d);typeof y=="function"&&(c.current=y)}else c.current?(c.current(),c.current=null):h(d);else h&&(h.current=d)},[l])}const f0=X.createContext({});function na(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function o2(a,l,u,o,c,d){const{visualElement:h}=X.useContext(ru),y=X.useContext(l0),g=X.useContext(su),m=X.useContext(Pc),v=m.reducedMotion,S=m.skipAnimations,b=X.useRef(null),R=X.useRef(!1);o=o||y.renderer,!b.current&&o&&(b.current=o(a,{visualState:l,parent:h,props:u,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:S,isSVG:d}),R.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const V=b.current,j=X.useContext(f0);V&&!V.projection&&c&&(V.type==="html"||V.type==="svg")&&r2(b.current,u,c,j);const w=X.useRef(!1);X.useInsertionEffect(()=>{V&&w.current&&V.update(u,g)});const L=u[Sg],q=X.useRef(!!L&&!window.MotionHandoffIsComplete?.(L)&&window.MotionHasOptimisedAnimation?.(L));return _y(()=>{R.current=!0,V&&(w.current=!0,window.MotionIsMounted=!0,V.updateFeatures(),V.scheduleRenderMicrotask(),q.current&&V.animationState&&V.animationState.animateChanges())}),X.useEffect(()=>{V&&(!q.current&&V.animationState&&V.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(L)}),q.current=!1),V.enteringChildren=void 0)}),V}function r2(a,l,u,o){const{layoutId:c,layout:d,drag:h,dragConstraints:y,layoutScroll:g,layoutRoot:m,layoutCrossfade:v}=l;a.projection=new u(a.latestValues,l["data-framer-portal-id"]?void 0:h0(a.parent)),a.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!h||y&&na(y),visualElement:a,animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:m})}function h0(a){if(a)return a.options.allowProjection!==!1?a.projection:h0(a.parent)}function Kr(a,{forwardMotionProps:l=!1,type:u}={},o,c){o&&QA(o);const d=u?u==="svg":Ic(a),h=d?l2:a2;function y(m,v){let S;const b={...X.useContext(Pc),...m,layoutId:c2(m)},{isStatic:R}=b,V=FA(m),j=h(m,R);if(!R&&Vy){f2();const w=h2(b);S=w.MeasureLayout,V.visualElement=o2(a,j,b,c,w.ProjectionNode,d)}return gn.jsxs(ru.Provider,{value:V,children:[S&&V.visualElement?gn.jsx(S,{visualElement:V.visualElement,...b}):null,e2(a,m,u2(j,V.visualElement,v),j,R,l,d)]})}y.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const g=X.forwardRef(y);return g[s2]=a,g}function c2({layoutId:a}){const l=X.useContext(Ec).id;return l&&a!==void 0?l+"-"+a:a}function f2(a,l){X.useContext(l0).strict}function h2(a){const l=s0(),{drag:u,layout:o}=l;if(!u&&!o)return{};const c={...u,...o};return{MeasureLayout:u?.isEnabled(a)||o?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function d2(a,l){if(typeof Proxy>"u")return Kr;const u=new Map,o=(d,h)=>Kr(d,h,a,l),c=(d,h)=>o(d,h);return new Proxy(c,{get:(d,h)=>h==="create"?o:(u.has(h)||u.set(h,Kr(h,void 0,a,l)),u.get(h))})}const m2=(a,l)=>l.isSVG??Ic(a)?new Kb(l):new Yb(l,{allowProjection:a!==X.Fragment});class p2 extends Jn{constructor(l){super(l),l.animationState||(l.animationState=Pb(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();uu(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 y2=0;class g2 extends Jn{constructor(){super(...arguments),this.id=y2++}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 v2={animation:{Feature:p2},exit:{Feature:g2}};function Al(a){return{point:{x:a.pageX,y:a.pageY}}}const S2=a=>l=>Zc(l)&&a(l,Al(l));function dl(a,l,u,o){return vl(a,l,S2(u),o)}const d0=({current:a})=>a?a.ownerDocument.defaultView:null,Sy=(a,l)=>Math.abs(a-l);function T2(a,l){const u=Sy(a.x,l.x),o=Sy(a.y,l.y);return Math.sqrt(u**2+o**2)}const Ty=new Set(["auto","scroll"]);class m0{constructor(l,u,{transformPagePoint:o,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:h=3,element:y}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=R=>{this.handleScroll(R.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=kr(this.lastMoveEventInfo,this.history),V=this.startEvent!==null,j=T2(R.offset,{x:0,y:0})>=this.distanceThreshold;if(!V&&!j)return;const{point:w}=R,{timestamp:L}=It;this.history.push({...w,timestamp:L});const{onStart:q,onMove:Y}=this.handlers;V||(q&&q(this.lastMoveEvent,R),this.startEvent=this.lastMoveEvent),Y&&Y(this.lastMoveEvent,R)},this.handlePointerMove=(R,V)=>{this.lastMoveEvent=R,this.lastMoveEventInfo=Jr(V,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(R,V)=>{this.end();const{onEnd:j,onSessionEnd:w,resumeAnimation:L}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=kr(R.type==="pointercancel"?this.lastMoveEventInfo:Jr(V,this.transformPagePoint),this.history);this.startEvent&&j&&j(R,q),w&&w(R,q)},!Zc(l))return;this.dragSnapToOrigin=d,this.handlers=u,this.transformPagePoint=o,this.distanceThreshold=h,this.contextWindow=c||window;const g=Al(l),m=Jr(g,this.transformPagePoint),{point:v}=m,{timestamp:S}=It;this.history=[{...v,timestamp:S}];const{onSessionStart:b}=u;b&&b(l,kr(m,this.history)),this.removeListeners=Sl(dl(this.contextWindow,"pointermove",this.handlePointerMove),dl(this.contextWindow,"pointerup",this.handlePointerUp),dl(this.contextWindow,"pointercancel",this.handlePointerUp)),y&&this.startScrollTracking(y)}startScrollTracking(l){let u=l.parentElement;for(;u;){const o=getComputedStyle(u);(Ty.has(o.overflowX)||Ty.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),xt.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kn(this.updatePoint)}}function Jr(a,l){return l?{point:l(a.point)}:a}function by(a,l){return{x:a.x-l.x,y:a.y-l.y}}function kr({point:a},l){return{point:a,delta:by(a,p0(l)),offset:by(a,b2(l)),velocity:A2(l,.1)}}function b2(a){return a[0]}function p0(a){return a[a.length-1]}function A2(a,l){if(a.length<2)return{x:0,y:0};let u=a.length-1,o=null;const c=p0(a);for(;u>=0&&(o=a[u],!(c.timestamp-o.timestamp>Xe(l)));)u--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&c.timestamp-o.timestamp>Xe(l)*2&&(o=a[1]);const d=Ne(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 E2(a,{min:l,max:u},o){return l!==void 0&&a<l?a=o?Ot(l,a,o.min):Math.max(a,l):u!==void 0&&a>u&&(a=o?Ot(u,a,o.max):Math.min(a,u)),a}function Ay(a,l,u){return{min:l!==void 0?a.min+l:void 0,max:u!==void 0?a.max+u-(a.max-a.min):void 0}}function M2(a,{top:l,left:u,bottom:o,right:c}){return{x:Ay(a.x,u,c),y:Ay(a.y,l,o)}}function Ey(a,l){let u=l.min-a.min,o=l.max-a.max;return l.max-l.min<a.max-a.min&&([u,o]=[o,u]),{min:u,max:o}}function D2(a,l){return{x:Ey(a.x,l.x),y:Ey(a.y,l.y)}}function x2(a,l){let u=.5;const o=le(a),c=le(l);return c>o?u=ml(l.min,l.max-o,a.min):o>c&&(u=ml(a.min,a.max-c,l.min)),Pe(0,1,u)}function C2(a,l){const u={};return l.min!==void 0&&(u.min=l.min-a.min),l.max!==void 0&&(u.max=l.max-a.min),u}const Tc=.35;function z2(a=Tc){return a===!1?a=0:a===!0&&(a=Tc),{x:My(a,"left","right"),y:My(a,"top","bottom")}}function My(a,l,u){return{min:Dy(a,l),max:Dy(a,u)}}function Dy(a,l){return typeof a=="number"?a:a[l]||0}const R2=new WeakMap;class O2{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=Zt(),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=S=>{u&&this.snapToCursor(Al(S).point),this.stopAnimation()},h=(S,b)=>{const{drag:R,dragPropagation:V,onDragStart:j}=this.getProps();if(R&&!V&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lb(R),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fe(L=>{let q=this.getAxisMotionValue(L).get()||0;if(We.test(q)){const{projection:Y}=this.visualElement;if(Y&&Y.layout){const K=Y.layout.layoutBox[L];K&&(q=le(K)*(parseFloat(q)/100))}}this.originPoint[L]=q}),j&&xt.update(()=>j(S,b),!1,!0),fc(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},y=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b;const{dragPropagation:R,dragDirectionLock:V,onDirectionLock:j,onDrag:w}=this.getProps();if(!R&&!this.openDragLock)return;const{offset:L}=b;if(V&&this.currentDirection===null){this.currentDirection=_2(L),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",b.point,L),this.updateAxis("y",b.point,L),this.visualElement.render(),w&&xt.update(()=>w(S,b),!1,!0)},g=(S,b)=>{this.latestPointerEvent=S,this.latestPanInfo=b,this.stop(S,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>{const{dragSnapToOrigin:S}=this.getProps();(S||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new m0(l,{onSessionStart:d,onStart:h,onMove:y,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:o,contextWindow:d0(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:y}=this.getProps();y&&xt.postRender(()=>y(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||!Qs(l,c,this.currentDirection))return;const d=this.getAxisMotionValue(l);let h=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(h=E2(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&&na(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=M2(o.layoutBox,l):this.constraints=!1,this.elastic=z2(u),c!==this.constraints&&!na(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&Fe(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=C2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:u}=this.getProps();if(!l||!na(l))return!1;const o=l.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Bb(o,c.root,this.visualElement.getTransformPagePoint());let h=D2(c.layout.layoutBox,d);if(u){const y=u(Vb(h));this.hasMutatedConstraints=!!y,y&&(h=Lg(y))}return h}startAnimation(l){const{drag:u,dragMomentum:o,dragElastic:c,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:y}=this.getProps(),g=this.constraints||{},m=Fe(v=>{if(!Qs(v,u,this.currentDirection))return;let S=g&&g[v]||{};h&&(S={min:0,max:0});const b=c?200:1e6,R=c?40:1e7,V={type:"inertia",velocity:o?l[v]:0,bounceStiffness:b,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(v,V)});return Promise.all(m).then(y)}startAxisValueAnimation(l,u){const o=this.getAxisMotionValue(l);return fc(this.visualElement,l),o.start(Yc(l,o,0,u,this.visualElement,!1))}stopAnimation(){Fe(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){Fe(u=>{const{drag:o}=this.getProps();if(!Qs(u,o,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(u);if(c&&c.layout){const{min:h,max:y}=c.layout.layoutBox[u],g=d.get()||0;d.set(l[u]-Ot(h,y,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:u}=this.getProps(),{projection:o}=this.visualElement;if(!na(u)||!o||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Fe(h=>{const y=this.getAxisMotionValue(h);if(y&&this.constraints!==!1){const g=y.get();c[h]=x2({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(),Fe(h=>{if(!Qs(h,l,null))return;const y=this.getAxisMotionValue(h),{min:g,max:m}=this.constraints[h];y.set(Ot(g,m,c[h]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;R2.set(this.visualElement,this);const l=this.visualElement.current,u=dl(l,"pointerdown",m=>{const{drag:v,dragListener:S=!0}=this.getProps(),b=m.target,R=b!==l&&fb(b);v&&S&&!R&&this.start(m)});let o;const c=()=>{const{dragConstraints:m}=this.getProps();na(m)&&m.current&&(this.constraints=this.resolveRefConstraints(),o||(o=V2(l,m.current,()=>this.scalePositionWithinConstraints())))},{projection:d}=this.visualElement,h=d.addEventListener("measure",c);d&&!d.layout&&(d.root&&d.root.updateScroll(),d.updateLayout()),xt.read(c);const y=vl(window,"resize",()=>this.scalePositionWithinConstraints()),g=d.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:v})=>{this.isDragging&&v&&(Fe(S=>{const b=this.getAxisMotionValue(S);b&&(this.originPoint[S]+=m[S].translate,b.set(b.get()+m[S].translate))}),this.visualElement.render())}));return()=>{y(),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=Tc,dragMomentum:y=!0}=l;return{...l,drag:u,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:h,dragMomentum:y}}}function xy(a){let l=!0;return()=>{if(l){l=!1;return}a()}}function V2(a,l,u){const o=Up(a,xy(u)),c=Up(l,xy(u));return()=>{o(),c()}}function Qs(a,l,u){return(l===!0||l===a)&&(u===null||u===a)}function _2(a,l=10){let u=null;return Math.abs(a.y)>l?u="y":Math.abs(a.x)>l&&(u="x"),u}class U2 extends Jn{constructor(l){super(l),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new O2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}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 Fr=a=>(l,u)=>{a&&xt.update(()=>a(l,u),!1,!0)};class B2 extends Jn{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(l){this.session=new m0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:d0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:u,onPan:o,onPanEnd:c}=this.node.getProps();return{onSessionStart:Fr(l),onStart:Fr(u),onMove:Fr(o),onEnd:(d,h)=>{delete this.session,c&&xt.postRender(()=>c(d,h))}}}mount(){this.removePointerDownListener=dl(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 Wr=!1;class N2 extends X.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),Wr&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ps.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}),Wr=!0,c||l.layoutDependency!==u||u===void 0||l.isPresent!==d?h.willUpdate():this.safeToRemove(),l.isPresent!==d&&(d?h.promote():h.relegate()||xt.postRender(()=>{const y=h.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:l}=this.props.visualElement;l&&(l.root.didUpdate(),Qc.postRender(()=>{!l.currentAnimation&&l.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:u,switchLayoutGroup:o}=this.props,{projection:c}=l;Wr=!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 y0(a){const[l,u]=a0(),o=X.useContext(Ec);return gn.jsx(N2,{...a,layoutGroup:o,switchLayoutGroup:X.useContext(f0),isPresent:l,safeToRemove:u})}const L2={pan:{Feature:B2},drag:{Feature:U2,ProjectionNode:i0,MeasureLayout:y0}};function Cy(a,l,u){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",u==="Start");const c="onHover"+u,d=o[c];d&&xt.postRender(()=>d(l,Al(l)))}class H2 extends Jn{mount(){const{current:l}=this.node;l&&(this.unmount=ub(l,(u,o)=>(Cy(this.node,o,"Start"),c=>Cy(this.node,c,"End"))))}unmount(){}}class j2 extends Jn{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=Sl(vl(this.node.current,"focus",()=>this.onFocus()),vl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zy(a,l,u){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",u==="Start");const c="onTap"+(u==="End"?"":u),d=o[c];d&&xt.postRender(()=>d(l,Al(l)))}class w2 extends Jn{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:u,propagate:o}=this.node.props;this.unmount=db(l,(c,d)=>(zy(this.node,d,"Start"),(h,{success:y})=>zy(this.node,h,y?"End":"Cancel")),{useGlobalTarget:u,stopPropagation:o?.tap===!1})}unmount(){}}const bc=new WeakMap,Pr=new WeakMap,Y2=a=>{const l=bc.get(a.target);l&&l(a)},q2=a=>{a.forEach(Y2)};function G2({root:a,...l}){const u=a||document;Pr.has(u)||Pr.set(u,{});const o=Pr.get(u),c=JSON.stringify(l);return o[c]||(o[c]=new IntersectionObserver(q2,{root:a,...l})),o[c]}function X2(a,l,u){const o=G2(l);return bc.set(a,u),o.observe(a),()=>{bc.delete(a),o.unobserve(a)}}const Q2={some:0,all:1};class Z2 extends Jn{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:Q2[c]},y=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,d&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:v,onViewportLeave:S}=this.node.getProps(),b=m?v:S;b&&b(g)};return X2(this.node.current,h,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:u}=this.node;["amount","margin","root"].some(K2(l,u))&&this.startObserver()}unmount(){}}function K2({viewport:a={}},{viewport:l={}}={}){return u=>a[u]!==l[u]}const J2={inView:{Feature:Z2},tap:{Feature:w2},focus:{Feature:j2},hover:{Feature:H2}},k2={layout:{ProjectionNode:i0,MeasureLayout:y0}},F2={...v2,...J2,...L2,...k2},eE=d2(F2,m2);export{tE as A,$2 as M,W2 as R,P2 as a,eS as c,Ry as g,gn as j,eE as m,X as r};