fluxy-bot 0.2.19 → 0.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +0,0 @@
1
- function n2(n,i){for(var l=0;l<i.length;l++){const r=i[l];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function ud(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var tf={exports:{}},ol={};var kg;function a2(){if(kg)return ol;kg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:n,type:r,key:d,ref:c!==void 0?c:null,props:f}}return ol.Fragment=i,ol.jsx=l,ol.jsxs=l,ol}var Bg;function i2(){return Bg||(Bg=1,tf.exports=a2()),tf.exports}var y=i2(),ef={exports:{}},ht={};var Hg;function s2(){if(Hg)return ht;Hg=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function A(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,N={};function V(w,Y,J){this.props=w,this.context=Y,this.refs=N,this.updater=J||D}V.prototype.isReactComponent={},V.prototype.setState=function(w,Y){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Y,"setState")},V.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function q(){}q.prototype=V.prototype;function U(w,Y,J){this.props=w,this.context=Y,this.refs=N,this.updater=J||D}var G=U.prototype=new q;G.constructor=U,M(G,V.prototype),G.isPureReactComponent=!0;var P=Array.isArray;function W(){}var Z={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function tt(w,Y,J){var et=J.ref;return{$$typeof:n,type:w,key:Y,ref:et!==void 0?et:null,props:J}}function mt(w,Y){return tt(w.type,Y,w.props)}function St(w){return typeof w=="object"&&w!==null&&w.$$typeof===n}function At(w){var Y={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return Y[J]})}var jt=/\/+/g;function Xt(w,Y){return typeof w=="object"&&w!==null&&w.key!=null?At(""+w.key):Y.toString(36)}function Ct(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(W,W):(w.status="pending",w.then(function(Y){w.status==="pending"&&(w.status="fulfilled",w.value=Y)},function(Y){w.status==="pending"&&(w.status="rejected",w.reason=Y)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function z(w,Y,J,et,I){var rt=typeof w;(rt==="undefined"||rt==="boolean")&&(w=null);var gt=!1;if(w===null)gt=!0;else switch(rt){case"bigint":case"string":case"number":gt=!0;break;case"object":switch(w.$$typeof){case n:case i:gt=!0;break;case v:return gt=w._init,z(gt(w._payload),Y,J,et,I)}}if(gt)return I=I(w),gt=et===""?"."+Xt(w,0):et,P(I)?(J="",gt!=null&&(J=gt.replace(jt,"$&/")+"/"),z(I,Y,J,"",function(oe){return oe})):I!=null&&(St(I)&&(I=mt(I,J+(I.key==null||w&&w.key===I.key?"":(""+I.key).replace(jt,"$&/")+"/")+gt)),Y.push(I)),1;gt=0;var Ht=et===""?".":et+":";if(P(w))for(var ft=0;ft<w.length;ft++)et=w[ft],rt=Ht+Xt(et,ft),gt+=z(et,Y,J,rt,I);else if(ft=A(w),typeof ft=="function")for(w=ft.call(w),ft=0;!(et=w.next()).done;)et=et.value,rt=Ht+Xt(et,ft++),gt+=z(et,Y,J,rt,I);else if(rt==="object"){if(typeof w.then=="function")return z(Ct(w),Y,J,et,I);throw Y=String(w),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return gt}function F(w,Y,J){if(w==null)return w;var et=[],I=0;return z(w,et,"","",function(rt){return Y.call(J,rt,I++)}),et}function $(w){if(w._status===-1){var Y=w._result;Y=Y(),Y.then(function(J){(w._status===0||w._status===-1)&&(w._status=1,w._result=J)},function(J){(w._status===0||w._status===-1)&&(w._status=2,w._result=J)}),w._status===-1&&(w._status=0,w._result=Y)}if(w._status===1)return w._result.default;throw w._result}var dt=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Q={map:F,forEach:function(w,Y,J){F(w,function(){Y.apply(this,arguments)},J)},count:function(w){var Y=0;return F(w,function(){Y++}),Y},toArray:function(w){return F(w,function(Y){return Y})||[]},only:function(w){if(!St(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ht.Activity=b,ht.Children=Q,ht.Component=V,ht.Fragment=l,ht.Profiler=c,ht.PureComponent=U,ht.StrictMode=r,ht.Suspense=g,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ht.__COMPILER_RUNTIME={__proto__:null,c:function(w){return Z.H.useMemoCache(w)}},ht.cache=function(w){return function(){return w.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(w,Y,J){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var et=M({},w.props),I=w.key;if(Y!=null)for(rt in Y.key!==void 0&&(I=""+Y.key),Y)!L.call(Y,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&Y.ref===void 0||(et[rt]=Y[rt]);var rt=arguments.length-2;if(rt===1)et.children=J;else if(1<rt){for(var gt=Array(rt),Ht=0;Ht<rt;Ht++)gt[Ht]=arguments[Ht+2];et.children=gt}return tt(w.type,I,et)},ht.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},ht.createElement=function(w,Y,J){var et,I={},rt=null;if(Y!=null)for(et in Y.key!==void 0&&(rt=""+Y.key),Y)L.call(Y,et)&&et!=="key"&&et!=="__self"&&et!=="__source"&&(I[et]=Y[et]);var gt=arguments.length-2;if(gt===1)I.children=J;else if(1<gt){for(var Ht=Array(gt),ft=0;ft<gt;ft++)Ht[ft]=arguments[ft+2];I.children=Ht}if(w&&w.defaultProps)for(et in gt=w.defaultProps,gt)I[et]===void 0&&(I[et]=gt[et]);return tt(w,rt,I)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(w){return{$$typeof:h,render:w}},ht.isValidElement=St,ht.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:$}},ht.memo=function(w,Y){return{$$typeof:p,type:w,compare:Y===void 0?null:Y}},ht.startTransition=function(w){var Y=Z.T,J={};Z.T=J;try{var et=w(),I=Z.S;I!==null&&I(J,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(W,dt)}catch(rt){dt(rt)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),Z.T=Y}},ht.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ht.use=function(w){return Z.H.use(w)},ht.useActionState=function(w,Y,J){return Z.H.useActionState(w,Y,J)},ht.useCallback=function(w,Y){return Z.H.useCallback(w,Y)},ht.useContext=function(w){return Z.H.useContext(w)},ht.useDebugValue=function(){},ht.useDeferredValue=function(w,Y){return Z.H.useDeferredValue(w,Y)},ht.useEffect=function(w,Y){return Z.H.useEffect(w,Y)},ht.useEffectEvent=function(w){return Z.H.useEffectEvent(w)},ht.useId=function(){return Z.H.useId()},ht.useImperativeHandle=function(w,Y,J){return Z.H.useImperativeHandle(w,Y,J)},ht.useInsertionEffect=function(w,Y){return Z.H.useInsertionEffect(w,Y)},ht.useLayoutEffect=function(w,Y){return Z.H.useLayoutEffect(w,Y)},ht.useMemo=function(w,Y){return Z.H.useMemo(w,Y)},ht.useOptimistic=function(w,Y){return Z.H.useOptimistic(w,Y)},ht.useReducer=function(w,Y,J){return Z.H.useReducer(w,Y,J)},ht.useRef=function(w){return Z.H.useRef(w)},ht.useState=function(w){return Z.H.useState(w)},ht.useSyncExternalStore=function(w,Y,J){return Z.H.useSyncExternalStore(w,Y,J)},ht.useTransition=function(){return Z.H.useTransition()},ht.version="19.2.4",ht}var Gg;function zo(){return Gg||(Gg=1,ef.exports=s2()),ef.exports}var T=zo();const Kn=ud(T),Bv=n2({__proto__:null,default:Kn},[T]);var nf={exports:{}},ul={},af={exports:{}},sf={};var qg;function l2(){return qg||(qg=1,(function(n){function i(z,F){var $=z.length;z.push(F);t:for(;0<$;){var dt=$-1>>>1,Q=z[dt];if(0<c(Q,F))z[dt]=F,z[$]=Q,$=dt;else break t}}function l(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var F=z[0],$=z.pop();if($!==F){z[0]=$;t:for(var dt=0,Q=z.length,w=Q>>>1;dt<w;){var Y=2*(dt+1)-1,J=z[Y],et=Y+1,I=z[et];if(0>c(J,$))et<Q&&0>c(I,J)?(z[dt]=I,z[et]=$,dt=et):(z[dt]=J,z[Y]=$,dt=Y);else if(et<Q&&0>c(I,$))z[dt]=I,z[et]=$,dt=et;else break t}}return F}function c(z,F){var $=z.sortIndex-F.sortIndex;return $!==0?$:z.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var g=[],p=[],v=1,b=null,S=3,A=!1,D=!1,M=!1,N=!1,V=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(z){for(var F=l(p);F!==null;){if(F.callback===null)r(p);else if(F.startTime<=z)r(p),F.sortIndex=F.expirationTime,i(g,F);else break;F=l(p)}}function P(z){if(M=!1,G(z),!D)if(l(g)!==null)D=!0,W||(W=!0,At());else{var F=l(p);F!==null&&Ct(P,F.startTime-z)}}var W=!1,Z=-1,L=5,tt=-1;function mt(){return N?!0:!(n.unstable_now()-tt<L)}function St(){if(N=!1,W){var z=n.unstable_now();tt=z;var F=!0;try{t:{D=!1,M&&(M=!1,q(Z),Z=-1),A=!0;var $=S;try{e:{for(G(z),b=l(g);b!==null&&!(b.expirationTime>z&&mt());){var dt=b.callback;if(typeof dt=="function"){b.callback=null,S=b.priorityLevel;var Q=dt(b.expirationTime<=z);if(z=n.unstable_now(),typeof Q=="function"){b.callback=Q,G(z),F=!0;break e}b===l(g)&&r(g),G(z)}else r(g);b=l(g)}if(b!==null)F=!0;else{var w=l(p);w!==null&&Ct(P,w.startTime-z),F=!1}}break t}finally{b=null,S=$,A=!1}F=void 0}}finally{F?At():W=!1}}}var At;if(typeof U=="function")At=function(){U(St)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Xt=jt.port2;jt.port1.onmessage=St,At=function(){Xt.postMessage(null)}}else At=function(){V(St,0)};function Ct(z,F){Z=V(function(){z(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(z){switch(S){case 1:case 2:case 3:var F=3;break;default:F=S}var $=S;S=F;try{return z()}finally{S=$}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(z,F){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=S;S=z;try{return F()}finally{S=$}},n.unstable_scheduleCallback=function(z,F,$){var dt=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?dt+$:dt):$=dt,z){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=$+Q,z={id:v++,callback:F,priorityLevel:z,startTime:$,expirationTime:Q,sortIndex:-1},$>dt?(z.sortIndex=$,i(p,z),l(g)===null&&z===l(p)&&(M?(q(Z),Z=-1):M=!0,Ct(P,$-dt))):(z.sortIndex=Q,i(g,z),D||A||(D=!0,W||(W=!0,At()))),z},n.unstable_shouldYield=mt,n.unstable_wrapCallback=function(z){var F=S;return function(){var $=S;S=F;try{return z.apply(this,arguments)}finally{S=$}}}})(sf)),sf}var Yg;function r2(){return Yg||(Yg=1,af.exports=l2()),af.exports}var lf={exports:{}},Se={};var Xg;function o2(){if(Xg)return Se;Xg=1;var n=zo();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var r={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:p,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Se.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,v)},Se.flushSync=function(g){var p=d.T,v=r.p;try{if(d.T=null,r.p=2,g)return g()}finally{d.T=p,r.p=v,r.d.f()}},Se.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},Se.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},Se.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,b=h(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,A=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:A}):v==="script"&&r.d.X(g,{crossOrigin:b,integrity:S,fetchPriority:A,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Se.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},Se.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=h(v,p.crossOrigin);r.d.L(g,v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Se.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=h(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},Se.requestFormReset=function(g){r.d.r(g)},Se.unstable_batchedUpdates=function(g,p){return g(p)},Se.useFormState=function(g,p,v){return d.H.useFormState(g,p,v)},Se.useFormStatus=function(){return d.H.useHostTransitionStatus()},Se.version="19.2.4",Se}var Kg;function Hv(){if(Kg)return lf.exports;Kg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),lf.exports=o2(),lf.exports}var Pg;function u2(){if(Pg)return ul;Pg=1;var n=r2(),i=zo(),l=Hv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function d(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(f(t)!==t)throw Error(r(188))}function p(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,s=e;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return g(o),t;if(u===s)return g(o),e;u=u.sibling}throw Error(r(188))}if(a.return!==s.return)a=o,s=u;else{for(var m=!1,x=o.child;x;){if(x===a){m=!0,a=o,s=u;break}if(x===s){m=!0,s=o,a=u;break}x=x.sibling}if(!m){for(x=u.child;x;){if(x===a){m=!0,a=u,s=o;break}if(x===s){m=!0,s=u,a=o;break}x=x.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function v(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=v(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),U=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),tt=Symbol.for("react.activity"),mt=Symbol.for("react.memo_cache_sentinel"),St=Symbol.iterator;function At(t){return t===null||typeof t!="object"?null:(t=St&&t[St]||t["@@iterator"],typeof t=="function"?t:null)}var jt=Symbol.for("react.client.reference");function Xt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case M:return"Fragment";case V:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case W:return"SuspenseList";case tt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case D:return"Portal";case U:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case G:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:Xt(t.type)||"Memo";case L:e=t._payload,t=t._init;try{return Xt(t(e))}catch{}}return null}var Ct=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},dt=[],Q=-1;function w(t){return{current:t}}function Y(t){0>Q||(t.current=dt[Q],dt[Q]=null,Q--)}function J(t,e){Q++,dt[Q]=t.current,t.current=e}var et=w(null),I=w(null),rt=w(null),gt=w(null);function Ht(t,e){switch(J(rt,e),J(I,t),J(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?rg(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=rg(e),t=og(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(et),J(et,t)}function ft(){Y(et),Y(I),Y(rt)}function oe(t){t.memoizedState!==null&&J(gt,t);var e=et.current,a=og(e,t.type);e!==a&&(J(I,t),J(et,a))}function He(t){I.current===t&&(Y(et),Y(I)),gt.current===t&&(Y(gt),il._currentValue=$)}var de,fn;function Ee(t){if(de===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);de=e&&e[1]||"",fn=-1<a.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+de+t+fn}var li=!1;function dn(t,e){if(!t||li)return"";li=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(k){var _=k}Reflect.construct(t,[],K)}else{try{K.call()}catch(k){_=k}t.call(K.prototype)}}else{try{throw Error()}catch(k){_=k}(K=t())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(k){if(k&&_&&typeof k.stack=="string")return[k.stack,_.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),m=u[0],x=u[1];if(m&&x){var E=m.split(`
4
- `),O=x.split(`
5
- `);for(o=s=0;s<E.length&&!E[s].includes("DetermineComponentFrameRoot");)s++;for(;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;if(s===E.length||o===O.length)for(s=E.length-1,o=O.length-1;1<=s&&0<=o&&E[s]!==O[o];)o--;for(;1<=s&&0<=o;s--,o--)if(E[s]!==O[o]){if(s!==1||o!==1)do if(s--,o--,0>o||E[s]!==O[o]){var B=`
6
- `+E[s].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=s&&0<=o);break}}}finally{li=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Ee(a):""}function Ol(t,e){switch(t.tag){case 26:case 27:case 5:return Ee(t.type);case 16:return Ee("Lazy");case 13:return t.child!==e&&e!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return dn(t.type,!1);case 11:return dn(t.type.render,!1);case 1:return dn(t.type,!0);case 31:return Ee("Activity");default:return""}}function hn(t){try{var e="",a=null;do e+=Ol(t,a),a=t,t=t.return;while(t);return e}catch(s){return`
7
- Error generating stack: `+s.message+`
8
- `+s.stack}}var hs=Object.prototype.hasOwnProperty,ja=n.unstable_scheduleCallback,ms=n.unstable_cancelCallback,Yo=n.unstable_shouldYield,zl=n.unstable_requestPaint,It=n.unstable_now,Xo=n.unstable_getCurrentPriorityLevel,ri=n.unstable_ImmediatePriority,_l=n.unstable_UserBlockingPriority,Da=n.unstable_NormalPriority,oi=n.unstable_LowPriority,Ra=n.unstable_IdlePriority,Vl=n.log,Ll=n.unstable_setDisableYieldValue,Zn=null,Kt=null;function $e(t){if(typeof Vl=="function"&&Ll(t),Kt&&typeof Kt.setStrictMode=="function")try{Kt.setStrictMode(Zn,t)}catch{}}var qt=Math.clz32?Math.clz32:wn,Ul=Math.log,ps=Math.LN2;function wn(t){return t>>>=0,t===0?32:31-(Ul(t)/ps|0)|0}var ui=256,ci=262144,fi=4194304;function An(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 di(t,e,a){var s=t.pendingLanes;if(s===0)return 0;var o=0,u=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?o=An(s):(m&=x,m!==0?o=An(m):a||(a=x&~t,a!==0&&(o=An(a))))):(x=s&~u,x!==0?o=An(x):m!==0?o=An(m):a||(a=s&~t,a!==0&&(o=An(a)))),o===0?0:e!==0&&e!==o&&(e&u)===0&&(u=o&-o,a=e&-e,u>=a||u===32&&(a&4194048)!==0)?e:o}function Fn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ko(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 kl(){var t=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),t}function gs(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Oa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Bl(t,e,a,s,o,u){var m=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,E=t.expirationTimes,O=t.hiddenUpdates;for(a=m&~a;0<a;){var B=31-qt(a),K=1<<B;x[B]=0,E[B]=-1;var _=O[B];if(_!==null)for(O[B]=null,B=0;B<_.length;B++){var k=_[B];k!==null&&(k.lane&=-536870913)}a&=~K}s!==0&&ys(t,s,0),u!==0&&o===0&&t.tag!==0&&(t.suspendedLanes|=u&~(m&~e))}function ys(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-qt(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function Hl(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var s=31-qt(a),o=1<<s;o&e|t[s]&e&&(t[s]|=e),a&=~o}}function Qn(t,e){var a=e&-e;return a=(a&42)!==0?1:tn(a),(a&(t.suspendedLanes|e))!==0?0:a}function tn(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 vs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function hi(){var t=F.p;return t!==0?t:(t=window.event,t===void 0?32:Rg(t.type))}function Gl(t,e){var a=F.p;try{return F.p=t,e()}finally{F.p=a}}var xe=Math.random().toString(36).slice(2),$t="__reactFiber$"+xe,H="__reactProps$"+xe,ct="__reactContainer$"+xe,he="__reactEvents$"+xe,Jn="__reactListeners$"+xe,ql="__reactHandles$"+xe,za="__reactResources$"+xe,bs="__reactMarker$"+xe;function Po(t){delete t[$t],delete t[H],delete t[he],delete t[Jn],delete t[ql]}function mi(t){var e=t[$t];if(e)return e;for(var a=t.parentNode;a;){if(e=a[ct]||a[$t]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=pg(t);t!==null;){if(a=t[$t])return a;t=pg(t)}return e}t=a,a=t.parentNode}return null}function pi(t){if(t=t[$t]||t[ct]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function xs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function gi(t){var e=t[za];return e||(e=t[za]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[bs]=!0}var Qd=new Set,Jd={};function _a(t,e){yi(t,e),yi(t+"Capture",e)}function yi(t,e){for(Jd[t]=e,t=0;t<e.length;t++)Qd.add(e[t])}var Zx=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]*$"),Wd={},Id={};function Fx(t){return hs.call(Id,t)?!0:hs.call(Wd,t)?!1:Zx.test(t)?Id[t]=!0:(Wd[t]=!0,!1)}function Yl(t,e,a){if(Fx(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Xl(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function Cn(t,e,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+s)}}function Ge(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $d(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Qx(t,e,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,u=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,u.call(this,m)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Zo(t){if(!t._valueTracker){var e=$d(t)?"checked":"value";t._valueTracker=Qx(t,e,""+t[e])}}function th(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),s="";return t&&(s=$d(t)?t.checked?"true":"false":t.value),t=s,t!==a?(e.setValue(t),!0):!1}function Kl(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 Jx=/[\n"\\]/g;function qe(t){return t.replace(Jx,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Fo(t,e,a,s,o,u,m,x){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ge(e)):t.value!==""+Ge(e)&&(t.value=""+Ge(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?Qo(t,m,Ge(e)):a!=null?Qo(t,m,Ge(a)):s!=null&&t.removeAttribute("value"),o==null&&u!=null&&(t.defaultChecked=!!u),o!=null&&(t.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Ge(x):t.removeAttribute("name")}function eh(t,e,a,s,o,u,m,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Zo(t);return}a=a!=null?""+Ge(a):"",e=e!=null?""+Ge(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Zo(t)}function Qo(t,e,a){e==="number"&&Kl(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function vi(t,e,a,s){if(t=t.options,e){e={};for(var o=0;o<a.length;o++)e["$"+a[o]]=!0;for(a=0;a<t.length;a++)o=e.hasOwnProperty("$"+t[a].value),t[a].selected!==o&&(t[a].selected=o),o&&s&&(t[a].defaultSelected=!0)}else{for(a=""+Ge(a),e=null,o=0;o<t.length;o++){if(t[o].value===a){t[o].selected=!0,s&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function nh(t,e,a){if(e!=null&&(e=""+Ge(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Ge(a):""}function ah(t,e,a,s){if(e==null){if(s!=null){if(a!=null)throw Error(r(92));if(Ct(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),e=a}a=Ge(e),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Zo(t)}function bi(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Wx=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 ih(t,e,a){var s=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,a):typeof a!="number"||a===0||Wx.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function sh(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var o in e)s=e[o],e.hasOwnProperty(o)&&a[o]!==s&&ih(t,o,s)}else for(var u in e)e.hasOwnProperty(u)&&ih(t,u,e[u])}function Jo(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 Ix=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"]]),$x=/^[\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 Pl(t){return $x.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Mn(){}var Wo=null;function Io(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xi=null,Si=null;function lh(t){var e=pi(t);if(e&&(t=e.stateNode)){var a=t[H]||null;t:switch(t=e.stateNode,e.type){case"input":if(Fo(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qe(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var s=a[e];if(s!==t&&s.form===t.form){var o=s[H]||null;if(!o)throw Error(r(90));Fo(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(e=0;e<a.length;e++)s=a[e],s.form===t.form&&th(s)}break t;case"textarea":nh(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&vi(t,!!a.multiple,e,!1)}}}var $o=!1;function rh(t,e,a){if($o)return t(e,a);$o=!0;try{var s=t(e);return s}finally{if($o=!1,(xi!==null||Si!==null)&&(zr(),xi&&(e=xi,t=Si,Si=xi=null,lh(e),t)))for(e=0;e<t.length;e++)lh(t[e])}}function Ss(t,e){var a=t.stateNode;if(a===null)return null;var s=a[H]||null;if(s===null)return null;a=s[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tu=!1;if(Nn)try{var Ts={};Object.defineProperty(Ts,"passive",{get:function(){tu=!0}}),window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{tu=!1}var Wn=null,eu=null,Zl=null;function oh(){if(Zl)return Zl;var t,e=eu,a=e.length,s,o="value"in Wn?Wn.value:Wn.textContent,u=o.length;for(t=0;t<a&&e[t]===o[t];t++);var m=a-t;for(s=1;s<=m&&e[a-s]===o[u-s];s++);return Zl=o.slice(t,1<s?1-s:void 0)}function Fl(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 Ql(){return!0}function uh(){return!1}function Me(t){function e(a,s,o,u,m){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ql:uh,this.isPropagationStopped=uh,this}return b(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),e}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=Me(Va),Es=b({},Va,{view:0,detail:0}),t1=Me(Es),nu,au,ws,Wl=b({},Es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:su,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!==ws&&(ws&&t.type==="mousemove"?(nu=t.screenX-ws.screenX,au=t.screenY-ws.screenY):au=nu=0,ws=t),nu)},movementY:function(t){return"movementY"in t?t.movementY:au}}),ch=Me(Wl),e1=b({},Wl,{dataTransfer:0}),n1=Me(e1),a1=b({},Es,{relatedTarget:0}),iu=Me(a1),i1=b({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),s1=Me(i1),l1=b({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),r1=Me(l1),o1=b({},Va,{data:0}),fh=Me(o1),u1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c1={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"},f1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=f1[t])?!!e[t]:!1}function su(){return d1}var h1=b({},Es,{key:function(t){if(t.key){var e=u1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?c1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:su,charCode:function(t){return t.type==="keypress"?Fl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),m1=Me(h1),p1=b({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dh=Me(p1),g1=b({},Es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:su}),y1=Me(g1),v1=b({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),b1=Me(v1),x1=b({},Wl,{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}),S1=Me(x1),T1=b({},Va,{newState:0,oldState:0}),E1=Me(T1),w1=[9,13,27,32],lu=Nn&&"CompositionEvent"in window,As=null;Nn&&"documentMode"in document&&(As=document.documentMode);var A1=Nn&&"TextEvent"in window&&!As,hh=Nn&&(!lu||As&&8<As&&11>=As),mh=" ",ph=!1;function gh(t,e){switch(t){case"keyup":return w1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ti=!1;function C1(t,e){switch(t){case"compositionend":return yh(e);case"keypress":return e.which!==32?null:(ph=!0,mh);case"textInput":return t=e.data,t===mh&&ph?null:t;default:return null}}function M1(t,e){if(Ti)return t==="compositionend"||!lu&&gh(t,e)?(t=oh(),Zl=eu=Wn=null,Ti=!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 hh&&e.locale!=="ko"?null:e.data;default:return null}}var N1={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 vh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!N1[t.type]:e==="textarea"}function bh(t,e,a,s){xi?Si?Si.push(s):Si=[s]:xi=s,e=Hr(e,"onChange"),0<e.length&&(a=new Jl("onChange","change",null,a,s),t.push({event:a,listeners:e}))}var Cs=null,Ms=null;function j1(t){eg(t,0)}function Il(t){var e=xs(t);if(th(e))return t}function xh(t,e){if(t==="change")return e}var Sh=!1;if(Nn){var ru;if(Nn){var ou="oninput"in document;if(!ou){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),ou=typeof Th.oninput=="function"}ru=ou}else ru=!1;Sh=ru&&(!document.documentMode||9<document.documentMode)}function Eh(){Cs&&(Cs.detachEvent("onpropertychange",wh),Ms=Cs=null)}function wh(t){if(t.propertyName==="value"&&Il(Ms)){var e=[];bh(e,Ms,t,Io(t)),rh(j1,e)}}function D1(t,e,a){t==="focusin"?(Eh(),Cs=e,Ms=a,Cs.attachEvent("onpropertychange",wh)):t==="focusout"&&Eh()}function R1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Il(Ms)}function O1(t,e){if(t==="click")return Il(e)}function z1(t,e){if(t==="input"||t==="change")return Il(e)}function _1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:_1;function Ns(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!hs.call(e,o)||!ze(t[o],e[o]))return!1}return!0}function Ah(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ch(t,e){var a=Ah(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=e&&s>=e)return{node:a,offset:e-t};t=s}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Ah(a)}}function Mh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Mh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Nh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Kl(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Kl(t.document)}return e}function uu(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 V1=Nn&&"documentMode"in document&&11>=document.documentMode,Ei=null,cu=null,js=null,fu=!1;function jh(t,e,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fu||Ei==null||Ei!==Kl(s)||(s=Ei,"selectionStart"in s&&uu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),js&&Ns(js,s)||(js=s,s=Hr(cu,"onSelect"),0<s.length&&(e=new Jl("onSelect","select",null,e,a),t.push({event:e,listeners:s}),e.target=Ei)))}function La(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var wi={animationend:La("Animation","AnimationEnd"),animationiteration:La("Animation","AnimationIteration"),animationstart:La("Animation","AnimationStart"),transitionrun:La("Transition","TransitionRun"),transitionstart:La("Transition","TransitionStart"),transitioncancel:La("Transition","TransitionCancel"),transitionend:La("Transition","TransitionEnd")},du={},Dh={};Nn&&(Dh=document.createElement("div").style,"AnimationEvent"in window||(delete wi.animationend.animation,delete wi.animationiteration.animation,delete wi.animationstart.animation),"TransitionEvent"in window||delete wi.transitionend.transition);function Ua(t){if(du[t])return du[t];if(!wi[t])return t;var e=wi[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Dh)return du[t]=e[a];return t}var Rh=Ua("animationend"),Oh=Ua("animationiteration"),zh=Ua("animationstart"),L1=Ua("transitionrun"),U1=Ua("transitionstart"),k1=Ua("transitioncancel"),_h=Ua("transitionend"),Vh=new Map,hu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");hu.push("scrollEnd");function en(t,e){Vh.set(t,e),_a(e,[t])}var $l=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)},Ye=[],Ai=0,mu=0;function tr(){for(var t=Ai,e=mu=Ai=0;e<t;){var a=Ye[e];Ye[e++]=null;var s=Ye[e];Ye[e++]=null;var o=Ye[e];Ye[e++]=null;var u=Ye[e];if(Ye[e++]=null,s!==null&&o!==null){var m=s.pending;m===null?o.next=o:(o.next=m.next,m.next=o),s.pending=o}u!==0&&Lh(a,o,u)}}function er(t,e,a,s){Ye[Ai++]=t,Ye[Ai++]=e,Ye[Ai++]=a,Ye[Ai++]=s,mu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function pu(t,e,a,s){return er(t,e,a,s),nr(t)}function ka(t,e){return er(t,null,null,e),nr(t)}function Lh(t,e,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var o=!1,u=t.return;u!==null;)u.childLanes|=a,s=u.alternate,s!==null&&(s.childLanes|=a),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(o=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,o&&e!==null&&(o=31-qt(a),t=u.hiddenUpdates,s=t[o],s===null?t[o]=[e]:s.push(e),e.lane=a|536870912),u):null}function nr(t){if(50<Ws)throw Ws=0,wc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ci={};function B1(t,e,a,s){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,a,s){return new B1(t,e,a,s)}function gu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function jn(t,e){var a=t.alternate;return a===null?(a=_e(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Uh(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ar(t,e,a,s,o,u){var m=0;if(s=t,typeof t=="function")gu(t)&&(m=1);else if(typeof t=="string")m=XS(t,a,et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case tt:return t=_e(31,a,e,o),t.elementType=tt,t.lanes=u,t;case M:return Ba(a.children,o,u,e);case N:m=8,o|=24;break;case V:return t=_e(12,a,e,o|2),t.elementType=V,t.lanes=u,t;case P:return t=_e(13,a,e,o),t.elementType=P,t.lanes=u,t;case W:return t=_e(19,a,e,o),t.elementType=W,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case U:m=10;break t;case q:m=9;break t;case G:m=11;break t;case Z:m=14;break t;case L:m=16,s=null;break t}m=29,a=Error(r(130,t===null?"null":typeof t,"")),s=null}return e=_e(m,a,e,o),e.elementType=t,e.type=s,e.lanes=u,e}function Ba(t,e,a,s){return t=_e(7,t,s,e),t.lanes=a,t}function yu(t,e,a){return t=_e(6,t,null,e),t.lanes=a,t}function kh(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function vu(t,e,a){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Bh=new WeakMap;function Xe(t,e){if(typeof t=="object"&&t!==null){var a=Bh.get(t);return a!==void 0?a:(e={value:t,source:e,stack:hn(e)},Bh.set(t,e),e)}return{value:t,source:e,stack:hn(e)}}var Mi=[],Ni=0,ir=null,Ds=0,Ke=[],Pe=0,In=null,mn=1,pn="";function Dn(t,e){Mi[Ni++]=Ds,Mi[Ni++]=ir,ir=t,Ds=e}function Hh(t,e,a){Ke[Pe++]=mn,Ke[Pe++]=pn,Ke[Pe++]=In,In=t;var s=mn;t=pn;var o=32-qt(s)-1;s&=~(1<<o),a+=1;var u=32-qt(e)+o;if(30<u){var m=o-o%5;u=(s&(1<<m)-1).toString(32),s>>=m,o-=m,mn=1<<32-qt(e)+o|a<<o|s,pn=u+t}else mn=1<<u|a<<o|s,pn=t}function bu(t){t.return!==null&&(Dn(t,1),Hh(t,1,0))}function xu(t){for(;t===ir;)ir=Mi[--Ni],Mi[Ni]=null,Ds=Mi[--Ni],Mi[Ni]=null;for(;t===In;)In=Ke[--Pe],Ke[Pe]=null,pn=Ke[--Pe],Ke[Pe]=null,mn=Ke[--Pe],Ke[Pe]=null}function Gh(t,e){Ke[Pe++]=mn,Ke[Pe++]=pn,Ke[Pe++]=In,mn=e.id,pn=e.overflow,In=t}var me=null,kt=null,wt=!1,$n=null,Ze=!1,Su=Error(r(519));function ta(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(Xe(e,t)),Su}function qh(t){var e=t.stateNode,a=t.type,s=t.memoizedProps;switch(e[$t]=t,e[H]=s,a){case"dialog":xt("cancel",e),xt("close",e);break;case"iframe":case"object":case"embed":xt("load",e);break;case"video":case"audio":for(a=0;a<$s.length;a++)xt($s[a],e);break;case"source":xt("error",e);break;case"img":case"image":case"link":xt("error",e),xt("load",e);break;case"details":xt("toggle",e);break;case"input":xt("invalid",e),eh(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":xt("invalid",e);break;case"textarea":xt("invalid",e),ah(e,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||s.suppressHydrationWarning===!0||sg(e.textContent,a)?(s.popover!=null&&(xt("beforetoggle",e),xt("toggle",e)),s.onScroll!=null&&xt("scroll",e),s.onScrollEnd!=null&&xt("scrollend",e),s.onClick!=null&&(e.onclick=Mn),e=!0):e=!1,e||ta(t,!0)}function Yh(t){for(me=t.return;me;)switch(me.tag){case 5:case 31:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:me=me.return}}function ji(t){if(t!==me)return!1;if(!wt)return Yh(t),wt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Bc(t.type,t.memoizedProps)),a=!a),a&&kt&&ta(t),Yh(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));kt=mg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));kt=mg(t)}else e===27?(e=kt,ma(t.type)?(t=Xc,Xc=null,kt=t):kt=e):kt=me?Qe(t.stateNode.nextSibling):null;return!0}function Ha(){kt=me=null,wt=!1}function Tu(){var t=$n;return t!==null&&(Re===null?Re=t:Re.push.apply(Re,t),$n=null),t}function Rs(t){$n===null?$n=[t]:$n.push(t)}var Eu=w(null),Ga=null,Rn=null;function ea(t,e,a){J(Eu,e._currentValue),e._currentValue=a}function On(t){t._currentValue=Eu.current,Y(Eu)}function wu(t,e,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===a)break;t=t.return}}function Au(t,e,a,s){var o=t.child;for(o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;t:for(;u!==null;){var x=u;u=o;for(var E=0;E<e.length;E++)if(x.context===e[E]){u.lanes|=a,x=u.alternate,x!==null&&(x.lanes|=a),wu(u.return,a,t),s||(m=null);break t}u=x.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=a,u=m.alternate,u!==null&&(u.lanes|=a),wu(m,a,t),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===t){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Di(t,e,a,s){t=null;for(var o=e,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=o.type;ze(o.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(o===gt.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(t!==null?t.push(il):t=[il])}o=o.return}t!==null&&Au(e,t,a,s),e.flags|=262144}function sr(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function qa(t){Ga=t,Rn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function pe(t){return Xh(Ga,t)}function lr(t,e){return Ga===null&&qa(t),Xh(t,e)}function Xh(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Rn===null){if(t===null)throw Error(r(308));Rn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Rn=Rn.next=e;return a}var H1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},G1=n.unstable_scheduleCallback,q1=n.unstable_NormalPriority,te={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cu(){return{controller:new H1,data:new Map,refCount:0}}function Os(t){t.refCount--,t.refCount===0&&G1(q1,function(){t.controller.abort()})}var zs=null,Mu=0,Ri=0,Oi=null;function Y1(t,e){if(zs===null){var a=zs=[];Mu=0,Ri=Dc(),Oi={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Mu++,e.then(Kh,Kh),e}function Kh(){if(--Mu===0&&zs!==null){Oi!==null&&(Oi.status="fulfilled");var t=zs;zs=null,Ri=0,Oi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function X1(t,e){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var o=0;o<a.length;o++)(0,a[o])(e)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var Ph=z.S;z.S=function(t,e){jp=It(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Y1(t,e),Ph!==null&&Ph(t,e)};var Ya=w(null);function Nu(){var t=Ya.current;return t!==null?t:Lt.pooledCache}function rr(t,e){e===null?J(Ya,Ya.current):J(Ya,e.pool)}function Zh(){var t=Nu();return t===null?null:{parent:te._currentValue,pool:t}}var zi=Error(r(460)),ju=Error(r(474)),or=Error(r(542)),ur={then:function(){}};function Fh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Qh(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(Mn,Mn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t;default:if(typeof e.status=="string")e.then(Mn,Mn);else{if(t=Lt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var o=e;o.status="fulfilled",o.value=s}},function(s){if(e.status==="pending"){var o=e;o.status="rejected",o.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wh(t),t}throw Ka=e,zi}}function Xa(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ka=a,zi):a}}var Ka=null;function Jh(){if(Ka===null)throw Error(r(459));var t=Ka;return Ka=null,t}function Wh(t){if(t===zi||t===or)throw Error(r(483))}var _i=null,_s=0;function cr(t){var e=_s;return _s+=1,_i===null&&(_i=[]),Qh(_i,t,e)}function Vs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function fr(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ih(t){function e(j,C){if(t){var R=j.deletions;R===null?(j.deletions=[C],j.flags|=16):R.push(C)}}function a(j,C){if(!t)return null;for(;C!==null;)e(j,C),C=C.sibling;return null}function s(j){for(var C=new Map;j!==null;)j.key!==null?C.set(j.key,j):C.set(j.index,j),j=j.sibling;return C}function o(j,C){return j=jn(j,C),j.index=0,j.sibling=null,j}function u(j,C,R){return j.index=R,t?(R=j.alternate,R!==null?(R=R.index,R<C?(j.flags|=67108866,C):R):(j.flags|=67108866,C)):(j.flags|=1048576,C)}function m(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function x(j,C,R,X){return C===null||C.tag!==6?(C=yu(R,j.mode,X),C.return=j,C):(C=o(C,R),C.return=j,C)}function E(j,C,R,X){var ot=R.type;return ot===M?B(j,C,R.props.children,X,R.key):C!==null&&(C.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===L&&Xa(ot)===C.type)?(C=o(C,R.props),Vs(C,R),C.return=j,C):(C=ar(R.type,R.key,R.props,null,j.mode,X),Vs(C,R),C.return=j,C)}function O(j,C,R,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==R.containerInfo||C.stateNode.implementation!==R.implementation?(C=vu(R,j.mode,X),C.return=j,C):(C=o(C,R.children||[]),C.return=j,C)}function B(j,C,R,X,ot){return C===null||C.tag!==7?(C=Ba(R,j.mode,X,ot),C.return=j,C):(C=o(C,R),C.return=j,C)}function K(j,C,R){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=yu(""+C,j.mode,R),C.return=j,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case A:return R=ar(C.type,C.key,C.props,null,j.mode,R),Vs(R,C),R.return=j,R;case D:return C=vu(C,j.mode,R),C.return=j,C;case L:return C=Xa(C),K(j,C,R)}if(Ct(C)||At(C))return C=Ba(C,j.mode,R,null),C.return=j,C;if(typeof C.then=="function")return K(j,cr(C),R);if(C.$$typeof===U)return K(j,lr(j,C),R);fr(j,C)}return null}function _(j,C,R,X){var ot=C!==null?C.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ot!==null?null:x(j,C,""+R,X);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case A:return R.key===ot?E(j,C,R,X):null;case D:return R.key===ot?O(j,C,R,X):null;case L:return R=Xa(R),_(j,C,R,X)}if(Ct(R)||At(R))return ot!==null?null:B(j,C,R,X,null);if(typeof R.then=="function")return _(j,C,cr(R),X);if(R.$$typeof===U)return _(j,C,lr(j,R),X);fr(j,R)}return null}function k(j,C,R,X,ot){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return j=j.get(R)||null,x(C,j,""+X,ot);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case A:return j=j.get(X.key===null?R:X.key)||null,E(C,j,X,ot);case D:return j=j.get(X.key===null?R:X.key)||null,O(C,j,X,ot);case L:return X=Xa(X),k(j,C,R,X,ot)}if(Ct(X)||At(X))return j=j.get(R)||null,B(C,j,X,ot,null);if(typeof X.then=="function")return k(j,C,R,cr(X),ot);if(X.$$typeof===U)return k(j,C,R,lr(C,X),ot);fr(C,X)}return null}function nt(j,C,R,X){for(var ot=null,Mt=null,lt=C,yt=C=0,Et=null;lt!==null&&yt<R.length;yt++){lt.index>yt?(Et=lt,lt=null):Et=lt.sibling;var Nt=_(j,lt,R[yt],X);if(Nt===null){lt===null&&(lt=Et);break}t&&lt&&Nt.alternate===null&&e(j,lt),C=u(Nt,C,yt),Mt===null?ot=Nt:Mt.sibling=Nt,Mt=Nt,lt=Et}if(yt===R.length)return a(j,lt),wt&&Dn(j,yt),ot;if(lt===null){for(;yt<R.length;yt++)lt=K(j,R[yt],X),lt!==null&&(C=u(lt,C,yt),Mt===null?ot=lt:Mt.sibling=lt,Mt=lt);return wt&&Dn(j,yt),ot}for(lt=s(lt);yt<R.length;yt++)Et=k(lt,j,yt,R[yt],X),Et!==null&&(t&&Et.alternate!==null&&lt.delete(Et.key===null?yt:Et.key),C=u(Et,C,yt),Mt===null?ot=Et:Mt.sibling=Et,Mt=Et);return t&&lt.forEach(function(ba){return e(j,ba)}),wt&&Dn(j,yt),ot}function ut(j,C,R,X){if(R==null)throw Error(r(151));for(var ot=null,Mt=null,lt=C,yt=C=0,Et=null,Nt=R.next();lt!==null&&!Nt.done;yt++,Nt=R.next()){lt.index>yt?(Et=lt,lt=null):Et=lt.sibling;var ba=_(j,lt,Nt.value,X);if(ba===null){lt===null&&(lt=Et);break}t&&lt&&ba.alternate===null&&e(j,lt),C=u(ba,C,yt),Mt===null?ot=ba:Mt.sibling=ba,Mt=ba,lt=Et}if(Nt.done)return a(j,lt),wt&&Dn(j,yt),ot;if(lt===null){for(;!Nt.done;yt++,Nt=R.next())Nt=K(j,Nt.value,X),Nt!==null&&(C=u(Nt,C,yt),Mt===null?ot=Nt:Mt.sibling=Nt,Mt=Nt);return wt&&Dn(j,yt),ot}for(lt=s(lt);!Nt.done;yt++,Nt=R.next())Nt=k(lt,j,yt,Nt.value,X),Nt!==null&&(t&&Nt.alternate!==null&&lt.delete(Nt.key===null?yt:Nt.key),C=u(Nt,C,yt),Mt===null?ot=Nt:Mt.sibling=Nt,Mt=Nt);return t&&lt.forEach(function(e2){return e(j,e2)}),wt&&Dn(j,yt),ot}function Vt(j,C,R,X){if(typeof R=="object"&&R!==null&&R.type===M&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case A:t:{for(var ot=R.key;C!==null;){if(C.key===ot){if(ot=R.type,ot===M){if(C.tag===7){a(j,C.sibling),X=o(C,R.props.children),X.return=j,j=X;break t}}else if(C.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===L&&Xa(ot)===C.type){a(j,C.sibling),X=o(C,R.props),Vs(X,R),X.return=j,j=X;break t}a(j,C);break}else e(j,C);C=C.sibling}R.type===M?(X=Ba(R.props.children,j.mode,X,R.key),X.return=j,j=X):(X=ar(R.type,R.key,R.props,null,j.mode,X),Vs(X,R),X.return=j,j=X)}return m(j);case D:t:{for(ot=R.key;C!==null;){if(C.key===ot)if(C.tag===4&&C.stateNode.containerInfo===R.containerInfo&&C.stateNode.implementation===R.implementation){a(j,C.sibling),X=o(C,R.children||[]),X.return=j,j=X;break t}else{a(j,C);break}else e(j,C);C=C.sibling}X=vu(R,j.mode,X),X.return=j,j=X}return m(j);case L:return R=Xa(R),Vt(j,C,R,X)}if(Ct(R))return nt(j,C,R,X);if(At(R)){if(ot=At(R),typeof ot!="function")throw Error(r(150));return R=ot.call(R),ut(j,C,R,X)}if(typeof R.then=="function")return Vt(j,C,cr(R),X);if(R.$$typeof===U)return Vt(j,C,lr(j,R),X);fr(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,C!==null&&C.tag===6?(a(j,C.sibling),X=o(C,R),X.return=j,j=X):(a(j,C),X=yu(R,j.mode,X),X.return=j,j=X),m(j)):a(j,C)}return function(j,C,R,X){try{_s=0;var ot=Vt(j,C,R,X);return _i=null,ot}catch(lt){if(lt===zi||lt===or)throw lt;var Mt=_e(29,lt,null,j.mode);return Mt.lanes=X,Mt.return=j,Mt}}}var Pa=Ih(!0),$h=Ih(!1),na=!1;function Du(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ru(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 aa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ia(t,e,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Dt&2)!==0){var o=s.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),s.pending=e,e=nr(t),Lh(t,null,a),e}return er(t,s,e,a),nr(t)}function Ls(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,Hl(t,a)}}function Ou(t,e){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,a=a.next}while(a!==null);u===null?o=u=e:u=u.next=e}else o=u=e;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var zu=!1;function Us(){if(zu){var t=Oi;if(t!==null)throw t}}function ks(t,e,a,s){zu=!1;var o=t.updateQueue;na=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var E=x,O=E.next;E.next=null,m===null?u=O:m.next=O,m=E;var B=t.alternate;B!==null&&(B=B.updateQueue,x=B.lastBaseUpdate,x!==m&&(x===null?B.firstBaseUpdate=O:x.next=O,B.lastBaseUpdate=E))}if(u!==null){var K=o.baseState;m=0,B=O=E=null,x=u;do{var _=x.lane&-536870913,k=_!==x.lane;if(k?(Tt&_)===_:(s&_)===_){_!==0&&_===Ri&&(zu=!0),B!==null&&(B=B.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var nt=t,ut=x;_=e;var Vt=a;switch(ut.tag){case 1:if(nt=ut.payload,typeof nt=="function"){K=nt.call(Vt,K,_);break t}K=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ut.payload,_=typeof nt=="function"?nt.call(Vt,K,_):nt,_==null)break t;K=b({},K,_);break t;case 2:na=!0}}_=x.callback,_!==null&&(t.flags|=64,k&&(t.flags|=8192),k=o.callbacks,k===null?o.callbacks=[_]:k.push(_))}else k={lane:_,tag:x.tag,payload:x.payload,callback:x.callback,next:null},B===null?(O=B=k,E=K):B=B.next=k,m|=_;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;k=x,x=k.next,k.next=null,o.lastBaseUpdate=k,o.shared.pending=null}}while(!0);B===null&&(E=K),o.baseState=E,o.firstBaseUpdate=O,o.lastBaseUpdate=B,u===null&&(o.shared.lanes=0),ua|=m,t.lanes=m,t.memoizedState=K}}function tm(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function em(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)tm(a[t],e)}var Vi=w(null),dr=w(0);function nm(t,e){t=Gn,J(dr,t),J(Vi,e),Gn=t|e.baseLanes}function _u(){J(dr,Gn),J(Vi,Vi.current)}function Vu(){Gn=dr.current,Y(Vi),Y(dr)}var Ve=w(null),Fe=null;function sa(t){var e=t.alternate;J(Jt,Jt.current&1),J(Ve,t),Fe===null&&(e===null||Vi.current!==null||e.memoizedState!==null)&&(Fe=t)}function Lu(t){J(Jt,Jt.current),J(Ve,t),Fe===null&&(Fe=t)}function am(t){t.tag===22?(J(Jt,Jt.current),J(Ve,t),Fe===null&&(Fe=t)):la()}function la(){J(Jt,Jt.current),J(Ve,Ve.current)}function Le(t){Y(Ve),Fe===t&&(Fe=null),Y(Jt)}var Jt=w(0);function hr(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||qc(a)||Yc(a)))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 zn=0,pt=null,zt=null,ee=null,mr=!1,Li=!1,Za=!1,pr=0,Bs=0,Ui=null,K1=0;function Pt(){throw Error(r(321))}function Uu(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!ze(t[a],e[a]))return!1;return!0}function ku(t,e,a,s,o,u){return zn=u,pt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Hm:$u,Za=!1,u=a(s,o),Za=!1,Li&&(u=sm(e,a,s,o)),im(t),u}function im(t){z.H=qs;var e=zt!==null&&zt.next!==null;if(zn=0,ee=zt=pt=null,mr=!1,Bs=0,Ui=null,e)throw Error(r(300));t===null||ne||(t=t.dependencies,t!==null&&sr(t)&&(ne=!0))}function sm(t,e,a,s){pt=t;var o=0;do{if(Li&&(Ui=null),Bs=0,Li=!1,25<=o)throw Error(r(301));if(o+=1,ee=zt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=Gm,u=e(a,s)}while(Li);return u}function P1(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?Hs(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(pt.flags|=1024),e}function Bu(){var t=pr!==0;return pr=0,t}function Hu(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Gu(t){if(mr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}mr=!1}zn=0,ee=zt=pt=null,Li=!1,Bs=pr=0,Ui=null}function we(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ee===null?pt.memoizedState=ee=t:ee=ee.next=t,ee}function Wt(){if(zt===null){var t=pt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=ee===null?pt.memoizedState:ee.next;if(e!==null)ee=e,zt=t;else{if(t===null)throw pt.alternate===null?Error(r(467)):Error(r(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},ee===null?pt.memoizedState=ee=t:ee=ee.next=t}return ee}function gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hs(t){var e=Bs;return Bs+=1,Ui===null&&(Ui=[]),t=Qh(Ui,t,e),e=pt,(ee===null?e.memoizedState:ee.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Hm:$u),t}function yr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Hs(t);if(t.$$typeof===U)return pe(t)}throw Error(r(438,String(t)))}function qu(t){var e=null,a=pt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var s=pt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(o){return o.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=gr(),pt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),s=0;s<t;s++)a[s]=mt;return e.index++,a}function _n(t,e){return typeof e=="function"?e(t):e}function vr(t){var e=Wt();return Yu(e,zt,t)}function Yu(t,e,a){var s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var o=t.baseQueue,u=s.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}e.baseQueue=o=u,s.pending=null}if(u=t.baseState,o===null)t.memoizedState=u;else{e=o.next;var x=m=null,E=null,O=e,B=!1;do{var K=O.lane&-536870913;if(K!==O.lane?(Tt&K)===K:(zn&K)===K){var _=O.revertLane;if(_===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),K===Ri&&(B=!0);else if((zn&_)===_){O=O.next,_===Ri&&(B=!0);continue}else K={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(x=E=K,m=u):E=E.next=K,pt.lanes|=_,ua|=_;K=O.action,Za&&a(u,K),u=O.hasEagerState?O.eagerState:a(u,K)}else _={lane:K,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(x=E=_,m=u):E=E.next=_,pt.lanes|=K,ua|=K;O=O.next}while(O!==null&&O!==e);if(E===null?m=u:E.next=x,!ze(u,t.memoizedState)&&(ne=!0,B&&(a=Oi,a!==null)))throw a;t.memoizedState=u,t.baseState=m,t.baseQueue=E,s.lastRenderedState=u}return o===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Xu(t){var e=Wt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var s=a.dispatch,o=a.pending,u=e.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do u=t(u,m.action),m=m.next;while(m!==o);ze(u,e.memoizedState)||(ne=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),a.lastRenderedState=u}return[u,s]}function lm(t,e,a){var s=pt,o=Wt(),u=wt;if(u){if(a===void 0)throw Error(r(407));a=a()}else a=e();var m=!ze((zt||o).memoizedState,a);if(m&&(o.memoizedState=a,ne=!0),o=o.queue,Zu(um.bind(null,s,o,t),[t]),o.getSnapshot!==e||m||ee!==null&&ee.memoizedState.tag&1){if(s.flags|=2048,ki(9,{destroy:void 0},om.bind(null,s,o,a,e),null),Lt===null)throw Error(r(349));u||(zn&127)!==0||rm(s,e,a)}return a}function rm(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=pt.updateQueue,e===null?(e=gr(),pt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function om(t,e,a,s){e.value=a,e.getSnapshot=s,cm(e)&&fm(t)}function um(t,e,a){return a(function(){cm(e)&&fm(t)})}function cm(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ze(t,a)}catch{return!0}}function fm(t){var e=ka(t,2);e!==null&&Oe(e,t,2)}function Ku(t){var e=we();if(typeof t=="function"){var a=t;if(t=a(),Za){$e(!0);try{a()}finally{$e(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:t},e}function dm(t,e,a,s){return t.baseState=a,Yu(t,zt,typeof s=="function"?s:_n)}function Z1(t,e,a,s,o){if(Sr(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:o,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};z.T!==null?a(!0):u.isTransition=!1,s(u),a=e.pending,a===null?(u.next=e.pending=u,hm(e,u)):(u.next=a.next,e.pending=a.next=u)}}function hm(t,e){var a=e.action,s=e.payload,o=t.state;if(e.isTransition){var u=z.T,m={};z.T=m;try{var x=a(o,s),E=z.S;E!==null&&E(m,x),mm(t,e,x)}catch(O){Pu(t,e,O)}finally{u!==null&&m.types!==null&&(u.types=m.types),z.T=u}}else try{u=a(o,s),mm(t,e,u)}catch(O){Pu(t,e,O)}}function mm(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){pm(t,e,s)},function(s){return Pu(t,e,s)}):pm(t,e,a)}function pm(t,e,a){e.status="fulfilled",e.value=a,gm(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,hm(t,a)))}function Pu(t,e,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=a,gm(e),e=e.next;while(e!==s)}t.action=null}function gm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ym(t,e){return e}function vm(t,e){if(wt){var a=Lt.formState;if(a!==null){t:{var s=pt;if(wt){if(kt){e:{for(var o=kt,u=Ze;o.nodeType!==8;){if(!u){o=null;break e}if(o=Qe(o.nextSibling),o===null){o=null;break e}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){kt=Qe(o.nextSibling),s=o.data==="F!";break t}}ta(s)}s=!1}s&&(e=a[0])}}return a=we(),a.memoizedState=a.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ym,lastRenderedState:e},a.queue=s,a=Um.bind(null,pt,s),s.dispatch=a,s=Ku(!1),u=Iu.bind(null,pt,!1,s.queue),s=we(),o={state:e,dispatch:null,action:t,pending:null},s.queue=o,a=Z1.bind(null,pt,o,u,a),o.dispatch=a,s.memoizedState=t,[e,a,!1]}function bm(t){var e=Wt();return xm(e,zt,t)}function xm(t,e,a){if(e=Yu(t,e,ym)[0],t=vr(_n)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=Hs(e)}catch(m){throw m===zi?or:m}else s=e;e=Wt();var o=e.queue,u=o.dispatch;return a!==e.memoizedState&&(pt.flags|=2048,ki(9,{destroy:void 0},F1.bind(null,o,a),null)),[s,u,t]}function F1(t,e){t.action=e}function Sm(t){var e=Wt(),a=zt;if(a!==null)return xm(e,a,t);Wt(),e=e.memoizedState,a=Wt();var s=a.queue.dispatch;return a.memoizedState=t,[e,s,!1]}function ki(t,e,a,s){return t={tag:t,create:a,deps:s,inst:e,next:null},e=pt.updateQueue,e===null&&(e=gr(),pt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,e.lastEffect=t),t}function Tm(){return Wt().memoizedState}function br(t,e,a,s){var o=we();pt.flags|=t,o.memoizedState=ki(1|e,{destroy:void 0},a,s===void 0?null:s)}function xr(t,e,a,s){var o=Wt();s=s===void 0?null:s;var u=o.memoizedState.inst;zt!==null&&s!==null&&Uu(s,zt.memoizedState.deps)?o.memoizedState=ki(e,u,a,s):(pt.flags|=t,o.memoizedState=ki(1|e,u,a,s))}function Em(t,e){br(8390656,8,t,e)}function Zu(t,e){xr(2048,8,t,e)}function Q1(t){pt.flags|=4;var e=pt.updateQueue;if(e===null)e=gr(),pt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function wm(t){var e=Wt().memoizedState;return Q1({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Am(t,e){return xr(4,2,t,e)}function Cm(t,e){return xr(4,4,t,e)}function Mm(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Nm(t,e,a){a=a!=null?a.concat([t]):null,xr(4,4,Mm.bind(null,e,t),a)}function Fu(){}function jm(t,e){var a=Wt();e=e===void 0?null:e;var s=a.memoizedState;return e!==null&&Uu(e,s[1])?s[0]:(a.memoizedState=[t,e],t)}function Dm(t,e){var a=Wt();e=e===void 0?null:e;var s=a.memoizedState;if(e!==null&&Uu(e,s[1]))return s[0];if(s=t(),Za){$e(!0);try{t()}finally{$e(!1)}}return a.memoizedState=[s,e],s}function Qu(t,e,a){return a===void 0||(zn&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Rp(),pt.lanes|=t,ua|=t,a)}function Rm(t,e,a,s){return ze(a,e)?a:Vi.current!==null?(t=Qu(t,a,s),ze(t,e)||(ne=!0),t):(zn&42)===0||(zn&1073741824)!==0&&(Tt&261930)===0?(ne=!0,t.memoizedState=a):(t=Rp(),pt.lanes|=t,ua|=t,e)}function Om(t,e,a,s,o){var u=F.p;F.p=u!==0&&8>u?u:8;var m=z.T,x={};z.T=x,Iu(t,!1,e,a);try{var E=o(),O=z.S;if(O!==null&&O(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=X1(E,s);Gs(t,e,B,Be(t))}else Gs(t,e,s,Be(t))}catch(K){Gs(t,e,{then:function(){},status:"rejected",reason:K},Be())}finally{F.p=u,m!==null&&x.types!==null&&(m.types=x.types),z.T=m}}function J1(){}function Ju(t,e,a,s){if(t.tag!==5)throw Error(r(476));var o=zm(t).queue;Om(t,o,e,$,a===null?J1:function(){return _m(t),a(s)})}function zm(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:$},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function _m(t){var e=zm(t);e.next===null&&(e=t.alternate.memoizedState),Gs(t,e.next.queue,{},Be())}function Wu(){return pe(il)}function Vm(){return Wt().memoizedState}function Lm(){return Wt().memoizedState}function W1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Be();t=aa(a);var s=ia(e,t,a);s!==null&&(Oe(s,e,a),Ls(s,e,a)),e={cache:Cu()},t.payload=e;return}e=e.return}}function I1(t,e,a){var s=Be();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Sr(t)?km(e,a):(a=pu(t,e,a,s),a!==null&&(Oe(a,t,s),Bm(a,e,s)))}function Um(t,e,a){var s=Be();Gs(t,e,a,s)}function Gs(t,e,a,s){var o={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Sr(t))km(e,o);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var m=e.lastRenderedState,x=u(m,a);if(o.hasEagerState=!0,o.eagerState=x,ze(x,m))return er(t,e,o,0),Lt===null&&tr(),!1}catch{}if(a=pu(t,e,o,s),a!==null)return Oe(a,t,s),Bm(a,e,s),!0}return!1}function Iu(t,e,a,s){if(s={lane:2,revertLane:Dc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Sr(t)){if(e)throw Error(r(479))}else e=pu(t,a,s,2),e!==null&&Oe(e,t,2)}function Sr(t){var e=t.alternate;return t===pt||e!==null&&e===pt}function km(t,e){Li=mr=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Bm(t,e,a){if((a&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,Hl(t,a)}}var qs={readContext:pe,use:yr,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};qs.useEffectEvent=Pt;var Hm={readContext:pe,use:yr,useCallback:function(t,e){return we().memoizedState=[t,e===void 0?null:e],t},useContext:pe,useEffect:Em,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,br(4194308,4,Mm.bind(null,e,t),a)},useLayoutEffect:function(t,e){return br(4194308,4,t,e)},useInsertionEffect:function(t,e){br(4,2,t,e)},useMemo:function(t,e){var a=we();e=e===void 0?null:e;var s=t();if(Za){$e(!0);try{t()}finally{$e(!1)}}return a.memoizedState=[s,e],s},useReducer:function(t,e,a){var s=we();if(a!==void 0){var o=a(e);if(Za){$e(!0);try{a(e)}finally{$e(!1)}}}else o=e;return s.memoizedState=s.baseState=o,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:o},s.queue=t,t=t.dispatch=I1.bind(null,pt,t),[s.memoizedState,t]},useRef:function(t){var e=we();return t={current:t},e.memoizedState=t},useState:function(t){t=Ku(t);var e=t.queue,a=Um.bind(null,pt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(t,e){var a=we();return Qu(a,t,e)},useTransition:function(){var t=Ku(!1);return t=Om.bind(null,pt,t.queue,!0,!1),we().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var s=pt,o=we();if(wt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Lt===null)throw Error(r(349));(Tt&127)!==0||rm(s,e,a)}o.memoizedState=a;var u={value:a,getSnapshot:e};return o.queue=u,Em(um.bind(null,s,u,t),[t]),s.flags|=2048,ki(9,{destroy:void 0},om.bind(null,s,u,a,e),null),a},useId:function(){var t=we(),e=Lt.identifierPrefix;if(wt){var a=pn,s=mn;a=(s&~(1<<32-qt(s)-1)).toString(32)+a,e="_"+e+"R_"+a,a=pr++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=K1++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Wu,useFormState:vm,useActionState:vm,useOptimistic:function(t){var e=we();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Iu.bind(null,pt,!0,a),a.dispatch=e,[t,e]},useMemoCache:qu,useCacheRefresh:function(){return we().memoizedState=W1.bind(null,pt)},useEffectEvent:function(t){var e=we(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},$u={readContext:pe,use:yr,useCallback:jm,useContext:pe,useEffect:Zu,useImperativeHandle:Nm,useInsertionEffect:Am,useLayoutEffect:Cm,useMemo:Dm,useReducer:vr,useRef:Tm,useState:function(){return vr(_n)},useDebugValue:Fu,useDeferredValue:function(t,e){var a=Wt();return Rm(a,zt.memoizedState,t,e)},useTransition:function(){var t=vr(_n)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:Hs(t),e]},useSyncExternalStore:lm,useId:Vm,useHostTransitionStatus:Wu,useFormState:bm,useActionState:bm,useOptimistic:function(t,e){var a=Wt();return dm(a,zt,t,e)},useMemoCache:qu,useCacheRefresh:Lm};$u.useEffectEvent=wm;var Gm={readContext:pe,use:yr,useCallback:jm,useContext:pe,useEffect:Zu,useImperativeHandle:Nm,useInsertionEffect:Am,useLayoutEffect:Cm,useMemo:Dm,useReducer:Xu,useRef:Tm,useState:function(){return Xu(_n)},useDebugValue:Fu,useDeferredValue:function(t,e){var a=Wt();return zt===null?Qu(a,t,e):Rm(a,zt.memoizedState,t,e)},useTransition:function(){var t=Xu(_n)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:Hs(t),e]},useSyncExternalStore:lm,useId:Vm,useHostTransitionStatus:Wu,useFormState:Sm,useActionState:Sm,useOptimistic:function(t,e){var a=Wt();return zt!==null?dm(a,zt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:qu,useCacheRefresh:Lm};Gm.useEffectEvent=wm;function tc(t,e,a,s){e=t.memoizedState,a=a(s,e),a=a==null?e:b({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var ec={enqueueSetState:function(t,e,a){t=t._reactInternals;var s=Be(),o=aa(s);o.payload=e,a!=null&&(o.callback=a),e=ia(t,o,s),e!==null&&(Oe(e,t,s),Ls(e,t,s))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var s=Be(),o=aa(s);o.tag=1,o.payload=e,a!=null&&(o.callback=a),e=ia(t,o,s),e!==null&&(Oe(e,t,s),Ls(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Be(),s=aa(a);s.tag=2,e!=null&&(s.callback=e),e=ia(t,s,a),e!==null&&(Oe(e,t,a),Ls(e,t,a))}};function qm(t,e,a,s,o,u,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,u,m):e.prototype&&e.prototype.isPureReactComponent?!Ns(a,s)||!Ns(o,u):!0}function Ym(t,e,a,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,s),e.state!==t&&ec.enqueueReplaceState(e,e.state,null)}function Fa(t,e){var a=e;if("ref"in e){a={};for(var s in e)s!=="ref"&&(a[s]=e[s])}if(t=t.defaultProps){a===e&&(a=b({},a));for(var o in t)a[o]===void 0&&(a[o]=t[o])}return a}function Xm(t){$l(t)}function Km(t){console.error(t)}function Pm(t){$l(t)}function Tr(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function Zm(t,e,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function nc(t,e,a){return a=aa(a),a.tag=3,a.payload={element:null},a.callback=function(){Tr(t,e)},a}function Fm(t){return t=aa(t),t.tag=3,t}function Qm(t,e,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=s.value;t.payload=function(){return o(u)},t.callback=function(){Zm(e,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Zm(e,a,s),typeof o!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function $1(t,e,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=a.alternate,e!==null&&Di(e,a,o,!0),a=Ve.current,a!==null){switch(a.tag){case 31:case 13:return Fe===null?_r():a.alternate===null&&Zt===0&&(Zt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===ur?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([s]):e.add(s),Mc(t,s,o)),!1;case 22:return a.flags|=65536,s===ur?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([s]):a.add(s)),Mc(t,s,o)),!1}throw Error(r(435,a.tag))}return Mc(t,s,o),_r(),!1}if(wt)return e=Ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,s!==Su&&(t=Error(r(422),{cause:s}),Rs(Xe(t,a)))):(s!==Su&&(e=Error(r(423),{cause:s}),Rs(Xe(e,a))),t=t.current.alternate,t.flags|=65536,o&=-o,t.lanes|=o,s=Xe(s,a),o=nc(t.stateNode,s,o),Ou(t,o),Zt!==4&&(Zt=2)),!1;var u=Error(r(520),{cause:s});if(u=Xe(u,a),Js===null?Js=[u]:Js.push(u),Zt!==4&&(Zt=2),e===null)return!0;s=Xe(s,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=o&-o,a.lanes|=t,t=nc(a.stateNode,s,t),Ou(a,t),!1;case 1:if(e=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ca===null||!ca.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Fm(o),Qm(o,t,a,s),Ou(a,o),!1}a=a.return}while(a!==null);return!1}var ac=Error(r(461)),ne=!1;function ge(t,e,a,s){e.child=t===null?$h(e,null,a,s):Pa(e,t.child,a,s)}function Jm(t,e,a,s,o){a=a.render;var u=e.ref;if("ref"in s){var m={};for(var x in s)x!=="ref"&&(m[x]=s[x])}else m=s;return qa(e),s=ku(t,e,a,m,u,o),x=Bu(),t!==null&&!ne?(Hu(t,e,o),Vn(t,e,o)):(wt&&x&&bu(e),e.flags|=1,ge(t,e,s,o),e.child)}function Wm(t,e,a,s,o){if(t===null){var u=a.type;return typeof u=="function"&&!gu(u)&&u.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=u,Im(t,e,u,s,o)):(t=ar(a.type,null,s,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!fc(t,o)){var m=u.memoizedProps;if(a=a.compare,a=a!==null?a:Ns,a(m,s)&&t.ref===e.ref)return Vn(t,e,o)}return e.flags|=1,t=jn(u,s),t.ref=e.ref,t.return=e,e.child=t}function Im(t,e,a,s,o){if(t!==null){var u=t.memoizedProps;if(Ns(u,s)&&t.ref===e.ref)if(ne=!1,e.pendingProps=s=u,fc(t,o))(t.flags&131072)!==0&&(ne=!0);else return e.lanes=t.lanes,Vn(t,e,o)}return ic(t,e,a,s,o)}function $m(t,e,a,s){var o=s.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,t!==null){for(s=e.child=t.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~u}else s=0,e.child=null;return tp(t,e,u,a,s)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&rr(e,u!==null?u.cachePool:null),u!==null?nm(e,u):_u(),am(e);else return s=e.lanes=536870912,tp(t,e,u!==null?u.baseLanes|a:a,a,s)}else u!==null?(rr(e,u.cachePool),nm(e,u),la(),e.memoizedState=null):(t!==null&&rr(e,null),_u(),la());return ge(t,e,o,a),e.child}function Ys(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function tp(t,e,a,s,o){var u=Nu();return u=u===null?null:{parent:te._currentValue,pool:u},e.memoizedState={baseLanes:a,cachePool:u},t!==null&&rr(e,null),_u(),am(e),t!==null&&Di(t,e,s,!0),e.childLanes=o,null}function Er(t,e){return e=Ar({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ep(t,e,a){return Pa(e,t.child,null,a),t=Er(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function tS(t,e,a){var s=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(wt){if(s.mode==="hidden")return t=Er(e,s),e.lanes=536870912,Ys(null,t);if(Lu(e),(t=kt)?(t=hg(t,Ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:In!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},a=kh(t),a.return=e,e.child=a,me=e,kt=null)):t=null,t===null)throw ta(e);return e.lanes=536870912,null}return Er(e,s)}var u=t.memoizedState;if(u!==null){var m=u.dehydrated;if(Lu(e),o)if(e.flags&256)e.flags&=-257,e=ep(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ne||Di(t,e,a,!1),o=(a&t.childLanes)!==0,ne||o){if(s=Lt,s!==null&&(m=Qn(s,a),m!==0&&m!==u.retryLane))throw u.retryLane=m,ka(t,m),Oe(s,t,m),ac;_r(),e=ep(t,e,a)}else t=u.treeContext,kt=Qe(m.nextSibling),me=e,wt=!0,$n=null,Ze=!1,t!==null&&Gh(e,t),e=Er(e,s),e.flags|=4096;return e}return t=jn(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function wr(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function ic(t,e,a,s,o){return qa(e),a=ku(t,e,a,s,void 0,o),s=Bu(),t!==null&&!ne?(Hu(t,e,o),Vn(t,e,o)):(wt&&s&&bu(e),e.flags|=1,ge(t,e,a,o),e.child)}function np(t,e,a,s,o,u){return qa(e),e.updateQueue=null,a=sm(e,s,a,o),im(t),s=Bu(),t!==null&&!ne?(Hu(t,e,u),Vn(t,e,u)):(wt&&s&&bu(e),e.flags|=1,ge(t,e,a,u),e.child)}function ap(t,e,a,s,o){if(qa(e),e.stateNode===null){var u=Ci,m=a.contextType;typeof m=="object"&&m!==null&&(u=pe(m)),u=new a(s,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ec,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Du(e),m=a.contextType,u.context=typeof m=="object"&&m!==null?pe(m):Ci,u.state=e.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(tc(e,a,m,s),u.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&ec.enqueueReplaceState(u,u.state,null),ks(e,s,u,o),Us(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){u=e.stateNode;var x=e.memoizedProps,E=Fa(a,x);u.props=E;var O=u.context,B=a.contextType;m=Ci,typeof B=="object"&&B!==null&&(m=pe(B));var K=a.getDerivedStateFromProps;B=typeof K=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,B||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||O!==m)&&Ym(e,u,s,m),na=!1;var _=e.memoizedState;u.state=_,ks(e,s,u,o),Us(),O=e.memoizedState,x||_!==O||na?(typeof K=="function"&&(tc(e,a,K,s),O=e.memoizedState),(E=na||qm(e,a,E,s,_,O,m))?(B||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=O),u.props=s,u.state=O,u.context=m,s=E):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Ru(t,e),m=e.memoizedProps,B=Fa(a,m),u.props=B,K=e.pendingProps,_=u.context,O=a.contextType,E=Ci,typeof O=="object"&&O!==null&&(E=pe(O)),x=a.getDerivedStateFromProps,(O=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==K||_!==E)&&Ym(e,u,s,E),na=!1,_=e.memoizedState,u.state=_,ks(e,s,u,o),Us();var k=e.memoizedState;m!==K||_!==k||na||t!==null&&t.dependencies!==null&&sr(t.dependencies)?(typeof x=="function"&&(tc(e,a,x,s),k=e.memoizedState),(B=na||qm(e,a,B,s,_,k,E)||t!==null&&t.dependencies!==null&&sr(t.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,k,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,k,E)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=k),u.props=s,u.state=k,u.context=E,s=B):(typeof u.componentDidUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,wr(t,e),s=(e.flags&128)!==0,u||s?(u=e.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&s?(e.child=Pa(e,t.child,null,o),e.child=Pa(e,null,a,o)):ge(t,e,a,o),e.memoizedState=u.state,t=e.child):t=Vn(t,e,o),t}function ip(t,e,a,s){return Ha(),e.flags|=256,ge(t,e,a,s),e.child}var sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(t){return{baseLanes:t,cachePool:Zh()}}function rc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ke),t}function sp(t,e,a){var s=e.pendingProps,o=!1,u=(e.flags&128)!==0,m;if((m=u)||(m=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),m&&(o=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(o?sa(e):la(),(t=kt)?(t=hg(t,Ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:In!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},a=kh(t),a.return=e,e.child=a,me=e,kt=null)):t=null,t===null)throw ta(e);return Yc(t)?e.lanes=32:e.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(la(),o=e.mode,x=Ar({mode:"hidden",children:x},o),s=Ba(s,o,a,null),x.return=e,s.return=e,x.sibling=s,e.child=x,s=e.child,s.memoizedState=lc(a),s.childLanes=rc(t,m,a),e.memoizedState=sc,Ys(null,s)):(sa(e),oc(e,x))}var E=t.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(u)e.flags&256?(sa(e),e.flags&=-257,e=uc(t,e,a)):e.memoizedState!==null?(la(),e.child=t.child,e.flags|=128,e=null):(la(),x=s.fallback,o=e.mode,s=Ar({mode:"visible",children:s.children},o),x=Ba(x,o,a,null),x.flags|=2,s.return=e,x.return=e,s.sibling=x,e.child=s,Pa(e,t.child,null,a),s=e.child,s.memoizedState=lc(a),s.childLanes=rc(t,m,a),e.memoizedState=sc,e=Ys(null,s));else if(sa(e),Yc(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var O=m.dgst;m=O,s=Error(r(419)),s.stack="",s.digest=m,Rs({value:s,source:null,stack:null}),e=uc(t,e,a)}else if(ne||Di(t,e,a,!1),m=(a&t.childLanes)!==0,ne||m){if(m=Lt,m!==null&&(s=Qn(m,a),s!==0&&s!==E.retryLane))throw E.retryLane=s,ka(t,s),Oe(m,t,s),ac;qc(x)||_r(),e=uc(t,e,a)}else qc(x)?(e.flags|=192,e.child=t.child,e=null):(t=E.treeContext,kt=Qe(x.nextSibling),me=e,wt=!0,$n=null,Ze=!1,t!==null&&Gh(e,t),e=oc(e,s.children),e.flags|=4096);return e}return o?(la(),x=s.fallback,o=e.mode,E=t.child,O=E.sibling,s=jn(E,{mode:"hidden",children:s.children}),s.subtreeFlags=E.subtreeFlags&65011712,O!==null?x=jn(O,x):(x=Ba(x,o,a,null),x.flags|=2),x.return=e,s.return=e,s.sibling=x,e.child=s,Ys(null,s),s=e.child,x=t.child.memoizedState,x===null?x=lc(a):(o=x.cachePool,o!==null?(E=te._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=Zh(),x={baseLanes:x.baseLanes|a,cachePool:o}),s.memoizedState=x,s.childLanes=rc(t,m,a),e.memoizedState=sc,Ys(t.child,s)):(sa(e),a=t.child,t=a.sibling,a=jn(a,{mode:"visible",children:s.children}),a.return=e,a.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=a,e.memoizedState=null,a)}function oc(t,e){return e=Ar({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ar(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function uc(t,e,a){return Pa(e,t.child,null,a),t=oc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lp(t,e,a){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),wu(t.return,e,a)}function cc(t,e,a,s,o,u){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o,treeForkCount:u}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=o,m.treeForkCount=u)}function rp(t,e,a){var s=e.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var m=Jt.current,x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,J(Jt,m),ge(t,e,s,a),s=wt?Ds:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&lp(t,a,e);else if(t.tag===19)lp(t,a,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(o){case"forwards":for(a=e.child,o=null;a!==null;)t=a.alternate,t!==null&&hr(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),cc(e,!1,o,a,u,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&hr(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}cc(e,!0,a,null,u,s);break;case"together":cc(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function Vn(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),ua|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Di(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=jn(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=jn(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function fc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&sr(t)))}function eS(t,e,a){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),ea(e,te,t.memoizedState.cache),Ha();break;case 27:case 5:oe(e);break;case 4:Ht(e,e.stateNode.containerInfo);break;case 10:ea(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Lu(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(sa(e),e.flags|=128,null):(a&e.child.childLanes)!==0?sp(t,e,a):(sa(e),t=Vn(t,e,a),t!==null?t.sibling:null);sa(e);break;case 19:var o=(t.flags&128)!==0;if(s=(a&e.childLanes)!==0,s||(Di(t,e,a,!1),s=(a&e.childLanes)!==0),o){if(s)return rp(t,e,a);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(Jt,Jt.current),s)break;return null;case 22:return e.lanes=0,$m(t,e,a,e.pendingProps);case 24:ea(e,te,t.memoizedState.cache)}return Vn(t,e,a)}function op(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ne=!0;else{if(!fc(t,a)&&(e.flags&128)===0)return ne=!1,eS(t,e,a);ne=(t.flags&131072)!==0}else ne=!1,wt&&(e.flags&1048576)!==0&&Hh(e,Ds,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Xa(e.elementType),e.type=t,typeof t=="function")gu(t)?(s=Fa(t,s),e.tag=1,e=ap(null,e,t,s,a)):(e.tag=0,e=ic(null,e,t,s,a));else{if(t!=null){var o=t.$$typeof;if(o===G){e.tag=11,e=Jm(null,e,t,s,a);break t}else if(o===Z){e.tag=14,e=Wm(null,e,t,s,a);break t}}throw e=Xt(t)||t,Error(r(306,e,""))}}return e;case 0:return ic(t,e,e.type,e.pendingProps,a);case 1:return s=e.type,o=Fa(s,e.pendingProps),ap(t,e,s,o,a);case 3:t:{if(Ht(e,e.stateNode.containerInfo),t===null)throw Error(r(387));s=e.pendingProps;var u=e.memoizedState;o=u.element,Ru(t,e),ks(e,s,null,a);var m=e.memoizedState;if(s=m.cache,ea(e,te,s),s!==u.cache&&Au(e,[te],a,!0),Us(),s=m.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=ip(t,e,s,a);break t}else if(s!==o){o=Xe(Error(r(424)),e),Rs(o),e=ip(t,e,s,a);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,kt=Qe(t.firstChild),me=e,wt=!0,$n=null,Ze=!0,a=$h(e,null,s,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ha(),s===o){e=Vn(t,e,a);break t}ge(t,e,s,a)}e=e.child}return e;case 26:return wr(t,e),t===null?(a=bg(e.type,null,e.pendingProps,null))?e.memoizedState=a:wt||(a=e.type,t=e.pendingProps,s=Gr(rt.current).createElement(a),s[$t]=e,s[H]=t,ye(s,a,t),ue(s),e.stateNode=s):e.memoizedState=bg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return oe(e),t===null&&wt&&(s=e.stateNode=gg(e.type,e.pendingProps,rt.current),me=e,Ze=!0,o=kt,ma(e.type)?(Xc=o,kt=Qe(s.firstChild)):kt=o),ge(t,e,e.pendingProps.children,a),wr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((o=s=kt)&&(s=RS(s,e.type,e.pendingProps,Ze),s!==null?(e.stateNode=s,me=e,kt=Qe(s.firstChild),Ze=!1,o=!0):o=!1),o||ta(e)),oe(e),o=e.type,u=e.pendingProps,m=t!==null?t.memoizedProps:null,s=u.children,Bc(o,u)?s=null:m!==null&&Bc(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=ku(t,e,P1,null,null,a),il._currentValue=o),wr(t,e),ge(t,e,s,a),e.child;case 6:return t===null&&wt&&((t=a=kt)&&(a=OS(a,e.pendingProps,Ze),a!==null?(e.stateNode=a,me=e,kt=null,t=!0):t=!1),t||ta(e)),null;case 13:return sp(t,e,a);case 4:return Ht(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Pa(e,null,s,a):ge(t,e,s,a),e.child;case 11:return Jm(t,e,e.type,e.pendingProps,a);case 7:return ge(t,e,e.pendingProps,a),e.child;case 8:return ge(t,e,e.pendingProps.children,a),e.child;case 12:return ge(t,e,e.pendingProps.children,a),e.child;case 10:return s=e.pendingProps,ea(e,e.type,s.value),ge(t,e,s.children,a),e.child;case 9:return o=e.type._context,s=e.pendingProps.children,qa(e),o=pe(o),s=s(o),e.flags|=1,ge(t,e,s,a),e.child;case 14:return Wm(t,e,e.type,e.pendingProps,a);case 15:return Im(t,e,e.type,e.pendingProps,a);case 19:return rp(t,e,a);case 31:return tS(t,e,a);case 22:return $m(t,e,a,e.pendingProps);case 24:return qa(e),s=pe(te),t===null?(o=Nu(),o===null&&(o=Lt,u=Cu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),e.memoizedState={parent:s,cache:o},Du(e),ea(e,te,o)):((t.lanes&a)!==0&&(Ru(t,e),ks(e,null,null,a),Us()),o=t.memoizedState,u=e.memoizedState,o.parent!==s?(o={parent:s,cache:s},e.memoizedState=o,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=o),ea(e,te,s)):(s=u.cache,ea(e,te,s),s!==o.cache&&Au(e,[te],a,!0))),ge(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Ln(t){t.flags|=4}function dc(t,e,a,s,o){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(o&335544128)===o)if(t.stateNode.complete)t.flags|=8192;else if(Vp())t.flags|=8192;else throw Ka=ur,ju}else t.flags&=-16777217}function up(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!wg(e))if(Vp())t.flags|=8192;else throw Ka=ur,ju}function Cr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?kl():536870912,t.lanes|=e,qi|=e)}function Xs(t,e){if(!wt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(e)for(var o=t.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=s,t.childLanes=a,e}function nS(t,e,a){var s=e.pendingProps;switch(xu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return a=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),On(te),ft(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(ji(e)?Ln(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Tu())),Bt(e),null;case 26:var o=e.type,u=e.memoizedState;return t===null?(Ln(e),u!==null?(Bt(e),up(e,u)):(Bt(e),dc(e,o,null,s,a))):u?u!==t.memoizedState?(Ln(e),Bt(e),up(e,u)):(Bt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Ln(e),Bt(e),dc(e,o,t,s,a)),null;case 27:if(He(e),a=rt.current,o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Ln(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Bt(e),null}t=et.current,ji(e)?qh(e):(t=gg(o,s,a),e.stateNode=t,Ln(e))}return Bt(e),null;case 5:if(He(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Ln(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Bt(e),null}if(u=et.current,ji(e))qh(e);else{var m=Gr(rt.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?m.createElement(o,{is:s.is}):m.createElement(o)}}u[$t]=e,u[H]=s;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=u;t:switch(ye(u,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&Ln(e)}}return Bt(e),dc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Ln(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(r(166));if(t=rt.current,ji(e)){if(t=e.stateNode,a=e.memoizedProps,s=null,o=me,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}t[$t]=e,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||sg(t.nodeValue,a)),t||ta(e,!0)}else t=Gr(t).createTextNode(s),t[$t]=e,e.stateNode=t}return Bt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(s=ji(e),a!==null){if(t===null){if(!s)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[$t]=e}else Ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),t=!1}else a=Tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Bt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(o=ji(e),s!==null&&s.dehydrated!==null){if(t===null){if(!o)throw Error(r(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[$t]=e}else Ha(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),o=!1}else o=Tu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=a,e):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=e.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Cr(e,e.updateQueue),Bt(e),null);case 4:return ft(),t===null&&_c(e.stateNode.containerInfo),Bt(e),null;case 10:return On(e.type),Bt(e),null;case 19:if(Y(Jt),s=e.memoizedState,s===null)return Bt(e),null;if(o=(e.flags&128)!==0,u=s.rendering,u===null)if(o)Xs(s,!1);else{if(Zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=hr(t),u!==null){for(e.flags|=128,Xs(s,!1),t=u.updateQueue,e.updateQueue=t,Cr(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Uh(a,t),a=a.sibling;return J(Jt,Jt.current&1|2),wt&&Dn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&It()>Rr&&(e.flags|=128,o=!0,Xs(s,!1),e.lanes=4194304)}else{if(!o)if(t=hr(u),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Cr(e,t),Xs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!wt)return Bt(e),null}else 2*It()-s.renderingStartTime>Rr&&a!==536870912&&(e.flags|=128,o=!0,Xs(s,!1),e.lanes=4194304);s.isBackwards?(u.sibling=e.child,e.child=u):(t=s.last,t!==null?t.sibling=u:e.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=It(),t.sibling=null,a=Jt.current,J(Jt,o?a&1|2:a&1),wt&&Dn(e,s.treeForkCount),t):(Bt(e),null);case 22:case 23:return Le(e),Vu(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(a&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),a=e.updateQueue,a!==null&&Cr(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==a&&(e.flags|=2048),t!==null&&Y(Ya),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),On(te),Bt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function aS(t,e){switch(xu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return On(te),ft(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return He(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(r(340));Ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ha()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Jt),null;case 4:return ft(),null;case 10:return On(e.type),null;case 22:case 23:return Le(e),Vu(),t!==null&&Y(Ya),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return On(te),null;case 25:return null;default:return null}}function cp(t,e){switch(xu(e),e.tag){case 3:On(te),ft();break;case 26:case 27:case 5:He(e);break;case 4:ft();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:Y(Jt);break;case 10:On(e.type);break;case 22:case 23:Le(e),Vu(),t!==null&&Y(Ya);break;case 24:On(te)}}function Ks(t,e){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&t)===t){s=void 0;var u=a.create,m=a.inst;s=u(),m.destroy=s}a=a.next}while(a!==o)}}catch(x){Ot(e,e.return,x)}}function ra(t,e,a){try{var s=e.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&t)===t){var m=s.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,o=e;var E=a,O=x;try{O()}catch(B){Ot(o,E,B)}}}s=s.next}while(s!==u)}}catch(B){Ot(e,e.return,B)}}function fp(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{em(e,a)}catch(s){Ot(t,t.return,s)}}}function dp(t,e,a){a.props=Fa(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Ot(t,e,s)}}function Ps(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(o){Ot(t,e,o)}}function gn(t,e){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Ot(t,e,o)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ot(t,e,o)}else a.current=null}function hp(t){var e=t.type,a=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break t;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){Ot(t,t.return,o)}}function hc(t,e,a){try{var s=t.stateNode;AS(s,t.type,a,e),s[H]=e}catch(o){Ot(t,t.return,o)}}function mp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ma(t.type)||t.tag===4}function mc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||mp(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&&ma(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 pc(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=Mn));else if(s!==4&&(s===27&&ma(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(pc(t,e,a),t=t.sibling;t!==null;)pc(t,e,a),t=t.sibling}function Mr(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(s!==4&&(s===27&&ma(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Mr(t,e,a),t=t.sibling;t!==null;)Mr(t,e,a),t=t.sibling}function pp(t){var e=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,o=e.attributes;o.length;)e.removeAttributeNode(o[0]);ye(e,s,a),e[$t]=t,e[H]=a}catch(u){Ot(t,t.return,u)}}var Un=!1,ae=!1,gc=!1,gp=typeof WeakSet=="function"?WeakSet:Set,ce=null;function iS(t,e){if(t=t.containerInfo,Uc=Fr,t=Nh(t),uu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break t}var m=0,x=-1,E=-1,O=0,B=0,K=t,_=null;e:for(;;){for(var k;K!==a||o!==0&&K.nodeType!==3||(x=m+o),K!==u||s!==0&&K.nodeType!==3||(E=m+s),K.nodeType===3&&(m+=K.nodeValue.length),(k=K.firstChild)!==null;)_=K,K=k;for(;;){if(K===t)break e;if(_===a&&++O===o&&(x=m),_===u&&++B===s&&(E=m),(k=K.nextSibling)!==null)break;K=_,_=K.parentNode}K=k}a=x===-1||E===-1?null:{start:x,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(kc={focusedElem:t,selectionRange:a},Fr=!1,ce=e;ce!==null;)if(e=ce,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ce=t;else for(;ce!==null;){switch(e=ce,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)o=t[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,a=e,o=u.memoizedProps,u=u.memoizedState,s=a.stateNode;try{var nt=Fa(a.type,o);t=s.getSnapshotBeforeUpdate(nt,u),s.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Ot(a,a.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Gc(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Gc(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(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ce=t;break}ce=e.return}}function yp(t,e,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Bn(t,a),s&4&&Ks(5,a);break;case 1:if(Bn(t,a),s&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(m){Ot(a,a.return,m)}else{var o=Fa(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(o,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Ot(a,a.return,m)}}s&64&&fp(a),s&512&&Ps(a,a.return);break;case 3:if(Bn(t,a),s&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{em(t,e)}catch(m){Ot(a,a.return,m)}}break;case 27:e===null&&s&4&&pp(a);case 26:case 5:Bn(t,a),e===null&&s&4&&hp(a),s&512&&Ps(a,a.return);break;case 12:Bn(t,a);break;case 31:Bn(t,a),s&4&&xp(t,a);break;case 13:Bn(t,a),s&4&&Sp(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=hS.bind(null,a),zS(t,a))));break;case 22:if(s=a.memoizedState!==null||Un,!s){e=e!==null&&e.memoizedState!==null||ae,o=Un;var u=ae;Un=s,(ae=e)&&!u?Hn(t,a,(a.subtreeFlags&8772)!==0):Bn(t,a),Un=o,ae=u}break;case 30:break;default:Bn(t,a)}}function vp(t){var e=t.alternate;e!==null&&(t.alternate=null,vp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Po(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 Gt=null,Ne=!1;function kn(t,e,a){for(a=a.child;a!==null;)bp(t,e,a),a=a.sibling}function bp(t,e,a){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(Zn,a)}catch{}switch(a.tag){case 26:ae||gn(a,e),kn(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ae||gn(a,e);var s=Gt,o=Ne;ma(a.type)&&(Gt=a.stateNode,Ne=!1),kn(t,e,a),el(a.stateNode),Gt=s,Ne=o;break;case 5:ae||gn(a,e);case 6:if(s=Gt,o=Ne,Gt=null,kn(t,e,a),Gt=s,Ne=o,Gt!==null)if(Ne)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode)}catch(u){Ot(a,e,u)}else try{Gt.removeChild(a.stateNode)}catch(u){Ot(a,e,u)}break;case 18:Gt!==null&&(Ne?(t=Gt,fg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ji(t)):fg(Gt,a.stateNode));break;case 4:s=Gt,o=Ne,Gt=a.stateNode.containerInfo,Ne=!0,kn(t,e,a),Gt=s,Ne=o;break;case 0:case 11:case 14:case 15:ra(2,a,e),ae||ra(4,a,e),kn(t,e,a);break;case 1:ae||(gn(a,e),s=a.stateNode,typeof s.componentWillUnmount=="function"&&dp(a,e,s)),kn(t,e,a);break;case 21:kn(t,e,a);break;case 22:ae=(s=ae)||a.memoizedState!==null,kn(t,e,a),ae=s;break;default:kn(t,e,a)}}function xp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ji(t)}catch(a){Ot(e,e.return,a)}}}function Sp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ji(t)}catch(a){Ot(e,e.return,a)}}function sS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new gp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new gp),e;default:throw Error(r(435,t.tag))}}function Nr(t,e){var a=sS(t);e.forEach(function(s){if(!a.has(s)){a.add(s);var o=mS.bind(null,t,s);s.then(o,o)}})}function je(t,e){var a=e.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],u=t,m=e,x=m;t:for(;x!==null;){switch(x.tag){case 27:if(ma(x.type)){Gt=x.stateNode,Ne=!1;break t}break;case 5:Gt=x.stateNode,Ne=!1;break t;case 3:case 4:Gt=x.stateNode.containerInfo,Ne=!0;break t}x=x.return}if(Gt===null)throw Error(r(160));bp(u,m,o),Gt=null,Ne=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Tp(e,t),e=e.sibling}var nn=null;function Tp(t,e){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:je(e,t),De(t),s&4&&(ra(3,t,t.return),Ks(3,t),ra(5,t,t.return));break;case 1:je(e,t),De(t),s&512&&(ae||a===null||gn(a,a.return)),s&64&&Un&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=nn;if(je(e,t),De(t),s&512&&(ae||a===null||gn(a,a.return)),s&4){var u=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){t:{s=t.type,a=t.memoizedProps,o=o.ownerDocument||o;e:switch(s){case"title":u=o.getElementsByTagName("title")[0],(!u||u[bs]||u[$t]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),ye(u,s,a),u[$t]=t,ue(u),s=u;break t;case"link":var m=Tg("link","href",o).get(s+(a.href||""));if(m){for(var x=0;x<m.length;x++)if(u=m[x],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(x,1);break e}}u=o.createElement(s),ye(u,s,a),o.head.appendChild(u);break;case"meta":if(m=Tg("meta","content",o).get(s+(a.content||""))){for(x=0;x<m.length;x++)if(u=m[x],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(x,1);break e}}u=o.createElement(s),ye(u,s,a),o.head.appendChild(u);break;default:throw Error(r(468,s))}u[$t]=t,ue(u),s=u}t.stateNode=s}else Eg(o,t.type,t.stateNode);else t.stateNode=Sg(o,s,t.memoizedProps);else u!==s?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,s===null?Eg(o,t.type,t.stateNode):Sg(o,s,t.memoizedProps)):s===null&&t.stateNode!==null&&hc(t,t.memoizedProps,a.memoizedProps)}break;case 27:je(e,t),De(t),s&512&&(ae||a===null||gn(a,a.return)),a!==null&&s&4&&hc(t,t.memoizedProps,a.memoizedProps);break;case 5:if(je(e,t),De(t),s&512&&(ae||a===null||gn(a,a.return)),t.flags&32){o=t.stateNode;try{bi(o,"")}catch(nt){Ot(t,t.return,nt)}}s&4&&t.stateNode!=null&&(o=t.memoizedProps,hc(t,o,a!==null?a.memoizedProps:o)),s&1024&&(gc=!0);break;case 6:if(je(e,t),De(t),s&4){if(t.stateNode===null)throw Error(r(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(nt){Ot(t,t.return,nt)}}break;case 3:if(Xr=null,o=nn,nn=qr(e.containerInfo),je(e,t),nn=o,De(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ji(e.containerInfo)}catch(nt){Ot(t,t.return,nt)}gc&&(gc=!1,Ep(t));break;case 4:s=nn,nn=qr(t.stateNode.containerInfo),je(e,t),De(t),nn=s;break;case 12:je(e,t),De(t);break;case 31:je(e,t),De(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Nr(t,s)));break;case 13:je(e,t),De(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Dr=It()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Nr(t,s)));break;case 22:o=t.memoizedState!==null;var E=a!==null&&a.memoizedState!==null,O=Un,B=ae;if(Un=O||o,ae=B||E,je(e,t),ae=B,Un=O,De(t),s&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||E||Un||ae||Qa(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){E=a=e;try{if(u=E.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var K=E.memoizedProps.style,_=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(nt){Ot(E,E.return,nt)}}}else if(e.tag===6){if(a===null){E=e;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(nt){Ot(E,E.return,nt)}}}else if(e.tag===18){if(a===null){E=e;try{var k=E.stateNode;o?dg(k,!0):dg(E.stateNode,!1)}catch(nt){Ot(E,E.return,nt)}}}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;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Nr(t,a))));break;case 19:je(e,t),De(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Nr(t,s)));break;case 30:break;case 21:break;default:je(e,t),De(t)}}function De(t){var e=t.flags;if(e&2){try{for(var a,s=t.return;s!==null;){if(mp(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,u=mc(t);Mr(t,u,o);break;case 5:var m=a.stateNode;a.flags&32&&(bi(m,""),a.flags&=-33);var x=mc(t);Mr(t,x,m);break;case 3:case 4:var E=a.stateNode.containerInfo,O=mc(t);pc(t,O,E);break;default:throw Error(r(161))}}catch(B){Ot(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ep(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ep(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Bn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)yp(t,e.alternate,e),e=e.sibling}function Qa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ra(4,e,e.return),Qa(e);break;case 1:gn(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&dp(e,e.return,a),Qa(e);break;case 27:el(e.stateNode);case 26:case 5:gn(e,e.return),Qa(e);break;case 22:e.memoizedState===null&&Qa(e);break;case 30:Qa(e);break;default:Qa(e)}t=t.sibling}}function Hn(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,o=t,u=e,m=u.flags;switch(u.tag){case 0:case 11:case 15:Hn(o,u,a),Ks(4,u);break;case 1:if(Hn(o,u,a),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(O){Ot(s,s.return,O)}if(s=u,o=s.updateQueue,o!==null){var x=s.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)tm(E[o],x)}catch(O){Ot(s,s.return,O)}}a&&m&64&&fp(u),Ps(u,u.return);break;case 27:pp(u);case 26:case 5:Hn(o,u,a),a&&s===null&&m&4&&hp(u),Ps(u,u.return);break;case 12:Hn(o,u,a);break;case 31:Hn(o,u,a),a&&m&4&&xp(o,u);break;case 13:Hn(o,u,a),a&&m&4&&Sp(o,u);break;case 22:u.memoizedState===null&&Hn(o,u,a),Ps(u,u.return);break;case 30:break;default:Hn(o,u,a)}e=e.sibling}}function yc(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Os(a))}function vc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Os(t))}function an(t,e,a,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wp(t,e,a,s),e=e.sibling}function wp(t,e,a,s){var o=e.flags;switch(e.tag){case 0:case 11:case 15:an(t,e,a,s),o&2048&&Ks(9,e);break;case 1:an(t,e,a,s);break;case 3:an(t,e,a,s),o&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Os(t)));break;case 12:if(o&2048){an(t,e,a,s),t=e.stateNode;try{var u=e.memoizedProps,m=u.id,x=u.onPostCommit;typeof x=="function"&&x(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(E){Ot(e,e.return,E)}}else an(t,e,a,s);break;case 31:an(t,e,a,s);break;case 13:an(t,e,a,s);break;case 23:break;case 22:u=e.stateNode,m=e.alternate,e.memoizedState!==null?u._visibility&2?an(t,e,a,s):Zs(t,e):u._visibility&2?an(t,e,a,s):(u._visibility|=2,Bi(t,e,a,s,(e.subtreeFlags&10256)!==0||!1)),o&2048&&yc(m,e);break;case 24:an(t,e,a,s),o&2048&&vc(e.alternate,e);break;default:an(t,e,a,s)}}function Bi(t,e,a,s,o){for(o=o&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,m=e,x=a,E=s,O=m.flags;switch(m.tag){case 0:case 11:case 15:Bi(u,m,x,E,o),Ks(8,m);break;case 23:break;case 22:var B=m.stateNode;m.memoizedState!==null?B._visibility&2?Bi(u,m,x,E,o):Zs(u,m):(B._visibility|=2,Bi(u,m,x,E,o)),o&&O&2048&&yc(m.alternate,m);break;case 24:Bi(u,m,x,E,o),o&&O&2048&&vc(m.alternate,m);break;default:Bi(u,m,x,E,o)}e=e.sibling}}function Zs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,s=e,o=s.flags;switch(s.tag){case 22:Zs(a,s),o&2048&&yc(s.alternate,s);break;case 24:Zs(a,s),o&2048&&vc(s.alternate,s);break;default:Zs(a,s)}e=e.sibling}}var Fs=8192;function Hi(t,e,a){if(t.subtreeFlags&Fs)for(t=t.child;t!==null;)Ap(t,e,a),t=t.sibling}function Ap(t,e,a){switch(t.tag){case 26:Hi(t,e,a),t.flags&Fs&&t.memoizedState!==null&&KS(a,nn,t.memoizedState,t.memoizedProps);break;case 5:Hi(t,e,a);break;case 3:case 4:var s=nn;nn=qr(t.stateNode.containerInfo),Hi(t,e,a),nn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Fs,Fs=16777216,Hi(t,e,a),Fs=s):Hi(t,e,a));break;default:Hi(t,e,a)}}function Cp(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 Qs(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];ce=s,Np(s,t)}Cp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mp(t),t=t.sibling}function Mp(t){switch(t.tag){case 0:case 11:case 15:Qs(t),t.flags&2048&&ra(9,t,t.return);break;case 3:Qs(t);break;case 12:Qs(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,jr(t)):Qs(t);break;default:Qs(t)}}function jr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];ce=s,Np(s,t)}Cp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ra(8,e,e.return),jr(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,jr(e));break;default:jr(e)}t=t.sibling}}function Np(t,e){for(;ce!==null;){var a=ce;switch(a.tag){case 0:case 11:case 15:ra(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Os(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,ce=s;else t:for(a=t;ce!==null;){s=ce;var o=s.sibling,u=s.return;if(vp(s),s===a){ce=null;break t}if(o!==null){o.return=u,ce=o;break t}ce=u}}}var lS={getCacheForType:function(t){var e=pe(te),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return pe(te).controller.signal}},rS=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Lt=null,bt=null,Tt=0,Rt=0,Ue=null,oa=!1,Gi=!1,bc=!1,Gn=0,Zt=0,ua=0,Ja=0,xc=0,ke=0,qi=0,Js=null,Re=null,Sc=!1,Dr=0,jp=0,Rr=1/0,Or=null,ca=null,se=0,fa=null,Yi=null,qn=0,Tc=0,Ec=null,Dp=null,Ws=0,wc=null;function Be(){return(Dt&2)!==0&&Tt!==0?Tt&-Tt:z.T!==null?Dc():hi()}function Rp(){if(ke===0)if((Tt&536870912)===0||wt){var t=ci;ci<<=1,(ci&3932160)===0&&(ci=262144),ke=t}else ke=536870912;return t=Ve.current,t!==null&&(t.flags|=32),ke}function Oe(t,e,a){(t===Lt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(Xi(t,0),da(t,Tt,ke,!1)),Oa(t,a),((Dt&2)===0||t!==Lt)&&(t===Lt&&((Dt&2)===0&&(Ja|=a),Zt===4&&da(t,Tt,ke,!1)),yn(t))}function Op(t,e,a){if((Dt&6)!==0)throw Error(r(327));var s=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Fn(t,e),o=s?cS(t,e):Cc(t,e,!0),u=s;do{if(o===0){Gi&&!s&&da(t,e,0,!1);break}else{if(a=t.current.alternate,u&&!oS(a)){o=Cc(t,e,!1),u=!1;continue}if(o===2){if(u=e,t.errorRecoveryDisabledLanes&u)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;o=Js;var E=x.current.memoizedState.isDehydrated;if(E&&(Xi(x,m).flags|=256),m=Cc(x,m,!1),m!==2){if(bc&&!E){x.errorRecoveryDisabledLanes|=u,Ja|=u,o=4;break t}u=Re,Re=o,u!==null&&(Re===null?Re=u:Re.push.apply(Re,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){Xi(t,0),da(t,e,0,!0);break}t:{switch(s=t,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:da(s,e,ke,!oa);break t;case 2:Re=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Dr+300-It(),10<o)){if(da(s,e,ke,!oa),di(s,0,!0)!==0)break t;qn=e,s.timeoutHandle=ug(zp.bind(null,s,a,Re,Or,Sc,e,ke,Ja,qi,oa,u,"Throttled",-0,0),o);break t}zp(s,a,Re,Or,Sc,e,ke,Ja,qi,oa,u,null,-0,0)}}break}while(!0);yn(t)}function zp(t,e,a,s,o,u,m,x,E,O,B,K,_,k){if(t.timeoutHandle=-1,K=e.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},Ap(e,u,K);var nt=(u&62914560)===u?Dr-It():(u&4194048)===u?jp-It():0;if(nt=PS(K,nt),nt!==null){qn=u,t.cancelPendingCommit=nt(Gp.bind(null,t,e,u,a,s,o,m,x,E,B,K,null,_,k)),da(t,u,m,!O);return}}Gp(t,e,u,a,s,o,m,x,E)}function oS(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],u=o.getSnapshot;o=o.value;try{if(!ze(u(),o))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 da(t,e,a,s){e&=~xc,e&=~Ja,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var o=e;0<o;){var u=31-qt(o),m=1<<u;s[u]=-1,o&=~m}a!==0&&ys(t,a,e)}function zr(){return(Dt&6)===0?(Is(0),!1):!0}function Ac(){if(bt!==null){if(Rt===0)var t=bt.return;else t=bt,Rn=Ga=null,Gu(t),_i=null,_s=0,t=bt;for(;t!==null;)cp(t.alternate,t),t=t.return;bt=null}}function Xi(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,NS(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),qn=0,Ac(),Lt=t,bt=a=jn(t.current,null),Tt=e,Rt=0,Ue=null,oa=!1,Gi=Fn(t,e),bc=!1,qi=ke=xc=Ja=ua=Zt=0,Re=Js=null,Sc=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var o=31-qt(s),u=1<<o;e|=t[o],s&=~u}return Gn=e,tr(),a}function _p(t,e){pt=null,z.H=qs,e===zi||e===or?(e=Jh(),Rt=3):e===ju?(e=Jh(),Rt=4):Rt=e===ac?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,bt===null&&(Zt=1,Tr(t,Xe(e,t.current)))}function Vp(){var t=Ve.current;return t===null?!0:(Tt&4194048)===Tt?Fe===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Fe:!1}function Lp(){var t=z.H;return z.H=qs,t===null?qs:t}function Up(){var t=z.A;return z.A=lS,t}function _r(){Zt=4,oa||(Tt&4194048)!==Tt&&Ve.current!==null||(Gi=!0),(ua&134217727)===0&&(Ja&134217727)===0||Lt===null||da(Lt,Tt,ke,!1)}function Cc(t,e,a){var s=Dt;Dt|=2;var o=Lp(),u=Up();(Lt!==t||Tt!==e)&&(Or=null,Xi(t,e)),e=!1;var m=Zt;t:do try{if(Rt!==0&&bt!==null){var x=bt,E=Ue;switch(Rt){case 8:Ac(),m=6;break t;case 3:case 2:case 9:case 6:Ve.current===null&&(e=!0);var O=Rt;if(Rt=0,Ue=null,Ki(t,x,E,O),a&&Gi){m=0;break t}break;default:O=Rt,Rt=0,Ue=null,Ki(t,x,E,O)}}uS(),m=Zt;break}catch(B){_p(t,B)}while(!0);return e&&t.shellSuspendCounter++,Rn=Ga=null,Dt=s,z.H=o,z.A=u,bt===null&&(Lt=null,Tt=0,tr()),m}function uS(){for(;bt!==null;)kp(bt)}function cS(t,e){var a=Dt;Dt|=2;var s=Lp(),o=Up();Lt!==t||Tt!==e?(Or=null,Rr=It()+500,Xi(t,e)):Gi=Fn(t,e);t:do try{if(Rt!==0&&bt!==null){e=bt;var u=Ue;e:switch(Rt){case 1:Rt=0,Ue=null,Ki(t,e,u,1);break;case 2:case 9:if(Fh(u)){Rt=0,Ue=null,Bp(e);break}e=function(){Rt!==2&&Rt!==9||Lt!==t||(Rt=7),yn(t)},u.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:Fh(u)?(Rt=0,Ue=null,Bp(e)):(Rt=0,Ue=null,Ki(t,e,u,7));break;case 5:var m=null;switch(bt.tag){case 26:m=bt.memoizedState;case 5:case 27:var x=bt;if(m?wg(m):x.stateNode.complete){Rt=0,Ue=null;var E=x.sibling;if(E!==null)bt=E;else{var O=x.return;O!==null?(bt=O,Vr(O)):bt=null}break e}}Rt=0,Ue=null,Ki(t,e,u,5);break;case 6:Rt=0,Ue=null,Ki(t,e,u,6);break;case 8:Ac(),Zt=6;break t;default:throw Error(r(462))}}fS();break}catch(B){_p(t,B)}while(!0);return Rn=Ga=null,z.H=s,z.A=o,Dt=a,bt!==null?0:(Lt=null,Tt=0,tr(),Zt)}function fS(){for(;bt!==null&&!Yo();)kp(bt)}function kp(t){var e=op(t.alternate,t,Gn);t.memoizedProps=t.pendingProps,e===null?Vr(t):bt=e}function Bp(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=np(a,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=np(a,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:Gu(e);default:cp(a,e),e=bt=Uh(e,Gn),e=op(a,e,Gn)}t.memoizedProps=t.pendingProps,e===null?Vr(t):bt=e}function Ki(t,e,a,s){Rn=Ga=null,Gu(e),_i=null,_s=0;var o=e.return;try{if($1(t,o,e,a,Tt)){Zt=1,Tr(t,Xe(a,t.current)),bt=null;return}}catch(u){if(o!==null)throw bt=o,u;Zt=1,Tr(t,Xe(a,t.current)),bt=null;return}e.flags&32768?(wt||s===1?t=!0:Gi||(Tt&536870912)!==0?t=!1:(oa=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ve.current,s!==null&&s.tag===13&&(s.flags|=16384))),Hp(e,t)):Vr(e)}function Vr(t){var e=t;do{if((e.flags&32768)!==0){Hp(e,oa);return}t=e.return;var a=nS(e.alternate,e,Gn);if(a!==null){bt=a;return}if(e=e.sibling,e!==null){bt=e;return}bt=e=t}while(e!==null);Zt===0&&(Zt=5)}function Hp(t,e){do{var a=aS(t.alternate,t);if(a!==null){a.flags&=32767,bt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){bt=t;return}bt=t=a}while(t!==null);Zt=6,bt=null}function Gp(t,e,a,s,o,u,m,x,E){t.cancelPendingCommit=null;do Lr();while(se!==0);if((Dt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=mu,Bl(t,a,u,m,x,E),t===Lt&&(bt=Lt=null,Tt=0),Yi=e,fa=t,qn=a,Tc=u,Ec=o,Dp=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,pS(Da,function(){return Pp(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,o=F.p,F.p=2,m=Dt,Dt|=4;try{iS(t,e,a)}finally{Dt=m,F.p=o,z.T=s}}se=1,qp(),Yp(),Xp()}}function qp(){if(se===1){se=0;var t=fa,e=Yi,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var s=F.p;F.p=2;var o=Dt;Dt|=4;try{Tp(e,t);var u=kc,m=Nh(t.containerInfo),x=u.focusedElem,E=u.selectionRange;if(m!==x&&x&&x.ownerDocument&&Mh(x.ownerDocument.documentElement,x)){if(E!==null&&uu(x)){var O=E.start,B=E.end;if(B===void 0&&(B=O),"selectionStart"in x)x.selectionStart=O,x.selectionEnd=Math.min(B,x.value.length);else{var K=x.ownerDocument||document,_=K&&K.defaultView||window;if(_.getSelection){var k=_.getSelection(),nt=x.textContent.length,ut=Math.min(E.start,nt),Vt=E.end===void 0?ut:Math.min(E.end,nt);!k.extend&&ut>Vt&&(m=Vt,Vt=ut,ut=m);var j=Ch(x,ut),C=Ch(x,Vt);if(j&&C&&(k.rangeCount!==1||k.anchorNode!==j.node||k.anchorOffset!==j.offset||k.focusNode!==C.node||k.focusOffset!==C.offset)){var R=K.createRange();R.setStart(j.node,j.offset),k.removeAllRanges(),ut>Vt?(k.addRange(R),k.extend(C.node,C.offset)):(R.setEnd(C.node,C.offset),k.addRange(R))}}}}for(K=[],k=x;k=k.parentNode;)k.nodeType===1&&K.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var X=K[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Fr=!!Uc,kc=Uc=null}finally{Dt=o,F.p=s,z.T=a}}t.current=e,se=2}}function Yp(){if(se===2){se=0;var t=fa,e=Yi,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var s=F.p;F.p=2;var o=Dt;Dt|=4;try{yp(t,e.alternate,e)}finally{Dt=o,F.p=s,z.T=a}}se=3}}function Xp(){if(se===4||se===3){se=0,zl();var t=fa,e=Yi,a=qn,s=Dp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?se=5:(se=0,Yi=fa=null,Kp(t,t.pendingLanes));var o=t.pendingLanes;if(o===0&&(ca=null),vs(a),e=e.stateNode,Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(Zn,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=z.T,o=F.p,F.p=2,z.T=null;try{for(var u=t.onRecoverableError,m=0;m<s.length;m++){var x=s[m];u(x.value,{componentStack:x.stack})}}finally{z.T=e,F.p=o}}(qn&3)!==0&&Lr(),yn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===wc?Ws++:(Ws=0,wc=t):Ws=0,Is(0)}}function Kp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Os(e)))}function Lr(){return qp(),Yp(),Xp(),Pp()}function Pp(){if(se!==5)return!1;var t=fa,e=Tc;Tc=0;var a=vs(qn),s=z.T,o=F.p;try{F.p=32>a?32:a,z.T=null,a=Ec,Ec=null;var u=fa,m=qn;if(se=0,Yi=fa=null,qn=0,(Dt&6)!==0)throw Error(r(331));var x=Dt;if(Dt|=4,Mp(u.current),wp(u,u.current,m,a),Dt=x,Is(0,!1),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(Zn,u)}catch{}return!0}finally{F.p=o,z.T=s,Kp(t,e)}}function Zp(t,e,a){e=Xe(a,e),e=nc(t.stateNode,e,2),t=ia(t,e,2),t!==null&&(Oa(t,2),yn(t))}function Ot(t,e,a){if(t.tag===3)Zp(t,t,a);else for(;e!==null;){if(e.tag===3){Zp(e,t,a);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ca===null||!ca.has(s))){t=Xe(a,t),a=Fm(2),s=ia(e,a,2),s!==null&&(Qm(a,s,e,t),Oa(s,2),yn(s));break}}e=e.return}}function Mc(t,e,a){var s=t.pingCache;if(s===null){s=t.pingCache=new rS;var o=new Set;s.set(e,o)}else o=s.get(e),o===void 0&&(o=new Set,s.set(e,o));o.has(a)||(bc=!0,o.add(a),t=dS.bind(null,t,e,a),e.then(t,t))}function dS(t,e,a){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Lt===t&&(Tt&a)===a&&(Zt===4||Zt===3&&(Tt&62914560)===Tt&&300>It()-Dr?(Dt&2)===0&&Xi(t,0):xc|=a,qi===Tt&&(qi=0)),yn(t)}function Fp(t,e){e===0&&(e=kl()),t=ka(t,e),t!==null&&(Oa(t,e),yn(t))}function hS(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Fp(t,a)}function mS(t,e){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,o=t.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(e),Fp(t,a)}function pS(t,e){return ja(t,e)}var Ur=null,Pi=null,Nc=!1,kr=!1,jc=!1,ha=0;function yn(t){t!==Pi&&t.next===null&&(Pi===null?Ur=Pi=t:Pi=Pi.next=t),kr=!0,Nc||(Nc=!0,yS())}function Is(t,e){if(!jc&&kr){jc=!0;do for(var a=!1,s=Ur;s!==null;){if(t!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var m=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-qt(42|t)+1)-1,u&=o&~(m&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Ip(s,u))}else u=Tt,u=di(s,s===Lt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Fn(s,u)||(a=!0,Ip(s,u));s=s.next}while(a);jc=!1}}function gS(){Qp()}function Qp(){kr=Nc=!1;var t=0;ha!==0&&MS()&&(t=ha);for(var e=It(),a=null,s=Ur;s!==null;){var o=s.next,u=Jp(s,e);u===0?(s.next=null,a===null?Ur=o:a.next=o,o===null&&(Pi=a)):(a=s,(t!==0||(u&3)!==0)&&(kr=!0)),s=o}se!==0&&se!==5||Is(t),ha!==0&&(ha=0)}function Jp(t,e){for(var a=t.suspendedLanes,s=t.pingedLanes,o=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var m=31-qt(u),x=1<<m,E=o[m];E===-1?((x&a)===0||(x&s)!==0)&&(o[m]=Ko(x,e)):E<=e&&(t.expiredLanes|=x),u&=~x}if(e=Lt,a=Tt,a=di(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&ms(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Fn(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(s!==null&&ms(s),vs(a)){case 2:case 8:a=_l;break;case 32:a=Da;break;case 268435456:a=Ra;break;default:a=Da}return s=Wp.bind(null,t),a=ja(a,s),t.callbackPriority=e,t.callbackNode=a,e}return s!==null&&s!==null&&ms(s),t.callbackPriority=2,t.callbackNode=null,2}function Wp(t,e){if(se!==0&&se!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Lr()&&t.callbackNode!==a)return null;var s=Tt;return s=di(t,t===Lt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Op(t,s,e),Jp(t,It()),t.callbackNode!=null&&t.callbackNode===a?Wp.bind(null,t):null)}function Ip(t,e){if(Lr())return null;Op(t,e,!0)}function yS(){jS(function(){(Dt&6)!==0?ja(ri,gS):Qp()})}function Dc(){if(ha===0){var t=Ri;t===0&&(t=ui,ui<<=1,(ui&261888)===0&&(ui=256)),ha=t}return ha}function $p(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Pl(""+t)}function tg(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function vS(t,e,a,s,o){if(e==="submit"&&a&&a.stateNode===o){var u=$p((o[H]||null).action),m=s.submitter;m&&(e=(e=m[H]||null)?$p(e.formAction):m.getAttribute("formAction"),e!==null&&(u=e,m=null));var x=new Jl("action","action",null,s,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ha!==0){var E=m?tg(o,m):new FormData(o);Ju(a,{pending:!0,data:E,method:o.method,action:u},null,E)}}else typeof u=="function"&&(x.preventDefault(),E=m?tg(o,m):new FormData(o),Ju(a,{pending:!0,data:E,method:o.method,action:u},u,E))},currentTarget:o}]})}}for(var Rc=0;Rc<hu.length;Rc++){var Oc=hu[Rc],bS=Oc.toLowerCase(),xS=Oc[0].toUpperCase()+Oc.slice(1);en(bS,"on"+xS)}en(Rh,"onAnimationEnd"),en(Oh,"onAnimationIteration"),en(zh,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(L1,"onTransitionRun"),en(U1,"onTransitionStart"),en(k1,"onTransitionCancel"),en(_h,"onTransitionEnd"),yi("onMouseEnter",["mouseout","mouseover"]),yi("onMouseLeave",["mouseout","mouseover"]),yi("onPointerEnter",["pointerout","pointerover"]),yi("onPointerLeave",["pointerout","pointerover"]),_a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_a("onBeforeInput",["compositionend","keypress","textInput","paste"]),_a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $s="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(" "),SS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($s));function eg(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],o=s.event;s=s.listeners;t:{var u=void 0;if(e)for(var m=s.length-1;0<=m;m--){var x=s[m],E=x.instance,O=x.currentTarget;if(x=x.listener,E!==u&&o.isPropagationStopped())break t;u=x,o.currentTarget=O;try{u(o)}catch(B){$l(B)}o.currentTarget=null,u=E}else for(m=0;m<s.length;m++){if(x=s[m],E=x.instance,O=x.currentTarget,x=x.listener,E!==u&&o.isPropagationStopped())break t;u=x,o.currentTarget=O;try{u(o)}catch(B){$l(B)}o.currentTarget=null,u=E}}}}function xt(t,e){var a=e[he];a===void 0&&(a=e[he]=new Set);var s=t+"__bubble";a.has(s)||(ng(e,t,2,!1),a.add(s))}function zc(t,e,a){var s=0;e&&(s|=4),ng(a,t,s,e)}var Br="_reactListening"+Math.random().toString(36).slice(2);function _c(t){if(!t[Br]){t[Br]=!0,Qd.forEach(function(a){a!=="selectionchange"&&(SS.has(a)||zc(a,!1,t),zc(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Br]||(e[Br]=!0,zc("selectionchange",!1,e))}}function ng(t,e,a,s){switch(Rg(e)){case 2:var o=QS;break;case 8:o=JS;break;default:o=Qc}a=o.bind(null,e,a,t),o=void 0,!tu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),s?o!==void 0?t.addEventListener(e,a,{capture:!0,passive:o}):t.addEventListener(e,a,!0):o!==void 0?t.addEventListener(e,a,{passive:o}):t.addEventListener(e,a,!1)}function Vc(t,e,a,s,o){var u=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var x=s.stateNode.containerInfo;if(x===o)break;if(m===4)for(m=s.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=mi(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){s=u=m;continue t}x=x.parentNode}}s=s.return}rh(function(){var O=u,B=Io(a),K=[];t:{var _=Vh.get(t);if(_!==void 0){var k=Jl,nt=t;switch(t){case"keypress":if(Fl(a)===0)break t;case"keydown":case"keyup":k=m1;break;case"focusin":nt="focus",k=iu;break;case"focusout":nt="blur",k=iu;break;case"beforeblur":case"afterblur":k=iu;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=n1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=y1;break;case Rh:case Oh:case zh:k=s1;break;case _h:k=b1;break;case"scroll":case"scrollend":k=t1;break;case"wheel":k=S1;break;case"copy":case"cut":case"paste":k=r1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=dh;break;case"toggle":case"beforetoggle":k=E1}var ut=(e&4)!==0,Vt=!ut&&(t==="scroll"||t==="scrollend"),j=ut?_!==null?_+"Capture":null:_;ut=[];for(var C=O,R;C!==null;){var X=C;if(R=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||R===null||j===null||(X=Ss(C,j),X!=null&&ut.push(tl(C,X,R))),Vt)break;C=C.return}0<ut.length&&(_=new k(_,nt,null,a,B),K.push({event:_,listeners:ut}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",_&&a!==Wo&&(nt=a.relatedTarget||a.fromElement)&&(mi(nt)||nt[ct]))break t;if((k||_)&&(_=B.window===B?B:(_=B.ownerDocument)?_.defaultView||_.parentWindow:window,k?(nt=a.relatedTarget||a.toElement,k=O,nt=nt?mi(nt):null,nt!==null&&(Vt=f(nt),ut=nt.tag,nt!==Vt||ut!==5&&ut!==27&&ut!==6)&&(nt=null)):(k=null,nt=O),k!==nt)){if(ut=ch,X="onMouseLeave",j="onMouseEnter",C="mouse",(t==="pointerout"||t==="pointerover")&&(ut=dh,X="onPointerLeave",j="onPointerEnter",C="pointer"),Vt=k==null?_:xs(k),R=nt==null?_:xs(nt),_=new ut(X,C+"leave",k,a,B),_.target=Vt,_.relatedTarget=R,X=null,mi(B)===O&&(ut=new ut(j,C+"enter",nt,a,B),ut.target=R,ut.relatedTarget=Vt,X=ut),Vt=X,k&&nt)e:{for(ut=TS,j=k,C=nt,R=0,X=j;X;X=ut(X))R++;X=0;for(var ot=C;ot;ot=ut(ot))X++;for(;0<R-X;)j=ut(j),R--;for(;0<X-R;)C=ut(C),X--;for(;R--;){if(j===C||C!==null&&j===C.alternate){ut=j;break e}j=ut(j),C=ut(C)}ut=null}else ut=null;k!==null&&ag(K,_,k,ut,!1),nt!==null&&Vt!==null&&ag(K,Vt,nt,ut,!0)}}t:{if(_=O?xs(O):window,k=_.nodeName&&_.nodeName.toLowerCase(),k==="select"||k==="input"&&_.type==="file")var Mt=xh;else if(vh(_))if(Sh)Mt=z1;else{Mt=R1;var lt=D1}else k=_.nodeName,!k||k.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?O&&Jo(O.elementType)&&(Mt=xh):Mt=O1;if(Mt&&(Mt=Mt(t,O))){bh(K,Mt,a,B);break t}lt&&lt(t,_,O),t==="focusout"&&O&&_.type==="number"&&O.memoizedProps.value!=null&&Qo(_,"number",_.value)}switch(lt=O?xs(O):window,t){case"focusin":(vh(lt)||lt.contentEditable==="true")&&(Ei=lt,cu=O,js=null);break;case"focusout":js=cu=Ei=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,jh(K,a,B);break;case"selectionchange":if(V1)break;case"keydown":case"keyup":jh(K,a,B)}var yt;if(lu)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else Ti?gh(t,a)&&(Et="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Et="onCompositionStart");Et&&(hh&&a.locale!=="ko"&&(Ti||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Ti&&(yt=oh()):(Wn=B,eu="value"in Wn?Wn.value:Wn.textContent,Ti=!0)),lt=Hr(O,Et),0<lt.length&&(Et=new fh(Et,t,null,a,B),K.push({event:Et,listeners:lt}),yt?Et.data=yt:(yt=yh(a),yt!==null&&(Et.data=yt)))),(yt=A1?C1(t,a):M1(t,a))&&(Et=Hr(O,"onBeforeInput"),0<Et.length&&(lt=new fh("onBeforeInput","beforeinput",null,a,B),K.push({event:lt,listeners:Et}),lt.data=yt)),vS(K,t,O,a,B)}eg(K,e)})}function tl(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Hr(t,e){for(var a=e+"Capture",s=[];t!==null;){var o=t,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ss(t,a),o!=null&&s.unshift(tl(t,o,u)),o=Ss(t,e),o!=null&&s.push(tl(t,o,u))),t.tag===3)return s;t=t.return}return[]}function TS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ag(t,e,a,s,o){for(var u=e._reactName,m=[];a!==null&&a!==s;){var x=a,E=x.alternate,O=x.stateNode;if(x=x.tag,E!==null&&E===s)break;x!==5&&x!==26&&x!==27||O===null||(E=O,o?(O=Ss(a,u),O!=null&&m.unshift(tl(a,O,E))):o||(O=Ss(a,u),O!=null&&m.push(tl(a,O,E)))),a=a.return}m.length!==0&&t.push({event:e,listeners:m})}var ES=/\r\n?/g,wS=/\u0000|\uFFFD/g;function ig(t){return(typeof t=="string"?t:""+t).replace(ES,`
9
- `).replace(wS,"")}function sg(t,e){return e=ig(e),ig(t)===e}function _t(t,e,a,s,o,u){switch(a){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||bi(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&bi(t,""+s);break;case"className":Xl(t,"class",s);break;case"tabIndex":Xl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Xl(t,a,s);break;case"style":sh(t,s,u);break;case"data":if(e!=="object"){Xl(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=Pl(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(e!=="input"&&_t(t,e,"name",o.name,o,null),_t(t,e,"formEncType",o.formEncType,o,null),_t(t,e,"formMethod",o.formMethod,o,null),_t(t,e,"formTarget",o.formTarget,o,null)):(_t(t,e,"encType",o.encType,o,null),_t(t,e,"method",o.method,o,null),_t(t,e,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=Pl(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=Mn);break;case"onScroll":s!=null&&xt("scroll",t);break;case"onScrollEnd":s!=null&&xt("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=Pl(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":xt("beforetoggle",t),xt("toggle",t),Yl(t,"popover",s);break;case"xlinkActuate":Cn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Cn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Cn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Cn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Cn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Cn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Cn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Yl(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ix.get(a)||a,Yl(t,a,s))}}function Lc(t,e,a,s,o,u){switch(a){case"style":sh(t,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof s=="string"?bi(t,s):(typeof s=="number"||typeof s=="bigint")&&bi(t,""+s);break;case"onScroll":s!=null&&xt("scroll",t);break;case"onScrollEnd":s!=null&&xt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),e=a.slice(2,o?a.length-7:void 0),u=t[H]||null,u=u!=null?u[a]:null,typeof u=="function"&&t.removeEventListener(e,u,o),typeof s=="function")){typeof u!="function"&&u!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,s,o);break t}a in t?t[a]=s:s===!0?t.setAttribute(a,""):Yl(t,a,s)}}}function ye(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xt("error",t),xt("load",t);var s=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var m=a[u];if(m!=null)switch(u){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,u,m,a,null)}}o&&_t(t,e,"srcSet",a.srcSet,a,null),s&&_t(t,e,"src",a.src,a,null);return;case"input":xt("invalid",t);var x=u=m=o=null,E=null,O=null;for(s in a)if(a.hasOwnProperty(s)){var B=a[s];if(B!=null)switch(s){case"name":o=B;break;case"type":m=B;break;case"checked":E=B;break;case"defaultChecked":O=B;break;case"value":u=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:_t(t,e,s,B,a,null)}}eh(t,u,x,E,O,m,o,!1);return;case"select":xt("invalid",t),s=m=u=null;for(o in a)if(a.hasOwnProperty(o)&&(x=a[o],x!=null))switch(o){case"value":u=x;break;case"defaultValue":m=x;break;case"multiple":s=x;default:_t(t,e,o,x,a,null)}e=u,a=m,t.multiple=!!s,e!=null?vi(t,!!s,e,!1):a!=null&&vi(t,!!s,a,!0);return;case"textarea":xt("invalid",t),u=o=s=null;for(m in a)if(a.hasOwnProperty(m)&&(x=a[m],x!=null))switch(m){case"value":s=x;break;case"defaultValue":o=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:_t(t,e,m,x,a,null)}ah(t,s,o,u);return;case"option":for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null)&&(E==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":_t(t,e,E,s,a,null));return;case"dialog":xt("beforetoggle",t),xt("toggle",t),xt("cancel",t),xt("close",t);break;case"iframe":case"object":xt("load",t);break;case"video":case"audio":for(s=0;s<$s.length;s++)xt($s[s],t);break;case"image":xt("error",t),xt("load",t);break;case"details":xt("toggle",t);break;case"embed":case"source":case"link":xt("error",t),xt("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(O in a)if(a.hasOwnProperty(O)&&(s=a[O],s!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,O,s,a,null)}return;default:if(Jo(e)){for(B in a)a.hasOwnProperty(B)&&(s=a[B],s!==void 0&&Lc(t,e,B,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&_t(t,e,x,s,a,null))}function AS(t,e,a,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,x=null,E=null,O=null,B=null;for(k in a){var K=a[k];if(a.hasOwnProperty(k)&&K!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":E=K;default:s.hasOwnProperty(k)||_t(t,e,k,null,s,K)}}for(var _ in s){var k=s[_];if(K=a[_],s.hasOwnProperty(_)&&(k!=null||K!=null))switch(_){case"type":u=k;break;case"name":o=k;break;case"checked":O=k;break;case"defaultChecked":B=k;break;case"value":m=k;break;case"defaultValue":x=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,e));break;default:k!==K&&_t(t,e,_,k,s,K)}}Fo(t,m,x,E,O,B,u,o);return;case"select":k=m=x=_=null;for(u in a)if(E=a[u],a.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":k=E;default:s.hasOwnProperty(u)||_t(t,e,u,null,s,E)}for(o in s)if(u=s[o],E=a[o],s.hasOwnProperty(o)&&(u!=null||E!=null))switch(o){case"value":_=u;break;case"defaultValue":x=u;break;case"multiple":m=u;default:u!==E&&_t(t,e,o,u,s,E)}e=x,a=m,s=k,_!=null?vi(t,!!a,_,!1):!!s!=!!a&&(e!=null?vi(t,!!a,e,!0):vi(t,!!a,a?[]:"",!1));return;case"textarea":k=_=null;for(x in a)if(o=a[x],a.hasOwnProperty(x)&&o!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:_t(t,e,x,null,s,o)}for(m in s)if(o=s[m],u=a[m],s.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":_=o;break;case"defaultValue":k=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&_t(t,e,m,o,s,u)}nh(t,_,k);return;case"option":for(var nt in a)_=a[nt],a.hasOwnProperty(nt)&&_!=null&&!s.hasOwnProperty(nt)&&(nt==="selected"?t.selected=!1:_t(t,e,nt,null,s,_));for(E in s)_=s[E],k=a[E],s.hasOwnProperty(E)&&_!==k&&(_!=null||k!=null)&&(E==="selected"?t.selected=_&&typeof _!="function"&&typeof _!="symbol":_t(t,e,E,_,s,k));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 ut in a)_=a[ut],a.hasOwnProperty(ut)&&_!=null&&!s.hasOwnProperty(ut)&&_t(t,e,ut,null,s,_);for(O in s)if(_=s[O],k=a[O],s.hasOwnProperty(O)&&_!==k&&(_!=null||k!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,e));break;default:_t(t,e,O,_,s,k)}return;default:if(Jo(e)){for(var Vt in a)_=a[Vt],a.hasOwnProperty(Vt)&&_!==void 0&&!s.hasOwnProperty(Vt)&&Lc(t,e,Vt,void 0,s,_);for(B in s)_=s[B],k=a[B],!s.hasOwnProperty(B)||_===k||_===void 0&&k===void 0||Lc(t,e,B,_,s,k);return}}for(var j in a)_=a[j],a.hasOwnProperty(j)&&_!=null&&!s.hasOwnProperty(j)&&_t(t,e,j,null,s,_);for(K in s)_=s[K],k=a[K],!s.hasOwnProperty(K)||_===k||_==null&&k==null||_t(t,e,K,_,s,k)}function lg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function CS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var o=a[s],u=o.transferSize,m=o.initiatorType,x=o.duration;if(u&&x&&lg(m)){for(m=0,x=o.responseEnd,s+=1;s<a.length;s++){var E=a[s],O=E.startTime;if(O>x)break;var B=E.transferSize,K=E.initiatorType;B&&lg(K)&&(E=E.responseEnd,m+=B*(E<x?1:(x-O)/(E-O)))}if(--s,e+=8*(u+m)/(o.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 Uc=null,kc=null;function Gr(t){return t.nodeType===9?t:t.ownerDocument}function rg(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 og(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 Bc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Hc=null;function MS(){var t=window.event;return t&&t.type==="popstate"?t===Hc?!1:(Hc=t,!0):(Hc=null,!1)}var ug=typeof setTimeout=="function"?setTimeout:void 0,NS=typeof clearTimeout=="function"?clearTimeout:void 0,cg=typeof Promise=="function"?Promise:void 0,jS=typeof queueMicrotask=="function"?queueMicrotask:typeof cg<"u"?function(t){return cg.resolve(null).then(t).catch(DS)}:ug;function DS(t){setTimeout(function(){throw t})}function ma(t){return t==="head"}function fg(t,e){var a=e,s=0;do{var o=a.nextSibling;if(t.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(o),Ji(e);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")el(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,el(a);for(var u=a.firstChild;u;){var m=u.nextSibling,x=u.nodeName;u[bs]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=m}}else a==="body"&&el(t.ownerDocument.body);a=o}while(a);Ji(e)}function dg(t,e){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function Gc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Gc(a),Po(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function RS(t,e,a,s){for(;t.nodeType===1;){var o=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[bs])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==o.rel||t.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||t.getAttribute("title")!==(o.title==null?null:o.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(o.src==null?null:o.src)||t.getAttribute("type")!==(o.type==null?null:o.type)||t.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Qe(t.nextSibling),t===null)break}return null}function OS(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Qe(t.nextSibling),t===null))return null;return t}function hg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Qe(t.nextSibling),t===null))return null;return t}function qc(t){return t.data==="$?"||t.data==="$~"}function Yc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function zS(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var s=function(){e(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Qe(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 Xc=null;function mg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Qe(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function pg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function gg(t,e,a){switch(e=Gr(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function el(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Po(t)}var Je=new Map,yg=new Set;function qr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Yn=F.d;F.d={f:_S,r:VS,D:LS,C:US,L:kS,m:BS,X:GS,S:HS,M:qS};function _S(){var t=Yn.f(),e=zr();return t||e}function VS(t){var e=pi(t);e!==null&&e.tag===5&&e.type==="form"?_m(e):Yn.r(t)}var Zi=typeof document>"u"?null:document;function vg(t,e,a){var s=Zi;if(s&&typeof e=="string"&&e){var o=qe(e);o='link[rel="'+t+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),yg.has(o)||(yg.add(o),t={rel:t,crossOrigin:a,href:e},s.querySelector(o)===null&&(e=s.createElement("link"),ye(e,"link",t),ue(e),s.head.appendChild(e)))}}function LS(t){Yn.D(t),vg("dns-prefetch",t,null)}function US(t,e){Yn.C(t,e),vg("preconnect",t,e)}function kS(t,e,a){Yn.L(t,e,a);var s=Zi;if(s&&t&&e){var o='link[rel="preload"][as="'+qe(e)+'"]';e==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+qe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+qe(a.imageSizes)+'"]')):o+='[href="'+qe(t)+'"]';var u=o;switch(e){case"style":u=Fi(t);break;case"script":u=Qi(t)}Je.has(u)||(t=b({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Je.set(u,t),s.querySelector(o)!==null||e==="style"&&s.querySelector(nl(u))||e==="script"&&s.querySelector(al(u))||(e=s.createElement("link"),ye(e,"link",t),ue(e),s.head.appendChild(e)))}}function BS(t,e){Yn.m(t,e);var a=Zi;if(a&&t){var s=e&&typeof e.as=="string"?e.as:"script",o='link[rel="modulepreload"][as="'+qe(s)+'"][href="'+qe(t)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Qi(t)}if(!Je.has(u)&&(t=b({rel:"modulepreload",href:t},e),Je.set(u,t),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(al(u)))return}s=a.createElement("link"),ye(s,"link",t),ue(s),a.head.appendChild(s)}}}function HS(t,e,a){Yn.S(t,e,a);var s=Zi;if(s&&t){var o=gi(s).hoistableStyles,u=Fi(t);e=e||"default";var m=o.get(u);if(!m){var x={loading:0,preload:null};if(m=s.querySelector(nl(u)))x.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Je.get(u))&&Kc(t,a);var E=m=s.createElement("link");ue(E),ye(E,"link",t),E._p=new Promise(function(O,B){E.onload=O,E.onerror=B}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Yr(m,e,s)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(u,m)}}}function GS(t,e){Yn.X(t,e);var a=Zi;if(a&&t){var s=gi(a).hoistableScripts,o=Qi(t),u=s.get(o);u||(u=a.querySelector(al(o)),u||(t=b({src:t,async:!0},e),(e=Je.get(o))&&Pc(t,e),u=a.createElement("script"),ue(u),ye(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function qS(t,e){Yn.M(t,e);var a=Zi;if(a&&t){var s=gi(a).hoistableScripts,o=Qi(t),u=s.get(o);u||(u=a.querySelector(al(o)),u||(t=b({src:t,async:!0,type:"module"},e),(e=Je.get(o))&&Pc(t,e),u=a.createElement("script"),ue(u),ye(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function bg(t,e,a,s){var o=(o=rt.current)?qr(o):null;if(!o)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=Fi(a.href),a=gi(o).hoistableStyles,s=a.get(e),s||(s={type:"style",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Fi(a.href);var u=gi(o).hoistableStyles,m=u.get(t);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,m),(u=o.querySelector(nl(t)))&&!u._p&&(m.instance=u,m.state.loading=5),Je.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Je.set(t,a),u||YS(o,t,a,m.state))),e&&s===null)throw Error(r(528,""));return m}if(e&&s!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Qi(a),a=gi(o).hoistableScripts,s=a.get(e),s||(s={type:"script",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Fi(t){return'href="'+qe(t)+'"'}function nl(t){return'link[rel="stylesheet"]['+t+"]"}function xg(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function YS(t,e,a,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),ye(e,"link",a),ue(e),t.head.appendChild(e))}function Qi(t){return'[src="'+qe(t)+'"]'}function al(t){return"script[async]"+t}function Sg(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+qe(a.href)+'"]');if(s)return e.instance=s,ue(s),s;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),ue(s),ye(s,"style",o),Yr(s,a.precedence,t),e.instance=s;case"stylesheet":o=Fi(a.href);var u=t.querySelector(nl(o));if(u)return e.state.loading|=4,e.instance=u,ue(u),u;s=xg(a),(o=Je.get(o))&&Kc(s,o),u=(t.ownerDocument||t).createElement("link"),ue(u);var m=u;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ye(u,"link",s),e.state.loading|=4,Yr(u,a.precedence,t),e.instance=u;case"script":return u=Qi(a.src),(o=t.querySelector(al(u)))?(e.instance=o,ue(o),o):(s=a,(o=Je.get(u))&&(s=b({},a),Pc(s,o)),t=t.ownerDocument||t,o=t.createElement("script"),ue(o),ye(o,"link",s),t.head.appendChild(o),e.instance=o);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,Yr(s,a.precedence,t));return e.instance}function Yr(t,e,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,u=o,m=0;m<s.length;m++){var x=s[m];if(x.dataset.precedence===e)u=x;else if(u!==o)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Kc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Pc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xr=null;function Tg(t,e,a){if(Xr===null){var s=new Map,o=Xr=new Map;o.set(a,s)}else o=Xr,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),o=0;o<a.length;o++){var u=a[o];if(!(u[bs]||u[$t]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(e)||"";m=t+m;var x=s.get(m);x?x.push(u):s.set(m,[u])}}return s}function Eg(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function XS(t,e,a){if(a===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 wg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function KS(t,e,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Fi(s.href),u=e.querySelector(nl(o));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Kr.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=u,ue(u);return}u=e.ownerDocument||e,s=xg(s),(o=Je.get(o))&&Kc(s,o),u=u.createElement("link"),ue(u);var m=u;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ye(u,"link",s),a.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Kr.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Zc=0;function PS(t,e){return t.stylesheets&&t.count===0&&Zr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Zr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Zc===0&&(Zc=62500*CS());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Zr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Zc?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function Kr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Pr=null;function Zr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Pr=new Map,e.forEach(ZS,t),Pr=null,Kr.call(t))}function ZS(t,e){if(!(e.state.loading&4)){var a=Pr.get(t);if(a)var s=a.get(null);else{a=new Map,Pr.set(t,a);for(var o=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}o=e.instance,m=o.getAttribute("data-precedence"),u=a.get(m)||s,u===s&&a.set(null,o),a.set(m,o),this.count++,s=Kr.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),u?u.parentNode.insertBefore(o,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(o,t.firstChild)),e.state.loading|=4}}var il={$$typeof:U,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function FS(t,e,a,s,o,u,m,x,E){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=gs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.hiddenUpdates=gs(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Ag(t,e,a,s,o,u,m,x,E,O,B,K){return t=new FS(t,e,a,m,E,O,B,K,x),e=1,u===!0&&(e|=24),u=_e(3,null,null,e),t.current=u,u.stateNode=t,e=Cu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:a,cache:e},Du(u),t}function Cg(t){return t?(t=Ci,t):Ci}function Mg(t,e,a,s,o,u){o=Cg(o),s.context===null?s.context=o:s.pendingContext=o,s=aa(e),s.payload={element:a},u=u===void 0?null:u,u!==null&&(s.callback=u),a=ia(t,s,e),a!==null&&(Oe(a,t,e),Ls(a,t,e))}function Ng(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Fc(t,e){Ng(t,e),(t=t.alternate)&&Ng(t,e)}function jg(t){if(t.tag===13||t.tag===31){var e=ka(t,67108864);e!==null&&Oe(e,t,67108864),Fc(t,67108864)}}function Dg(t){if(t.tag===13||t.tag===31){var e=Be();e=tn(e);var a=ka(t,e);a!==null&&Oe(a,t,e),Fc(t,e)}}var Fr=!0;function QS(t,e,a,s){var o=z.T;z.T=null;var u=F.p;try{F.p=2,Qc(t,e,a,s)}finally{F.p=u,z.T=o}}function JS(t,e,a,s){var o=z.T;z.T=null;var u=F.p;try{F.p=8,Qc(t,e,a,s)}finally{F.p=u,z.T=o}}function Qc(t,e,a,s){if(Fr){var o=Jc(s);if(o===null)Vc(t,e,s,Qr,a),Og(t,s);else if(IS(o,t,e,a,s))s.stopPropagation();else if(Og(t,s),e&4&&-1<WS.indexOf(t)){for(;o!==null;){var u=pi(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=An(u.pendingLanes);if(m!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-qt(m);x.entanglements[1]|=E,m&=~E}yn(u),(Dt&6)===0&&(Rr=It()+500,Is(0))}}break;case 31:case 13:x=ka(u,2),x!==null&&Oe(x,u,2),zr(),Fc(u,2)}if(u=Jc(s),u===null&&Vc(t,e,s,Qr,a),u===o)break;o=u}o!==null&&s.stopPropagation()}else Vc(t,e,s,null,a)}}function Jc(t){return t=Io(t),Wc(t)}var Qr=null;function Wc(t){if(Qr=null,t=mi(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=d(e),t!==null)return t;t=null}else if(a===31){if(t=h(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Qr=t,null}function Rg(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(Xo()){case ri:return 2;case _l:return 8;case Da:case oi:return 32;case Ra:return 268435456;default:return 32}default:return 32}}var Ic=!1,pa=null,ga=null,ya=null,sl=new Map,ll=new Map,va=[],WS="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 Og(t,e){switch(t){case"focusin":case"focusout":pa=null;break;case"dragenter":case"dragleave":ga=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":sl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ll.delete(e.pointerId)}}function rl(t,e,a,s,o,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:a,eventSystemFlags:s,nativeEvent:u,targetContainers:[o]},e!==null&&(e=pi(e),e!==null&&jg(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function IS(t,e,a,s,o){switch(e){case"focusin":return pa=rl(pa,t,e,a,s,o),!0;case"dragenter":return ga=rl(ga,t,e,a,s,o),!0;case"mouseover":return ya=rl(ya,t,e,a,s,o),!0;case"pointerover":var u=o.pointerId;return sl.set(u,rl(sl.get(u)||null,t,e,a,s,o)),!0;case"gotpointercapture":return u=o.pointerId,ll.set(u,rl(ll.get(u)||null,t,e,a,s,o)),!0}return!1}function zg(t){var e=mi(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=d(a),e!==null){t.blockedOn=e,Gl(t.priority,function(){Dg(a)});return}}else if(e===31){if(e=h(a),e!==null){t.blockedOn=e,Gl(t.priority,function(){Dg(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Jr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Jc(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Wo=s,a.target.dispatchEvent(s),Wo=null}else return e=pi(a),e!==null&&jg(e),t.blockedOn=a,!1;e.shift()}return!0}function _g(t,e,a){Jr(t)&&a.delete(e)}function $S(){Ic=!1,pa!==null&&Jr(pa)&&(pa=null),ga!==null&&Jr(ga)&&(ga=null),ya!==null&&Jr(ya)&&(ya=null),sl.forEach(_g),ll.forEach(_g)}function Wr(t,e){t.blockedOn===e&&(t.blockedOn=null,Ic||(Ic=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$S)))}var Ir=null;function Vg(t){Ir!==t&&(Ir=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ir===t&&(Ir=null);for(var e=0;e<t.length;e+=3){var a=t[e],s=t[e+1],o=t[e+2];if(typeof s!="function"){if(Wc(s||a)===null)continue;break}var u=pi(a);u!==null&&(t.splice(e,3),e-=3,Ju(u,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Ji(t){function e(E){return Wr(E,t)}pa!==null&&Wr(pa,t),ga!==null&&Wr(ga,t),ya!==null&&Wr(ya,t),sl.forEach(e),ll.forEach(e);for(var a=0;a<va.length;a++){var s=va[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<va.length&&(a=va[0],a.blockedOn===null);)zg(a),a.blockedOn===null&&va.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],u=a[s+1],m=o[H]||null;if(typeof u=="function")m||Vg(a);else if(m){var x=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[H]||null)x=m.formAction;else if(Wc(o)!==null)continue}else x=m.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),Vg(a)}}}function Lg(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function e(){o!==null&&(o(),o=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),o!==null&&(o(),o=null)}}}function $c(t){this._internalRoot=t}$r.prototype.render=$c.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,s=Be();Mg(a,s,t,e,null,null)},$r.prototype.unmount=$c.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Mg(t.current,2,null,t,null,null),zr(),e[ct]=null}};function $r(t){this._internalRoot=t}$r.prototype.unstable_scheduleHydration=function(t){if(t){var e=hi();t={blockedOn:null,target:t,priority:e};for(var a=0;a<va.length&&e!==0&&e<va[a].priority;a++);va.splice(a,0,t),a===0&&zg(t)}};var Ug=i.version;if(Ug!=="19.2.4")throw Error(r(527,Ug,"19.2.4"));F.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var t2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var to=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!to.isDisabled&&to.supportsFiber)try{Zn=to.inject(t2),Kt=to}catch{}}return ul.createRoot=function(t,e){if(!c(t))throw Error(r(299));var a=!1,s="",o=Xm,u=Km,m=Pm;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(o=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=Ag(t,1,!1,null,null,a,s,null,o,u,m,Lg),t[ct]=e.current,_c(t),new $c(e)},ul.hydrateRoot=function(t,e,a){if(!c(t))throw Error(r(299));var s=!1,o="",u=Xm,m=Km,x=Pm,E=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(E=a.formState)),e=Ag(t,1,!0,e,a??null,s,o,E,u,m,x,Lg),e.context=Cg(null),a=e.current,s=Be(),s=tn(s),o=aa(s),o.callback=null,ia(a,o,s),a=s,e.current.lanes=a,Oa(e,a),yn(e),t[ct]=e.current,_c(t),new $r(e)},ul.version="19.2.4",ul}var Zg;function c2(){if(Zg)return nf.exports;Zg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),nf.exports=u2(),nf.exports}var f2=c2();const d2=ud(f2);class h2 extends T.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}const Gv=(...n)=>n.filter((i,l,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===l).join(" ").trim();const m2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const p2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,r)=>r?r.toUpperCase():l.toLowerCase());const Fg=n=>{const i=p2(n);return i.charAt(0).toUpperCase()+i.slice(1)};var g2={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 y2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const v2=T.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...h},g)=>T.createElement("svg",{ref:g,...g2,width:i,height:i,stroke:n,strokeWidth:r?Number(l)*24/Number(i):l,className:Gv("lucide",c),...!f&&!y2(h)&&{"aria-hidden":"true"},...h},[...d.map(([p,v])=>T.createElement(p,v)),...Array.isArray(f)?f:[f]]));const Qt=(n,i)=>{const l=T.forwardRef(({className:r,...c},f)=>T.createElement(v2,{ref:f,iconNode:i,className:Gv(`lucide-${m2(Fg(n))}`,`lucide-${n}`,r),...c}));return l.displayName=Fg(n),l};const b2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],vn=Qt("arrow-right",b2);const x2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],qv=Qt("arrow-up-right",x2);const S2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],T2=Qt("bell",S2);const E2=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],w2=Qt("book-open",E2);const A2=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],C2=Qt("brain",A2);const M2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cl=Qt("check",M2);const N2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],wl=Qt("chevron-down",N2);const j2=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],D2=Qt("clipboard-paste",j2);const R2=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],O2=Qt("ellipsis",R2);const z2=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],_2=Qt("external-link",z2);const V2=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Yv=Qt("file-text",V2);const L2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],U2=Qt("layout-dashboard",L2);const k2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wi=Qt("loader-circle",k2);const B2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],H2=Qt("menu",B2);const G2=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],q2=Qt("message-square",G2);const Y2=[["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"}]],X2=Qt("mic",Y2);const K2=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],P2=Qt("refresh-cw",K2);const Z2=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],F2=Qt("scroll-text",Z2);const Q2=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Xv=Qt("settings",Q2);const J2=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],W2=Qt("sliders-horizontal",J2);const I2=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],$2=Qt("wand-sparkles",I2);const tT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kv=Qt("x",tT),eT=[{label:"HOME",items:[{label:"Overview",icon:U2,href:"#",active:!0},{label:"Conversations",icon:q2,href:"#"},{label:"Models",icon:C2,href:"#"},{label:"Knowledge",icon:w2,href:"#"}]},{label:"SYSTEM",items:[{label:"Logs",icon:F2,href:"#"},{label:"Settings",icon:Xv,href:"#"}]}],nT=[{model:"GPT-4o",days:[3,2,4,3,1,2,0]},{model:"Claude",days:[2,4,3,4,2,1,1]},{model:"Local",days:[1,1,2,1,3,4,2]}],aT=["M","T","W","T","F","S","S"],Qg=["#2a2a2a","#1e3a5f","#2c5a8f","#3578bf","#3C8FFF"],iT=[{label:"< 10",level:1},{label:"10–50",level:2},{label:"> 50",level:3},{label:"100+",level:4},{label:"None",level:0}];function Pv(n){var i,l,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(l=Pv(n[i]))&&(r&&(r+=" "),r+=l)}else for(l in n)n[l]&&(r&&(r+=" "),r+=l);return r}function Zv(){for(var n,i,l=0,r="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=Pv(n))&&(r&&(r+=" "),r+=i);return r}const sT=(n,i)=>{const l=new Array(n.length+i.length);for(let r=0;r<n.length;r++)l[r]=n[r];for(let r=0;r<i.length;r++)l[n.length+r]=i[r];return l},lT=(n,i)=>({classGroupId:n,validator:i}),Fv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),To="-",Jg=[],rT="arbitrary..",oT=n=>{const i=cT(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return uT(d);const h=d.split(To),g=h[0]===""&&h.length>1?1:0;return Qv(h,g,i)},getConflictingClassGroupIds:(d,h)=>{if(h){const g=r[d],p=l[d];return g?p?sT(p,g):g:p||Jg}return l[d]||Jg}}},Qv=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const p=Qv(n,i+1,f);if(p)return p}const d=l.validators;if(d===null)return;const h=i===0?n.join(To):n.slice(i).join(To),g=d.length;for(let p=0;p<g;p++){const v=d[p];if(v.validator(h))return v.classGroupId}},uT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),r=i.slice(0,l);return r?rT+r:void 0})(),cT=n=>{const{theme:i,classGroups:l}=n;return fT(l,i)},fT=(n,i)=>{const l=Fv();for(const r in n){const c=n[r];cd(c,l,r,i)}return l},cd=(n,i,l,r)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];dT(d,i,l,r)}},dT=(n,i,l,r)=>{if(typeof n=="string"){hT(n,i,l);return}if(typeof n=="function"){mT(n,i,l,r);return}pT(n,i,l,r)},hT=(n,i,l)=>{const r=n===""?i:Jv(i,n);r.classGroupId=l},mT=(n,i,l,r)=>{if(gT(n)){cd(n(r),i,l,r);return}i.validators===null&&(i.validators=[]),i.validators.push(lT(l,n))},pT=(n,i,l,r)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[h,g]=c[d];cd(g,Jv(i,h),l,r)}},Jv=(n,i)=>{let l=n;const r=i.split(To),c=r.length;for(let f=0;f<c;f++){const d=r[f];let h=l.nextPart.get(d);h||(h=Fv(),l.nextPart.set(d,h)),l=h}return l},gT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,yT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),r=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>n&&(i=0,r=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},Vf="!",Wg=":",vT=[],Ig=(n,i,l,r,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:r,isExternal:c}),bT=n=>{const{prefix:i,experimentalParseClassName:l}=n;let r=c=>{const f=[];let d=0,h=0,g=0,p;const v=c.length;for(let M=0;M<v;M++){const N=c[M];if(d===0&&h===0){if(N===Wg){f.push(c.slice(g,M)),g=M+1;continue}if(N==="/"){p=M;continue}}N==="["?d++:N==="]"?d--:N==="("?h++:N===")"&&h--}const b=f.length===0?c:c.slice(g);let S=b,A=!1;b.endsWith(Vf)?(S=b.slice(0,-1),A=!0):b.startsWith(Vf)&&(S=b.slice(1),A=!0);const D=p&&p>g?p-g:void 0;return Ig(f,A,S,D)};if(i){const c=i+Wg,f=r;r=d=>d.startsWith(c)?f(d.slice(c.length)):Ig(vT,!1,d,void 0,!0)}if(l){const c=r;r=f=>l({className:f,parseClassName:c})}return r},xT=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,r)=>{i.set(l,1e6+r)}),l=>{const r=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],h=d[0]==="[",g=i.has(d);h||g?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(d)):c.push(d)}return c.length>0&&(c.sort(),r.push(...c)),r}},ST=n=>({cache:yT(n.cacheSize),parseClassName:bT(n),sortModifiers:xT(n),...oT(n)}),TT=/\s+/,ET=(n,i)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],h=n.trim().split(TT);let g="";for(let p=h.length-1;p>=0;p-=1){const v=h[p],{isExternal:b,modifiers:S,hasImportantModifier:A,baseClassName:D,maybePostfixModifierPosition:M}=l(v);if(b){g=v+(g.length>0?" "+g:g);continue}let N=!!M,V=r(N?D.substring(0,M):D);if(!V){if(!N){g=v+(g.length>0?" "+g:g);continue}if(V=r(D),!V){g=v+(g.length>0?" "+g:g);continue}N=!1}const q=S.length===0?"":S.length===1?S[0]:f(S).join(":"),U=A?q+Vf:q,G=U+V;if(d.indexOf(G)>-1)continue;d.push(G);const P=c(V,N);for(let W=0;W<P.length;++W){const Z=P[W];d.push(U+Z)}g=v+(g.length>0?" "+g:g)}return g},wT=(...n)=>{let i=0,l,r,c="";for(;i<n.length;)(l=n[i++])&&(r=Wv(l))&&(c&&(c+=" "),c+=r);return c},Wv=n=>{if(typeof n=="string")return n;let i,l="";for(let r=0;r<n.length;r++)n[r]&&(i=Wv(n[r]))&&(l&&(l+=" "),l+=i);return l},AT=(n,...i)=>{let l,r,c,f;const d=g=>{const p=i.reduce((v,b)=>b(v),n());return l=ST(p),r=l.cache.get,c=l.cache.set,f=h,h(g)},h=g=>{const p=r(g);if(p)return p;const v=ET(g,l);return c(g,v),v};return f=d,(...g)=>f(wT(...g))},CT=[],le=n=>{const i=l=>l[n]||CT;return i.isThemeGetter=!0,i},Iv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$v=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,NT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,RT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=n=>MT.test(n),vt=n=>!!n&&!Number.isNaN(Number(n)),Sa=n=>!!n&&Number.isInteger(Number(n)),rf=n=>n.endsWith("%")&&vt(n.slice(0,-1)),Xn=n=>NT.test(n),t0=()=>!0,zT=n=>jT.test(n)&&!DT.test(n),fd=()=>!1,_T=n=>RT.test(n),VT=n=>OT.test(n),LT=n=>!at(n)&&!st(n),UT=n=>Ma(n,a0,fd),at=n=>Iv.test(n),Wa=n=>Ma(n,i0,zT),$g=n=>Ma(n,KT,vt),kT=n=>Ma(n,l0,t0),BT=n=>Ma(n,s0,fd),ty=n=>Ma(n,e0,fd),HT=n=>Ma(n,n0,VT),eo=n=>Ma(n,r0,_T),st=n=>$v.test(n),fl=n=>si(n,i0),GT=n=>si(n,s0),ey=n=>si(n,e0),qT=n=>si(n,a0),YT=n=>si(n,n0),no=n=>si(n,r0,!0),XT=n=>si(n,l0,!0),Ma=(n,i,l)=>{const r=Iv.exec(n);return r?r[1]?i(r[1]):l(r[2]):!1},si=(n,i,l=!1)=>{const r=$v.exec(n);return r?r[1]?i(r[1]):l:!1},e0=n=>n==="position"||n==="percentage",n0=n=>n==="image"||n==="url",a0=n=>n==="length"||n==="size"||n==="bg-size",i0=n=>n==="length",KT=n=>n==="number",s0=n=>n==="family-name",l0=n=>n==="number"||n==="weight",r0=n=>n==="shadow",PT=()=>{const n=le("color"),i=le("font"),l=le("text"),r=le("font-weight"),c=le("tracking"),f=le("leading"),d=le("breakpoint"),h=le("container"),g=le("spacing"),p=le("radius"),v=le("shadow"),b=le("inset-shadow"),S=le("text-shadow"),A=le("drop-shadow"),D=le("blur"),M=le("perspective"),N=le("aspect"),V=le("ease"),q=le("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...G(),st,at],W=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],L=()=>[st,at,g],tt=()=>[xa,"full","auto",...L()],mt=()=>[Sa,"none","subgrid",st,at],St=()=>["auto",{span:["full",Sa,st,at]},Sa,st,at],At=()=>[Sa,"auto",st,at],jt=()=>["auto","min","max","fr",st,at],Xt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ct=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...L()],F=()=>[xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],$=()=>[xa,"screen","full","dvw","lvw","svw","min","max","fit",...L()],dt=()=>[xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],Q=()=>[n,st,at],w=()=>[...G(),ey,ty,{position:[st,at]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",qT,UT,{size:[st,at]}],et=()=>[rf,fl,Wa],I=()=>["","none","full",p,st,at],rt=()=>["",vt,fl,Wa],gt=()=>["solid","dashed","dotted","double"],Ht=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ft=()=>[vt,rf,ey,ty],oe=()=>["","none",D,st,at],He=()=>["none",vt,st,at],de=()=>["none",vt,st,at],fn=()=>[vt,st,at],Ee=()=>[xa,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[t0],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[LT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",vt],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xa,at,st,N]}],container:["container"],columns:[{columns:[vt,at,st,h]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:tt()}],"inset-x":[{"inset-x":tt()}],"inset-y":[{"inset-y":tt()}],start:[{"inset-s":tt(),start:tt()}],end:[{"inset-e":tt(),end:tt()}],"inset-bs":[{"inset-bs":tt()}],"inset-be":[{"inset-be":tt()}],top:[{top:tt()}],right:[{right:tt()}],bottom:[{bottom:tt()}],left:[{left:tt()}],visibility:["visible","invisible","collapse"],z:[{z:[Sa,"auto",st,at]}],basis:[{basis:[xa,"full","auto",h,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[vt,xa,"auto","initial","none",at]}],grow:[{grow:["",vt,st,at]}],shrink:[{shrink:["",vt,st,at]}],order:[{order:[Sa,"first","last","none",st,at]}],"grid-cols":[{"grid-cols":mt()}],"col-start-end":[{col:St()}],"col-start":[{"col-start":At()}],"col-end":[{"col-end":At()}],"grid-rows":[{"grid-rows":mt()}],"row-start-end":[{row:St()}],"row-start":[{"row-start":At()}],"row-end":[{"row-end":At()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":jt()}],"auto-rows":[{"auto-rows":jt()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Xt(),"normal"]}],"justify-items":[{"justify-items":[...Ct(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ct()]}],"align-content":[{content:["normal",...Xt()]}],"align-items":[{items:[...Ct(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ct(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xt()}],"place-items":[{"place-items":[...Ct(),"baseline"]}],"place-self":[{"place-self":["auto",...Ct()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...dt()]}],"min-block-size":[{"min-block":["auto",...dt()]}],"max-block-size":[{"max-block":["none",...dt()]}],w:[{w:[h,"screen",...F()]}],"min-w":[{"min-w":[h,"screen","none",...F()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",l,fl,Wa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,XT,kT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rf,at]}],"font-family":[{font:[GT,BT,i]}],"font-features":[{"font-features":[at]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,st,at]}],"line-clamp":[{"line-clamp":[vt,"none",st,$g]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",st,at]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",st,at]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...gt(),"wavy"]}],"text-decoration-thickness":[{decoration:[vt,"from-font","auto",st,Wa]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[vt,"auto",st,at]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",st,at]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",st,at]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Sa,st,at],radial:["",st,at],conic:[Sa,st,at]},YT,HT]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:et()}],"gradient-via-pos":[{via:et()}],"gradient-to-pos":[{to:et()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:rt()}],"border-w-x":[{"border-x":rt()}],"border-w-y":[{"border-y":rt()}],"border-w-s":[{"border-s":rt()}],"border-w-e":[{"border-e":rt()}],"border-w-bs":[{"border-bs":rt()}],"border-w-be":[{"border-be":rt()}],"border-w-t":[{"border-t":rt()}],"border-w-r":[{"border-r":rt()}],"border-w-b":[{"border-b":rt()}],"border-w-l":[{"border-l":rt()}],"divide-x":[{"divide-x":rt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":rt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...gt(),"hidden","none"]}],"divide-style":[{divide:[...gt(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...gt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[vt,st,at]}],"outline-w":[{outline:["",vt,fl,Wa]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",v,no,eo]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",b,no,eo]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[vt,Wa]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":rt()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",S,no,eo]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[vt,st,at]}],"mix-blend":[{"mix-blend":[...Ht(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ht()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[vt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ft()}],"mask-image-linear-to-pos":[{"mask-linear-to":ft()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":ft()}],"mask-image-t-to-pos":[{"mask-t-to":ft()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":ft()}],"mask-image-r-to-pos":[{"mask-r-to":ft()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":ft()}],"mask-image-b-to-pos":[{"mask-b-to":ft()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":ft()}],"mask-image-l-to-pos":[{"mask-l-to":ft()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":ft()}],"mask-image-x-to-pos":[{"mask-x-to":ft()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":ft()}],"mask-image-y-to-pos":[{"mask-y-to":ft()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[st,at]}],"mask-image-radial-from-pos":[{"mask-radial-from":ft()}],"mask-image-radial-to-pos":[{"mask-radial-to":ft()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[vt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ft()}],"mask-image-conic-to-pos":[{"mask-conic-to":ft()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",st,at]}],filter:[{filter:["","none",st,at]}],blur:[{blur:oe()}],brightness:[{brightness:[vt,st,at]}],contrast:[{contrast:[vt,st,at]}],"drop-shadow":[{"drop-shadow":["","none",A,no,eo]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",vt,st,at]}],"hue-rotate":[{"hue-rotate":[vt,st,at]}],invert:[{invert:["",vt,st,at]}],saturate:[{saturate:[vt,st,at]}],sepia:[{sepia:["",vt,st,at]}],"backdrop-filter":[{"backdrop-filter":["","none",st,at]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[vt,st,at]}],"backdrop-contrast":[{"backdrop-contrast":[vt,st,at]}],"backdrop-grayscale":[{"backdrop-grayscale":["",vt,st,at]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[vt,st,at]}],"backdrop-invert":[{"backdrop-invert":["",vt,st,at]}],"backdrop-opacity":[{"backdrop-opacity":[vt,st,at]}],"backdrop-saturate":[{"backdrop-saturate":[vt,st,at]}],"backdrop-sepia":[{"backdrop-sepia":["",vt,st,at]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",st,at]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[vt,"initial",st,at]}],ease:[{ease:["linear","initial",V,st,at]}],delay:[{delay:[vt,st,at]}],animate:[{animate:["none",q,st,at]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,st,at]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:fn()}],"skew-x":[{"skew-x":fn()}],"skew-y":[{"skew-y":fn()}],transform:[{transform:[st,at,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",st,at]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",st,at]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[vt,fl,Wa,$g]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ZT=AT(PT);function un(...n){return ZT(Zv(n))}function FT(){const n=new Date().getHours();return n<12?`Good
10
- Morning!`:n<18?`Good
11
- Afternoon!`:`Good
12
- Evening!`}function o0(){return y.jsxs("aside",{className:"flex flex-col h-full w-72 p-6 pt-8",children:[y.jsxs("div",{className:"mb-10",children:[y.jsx("h1",{className:"text-5xl font-bold leading-[1.1] whitespace-pre-line",children:FT()}),y.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"Your AI assistant dashboard"})]}),y.jsx("nav",{className:"flex-1 space-y-8",children:eT.map(n=>y.jsxs("div",{children:[y.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground mb-3 block",children:n.label}),y.jsx("div",{className:"space-y-1",children:n.items.map(i=>y.jsxs("a",{href:i.href,className:un("flex items-center gap-3 px-4 py-2.5 rounded-full text-sm transition-colors",i.active?"bg-foreground text-background font-medium":"text-muted-foreground hover:text-foreground"),children:[y.jsx(i.icon,{className:"h-4 w-4"}),i.label,i.active&&y.jsx(wl,{className:"h-4 w-4 ml-auto"})]},i.label))})]},n.label))})]})}const ny=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ay=Zv,QT=(n,i)=>l=>{var r;if(i?.variants==null)return ay(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(p=>{const v=l?.[p],b=f?.[p];if(v===null)return null;const S=ny(v)||ny(b);return c[p][S]}),h=l&&Object.entries(l).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),g=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((p,v)=>{let{class:b,className:S,...A}=v;return Object.entries(A).every(D=>{let[M,N]=D;return Array.isArray(N)?N.includes({...f,...h}[M]):{...f,...h}[M]===N})?[...p,b,S]:p},[]);return ay(n,d,g,l?.class,l?.className)};var u0=Hv();const JT=ud(u0);function iy(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function c0(...n){return i=>{let l=!1;const r=n.map(c=>{const f=iy(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():iy(n[c],null)}}}}function Tn(...n){return T.useCallback(c0(...n),n)}function Eo(n){const i=WT(n),l=T.forwardRef((r,c)=>{const{children:f,...d}=r,h=T.Children.toArray(f),g=h.find($T);if(g){const p=g.props.children,v=h.map(b=>b===g?T.Children.count(p)>1?T.Children.only(null):T.isValidElement(p)?p.props.children:null:b);return y.jsx(i,{...d,ref:c,children:T.isValidElement(p)?T.cloneElement(p,void 0,v):null})}return y.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}function WT(n){const i=T.forwardRef((l,r)=>{const{children:c,...f}=l;if(T.isValidElement(c)){const d=eE(c),h=tE(f,c.props);return c.type!==T.Fragment&&(h.ref=r?c0(r,d):d),T.cloneElement(c,h)}return T.Children.count(c)>1?T.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var IT=Symbol("radix.slottable");function $T(n){return T.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===IT}function tE(n,i){const l={...i};for(const r in i){const c=n[r],f=i[r];/^on[A-Z]/.test(r)?c&&f?l[r]=(...h)=>{const g=f(...h);return c(...h),g}:c&&(l[r]=c):r==="style"?l[r]={...c,...f}:r==="className"&&(l[r]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function eE(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var nE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fe=nE.reduce((n,i)=>{const l=Eo(`Primitive.${i}`),r=T.forwardRef((c,f)=>{const{asChild:d,...h}=c,g=d?l:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(g,{...h,ref:f})});return r.displayName=`Primitive.${i}`,{...n,[i]:r}},{});function aE(n,i){n&&u0.flushSync(()=>n.dispatchEvent(i))}function iE(n,i){const l=T.createContext(i),r=f=>{const{children:d,...h}=f,g=T.useMemo(()=>h,Object.values(h));return y.jsx(l.Provider,{value:g,children:d})};r.displayName=n+"Provider";function c(f){const d=T.useContext(l);if(d)return d;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[r,c]}function Al(n,i=[]){let l=[];function r(f,d){const h=T.createContext(d),g=l.length;l=[...l,d];const p=b=>{const{scope:S,children:A,...D}=b,M=S?.[n]?.[g]||h,N=T.useMemo(()=>D,Object.values(D));return y.jsx(M.Provider,{value:N,children:A})};p.displayName=f+"Provider";function v(b,S){const A=S?.[n]?.[g]||h,D=T.useContext(A);if(D)return D;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[p,v]}const c=()=>{const f=l.map(d=>T.createContext(d));return function(h){const g=h?.[n]||f;return T.useMemo(()=>({[`__scope${n}`]:{...h,[n]:g}}),[h,g])}};return c.scopeName=n,[r,sE(c,...i)]}function sE(...n){const i=n[0];if(n.length===1)return i;const l=()=>{const r=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=r.reduce((h,{useScope:g,scopeName:p})=>{const b=g(f)[`__scope${p}`];return{...h,...b}},{});return T.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return l.scopeName=i.scopeName,l}function lE(n){const i=n+"CollectionProvider",[l,r]=Al(i),[c,f]=l(i,{collectionRef:{current:null},itemMap:new Map}),d=M=>{const{scope:N,children:V}=M,q=Kn.useRef(null),U=Kn.useRef(new Map).current;return y.jsx(c,{scope:N,itemMap:U,collectionRef:q,children:V})};d.displayName=i;const h=n+"CollectionSlot",g=Eo(h),p=Kn.forwardRef((M,N)=>{const{scope:V,children:q}=M,U=f(h,V),G=Tn(N,U.collectionRef);return y.jsx(g,{ref:G,children:q})});p.displayName=h;const v=n+"CollectionItemSlot",b="data-radix-collection-item",S=Eo(v),A=Kn.forwardRef((M,N)=>{const{scope:V,children:q,...U}=M,G=Kn.useRef(null),P=Tn(N,G),W=f(v,V);return Kn.useEffect(()=>(W.itemMap.set(G,{ref:G,...U}),()=>{W.itemMap.delete(G)})),y.jsx(S,{[b]:"",ref:P,children:q})});A.displayName=v;function D(M){const N=f(n+"CollectionConsumer",M);return Kn.useCallback(()=>{const q=N.collectionRef.current;if(!q)return[];const U=Array.from(q.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((W,Z)=>U.indexOf(W.ref.current)-U.indexOf(Z.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:d,Slot:p,ItemSlot:A},D,r]}function be(n,i,{checkForDefaultPrevented:l=!0}={}){return function(c){if(n?.(c),l===!1||!c.defaultPrevented)return i?.(c)}}var Aa=globalThis?.document?T.useLayoutEffect:()=>{},rE=Bv[" useInsertionEffect ".trim().toString()]||Aa;function dd({prop:n,defaultProp:i,onChange:l=()=>{},caller:r}){const[c,f,d]=oE({defaultProp:i,onChange:l}),h=n!==void 0,g=h?n:c;{const v=T.useRef(n!==void 0);T.useEffect(()=>{const b=v.current;b!==h&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,r])}const p=T.useCallback(v=>{if(h){const b=uE(v)?v(n):v;b!==n&&d.current?.(b)}else f(v)},[h,n,f,d]);return[g,p]}function oE({defaultProp:n,onChange:i}){const[l,r]=T.useState(n),c=T.useRef(l),f=T.useRef(i);return rE(()=>{f.current=i},[i]),T.useEffect(()=>{c.current!==l&&(f.current?.(l),c.current=l)},[l,c]),[l,r,f]}function uE(n){return typeof n=="function"}function cE(n,i){return T.useReducer((l,r)=>i[l][r]??l,n)}var Cl=n=>{const{present:i,children:l}=n,r=fE(i),c=typeof l=="function"?l({present:r.isPresent}):T.Children.only(l),f=Tn(r.ref,dE(c));return typeof l=="function"||r.isPresent?T.cloneElement(c,{ref:f}):null};Cl.displayName="Presence";function fE(n){const[i,l]=T.useState(),r=T.useRef(null),c=T.useRef(n),f=T.useRef("none"),d=n?"mounted":"unmounted",[h,g]=cE(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const p=ao(r.current);f.current=h==="mounted"?p:"none"},[h]),Aa(()=>{const p=r.current,v=c.current;if(v!==n){const S=f.current,A=ao(p);n?g("MOUNT"):A==="none"||p?.display==="none"?g("UNMOUNT"):g(v&&S!==A?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,g]),Aa(()=>{if(i){let p;const v=i.ownerDocument.defaultView??window,b=A=>{const M=ao(r.current).includes(CSS.escape(A.animationName));if(A.target===i&&M&&(g("ANIMATION_END"),!c.current)){const N=i.style.animationFillMode;i.style.animationFillMode="forwards",p=v.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=N)})}},S=A=>{A.target===i&&(f.current=ao(r.current))};return i.addEventListener("animationstart",S),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{v.clearTimeout(p),i.removeEventListener("animationstart",S),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[i,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:T.useCallback(p=>{r.current=p?getComputedStyle(p):null,l(p)},[])}}function ao(n){return n?.animationName||"none"}function dE(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var hE=Bv[" useId ".trim().toString()]||(()=>{}),mE=0;function ml(n){const[i,l]=T.useState(hE());return Aa(()=>{l(r=>r??String(mE++))},[n]),n||(i?`radix-${i}`:"")}var pE=T.createContext(void 0);function f0(n){const i=T.useContext(pE);return n||i||"ltr"}function ai(n){const i=T.useRef(n);return T.useEffect(()=>{i.current=n}),T.useMemo(()=>(...l)=>i.current?.(...l),[])}function gE(n,i=globalThis?.document){const l=ai(n);T.useEffect(()=>{const r=c=>{c.key==="Escape"&&l(c)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[l,i])}var yE="DismissableLayer",Lf="dismissableLayer.update",vE="dismissableLayer.pointerDownOutside",bE="dismissableLayer.focusOutside",sy,d0=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h0=T.forwardRef((n,i)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...g}=n,p=T.useContext(d0),[v,b]=T.useState(null),S=v?.ownerDocument??globalThis?.document,[,A]=T.useState({}),D=Tn(i,Z=>b(Z)),M=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),V=M.indexOf(N),q=v?M.indexOf(v):-1,U=p.layersWithOutsidePointerEventsDisabled.size>0,G=q>=V,P=TE(Z=>{const L=Z.target,tt=[...p.branches].some(mt=>mt.contains(L));!G||tt||(c?.(Z),d?.(Z),Z.defaultPrevented||h?.())},S),W=EE(Z=>{const L=Z.target;[...p.branches].some(mt=>mt.contains(L))||(f?.(Z),d?.(Z),Z.defaultPrevented||h?.())},S);return gE(Z=>{q===p.layers.size-1&&(r?.(Z),!Z.defaultPrevented&&h&&(Z.preventDefault(),h()))},S),T.useEffect(()=>{if(v)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(sy=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),ly(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=sy)}},[v,S,l,p]),T.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),ly())},[v,p]),T.useEffect(()=>{const Z=()=>A({});return document.addEventListener(Lf,Z),()=>document.removeEventListener(Lf,Z)},[]),y.jsx(fe.div,{...g,ref:D,style:{pointerEvents:U?G?"auto":"none":void 0,...n.style},onFocusCapture:be(n.onFocusCapture,W.onFocusCapture),onBlurCapture:be(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:be(n.onPointerDownCapture,P.onPointerDownCapture)})});h0.displayName=yE;var xE="DismissableLayerBranch",SE=T.forwardRef((n,i)=>{const l=T.useContext(d0),r=T.useRef(null),c=Tn(i,r);return T.useEffect(()=>{const f=r.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),y.jsx(fe.div,{...n,ref:c})});SE.displayName=xE;function TE(n,i=globalThis?.document){const l=ai(n),r=T.useRef(!1),c=T.useRef(()=>{});return T.useEffect(()=>{const f=h=>{if(h.target&&!r.current){let g=function(){m0(vE,l,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",c.current),c.current=g,i.addEventListener("click",c.current,{once:!0})):g()}else i.removeEventListener("click",c.current);r.current=!1},d=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),i.removeEventListener("pointerdown",f),i.removeEventListener("click",c.current)}},[i,l]),{onPointerDownCapture:()=>r.current=!0}}function EE(n,i=globalThis?.document){const l=ai(n),r=T.useRef(!1);return T.useEffect(()=>{const c=f=>{f.target&&!r.current&&m0(bE,l,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",c),()=>i.removeEventListener("focusin",c)},[i,l]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ly(){const n=new CustomEvent(Lf);document.dispatchEvent(n)}function m0(n,i,l,{discrete:r}){const c=l.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});i&&c.addEventListener(n,i,{once:!0}),r?aE(c,f):c.dispatchEvent(f)}var of="focusScope.autoFocusOnMount",uf="focusScope.autoFocusOnUnmount",ry={bubbles:!1,cancelable:!0},wE="FocusScope",p0=T.forwardRef((n,i)=>{const{loop:l=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...d}=n,[h,g]=T.useState(null),p=ai(c),v=ai(f),b=T.useRef(null),S=Tn(i,M=>g(M)),A=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let M=function(U){if(A.paused||!h)return;const G=U.target;h.contains(G)?b.current=G:Ta(b.current,{select:!0})},N=function(U){if(A.paused||!h)return;const G=U.relatedTarget;G!==null&&(h.contains(G)||Ta(b.current,{select:!0}))},V=function(U){if(document.activeElement===document.body)for(const P of U)P.removedNodes.length>0&&Ta(h)};document.addEventListener("focusin",M),document.addEventListener("focusout",N);const q=new MutationObserver(V);return h&&q.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",N),q.disconnect()}}},[r,h,A.paused]),T.useEffect(()=>{if(h){uy.add(A);const M=document.activeElement;if(!h.contains(M)){const V=new CustomEvent(of,ry);h.addEventListener(of,p),h.dispatchEvent(V),V.defaultPrevented||(AE(DE(g0(h)),{select:!0}),document.activeElement===M&&Ta(h))}return()=>{h.removeEventListener(of,p),setTimeout(()=>{const V=new CustomEvent(uf,ry);h.addEventListener(uf,v),h.dispatchEvent(V),V.defaultPrevented||Ta(M??document.body,{select:!0}),h.removeEventListener(uf,v),uy.remove(A)},0)}}},[h,p,v,A]);const D=T.useCallback(M=>{if(!l&&!r||A.paused)return;const N=M.key==="Tab"&&!M.altKey&&!M.ctrlKey&&!M.metaKey,V=document.activeElement;if(N&&V){const q=M.currentTarget,[U,G]=CE(q);U&&G?!M.shiftKey&&V===G?(M.preventDefault(),l&&Ta(U,{select:!0})):M.shiftKey&&V===U&&(M.preventDefault(),l&&Ta(G,{select:!0})):V===q&&M.preventDefault()}},[l,r,A.paused]);return y.jsx(fe.div,{tabIndex:-1,...d,ref:S,onKeyDown:D})});p0.displayName=wE;function AE(n,{select:i=!1}={}){const l=document.activeElement;for(const r of n)if(Ta(r,{select:i}),document.activeElement!==l)return}function CE(n){const i=g0(n),l=oy(i,n),r=oy(i.reverse(),n);return[l,r]}function g0(n){const i=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)i.push(l.currentNode);return i}function oy(n,i){for(const l of n)if(!ME(l,{upTo:i}))return l}function ME(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function NE(n){return n instanceof HTMLInputElement&&"select"in n}function Ta(n,{select:i=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&NE(n)&&i&&n.select()}}var uy=jE();function jE(){let n=[];return{add(i){const l=n[0];i!==l&&l?.pause(),n=cy(n,i),n.unshift(i)},remove(i){n=cy(n,i),n[0]?.resume()}}}function cy(n,i){const l=[...n],r=l.indexOf(i);return r!==-1&&l.splice(r,1),l}function DE(n){return n.filter(i=>i.tagName!=="A")}var RE="Portal",y0=T.forwardRef((n,i)=>{const{container:l,...r}=n,[c,f]=T.useState(!1);Aa(()=>f(!0),[]);const d=l||c&&globalThis?.document?.body;return d?JT.createPortal(y.jsx(fe.div,{...r,ref:i}),d):null});y0.displayName=RE;var cf=0;function OE(){T.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??fy()),document.body.insertAdjacentElement("beforeend",n[1]??fy()),cf++,()=>{cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),cf--}},[])}function fy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var xn=function(){return xn=Object.assign||function(i){for(var l,r=1,c=arguments.length;r<c;r++){l=arguments[r];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(i[f]=l[f])}return i},xn.apply(this,arguments)};function v0(n,i){var l={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.indexOf(r)<0&&(l[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(n);c<r.length;c++)i.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(n,r[c])&&(l[r[c]]=n[r[c]]);return l}function zE(n,i,l){if(l||arguments.length===2)for(var r=0,c=i.length,f;r<c;r++)(f||!(r in i))&&(f||(f=Array.prototype.slice.call(i,0,r)),f[r]=i[r]);return n.concat(f||Array.prototype.slice.call(i))}var ho="right-scroll-bar-position",mo="width-before-scroll-bar",_E="with-scroll-bars-hidden",VE="--removed-body-scroll-bar-size";function ff(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function LE(n,i){var l=T.useState(function(){return{value:n,callback:i,facade:{get current(){return l.value},set current(r){var c=l.value;c!==r&&(l.value=r,l.callback(r,c))}}}})[0];return l.callback=i,l.facade}var UE=typeof window<"u"?T.useLayoutEffect:T.useEffect,dy=new WeakMap;function kE(n,i){var l=LE(null,function(r){return n.forEach(function(c){return ff(c,r)})});return UE(function(){var r=dy.get(l);if(r){var c=new Set(r),f=new Set(n),d=l.current;c.forEach(function(h){f.has(h)||ff(h,null)}),f.forEach(function(h){c.has(h)||ff(h,d)})}dy.set(l,n)},[n]),l}function BE(n){return n}function HE(n,i){i===void 0&&(i=BE);var l=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(f){var d=i(f,r);return l.push(d),function(){l=l.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(r=!0;l.length;){var d=l;l=[],d.forEach(f)}l={push:function(h){return f(h)},filter:function(){return l}}},assignMedium:function(f){r=!0;var d=[];if(l.length){var h=l;l=[],h.forEach(f),d=l}var g=function(){var v=d;d=[],v.forEach(f)},p=function(){return Promise.resolve().then(g)};p(),l={push:function(v){d.push(v),p()},filter:function(v){return d=d.filter(v),l}}}};return c}function GE(n){n===void 0&&(n={});var i=HE(null);return i.options=xn({async:!0,ssr:!1},n),i}var b0=function(n){var i=n.sideCar,l=v0(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,xn({},l))};b0.isSideCarExport=!0;function qE(n,i){return n.useMedium(i),b0}var x0=GE(),df=function(){},_o=T.forwardRef(function(n,i){var l=T.useRef(null),r=T.useState({onScrollCapture:df,onWheelCapture:df,onTouchMoveCapture:df}),c=r[0],f=r[1],d=n.forwardProps,h=n.children,g=n.className,p=n.removeScrollBar,v=n.enabled,b=n.shards,S=n.sideCar,A=n.noRelative,D=n.noIsolation,M=n.inert,N=n.allowPinchZoom,V=n.as,q=V===void 0?"div":V,U=n.gapMode,G=v0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=S,W=kE([l,i]),Z=xn(xn({},G),c);return T.createElement(T.Fragment,null,v&&T.createElement(P,{sideCar:x0,removeScrollBar:p,shards:b,noRelative:A,noIsolation:D,inert:M,setCallbacks:f,allowPinchZoom:!!N,lockRef:l,gapMode:U}),d?T.cloneElement(T.Children.only(h),xn(xn({},Z),{ref:W})):T.createElement(q,xn({},Z,{className:g,ref:W}),h))});_o.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};_o.classNames={fullWidth:mo,zeroRight:ho};var YE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=YE();return i&&n.setAttribute("nonce",i),n}function KE(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function PE(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var ZE=function(){var n=0,i=null;return{add:function(l){n==0&&(i=XE())&&(KE(i,l),PE(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},FE=function(){var n=ZE();return function(i,l){T.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&l])}},S0=function(){var n=FE(),i=function(l){var r=l.styles,c=l.dynamic;return n(r,c),null};return i},QE={left:0,top:0,right:0,gap:0},hf=function(n){return parseInt(n||"",10)||0},JE=function(n){var i=window.getComputedStyle(document.body),l=i[n==="padding"?"paddingLeft":"marginLeft"],r=i[n==="padding"?"paddingTop":"marginTop"],c=i[n==="padding"?"paddingRight":"marginRight"];return[hf(l),hf(r),hf(c)]},WE=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return QE;var i=JE(n),l=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-l+i[2]-i[0])}},IE=S0(),rs="data-scroll-locked",$E=function(n,i,l,r){var c=n.left,f=n.top,d=n.right,h=n.gap;return l===void 0&&(l="margin"),`
13
- .`.concat(_E,` {
14
- overflow: hidden `).concat(r,`;
15
- padding-right: `).concat(h,"px ").concat(r,`;
16
- }
17
- body[`).concat(rs,`] {
18
- overflow: hidden `).concat(r,`;
19
- overscroll-behavior: contain;
20
- `).concat([i&&"position: relative ".concat(r,";"),l==="margin"&&`
21
- padding-left: `.concat(c,`px;
22
- padding-top: `).concat(f,`px;
23
- padding-right: `).concat(d,`px;
24
- margin-left:0;
25
- margin-top:0;
26
- margin-right: `).concat(h,"px ").concat(r,`;
27
- `),l==="padding"&&"padding-right: ".concat(h,"px ").concat(r,";")].filter(Boolean).join(""),`
28
- }
29
-
30
- .`).concat(ho,` {
31
- right: `).concat(h,"px ").concat(r,`;
32
- }
33
-
34
- .`).concat(mo,` {
35
- margin-right: `).concat(h,"px ").concat(r,`;
36
- }
37
-
38
- .`).concat(ho," .").concat(ho,` {
39
- right: 0 `).concat(r,`;
40
- }
41
-
42
- .`).concat(mo," .").concat(mo,` {
43
- margin-right: 0 `).concat(r,`;
44
- }
45
-
46
- body[`).concat(rs,`] {
47
- `).concat(VE,": ").concat(h,`px;
48
- }
49
- `)},hy=function(){var n=parseInt(document.body.getAttribute(rs)||"0",10);return isFinite(n)?n:0},tw=function(){T.useEffect(function(){return document.body.setAttribute(rs,(hy()+1).toString()),function(){var n=hy()-1;n<=0?document.body.removeAttribute(rs):document.body.setAttribute(rs,n.toString())}},[])},ew=function(n){var i=n.noRelative,l=n.noImportant,r=n.gapMode,c=r===void 0?"margin":r;tw();var f=T.useMemo(function(){return WE(c)},[c]);return T.createElement(IE,{styles:$E(f,!i,c,l?"":"!important")})},Uf=!1;if(typeof window<"u")try{var io=Object.defineProperty({},"passive",{get:function(){return Uf=!0,!0}});window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{Uf=!1}var Ii=Uf?{passive:!1}:!1,nw=function(n){return n.tagName==="TEXTAREA"},T0=function(n,i){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[i]!=="hidden"&&!(l.overflowY===l.overflowX&&!nw(n)&&l[i]==="visible")},aw=function(n){return T0(n,"overflowY")},iw=function(n){return T0(n,"overflowX")},my=function(n,i){var l=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var c=E0(n,r);if(c){var f=w0(n,r),d=f[1],h=f[2];if(d>h)return!0}r=r.parentNode}while(r&&r!==l.body);return!1},sw=function(n){var i=n.scrollTop,l=n.scrollHeight,r=n.clientHeight;return[i,l,r]},lw=function(n){var i=n.scrollLeft,l=n.scrollWidth,r=n.clientWidth;return[i,l,r]},E0=function(n,i){return n==="v"?aw(i):iw(i)},w0=function(n,i){return n==="v"?sw(i):lw(i)},rw=function(n,i){return n==="h"&&i==="rtl"?-1:1},ow=function(n,i,l,r,c){var f=rw(n,window.getComputedStyle(i).direction),d=f*r,h=l.target,g=i.contains(h),p=!1,v=d>0,b=0,S=0;do{if(!h)break;var A=w0(n,h),D=A[0],M=A[1],N=A[2],V=M-N-f*D;(D||V)&&E0(n,h)&&(b+=V,S+=D);var q=h.parentNode;h=q&&q.nodeType===Node.DOCUMENT_FRAGMENT_NODE?q.host:q}while(!g&&h!==document.body||g&&(i.contains(h)||i===h));return(v&&Math.abs(b)<1||!v&&Math.abs(S)<1)&&(p=!0),p},so=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},py=function(n){return[n.deltaX,n.deltaY]},gy=function(n){return n&&"current"in n?n.current:n},uw=function(n,i){return n[0]===i[0]&&n[1]===i[1]},cw=function(n){return`
50
- .block-interactivity-`.concat(n,` {pointer-events: none;}
51
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
52
- `)},fw=0,$i=[];function dw(n){var i=T.useRef([]),l=T.useRef([0,0]),r=T.useRef(),c=T.useState(fw++)[0],f=T.useState(S0)[0],d=T.useRef(n);T.useEffect(function(){d.current=n},[n]),T.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var M=zE([n.lockRef.current],(n.shards||[]).map(gy),!0).filter(Boolean);return M.forEach(function(N){return N.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),M.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=T.useCallback(function(M,N){if("touches"in M&&M.touches.length===2||M.type==="wheel"&&M.ctrlKey)return!d.current.allowPinchZoom;var V=so(M),q=l.current,U="deltaX"in M?M.deltaX:q[0]-V[0],G="deltaY"in M?M.deltaY:q[1]-V[1],P,W=M.target,Z=Math.abs(U)>Math.abs(G)?"h":"v";if("touches"in M&&Z==="h"&&W.type==="range")return!1;var L=window.getSelection(),tt=L&&L.anchorNode,mt=tt?tt===W||tt.contains(W):!1;if(mt)return!1;var St=my(Z,W);if(!St)return!0;if(St?P=Z:(P=Z==="v"?"h":"v",St=my(Z,W)),!St)return!1;if(!r.current&&"changedTouches"in M&&(U||G)&&(r.current=P),!P)return!0;var At=r.current||P;return ow(At,N,M,At==="h"?U:G)},[]),g=T.useCallback(function(M){var N=M;if(!(!$i.length||$i[$i.length-1]!==f)){var V="deltaY"in N?py(N):so(N),q=i.current.filter(function(P){return P.name===N.type&&(P.target===N.target||N.target===P.shadowParent)&&uw(P.delta,V)})[0];if(q&&q.should){N.cancelable&&N.preventDefault();return}if(!q){var U=(d.current.shards||[]).map(gy).filter(Boolean).filter(function(P){return P.contains(N.target)}),G=U.length>0?h(N,U[0]):!d.current.noIsolation;G&&N.cancelable&&N.preventDefault()}}},[]),p=T.useCallback(function(M,N,V,q){var U={name:M,delta:N,target:V,should:q,shadowParent:hw(V)};i.current.push(U),setTimeout(function(){i.current=i.current.filter(function(G){return G!==U})},1)},[]),v=T.useCallback(function(M){l.current=so(M),r.current=void 0},[]),b=T.useCallback(function(M){p(M.type,py(M),M.target,h(M,n.lockRef.current))},[]),S=T.useCallback(function(M){p(M.type,so(M),M.target,h(M,n.lockRef.current))},[]);T.useEffect(function(){return $i.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:S}),document.addEventListener("wheel",g,Ii),document.addEventListener("touchmove",g,Ii),document.addEventListener("touchstart",v,Ii),function(){$i=$i.filter(function(M){return M!==f}),document.removeEventListener("wheel",g,Ii),document.removeEventListener("touchmove",g,Ii),document.removeEventListener("touchstart",v,Ii)}},[]);var A=n.removeScrollBar,D=n.inert;return T.createElement(T.Fragment,null,D?T.createElement(f,{styles:cw(c)}):null,A?T.createElement(ew,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function hw(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const mw=qE(x0,dw);var A0=T.forwardRef(function(n,i){return T.createElement(_o,xn({},n,{ref:i,sideCar:mw}))});A0.classNames=_o.classNames;var pw=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},ts=new WeakMap,lo=new WeakMap,ro={},mf=0,C0=function(n){return n&&(n.host||C0(n.parentNode))},gw=function(n,i){return i.map(function(l){if(n.contains(l))return l;var r=C0(l);return r&&n.contains(r)?r:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},yw=function(n,i,l,r){var c=gw(i,Array.isArray(n)?n:[n]);ro[l]||(ro[l]=new WeakMap);var f=ro[l],d=[],h=new Set,g=new Set(c),p=function(b){!b||h.has(b)||(h.add(b),p(b.parentNode))};c.forEach(p);var v=function(b){!b||g.has(b)||Array.prototype.forEach.call(b.children,function(S){if(h.has(S))v(S);else try{var A=S.getAttribute(r),D=A!==null&&A!=="false",M=(ts.get(S)||0)+1,N=(f.get(S)||0)+1;ts.set(S,M),f.set(S,N),d.push(S),M===1&&D&&lo.set(S,!0),N===1&&S.setAttribute(l,"true"),D||S.setAttribute(r,"true")}catch(V){console.error("aria-hidden: cannot operate on ",S,V)}})};return v(i),h.clear(),mf++,function(){d.forEach(function(b){var S=ts.get(b)-1,A=f.get(b)-1;ts.set(b,S),f.set(b,A),S||(lo.has(b)||b.removeAttribute(r),lo.delete(b)),A||b.removeAttribute(l)}),mf--,mf||(ts=new WeakMap,ts=new WeakMap,lo=new WeakMap,ro={})}},vw=function(n,i,l){l===void 0&&(l="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),c=pw(n);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),yw(r,c,l,"aria-hidden")):function(){return null}},Vo="Dialog",[M0]=Al(Vo),[bw,cn]=M0(Vo),N0=n=>{const{__scopeDialog:i,children:l,open:r,defaultOpen:c,onOpenChange:f,modal:d=!0}=n,h=T.useRef(null),g=T.useRef(null),[p,v]=dd({prop:r,defaultProp:c??!1,onChange:f,caller:Vo});return y.jsx(bw,{scope:i,triggerRef:h,contentRef:g,contentId:ml(),titleId:ml(),descriptionId:ml(),open:p,onOpenChange:v,onOpenToggle:T.useCallback(()=>v(b=>!b),[v]),modal:d,children:l})};N0.displayName=Vo;var j0="DialogTrigger",xw=T.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(j0,l),f=Tn(i,c.triggerRef);return y.jsx(fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":pd(c.open),...r,ref:f,onClick:be(n.onClick,c.onOpenToggle)})});xw.displayName=j0;var hd="DialogPortal",[Sw,D0]=M0(hd,{forceMount:void 0}),R0=n=>{const{__scopeDialog:i,forceMount:l,children:r,container:c}=n,f=cn(hd,i);return y.jsx(Sw,{scope:i,forceMount:l,children:T.Children.map(r,d=>y.jsx(Cl,{present:l||f.open,children:y.jsx(y0,{asChild:!0,container:c,children:d})}))})};R0.displayName=hd;var wo="DialogOverlay",O0=T.forwardRef((n,i)=>{const l=D0(wo,n.__scopeDialog),{forceMount:r=l.forceMount,...c}=n,f=cn(wo,n.__scopeDialog);return f.modal?y.jsx(Cl,{present:r||f.open,children:y.jsx(Ew,{...c,ref:i})}):null});O0.displayName=wo;var Tw=Eo("DialogOverlay.RemoveScroll"),Ew=T.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(wo,l);return y.jsx(A0,{as:Tw,allowPinchZoom:!0,shards:[c.contentRef],children:y.jsx(fe.div,{"data-state":pd(c.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),ii="DialogContent",z0=T.forwardRef((n,i)=>{const l=D0(ii,n.__scopeDialog),{forceMount:r=l.forceMount,...c}=n,f=cn(ii,n.__scopeDialog);return y.jsx(Cl,{present:r||f.open,children:f.modal?y.jsx(ww,{...c,ref:i}):y.jsx(Aw,{...c,ref:i})})});z0.displayName=ii;var ww=T.forwardRef((n,i)=>{const l=cn(ii,n.__scopeDialog),r=T.useRef(null),c=Tn(i,l.contentRef,r);return T.useEffect(()=>{const f=r.current;if(f)return vw(f)},[]),y.jsx(_0,{...n,ref:c,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(n.onCloseAutoFocus,f=>{f.preventDefault(),l.triggerRef.current?.focus()}),onPointerDownOutside:be(n.onPointerDownOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&f.preventDefault()}),onFocusOutside:be(n.onFocusOutside,f=>f.preventDefault())})}),Aw=T.forwardRef((n,i)=>{const l=cn(ii,n.__scopeDialog),r=T.useRef(!1),c=T.useRef(!1);return y.jsx(_0,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{n.onCloseAutoFocus?.(f),f.defaultPrevented||(r.current||l.triggerRef.current?.focus(),f.preventDefault()),r.current=!1,c.current=!1},onInteractOutside:f=>{n.onInteractOutside?.(f),f.defaultPrevented||(r.current=!0,f.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=f.target;l.triggerRef.current?.contains(d)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&c.current&&f.preventDefault()}})}),_0=T.forwardRef((n,i)=>{const{__scopeDialog:l,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:f,...d}=n,h=cn(ii,l),g=T.useRef(null),p=Tn(i,g);return OE(),y.jsxs(y.Fragment,{children:[y.jsx(p0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:f,children:y.jsx(h0,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":pd(h.open),...d,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(Mw,{titleId:h.titleId}),y.jsx(jw,{contentRef:g,descriptionId:h.descriptionId})]})]})}),md="DialogTitle",V0=T.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(md,l);return y.jsx(fe.h2,{id:c.titleId,...r,ref:i})});V0.displayName=md;var L0="DialogDescription",Cw=T.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(L0,l);return y.jsx(fe.p,{id:c.descriptionId,...r,ref:i})});Cw.displayName=L0;var U0="DialogClose",k0=T.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(U0,l);return y.jsx(fe.button,{type:"button",...r,ref:i,onClick:be(n.onClick,()=>c.onOpenChange(!1))})});k0.displayName=U0;function pd(n){return n?"open":"closed"}var B0="DialogTitleWarning",[D4,H0]=iE(B0,{contentName:ii,titleName:md,docsSlug:"dialog"}),Mw=({titleId:n})=>{const i=H0(B0),l=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
53
-
54
- If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
55
-
56
- For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return T.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},Nw="DialogDescriptionWarning",jw=({contentRef:n,descriptionId:i})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${H0(Nw).contentName}}.`;return T.useEffect(()=>{const c=n.current?.getAttribute("aria-describedby");i&&c&&(document.getElementById(i)||console.warn(r))},[r,n,i]),null},Dw=N0,Rw=R0,Ow=O0,zw=z0,_w=V0,Vw=k0,pf={exports:{}},gf={};var yy;function Lw(){if(yy)return gf;yy=1;var n=zo();function i(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var l=typeof Object.is=="function"?Object.is:i,r=n.useState,c=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function h(b,S){var A=S(),D=r({inst:{value:A,getSnapshot:S}}),M=D[0].inst,N=D[1];return f(function(){M.value=A,M.getSnapshot=S,g(M)&&N({inst:M})},[b,A,S]),c(function(){return g(M)&&N({inst:M}),b(function(){g(M)&&N({inst:M})})},[b]),d(A),A}function g(b){var S=b.getSnapshot;b=b.value;try{var A=S();return!l(b,A)}catch{return!0}}function p(b,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return gf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,gf}var vy;function Uw(){return vy||(vy=1,pf.exports=Lw()),pf.exports}var kw=Uw();function Bw(){return kw.useSyncExternalStore(Hw,()=>!0,()=>!1)}function Hw(){return()=>{}}var gd="Avatar",[Gw]=Al(gd),[qw,G0]=Gw(gd),q0=T.forwardRef((n,i)=>{const{__scopeAvatar:l,...r}=n,[c,f]=T.useState("idle");return y.jsx(qw,{scope:l,imageLoadingStatus:c,onImageLoadingStatusChange:f,children:y.jsx(fe.span,{...r,ref:i})})});q0.displayName=gd;var Y0="AvatarImage",Yw=T.forwardRef((n,i)=>{const{__scopeAvatar:l,src:r,onLoadingStatusChange:c=()=>{},...f}=n,d=G0(Y0,l),h=Xw(r,f),g=ai(p=>{c(p),d.onImageLoadingStatusChange(p)});return Aa(()=>{h!=="idle"&&g(h)},[h,g]),h==="loaded"?y.jsx(fe.img,{...f,ref:i,src:r}):null});Yw.displayName=Y0;var X0="AvatarFallback",K0=T.forwardRef((n,i)=>{const{__scopeAvatar:l,delayMs:r,...c}=n,f=G0(X0,l),[d,h]=T.useState(r===void 0);return T.useEffect(()=>{if(r!==void 0){const g=window.setTimeout(()=>h(!0),r);return()=>window.clearTimeout(g)}},[r]),d&&f.imageLoadingStatus!=="loaded"?y.jsx(fe.span,{...c,ref:i}):null});K0.displayName=X0;function by(n,i){return n?i?(n.src!==i&&(n.src=i),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Xw(n,{referrerPolicy:i,crossOrigin:l}){const r=Bw(),c=T.useRef(null),f=r?(c.current||(c.current=new window.Image),c.current):null,[d,h]=T.useState(()=>by(f,n));return Aa(()=>{h(by(f,n))},[f,n]),Aa(()=>{const g=b=>()=>{h(b)};if(!f)return;const p=g("loaded"),v=g("error");return f.addEventListener("load",p),f.addEventListener("error",v),i&&(f.referrerPolicy=i),typeof l=="string"&&(f.crossOrigin=l),()=>{f.removeEventListener("load",p),f.removeEventListener("error",v)}},[f,l,i]),d}var Kw=q0,Pw=K0,yf="rovingFocusGroup.onEntryFocus",Zw={bubbles:!1,cancelable:!0},Ml="RovingFocusGroup",[kf,P0,Fw]=lE(Ml),[Qw,Z0]=Al(Ml,[Fw]),[Jw,Ww]=Qw(Ml),F0=T.forwardRef((n,i)=>y.jsx(kf.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(kf.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(Iw,{...n,ref:i})})}));F0.displayName=Ml;var Iw=T.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:l,orientation:r,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...b}=n,S=T.useRef(null),A=Tn(i,S),D=f0(f),[M,N]=dd({prop:d,defaultProp:h??null,onChange:g,caller:Ml}),[V,q]=T.useState(!1),U=ai(p),G=P0(l),P=T.useRef(!1),[W,Z]=T.useState(0);return T.useEffect(()=>{const L=S.current;if(L)return L.addEventListener(yf,U),()=>L.removeEventListener(yf,U)},[U]),y.jsx(Jw,{scope:l,orientation:r,dir:D,loop:c,currentTabStopId:M,onItemFocus:T.useCallback(L=>N(L),[N]),onItemShiftTab:T.useCallback(()=>q(!0),[]),onFocusableItemAdd:T.useCallback(()=>Z(L=>L+1),[]),onFocusableItemRemove:T.useCallback(()=>Z(L=>L-1),[]),children:y.jsx(fe.div,{tabIndex:V||W===0?-1:0,"data-orientation":r,...b,ref:A,style:{outline:"none",...n.style},onMouseDown:be(n.onMouseDown,()=>{P.current=!0}),onFocus:be(n.onFocus,L=>{const tt=!P.current;if(L.target===L.currentTarget&&tt&&!V){const mt=new CustomEvent(yf,Zw);if(L.currentTarget.dispatchEvent(mt),!mt.defaultPrevented){const St=G().filter(z=>z.focusable),At=St.find(z=>z.active),jt=St.find(z=>z.id===M),Ct=[At,jt,...St].filter(Boolean).map(z=>z.ref.current);W0(Ct,v)}}P.current=!1}),onBlur:be(n.onBlur,()=>q(!1))})})}),Q0="RovingFocusGroupItem",J0=T.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:l,focusable:r=!0,active:c=!1,tabStopId:f,children:d,...h}=n,g=ml(),p=f||g,v=Ww(Q0,l),b=v.currentTabStopId===p,S=P0(l),{onFocusableItemAdd:A,onFocusableItemRemove:D,currentTabStopId:M}=v;return T.useEffect(()=>{if(r)return A(),()=>D()},[r,A,D]),y.jsx(kf.ItemSlot,{scope:l,id:p,focusable:r,active:c,children:y.jsx(fe.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...h,ref:i,onMouseDown:be(n.onMouseDown,N=>{r?v.onItemFocus(p):N.preventDefault()}),onFocus:be(n.onFocus,()=>v.onItemFocus(p)),onKeyDown:be(n.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){v.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const V=eA(N,v.orientation,v.dir);if(V!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let U=S().filter(G=>G.focusable).map(G=>G.ref.current);if(V==="last")U.reverse();else if(V==="prev"||V==="next"){V==="prev"&&U.reverse();const G=U.indexOf(N.currentTarget);U=v.loop?nA(U,G+1):U.slice(G+1)}setTimeout(()=>W0(U))}}),children:typeof d=="function"?d({isCurrentTabStop:b,hasTabStop:M!=null}):d})})});J0.displayName=Q0;var $w={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tA(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function eA(n,i,l){const r=tA(n.key,l);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $w[r]}function W0(n,i=!1){const l=document.activeElement;for(const r of n)if(r===l||(r.focus({preventScroll:i}),document.activeElement!==l))return}function nA(n,i){return n.map((l,r)=>n[(i+r)%n.length])}var aA=F0,iA=J0,Lo="Tabs",[sA]=Al(Lo,[Z0]),I0=Z0(),[lA,yd]=sA(Lo),$0=T.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,onValueChange:c,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:g="automatic",...p}=n,v=f0(h),[b,S]=dd({prop:r,onChange:c,defaultProp:f??"",caller:Lo});return y.jsx(lA,{scope:l,baseId:ml(),value:b,onValueChange:S,orientation:d,dir:v,activationMode:g,children:y.jsx(fe.div,{dir:v,"data-orientation":d,...p,ref:i})})});$0.displayName=Lo;var tb="TabsList",eb=T.forwardRef((n,i)=>{const{__scopeTabs:l,loop:r=!0,...c}=n,f=yd(tb,l),d=I0(l);return y.jsx(aA,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:r,children:y.jsx(fe.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:i})})});eb.displayName=tb;var nb="TabsTrigger",ab=T.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,disabled:c=!1,...f}=n,d=yd(nb,l),h=I0(l),g=sb(d.baseId,r),p=lb(d.baseId,r),v=r===d.value;return y.jsx(iA,{asChild:!0,...h,focusable:!c,active:v,children:y.jsx(fe.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:g,...f,ref:i,onMouseDown:be(n.onMouseDown,b=>{!c&&b.button===0&&b.ctrlKey===!1?d.onValueChange(r):b.preventDefault()}),onKeyDown:be(n.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&d.onValueChange(r)}),onFocus:be(n.onFocus,()=>{const b=d.activationMode!=="manual";!v&&!c&&b&&d.onValueChange(r)})})})});ab.displayName=nb;var ib="TabsContent",rA=T.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,forceMount:c,children:f,...d}=n,h=yd(ib,l),g=sb(h.baseId,r),p=lb(h.baseId,r),v=r===h.value,b=T.useRef(v);return T.useEffect(()=>{const S=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(S)},[]),y.jsx(Cl,{present:c||v,children:({present:S})=>y.jsx(fe.div,{"data-state":v?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":g,hidden:!S,id:p,tabIndex:0,...d,ref:i,style:{...n.style,animationDuration:b.current?"0s":void 0},children:S&&f})})});rA.displayName=ib;function sb(n,i){return`${n}-trigger-${i}`}function lb(n,i){return`${n}-content-${i}`}var oA=$0,uA=eb,cA=ab;function fA({className:n,orientation:i="horizontal",...l}){return y.jsx(oA,{"data-slot":"tabs","data-orientation":i,orientation:i,className:un("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...l})}const dA=QT("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function hA({className:n,variant:i="default",...l}){return y.jsx(uA,{"data-slot":"tabs-list","data-variant":i,className:un(dA({variant:i}),n),...l})}function mA({className:n,...i}){return y.jsx(cA,{"data-slot":"tabs-trigger",className:un("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",n),...i})}function pA({className:n,size:i="default",...l}){return y.jsx(Kw,{"data-slot":"avatar","data-size":i,className:un("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",n),...l})}function gA({className:n,...i}){return y.jsx(Pw,{"data-slot":"avatar-fallback",className:un("bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm group-data-[size=sm]/avatar:text-xs",n),...i})}function yA({...n}){return y.jsx(Dw,{"data-slot":"sheet",...n})}function vA({...n}){return y.jsx(Rw,{"data-slot":"sheet-portal",...n})}function bA({className:n,...i}){return y.jsx(Ow,{"data-slot":"sheet-overlay",className:un("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...i})}function xA({className:n,children:i,side:l="right",showCloseButton:r=!0,...c}){return y.jsxs(vA,{children:[y.jsx(bA,{}),y.jsxs(zw,{"data-slot":"sheet-content",className:un("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",l==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",l==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",l==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",l==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",n),...c,children:[i,r&&y.jsxs(Vw,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[y.jsx(Kv,{className:"size-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function SA({className:n,...i}){return y.jsx(_w,{"data-slot":"sheet-title",className:un("text-foreground font-semibold",n),...i})}function TA(){const[n,i]=T.useState(!1);return y.jsxs("div",{className:"md:hidden",children:[y.jsxs("button",{onClick:()=>i(!0),className:"flex items-center justify-center h-10 w-10 rounded-full bg-card border border-border text-muted-foreground hover:text-foreground transition-colors",children:[y.jsx(H2,{className:"h-5 w-5"}),y.jsx("span",{className:"sr-only",children:"Open navigation"})]}),y.jsx(yA,{open:n,onOpenChange:i,children:y.jsxs(xA,{side:"left",className:"p-0 w-72",showCloseButton:!1,children:[y.jsx(SA,{className:"sr-only",children:"Navigation"}),y.jsx(o0,{})]})})]})}function EA({onOpenOnboard:n}){const[i,l]=T.useState(!1),r=T.useRef(null);return T.useEffect(()=>{if(!i)return;const c=f=>{r.current&&!r.current.contains(f.target)&&l(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[i]),y.jsxs("header",{className:"flex items-center justify-between px-4 md:px-6 py-3 md:py-4",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(TA,{}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-6 w-auto"}),y.jsx("span",{className:"font-semibold text-lg hidden sm:block",children:"Fluxy"})]})]}),y.jsx("div",{className:"hidden md:block",children:y.jsx(fA,{defaultValue:"overview",children:y.jsx(hA,{className:"bg-card rounded-full p-1 h-auto border border-border",children:["Overview","Conversations","Models","Knowledge","Activity"].map(c=>y.jsx(mA,{value:c.toLowerCase(),className:"rounded-full px-5 py-2 text-sm data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-none",children:c},c))})})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("div",{className:"relative",ref:r,children:[y.jsx("button",{onClick:()=>l(c=>!c),className:"flex items-center justify-center h-10 w-10 rounded-full bg-card border border-border text-muted-foreground hover:text-foreground transition-colors",children:y.jsx(Xv,{className:"h-4 w-4"})}),i&&y.jsx("div",{className:"absolute right-0 top-full mt-2 w-52 bg-card border border-border rounded-xl shadow-xl py-1.5 z-50",children:y.jsxs("button",{onClick:()=>{n?.(),l(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-[13px] text-foreground hover:bg-white/[0.04] transition-colors text-left",children:[y.jsx($2,{className:"h-4 w-4 text-muted-foreground"}),"Setup Wizard"]})})]}),y.jsxs("button",{className:"relative flex items-center justify-center h-10 w-10 rounded-full bg-card border border-border text-muted-foreground hover:text-foreground transition-colors",children:[y.jsx(T2,{className:"h-4 w-4"}),y.jsx("span",{className:"absolute -top-0.5 -right-0.5 flex items-center justify-center h-4 w-4 rounded-full bg-destructive text-[10px] font-medium text-white",children:"2"})]}),y.jsx(pA,{className:"h-10 w-10 border border-border",children:y.jsx(gA,{className:"bg-primary text-primary-foreground text-sm font-medium",children:"F"})})]})]})}function wA({children:n,onOpenOnboard:i}){return y.jsxs("div",{className:"flex h-dvh flex-col overflow-x-hidden",children:[y.jsx(EA,{onOpenOnboard:i}),y.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[y.jsx("div",{className:"hidden md:flex shrink-0",children:y.jsx(o0,{})}),y.jsx("main",{className:"flex-1 overflow-y-auto p-4 md:p-6",children:n})]})]})}function Uo({className:n,...i}){return y.jsx("div",{"data-slot":"card",className:un("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...i})}function ko({className:n,...i}){return y.jsx("div",{"data-slot":"card-content",className:un("px-6",n),...i})}function AA(){return y.jsx(Uo,{className:"bg-card border-border h-full",children:y.jsxs(ko,{className:"p-4 sm:p-6",children:[y.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6",children:[y.jsx("h3",{className:"text-base sm:text-lg font-semibold",children:"Conversation Activity"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("button",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full border border-border text-xs sm:text-sm",children:["Weekly",y.jsx(wl,{className:"h-3.5 w-3.5"})]}),y.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full border border-border text-muted-foreground",children:y.jsx(O2,{className:"h-4 w-4"})})]})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3 mb-4 sm:mb-6",children:[y.jsxs("div",{children:[y.jsx("span",{className:"text-3xl sm:text-4xl font-bold",children:"2.4K"}),y.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Total Messages"})]}),y.jsx("div",{className:"flex items-center gap-2 sm:gap-3 flex-wrap",children:iT.map(n=>y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("div",{className:"h-2 w-2 sm:h-2.5 sm:w-2.5 rounded-full",style:{backgroundColor:Qg[n.level]}}),y.jsx("span",{className:"text-[10px] sm:text-xs text-muted-foreground",children:n.label})]},n.label))})]}),y.jsx("div",{className:"space-y-2 sm:space-y-3",children:nT.map(n=>y.jsxs("div",{className:"flex items-center gap-2 sm:gap-4",children:[y.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground w-12 sm:w-16 shrink-0",children:n.model}),y.jsx("div",{className:"grid grid-cols-7 gap-1.5 sm:gap-2 flex-1",children:n.days.map((i,l)=>y.jsx("div",{className:"aspect-square rounded-full max-w-10",style:{backgroundColor:Qg[i]}},l))})]},n.model))}),y.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 mt-2 sm:mt-4",children:[y.jsx("div",{className:"w-12 sm:w-16 shrink-0"}),y.jsx("div",{className:"grid grid-cols-7 gap-1.5 sm:gap-2 flex-1",children:aT.map((n,i)=>y.jsx("span",{className:"flex items-center justify-center text-[10px] sm:text-xs text-muted-foreground max-w-10 aspect-square",children:n},i))})]})]})})}function CA(){return y.jsxs(Uo,{className:"border-border overflow-hidden relative",style:{background:"radial-gradient(ellipse at 80% 20%, rgba(60,143,255,0.07) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(60,143,255,0.04) 0%, transparent 50%), linear-gradient(135deg, #282828 0%, #1c2a3a 100%)"},children:[y.jsx("div",{className:"absolute inset-0 opacity-[0.06]",style:{backgroundImage:"radial-gradient(circle at 70% 40%, transparent 20%, rgba(60,143,255,0.4) 20.5%, transparent 21%), radial-gradient(circle at 70% 40%, transparent 35%, rgba(60,143,255,0.3) 35.5%, transparent 36%), radial-gradient(circle at 70% 40%, transparent 50%, rgba(60,143,255,0.2) 50.5%, transparent 51%)"}}),y.jsxs(ko,{className:"relative p-6 flex flex-col justify-between min-h-[200px]",children:[y.jsxs("div",{children:[y.jsxs("h3",{className:"text-2xl font-bold leading-tight mb-3",children:["Connect New",y.jsx("br",{}),"AI Models"]}),y.jsx("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full bg-destructive/15 text-destructive text-xs font-medium",children:"+15% faster"}),y.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:"with parallel routing"})]}),y.jsx("div",{className:"flex justify-end mt-4",children:y.jsxs("button",{className:"flex items-center gap-2 px-5 py-2.5 rounded-full bg-primary text-primary-foreground text-sm font-medium hover:brightness-110 transition",children:["Explore",y.jsx(qv,{className:"h-4 w-4"})]})})]})]})}function MA(){return y.jsx(Uo,{className:"bg-card border-border",children:y.jsxs(ko,{className:"p-6 flex flex-col justify-between h-full",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[y.jsx("div",{className:"flex items-center justify-center h-8 w-8 rounded-full border border-border",children:y.jsx(wl,{className:"h-4 w-4 text-muted-foreground"})}),y.jsxs("span",{className:"text-sm font-medium",children:["Today's",y.jsx("br",{}),"Messages"]})]}),y.jsxs("div",{children:[y.jsx("span",{className:"text-4xl font-bold text-primary",children:"342"}),y.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[y.jsx("span",{className:"text-sm text-primary font-medium",children:"+8%"}),y.jsx("span",{className:"text-xs text-muted-foreground",children:"vs yesterday"})]})]})]})})}function NA(){return y.jsx(Uo,{className:"border-border overflow-hidden relative",style:{background:"radial-gradient(circle at 30% 50%, rgba(253,72,107,0.2) 0%, transparent 45%), radial-gradient(circle at 80% 60%, rgba(253,72,107,0.12) 0%, transparent 40%), linear-gradient(135deg, #2a1a20 0%, #211518 100%)"},children:y.jsxs(ko,{className:"relative p-6 flex flex-col justify-between h-full",children:[y.jsxs("div",{className:"flex items-center gap-1.5 mb-4",children:[y.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-black/40 text-foreground/80 hover:text-foreground transition-colors",children:y.jsx(Yv,{className:"h-3.5 w-3.5"})}),y.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-black/40 text-foreground/80 hover:text-foreground transition-colors",children:y.jsx(qv,{className:"h-3.5 w-3.5"})}),y.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full bg-black/40 text-foreground/80 hover:text-foreground transition-colors ml-auto",children:y.jsx(Kv,{className:"h-3.5 w-3.5"})})]}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-lg font-bold mb-1",children:"System Report"}),y.jsx("p",{className:"text-xs text-foreground/60 leading-relaxed",children:"Generate and download a detailed report of your system"})]})]})})}function jA(){return y.jsxs("div",{className:"max-w-6xl mx-auto space-y-4 sm:space-y-6",children:[y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"text-2xl sm:text-3xl font-semibold",children:"Dashboard Overview"}),y.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Overview"," ",y.jsx("span",{className:"mx-1.5 text-muted-foreground/50",children:">"}),"All Systems"]})]}),y.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto",children:[y.jsxs("button",{className:"flex items-center gap-1.5 px-3 sm:px-4 py-1.5 sm:py-2 rounded-full bg-card border border-border text-xs sm:text-sm shrink-0 hover:text-foreground transition-colors",children:["Activity",y.jsx(wl,{className:"h-3.5 w-3.5"})]}),y.jsxs("button",{className:"flex items-center gap-1.5 px-3 sm:px-4 py-1.5 sm:py-2 rounded-full bg-card border border-border text-xs sm:text-sm shrink-0 hover:text-foreground transition-colors",children:["Export",y.jsx(Yv,{className:"h-3.5 w-3.5"})]}),y.jsxs("button",{className:"flex items-center gap-1.5 px-3 sm:px-4 py-1.5 sm:py-2 rounded-full bg-card border border-border text-xs sm:text-sm shrink-0 hover:text-foreground transition-colors",children:["Filter",y.jsx(W2,{className:"h-3.5 w-3.5"})]})]})]}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[y.jsx(AA,{}),y.jsxs("div",{className:"space-y-4",children:[y.jsx(CA,{}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[y.jsx(MA,{}),y.jsx(NA,{})]})]})]})]})}const vd=T.createContext({});function bd(n){const i=T.useRef(null);return i.current===null&&(i.current=n()),i.current}const rb=typeof window<"u",ob=rb?T.useLayoutEffect:T.useEffect,Bo=T.createContext(null);function xd(n,i){n.indexOf(i)===-1&&n.push(i)}function Ao(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}const En=(n,i,l)=>l>i?i:l<n?n:l;let Sd=()=>{};const Pn={},ub=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function cb(n){return typeof n=="object"&&n!==null}const fb=n=>/^0[^.\s]+$/u.test(n);function db(n){let i;return()=>(i===void 0&&(i=n()),i)}const Ie=n=>n,DA=(n,i)=>l=>i(n(l)),Nl=(...n)=>n.reduce(DA),bl=(n,i,l)=>{const r=i-n;return r===0?1:(l-n)/r};class Td{constructor(){this.subscriptions=[]}add(i){return xd(this.subscriptions,i),()=>Ao(this.subscriptions,i)}notify(i,l,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,l,r);else for(let f=0;f<c;f++){const d=this.subscriptions[f];d&&d(i,l,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rn=n=>n*1e3,We=n=>n/1e3;function hb(n,i){return i?n*(1e3/i):0}const mb=(n,i,l)=>(((1-3*l+3*i)*n+(3*l-6*i))*n+3*i)*n,RA=1e-7,OA=12;function zA(n,i,l,r,c){let f,d,h=0;do d=i+(l-i)/2,f=mb(d,r,c)-n,f>0?l=d:i=d;while(Math.abs(f)>RA&&++h<OA);return d}function jl(n,i,l,r){if(n===i&&l===r)return Ie;const c=f=>zA(f,0,1,n,l);return f=>f===0||f===1?f:mb(c(f),i,r)}const pb=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,gb=n=>i=>1-n(1-i),yb=jl(.33,1.53,.69,.99),Ed=gb(yb),vb=pb(Ed),bb=n=>(n*=2)<1?.5*Ed(n):.5*(2-Math.pow(2,-10*(n-1))),wd=n=>1-Math.sin(Math.acos(n)),xb=gb(wd),Sb=pb(wd),_A=jl(.42,0,1,1),VA=jl(0,0,.58,1),Tb=jl(.42,0,.58,1),LA=n=>Array.isArray(n)&&typeof n[0]!="number",Eb=n=>Array.isArray(n)&&typeof n[0]=="number",UA={linear:Ie,easeIn:_A,easeInOut:Tb,easeOut:VA,circIn:wd,circInOut:Sb,circOut:xb,backIn:Ed,backInOut:vb,backOut:yb,anticipate:bb},kA=n=>typeof n=="string",xy=n=>{if(Eb(n)){Sd(n.length===4);const[i,l,r,c]=n;return jl(i,l,r,c)}else if(kA(n))return UA[n];return n},oo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function BA(n,i){let l=new Set,r=new Set,c=!1,f=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function g(v){d.has(v)&&(p.schedule(v),n()),v(h)}const p={schedule:(v,b=!1,S=!1)=>{const D=S&&c?l:r;return b&&d.add(v),D.has(v)||D.add(v),v},cancel:v=>{r.delete(v),d.delete(v)},process:v=>{if(h=v,c){f=!0;return}c=!0,[l,r]=[r,l],l.forEach(g),l.clear(),c=!1,f&&(f=!1,p.process(v))}};return p}const HA=40;function wb(n,i){let l=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=oo.reduce((U,G)=>(U[G]=BA(f),U),{}),{setup:h,read:g,resolveKeyframes:p,preUpdate:v,update:b,preRender:S,render:A,postRender:D}=d,M=()=>{const U=Pn.useManualTiming?c.timestamp:performance.now();l=!1,Pn.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(U-c.timestamp,HA),1)),c.timestamp=U,c.isProcessing=!0,h.process(c),g.process(c),p.process(c),v.process(c),b.process(c),S.process(c),A.process(c),D.process(c),c.isProcessing=!1,l&&i&&(r=!1,n(M))},N=()=>{l=!0,r=!0,c.isProcessing||n(M)};return{schedule:oo.reduce((U,G)=>{const P=d[G];return U[G]=(W,Z=!1,L=!1)=>(l||N(),P.schedule(W,Z,L)),U},{}),cancel:U=>{for(let G=0;G<oo.length;G++)d[oo[G]].cancel(U)},state:c,steps:d}}const{schedule:Ut,cancel:Ca,state:ve,steps:vf}=wb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0);let po;function GA(){po=void 0}const Ae={now:()=>(po===void 0&&Ae.set(ve.isProcessing||Pn.useManualTiming?ve.timestamp:performance.now()),po),set:n=>{po=n,queueMicrotask(GA)}},Ab=n=>i=>typeof i=="string"&&i.startsWith(n),Cb=Ab("--"),qA=Ab("var(--"),Ad=n=>qA(n)?YA.test(n.split("/*")[0].trim()):!1,YA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sy(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const cs={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},xl={...cs,transform:n=>En(0,1,n)},uo={...cs,default:1},pl=n=>Math.round(n*1e5)/1e5,Cd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XA(n){return n==null}const KA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Md=(n,i)=>l=>!!(typeof l=="string"&&KA.test(l)&&l.startsWith(n)||i&&!XA(l)&&Object.prototype.hasOwnProperty.call(l,i)),Mb=(n,i,l)=>r=>{if(typeof r!="string")return r;const[c,f,d,h]=r.match(Cd);return{[n]:parseFloat(c),[i]:parseFloat(f),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},PA=n=>En(0,255,n),bf={...cs,transform:n=>Math.round(PA(n))},ti={test:Md("rgb","red"),parse:Mb("red","green","blue"),transform:({red:n,green:i,blue:l,alpha:r=1})=>"rgba("+bf.transform(n)+", "+bf.transform(i)+", "+bf.transform(l)+", "+pl(xl.transform(r))+")"};function ZA(n){let i="",l="",r="",c="";return n.length>5?(i=n.substring(1,3),l=n.substring(3,5),r=n.substring(5,7),c=n.substring(7,9)):(i=n.substring(1,2),l=n.substring(2,3),r=n.substring(3,4),c=n.substring(4,5),i+=i,l+=l,r+=r,c+=c),{red:parseInt(i,16),green:parseInt(l,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const Bf={test:Md("#"),parse:ZA,transform:ti.transform},Dl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),Ea=Dl("deg"),Sn=Dl("%"),it=Dl("px"),FA=Dl("vh"),QA=Dl("vw"),Ty={...Sn,parse:n=>Sn.parse(n)/100,transform:n=>Sn.transform(n*100)},ns={test:Md("hsl","hue"),parse:Mb("hue","saturation","lightness"),transform:({hue:n,saturation:i,lightness:l,alpha:r=1})=>"hsla("+Math.round(n)+", "+Sn.transform(pl(i))+", "+Sn.transform(pl(l))+", "+pl(xl.transform(r))+")"},ie={test:n=>ti.test(n)||Bf.test(n)||ns.test(n),parse:n=>ti.test(n)?ti.parse(n):ns.test(n)?ns.parse(n):Bf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?ti.transform(n):ns.transform(n),getAnimatableNone:n=>{const i=ie.parse(n);return i.alpha=0,ie.transform(i)}},JA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WA(n){return isNaN(n)&&typeof n=="string"&&(n.match(Cd)?.length||0)+(n.match(JA)?.length||0)>0}const Nb="number",jb="color",IA="var",$A="var(",Ey="${}",tC=/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 Sl(n){const i=n.toString(),l=[],r={color:[],number:[],var:[]},c=[];let f=0;const h=i.replace(tC,g=>(ie.test(g)?(r.color.push(f),c.push(jb),l.push(ie.parse(g))):g.startsWith($A)?(r.var.push(f),c.push(IA),l.push(g)):(r.number.push(f),c.push(Nb),l.push(parseFloat(g))),++f,Ey)).split(Ey);return{values:l,split:h,indexes:r,types:c}}function Db(n){return Sl(n).values}function Rb(n){const{split:i,types:l}=Sl(n),r=i.length;return c=>{let f="";for(let d=0;d<r;d++)if(f+=i[d],c[d]!==void 0){const h=l[d];h===Nb?f+=pl(c[d]):h===jb?f+=ie.transform(c[d]):f+=c[d]}return f}}const eC=n=>typeof n=="number"?0:ie.test(n)?ie.getAnimatableNone(n):n;function nC(n){const i=Db(n);return Rb(n)(i.map(eC))}const on={test:WA,parse:Db,createTransformer:Rb,getAnimatableNone:nC};function xf(n,i,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?n+(i-n)*6*l:l<1/2?i:l<2/3?n+(i-n)*(2/3-l)*6:n}function aC({hue:n,saturation:i,lightness:l,alpha:r}){n/=360,i/=100,l/=100;let c=0,f=0,d=0;if(!i)c=f=d=l;else{const h=l<.5?l*(1+i):l+i-l*i,g=2*l-h;c=xf(g,h,n+1/3),f=xf(g,h,n),d=xf(g,h,n-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function Co(n,i){return l=>l>0?i:n}const Yt=(n,i,l)=>n+(i-n)*l,Sf=(n,i,l)=>{const r=n*n,c=l*(i*i-r)+r;return c<0?0:Math.sqrt(c)},iC=[Bf,ti,ns],sC=n=>iC.find(i=>i.test(n));function wy(n){const i=sC(n);if(!i)return!1;let l=i.parse(n);return i===ns&&(l=aC(l)),l}const Ay=(n,i)=>{const l=wy(n),r=wy(i);if(!l||!r)return Co(n,i);const c={...l};return f=>(c.red=Sf(l.red,r.red,f),c.green=Sf(l.green,r.green,f),c.blue=Sf(l.blue,r.blue,f),c.alpha=Yt(l.alpha,r.alpha,f),ti.transform(c))},Hf=new Set(["none","hidden"]);function lC(n,i){return Hf.has(n)?l=>l<=0?n:i:l=>l>=1?i:n}function rC(n,i){return l=>Yt(n,i,l)}function Nd(n){return typeof n=="number"?rC:typeof n=="string"?Ad(n)?Co:ie.test(n)?Ay:cC:Array.isArray(n)?Ob:typeof n=="object"?ie.test(n)?Ay:oC:Co}function Ob(n,i){const l=[...n],r=l.length,c=n.map((f,d)=>Nd(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)l[d]=c[d](f);return l}}function oC(n,i){const l={...n,...i},r={};for(const c in l)n[c]!==void 0&&i[c]!==void 0&&(r[c]=Nd(n[c])(n[c],i[c]));return c=>{for(const f in r)l[f]=r[f](c);return l}}function uC(n,i){const l=[],r={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const f=i.types[c],d=n.indexes[f][r[f]],h=n.values[d]??0;l[c]=h,r[f]++}return l}const cC=(n,i)=>{const l=on.createTransformer(i),r=Sl(n),c=Sl(i);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?Hf.has(n)&&!c.values.length||Hf.has(i)&&!r.values.length?lC(n,i):Nl(Ob(uC(r,c),c.values),l):Co(n,i)};function zb(n,i,l){return typeof n=="number"&&typeof i=="number"&&typeof l=="number"?Yt(n,i,l):Nd(n)(n,i)}const fC=n=>{const i=({timestamp:l})=>n(l);return{start:(l=!0)=>Ut.update(i,l),stop:()=>Ca(i),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},_b=(n,i,l=10)=>{let r="";const c=Math.max(Math.round(i/l),2);for(let f=0;f<c;f++)r+=Math.round(n(f/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Mo=2e4;function jd(n){let i=0;const l=50;let r=n.next(i);for(;!r.done&&i<Mo;)i+=l,r=n.next(i);return i>=Mo?1/0:i}function dC(n,i=100,l){const r=l({...n,keyframes:[0,i]}),c=Math.min(jd(r),Mo);return{type:"keyframes",ease:f=>r.next(c*f).value/i,duration:We(c)}}const hC=5;function Vb(n,i,l){const r=Math.max(i-hC,0);return hb(l-n(r),i-r)}const Ft={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},Tf=.001;function mC({duration:n=Ft.duration,bounce:i=Ft.bounce,velocity:l=Ft.velocity,mass:r=Ft.mass}){let c,f,d=1-i;d=En(Ft.minDamping,Ft.maxDamping,d),n=En(Ft.minDuration,Ft.maxDuration,We(n)),d<1?(c=p=>{const v=p*d,b=v*n,S=v-l,A=Gf(p,d),D=Math.exp(-b);return Tf-S/A*D},f=p=>{const b=p*d*n,S=b*l+l,A=Math.pow(d,2)*Math.pow(p,2)*n,D=Math.exp(-b),M=Gf(Math.pow(p,2),d);return(-c(p)+Tf>0?-1:1)*((S-A)*D)/M}):(c=p=>{const v=Math.exp(-p*n),b=(p-l)*n+1;return-Tf+v*b},f=p=>{const v=Math.exp(-p*n),b=(l-p)*(n*n);return v*b});const h=5/n,g=gC(c,f,h);if(n=rn(n),isNaN(g))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:n};{const p=Math.pow(g,2)*r;return{stiffness:p,damping:d*2*Math.sqrt(r*p),duration:n}}}const pC=12;function gC(n,i,l){let r=l;for(let c=1;c<pC;c++)r=r-n(r)/i(r);return r}function Gf(n,i){return n*Math.sqrt(1-i*i)}const yC=["duration","bounce"],vC=["stiffness","damping","mass"];function Cy(n,i){return i.some(l=>n[l]!==void 0)}function bC(n){let i={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...n};if(!Cy(n,vC)&&Cy(n,yC))if(i.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),c=r*r,f=2*En(.05,1,1-(n.bounce||0))*Math.sqrt(c);i={...i,mass:Ft.mass,stiffness:c,damping:f}}else{const l=mC({...n,velocity:0});i={...i,...l,mass:Ft.mass},i.isResolvedFromDuration=!0}return i}function No(n=Ft.visualDuration,i=Ft.bounce){const l=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:i}:n;let{restSpeed:r,restDelta:c}=l;const f=l.keyframes[0],d=l.keyframes[l.keyframes.length-1],h={done:!1,value:f},{stiffness:g,damping:p,mass:v,duration:b,velocity:S,isResolvedFromDuration:A}=bC({...l,velocity:-We(l.velocity||0)}),D=S||0,M=p/(2*Math.sqrt(g*v)),N=d-f,V=We(Math.sqrt(g/v)),q=Math.abs(N)<5;r||(r=q?Ft.restSpeed.granular:Ft.restSpeed.default),c||(c=q?Ft.restDelta.granular:Ft.restDelta.default);let U;if(M<1){const P=Gf(V,M);U=W=>{const Z=Math.exp(-M*V*W);return d-Z*((D+M*V*N)/P*Math.sin(P*W)+N*Math.cos(P*W))}}else if(M===1)U=P=>d-Math.exp(-V*P)*(N+(D+V*N)*P);else{const P=V*Math.sqrt(M*M-1);U=W=>{const Z=Math.exp(-M*V*W),L=Math.min(P*W,300);return d-Z*((D+M*V*N)*Math.sinh(L)+P*N*Math.cosh(L))/P}}const G={calculatedDuration:A&&b||null,next:P=>{const W=U(P);if(A)h.done=P>=b;else{let Z=P===0?D:0;M<1&&(Z=P===0?rn(D):Vb(U,P,W));const L=Math.abs(Z)<=r,tt=Math.abs(d-W)<=c;h.done=L&&tt}return h.value=h.done?d:W,h},toString:()=>{const P=Math.min(jd(G),Mo),W=_b(Z=>G.next(P*Z).value,P,30);return P+"ms "+W},toTransition:()=>{}};return G}No.applyToOptions=n=>{const i=dC(n,100,No);return n.ease=i.ease,n.duration=rn(i.duration),n.type="keyframes",n};function qf({keyframes:n,velocity:i=0,power:l=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:g,restDelta:p=.5,restSpeed:v}){const b=n[0],S={done:!1,value:b},A=L=>h!==void 0&&L<h||g!==void 0&&L>g,D=L=>h===void 0?g:g===void 0||Math.abs(h-L)<Math.abs(g-L)?h:g;let M=l*i;const N=b+M,V=d===void 0?N:d(N);V!==N&&(M=V-b);const q=L=>-M*Math.exp(-L/r),U=L=>V+q(L),G=L=>{const tt=q(L),mt=U(L);S.done=Math.abs(tt)<=p,S.value=S.done?V:mt};let P,W;const Z=L=>{A(S.value)&&(P=L,W=No({keyframes:[S.value,D(S.value)],velocity:Vb(U,L,S.value),damping:c,stiffness:f,restDelta:p,restSpeed:v}))};return Z(0),{calculatedDuration:null,next:L=>{let tt=!1;return!W&&P===void 0&&(tt=!0,G(L),Z(L)),P!==void 0&&L>=P?W.next(L-P):(!tt&&G(L),S)}}}function xC(n,i,l){const r=[],c=l||Pn.mix||zb,f=n.length-1;for(let d=0;d<f;d++){let h=c(n[d],n[d+1]);if(i){const g=Array.isArray(i)?i[d]||Ie:i;h=Nl(g,h)}r.push(h)}return r}function SC(n,i,{clamp:l=!0,ease:r,mixer:c}={}){const f=n.length;if(Sd(f===i.length),f===1)return()=>i[0];if(f===2&&i[0]===i[1])return()=>i[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),i=[...i].reverse());const h=xC(i,r,c),g=h.length,p=v=>{if(d&&v<n[0])return i[0];let b=0;if(g>1)for(;b<n.length-2&&!(v<n[b+1]);b++);const S=bl(n[b],n[b+1],v);return h[b](S)};return l?v=>p(En(n[0],n[f-1],v)):p}function TC(n,i){const l=n[n.length-1];for(let r=1;r<=i;r++){const c=bl(0,i,r);n.push(Yt(l,1,c))}}function EC(n){const i=[0];return TC(i,n.length-1),i}function wC(n,i){return n.map(l=>l*i)}function AC(n,i){return n.map(()=>i||Tb).splice(0,n.length-1)}function gl({duration:n=300,keyframes:i,times:l,ease:r="easeInOut"}){const c=LA(r)?r.map(xy):xy(r),f={done:!1,value:i[0]},d=wC(l&&l.length===i.length?l:EC(i),n),h=SC(d,i,{ease:Array.isArray(c)?c:AC(i,c)});return{calculatedDuration:n,next:g=>(f.value=h(g),f.done=g>=n,f)}}const CC=n=>n!==null;function Dd(n,{repeat:i,repeatType:l="loop"},r,c=1){const f=n.filter(CC),h=c<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const MC={decay:qf,inertia:qf,tween:gl,keyframes:gl,spring:No};function Lb(n){typeof n.type=="string"&&(n.type=MC[n.type])}class Rd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,l){return this.finished.then(i,l)}}const NC=n=>n/100;class Od extends Rd{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:l}=this.options;l&&l.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;Lb(i);const{type:l=gl,repeat:r=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:h}=i;const g=l||gl;g!==gl&&typeof h[0]!="number"&&(this.mixKeyframes=Nl(NC,zb(h[0],h[1])),h=[0,100]);const p=g({...i,keyframes:h});f==="mirror"&&(this.mirroredGenerator=g({...i,keyframes:[...h].reverse(),velocity:-d})),p.calculatedDuration===null&&(p.calculatedDuration=jd(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=p}updateTime(i){const l=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=l}tick(i,l=!1){const{generator:r,totalDuration:c,mixKeyframes:f,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:b,repeatType:S,repeatDelay:A,type:D,onUpdate:M,finalKeyframe:N}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),l?this.currentTime=i:this.updateTime(i);const V=this.currentTime-p*(this.playbackSpeed>=0?1:-1),q=this.playbackSpeed>=0?V<0:V>c;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let U=this.currentTime,G=r;if(b){const L=Math.min(this.currentTime,c)/h;let tt=Math.floor(L),mt=L%1;!mt&&L>=1&&(mt=1),mt===1&&tt--,tt=Math.min(tt,b+1),tt%2&&(S==="reverse"?(mt=1-mt,A&&(mt-=A/h)):S==="mirror"&&(G=d)),U=En(0,1,mt)*h}const P=q?{done:!1,value:v[0]}:G.next(U);f&&(P.value=f(P.value));let{done:W}=P;!q&&g!==null&&(W=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const Z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&W);return Z&&D!==qf&&(P.value=Dd(v,this.options,N,this.speed)),M&&M(P.value),Z&&this.finish(),P}then(i,l){return this.finished.then(i,l)}get duration(){return We(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+We(i)}get time(){return We(this.currentTime)}set time(i){i=rn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(Ae.now());const l=this.playbackSpeed!==i;this.playbackSpeed=i,l&&(this.time=We(this.currentTime))}play(){if(this.isStopped)return;const{driver:i=fC,startTime:l}=this.options;this.driver||(this.driver=i(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=l??r),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(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),i.observe(this)}}function jC(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const ei=n=>n*180/Math.PI,Yf=n=>{const i=ei(Math.atan2(n[1],n[0]));return Xf(i)},DC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Yf,rotateZ:Yf,skewX:n=>ei(Math.atan(n[1])),skewY:n=>ei(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Xf=n=>(n=n%360,n<0&&(n+=360),n),My=Yf,Ny=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),jy=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),RC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ny,scaleY:jy,scale:n=>(Ny(n)+jy(n))/2,rotateX:n=>Xf(ei(Math.atan2(n[6],n[5]))),rotateY:n=>Xf(ei(Math.atan2(-n[2],n[0]))),rotateZ:My,rotate:My,skewX:n=>ei(Math.atan(n[4])),skewY:n=>ei(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Kf(n){return n.includes("scale")?1:0}function Pf(n,i){if(!n||n==="none")return Kf(i);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(l)r=RC,c=l;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=DC,c=h}if(!c)return Kf(i);const f=r[i],d=c[1].split(",").map(zC);return typeof f=="function"?f(d):d[f]}const OC=(n,i)=>{const{transform:l="none"}=getComputedStyle(n);return Pf(l,i)};function zC(n){return parseFloat(n.trim())}const fs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ds=new Set(fs),Dy=n=>n===cs||n===it,_C=new Set(["x","y","z"]),VC=fs.filter(n=>!_C.has(n));function LC(n){const i=[];return VC.forEach(l=>{const r=n.getValue(l);r!==void 0&&(i.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),i}const wa={width:({x:n},{paddingLeft:i="0",paddingRight:l="0"})=>n.max-n.min-parseFloat(i)-parseFloat(l),height:({y:n},{paddingTop:i="0",paddingBottom:l="0"})=>n.max-n.min-parseFloat(i)-parseFloat(l),top:(n,{top:i})=>parseFloat(i),left:(n,{left:i})=>parseFloat(i),bottom:({y:n},{top:i})=>parseFloat(i)+(n.max-n.min),right:({x:n},{left:i})=>parseFloat(i)+(n.max-n.min),x:(n,{transform:i})=>Pf(i,"x"),y:(n,{transform:i})=>Pf(i,"y")};wa.translateX=wa.x;wa.translateY=wa.y;const ni=new Set;let Zf=!1,Ff=!1,Qf=!1;function Ub(){if(Ff){const n=Array.from(ni).filter(r=>r.needsMeasurement),i=new Set(n.map(r=>r.element)),l=new Map;i.forEach(r=>{const c=LC(r);c.length&&(l.set(r,c),r.render())}),n.forEach(r=>r.measureInitialState()),i.forEach(r=>{r.render();const c=l.get(r);c&&c.forEach(([f,d])=>{r.getValue(f)?.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ff=!1,Zf=!1,ni.forEach(n=>n.complete(Qf)),ni.clear()}function kb(){ni.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Ff=!0)})}function UC(){Qf=!0,kb(),Ub(),Qf=!1}class zd{constructor(i,l,r,c,f,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=l,this.name=r,this.motionValue=c,this.element=f,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(ni.add(this),Zf||(Zf=!0,Ut.read(kb),Ut.resolveKeyframes(Ub))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:l,element:r,motionValue:c}=this;if(i[0]===null){const f=c?.get(),d=i[i.length-1];if(f!==void 0)i[0]=f;else if(r&&l){const h=r.readValue(l,d);h!=null&&(i[0]=h)}i[0]===void 0&&(i[0]=d),c&&f===void 0&&c.set(i[0])}jC(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),ni.delete(this)}cancel(){this.state==="scheduled"&&(ni.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kC=n=>n.startsWith("--");function BC(n,i,l){kC(i)?n.style.setProperty(i,l):n.style[i]=l}const HC={};function Bb(n,i){const l=db(n);return()=>HC[i]??l()}const GC=Bb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Hb=Bb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hl=([n,i,l,r])=>`cubic-bezier(${n}, ${i}, ${l}, ${r})`,Ry={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hl([0,.65,.55,1]),circOut:hl([.55,0,1,.45]),backIn:hl([.31,.01,.66,-.59]),backOut:hl([.33,1.53,.69,.99])};function Gb(n,i){if(n)return typeof n=="function"?Hb()?_b(n,i):"ease-out":Eb(n)?hl(n):Array.isArray(n)?n.map(l=>Gb(l,i)||Ry.easeOut):Ry[n]}function qC(n,i,l,{delay:r=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:g}={},p=void 0){const v={[i]:l};g&&(v.offset=g);const b=Gb(h,c);Array.isArray(b)&&(v.easing=b);const S={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),n.animate(v,S)}function qb(n){return typeof n=="function"&&"applyToOptions"in n}function YC({type:n,...i}){return qb(n)&&Hb()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Yb extends Rd{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!i)return;const{element:l,name:r,keyframes:c,pseudoElement:f,allowFlatten:d=!1,finalKeyframe:h,onComplete:g}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,Sd(typeof i.type!="string");const p=YC(i);this.animation=qC(l,r,c,p,f),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=Dd(c,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(v):BC(l,r,v),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return We(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+We(i)}get time(){return We(Number(this.animation.currentTime)||0)}set time(i){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=rn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(i){this.manualStartTime=this.animation.startTime=i}attachTimeline({timeline:i,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,i&&GC()?(this.animation.timeline=i,Ie):l(this)}}const Xb={anticipate:bb,backInOut:vb,circInOut:Sb};function XC(n){return n in Xb}function KC(n){typeof n.ease=="string"&&XC(n.ease)&&(n.ease=Xb[n.ease])}const Ef=10;class PC extends Yb{constructor(i){KC(i),Lb(i),super(i),i.startTime!==void 0&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:l,onUpdate:r,onComplete:c,element:f,...d}=this.options;if(!l)return;if(i!==void 0){l.set(i);return}const h=new Od({...d,autoplay:!1}),g=Math.max(Ef,Ae.now()-this.startTime),p=En(0,Ef,g-Ef);l.setWithVelocity(h.sample(Math.max(0,g-p)).value,h.sample(g).value,p),h.stop()}}const Oy=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(on.test(n)||n==="0")&&!n.startsWith("url("));function ZC(n){const i=n[0];if(n.length===1)return!0;for(let l=0;l<n.length;l++)if(n[l]!==i)return!0}function FC(n,i,l,r){const c=n[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const f=n[n.length-1],d=Oy(c,i),h=Oy(f,i);return!d||!h?!1:ZC(n)||(l==="spring"||qb(l))&&r}function Jf(n){n.duration=0,n.type="keyframes"}const QC=new Set(["opacity","clipPath","filter","transform"]),JC=db(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function WC(n){const{motionValue:i,name:l,repeatDelay:r,repeatType:c,damping:f,type:d}=n;if(!(i?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:p}=i.owner.getProps();return JC()&&l&&QC.has(l)&&(l!=="transform"||!p)&&!g&&!r&&c!=="mirror"&&f!==0&&d!=="inertia"}const IC=40;class $C extends Rd{constructor({autoplay:i=!0,delay:l=0,type:r="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:g,motionValue:p,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const S={autoplay:i,delay:l,type:r,repeat:c,repeatDelay:f,repeatType:d,name:g,motionValue:p,element:v,...b},A=v?.KeyframeResolver||zd;this.keyframeResolver=new A(h,(D,M,N)=>this.onKeyframesResolved(D,M,S,!N),g,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,r,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:g,isHandoff:p,onUpdate:v}=r;this.resolvedAt=Ae.now(),FC(i,f,d,h)||((Pn.instantAnimations||!g)&&v?.(Dd(i,r,l)),i[0]=i[i.length-1],Jf(r),r.repeat=0);const S={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>IC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:i},A=!p&&WC(S),D=S.motionValue?.owner?.current,M=A?new PC({...S,element:D}):new Od(S);M.finished.then(()=>{this.notifyFinished()}).catch(Ie),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(i,l){return this.finished.finally(i).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),UC()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Kb(n,i,l,r=0,c=1){const f=Array.from(n).sort((p,v)=>p.sortNodePosition(v)).indexOf(i),d=n.size,h=(d-1)*r;return typeof l=="function"?l(f,d):c===1?f*r:h-f*r}const t3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function e3(n){const i=t3.exec(n);if(!i)return[,];const[,l,r,c]=i;return[`--${l??r}`,c]}function Pb(n,i,l=1){const[r,c]=e3(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return ub(d)?parseFloat(d):d}return Ad(c)?Pb(c,i,l+1):c}const n3={type:"spring",stiffness:500,damping:25,restSpeed:10},a3=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),i3={type:"keyframes",duration:.8},s3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},l3=(n,{keyframes:i})=>i.length>2?i3:ds.has(n)?n.startsWith("scale")?a3(i[1]):n3:s3,r3=n=>n!==null;function o3(n,{repeat:i,repeatType:l="loop"},r){const c=n.filter(r3),f=i&&l!=="loop"&&i%2===1?0:c.length-1;return c[f]}function Zb(n,i){if(n?.inherit&&i){const{inherit:l,...r}=n;return{...i,...r}}return n}function _d(n,i){const l=n?.[i]??n?.default??n;return l!==n?Zb(l,n):l}function u3({when:n,delay:i,delayChildren:l,staggerChildren:r,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:h,from:g,elapsed:p,...v}){return!!Object.keys(v).length}const Vd=(n,i,l,r={},c,f)=>d=>{const h=_d(r,n)||{},g=h.delay||r.delay||0;let{elapsed:p=0}=r;p=p-rn(g);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-p,onUpdate:S=>{i.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:i,element:f?void 0:c};u3(h)||Object.assign(v,l3(n,v)),v.duration&&(v.duration=rn(v.duration)),v.repeatDelay&&(v.repeatDelay=rn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(Jf(v),v.delay===0&&(b=!0)),(Pn.instantAnimations||Pn.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,Jf(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,b&&!f&&i.get()!==void 0){const S=o3(v.keyframes,h);if(S!==void 0){Ut.update(()=>{v.onUpdate(S),v.onComplete()});return}}return h.isSync?new Od(v):new $C(v)};function zy(n){const i=[{},{}];return n?.values.forEach((l,r)=>{i[0][r]=l.get(),i[1][r]=l.getVelocity()}),i}function Ld(n,i,l,r){if(typeof i=="function"){const[c,f]=zy(r);i=i(l!==void 0?l:n.custom,c,f)}if(typeof i=="string"&&(i=n.variants&&n.variants[i]),typeof i=="function"){const[c,f]=zy(r);i=i(l!==void 0?l:n.custom,c,f)}return i}function os(n,i,l){const r=n.getProps();return Ld(r,i,l!==void 0?l:r.custom,n)}const Fb=new Set(["width","height","top","left","right","bottom",...fs]),_y=30,c3=n=>!isNaN(parseFloat(n));class f3{constructor(i,l={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=Ae.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=l.owner}setCurrent(i){this.current=i,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=c3(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,l){this.events[i]||(this.events[i]=new Td);const r=this.events[i].add(l);return i==="change"?()=>{r(),Ut.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,l){this.passiveEffect=i,this.stopPassiveEffect=l}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,l,r){this.set(l),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-r}jump(i,l=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,l&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>_y)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,_y);return hb(parseFloat(this.current)-parseFloat(this.prevFrameValue),l)}start(i){return this.stop(),new Promise(l=>{this.hasAnimated=!0,this.animation=i(l),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 us(n,i){return new f3(n,i)}const Wf=n=>Array.isArray(n);function d3(n,i,l){n.hasValue(i)?n.getValue(i).set(l):n.addValue(i,us(l))}function h3(n){return Wf(n)?n[n.length-1]||0:n}function m3(n,i){const l=os(n,i);let{transitionEnd:r={},transition:c={},...f}=l||{};f={...f,...r};for(const d in f){const h=h3(f[d]);d3(n,d,h)}}const Te=n=>!!(n&&n.getVelocity);function p3(n){return!!(Te(n)&&n.add)}function If(n,i){const l=n.getValue("willChange");if(p3(l))return l.add(i);if(!l&&Pn.WillChange){const r=new Pn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function Ud(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const g3="framerAppearId",Qb="data-"+Ud(g3);function Jb(n){return n.props[Qb]}function y3({protectedKeys:n,needsAnimating:i},l){const r=n.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,r}function Wb(n,i,{delay:l=0,transitionOverride:r,type:c}={}){let{transition:f,transitionEnd:d,...h}=i;const g=n.getDefaultTransition();f=f?Zb(f,g):g;const p=f?.reduceMotion;r&&(f=r);const v=[],b=c&&n.animationState&&n.animationState.getState()[c];for(const S in h){const A=n.getValue(S,n.latestValues[S]??null),D=h[S];if(D===void 0||b&&y3(b,S))continue;const M={delay:l,..._d(f||{},S)},N=A.get();if(N!==void 0&&!A.isAnimating&&!Array.isArray(D)&&D===N&&!M.velocity)continue;let V=!1;if(window.MotionHandoffAnimation){const G=Jb(n);if(G){const P=window.MotionHandoffAnimation(G,S,Ut);P!==null&&(M.startTime=P,V=!0)}}If(n,S);const q=p??n.shouldReduceMotion;A.start(Vd(S,A,D,q&&Fb.has(S)?{type:!1}:M,n,V));const U=A.animation;U&&v.push(U)}if(d){const S=()=>Ut.update(()=>{d&&m3(n,d)});v.length?Promise.all(v).then(S):S()}return v}function $f(n,i,l={}){const r=os(n,i,l.type==="exit"?n.presenceContext?.custom:void 0);let{transition:c=n.getDefaultTransition()||{}}=r||{};l.transitionOverride&&(c=l.transitionOverride);const f=r?()=>Promise.all(Wb(n,r,l)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:b}=c;return v3(n,i,g,p,v,b,l)}:()=>Promise.resolve(),{when:h}=c;if(h){const[g,p]=h==="beforeChildren"?[f,d]:[d,f];return g().then(()=>p())}else return Promise.all([f(),d(l.delay)])}function v3(n,i,l=0,r=0,c=0,f=1,d){const h=[];for(const g of n.variantChildren)g.notify("AnimationStart",i),h.push($f(g,i,{...d,delay:l+(typeof r=="function"?0:r)+Kb(n.variantChildren,g,r,c,f)}).then(()=>g.notify("AnimationComplete",i)));return Promise.all(h)}function b3(n,i,l={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(f=>$f(n,f,l));r=Promise.all(c)}else if(typeof i=="string")r=$f(n,i,l);else{const c=typeof i=="function"?os(n,i,l.custom):i;r=Promise.all(Wb(n,c,l))}return r.then(()=>{n.notify("AnimationComplete",i)})}const x3={test:n=>n==="auto",parse:n=>n},Ib=n=>i=>i.test(n),$b=[cs,it,Sn,Ea,QA,FA,x3],Vy=n=>$b.find(Ib(n));function S3(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||fb(n):!0}const T3=new Set(["brightness","contrast","saturate","opacity"]);function E3(n){const[i,l]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=l.match(Cd)||[];if(!r)return n;const c=l.replace(r,"");let f=T3.has(i)?1:0;return r!==l&&(f*=100),i+"("+f+c+")"}const w3=/\b([a-z-]*)\(.*?\)/gu,td={...on,getAnimatableNone:n=>{const i=n.match(w3);return i?i.map(E3).join(" "):n}},ed={...on,getAnimatableNone:n=>{const i=on.parse(n);return on.createTransformer(n)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Ly={...cs,transform:Math.round},A3={rotate:Ea,rotateX:Ea,rotateY:Ea,rotateZ:Ea,scale:uo,scaleX:uo,scaleY:uo,scaleZ:uo,skew:Ea,skewX:Ea,skewY:Ea,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:xl,originX:Ty,originY:Ty,originZ:it},kd={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,inset:it,insetBlock:it,insetBlockStart:it,insetBlockEnd:it,insetInline:it,insetInlineStart:it,insetInlineEnd:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,paddingBlock:it,paddingBlockStart:it,paddingBlockEnd:it,paddingInline:it,paddingInlineStart:it,paddingInlineEnd:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,marginBlock:it,marginBlockStart:it,marginBlockEnd:it,marginInline:it,marginInlineStart:it,marginInlineEnd:it,fontSize:it,backgroundPositionX:it,backgroundPositionY:it,...A3,zIndex:Ly,fillOpacity:xl,strokeOpacity:xl,numOctaves:Ly},C3={...kd,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:td,WebkitFilter:td,mask:ed,WebkitMask:ed},tx=n=>C3[n],M3=new Set([td,ed]);function ex(n,i){let l=tx(n);return M3.has(l)||(l=on),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const N3=new Set(["auto","none","0"]);function j3(n,i,l){let r=0,c;for(;r<n.length&&!c;){const f=n[r];typeof f=="string"&&!N3.has(f)&&Sl(f).values.length&&(c=n[r]),r++}if(c&&l)for(const f of i)n[f]=ex(l,c)}class D3 extends zd{constructor(i,l,r,c,f){super(i,l,r,c,f,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:l,name:r}=this;if(!l||!l.current)return;super.readKeyframes();for(let v=0;v<i.length;v++){let b=i[v];if(typeof b=="string"&&(b=b.trim(),Ad(b))){const S=Pb(b,l.current);S!==void 0&&(i[v]=S),v===i.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!Fb.has(r)||i.length!==2)return;const[c,f]=i,d=Vy(c),h=Vy(f),g=Sy(c),p=Sy(f);if(g!==p&&wa[r]){this.needsMeasurement=!0;return}if(d!==h)if(Dy(d)&&Dy(h))for(let v=0;v<i.length;v++){const b=i[v];typeof b=="string"&&(i[v]=parseFloat(b))}else wa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||S3(i[c]))&&r.push(c);r.length&&j3(i,r,l)}measureInitialState(){const{element:i,unresolvedKeyframes:l,name:r}=this;if(!i||!i.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wa[r](i.measureViewportBox(),window.getComputedStyle(i.current)),l[0]=this.measuredOrigin;const c=l[l.length-1];c!==void 0&&i.getValue(r,c).jump(c,!1)}measureEndState(){const{element:i,name:l,unresolvedKeyframes:r}=this;if(!i||!i.current)return;const c=i.getValue(l);c&&c.jump(this.measuredOrigin,!1);const f=r.length-1,d=r[f];r[f]=wa[l](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,g])=>{i.getValue(h).set(g)}),this.resolveNoneKeyframes()}}const R3=new Set(["opacity","clipPath","filter","transform"]);function nx(n,i,l){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let r=document;const c=l?.[n]??r.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n).filter(r=>r!=null)}const ax=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function nd(n){return cb(n)&&"offsetHeight"in n}const{schedule:Bd}=wb(queueMicrotask,!1),ln={x:!1,y:!1};function ix(){return ln.x||ln.y}function O3(n){return n==="x"||n==="y"?ln[n]?null:(ln[n]=!0,()=>{ln[n]=!1}):ln.x||ln.y?null:(ln.x=ln.y=!0,()=>{ln.x=ln.y=!1})}function sx(n,i){const l=nx(n),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[l,c,()=>r.abort()]}function z3(n){return!(n.pointerType==="touch"||ix())}function _3(n,i,l={}){const[r,c,f]=sx(n,l);return r.forEach(d=>{let h=!1,g=!1,p;const v=()=>{d.removeEventListener("pointerleave",D)},b=N=>{p&&(p(N),p=void 0),v()},S=N=>{h=!1,window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),g&&(g=!1,b(N))},A=()=>{h=!0,window.addEventListener("pointerup",S,c),window.addEventListener("pointercancel",S,c)},D=N=>{if(N.pointerType!=="touch"){if(h){g=!0;return}b(N)}},M=N=>{if(!z3(N))return;g=!1;const V=i(d,N);typeof V=="function"&&(p=V,d.addEventListener("pointerleave",D,c))};d.addEventListener("pointerenter",M,c),d.addEventListener("pointerdown",A,c)}),f}const lx=(n,i)=>i?n===i?!0:lx(n,i.parentElement):!1,Hd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,V3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L3(n){return V3.has(n.tagName)||n.isContentEditable===!0}const U3=new Set(["INPUT","SELECT","TEXTAREA"]);function k3(n){return U3.has(n.tagName)||n.isContentEditable===!0}const go=new WeakSet;function Uy(n){return i=>{i.key==="Enter"&&n(i)}}function wf(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const B3=(n,i)=>{const l=n.currentTarget;if(!l)return;const r=Uy(()=>{if(go.has(l))return;wf(l,"down");const c=Uy(()=>{wf(l,"up")}),f=()=>wf(l,"cancel");l.addEventListener("keyup",c,i),l.addEventListener("blur",f,i)});l.addEventListener("keydown",r,i),l.addEventListener("blur",()=>l.removeEventListener("keydown",r),i)};function ky(n){return Hd(n)&&!ix()}const By=new WeakSet;function H3(n,i,l={}){const[r,c,f]=sx(n,l),d=h=>{const g=h.currentTarget;if(!ky(h)||By.has(h))return;go.add(g),l.stopPropagation&&By.add(h);const p=i(g,h),v=(A,D)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),go.has(g)&&go.delete(g),ky(A)&&typeof p=="function"&&p(A,{success:D})},b=A=>{v(A,g===window||g===document||l.useGlobalTarget||lx(g,A.target))},S=A=>{v(A,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",S,c)};return r.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,c),nd(h)&&(h.addEventListener("focus",p=>B3(p,c)),!L3(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Gd(n){return cb(n)&&"ownerSVGElement"in n}const yo=new WeakMap;let vo;const rx=(n,i,l)=>(r,c)=>c&&c[0]?c[0][n+"Size"]:Gd(r)&&"getBBox"in r?r.getBBox()[i]:r[l],G3=rx("inline","width","offsetWidth"),q3=rx("block","height","offsetHeight");function Y3({target:n,borderBoxSize:i}){yo.get(n)?.forEach(l=>{l(n,{get width(){return G3(n,i)},get height(){return q3(n,i)}})})}function X3(n){n.forEach(Y3)}function K3(){typeof ResizeObserver>"u"||(vo=new ResizeObserver(X3))}function P3(n,i){vo||K3();const l=nx(n);return l.forEach(r=>{let c=yo.get(r);c||(c=new Set,yo.set(r,c)),c.add(i),vo?.observe(r)}),()=>{l.forEach(r=>{const c=yo.get(r);c?.delete(i),c?.size||vo?.unobserve(r)})}}const bo=new Set;let as;function Z3(){as=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};bo.forEach(i=>i(n))},window.addEventListener("resize",as)}function F3(n){return bo.add(n),as||Z3(),()=>{bo.delete(n),!bo.size&&typeof as=="function"&&(window.removeEventListener("resize",as),as=void 0)}}function Hy(n,i){return typeof n=="function"?F3(n):P3(n,i)}function Q3(n){return Gd(n)&&n.tagName==="svg"}const J3=[...$b,ie,on],W3=n=>J3.find(Ib(n)),Gy=()=>({translate:0,scale:1,origin:0,originPoint:0}),is=()=>({x:Gy(),y:Gy()}),qy=()=>({min:0,max:0}),re=()=>({x:qy(),y:qy()}),I3=new WeakMap;function Ho(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Tl(n){return typeof n=="string"||Array.isArray(n)}const qd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yd=["initial",...qd];function Go(n){return Ho(n.animate)||Yd.some(i=>Tl(n[i]))}function ox(n){return!!(Go(n)||n.variants)}function $3(n,i,l){for(const r in i){const c=i[r],f=l[r];if(Te(c))n.addValue(r,c);else if(Te(f))n.addValue(r,us(c,{owner:n}));else if(f!==c)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(c):d.hasAnimated||d.set(c)}else{const d=n.getStaticValue(r);n.addValue(r,us(d!==void 0?d:c,{owner:n}))}}for(const r in l)i[r]===void 0&&n.removeValue(r);return i}const ad={current:null},ux={current:!1},tM=typeof window<"u";function eM(){if(ux.current=!0,!!tM)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>ad.current=n.matches;n.addEventListener("change",i),i()}else ad.current=!1}const Yy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let jo={};function cx(n){jo=n}function nM(){return jo}class aM{scrapeMotionValuesFromProps(i,l,r){return{}}constructor({parent:i,props:l,presenceContext:r,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:h},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=zd,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 A=Ae.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,Ut.render(this.render,!1,!0))};const{latestValues:p,renderState:v}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=l.initial?{...p}:{},this.renderState=v,this.parent=i,this.props=l,this.presenceContext=r,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=f,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=Go(l),this.isVariantNode=ox(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...S}=this.scrapeMotionValuesFromProps(l,{},this);for(const A in S){const D=S[A];p[A]!==void 0&&Te(D)&&D.set(p[A])}}mount(i){if(this.hasBeenMounted)for(const l in this.initialValues)this.values.get(l)?.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=i,I3.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,r)=>this.bindToMotionValue(r,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ux.current||eM(),this.shouldReduceMotion=ad.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(),Ca(this.notifyUpdate),Ca(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const l=this.features[i];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,l){if(this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)(),l.accelerate&&R3.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:g,ease:p,duration:v}=l.accelerate,b=new Yb({element:this.current,name:i,keyframes:h,times:g,ease:p,duration:rn(v)}),S=d(b);this.valueSubscriptions.set(i,()=>{S(),b.cancel()});return}const r=ds.has(i);r&&this.onBindTransform&&this.onBindTransform();const c=l.on("change",d=>{this.latestValues[i]=d,this.props.onUpdate&&Ut.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let f;typeof window<"u"&&window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,i,l)),this.valueSubscriptions.set(i,()=>{c(),f&&f(),l.owner&&l.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in jo){const l=jo[i];if(!l)continue;const{isEnabled:r,Feature:c}=l;if(!this.features[i]&&c&&r(this.props)&&(this.features[i]=new c(this)),this.features[i]){const f=this.features[i];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,l){this.latestValues[i]=l}update(i,l){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=l;for(let r=0;r<Yy.length;r++){const c=Yy[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const f="on"+c,d=i[f];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=$3(this,this.scrapeMotionValuesFromProps(i,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const l=this.getClosestVariantNode();if(l)return l.variantChildren&&l.variantChildren.add(i),()=>l.variantChildren.delete(i)}addValue(i,l){const r=this.values.get(i);l!==r&&(r&&this.removeValue(i),this.bindToMotionValue(i,l),this.values.set(i,l),this.latestValues[i]=l.get())}removeValue(i){this.values.delete(i);const l=this.valueSubscriptions.get(i);l&&(l(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,l){if(this.props.values&&this.props.values[i])return this.props.values[i];let r=this.values.get(i);return r===void 0&&l!==void 0&&(r=us(l===null?void 0:l,{owner:this}),this.addValue(i,r)),r}readValue(i,l){let r=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return r!=null&&(typeof r=="string"&&(ub(r)||fb(r))?r=parseFloat(r):!W3(r)&&on.test(l)&&(r=ex(i,l)),this.setBaseTarget(i,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(i,l){this.baseTarget[i]=l}getBaseTarget(i){const{initial:l}=this.props;let r;if(typeof l=="string"||typeof l=="object"){const f=Ld(this.props,l,this.presenceContext?.custom);f&&(r=f[i])}if(l&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!Te(c)?c:this.initialValues[i]!==void 0&&r===void 0?void 0:this.baseTarget[i]}on(i,l){return this.events[i]||(this.events[i]=new Td),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Bd.render(this.render)}}class fx extends aM{constructor(){super(...arguments),this.KeyframeResolver=D3}sortInstanceNodePosition(i,l){return i.compareDocumentPosition(l)&2?1:-1}getBaseTargetFromProps(i,l){const r=i.style;return r?r[l]:void 0}removeValueFromRenderState(i,{vars:l,style:r}){delete l[i],delete r[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Te(i)&&(this.childSubscription=i.on("change",l=>{this.current&&(this.current.textContent=`${l}`)}))}}class Na{constructor(i){this.isMounted=!1,this.node=i}update(){}}function dx({top:n,left:i,right:l,bottom:r}){return{x:{min:i,max:l},y:{min:n,max:r}}}function iM({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function sM(n,i){if(!i)return n;const l=i({x:n.left,y:n.top}),r=i({x:n.right,y:n.bottom});return{top:l.y,left:l.x,bottom:r.y,right:r.x}}function Af(n){return n===void 0||n===1}function id({scale:n,scaleX:i,scaleY:l}){return!Af(n)||!Af(i)||!Af(l)}function $a(n){return id(n)||hx(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function hx(n){return Xy(n.x)||Xy(n.y)}function Xy(n){return n&&n!=="0%"}function Do(n,i,l){const r=n-l,c=i*r;return l+c}function Ky(n,i,l,r,c){return c!==void 0&&(n=Do(n,c,r)),Do(n,l,r)+i}function sd(n,i=0,l=1,r,c){n.min=Ky(n.min,i,l,r,c),n.max=Ky(n.max,i,l,r,c)}function mx(n,{x:i,y:l}){sd(n.x,i.translate,i.scale,i.originPoint),sd(n.y,l.translate,l.scale,l.originPoint)}const Py=.999999999999,Zy=1.0000000000001;function lM(n,i,l,r=!1){const c=l.length;if(!c)return;i.x=i.y=1;let f,d;for(let h=0;h<c;h++){f=l[h],d=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&f.options.layoutScroll&&f.scroll&&f!==f.root&&ls(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(i.x*=d.x.scale,i.y*=d.y.scale,mx(n,d)),r&&$a(f.latestValues)&&ls(n,f.latestValues))}i.x<Zy&&i.x>Py&&(i.x=1),i.y<Zy&&i.y>Py&&(i.y=1)}function ss(n,i){n.min=n.min+i,n.max=n.max+i}function Fy(n,i,l,r,c=.5){const f=Yt(n.min,n.max,c);sd(n,i,l,f,r)}function ls(n,i){Fy(n.x,i.x,i.scaleX,i.scale,i.originX),Fy(n.y,i.y,i.scaleY,i.scale,i.originY)}function px(n,i){return dx(sM(n.getBoundingClientRect(),i))}function rM(n,i,l){const r=px(n,l),{scroll:c}=i;return c&&(ss(r.x,c.offset.x),ss(r.y,c.offset.y)),r}const oM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uM=fs.length;function cM(n,i,l){let r="",c=!0;for(let f=0;f<uM;f++){const d=fs[f],h=n[d];if(h===void 0)continue;let g=!0;if(typeof h=="number")g=h===(d.startsWith("scale")?1:0);else{const p=parseFloat(h);g=d.startsWith("scale")?p===1:p===0}if(!g||l){const p=ax(h,kd[d]);if(!g){c=!1;const v=oM[d]||d;r+=`${v}(${p}) `}l&&(i[d]=p)}}return r=r.trim(),l?r=l(i,c?"":r):c&&(r="none"),r}function Xd(n,i,l){const{style:r,vars:c,transformOrigin:f}=n;let d=!1,h=!1;for(const g in i){const p=i[g];if(ds.has(g)){d=!0;continue}else if(Cb(g)){c[g]=p;continue}else{const v=ax(p,kd[g]);g.startsWith("origin")?(h=!0,f[g]=v):r[g]=v}}if(i.transform||(d||l?r.transform=cM(i,n.transform,l):r.transform&&(r.transform="none")),h){const{originX:g="50%",originY:p="50%",originZ:v=0}=f;r.transformOrigin=`${g} ${p} ${v}`}}function gx(n,{style:i,vars:l},r,c){const f=n.style;let d;for(d in i)f[d]=i[d];c?.applyProjectionStyles(f,r);for(d in l)f.setProperty(d,l[d])}function Qy(n,i){return i.max===i.min?0:n/(i.max-i.min)*100}const dl={correct:(n,i)=>{if(!i.target)return n;if(typeof n=="string")if(it.test(n))n=parseFloat(n);else return n;const l=Qy(n,i.target.x),r=Qy(n,i.target.y);return`${l}% ${r}%`}},fM={correct:(n,{treeScale:i,projectionDelta:l})=>{const r=n,c=on.parse(n);if(c.length>5)return r;const f=on.createTransformer(n),d=typeof c[0]!="number"?1:0,h=l.x.scale*i.x,g=l.y.scale*i.y;c[0+d]/=h,c[1+d]/=g;const p=Yt(h,g,.5);return typeof c[2+d]=="number"&&(c[2+d]/=p),typeof c[3+d]=="number"&&(c[3+d]/=p),f(c)}},ld={borderRadius:{...dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dl,borderTopRightRadius:dl,borderBottomLeftRadius:dl,borderBottomRightRadius:dl,boxShadow:fM};function yx(n,{layout:i,layoutId:l}){return ds.has(n)||n.startsWith("origin")||(i||l!==void 0)&&(!!ld[n]||n==="opacity")}function Kd(n,i,l){const r=n.style,c=i?.style,f={};if(!r)return f;for(const d in r)(Te(r[d])||c&&Te(c[d])||yx(d,n)||l?.getValue(d)?.liveStyle!==void 0)&&(f[d]=r[d]);return f}function dM(n){return window.getComputedStyle(n)}class hM extends fx{constructor(){super(...arguments),this.type="html",this.renderInstance=gx}readValueFromInstance(i,l){if(ds.has(l))return this.projection?.isProjecting?Kf(l):OC(i,l);{const r=dM(i),c=(Cb(l)?r.getPropertyValue(l):r[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return px(i,l)}build(i,l,r){Xd(i,l,r.transformTemplate)}scrapeMotionValuesFromProps(i,l,r){return Kd(i,l,r)}}const mM={offset:"stroke-dashoffset",array:"stroke-dasharray"},pM={offset:"strokeDashoffset",array:"strokeDasharray"};function gM(n,i,l=1,r=0,c=!0){n.pathLength=1;const f=c?mM:pM;n[f.offset]=`${-r}`,n[f.array]=`${i} ${l}`}const yM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function vx(n,{attrX:i,attrY:l,attrScale:r,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...h},g,p,v){if(Xd(n,h,p),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:S}=n;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=v?.transformBox??"fill-box",delete b.transformBox);for(const A of yM)b[A]!==void 0&&(S[A]=b[A],delete b[A]);i!==void 0&&(b.x=i),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),c!==void 0&&gM(b,c,f,d,!1)}const bx=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"]),xx=n=>typeof n=="string"&&n.toLowerCase()==="svg";function vM(n,i,l,r){gx(n,i,void 0,r);for(const c in i.attrs)n.setAttribute(bx.has(c)?c:Ud(c),i.attrs[c])}function Sx(n,i,l){const r=Kd(n,i,l);for(const c in n)if(Te(n[c])||Te(i[c])){const f=fs.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[f]=n[c]}return r}class bM extends fx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(i,l){return i[l]}readValueFromInstance(i,l){if(ds.has(l)){const r=tx(l);return r&&r.default||0}return l=bx.has(l)?l:Ud(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,r){return Sx(i,l,r)}build(i,l,r){vx(i,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,l,r,c){vM(i,l,r,c)}mount(i){this.isSVGTag=xx(i.tagName),super.mount(i)}}const xM=Yd.length;function Tx(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?Tx(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const i={};for(let l=0;l<xM;l++){const r=Yd[l],c=n.props[r];(Tl(c)||c===!1)&&(i[r]=c)}return i}function Ex(n,i){if(!Array.isArray(i))return!1;const l=i.length;if(l!==n.length)return!1;for(let r=0;r<l;r++)if(i[r]!==n[r])return!1;return!0}const SM=[...qd].reverse(),TM=qd.length;function EM(n){return i=>Promise.all(i.map(({animation:l,options:r})=>b3(n,l,r)))}function wM(n){let i=EM(n),l=Jy(),r=!0;const c=g=>(p,v)=>{const b=os(n,v,g==="exit"?n.presenceContext?.custom:void 0);if(b){const{transition:S,transitionEnd:A,...D}=b;p={...p,...D,...A}}return p};function f(g){i=g(n)}function d(g){const{props:p}=n,v=Tx(n.parent)||{},b=[],S=new Set;let A={},D=1/0;for(let N=0;N<TM;N++){const V=SM[N],q=l[V],U=p[V]!==void 0?p[V]:v[V],G=Tl(U),P=V===g?q.isActive:null;P===!1&&(D=N);let W=U===v[V]&&U!==p[V]&&G;if(W&&r&&n.manuallyAnimateOnMount&&(W=!1),q.protectedKeys={...A},!q.isActive&&P===null||!U&&!q.prevProp||Ho(U)||typeof U=="boolean")continue;if(V==="exit"&&q.isActive&&P!==!0){q.prevResolvedValues&&(A={...A,...q.prevResolvedValues});continue}const Z=AM(q.prevProp,U);let L=Z||V===g&&q.isActive&&!W&&G||N>D&&G,tt=!1;const mt=Array.isArray(U)?U:[U];let St=mt.reduce(c(V),{});P===!1&&(St={});const{prevResolvedValues:At={}}=q,jt={...At,...St},Xt=F=>{L=!0,S.has(F)&&(tt=!0,S.delete(F)),q.needsAnimating[F]=!0;const $=n.getValue(F);$&&($.liveStyle=!1)};for(const F in jt){const $=St[F],dt=At[F];if(A.hasOwnProperty(F))continue;let Q=!1;Wf($)&&Wf(dt)?Q=!Ex($,dt):Q=$!==dt,Q?$!=null?Xt(F):S.add(F):$!==void 0&&S.has(F)?Xt(F):q.protectedKeys[F]=!0}q.prevProp=U,q.prevResolvedValues=St,q.isActive&&(A={...A,...St}),r&&n.blockInitialAnimation&&(L=!1);const Ct=W&&Z;L&&(!Ct||tt)&&b.push(...mt.map(F=>{const $={type:V};if(typeof F=="string"&&r&&!Ct&&n.manuallyAnimateOnMount&&n.parent){const{parent:dt}=n,Q=os(dt,F);if(dt.enteringChildren&&Q){const{delayChildren:w}=Q.transition||{};$.delay=Kb(dt.enteringChildren,n,w)}}return{animation:F,options:$}}))}if(S.size){const N={};if(typeof p.initial!="boolean"){const V=os(n,Array.isArray(p.initial)?p.initial[0]:p.initial);V&&V.transition&&(N.transition=V.transition)}S.forEach(V=>{const q=n.getBaseTarget(V),U=n.getValue(V);U&&(U.liveStyle=!0),N[V]=q??null}),b.push({animation:N})}let M=!!b.length;return r&&(p.initial===!1||p.initial===p.animate)&&!n.manuallyAnimateOnMount&&(M=!1),r=!1,M?i(b):Promise.resolve()}function h(g,p){if(l[g].isActive===p)return Promise.resolve();n.variantChildren?.forEach(b=>b.animationState?.setActive(g,p)),l[g].isActive=p;const v=d(g);for(const b in l)l[b].protectedKeys={};return v}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>l,reset:()=>{l=Jy()}}}function AM(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Ex(i,n):!1}function Ia(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jy(){return{animate:Ia(!0),whileInView:Ia(),whileHover:Ia(),whileTap:Ia(),whileDrag:Ia(),whileFocus:Ia(),exit:Ia()}}function Wy(n,i){n.min=i.min,n.max=i.max}function sn(n,i){Wy(n.x,i.x),Wy(n.y,i.y)}function Iy(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const wx=1e-4,CM=1-wx,MM=1+wx,Ax=.01,NM=0-Ax,jM=0+Ax;function Ce(n){return n.max-n.min}function DM(n,i,l){return Math.abs(n-i)<=l}function $y(n,i,l,r=.5){n.origin=r,n.originPoint=Yt(i.min,i.max,n.origin),n.scale=Ce(l)/Ce(i),n.translate=Yt(l.min,l.max,n.origin)-n.originPoint,(n.scale>=CM&&n.scale<=MM||isNaN(n.scale))&&(n.scale=1),(n.translate>=NM&&n.translate<=jM||isNaN(n.translate))&&(n.translate=0)}function yl(n,i,l,r){$y(n.x,i.x,l.x,r?r.originX:void 0),$y(n.y,i.y,l.y,r?r.originY:void 0)}function tv(n,i,l){n.min=l.min+i.min,n.max=n.min+Ce(i)}function RM(n,i,l){tv(n.x,i.x,l.x),tv(n.y,i.y,l.y)}function ev(n,i,l){n.min=i.min-l.min,n.max=n.min+Ce(i)}function Ro(n,i,l){ev(n.x,i.x,l.x),ev(n.y,i.y,l.y)}function nv(n,i,l,r,c){return n-=i,n=Do(n,1/l,r),c!==void 0&&(n=Do(n,1/c,r)),n}function OM(n,i=0,l=1,r=.5,c,f=n,d=n){if(Sn.test(i)&&(i=parseFloat(i),i=Yt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let h=Yt(f.min,f.max,r);n===f&&(h-=i),n.min=nv(n.min,i,l,h,c),n.max=nv(n.max,i,l,h,c)}function av(n,i,[l,r,c],f,d){OM(n,i[l],i[r],i[c],i.scale,f,d)}const zM=["x","scaleX","originX"],_M=["y","scaleY","originY"];function iv(n,i,l,r){av(n.x,i,zM,l?l.x:void 0,r?r.x:void 0),av(n.y,i,_M,l?l.y:void 0,r?r.y:void 0)}function sv(n){return n.translate===0&&n.scale===1}function Cx(n){return sv(n.x)&&sv(n.y)}function lv(n,i){return n.min===i.min&&n.max===i.max}function VM(n,i){return lv(n.x,i.x)&&lv(n.y,i.y)}function rv(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Mx(n,i){return rv(n.x,i.x)&&rv(n.y,i.y)}function ov(n){return Ce(n.x)/Ce(n.y)}function uv(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function bn(n){return[n("x"),n("y")]}function LM(n,i,l){let r="";const c=n.x.translate/i.x,f=n.y.translate/i.y,d=l?.z||0;if((c||f||d)&&(r=`translate3d(${c}px, ${f}px, ${d}px) `),(i.x!==1||i.y!==1)&&(r+=`scale(${1/i.x}, ${1/i.y}) `),l){const{transformPerspective:p,rotate:v,rotateX:b,rotateY:S,skewX:A,skewY:D}=l;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),S&&(r+=`rotateY(${S}deg) `),A&&(r+=`skewX(${A}deg) `),D&&(r+=`skewY(${D}deg) `)}const h=n.x.scale*i.x,g=n.y.scale*i.y;return(h!==1||g!==1)&&(r+=`scale(${h}, ${g})`),r||"none"}const Nx=["TopLeft","TopRight","BottomLeft","BottomRight"],UM=Nx.length,cv=n=>typeof n=="string"?parseFloat(n):n,fv=n=>typeof n=="number"||it.test(n);function kM(n,i,l,r,c,f){c?(n.opacity=Yt(0,l.opacity??1,BM(r)),n.opacityExit=Yt(i.opacity??1,0,HM(r))):f&&(n.opacity=Yt(i.opacity??1,l.opacity??1,r));for(let d=0;d<UM;d++){const h=`border${Nx[d]}Radius`;let g=dv(i,h),p=dv(l,h);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||fv(g)===fv(p)?(n[h]=Math.max(Yt(cv(g),cv(p),r),0),(Sn.test(p)||Sn.test(g))&&(n[h]+="%")):n[h]=p}(i.rotate||l.rotate)&&(n.rotate=Yt(i.rotate||0,l.rotate||0,r))}function dv(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const BM=jx(0,.5,xb),HM=jx(.5,.95,Ie);function jx(n,i,l){return r=>r<n?0:r>i?1:l(bl(n,i,r))}function GM(n,i,l){const r=Te(n)?n:us(n);return r.start(Vd("",r,i,l)),r.animation}function El(n,i,l,r={passive:!0}){return n.addEventListener(i,l,r),()=>n.removeEventListener(i,l)}const qM=(n,i)=>n.depth-i.depth;class YM{constructor(){this.children=[],this.isDirty=!1}add(i){xd(this.children,i),this.isDirty=!0}remove(i){Ao(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(qM),this.isDirty=!1,this.children.forEach(i)}}function XM(n,i){const l=Ae.now(),r=({timestamp:c})=>{const f=c-l;f>=i&&(Ca(r),n(f-i))};return Ut.setup(r,!0),()=>Ca(r)}function xo(n){return Te(n)?n.get():n}class KM{constructor(){this.members=[]}add(i){xd(this.members,i);for(let l=this.members.length-1;l>=0;l--){const r=this.members[l];if(r===i||r===this.lead||r===this.prevLead)continue;const c=r.instance;c&&c.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&Ao(this.members,r)}i.scheduleRender()}remove(i){if(Ao(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const l=this.members[this.members.length-1];l&&this.promote(l)}}relegate(i){const l=this.members.findIndex(c=>i===c);if(l===0)return!1;let r;for(let c=l;c>=0;c--){const f=this.members[c],d=f.instance;if(f.isPresent!==!1&&(!d||d.isConnected!==!1)){r=f;break}}return r?(this.promote(r),!0):!1}promote(i,l){const r=this.lead;if(i!==r&&(this.prevLead=r,this.lead=i,i.show(),r)){r.instance&&r.scheduleRender(),i.scheduleRender();const c=r.options.layoutDependency,f=i.options.layoutDependency;if(!(c!==void 0&&f!==void 0&&c===f)){const g=r.instance;g&&g.isConnected===!1&&!r.snapshot||(i.resumeFrom=r,l&&(i.resumeFrom.preserveOpacity=!0),r.snapshot&&(i.snapshot=r.snapshot,i.snapshot.latestValues=r.animationValues||r.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0))}const{crossfade:h}=i.options;h===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:l,resumingFrom:r}=i;l.onExitComplete&&l.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const So={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cf=["","X","Y","Z"],PM=1e3;let ZM=0;function Mf(n,i,l,r){const{latestValues:c}=i;c[n]&&(l[n]=c[n],i.setStaticValue(n,0),r&&(r[n]=0))}function Dx(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const l=Jb(i);if(window.MotionHasOptimisedAnimation(l,"transform")){const{layout:c,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(l,"transform",Ut,!(c||f))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&Dx(r)}function Rx({attachResizeListener:n,defaultParent:i,measureScroll:l,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},h=i?.()){this.id=ZM++,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(JM),this.nodes.forEach(tN),this.nodes.forEach(eN),this.nodes.forEach(WM)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new YM)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Td),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const g=this.eventHandlers.get(d);g&&g.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Gd(d)&&!Q3(d),this.instance=d;const{layoutId:h,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||h)&&(this.isLayoutDirty=!0),n){let v,b=0;const S=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{b=window.innerWidth}),n(d,()=>{const A=window.innerWidth;A!==b&&(b=A,this.root.updateBlockedByResize=!0,v&&v(),v=XM(S,250),So.hasAnimatedSinceResize&&(So.hasAnimatedSinceResize=!1,this.nodes.forEach(pv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||g)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const D=this.options.transition||p.getDefaultTransition()||lN,{onLayoutAnimationStart:M,onLayoutAnimationComplete:N}=p.getProps(),V=!this.targetLayout||!Mx(this.targetLayout,A),q=!b&&S;if(this.options.layoutRoot||this.resumeFrom||q||b&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const U={..._d(D,"layout"),onPlay:M,onComplete:N};(p.shouldReduceMotion||this.options.layoutRoot)&&(U.delay=0,U.type=!1),this.startAnimation(U),this.setAnimationOrigin(v,q)}else b||pv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ca(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(nN),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const b=this.path[v];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(mv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($M),this.nodes.forEach(FM),this.nodes.forEach(QM)):this.nodes.forEach(mv),this.clearAllSnapshots();const h=Ae.now();ve.delta=En(0,1e3/60,h-ve.timestamp),ve.timestamp=h,ve.isProcessing=!0,vf.update.process(ve),vf.preRender.process(ve),vf.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Bd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(IM),this.sharedNodes.forEach(aN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ce(this.snapshot.measuredBox.x)&&!Ce(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Cx(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;d&&this.instance&&(h||$a(this.latestValues)||v)&&(c(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return d&&(g=this.removeTransform(g)),rN(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return re();const h=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oN))){const{scroll:p}=this.root;p&&(ss(h.x,p.offset.x),ss(h.y,p.offset.y))}return h}removeElementScroll(d){const h=re();if(sn(h,d),this.scroll?.wasRoot)return h;for(let g=0;g<this.path.length;g++){const p=this.path[g],{scroll:v,options:b}=p;p!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&sn(h,d),ss(h.x,v.offset.x),ss(h.y,v.offset.y))}return h}applyTransform(d,h=!1){const g=re();sn(g,d);for(let p=0;p<this.path.length;p++){const v=this.path[p];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&ls(g,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),$a(v.latestValues)&&ls(g,v.latestValues)}return $a(this.latestValues)&&ls(g,this.latestValues),g}removeTransform(d){const h=re();sn(h,d);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!p.instance||!$a(p.latestValues))continue;id(p.latestValues)&&p.updateSnapshot();const v=re(),b=p.measurePageBox();sn(v,b),iv(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return $a(this.latestValues)&&iv(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==h;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:b}=this.options;if(!this.layout||!(v||b))return;this.resolvedRelativeTargetAt=ve.timestamp;const S=this.getClosestProjectingParent();S&&this.linkedParentVersion!==S.layoutVersion&&!S.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(S&&S.layout?this.createRelativeTarget(S,this.layout.layoutBox,S.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),RM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),mx(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?this.createRelativeTarget(S,this.target,S.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||id(this.parent.latestValues)||hx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,h,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),Ro(this.relativeTargetOrigin,h,g),sn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(g=!1),g)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;sn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;lM(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=re());const{target:A}=d;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),yl(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!uv(this.projectionDelta.x,this.prevProjectionDelta.x)||!uv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=is(),this.projectionDelta=is(),this.projectionDeltaWithTransform=is()}setAnimationOrigin(d,h=!1){const g=this.snapshot,p=g?g.latestValues:{},v={...this.latestValues},b=is();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=re(),A=g?g.source:void 0,D=this.layout?this.layout.source:void 0,M=A!==D,N=this.getStack(),V=!N||N.members.length<=1,q=!!(M&&!V&&this.options.crossfade===!0&&!this.path.some(sN));this.animationProgress=0;let U;this.mixTargetDelta=G=>{const P=G/1e3;gv(b.x,d.x,P),gv(b.y,d.y,P),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ro(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),iN(this.relativeTarget,this.relativeTargetOrigin,S,P),U&&VM(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=re()),sn(U,this.relativeTarget)),M&&(this.animationValues=v,kM(v,p,this.latestValues,P,q,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ca(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ut.update(()=>{So.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=us(0)),this.motionValue.jump(0,!1),this.currentAnimation=GM(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:g,layout:p,latestValues:v}=d;if(!(!h||!g||!p)){if(this!==d&&this.layout&&p&&Ox(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||re();const b=Ce(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+b;const S=Ce(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+S}sn(h,g),ls(h,v),yl(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new KM),this.sharedNodes.get(d).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(h=!0),!h)return;const p={};g.z&&Mf("z",d,p,this.animationValues);for(let v=0;v<Cf.length;v++)Mf(`rotate${Cf[v]}`,d,p,this.animationValues),Mf(`skew${Cf[v]}`,d,p,this.animationValues);d.render();for(const v in p)d.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=xo(h?.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=xo(h?.pointerEvents)||""),this.hasProjected&&!$a(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=LM(this.projectionDeltaWithTransform,this.treeScale,v);g&&(b=g(v,b)),d.transform=b;const{x:S,y:A}=this.projectionDelta;d.transformOrigin=`${S.origin*100}% ${A.origin*100}% 0`,p.animationValues?d.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const D in ld){if(v[D]===void 0)continue;const{correct:M,applyTo:N,isCSSVariable:V}=ld[D],q=b==="none"?v[D]:M(v[D],p);if(N){const U=N.length;for(let G=0;G<U;G++)d[N[G]]=q}else V?this.options.visualElement.renderState.vars[D]=q:d[D]=q}this.options.layoutId&&(d.pointerEvents=p===this?xo(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(hv),this.root.sharedNodes.clear()}}}function FM(n){n.updateLayout()}function QM(n){const i=n.resumeFrom?.snapshot||n.snapshot;if(n.isLead()&&n.layout&&i&&n.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:r}=n.layout,{animationType:c}=n.options,f=i.source!==n.layout.source;c==="size"?bn(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],S=Ce(b);b.min=l[v].min,b.max=b.min+S}):Ox(c,i.layoutBox,l)&&bn(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],S=Ce(l[v]);b.max=b.min+S,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+S)});const d=is();yl(d,l,i.layoutBox);const h=is();f?yl(h,n.applyTransform(r,!0),i.measuredBox):yl(h,l,i.layoutBox);const g=!Cx(d);let p=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:S}=v;if(b&&S){const A=re();Ro(A,i.layoutBox,b.layoutBox);const D=re();Ro(D,l,S.layoutBox),Mx(A,D)||(p=!0),v.options.layoutRoot&&(n.relativeTarget=D,n.relativeTargetOrigin=A,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:h,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:p})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function JM(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function WM(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function IM(n){n.clearSnapshot()}function hv(n){n.clearMeasurements()}function mv(n){n.isLayoutDirty=!1}function $M(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function pv(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function tN(n){n.resolveTargetDelta()}function eN(n){n.calcProjection()}function nN(n){n.resetSkewAndRotation()}function aN(n){n.removeLeadSnapshot()}function gv(n,i,l){n.translate=Yt(i.translate,0,l),n.scale=Yt(i.scale,1,l),n.origin=i.origin,n.originPoint=i.originPoint}function yv(n,i,l,r){n.min=Yt(i.min,l.min,r),n.max=Yt(i.max,l.max,r)}function iN(n,i,l,r){yv(n.x,i.x,l.x,r),yv(n.y,i.y,l.y,r)}function sN(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const lN={duration:.45,ease:[.4,0,.1,1]},vv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),bv=vv("applewebkit/")&&!vv("chrome/")?Math.round:Ie;function xv(n){n.min=bv(n.min),n.max=bv(n.max)}function rN(n){xv(n.x),xv(n.y)}function Ox(n,i,l){return n==="position"||n==="preserve-aspect"&&!DM(ov(i),ov(l),.2)}function oN(n){return n!==n.root&&n.scroll?.wasRoot}const uN=Rx({attachResizeListener:(n,i)=>El(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Nf={current:void 0},zx=Rx({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Nf.current){const n=new uN({});n.mount(window),n.setOptions({layoutScroll:!0}),Nf.current=n}return Nf.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Pd=T.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function Sv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function cN(...n){return i=>{let l=!1;const r=n.map(c=>{const f=Sv(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():Sv(n[c],null)}}}}function fN(...n){return T.useCallback(cN(...n),n)}class dN extends T.Component{getSnapshotBeforeUpdate(i){const l=this.props.childRef.current;if(l&&i.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=l.offsetParent,c=nd(r)&&r.offsetWidth||0,f=nd(r)&&r.offsetHeight||0,d=this.props.sizeRef.current;d.height=l.offsetHeight||0,d.width=l.offsetWidth||0,d.top=l.offsetTop,d.left=l.offsetLeft,d.right=c-d.width-d.left,d.bottom=f-d.height-d.top}return null}componentDidUpdate(){}render(){return this.props.children}}function hN({children:n,isPresent:i,anchorX:l,anchorY:r,root:c,pop:f}){const d=T.useId(),h=T.useRef(null),g=T.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=T.useContext(Pd),v=n.props?.ref??n?.ref,b=fN(h,v);return T.useInsertionEffect(()=>{const{width:S,height:A,top:D,left:M,right:N,bottom:V}=g.current;if(i||f===!1||!h.current||!S||!A)return;const q=l==="left"?`left: ${M}`:`right: ${N}`,U=r==="bottom"?`bottom: ${V}`:`top: ${D}`;h.current.dataset.motionPopId=d;const G=document.createElement("style");p&&(G.nonce=p);const P=c??document.head;return P.appendChild(G),G.sheet&&G.sheet.insertRule(`
57
- [data-motion-pop-id="${d}"] {
58
- position: absolute !important;
59
- width: ${S}px !important;
60
- height: ${A}px !important;
61
- ${q}px !important;
62
- ${U}px !important;
63
- }
64
- `),()=>{P.contains(G)&&P.removeChild(G)}},[i]),y.jsx(dN,{isPresent:i,childRef:h,sizeRef:g,pop:f,children:f===!1?n:T.cloneElement(n,{ref:b})})}const mN=({children:n,initial:i,isPresent:l,onExitComplete:r,custom:c,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:g,root:p})=>{const v=bd(pN),b=T.useId();let S=!0,A=T.useMemo(()=>(S=!1,{id:b,initial:i,isPresent:l,custom:c,onExitComplete:D=>{v.set(D,!0);for(const M of v.values())if(!M)return;r&&r()},register:D=>(v.set(D,!1),()=>v.delete(D))}),[l,v,r]);return f&&S&&(A={...A}),T.useMemo(()=>{v.forEach((D,M)=>v.set(M,!1))},[l]),T.useEffect(()=>{!l&&!v.size&&r&&r()},[l]),n=y.jsx(hN,{pop:d==="popLayout",isPresent:l,anchorX:h,anchorY:g,root:p,children:n}),y.jsx(Bo.Provider,{value:A,children:n})};function pN(){return new Map}function _x(n=!0){const i=T.useContext(Bo);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:c}=i,f=T.useId();T.useEffect(()=>{if(n)return c(f)},[n]);const d=T.useCallback(()=>n&&r&&r(f),[f,r,n]);return!l&&r?[!1,d]:[!0]}const co=n=>n.key||"";function Tv(n){const i=[];return T.Children.forEach(n,l=>{T.isValidElement(l)&&i.push(l)}),i}const gN=({children:n,custom:i,initial:l=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:g="top",root:p})=>{const[v,b]=_x(d),S=T.useMemo(()=>Tv(n),[n]),A=d&&!v?[]:S.map(co),D=T.useRef(!0),M=T.useRef(S),N=bd(()=>new Map),V=T.useRef(new Set),[q,U]=T.useState(S),[G,P]=T.useState(S);ob(()=>{D.current=!1,M.current=S;for(let L=0;L<G.length;L++){const tt=co(G[L]);A.includes(tt)?(N.delete(tt),V.current.delete(tt)):N.get(tt)!==!0&&N.set(tt,!1)}},[G,A.length,A.join("-")]);const W=[];if(S!==q){let L=[...S];for(let tt=0;tt<G.length;tt++){const mt=G[tt],St=co(mt);A.includes(St)||(L.splice(tt,0,mt),W.push(mt))}return f==="wait"&&W.length&&(L=W),P(Tv(L)),U(S),null}const{forceRender:Z}=T.useContext(vd);return y.jsx(y.Fragment,{children:G.map(L=>{const tt=co(L),mt=d&&!v?!1:S===G||A.includes(tt),St=()=>{if(V.current.has(tt))return;if(V.current.add(tt),N.has(tt))N.set(tt,!0);else return;let At=!0;N.forEach(jt=>{jt||(At=!1)}),At&&(Z?.(),P(M.current),d&&b?.(),r&&r())};return y.jsx(mN,{isPresent:mt,initial:!D.current||l?void 0:!1,custom:i,presenceAffectsLayout:c,mode:f,root:p,onExitComplete:mt?void 0:St,anchorX:h,anchorY:g,children:L},tt)})})},Vx=T.createContext({strict:!1}),Ev={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 wv=!1;function yN(){if(wv)return;const n={};for(const i in Ev)n[i]={isEnabled:l=>Ev[i].some(r=>!!l[r])};cx(n),wv=!0}function Lx(){return yN(),nM()}function vN(n){const i=Lx();for(const l in n)i[l]={...i[l],...n[l]};cx(i)}const bN=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 Oo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||bN.has(n)}let Ux=n=>!Oo(n);function xN(n){typeof n=="function"&&(Ux=i=>i.startsWith("on")?!Oo(i):n(i))}try{xN(require("@emotion/is-prop-valid").default)}catch{}function SN(n,i,l){const r={};for(const c in n)c==="values"&&typeof n.values=="object"||(Ux(c)||l===!0&&Oo(c)||!i&&!Oo(c)||n.draggable&&c.startsWith("onDrag"))&&(r[c]=n[c]);return r}const qo=T.createContext({});function TN(n,i){if(Go(n)){const{initial:l,animate:r}=n;return{initial:l===!1||Tl(l)?l:void 0,animate:Tl(r)?r:void 0}}return n.inherit!==!1?i:{}}function EN(n){const{initial:i,animate:l}=TN(n,T.useContext(qo));return T.useMemo(()=>({initial:i,animate:l}),[Av(i),Av(l)])}function Av(n){return Array.isArray(n)?n.join(" "):n}const Zd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function kx(n,i,l){for(const r in i)!Te(i[r])&&!yx(r,l)&&(n[r]=i[r])}function wN({transformTemplate:n},i){return T.useMemo(()=>{const l=Zd();return Xd(l,i,n),Object.assign({},l.vars,l.style)},[i])}function AN(n,i){const l=n.style||{},r={};return kx(r,l,n),Object.assign(r,wN(n,i)),r}function CN(n,i){const l={},r=AN(n,i);return n.drag&&n.dragListener!==!1&&(l.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(l.tabIndex=0),l.style=r,l}const Bx=()=>({...Zd(),attrs:{}});function MN(n,i,l,r){const c=T.useMemo(()=>{const f=Bx();return vx(f,i,xx(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};kx(f,n.style,n),c.style={...f,...c.style}}return c}const NN=["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 Fd(n){return typeof n!="string"||n.includes("-")?!1:!!(NN.indexOf(n)>-1||/[A-Z]/u.test(n))}function jN(n,i,l,{latestValues:r},c,f=!1,d){const g=(d??Fd(n)?MN:CN)(i,r,c,n),p=SN(i,typeof n=="string",f),v=n!==T.Fragment?{...p,...g,ref:l}:{},{children:b}=i,S=T.useMemo(()=>Te(b)?b.get():b,[b]);return T.createElement(n,{...v,children:S})}function DN({scrapeMotionValuesFromProps:n,createRenderState:i},l,r,c){return{latestValues:RN(l,r,c,n),renderState:i()}}function RN(n,i,l,r){const c={},f=r(n,{});for(const S in f)c[S]=xo(f[S]);let{initial:d,animate:h}=n;const g=Go(n),p=ox(n);i&&p&&!g&&n.inherit!==!1&&(d===void 0&&(d=i.initial),h===void 0&&(h=i.animate));let v=l?l.initial===!1:!1;v=v||d===!1;const b=v?h:d;if(b&&typeof b!="boolean"&&!Ho(b)){const S=Array.isArray(b)?b:[b];for(let A=0;A<S.length;A++){const D=Ld(n,S[A]);if(D){const{transitionEnd:M,transition:N,...V}=D;for(const q in V){let U=V[q];if(Array.isArray(U)){const G=v?U.length-1:0;U=U[G]}U!==null&&(c[q]=U)}for(const q in M)c[q]=M[q]}}}return c}const Hx=n=>(i,l)=>{const r=T.useContext(qo),c=T.useContext(Bo),f=()=>DN(n,i,r,c);return l?f():bd(f)},ON=Hx({scrapeMotionValuesFromProps:Kd,createRenderState:Zd}),zN=Hx({scrapeMotionValuesFromProps:Sx,createRenderState:Bx}),_N=Symbol.for("motionComponentSymbol");function VN(n,i,l){const r=T.useRef(l);T.useInsertionEffect(()=>{r.current=l});const c=T.useRef(null);return T.useCallback(f=>{f&&n.onMount?.(f),i&&(f?i.mount(f):i.unmount());const d=r.current;if(typeof d=="function")if(f){const h=d(f);typeof h=="function"&&(c.current=h)}else c.current?(c.current(),c.current=null):d(f);else d&&(d.current=f)},[i])}const Gx=T.createContext({});function es(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function LN(n,i,l,r,c,f){const{visualElement:d}=T.useContext(qo),h=T.useContext(Vx),g=T.useContext(Bo),p=T.useContext(Pd),v=p.reducedMotion,b=p.skipAnimations,S=T.useRef(null),A=T.useRef(!1);r=r||h.renderer,!S.current&&r&&(S.current=r(n,{visualState:i,parent:d,props:l,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:f}),A.current&&S.current&&(S.current.manuallyAnimateOnMount=!0));const D=S.current,M=T.useContext(Gx);D&&!D.projection&&c&&(D.type==="html"||D.type==="svg")&&UN(S.current,l,c,M);const N=T.useRef(!1);T.useInsertionEffect(()=>{D&&N.current&&D.update(l,g)});const V=l[Qb],q=T.useRef(!!V&&!window.MotionHandoffIsComplete?.(V)&&window.MotionHasOptimisedAnimation?.(V));return ob(()=>{A.current=!0,D&&(N.current=!0,window.MotionIsMounted=!0,D.updateFeatures(),D.scheduleRenderMicrotask(),q.current&&D.animationState&&D.animationState.animateChanges())}),T.useEffect(()=>{D&&(!q.current&&D.animationState&&D.animationState.animateChanges(),q.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(V)}),q.current=!1),D.enteringChildren=void 0)}),D}function UN(n,i,l,r){const{layoutId:c,layout:f,drag:d,dragConstraints:h,layoutScroll:g,layoutRoot:p,layoutCrossfade:v}=i;n.projection=new l(n.latestValues,i["data-framer-portal-id"]?void 0:qx(n.parent)),n.projection.setOptions({layoutId:c,layout:f,alwaysMeasureLayout:!!d||h&&es(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:g,layoutRoot:p})}function qx(n){if(n)return n.options.allowProjection!==!1?n.projection:qx(n.parent)}function jf(n,{forwardMotionProps:i=!1,type:l}={},r,c){r&&vN(r);const f=l?l==="svg":Fd(n),d=f?zN:ON;function h(p,v){let b;const S={...T.useContext(Pd),...p,layoutId:kN(p)},{isStatic:A}=S,D=EN(p),M=d(p,A);if(!A&&rb){BN();const N=HN(S);b=N.MeasureLayout,D.visualElement=LN(n,M,S,c,N.ProjectionNode,f)}return y.jsxs(qo.Provider,{value:D,children:[b&&D.visualElement?y.jsx(b,{visualElement:D.visualElement,...S}):null,jN(n,p,VN(M,D.visualElement,v),M,A,i,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const g=T.forwardRef(h);return g[_N]=n,g}function kN({layoutId:n}){const i=T.useContext(vd).id;return i&&n!==void 0?i+"-"+n:n}function BN(n,i){T.useContext(Vx).strict}function HN(n){const i=Lx(),{drag:l,layout:r}=i;if(!l&&!r)return{};const c={...l,...r};return{MeasureLayout:l?.isEnabled(n)||r?.isEnabled(n)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function GN(n,i){if(typeof Proxy>"u")return jf;const l=new Map,r=(f,d)=>jf(f,d,n,i),c=(f,d)=>r(f,d);return new Proxy(c,{get:(f,d)=>d==="create"?r:(l.has(d)||l.set(d,jf(d,void 0,n,i)),l.get(d))})}const qN=(n,i)=>i.isSVG??Fd(n)?new bM(i):new hM(i,{allowProjection:n!==T.Fragment});class YN extends Na{constructor(i){super(i),i.animationState||(i.animationState=wM(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Ho(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:l}=this.node.prevProps||{};i!==l&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let XN=0;class KN extends Na{constructor(){super(...arguments),this.id=XN++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:l}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===r)return;const c=this.node.animationState.setActive("exit",!i);l&&!i&&c.then(()=>{l(this.id)})}mount(){const{register:i,onExitComplete:l}=this.node.presenceContext||{};l&&l(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const PN={animation:{Feature:YN},exit:{Feature:KN}};function Rl(n){return{point:{x:n.pageX,y:n.pageY}}}const ZN=n=>i=>Hd(i)&&n(i,Rl(i));function vl(n,i,l,r){return El(n,i,ZN(l),r)}const Yx=({current:n})=>n?n.ownerDocument.defaultView:null,Cv=(n,i)=>Math.abs(n-i);function FN(n,i){const l=Cv(n.x,i.x),r=Cv(n.y,i.y);return Math.sqrt(l**2+r**2)}const Mv=new Set(["auto","scroll"]);class Xx{constructor(i,l,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:f=!1,distanceThreshold:d=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=A=>{this.handleScroll(A.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Rf(this.lastMoveEventInfo,this.history),D=this.startEvent!==null,M=FN(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!D&&!M)return;const{point:N}=A,{timestamp:V}=ve;this.history.push({...N,timestamp:V});const{onStart:q,onMove:U}=this.handlers;D||(q&&q(this.lastMoveEvent,A),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,A)},this.handlePointerMove=(A,D)=>{this.lastMoveEvent=A,this.lastMoveEventInfo=Df(D,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(A,D)=>{this.end();const{onEnd:M,onSessionEnd:N,resumeAnimation:V}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const q=Rf(A.type==="pointercancel"?this.lastMoveEventInfo:Df(D,this.transformPagePoint),this.history);this.startEvent&&M&&M(A,q),N&&N(A,q)},!Hd(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const g=Rl(i),p=Df(g,this.transformPagePoint),{point:v}=p,{timestamp:b}=ve;this.history=[{...v,timestamp:b}];const{onSessionStart:S}=l;S&&S(i,Rf(p,this.history)),this.removeListeners=Nl(vl(this.contextWindow,"pointermove",this.handlePointerMove),vl(this.contextWindow,"pointerup",this.handlePointerUp),vl(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(i){let l=i.parentElement;for(;l;){const r=getComputedStyle(l);(Mv.has(r.overflowX)||Mv.has(r.overflowY))&&this.scrollPositions.set(l,{x:l.scrollLeft,y:l.scrollTop}),l=l.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(i){const l=this.scrollPositions.get(i);if(!l)return;const r=i===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:i.scrollLeft,y:i.scrollTop},f={x:c.x-l.x,y:c.y-l.y};f.x===0&&f.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=f.x,this.lastMoveEventInfo.point.y+=f.y):this.history.length>0&&(this.history[0].x-=f.x,this.history[0].y-=f.y),this.scrollPositions.set(i,c),Ut.update(this.updatePoint,!0))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ca(this.updatePoint)}}function Df(n,i){return i?{point:i(n.point)}:n}function Nv(n,i){return{x:n.x-i.x,y:n.y-i.y}}function Rf({point:n},i){return{point:n,delta:Nv(n,Kx(i)),offset:Nv(n,QN(i)),velocity:JN(i,.1)}}function QN(n){return n[0]}function Kx(n){return n[n.length-1]}function JN(n,i){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const c=Kx(n);for(;l>=0&&(r=n[l],!(c.timestamp-r.timestamp>rn(i)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&c.timestamp-r.timestamp>rn(i)*2&&(r=n[1]);const f=We(c.timestamp-r.timestamp);if(f===0)return{x:0,y:0};const d={x:(c.x-r.x)/f,y:(c.y-r.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function WN(n,{min:i,max:l},r){return i!==void 0&&n<i?n=r?Yt(i,n,r.min):Math.max(n,i):l!==void 0&&n>l&&(n=r?Yt(l,n,r.max):Math.min(n,l)),n}function jv(n,i,l){return{min:i!==void 0?n.min+i:void 0,max:l!==void 0?n.max+l-(n.max-n.min):void 0}}function IN(n,{top:i,left:l,bottom:r,right:c}){return{x:jv(n.x,l,c),y:jv(n.y,i,r)}}function Dv(n,i){let l=i.min-n.min,r=i.max-n.max;return i.max-i.min<n.max-n.min&&([l,r]=[r,l]),{min:l,max:r}}function $N(n,i){return{x:Dv(n.x,i.x),y:Dv(n.y,i.y)}}function t4(n,i){let l=.5;const r=Ce(n),c=Ce(i);return c>r?l=bl(i.min,i.max-r,n.min):r>c&&(l=bl(n.min,n.max-c,i.min)),En(0,1,l)}function e4(n,i){const l={};return i.min!==void 0&&(l.min=i.min-n.min),i.max!==void 0&&(l.max=i.max-n.min),l}const rd=.35;function n4(n=rd){return n===!1?n=0:n===!0&&(n=rd),{x:Rv(n,"left","right"),y:Rv(n,"top","bottom")}}function Rv(n,i,l){return{min:Ov(n,i),max:Ov(n,l)}}function Ov(n,i){return typeof n=="number"?n:n[i]||0}const a4=new WeakMap;class i4{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=re(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:l=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const f=b=>{l&&this.snapToCursor(Rl(b).point),this.stopAnimation()},d=(b,S)=>{const{drag:A,dragPropagation:D,onDragStart:M}=this.getProps();if(A&&!D&&(this.openDragLock&&this.openDragLock(),this.openDragLock=O3(A),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=S,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(V=>{let q=this.getAxisMotionValue(V).get()||0;if(Sn.test(q)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[V];G&&(q=Ce(G)*(parseFloat(q)/100))}}this.originPoint[V]=q}),M&&Ut.update(()=>M(b,S),!1,!0),If(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},h=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S;const{dragPropagation:A,dragDirectionLock:D,onDirectionLock:M,onDrag:N}=this.getProps();if(!A&&!this.openDragLock)return;const{offset:V}=S;if(D&&this.currentDirection===null){this.currentDirection=l4(V),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",S.point,V),this.updateAxis("y",S.point,V),this.visualElement.render(),N&&Ut.update(()=>N(b,S),!1,!0)},g=(b,S)=>{this.latestPointerEvent=b,this.latestPanInfo=S,this.stop(b,S),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Xx(i,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:Yx(this.visualElement),element:this.visualElement.current})}stop(i,l){const r=i||this.latestPointerEvent,c=l||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!c||!r)return;const{velocity:d}=c;this.startAnimation(d);const{onDragEnd:h}=this.getProps();h&&Ut.postRender(()=>h(r,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:l}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),l&&l.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(i,l,r){const{drag:c}=this.getProps();if(!r||!fo(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=WN(d,this.constraints[i],this.elastic[i])),f.set(d)}resolveConstraints(){const{dragConstraints:i,dragElastic:l}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;i&&es(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&r?this.constraints=IN(r.layoutBox,i):this.constraints=!1,this.elastic=n4(l),c!==this.constraints&&!es(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=e4(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:l}=this.getProps();if(!i||!es(i))return!1;const r=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const f=rM(r,c.root,this.visualElement.getTransformPagePoint());let d=$N(c.layout.layoutBox,f);if(l){const h=l(iM(d));this.hasMutatedConstraints=!!h,h&&(d=dx(h))}return d}startAnimation(i){const{drag:l,dragMomentum:r,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},p=bn(v=>{if(!fo(v,l,this.currentDirection))return;let b=g&&g[v]||{};d&&(b={min:0,max:0});const S=c?200:1e6,A=c?40:1e7,D={type:"inertia",velocity:r?i[v]:0,bounceStiffness:S,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(v,D)});return Promise.all(p).then(h)}startAxisValueAnimation(i,l){const r=this.getAxisMotionValue(i);return If(this.visualElement,i),r.start(Vd(i,r,0,l,this.visualElement,!1))}stopAnimation(){bn(i=>this.getAxisMotionValue(i).stop())}getAxisMotionValue(i){const l=`_drag${i.toUpperCase()}`,r=this.visualElement.getProps(),c=r[l];return c||this.visualElement.getValue(i,(r.initial?r.initial[i]:void 0)||0)}snapToCursor(i){bn(l=>{const{drag:r}=this.getProps();if(!fo(l,r,this.currentDirection))return;const{projection:c}=this.visualElement,f=this.getAxisMotionValue(l);if(c&&c.layout){const{min:d,max:h}=c.layout.layoutBox[l],g=f.get()||0;f.set(i[l]-Yt(d,h,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:l}=this.getProps(),{projection:r}=this.visualElement;if(!es(l)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};bn(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const g=h.get();c[d]=t4({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),bn(d=>{if(!fo(d,i,null))return;const h=this.getAxisMotionValue(d),{min:g,max:p}=this.constraints[d];h.set(Yt(g,p,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;a4.set(this.visualElement,this);const i=this.visualElement.current,l=vl(i,"pointerdown",p=>{const{drag:v,dragListener:b=!0}=this.getProps(),S=p.target,A=S!==i&&k3(S);v&&b&&!A&&this.start(p)});let r;const c=()=>{const{dragConstraints:p}=this.getProps();es(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),r||(r=s4(i,p.current,()=>this.scalePositionWithinConstraints())))},{projection:f}=this.visualElement,d=f.addEventListener("measure",c);f&&!f.layout&&(f.root&&f.root.updateScroll(),f.updateLayout()),Ut.read(c);const h=El(window,"resize",()=>this.scalePositionWithinConstraints()),g=f.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:v})=>{this.isDragging&&v&&(bn(b=>{const S=this.getAxisMotionValue(b);S&&(this.originPoint[b]+=p[b].translate,S.set(S.get()+p[b].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),g&&g(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=rd,dragMomentum:h=!0}=i;return{...i,drag:l,dragDirectionLock:r,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function zv(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function s4(n,i,l){const r=Hy(n,zv(l)),c=Hy(i,zv(l));return()=>{r(),c()}}function fo(n,i,l){return(i===!0||i===n)&&(l===null||l===n)}function l4(n,i=10){let l=null;return Math.abs(n.y)>i?l="y":Math.abs(n.x)>i&&(l="x"),l}class r4 extends Na{constructor(i){super(i),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new i4(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}update(){const{dragControls:i}=this.node.getProps(),{dragControls:l}=this.node.prevProps||{};i!==l&&(this.removeGroupControls(),i&&(this.removeGroupControls=i.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Of=n=>(i,l)=>{n&&Ut.update(()=>n(i,l),!1,!0)};class o4 extends Na{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(i){this.session=new Xx(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yx(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Of(i),onStart:Of(l),onMove:Of(r),onEnd:(f,d)=>{delete this.session,c&&Ut.postRender(()=>c(f,d))}}}mount(){this.removePointerDownListener=vl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let zf=!1;class u4 extends T.Component{componentDidMount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r,layoutId:c}=this.props,{projection:f}=i;f&&(l.group&&l.group.add(f),r&&r.register&&c&&r.register(f),zf&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),So.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:l,visualElement:r,drag:c,isPresent:f}=this.props,{projection:d}=r;return d&&(d.isPresent=f,i.layoutDependency!==l&&d.setOptions({...d.options,layoutDependency:l}),zf=!0,c||i.layoutDependency!==l||l===void 0||i.isPresent!==f?d.willUpdate():this.safeToRemove(),i.isPresent!==f&&(f?d.promote():d.relegate()||Ut.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Bd.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:c}=i;zf=!0,c&&(c.scheduleCheckAfterUnmount(),l&&l.group&&l.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function Px(n){const[i,l]=_x(),r=T.useContext(vd);return y.jsx(u4,{...n,layoutGroup:r,switchLayoutGroup:T.useContext(Gx),isPresent:i,safeToRemove:l})}const c4={pan:{Feature:o4},drag:{Feature:r4,ProjectionNode:zx,MeasureLayout:Px}};function _v(n,i,l){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",l==="Start");const c="onHover"+l,f=r[c];f&&Ut.postRender(()=>f(i,Rl(i)))}class f4 extends Na{mount(){const{current:i}=this.node;i&&(this.unmount=_3(i,(l,r)=>(_v(this.node,r,"Start"),c=>_v(this.node,c,"End"))))}unmount(){}}class d4 extends Na{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Nl(El(this.node.current,"focus",()=>this.onFocus()),El(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vv(n,i,l){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",l==="Start");const c="onTap"+(l==="End"?"":l),f=r[c];f&&Ut.postRender(()=>f(i,Rl(i)))}class h4 extends Na{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=H3(i,(c,f)=>(Vv(this.node,f,"Start"),(d,{success:h})=>Vv(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const od=new WeakMap,_f=new WeakMap,m4=n=>{const i=od.get(n.target);i&&i(n)},p4=n=>{n.forEach(m4)};function g4({root:n,...i}){const l=n||document;_f.has(l)||_f.set(l,{});const r=_f.get(l),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(p4,{root:n,...i})),r[c]}function y4(n,i,l){const r=g4(i);return od.set(n,l),r.observe(n),()=>{od.delete(n),r.unobserve(n)}}const v4={some:0,all:1};class b4 extends Na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:l,margin:r,amount:c="some",once:f}=i,d={root:l?l.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:v4[c]},h=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,f&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),S=p?v:b;S&&S(g)};return y4(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:l}=this.node;["amount","margin","root"].some(x4(i,l))&&this.startObserver()}unmount(){}}function x4({viewport:n={}},{viewport:i={}}={}){return l=>n[l]!==i[l]}const S4={inView:{Feature:b4},tap:{Feature:h4},focus:{Feature:d4},hover:{Feature:f4}},T4={layout:{ProjectionNode:zx,MeasureLayout:Px}},E4={...PN,...S4,...c4,...T4},Lv=GN(E4,qN),w4=[{id:"anthropic",name:"Claude",subtitle:"by Anthropic",icon:"/icons/claude.png"},{id:"openai",name:"OpenAI Codex",subtitle:"ChatGPT Plus / Pro",icon:"/icons/codex.png"},{id:"ollama",name:"Ollama",subtitle:"Run locally",icon:null}],A4={anthropic:[{id:"claude-opus-4-6",label:"Opus 4.6"},{id:"claude-sonnet-4-6",label:"Sonnet 4.6"},{id:"claude-haiku-4-5-20251001",label:"Haiku 4.5"}],openai:[{id:"gpt-5.2-codex:medium",label:"GPT-5.2 Codex Medium"},{id:"gpt-5.2-codex:high",label:"GPT-5.2 Codex High"},{id:"gpt-5.2-codex:xhigh",label:"GPT-5.2 Codex Extra High"},{id:"gpt-5.3-codex:medium",label:"GPT-5.3 Codex Medium (Pro)"},{id:"gpt-5.3-codex:high",label:"GPT-5.3 Codex High (Pro)"},{id:"gpt-5.3-codex:xhigh",label:"GPT-5.3 Codex Extra High (Pro)"}],ollama:[{id:"llama3.2",label:"Llama 3.2"},{id:"mistral",label:"Mistral"},{id:"codellama",label:"Code Llama"},{id:"phi3",label:"Phi-3"}]},Uv=6,kv=[{tier:"premium",label:n=>`${n}.fluxy.bot`,badge:"$5",badgeCls:"bg-[#AF27E3]/15 text-[#AF27E3] border-[#AF27E3]/20",highlight:!0},{tier:"at",label:n=>`${n}.at.fluxy.bot`,badge:"Free",badgeCls:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",highlight:!1}];function C4({models:n,value:i,onChange:l}){const[r,c]=T.useState(!1),f=T.useRef(null);T.useEffect(()=>{if(!r)return;const h=g=>{f.current&&!f.current.contains(g.target)&&c(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[r]);const d=n.find(h=>h.id===i);return y.jsxs("div",{className:"relative",ref:f,children:[y.jsxs("button",{type:"button",onClick:()=>c(h=>!h),className:"w-full flex items-center justify-between bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none hover:border-white/15 focus:border-[#AF27E3]/30 transition-colors",children:[y.jsx("span",{className:d?"text-white":"text-white/20",children:d?d.label:"Choose a model..."}),y.jsx(wl,{className:`h-4 w-4 text-white/30 transition-transform ${r?"rotate-180":""}`})]}),r&&y.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 bg-[#222] border border-white/[0.08] rounded-xl shadow-xl py-1 z-10 max-h-48 overflow-y-auto",children:n.map(h=>y.jsx("button",{onClick:()=>{l(h.id),c(!1)},className:`w-full text-left px-4 py-2 text-[13px] transition-colors ${i===h.id?"text-[#AF27E3] bg-[#AF27E3]/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:h.label},h.id))})]})}function M4({onComplete:n}){const[i,l]=T.useState(0),[r,c]=T.useState(""),[f,d]=T.useState("anthropic"),[h,g]=T.useState(""),[p,v]=T.useState(!1),[b,S]=T.useState({anthropic:"idle",openai:"idle",ollama:"connected"}),[A,D]=T.useState(!1),[M,N]=T.useState(""),[V,q]=T.useState(!1),[U,G]=T.useState(),[P,W]=T.useState(!1),[Z,L]=T.useState(!1),[tt,mt]=T.useState(),[St,At]=T.useState(""),[jt,Xt]=T.useState(""),[Ct,z]=T.useState(null),[F,$]=T.useState(""),[dt,Q]=T.useState({}),[w,Y]=T.useState("at"),[J,et]=T.useState(!1),[I,rt]=T.useState(!1),[gt,Ht]=T.useState(""),ft=T.useRef(null),[oe,He]=T.useState(null),[de,fn]=T.useState(!1),[Ee,li]=T.useState(!1),[dn,Ol]=T.useState(""),[hn,hs]=T.useState(""),[ja,ms]=T.useState(""),[Yo,zl]=T.useState(!1),[It,Xo]=T.useState(!1),[ri,_l]=T.useState(""),[Da,oi]=T.useState(""),[Ra,Vl]=T.useState(!1),[Ll,Zn]=T.useState(!1),[Kt,$e]=T.useState(!1),[qt,Ul]=T.useState(""),ps=T.useRef(!1),wn=b[f]==="connected";T.useEffect(()=>{fetch("/api/onboard/status").then(H=>H.json()).then(H=>{H.userName&&c(H.userName),H.handle&&(Xt(H.handle.username),Y(H.handle.tier||"at"),He({username:H.handle.username,tier:H.handle.tier,url:H.handle.url}),rt(!0),Ht(H.handle.url)),H.portalUser&&Ol(H.portalUser),H.portalConfigured&&Xo(!0),H.provider&&d(H.provider),H.model&&g(H.model),H.whisperEnabled&&($e(!0),Ul(H.whisperKey||"")),ps.current=!0}).catch(()=>{ps.current=!0})},[]),T.useEffect(()=>{f!=="anthropic"||b.anthropic==="connected"||fetch("/api/auth/claude/status").then(H=>H.json()).then(H=>{H.authenticated&&S(ct=>({...ct,anthropic:"connected"}))}).catch(()=>{})},[f]),T.useEffect(()=>{f!=="openai"||b.openai==="connected"||fetch("/api/auth/codex/status").then(H=>H.json()).then(H=>{H.authenticated&&S(ct=>({...ct,openai:"connected"}))}).catch(()=>{})},[f]),T.useEffect(()=>{if(!Z)return;const H=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(L(!1),S(Jn=>({...Jn,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(H)},[Z]),T.useEffect(()=>{if(ft.current&&clearTimeout(ft.current),!ps.current||oe&&I&&jt===oe.username)return;z(null),$(""),Q({}),rt(!1),Ht("");const H=jt.trim();if(H){if(H.length<3){z("invalid"),$("At least 3 characters");return}return z("checking"),ft.current=setTimeout(async()=>{try{const he=await(await fetch(`/api/handle/check/${encodeURIComponent(H)}`)).json();if(!he.valid)z("invalid"),$(he.error);else{const Jn={};for(const za of he.handles)Jn[za.tier]=za.available;Q(Jn),z("ready");const ql=kv.find(za=>Jn[za.tier]);ql&&!Jn[w]&&Y(ql.tier)}}catch{z(null)}},400),()=>{ft.current&&clearTimeout(ft.current)}}},[jt]);const ui=H=>{Xt(H.toLowerCase().replace(/[^a-z0-9-]/g,""))},ci=async()=>{if(!(!jt||Ct!=="ready"||!dt[w])){et(!0);try{const ct=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:jt,tier:w})})).json();ct.ok?(rt(!0),Ht(ct.url)):($(ct.error||"Registration failed"),z("invalid"))}catch{$("Could not reach server"),z("invalid")}finally{et(!1)}}},fi=async()=>{if(!(!jt||Ct!=="ready"||!dt[w])){li(!0);try{const ct=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:jt,tier:w})})).json();ct.ok?(rt(!0),Ht(ct.url),He({username:jt,tier:w,url:ct.url}),fn(!1)):($(ct.error||"Handle change failed"),z("invalid"))}catch{$("Could not reach server"),z("invalid")}finally{li(!1)}}},An=H=>{f==="openai"&&H!=="openai"&&Z&&(fetch("/api/auth/codex/cancel",{method:"POST"}),L(!1)),d(H),g(""),D(!1),N(""),G(void 0),L(!1),mt(void 0)},di=async()=>{G(void 0);try{const ct=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();ct.success&&ct.authUrl?(window.open(ct.authUrl,"_blank"),D(!0)):G(ct.error||"Failed to start authentication")}catch(H){G(H.message)}},Fn=async()=>{if(M.trim()){q(!0),G(void 0);try{const ct=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:M.trim()})})).json();ct.success?S(he=>({...he,anthropic:"connected"})):G(ct.error||"Code exchange failed")}catch(H){G(H.message)}finally{q(!1)}}},Ko=async()=>{try{const H=await navigator.clipboard.readText();H&&N(H.trim())}catch{}},kl=async()=>{W(!0),G(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?S(he=>({...he,anthropic:"connected"})):G("No active session found. Please authenticate first.")}catch{}finally{W(!1)}},gs=async()=>{L(!0),mt(void 0);try{const ct=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();ct.success&&ct.authUrl?window.open(ct.authUrl,"_blank"):(L(!1),mt(ct.error||"Failed to start authentication"))}catch(H){L(!1),mt(H.message)}},Oa=()=>{L(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Bl=hn===ja,ys=dn.trim().length>=3&&hn.length>=6&&Bl,Hl=It?dn.trim().length>=3&&(hn.length===0||Ra&&ys):ys,Qn=(()=>{switch(i){case 0:return!0;case 1:return r.trim().length>0;case 2:return I;case 3:return Hl;case 4:return!!(f&&h&&wn);case 5:return!0;default:return!1}})(),tn=()=>{Qn&&i<Uv-1&&l(H=>H+1)},vs=()=>{i>0&&l(H=>H-1)},hi=H=>{H.key==="Enter"&&Qn&&tn()},Gl=async()=>{v(!0);try{await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userName:r.trim(),agentName:jt.trim()||"Fluxy",provider:f,model:h,apiKey:"",baseUrl:f==="ollama"&&St||void 0,whisperEnabled:Kt,whisperKey:Kt?qt:"",portalUser:dn.trim(),portalPass:hn})}),n()}catch(H){console.error("Onboard failed:",H),v(!1)}},xe="w-full bg-white/[0.05] border border-white/[0.08] text-white rounded-xl px-4 py-3 text-base outline-none input-glow placeholder:text-white/20 transition-all",$t="w-full bg-white/[0.03] border border-white/[0.08] text-white rounded-xl px-4 py-2.5 text-[13px] outline-none input-glow placeholder:text-white/20 transition-all";return y.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[y.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),y.jsxs(Lv.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.3},className:"relative w-full max-w-[480px] bg-[#181818] border border-white/[0.06] rounded-[24px] shadow-2xl overflow-hidden",children:[y.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:Uv},(H,ct)=>y.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${ct===i?"w-7 bg-gradient-brand":ct<i?"w-1.5 bg-gradient-brand opacity-60":"w-1.5 bg-white/10"}`},ct))}),y.jsx(gN,{mode:"wait",children:y.jsxs(Lv.div,{initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},transition:{duration:.2,ease:"easeOut"},className:"px-8 pt-6 pb-8",children:[i===0&&y.jsxs("div",{className:"flex flex-col items-center text-center",children:[y.jsx("video",{src:"/fluxy_say_hi.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-[180px] mb-4"}),y.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),y.jsx("p",{className:"text-white/40 text-[14px] mt-2 leading-relaxed max-w-[320px]",children:"Let's set up your AI assistant in just a few steps."}),y.jsxs("button",{onClick:tn,className:"mt-6 px-7 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",y.jsx(vn,{className:"h-4 w-4"})]})]}),i===1&&y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),y.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),y.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[y.jsx("input",{type:"text",value:r,onChange:H=>c(H.target.value),onKeyDown:hi,placeholder:"Enter your name",autoFocus:!0,className:xe+" flex-1"}),y.jsx("button",{onClick:tn,disabled:!Qn,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-gradient-brand hover:opacity-90 text-white transition-colors disabled:opacity-30",children:y.jsx(vn,{className:"h-5 w-5"})})]})]}),i===2&&y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),y.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is your bot's name and permanent handle — access it from anywhere."}),oe&&I&&!de&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(cl,{className:"h-4 w-4 text-emerald-400"}),y.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),y.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:gt})]}),y.jsxs("div",{className:"flex gap-2 mt-4",children:[y.jsxs("button",{onClick:tn,className:"flex-1 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",y.jsx(vn,{className:"h-4 w-4"})]}),y.jsx("button",{onClick:()=>{fn(!0),rt(!1),Xt(""),z(null),Q({})},className:"px-5 py-3 bg-white/[0.04] hover:bg-white/[0.08] border border-white/[0.08] text-white/60 text-[13px] font-medium rounded-full transition-colors",children:"Change"})]})]}),de&&!I&&y.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[y.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),y.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",y.jsx("span",{className:"font-mono",children:oe?.url})," will be released and become available for others."]})]}),(!oe||de||!I)&&!(oe&&I&&!de)&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"relative mt-5",children:[y.jsx("input",{type:"text",value:jt,onChange:H=>ui(H.target.value),maxLength:30,placeholder:"your-bot-name",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",autoFocus:!0,disabled:I,className:xe+" pr-10 font-mono"+(I?" opacity-50":"")}),Ct&&jt.length>0&&!I&&y.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[Ct==="checking"&&y.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-[#04D1FE] rounded-full animate-spin"}),Ct==="invalid"&&y.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:y.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),Ct==="invalid"&&F&&y.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:F}),Ct==="ready"&&jt.length>0&&!I&&y.jsx("div",{className:"space-y-2 mt-4",children:kv.map(H=>{const he=dt[H.tier]===!1;return y.jsxs("button",{onClick:()=>!he&&Y(H.tier),disabled:he,className:`w-full flex items-center justify-between px-4 py-3 rounded-xl border transition-all duration-200 text-left ${he?"border-white/[0.04] bg-transparent opacity-50 cursor-not-allowed":w===H.tier?H.highlight?"border-[#AF27E3]/40 bg-[#AF27E3]/[0.06]":"border-[#AF27E3]/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[y.jsx("span",{className:"font-mono text-[13px] text-white/70",children:H.label(jt)}),he?y.jsx("span",{className:"text-[11px] font-medium px-2.5 py-0.5 rounded-full border bg-red-500/10 text-red-400 border-red-500/20",children:"Taken"}):y.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${H.badgeCls}`,children:H.badge})]},H.tier)})}),I&&y.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(cl,{className:"h-4 w-4 text-emerald-400"}),y.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),y.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:gt})]}),Ct==="ready"&&dt[w]&&jt.length>0&&!I&&y.jsx("button",{onClick:de?fi:ci,disabled:J||Ee,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:J||Ee?y.jsxs(y.Fragment,{children:[y.jsx(Wi,{className:"h-4 w-4 animate-spin"}),de?"Changing...":"Claiming..."]}):y.jsxs(y.Fragment,{children:[de?"Change Handle":"Claim & Continue",y.jsx(vn,{className:"h-4 w-4"})]})}),I&&y.jsxs("button",{onClick:tn,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",y.jsx(vn,{className:"h-4 w-4"})]}),de&&!I&&y.jsx("button",{onClick:()=>{fn(!1),Xt(oe.username),rt(!0),Ht(oe.url),Y(oe.tier),z(null)},className:"w-full mt-2 py-2 text-white/25 hover:text-white/40 text-[12px] transition-colors",children:"Cancel — keep current handle"})]})]}),i===3&&y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Secure your portal"}),y.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Create credentials to protect your dashboard. Anyone with your URL will need these to log in."}),I&&gt&&y.jsxs("div",{className:"mt-4 flex items-center gap-2 bg-white/[0.03] border border-white/[0.06] rounded-xl px-4 py-3",children:[y.jsx("span",{className:"font-mono text-[13px] text-white/60 truncate flex-1",children:gt}),y.jsx("button",{onClick:()=>{navigator.clipboard.writeText(gt),zl(!0),setTimeout(()=>zl(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Yo?y.jsx(cl,{className:"h-4 w-4 text-emerald-400"}):y.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[y.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),y.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),It&&y.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:y.jsx("p",{className:"text-white/40 text-[12px]",children:"Credentials already set. Leave password fields empty to keep your current password, or enter your current password to change it."})}),y.jsxs("div",{className:"mt-5",children:[y.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Username"}),y.jsx("input",{type:"text",value:dn,onChange:H=>Ol(H.target.value.replace(/\s/g,"").toLowerCase()),placeholder:"admin",autoFocus:!0,autoComplete:"username",className:xe+" font-mono"}),dn.length>0&&dn.trim().length<3&&y.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 3 characters"})]}),It&&y.jsxs("div",{className:"mt-3",children:[y.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("input",{type:"password",value:ri,onChange:H=>{_l(H.target.value),oi(""),Vl(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",className:xe+" flex-1"}),ri.length>0&&!Ra&&y.jsx("button",{onClick:async()=>{Zn(!0),oi("");try{(await(await fetch("/api/portal/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:ri})})).json()).valid?Vl(!0):oi("Incorrect password")}catch{oi("Could not verify")}finally{Zn(!1)}},disabled:Ll,className:"shrink-0 px-4 py-3 bg-white/[0.06] hover:bg-white/[0.1] text-white/60 text-[13px] font-medium rounded-xl transition-colors disabled:opacity-40",children:Ll?y.jsx(Wi,{className:"h-4 w-4 animate-spin"}):"Verify"}),Ra&&y.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:y.jsx(cl,{className:"h-4 w-4 text-emerald-400"})})]}),Da&&y.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Da})]}),(!It||Ra)&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"mt-3",children:[y.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:It?"New password":"Password"}),y.jsx("input",{type:"password",value:hn,onChange:H=>hs(H.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:hi,className:xe}),hn.length>0&&hn.length<6&&y.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),y.jsxs("div",{className:"mt-3",children:[y.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:It?"Confirm new password":"Confirm password"}),y.jsx("input",{type:"password",value:ja,onChange:H=>ms(H.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:hi,className:xe}),ja.length>0&&!Bl&&y.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),y.jsxs("button",{onClick:tn,disabled:!Qn,className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",y.jsx(vn,{className:"h-4 w-4"})]})]}),i===4&&y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),y.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"Pick one provider to power your bot, authenticate, and select a model."}),y.jsx("div",{className:"flex gap-2.5 mt-4",children:w4.map(H=>y.jsxs("button",{onClick:()=>An(H.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${f===H.id?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[y.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[H.icon?y.jsx("img",{src:H.icon,alt:H.name,className:"w-8 h-8 rounded-lg"}):y.jsx("div",{className:"w-8 h-8 rounded-lg bg-white/[0.06] flex items-center justify-center text-white/50 text-sm font-bold",children:"O"}),y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"text-[13px] font-medium text-white",children:H.name}),y.jsx("div",{className:"text-[10px] text-white/30",children:H.subtitle})]})]}),b[H.id]==="connected"?y.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:y.jsx(cl,{className:"h-2.5 w-2.5 text-emerald-400"})}):f===H.id?y.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-gradient-brand"}):null]},H.id))}),y.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),f==="anthropic"&&y.jsxs("div",{className:"space-y-2.5",children:[wn&&y.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:y.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),!wn&&y.jsxs(y.Fragment,{children:[U&&y.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:y.jsx("p",{className:"text-red-400/90 text-[12px]",children:U})}),y.jsx("div",{className:"space-y-1.5",children:["Click the button below to open Anthropic's login page","Sign in with your Anthropic account — a code will be generated","Copy the code and paste it in the field below"].map((H,ct)=>y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:ct+1}),y.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:H})]},ct))}),y.jsx("button",{onClick:di,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:A?y.jsxs(y.Fragment,{children:[y.jsx(_2,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):y.jsxs(y.Fragment,{children:["Authenticate with Anthropic",y.jsx(vn,{className:"h-3.5 w-3.5 opacity-60"})]})}),y.jsxs("div",{className:"relative",children:[y.jsx("input",{type:"text",value:M,onChange:H=>N(H.target.value),onKeyDown:H=>H.key==="Enter"&&Fn(),placeholder:"Paste your code here...",className:$t+" pr-10 font-mono"}),y.jsx("button",{onClick:Ko,className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/20 hover:text-white/50 transition-colors",children:y.jsx(D2,{className:"h-3.5 w-3.5"})})]}),y.jsx("button",{onClick:Fn,disabled:!M.trim()||V,className:"w-full py-2.5 px-4 bg-gradient-brand hover:opacity-90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:V?y.jsxs(y.Fragment,{children:[y.jsx(Wi,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),y.jsxs("button",{onClick:kl,disabled:P,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors flex items-center justify-center gap-1.5 disabled:opacity-50",children:[P?y.jsx(Wi,{className:"h-3 w-3 animate-spin"}):y.jsx(P2,{className:"h-3 w-3"}),P?"Checking...":"I'm already authenticated"]})]})]}),f==="openai"&&y.jsxs("div",{className:"space-y-2.5",children:[wn&&y.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:y.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),!wn&&y.jsxs(y.Fragment,{children:[tt&&y.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:y.jsx("p",{className:"text-red-400/90 text-[12px]",children:tt})}),y.jsx("div",{className:"space-y-1.5",children:["Click the button below — your browser will open for ChatGPT sign-in","Sign in with your ChatGPT Plus or Pro account","Authentication completes automatically — no code to copy"].map((H,ct)=>y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx("span",{className:"flex-shrink-0 w-[18px] h-[18px] rounded-full bg-white/[0.06] text-white/30 text-[10px] font-medium flex items-center justify-center mt-px",children:ct+1}),y.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:H})]},ct))}),y.jsx("button",{onClick:gs,disabled:Z,className:"w-full py-2.5 px-4 bg-white/[0.06] hover:bg-white/[0.09] text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-60",children:Z?y.jsxs(y.Fragment,{children:[y.jsx(Wi,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):y.jsxs(y.Fragment,{children:["Authenticate with ChatGPT",y.jsx(vn,{className:"h-3.5 w-3.5 opacity-60"})]})}),Z&&y.jsx("button",{onClick:Oa,className:"w-full py-1.5 text-white/25 text-[11px] hover:text-white/40 transition-colors",children:"Cancel"})]})]}),f==="ollama"&&y.jsxs("div",{className:"space-y-2.5",children:[y.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:y.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"No authentication needed — Ollama runs locally."})}),y.jsxs("div",{children:[y.jsxs("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:["Base URL ",y.jsx("span",{className:"text-white/20",children:"(optional)"})]}),y.jsx("input",{type:"text",value:St,onChange:H=>At(H.target.value),placeholder:"http://localhost:11434",className:$t})]})]}),wn&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),y.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),y.jsx(C4,{models:A4[f]||[],value:h,onChange:g})]}),wn&&y.jsxs("button",{onClick:tn,disabled:!Qn,className:"w-full mt-4 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",y.jsx(vn,{className:"h-4 w-4"})]})]}),i===5&&y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[y.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),y.jsx("span",{className:"text-[11px] text-white/25 font-medium bg-white/[0.04] border border-white/[0.06] rounded-full px-2.5 py-0.5",children:"Optional"})]}),y.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),y.jsx("button",{onClick:()=>$e(H=>!H),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Kt?"bg-white/[0.04] border-[#AF27E3]/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:y.jsxs("div",{className:"flex items-center gap-3.5",children:[y.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),y.jsxs("div",{className:"flex-1",children:[y.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),y.jsx("div",{className:"text-[12px] text-white/35 mt-0.5 leading-relaxed",children:"Speech-to-text powered by OpenAI. Requires an OpenAI API key."})]}),y.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Kt?"bg-gradient-brand":"bg-white/[0.08]"}`,children:y.jsx("div",{className:`w-[18px] h-[18px] rounded-full bg-white shadow-sm transition-transform duration-200 ${Kt?"translate-x-[18px]":"translate-x-0"}`})})]})}),Kt&&y.jsxs("div",{className:"mt-3",children:[y.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),y.jsx("input",{type:"password",value:qt,onChange:H=>Ul(H.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:xe+" font-mono text-[13px]"}),qt.length>0&&!qt.startsWith("sk-")&&y.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),qt.length>0&&qt.startsWith("sk-")&&qt.length<20&&y.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),y.jsxs("div",{className:"flex items-start gap-2.5 mt-3 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-3",children:[y.jsx(X2,{className:"h-4 w-4 text-[#AF27E3]/60 mt-0.5 shrink-0"}),y.jsx("p",{className:"text-white/35 text-[12px] leading-relaxed",children:"Users will see a microphone button in the chat. Audio is sent to OpenAI's Whisper API for transcription, then processed as a regular text message."})]})]}),y.jsx("button",{onClick:Gl,disabled:p||Kt&&(!qt.startsWith("sk-")||qt.length<20),className:"w-full mt-5 py-3 bg-gradient-brand hover:opacity-90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:p?y.jsxs(y.Fragment,{children:[y.jsx(Wi,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):y.jsxs(y.Fragment,{children:["Complete Setup",y.jsx(vn,{className:"h-4 w-4"})]})}),!Kt&&y.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]})]},i)}),i>0&&y.jsx("div",{className:"px-8 pb-5 -mt-3",children:y.jsx("button",{onClick:vs,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}function N4(){return y.jsx("div",{className:"flex items-center justify-center h-dvh p-6 text-center",children:y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"The dashboard encountered an error. Use the Fluxy button to continue chatting."})]})})}function j4(){const[n,i]=T.useState(!1),[l,r]=T.useState("idle"),[c,f]=T.useState("");T.useEffect(()=>{fetch("/api/settings").then(h=>h.json()).then(h=>{h.onboard_complete!=="true"&&i(!0)}).catch(()=>{})},[]),T.useEffect(()=>{let h;const g=p=>{p.data?.type==="fluxy:rebuilding"?(r("rebuilding"),f(""),clearTimeout(h),h=setTimeout(()=>location.reload(),6e4)):p.data?.type==="fluxy:rebuilt"?(clearTimeout(h),r("idle"),location.reload()):p.data?.type==="fluxy:build-error"?(clearTimeout(h),r("error"),f(p.data.error||"Build failed"),setTimeout(()=>r("idle"),5e3)):p.data?.type==="fluxy:hmr-update"&&console.log("[dashboard] Vite HMR update — changes applied automatically")};return window.addEventListener("message",g),()=>{window.removeEventListener("message",g),clearTimeout(h)}},[]);const d=()=>{i(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(h2,{fallback:y.jsx(N4,{}),children:y.jsx(wA,{onOpenOnboard:()=>i(!0),children:y.jsx(jA,{})})}),n&&y.jsx(M4,{onComplete:d}),l!=="idle"&&y.jsxs("div",{className:"fixed inset-0 z-[49] flex flex-col items-center justify-center bg-background/90",children:[y.jsx("video",{src:"/fluxy_tilts.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"h-24 w-24 rounded-full object-cover"}),y.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:l==="rebuilding"?"Rebuilding app...":c})]})]})}d2.createRoot(document.getElementById("root")).render(y.jsx(Kn.StrictMode,{children:y.jsx(j4,{})}));