fluxy-bot 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/src/components/Onboard/OnboardWizard.tsx +130 -61
- package/dist/assets/{index-CQ58CZb9.css → index-CqHWWApk.css} +1 -1
- package/dist/assets/index-twWUCFQs.js +64 -0
- package/dist/index.html +2 -2
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/worker/index.ts +27 -0
- package/dist/assets/index-SHHf1KTu.js +0 -64
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
function o2(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 fd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ef={exports:{}},ol={};var Hg;function u2(){if(Hg)return ol;Hg=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 Gg;function c2(){return Gg||(Gg=1,ef.exports=u2()),ef.exports}var p=c2(),nf={exports:{}},pt={};var qg;function f2(){if(qg)return pt;qg=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"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=T&&A[T]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,M={};function R(A,Y,J){this.props=A,this.context=Y,this.refs=M,this.updater=J||j}R.prototype.isReactComponent={},R.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function G(){}G.prototype=R.prototype;function k(A,Y,J){this.props=A,this.context=Y,this.refs=M,this.updater=J||j}var B=k.prototype=new G;B.constructor=k,C(B,R.prototype),B.isPureReactComponent=!0;var K=Array.isArray;function W(){}var Z={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function tt(A,Y,J){var et=J.ref;return{$$typeof:n,type:A,key:Y,ref:et!==void 0?et:null,props:J}}function dt(A,Y){return tt(A.type,Y,A.props)}function ut(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function Et(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return Y[J]})}var Ct=/\/+/g;function Gt(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?Et(""+A.key):Y.toString(36)}function Nt(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(W,W):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,Y,J,et,I){var rt=typeof A;(rt==="undefined"||rt==="boolean")&&(A=null);var yt=!1;if(A===null)yt=!0;else switch(rt){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(A.$$typeof){case n:case i:yt=!0;break;case v:return yt=A._init,_(yt(A._payload),Y,J,et,I)}}if(yt)return I=I(A),yt=et===""?"."+Gt(A,0):et,K(I)?(J="",yt!=null&&(J=yt.replace(Ct,"$&/")+"/"),_(I,Y,J,"",function(oe){return oe})):I!=null&&(ut(I)&&(I=dt(I,J+(I.key==null||A&&A.key===I.key?"":(""+I.key).replace(Ct,"$&/")+"/")+yt)),Y.push(I)),1;yt=0;var qt=et===""?".":et+":";if(K(A))for(var ht=0;ht<A.length;ht++)et=A[ht],rt=qt+Gt(et,ht),yt+=_(et,Y,J,rt,I);else if(ht=E(A),typeof ht=="function")for(A=ht.call(A),ht=0;!(et=A.next()).done;)et=et.value,rt=qt+Gt(et,ht++),yt+=_(et,Y,J,rt,I);else if(rt==="object"){if(typeof A.then=="function")return _(Nt(A),Y,J,et,I);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return yt}function F(A,Y,J){if(A==null)return A;var et=[],I=0;return _(A,et,"","",function(rt){return Y.call(J,rt,I++)}),et}function $(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(J){(A._status===0||A._status===-1)&&(A._status=1,A._result=J)},function(J){(A._status===0||A._status===-1)&&(A._status=2,A._result=J)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var mt=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Q={map:F,forEach:function(A,Y,J){F(A,function(){Y.apply(this,arguments)},J)},count:function(A){var Y=0;return F(A,function(){Y++}),Y},toArray:function(A){return F(A,function(Y){return Y})||[]},only:function(A){if(!ut(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return pt.Activity=b,pt.Children=Q,pt.Component=R,pt.Fragment=l,pt.Profiler=c,pt.PureComponent=k,pt.StrictMode=r,pt.Suspense=y,pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,pt.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},pt.cache=function(A){return function(){return A.apply(null,arguments)}},pt.cacheSignal=function(){return null},pt.cloneElement=function(A,Y,J){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var et=C({},A.props),I=A.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 yt=Array(rt),qt=0;qt<rt;qt++)yt[qt]=arguments[qt+2];et.children=yt}return tt(A.type,I,et)},pt.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},pt.createElement=function(A,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 yt=arguments.length-2;if(yt===1)I.children=J;else if(1<yt){for(var qt=Array(yt),ht=0;ht<yt;ht++)qt[ht]=arguments[ht+2];I.children=qt}if(A&&A.defaultProps)for(et in yt=A.defaultProps,yt)I[et]===void 0&&(I[et]=yt[et]);return tt(A,rt,I)},pt.createRef=function(){return{current:null}},pt.forwardRef=function(A){return{$$typeof:h,render:A}},pt.isValidElement=ut,pt.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:$}},pt.memo=function(A,Y){return{$$typeof:g,type:A,compare:Y===void 0?null:Y}},pt.startTransition=function(A){var Y=Z.T,J={};Z.T=J;try{var et=A(),I=Z.S;I!==null&&I(J,et),typeof et=="object"&&et!==null&&typeof et.then=="function"&&et.then(W,mt)}catch(rt){mt(rt)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),Z.T=Y}},pt.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},pt.use=function(A){return Z.H.use(A)},pt.useActionState=function(A,Y,J){return Z.H.useActionState(A,Y,J)},pt.useCallback=function(A,Y){return Z.H.useCallback(A,Y)},pt.useContext=function(A){return Z.H.useContext(A)},pt.useDebugValue=function(){},pt.useDeferredValue=function(A,Y){return Z.H.useDeferredValue(A,Y)},pt.useEffect=function(A,Y){return Z.H.useEffect(A,Y)},pt.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},pt.useId=function(){return Z.H.useId()},pt.useImperativeHandle=function(A,Y,J){return Z.H.useImperativeHandle(A,Y,J)},pt.useInsertionEffect=function(A,Y){return Z.H.useInsertionEffect(A,Y)},pt.useLayoutEffect=function(A,Y){return Z.H.useLayoutEffect(A,Y)},pt.useMemo=function(A,Y){return Z.H.useMemo(A,Y)},pt.useOptimistic=function(A,Y){return Z.H.useOptimistic(A,Y)},pt.useReducer=function(A,Y,J){return Z.H.useReducer(A,Y,J)},pt.useRef=function(A){return Z.H.useRef(A)},pt.useState=function(A){return Z.H.useState(A)},pt.useSyncExternalStore=function(A,Y,J){return Z.H.useSyncExternalStore(A,Y,J)},pt.useTransition=function(){return Z.H.useTransition()},pt.version="19.2.4",pt}var Yg;function _o(){return Yg||(Yg=1,nf.exports=f2()),nf.exports}var S=_o();const Pn=fd(S),Hv=o2({__proto__:null,default:Pn},[S]);var af={exports:{}},ul={},sf={exports:{}},lf={};var Xg;function d2(){return Xg||(Xg=1,(function(n){function i(_,F){var $=_.length;_.push(F);t:for(;0<$;){var mt=$-1>>>1,Q=_[mt];if(0<c(Q,F))_[mt]=F,_[$]=Q,$=mt;else break t}}function l(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var F=_[0],$=_.pop();if($!==F){_[0]=$;t:for(var mt=0,Q=_.length,A=Q>>>1;mt<A;){var Y=2*(mt+1)-1,J=_[Y],et=Y+1,I=_[et];if(0>c(J,$))et<Q&&0>c(I,J)?(_[mt]=I,_[et]=$,mt=et):(_[mt]=J,_[Y]=$,mt=Y);else if(et<Q&&0>c(I,$))_[mt]=I,_[et]=$,mt=et;else break t}}return F}function c(_,F){var $=_.sortIndex-F.sortIndex;return $!==0?$:_.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 y=[],g=[],v=1,b=null,T=3,E=!1,j=!1,C=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function B(_){for(var F=l(g);F!==null;){if(F.callback===null)r(g);else if(F.startTime<=_)r(g),F.sortIndex=F.expirationTime,i(y,F);else break;F=l(g)}}function K(_){if(C=!1,B(_),!j)if(l(y)!==null)j=!0,W||(W=!0,Et());else{var F=l(g);F!==null&&Nt(K,F.startTime-_)}}var W=!1,Z=-1,L=5,tt=-1;function dt(){return M?!0:!(n.unstable_now()-tt<L)}function ut(){if(M=!1,W){var _=n.unstable_now();tt=_;var F=!0;try{t:{j=!1,C&&(C=!1,G(Z),Z=-1),E=!0;var $=T;try{e:{for(B(_),b=l(y);b!==null&&!(b.expirationTime>_&&dt());){var mt=b.callback;if(typeof mt=="function"){b.callback=null,T=b.priorityLevel;var Q=mt(b.expirationTime<=_);if(_=n.unstable_now(),typeof Q=="function"){b.callback=Q,B(_),F=!0;break e}b===l(y)&&r(y),B(_)}else r(y);b=l(y)}if(b!==null)F=!0;else{var A=l(g);A!==null&&Nt(K,A.startTime-_),F=!1}}break t}finally{b=null,T=$,E=!1}F=void 0}}finally{F?Et():W=!1}}}var Et;if(typeof k=="function")Et=function(){k(ut)};else if(typeof MessageChannel<"u"){var Ct=new MessageChannel,Gt=Ct.port2;Ct.port1.onmessage=ut,Et=function(){Gt.postMessage(null)}}else Et=function(){R(ut,0)};function Nt(_,F){Z=R(function(){_(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(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_next=function(_){switch(T){case 1:case 2:case 3:var F=3;break;default:F=T}var $=T;T=F;try{return _()}finally{T=$}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(_,F){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var $=T;T=_;try{return F()}finally{T=$}},n.unstable_scheduleCallback=function(_,F,$){var mt=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?mt+$:mt):$=mt,_){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,_={id:v++,callback:F,priorityLevel:_,startTime:$,expirationTime:Q,sortIndex:-1},$>mt?(_.sortIndex=$,i(g,_),l(y)===null&&_===l(g)&&(C?(G(Z),Z=-1):C=!0,Nt(K,$-mt))):(_.sortIndex=Q,i(y,_),j||E||(j=!0,W||(W=!0,Et()))),_},n.unstable_shouldYield=dt,n.unstable_wrapCallback=function(_){var F=T;return function(){var $=T;T=F;try{return _.apply(this,arguments)}finally{T=$}}}})(lf)),lf}var Pg;function h2(){return Pg||(Pg=1,sf.exports=d2()),sf.exports}var rf={exports:{}},Se={};var Kg;function m2(){if(Kg)return Se;Kg=1;var n=_o();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function 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(y,g,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:y,containerInfo:g,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Se.createPortal=function(y,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(y,g,null,v)},Se.flushSync=function(y){var g=d.T,v=r.p;try{if(d.T=null,r.p=2,y)return y()}finally{d.T=g,r.p=v,r.d.f()}},Se.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},Se.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},Se.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var v=g.as,b=h(v,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:E}):v==="script"&&r.d.X(y,{crossOrigin:b,integrity:T,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Se.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=h(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},Se.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,b=h(v,g.crossOrigin);r.d.L(y,v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Se.preloadModule=function(y,g){if(typeof y=="string")if(g){var v=h(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},Se.requestFormReset=function(y){r.d.r(y)},Se.unstable_batchedUpdates=function(y,g){return y(g)},Se.useFormState=function(y,g,v){return d.H.useFormState(y,g,v)},Se.useFormStatus=function(){return d.H.useHostTransitionStatus()},Se.version="19.2.4",Se}var Zg;function Gv(){if(Zg)return rf.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(),rf.exports=m2(),rf.exports}var Fg;function p2(){if(Fg)return ul;Fg=1;var n=h2(),i=_o(),l=Gv();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 y(t){if(f(t)!==t)throw Error(r(188))}function g(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 y(o),t;if(u===s)return y(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,T=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),k=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),K=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"),dt=Symbol.for("react.memo_cache_sentinel"),ut=Symbol.iterator;function Et(t){return t===null||typeof t!="object"?null:(t=ut&&t[ut]||t["@@iterator"],typeof t=="function"?t:null)}var Ct=Symbol.for("react.client.reference");function Gt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ct?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case K:return"Suspense";case W:return"SuspenseList";case tt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case k:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case B: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:Gt(t.type)||"Memo";case L:e=t._payload,t=t._init;try{return Gt(t(e))}catch{}}return null}var Nt=Array.isArray,_=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},mt=[],Q=-1;function A(t){return{current:t}}function Y(t){0>Q||(t.current=mt[Q],mt[Q]=null,Q--)}function J(t,e){Q++,mt[Q]=t.current,t.current=e}var et=A(null),I=A(null),rt=A(null),yt=A(null);function qt(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)?ug(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ug(e),t=cg(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(et),J(et,t)}function ht(){Y(et),Y(I),Y(rt)}function oe(t){t.memoizedState!==null&&J(yt,t);var e=et.current,a=cg(e,t.type);e!==a&&(J(I,t),J(et,a))}function He(t){I.current===t&&(Y(et),Y(I)),yt.current===t&&(Y(yt),il._currentValue=$)}var de,fn;function we(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 P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(U){var V=U}Reflect.construct(t,[],P)}else{try{P.call()}catch(U){V=U}t.call(P.prototype)}}else{try{throw Error()}catch(U){V=U}(P=t())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(U){if(U&&V&&typeof U.stack=="string")return[U.stack,V.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 w=m.split(`
|
|
4
|
+
`),z=x.split(`
|
|
5
|
+
`);for(o=s=0;s<w.length&&!w[s].includes("DetermineComponentFrameRoot");)s++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(s===w.length||o===z.length)for(s=w.length-1,o=z.length-1;1<=s&&0<=o&&w[s]!==z[o];)o--;for(;1<=s&&0<=o;s--,o--)if(w[s]!==z[o]){if(s!==1||o!==1)do if(s--,o--,0>o||w[s]!==z[o]){var H=`
|
|
6
|
+
`+w[s].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=s&&0<=o);break}}}finally{li=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?we(a):""}function zl(t,e){switch(t.tag){case 26:case 27:case 5:return we(t.type);case 16:return we("Lazy");case 13:return t.child!==e&&e!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("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 we("Activity");default:return""}}function hn(t){try{var e="",a=null;do e+=zl(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,Xo=n.unstable_shouldYield,_l=n.unstable_requestPaint,It=n.unstable_now,Po=n.unstable_getCurrentPriorityLevel,ri=n.unstable_ImmediatePriority,Vl=n.unstable_UserBlockingPriority,Da=n.unstable_NormalPriority,oi=n.unstable_LowPriority,Ra=n.unstable_IdlePriority,kl=n.log,Ll=n.unstable_setDisableYieldValue,Zn=null,Kt=null;function tn(t){if(typeof kl=="function"&&Ll(t),Kt&&typeof Kt.setStrictMode=="function")try{Kt.setStrictMode(Zn,t)}catch{}}var Xt=Math.clz32?Math.clz32:En,Ul=Math.log,ps=Math.LN2;function En(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 Bl(){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 Hl(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,w=t.expirationTimes,z=t.hiddenUpdates;for(a=m&~a;0<a;){var H=31-Xt(a),P=1<<H;x[H]=0,w[H]=-1;var V=z[H];if(V!==null)for(z[H]=null,H=0;H<V.length;H++){var U=V[H];U!==null&&(U.lane&=-536870913)}a&=~P}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-Xt(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function Gl(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var s=31-Xt(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:en(a),(a&(t.suspendedLanes|e))!==0?0:a}function en(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:zg(t.type))}function ql(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,q="__reactProps$"+xe,ft="__reactContainer$"+xe,he="__reactEvents$"+xe,Jn="__reactListeners$"+xe,Yl="__reactHandles$"+xe,za="__reactResources$"+xe,bs="__reactMarker$"+xe;function Zo(t){delete t[$t],delete t[q],delete t[he],delete t[Jn],delete t[Yl]}function mi(t){var e=t[$t];if(e)return e;for(var a=t.parentNode;a;){if(e=a[ft]||a[$t]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=yg(t);t!==null;){if(a=t[$t])return a;t=yg(t)}return e}t=a,a=t.parentNode}return null}function pi(t){if(t=t[$t]||t[ft]){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 Wd=new Set,Id={};function _a(t,e){yi(t,e),yi(t+"Capture",e)}function yi(t,e){for(Id[t]=e,t=0;t<e.length;t++)Wd.add(e[t])}var $x=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]*$"),$d={},th={};function t1(t){return hs.call(th,t)?!0:hs.call($d,t)?!1:$x.test(t)?th[t]=!0:($d[t]=!0,!1)}function Xl(t,e,a){if(t1(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 Pl(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 eh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function e1(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 Fo(t){if(!t._valueTracker){var e=eh(t)?"checked":"value";t._valueTracker=e1(t,e,""+t[e])}}function nh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),s="";return t&&(s=eh(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 n1=/[\n"\\]/g;function qe(t){return t.replace(n1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Qo(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?Jo(t,m,Ge(e)):a!=null?Jo(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 ah(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)){Fo(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),Fo(t)}function Jo(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 ih(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 sh(t,e,a,s){if(e==null){if(s!=null){if(a!=null)throw Error(r(92));if(Nt(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),Fo(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 a1=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 lh(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||a1.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function rh(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&&lh(t,o,s)}else for(var u in e)e.hasOwnProperty(u)&&lh(t,u,e[u])}function Wo(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 i1=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"]]),s1=/^[\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 Zl(t){return s1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Nn(){}var Io=null;function $o(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 oh(t){var e=pi(t);if(e&&(t=e.stateNode)){var a=t[q]||null;t:switch(t=e.stateNode,e.type){case"input":if(Qo(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[q]||null;if(!o)throw Error(r(90));Qo(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&&nh(s)}break t;case"textarea":ih(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&vi(t,!!a.multiple,e,!1)}}}var tu=!1;function uh(t,e,a){if(tu)return t(e,a);tu=!0;try{var s=t(e);return s}finally{if(tu=!1,(xi!==null||Si!==null)&&(_r(),xi&&(e=xi,t=Si,Si=xi=null,oh(e),t)))for(e=0;e<t.length;e++)oh(t[e])}}function Ss(t,e){var a=t.stateNode;if(a===null)return null;var s=a[q]||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 Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=!1;if(Mn)try{var Ts={};Object.defineProperty(Ts,"passive",{get:function(){eu=!0}}),window.addEventListener("test",Ts,Ts),window.removeEventListener("test",Ts,Ts)}catch{eu=!1}var Wn=null,nu=null,Fl=null;function ch(){if(Fl)return Fl;var t,e=nu,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 Fl=o.slice(t,1<s?1-s:void 0)}function Ql(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 Jl(){return!0}function fh(){return!1}function Ne(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)?Jl:fh,this.isPropagationStopped=fh,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=Jl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Jl)},persist:function(){},isPersistent:Jl}),e}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wl=Ne(Va),ws=b({},Va,{view:0,detail:0}),l1=Ne(ws),au,iu,Es,Il=b({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,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!==Es&&(Es&&t.type==="mousemove"?(au=t.screenX-Es.screenX,iu=t.screenY-Es.screenY):iu=au=0,Es=t),au)},movementY:function(t){return"movementY"in t?t.movementY:iu}}),dh=Ne(Il),r1=b({},Il,{dataTransfer:0}),o1=Ne(r1),u1=b({},ws,{relatedTarget:0}),su=Ne(u1),c1=b({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),f1=Ne(c1),d1=b({},Va,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),h1=Ne(d1),m1=b({},Va,{data:0}),hh=Ne(m1),p1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g1={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"},y1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=y1[t])?!!e[t]:!1}function lu(){return v1}var b1=b({},ws,{key:function(t){if(t.key){var e=p1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ql(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?g1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(t){return t.type==="keypress"?Ql(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ql(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),x1=Ne(b1),S1=b({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mh=Ne(S1),T1=b({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),w1=Ne(T1),E1=b({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),A1=Ne(E1),C1=b({},Il,{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}),N1=Ne(C1),M1=b({},Va,{newState:0,oldState:0}),j1=Ne(M1),D1=[9,13,27,32],ru=Mn&&"CompositionEvent"in window,As=null;Mn&&"documentMode"in document&&(As=document.documentMode);var R1=Mn&&"TextEvent"in window&&!As,ph=Mn&&(!ru||As&&8<As&&11>=As),gh=" ",yh=!1;function vh(t,e){switch(t){case"keyup":return D1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ti=!1;function O1(t,e){switch(t){case"compositionend":return bh(e);case"keypress":return e.which!==32?null:(yh=!0,gh);case"textInput":return t=e.data,t===gh&&yh?null:t;default:return null}}function z1(t,e){if(Ti)return t==="compositionend"||!ru&&vh(t,e)?(t=ch(),Fl=nu=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 ph&&e.locale!=="ko"?null:e.data;default:return null}}var _1={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 xh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!_1[t.type]:e==="textarea"}function Sh(t,e,a,s){xi?Si?Si.push(s):Si=[s]:xi=s,e=Gr(e,"onChange"),0<e.length&&(a=new Wl("onChange","change",null,a,s),t.push({event:a,listeners:e}))}var Cs=null,Ns=null;function V1(t){ag(t,0)}function $l(t){var e=xs(t);if(nh(e))return t}function Th(t,e){if(t==="change")return e}var wh=!1;if(Mn){var ou;if(Mn){var uu="oninput"in document;if(!uu){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),uu=typeof Eh.oninput=="function"}ou=uu}else ou=!1;wh=ou&&(!document.documentMode||9<document.documentMode)}function Ah(){Cs&&(Cs.detachEvent("onpropertychange",Ch),Ns=Cs=null)}function Ch(t){if(t.propertyName==="value"&&$l(Ns)){var e=[];Sh(e,Ns,t,$o(t)),uh(V1,e)}}function k1(t,e,a){t==="focusin"?(Ah(),Cs=e,Ns=a,Cs.attachEvent("onpropertychange",Ch)):t==="focusout"&&Ah()}function L1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return $l(Ns)}function U1(t,e){if(t==="click")return $l(e)}function B1(t,e){if(t==="input"||t==="change")return $l(e)}function H1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:H1;function Ms(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 Nh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Mh(t,e){var a=Nh(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=Nh(a)}}function jh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?jh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dh(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 cu(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 G1=Mn&&"documentMode"in document&&11>=document.documentMode,wi=null,fu=null,js=null,du=!1;function Rh(t,e,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;du||wi==null||wi!==Kl(s)||(s=wi,"selectionStart"in s&&cu(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&&Ms(js,s)||(js=s,s=Gr(fu,"onSelect"),0<s.length&&(e=new Wl("onSelect","select",null,e,a),t.push({event:e,listeners:s}),e.target=wi)))}function ka(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ei={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},hu={},Oh={};Mn&&(Oh=document.createElement("div").style,"AnimationEvent"in window||(delete Ei.animationend.animation,delete Ei.animationiteration.animation,delete Ei.animationstart.animation),"TransitionEvent"in window||delete Ei.transitionend.transition);function La(t){if(hu[t])return hu[t];if(!Ei[t])return t;var e=Ei[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Oh)return hu[t]=e[a];return t}var zh=La("animationend"),_h=La("animationiteration"),Vh=La("animationstart"),q1=La("transitionrun"),Y1=La("transitionstart"),X1=La("transitioncancel"),kh=La("transitionend"),Lh=new Map,mu="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(" ");mu.push("scrollEnd");function nn(t,e){Lh.set(t,e),_a(e,[t])}var tr=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,pu=0;function er(){for(var t=Ai,e=pu=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&&Uh(a,o,u)}}function nr(t,e,a,s){Ye[Ai++]=t,Ye[Ai++]=e,Ye[Ai++]=a,Ye[Ai++]=s,pu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function gu(t,e,a,s){return nr(t,e,a,s),ar(t)}function Ua(t,e){return nr(t,null,null,e),ar(t)}function Uh(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-Xt(a),t=u.hiddenUpdates,s=t[o],s===null?t[o]=[e]:s.push(e),e.lane=a|536870912),u):null}function ar(t){if(50<Ws)throw Ws=0,Ac=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 P1(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 P1(t,e,a,s)}function yu(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 Bh(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 ir(t,e,a,s,o,u){var m=0;if(s=t,typeof t=="function")yu(t)&&(m=1);else if(typeof t=="string")m=JS(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 C:return Ba(a.children,o,u,e);case M:m=8,o|=24;break;case R:return t=_e(12,a,e,o|2),t.elementType=R,t.lanes=u,t;case K:return t=_e(13,a,e,o),t.elementType=K,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 k:m=10;break t;case G:m=9;break t;case B: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 vu(t,e,a){return t=_e(6,t,null,e),t.lanes=a,t}function Hh(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function bu(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 Gh=new WeakMap;function Xe(t,e){if(typeof t=="object"&&t!==null){var a=Gh.get(t);return a!==void 0?a:(e={value:t,source:e,stack:hn(e)},Gh.set(t,e),e)}return{value:t,source:e,stack:hn(e)}}var Ni=[],Mi=0,sr=null,Ds=0,Pe=[],Ke=0,In=null,mn=1,pn="";function Dn(t,e){Ni[Mi++]=Ds,Ni[Mi++]=sr,sr=t,Ds=e}function qh(t,e,a){Pe[Ke++]=mn,Pe[Ke++]=pn,Pe[Ke++]=In,In=t;var s=mn;t=pn;var o=32-Xt(s)-1;s&=~(1<<o),a+=1;var u=32-Xt(e)+o;if(30<u){var m=o-o%5;u=(s&(1<<m)-1).toString(32),s>>=m,o-=m,mn=1<<32-Xt(e)+o|a<<o|s,pn=u+t}else mn=1<<u|a<<o|s,pn=t}function xu(t){t.return!==null&&(Dn(t,1),qh(t,1,0))}function Su(t){for(;t===sr;)sr=Ni[--Mi],Ni[Mi]=null,Ds=Ni[--Mi],Ni[Mi]=null;for(;t===In;)In=Pe[--Ke],Pe[Ke]=null,pn=Pe[--Ke],Pe[Ke]=null,mn=Pe[--Ke],Pe[Ke]=null}function Yh(t,e){Pe[Ke++]=mn,Pe[Ke++]=pn,Pe[Ke++]=In,mn=e.id,pn=e.overflow,In=t}var me=null,Bt=null,At=!1,$n=null,Ze=!1,Tu=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)),Tu}function Xh(t){var e=t.stateNode,a=t.type,s=t.memoizedProps;switch(e[$t]=t,e[q]=s,a){case"dialog":St("cancel",e),St("close",e);break;case"iframe":case"object":case"embed":St("load",e);break;case"video":case"audio":for(a=0;a<$s.length;a++)St($s[a],e);break;case"source":St("error",e);break;case"img":case"image":case"link":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"input":St("invalid",e),ah(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":St("invalid",e);break;case"textarea":St("invalid",e),sh(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||rg(e.textContent,a)?(s.popover!=null&&(St("beforetoggle",e),St("toggle",e)),s.onScroll!=null&&St("scroll",e),s.onScrollEnd!=null&&St("scrollend",e),s.onClick!=null&&(e.onclick=Nn),e=!0):e=!1,e||ta(t,!0)}function Ph(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(!At)return Ph(t),At=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Hc(t.type,t.memoizedProps)),a=!a),a&&Bt&&ta(t),Ph(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=gg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Bt=gg(t)}else e===27?(e=Bt,ma(t.type)?(t=Pc,Pc=null,Bt=t):Bt=e):Bt=me?Qe(t.stateNode.nextSibling):null;return!0}function Ha(){Bt=me=null,At=!1}function wu(){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=A(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 Au(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 Cu(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 w=0;w<e.length;w++)if(x.context===e[w]){u.lanes|=a,x=u.alternate,x!==null&&(x.lanes|=a),Au(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),Au(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===yt.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&&Cu(e,t,a,s),e.flags|=262144}function lr(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 Kh(Ga,t)}function rr(t,e){return Ga===null&&qa(t),Kh(t,e)}function Kh(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 K1=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()})}},Z1=n.unstable_scheduleCallback,F1=n.unstable_NormalPriority,te={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nu(){return{controller:new K1,data:new Map,refCount:0}}function Os(t){t.refCount--,t.refCount===0&&Z1(F1,function(){t.controller.abort()})}var zs=null,Mu=0,Ri=0,Oi=null;function Q1(t,e){if(zs===null){var a=zs=[];Mu=0,Ri=Rc(),Oi={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Mu++,e.then(Zh,Zh),e}function Zh(){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 J1(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 Fh=_.S;_.S=function(t,e){Rp=It(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Q1(t,e),Fh!==null&&Fh(t,e)};var Ya=A(null);function ju(){var t=Ya.current;return t!==null?t:kt.pooledCache}function or(t,e){e===null?J(Ya,Ya.current):J(Ya,e.pool)}function Qh(){var t=ju();return t===null?null:{parent:te._currentValue,pool:t}}var zi=Error(r(460)),Du=Error(r(474)),ur=Error(r(542)),cr={then:function(){}};function Jh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Wh(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(Nn,Nn),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,$h(t),t;default:if(typeof e.status=="string")e.then(Nn,Nn);else{if(t=kt,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,$h(t),t}throw Pa=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"?(Pa=a,zi):a}}var Pa=null;function Ih(){if(Pa===null)throw Error(r(459));var t=Pa;return Pa=null,t}function $h(t){if(t===zi||t===ur)throw Error(r(483))}var _i=null,_s=0;function fr(t){var e=_s;return _s+=1,_i===null&&(_i=[]),Wh(_i,t,e)}function Vs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function dr(t,e){throw e.$$typeof===T?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function tm(t){function e(D,N){if(t){var O=D.deletions;O===null?(D.deletions=[N],D.flags|=16):O.push(N)}}function a(D,N){if(!t)return null;for(;N!==null;)e(D,N),N=N.sibling;return null}function s(D){for(var N=new Map;D!==null;)D.key!==null?N.set(D.key,D):N.set(D.index,D),D=D.sibling;return N}function o(D,N){return D=jn(D,N),D.index=0,D.sibling=null,D}function u(D,N,O){return D.index=O,t?(O=D.alternate,O!==null?(O=O.index,O<N?(D.flags|=67108866,N):O):(D.flags|=67108866,N)):(D.flags|=1048576,N)}function m(D){return t&&D.alternate===null&&(D.flags|=67108866),D}function x(D,N,O,X){return N===null||N.tag!==6?(N=vu(O,D.mode,X),N.return=D,N):(N=o(N,O),N.return=D,N)}function w(D,N,O,X){var ot=O.type;return ot===C?H(D,N,O.props.children,X,O.key):N!==null&&(N.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===L&&Xa(ot)===N.type)?(N=o(N,O.props),Vs(N,O),N.return=D,N):(N=ir(O.type,O.key,O.props,null,D.mode,X),Vs(N,O),N.return=D,N)}function z(D,N,O,X){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=bu(O,D.mode,X),N.return=D,N):(N=o(N,O.children||[]),N.return=D,N)}function H(D,N,O,X,ot){return N===null||N.tag!==7?(N=Ba(O,D.mode,X,ot),N.return=D,N):(N=o(N,O),N.return=D,N)}function P(D,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=vu(""+N,D.mode,O),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case E:return O=ir(N.type,N.key,N.props,null,D.mode,O),Vs(O,N),O.return=D,O;case j:return N=bu(N,D.mode,O),N.return=D,N;case L:return N=Xa(N),P(D,N,O)}if(Nt(N)||Et(N))return N=Ba(N,D.mode,O,null),N.return=D,N;if(typeof N.then=="function")return P(D,fr(N),O);if(N.$$typeof===k)return P(D,rr(D,N),O);dr(D,N)}return null}function V(D,N,O,X){var ot=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ot!==null?null:x(D,N,""+O,X);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return O.key===ot?w(D,N,O,X):null;case j:return O.key===ot?z(D,N,O,X):null;case L:return O=Xa(O),V(D,N,O,X)}if(Nt(O)||Et(O))return ot!==null?null:H(D,N,O,X,null);if(typeof O.then=="function")return V(D,N,fr(O),X);if(O.$$typeof===k)return V(D,N,rr(D,O),X);dr(D,O)}return null}function U(D,N,O,X,ot){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return D=D.get(O)||null,x(N,D,""+X,ot);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case E:return D=D.get(X.key===null?O:X.key)||null,w(N,D,X,ot);case j:return D=D.get(X.key===null?O:X.key)||null,z(N,D,X,ot);case L:return X=Xa(X),U(D,N,O,X,ot)}if(Nt(X)||Et(X))return D=D.get(O)||null,H(N,D,X,ot,null);if(typeof X.then=="function")return U(D,N,O,fr(X),ot);if(X.$$typeof===k)return U(D,N,O,rr(N,X),ot);dr(N,X)}return null}function nt(D,N,O,X){for(var ot=null,Mt=null,lt=N,vt=N=0,wt=null;lt!==null&&vt<O.length;vt++){lt.index>vt?(wt=lt,lt=null):wt=lt.sibling;var jt=V(D,lt,O[vt],X);if(jt===null){lt===null&&(lt=wt);break}t&<&&jt.alternate===null&&e(D,lt),N=u(jt,N,vt),Mt===null?ot=jt:Mt.sibling=jt,Mt=jt,lt=wt}if(vt===O.length)return a(D,lt),At&&Dn(D,vt),ot;if(lt===null){for(;vt<O.length;vt++)lt=P(D,O[vt],X),lt!==null&&(N=u(lt,N,vt),Mt===null?ot=lt:Mt.sibling=lt,Mt=lt);return At&&Dn(D,vt),ot}for(lt=s(lt);vt<O.length;vt++)wt=U(lt,D,vt,O[vt],X),wt!==null&&(t&&wt.alternate!==null&<.delete(wt.key===null?vt:wt.key),N=u(wt,N,vt),Mt===null?ot=wt:Mt.sibling=wt,Mt=wt);return t&<.forEach(function(ba){return e(D,ba)}),At&&Dn(D,vt),ot}function ct(D,N,O,X){if(O==null)throw Error(r(151));for(var ot=null,Mt=null,lt=N,vt=N=0,wt=null,jt=O.next();lt!==null&&!jt.done;vt++,jt=O.next()){lt.index>vt?(wt=lt,lt=null):wt=lt.sibling;var ba=V(D,lt,jt.value,X);if(ba===null){lt===null&&(lt=wt);break}t&<&&ba.alternate===null&&e(D,lt),N=u(ba,N,vt),Mt===null?ot=ba:Mt.sibling=ba,Mt=ba,lt=wt}if(jt.done)return a(D,lt),At&&Dn(D,vt),ot;if(lt===null){for(;!jt.done;vt++,jt=O.next())jt=P(D,jt.value,X),jt!==null&&(N=u(jt,N,vt),Mt===null?ot=jt:Mt.sibling=jt,Mt=jt);return At&&Dn(D,vt),ot}for(lt=s(lt);!jt.done;vt++,jt=O.next())jt=U(lt,D,vt,jt.value,X),jt!==null&&(t&&jt.alternate!==null&<.delete(jt.key===null?vt:jt.key),N=u(jt,N,vt),Mt===null?ot=jt:Mt.sibling=jt,Mt=jt);return t&<.forEach(function(r2){return e(D,r2)}),At&&Dn(D,vt),ot}function Vt(D,N,O,X){if(typeof O=="object"&&O!==null&&O.type===C&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case E:t:{for(var ot=O.key;N!==null;){if(N.key===ot){if(ot=O.type,ot===C){if(N.tag===7){a(D,N.sibling),X=o(N,O.props.children),X.return=D,D=X;break t}}else if(N.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===L&&Xa(ot)===N.type){a(D,N.sibling),X=o(N,O.props),Vs(X,O),X.return=D,D=X;break t}a(D,N);break}else e(D,N);N=N.sibling}O.type===C?(X=Ba(O.props.children,D.mode,X,O.key),X.return=D,D=X):(X=ir(O.type,O.key,O.props,null,D.mode,X),Vs(X,O),X.return=D,D=X)}return m(D);case j:t:{for(ot=O.key;N!==null;){if(N.key===ot)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){a(D,N.sibling),X=o(N,O.children||[]),X.return=D,D=X;break t}else{a(D,N);break}else e(D,N);N=N.sibling}X=bu(O,D.mode,X),X.return=D,D=X}return m(D);case L:return O=Xa(O),Vt(D,N,O,X)}if(Nt(O))return nt(D,N,O,X);if(Et(O)){if(ot=Et(O),typeof ot!="function")throw Error(r(150));return O=ot.call(O),ct(D,N,O,X)}if(typeof O.then=="function")return Vt(D,N,fr(O),X);if(O.$$typeof===k)return Vt(D,N,rr(D,O),X);dr(D,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(a(D,N.sibling),X=o(N,O),X.return=D,D=X):(a(D,N),X=vu(O,D.mode,X),X.return=D,D=X),m(D)):a(D,N)}return function(D,N,O,X){try{_s=0;var ot=Vt(D,N,O,X);return _i=null,ot}catch(lt){if(lt===zi||lt===ur)throw lt;var Mt=_e(29,lt,null,D.mode);return Mt.lanes=X,Mt.return=D,Mt}}}var Ka=tm(!0),em=tm(!1),na=!1;function Ru(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ou(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=ar(t),Uh(t,null,a),e}return nr(t,s,e,a),ar(t)}function ks(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,Gl(t,a)}}function zu(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 _u=!1;function Ls(){if(_u){var t=Oi;if(t!==null)throw t}}function Us(t,e,a,s){_u=!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 w=x,z=w.next;w.next=null,m===null?u=z:m.next=z,m=w;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==m&&(x===null?H.firstBaseUpdate=z:x.next=z,H.lastBaseUpdate=w))}if(u!==null){var P=o.baseState;m=0,H=z=w=null,x=u;do{var V=x.lane&-536870913,U=V!==x.lane;if(U?(Tt&V)===V:(s&V)===V){V!==0&&V===Ri&&(_u=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var nt=t,ct=x;V=e;var Vt=a;switch(ct.tag){case 1:if(nt=ct.payload,typeof nt=="function"){P=nt.call(Vt,P,V);break t}P=nt;break t;case 3:nt.flags=nt.flags&-65537|128;case 0:if(nt=ct.payload,V=typeof nt=="function"?nt.call(Vt,P,V):nt,V==null)break t;P=b({},P,V);break t;case 2:na=!0}}V=x.callback,V!==null&&(t.flags|=64,U&&(t.flags|=8192),U=o.callbacks,U===null?o.callbacks=[V]:U.push(V))}else U={lane:V,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(z=H=U,w=P):H=H.next=U,m|=V;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;U=x,x=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);H===null&&(w=P),o.baseState=w,o.firstBaseUpdate=z,o.lastBaseUpdate=H,u===null&&(o.shared.lanes=0),ua|=m,t.lanes=m,t.memoizedState=P}}function nm(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function am(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)nm(a[t],e)}var Vi=A(null),hr=A(0);function im(t,e){t=Gn,J(hr,t),J(Vi,e),Gn=t|e.baseLanes}function Vu(){J(hr,Gn),J(Vi,Vi.current)}function ku(){Gn=hr.current,Y(Vi),Y(hr)}var Ve=A(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 sm(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 ke(t){Y(Ve),Fe===t&&(Fe=null),Y(Jt)}var Jt=A(0);function mr(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Yc(a)||Xc(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,gt=null,zt=null,ee=null,pr=!1,ki=!1,Za=!1,gr=0,Bs=0,Li=null,W1=0;function Zt(){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 Bu(t,e,a,s,o,u){return zn=u,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?qm:tc,Za=!1,u=a(s,o),Za=!1,ki&&(u=rm(e,a,s,o)),lm(t),u}function lm(t){_.H=qs;var e=zt!==null&&zt.next!==null;if(zn=0,ee=zt=gt=null,pr=!1,Bs=0,Li=null,e)throw Error(r(300));t===null||ne||(t=t.dependencies,t!==null&&lr(t)&&(ne=!0))}function rm(t,e,a,s){gt=t;var o=0;do{if(ki&&(Li=null),Bs=0,ki=!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)}_.H=Ym,u=e(a,s)}while(ki);return u}function I1(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?Hs(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(gt.flags|=1024),e}function Hu(){var t=gr!==0;return gr=0,t}function Gu(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function qu(t){if(pr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}pr=!1}zn=0,ee=zt=gt=null,ki=!1,Bs=gr=0,Li=null}function Ee(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ee===null?gt.memoizedState=ee=t:ee=ee.next=t,ee}function Wt(){if(zt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=ee===null?gt.memoizedState:ee.next;if(e!==null)ee=e,zt=t;else{if(t===null)throw gt.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?gt.memoizedState=ee=t:ee=ee.next=t}return ee}function yr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hs(t){var e=Bs;return Bs+=1,Li===null&&(Li=[]),t=Wh(Li,t,e),e=gt,(ee===null?e.memoizedState:ee.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?qm:tc),t}function vr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Hs(t);if(t.$$typeof===k)return pe(t)}throw Error(r(438,String(t)))}function Yu(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var s=gt.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=yr(),gt.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]=dt;return e.index++,a}function _n(t,e){return typeof e=="function"?e(t):e}function br(t){var e=Wt();return Xu(e,zt,t)}function Xu(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,w=null,z=e,H=!1;do{var P=z.lane&-536870913;if(P!==z.lane?(Tt&P)===P:(zn&P)===P){var V=z.revertLane;if(V===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),P===Ri&&(H=!0);else if((zn&V)===V){z=z.next,V===Ri&&(H=!0);continue}else P={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(x=w=P,m=u):w=w.next=P,gt.lanes|=V,ua|=V;P=z.action,Za&&a(u,P),u=z.hasEagerState?z.eagerState:a(u,P)}else V={lane:P,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},w===null?(x=w=V,m=u):w=w.next=V,gt.lanes|=P,ua|=P;z=z.next}while(z!==null&&z!==e);if(w===null?m=u:w.next=x,!ze(u,t.memoizedState)&&(ne=!0,H&&(a=Oi,a!==null)))throw a;t.memoizedState=u,t.baseState=m,t.baseQueue=w,s.lastRenderedState=u}return o===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Pu(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 om(t,e,a){var s=gt,o=Wt(),u=At;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,Fu(fm.bind(null,s,o,t),[t]),o.getSnapshot!==e||m||ee!==null&&ee.memoizedState.tag&1){if(s.flags|=2048,Ui(9,{destroy:void 0},cm.bind(null,s,o,a,e),null),kt===null)throw Error(r(349));u||(zn&127)!==0||um(s,e,a)}return a}function um(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=yr(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function cm(t,e,a,s){e.value=a,e.getSnapshot=s,dm(e)&&hm(t)}function fm(t,e,a){return a(function(){dm(e)&&hm(t)})}function dm(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ze(t,a)}catch{return!0}}function hm(t){var e=Ua(t,2);e!==null&&Oe(e,t,2)}function Ku(t){var e=Ee();if(typeof t=="function"){var a=t;if(t=a(),Za){tn(!0);try{a()}finally{tn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:t},e}function mm(t,e,a,s){return t.baseState=a,Xu(t,zt,typeof s=="function"?s:_n)}function $1(t,e,a,s,o){if(Tr(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)}};_.T!==null?a(!0):u.isTransition=!1,s(u),a=e.pending,a===null?(u.next=e.pending=u,pm(e,u)):(u.next=a.next,e.pending=a.next=u)}}function pm(t,e){var a=e.action,s=e.payload,o=t.state;if(e.isTransition){var u=_.T,m={};_.T=m;try{var x=a(o,s),w=_.S;w!==null&&w(m,x),gm(t,e,x)}catch(z){Zu(t,e,z)}finally{u!==null&&m.types!==null&&(u.types=m.types),_.T=u}}else try{u=a(o,s),gm(t,e,u)}catch(z){Zu(t,e,z)}}function gm(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){ym(t,e,s)},function(s){return Zu(t,e,s)}):ym(t,e,a)}function ym(t,e,a){e.status="fulfilled",e.value=a,vm(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,pm(t,a)))}function Zu(t,e,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=a,vm(e),e=e.next;while(e!==s)}t.action=null}function vm(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function bm(t,e){return e}function xm(t,e){if(At){var a=kt.formState;if(a!==null){t:{var s=gt;if(At){if(Bt){e:{for(var o=Bt,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){Bt=Qe(o.nextSibling),s=o.data==="F!";break t}}ta(s)}s=!1}s&&(e=a[0])}}return a=Ee(),a.memoizedState=a.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bm,lastRenderedState:e},a.queue=s,a=Bm.bind(null,gt,s),s.dispatch=a,s=Ku(!1),u=$u.bind(null,gt,!1,s.queue),s=Ee(),o={state:e,dispatch:null,action:t,pending:null},s.queue=o,a=$1.bind(null,gt,o,u,a),o.dispatch=a,s.memoizedState=t,[e,a,!1]}function Sm(t){var e=Wt();return Tm(e,zt,t)}function Tm(t,e,a){if(e=Xu(t,e,bm)[0],t=br(_n)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=Hs(e)}catch(m){throw m===zi?ur:m}else s=e;e=Wt();var o=e.queue,u=o.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,Ui(9,{destroy:void 0},tS.bind(null,o,a),null)),[s,u,t]}function tS(t,e){t.action=e}function wm(t){var e=Wt(),a=zt;if(a!==null)return Tm(e,a,t);Wt(),e=e.memoizedState,a=Wt();var s=a.queue.dispatch;return a.memoizedState=t,[e,s,!1]}function Ui(t,e,a,s){return t={tag:t,create:a,deps:s,inst:e,next:null},e=gt.updateQueue,e===null&&(e=yr(),gt.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 Em(){return Wt().memoizedState}function xr(t,e,a,s){var o=Ee();gt.flags|=t,o.memoizedState=Ui(1|e,{destroy:void 0},a,s===void 0?null:s)}function Sr(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=Ui(e,u,a,s):(gt.flags|=t,o.memoizedState=Ui(1|e,u,a,s))}function Am(t,e){xr(8390656,8,t,e)}function Fu(t,e){Sr(2048,8,t,e)}function eS(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=yr(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Cm(t){var e=Wt().memoizedState;return eS({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Nm(t,e){return Sr(4,2,t,e)}function Mm(t,e){return Sr(4,4,t,e)}function jm(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 Dm(t,e,a){a=a!=null?a.concat([t]):null,Sr(4,4,jm.bind(null,e,t),a)}function Qu(){}function Rm(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 Om(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){tn(!0);try{t()}finally{tn(!1)}}return a.memoizedState=[s,e],s}function Ju(t,e,a){return a===void 0||(zn&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=zp(),gt.lanes|=t,ua|=t,a)}function zm(t,e,a,s){return ze(a,e)?a:Vi.current!==null?(t=Ju(t,a,s),ze(t,e)||(ne=!0),t):(zn&42)===0||(zn&1073741824)!==0&&(Tt&261930)===0?(ne=!0,t.memoizedState=a):(t=zp(),gt.lanes|=t,ua|=t,e)}function _m(t,e,a,s,o){var u=F.p;F.p=u!==0&&8>u?u:8;var m=_.T,x={};_.T=x,$u(t,!1,e,a);try{var w=o(),z=_.S;if(z!==null&&z(x,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=J1(w,s);Gs(t,e,H,Be(t))}else Gs(t,e,s,Be(t))}catch(P){Gs(t,e,{then:function(){},status:"rejected",reason:P},Be())}finally{F.p=u,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function nS(){}function Wu(t,e,a,s){if(t.tag!==5)throw Error(r(476));var o=Vm(t).queue;_m(t,o,e,$,a===null?nS:function(){return km(t),a(s)})}function Vm(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 km(t){var e=Vm(t);e.next===null&&(e=t.alternate.memoizedState),Gs(t,e.next.queue,{},Be())}function Iu(){return pe(il)}function Lm(){return Wt().memoizedState}function Um(){return Wt().memoizedState}function aS(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),ks(s,e,a)),e={cache:Nu()},t.payload=e;return}e=e.return}}function iS(t,e,a){var s=Be();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Tr(t)?Hm(e,a):(a=gu(t,e,a,s),a!==null&&(Oe(a,t,s),Gm(a,e,s)))}function Bm(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(Tr(t))Hm(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 nr(t,e,o,0),kt===null&&er(),!1}catch{}if(a=gu(t,e,o,s),a!==null)return Oe(a,t,s),Gm(a,e,s),!0}return!1}function $u(t,e,a,s){if(s={lane:2,revertLane:Rc(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Tr(t)){if(e)throw Error(r(479))}else e=gu(t,a,s,2),e!==null&&Oe(e,t,2)}function Tr(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function Hm(t,e){ki=pr=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Gm(t,e,a){if((a&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,Gl(t,a)}}var qs={readContext:pe,use:vr,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useLayoutEffect:Zt,useInsertionEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useSyncExternalStore:Zt,useId:Zt,useHostTransitionStatus:Zt,useFormState:Zt,useActionState:Zt,useOptimistic:Zt,useMemoCache:Zt,useCacheRefresh:Zt};qs.useEffectEvent=Zt;var qm={readContext:pe,use:vr,useCallback:function(t,e){return Ee().memoizedState=[t,e===void 0?null:e],t},useContext:pe,useEffect:Am,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,xr(4194308,4,jm.bind(null,e,t),a)},useLayoutEffect:function(t,e){return xr(4194308,4,t,e)},useInsertionEffect:function(t,e){xr(4,2,t,e)},useMemo:function(t,e){var a=Ee();e=e===void 0?null:e;var s=t();if(Za){tn(!0);try{t()}finally{tn(!1)}}return a.memoizedState=[s,e],s},useReducer:function(t,e,a){var s=Ee();if(a!==void 0){var o=a(e);if(Za){tn(!0);try{a(e)}finally{tn(!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=iS.bind(null,gt,t),[s.memoizedState,t]},useRef:function(t){var e=Ee();return t={current:t},e.memoizedState=t},useState:function(t){t=Ku(t);var e=t.queue,a=Bm.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Qu,useDeferredValue:function(t,e){var a=Ee();return Ju(a,t,e)},useTransition:function(){var t=Ku(!1);return t=_m.bind(null,gt,t.queue,!0,!1),Ee().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var s=gt,o=Ee();if(At){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),kt===null)throw Error(r(349));(Tt&127)!==0||um(s,e,a)}o.memoizedState=a;var u={value:a,getSnapshot:e};return o.queue=u,Am(fm.bind(null,s,u,t),[t]),s.flags|=2048,Ui(9,{destroy:void 0},cm.bind(null,s,u,a,e),null),a},useId:function(){var t=Ee(),e=kt.identifierPrefix;if(At){var a=pn,s=mn;a=(s&~(1<<32-Xt(s)-1)).toString(32)+a,e="_"+e+"R_"+a,a=gr++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=W1++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Iu,useFormState:xm,useActionState:xm,useOptimistic:function(t){var e=Ee();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=$u.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Yu,useCacheRefresh:function(){return Ee().memoizedState=aS.bind(null,gt)},useEffectEvent:function(t){var e=Ee(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},tc={readContext:pe,use:vr,useCallback:Rm,useContext:pe,useEffect:Fu,useImperativeHandle:Dm,useInsertionEffect:Nm,useLayoutEffect:Mm,useMemo:Om,useReducer:br,useRef:Em,useState:function(){return br(_n)},useDebugValue:Qu,useDeferredValue:function(t,e){var a=Wt();return zm(a,zt.memoizedState,t,e)},useTransition:function(){var t=br(_n)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:Hs(t),e]},useSyncExternalStore:om,useId:Lm,useHostTransitionStatus:Iu,useFormState:Sm,useActionState:Sm,useOptimistic:function(t,e){var a=Wt();return mm(a,zt,t,e)},useMemoCache:Yu,useCacheRefresh:Um};tc.useEffectEvent=Cm;var Ym={readContext:pe,use:vr,useCallback:Rm,useContext:pe,useEffect:Fu,useImperativeHandle:Dm,useInsertionEffect:Nm,useLayoutEffect:Mm,useMemo:Om,useReducer:Pu,useRef:Em,useState:function(){return Pu(_n)},useDebugValue:Qu,useDeferredValue:function(t,e){var a=Wt();return zt===null?Ju(a,t,e):zm(a,zt.memoizedState,t,e)},useTransition:function(){var t=Pu(_n)[0],e=Wt().memoizedState;return[typeof t=="boolean"?t:Hs(t),e]},useSyncExternalStore:om,useId:Lm,useHostTransitionStatus:Iu,useFormState:wm,useActionState:wm,useOptimistic:function(t,e){var a=Wt();return zt!==null?mm(a,zt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Yu,useCacheRefresh:Um};Ym.useEffectEvent=Cm;function ec(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 nc={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),ks(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),ks(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),ks(e,t,a))}};function Xm(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?!Ms(a,s)||!Ms(o,u):!0}function Pm(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&&nc.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 Km(t){tr(t)}function Zm(t){console.error(t)}function Fm(t){tr(t)}function wr(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function Qm(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 ac(t,e,a){return a=aa(a),a.tag=3,a.payload={element:null},a.callback=function(){wr(t,e)},a}function Jm(t){return t=aa(t),t.tag=3,t}function Wm(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(){Qm(e,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){Qm(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 sS(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?Vr():a.alternate===null&&Ft===0&&(Ft=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===cr?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===cr?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),Vr(),!1}if(At)return e=Ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=o,s!==Tu&&(t=Error(r(422),{cause:s}),Rs(Xe(t,a)))):(s!==Tu&&(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=ac(t.stateNode,s,o),zu(t,o),Ft!==4&&(Ft=2)),!1;var u=Error(r(520),{cause:s});if(u=Xe(u,a),Js===null?Js=[u]:Js.push(u),Ft!==4&&(Ft=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=ac(a.stateNode,s,t),zu(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=Jm(o),Wm(o,t,a,s),zu(a,o),!1}a=a.return}while(a!==null);return!1}var ic=Error(r(461)),ne=!1;function ge(t,e,a,s){e.child=t===null?em(e,null,a,s):Ka(e,t.child,a,s)}function Im(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=Bu(t,e,a,m,u,o),x=Hu(),t!==null&&!ne?(Gu(t,e,o),Vn(t,e,o)):(At&&x&&xu(e),e.flags|=1,ge(t,e,s,o),e.child)}function $m(t,e,a,s,o){if(t===null){var u=a.type;return typeof u=="function"&&!yu(u)&&u.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=u,tp(t,e,u,s,o)):(t=ir(a.type,null,s,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!dc(t,o)){var m=u.memoizedProps;if(a=a.compare,a=a!==null?a:Ms,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 tp(t,e,a,s,o){if(t!==null){var u=t.memoizedProps;if(Ms(u,s)&&t.ref===e.ref)if(ne=!1,e.pendingProps=s=u,dc(t,o))(t.flags&131072)!==0&&(ne=!0);else return e.lanes=t.lanes,Vn(t,e,o)}return sc(t,e,a,s,o)}function ep(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 np(t,e,u,a,s)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&or(e,u!==null?u.cachePool:null),u!==null?im(e,u):Vu(),sm(e);else return s=e.lanes=536870912,np(t,e,u!==null?u.baseLanes|a:a,a,s)}else u!==null?(or(e,u.cachePool),im(e,u),la(),e.memoizedState=null):(t!==null&&or(e,null),Vu(),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 np(t,e,a,s,o){var u=ju();return u=u===null?null:{parent:te._currentValue,pool:u},e.memoizedState={baseLanes:a,cachePool:u},t!==null&&or(e,null),Vu(),sm(e),t!==null&&Di(t,e,s,!0),e.childLanes=o,null}function Er(t,e){return e=Cr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ap(t,e,a){return Ka(e,t.child,null,a),t=Er(e,e.pendingProps),t.flags|=2,ke(e),e.memoizedState=null,t}function lS(t,e,a){var s=e.pendingProps,o=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(At){if(s.mode==="hidden")return t=Er(e,s),e.lanes=536870912,Ys(null,t);if(Lu(e),(t=Bt)?(t=pg(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=Hh(t),a.return=e,e.child=a,me=e,Bt=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=ap(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=kt,s!==null&&(m=Qn(s,a),m!==0&&m!==u.retryLane))throw u.retryLane=m,Ua(t,m),Oe(s,t,m),ic;Vr(),e=ap(t,e,a)}else t=u.treeContext,Bt=Qe(m.nextSibling),me=e,At=!0,$n=null,Ze=!1,t!==null&&Yh(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 Ar(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 sc(t,e,a,s,o){return qa(e),a=Bu(t,e,a,s,void 0,o),s=Hu(),t!==null&&!ne?(Gu(t,e,o),Vn(t,e,o)):(At&&s&&xu(e),e.flags|=1,ge(t,e,a,o),e.child)}function ip(t,e,a,s,o,u){return qa(e),e.updateQueue=null,a=rm(e,s,a,o),lm(t),s=Hu(),t!==null&&!ne?(Gu(t,e,u),Vn(t,e,u)):(At&&s&&xu(e),e.flags|=1,ge(t,e,a,u),e.child)}function sp(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=nc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=s,u.state=e.memoizedState,u.refs={},Ru(e),m=a.contextType,u.context=typeof m=="object"&&m!==null?pe(m):Ci,u.state=e.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(ec(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&&nc.enqueueReplaceState(u,u.state,null),Us(e,s,u,o),Ls(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){u=e.stateNode;var x=e.memoizedProps,w=Fa(a,x);u.props=w;var z=u.context,H=a.contextType;m=Ci,typeof H=="object"&&H!==null&&(m=pe(H));var P=a.getDerivedStateFromProps;H=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,H||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||z!==m)&&Pm(e,u,s,m),na=!1;var V=e.memoizedState;u.state=V,Us(e,s,u,o),Ls(),z=e.memoizedState,x||V!==z||na?(typeof P=="function"&&(ec(e,a,P,s),z=e.memoizedState),(w=na||Xm(e,a,w,s,V,z,m))?(H||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=z),u.props=s,u.state=z,u.context=m,s=w):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{u=e.stateNode,Ou(t,e),m=e.memoizedProps,H=Fa(a,m),u.props=H,P=e.pendingProps,V=u.context,z=a.contextType,w=Ci,typeof z=="object"&&z!==null&&(w=pe(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==P||V!==w)&&Pm(e,u,s,w),na=!1,V=e.memoizedState,u.state=V,Us(e,s,u,o),Ls();var U=e.memoizedState;m!==P||V!==U||na||t!==null&&t.dependencies!==null&&lr(t.dependencies)?(typeof x=="function"&&(ec(e,a,x,s),U=e.memoizedState),(H=na||Xm(e,a,H,s,V,U,w)||t!==null&&t.dependencies!==null&&lr(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,U,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,U,w)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=U),u.props=s,u.state=U,u.context=w,s=H):(typeof u.componentDidUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),s=!1)}return u=s,Ar(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=Ka(e,t.child,null,o),e.child=Ka(e,null,a,o)):ge(t,e,a,o),e.memoizedState=u.state,t=e.child):t=Vn(t,e,o),t}function lp(t,e,a,s){return Ha(),e.flags|=256,ge(t,e,a,s),e.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rc(t){return{baseLanes:t,cachePool:Qh()}}function oc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ue),t}function rp(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(At){if(o?sa(e):la(),(t=Bt)?(t=pg(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=Hh(t),a.return=e,e.child=a,me=e,Bt=null)):t=null,t===null)throw ta(e);return Xc(t)?e.lanes=32:e.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(la(),o=e.mode,x=Cr({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=rc(a),s.childLanes=oc(t,m,a),e.memoizedState=lc,Ys(null,s)):(sa(e),uc(e,x))}var w=t.memoizedState;if(w!==null&&(x=w.dehydrated,x!==null)){if(u)e.flags&256?(sa(e),e.flags&=-257,e=cc(t,e,a)):e.memoizedState!==null?(la(),e.child=t.child,e.flags|=128,e=null):(la(),x=s.fallback,o=e.mode,s=Cr({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,Ka(e,t.child,null,a),s=e.child,s.memoizedState=rc(a),s.childLanes=oc(t,m,a),e.memoizedState=lc,e=Ys(null,s));else if(sa(e),Xc(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var z=m.dgst;m=z,s=Error(r(419)),s.stack="",s.digest=m,Rs({value:s,source:null,stack:null}),e=cc(t,e,a)}else if(ne||Di(t,e,a,!1),m=(a&t.childLanes)!==0,ne||m){if(m=kt,m!==null&&(s=Qn(m,a),s!==0&&s!==w.retryLane))throw w.retryLane=s,Ua(t,s),Oe(m,t,s),ic;Yc(x)||Vr(),e=cc(t,e,a)}else Yc(x)?(e.flags|=192,e.child=t.child,e=null):(t=w.treeContext,Bt=Qe(x.nextSibling),me=e,At=!0,$n=null,Ze=!1,t!==null&&Yh(e,t),e=uc(e,s.children),e.flags|=4096);return e}return o?(la(),x=s.fallback,o=e.mode,w=t.child,z=w.sibling,s=jn(w,{mode:"hidden",children:s.children}),s.subtreeFlags=w.subtreeFlags&65011712,z!==null?x=jn(z,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=rc(a):(o=x.cachePool,o!==null?(w=te._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Qh(),x={baseLanes:x.baseLanes|a,cachePool:o}),s.memoizedState=x,s.childLanes=oc(t,m,a),e.memoizedState=lc,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 uc(t,e){return e=Cr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Cr(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function cc(t,e,a){return Ka(e,t.child,null,a),t=uc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function op(t,e,a){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Au(t.return,e,a)}function fc(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 up(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=At?Ds:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&op(t,a,e);else if(t.tag===19)op(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&&mr(t)===null&&(o=a),a=a.sibling;a=o,a===null?(o=e.child,e.child=null):(o=a.sibling,a.sibling=null),fc(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&&mr(t)===null){e.child=o;break}t=o.sibling,o.sibling=a,a=o,o=t}fc(e,!0,a,null,u,s);break;case"together":fc(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 dc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&lr(t)))}function rS(t,e,a){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),ea(e,te,t.memoizedState.cache),Ha();break;case 27:case 5:oe(e);break;case 4:qt(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?rp(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 up(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,ep(t,e,a,e.pendingProps);case 24:ea(e,te,t.memoizedState.cache)}return Vn(t,e,a)}function cp(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ne=!0;else{if(!dc(t,a)&&(e.flags&128)===0)return ne=!1,rS(t,e,a);ne=(t.flags&131072)!==0}else ne=!1,At&&(e.flags&1048576)!==0&&qh(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")yu(t)?(s=Fa(t,s),e.tag=1,e=sp(null,e,t,s,a)):(e.tag=0,e=sc(null,e,t,s,a));else{if(t!=null){var o=t.$$typeof;if(o===B){e.tag=11,e=Im(null,e,t,s,a);break t}else if(o===Z){e.tag=14,e=$m(null,e,t,s,a);break t}}throw e=Gt(t)||t,Error(r(306,e,""))}}return e;case 0:return sc(t,e,e.type,e.pendingProps,a);case 1:return s=e.type,o=Fa(s,e.pendingProps),sp(t,e,s,o,a);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));s=e.pendingProps;var u=e.memoizedState;o=u.element,Ou(t,e),Us(e,s,null,a);var m=e.memoizedState;if(s=m.cache,ea(e,te,s),s!==u.cache&&Cu(e,[te],a,!0),Ls(),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=lp(t,e,s,a);break t}else if(s!==o){o=Xe(Error(r(424)),e),Rs(o),e=lp(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,Bt=Qe(t.firstChild),me=e,At=!0,$n=null,Ze=!0,a=em(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 Ar(t,e),t===null?(a=Sg(e.type,null,e.pendingProps,null))?e.memoizedState=a:At||(a=e.type,t=e.pendingProps,s=qr(rt.current).createElement(a),s[$t]=e,s[q]=t,ye(s,a,t),ue(s),e.stateNode=s):e.memoizedState=Sg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return oe(e),t===null&&At&&(s=e.stateNode=vg(e.type,e.pendingProps,rt.current),me=e,Ze=!0,o=Bt,ma(e.type)?(Pc=o,Bt=Qe(s.firstChild)):Bt=o),ge(t,e,e.pendingProps.children,a),Ar(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((o=s=Bt)&&(s=LS(s,e.type,e.pendingProps,Ze),s!==null?(e.stateNode=s,me=e,Bt=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,Hc(o,u)?s=null:m!==null&&Hc(o,m)&&(e.flags|=32),e.memoizedState!==null&&(o=Bu(t,e,I1,null,null,a),il._currentValue=o),Ar(t,e),ge(t,e,s,a),e.child;case 6:return t===null&&At&&((t=a=Bt)&&(a=US(a,e.pendingProps,Ze),a!==null?(e.stateNode=a,me=e,Bt=null,t=!0):t=!1),t||ta(e)),null;case 13:return rp(t,e,a);case 4:return qt(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=Ka(e,null,s,a):ge(t,e,s,a),e.child;case 11:return Im(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 $m(t,e,e.type,e.pendingProps,a);case 15:return tp(t,e,e.type,e.pendingProps,a);case 19:return up(t,e,a);case 31:return lS(t,e,a);case 22:return ep(t,e,a,e.pendingProps);case 24:return qa(e),s=pe(te),t===null?(o=ju(),o===null&&(o=kt,u=Nu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),e.memoizedState={parent:s,cache:o},Ru(e),ea(e,te,o)):((t.lanes&a)!==0&&(Ou(t,e),Us(e,null,null,a),Ls()),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&&Cu(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 kn(t){t.flags|=4}function hc(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(Lp())t.flags|=8192;else throw Pa=cr,Du}else t.flags&=-16777217}function fp(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Cg(e))if(Lp())t.flags|=8192;else throw Pa=cr,Du}function Nr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Bl():536870912,t.lanes|=e,qi|=e)}function Xs(t,e){if(!At)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 Ht(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 oS(t,e,a){var s=e.pendingProps;switch(Su(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(e),null;case 1:return Ht(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),ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(ji(e)?kn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,wu())),Ht(e),null;case 26:var o=e.type,u=e.memoizedState;return t===null?(kn(e),u!==null?(Ht(e),fp(e,u)):(Ht(e),hc(e,o,null,s,a))):u?u!==t.memoizedState?(kn(e),Ht(e),fp(e,u)):(Ht(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&kn(e),Ht(e),hc(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&&kn(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Ht(e),null}t=et.current,ji(e)?Xh(e):(t=vg(o,s,a),e.stateNode=t,kn(e))}return Ht(e),null;case 5:if(He(e),o=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&kn(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Ht(e),null}if(u=et.current,ji(e))Xh(e);else{var m=qr(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[q]=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&&kn(e)}}return Ht(e),hc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&kn(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||rg(t.nodeValue,a)),t||ta(e,!0)}else t=qr(t).createTextNode(s),t[$t]=e,e.stateNode=t}return Ht(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;Ht(e),t=!1}else a=wu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(ke(e),e):(ke(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ht(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;Ht(e),o=!1}else o=wu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),o=!0;if(!o)return e.flags&256?(ke(e),e):(ke(e),null)}return ke(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),Nr(e,e.updateQueue),Ht(e),null);case 4:return ht(),t===null&&Vc(e.stateNode.containerInfo),Ht(e),null;case 10:return On(e.type),Ht(e),null;case 19:if(Y(Jt),s=e.memoizedState,s===null)return Ht(e),null;if(o=(e.flags&128)!==0,u=s.rendering,u===null)if(o)Xs(s,!1);else{if(Ft!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=mr(t),u!==null){for(e.flags|=128,Xs(s,!1),t=u.updateQueue,e.updateQueue=t,Nr(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Bh(a,t),a=a.sibling;return J(Jt,Jt.current&1|2),At&&Dn(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&It()>Or&&(e.flags|=128,o=!0,Xs(s,!1),e.lanes=4194304)}else{if(!o)if(t=mr(u),t!==null){if(e.flags|=128,o=!0,t=t.updateQueue,e.updateQueue=t,Nr(e,t),Xs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!At)return Ht(e),null}else 2*It()-s.renderingStartTime>Or&&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),At&&Dn(e,s.treeForkCount),t):(Ht(e),null);case 22:case 23:return ke(e),ku(),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&&(Ht(e),e.subtreeFlags&6&&(e.flags|=8192)):Ht(e),a=e.updateQueue,a!==null&&Nr(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),Ht(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function uS(t,e){switch(Su(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return On(te),ht(),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(ke(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(ke(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 ht(),null;case 10:return On(e.type),null;case 22:case 23:return ke(e),ku(),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 dp(t,e){switch(Su(e),e.tag){case 3:On(te),ht();break;case 26:case 27:case 5:He(e);break;case 4:ht();break;case 31:e.memoizedState!==null&&ke(e);break;case 13:ke(e);break;case 19:Y(Jt);break;case 10:On(e.type);break;case 22:case 23:ke(e),ku(),t!==null&&Y(Ya);break;case 24:On(te)}}function Ps(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 w=a,z=x;try{z()}catch(H){Ot(o,w,H)}}}s=s.next}while(s!==u)}}catch(H){Ot(e,e.return,H)}}function hp(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{am(e,a)}catch(s){Ot(t,t.return,s)}}}function mp(t,e,a){a.props=Fa(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Ot(t,e,s)}}function Ks(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 pp(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 mc(t,e,a){try{var s=t.stateNode;RS(s,t.type,a,e),s[q]=e}catch(o){Ot(t,t.return,o)}}function gp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ma(t.type)||t.tag===4}function pc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||gp(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 gc(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=Nn));else if(s!==4&&(s===27&&ma(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(gc(t,e,a),t=t.sibling;t!==null;)gc(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 yp(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[q]=a}catch(u){Ot(t,t.return,u)}}var Ln=!1,ae=!1,yc=!1,vp=typeof WeakSet=="function"?WeakSet:Set,ce=null;function cS(t,e){if(t=t.containerInfo,Uc=Qr,t=Dh(t),cu(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,w=-1,z=0,H=0,P=t,V=null;e:for(;;){for(var U;P!==a||o!==0&&P.nodeType!==3||(x=m+o),P!==u||s!==0&&P.nodeType!==3||(w=m+s),P.nodeType===3&&(m+=P.nodeValue.length),(U=P.firstChild)!==null;)V=P,P=U;for(;;){if(P===t)break e;if(V===a&&++z===o&&(x=m),V===u&&++H===s&&(w=m),(U=P.nextSibling)!==null)break;P=V,V=P.parentNode}P=U}a=x===-1||w===-1?null:{start:x,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bc={focusedElem:t,selectionRange:a},Qr=!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(ct){Ot(a,a.return,ct)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)qc(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":qc(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 bp(t,e,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Bn(t,a),s&4&&Ps(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&&hp(a),s&512&&Ks(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{am(t,e)}catch(m){Ot(a,a.return,m)}}break;case 27:e===null&&s&4&&yp(a);case 26:case 5:Bn(t,a),e===null&&s&4&&pp(a),s&512&&Ks(a,a.return);break;case 12:Bn(t,a);break;case 31:Bn(t,a),s&4&&Tp(t,a);break;case 13:Bn(t,a),s&4&&wp(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=bS.bind(null,a),BS(t,a))));break;case 22:if(s=a.memoizedState!==null||Ln,!s){e=e!==null&&e.memoizedState!==null||ae,o=Ln;var u=ae;Ln=s,(ae=e)&&!u?Hn(t,a,(a.subtreeFlags&8772)!==0):Bn(t,a),Ln=o,ae=u}break;case 30:break;default:Bn(t,a)}}function xp(t){var e=t.alternate;e!==null&&(t.alternate=null,xp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Zo(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 Yt=null,Me=!1;function Un(t,e,a){for(a=a.child;a!==null;)Sp(t,e,a),a=a.sibling}function Sp(t,e,a){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(Zn,a)}catch{}switch(a.tag){case 26:ae||gn(a,e),Un(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=Yt,o=Me;ma(a.type)&&(Yt=a.stateNode,Me=!1),Un(t,e,a),el(a.stateNode),Yt=s,Me=o;break;case 5:ae||gn(a,e);case 6:if(s=Yt,o=Me,Yt=null,Un(t,e,a),Yt=s,Me=o,Yt!==null)if(Me)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(a.stateNode)}catch(u){Ot(a,e,u)}else try{Yt.removeChild(a.stateNode)}catch(u){Ot(a,e,u)}break;case 18:Yt!==null&&(Me?(t=Yt,hg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Ji(t)):hg(Yt,a.stateNode));break;case 4:s=Yt,o=Me,Yt=a.stateNode.containerInfo,Me=!0,Un(t,e,a),Yt=s,Me=o;break;case 0:case 11:case 14:case 15:ra(2,a,e),ae||ra(4,a,e),Un(t,e,a);break;case 1:ae||(gn(a,e),s=a.stateNode,typeof s.componentWillUnmount=="function"&&mp(a,e,s)),Un(t,e,a);break;case 21:Un(t,e,a);break;case 22:ae=(s=ae)||a.memoizedState!==null,Un(t,e,a),ae=s;break;default:Un(t,e,a)}}function Tp(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 wp(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 fS(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new vp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new vp),e;default:throw Error(r(435,t.tag))}}function jr(t,e){var a=fS(t);e.forEach(function(s){if(!a.has(s)){a.add(s);var o=xS.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)){Yt=x.stateNode,Me=!1;break t}break;case 5:Yt=x.stateNode,Me=!1;break t;case 3:case 4:Yt=x.stateNode.containerInfo,Me=!0;break t}x=x.return}if(Yt===null)throw Error(r(160));Sp(u,m,o),Yt=null,Me=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ep(e,t),e=e.sibling}var an=null;function Ep(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),Ps(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&&Ln&&(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=an;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=Eg("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=Eg("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 Ag(o,t.type,t.stateNode);else t.stateNode=wg(o,s,t.memoizedProps);else u!==s?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,s===null?Ag(o,t.type,t.stateNode):wg(o,s,t.memoizedProps)):s===null&&t.stateNode!==null&&mc(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&&mc(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,mc(t,o,a!==null?a.memoizedProps:o)),s&1024&&(yc=!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(Pr=null,o=an,an=Yr(e.containerInfo),je(e,t),an=o,De(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Ji(e.containerInfo)}catch(nt){Ot(t,t.return,nt)}yc&&(yc=!1,Ap(t));break;case 4:s=an,an=Yr(t.stateNode.containerInfo),je(e,t),De(t),an=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,jr(t,s)));break;case 13:je(e,t),De(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Rr=It()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,jr(t,s)));break;case 22:o=t.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,z=Ln,H=ae;if(Ln=z||o,ae=H||w,je(e,t),ae=H,Ln=z,De(t),s&8192)t:for(e=t.stateNode,e._visibility=o?e._visibility&-2:e._visibility|1,o&&(a===null||w||Ln||ae||Qa(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){w=a=e;try{if(u=w.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=w.stateNode;var P=w.memoizedProps.style,V=P!=null&&P.hasOwnProperty("display")?P.display:null;x.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(nt){Ot(w,w.return,nt)}}}else if(e.tag===6){if(a===null){w=e;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(nt){Ot(w,w.return,nt)}}}else if(e.tag===18){if(a===null){w=e;try{var U=w.stateNode;o?mg(U,!0):mg(w.stateNode,!1)}catch(nt){Ot(w,w.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,jr(t,a))));break;case 19:je(e,t),De(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,jr(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(gp(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var o=a.stateNode,u=pc(t);Mr(t,u,o);break;case 5:var m=a.stateNode;a.flags&32&&(bi(m,""),a.flags&=-33);var x=pc(t);Mr(t,x,m);break;case 3:case 4:var w=a.stateNode.containerInfo,z=pc(t);gc(t,z,w);break;default:throw Error(r(161))}}catch(H){Ot(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ap(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ap(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;)bp(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"&&mp(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),Ps(4,u);break;case 1:if(Hn(o,u,a),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Ot(s,s.return,z)}if(s=u,o=s.updateQueue,o!==null){var x=s.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)nm(w[o],x)}catch(z){Ot(s,s.return,z)}}a&&m&64&&hp(u),Ks(u,u.return);break;case 27:yp(u);case 26:case 5:Hn(o,u,a),a&&s===null&&m&4&&pp(u),Ks(u,u.return);break;case 12:Hn(o,u,a);break;case 31:Hn(o,u,a),a&&m&4&&Tp(o,u);break;case 13:Hn(o,u,a),a&&m&4&&wp(o,u);break;case 22:u.memoizedState===null&&Hn(o,u,a),Ks(u,u.return);break;case 30:break;default:Hn(o,u,a)}e=e.sibling}}function vc(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 bc(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 sn(t,e,a,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cp(t,e,a,s),e=e.sibling}function Cp(t,e,a,s){var o=e.flags;switch(e.tag){case 0:case 11:case 15:sn(t,e,a,s),o&2048&&Ps(9,e);break;case 1:sn(t,e,a,s);break;case 3:sn(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){sn(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(w){Ot(e,e.return,w)}}else sn(t,e,a,s);break;case 31:sn(t,e,a,s);break;case 13:sn(t,e,a,s);break;case 23:break;case 22:u=e.stateNode,m=e.alternate,e.memoizedState!==null?u._visibility&2?sn(t,e,a,s):Zs(t,e):u._visibility&2?sn(t,e,a,s):(u._visibility|=2,Bi(t,e,a,s,(e.subtreeFlags&10256)!==0||!1)),o&2048&&vc(m,e);break;case 24:sn(t,e,a,s),o&2048&&bc(e.alternate,e);break;default:sn(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,w=s,z=m.flags;switch(m.tag){case 0:case 11:case 15:Bi(u,m,x,w,o),Ps(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?Bi(u,m,x,w,o):Zs(u,m):(H._visibility|=2,Bi(u,m,x,w,o)),o&&z&2048&&vc(m.alternate,m);break;case 24:Bi(u,m,x,w,o),o&&z&2048&&bc(m.alternate,m);break;default:Bi(u,m,x,w,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&&vc(s.alternate,s);break;case 24:Zs(a,s),o&2048&&bc(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;)Np(t,e,a),t=t.sibling}function Np(t,e,a){switch(t.tag){case 26:Hi(t,e,a),t.flags&Fs&&t.memoizedState!==null&&WS(a,an,t.memoizedState,t.memoizedProps);break;case 5:Hi(t,e,a);break;case 3:case 4:var s=an;an=Yr(t.stateNode.containerInfo),Hi(t,e,a),an=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 Mp(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,Dp(s,t)}Mp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jp(t),t=t.sibling}function jp(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,Dr(t)):Qs(t);break;default:Qs(t)}}function Dr(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,Dp(s,t)}Mp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ra(8,e,e.return),Dr(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Dr(e));break;default:Dr(e)}t=t.sibling}}function Dp(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(xp(s),s===a){ce=null;break t}if(o!==null){o.return=u,ce=o;break t}ce=u}}}var dS={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}},hS=typeof WeakMap=="function"?WeakMap:Map,Dt=0,kt=null,xt=null,Tt=0,Rt=0,Le=null,oa=!1,Gi=!1,xc=!1,Gn=0,Ft=0,ua=0,Ja=0,Sc=0,Ue=0,qi=0,Js=null,Re=null,Tc=!1,Rr=0,Rp=0,Or=1/0,zr=null,ca=null,se=0,fa=null,Yi=null,qn=0,wc=0,Ec=null,Op=null,Ws=0,Ac=null;function Be(){return(Dt&2)!==0&&Tt!==0?Tt&-Tt:_.T!==null?Rc():hi()}function zp(){if(Ue===0)if((Tt&536870912)===0||At){var t=ci;ci<<=1,(ci&3932160)===0&&(ci=262144),Ue=t}else Ue=536870912;return t=Ve.current,t!==null&&(t.flags|=32),Ue}function Oe(t,e,a){(t===kt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(Xi(t,0),da(t,Tt,Ue,!1)),Oa(t,a),((Dt&2)===0||t!==kt)&&(t===kt&&((Dt&2)===0&&(Ja|=a),Ft===4&&da(t,Tt,Ue,!1)),yn(t))}function _p(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?gS(t,e):Nc(t,e,!0),u=s;do{if(o===0){Gi&&!s&&da(t,e,0,!1);break}else{if(a=t.current.alternate,u&&!mS(a)){o=Nc(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 w=x.current.memoizedState.isDehydrated;if(w&&(Xi(x,m).flags|=256),m=Nc(x,m,!1),m!==2){if(xc&&!w){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,Ue,!oa);break t;case 2:Re=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(o=Rr+300-It(),10<o)){if(da(s,e,Ue,!oa),di(s,0,!0)!==0)break t;qn=e,s.timeoutHandle=fg(Vp.bind(null,s,a,Re,zr,Tc,e,Ue,Ja,qi,oa,u,"Throttled",-0,0),o);break t}Vp(s,a,Re,zr,Tc,e,Ue,Ja,qi,oa,u,null,-0,0)}}break}while(!0);yn(t)}function Vp(t,e,a,s,o,u,m,x,w,z,H,P,V,U){if(t.timeoutHandle=-1,P=e.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nn},Np(e,u,P);var nt=(u&62914560)===u?Rr-It():(u&4194048)===u?Rp-It():0;if(nt=IS(P,nt),nt!==null){qn=u,t.cancelPendingCommit=nt(Yp.bind(null,t,e,u,a,s,o,m,x,w,H,P,null,V,U)),da(t,u,m,!z);return}}Yp(t,e,u,a,s,o,m,x,w)}function mS(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&=~Sc,e&=~Ja,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var o=e;0<o;){var u=31-Xt(o),m=1<<u;s[u]=-1,o&=~m}a!==0&&ys(t,a,e)}function _r(){return(Dt&6)===0?(Is(0),!1):!0}function Cc(){if(xt!==null){if(Rt===0)var t=xt.return;else t=xt,Rn=Ga=null,qu(t),_i=null,_s=0,t=xt;for(;t!==null;)dp(t.alternate,t),t=t.return;xt=null}}function Xi(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,_S(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),qn=0,Cc(),kt=t,xt=a=jn(t.current,null),Tt=e,Rt=0,Le=null,oa=!1,Gi=Fn(t,e),xc=!1,qi=Ue=Sc=Ja=ua=Ft=0,Re=Js=null,Tc=!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-Xt(s),u=1<<o;e|=t[o],s&=~u}return Gn=e,er(),a}function kp(t,e){gt=null,_.H=qs,e===zi||e===ur?(e=Ih(),Rt=3):e===Du?(e=Ih(),Rt=4):Rt=e===ic?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Le=e,xt===null&&(Ft=1,wr(t,Xe(e,t.current)))}function Lp(){var t=Ve.current;return t===null?!0:(Tt&4194048)===Tt?Fe===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===Fe:!1}function Up(){var t=_.H;return _.H=qs,t===null?qs:t}function Bp(){var t=_.A;return _.A=dS,t}function Vr(){Ft=4,oa||(Tt&4194048)!==Tt&&Ve.current!==null||(Gi=!0),(ua&134217727)===0&&(Ja&134217727)===0||kt===null||da(kt,Tt,Ue,!1)}function Nc(t,e,a){var s=Dt;Dt|=2;var o=Up(),u=Bp();(kt!==t||Tt!==e)&&(zr=null,Xi(t,e)),e=!1;var m=Ft;t:do try{if(Rt!==0&&xt!==null){var x=xt,w=Le;switch(Rt){case 8:Cc(),m=6;break t;case 3:case 2:case 9:case 6:Ve.current===null&&(e=!0);var z=Rt;if(Rt=0,Le=null,Pi(t,x,w,z),a&&Gi){m=0;break t}break;default:z=Rt,Rt=0,Le=null,Pi(t,x,w,z)}}pS(),m=Ft;break}catch(H){kp(t,H)}while(!0);return e&&t.shellSuspendCounter++,Rn=Ga=null,Dt=s,_.H=o,_.A=u,xt===null&&(kt=null,Tt=0,er()),m}function pS(){for(;xt!==null;)Hp(xt)}function gS(t,e){var a=Dt;Dt|=2;var s=Up(),o=Bp();kt!==t||Tt!==e?(zr=null,Or=It()+500,Xi(t,e)):Gi=Fn(t,e);t:do try{if(Rt!==0&&xt!==null){e=xt;var u=Le;e:switch(Rt){case 1:Rt=0,Le=null,Pi(t,e,u,1);break;case 2:case 9:if(Jh(u)){Rt=0,Le=null,Gp(e);break}e=function(){Rt!==2&&Rt!==9||kt!==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:Jh(u)?(Rt=0,Le=null,Gp(e)):(Rt=0,Le=null,Pi(t,e,u,7));break;case 5:var m=null;switch(xt.tag){case 26:m=xt.memoizedState;case 5:case 27:var x=xt;if(m?Cg(m):x.stateNode.complete){Rt=0,Le=null;var w=x.sibling;if(w!==null)xt=w;else{var z=x.return;z!==null?(xt=z,kr(z)):xt=null}break e}}Rt=0,Le=null,Pi(t,e,u,5);break;case 6:Rt=0,Le=null,Pi(t,e,u,6);break;case 8:Cc(),Ft=6;break t;default:throw Error(r(462))}}yS();break}catch(H){kp(t,H)}while(!0);return Rn=Ga=null,_.H=s,_.A=o,Dt=a,xt!==null?0:(kt=null,Tt=0,er(),Ft)}function yS(){for(;xt!==null&&!Xo();)Hp(xt)}function Hp(t){var e=cp(t.alternate,t,Gn);t.memoizedProps=t.pendingProps,e===null?kr(t):xt=e}function Gp(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=ip(a,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=ip(a,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:qu(e);default:dp(a,e),e=xt=Bh(e,Gn),e=cp(a,e,Gn)}t.memoizedProps=t.pendingProps,e===null?kr(t):xt=e}function Pi(t,e,a,s){Rn=Ga=null,qu(e),_i=null,_s=0;var o=e.return;try{if(sS(t,o,e,a,Tt)){Ft=1,wr(t,Xe(a,t.current)),xt=null;return}}catch(u){if(o!==null)throw xt=o,u;Ft=1,wr(t,Xe(a,t.current)),xt=null;return}e.flags&32768?(At||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))),qp(e,t)):kr(e)}function kr(t){var e=t;do{if((e.flags&32768)!==0){qp(e,oa);return}t=e.return;var a=oS(e.alternate,e,Gn);if(a!==null){xt=a;return}if(e=e.sibling,e!==null){xt=e;return}xt=e=t}while(e!==null);Ft===0&&(Ft=5)}function qp(t,e){do{var a=uS(t.alternate,t);if(a!==null){a.flags&=32767,xt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){xt=t;return}xt=t=a}while(t!==null);Ft=6,xt=null}function Yp(t,e,a,s,o,u,m,x,w){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|=pu,Hl(t,a,u,m,x,w),t===kt&&(xt=kt=null,Tt=0),Yi=e,fa=t,qn=a,wc=u,Ec=o,Op=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,SS(Da,function(){return Fp(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=_.T,_.T=null,o=F.p,F.p=2,m=Dt,Dt|=4;try{cS(t,e,a)}finally{Dt=m,F.p=o,_.T=s}}se=1,Xp(),Pp(),Kp()}}function Xp(){if(se===1){se=0;var t=fa,e=Yi,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var s=F.p;F.p=2;var o=Dt;Dt|=4;try{Ep(e,t);var u=Bc,m=Dh(t.containerInfo),x=u.focusedElem,w=u.selectionRange;if(m!==x&&x&&x.ownerDocument&&jh(x.ownerDocument.documentElement,x)){if(w!==null&&cu(x)){var z=w.start,H=w.end;if(H===void 0&&(H=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(H,x.value.length);else{var P=x.ownerDocument||document,V=P&&P.defaultView||window;if(V.getSelection){var U=V.getSelection(),nt=x.textContent.length,ct=Math.min(w.start,nt),Vt=w.end===void 0?ct:Math.min(w.end,nt);!U.extend&&ct>Vt&&(m=Vt,Vt=ct,ct=m);var D=Mh(x,ct),N=Mh(x,Vt);if(D&&N&&(U.rangeCount!==1||U.anchorNode!==D.node||U.anchorOffset!==D.offset||U.focusNode!==N.node||U.focusOffset!==N.offset)){var O=P.createRange();O.setStart(D.node,D.offset),U.removeAllRanges(),ct>Vt?(U.addRange(O),U.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),U.addRange(O))}}}}for(P=[],U=x;U=U.parentNode;)U.nodeType===1&&P.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<P.length;x++){var X=P[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Qr=!!Uc,Bc=Uc=null}finally{Dt=o,F.p=s,_.T=a}}t.current=e,se=2}}function Pp(){if(se===2){se=0;var t=fa,e=Yi,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var s=F.p;F.p=2;var o=Dt;Dt|=4;try{bp(t,e.alternate,e)}finally{Dt=o,F.p=s,_.T=a}}se=3}}function Kp(){if(se===4||se===3){se=0,_l();var t=fa,e=Yi,a=qn,s=Op;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?se=5:(se=0,Yi=fa=null,Zp(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=_.T,o=F.p,F.p=2,_.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{_.T=e,F.p=o}}(qn&3)!==0&&Lr(),yn(t),o=t.pendingLanes,(a&261930)!==0&&(o&42)!==0?t===Ac?Ws++:(Ws=0,Ac=t):Ws=0,Is(0)}}function Zp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Os(e)))}function Lr(){return Xp(),Pp(),Kp(),Fp()}function Fp(){if(se!==5)return!1;var t=fa,e=wc;wc=0;var a=vs(qn),s=_.T,o=F.p;try{F.p=32>a?32:a,_.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,jp(u.current),Cp(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,_.T=s,Zp(t,e)}}function Qp(t,e,a){e=Xe(a,e),e=ac(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)Qp(t,t,a);else for(;e!==null;){if(e.tag===3){Qp(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=Jm(2),s=ia(e,a,2),s!==null&&(Wm(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 hS;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)||(xc=!0,o.add(a),t=vS.bind(null,t,e,a),e.then(t,t))}function vS(t,e,a){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,kt===t&&(Tt&a)===a&&(Ft===4||Ft===3&&(Tt&62914560)===Tt&&300>It()-Rr?(Dt&2)===0&&Xi(t,0):Sc|=a,qi===Tt&&(qi=0)),yn(t)}function Jp(t,e){e===0&&(e=Bl()),t=Ua(t,e),t!==null&&(Oa(t,e),yn(t))}function bS(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Jp(t,a)}function xS(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),Jp(t,a)}function SS(t,e){return ja(t,e)}var Ur=null,Ki=null,jc=!1,Br=!1,Dc=!1,ha=0;function yn(t){t!==Ki&&t.next===null&&(Ki===null?Ur=Ki=t:Ki=Ki.next=t),Br=!0,jc||(jc=!0,wS())}function Is(t,e){if(!Dc&&Br){Dc=!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-Xt(42|t)+1)-1,u&=o&~(m&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,tg(s,u))}else u=Tt,u=di(s,s===kt?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Fn(s,u)||(a=!0,tg(s,u));s=s.next}while(a);Dc=!1}}function TS(){Wp()}function Wp(){Br=jc=!1;var t=0;ha!==0&&zS()&&(t=ha);for(var e=It(),a=null,s=Ur;s!==null;){var o=s.next,u=Ip(s,e);u===0?(s.next=null,a===null?Ur=o:a.next=o,o===null&&(Ki=a)):(a=s,(t!==0||(u&3)!==0)&&(Br=!0)),s=o}se!==0&&se!==5||Is(t),ha!==0&&(ha=0)}function Ip(t,e){for(var a=t.suspendedLanes,s=t.pingedLanes,o=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var m=31-Xt(u),x=1<<m,w=o[m];w===-1?((x&a)===0||(x&s)!==0)&&(o[m]=Ko(x,e)):w<=e&&(t.expiredLanes|=x),u&=~x}if(e=kt,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=Vl;break;case 32:a=Da;break;case 268435456:a=Ra;break;default:a=Da}return s=$p.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 $p(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===kt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(_p(t,s,e),Ip(t,It()),t.callbackNode!=null&&t.callbackNode===a?$p.bind(null,t):null)}function tg(t,e){if(Lr())return null;_p(t,e,!0)}function wS(){VS(function(){(Dt&6)!==0?ja(ri,TS):Wp()})}function Rc(){if(ha===0){var t=Ri;t===0&&(t=ui,ui<<=1,(ui&261888)===0&&(ui=256)),ha=t}return ha}function eg(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zl(""+t)}function ng(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 ES(t,e,a,s,o){if(e==="submit"&&a&&a.stateNode===o){var u=eg((o[q]||null).action),m=s.submitter;m&&(e=(e=m[q]||null)?eg(e.formAction):m.getAttribute("formAction"),e!==null&&(u=e,m=null));var x=new Wl("action","action",null,s,o);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ha!==0){var w=m?ng(o,m):new FormData(o);Wu(a,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(x.preventDefault(),w=m?ng(o,m):new FormData(o),Wu(a,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var Oc=0;Oc<mu.length;Oc++){var zc=mu[Oc],AS=zc.toLowerCase(),CS=zc[0].toUpperCase()+zc.slice(1);nn(AS,"on"+CS)}nn(zh,"onAnimationEnd"),nn(_h,"onAnimationIteration"),nn(Vh,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(q1,"onTransitionRun"),nn(Y1,"onTransitionStart"),nn(X1,"onTransitionCancel"),nn(kh,"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(" "),NS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($s));function ag(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],w=x.instance,z=x.currentTarget;if(x=x.listener,w!==u&&o.isPropagationStopped())break t;u=x,o.currentTarget=z;try{u(o)}catch(H){tr(H)}o.currentTarget=null,u=w}else for(m=0;m<s.length;m++){if(x=s[m],w=x.instance,z=x.currentTarget,x=x.listener,w!==u&&o.isPropagationStopped())break t;u=x,o.currentTarget=z;try{u(o)}catch(H){tr(H)}o.currentTarget=null,u=w}}}}function St(t,e){var a=e[he];a===void 0&&(a=e[he]=new Set);var s=t+"__bubble";a.has(s)||(ig(e,t,2,!1),a.add(s))}function _c(t,e,a){var s=0;e&&(s|=4),ig(a,t,s,e)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Vc(t){if(!t[Hr]){t[Hr]=!0,Wd.forEach(function(a){a!=="selectionchange"&&(NS.has(a)||_c(a,!1,t),_c(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Hr]||(e[Hr]=!0,_c("selectionchange",!1,e))}}function ig(t,e,a,s){switch(zg(e)){case 2:var o=e2;break;case 8:o=n2;break;default:o=Jc}a=o.bind(null,e,a,t),o=void 0,!eu||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 kc(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 w=m.tag;if((w===3||w===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=mi(x),m===null)return;if(w=m.tag,w===5||w===6||w===26||w===27){s=u=m;continue t}x=x.parentNode}}s=s.return}uh(function(){var z=u,H=$o(a),P=[];t:{var V=Lh.get(t);if(V!==void 0){var U=Wl,nt=t;switch(t){case"keypress":if(Ql(a)===0)break t;case"keydown":case"keyup":U=x1;break;case"focusin":nt="focus",U=su;break;case"focusout":nt="blur",U=su;break;case"beforeblur":case"afterblur":U=su;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":U=dh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=o1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=w1;break;case zh:case _h:case Vh:U=f1;break;case kh:U=A1;break;case"scroll":case"scrollend":U=l1;break;case"wheel":U=N1;break;case"copy":case"cut":case"paste":U=h1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=mh;break;case"toggle":case"beforetoggle":U=j1}var ct=(e&4)!==0,Vt=!ct&&(t==="scroll"||t==="scrollend"),D=ct?V!==null?V+"Capture":null:V;ct=[];for(var N=z,O;N!==null;){var X=N;if(O=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||O===null||D===null||(X=Ss(N,D),X!=null&&ct.push(tl(N,X,O))),Vt)break;N=N.return}0<ct.length&&(V=new U(V,nt,null,a,H),P.push({event:V,listeners:ct}))}}if((e&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",V&&a!==Io&&(nt=a.relatedTarget||a.fromElement)&&(mi(nt)||nt[ft]))break t;if((U||V)&&(V=H.window===H?H:(V=H.ownerDocument)?V.defaultView||V.parentWindow:window,U?(nt=a.relatedTarget||a.toElement,U=z,nt=nt?mi(nt):null,nt!==null&&(Vt=f(nt),ct=nt.tag,nt!==Vt||ct!==5&&ct!==27&&ct!==6)&&(nt=null)):(U=null,nt=z),U!==nt)){if(ct=dh,X="onMouseLeave",D="onMouseEnter",N="mouse",(t==="pointerout"||t==="pointerover")&&(ct=mh,X="onPointerLeave",D="onPointerEnter",N="pointer"),Vt=U==null?V:xs(U),O=nt==null?V:xs(nt),V=new ct(X,N+"leave",U,a,H),V.target=Vt,V.relatedTarget=O,X=null,mi(H)===z&&(ct=new ct(D,N+"enter",nt,a,H),ct.target=O,ct.relatedTarget=Vt,X=ct),Vt=X,U&&nt)e:{for(ct=MS,D=U,N=nt,O=0,X=D;X;X=ct(X))O++;X=0;for(var ot=N;ot;ot=ct(ot))X++;for(;0<O-X;)D=ct(D),O--;for(;0<X-O;)N=ct(N),X--;for(;O--;){if(D===N||N!==null&&D===N.alternate){ct=D;break e}D=ct(D),N=ct(N)}ct=null}else ct=null;U!==null&&sg(P,V,U,ct,!1),nt!==null&&Vt!==null&&sg(P,Vt,nt,ct,!0)}}t:{if(V=z?xs(z):window,U=V.nodeName&&V.nodeName.toLowerCase(),U==="select"||U==="input"&&V.type==="file")var Mt=Th;else if(xh(V))if(wh)Mt=B1;else{Mt=L1;var lt=k1}else U=V.nodeName,!U||U.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?z&&Wo(z.elementType)&&(Mt=Th):Mt=U1;if(Mt&&(Mt=Mt(t,z))){Sh(P,Mt,a,H);break t}lt&<(t,V,z),t==="focusout"&&z&&V.type==="number"&&z.memoizedProps.value!=null&&Jo(V,"number",V.value)}switch(lt=z?xs(z):window,t){case"focusin":(xh(lt)||lt.contentEditable==="true")&&(wi=lt,fu=z,js=null);break;case"focusout":js=fu=wi=null;break;case"mousedown":du=!0;break;case"contextmenu":case"mouseup":case"dragend":du=!1,Rh(P,a,H);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":Rh(P,a,H)}var vt;if(ru)t:{switch(t){case"compositionstart":var wt="onCompositionStart";break t;case"compositionend":wt="onCompositionEnd";break t;case"compositionupdate":wt="onCompositionUpdate";break t}wt=void 0}else Ti?vh(t,a)&&(wt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(wt="onCompositionStart");wt&&(ph&&a.locale!=="ko"&&(Ti||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Ti&&(vt=ch()):(Wn=H,nu="value"in Wn?Wn.value:Wn.textContent,Ti=!0)),lt=Gr(z,wt),0<lt.length&&(wt=new hh(wt,t,null,a,H),P.push({event:wt,listeners:lt}),vt?wt.data=vt:(vt=bh(a),vt!==null&&(wt.data=vt)))),(vt=R1?O1(t,a):z1(t,a))&&(wt=Gr(z,"onBeforeInput"),0<wt.length&&(lt=new hh("onBeforeInput","beforeinput",null,a,H),P.push({event:lt,listeners:wt}),lt.data=vt)),ES(P,t,z,a,H)}ag(P,e)})}function tl(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Gr(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 MS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function sg(t,e,a,s,o){for(var u=e._reactName,m=[];a!==null&&a!==s;){var x=a,w=x.alternate,z=x.stateNode;if(x=x.tag,w!==null&&w===s)break;x!==5&&x!==26&&x!==27||z===null||(w=z,o?(z=Ss(a,u),z!=null&&m.unshift(tl(a,z,w))):o||(z=Ss(a,u),z!=null&&m.push(tl(a,z,w)))),a=a.return}m.length!==0&&t.push({event:e,listeners:m})}var jS=/\r\n?/g,DS=/\u0000|\uFFFD/g;function lg(t){return(typeof t=="string"?t:""+t).replace(jS,`
|
|
9
|
+
`).replace(DS,"")}function rg(t,e){return e=lg(e),lg(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":Pl(t,"class",s);break;case"tabIndex":Pl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Pl(t,a,s);break;case"style":rh(t,s,u);break;case"data":if(e!=="object"){Pl(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=Zl(""+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=Zl(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=Nn);break;case"onScroll":s!=null&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("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=Zl(""+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":St("beforetoggle",t),St("toggle",t),Xl(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":Xl(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=i1.get(a)||a,Xl(t,a,s))}}function Lc(t,e,a,s,o,u){switch(a){case"style":rh(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&&St("scroll",t);break;case"onScrollEnd":s!=null&&St("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Id.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[q]||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,""):Xl(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":St("error",t),St("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":St("invalid",t);var x=u=m=o=null,w=null,z=null;for(s in a)if(a.hasOwnProperty(s)){var H=a[s];if(H!=null)switch(s){case"name":o=H;break;case"type":m=H;break;case"checked":w=H;break;case"defaultChecked":z=H;break;case"value":u=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:_t(t,e,s,H,a,null)}}ah(t,u,x,w,z,m,o,!1);return;case"select":St("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":St("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)}sh(t,s,o,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(s=a[w],s!=null)&&(w==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":_t(t,e,w,s,a,null));return;case"dialog":St("beforetoggle",t),St("toggle",t),St("cancel",t),St("close",t);break;case"iframe":case"object":St("load",t);break;case"video":case"audio":for(s=0;s<$s.length;s++)St($s[s],t);break;case"image":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"embed":case"source":case"link":St("error",t),St("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(z in a)if(a.hasOwnProperty(z)&&(s=a[z],s!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:_t(t,e,z,s,a,null)}return;default:if(Wo(e)){for(H in a)a.hasOwnProperty(H)&&(s=a[H],s!==void 0&&Lc(t,e,H,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 RS(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,w=null,z=null,H=null;for(U in a){var P=a[U];if(a.hasOwnProperty(U)&&P!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":w=P;default:s.hasOwnProperty(U)||_t(t,e,U,null,s,P)}}for(var V in s){var U=s[V];if(P=a[V],s.hasOwnProperty(V)&&(U!=null||P!=null))switch(V){case"type":u=U;break;case"name":o=U;break;case"checked":z=U;break;case"defaultChecked":H=U;break;case"value":m=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,e));break;default:U!==P&&_t(t,e,V,U,s,P)}}Qo(t,m,x,w,z,H,u,o);return;case"select":U=m=x=V=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":U=w;default:s.hasOwnProperty(u)||_t(t,e,u,null,s,w)}for(o in s)if(u=s[o],w=a[o],s.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":V=u;break;case"defaultValue":x=u;break;case"multiple":m=u;default:u!==w&&_t(t,e,o,u,s,w)}e=x,a=m,s=U,V!=null?vi(t,!!a,V,!1):!!s!=!!a&&(e!=null?vi(t,!!a,e,!0):vi(t,!!a,a?[]:"",!1));return;case"textarea":U=V=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":V=o;break;case"defaultValue":U=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)}ih(t,V,U);return;case"option":for(var nt in a)V=a[nt],a.hasOwnProperty(nt)&&V!=null&&!s.hasOwnProperty(nt)&&(nt==="selected"?t.selected=!1:_t(t,e,nt,null,s,V));for(w in s)V=s[w],U=a[w],s.hasOwnProperty(w)&&V!==U&&(V!=null||U!=null)&&(w==="selected"?t.selected=V&&typeof V!="function"&&typeof V!="symbol":_t(t,e,w,V,s,U));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 ct in a)V=a[ct],a.hasOwnProperty(ct)&&V!=null&&!s.hasOwnProperty(ct)&&_t(t,e,ct,null,s,V);for(z in s)if(V=s[z],U=a[z],s.hasOwnProperty(z)&&V!==U&&(V!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:_t(t,e,z,V,s,U)}return;default:if(Wo(e)){for(var Vt in a)V=a[Vt],a.hasOwnProperty(Vt)&&V!==void 0&&!s.hasOwnProperty(Vt)&&Lc(t,e,Vt,void 0,s,V);for(H in s)V=s[H],U=a[H],!s.hasOwnProperty(H)||V===U||V===void 0&&U===void 0||Lc(t,e,H,V,s,U);return}}for(var D in a)V=a[D],a.hasOwnProperty(D)&&V!=null&&!s.hasOwnProperty(D)&&_t(t,e,D,null,s,V);for(P in s)V=s[P],U=a[P],!s.hasOwnProperty(P)||V===U||V==null&&U==null||_t(t,e,P,V,s,U)}function og(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OS(){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&&og(m)){for(m=0,x=o.responseEnd,s+=1;s<a.length;s++){var w=a[s],z=w.startTime;if(z>x)break;var H=w.transferSize,P=w.initiatorType;H&&og(P)&&(w=w.responseEnd,m+=H*(w<x?1:(x-z)/(w-z)))}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,Bc=null;function qr(t){return t.nodeType===9?t:t.ownerDocument}function ug(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 cg(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 Hc(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 Gc=null;function zS(){var t=window.event;return t&&t.type==="popstate"?t===Gc?!1:(Gc=t,!0):(Gc=null,!1)}var fg=typeof setTimeout=="function"?setTimeout:void 0,_S=typeof clearTimeout=="function"?clearTimeout:void 0,dg=typeof Promise=="function"?Promise:void 0,VS=typeof queueMicrotask=="function"?queueMicrotask:typeof dg<"u"?function(t){return dg.resolve(null).then(t).catch(kS)}:fg;function kS(t){setTimeout(function(){throw t})}function ma(t){return t==="head"}function hg(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 mg(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 qc(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":qc(a),Zo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function LS(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 US(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 pg(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 Yc(t){return t.data==="$?"||t.data==="$~"}function Xc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function BS(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 Pc=null;function gg(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 yg(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 vg(t,e,a){switch(e=qr(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]);Zo(t)}var Je=new Map,bg=new Set;function Yr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Yn=F.d;F.d={f:HS,r:GS,D:qS,C:YS,L:XS,m:PS,X:ZS,S:KS,M:FS};function HS(){var t=Yn.f(),e=_r();return t||e}function GS(t){var e=pi(t);e!==null&&e.tag===5&&e.type==="form"?km(e):Yn.r(t)}var Zi=typeof document>"u"?null:document;function xg(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+'"]'),bg.has(o)||(bg.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 qS(t){Yn.D(t),xg("dns-prefetch",t,null)}function YS(t,e){Yn.C(t,e),xg("preconnect",t,e)}function XS(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 PS(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 KS(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 w=m=s.createElement("link");ue(w),ye(w,"link",t),w._p=new Promise(function(z,H){w.onload=z,w.onerror=H}),w.addEventListener("load",function(){x.loading|=1}),w.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Xr(m,e,s)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(u,m)}}}function ZS(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))&&Zc(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 FS(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))&&Zc(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 Sg(t,e,a,s){var o=(o=rt.current)?Yr(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||QS(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 Tg(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function QS(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 wg(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),Xr(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=Tg(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,w){m.onload=x,m.onerror=w}),ye(u,"link",s),e.state.loading|=4,Xr(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),Zc(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,Xr(s,a.precedence,t));return e.instance}function Xr(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 Zc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Pr=null;function Eg(t,e,a){if(Pr===null){var s=new Map,o=Pr=new Map;o.set(a,s)}else o=Pr,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 Ag(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function JS(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 Cg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function WS(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=Tg(s),(o=Je.get(o))&&Kc(s,o),u=u.createElement("link"),ue(u);var m=u;m._p=new Promise(function(x,w){m.onload=x,m.onerror=w}),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 Fc=0;function IS(t,e){return t.stylesheets&&t.count===0&&Fr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Fr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Fc===0&&(Fc=62500*OS());var o=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Fr(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Fc?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)Fr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zr=null;function Fr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zr=new Map,e.forEach($S,t),Zr=null,Kr.call(t))}function $S(t,e){if(!(e.state.loading&4)){var a=Zr.get(t);if(a)var s=a.get(null);else{a=new Map,Zr.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:k,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function t2(t,e,a,s,o,u,m,x,w){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=w,this.incompleteTransitions=new Map}function Ng(t,e,a,s,o,u,m,x,w,z,H,P){return t=new t2(t,e,a,m,w,z,H,P,x),e=1,u===!0&&(e|=24),u=_e(3,null,null,e),t.current=u,u.stateNode=t,e=Nu(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:s,isDehydrated:a,cache:e},Ru(u),t}function Mg(t){return t?(t=Ci,t):Ci}function jg(t,e,a,s,o,u){o=Mg(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),ks(a,t,e))}function Dg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Qc(t,e){Dg(t,e),(t=t.alternate)&&Dg(t,e)}function Rg(t){if(t.tag===13||t.tag===31){var e=Ua(t,67108864);e!==null&&Oe(e,t,67108864),Qc(t,67108864)}}function Og(t){if(t.tag===13||t.tag===31){var e=Be();e=en(e);var a=Ua(t,e);a!==null&&Oe(a,t,e),Qc(t,e)}}var Qr=!0;function e2(t,e,a,s){var o=_.T;_.T=null;var u=F.p;try{F.p=2,Jc(t,e,a,s)}finally{F.p=u,_.T=o}}function n2(t,e,a,s){var o=_.T;_.T=null;var u=F.p;try{F.p=8,Jc(t,e,a,s)}finally{F.p=u,_.T=o}}function Jc(t,e,a,s){if(Qr){var o=Wc(s);if(o===null)kc(t,e,s,Jr,a),_g(t,s);else if(i2(o,t,e,a,s))s.stopPropagation();else if(_g(t,s),e&4&&-1<a2.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 w=1<<31-Xt(m);x.entanglements[1]|=w,m&=~w}yn(u),(Dt&6)===0&&(Or=It()+500,Is(0))}}break;case 31:case 13:x=Ua(u,2),x!==null&&Oe(x,u,2),_r(),Qc(u,2)}if(u=Wc(s),u===null&&kc(t,e,s,Jr,a),u===o)break;o=u}o!==null&&s.stopPropagation()}else kc(t,e,s,null,a)}}function Wc(t){return t=$o(t),Ic(t)}var Jr=null;function Ic(t){if(Jr=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 Jr=t,null}function zg(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(Po()){case ri:return 2;case Vl:return 8;case Da:case oi:return 32;case Ra:return 268435456;default:return 32}default:return 32}}var $c=!1,pa=null,ga=null,ya=null,sl=new Map,ll=new Map,va=[],a2="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 _g(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&&Rg(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function i2(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 Vg(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,ql(t.priority,function(){Og(a)});return}}else if(e===31){if(e=h(a),e!==null){t.blockedOn=e,ql(t.priority,function(){Og(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 Wr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Wc(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Io=s,a.target.dispatchEvent(s),Io=null}else return e=pi(a),e!==null&&Rg(e),t.blockedOn=a,!1;e.shift()}return!0}function kg(t,e,a){Wr(t)&&a.delete(e)}function s2(){$c=!1,pa!==null&&Wr(pa)&&(pa=null),ga!==null&&Wr(ga)&&(ga=null),ya!==null&&Wr(ya)&&(ya=null),sl.forEach(kg),ll.forEach(kg)}function Ir(t,e){t.blockedOn===e&&(t.blockedOn=null,$c||($c=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,s2)))}var $r=null;function Lg(t){$r!==t&&($r=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$r===t&&($r=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(Ic(s||a)===null)continue;break}var u=pi(a);u!==null&&(t.splice(e,3),e-=3,Wu(u,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function Ji(t){function e(w){return Ir(w,t)}pa!==null&&Ir(pa,t),ga!==null&&Ir(ga,t),ya!==null&&Ir(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);)Vg(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[q]||null;if(typeof u=="function")m||Lg(a);else if(m){var x=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[q]||null)x=m.formAction;else if(Ic(o)!==null)continue}else x=m.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),Lg(a)}}}function Ug(){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 tf(t){this._internalRoot=t}to.prototype.render=tf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,s=Be();jg(a,s,t,e,null,null)},to.prototype.unmount=tf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;jg(t.current,2,null,t,null,null),_r(),e[ft]=null}};function to(t){this._internalRoot=t}to.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&&Vg(t)}};var Bg=i.version;if(Bg!=="19.2.4")throw Error(r(527,Bg,"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=g(e),t=t!==null?v(t):null,t=t===null?null:t.stateNode,t};var l2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eo.isDisabled&&eo.supportsFiber)try{Zn=eo.inject(l2),Kt=eo}catch{}}return ul.createRoot=function(t,e){if(!c(t))throw Error(r(299));var a=!1,s="",o=Km,u=Zm,m=Fm;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=Ng(t,1,!1,null,null,a,s,null,o,u,m,Ug),t[ft]=e.current,Vc(t),new tf(e)},ul.hydrateRoot=function(t,e,a){if(!c(t))throw Error(r(299));var s=!1,o="",u=Km,m=Zm,x=Fm,w=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&&(w=a.formState)),e=Ng(t,1,!0,e,a??null,s,o,w,u,m,x,Ug),e.context=Mg(null),a=e.current,s=Be(),s=en(s),o=aa(s),o.callback=null,ia(a,o,s),a=s,e.current.lanes=a,Oa(e,a),yn(e),t[ft]=e.current,Vc(t),new to(e)},ul.version="19.2.4",ul}var Qg;function g2(){if(Qg)return af.exports;Qg=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(),af.exports=p2(),af.exports}var y2=g2();const v2=fd(y2);class b2{ws=null;handlers=new Map;reconnectTimer=null;url;constructor(i){const l=location.protocol==="https:"?"wss:":"ws:",r=location.host;this.url=i??`${l}//${r}/ws`}connect(){this.ws=new WebSocket(this.url),this.ws.onmessage=i=>{const l=JSON.parse(i.data);this.handlers.get(l.type)?.forEach(c=>c(l.data))},this.ws.onclose=()=>{this.reconnectTimer=setTimeout(()=>this.connect(),2e3)},this.ws.onerror=()=>this.ws?.close()}disconnect(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.ws?.close(),this.ws=null}on(i,l){return this.handlers.has(i)||this.handlers.set(i,new Set),this.handlers.get(i).add(l),()=>this.handlers.get(i)?.delete(l)}send(i,l){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:i,data:l}))}get connected(){return this.ws?.readyState===WebSocket.OPEN}}function x2(){const n=S.useRef(null),[i,l]=S.useState(!1);return S.useEffect(()=>{const r=new b2;n.current=r,r.connect();const c=setInterval(()=>{l(r.connected)},1e3);return()=>{clearInterval(c),r.disconnect()}},[]),{ws:n.current,connected:i}}class S2 extends S.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}const qv=(...n)=>n.filter((i,l,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===l).join(" ").trim();const T2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const w2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,r)=>r?r.toUpperCase():l.toLowerCase());const Jg=n=>{const i=w2(n);return i.charAt(0).toUpperCase()+i.slice(1)};var E2={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 A2=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const C2=S.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...h},y)=>S.createElement("svg",{ref:y,...E2,width:i,height:i,stroke:n,strokeWidth:r?Number(l)*24/Number(i):l,className:qv("lucide",c),...!f&&!A2(h)&&{"aria-hidden":"true"},...h},[...d.map(([g,v])=>S.createElement(g,v)),...Array.isArray(f)?f:[f]]));const Lt=(n,i)=>{const l=S.forwardRef(({className:r,...c},f)=>S.createElement(C2,{ref:f,iconNode:i,className:qv(`lucide-${T2(Jg(n))}`,`lucide-${n}`,r),...c}));return l.displayName=Jg(n),l};const N2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],vn=Lt("arrow-right",N2);const M2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Yv=Lt("arrow-up-right",M2);const j2=[["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"}]],D2=Lt("bell",j2);const R2=[["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"}]],O2=Lt("book-open",R2);const z2=[["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"}]],_2=Lt("brain",z2);const V2=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],k2=Lt("camera",V2);const L2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cl=Lt("check",L2);const U2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Al=Lt("chevron-down",U2);const B2=[["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"}]],H2=Lt("clipboard-paste",B2);const G2=[["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"}]],q2=Lt("ellipsis",G2);const Y2=[["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"}]],X2=Lt("external-link",Y2);const P2=[["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"}]],Xv=Lt("file-text",P2);const K2=[["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"}]],Z2=Lt("layout-dashboard",K2);const F2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wi=Lt("loader-circle",F2);const Q2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],J2=Lt("menu",Q2);const W2=[["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"}]],I2=Lt("message-square",W2);const $2=[["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"}]],kf=Lt("mic",$2);const tT=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],eT=Lt("paperclip",tT);const nT=[["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"}]],aT=Lt("refresh-cw",nT);const iT=[["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"}]],sT=Lt("scroll-text",iT);const lT=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],rT=Lt("send-horizontal",lT);const oT=[["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"}]],Pv=Lt("settings",oT);const uT=[["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"}]],cT=Lt("sliders-horizontal",uT);const fT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],dT=Lt("square",fT);const hT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],mT=Lt("trash-2",hT);const pT=[["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"}]],gT=Lt("wand-sparkles",pT);const yT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kv=Lt("x",yT),vT=[{label:"HOME",items:[{label:"Overview",icon:Z2,href:"#",active:!0},{label:"Conversations",icon:I2,href:"#"},{label:"Models",icon:_2,href:"#"},{label:"Knowledge",icon:O2,href:"#"}]},{label:"SYSTEM",items:[{label:"Logs",icon:sT,href:"#"},{label:"Settings",icon:Pv,href:"#"}]}],bT=[{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]}],xT=["M","T","W","T","F","S","S"],Wg=["#2a2a2a","#1e3a5f","#2c5a8f","#3578bf","#3C8FFF"],ST=[{label:"< 10",level:1},{label:"10–50",level:2},{label:"> 50",level:3},{label:"100+",level:4},{label:"None",level:0}];function Zv(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=Zv(n[i]))&&(r&&(r+=" "),r+=l)}else for(l in n)n[l]&&(r&&(r+=" "),r+=l);return r}function Fv(){for(var n,i,l=0,r="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=Zv(n))&&(r&&(r+=" "),r+=i);return r}const TT=(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},wT=(n,i)=>({classGroupId:n,validator:i}),Qv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),wo="-",Ig=[],ET="arbitrary..",AT=n=>{const i=NT(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return CT(d);const h=d.split(wo),y=h[0]===""&&h.length>1?1:0;return Jv(h,y,i)},getConflictingClassGroupIds:(d,h)=>{if(h){const y=r[d],g=l[d];return y?g?TT(g,y):y:g||Ig}return l[d]||Ig}}},Jv=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const g=Jv(n,i+1,f);if(g)return g}const d=l.validators;if(d===null)return;const h=i===0?n.join(wo):n.slice(i).join(wo),y=d.length;for(let g=0;g<y;g++){const v=d[g];if(v.validator(h))return v.classGroupId}},CT=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?ET+r:void 0})(),NT=n=>{const{theme:i,classGroups:l}=n;return MT(l,i)},MT=(n,i)=>{const l=Qv();for(const r in n){const c=n[r];dd(c,l,r,i)}return l},dd=(n,i,l,r)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];jT(d,i,l,r)}},jT=(n,i,l,r)=>{if(typeof n=="string"){DT(n,i,l);return}if(typeof n=="function"){RT(n,i,l,r);return}OT(n,i,l,r)},DT=(n,i,l)=>{const r=n===""?i:Wv(i,n);r.classGroupId=l},RT=(n,i,l,r)=>{if(zT(n)){dd(n(r),i,l,r);return}i.validators===null&&(i.validators=[]),i.validators.push(wT(l,n))},OT=(n,i,l,r)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[h,y]=c[d];dd(y,Wv(i,h),l,r)}},Wv=(n,i)=>{let l=n;const r=i.split(wo),c=r.length;for(let f=0;f<c;f++){const d=r[f];let h=l.nextPart.get(d);h||(h=Qv(),l.nextPart.set(d,h)),l=h}return l},zT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,_T=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)}}},Lf="!",$g=":",VT=[],ty=(n,i,l,r,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:r,isExternal:c}),kT=n=>{const{prefix:i,experimentalParseClassName:l}=n;let r=c=>{const f=[];let d=0,h=0,y=0,g;const v=c.length;for(let C=0;C<v;C++){const M=c[C];if(d===0&&h===0){if(M===$g){f.push(c.slice(y,C)),y=C+1;continue}if(M==="/"){g=C;continue}}M==="["?d++:M==="]"?d--:M==="("?h++:M===")"&&h--}const b=f.length===0?c:c.slice(y);let T=b,E=!1;b.endsWith(Lf)?(T=b.slice(0,-1),E=!0):b.startsWith(Lf)&&(T=b.slice(1),E=!0);const j=g&&g>y?g-y:void 0;return ty(f,E,T,j)};if(i){const c=i+$g,f=r;r=d=>d.startsWith(c)?f(d.slice(c.length)):ty(VT,!1,d,void 0,!0)}if(l){const c=r;r=f=>l({className:f,parseClassName:c})}return r},LT=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]==="[",y=i.has(d);h||y?(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}},UT=n=>({cache:_T(n.cacheSize),parseClassName:kT(n),sortModifiers:LT(n),...AT(n)}),BT=/\s+/,HT=(n,i)=>{const{parseClassName:l,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],h=n.trim().split(BT);let y="";for(let g=h.length-1;g>=0;g-=1){const v=h[g],{isExternal:b,modifiers:T,hasImportantModifier:E,baseClassName:j,maybePostfixModifierPosition:C}=l(v);if(b){y=v+(y.length>0?" "+y:y);continue}let M=!!C,R=r(M?j.substring(0,C):j);if(!R){if(!M){y=v+(y.length>0?" "+y:y);continue}if(R=r(j),!R){y=v+(y.length>0?" "+y:y);continue}M=!1}const G=T.length===0?"":T.length===1?T[0]:f(T).join(":"),k=E?G+Lf:G,B=k+R;if(d.indexOf(B)>-1)continue;d.push(B);const K=c(R,M);for(let W=0;W<K.length;++W){const Z=K[W];d.push(k+Z)}y=v+(y.length>0?" "+y:y)}return y},GT=(...n)=>{let i=0,l,r,c="";for(;i<n.length;)(l=n[i++])&&(r=Iv(l))&&(c&&(c+=" "),c+=r);return c},Iv=n=>{if(typeof n=="string")return n;let i,l="";for(let r=0;r<n.length;r++)n[r]&&(i=Iv(n[r]))&&(l&&(l+=" "),l+=i);return l},qT=(n,...i)=>{let l,r,c,f;const d=y=>{const g=i.reduce((v,b)=>b(v),n());return l=UT(g),r=l.cache.get,c=l.cache.set,f=h,h(y)},h=y=>{const g=r(y);if(g)return g;const v=HT(y,l);return c(y,v),v};return f=d,(...y)=>f(GT(...y))},YT=[],le=n=>{const i=l=>l[n]||YT;return i.isThemeGetter=!0,i},$v=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,t0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,PT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KT=/\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$/,ZT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,QT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xa=n=>XT.test(n),bt=n=>!!n&&!Number.isNaN(Number(n)),Sa=n=>!!n&&Number.isInteger(Number(n)),of=n=>n.endsWith("%")&&bt(n.slice(0,-1)),Xn=n=>PT.test(n),e0=()=>!0,JT=n=>KT.test(n)&&!ZT.test(n),hd=()=>!1,WT=n=>FT.test(n),IT=n=>QT.test(n),$T=n=>!at(n)&&!st(n),tw=n=>Na(n,i0,hd),at=n=>$v.test(n),Wa=n=>Na(n,s0,JT),ey=n=>Na(n,ow,bt),ew=n=>Na(n,r0,e0),nw=n=>Na(n,l0,hd),ny=n=>Na(n,n0,hd),aw=n=>Na(n,a0,IT),no=n=>Na(n,o0,WT),st=n=>t0.test(n),fl=n=>si(n,s0),iw=n=>si(n,l0),ay=n=>si(n,n0),sw=n=>si(n,i0),lw=n=>si(n,a0),ao=n=>si(n,o0,!0),rw=n=>si(n,r0,!0),Na=(n,i,l)=>{const r=$v.exec(n);return r?r[1]?i(r[1]):l(r[2]):!1},si=(n,i,l=!1)=>{const r=t0.exec(n);return r?r[1]?i(r[1]):l:!1},n0=n=>n==="position"||n==="percentage",a0=n=>n==="image"||n==="url",i0=n=>n==="length"||n==="size"||n==="bg-size",s0=n=>n==="length",ow=n=>n==="number",l0=n=>n==="family-name",r0=n=>n==="number"||n==="weight",o0=n=>n==="shadow",uw=()=>{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"),y=le("spacing"),g=le("radius"),v=le("shadow"),b=le("inset-shadow"),T=le("text-shadow"),E=le("drop-shadow"),j=le("blur"),C=le("perspective"),M=le("aspect"),R=le("ease"),G=le("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...B(),st,at],W=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],L=()=>[st,at,y],tt=()=>[xa,"full","auto",...L()],dt=()=>[Sa,"none","subgrid",st,at],ut=()=>["auto",{span:["full",Sa,st,at]},Sa,st,at],Et=()=>[Sa,"auto",st,at],Ct=()=>["auto","min","max","fr",st,at],Gt=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Nt=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["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()],mt=()=>[xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],Q=()=>[n,st,at],A=()=>[...B(),ay,ny,{position:[st,at]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",sw,tw,{size:[st,at]}],et=()=>[of,fl,Wa],I=()=>["","none","full",g,st,at],rt=()=>["",bt,fl,Wa],yt=()=>["solid","dashed","dotted","double"],qt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ht=()=>[bt,of,ay,ny],oe=()=>["","none",j,st,at],He=()=>["none",bt,st,at],de=()=>["none",bt,st,at],fn=()=>[bt,st,at],we=()=>[xa,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[e0],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[$T],"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",bt],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xa,at,st,M]}],container:["container"],columns:[{columns:[bt,at,st,h]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:K()}],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:[bt,xa,"auto","initial","none",at]}],grow:[{grow:["",bt,st,at]}],shrink:[{shrink:["",bt,st,at]}],order:[{order:[Sa,"first","last","none",st,at]}],"grid-cols":[{"grid-cols":dt()}],"col-start-end":[{col:ut()}],"col-start":[{"col-start":Et()}],"col-end":[{"col-end":Et()}],"grid-rows":[{"grid-rows":dt()}],"row-start-end":[{row:ut()}],"row-start":[{"row-start":Et()}],"row-end":[{"row-end":Et()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ct()}],"auto-rows":[{"auto-rows":Ct()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Gt(),"normal"]}],"justify-items":[{"justify-items":[...Nt(),"normal"]}],"justify-self":[{"justify-self":["auto",...Nt()]}],"align-content":[{content:["normal",...Gt()]}],"align-items":[{items:[...Nt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Nt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Gt()}],"place-items":[{"place-items":[...Nt(),"baseline"]}],"place-self":[{"place-self":["auto",...Nt()]}],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:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"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",...mt()]}],"min-block-size":[{"min-block":["auto",...mt()]}],"max-block-size":[{"max-block":["none",...mt()]}],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,rw,ew]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",of,at]}],"font-family":[{font:[iw,nw,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":[bt,"none",st,ey]}],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:[...yt(),"wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",st,Wa]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[bt,"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:A()}],"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]},lw,aw]}],"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:[...yt(),"hidden","none"]}],"divide-style":[{divide:[...yt(),"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:[...yt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[bt,st,at]}],"outline-w":[{outline:["",bt,fl,Wa]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",v,ao,no]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",b,ao,no]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:rt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[bt,Wa]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":rt()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",T,ao,no]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[bt,st,at]}],"mix-blend":[{"mix-blend":[...qt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qt()}],"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":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ht()}],"mask-image-linear-to-pos":[{"mask-linear-to":ht()}],"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":ht()}],"mask-image-t-to-pos":[{"mask-t-to":ht()}],"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":ht()}],"mask-image-r-to-pos":[{"mask-r-to":ht()}],"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":ht()}],"mask-image-b-to-pos":[{"mask-b-to":ht()}],"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":ht()}],"mask-image-l-to-pos":[{"mask-l-to":ht()}],"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":ht()}],"mask-image-x-to-pos":[{"mask-x-to":ht()}],"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":ht()}],"mask-image-y-to-pos":[{"mask-y-to":ht()}],"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":ht()}],"mask-image-radial-to-pos":[{"mask-radial-to":ht()}],"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":B()}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ht()}],"mask-image-conic-to-pos":[{"mask-conic-to":ht()}],"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:A()}],"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:[bt,st,at]}],contrast:[{contrast:[bt,st,at]}],"drop-shadow":[{"drop-shadow":["","none",E,ao,no]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",bt,st,at]}],"hue-rotate":[{"hue-rotate":[bt,st,at]}],invert:[{invert:["",bt,st,at]}],saturate:[{saturate:[bt,st,at]}],sepia:[{sepia:["",bt,st,at]}],"backdrop-filter":[{"backdrop-filter":["","none",st,at]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[bt,st,at]}],"backdrop-contrast":[{"backdrop-contrast":[bt,st,at]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,st,at]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,st,at]}],"backdrop-invert":[{"backdrop-invert":["",bt,st,at]}],"backdrop-opacity":[{"backdrop-opacity":[bt,st,at]}],"backdrop-saturate":[{"backdrop-saturate":[bt,st,at]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,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:[bt,"initial",st,at]}],ease:[{ease:["linear","initial",R,st,at]}],delay:[{delay:[bt,st,at]}],animate:[{animate:["none",G,st,at]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,st,at]}],"perspective-origin":[{"perspective-origin":K()}],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:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"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:[bt,fl,Wa,ey]}],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"]}},cw=qT(uw);function $e(...n){return cw(Fv(n))}function fw(){const n=new Date().getHours();return n<12?`Good
|
|
10
|
+
Morning!`:n<18?`Good
|
|
11
|
+
Afternoon!`:`Good
|
|
12
|
+
Evening!`}function u0(){return p.jsxs("aside",{className:"flex flex-col h-full w-72 p-6 pt-8",children:[p.jsxs("div",{className:"mb-10",children:[p.jsx("h1",{className:"text-5xl font-bold leading-[1.1] whitespace-pre-line",children:fw()}),p.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:"Your AI assistant dashboard"})]}),p.jsx("nav",{className:"flex-1 space-y-8",children:vT.map(n=>p.jsxs("div",{children:[p.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground mb-3 block",children:n.label}),p.jsx("div",{className:"space-y-1",children:n.items.map(i=>p.jsxs("a",{href:i.href,className:$e("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:[p.jsx(i.icon,{className:"h-4 w-4"}),i.label,i.active&&p.jsx(Al,{className:"h-4 w-4 ml-auto"})]},i.label))})]},n.label))})]})}const iy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,sy=Fv,dw=(n,i)=>l=>{var r;if(i?.variants==null)return sy(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(g=>{const v=l?.[g],b=f?.[g];if(v===null)return null;const T=iy(v)||iy(b);return c[g][T]}),h=l&&Object.entries(l).reduce((g,v)=>{let[b,T]=v;return T===void 0||(g[b]=T),g},{}),y=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((g,v)=>{let{class:b,className:T,...E}=v;return Object.entries(E).every(j=>{let[C,M]=j;return Array.isArray(M)?M.includes({...f,...h}[C]):{...f,...h}[C]===M})?[...g,b,T]:g},[]);return sy(n,d,y,l?.class,l?.className)};var c0=Gv();const hw=fd(c0);function ly(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function f0(...n){return i=>{let l=!1;const r=n.map(c=>{const f=ly(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():ly(n[c],null)}}}}function Tn(...n){return S.useCallback(f0(...n),n)}function Eo(n){const i=mw(n),l=S.forwardRef((r,c)=>{const{children:f,...d}=r,h=S.Children.toArray(f),y=h.find(gw);if(y){const g=y.props.children,v=h.map(b=>b===y?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:b);return p.jsx(i,{...d,ref:c,children:S.isValidElement(g)?S.cloneElement(g,void 0,v):null})}return p.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}function mw(n){const i=S.forwardRef((l,r)=>{const{children:c,...f}=l;if(S.isValidElement(c)){const d=vw(c),h=yw(f,c.props);return c.type!==S.Fragment&&(h.ref=r?f0(r,d):d),S.cloneElement(c,h)}return S.Children.count(c)>1?S.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var pw=Symbol("radix.slottable");function gw(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===pw}function yw(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 y=f(...h);return c(...h),y}:c&&(l[r]=c):r==="style"?l[r]={...c,...f}:r==="className"&&(l[r]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function vw(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 bw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fe=bw.reduce((n,i)=>{const l=Eo(`Primitive.${i}`),r=S.forwardRef((c,f)=>{const{asChild:d,...h}=c,y=d?l:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(y,{...h,ref:f})});return r.displayName=`Primitive.${i}`,{...n,[i]:r}},{});function xw(n,i){n&&c0.flushSync(()=>n.dispatchEvent(i))}function Sw(n,i){const l=S.createContext(i),r=f=>{const{children:d,...h}=f,y=S.useMemo(()=>h,Object.values(h));return p.jsx(l.Provider,{value:y,children:d})};r.displayName=n+"Provider";function c(f){const d=S.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 Cl(n,i=[]){let l=[];function r(f,d){const h=S.createContext(d),y=l.length;l=[...l,d];const g=b=>{const{scope:T,children:E,...j}=b,C=T?.[n]?.[y]||h,M=S.useMemo(()=>j,Object.values(j));return p.jsx(C.Provider,{value:M,children:E})};g.displayName=f+"Provider";function v(b,T){const E=T?.[n]?.[y]||h,j=S.useContext(E);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[g,v]}const c=()=>{const f=l.map(d=>S.createContext(d));return function(h){const y=h?.[n]||f;return S.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return c.scopeName=n,[r,Tw(c,...i)]}function Tw(...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:y,scopeName:g})=>{const b=y(f)[`__scope${g}`];return{...h,...b}},{});return S.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])}};return l.scopeName=i.scopeName,l}function ww(n){const i=n+"CollectionProvider",[l,r]=Cl(i),[c,f]=l(i,{collectionRef:{current:null},itemMap:new Map}),d=C=>{const{scope:M,children:R}=C,G=Pn.useRef(null),k=Pn.useRef(new Map).current;return p.jsx(c,{scope:M,itemMap:k,collectionRef:G,children:R})};d.displayName=i;const h=n+"CollectionSlot",y=Eo(h),g=Pn.forwardRef((C,M)=>{const{scope:R,children:G}=C,k=f(h,R),B=Tn(M,k.collectionRef);return p.jsx(y,{ref:B,children:G})});g.displayName=h;const v=n+"CollectionItemSlot",b="data-radix-collection-item",T=Eo(v),E=Pn.forwardRef((C,M)=>{const{scope:R,children:G,...k}=C,B=Pn.useRef(null),K=Tn(M,B),W=f(v,R);return Pn.useEffect(()=>(W.itemMap.set(B,{ref:B,...k}),()=>{W.itemMap.delete(B)})),p.jsx(T,{[b]:"",ref:K,children:G})});E.displayName=v;function j(C){const M=f(n+"CollectionConsumer",C);return Pn.useCallback(()=>{const G=M.collectionRef.current;if(!G)return[];const k=Array.from(G.querySelectorAll(`[${b}]`));return Array.from(M.itemMap.values()).sort((W,Z)=>k.indexOf(W.ref.current)-k.indexOf(Z.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:d,Slot:g,ItemSlot:E},j,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?S.useLayoutEffect:()=>{},Ew=Hv[" useInsertionEffect ".trim().toString()]||Aa;function md({prop:n,defaultProp:i,onChange:l=()=>{},caller:r}){const[c,f,d]=Aw({defaultProp:i,onChange:l}),h=n!==void 0,y=h?n:c;{const v=S.useRef(n!==void 0);S.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 g=S.useCallback(v=>{if(h){const b=Cw(v)?v(n):v;b!==n&&d.current?.(b)}else f(v)},[h,n,f,d]);return[y,g]}function Aw({defaultProp:n,onChange:i}){const[l,r]=S.useState(n),c=S.useRef(l),f=S.useRef(i);return Ew(()=>{f.current=i},[i]),S.useEffect(()=>{c.current!==l&&(f.current?.(l),c.current=l)},[l,c]),[l,r,f]}function Cw(n){return typeof n=="function"}function Nw(n,i){return S.useReducer((l,r)=>i[l][r]??l,n)}var Nl=n=>{const{present:i,children:l}=n,r=Mw(i),c=typeof l=="function"?l({present:r.isPresent}):S.Children.only(l),f=Tn(r.ref,jw(c));return typeof l=="function"||r.isPresent?S.cloneElement(c,{ref:f}):null};Nl.displayName="Presence";function Mw(n){const[i,l]=S.useState(),r=S.useRef(null),c=S.useRef(n),f=S.useRef("none"),d=n?"mounted":"unmounted",[h,y]=Nw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const g=io(r.current);f.current=h==="mounted"?g:"none"},[h]),Aa(()=>{const g=r.current,v=c.current;if(v!==n){const T=f.current,E=io(g);n?y("MOUNT"):E==="none"||g?.display==="none"?y("UNMOUNT"):y(v&&T!==E?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,y]),Aa(()=>{if(i){let g;const v=i.ownerDocument.defaultView??window,b=E=>{const C=io(r.current).includes(CSS.escape(E.animationName));if(E.target===i&&C&&(y("ANIMATION_END"),!c.current)){const M=i.style.animationFillMode;i.style.animationFillMode="forwards",g=v.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=M)})}},T=E=>{E.target===i&&(f.current=io(r.current))};return i.addEventListener("animationstart",T),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{v.clearTimeout(g),i.removeEventListener("animationstart",T),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else y("ANIMATION_END")},[i,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:S.useCallback(g=>{r.current=g?getComputedStyle(g):null,l(g)},[])}}function io(n){return n?.animationName||"none"}function jw(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 Dw=Hv[" useId ".trim().toString()]||(()=>{}),Rw=0;function ml(n){const[i,l]=S.useState(Dw());return Aa(()=>{l(r=>r??String(Rw++))},[n]),n||(i?`radix-${i}`:"")}var Ow=S.createContext(void 0);function d0(n){const i=S.useContext(Ow);return n||i||"ltr"}function ai(n){const i=S.useRef(n);return S.useEffect(()=>{i.current=n}),S.useMemo(()=>(...l)=>i.current?.(...l),[])}function zw(n,i=globalThis?.document){const l=ai(n);S.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 _w="DismissableLayer",Uf="dismissableLayer.update",Vw="dismissableLayer.pointerDownOutside",kw="dismissableLayer.focusOutside",ry,h0=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m0=S.forwardRef((n,i)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...y}=n,g=S.useContext(h0),[v,b]=S.useState(null),T=v?.ownerDocument??globalThis?.document,[,E]=S.useState({}),j=Tn(i,Z=>b(Z)),C=Array.from(g.layers),[M]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),R=C.indexOf(M),G=v?C.indexOf(v):-1,k=g.layersWithOutsidePointerEventsDisabled.size>0,B=G>=R,K=Bw(Z=>{const L=Z.target,tt=[...g.branches].some(dt=>dt.contains(L));!B||tt||(c?.(Z),d?.(Z),Z.defaultPrevented||h?.())},T),W=Hw(Z=>{const L=Z.target;[...g.branches].some(dt=>dt.contains(L))||(f?.(Z),d?.(Z),Z.defaultPrevented||h?.())},T);return zw(Z=>{G===g.layers.size-1&&(r?.(Z),!Z.defaultPrevented&&h&&(Z.preventDefault(),h()))},T),S.useEffect(()=>{if(v)return l&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(ry=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),oy(),()=>{l&&g.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=ry)}},[v,T,l,g]),S.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),oy())},[v,g]),S.useEffect(()=>{const Z=()=>E({});return document.addEventListener(Uf,Z),()=>document.removeEventListener(Uf,Z)},[]),p.jsx(fe.div,{...y,ref:j,style:{pointerEvents:k?B?"auto":"none":void 0,...n.style},onFocusCapture:be(n.onFocusCapture,W.onFocusCapture),onBlurCapture:be(n.onBlurCapture,W.onBlurCapture),onPointerDownCapture:be(n.onPointerDownCapture,K.onPointerDownCapture)})});m0.displayName=_w;var Lw="DismissableLayerBranch",Uw=S.forwardRef((n,i)=>{const l=S.useContext(h0),r=S.useRef(null),c=Tn(i,r);return S.useEffect(()=>{const f=r.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),p.jsx(fe.div,{...n,ref:c})});Uw.displayName=Lw;function Bw(n,i=globalThis?.document){const l=ai(n),r=S.useRef(!1),c=S.useRef(()=>{});return S.useEffect(()=>{const f=h=>{if(h.target&&!r.current){let y=function(){p0(Vw,l,g,{discrete:!0})};const g={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",c.current),c.current=y,i.addEventListener("click",c.current,{once:!0})):y()}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 Hw(n,i=globalThis?.document){const l=ai(n),r=S.useRef(!1);return S.useEffect(()=>{const c=f=>{f.target&&!r.current&&p0(kw,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 oy(){const n=new CustomEvent(Uf);document.dispatchEvent(n)}function p0(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?xw(c,f):c.dispatchEvent(f)}var uf="focusScope.autoFocusOnMount",cf="focusScope.autoFocusOnUnmount",uy={bubbles:!1,cancelable:!0},Gw="FocusScope",g0=S.forwardRef((n,i)=>{const{loop:l=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:f,...d}=n,[h,y]=S.useState(null),g=ai(c),v=ai(f),b=S.useRef(null),T=Tn(i,C=>y(C)),E=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let C=function(k){if(E.paused||!h)return;const B=k.target;h.contains(B)?b.current=B:Ta(b.current,{select:!0})},M=function(k){if(E.paused||!h)return;const B=k.relatedTarget;B!==null&&(h.contains(B)||Ta(b.current,{select:!0}))},R=function(k){if(document.activeElement===document.body)for(const K of k)K.removedNodes.length>0&&Ta(h)};document.addEventListener("focusin",C),document.addEventListener("focusout",M);const G=new MutationObserver(R);return h&&G.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",M),G.disconnect()}}},[r,h,E.paused]),S.useEffect(()=>{if(h){fy.add(E);const C=document.activeElement;if(!h.contains(C)){const R=new CustomEvent(uf,uy);h.addEventListener(uf,g),h.dispatchEvent(R),R.defaultPrevented||(qw(Zw(y0(h)),{select:!0}),document.activeElement===C&&Ta(h))}return()=>{h.removeEventListener(uf,g),setTimeout(()=>{const R=new CustomEvent(cf,uy);h.addEventListener(cf,v),h.dispatchEvent(R),R.defaultPrevented||Ta(C??document.body,{select:!0}),h.removeEventListener(cf,v),fy.remove(E)},0)}}},[h,g,v,E]);const j=S.useCallback(C=>{if(!l&&!r||E.paused)return;const M=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,R=document.activeElement;if(M&&R){const G=C.currentTarget,[k,B]=Yw(G);k&&B?!C.shiftKey&&R===B?(C.preventDefault(),l&&Ta(k,{select:!0})):C.shiftKey&&R===k&&(C.preventDefault(),l&&Ta(B,{select:!0})):R===G&&C.preventDefault()}},[l,r,E.paused]);return p.jsx(fe.div,{tabIndex:-1,...d,ref:T,onKeyDown:j})});g0.displayName=Gw;function qw(n,{select:i=!1}={}){const l=document.activeElement;for(const r of n)if(Ta(r,{select:i}),document.activeElement!==l)return}function Yw(n){const i=y0(n),l=cy(i,n),r=cy(i.reverse(),n);return[l,r]}function y0(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 cy(n,i){for(const l of n)if(!Xw(l,{upTo:i}))return l}function Xw(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 Pw(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&&Pw(n)&&i&&n.select()}}var fy=Kw();function Kw(){let n=[];return{add(i){const l=n[0];i!==l&&l?.pause(),n=dy(n,i),n.unshift(i)},remove(i){n=dy(n,i),n[0]?.resume()}}}function dy(n,i){const l=[...n],r=l.indexOf(i);return r!==-1&&l.splice(r,1),l}function Zw(n){return n.filter(i=>i.tagName!=="A")}var Fw="Portal",v0=S.forwardRef((n,i)=>{const{container:l,...r}=n,[c,f]=S.useState(!1);Aa(()=>f(!0),[]);const d=l||c&&globalThis?.document?.body;return d?hw.createPortal(p.jsx(fe.div,{...r,ref:i}),d):null});v0.displayName=Fw;var ff=0;function Qw(){S.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??hy()),document.body.insertAdjacentElement("beforeend",n[1]??hy()),ff++,()=>{ff===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),ff--}},[])}function hy(){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 b0(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 Jw(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 mo="right-scroll-bar-position",po="width-before-scroll-bar",Ww="with-scroll-bars-hidden",Iw="--removed-body-scroll-bar-size";function df(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function $w(n,i){var l=S.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 tE=typeof window<"u"?S.useLayoutEffect:S.useEffect,my=new WeakMap;function eE(n,i){var l=$w(null,function(r){return n.forEach(function(c){return df(c,r)})});return tE(function(){var r=my.get(l);if(r){var c=new Set(r),f=new Set(n),d=l.current;c.forEach(function(h){f.has(h)||df(h,null)}),f.forEach(function(h){c.has(h)||df(h,d)})}my.set(l,n)},[n]),l}function nE(n){return n}function aE(n,i){i===void 0&&(i=nE);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 y=function(){var v=d;d=[],v.forEach(f)},g=function(){return Promise.resolve().then(y)};g(),l={push:function(v){d.push(v),g()},filter:function(v){return d=d.filter(v),l}}}};return c}function iE(n){n===void 0&&(n={});var i=aE(null);return i.options=xn({async:!0,ssr:!1},n),i}var x0=function(n){var i=n.sideCar,l=b0(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 S.createElement(r,xn({},l))};x0.isSideCarExport=!0;function sE(n,i){return n.useMedium(i),x0}var S0=iE(),hf=function(){},Vo=S.forwardRef(function(n,i){var l=S.useRef(null),r=S.useState({onScrollCapture:hf,onWheelCapture:hf,onTouchMoveCapture:hf}),c=r[0],f=r[1],d=n.forwardProps,h=n.children,y=n.className,g=n.removeScrollBar,v=n.enabled,b=n.shards,T=n.sideCar,E=n.noRelative,j=n.noIsolation,C=n.inert,M=n.allowPinchZoom,R=n.as,G=R===void 0?"div":R,k=n.gapMode,B=b0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=T,W=eE([l,i]),Z=xn(xn({},B),c);return S.createElement(S.Fragment,null,v&&S.createElement(K,{sideCar:S0,removeScrollBar:g,shards:b,noRelative:E,noIsolation:j,inert:C,setCallbacks:f,allowPinchZoom:!!M,lockRef:l,gapMode:k}),d?S.cloneElement(S.Children.only(h),xn(xn({},Z),{ref:W})):S.createElement(G,xn({},Z,{className:y,ref:W}),h))});Vo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vo.classNames={fullWidth:po,zeroRight:mo};var lE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rE(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=lE();return i&&n.setAttribute("nonce",i),n}function oE(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function uE(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var cE=function(){var n=0,i=null;return{add:function(l){n==0&&(i=rE())&&(oE(i,l),uE(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},fE=function(){var n=cE();return function(i,l){S.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&l])}},T0=function(){var n=fE(),i=function(l){var r=l.styles,c=l.dynamic;return n(r,c),null};return i},dE={left:0,top:0,right:0,gap:0},mf=function(n){return parseInt(n||"",10)||0},hE=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[mf(l),mf(r),mf(c)]},mE=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return dE;var i=hE(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])}},pE=T0(),rs="data-scroll-locked",gE=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(Ww,` {
|
|
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(mo,` {
|
|
31
|
+
right: `).concat(h,"px ").concat(r,`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.`).concat(po,` {
|
|
35
|
+
margin-right: `).concat(h,"px ").concat(r,`;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.`).concat(mo," .").concat(mo,` {
|
|
39
|
+
right: 0 `).concat(r,`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.`).concat(po," .").concat(po,` {
|
|
43
|
+
margin-right: 0 `).concat(r,`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
body[`).concat(rs,`] {
|
|
47
|
+
`).concat(Iw,": ").concat(h,`px;
|
|
48
|
+
}
|
|
49
|
+
`)},py=function(){var n=parseInt(document.body.getAttribute(rs)||"0",10);return isFinite(n)?n:0},yE=function(){S.useEffect(function(){return document.body.setAttribute(rs,(py()+1).toString()),function(){var n=py()-1;n<=0?document.body.removeAttribute(rs):document.body.setAttribute(rs,n.toString())}},[])},vE=function(n){var i=n.noRelative,l=n.noImportant,r=n.gapMode,c=r===void 0?"margin":r;yE();var f=S.useMemo(function(){return mE(c)},[c]);return S.createElement(pE,{styles:gE(f,!i,c,l?"":"!important")})},Bf=!1;if(typeof window<"u")try{var so=Object.defineProperty({},"passive",{get:function(){return Bf=!0,!0}});window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch{Bf=!1}var Ii=Bf?{passive:!1}:!1,bE=function(n){return n.tagName==="TEXTAREA"},w0=function(n,i){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[i]!=="hidden"&&!(l.overflowY===l.overflowX&&!bE(n)&&l[i]==="visible")},xE=function(n){return w0(n,"overflowY")},SE=function(n){return w0(n,"overflowX")},gy=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=A0(n,r),d=f[1],h=f[2];if(d>h)return!0}r=r.parentNode}while(r&&r!==l.body);return!1},TE=function(n){var i=n.scrollTop,l=n.scrollHeight,r=n.clientHeight;return[i,l,r]},wE=function(n){var i=n.scrollLeft,l=n.scrollWidth,r=n.clientWidth;return[i,l,r]},E0=function(n,i){return n==="v"?xE(i):SE(i)},A0=function(n,i){return n==="v"?TE(i):wE(i)},EE=function(n,i){return n==="h"&&i==="rtl"?-1:1},AE=function(n,i,l,r,c){var f=EE(n,window.getComputedStyle(i).direction),d=f*r,h=l.target,y=i.contains(h),g=!1,v=d>0,b=0,T=0;do{if(!h)break;var E=A0(n,h),j=E[0],C=E[1],M=E[2],R=C-M-f*j;(j||R)&&E0(n,h)&&(b+=R,T+=j);var G=h.parentNode;h=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!y&&h!==document.body||y&&(i.contains(h)||i===h));return(v&&Math.abs(b)<1||!v&&Math.abs(T)<1)&&(g=!0),g},lo=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},yy=function(n){return[n.deltaX,n.deltaY]},vy=function(n){return n&&"current"in n?n.current:n},CE=function(n,i){return n[0]===i[0]&&n[1]===i[1]},NE=function(n){return`
|
|
50
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
51
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
52
|
+
`)},ME=0,$i=[];function jE(n){var i=S.useRef([]),l=S.useRef([0,0]),r=S.useRef(),c=S.useState(ME++)[0],f=S.useState(T0)[0],d=S.useRef(n);S.useEffect(function(){d.current=n},[n]),S.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var C=Jw([n.lockRef.current],(n.shards||[]).map(vy),!0).filter(Boolean);return C.forEach(function(M){return M.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),C.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=S.useCallback(function(C,M){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!d.current.allowPinchZoom;var R=lo(C),G=l.current,k="deltaX"in C?C.deltaX:G[0]-R[0],B="deltaY"in C?C.deltaY:G[1]-R[1],K,W=C.target,Z=Math.abs(k)>Math.abs(B)?"h":"v";if("touches"in C&&Z==="h"&&W.type==="range")return!1;var L=window.getSelection(),tt=L&&L.anchorNode,dt=tt?tt===W||tt.contains(W):!1;if(dt)return!1;var ut=gy(Z,W);if(!ut)return!0;if(ut?K=Z:(K=Z==="v"?"h":"v",ut=gy(Z,W)),!ut)return!1;if(!r.current&&"changedTouches"in C&&(k||B)&&(r.current=K),!K)return!0;var Et=r.current||K;return AE(Et,M,C,Et==="h"?k:B)},[]),y=S.useCallback(function(C){var M=C;if(!(!$i.length||$i[$i.length-1]!==f)){var R="deltaY"in M?yy(M):lo(M),G=i.current.filter(function(K){return K.name===M.type&&(K.target===M.target||M.target===K.shadowParent)&&CE(K.delta,R)})[0];if(G&&G.should){M.cancelable&&M.preventDefault();return}if(!G){var k=(d.current.shards||[]).map(vy).filter(Boolean).filter(function(K){return K.contains(M.target)}),B=k.length>0?h(M,k[0]):!d.current.noIsolation;B&&M.cancelable&&M.preventDefault()}}},[]),g=S.useCallback(function(C,M,R,G){var k={name:C,delta:M,target:R,should:G,shadowParent:DE(R)};i.current.push(k),setTimeout(function(){i.current=i.current.filter(function(B){return B!==k})},1)},[]),v=S.useCallback(function(C){l.current=lo(C),r.current=void 0},[]),b=S.useCallback(function(C){g(C.type,yy(C),C.target,h(C,n.lockRef.current))},[]),T=S.useCallback(function(C){g(C.type,lo(C),C.target,h(C,n.lockRef.current))},[]);S.useEffect(function(){return $i.push(f),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:T}),document.addEventListener("wheel",y,Ii),document.addEventListener("touchmove",y,Ii),document.addEventListener("touchstart",v,Ii),function(){$i=$i.filter(function(C){return C!==f}),document.removeEventListener("wheel",y,Ii),document.removeEventListener("touchmove",y,Ii),document.removeEventListener("touchstart",v,Ii)}},[]);var E=n.removeScrollBar,j=n.inert;return S.createElement(S.Fragment,null,j?S.createElement(f,{styles:NE(c)}):null,E?S.createElement(vE,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function DE(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const RE=sE(S0,jE);var C0=S.forwardRef(function(n,i){return S.createElement(Vo,xn({},n,{ref:i,sideCar:RE}))});C0.classNames=Vo.classNames;var OE=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},ts=new WeakMap,ro=new WeakMap,oo={},pf=0,N0=function(n){return n&&(n.host||N0(n.parentNode))},zE=function(n,i){return i.map(function(l){if(n.contains(l))return l;var r=N0(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})},_E=function(n,i,l,r){var c=zE(i,Array.isArray(n)?n:[n]);oo[l]||(oo[l]=new WeakMap);var f=oo[l],d=[],h=new Set,y=new Set(c),g=function(b){!b||h.has(b)||(h.add(b),g(b.parentNode))};c.forEach(g);var v=function(b){!b||y.has(b)||Array.prototype.forEach.call(b.children,function(T){if(h.has(T))v(T);else try{var E=T.getAttribute(r),j=E!==null&&E!=="false",C=(ts.get(T)||0)+1,M=(f.get(T)||0)+1;ts.set(T,C),f.set(T,M),d.push(T),C===1&&j&&ro.set(T,!0),M===1&&T.setAttribute(l,"true"),j||T.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",T,R)}})};return v(i),h.clear(),pf++,function(){d.forEach(function(b){var T=ts.get(b)-1,E=f.get(b)-1;ts.set(b,T),f.set(b,E),T||(ro.has(b)||b.removeAttribute(r),ro.delete(b)),E||b.removeAttribute(l)}),pf--,pf||(ts=new WeakMap,ts=new WeakMap,ro=new WeakMap,oo={})}},VE=function(n,i,l){l===void 0&&(l="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),c=OE(n);return c?(r.push.apply(r,Array.from(c.querySelectorAll("[aria-live], script"))),_E(r,c,l,"aria-hidden")):function(){return null}},ko="Dialog",[M0]=Cl(ko),[kE,cn]=M0(ko),j0=n=>{const{__scopeDialog:i,children:l,open:r,defaultOpen:c,onOpenChange:f,modal:d=!0}=n,h=S.useRef(null),y=S.useRef(null),[g,v]=md({prop:r,defaultProp:c??!1,onChange:f,caller:ko});return p.jsx(kE,{scope:i,triggerRef:h,contentRef:y,contentId:ml(),titleId:ml(),descriptionId:ml(),open:g,onOpenChange:v,onOpenToggle:S.useCallback(()=>v(b=>!b),[v]),modal:d,children:l})};j0.displayName=ko;var D0="DialogTrigger",LE=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(D0,l),f=Tn(i,c.triggerRef);return p.jsx(fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":yd(c.open),...r,ref:f,onClick:be(n.onClick,c.onOpenToggle)})});LE.displayName=D0;var pd="DialogPortal",[UE,R0]=M0(pd,{forceMount:void 0}),O0=n=>{const{__scopeDialog:i,forceMount:l,children:r,container:c}=n,f=cn(pd,i);return p.jsx(UE,{scope:i,forceMount:l,children:S.Children.map(r,d=>p.jsx(Nl,{present:l||f.open,children:p.jsx(v0,{asChild:!0,container:c,children:d})}))})};O0.displayName=pd;var Ao="DialogOverlay",z0=S.forwardRef((n,i)=>{const l=R0(Ao,n.__scopeDialog),{forceMount:r=l.forceMount,...c}=n,f=cn(Ao,n.__scopeDialog);return f.modal?p.jsx(Nl,{present:r||f.open,children:p.jsx(HE,{...c,ref:i})}):null});z0.displayName=Ao;var BE=Eo("DialogOverlay.RemoveScroll"),HE=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(Ao,l);return p.jsx(C0,{as:BE,allowPinchZoom:!0,shards:[c.contentRef],children:p.jsx(fe.div,{"data-state":yd(c.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),ii="DialogContent",_0=S.forwardRef((n,i)=>{const l=R0(ii,n.__scopeDialog),{forceMount:r=l.forceMount,...c}=n,f=cn(ii,n.__scopeDialog);return p.jsx(Nl,{present:r||f.open,children:f.modal?p.jsx(GE,{...c,ref:i}):p.jsx(qE,{...c,ref:i})})});_0.displayName=ii;var GE=S.forwardRef((n,i)=>{const l=cn(ii,n.__scopeDialog),r=S.useRef(null),c=Tn(i,l.contentRef,r);return S.useEffect(()=>{const f=r.current;if(f)return VE(f)},[]),p.jsx(V0,{...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())})}),qE=S.forwardRef((n,i)=>{const l=cn(ii,n.__scopeDialog),r=S.useRef(!1),c=S.useRef(!1);return p.jsx(V0,{...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()}})}),V0=S.forwardRef((n,i)=>{const{__scopeDialog:l,trapFocus:r,onOpenAutoFocus:c,onCloseAutoFocus:f,...d}=n,h=cn(ii,l),y=S.useRef(null),g=Tn(i,y);return Qw(),p.jsxs(p.Fragment,{children:[p.jsx(g0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:c,onUnmountAutoFocus:f,children:p.jsx(m0,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":yd(h.open),...d,ref:g,onDismiss:()=>h.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(YE,{titleId:h.titleId}),p.jsx(PE,{contentRef:y,descriptionId:h.descriptionId})]})]})}),gd="DialogTitle",k0=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(gd,l);return p.jsx(fe.h2,{id:c.titleId,...r,ref:i})});k0.displayName=gd;var L0="DialogDescription",U0=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(L0,l);return p.jsx(fe.p,{id:c.descriptionId,...r,ref:i})});U0.displayName=L0;var B0="DialogClose",H0=S.forwardRef((n,i)=>{const{__scopeDialog:l,...r}=n,c=cn(B0,l);return p.jsx(fe.button,{type:"button",...r,ref:i,onClick:be(n.onClick,()=>c.onOpenChange(!1))})});H0.displayName=B0;function yd(n){return n?"open":"closed"}var G0="DialogTitleWarning",[Ij,q0]=Sw(G0,{contentName:ii,titleName:gd,docsSlug:"dialog"}),YE=({titleId:n})=>{const i=q0(G0),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 S.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},XE="DialogDescriptionWarning",PE=({contentRef:n,descriptionId:i})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q0(XE).contentName}}.`;return S.useEffect(()=>{const c=n.current?.getAttribute("aria-describedby");i&&c&&(document.getElementById(i)||console.warn(r))},[r,n,i]),null},KE=j0,ZE=O0,FE=z0,QE=_0,JE=k0,WE=U0,IE=H0,gf={exports:{}},yf={};var by;function $E(){if(by)return yf;by=1;var n=_o();function i(b,T){return b===T&&(b!==0||1/b===1/T)||b!==b&&T!==T}var l=typeof Object.is=="function"?Object.is:i,r=n.useState,c=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function h(b,T){var E=T(),j=r({inst:{value:E,getSnapshot:T}}),C=j[0].inst,M=j[1];return f(function(){C.value=E,C.getSnapshot=T,y(C)&&M({inst:C})},[b,E,T]),c(function(){return y(C)&&M({inst:C}),b(function(){y(C)&&M({inst:C})})},[b]),d(E),E}function y(b){var T=b.getSnapshot;b=b.value;try{var E=T();return!l(b,E)}catch{return!0}}function g(b,T){return T()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:h;return yf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,yf}var xy;function tA(){return xy||(xy=1,gf.exports=$E()),gf.exports}var eA=tA();function nA(){return eA.useSyncExternalStore(aA,()=>!0,()=>!1)}function aA(){return()=>{}}var vd="Avatar",[iA]=Cl(vd),[sA,Y0]=iA(vd),X0=S.forwardRef((n,i)=>{const{__scopeAvatar:l,...r}=n,[c,f]=S.useState("idle");return p.jsx(sA,{scope:l,imageLoadingStatus:c,onImageLoadingStatusChange:f,children:p.jsx(fe.span,{...r,ref:i})})});X0.displayName=vd;var P0="AvatarImage",lA=S.forwardRef((n,i)=>{const{__scopeAvatar:l,src:r,onLoadingStatusChange:c=()=>{},...f}=n,d=Y0(P0,l),h=rA(r,f),y=ai(g=>{c(g),d.onImageLoadingStatusChange(g)});return Aa(()=>{h!=="idle"&&y(h)},[h,y]),h==="loaded"?p.jsx(fe.img,{...f,ref:i,src:r}):null});lA.displayName=P0;var K0="AvatarFallback",Z0=S.forwardRef((n,i)=>{const{__scopeAvatar:l,delayMs:r,...c}=n,f=Y0(K0,l),[d,h]=S.useState(r===void 0);return S.useEffect(()=>{if(r!==void 0){const y=window.setTimeout(()=>h(!0),r);return()=>window.clearTimeout(y)}},[r]),d&&f.imageLoadingStatus!=="loaded"?p.jsx(fe.span,{...c,ref:i}):null});Z0.displayName=K0;function Sy(n,i){return n?i?(n.src!==i&&(n.src=i),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function rA(n,{referrerPolicy:i,crossOrigin:l}){const r=nA(),c=S.useRef(null),f=r?(c.current||(c.current=new window.Image),c.current):null,[d,h]=S.useState(()=>Sy(f,n));return Aa(()=>{h(Sy(f,n))},[f,n]),Aa(()=>{const y=b=>()=>{h(b)};if(!f)return;const g=y("loaded"),v=y("error");return f.addEventListener("load",g),f.addEventListener("error",v),i&&(f.referrerPolicy=i),typeof l=="string"&&(f.crossOrigin=l),()=>{f.removeEventListener("load",g),f.removeEventListener("error",v)}},[f,l,i]),d}var oA=X0,uA=Z0,vf="rovingFocusGroup.onEntryFocus",cA={bubbles:!1,cancelable:!0},Ml="RovingFocusGroup",[Hf,F0,fA]=ww(Ml),[dA,Q0]=Cl(Ml,[fA]),[hA,mA]=dA(Ml),J0=S.forwardRef((n,i)=>p.jsx(Hf.Provider,{scope:n.__scopeRovingFocusGroup,children:p.jsx(Hf.Slot,{scope:n.__scopeRovingFocusGroup,children:p.jsx(pA,{...n,ref:i})})}));J0.displayName=Ml;var pA=S.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:l,orientation:r,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...b}=n,T=S.useRef(null),E=Tn(i,T),j=d0(f),[C,M]=md({prop:d,defaultProp:h??null,onChange:y,caller:Ml}),[R,G]=S.useState(!1),k=ai(g),B=F0(l),K=S.useRef(!1),[W,Z]=S.useState(0);return S.useEffect(()=>{const L=T.current;if(L)return L.addEventListener(vf,k),()=>L.removeEventListener(vf,k)},[k]),p.jsx(hA,{scope:l,orientation:r,dir:j,loop:c,currentTabStopId:C,onItemFocus:S.useCallback(L=>M(L),[M]),onItemShiftTab:S.useCallback(()=>G(!0),[]),onFocusableItemAdd:S.useCallback(()=>Z(L=>L+1),[]),onFocusableItemRemove:S.useCallback(()=>Z(L=>L-1),[]),children:p.jsx(fe.div,{tabIndex:R||W===0?-1:0,"data-orientation":r,...b,ref:E,style:{outline:"none",...n.style},onMouseDown:be(n.onMouseDown,()=>{K.current=!0}),onFocus:be(n.onFocus,L=>{const tt=!K.current;if(L.target===L.currentTarget&&tt&&!R){const dt=new CustomEvent(vf,cA);if(L.currentTarget.dispatchEvent(dt),!dt.defaultPrevented){const ut=B().filter(_=>_.focusable),Et=ut.find(_=>_.active),Ct=ut.find(_=>_.id===C),Nt=[Et,Ct,...ut].filter(Boolean).map(_=>_.ref.current);$0(Nt,v)}}K.current=!1}),onBlur:be(n.onBlur,()=>G(!1))})})}),W0="RovingFocusGroupItem",I0=S.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:l,focusable:r=!0,active:c=!1,tabStopId:f,children:d,...h}=n,y=ml(),g=f||y,v=mA(W0,l),b=v.currentTabStopId===g,T=F0(l),{onFocusableItemAdd:E,onFocusableItemRemove:j,currentTabStopId:C}=v;return S.useEffect(()=>{if(r)return E(),()=>j()},[r,E,j]),p.jsx(Hf.ItemSlot,{scope:l,id:g,focusable:r,active:c,children:p.jsx(fe.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...h,ref:i,onMouseDown:be(n.onMouseDown,M=>{r?v.onItemFocus(g):M.preventDefault()}),onFocus:be(n.onFocus,()=>v.onItemFocus(g)),onKeyDown:be(n.onKeyDown,M=>{if(M.key==="Tab"&&M.shiftKey){v.onItemShiftTab();return}if(M.target!==M.currentTarget)return;const R=vA(M,v.orientation,v.dir);if(R!==void 0){if(M.metaKey||M.ctrlKey||M.altKey||M.shiftKey)return;M.preventDefault();let k=T().filter(B=>B.focusable).map(B=>B.ref.current);if(R==="last")k.reverse();else if(R==="prev"||R==="next"){R==="prev"&&k.reverse();const B=k.indexOf(M.currentTarget);k=v.loop?bA(k,B+1):k.slice(B+1)}setTimeout(()=>$0(k))}}),children:typeof d=="function"?d({isCurrentTabStop:b,hasTabStop:C!=null}):d})})});I0.displayName=W0;var gA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yA(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function vA(n,i,l){const r=yA(n.key,l);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gA[r]}function $0(n,i=!1){const l=document.activeElement;for(const r of n)if(r===l||(r.focus({preventScroll:i}),document.activeElement!==l))return}function bA(n,i){return n.map((l,r)=>n[(i+r)%n.length])}var xA=J0,SA=I0,Lo="Tabs",[TA]=Cl(Lo,[Q0]),tb=Q0(),[wA,bd]=TA(Lo),eb=S.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,onValueChange:c,defaultValue:f,orientation:d="horizontal",dir:h,activationMode:y="automatic",...g}=n,v=d0(h),[b,T]=md({prop:r,onChange:c,defaultProp:f??"",caller:Lo});return p.jsx(wA,{scope:l,baseId:ml(),value:b,onValueChange:T,orientation:d,dir:v,activationMode:y,children:p.jsx(fe.div,{dir:v,"data-orientation":d,...g,ref:i})})});eb.displayName=Lo;var nb="TabsList",ab=S.forwardRef((n,i)=>{const{__scopeTabs:l,loop:r=!0,...c}=n,f=bd(nb,l),d=tb(l);return p.jsx(xA,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:r,children:p.jsx(fe.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:i})})});ab.displayName=nb;var ib="TabsTrigger",sb=S.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,disabled:c=!1,...f}=n,d=bd(ib,l),h=tb(l),y=rb(d.baseId,r),g=ob(d.baseId,r),v=r===d.value;return p.jsx(SA,{asChild:!0,...h,focusable:!c,active:v,children:p.jsx(fe.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":g,"data-state":v?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...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)})})})});sb.displayName=ib;var lb="TabsContent",EA=S.forwardRef((n,i)=>{const{__scopeTabs:l,value:r,forceMount:c,children:f,...d}=n,h=bd(lb,l),y=rb(h.baseId,r),g=ob(h.baseId,r),v=r===h.value,b=S.useRef(v);return S.useEffect(()=>{const T=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(T)},[]),p.jsx(Nl,{present:c||v,children:({present:T})=>p.jsx(fe.div,{"data-state":v?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!T,id:g,tabIndex:0,...d,ref:i,style:{...n.style,animationDuration:b.current?"0s":void 0},children:T&&f})})});EA.displayName=lb;function rb(n,i){return`${n}-trigger-${i}`}function ob(n,i){return`${n}-content-${i}`}var AA=eb,CA=ab,NA=sb;function MA({className:n,orientation:i="horizontal",...l}){return p.jsx(AA,{"data-slot":"tabs","data-orientation":i,orientation:i,className:$e("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",n),...l})}const jA=dw("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 DA({className:n,variant:i="default",...l}){return p.jsx(CA,{"data-slot":"tabs-list","data-variant":i,className:$e(jA({variant:i}),n),...l})}function RA({className:n,...i}){return p.jsx(NA,{"data-slot":"tabs-trigger",className:$e("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 OA({className:n,size:i="default",...l}){return p.jsx(oA,{"data-slot":"avatar","data-size":i,className:$e("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 zA({className:n,...i}){return p.jsx(uA,{"data-slot":"avatar-fallback",className:$e("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 ub({...n}){return p.jsx(KE,{"data-slot":"sheet",...n})}function _A({...n}){return p.jsx(ZE,{"data-slot":"sheet-portal",...n})}function VA({className:n,...i}){return p.jsx(FE,{"data-slot":"sheet-overlay",className:$e("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 cb({className:n,children:i,side:l="right",showCloseButton:r=!0,...c}){return p.jsxs(_A,{children:[p.jsx(VA,{}),p.jsxs(QE,{"data-slot":"sheet-content",className:$e("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&&p.jsxs(IE,{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:[p.jsx(Kv,{className:"size-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function fb({className:n,...i}){return p.jsx(JE,{"data-slot":"sheet-title",className:$e("text-foreground font-semibold",n),...i})}function kA({className:n,...i}){return p.jsx(WE,{"data-slot":"sheet-description",className:$e("text-muted-foreground text-sm",n),...i})}function LA(){const[n,i]=S.useState(!1);return p.jsxs("div",{className:"md:hidden",children:[p.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:[p.jsx(J2,{className:"h-5 w-5"}),p.jsx("span",{className:"sr-only",children:"Open navigation"})]}),p.jsx(ub,{open:n,onOpenChange:i,children:p.jsxs(cb,{side:"left",className:"p-0 w-72",showCloseButton:!1,children:[p.jsx(fb,{className:"sr-only",children:"Navigation"}),p.jsx(u0,{})]})})]})}function UA({onOpenOnboard:n}){const[i,l]=S.useState(!1),r=S.useRef(null);return S.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]),p.jsxs("header",{className:"flex items-center justify-between px-4 md:px-6 py-3 md:py-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(LA,{}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-6 w-auto"}),p.jsx("span",{className:"font-semibold text-lg hidden sm:block",children:"Fluxy"})]})]}),p.jsx("div",{className:"hidden md:block",children:p.jsx(MA,{defaultValue:"overview",children:p.jsx(DA,{className:"bg-card rounded-full p-1 h-auto border border-border",children:["Overview","Conversations","Models","Knowledge","Activity"].map(c=>p.jsx(RA,{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))})})}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{className:"relative",ref:r,children:[p.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:p.jsx(Pv,{className:"h-4 w-4"})}),i&&p.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:p.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:[p.jsx(gT,{className:"h-4 w-4 text-muted-foreground"}),"Setup Wizard"]})})]}),p.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:[p.jsx(D2,{className:"h-4 w-4"}),p.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"})]}),p.jsx(OA,{className:"h-10 w-10 border border-border",children:p.jsx(zA,{className:"bg-primary text-primary-foreground text-sm font-medium",children:"F"})})]})]})}function BA({children:n,onOpenOnboard:i}){return p.jsxs("div",{className:"flex h-dvh flex-col overflow-x-hidden",children:[p.jsx(UA,{onOpenOnboard:i}),p.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[p.jsx("div",{className:"hidden md:flex shrink-0",children:p.jsx(u0,{})}),p.jsx("main",{className:"flex-1 overflow-y-auto p-4 md:p-6",children:n})]})]})}function Uo({className:n,...i}){return p.jsx("div",{"data-slot":"card",className:$e("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...i})}function Bo({className:n,...i}){return p.jsx("div",{"data-slot":"card-content",className:$e("px-6",n),...i})}function HA(){return p.jsx(Uo,{className:"bg-card border-border h-full",children:p.jsxs(Bo,{className:"p-4 sm:p-6",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4 sm:mb-6",children:[p.jsx("h3",{className:"text-base sm:text-lg font-semibold",children:"Conversation Activity"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.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",p.jsx(Al,{className:"h-3.5 w-3.5"})]}),p.jsx("button",{className:"flex items-center justify-center h-8 w-8 rounded-full border border-border text-muted-foreground",children:p.jsx(q2,{className:"h-4 w-4"})})]})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-3 mb-4 sm:mb-6",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-3xl sm:text-4xl font-bold",children:"2.4K"}),p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Total Messages"})]}),p.jsx("div",{className:"flex items-center gap-2 sm:gap-3 flex-wrap",children:ST.map(n=>p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("div",{className:"h-2 w-2 sm:h-2.5 sm:w-2.5 rounded-full",style:{backgroundColor:Wg[n.level]}}),p.jsx("span",{className:"text-[10px] sm:text-xs text-muted-foreground",children:n.label})]},n.label))})]}),p.jsx("div",{className:"space-y-2 sm:space-y-3",children:bT.map(n=>p.jsxs("div",{className:"flex items-center gap-2 sm:gap-4",children:[p.jsx("span",{className:"text-xs sm:text-sm text-muted-foreground w-12 sm:w-16 shrink-0",children:n.model}),p.jsx("div",{className:"grid grid-cols-7 gap-1.5 sm:gap-2 flex-1",children:n.days.map((i,l)=>p.jsx("div",{className:"aspect-square rounded-full max-w-10",style:{backgroundColor:Wg[i]}},l))})]},n.model))}),p.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 mt-2 sm:mt-4",children:[p.jsx("div",{className:"w-12 sm:w-16 shrink-0"}),p.jsx("div",{className:"grid grid-cols-7 gap-1.5 sm:gap-2 flex-1",children:xT.map((n,i)=>p.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 GA(){return p.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:[p.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%)"}}),p.jsxs(Bo,{className:"relative p-6 flex flex-col justify-between min-h-[200px]",children:[p.jsxs("div",{children:[p.jsxs("h3",{className:"text-2xl font-bold leading-tight mb-3",children:["Connect New",p.jsx("br",{}),"AI Models"]}),p.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"}),p.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:"with parallel routing"})]}),p.jsx("div",{className:"flex justify-end mt-4",children:p.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",p.jsx(Yv,{className:"h-4 w-4"})]})})]})]})}function qA(){return p.jsx(Uo,{className:"bg-card border-border",children:p.jsxs(Bo,{className:"p-6 flex flex-col justify-between h-full",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx("div",{className:"flex items-center justify-center h-8 w-8 rounded-full border border-border",children:p.jsx(Al,{className:"h-4 w-4 text-muted-foreground"})}),p.jsxs("span",{className:"text-sm font-medium",children:["Today's",p.jsx("br",{}),"Messages"]})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-4xl font-bold text-primary",children:"342"}),p.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[p.jsx("span",{className:"text-sm text-primary font-medium",children:"+8%"}),p.jsx("span",{className:"text-xs text-muted-foreground",children:"vs yesterday"})]})]})]})})}function YA(){return p.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:p.jsxs(Bo,{className:"relative p-6 flex flex-col justify-between h-full",children:[p.jsxs("div",{className:"flex items-center gap-1.5 mb-4",children:[p.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:p.jsx(Xv,{className:"h-3.5 w-3.5"})}),p.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:p.jsx(Yv,{className:"h-3.5 w-3.5"})}),p.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:p.jsx(Kv,{className:"h-3.5 w-3.5"})})]}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-lg font-bold mb-1",children:"System Report"}),p.jsx("p",{className:"text-xs text-foreground/60 leading-relaxed",children:"Generate and download a detailed report of your system"})]})]})})}function XA(){return p.jsxs("div",{className:"max-w-6xl mx-auto space-y-4 sm:space-y-6",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-2xl sm:text-3xl font-semibold",children:"Dashboard Overview"}),p.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Overview"," ",p.jsx("span",{className:"mx-1.5 text-muted-foreground/50",children:">"}),"All Systems"]})]}),p.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto",children:[p.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",p.jsx(Al,{className:"h-3.5 w-3.5"})]}),p.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",p.jsx(Xv,{className:"h-3.5 w-3.5"})]}),p.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",p.jsx(cT,{className:"h-3.5 w-3.5"})]})]})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[p.jsx(HA,{}),p.jsxs("div",{className:"space-y-4",children:[p.jsx(GA,{}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[p.jsx(qA,{}),p.jsx(YA,{})]})]})]})]})}function PA(n){const[i,l]=S.useState([]),[r,c]=S.useState(null),[f,d]=S.useState(!1),[h,y]=S.useState("");S.useEffect(()=>{if(!n)return;const T=[n.on("bot:typing",()=>d(!0)),n.on("bot:token",E=>{y(j=>j+E.token)}),n.on("bot:response",E=>{c(E.conversationId),l(j=>[...j,{id:E.messageId,role:"assistant",content:E.content}]),y(""),d(!1)}),n.on("bot:error",E=>{y(""),d(!1),l(j=>[...j,{id:Date.now().toString(),role:"assistant",content:`Error: ${E.error}`}])})];return()=>T.forEach(E=>E())},[n]);const g=S.useCallback(T=>{if(!n||!T.trim())return;const E={id:Date.now().toString(),role:"user",content:T};l(j=>[...j,E]),n.send("user:message",{conversationId:r,content:T})},[n,r]),v=S.useCallback(()=>{!n||!r||(n.send("user:stop",{conversationId:r}),d(!1),y(""))},[n,r]),b=S.useCallback(()=>{l([]),c(null),y(""),d(!1)},[]);return{messages:i,streaming:f,streamBuffer:h,conversationId:r,sendMessage:g,stopStreaming:v,newChat:b}}function KA({role:n,content:i}){const l=n==="user";return p.jsx("div",{className:`flex ${l?"justify-end":"justify-start"}`,children:p.jsx("div",{className:`max-w-[75%] rounded-2xl px-4 py-2.5 text-sm leading-relaxed whitespace-pre-wrap ${l?"bg-primary text-primary-foreground":"bg-muted text-foreground"}`,children:i})})}function ZA({text:n}){return p.jsx("div",{className:"flex justify-start",children:p.jsxs("div",{className:"max-w-[75%] rounded-2xl px-4 py-2.5 text-sm leading-relaxed bg-muted text-foreground whitespace-pre-wrap",children:[n,p.jsx("span",{className:"inline-block w-2 h-4 ml-0.5 bg-muted-foreground animate-pulse"})]})})}function FA({messages:n,streaming:i,streamBuffer:l}){const r=S.useRef(null);return S.useEffect(()=>{r.current?.scrollIntoView({behavior:"smooth"})},[n,l]),p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 flex flex-col",children:[p.jsx("div",{className:"flex-1"}),n.length===0&&p.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground text-sm",children:"Start a conversation"}),p.jsxs("div",{className:"space-y-3",children:[n.map(c=>p.jsx(KA,{role:c.role,content:c.content},c.id)),i&&l&&p.jsx(ZA,{text:l})]}),p.jsx("div",{ref:r})]})}const xd=S.createContext({});function Sd(n){const i=S.useRef(null);return i.current===null&&(i.current=n()),i.current}const db=typeof window<"u",hb=db?S.useLayoutEffect:S.useEffect,Ho=S.createContext(null);function Td(n,i){n.indexOf(i)===-1&&n.push(i)}function Co(n,i){const l=n.indexOf(i);l>-1&&n.splice(l,1)}const wn=(n,i,l)=>l>i?i:l<n?n:l;let wd=()=>{};const Kn={},mb=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function pb(n){return typeof n=="object"&&n!==null}const gb=n=>/^0[^.\s]+$/u.test(n);function yb(n){let i;return()=>(i===void 0&&(i=n()),i)}const Ie=n=>n,QA=(n,i)=>l=>i(n(l)),jl=(...n)=>n.reduce(QA),bl=(n,i,l)=>{const r=i-n;return r===0?1:(l-n)/r};class Ed{constructor(){this.subscriptions=[]}add(i){return Td(this.subscriptions,i),()=>Co(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 on=n=>n*1e3,We=n=>n/1e3;function vb(n,i){return i?n*(1e3/i):0}const bb=(n,i,l)=>(((1-3*l+3*i)*n+(3*l-6*i))*n+3*i)*n,JA=1e-7,WA=12;function IA(n,i,l,r,c){let f,d,h=0;do d=i+(l-i)/2,f=bb(d,r,c)-n,f>0?l=d:i=d;while(Math.abs(f)>JA&&++h<WA);return d}function Dl(n,i,l,r){if(n===i&&l===r)return Ie;const c=f=>IA(f,0,1,n,l);return f=>f===0||f===1?f:bb(c(f),i,r)}const xb=n=>i=>i<=.5?n(2*i)/2:(2-n(2*(1-i)))/2,Sb=n=>i=>1-n(1-i),Tb=Dl(.33,1.53,.69,.99),Ad=Sb(Tb),wb=xb(Ad),Eb=n=>(n*=2)<1?.5*Ad(n):.5*(2-Math.pow(2,-10*(n-1))),Cd=n=>1-Math.sin(Math.acos(n)),Ab=Sb(Cd),Cb=xb(Cd),$A=Dl(.42,0,1,1),tC=Dl(0,0,.58,1),Nb=Dl(.42,0,.58,1),eC=n=>Array.isArray(n)&&typeof n[0]!="number",Mb=n=>Array.isArray(n)&&typeof n[0]=="number",nC={linear:Ie,easeIn:$A,easeInOut:Nb,easeOut:tC,circIn:Cd,circInOut:Cb,circOut:Ab,backIn:Ad,backInOut:wb,backOut:Tb,anticipate:Eb},aC=n=>typeof n=="string",Ty=n=>{if(Mb(n)){wd(n.length===4);const[i,l,r,c]=n;return Dl(i,l,r,c)}else if(aC(n))return nC[n];return n},uo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function iC(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 y(v){d.has(v)&&(g.schedule(v),n()),v(h)}const g={schedule:(v,b=!1,T=!1)=>{const j=T&&c?l:r;return b&&d.add(v),j.has(v)||j.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(y),l.clear(),c=!1,f&&(f=!1,g.process(v))}};return g}const sC=40;function jb(n,i){let l=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},f=()=>l=!0,d=uo.reduce((k,B)=>(k[B]=iC(f),k),{}),{setup:h,read:y,resolveKeyframes:g,preUpdate:v,update:b,preRender:T,render:E,postRender:j}=d,C=()=>{const k=Kn.useManualTiming?c.timestamp:performance.now();l=!1,Kn.useManualTiming||(c.delta=r?1e3/60:Math.max(Math.min(k-c.timestamp,sC),1)),c.timestamp=k,c.isProcessing=!0,h.process(c),y.process(c),g.process(c),v.process(c),b.process(c),T.process(c),E.process(c),j.process(c),c.isProcessing=!1,l&&i&&(r=!1,n(C))},M=()=>{l=!0,r=!0,c.isProcessing||n(C)};return{schedule:uo.reduce((k,B)=>{const K=d[B];return k[B]=(W,Z=!1,L=!1)=>(l||M(),K.schedule(W,Z,L)),k},{}),cancel:k=>{for(let B=0;B<uo.length;B++)d[uo[B]].cancel(k)},state:c,steps:d}}const{schedule:Ut,cancel:Ca,state:ve,steps:bf}=jb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0);let go;function lC(){go=void 0}const Ae={now:()=>(go===void 0&&Ae.set(ve.isProcessing||Kn.useManualTiming?ve.timestamp:performance.now()),go),set:n=>{go=n,queueMicrotask(lC)}},Db=n=>i=>typeof i=="string"&&i.startsWith(n),Rb=Db("--"),rC=Db("var(--"),Nd=n=>rC(n)?oC.test(n.split("/*")[0].trim()):!1,oC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function wy(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=>wn(0,1,n)},co={...cs,default:1},pl=n=>Math.round(n*1e5)/1e5,Md=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uC(n){return n==null}const cC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jd=(n,i)=>l=>!!(typeof l=="string"&&cC.test(l)&&l.startsWith(n)||i&&!uC(l)&&Object.prototype.hasOwnProperty.call(l,i)),Ob=(n,i,l)=>r=>{if(typeof r!="string")return r;const[c,f,d,h]=r.match(Md);return{[n]:parseFloat(c),[i]:parseFloat(f),[l]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},fC=n=>wn(0,255,n),xf={...cs,transform:n=>Math.round(fC(n))},ti={test:jd("rgb","red"),parse:Ob("red","green","blue"),transform:({red:n,green:i,blue:l,alpha:r=1})=>"rgba("+xf.transform(n)+", "+xf.transform(i)+", "+xf.transform(l)+", "+pl(xl.transform(r))+")"};function dC(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 Gf={test:jd("#"),parse:dC,transform:ti.transform},Rl=n=>({test:i=>typeof i=="string"&&i.endsWith(n)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${n}`}),wa=Rl("deg"),Sn=Rl("%"),it=Rl("px"),hC=Rl("vh"),mC=Rl("vw"),Ey={...Sn,parse:n=>Sn.parse(n)/100,transform:n=>Sn.transform(n*100)},ns={test:jd("hsl","hue"),parse:Ob("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)||Gf.test(n)||ns.test(n),parse:n=>ti.test(n)?ti.parse(n):ns.test(n)?ns.parse(n):Gf.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)}},pC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gC(n){return isNaN(n)&&typeof n=="string"&&(n.match(Md)?.length||0)+(n.match(pC)?.length||0)>0}const zb="number",_b="color",yC="var",vC="var(",Ay="${}",bC=/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(bC,y=>(ie.test(y)?(r.color.push(f),c.push(_b),l.push(ie.parse(y))):y.startsWith(vC)?(r.var.push(f),c.push(yC),l.push(y)):(r.number.push(f),c.push(zb),l.push(parseFloat(y))),++f,Ay)).split(Ay);return{values:l,split:h,indexes:r,types:c}}function Vb(n){return Sl(n).values}function kb(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===zb?f+=pl(c[d]):h===_b?f+=ie.transform(c[d]):f+=c[d]}return f}}const xC=n=>typeof n=="number"?0:ie.test(n)?ie.getAnimatableNone(n):n;function SC(n){const i=Vb(n);return kb(n)(i.map(xC))}const un={test:gC,parse:Vb,createTransformer:kb,getAnimatableNone:SC};function Sf(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 TC({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,y=2*l-h;c=Sf(y,h,n+1/3),f=Sf(y,h,n),d=Sf(y,h,n-1/3)}return{red:Math.round(c*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:r}}function No(n,i){return l=>l>0?i:n}const Pt=(n,i,l)=>n+(i-n)*l,Tf=(n,i,l)=>{const r=n*n,c=l*(i*i-r)+r;return c<0?0:Math.sqrt(c)},wC=[Gf,ti,ns],EC=n=>wC.find(i=>i.test(n));function Cy(n){const i=EC(n);if(!i)return!1;let l=i.parse(n);return i===ns&&(l=TC(l)),l}const Ny=(n,i)=>{const l=Cy(n),r=Cy(i);if(!l||!r)return No(n,i);const c={...l};return f=>(c.red=Tf(l.red,r.red,f),c.green=Tf(l.green,r.green,f),c.blue=Tf(l.blue,r.blue,f),c.alpha=Pt(l.alpha,r.alpha,f),ti.transform(c))},qf=new Set(["none","hidden"]);function AC(n,i){return qf.has(n)?l=>l<=0?n:i:l=>l>=1?i:n}function CC(n,i){return l=>Pt(n,i,l)}function Dd(n){return typeof n=="number"?CC:typeof n=="string"?Nd(n)?No:ie.test(n)?Ny:jC:Array.isArray(n)?Lb:typeof n=="object"?ie.test(n)?Ny:NC:No}function Lb(n,i){const l=[...n],r=l.length,c=n.map((f,d)=>Dd(f)(f,i[d]));return f=>{for(let d=0;d<r;d++)l[d]=c[d](f);return l}}function NC(n,i){const l={...n,...i},r={};for(const c in l)n[c]!==void 0&&i[c]!==void 0&&(r[c]=Dd(n[c])(n[c],i[c]));return c=>{for(const f in r)l[f]=r[f](c);return l}}function MC(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 jC=(n,i)=>{const l=un.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?qf.has(n)&&!c.values.length||qf.has(i)&&!r.values.length?AC(n,i):jl(Lb(MC(r,c),c.values),l):No(n,i)};function Ub(n,i,l){return typeof n=="number"&&typeof i=="number"&&typeof l=="number"?Pt(n,i,l):Dd(n)(n,i)}const DC=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()}},Bb=(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 Rd(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 RC(n,i=100,l){const r=l({...n,keyframes:[0,i]}),c=Math.min(Rd(r),Mo);return{type:"keyframes",ease:f=>r.next(c*f).value/i,duration:We(c)}}const OC=5;function Hb(n,i,l){const r=Math.max(i-OC,0);return vb(l-n(r),i-r)}const Qt={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},wf=.001;function zC({duration:n=Qt.duration,bounce:i=Qt.bounce,velocity:l=Qt.velocity,mass:r=Qt.mass}){let c,f,d=1-i;d=wn(Qt.minDamping,Qt.maxDamping,d),n=wn(Qt.minDuration,Qt.maxDuration,We(n)),d<1?(c=g=>{const v=g*d,b=v*n,T=v-l,E=Yf(g,d),j=Math.exp(-b);return wf-T/E*j},f=g=>{const b=g*d*n,T=b*l+l,E=Math.pow(d,2)*Math.pow(g,2)*n,j=Math.exp(-b),C=Yf(Math.pow(g,2),d);return(-c(g)+wf>0?-1:1)*((T-E)*j)/C}):(c=g=>{const v=Math.exp(-g*n),b=(g-l)*n+1;return-wf+v*b},f=g=>{const v=Math.exp(-g*n),b=(l-g)*(n*n);return v*b});const h=5/n,y=VC(c,f,h);if(n=on(n),isNaN(y))return{stiffness:Qt.stiffness,damping:Qt.damping,duration:n};{const g=Math.pow(y,2)*r;return{stiffness:g,damping:d*2*Math.sqrt(r*g),duration:n}}}const _C=12;function VC(n,i,l){let r=l;for(let c=1;c<_C;c++)r=r-n(r)/i(r);return r}function Yf(n,i){return n*Math.sqrt(1-i*i)}const kC=["duration","bounce"],LC=["stiffness","damping","mass"];function My(n,i){return i.some(l=>n[l]!==void 0)}function UC(n){let i={velocity:Qt.velocity,stiffness:Qt.stiffness,damping:Qt.damping,mass:Qt.mass,isResolvedFromDuration:!1,...n};if(!My(n,LC)&&My(n,kC))if(i.velocity=0,n.visualDuration){const l=n.visualDuration,r=2*Math.PI/(l*1.2),c=r*r,f=2*wn(.05,1,1-(n.bounce||0))*Math.sqrt(c);i={...i,mass:Qt.mass,stiffness:c,damping:f}}else{const l=zC({...n,velocity:0});i={...i,...l,mass:Qt.mass},i.isResolvedFromDuration=!0}return i}function jo(n=Qt.visualDuration,i=Qt.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:y,damping:g,mass:v,duration:b,velocity:T,isResolvedFromDuration:E}=UC({...l,velocity:-We(l.velocity||0)}),j=T||0,C=g/(2*Math.sqrt(y*v)),M=d-f,R=We(Math.sqrt(y/v)),G=Math.abs(M)<5;r||(r=G?Qt.restSpeed.granular:Qt.restSpeed.default),c||(c=G?Qt.restDelta.granular:Qt.restDelta.default);let k;if(C<1){const K=Yf(R,C);k=W=>{const Z=Math.exp(-C*R*W);return d-Z*((j+C*R*M)/K*Math.sin(K*W)+M*Math.cos(K*W))}}else if(C===1)k=K=>d-Math.exp(-R*K)*(M+(j+R*M)*K);else{const K=R*Math.sqrt(C*C-1);k=W=>{const Z=Math.exp(-C*R*W),L=Math.min(K*W,300);return d-Z*((j+C*R*M)*Math.sinh(L)+K*M*Math.cosh(L))/K}}const B={calculatedDuration:E&&b||null,next:K=>{const W=k(K);if(E)h.done=K>=b;else{let Z=K===0?j:0;C<1&&(Z=K===0?on(j):Hb(k,K,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 K=Math.min(Rd(B),Mo),W=Bb(Z=>B.next(K*Z).value,K,30);return K+"ms "+W},toTransition:()=>{}};return B}jo.applyToOptions=n=>{const i=RC(n,100,jo);return n.ease=i.ease,n.duration=on(i.duration),n.type="keyframes",n};function Xf({keyframes:n,velocity:i=0,power:l=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:y,restDelta:g=.5,restSpeed:v}){const b=n[0],T={done:!1,value:b},E=L=>h!==void 0&&L<h||y!==void 0&&L>y,j=L=>h===void 0?y:y===void 0||Math.abs(h-L)<Math.abs(y-L)?h:y;let C=l*i;const M=b+C,R=d===void 0?M:d(M);R!==M&&(C=R-b);const G=L=>-C*Math.exp(-L/r),k=L=>R+G(L),B=L=>{const tt=G(L),dt=k(L);T.done=Math.abs(tt)<=g,T.value=T.done?R:dt};let K,W;const Z=L=>{E(T.value)&&(K=L,W=jo({keyframes:[T.value,j(T.value)],velocity:Hb(k,L,T.value),damping:c,stiffness:f,restDelta:g,restSpeed:v}))};return Z(0),{calculatedDuration:null,next:L=>{let tt=!1;return!W&&K===void 0&&(tt=!0,B(L),Z(L)),K!==void 0&&L>=K?W.next(L-K):(!tt&&B(L),T)}}}function BC(n,i,l){const r=[],c=l||Kn.mix||Ub,f=n.length-1;for(let d=0;d<f;d++){let h=c(n[d],n[d+1]);if(i){const y=Array.isArray(i)?i[d]||Ie:i;h=jl(y,h)}r.push(h)}return r}function HC(n,i,{clamp:l=!0,ease:r,mixer:c}={}){const f=n.length;if(wd(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=BC(i,r,c),y=h.length,g=v=>{if(d&&v<n[0])return i[0];let b=0;if(y>1)for(;b<n.length-2&&!(v<n[b+1]);b++);const T=bl(n[b],n[b+1],v);return h[b](T)};return l?v=>g(wn(n[0],n[f-1],v)):g}function GC(n,i){const l=n[n.length-1];for(let r=1;r<=i;r++){const c=bl(0,i,r);n.push(Pt(l,1,c))}}function qC(n){const i=[0];return GC(i,n.length-1),i}function YC(n,i){return n.map(l=>l*i)}function XC(n,i){return n.map(()=>i||Nb).splice(0,n.length-1)}function gl({duration:n=300,keyframes:i,times:l,ease:r="easeInOut"}){const c=eC(r)?r.map(Ty):Ty(r),f={done:!1,value:i[0]},d=YC(l&&l.length===i.length?l:qC(i),n),h=HC(d,i,{ease:Array.isArray(c)?c:XC(i,c)});return{calculatedDuration:n,next:y=>(f.value=h(y),f.done=y>=n,f)}}const PC=n=>n!==null;function Od(n,{repeat:i,repeatType:l="loop"},r,c=1){const f=n.filter(PC),h=c<0||i&&l!=="loop"&&i%2===1?0:f.length-1;return!h||r===void 0?f[h]:r}const KC={decay:Xf,inertia:Xf,tween:gl,keyframes:gl,spring:jo};function Gb(n){typeof n.type=="string"&&(n.type=KC[n.type])}class zd{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 ZC=n=>n/100;class _d extends zd{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;Gb(i);const{type:l=gl,repeat:r=0,repeatDelay:c=0,repeatType:f,velocity:d=0}=i;let{keyframes:h}=i;const y=l||gl;y!==gl&&typeof h[0]!="number"&&(this.mixKeyframes=jl(ZC,Ub(h[0],h[1])),h=[0,100]);const g=y({...i,keyframes:h});f==="mirror"&&(this.mirroredGenerator=y({...i,keyframes:[...h].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=Rd(g));const{calculatedDuration:v}=g;this.calculatedDuration=v,this.resolvedDuration=v+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=g}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:y}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:v,repeat:b,repeatType:T,repeatDelay:E,type:j,onUpdate:C,finalKeyframe:M}=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 R=this.currentTime-g*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?R<0:R>c;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let k=this.currentTime,B=r;if(b){const L=Math.min(this.currentTime,c)/h;let tt=Math.floor(L),dt=L%1;!dt&&L>=1&&(dt=1),dt===1&&tt--,tt=Math.min(tt,b+1),tt%2&&(T==="reverse"?(dt=1-dt,E&&(dt-=E/h)):T==="mirror"&&(B=d)),k=wn(0,1,dt)*h}const K=G?{done:!1,value:v[0]}:B.next(k);f&&(K.value=f(K.value));let{done:W}=K;!G&&y!==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&&j!==Xf&&(K.value=Od(v,this.options,M,this.speed)),C&&C(K.value),Z&&this.finish(),K}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=on(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=DC,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 FC(n){for(let i=1;i<n.length;i++)n[i]??(n[i]=n[i-1])}const ei=n=>n*180/Math.PI,Pf=n=>{const i=ei(Math.atan2(n[1],n[0]));return Kf(i)},QC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Pf,rotateZ:Pf,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},Kf=n=>(n=n%360,n<0&&(n+=360),n),jy=Pf,Dy=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Ry=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),JC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dy,scaleY:Ry,scale:n=>(Dy(n)+Ry(n))/2,rotateX:n=>Kf(ei(Math.atan2(n[6],n[5]))),rotateY:n=>Kf(ei(Math.atan2(-n[2],n[0]))),rotateZ:jy,rotate:jy,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 Zf(n){return n.includes("scale")?1:0}function Ff(n,i){if(!n||n==="none")return Zf(i);const l=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(l)r=JC,c=l;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=QC,c=h}if(!c)return Zf(i);const f=r[i],d=c[1].split(",").map(IC);return typeof f=="function"?f(d):d[f]}const WC=(n,i)=>{const{transform:l="none"}=getComputedStyle(n);return Ff(l,i)};function IC(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),Oy=n=>n===cs||n===it,$C=new Set(["x","y","z"]),tN=fs.filter(n=>!$C.has(n));function eN(n){const i=[];return tN.forEach(l=>{const r=n.getValue(l);r!==void 0&&(i.push([l,r.get()]),r.set(l.startsWith("scale")?1:0))}),i}const Ea={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})=>Ff(i,"x"),y:(n,{transform:i})=>Ff(i,"y")};Ea.translateX=Ea.x;Ea.translateY=Ea.y;const ni=new Set;let Qf=!1,Jf=!1,Wf=!1;function qb(){if(Jf){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=eN(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)})}Jf=!1,Qf=!1,ni.forEach(n=>n.complete(Wf)),ni.clear()}function Yb(){ni.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Jf=!0)})}function nN(){Wf=!0,Yb(),qb(),Wf=!1}class Vd{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),Qf||(Qf=!0,Ut.read(Yb),Ut.resolveKeyframes(qb))):(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])}FC(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 aN=n=>n.startsWith("--");function iN(n,i,l){aN(i)?n.style.setProperty(i,l):n.style[i]=l}const sN={};function Xb(n,i){const l=yb(n);return()=>sN[i]??l()}const lN=Xb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Pb=Xb(()=>{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})`,zy={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 Kb(n,i){if(n)return typeof n=="function"?Pb()?Bb(n,i):"ease-out":Mb(n)?hl(n):Array.isArray(n)?n.map(l=>Kb(l,i)||zy.easeOut):zy[n]}function rN(n,i,l,{delay:r=0,duration:c=300,repeat:f=0,repeatType:d="loop",ease:h="easeOut",times:y}={},g=void 0){const v={[i]:l};y&&(v.offset=y);const b=Kb(h,c);Array.isArray(b)&&(v.easing=b);const T={delay:r,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"};return g&&(T.pseudoElement=g),n.animate(v,T)}function Zb(n){return typeof n=="function"&&"applyToOptions"in n}function oN({type:n,...i}){return Zb(n)&&Pb()?n.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class Fb extends zd{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:y}=i;this.isPseudoElement=!!f,this.allowFlatten=d,this.options=i,wd(typeof i.type!="string");const g=oN(i);this.animation=rN(l,r,c,g,f),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!f){const v=Od(c,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(v):iN(l,r,v),this.animation.cancel()}y?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const i=this.options?.element;!this.isPseudoElement&&i?.isConnected&&this.animation.commitStyles?.()}get duration(){const i=this.animation.effect?.getComputedTiming?.().duration||0;return 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=on(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&&lN()?(this.animation.timeline=i,Ie):l(this)}}const Qb={anticipate:Eb,backInOut:wb,circInOut:Cb};function uN(n){return n in Qb}function cN(n){typeof n.ease=="string"&&uN(n.ease)&&(n.ease=Qb[n.ease])}const Ef=10;class fN extends Fb{constructor(i){cN(i),Gb(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 _d({...d,autoplay:!1}),y=Math.max(Ef,Ae.now()-this.startTime),g=wn(0,Ef,y-Ef);l.setWithVelocity(h.sample(Math.max(0,y-g)).value,h.sample(y).value,g),h.stop()}}const _y=(n,i)=>i==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(un.test(n)||n==="0")&&!n.startsWith("url("));function dN(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 hN(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=_y(c,i),h=_y(f,i);return!d||!h?!1:dN(n)||(l==="spring"||Zb(l))&&r}function If(n){n.duration=0,n.type="keyframes"}const mN=new Set(["opacity","clipPath","filter","transform"]),pN=yb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gN(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:y,transformTemplate:g}=i.owner.getProps();return pN()&&l&&mN.has(l)&&(l!=="transform"||!g)&&!y&&!r&&c!=="mirror"&&f!==0&&d!=="inertia"}const yN=40;class vN extends zd{constructor({autoplay:i=!0,delay:l=0,type:r="keyframes",repeat:c=0,repeatDelay:f=0,repeatType:d="loop",keyframes:h,name:y,motionValue:g,element:v,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const T={autoplay:i,delay:l,type:r,repeat:c,repeatDelay:f,repeatType:d,name:y,motionValue:g,element:v,...b},E=v?.KeyframeResolver||Vd;this.keyframeResolver=new E(h,(j,C,M)=>this.onKeyframesResolved(j,C,T,!M),y,g,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(i,l,r,c){this.keyframeResolver=void 0;const{name:f,type:d,velocity:h,delay:y,isHandoff:g,onUpdate:v}=r;this.resolvedAt=Ae.now(),hN(i,f,d,h)||((Kn.instantAnimations||!y)&&v?.(Od(i,r,l)),i[0]=i[i.length-1],If(r),r.repeat=0);const T={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>yN?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:l,...r,keyframes:i},E=!g&&gN(T),j=T.motionValue?.owner?.current,C=E?new fN({...T,element:j}):new _d(T);C.finished.then(()=>{this.notifyFinished()}).catch(Ie),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}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(),nN()),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 Jb(n,i,l,r=0,c=1){const f=Array.from(n).sort((g,v)=>g.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 bN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xN(n){const i=bN.exec(n);if(!i)return[,];const[,l,r,c]=i;return[`--${l??r}`,c]}function Wb(n,i,l=1){const[r,c]=xN(n);if(!r)return;const f=window.getComputedStyle(i).getPropertyValue(r);if(f){const d=f.trim();return mb(d)?parseFloat(d):d}return Nd(c)?Wb(c,i,l+1):c}const SN={type:"spring",stiffness:500,damping:25,restSpeed:10},TN=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),wN={type:"keyframes",duration:.8},EN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},AN=(n,{keyframes:i})=>i.length>2?wN:ds.has(n)?n.startsWith("scale")?TN(i[1]):SN:EN,CN=n=>n!==null;function NN(n,{repeat:i,repeatType:l="loop"},r){const c=n.filter(CN),f=i&&l!=="loop"&&i%2===1?0:c.length-1;return c[f]}function Ib(n,i){if(n?.inherit&&i){const{inherit:l,...r}=n;return{...i,...r}}return n}function kd(n,i){const l=n?.[i]??n?.default??n;return l!==n?Ib(l,n):l}function MN({when:n,delay:i,delayChildren:l,staggerChildren:r,staggerDirection:c,repeat:f,repeatType:d,repeatDelay:h,from:y,elapsed:g,...v}){return!!Object.keys(v).length}const Ld=(n,i,l,r={},c,f)=>d=>{const h=kd(r,n)||{},y=h.delay||r.delay||0;let{elapsed:g=0}=r;g=g-on(y);const v={keyframes:Array.isArray(l)?l:[null,l],ease:"easeOut",velocity:i.getVelocity(),...h,delay:-g,onUpdate:T=>{i.set(T),h.onUpdate&&h.onUpdate(T)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:i,element:f?void 0:c};MN(h)||Object.assign(v,AN(n,v)),v.duration&&(v.duration=on(v.duration)),v.repeatDelay&&(v.repeatDelay=on(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let b=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(If(v),v.delay===0&&(b=!0)),(Kn.instantAnimations||Kn.skipAnimations||c?.shouldSkipAnimations)&&(b=!0,If(v),v.delay=0),v.allowFlatten=!h.type&&!h.ease,b&&!f&&i.get()!==void 0){const T=NN(v.keyframes,h);if(T!==void 0){Ut.update(()=>{v.onUpdate(T),v.onComplete()});return}}return h.isSync?new _d(v):new vN(v)};function Vy(n){const i=[{},{}];return n?.values.forEach((l,r)=>{i[0][r]=l.get(),i[1][r]=l.getVelocity()}),i}function Ud(n,i,l,r){if(typeof i=="function"){const[c,f]=Vy(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]=Vy(r);i=i(l!==void 0?l:n.custom,c,f)}return i}function os(n,i,l){const r=n.getProps();return Ud(r,i,l!==void 0?l:r.custom,n)}const $b=new Set(["width","height","top","left","right","bottom",...fs]),ky=30,jN=n=>!isNaN(parseFloat(n));class DN{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=jN(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 Ed);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>ky)return 0;const l=Math.min(this.updatedAt-this.prevUpdatedAt,ky);return vb(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 DN(n,i)}const $f=n=>Array.isArray(n);function RN(n,i,l){n.hasValue(i)?n.getValue(i).set(l):n.addValue(i,us(l))}function ON(n){return $f(n)?n[n.length-1]||0:n}function zN(n,i){const l=os(n,i);let{transitionEnd:r={},transition:c={},...f}=l||{};f={...f,...r};for(const d in f){const h=ON(f[d]);RN(n,d,h)}}const Te=n=>!!(n&&n.getVelocity);function _N(n){return!!(Te(n)&&n.add)}function td(n,i){const l=n.getValue("willChange");if(_N(l))return l.add(i);if(!l&&Kn.WillChange){const r=new Kn.WillChange("auto");n.addValue("willChange",r),r.add(i)}}function Bd(n){return n.replace(/([A-Z])/g,i=>`-${i.toLowerCase()}`)}const VN="framerAppearId",tx="data-"+Bd(VN);function ex(n){return n.props[tx]}function kN({protectedKeys:n,needsAnimating:i},l){const r=n.hasOwnProperty(l)&&i[l]!==!0;return i[l]=!1,r}function nx(n,i,{delay:l=0,transitionOverride:r,type:c}={}){let{transition:f,transitionEnd:d,...h}=i;const y=n.getDefaultTransition();f=f?Ib(f,y):y;const g=f?.reduceMotion;r&&(f=r);const v=[],b=c&&n.animationState&&n.animationState.getState()[c];for(const T in h){const E=n.getValue(T,n.latestValues[T]??null),j=h[T];if(j===void 0||b&&kN(b,T))continue;const C={delay:l,...kd(f||{},T)},M=E.get();if(M!==void 0&&!E.isAnimating&&!Array.isArray(j)&&j===M&&!C.velocity)continue;let R=!1;if(window.MotionHandoffAnimation){const B=ex(n);if(B){const K=window.MotionHandoffAnimation(B,T,Ut);K!==null&&(C.startTime=K,R=!0)}}td(n,T);const G=g??n.shouldReduceMotion;E.start(Ld(T,E,j,G&&$b.has(T)?{type:!1}:C,n,R));const k=E.animation;k&&v.push(k)}if(d){const T=()=>Ut.update(()=>{d&&zN(n,d)});v.length?Promise.all(v).then(T):T()}return v}function ed(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(nx(n,r,l)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(y=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:b}=c;return LN(n,i,y,g,v,b,l)}:()=>Promise.resolve(),{when:h}=c;if(h){const[y,g]=h==="beforeChildren"?[f,d]:[d,f];return y().then(()=>g())}else return Promise.all([f(),d(l.delay)])}function LN(n,i,l=0,r=0,c=0,f=1,d){const h=[];for(const y of n.variantChildren)y.notify("AnimationStart",i),h.push(ed(y,i,{...d,delay:l+(typeof r=="function"?0:r)+Jb(n.variantChildren,y,r,c,f)}).then(()=>y.notify("AnimationComplete",i)));return Promise.all(h)}function UN(n,i,l={}){n.notify("AnimationStart",i);let r;if(Array.isArray(i)){const c=i.map(f=>ed(n,f,l));r=Promise.all(c)}else if(typeof i=="string")r=ed(n,i,l);else{const c=typeof i=="function"?os(n,i,l.custom):i;r=Promise.all(nx(n,c,l))}return r.then(()=>{n.notify("AnimationComplete",i)})}const BN={test:n=>n==="auto",parse:n=>n},ax=n=>i=>i.test(n),ix=[cs,it,Sn,wa,mC,hC,BN],Ly=n=>ix.find(ax(n));function HN(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||gb(n):!0}const GN=new Set(["brightness","contrast","saturate","opacity"]);function qN(n){const[i,l]=n.slice(0,-1).split("(");if(i==="drop-shadow")return n;const[r]=l.match(Md)||[];if(!r)return n;const c=l.replace(r,"");let f=GN.has(i)?1:0;return r!==l&&(f*=100),i+"("+f+c+")"}const YN=/\b([a-z-]*)\(.*?\)/gu,nd={...un,getAnimatableNone:n=>{const i=n.match(YN);return i?i.map(qN).join(" "):n}},ad={...un,getAnimatableNone:n=>{const i=un.parse(n);return un.createTransformer(n)(i.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Uy={...cs,transform:Math.round},XN={rotate:wa,rotateX:wa,rotateY:wa,rotateZ:wa,scale:co,scaleX:co,scaleY:co,scaleZ:co,skew:wa,skewX:wa,skewY:wa,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:xl,originX:Ey,originY:Ey,originZ:it},Hd={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,...XN,zIndex:Uy,fillOpacity:xl,strokeOpacity:xl,numOctaves:Uy},PN={...Hd,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:nd,WebkitFilter:nd,mask:ad,WebkitMask:ad},sx=n=>PN[n],KN=new Set([nd,ad]);function lx(n,i){let l=sx(n);return KN.has(l)||(l=un),l.getAnimatableNone?l.getAnimatableNone(i):void 0}const ZN=new Set(["auto","none","0"]);function FN(n,i,l){let r=0,c;for(;r<n.length&&!c;){const f=n[r];typeof f=="string"&&!ZN.has(f)&&Sl(f).values.length&&(c=n[r]),r++}if(c&&l)for(const f of i)n[f]=lx(l,c)}class QN extends Vd{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(),Nd(b))){const T=Wb(b,l.current);T!==void 0&&(i[v]=T),v===i.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!$b.has(r)||i.length!==2)return;const[c,f]=i,d=Ly(c),h=Ly(f),y=wy(c),g=wy(f);if(y!==g&&Ea[r]){this.needsMeasurement=!0;return}if(d!==h)if(Oy(d)&&Oy(h))for(let v=0;v<i.length;v++){const b=i[v];typeof b=="string"&&(i[v]=parseFloat(b))}else Ea[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:l}=this,r=[];for(let c=0;c<i.length;c++)(i[c]===null||HN(i[c]))&&r.push(c);r.length&&FN(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=Ea[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]=Ea[l](i.measureViewportBox(),window.getComputedStyle(i.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,y])=>{i.getValue(h).set(y)}),this.resolveNoneKeyframes()}}const JN=new Set(["opacity","clipPath","filter","transform"]);function rx(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 ox=(n,i)=>i&&typeof n=="number"?i.transform(n):n;function id(n){return pb(n)&&"offsetHeight"in n}const{schedule:Gd}=jb(queueMicrotask,!1),rn={x:!1,y:!1};function ux(){return rn.x||rn.y}function WN(n){return n==="x"||n==="y"?rn[n]?null:(rn[n]=!0,()=>{rn[n]=!1}):rn.x||rn.y?null:(rn.x=rn.y=!0,()=>{rn.x=rn.y=!1})}function cx(n,i){const l=rx(n),r=new AbortController,c={passive:!0,...i,signal:r.signal};return[l,c,()=>r.abort()]}function IN(n){return!(n.pointerType==="touch"||ux())}function $N(n,i,l={}){const[r,c,f]=cx(n,l);return r.forEach(d=>{let h=!1,y=!1,g;const v=()=>{d.removeEventListener("pointerleave",j)},b=M=>{g&&(g(M),g=void 0),v()},T=M=>{h=!1,window.removeEventListener("pointerup",T),window.removeEventListener("pointercancel",T),y&&(y=!1,b(M))},E=()=>{h=!0,window.addEventListener("pointerup",T,c),window.addEventListener("pointercancel",T,c)},j=M=>{if(M.pointerType!=="touch"){if(h){y=!0;return}b(M)}},C=M=>{if(!IN(M))return;y=!1;const R=i(d,M);typeof R=="function"&&(g=R,d.addEventListener("pointerleave",j,c))};d.addEventListener("pointerenter",C,c),d.addEventListener("pointerdown",E,c)}),f}const fx=(n,i)=>i?n===i?!0:fx(n,i.parentElement):!1,qd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,tM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function eM(n){return tM.has(n.tagName)||n.isContentEditable===!0}const nM=new Set(["INPUT","SELECT","TEXTAREA"]);function aM(n){return nM.has(n.tagName)||n.isContentEditable===!0}const yo=new WeakSet;function By(n){return i=>{i.key==="Enter"&&n(i)}}function Af(n,i){n.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const iM=(n,i)=>{const l=n.currentTarget;if(!l)return;const r=By(()=>{if(yo.has(l))return;Af(l,"down");const c=By(()=>{Af(l,"up")}),f=()=>Af(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 Hy(n){return qd(n)&&!ux()}const Gy=new WeakSet;function sM(n,i,l={}){const[r,c,f]=cx(n,l),d=h=>{const y=h.currentTarget;if(!Hy(h)||Gy.has(h))return;yo.add(y),l.stopPropagation&&Gy.add(h);const g=i(y,h),v=(E,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",T),yo.has(y)&&yo.delete(y),Hy(E)&&typeof g=="function"&&g(E,{success:j})},b=E=>{v(E,y===window||y===document||l.useGlobalTarget||fx(y,E.target))},T=E=>{v(E,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",T,c)};return r.forEach(h=>{(l.useGlobalTarget?window:h).addEventListener("pointerdown",d,c),id(h)&&(h.addEventListener("focus",g=>iM(g,c)),!eM(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),f}function Yd(n){return pb(n)&&"ownerSVGElement"in n}const vo=new WeakMap;let bo;const dx=(n,i,l)=>(r,c)=>c&&c[0]?c[0][n+"Size"]:Yd(r)&&"getBBox"in r?r.getBBox()[i]:r[l],lM=dx("inline","width","offsetWidth"),rM=dx("block","height","offsetHeight");function oM({target:n,borderBoxSize:i}){vo.get(n)?.forEach(l=>{l(n,{get width(){return lM(n,i)},get height(){return rM(n,i)}})})}function uM(n){n.forEach(oM)}function cM(){typeof ResizeObserver>"u"||(bo=new ResizeObserver(uM))}function fM(n,i){bo||cM();const l=rx(n);return l.forEach(r=>{let c=vo.get(r);c||(c=new Set,vo.set(r,c)),c.add(i),bo?.observe(r)}),()=>{l.forEach(r=>{const c=vo.get(r);c?.delete(i),c?.size||bo?.unobserve(r)})}}const xo=new Set;let as;function dM(){as=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};xo.forEach(i=>i(n))},window.addEventListener("resize",as)}function hM(n){return xo.add(n),as||dM(),()=>{xo.delete(n),!xo.size&&typeof as=="function"&&(window.removeEventListener("resize",as),as=void 0)}}function qy(n,i){return typeof n=="function"?hM(n):fM(n,i)}function mM(n){return Yd(n)&&n.tagName==="svg"}const pM=[...ix,ie,un],gM=n=>pM.find(ax(n)),Yy=()=>({translate:0,scale:1,origin:0,originPoint:0}),is=()=>({x:Yy(),y:Yy()}),Xy=()=>({min:0,max:0}),re=()=>({x:Xy(),y:Xy()}),yM=new WeakMap;function Go(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function Tl(n){return typeof n=="string"||Array.isArray(n)}const Xd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pd=["initial",...Xd];function qo(n){return Go(n.animate)||Pd.some(i=>Tl(n[i]))}function hx(n){return!!(qo(n)||n.variants)}function vM(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 sd={current:null},mx={current:!1},bM=typeof window<"u";function xM(){if(mx.current=!0,!!bM)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),i=()=>sd.current=n.matches;n.addEventListener("change",i),i()}else sd.current=!1}const Py=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Do={};function px(n){Do=n}function SM(){return Do}class TM{scrapeMotionValuesFromProps(i,l,r){return{}}constructor({parent:i,props:l,presenceContext:r,reducedMotionConfig:c,skipAnimations:f,blockInitialAnimation:d,visualState:h},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Vd,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 E=Ae.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Ut.render(this.render,!1,!0))};const{latestValues:g,renderState:v}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=l.initial?{...g}:{},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=y,this.blockInitialAnimation=!!d,this.isControllingVariants=qo(l),this.isVariantNode=hx(l),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:b,...T}=this.scrapeMotionValuesFromProps(l,{},this);for(const E in T){const j=T[E];g[E]!==void 0&&Te(j)&&j.set(g[E])}}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,yM.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:(mx.current||xM(),this.shouldReduceMotion=sd.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&&JN.has(i)&&this.current instanceof HTMLElement){const{factory:d,keyframes:h,times:y,ease:g,duration:v}=l.accelerate,b=new Fb({element:this.current,name:i,keyframes:h,times:y,ease:g,duration:on(v)}),T=d(b);this.valueSubscriptions.set(i,()=>{T(),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 Do){const l=Do[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<Py.length;r++){const c=Py[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=vM(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"&&(mb(r)||gb(r))?r=parseFloat(r):!gM(r)&&un.test(l)&&(r=lx(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=Ud(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 Ed),this.events[i].add(l)}notify(i,...l){this.events[i]&&this.events[i].notify(...l)}scheduleRenderMicrotask(){Gd.render(this.render)}}class gx extends TM{constructor(){super(...arguments),this.KeyframeResolver=QN}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 Ma{constructor(i){this.isMounted=!1,this.node=i}update(){}}function yx({top:n,left:i,right:l,bottom:r}){return{x:{min:i,max:l},y:{min:n,max:r}}}function wM({x:n,y:i}){return{top:i.min,right:n.max,bottom:i.max,left:n.min}}function EM(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 Cf(n){return n===void 0||n===1}function ld({scale:n,scaleX:i,scaleY:l}){return!Cf(n)||!Cf(i)||!Cf(l)}function $a(n){return ld(n)||vx(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function vx(n){return Ky(n.x)||Ky(n.y)}function Ky(n){return n&&n!=="0%"}function Ro(n,i,l){const r=n-l,c=i*r;return l+c}function Zy(n,i,l,r,c){return c!==void 0&&(n=Ro(n,c,r)),Ro(n,l,r)+i}function rd(n,i=0,l=1,r,c){n.min=Zy(n.min,i,l,r,c),n.max=Zy(n.max,i,l,r,c)}function bx(n,{x:i,y:l}){rd(n.x,i.translate,i.scale,i.originPoint),rd(n.y,l.translate,l.scale,l.originPoint)}const Fy=.999999999999,Qy=1.0000000000001;function AM(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:y}=f.options;y&&y.props.style&&y.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,bx(n,d)),r&&$a(f.latestValues)&&ls(n,f.latestValues))}i.x<Qy&&i.x>Fy&&(i.x=1),i.y<Qy&&i.y>Fy&&(i.y=1)}function ss(n,i){n.min=n.min+i,n.max=n.max+i}function Jy(n,i,l,r,c=.5){const f=Pt(n.min,n.max,c);rd(n,i,l,f,r)}function ls(n,i){Jy(n.x,i.x,i.scaleX,i.scale,i.originX),Jy(n.y,i.y,i.scaleY,i.scale,i.originY)}function xx(n,i){return yx(EM(n.getBoundingClientRect(),i))}function CM(n,i,l){const r=xx(n,l),{scroll:c}=i;return c&&(ss(r.x,c.offset.x),ss(r.y,c.offset.y)),r}const NM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MM=fs.length;function jM(n,i,l){let r="",c=!0;for(let f=0;f<MM;f++){const d=fs[f],h=n[d];if(h===void 0)continue;let y=!0;if(typeof h=="number")y=h===(d.startsWith("scale")?1:0);else{const g=parseFloat(h);y=d.startsWith("scale")?g===1:g===0}if(!y||l){const g=ox(h,Hd[d]);if(!y){c=!1;const v=NM[d]||d;r+=`${v}(${g}) `}l&&(i[d]=g)}}return r=r.trim(),l?r=l(i,c?"":r):c&&(r="none"),r}function Kd(n,i,l){const{style:r,vars:c,transformOrigin:f}=n;let d=!1,h=!1;for(const y in i){const g=i[y];if(ds.has(y)){d=!0;continue}else if(Rb(y)){c[y]=g;continue}else{const v=ox(g,Hd[y]);y.startsWith("origin")?(h=!0,f[y]=v):r[y]=v}}if(i.transform||(d||l?r.transform=jM(i,n.transform,l):r.transform&&(r.transform="none")),h){const{originX:y="50%",originY:g="50%",originZ:v=0}=f;r.transformOrigin=`${y} ${g} ${v}`}}function Sx(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 Wy(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=Wy(n,i.target.x),r=Wy(n,i.target.y);return`${l}% ${r}%`}},DM={correct:(n,{treeScale:i,projectionDelta:l})=>{const r=n,c=un.parse(n);if(c.length>5)return r;const f=un.createTransformer(n),d=typeof c[0]!="number"?1:0,h=l.x.scale*i.x,y=l.y.scale*i.y;c[0+d]/=h,c[1+d]/=y;const g=Pt(h,y,.5);return typeof c[2+d]=="number"&&(c[2+d]/=g),typeof c[3+d]=="number"&&(c[3+d]/=g),f(c)}},od={borderRadius:{...dl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dl,borderTopRightRadius:dl,borderBottomLeftRadius:dl,borderBottomRightRadius:dl,boxShadow:DM};function Tx(n,{layout:i,layoutId:l}){return ds.has(n)||n.startsWith("origin")||(i||l!==void 0)&&(!!od[n]||n==="opacity")}function Zd(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])||Tx(d,n)||l?.getValue(d)?.liveStyle!==void 0)&&(f[d]=r[d]);return f}function RM(n){return window.getComputedStyle(n)}class OM extends gx{constructor(){super(...arguments),this.type="html",this.renderInstance=Sx}readValueFromInstance(i,l){if(ds.has(l))return this.projection?.isProjecting?Zf(l):WC(i,l);{const r=RM(i),c=(Rb(l)?r.getPropertyValue(l):r[l])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(i,{transformPagePoint:l}){return xx(i,l)}build(i,l,r){Kd(i,l,r.transformTemplate)}scrapeMotionValuesFromProps(i,l,r){return Zd(i,l,r)}}const zM={offset:"stroke-dashoffset",array:"stroke-dasharray"},_M={offset:"strokeDashoffset",array:"strokeDasharray"};function VM(n,i,l=1,r=0,c=!0){n.pathLength=1;const f=c?zM:_M;n[f.offset]=`${-r}`,n[f.array]=`${i} ${l}`}const kM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function wx(n,{attrX:i,attrY:l,attrScale:r,pathLength:c,pathSpacing:f=1,pathOffset:d=0,...h},y,g,v){if(Kd(n,h,g),y){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:b,style:T}=n;b.transform&&(T.transform=b.transform,delete b.transform),(T.transform||b.transformOrigin)&&(T.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),T.transform&&(T.transformBox=v?.transformBox??"fill-box",delete b.transformBox);for(const E of kM)b[E]!==void 0&&(T[E]=b[E],delete b[E]);i!==void 0&&(b.x=i),l!==void 0&&(b.y=l),r!==void 0&&(b.scale=r),c!==void 0&&VM(b,c,f,d,!1)}const Ex=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"]),Ax=n=>typeof n=="string"&&n.toLowerCase()==="svg";function LM(n,i,l,r){Sx(n,i,void 0,r);for(const c in i.attrs)n.setAttribute(Ex.has(c)?c:Bd(c),i.attrs[c])}function Cx(n,i,l){const r=Zd(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 UM extends gx{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=sx(l);return r&&r.default||0}return l=Ex.has(l)?l:Bd(l),i.getAttribute(l)}scrapeMotionValuesFromProps(i,l,r){return Cx(i,l,r)}build(i,l,r){wx(i,l,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(i,l,r,c){LM(i,l,r,c)}mount(i){this.isSVGTag=Ax(i.tagName),super.mount(i)}}const BM=Pd.length;function Nx(n){if(!n)return;if(!n.isControllingVariants){const l=n.parent?Nx(n.parent)||{}:{};return n.props.initial!==void 0&&(l.initial=n.props.initial),l}const i={};for(let l=0;l<BM;l++){const r=Pd[l],c=n.props[r];(Tl(c)||c===!1)&&(i[r]=c)}return i}function Mx(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 HM=[...Xd].reverse(),GM=Xd.length;function qM(n){return i=>Promise.all(i.map(({animation:l,options:r})=>UN(n,l,r)))}function YM(n){let i=qM(n),l=Iy(),r=!0;const c=y=>(g,v)=>{const b=os(n,v,y==="exit"?n.presenceContext?.custom:void 0);if(b){const{transition:T,transitionEnd:E,...j}=b;g={...g,...j,...E}}return g};function f(y){i=y(n)}function d(y){const{props:g}=n,v=Nx(n.parent)||{},b=[],T=new Set;let E={},j=1/0;for(let M=0;M<GM;M++){const R=HM[M],G=l[R],k=g[R]!==void 0?g[R]:v[R],B=Tl(k),K=R===y?G.isActive:null;K===!1&&(j=M);let W=k===v[R]&&k!==g[R]&&B;if(W&&r&&n.manuallyAnimateOnMount&&(W=!1),G.protectedKeys={...E},!G.isActive&&K===null||!k&&!G.prevProp||Go(k)||typeof k=="boolean")continue;if(R==="exit"&&G.isActive&&K!==!0){G.prevResolvedValues&&(E={...E,...G.prevResolvedValues});continue}const Z=XM(G.prevProp,k);let L=Z||R===y&&G.isActive&&!W&&B||M>j&&B,tt=!1;const dt=Array.isArray(k)?k:[k];let ut=dt.reduce(c(R),{});K===!1&&(ut={});const{prevResolvedValues:Et={}}=G,Ct={...Et,...ut},Gt=F=>{L=!0,T.has(F)&&(tt=!0,T.delete(F)),G.needsAnimating[F]=!0;const $=n.getValue(F);$&&($.liveStyle=!1)};for(const F in Ct){const $=ut[F],mt=Et[F];if(E.hasOwnProperty(F))continue;let Q=!1;$f($)&&$f(mt)?Q=!Mx($,mt):Q=$!==mt,Q?$!=null?Gt(F):T.add(F):$!==void 0&&T.has(F)?Gt(F):G.protectedKeys[F]=!0}G.prevProp=k,G.prevResolvedValues=ut,G.isActive&&(E={...E,...ut}),r&&n.blockInitialAnimation&&(L=!1);const Nt=W&&Z;L&&(!Nt||tt)&&b.push(...dt.map(F=>{const $={type:R};if(typeof F=="string"&&r&&!Nt&&n.manuallyAnimateOnMount&&n.parent){const{parent:mt}=n,Q=os(mt,F);if(mt.enteringChildren&&Q){const{delayChildren:A}=Q.transition||{};$.delay=Jb(mt.enteringChildren,n,A)}}return{animation:F,options:$}}))}if(T.size){const M={};if(typeof g.initial!="boolean"){const R=os(n,Array.isArray(g.initial)?g.initial[0]:g.initial);R&&R.transition&&(M.transition=R.transition)}T.forEach(R=>{const G=n.getBaseTarget(R),k=n.getValue(R);k&&(k.liveStyle=!0),M[R]=G??null}),b.push({animation:M})}let C=!!b.length;return r&&(g.initial===!1||g.initial===g.animate)&&!n.manuallyAnimateOnMount&&(C=!1),r=!1,C?i(b):Promise.resolve()}function h(y,g){if(l[y].isActive===g)return Promise.resolve();n.variantChildren?.forEach(b=>b.animationState?.setActive(y,g)),l[y].isActive=g;const v=d(y);for(const b in l)l[b].protectedKeys={};return v}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>l,reset:()=>{l=Iy()}}}function XM(n,i){return typeof i=="string"?i!==n:Array.isArray(i)?!Mx(i,n):!1}function Ia(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iy(){return{animate:Ia(!0),whileInView:Ia(),whileHover:Ia(),whileTap:Ia(),whileDrag:Ia(),whileFocus:Ia(),exit:Ia()}}function $y(n,i){n.min=i.min,n.max=i.max}function ln(n,i){$y(n.x,i.x),$y(n.y,i.y)}function tv(n,i){n.translate=i.translate,n.scale=i.scale,n.originPoint=i.originPoint,n.origin=i.origin}const jx=1e-4,PM=1-jx,KM=1+jx,Dx=.01,ZM=0-Dx,FM=0+Dx;function Ce(n){return n.max-n.min}function QM(n,i,l){return Math.abs(n-i)<=l}function ev(n,i,l,r=.5){n.origin=r,n.originPoint=Pt(i.min,i.max,n.origin),n.scale=Ce(l)/Ce(i),n.translate=Pt(l.min,l.max,n.origin)-n.originPoint,(n.scale>=PM&&n.scale<=KM||isNaN(n.scale))&&(n.scale=1),(n.translate>=ZM&&n.translate<=FM||isNaN(n.translate))&&(n.translate=0)}function yl(n,i,l,r){ev(n.x,i.x,l.x,r?r.originX:void 0),ev(n.y,i.y,l.y,r?r.originY:void 0)}function nv(n,i,l){n.min=l.min+i.min,n.max=n.min+Ce(i)}function JM(n,i,l){nv(n.x,i.x,l.x),nv(n.y,i.y,l.y)}function av(n,i,l){n.min=i.min-l.min,n.max=n.min+Ce(i)}function Oo(n,i,l){av(n.x,i.x,l.x),av(n.y,i.y,l.y)}function iv(n,i,l,r,c){return n-=i,n=Ro(n,1/l,r),c!==void 0&&(n=Ro(n,1/c,r)),n}function WM(n,i=0,l=1,r=.5,c,f=n,d=n){if(Sn.test(i)&&(i=parseFloat(i),i=Pt(d.min,d.max,i/100)-d.min),typeof i!="number")return;let h=Pt(f.min,f.max,r);n===f&&(h-=i),n.min=iv(n.min,i,l,h,c),n.max=iv(n.max,i,l,h,c)}function sv(n,i,[l,r,c],f,d){WM(n,i[l],i[r],i[c],i.scale,f,d)}const IM=["x","scaleX","originX"],$M=["y","scaleY","originY"];function lv(n,i,l,r){sv(n.x,i,IM,l?l.x:void 0,r?r.x:void 0),sv(n.y,i,$M,l?l.y:void 0,r?r.y:void 0)}function rv(n){return n.translate===0&&n.scale===1}function Rx(n){return rv(n.x)&&rv(n.y)}function ov(n,i){return n.min===i.min&&n.max===i.max}function t3(n,i){return ov(n.x,i.x)&&ov(n.y,i.y)}function uv(n,i){return Math.round(n.min)===Math.round(i.min)&&Math.round(n.max)===Math.round(i.max)}function Ox(n,i){return uv(n.x,i.x)&&uv(n.y,i.y)}function cv(n){return Ce(n.x)/Ce(n.y)}function fv(n,i){return n.translate===i.translate&&n.scale===i.scale&&n.originPoint===i.originPoint}function bn(n){return[n("x"),n("y")]}function e3(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:g,rotate:v,rotateX:b,rotateY:T,skewX:E,skewY:j}=l;g&&(r=`perspective(${g}px) ${r}`),v&&(r+=`rotate(${v}deg) `),b&&(r+=`rotateX(${b}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),j&&(r+=`skewY(${j}deg) `)}const h=n.x.scale*i.x,y=n.y.scale*i.y;return(h!==1||y!==1)&&(r+=`scale(${h}, ${y})`),r||"none"}const zx=["TopLeft","TopRight","BottomLeft","BottomRight"],n3=zx.length,dv=n=>typeof n=="string"?parseFloat(n):n,hv=n=>typeof n=="number"||it.test(n);function a3(n,i,l,r,c,f){c?(n.opacity=Pt(0,l.opacity??1,i3(r)),n.opacityExit=Pt(i.opacity??1,0,s3(r))):f&&(n.opacity=Pt(i.opacity??1,l.opacity??1,r));for(let d=0;d<n3;d++){const h=`border${zx[d]}Radius`;let y=mv(i,h),g=mv(l,h);if(y===void 0&&g===void 0)continue;y||(y=0),g||(g=0),y===0||g===0||hv(y)===hv(g)?(n[h]=Math.max(Pt(dv(y),dv(g),r),0),(Sn.test(g)||Sn.test(y))&&(n[h]+="%")):n[h]=g}(i.rotate||l.rotate)&&(n.rotate=Pt(i.rotate||0,l.rotate||0,r))}function mv(n,i){return n[i]!==void 0?n[i]:n.borderRadius}const i3=_x(0,.5,Ab),s3=_x(.5,.95,Ie);function _x(n,i,l){return r=>r<n?0:r>i?1:l(bl(n,i,r))}function l3(n,i,l){const r=Te(n)?n:us(n);return r.start(Ld("",r,i,l)),r.animation}function wl(n,i,l,r={passive:!0}){return n.addEventListener(i,l,r),()=>n.removeEventListener(i,l)}const r3=(n,i)=>n.depth-i.depth;class o3{constructor(){this.children=[],this.isDirty=!1}add(i){Td(this.children,i),this.isDirty=!0}remove(i){Co(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(r3),this.isDirty=!1,this.children.forEach(i)}}function u3(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 So(n){return Te(n)?n.get():n}class c3{constructor(){this.members=[]}add(i){Td(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&&Co(this.members,r)}i.scheduleRender()}remove(i){if(Co(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 y=r.instance;y&&y.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 To={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nf=["","X","Y","Z"],f3=1e3;let d3=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 Vx(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:i}=n.options;if(!i)return;const l=ex(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&&Vx(r)}function kx({attachResizeListener:n,defaultParent:i,measureScroll:l,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(d={},h=i?.()){this.id=d3++,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(p3),this.nodes.forEach(b3),this.nodes.forEach(x3),this.nodes.forEach(g3)},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 y=0;y<this.path.length;y++)this.path[y].shouldResetTransform=!0;this.root===this&&(this.nodes=new o3)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Ed),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const y=this.eventHandlers.get(d);y&&y.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Yd(d)&&!mM(d),this.instance=d;const{layoutId:h,layout:y,visualElement:g}=this.options;if(g&&!g.current&&g.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(y||h)&&(this.isLayoutDirty=!0),n){let v,b=0;const T=()=>this.root.updateBlockedByResize=!1;Ut.read(()=>{b=window.innerWidth}),n(d,()=>{const E=window.innerWidth;E!==b&&(b=E,this.root.updateBlockedByResize=!0,v&&v(),v=u3(T,250),To.hasAnimatedSinceResize&&(To.hasAnimatedSinceResize=!1,this.nodes.forEach(yv)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||y)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:b,hasRelativeLayoutChanged:T,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||g.getDefaultTransition()||A3,{onLayoutAnimationStart:C,onLayoutAnimationComplete:M}=g.getProps(),R=!this.targetLayout||!Ox(this.targetLayout,E),G=!b&&T;if(this.options.layoutRoot||this.resumeFrom||G||b&&(R||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...kd(j,"layout"),onPlay:C,onComplete:M};(g.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(v,G)}else b||yv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}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(S3),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&&Vx(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:y}=this.options;if(h===void 0&&!y)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(pv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(v3),this.nodes.forEach(h3),this.nodes.forEach(m3)):this.nodes.forEach(gv),this.clearAllSnapshots();const h=Ae.now();ve.delta=wn(0,1e3/60,h-ve.timestamp),ve.timestamp=h,ve.isProcessing=!0,bf.update.process(ve),bf.preRender.process(ve),bf.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(y3),this.sharedNodes.forEach(T3)}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 y=0;y<this.path.length;y++)this.path[y].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 y=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:y,offset:l(this.instance),wasRoot:this.scroll?this.scroll.isRoot:y}}}resetTransform(){if(!c)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Rx(this.projectionDelta),y=this.getTransformTemplate(),g=y?y(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;d&&this.instance&&(h||$a(this.latestValues)||v)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let y=this.removeElementScroll(h);return d&&(y=this.removeTransform(y)),C3(y),{animationId:this.root.animationId,measuredBox:h,layoutBox:y,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(N3))){const{scroll:g}=this.root;g&&(ss(h.x,g.offset.x),ss(h.y,g.offset.y))}return h}removeElementScroll(d){const h=re();if(ln(h,d),this.scroll?.wasRoot)return h;for(let y=0;y<this.path.length;y++){const g=this.path[y],{scroll:v,options:b}=g;g!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&ln(h,d),ss(h.x,v.offset.x),ss(h.y,v.offset.y))}return h}applyTransform(d,h=!1){const y=re();ln(y,d);for(let g=0;g<this.path.length;g++){const v=this.path[g];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&ls(y,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),$a(v.latestValues)&&ls(y,v.latestValues)}return $a(this.latestValues)&&ls(y,this.latestValues),y}removeTransform(d){const h=re();ln(h,d);for(let y=0;y<this.path.length;y++){const g=this.path[y];if(!g.instance||!$a(g.latestValues))continue;ld(g.latestValues)&&g.updateSnapshot();const v=re(),b=g.measurePageBox();ln(v,b),lv(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,v)}return $a(this.latestValues)&&lv(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 y=!!this.resumingFrom||this!==h;if(!(d||y&&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 T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ln(this.target,this.layout.layoutBox),bx(this.target,this.targetDelta)):ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ld(this.parent.latestValues)||vx(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,y){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),Oo(this.relativeTargetOrigin,h,y),ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const d=this.getLead(),h=!!this.resumingFrom||this!==d;let y=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(y=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(y=!1),y)return;const{layout:g,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||!(g||v))return;ln(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,T=this.treeScale.y;AM(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:E}=d;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tv(this.prevProjectionDelta.x,this.projectionDelta.x),tv(this.prevProjectionDelta.y,this.projectionDelta.y)),yl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==T||!fv(this.projectionDelta.x,this.prevProjectionDelta.x)||!fv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}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 y=this.snapshot,g=y?y.latestValues:{},v={...this.latestValues},b=is();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const T=re(),E=y?y.source:void 0,j=this.layout?this.layout.source:void 0,C=E!==j,M=this.getStack(),R=!M||M.members.length<=1,G=!!(C&&!R&&this.options.crossfade===!0&&!this.path.some(E3));this.animationProgress=0;let k;this.mixTargetDelta=B=>{const K=B/1e3;vv(b.x,d.x,K),vv(b.y,d.y,K),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oo(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),w3(this.relativeTarget,this.relativeTargetOrigin,T,K),k&&t3(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=re()),ln(k,this.relativeTarget)),C&&(this.animationValues=v,a3(v,g,this.latestValues,K,G,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},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(()=>{To.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=us(0)),this.motionValue.jump(0,!1),this.currentAnimation=l3(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(f3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:y,layout:g,latestValues:v}=d;if(!(!h||!y||!g)){if(this!==d&&this.layout&&g&&Lx(this.options.animationType,this.layout.layoutBox,g.layoutBox)){y=this.target||re();const b=Ce(this.layout.layoutBox.x);y.x.min=d.target.x.min,y.x.max=y.x.min+b;const T=Ce(this.layout.layoutBox.y);y.y.min=d.target.y.min,y.y.max=y.y.min+T}ln(h,y),ls(h,v),yl(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new c3),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.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:y}={}){const g=this.getStack();g&&g.promote(this,y),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:y}=d;if((y.z||y.rotate||y.rotateX||y.rotateY||y.rotateZ||y.skewX||y.skewY)&&(h=!0),!h)return;const g={};y.z&&Mf("z",d,g,this.animationValues);for(let v=0;v<Nf.length;v++)Mf(`rotate${Nf[v]}`,d,g,this.animationValues),Mf(`skew${Nf[v]}`,d,g,this.animationValues);d.render();for(const v in g)d.setStaticValue(v,g[v]),this.animationValues&&(this.animationValues[v]=g[v]);d.scheduleRender()}applyProjectionStyles(d,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const y=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=So(h?.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=So(h?.pointerEvents)||""),this.hasProjected&&!$a(this.latestValues)&&(d.transform=y?y({},""):"none",this.hasProjected=!1);return}d.visibility="";const v=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=e3(this.projectionDeltaWithTransform,this.treeScale,v);y&&(b=y(v,b)),d.transform=b;const{x:T,y:E}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${E.origin*100}% 0`,g.animationValues?d.opacity=g===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:d.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const j in od){if(v[j]===void 0)continue;const{correct:C,applyTo:M,isCSSVariable:R}=od[j],G=b==="none"?v[j]:C(v[j],g);if(M){const k=M.length;for(let B=0;B<k;B++)d[M[B]]=G}else R?this.options.visualElement.renderState.vars[j]=G:d[j]=G}this.options.layoutId&&(d.pointerEvents=g===this?So(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(pv),this.root.sharedNodes.clear()}}}function h3(n){n.updateLayout()}function m3(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],T=Ce(b);b.min=l[v].min,b.max=b.min+T}):Lx(c,i.layoutBox,l)&&bn(v=>{const b=f?i.measuredBox[v]:i.layoutBox[v],T=Ce(l[v]);b.max=b.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+T)});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 y=!Rx(d);let g=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:T}=v;if(b&&T){const E=re();Oo(E,i.layoutBox,b.layoutBox);const j=re();Oo(j,l,T.layoutBox),Ox(E,j)||(g=!0),v.options.layoutRoot&&(n.relativeTarget=j,n.relativeTargetOrigin=E,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:h,layoutDelta:d,hasLayoutChanged:y,hasRelativeLayoutChanged:g})}else if(n.isLead()){const{onExitComplete:l}=n.options;l&&l()}n.options.transition=void 0}function p3(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 g3(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function y3(n){n.clearSnapshot()}function pv(n){n.clearMeasurements()}function gv(n){n.isLayoutDirty=!1}function v3(n){const{visualElement:i}=n.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),n.resetTransform()}function yv(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function b3(n){n.resolveTargetDelta()}function x3(n){n.calcProjection()}function S3(n){n.resetSkewAndRotation()}function T3(n){n.removeLeadSnapshot()}function vv(n,i,l){n.translate=Pt(i.translate,0,l),n.scale=Pt(i.scale,1,l),n.origin=i.origin,n.originPoint=i.originPoint}function bv(n,i,l,r){n.min=Pt(i.min,l.min,r),n.max=Pt(i.max,l.max,r)}function w3(n,i,l,r){bv(n.x,i.x,l.x,r),bv(n.y,i.y,l.y,r)}function E3(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const A3={duration:.45,ease:[.4,0,.1,1]},xv=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Sv=xv("applewebkit/")&&!xv("chrome/")?Math.round:Ie;function Tv(n){n.min=Sv(n.min),n.max=Sv(n.max)}function C3(n){Tv(n.x),Tv(n.y)}function Lx(n,i,l){return n==="position"||n==="preserve-aspect"&&!QM(cv(i),cv(l),.2)}function N3(n){return n!==n.root&&n.scroll?.wasRoot}const M3=kx({attachResizeListener:(n,i)=>wl(n,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),jf={current:void 0},Ux=kx({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!jf.current){const n=new M3({});n.mount(window),n.setOptions({layoutScroll:!0}),jf.current=n}return jf.current},resetTransform:(n,i)=>{n.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Fd=S.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function wv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function j3(...n){return i=>{let l=!1;const r=n.map(c=>{const f=wv(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():wv(n[c],null)}}}}function D3(...n){return S.useCallback(j3(...n),n)}class R3 extends S.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=id(r)&&r.offsetWidth||0,f=id(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 O3({children:n,isPresent:i,anchorX:l,anchorY:r,root:c,pop:f}){const d=S.useId(),h=S.useRef(null),y=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=S.useContext(Fd),v=n.props?.ref??n?.ref,b=D3(h,v);return S.useInsertionEffect(()=>{const{width:T,height:E,top:j,left:C,right:M,bottom:R}=y.current;if(i||f===!1||!h.current||!T||!E)return;const G=l==="left"?`left: ${C}`:`right: ${M}`,k=r==="bottom"?`bottom: ${R}`:`top: ${j}`;h.current.dataset.motionPopId=d;const B=document.createElement("style");g&&(B.nonce=g);const K=c??document.head;return K.appendChild(B),B.sheet&&B.sheet.insertRule(`
|
|
57
|
+
[data-motion-pop-id="${d}"] {
|
|
58
|
+
position: absolute !important;
|
|
59
|
+
width: ${T}px !important;
|
|
60
|
+
height: ${E}px !important;
|
|
61
|
+
${G}px !important;
|
|
62
|
+
${k}px !important;
|
|
63
|
+
}
|
|
64
|
+
`),()=>{K.contains(B)&&K.removeChild(B)}},[i]),p.jsx(R3,{isPresent:i,childRef:h,sizeRef:y,pop:f,children:f===!1?n:S.cloneElement(n,{ref:b})})}const z3=({children:n,initial:i,isPresent:l,onExitComplete:r,custom:c,presenceAffectsLayout:f,mode:d,anchorX:h,anchorY:y,root:g})=>{const v=Sd(_3),b=S.useId();let T=!0,E=S.useMemo(()=>(T=!1,{id:b,initial:i,isPresent:l,custom:c,onExitComplete:j=>{v.set(j,!0);for(const C of v.values())if(!C)return;r&&r()},register:j=>(v.set(j,!1),()=>v.delete(j))}),[l,v,r]);return f&&T&&(E={...E}),S.useMemo(()=>{v.forEach((j,C)=>v.set(C,!1))},[l]),S.useEffect(()=>{!l&&!v.size&&r&&r()},[l]),n=p.jsx(O3,{pop:d==="popLayout",isPresent:l,anchorX:h,anchorY:y,root:g,children:n}),p.jsx(Ho.Provider,{value:E,children:n})};function _3(){return new Map}function Bx(n=!0){const i=S.useContext(Ho);if(i===null)return[!0,null];const{isPresent:l,onExitComplete:r,register:c}=i,f=S.useId();S.useEffect(()=>{if(n)return c(f)},[n]);const d=S.useCallback(()=>n&&r&&r(f),[f,r,n]);return!l&&r?[!1,d]:[!0]}const fo=n=>n.key||"";function Ev(n){const i=[];return S.Children.forEach(n,l=>{S.isValidElement(l)&&i.push(l)}),i}const Hx=({children:n,custom:i,initial:l=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:f="sync",propagate:d=!1,anchorX:h="left",anchorY:y="top",root:g})=>{const[v,b]=Bx(d),T=S.useMemo(()=>Ev(n),[n]),E=d&&!v?[]:T.map(fo),j=S.useRef(!0),C=S.useRef(T),M=Sd(()=>new Map),R=S.useRef(new Set),[G,k]=S.useState(T),[B,K]=S.useState(T);hb(()=>{j.current=!1,C.current=T;for(let L=0;L<B.length;L++){const tt=fo(B[L]);E.includes(tt)?(M.delete(tt),R.current.delete(tt)):M.get(tt)!==!0&&M.set(tt,!1)}},[B,E.length,E.join("-")]);const W=[];if(T!==G){let L=[...T];for(let tt=0;tt<B.length;tt++){const dt=B[tt],ut=fo(dt);E.includes(ut)||(L.splice(tt,0,dt),W.push(dt))}return f==="wait"&&W.length&&(L=W),K(Ev(L)),k(T),null}const{forceRender:Z}=S.useContext(xd);return p.jsx(p.Fragment,{children:B.map(L=>{const tt=fo(L),dt=d&&!v?!1:T===B||E.includes(tt),ut=()=>{if(R.current.has(tt))return;if(R.current.add(tt),M.has(tt))M.set(tt,!0);else return;let Et=!0;M.forEach(Ct=>{Ct||(Et=!1)}),Et&&(Z?.(),K(C.current),d&&b?.(),r&&r())};return p.jsx(z3,{isPresent:dt,initial:!j.current||l?void 0:!1,custom:i,presenceAffectsLayout:c,mode:f,root:g,onExitComplete:dt?void 0:ut,anchorX:h,anchorY:y,children:L},tt)})})},Gx=S.createContext({strict:!1}),Av={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 Cv=!1;function V3(){if(Cv)return;const n={};for(const i in Av)n[i]={isEnabled:l=>Av[i].some(r=>!!l[r])};px(n),Cv=!0}function qx(){return V3(),SM()}function k3(n){const i=qx();for(const l in n)i[l]={...i[l],...n[l]};px(i)}const L3=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 zo(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||L3.has(n)}let Yx=n=>!zo(n);function U3(n){typeof n=="function"&&(Yx=i=>i.startsWith("on")?!zo(i):n(i))}try{U3(require("@emotion/is-prop-valid").default)}catch{}function B3(n,i,l){const r={};for(const c in n)c==="values"&&typeof n.values=="object"||(Yx(c)||l===!0&&zo(c)||!i&&!zo(c)||n.draggable&&c.startsWith("onDrag"))&&(r[c]=n[c]);return r}const Yo=S.createContext({});function H3(n,i){if(qo(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 G3(n){const{initial:i,animate:l}=H3(n,S.useContext(Yo));return S.useMemo(()=>({initial:i,animate:l}),[Nv(i),Nv(l)])}function Nv(n){return Array.isArray(n)?n.join(" "):n}const Qd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xx(n,i,l){for(const r in i)!Te(i[r])&&!Tx(r,l)&&(n[r]=i[r])}function q3({transformTemplate:n},i){return S.useMemo(()=>{const l=Qd();return Kd(l,i,n),Object.assign({},l.vars,l.style)},[i])}function Y3(n,i){const l=n.style||{},r={};return Xx(r,l,n),Object.assign(r,q3(n,i)),r}function X3(n,i){const l={},r=Y3(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 Px=()=>({...Qd(),attrs:{}});function P3(n,i,l,r){const c=S.useMemo(()=>{const f=Px();return wx(f,i,Ax(r),n.transformTemplate,n.style),{...f.attrs,style:{...f.style}}},[i]);if(n.style){const f={};Xx(f,n.style,n),c.style={...f,...c.style}}return c}const K3=["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 Jd(n){return typeof n!="string"||n.includes("-")?!1:!!(K3.indexOf(n)>-1||/[A-Z]/u.test(n))}function Z3(n,i,l,{latestValues:r},c,f=!1,d){const y=(d??Jd(n)?P3:X3)(i,r,c,n),g=B3(i,typeof n=="string",f),v=n!==S.Fragment?{...g,...y,ref:l}:{},{children:b}=i,T=S.useMemo(()=>Te(b)?b.get():b,[b]);return S.createElement(n,{...v,children:T})}function F3({scrapeMotionValuesFromProps:n,createRenderState:i},l,r,c){return{latestValues:Q3(l,r,c,n),renderState:i()}}function Q3(n,i,l,r){const c={},f=r(n,{});for(const T in f)c[T]=So(f[T]);let{initial:d,animate:h}=n;const y=qo(n),g=hx(n);i&&g&&!y&&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"&&!Go(b)){const T=Array.isArray(b)?b:[b];for(let E=0;E<T.length;E++){const j=Ud(n,T[E]);if(j){const{transitionEnd:C,transition:M,...R}=j;for(const G in R){let k=R[G];if(Array.isArray(k)){const B=v?k.length-1:0;k=k[B]}k!==null&&(c[G]=k)}for(const G in C)c[G]=C[G]}}}return c}const Kx=n=>(i,l)=>{const r=S.useContext(Yo),c=S.useContext(Ho),f=()=>F3(n,i,r,c);return l?f():Sd(f)},J3=Kx({scrapeMotionValuesFromProps:Zd,createRenderState:Qd}),W3=Kx({scrapeMotionValuesFromProps:Cx,createRenderState:Px}),I3=Symbol.for("motionComponentSymbol");function $3(n,i,l){const r=S.useRef(l);S.useInsertionEffect(()=>{r.current=l});const c=S.useRef(null);return S.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 Zx=S.createContext({});function es(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function tj(n,i,l,r,c,f){const{visualElement:d}=S.useContext(Yo),h=S.useContext(Gx),y=S.useContext(Ho),g=S.useContext(Fd),v=g.reducedMotion,b=g.skipAnimations,T=S.useRef(null),E=S.useRef(!1);r=r||h.renderer,!T.current&&r&&(T.current=r(n,{visualState:i,parent:d,props:l,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:v,skipAnimations:b,isSVG:f}),E.current&&T.current&&(T.current.manuallyAnimateOnMount=!0));const j=T.current,C=S.useContext(Zx);j&&!j.projection&&c&&(j.type==="html"||j.type==="svg")&&ej(T.current,l,c,C);const M=S.useRef(!1);S.useInsertionEffect(()=>{j&&M.current&&j.update(l,y)});const R=l[tx],G=S.useRef(!!R&&!window.MotionHandoffIsComplete?.(R)&&window.MotionHasOptimisedAnimation?.(R));return hb(()=>{E.current=!0,j&&(M.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),G.current&&j.animationState&&j.animationState.animateChanges())}),S.useEffect(()=>{j&&(!G.current&&j.animationState&&j.animationState.animateChanges(),G.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(R)}),G.current=!1),j.enteringChildren=void 0)}),j}function ej(n,i,l,r){const{layoutId:c,layout:f,drag:d,dragConstraints:h,layoutScroll:y,layoutRoot:g,layoutCrossfade:v}=i;n.projection=new l(n.latestValues,i["data-framer-portal-id"]?void 0:Fx(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:y,layoutRoot:g})}function Fx(n){if(n)return n.options.allowProjection!==!1?n.projection:Fx(n.parent)}function Df(n,{forwardMotionProps:i=!1,type:l}={},r,c){r&&k3(r);const f=l?l==="svg":Jd(n),d=f?W3:J3;function h(g,v){let b;const T={...S.useContext(Fd),...g,layoutId:nj(g)},{isStatic:E}=T,j=G3(g),C=d(g,E);if(!E&&db){aj();const M=ij(T);b=M.MeasureLayout,j.visualElement=tj(n,C,T,c,M.ProjectionNode,f)}return p.jsxs(Yo.Provider,{value:j,children:[b&&j.visualElement?p.jsx(b,{visualElement:j.visualElement,...T}):null,Z3(n,g,$3(C,j.visualElement,v),C,E,i,f)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const y=S.forwardRef(h);return y[I3]=n,y}function nj({layoutId:n}){const i=S.useContext(xd).id;return i&&n!==void 0?i+"-"+n:n}function aj(n,i){S.useContext(Gx).strict}function ij(n){const i=qx(),{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 sj(n,i){if(typeof Proxy>"u")return Df;const l=new Map,r=(f,d)=>Df(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,Df(d,void 0,n,i)),l.get(d))})}const lj=(n,i)=>i.isSVG??Jd(n)?new UM(i):new OM(i,{allowProjection:n!==S.Fragment});class rj extends Ma{constructor(i){super(i),i.animationState||(i.animationState=YM(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Go(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 oj=0;class uj extends Ma{constructor(){super(...arguments),this.id=oj++}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 cj={animation:{Feature:rj},exit:{Feature:uj}};function Ol(n){return{point:{x:n.pageX,y:n.pageY}}}const fj=n=>i=>qd(i)&&n(i,Ol(i));function vl(n,i,l,r){return wl(n,i,fj(l),r)}const Qx=({current:n})=>n?n.ownerDocument.defaultView:null,Mv=(n,i)=>Math.abs(n-i);function dj(n,i){const l=Mv(n.x,i.x),r=Mv(n.y,i.y);return Math.sqrt(l**2+r**2)}const jv=new Set(["auto","scroll"]);class Jx{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=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Of(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,C=dj(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!C)return;const{point:M}=E,{timestamp:R}=ve;this.history.push({...M,timestamp:R});const{onStart:G,onMove:k}=this.handlers;j||(G&&G(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,E)},this.handlePointerMove=(E,j)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=Rf(j,this.transformPagePoint),Ut.update(this.updatePoint,!0)},this.handlePointerUp=(E,j)=>{this.end();const{onEnd:C,onSessionEnd:M,resumeAnimation:R}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=Of(E.type==="pointercancel"?this.lastMoveEventInfo:Rf(j,this.transformPagePoint),this.history);this.startEvent&&C&&C(E,G),M&&M(E,G)},!qd(i))return;this.dragSnapToOrigin=f,this.handlers=l,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=c||window;const y=Ol(i),g=Rf(y,this.transformPagePoint),{point:v}=g,{timestamp:b}=ve;this.history=[{...v,timestamp:b}];const{onSessionStart:T}=l;T&&T(i,Of(g,this.history)),this.removeListeners=jl(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);(jv.has(r.overflowX)||jv.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 Rf(n,i){return i?{point:i(n.point)}:n}function Dv(n,i){return{x:n.x-i.x,y:n.y-i.y}}function Of({point:n},i){return{point:n,delta:Dv(n,Wx(i)),offset:Dv(n,hj(i)),velocity:mj(i,.1)}}function hj(n){return n[0]}function Wx(n){return n[n.length-1]}function mj(n,i){if(n.length<2)return{x:0,y:0};let l=n.length-1,r=null;const c=Wx(n);for(;l>=0&&(r=n[l],!(c.timestamp-r.timestamp>on(i)));)l--;if(!r)return{x:0,y:0};r===n[0]&&n.length>2&&c.timestamp-r.timestamp>on(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 pj(n,{min:i,max:l},r){return i!==void 0&&n<i?n=r?Pt(i,n,r.min):Math.max(n,i):l!==void 0&&n>l&&(n=r?Pt(l,n,r.max):Math.min(n,l)),n}function Rv(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 gj(n,{top:i,left:l,bottom:r,right:c}){return{x:Rv(n.x,l,c),y:Rv(n.y,i,r)}}function Ov(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 yj(n,i){return{x:Ov(n.x,i.x),y:Ov(n.y,i.y)}}function vj(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)),wn(0,1,l)}function bj(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 ud=.35;function xj(n=ud){return n===!1?n=0:n===!0&&(n=ud),{x:zv(n,"left","right"),y:zv(n,"top","bottom")}}function zv(n,i,l){return{min:_v(n,i),max:_v(n,l)}}function _v(n,i){return typeof n=="number"?n:n[i]||0}const Sj=new WeakMap;class Tj{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(Ol(b).point),this.stopAnimation()},d=(b,T)=>{const{drag:E,dragPropagation:j,onDragStart:C}=this.getProps();if(E&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=WN(E),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),bn(R=>{let G=this.getAxisMotionValue(R).get()||0;if(Sn.test(G)){const{projection:k}=this.visualElement;if(k&&k.layout){const B=k.layout.layoutBox[R];B&&(G=Ce(B)*(parseFloat(G)/100))}}this.originPoint[R]=G}),C&&Ut.update(()=>C(b,T),!1,!0),td(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},h=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T;const{dragPropagation:E,dragDirectionLock:j,onDirectionLock:C,onDrag:M}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:R}=T;if(j&&this.currentDirection===null){this.currentDirection=Ej(R),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",T.point,R),this.updateAxis("y",T.point,R),this.visualElement.render(),M&&Ut.update(()=>M(b,T),!1,!0)},y=(b,T)=>{this.latestPointerEvent=b,this.latestPanInfo=T,this.stop(b,T),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:v}=this.getProps();this.panSession=new Jx(i,{onSessionStart:f,onStart:d,onMove:h,onSessionEnd:y,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:Qx(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||!ho(i,c,this.currentDirection))return;const f=this.getAxisMotionValue(i);let d=this.originPoint[i]+r[i];this.constraints&&this.constraints[i]&&(d=pj(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=gj(r.layoutBox,i):this.constraints=!1,this.elastic=xj(l),c!==this.constraints&&!es(i)&&r&&this.constraints&&!this.hasMutatedConstraints&&bn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=bj(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=CM(r,c.root,this.visualElement.getTransformPagePoint());let d=yj(c.layout.layoutBox,f);if(l){const h=l(wM(d));this.hasMutatedConstraints=!!h,h&&(d=yx(h))}return d}startAnimation(i){const{drag:l,dragMomentum:r,dragElastic:c,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),y=this.constraints||{},g=bn(v=>{if(!ho(v,l,this.currentDirection))return;let b=y&&y[v]||{};d&&(b={min:0,max:0});const T=c?200:1e6,E=c?40:1e7,j={type:"inertia",velocity:r?i[v]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...f,...b};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(h)}startAxisValueAnimation(i,l){const r=this.getAxisMotionValue(i);return td(this.visualElement,i),r.start(Ld(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(!ho(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],y=f.get()||0;f.set(i[l]-Pt(d,h,.5)+y)}})}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 y=h.get();c[d]=vj({min:y,max:y},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(!ho(d,i,null))return;const h=this.getAxisMotionValue(d),{min:y,max:g}=this.constraints[d];h.set(Pt(y,g,c[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Sj.set(this.visualElement,this);const i=this.visualElement.current,l=vl(i,"pointerdown",g=>{const{drag:v,dragListener:b=!0}=this.getProps(),T=g.target,E=T!==i&&aM(T);v&&b&&!E&&this.start(g)});let r;const c=()=>{const{dragConstraints:g}=this.getProps();es(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=wj(i,g.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=wl(window,"resize",()=>this.scalePositionWithinConstraints()),y=f.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:v})=>{this.isDragging&&v&&(bn(b=>{const T=this.getAxisMotionValue(b);T&&(this.originPoint[b]+=g[b].translate,T.set(T.get()+g[b].translate))}),this.visualElement.render())}));return()=>{h(),l(),d(),y&&y(),r&&r()}}getProps(){const i=this.visualElement.getProps(),{drag:l=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:f=!1,dragElastic:d=ud,dragMomentum:h=!0}=i;return{...i,drag:l,dragDirectionLock:r,dragPropagation:c,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Vv(n){let i=!0;return()=>{if(i){i=!1;return}n()}}function wj(n,i,l){const r=qy(n,Vv(l)),c=qy(i,Vv(l));return()=>{r(),c()}}function ho(n,i,l){return(i===!0||i===n)&&(l===null||l===n)}function Ej(n,i=10){let l=null;return Math.abs(n.y)>i?l="y":Math.abs(n.x)>i&&(l="x"),l}class Aj extends Ma{constructor(i){super(i),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new Tj(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 zf=n=>(i,l)=>{n&&Ut.update(()=>n(i,l),!1,!0)};class Cj extends Ma{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(i){this.session=new Jx(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qx(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:l,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:zf(i),onStart:zf(l),onMove:zf(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 _f=!1;class Nj extends S.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),_f&&f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),To.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}),_f=!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(),Gd.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:l,switchLayoutGroup:r}=this.props,{projection:c}=i;_f=!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 Ix(n){const[i,l]=Bx(),r=S.useContext(xd);return p.jsx(Nj,{...n,layoutGroup:r,switchLayoutGroup:S.useContext(Zx),isPresent:i,safeToRemove:l})}const Mj={pan:{Feature:Cj},drag:{Feature:Aj,ProjectionNode:Ux,MeasureLayout:Ix}};function kv(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,Ol(i)))}class jj extends Ma{mount(){const{current:i}=this.node;i&&(this.unmount=$N(i,(l,r)=>(kv(this.node,r,"Start"),c=>kv(this.node,c,"End"))))}unmount(){}}class Dj extends Ma{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=jl(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Lv(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,Ol(i)))}class Rj extends Ma{mount(){const{current:i}=this.node;if(!i)return;const{globalTapTarget:l,propagate:r}=this.node.props;this.unmount=sM(i,(c,f)=>(Lv(this.node,f,"Start"),(d,{success:h})=>Lv(this.node,d,h?"End":"Cancel")),{useGlobalTarget:l,stopPropagation:r?.tap===!1})}unmount(){}}const cd=new WeakMap,Vf=new WeakMap,Oj=n=>{const i=cd.get(n.target);i&&i(n)},zj=n=>{n.forEach(Oj)};function _j({root:n,...i}){const l=n||document;Vf.has(l)||Vf.set(l,{});const r=Vf.get(l),c=JSON.stringify(i);return r[c]||(r[c]=new IntersectionObserver(zj,{root:n,...i})),r[c]}function Vj(n,i,l){const r=_j(i);return cd.set(n,l),r.observe(n),()=>{cd.delete(n),r.unobserve(n)}}const kj={some:0,all:1};class Lj extends Ma{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:kj[c]},h=y=>{const{isIntersecting:g}=y;if(this.isInView===g||(this.isInView=g,f&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:b}=this.node.getProps(),T=g?v:b;T&&T(y)};return Vj(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(Uj(i,l))&&this.startObserver()}unmount(){}}function Uj({viewport:n={}},{viewport:i={}}={}){return l=>n[l]!==i[l]}const Bj={inView:{Feature:Lj},tap:{Feature:Rj},focus:{Feature:Dj},hover:{Feature:jj}},Hj={layout:{ProjectionNode:Ux,MeasureLayout:Ix}},Gj={...cj,...Bj,...Mj,...Hj},El=sj(Gj,lj);function qj(n){const i=Math.floor(n/60),l=n%60;return`${i}:${l.toString().padStart(2,"0")}`}function Yj({onSend:n,onStop:i,streaming:l}){const[r,c]=S.useState(""),[f,d]=S.useState(!1),[h,y]=S.useState(0),g=r.trim().length>0,v=S.useRef(null),b=S.useRef(null),T=S.useRef(null),E=S.useRef(null),j=S.useRef(null),C=S.useRef(0),M=S.useRef(0),R=S.useRef(null),G=S.useRef(!1),k=S.useRef(null);S.useEffect(()=>{if(f)return k.current=setInterval(()=>y(ut=>ut+1),1e3),()=>{k.current&&clearInterval(k.current)}},[f]);const B=S.useCallback(ut=>{k.current&&clearInterval(k.current),R.current&&(clearTimeout(R.current),R.current=null),G.current=!1,j.current&&(j.current.style.transform=""),d(!1),y(0),M.current=0},[]),K=()=>{g&&(n(r),c(""),requestAnimationFrame(()=>v.current?.focus()))},W=ut=>{ut.key==="Enter"&&!ut.shiftKey&&(ut.preventDefault(),K())},Z=S.useCallback(ut=>{ut.preventDefault(),C.current=ut.clientX,M.current=0,ut.currentTarget.setPointerCapture(ut.pointerId),R.current=setTimeout(()=>{G.current=!0,d(!0),y(0)},200)},[]),L=S.useCallback(ut=>{if(!G.current)return;const Et=Math.min(0,ut.clientX-C.current);if(M.current=Et,j.current&&(j.current.style.transform=`translateX(${Et}px)`),E.current){const Ct=E.current.getBoundingClientRect(),Gt=Ct.left+Ct.width/2;Math.abs(ut.clientX-Gt)<36&&B(!0)}},[B]),tt=S.useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),G.current&&B(!1)},[B]),dt=S.useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),G.current&&B(!0)},[B]);return p.jsxs("div",{className:"shrink-0 p-3 relative",children:[p.jsxs("div",{className:`flex items-center gap-2 transition-opacity duration-100 ${f?"opacity-0 pointer-events-none":"opacity-100"}`,children:[p.jsxs("div",{className:"flex-1 flex items-center bg-white rounded-full px-4",children:[p.jsx("textarea",{ref:v,value:r,onChange:ut=>c(ut.target.value),onKeyDown:W,placeholder:"Type a message...",rows:1,className:"flex-1 resize-none bg-transparent text-gray-900 py-3 text-sm outline-none placeholder:text-gray-400"}),p.jsx("input",{ref:b,type:"file",className:"hidden",accept:"*/*"}),p.jsx("input",{ref:T,type:"file",className:"hidden",accept:"image/*",capture:"environment"}),p.jsx("button",{type:"button",onClick:()=>b.current?.click(),className:"shrink-0 p-1.5 text-gray-400 hover:text-gray-600 transition-colors",children:p.jsx(eT,{className:"h-4 w-4"})}),p.jsx("button",{type:"button",onClick:()=>T.current?.click(),className:"shrink-0 p-1.5 text-gray-400 hover:text-gray-600 transition-colors",children:p.jsx(k2,{className:"h-4 w-4"})})]}),l?p.jsx("button",{onClick:i,className:"flex items-center justify-center h-12 w-12 shrink-0 rounded-full bg-destructive text-destructive-foreground transition-colors",children:p.jsx(dT,{className:"h-4 w-4"})}):g?p.jsx("button",{onClick:K,className:"flex items-center justify-center h-12 w-12 shrink-0 rounded-full bg-white text-gray-900 transition-colors hover:bg-gray-100",children:p.jsx(rT,{className:"h-4 w-4"})}):p.jsx("div",{className:"flex items-center justify-center h-12 w-12 shrink-0 rounded-full bg-white text-gray-900 transition-colors hover:bg-gray-100 cursor-pointer touch-none select-none",onPointerDown:Z,onPointerMove:L,onPointerUp:tt,onPointerCancel:dt,children:p.jsx(kf,{className:"h-4 w-4"})})]}),p.jsx(Hx,{children:f&&p.jsx(El.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.1},className:"absolute inset-0 p-3 flex items-center touch-none",children:p.jsxs("div",{className:"flex items-center w-full gap-2",children:[p.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[p.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[p.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-destructive opacity-75"}),p.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-destructive"})]}),p.jsx("span",{className:"text-sm font-medium tabular-nums",children:qj(h)})]}),p.jsxs("div",{className:"flex-1 flex items-center bg-muted rounded-full h-12 pl-1 pr-0.5",children:[p.jsx("div",{ref:E,className:"flex items-center justify-center h-9 w-9 shrink-0 rounded-full bg-destructive/10 text-destructive",children:p.jsx(mT,{className:"h-4 w-4"})}),p.jsx("div",{className:"flex-1 flex justify-center min-w-0",children:p.jsx(El.span,{className:"text-[13px] whitespace-nowrap select-none font-medium",style:{backgroundImage:"linear-gradient(90deg, #999 0%, #999 35%, #fff 50%, #999 65%, #999 100%)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},animate:{backgroundPosition:["200% center","-200% center"]},transition:{duration:2.5,repeat:1/0,ease:"linear"},children:"◄◄ slide to cancel"})}),p.jsx("div",{ref:j,className:"shrink-0 touch-none select-none will-change-transform",style:{transition:"none"},onPointerDown:Z,onPointerMove:L,onPointerUp:tt,onPointerCancel:dt,children:p.jsx("div",{className:"flex items-center justify-center h-11 w-11 rounded-full bg-destructive text-destructive-foreground",children:p.jsx(kf,{className:"h-5 w-5"})})})]})]})})})]})}function Xj({ws:n}){const{messages:i,streaming:l,streamBuffer:r,sendMessage:c,stopStreaming:f}=PA(n);return p.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[p.jsx(FA,{messages:i,streaming:l,streamBuffer:r}),p.jsx(Yj,{onSend:c,onStop:f,streaming:l})]})}function Pj({onClick:n}){return p.jsx(El.div,{className:"fixed bottom-6 right-6 z-50 cursor-pointer",whileHover:{scale:1.1},whileTap:{scale:.95},onClick:n,role:"button","aria-label":"Open Fluxy chat",children:p.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-11 w-auto drop-shadow-lg",draggable:!1})})}const Kj=[{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}],Zj={anthropic:[{id:"claude-sonnet-4-20250514",label:"Claude Sonnet 4"},{id:"claude-opus-4-20250514",label:"Claude Opus 4"},{id:"claude-haiku-4-5-20251001",label:"Claude 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,Bv=[{tier:"premium",label:n=>`${n}.fluxy.bot`,badge:"$5",badgeCls:"bg-primary/15 text-primary border-primary/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 Fj({models:n,value:i,onChange:l}){const[r,c]=S.useState(!1),f=S.useRef(null);S.useEffect(()=>{if(!r)return;const h=y=>{f.current&&!f.current.contains(y.target)&&c(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[r]);const d=n.find(h=>h.id===i);return p.jsxs("div",{className:"relative",ref:f,children:[p.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-primary/30 transition-colors",children:[p.jsx("span",{className:d?"text-white":"text-white/20",children:d?d.label:"Choose a model..."}),p.jsx(Al,{className:`h-4 w-4 text-white/30 transition-transform ${r?"rotate-180":""}`})]}),r&&p.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=>p.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-primary bg-primary/10":"text-white/70 hover:bg-white/[0.04] hover:text-white"}`,children:h.label},h.id))})]})}function Qj({onComplete:n}){const[i,l]=S.useState(0),[r,c]=S.useState(""),[f,d]=S.useState("anthropic"),[h,y]=S.useState(""),[g,v]=S.useState(!1),[b,T]=S.useState({anthropic:"idle",openai:"idle",ollama:"connected"}),[E,j]=S.useState(!1),[C,M]=S.useState(""),[R,G]=S.useState(!1),[k,B]=S.useState(),[K,W]=S.useState(!1),[Z,L]=S.useState(!1),[tt,dt]=S.useState(),[ut,Et]=S.useState(""),[Ct,Gt]=S.useState(""),[Nt,_]=S.useState(null),[F,$]=S.useState(""),[mt,Q]=S.useState({}),[A,Y]=S.useState("at"),[J,et]=S.useState(!1),[I,rt]=S.useState(!1),[yt,qt]=S.useState(""),ht=S.useRef(null),[oe,He]=S.useState(null),[de,fn]=S.useState(!1),[we,li]=S.useState(!1),[dn,zl]=S.useState(""),[hn,hs]=S.useState(""),[ja,ms]=S.useState(""),[Xo,_l]=S.useState(!1),[It,Po]=S.useState(!1),[ri,Vl]=S.useState(""),[Da,oi]=S.useState(""),[Ra,kl]=S.useState(!1),[Ll,Zn]=S.useState(!1),[Kt,tn]=S.useState(!1),[Xt,Ul]=S.useState(""),ps=S.useRef(!1),En=b[f]==="connected";S.useEffect(()=>{fetch("/api/onboard/status").then(q=>q.json()).then(q=>{q.userName&&c(q.userName),q.handle&&(Gt(q.handle.username),Y(q.handle.tier||"at"),He({username:q.handle.username,tier:q.handle.tier,url:q.handle.url}),rt(!0),qt(q.handle.url)),q.portalUser&&zl(q.portalUser),q.portalConfigured&&Po(!0),q.provider&&d(q.provider),q.model&&y(q.model),q.whisperEnabled&&(tn(!0),Ul(q.whisperKey||"")),ps.current=!0}).catch(()=>{ps.current=!0})},[]),S.useEffect(()=>{f!=="anthropic"||b.anthropic==="connected"||fetch("/api/auth/claude/status").then(q=>q.json()).then(q=>{q.authenticated&&T(ft=>({...ft,anthropic:"connected"}))}).catch(()=>{})},[f]),S.useEffect(()=>{f!=="openai"||b.openai==="connected"||fetch("/api/auth/codex/status").then(q=>q.json()).then(q=>{q.authenticated&&T(ft=>({...ft,openai:"connected"}))}).catch(()=>{})},[f]),S.useEffect(()=>{if(!Z)return;const q=setInterval(async()=>{try{(await(await fetch("/api/auth/codex/status")).json()).authenticated&&(L(!1),T(Jn=>({...Jn,openai:"connected"})))}catch{}},2e3);return()=>clearInterval(q)},[Z]),S.useEffect(()=>{if(ht.current&&clearTimeout(ht.current),!ps.current||oe&&I&&Ct===oe.username)return;_(null),$(""),Q({}),rt(!1),qt("");const q=Ct.trim();if(q){if(q.length<3){_("invalid"),$("At least 3 characters");return}return _("checking"),ht.current=setTimeout(async()=>{try{const he=await(await fetch(`/api/handle/check/${encodeURIComponent(q)}`)).json();if(!he.valid)_("invalid"),$(he.error);else{const Jn={};for(const za of he.handles)Jn[za.tier]=za.available;Q(Jn),_("ready");const Yl=Bv.find(za=>Jn[za.tier]);Yl&&!Jn[A]&&Y(Yl.tier)}}catch{_(null)}},400),()=>{ht.current&&clearTimeout(ht.current)}}},[Ct]);const ui=q=>{Gt(q.toLowerCase().replace(/[^a-z0-9-]/g,""))},ci=async()=>{if(!(!Ct||Nt!=="ready"||!mt[A])){et(!0);try{const ft=await(await fetch("/api/handle/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Ct,tier:A})})).json();ft.ok?(rt(!0),qt(ft.url)):($(ft.error||"Registration failed"),_("invalid"))}catch{$("Could not reach server"),_("invalid")}finally{et(!1)}}},fi=async()=>{if(!(!Ct||Nt!=="ready"||!mt[A])){li(!0);try{const ft=await(await fetch("/api/handle/change",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Ct,tier:A})})).json();ft.ok?(rt(!0),qt(ft.url),He({username:Ct,tier:A,url:ft.url}),fn(!1)):($(ft.error||"Handle change failed"),_("invalid"))}catch{$("Could not reach server"),_("invalid")}finally{li(!1)}}},An=q=>{f==="openai"&&q!=="openai"&&Z&&(fetch("/api/auth/codex/cancel",{method:"POST"}),L(!1)),d(q),y(""),j(!1),M(""),B(void 0),L(!1),dt(void 0)},di=async()=>{B(void 0);try{const ft=await(await fetch("/api/auth/claude/start",{method:"POST"})).json();ft.success&&ft.authUrl?(window.open(ft.authUrl,"_blank"),j(!0)):B(ft.error||"Failed to start authentication")}catch(q){B(q.message)}},Fn=async()=>{if(C.trim()){G(!0),B(void 0);try{const ft=await(await fetch("/api/auth/claude/exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:C.trim()})})).json();ft.success?T(he=>({...he,anthropic:"connected"})):B(ft.error||"Code exchange failed")}catch(q){B(q.message)}finally{G(!1)}}},Ko=async()=>{try{const q=await navigator.clipboard.readText();q&&M(q.trim())}catch{}},Bl=async()=>{W(!0),B(void 0);try{(await(await fetch("/api/auth/claude/status")).json()).authenticated?T(he=>({...he,anthropic:"connected"})):B("No active session found. Please authenticate first.")}catch{}finally{W(!1)}},gs=async()=>{L(!0),dt(void 0);try{const ft=await(await fetch("/api/auth/codex/start",{method:"POST"})).json();ft.success&&ft.authUrl?window.open(ft.authUrl,"_blank"):(L(!1),dt(ft.error||"Failed to start authentication"))}catch(q){L(!1),dt(q.message)}},Oa=()=>{L(!1),fetch("/api/auth/codex/cancel",{method:"POST"})},Hl=hn===ja,ys=dn.trim().length>=3&&hn.length>=6&&Hl,Gl=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 Gl;case 4:return!!(f&&h&&En);case 5:return!0;default:return!1}})(),en=()=>{Qn&&i<Uv-1&&l(q=>q+1)},vs=()=>{i>0&&l(q=>q-1)},hi=q=>{q.key==="Enter"&&Qn&&en()},ql=async()=>{v(!0);try{await fetch("/api/onboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userName:r.trim(),agentName:Ct.trim()||"Fluxy",provider:f,model:h,apiKey:"",baseUrl:f==="ollama"&&ut||void 0,whisperEnabled:Kt,whisperKey:Kt?Xt:"",portalUser:dn.trim(),portalPass:hn})}),n()}catch(q){console.error("Onboard failed:",q),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 focus:border-primary/40 placeholder:text-white/20 transition-colors",$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 focus:border-primary/30 placeholder:text-white/20 transition-colors";return p.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4",children:[p.jsx("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-md"}),p.jsxs(El.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:[p.jsx("div",{className:"flex justify-center gap-2 pt-6",children:Array.from({length:Uv},(q,ft)=>p.jsx("div",{className:`h-1.5 rounded-full transition-all duration-300 ${ft===i?"w-7 bg-primary":ft<i?"w-1.5 bg-primary/60":"w-1.5 bg-white/10"}`},ft))}),p.jsx(Hx,{mode:"wait",children:p.jsxs(El.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&&p.jsxs("div",{className:"flex flex-col items-center text-center",children:[p.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-16 w-auto mb-4"}),p.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Welcome to Fluxy"}),p.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."}),p.jsxs("button",{onClick:en,className:"mt-6 px-7 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center gap-2",children:["Get Started",p.jsx(vn,{className:"h-4 w-4"})]})]}),i===1&&p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"What's your name?"}),p.jsx("p",{className:"text-white/40 text-[13px] mt-1.5 leading-relaxed",children:"This is how your agent will address you."}),p.jsxs("div",{className:"mt-5 flex items-center gap-3",children:[p.jsx("input",{type:"text",value:r,onChange:q=>c(q.target.value),onKeyDown:hi,placeholder:"Enter your name",autoFocus:!0,className:xe+" flex-1"}),p.jsx("button",{onClick:en,disabled:!Qn,className:"shrink-0 h-12 w-12 flex items-center justify-center rounded-full bg-primary hover:bg-primary/90 text-white transition-colors disabled:opacity-30",children:p.jsx(vn,{className:"h-5 w-5"})})]})]}),i===2&&p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Name your bot"}),p.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&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(cl,{className:"h-4 w-4 text-emerald-400"}),p.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Current handle"})]}),p.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:yt})]}),p.jsxs("div",{className:"flex gap-2 mt-4",children:[p.jsxs("button",{onClick:en,className:"flex-1 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",p.jsx(vn,{className:"h-4 w-4"})]}),p.jsx("button",{onClick:()=>{fn(!0),rt(!1),Gt(""),_(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&&p.jsxs("div",{className:"mt-4 bg-amber-500/8 border border-amber-500/20 rounded-xl px-4 py-3",children:[p.jsx("p",{className:"text-amber-400/90 text-[13px] font-medium",children:"Changing your handle"}),p.jsxs("p",{className:"text-amber-400/60 text-[12px] mt-1",children:["Your current handle ",p.jsx("span",{className:"font-mono",children:oe?.url})," will be released and become available for others."]})]}),(!oe||de||!I)&&!(oe&&I&&!de)&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"relative mt-5",children:[p.jsx("input",{type:"text",value:Ct,onChange:q=>ui(q.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":"")}),Nt&&Ct.length>0&&!I&&p.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:[Nt==="checking"&&p.jsx("div",{className:"w-5 h-5 border-2 border-white/10 border-t-primary rounded-full animate-spin"}),Nt==="invalid"&&p.jsx("div",{className:"w-6 h-6 rounded-full bg-amber-500/15 flex items-center justify-center",children:p.jsx("svg",{className:"w-3.5 h-3.5 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3m0 4h.01"})})})]})]}),Nt==="invalid"&&F&&p.jsx("p",{className:"text-amber-400 text-[12px] mt-2",children:F}),Nt==="ready"&&Ct.length>0&&!I&&p.jsx("div",{className:"space-y-2 mt-4",children:Bv.map(q=>{const he=mt[q.tier]===!1;return p.jsxs("button",{onClick:()=>!he&&Y(q.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":A===q.tier?q.highlight?"border-primary/40 bg-primary/[0.06]":"border-primary/30 bg-white/[0.04]":"border-white/[0.06] bg-transparent hover:border-white/10 hover:bg-white/[0.02]"}`,children:[p.jsx("span",{className:"font-mono text-[13px] text-white/70",children:q.label(Ct)}),he?p.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"}):p.jsx("span",{className:`text-[11px] font-medium px-2.5 py-0.5 rounded-full border ${q.badgeCls}`,children:q.badge})]},q.tier)})}),I&&p.jsxs("div",{className:"mt-4 bg-emerald-500/8 border border-emerald-500/15 rounded-xl px-4 py-3",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(cl,{className:"h-4 w-4 text-emerald-400"}),p.jsx("p",{className:"text-emerald-400/90 text-[13px] font-medium",children:"Handle claimed!"})]}),p.jsx("p",{className:"text-emerald-400/60 text-[12px] mt-1 font-mono",children:yt})]}),Nt==="ready"&&mt[A]&&Ct.length>0&&!I&&p.jsx("button",{onClick:de?fi:ci,disabled:J||we,className:"w-full mt-4 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:J||we?p.jsxs(p.Fragment,{children:[p.jsx(Wi,{className:"h-4 w-4 animate-spin"}),de?"Changing...":"Claiming..."]}):p.jsxs(p.Fragment,{children:[de?"Change Handle":"Claim & Continue",p.jsx(vn,{className:"h-4 w-4"})]})}),I&&p.jsxs("button",{onClick:en,className:"w-full mt-4 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2",children:["Continue",p.jsx(vn,{className:"h-4 w-4"})]}),de&&!I&&p.jsx("button",{onClick:()=>{fn(!1),Gt(oe.username),rt(!0),qt(oe.url),Y(oe.tier),_(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&&p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Secure your portal"}),p.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&&yt&&p.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:[p.jsx("span",{className:"font-mono text-[13px] text-white/60 truncate flex-1",children:yt}),p.jsx("button",{onClick:()=>{navigator.clipboard.writeText(yt),_l(!0),setTimeout(()=>_l(!1),2e3)},className:"shrink-0 text-white/30 hover:text-white/60 transition-colors",children:Xo?p.jsx(cl,{className:"h-4 w-4 text-emerald-400"}):p.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[p.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),p.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})})]}),It&&p.jsx("div",{className:"mt-4 bg-white/[0.02] border border-white/[0.06] rounded-xl px-4 py-2.5",children:p.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."})}),p.jsxs("div",{className:"mt-5",children:[p.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Username"}),p.jsx("input",{type:"text",value:dn,onChange:q=>zl(q.target.value.replace(/\s/g,"").toLowerCase()),placeholder:"admin",autoFocus:!0,autoComplete:"username",className:xe+" font-mono"}),dn.length>0&&dn.trim().length<3&&p.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 3 characters"})]}),It&&p.jsxs("div",{className:"mt-3",children:[p.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Current password"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"password",value:ri,onChange:q=>{Vl(q.target.value),oi(""),kl(!1)},placeholder:"Enter current password to change it",autoComplete:"current-password",className:xe+" flex-1"}),ri.length>0&&!Ra&&p.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?kl(!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?p.jsx(Wi,{className:"h-4 w-4 animate-spin"}):"Verify"}),Ra&&p.jsx("div",{className:"shrink-0 w-10 h-10 flex items-center justify-center",children:p.jsx(cl,{className:"h-4 w-4 text-emerald-400"})})]}),Da&&p.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:Da})]}),(!It||Ra)&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"mt-3",children:[p.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:It?"New password":"Password"}),p.jsx("input",{type:"password",value:hn,onChange:q=>hs(q.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:hi,className:xe}),hn.length>0&&hn.length<6&&p.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"At least 6 characters"})]}),p.jsxs("div",{className:"mt-3",children:[p.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:It?"Confirm new password":"Confirm password"}),p.jsx("input",{type:"password",value:ja,onChange:q=>ms(q.target.value),placeholder:"••••••••",autoComplete:"new-password",onKeyDown:hi,className:xe}),ja.length>0&&!Hl&&p.jsx("p",{className:"text-red-400/70 text-[11px] mt-1",children:"Passwords don't match"})]})]}),p.jsxs("button",{onClick:en,disabled:!Qn,className:"w-full mt-5 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",p.jsx(vn,{className:"h-4 w-4"})]})]}),i===4&&p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Choose your AI provider"}),p.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."}),p.jsx("div",{className:"flex gap-2.5 mt-4",children:Kj.map(q=>p.jsxs("button",{onClick:()=>An(q.id),className:`flex-1 relative rounded-xl border transition-all duration-200 p-3 text-left ${f===q.id?"bg-white/[0.04] border-primary/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:[p.jsxs("div",{className:"flex flex-col items-center gap-1.5 py-0.5",children:[q.icon?p.jsx("img",{src:q.icon,alt:q.name,className:"w-8 h-8 rounded-lg"}):p.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"}),p.jsxs("div",{className:"text-center",children:[p.jsx("div",{className:"text-[13px] font-medium text-white",children:q.name}),p.jsx("div",{className:"text-[10px] text-white/30",children:q.subtitle})]})]}),b[q.id]==="connected"?p.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 rounded-full bg-emerald-500/15 flex items-center justify-center",children:p.jsx(cl,{className:"h-2.5 w-2.5 text-emerald-400"})}):f===q.id?p.jsx("div",{className:"absolute top-2 right-2 w-2 h-2 rounded-full bg-primary"}):null]},q.id))}),p.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),f==="anthropic"&&p.jsxs("div",{className:"space-y-2.5",children:[En&&p.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:p.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — Anthropic subscription is active."})}),!En&&p.jsxs(p.Fragment,{children:[k&&p.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:p.jsx("p",{className:"text-red-400/90 text-[12px]",children:k})}),p.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((q,ft)=>p.jsxs("div",{className:"flex items-start gap-2",children:[p.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:ft+1}),p.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:q})]},ft))}),p.jsx("button",{onClick:di,className:"w-full py-2.5 px-4 bg-primary hover:bg-primary/90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2",children:E?p.jsxs(p.Fragment,{children:[p.jsx(X2,{className:"h-3.5 w-3.5 opacity-60"}),"Open authentication page again"]}):p.jsxs(p.Fragment,{children:["Authenticate with Anthropic",p.jsx(vn,{className:"h-3.5 w-3.5 opacity-60"})]})}),p.jsxs("div",{className:"relative",children:[p.jsx("input",{type:"text",value:C,onChange:q=>M(q.target.value),onKeyDown:q=>q.key==="Enter"&&Fn(),placeholder:"Paste your code here...",className:$t+" pr-10 font-mono"}),p.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:p.jsx(H2,{className:"h-3.5 w-3.5"})})]}),p.jsx("button",{onClick:Fn,disabled:!C.trim()||R,className:"w-full py-2.5 px-4 bg-primary hover:bg-primary/90 text-white text-[13px] font-medium rounded-xl transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:R?p.jsxs(p.Fragment,{children:[p.jsx(Wi,{className:"h-3.5 w-3.5 animate-spin"}),"Verifying..."]}):"Connect"}),p.jsxs("button",{onClick:Bl,disabled:K,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:[K?p.jsx(Wi,{className:"h-3 w-3 animate-spin"}):p.jsx(aT,{className:"h-3 w-3"}),K?"Checking...":"I'm already authenticated"]})]})]}),f==="openai"&&p.jsxs("div",{className:"space-y-2.5",children:[En&&p.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:p.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"Connected — ChatGPT subscription is active."})}),!En&&p.jsxs(p.Fragment,{children:[tt&&p.jsx("div",{className:"bg-red-500/8 border border-red-500/15 rounded-lg px-3.5 py-2.5",children:p.jsx("p",{className:"text-red-400/90 text-[12px]",children:tt})}),p.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((q,ft)=>p.jsxs("div",{className:"flex items-start gap-2",children:[p.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:ft+1}),p.jsx("p",{className:"text-white/40 text-[12px] leading-relaxed",children:q})]},ft))}),p.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?p.jsxs(p.Fragment,{children:[p.jsx(Wi,{className:"h-3.5 w-3.5 animate-spin opacity-60"}),"Waiting for sign-in..."]}):p.jsxs(p.Fragment,{children:["Authenticate with ChatGPT",p.jsx(vn,{className:"h-3.5 w-3.5 opacity-60"})]})}),Z&&p.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"&&p.jsxs("div",{className:"space-y-2.5",children:[p.jsx("div",{className:"bg-emerald-500/8 border border-emerald-500/15 rounded-lg px-3.5 py-2.5",children:p.jsx("p",{className:"text-emerald-400/90 text-[12px]",children:"No authentication needed — Ollama runs locally."})}),p.jsxs("div",{children:[p.jsxs("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:["Base URL ",p.jsx("span",{className:"text-white/20",children:"(optional)"})]}),p.jsx("input",{type:"text",value:ut,onChange:q=>Et(q.target.value),placeholder:"http://localhost:11434",className:$t})]})]}),En&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"border-t border-white/[0.06] mt-4 mb-3"}),p.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"Select a model"}),p.jsx(Fj,{models:Zj[f]||[],value:h,onChange:y})]}),En&&p.jsxs("button",{onClick:en,disabled:!Qn,className:"w-full mt-4 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:["Continue",p.jsx(vn,{className:"h-4 w-4"})]})]}),i===5&&p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[p.jsx("h1",{className:"text-xl font-bold text-white tracking-tight",children:"Voice Messages"}),p.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"})]}),p.jsx("p",{className:"text-white/40 text-[13px] mt-1 leading-relaxed",children:"Allow users to send audio messages that are automatically transcribed."}),p.jsx("button",{onClick:()=>tn(q=>!q),className:`w-full mt-5 rounded-xl border transition-all duration-200 p-4 text-left ${Kt?"bg-white/[0.04] border-primary/40":"bg-transparent border-white/[0.06] hover:border-white/10 hover:bg-white/[0.02]"}`,children:p.jsxs("div",{className:"flex items-center gap-3.5",children:[p.jsx("img",{src:"/icons/openai.svg",alt:"OpenAI",className:"w-10 h-10 rounded-xl bg-white/[0.04] p-1.5"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("div",{className:"text-[14px] font-medium text-white",children:"OpenAI Whisper"}),p.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."})]}),p.jsx("div",{className:`w-10 h-[22px] rounded-full transition-colors duration-200 flex items-center px-0.5 shrink-0 ${Kt?"bg-primary":"bg-white/[0.08]"}`,children:p.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&&p.jsxs("div",{className:"mt-3",children:[p.jsx("label",{className:"text-[12px] text-white/40 font-medium mb-1.5 block",children:"OpenAI API Key"}),p.jsx("input",{type:"password",value:Xt,onChange:q=>Ul(q.target.value.trim()),placeholder:"sk-...",autoComplete:"off",className:xe+" font-mono text-[13px]"}),Xt.length>0&&!Xt.startsWith("sk-")&&p.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key should start with sk-"}),Xt.length>0&&Xt.startsWith("sk-")&&Xt.length<20&&p.jsx("p",{className:"text-amber-400/70 text-[11px] mt-1",children:"Key looks too short"}),p.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:[p.jsx(kf,{className:"h-4 w-4 text-primary/60 mt-0.5 shrink-0"}),p.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."})]})]}),p.jsx("button",{onClick:ql,disabled:g||Kt&&(!Xt.startsWith("sk-")||Xt.length<20),className:"w-full mt-5 py-3 bg-primary hover:bg-primary/90 text-white text-[14px] font-semibold rounded-full transition-colors flex items-center justify-center gap-2 disabled:opacity-40",children:g?p.jsxs(p.Fragment,{children:[p.jsx(Wi,{className:"h-4 w-4 animate-spin"}),"Setting up..."]}):p.jsxs(p.Fragment,{children:["Complete Setup",p.jsx(vn,{className:"h-4 w-4"})]})}),!Kt&&p.jsx("p",{className:"text-center text-white/20 text-[11px] mt-2.5",children:"You can enable this later in Settings."})]})]},i)}),i>0&&p.jsx("div",{className:"px-8 pb-5 -mt-3",children:p.jsx("button",{onClick:vs,className:"text-white/25 hover:text-white/50 text-[12px] transition-colors",children:"← Back"})})]})]})}function Jj(){return p.jsx("div",{className:"flex items-center justify-center h-dvh p-6 text-center",children:p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),p.jsx("p",{className:"text-sm text-muted-foreground",children:"The dashboard encountered an error. Use the Fluxy button to continue chatting."})]})})}function Wj(){const[n,i]=S.useState(!1),[l,r]=S.useState(!1),{ws:c,connected:f}=x2();return S.useEffect(()=>{fetch("/api/settings").then(d=>d.json()).then(d=>{d.onboard_complete!=="true"&&r(!0)}).catch(()=>r(!0))},[]),p.jsxs(p.Fragment,{children:[p.jsx(S2,{fallback:p.jsx(Jj,{}),children:p.jsx(BA,{onOpenOnboard:()=>r(!0),children:p.jsx(XA,{})})}),p.jsx(ub,{open:n,onOpenChange:i,children:p.jsxs(cb,{side:"right",className:"w-full sm:max-w-md !gap-0 !p-0 !border-l-0",onOpenAutoFocus:d=>d.preventDefault(),children:[p.jsxs("div",{className:"flex items-center gap-3 px-4 pr-12 py-3 border-b border-border shrink-0",children:[p.jsx("img",{src:"/fluxy.png",alt:"Fluxy",className:"h-5 w-auto"}),p.jsx(fb,{className:"text-sm font-semibold",children:"Fluxy"}),p.jsx("div",{className:`h-2 w-2 rounded-full ${f?"bg-green-500":"bg-red-500"}`}),p.jsx(kA,{className:"sr-only",children:"Chat with your Fluxy AI assistant"})]}),p.jsx("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:p.jsx(Xj,{ws:c})})]})}),p.jsx(Pj,{onClick:()=>i(d=>!d)}),l&&p.jsx(Qj,{onComplete:()=>r(!1)})]})}v2.createRoot(document.getElementById("root")).render(p.jsx(Pn.StrictMode,{children:p.jsx(Wj,{})}));
|