@hasna/conversations 0.1.7 → 0.1.8
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/bin/index.js +1 -1
- package/bin/mcp.js +1 -1
- package/dashboard/dist/assets/index-7Zcqwtw2.css +1 -0
- package/dashboard/dist/assets/index-B_w-jfMv.js +186 -0
- package/dashboard/dist/index.html +2 -2
- package/package.json +1 -1
- package/dashboard/dist/assets/index-B6bl8Jzt.css +0 -1
- package/dashboard/dist/assets/index-Dbrg7by9.js +0 -183
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
function _b(a,u){for(var c=0;c<u.length;c++){const r=u[c];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in a)){const d=Object.getOwnPropertyDescriptor(r,s);d&&Object.defineProperty(a,s,d.get?d:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const d of s)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function c(s){const d={};return s.integrity&&(d.integrity=s.integrity),s.referrerPolicy&&(d.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?d.credentials="include":s.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(s){if(s.ep)return;s.ep=!0;const d=c(s);fetch(s.href,d)}})();function Kg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Pc={exports:{}},wi={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ng;function Ob(){if(ng)return wi;ng=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(r,s,d){var m=null;if(d!==void 0&&(m=""+d),s.key!==void 0&&(m=""+s.key),"key"in s){d={};for(var g in s)g!=="key"&&(d[g]=s[g])}else d=s;return s=d.ref,{$$typeof:a,type:r,key:m,ref:s!==void 0?s:null,props:d}}return wi.Fragment=u,wi.jsx=c,wi.jsxs=c,wi}var lg;function Rb(){return lg||(lg=1,Pc.exports=Ob()),Pc.exports}var h=Rb(),es={exports:{}},he={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ag;function Nb(){if(ag)return he;ag=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),C=Symbol.iterator;function M(A){return A===null||typeof A!="object"?null:(A=C&&A[C]||A["@@iterator"],typeof A=="function"?A:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,z={};function H(A,B,W){this.props=A,this.context=B,this.refs=z,this.updater=W||D}H.prototype.isReactComponent={},H.prototype.setState=function(A,B){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,B,"setState")},H.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function J(){}J.prototype=H.prototype;function X(A,B,W){this.props=A,this.context=B,this.refs=z,this.updater=W||D}var V=X.prototype=new J;V.constructor=X,w(V,H.prototype),V.isPureReactComponent=!0;var I=Array.isArray;function $(){}var Z={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ce(A,B,W){var Y=W.ref;return{$$typeof:a,type:A,key:B,ref:Y!==void 0?Y:null,props:W}}function de(A,B){return ce(A.type,B,A.props)}function fe(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function re(A){var B={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return B[W]})}var ge=/\/+/g;function me(A,B){return typeof A=="object"&&A!==null&&A.key!=null?re(""+A.key):B.toString(36)}function ye(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then($,$):(A.status="pending",A.then(function(B){A.status==="pending"&&(A.status="fulfilled",A.value=B)},function(B){A.status==="pending"&&(A.status="rejected",A.reason=B)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,B,W,Y,P){var ie=typeof A;(ie==="undefined"||ie==="boolean")&&(A=null);var ee=!1;if(A===null)ee=!0;else switch(ie){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(A.$$typeof){case a:case u:ee=!0;break;case S:return ee=A._init,O(ee(A._payload),B,W,Y,P)}}if(ee)return P=P(A),ee=Y===""?"."+me(A,0):Y,I(P)?(W="",ee!=null&&(W=ee.replace(ge,"$&/")+"/"),O(P,B,W,"",function(rt){return rt})):P!=null&&(fe(P)&&(P=de(P,W+(P.key==null||A&&A.key===P.key?"":(""+P.key).replace(ge,"$&/")+"/")+ee)),B.push(P)),1;ee=0;var Le=Y===""?".":Y+":";if(I(A))for(var be=0;be<A.length;be++)Y=A[be],ie=Le+me(Y,be),ee+=O(Y,B,W,ie,P);else if(be=M(A),typeof be=="function")for(A=be.call(A),be=0;!(Y=A.next()).done;)Y=Y.value,ie=Le+me(Y,be++),ee+=O(Y,B,W,ie,P);else if(ie==="object"){if(typeof A.then=="function")return O(ye(A),B,W,Y,P);throw B=String(A),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Q(A,B,W){if(A==null)return A;var Y=[],P=0;return O(A,Y,"","",function(ie){return B.call(W,ie,P++)}),Y}function U(A){if(A._status===-1){var B=A._result;B=B(),B.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=B)}if(A._status===1)return A._result.default;throw A._result}var F=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ue={map:Q,forEach:function(A,B,W){Q(A,function(){B.apply(this,arguments)},W)},count:function(A){var B=0;return Q(A,function(){B++}),B},toArray:function(A){return Q(A,function(B){return B})||[]},only:function(A){if(!fe(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return he.Activity=x,he.Children=ue,he.Component=H,he.Fragment=c,he.Profiler=s,he.PureComponent=X,he.StrictMode=r,he.Suspense=y,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,he.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Z.H.useMemoCache(A)}},he.cache=function(A){return function(){return A.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(A,B,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var Y=w({},A.props),P=A.key;if(B!=null)for(ie in B.key!==void 0&&(P=""+B.key),B)!K.call(B,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&B.ref===void 0||(Y[ie]=B[ie]);var ie=arguments.length-2;if(ie===1)Y.children=W;else if(1<ie){for(var ee=Array(ie),Le=0;Le<ie;Le++)ee[Le]=arguments[Le+2];Y.children=ee}return ce(A.type,P,Y)},he.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},he.createElement=function(A,B,W){var Y,P={},ie=null;if(B!=null)for(Y in B.key!==void 0&&(ie=""+B.key),B)K.call(B,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(P[Y]=B[Y]);var ee=arguments.length-2;if(ee===1)P.children=W;else if(1<ee){for(var Le=Array(ee),be=0;be<ee;be++)Le[be]=arguments[be+2];P.children=Le}if(A&&A.defaultProps)for(Y in ee=A.defaultProps,ee)P[Y]===void 0&&(P[Y]=ee[Y]);return ce(A,ie,P)},he.createRef=function(){return{current:null}},he.forwardRef=function(A){return{$$typeof:g,render:A}},he.isValidElement=fe,he.lazy=function(A){return{$$typeof:S,_payload:{_status:-1,_result:A},_init:U}},he.memo=function(A,B){return{$$typeof:p,type:A,compare:B===void 0?null:B}},he.startTransition=function(A){var B=Z.T,W={};Z.T=W;try{var Y=A(),P=Z.S;P!==null&&P(W,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then($,F)}catch(ie){F(ie)}finally{B!==null&&W.types!==null&&(B.types=W.types),Z.T=B}},he.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},he.use=function(A){return Z.H.use(A)},he.useActionState=function(A,B,W){return Z.H.useActionState(A,B,W)},he.useCallback=function(A,B){return Z.H.useCallback(A,B)},he.useContext=function(A){return Z.H.useContext(A)},he.useDebugValue=function(){},he.useDeferredValue=function(A,B){return Z.H.useDeferredValue(A,B)},he.useEffect=function(A,B){return Z.H.useEffect(A,B)},he.useEffectEvent=function(A){return Z.H.useEffectEvent(A)},he.useId=function(){return Z.H.useId()},he.useImperativeHandle=function(A,B,W){return Z.H.useImperativeHandle(A,B,W)},he.useInsertionEffect=function(A,B){return Z.H.useInsertionEffect(A,B)},he.useLayoutEffect=function(A,B){return Z.H.useLayoutEffect(A,B)},he.useMemo=function(A,B){return Z.H.useMemo(A,B)},he.useOptimistic=function(A,B){return Z.H.useOptimistic(A,B)},he.useReducer=function(A,B,W){return Z.H.useReducer(A,B,W)},he.useRef=function(A){return Z.H.useRef(A)},he.useState=function(A){return Z.H.useState(A)},he.useSyncExternalStore=function(A,B,W){return Z.H.useSyncExternalStore(A,B,W)},he.useTransition=function(){return Z.H.useTransition()},he.version="19.2.4",he}var ig;function Ts(){return ig||(ig=1,es.exports=Nb()),es.exports}var b=Ts();const ul=Kg(b),Jg=_b({__proto__:null,default:ul},[b]);var ts={exports:{}},_i={},ns={exports:{}},ls={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var ug;function Db(){return ug||(ug=1,(function(a){function u(O,Q){var U=O.length;O.push(Q);e:for(;0<U;){var F=U-1>>>1,ue=O[F];if(0<s(ue,Q))O[F]=Q,O[U]=ue,U=F;else break e}}function c(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var Q=O[0],U=O.pop();if(U!==Q){O[0]=U;e:for(var F=0,ue=O.length,A=ue>>>1;F<A;){var B=2*(F+1)-1,W=O[B],Y=B+1,P=O[Y];if(0>s(W,U))Y<ue&&0>s(P,W)?(O[F]=P,O[Y]=U,F=Y):(O[F]=W,O[B]=U,F=B);else if(Y<ue&&0>s(P,U))O[F]=P,O[Y]=U,F=Y;else break e}}return Q}function s(O,Q){var U=O.sortIndex-Q.sortIndex;return U!==0?U:O.id-Q.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();a.unstable_now=function(){return m.now()-g}}var y=[],p=[],S=1,x=null,C=3,M=!1,D=!1,w=!1,z=!1,H=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function V(O){for(var Q=c(p);Q!==null;){if(Q.callback===null)r(p);else if(Q.startTime<=O)r(p),Q.sortIndex=Q.expirationTime,u(y,Q);else break;Q=c(p)}}function I(O){if(w=!1,V(O),!D)if(c(y)!==null)D=!0,$||($=!0,re());else{var Q=c(p);Q!==null&&ye(I,Q.startTime-O)}}var $=!1,Z=-1,K=5,ce=-1;function de(){return z?!0:!(a.unstable_now()-ce<K)}function fe(){if(z=!1,$){var O=a.unstable_now();ce=O;var Q=!0;try{e:{D=!1,w&&(w=!1,J(Z),Z=-1),M=!0;var U=C;try{t:{for(V(O),x=c(y);x!==null&&!(x.expirationTime>O&&de());){var F=x.callback;if(typeof F=="function"){x.callback=null,C=x.priorityLevel;var ue=F(x.expirationTime<=O);if(O=a.unstable_now(),typeof ue=="function"){x.callback=ue,V(O),Q=!0;break t}x===c(y)&&r(y),V(O)}else r(y);x=c(y)}if(x!==null)Q=!0;else{var A=c(p);A!==null&&ye(I,A.startTime-O),Q=!1}}break e}finally{x=null,C=U,M=!1}Q=void 0}}finally{Q?re():$=!1}}}var re;if(typeof X=="function")re=function(){X(fe)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,me=ge.port2;ge.port1.onmessage=fe,re=function(){me.postMessage(null)}}else re=function(){H(fe,0)};function ye(O,Q){Z=H(function(){O(a.unstable_now())},Q)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(O){O.callback=null},a.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<O?Math.floor(1e3/O):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(O){switch(C){case 1:case 2:case 3:var Q=3;break;default:Q=C}var U=C;C=Q;try{return O()}finally{C=U}},a.unstable_requestPaint=function(){z=!0},a.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var U=C;C=O;try{return Q()}finally{C=U}},a.unstable_scheduleCallback=function(O,Q,U){var F=a.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?F+U:F):U=F,O){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=U+ue,O={id:S++,callback:Q,priorityLevel:O,startTime:U,expirationTime:ue,sortIndex:-1},U>F?(O.sortIndex=U,u(p,O),c(y)===null&&O===c(p)&&(w?(J(Z),Z=-1):w=!0,ye(I,U-F))):(O.sortIndex=ue,u(y,O),D||M||(D=!0,$||($=!0,re()))),O},a.unstable_shouldYield=de,a.unstable_wrapCallback=function(O){var Q=C;return function(){var U=C;C=Q;try{return O.apply(this,arguments)}finally{C=U}}}})(ls)),ls}var og;function zb(){return og||(og=1,ns.exports=Db()),ns.exports}var as={exports:{}},ct={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var rg;function jb(){if(rg)return ct;rg=1;var a=Ts();function u(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},s=Symbol.for("react.portal");function d(y,p,S){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,children:y,containerInfo:p,implementation:S}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ct.createPortal=function(y,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return d(y,p,null,S)},ct.flushSync=function(y){var p=m.T,S=r.p;try{if(m.T=null,r.p=2,y)return y()}finally{m.T=p,r.p=S,r.d.f()}},ct.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},ct.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},ct.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var S=p.as,x=g(S,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,M=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:C,fetchPriority:M}):S==="script"&&r.d.X(y,{crossOrigin:x,integrity:C,fetchPriority:M,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ct.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=g(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},ct.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,x=g(S,p.crossOrigin);r.d.L(y,S,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ct.preloadModule=function(y,p){if(typeof y=="string")if(p){var S=g(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},ct.requestFormReset=function(y){r.d.r(y)},ct.unstable_batchedUpdates=function(y,p){return y(p)},ct.useFormState=function(y,p,S){return m.H.useFormState(y,p,S)},ct.useFormStatus=function(){return m.H.useHostTransitionStatus()},ct.version="19.2.4",ct}var cg;function Fg(){if(cg)return as.exports;cg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),as.exports=jb(),as.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var sg;function Ub(){if(sg)return _i;sg=1;var a=zb(),u=Ts(),c=Fg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return y(i),e;if(o===l)return y(i),t;o=o.sibling}throw Error(r(188))}if(n.return!==l.return)n=i,l=o;else{for(var f=!1,v=i.child;v;){if(v===n){f=!0,n=i,l=o;break}if(v===l){f=!0,l=i,n=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===n){f=!0,n=o,l=i;break}if(v===l){f=!0,l=o,n=i;break}v=v.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,C=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),X=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case H:return"Profiler";case z:return"StrictMode";case I:return"Suspense";case $:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case X:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var ye=Array.isArray,O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},F=[],ue=-1;function A(e){return{current:e}}function B(e){0>ue||(e.current=F[ue],F[ue]=null,ue--)}function W(e,t){ue++,F[ue]=e.current,e.current=t}var Y=A(null),P=A(null),ie=A(null),ee=A(null);function Le(e,t){switch(W(ie,t),W(P,e),W(Y,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mh(t),e=Th(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(Y),W(Y,e)}function be(){B(Y),B(P),B(ie)}function rt(e){e.memoizedState!==null&&W(ee,e);var t=Y.current,n=Th(t,e.type);t!==n&&(W(P,e),W(Y,n))}function Xt(e){P.current===e&&(B(Y),B(P)),ee.current===e&&(B(ee),Ai._currentValue=U)}var Vt,Dn;function $t(e){if(Vt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vt=t&&t[1]||"",Dn=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Vt+e+Dn}var za=!1;function ja(e,t){if(!e||za)return"";za=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(L){var j=L}Reflect.construct(e,[],q)}else{try{q.call()}catch(L){j=L}e.call(q.prototype)}}else{try{throw Error()}catch(L){j=L}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(L){if(L&&j&&typeof L.stack=="string")return[L.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),f=o[0],v=o[1];if(f&&v){var E=f.split(`
|
|
44
|
-
`),N=v.split(`
|
|
45
|
-
`);for(i=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;if(l===E.length||i===N.length)for(l=E.length-1,i=N.length-1;1<=l&&0<=i&&E[l]!==N[i];)i--;for(;1<=l&&0<=i;l--,i--)if(E[l]!==N[i]){if(l!==1||i!==1)do if(l--,i--,0>i||E[l]!==N[i]){var G=`
|
|
46
|
-
`+E[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=i);break}}}finally{za=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$t(n):""}function Bo(e,t){switch(e.tag){case 26:case 27:case 5:return $t(e.type);case 16:return $t("Lazy");case 13:return e.child!==t&&t!==null?$t("Suspense Fallback"):$t("Suspense");case 19:return $t("SuspenseList");case 0:case 15:return ja(e.type,!1);case 11:return ja(e.type.render,!1);case 1:return ja(e.type,!0);case 31:return $t("Activity");default:return""}}function Vi(e){try{var t="",n=null;do t+=Bo(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var zn=Object.prototype.hasOwnProperty,Go=a.unstable_scheduleCallback,ko=a.unstable_cancelCallback,uy=a.unstable_shouldYield,oy=a.unstable_requestPaint,xt=a.unstable_now,ry=a.unstable_getCurrentPriorityLevel,nf=a.unstable_ImmediatePriority,lf=a.unstable_UserBlockingPriority,Qi=a.unstable_NormalPriority,cy=a.unstable_LowPriority,af=a.unstable_IdlePriority,sy=a.log,fy=a.unstable_setDisableYieldValue,Ua=null,St=null;function jn(e){if(typeof sy=="function"&&fy(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Ua,e)}catch{}}var Et=Math.clz32?Math.clz32:hy,dy=Math.log,my=Math.LN2;function hy(e){return e>>>=0,e===0?32:31-(dy(e)/my|0)|0}var Zi=256,Ki=262144,Ji=4194304;function dl(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fi(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,o=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~o,l!==0?i=dl(l):(f&=v,f!==0?i=dl(f):n||(n=v&~e,n!==0&&(i=dl(n))))):(v=l&~o,v!==0?i=dl(v):f!==0?i=dl(f):n||(n=l&~e,n!==0&&(i=dl(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function La(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 uf(){var e=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),e}function Yo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ha(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vy(e,t,n,l,i,o){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,E=e.expirationTimes,N=e.hiddenUpdates;for(n=f&~n;0<n;){var G=31-Et(n),q=1<<G;v[G]=0,E[G]=-1;var j=N[G];if(j!==null)for(N[G]=null,G=0;G<j.length;G++){var L=j[G];L!==null&&(L.lane&=-536870913)}n&=~q}l!==0&&of(e,l,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(f&~t))}function of(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function rf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Et(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function cf(e,t){var n=t&-t;return n=(n&42)!==0?1:qo(n),(n&(e.suspendedLanes|t))!==0?0:n}function qo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sf(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Fh(e.type))}function ff(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var Un=Math.random().toString(36).slice(2),nt="__reactFiber$"+Un,dt="__reactProps$"+Un,Ul="__reactContainer$"+Un,Vo="__reactEvents$"+Un,py="__reactListeners$"+Un,yy="__reactHandles$"+Un,df="__reactResources$"+Un,Ba="__reactMarker$"+Un;function Qo(e){delete e[nt],delete e[dt],delete e[Vo],delete e[py],delete e[yy]}function Ll(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ul]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zh(e);e!==null;){if(n=e[nt])return n;e=zh(e)}return t}e=n,n=e.parentNode}return null}function Hl(e){if(e=e[nt]||e[Ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ga(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Bl(e){var t=e[df];return t||(t=e[df]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Ba]=!0}var mf=new Set,hf={};function ml(e,t){Gl(e,t),Gl(e+"Capture",t)}function Gl(e,t){for(hf[e]=t,e=0;e<t.length;e++)mf.add(t[e])}var by=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]*$"),gf={},vf={};function xy(e){return zn.call(vf,e)?!0:zn.call(gf,e)?!1:by.test(e)?vf[e]=!0:(gf[e]=!0,!1)}function Wi(e,t,n){if(xy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function $i(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function sn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sy(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,o.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zo(e){if(!e._valueTracker){var t=pf(e)?"checked":"value";e._valueTracker=Sy(e,t,""+e[t])}}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=pf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ii(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ey=/[\n"\\]/g;function zt(e){return e.replace(Ey,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ko(e,t,n,l,i,o,f,v){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Jo(e,f,Dt(t)):n!=null?Jo(e,f,Dt(n)):l!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Dt(v):e.removeAttribute("name")}function bf(e,t,n,l,i,o,f,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Zo(e);return}n=n!=null?""+Dt(n):"",t=t!=null?""+Dt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Zo(e)}function Jo(e,t,n){t==="number"&&Ii(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kl(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function xf(e,t,n){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dt(n):""}function Sf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ye(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Dt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Zo(e)}function Yl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ay=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 Ef(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Ay.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Af(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&Ef(e,i,l)}else for(var o in t)t.hasOwnProperty(o)&&Ef(e,o,t[o])}function Fo(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Cy=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"]]),My=/^[\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 Pi(e){return My.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fn(){}var Wo=null;function $o(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,Xl=null;function Cf(e){var t=Hl(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ko(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[dt]||null;if(!i)throw Error(r(90));Ko(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&yf(l)}break e;case"textarea":xf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&kl(e,!!n.multiple,t,!1)}}}var Io=!1;function Mf(e,t,n){if(Io)return e(t,n);Io=!0;try{var l=e(t);return l}finally{if(Io=!1,(ql!==null||Xl!==null)&&(ku(),ql&&(t=ql,e=Xl,Xl=ql=null,Cf(t),e)))for(t=0;t<e.length;t++)Cf(e[t])}}function ka(e,t){var n=e.stateNode;if(n===null)return null;var l=n[dt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Po=!1;if(dn)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){Po=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{Po=!1}var Ln=null,er=null,eu=null;function Tf(){if(eu)return eu;var e,t=er,n=t.length,l,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var f=n-e;for(l=1;l<=f&&t[n-l]===i[o-l];l++);return eu=i.slice(e,1<l?1-l:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nu(){return!0}function wf(){return!1}function mt(e){function t(n,l,i,o,f){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=o,this.target=f,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?nu:wf,this.isPropagationStopped=wf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=mt(hl),qa=x({},hl,{view:0,detail:0}),Ty=mt(qa),tr,nr,Xa,au=x({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xa&&(Xa&&e.type==="mousemove"?(tr=e.screenX-Xa.screenX,nr=e.screenY-Xa.screenY):nr=tr=0,Xa=e),tr)},movementY:function(e){return"movementY"in e?e.movementY:nr}}),_f=mt(au),wy=x({},au,{dataTransfer:0}),_y=mt(wy),Oy=x({},qa,{relatedTarget:0}),lr=mt(Oy),Ry=x({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ny=mt(Ry),Dy=x({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zy=mt(Dy),jy=x({},hl,{data:0}),Of=mt(jy),Uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ly={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"},Hy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function By(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hy[e])?!!t[e]:!1}function ar(){return By}var Gy=x({},qa,{key:function(e){if(e.key){var t=Uy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ly[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ky=mt(Gy),Yy=x({},au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rf=mt(Yy),qy=x({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar}),Xy=mt(qy),Vy=x({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qy=mt(Vy),Zy=x({},au,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ky=mt(Zy),Jy=x({},hl,{newState:0,oldState:0}),Fy=mt(Jy),Wy=[9,13,27,32],ir=dn&&"CompositionEvent"in window,Va=null;dn&&"documentMode"in document&&(Va=document.documentMode);var $y=dn&&"TextEvent"in window&&!Va,Nf=dn&&(!ir||Va&&8<Va&&11>=Va),Df=" ",zf=!1;function jf(e,t){switch(e){case"keyup":return Wy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function Iy(e,t){switch(e){case"compositionend":return Uf(t);case"keypress":return t.which!==32?null:(zf=!0,Df);case"textInput":return e=t.data,e===Df&&zf?null:e;default:return null}}function Py(e,t){if(Vl)return e==="compositionend"||!ir&&jf(e,t)?(e=Tf(),eu=er=Ln=null,Vl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nf&&t.locale!=="ko"?null:t.data;default:return null}}var e0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Lf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e0[e.type]:t==="textarea"}function Hf(e,t,n,l){ql?Xl?Xl.push(l):Xl=[l]:ql=l,t=Ku(t,"onChange"),0<t.length&&(n=new lu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Qa=null,Za=null;function t0(e){bh(e,0)}function iu(e){var t=Ga(e);if(yf(t))return e}function Bf(e,t){if(e==="change")return t}var Gf=!1;if(dn){var ur;if(dn){var or="oninput"in document;if(!or){var kf=document.createElement("div");kf.setAttribute("oninput","return;"),or=typeof kf.oninput=="function"}ur=or}else ur=!1;Gf=ur&&(!document.documentMode||9<document.documentMode)}function Yf(){Qa&&(Qa.detachEvent("onpropertychange",qf),Za=Qa=null)}function qf(e){if(e.propertyName==="value"&&iu(Za)){var t=[];Hf(t,Za,e,$o(e)),Mf(t0,t)}}function n0(e,t,n){e==="focusin"?(Yf(),Qa=t,Za=n,Qa.attachEvent("onpropertychange",qf)):e==="focusout"&&Yf()}function l0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Za)}function a0(e,t){if(e==="click")return iu(t)}function i0(e,t){if(e==="input"||e==="change")return iu(t)}function u0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:u0;function Ka(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!zn.call(t,i)||!At(e[i],t[i]))return!1}return!0}function Xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vf(e,t){var n=Xf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xf(n)}}function Qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ii(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ii(e.document)}return t}function rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var o0=dn&&"documentMode"in document&&11>=document.documentMode,Ql=null,cr=null,Ja=null,sr=!1;function Kf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sr||Ql==null||Ql!==Ii(l)||(l=Ql,"selectionStart"in l&&rr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ja&&Ka(Ja,l)||(Ja=l,l=Ku(cr,"onSelect"),0<l.length&&(t=new lu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ql)))}function gl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionrun:gl("Transition","TransitionRun"),transitionstart:gl("Transition","TransitionStart"),transitioncancel:gl("Transition","TransitionCancel"),transitionend:gl("Transition","TransitionEnd")},fr={},Jf={};dn&&(Jf=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function vl(e){if(fr[e])return fr[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jf)return fr[e]=t[n];return e}var Ff=vl("animationend"),Wf=vl("animationiteration"),$f=vl("animationstart"),r0=vl("transitionrun"),c0=vl("transitionstart"),s0=vl("transitioncancel"),If=vl("transitionend"),Pf=new Map,dr="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(" ");dr.push("scrollEnd");function Qt(e,t){Pf.set(e,t),ml(t,[e])}var uu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jt=[],Kl=0,mr=0;function ou(){for(var e=Kl,t=mr=Kl=0;t<e;){var n=jt[t];jt[t++]=null;var l=jt[t];jt[t++]=null;var i=jt[t];jt[t++]=null;var o=jt[t];if(jt[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}o!==0&&ed(n,i,o)}}function ru(e,t,n,l){jt[Kl++]=e,jt[Kl++]=t,jt[Kl++]=n,jt[Kl++]=l,mr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function hr(e,t,n,l){return ru(e,t,n,l),cu(e)}function pl(e,t){return ru(e,null,null,t),cu(e)}function ed(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Et(n),e=o.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),o):null}function cu(e){if(50<vi)throw vi=0,Ac=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function f0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,l){return new f0(e,t,n,l)}function gr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function td(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function su(e,t,n,l,i,o){var f=0;if(l=e,typeof e=="function")gr(e)&&(f=1);else if(typeof e=="string")f=vb(e,n,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Ct(31,n,t,i),e.elementType=ce,e.lanes=o,e;case w:return yl(n.children,i,o,t);case z:f=8,i|=24;break;case H:return e=Ct(12,n,t,i|2),e.elementType=H,e.lanes=o,e;case I:return e=Ct(13,n,t,i),e.elementType=I,e.lanes=o,e;case $:return e=Ct(19,n,t,i),e.elementType=$,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:f=10;break e;case J:f=9;break e;case V:f=11;break e;case Z:f=14;break e;case K:f=16,l=null;break e}f=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Ct(f,n,t,i),t.elementType=e,t.type=l,t.lanes=o,t}function yl(e,t,n,l){return e=Ct(7,e,l,t),e.lanes=n,e}function vr(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function nd(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function pr(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ld=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var n=ld.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Vi(t)},ld.set(e,t),t)}return{value:e,source:t,stack:Vi(t)}}var Fl=[],Wl=0,fu=null,Fa=0,Lt=[],Ht=0,Hn=null,It=1,Pt="";function hn(e,t){Fl[Wl++]=Fa,Fl[Wl++]=fu,fu=e,Fa=t}function ad(e,t,n){Lt[Ht++]=It,Lt[Ht++]=Pt,Lt[Ht++]=Hn,Hn=e;var l=It;e=Pt;var i=32-Et(l)-1;l&=~(1<<i),n+=1;var o=32-Et(t)+i;if(30<o){var f=i-i%5;o=(l&(1<<f)-1).toString(32),l>>=f,i-=f,It=1<<32-Et(t)+i|n<<i|l,Pt=o+e}else It=1<<o|n<<i|l,Pt=e}function yr(e){e.return!==null&&(hn(e,1),ad(e,1,0))}function br(e){for(;e===fu;)fu=Fl[--Wl],Fl[Wl]=null,Fa=Fl[--Wl],Fl[Wl]=null;for(;e===Hn;)Hn=Lt[--Ht],Lt[Ht]=null,Pt=Lt[--Ht],Lt[Ht]=null,It=Lt[--Ht],Lt[Ht]=null}function id(e,t){Lt[Ht++]=It,Lt[Ht++]=Pt,Lt[Ht++]=Hn,It=t.id,Pt=t.overflow,Hn=e}var lt=null,He=null,Te=!1,Bn=null,Bt=!1,xr=Error(r(519));function Gn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wa(Ut(t,e)),xr}function ud(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[nt]=e,t[dt]=l,n){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(n=0;n<yi.length;n++)Ae(yi[n],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),bf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),Sf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Ah(t.textContent,n)?(l.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),l.onScroll!=null&&Ae("scroll",t),l.onScrollEnd!=null&&Ae("scrollend",t),l.onClick!=null&&(t.onclick=fn),t=!0):t=!1,t||Gn(e,!0)}function od(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:lt=lt.return}}function $l(e){if(e!==lt)return!1;if(!Te)return od(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Bc(e.type,e.memoizedProps)),n=!n),n&&He&&Gn(e),od(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=Dh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=Dh(e)}else t===27?(t=He,Pn(e.type)?(e=Xc,Xc=null,He=e):He=t):He=lt?kt(e.stateNode.nextSibling):null;return!0}function bl(){He=lt=null,Te=!1}function Sr(){var e=Bn;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),Bn=null),e}function Wa(e){Bn===null?Bn=[e]:Bn.push(e)}var Er=A(null),xl=null,gn=null;function kn(e,t,n){W(Er,t._currentValue),t._currentValue=n}function vn(e){e._currentValue=Er.current,B(Er)}function Ar(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Cr(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var f=i.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=i;for(var E=0;E<t.length;E++)if(v.context===t[E]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Ar(o.return,n,e),l||(f=null);break e}o=v.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(r(341));f.lanes|=n,o=f.alternate,o!==null&&(o.lanes|=n),Ar(f,n,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Il(e,t,n,l){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var v=i.type;At(i.pendingProps.value,f.value)||(e!==null?e.push(v):e=[v])}}else if(i===ee.current){if(f=i.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}i=i.return}e!==null&&Cr(t,e,n,l),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sl(e){xl=e,gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return rd(xl,e)}function mu(e,t){return xl===null&&Sl(e),rd(e,t)}function rd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gn===null){if(e===null)throw Error(r(308));gn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gn=gn.next=t;return n}var d0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},m0=a.unstable_scheduleCallback,h0=a.unstable_NormalPriority,Qe={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mr(){return{controller:new d0,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&m0(h0,function(){e.controller.abort()})}var Ia=null,Tr=0,Pl=0,ea=null;function g0(e,t){if(Ia===null){var n=Ia=[];Tr=0,Pl=Oc(),ea={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Tr++,t.then(cd,cd),t}function cd(){if(--Tr===0&&Ia!==null){ea!==null&&(ea.status="fulfilled");var e=Ia;Ia=null,Pl=0,ea=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function v0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var sd=O.S;O.S=function(e,t){Km=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&g0(e,t),sd!==null&&sd(e,t)};var El=A(null);function wr(){var e=El.current;return e!==null?e:Ue.pooledCache}function hu(e,t){t===null?W(El,El.current):W(El,t.pool)}function fd(){var e=wr();return e===null?null:{parent:Qe._currentValue,pool:e}}var ta=Error(r(460)),_r=Error(r(474)),gu=Error(r(542)),vu={then:function(){}};function dd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function md(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(fn,fn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gd(e),e;default:if(typeof t.status=="string")t.then(fn,fn);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gd(e),e}throw Cl=t,ta}}function Al(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Cl=n,ta):n}}var Cl=null;function hd(){if(Cl===null)throw Error(r(459));var e=Cl;return Cl=null,e}function gd(e){if(e===ta||e===gu)throw Error(r(483))}var na=null,Pa=0;function pu(e){var t=Pa;return Pa+=1,na===null&&(na=[]),md(na,e,t)}function ei(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yu(e,t){throw t.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function vd(e){function t(_,T){if(e){var R=_.deletions;R===null?(_.deletions=[T],_.flags|=16):R.push(T)}}function n(_,T){if(!e)return null;for(;T!==null;)t(_,T),T=T.sibling;return null}function l(_){for(var T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function i(_,T){return _=mn(_,T),_.index=0,_.sibling=null,_}function o(_,T,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<T?(_.flags|=67108866,T):R):(_.flags|=67108866,T)):(_.flags|=1048576,T)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function v(_,T,R,k){return T===null||T.tag!==6?(T=vr(R,_.mode,k),T.return=_,T):(T=i(T,R),T.return=_,T)}function E(_,T,R,k){var oe=R.type;return oe===w?G(_,T,R.props.children,k,R.key):T!==null&&(T.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&Al(oe)===T.type)?(T=i(T,R.props),ei(T,R),T.return=_,T):(T=su(R.type,R.key,R.props,null,_.mode,k),ei(T,R),T.return=_,T)}function N(_,T,R,k){return T===null||T.tag!==4||T.stateNode.containerInfo!==R.containerInfo||T.stateNode.implementation!==R.implementation?(T=pr(R,_.mode,k),T.return=_,T):(T=i(T,R.children||[]),T.return=_,T)}function G(_,T,R,k,oe){return T===null||T.tag!==7?(T=yl(R,_.mode,k,oe),T.return=_,T):(T=i(T,R),T.return=_,T)}function q(_,T,R){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=vr(""+T,_.mode,R),T.return=_,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case M:return R=su(T.type,T.key,T.props,null,_.mode,R),ei(R,T),R.return=_,R;case D:return T=pr(T,_.mode,R),T.return=_,T;case K:return T=Al(T),q(_,T,R)}if(ye(T)||re(T))return T=yl(T,_.mode,R,null),T.return=_,T;if(typeof T.then=="function")return q(_,pu(T),R);if(T.$$typeof===X)return q(_,mu(_,T),R);yu(_,T)}return null}function j(_,T,R,k){var oe=T!==null?T.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return oe!==null?null:v(_,T,""+R,k);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return R.key===oe?E(_,T,R,k):null;case D:return R.key===oe?N(_,T,R,k):null;case K:return R=Al(R),j(_,T,R,k)}if(ye(R)||re(R))return oe!==null?null:G(_,T,R,k,null);if(typeof R.then=="function")return j(_,T,pu(R),k);if(R.$$typeof===X)return j(_,T,mu(_,R),k);yu(_,R)}return null}function L(_,T,R,k,oe){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return _=_.get(R)||null,v(T,_,""+k,oe);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case M:return _=_.get(k.key===null?R:k.key)||null,E(T,_,k,oe);case D:return _=_.get(k.key===null?R:k.key)||null,N(T,_,k,oe);case K:return k=Al(k),L(_,T,R,k,oe)}if(ye(k)||re(k))return _=_.get(R)||null,G(T,_,k,oe,null);if(typeof k.then=="function")return L(_,T,R,pu(k),oe);if(k.$$typeof===X)return L(_,T,R,mu(T,k),oe);yu(T,k)}return null}function te(_,T,R,k){for(var oe=null,we=null,ae=T,pe=T=0,Me=null;ae!==null&&pe<R.length;pe++){ae.index>pe?(Me=ae,ae=null):Me=ae.sibling;var _e=j(_,ae,R[pe],k);if(_e===null){ae===null&&(ae=Me);break}e&&ae&&_e.alternate===null&&t(_,ae),T=o(_e,T,pe),we===null?oe=_e:we.sibling=_e,we=_e,ae=Me}if(pe===R.length)return n(_,ae),Te&&hn(_,pe),oe;if(ae===null){for(;pe<R.length;pe++)ae=q(_,R[pe],k),ae!==null&&(T=o(ae,T,pe),we===null?oe=ae:we.sibling=ae,we=ae);return Te&&hn(_,pe),oe}for(ae=l(ae);pe<R.length;pe++)Me=L(ae,_,pe,R[pe],k),Me!==null&&(e&&Me.alternate!==null&&ae.delete(Me.key===null?pe:Me.key),T=o(Me,T,pe),we===null?oe=Me:we.sibling=Me,we=Me);return e&&ae.forEach(function(al){return t(_,al)}),Te&&hn(_,pe),oe}function se(_,T,R,k){if(R==null)throw Error(r(151));for(var oe=null,we=null,ae=T,pe=T=0,Me=null,_e=R.next();ae!==null&&!_e.done;pe++,_e=R.next()){ae.index>pe?(Me=ae,ae=null):Me=ae.sibling;var al=j(_,ae,_e.value,k);if(al===null){ae===null&&(ae=Me);break}e&&ae&&al.alternate===null&&t(_,ae),T=o(al,T,pe),we===null?oe=al:we.sibling=al,we=al,ae=Me}if(_e.done)return n(_,ae),Te&&hn(_,pe),oe;if(ae===null){for(;!_e.done;pe++,_e=R.next())_e=q(_,_e.value,k),_e!==null&&(T=o(_e,T,pe),we===null?oe=_e:we.sibling=_e,we=_e);return Te&&hn(_,pe),oe}for(ae=l(ae);!_e.done;pe++,_e=R.next())_e=L(ae,_,pe,_e.value,k),_e!==null&&(e&&_e.alternate!==null&&ae.delete(_e.key===null?pe:_e.key),T=o(_e,T,pe),we===null?oe=_e:we.sibling=_e,we=_e);return e&&ae.forEach(function(wb){return t(_,wb)}),Te&&hn(_,pe),oe}function je(_,T,R,k){if(typeof R=="object"&&R!==null&&R.type===w&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case M:e:{for(var oe=R.key;T!==null;){if(T.key===oe){if(oe=R.type,oe===w){if(T.tag===7){n(_,T.sibling),k=i(T,R.props.children),k.return=_,_=k;break e}}else if(T.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&Al(oe)===T.type){n(_,T.sibling),k=i(T,R.props),ei(k,R),k.return=_,_=k;break e}n(_,T);break}else t(_,T);T=T.sibling}R.type===w?(k=yl(R.props.children,_.mode,k,R.key),k.return=_,_=k):(k=su(R.type,R.key,R.props,null,_.mode,k),ei(k,R),k.return=_,_=k)}return f(_);case D:e:{for(oe=R.key;T!==null;){if(T.key===oe)if(T.tag===4&&T.stateNode.containerInfo===R.containerInfo&&T.stateNode.implementation===R.implementation){n(_,T.sibling),k=i(T,R.children||[]),k.return=_,_=k;break e}else{n(_,T);break}else t(_,T);T=T.sibling}k=pr(R,_.mode,k),k.return=_,_=k}return f(_);case K:return R=Al(R),je(_,T,R,k)}if(ye(R))return te(_,T,R,k);if(re(R)){if(oe=re(R),typeof oe!="function")throw Error(r(150));return R=oe.call(R),se(_,T,R,k)}if(typeof R.then=="function")return je(_,T,pu(R),k);if(R.$$typeof===X)return je(_,T,mu(_,R),k);yu(_,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,T!==null&&T.tag===6?(n(_,T.sibling),k=i(T,R),k.return=_,_=k):(n(_,T),k=vr(R,_.mode,k),k.return=_,_=k),f(_)):n(_,T)}return function(_,T,R,k){try{Pa=0;var oe=je(_,T,R,k);return na=null,oe}catch(ae){if(ae===ta||ae===gu)throw ae;var we=Ct(29,ae,null,_.mode);return we.lanes=k,we.return=_,we}finally{}}}var Ml=vd(!0),pd=vd(!1),Yn=!1;function Or(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Oe&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=cu(e),ed(e,null,n),t}return ru(e,l,t,n),cu(e)}function ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,rf(e,n)}}function Nr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=f:o=o.next=f,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Dr=!1;function ni(){if(Dr){var e=ea;if(e!==null)throw e}}function li(e,t,n,l){Dr=!1;var i=e.updateQueue;Yn=!1;var o=i.firstBaseUpdate,f=i.lastBaseUpdate,v=i.shared.pending;if(v!==null){i.shared.pending=null;var E=v,N=E.next;E.next=null,f===null?o=N:f.next=N,f=E;var G=e.alternate;G!==null&&(G=G.updateQueue,v=G.lastBaseUpdate,v!==f&&(v===null?G.firstBaseUpdate=N:v.next=N,G.lastBaseUpdate=E))}if(o!==null){var q=i.baseState;f=0,G=N=E=null,v=o;do{var j=v.lane&-536870913,L=j!==v.lane;if(L?(Ce&j)===j:(l&j)===j){j!==0&&j===Pl&&(Dr=!0),G!==null&&(G=G.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var te=e,se=v;j=t;var je=n;switch(se.tag){case 1:if(te=se.payload,typeof te=="function"){q=te.call(je,q,j);break e}q=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=se.payload,j=typeof te=="function"?te.call(je,q,j):te,j==null)break e;q=x({},q,j);break e;case 2:Yn=!0}}j=v.callback,j!==null&&(e.flags|=64,L&&(e.flags|=8192),L=i.callbacks,L===null?i.callbacks=[j]:L.push(j))}else L={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},G===null?(N=G=L,E=q):G=G.next=L,f|=j;if(v=v.next,v===null){if(v=i.shared.pending,v===null)break;L=v,v=L.next,L.next=null,i.lastBaseUpdate=L,i.shared.pending=null}}while(!0);G===null&&(E=q),i.baseState=E,i.firstBaseUpdate=N,i.lastBaseUpdate=G,o===null&&(i.shared.lanes=0),Jn|=f,e.lanes=f,e.memoizedState=q}}function yd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function bd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yd(n[e],t)}var la=A(null),bu=A(0);function xd(e,t){e=Mn,W(bu,e),W(la,t),Mn=e|t.baseLanes}function zr(){W(bu,Mn),W(la,la.current)}function jr(){Mn=bu.current,B(la),B(bu)}var Mt=A(null),Gt=null;function Vn(e){var t=e.alternate;W(qe,qe.current&1),W(Mt,e),Gt===null&&(t===null||la.current!==null||t.memoizedState!==null)&&(Gt=e)}function Ur(e){W(qe,qe.current),W(Mt,e),Gt===null&&(Gt=e)}function Sd(e){e.tag===22?(W(qe,qe.current),W(Mt,e),Gt===null&&(Gt=e)):Qn()}function Qn(){W(qe,qe.current),W(Mt,Mt.current)}function Tt(e){B(Mt),Gt===e&&(Gt=null),B(qe)}var qe=A(0);function xu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yc(n)||qc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pn=0,ve=null,De=null,Ze=null,Su=!1,aa=!1,Tl=!1,Eu=0,ai=0,ia=null,p0=0;function ke(){throw Error(r(321))}function Lr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!At(e[n],t[n]))return!1;return!0}function Hr(e,t,n,l,i,o){return pn=o,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?am:Ir,Tl=!1,o=n(l,i),Tl=!1,aa&&(o=Ad(t,n,l,i)),Ed(e),o}function Ed(e){O.H=oi;var t=De!==null&&De.next!==null;if(pn=0,Ze=De=ve=null,Su=!1,ai=0,ia=null,t)throw Error(r(300));e===null||Ke||(e=e.dependencies,e!==null&&du(e)&&(Ke=!0))}function Ad(e,t,n,l){ve=e;var i=0;do{if(aa&&(ia=null),ai=0,aa=!1,25<=i)throw Error(r(301));if(i+=1,Ze=De=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=im,o=t(n,l)}while(aa);return o}function y0(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?ii(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function Br(){var e=Eu!==0;return Eu=0,e}function Gr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function kr(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}pn=0,Ze=De=ve=null,aa=!1,ai=Eu=0,ia=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ze===null?ve.memoizedState:Ze.next;if(t!==null)Ze=t,De=e;else{if(e===null)throw ve.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ze===null?ve.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ii(e){var t=ai;return ai+=1,ia===null&&(ia=[]),e=md(ia,e,t),t=ve,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?am:Ir),e}function Cu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ii(e);if(e.$$typeof===X)return at(e)}throw Error(r(438,String(e)))}function Yr(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Au(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=de;return t.index++,n}function yn(e,t){return typeof t=="function"?t(e):t}function Mu(e){var t=Xe();return qr(t,De,e)}function qr(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var i=e.baseQueue,o=l.pending;if(o!==null){if(i!==null){var f=i.next;i.next=o.next,o.next=f}t.baseQueue=i=o,l.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var v=f=null,E=null,N=t,G=!1;do{var q=N.lane&-536870913;if(q!==N.lane?(Ce&q)===q:(pn&q)===q){var j=N.revertLane;if(j===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),q===Pl&&(G=!0);else if((pn&j)===j){N=N.next,j===Pl&&(G=!0);continue}else q={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},E===null?(v=E=q,f=o):E=E.next=q,ve.lanes|=j,Jn|=j;q=N.action,Tl&&n(o,q),o=N.hasEagerState?N.eagerState:n(o,q)}else j={lane:q,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},E===null?(v=E=j,f=o):E=E.next=j,ve.lanes|=q,Jn|=q;N=N.next}while(N!==null&&N!==t);if(E===null?f=o:E.next=v,!At(o,e.memoizedState)&&(Ke=!0,G&&(n=ea,n!==null)))throw n;e.memoizedState=o,e.baseState=f,e.baseQueue=E,l.lastRenderedState=o}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Xr(e){var t=Xe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do o=e(o,f.action),f=f.next;while(f!==i);At(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function Cd(e,t,n){var l=ve,i=Xe(),o=Te;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var f=!At((De||i).memoizedState,n);if(f&&(i.memoizedState=n,Ke=!0),i=i.queue,Zr(wd.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,ua(9,{destroy:void 0},Td.bind(null,l,i,n,t),null),Ue===null)throw Error(r(349));o||(pn&127)!==0||Md(l,t,n)}return n}function Md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=Au(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Td(e,t,n,l){t.value=n,t.getSnapshot=l,_d(t)&&Od(e)}function wd(e,t,n){return n(function(){_d(t)&&Od(e)})}function _d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!At(e,n)}catch{return!0}}function Od(e){var t=pl(e,2);t!==null&&yt(t,e,2)}function Vr(e){var t=st();if(typeof e=="function"){var n=e;if(e=n(),Tl){jn(!0);try{n()}finally{jn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:e},t}function Rd(e,t,n,l){return e.baseState=n,qr(e,De,typeof l=="function"?l:yn)}function b0(e,t,n,l,i){if(_u(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){o.listeners.push(f)}};O.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Nd(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Nd(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var o=O.T,f={};O.T=f;try{var v=n(i,l),E=O.S;E!==null&&E(f,v),Dd(e,t,v)}catch(N){Qr(e,t,N)}finally{o!==null&&f.types!==null&&(o.types=f.types),O.T=o}}else try{o=n(i,l),Dd(e,t,o)}catch(N){Qr(e,t,N)}}function Dd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){zd(e,t,l)},function(l){return Qr(e,t,l)}):zd(e,t,n)}function zd(e,t,n){t.status="fulfilled",t.value=n,jd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Nd(e,n)))}function Qr(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,jd(t),t=t.next;while(t!==l)}e.action=null}function jd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ud(e,t){return t}function Ld(e,t){if(Te){var n=Ue.formState;if(n!==null){e:{var l=ve;if(Te){if(He){t:{for(var i=He,o=Bt;i.nodeType!==8;){if(!o){i=null;break t}if(i=kt(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){He=kt(i.nextSibling),l=i.data==="F!";break e}}Gn(l)}l=!1}l&&(t=n[0])}}return n=st(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ud,lastRenderedState:t},n.queue=l,n=tm.bind(null,ve,l),l.dispatch=n,l=Vr(!1),o=$r.bind(null,ve,!1,l.queue),l=st(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=b0.bind(null,ve,i,o,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function Hd(e){var t=Xe();return Bd(t,De,e)}function Bd(e,t,n){if(t=qr(e,t,Ud)[0],e=Mu(yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ii(t)}catch(f){throw f===ta?gu:f}else l=t;t=Xe();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,ua(9,{destroy:void 0},x0.bind(null,i,n),null)),[l,o,e]}function x0(e,t){e.action=t}function Gd(e){var t=Xe(),n=De;if(n!==null)return Bd(t,n,e);Xe(),t=t.memoizedState,n=Xe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ua(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Au(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function kd(){return Xe().memoizedState}function Tu(e,t,n,l){var i=st();ve.flags|=e,i.memoizedState=ua(1|t,{destroy:void 0},n,l===void 0?null:l)}function wu(e,t,n,l){var i=Xe();l=l===void 0?null:l;var o=i.memoizedState.inst;De!==null&&l!==null&&Lr(l,De.memoizedState.deps)?i.memoizedState=ua(t,o,n,l):(ve.flags|=e,i.memoizedState=ua(1|t,o,n,l))}function Yd(e,t){Tu(8390656,8,e,t)}function Zr(e,t){wu(2048,8,e,t)}function S0(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Au(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qd(e){var t=Xe().memoizedState;return S0({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Xd(e,t){return wu(4,2,e,t)}function Vd(e,t){return wu(4,4,e,t)}function Qd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zd(e,t,n){n=n!=null?n.concat([e]):null,wu(4,4,Qd.bind(null,t,e),n)}function Kr(){}function Kd(e,t){var n=Xe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Lr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Jd(e,t){var n=Xe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Lr(t,l[1]))return l[0];if(l=e(),Tl){jn(!0);try{e()}finally{jn(!1)}}return n.memoizedState=[l,t],l}function Jr(e,t,n){return n===void 0||(pn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Fm(),ve.lanes|=e,Jn|=e,n)}function Fd(e,t,n,l){return At(n,t)?n:la.current!==null?(e=Jr(e,n,l),At(e,t)||(Ke=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(Ce&261930)===0?(Ke=!0,e.memoizedState=n):(e=Fm(),ve.lanes|=e,Jn|=e,t)}function Wd(e,t,n,l,i){var o=Q.p;Q.p=o!==0&&8>o?o:8;var f=O.T,v={};O.T=v,$r(e,!1,t,n);try{var E=i(),N=O.S;if(N!==null&&N(v,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var G=v0(E,l);ui(e,t,G,Ot(e))}else ui(e,t,l,Ot(e))}catch(q){ui(e,t,{then:function(){},status:"rejected",reason:q},Ot())}finally{Q.p=o,f!==null&&v.types!==null&&(f.types=v.types),O.T=f}}function E0(){}function Fr(e,t,n,l){if(e.tag!==5)throw Error(r(476));var i=$d(e).queue;Wd(e,i,t,U,n===null?E0:function(){return Id(e),n(l)})}function $d(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:U},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Id(e){var t=$d(e);t.next===null&&(t=e.alternate.memoizedState),ui(e,t.next.queue,{},Ot())}function Wr(){return at(Ai)}function Pd(){return Xe().memoizedState}function em(){return Xe().memoizedState}function A0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ot();e=qn(n);var l=Xn(t,e,n);l!==null&&(yt(l,t,n),ti(l,t,n)),t={cache:Mr()},e.payload=t;return}t=t.return}}function C0(e,t,n){var l=Ot();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},_u(e)?nm(t,n):(n=hr(e,t,n,l),n!==null&&(yt(n,e,l),lm(n,t,l)))}function tm(e,t,n){var l=Ot();ui(e,t,n,l)}function ui(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(_u(e))nm(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var f=t.lastRenderedState,v=o(f,n);if(i.hasEagerState=!0,i.eagerState=v,At(v,f))return ru(e,t,i,0),Ue===null&&ou(),!1}catch{}finally{}if(n=hr(e,t,i,l),n!==null)return yt(n,e,l),lm(n,t,l),!0}return!1}function $r(e,t,n,l){if(l={lane:2,revertLane:Oc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_u(e)){if(t)throw Error(r(479))}else t=hr(e,n,l,2),t!==null&&yt(t,e,2)}function _u(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function nm(e,t){aa=Su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,rf(e,n)}}var oi={readContext:at,use:Cu,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};oi.useEffectEvent=ke;var am={readContext:at,use:Cu,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Yd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Tu(4194308,4,Qd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tu(4194308,4,e,t)},useInsertionEffect:function(e,t){Tu(4,2,e,t)},useMemo:function(e,t){var n=st();t=t===void 0?null:t;var l=e();if(Tl){jn(!0);try{e()}finally{jn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=st();if(n!==void 0){var i=n(t);if(Tl){jn(!0);try{n(t)}finally{jn(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=C0.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Vr(e);var t=e.queue,n=tm.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Kr,useDeferredValue:function(e,t){var n=st();return Jr(n,e,t)},useTransition:function(){var e=Vr(!1);return e=Wd.bind(null,ve,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ve,i=st();if(Te){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ue===null)throw Error(r(349));(Ce&127)!==0||Md(l,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Yd(wd.bind(null,l,o,e),[e]),l.flags|=2048,ua(9,{destroy:void 0},Td.bind(null,l,o,n,t),null),n},useId:function(){var e=st(),t=Ue.identifierPrefix;if(Te){var n=Pt,l=It;n=(l&~(1<<32-Et(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Eu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=p0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wr,useFormState:Ld,useActionState:Ld,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=$r.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Yr,useCacheRefresh:function(){return st().memoizedState=A0.bind(null,ve)},useEffectEvent:function(e){var t=st(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Ir={readContext:at,use:Cu,useCallback:Kd,useContext:at,useEffect:Zr,useImperativeHandle:Zd,useInsertionEffect:Xd,useLayoutEffect:Vd,useMemo:Jd,useReducer:Mu,useRef:kd,useState:function(){return Mu(yn)},useDebugValue:Kr,useDeferredValue:function(e,t){var n=Xe();return Fd(n,De.memoizedState,e,t)},useTransition:function(){var e=Mu(yn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:ii(e),t]},useSyncExternalStore:Cd,useId:Pd,useHostTransitionStatus:Wr,useFormState:Hd,useActionState:Hd,useOptimistic:function(e,t){var n=Xe();return Rd(n,De,e,t)},useMemoCache:Yr,useCacheRefresh:em};Ir.useEffectEvent=qd;var im={readContext:at,use:Cu,useCallback:Kd,useContext:at,useEffect:Zr,useImperativeHandle:Zd,useInsertionEffect:Xd,useLayoutEffect:Vd,useMemo:Jd,useReducer:Xr,useRef:kd,useState:function(){return Xr(yn)},useDebugValue:Kr,useDeferredValue:function(e,t){var n=Xe();return De===null?Jr(n,e,t):Fd(n,De.memoizedState,e,t)},useTransition:function(){var e=Xr(yn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:ii(e),t]},useSyncExternalStore:Cd,useId:Pd,useHostTransitionStatus:Wr,useFormState:Gd,useActionState:Gd,useOptimistic:function(e,t){var n=Xe();return De!==null?Rd(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Yr,useCacheRefresh:em};im.useEffectEvent=qd;function Pr(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ec={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Ot(),i=qn(l);i.payload=t,n!=null&&(i.callback=n),t=Xn(e,i,l),t!==null&&(yt(t,e,l),ti(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Ot(),i=qn(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Xn(e,i,l),t!==null&&(yt(t,e,l),ti(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),l=qn(n);l.tag=2,t!=null&&(l.callback=t),t=Xn(e,l,n),t!==null&&(yt(t,e,n),ti(t,e,n))}};function um(e,t,n,l,i,o,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,f):t.prototype&&t.prototype.isPureReactComponent?!Ka(n,l)||!Ka(i,o):!0}function om(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function wl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function rm(e){uu(e)}function cm(e){console.error(e)}function sm(e){uu(e)}function Ou(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function fm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function tc(e,t,n){return n=qn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ou(e,t)},n}function dm(e){return e=qn(e),e.tag=3,e}function mm(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=l.value;e.payload=function(){return i(o)},e.callback=function(){fm(t,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){fm(t,n,l),typeof i!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function M0(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Il(t,n,i,!0),n=Mt.current,n!==null){switch(n.tag){case 31:case 13:return Gt===null?Yu():n.alternate===null&&Ye===0&&(Ye=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===vu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Tc(e,l,i)),!1;case 22:return n.flags|=65536,l===vu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Tc(e,l,i)),!1}throw Error(r(435,n.tag))}return Tc(e,l,i),Yu(),!1}if(Te)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==xr&&(e=Error(r(422),{cause:l}),Wa(Ut(e,n)))):(l!==xr&&(t=Error(r(423),{cause:l}),Wa(Ut(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Ut(l,n),i=tc(e.stateNode,l,i),Nr(e,i),Ye!==4&&(Ye=2)),!1;var o=Error(r(520),{cause:l});if(o=Ut(o,n),gi===null?gi=[o]:gi.push(o),Ye!==4&&(Ye=2),t===null)return!0;l=Ut(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=tc(n.stateNode,l,e),Nr(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Fn===null||!Fn.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=dm(i),mm(i,e,n,l),Nr(n,i),!1}n=n.return}while(n!==null);return!1}var nc=Error(r(461)),Ke=!1;function it(e,t,n,l){t.child=e===null?pd(t,null,n,l):Ml(t,e.child,n,l)}function hm(e,t,n,l,i){n=n.render;var o=t.ref;if("ref"in l){var f={};for(var v in l)v!=="ref"&&(f[v]=l[v])}else f=l;return Sl(t),l=Hr(e,t,n,f,o,i),v=Br(),e!==null&&!Ke?(Gr(e,t,i),bn(e,t,i)):(Te&&v&&yr(t),t.flags|=1,it(e,t,l,i),t.child)}function gm(e,t,n,l,i){if(e===null){var o=n.type;return typeof o=="function"&&!gr(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vm(e,t,o,l,i)):(e=su(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!sc(e,i)){var f=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ka,n(f,l)&&e.ref===t.ref)return bn(e,t,i)}return t.flags|=1,e=mn(o,l),e.ref=t.ref,e.return=t,t.child=e}function vm(e,t,n,l,i){if(e!==null){var o=e.memoizedProps;if(Ka(o,l)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=l=o,sc(e,i))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,bn(e,t,i)}return lc(e,t,n,l,i)}function pm(e,t,n,l){var i=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~o}else l=0,t.child=null;return ym(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hu(t,o!==null?o.cachePool:null),o!==null?xd(t,o):zr(),Sd(t);else return l=t.lanes=536870912,ym(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(hu(t,o.cachePool),xd(t,o),Qn(),t.memoizedState=null):(e!==null&&hu(t,null),zr(),Qn());return it(e,t,i,n),t.child}function ri(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ym(e,t,n,l,i){var o=wr();return o=o===null?null:{parent:Qe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&hu(t,null),zr(),Sd(t),e!==null&&Il(e,t,l,!0),t.childLanes=i,null}function Ru(e,t){return t=Du({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function bm(e,t,n){return Ml(t,e.child,null,n),e=Ru(t,t.pendingProps),e.flags|=2,Tt(t),t.memoizedState=null,e}function T0(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(l.mode==="hidden")return e=Ru(t,l),t.lanes=536870912,ri(null,e);if(Ur(t),(e=He)?(e=Nh(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},n=nd(e),n.return=t,t.child=n,lt=t,He=null)):e=null,e===null)throw Gn(t);return t.lanes=536870912,null}return Ru(t,l)}var o=e.memoizedState;if(o!==null){var f=o.dehydrated;if(Ur(t),i)if(t.flags&256)t.flags&=-257,t=bm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ke||Il(e,t,n,!1),i=(n&e.childLanes)!==0,Ke||i){if(l=Ue,l!==null&&(f=cf(l,n),f!==0&&f!==o.retryLane))throw o.retryLane=f,pl(e,f),yt(l,e,f),nc;Yu(),t=bm(e,t,n)}else e=o.treeContext,He=kt(f.nextSibling),lt=t,Te=!0,Bn=null,Bt=!1,e!==null&&id(t,e),t=Ru(t,l),t.flags|=4096;return t}return e=mn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Nu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,l,i){return Sl(t),n=Hr(e,t,n,l,void 0,i),l=Br(),e!==null&&!Ke?(Gr(e,t,i),bn(e,t,i)):(Te&&l&&yr(t),t.flags|=1,it(e,t,n,i),t.child)}function xm(e,t,n,l,i,o){return Sl(t),t.updateQueue=null,n=Ad(t,l,n,i),Ed(e),l=Br(),e!==null&&!Ke?(Gr(e,t,o),bn(e,t,o)):(Te&&l&&yr(t),t.flags|=1,it(e,t,n,o),t.child)}function Sm(e,t,n,l,i){if(Sl(t),t.stateNode===null){var o=Jl,f=n.contextType;typeof f=="object"&&f!==null&&(o=at(f)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ec,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},Or(t),f=n.contextType,o.context=typeof f=="object"&&f!==null?at(f):Jl,o.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Pr(t,n,f,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(f=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),f!==o.state&&ec.enqueueReplaceState(o,o.state,null),li(t,l,o,i),ni(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,E=wl(n,v);o.props=E;var N=o.context,G=n.contextType;f=Jl,typeof G=="object"&&G!==null&&(f=at(G));var q=n.getDerivedStateFromProps;G=typeof q=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,G||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||N!==f)&&om(t,o,l,f),Yn=!1;var j=t.memoizedState;o.state=j,li(t,l,o,i),ni(),N=t.memoizedState,v||j!==N||Yn?(typeof q=="function"&&(Pr(t,n,q,l),N=t.memoizedState),(E=Yn||um(t,n,E,l,j,N,f))?(G||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),o.props=l,o.state=N,o.context=f,l=E):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,Rr(e,t),f=t.memoizedProps,G=wl(n,f),o.props=G,q=t.pendingProps,j=o.context,N=n.contextType,E=Jl,typeof N=="object"&&N!==null&&(E=at(N)),v=n.getDerivedStateFromProps,(N=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==q||j!==E)&&om(t,o,l,E),Yn=!1,j=t.memoizedState,o.state=j,li(t,l,o,i),ni();var L=t.memoizedState;f!==q||j!==L||Yn||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof v=="function"&&(Pr(t,n,v,l),L=t.memoizedState),(G=Yn||um(t,n,G,l,j,L,E)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(N||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,L,E),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,L,E)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),o.props=l,o.state=L,o.context=E,l=G):(typeof o.componentDidUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,Nu(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=Ml(t,e.child,null,i),t.child=Ml(t,null,n,i)):it(e,t,n,i),t.memoizedState=o.state,e=t.child):e=bn(e,t,i),e}function Em(e,t,n,l){return bl(),t.flags|=256,it(e,t,n,l),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:fd()}}function uc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_t),e}function Am(e,t,n){var l=t.pendingProps,i=!1,o=(t.flags&128)!==0,f;if((f=o)||(f=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(i?Vn(t):Qn(),(e=He)?(e=Nh(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},n=nd(e),n.return=t,t.child=n,lt=t,He=null)):e=null,e===null)throw Gn(t);return qc(e)?t.lanes=32:t.lanes=536870912,null}var v=l.children;return l=l.fallback,i?(Qn(),i=t.mode,v=Du({mode:"hidden",children:v},i),l=yl(l,i,n,null),v.return=t,l.return=t,v.sibling=l,t.child=v,l=t.child,l.memoizedState=ic(n),l.childLanes=uc(e,f,n),t.memoizedState=ac,ri(null,l)):(Vn(t),oc(t,v))}var E=e.memoizedState;if(E!==null&&(v=E.dehydrated,v!==null)){if(o)t.flags&256?(Vn(t),t.flags&=-257,t=rc(e,t,n)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),v=l.fallback,i=t.mode,l=Du({mode:"visible",children:l.children},i),v=yl(v,i,n,null),v.flags|=2,l.return=t,v.return=t,l.sibling=v,t.child=l,Ml(t,e.child,null,n),l=t.child,l.memoizedState=ic(n),l.childLanes=uc(e,f,n),t.memoizedState=ac,t=ri(null,l));else if(Vn(t),qc(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var N=f.dgst;f=N,l=Error(r(419)),l.stack="",l.digest=f,Wa({value:l,source:null,stack:null}),t=rc(e,t,n)}else if(Ke||Il(e,t,n,!1),f=(n&e.childLanes)!==0,Ke||f){if(f=Ue,f!==null&&(l=cf(f,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,pl(e,l),yt(f,e,l),nc;Yc(v)||Yu(),t=rc(e,t,n)}else Yc(v)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,He=kt(v.nextSibling),lt=t,Te=!0,Bn=null,Bt=!1,e!==null&&id(t,e),t=oc(t,l.children),t.flags|=4096);return t}return i?(Qn(),v=l.fallback,i=t.mode,E=e.child,N=E.sibling,l=mn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,N!==null?v=mn(N,v):(v=yl(v,i,n,null),v.flags|=2),v.return=t,l.return=t,l.sibling=v,t.child=l,ri(null,l),l=t.child,v=e.child.memoizedState,v===null?v=ic(n):(i=v.cachePool,i!==null?(E=Qe._currentValue,i=i.parent!==E?{parent:E,pool:E}:i):i=fd(),v={baseLanes:v.baseLanes|n,cachePool:i}),l.memoizedState=v,l.childLanes=uc(e,f,n),t.memoizedState=ac,ri(e.child,l)):(Vn(t),n=e.child,e=n.sibling,n=mn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function oc(e,t){return t=Du({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Du(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function rc(e,t,n){return Ml(t,e.child,null,n),e=oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ar(e.return,t,n)}function cc(e,t,n,l,i,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=i,f.treeForkCount=o)}function Mm(e,t,n){var l=t.pendingProps,i=l.revealOrder,o=l.tail;l=l.children;var f=qe.current,v=(f&2)!==0;if(v?(f=f&1|2,t.flags|=128):f&=1,W(qe,f),it(e,t,l,n),l=Te?Fa:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,n,t);else if(e.tag===19)Cm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&xu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cc(t,!1,i,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cc(t,!0,n,null,o,l);break;case"together":cc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Il(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function w0(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),kn(t,Qe,e.memoizedState.cache),bl();break;case 27:case 5:rt(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ur(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Vn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Am(e,t,n):(Vn(t),e=bn(e,t,n),e!==null?e.sibling:null);Vn(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Il(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return Mm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(qe,qe.current),l)break;return null;case 22:return t.lanes=0,pm(e,t,n,t.pendingProps);case 24:kn(t,Qe,e.memoizedState.cache)}return bn(e,t,n)}function Tm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!sc(e,n)&&(t.flags&128)===0)return Ke=!1,w0(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,Te&&(t.flags&1048576)!==0&&ad(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Al(t.elementType),t.type=e,typeof e=="function")gr(e)?(l=wl(e,l),t.tag=1,t=Sm(null,t,e,l,n)):(t.tag=0,t=lc(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=hm(null,t,e,l,n);break e}else if(i===Z){t.tag=14,t=gm(null,t,e,l,n);break e}}throw t=me(e)||e,Error(r(306,t,""))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=wl(l,t.pendingProps),Sm(e,t,l,i,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var o=t.memoizedState;i=o.element,Rr(e,t),li(t,l,null,n);var f=t.memoizedState;if(l=f.cache,kn(t,Qe,l),l!==o.cache&&Cr(t,[Qe],n,!0),ni(),l=f.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Em(e,t,l,n);break e}else if(l!==i){i=Ut(Error(r(424)),t),Wa(i),t=Em(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=kt(e.firstChild),lt=t,Te=!0,Bn=null,Bt=!0,n=pd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(bl(),l===i){t=bn(e,t,n);break e}it(e,t,l,n)}t=t.child}return t;case 26:return Nu(e,t),e===null?(n=Hh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(n=t.type,e=t.pendingProps,l=Ju(ie.current).createElement(n),l[nt]=t,l[dt]=e,ut(l,n,e),Ie(l),t.stateNode=l):t.memoizedState=Hh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rt(t),e===null&&Te&&(l=t.stateNode=jh(t.type,t.pendingProps,ie.current),lt=t,Bt=!0,i=He,Pn(t.type)?(Xc=i,He=kt(l.firstChild)):He=i),it(e,t,t.pendingProps.children,n),Nu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((i=l=He)&&(l=lb(l,t.type,t.pendingProps,Bt),l!==null?(t.stateNode=l,lt=t,He=kt(l.firstChild),Bt=!1,i=!0):i=!1),i||Gn(t)),rt(t),i=t.type,o=t.pendingProps,f=e!==null?e.memoizedProps:null,l=o.children,Bc(i,o)?l=null:f!==null&&Bc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Hr(e,t,y0,null,null,n),Ai._currentValue=i),Nu(e,t),it(e,t,l,n),t.child;case 6:return e===null&&Te&&((e=n=He)&&(n=ab(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,lt=t,He=null,e=!0):e=!1),e||Gn(t)),null;case 13:return Am(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ml(t,null,l,n):it(e,t,l,n),t.child;case 11:return hm(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,kn(t,t.type,l.value),it(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,Sl(t),i=at(i),l=l(i),t.flags|=1,it(e,t,l,n),t.child;case 14:return gm(e,t,t.type,t.pendingProps,n);case 15:return vm(e,t,t.type,t.pendingProps,n);case 19:return Mm(e,t,n);case 31:return T0(e,t,n);case 22:return pm(e,t,n,t.pendingProps);case 24:return Sl(t),l=at(Qe),e===null?(i=wr(),i===null&&(i=Ue,o=Mr(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:l,cache:i},Or(t),kn(t,Qe,i)):((e.lanes&n)!==0&&(Rr(e,t),li(t,null,null,n),ni()),i=e.memoizedState,o=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),kn(t,Qe,l)):(l=o.cache,kn(t,Qe,l),l!==i.cache&&Cr(t,[Qe],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function xn(e){e.flags|=4}function fc(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pm())e.flags|=8192;else throw Cl=vu,_r}else e.flags&=-16777217}function wm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qh(t))if(Pm())e.flags|=8192;else throw Cl=vu,_r}function zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uf():536870912,e.lanes|=t,sa|=t)}function ci(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function _0(e,t,n){var l=t.pendingProps;switch(br(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn(Qe),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($l(t)?xn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sr())),Be(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(xn(t),o!==null?(Be(t),wm(t,o)):(Be(t),fc(t,i,null,l,n))):o?o!==e.memoizedState?(xn(t),Be(t),wm(t,o)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&xn(t),Be(t),fc(t,i,e,l,n)),null;case 27:if(Xt(t),n=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&xn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=Y.current,$l(t)?ud(t):(e=jh(i,l,n),t.stateNode=e,xn(t))}return Be(t),null;case 5:if(Xt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&xn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(o=Y.current,$l(t))ud(t);else{var f=Ju(ie.current);switch(o){case 1:o=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=f.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}o[nt]=t,o[dt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)o.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=o;e:switch(ut(o,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&xn(t)}}return Be(t),fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&xn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ie.current,$l(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=lt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Ah(e.nodeValue,n)),e||Gn(t,!0)}else e=Ju(e).createTextNode(l),e[nt]=t,t.stateNode=e}return Be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=$l(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[nt]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else n=Sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Tt(t),t):(Tt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=$l(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[nt]=t}else bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),i=!1}else i=Sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Tt(t),t):(Tt(t),null)}return Tt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zu(t,t.updateQueue),Be(t),null);case 4:return be(),e===null&&zc(t.stateNode.containerInfo),Be(t),null;case 10:return vn(t.type),Be(t),null;case 19:if(B(qe),l=t.memoizedState,l===null)return Be(t),null;if(i=(t.flags&128)!==0,o=l.rendering,o===null)if(i)ci(l,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=xu(e),o!==null){for(t.flags|=128,ci(l,!1),e=o.updateQueue,t.updateQueue=e,zu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)td(n,e),n=n.sibling;return W(qe,qe.current&1|2),Te&&hn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>Bu&&(t.flags|=128,i=!0,ci(l,!1),t.lanes=4194304)}else{if(!i)if(e=xu(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,zu(t,e),ci(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Te)return Be(t),null}else 2*xt()-l.renderingStartTime>Bu&&n!==536870912&&(t.flags|=128,i=!0,ci(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,n=qe.current,W(qe,i?n&1|2:n&1),Te&&hn(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Tt(t),jr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),n=t.updateQueue,n!==null&&zu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&B(El),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vn(Qe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function O0(e,t){switch(br(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn(Qe),be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Xt(t),null;case 31:if(t.memoizedState!==null){if(Tt(t),t.alternate===null)throw Error(r(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Tt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(qe),null;case 4:return be(),null;case 10:return vn(t.type),null;case 22:case 23:return Tt(t),jr(),e!==null&&B(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn(Qe),null;case 25:return null;default:return null}}function _m(e,t){switch(br(t),t.tag){case 3:vn(Qe),be();break;case 26:case 27:case 5:Xt(t);break;case 4:be();break;case 31:t.memoizedState!==null&&Tt(t);break;case 13:Tt(t);break;case 19:B(qe);break;case 10:vn(t.type);break;case 22:case 23:Tt(t),jr(),e!==null&&B(El);break;case 24:vn(Qe)}}function si(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var o=n.create,f=n.inst;l=o(),f.destroy=l}n=n.next}while(n!==i)}}catch(v){Ne(t,t.return,v)}}function Zn(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){var f=l.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,i=t;var E=n,N=v;try{N()}catch(G){Ne(i,E,G)}}}l=l.next}while(l!==o)}}catch(G){Ne(t,t.return,G)}}function Om(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bd(t,n)}catch(l){Ne(e,e.return,l)}}}function Rm(e,t,n){n.props=wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ne(e,t,l)}}function fi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Ne(e,t,i)}}function en(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Ne(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ne(e,t,i)}else n.current=null}function Nm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Ne(e,e.return,i)}}function dc(e,t,n){try{var l=e.stateNode;$0(l,e.type,n,t),l[dt]=t}catch(i){Ne(e,e.return,i)}}function Dm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pn(e.type)||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fn));else if(l!==4&&(l===27&&Pn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}function ju(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Pn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}function zm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ut(t,l,n),t[nt]=e,t[dt]=n}catch(o){Ne(e,e.return,o)}}var Sn=!1,Je=!1,gc=!1,jm=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function R0(e,t){if(e=e.containerInfo,Lc=to,e=Zf(e),rr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var f=0,v=-1,E=-1,N=0,G=0,q=e,j=null;t:for(;;){for(var L;q!==n||i!==0&&q.nodeType!==3||(v=f+i),q!==o||l!==0&&q.nodeType!==3||(E=f+l),q.nodeType===3&&(f+=q.nodeValue.length),(L=q.firstChild)!==null;)j=q,q=L;for(;;){if(q===e)break t;if(j===n&&++N===i&&(v=f),j===o&&++G===l&&(E=f),(L=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=L}n=v===-1||E===-1?null:{start:v,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hc={focusedElem:e,selectionRange:n},to=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var te=wl(n.type,i);e=l.getSnapshotBeforeUpdate(te,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ne(n,n.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)kc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":kc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function Um(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(e,n),l&4&&si(5,n);break;case 1:if(An(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Ne(n,n.return,f)}else{var i=wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ne(n,n.return,f)}}l&64&&Om(n),l&512&&fi(n,n.return);break;case 3:if(An(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{bd(e,t)}catch(f){Ne(n,n.return,f)}}break;case 27:t===null&&l&4&&zm(n);case 26:case 5:An(e,n),t===null&&l&4&&Nm(n),l&512&&fi(n,n.return);break;case 12:An(e,n);break;case 31:An(e,n),l&4&&Bm(e,n);break;case 13:An(e,n),l&4&&Gm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=G0.bind(null,n),ib(e,n))));break;case 22:if(l=n.memoizedState!==null||Sn,!l){t=t!==null&&t.memoizedState!==null||Je,i=Sn;var o=Je;Sn=l,(Je=t)&&!o?Cn(e,n,(n.subtreeFlags&8772)!==0):An(e,n),Sn=i,Je=o}break;case 30:break;default:An(e,n)}}function Lm(e){var t=e.alternate;t!==null&&(e.alternate=null,Lm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,ht=!1;function En(e,t,n){for(n=n.child;n!==null;)Hm(e,t,n),n=n.sibling}function Hm(e,t,n){if(St&&typeof St.onCommitFiberUnmount=="function")try{St.onCommitFiberUnmount(Ua,n)}catch{}switch(n.tag){case 26:Je||en(n,t),En(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||en(n,t);var l=Ge,i=ht;Pn(n.type)&&(Ge=n.stateNode,ht=!1),En(e,t,n),xi(n.stateNode),Ge=l,ht=i;break;case 5:Je||en(n,t);case 6:if(l=Ge,i=ht,Ge=null,En(e,t,n),Ge=l,ht=i,Ge!==null)if(ht)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(o){Ne(n,t,o)}else try{Ge.removeChild(n.stateNode)}catch(o){Ne(n,t,o)}break;case 18:Ge!==null&&(ht?(e=Ge,Oh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ya(e)):Oh(Ge,n.stateNode));break;case 4:l=Ge,i=ht,Ge=n.stateNode.containerInfo,ht=!0,En(e,t,n),Ge=l,ht=i;break;case 0:case 11:case 14:case 15:Zn(2,n,t),Je||Zn(4,n,t),En(e,t,n);break;case 1:Je||(en(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Rm(n,t,l)),En(e,t,n);break;case 21:En(e,t,n);break;case 22:Je=(l=Je)||n.memoizedState!==null,En(e,t,n),Je=l;break;default:En(e,t,n)}}function Bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ya(e)}catch(n){Ne(t,t.return,n)}}}function Gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ya(e)}catch(n){Ne(t,t.return,n)}}function N0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jm),t;default:throw Error(r(435,e.tag))}}function Uu(e,t){var n=N0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=k0.bind(null,e,l);l.then(i,i)}})}function gt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],o=e,f=t,v=f;e:for(;v!==null;){switch(v.tag){case 27:if(Pn(v.type)){Ge=v.stateNode,ht=!1;break e}break;case 5:Ge=v.stateNode,ht=!1;break e;case 3:case 4:Ge=v.stateNode.containerInfo,ht=!0;break e}v=v.return}if(Ge===null)throw Error(r(160));Hm(o,f,i),Ge=null,ht=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)km(t,e),t=t.sibling}var Zt=null;function km(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),vt(e),l&4&&(Zn(3,e,e.return),si(3,e),Zn(5,e,e.return));break;case 1:gt(t,e),vt(e),l&512&&(Je||n===null||en(n,n.return)),l&64&&Sn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=Zt;if(gt(t,e),vt(e),l&512&&(Je||n===null||en(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Ba]||o[nt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(l),i.head.insertBefore(o,i.querySelector("head > title"))),ut(o,l,n),o[nt]=e,Ie(o),l=o;break e;case"link":var f=kh("link","href",i).get(l+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(o=f[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break t}}o=i.createElement(l),ut(o,l,n),i.head.appendChild(o);break;case"meta":if(f=kh("meta","content",i).get(l+(n.content||""))){for(v=0;v<f.length;v++)if(o=f[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break t}}o=i.createElement(l),ut(o,l,n),i.head.appendChild(o);break;default:throw Error(r(468,l))}o[nt]=e,Ie(o),l=o}e.stateNode=l}else Yh(i,e.type,e.stateNode);else e.stateNode=Gh(i,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?Yh(i,e.type,e.stateNode):Gh(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&dc(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),vt(e),l&512&&(Je||n===null||en(n,n.return)),n!==null&&l&4&&dc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),vt(e),l&512&&(Je||n===null||en(n,n.return)),e.flags&32){i=e.stateNode;try{Yl(i,"")}catch(te){Ne(e,e.return,te)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,dc(e,i,n!==null?n.memoizedProps:i)),l&1024&&(gc=!0);break;case 6:if(gt(t,e),vt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(te){Ne(e,e.return,te)}}break;case 3:if($u=null,i=Zt,Zt=Fu(t.containerInfo),gt(t,e),Zt=i,vt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ya(t.containerInfo)}catch(te){Ne(e,e.return,te)}gc&&(gc=!1,Ym(e));break;case 4:l=Zt,Zt=Fu(e.stateNode.containerInfo),gt(t,e),vt(e),Zt=l;break;case 12:gt(t,e),vt(e);break;case 31:gt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 13:gt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hu=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 22:i=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,N=Sn,G=Je;if(Sn=N||i,Je=G||E,gt(t,e),Je=G,Sn=N,vt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||E||Sn||Je||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(o=E.stateNode,i)f=o.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=E.stateNode;var q=E.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(te){Ne(E,E.return,te)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=i?"":E.memoizedProps}catch(te){Ne(E,E.return,te)}}}else if(t.tag===18){if(n===null){E=t;try{var L=E.stateNode;i?Rh(L,!0):Rh(E.stateNode,!1)}catch(te){Ne(E,E.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Uu(e,n))));break;case 19:gt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 30:break;case 21:break;default:gt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Dm(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode,o=mc(e);ju(e,o,i);break;case 5:var f=n.stateNode;n.flags&32&&(Yl(f,""),n.flags&=-33);var v=mc(e);ju(e,v,f);break;case 3:case 4:var E=n.stateNode.containerInfo,N=mc(e);hc(e,N,E);break;default:throw Error(r(161))}}catch(G){Ne(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ym(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ym(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Um(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),_l(t);break;case 1:en(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Rm(t,t.return,n),_l(t);break;case 27:xi(t.stateNode);case 26:case 5:en(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function Cn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,o=t,f=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(i,o,n),si(4,o);break;case 1:if(Cn(i,o,n),l=o,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(N){Ne(l,l.return,N)}if(l=o,i=l.updateQueue,i!==null){var v=l.stateNode;try{var E=i.shared.hiddenCallbacks;if(E!==null)for(i.shared.hiddenCallbacks=null,i=0;i<E.length;i++)yd(E[i],v)}catch(N){Ne(l,l.return,N)}}n&&f&64&&Om(o),fi(o,o.return);break;case 27:zm(o);case 26:case 5:Cn(i,o,n),n&&l===null&&f&4&&Nm(o),fi(o,o.return);break;case 12:Cn(i,o,n);break;case 31:Cn(i,o,n),n&&f&4&&Bm(i,o);break;case 13:Cn(i,o,n),n&&f&4&&Gm(i,o);break;case 22:o.memoizedState===null&&Cn(i,o,n),fi(o,o.return);break;case 30:break;default:Cn(i,o,n)}t=t.sibling}}function vc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$a(n))}function pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Kt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qm(e,t,n,l),t=t.sibling}function qm(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,n,l),i&2048&&si(9,t);break;case 1:Kt(e,t,n,l);break;case 3:Kt(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(i&2048){Kt(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,f=o.id,v=o.onPostCommit;typeof v=="function"&&v(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Ne(t,t.return,E)}}else Kt(e,t,n,l);break;case 31:Kt(e,t,n,l);break;case 13:Kt(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,f=t.alternate,t.memoizedState!==null?o._visibility&2?Kt(e,t,n,l):di(e,t):o._visibility&2?Kt(e,t,n,l):(o._visibility|=2,oa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&vc(f,t);break;case 24:Kt(e,t,n,l),i&2048&&pc(t.alternate,t);break;default:Kt(e,t,n,l)}}function oa(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,f=t,v=n,E=l,N=f.flags;switch(f.tag){case 0:case 11:case 15:oa(o,f,v,E,i),si(8,f);break;case 23:break;case 22:var G=f.stateNode;f.memoizedState!==null?G._visibility&2?oa(o,f,v,E,i):di(o,f):(G._visibility|=2,oa(o,f,v,E,i)),i&&N&2048&&vc(f.alternate,f);break;case 24:oa(o,f,v,E,i),i&&N&2048&&pc(f.alternate,f);break;default:oa(o,f,v,E,i)}t=t.sibling}}function di(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:di(n,l),i&2048&&vc(l.alternate,l);break;case 24:di(n,l),i&2048&&pc(l.alternate,l);break;default:di(n,l)}t=t.sibling}}var mi=8192;function ra(e,t,n){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Xm(e,t,n),e=e.sibling}function Xm(e,t,n){switch(e.tag){case 26:ra(e,t,n),e.flags&mi&&e.memoizedState!==null&&pb(n,Zt,e.memoizedState,e.memoizedProps);break;case 5:ra(e,t,n);break;case 3:case 4:var l=Zt;Zt=Fu(e.stateNode.containerInfo),ra(e,t,n),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=mi,mi=16777216,ra(e,t,n),mi=l):ra(e,t,n));break;default:ra(e,t,n)}}function Vm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Pe=l,Zm(l,e)}Vm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qm(e),e=e.sibling}function Qm(e){switch(e.tag){case 0:case 11:case 15:hi(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lu(e)):hi(e);break;default:hi(e)}}function Lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Pe=l,Zm(l,e)}Vm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),Lu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Lu(t));break;default:Lu(t)}e=e.sibling}}function Zm(e,t){for(;Pe!==null;){var n=Pe;switch(n.tag){case 0:case 11:case 15:Zn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$a(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Pe=l;else e:for(n=e;Pe!==null;){l=Pe;var i=l.sibling,o=l.return;if(Lm(l),l===n){Pe=null;break e}if(i!==null){i.return=o,Pe=i;break e}Pe=o}}}var D0={getCacheForType:function(e){var t=at(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return at(Qe).controller.signal}},z0=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ue=null,Ee=null,Ce=0,Re=0,wt=null,Kn=!1,ca=!1,yc=!1,Mn=0,Ye=0,Jn=0,Ol=0,bc=0,_t=0,sa=0,gi=null,pt=null,xc=!1,Hu=0,Km=0,Bu=1/0,Gu=null,Fn=null,We=0,Wn=null,fa=null,Tn=0,Sc=0,Ec=null,Jm=null,vi=0,Ac=null;function Ot(){return(Oe&2)!==0&&Ce!==0?Ce&-Ce:O.T!==null?Oc():sf()}function Fm(){if(_t===0)if((Ce&536870912)===0||Te){var e=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),_t=e}else _t=536870912;return e=Mt.current,e!==null&&(e.flags|=32),_t}function yt(e,t,n){(e===Ue&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(da(e,0),$n(e,Ce,_t,!1)),Ha(e,n),((Oe&2)===0||e!==Ue)&&(e===Ue&&((Oe&2)===0&&(Ol|=n),Ye===4&&$n(e,Ce,_t,!1)),tn(e))}function Wm(e,t,n){if((Oe&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||La(e,t),i=l?L0(e,t):Mc(e,t,!0),o=l;do{if(i===0){ca&&!l&&$n(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!j0(n)){i=Mc(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var v=e;i=gi;var E=v.current.memoizedState.isDehydrated;if(E&&(da(v,f).flags|=256),f=Mc(v,f,!1),f!==2){if(yc&&!E){v.errorRecoveryDisabledLanes|=o,Ol|=o,i=4;break e}o=pt,pt=i,o!==null&&(pt===null?pt=o:pt.push.apply(pt,o))}i=f}if(o=!1,i!==2)continue}}if(i===1){da(e,0),$n(e,t,0,!0);break}e:{switch(l=e,o=i,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:$n(l,t,_t,!Kn);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=Hu+300-xt(),10<i)){if($n(l,t,_t,!Kn),Fi(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=wh($m.bind(null,l,n,pt,Gu,xc,t,_t,Ol,sa,Kn,o,"Throttled",-0,0),i);break e}$m(l,n,pt,Gu,xc,t,_t,Ol,sa,Kn,o,null,-0,0)}}break}while(!0);tn(e)}function $m(e,t,n,l,i,o,f,v,E,N,G,q,j,L){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fn},Xm(t,o,q);var te=(o&62914560)===o?Hu-xt():(o&4194048)===o?Km-xt():0;if(te=yb(q,te),te!==null){Tn=o,e.cancelPendingCommit=te(ih.bind(null,e,t,o,n,l,i,f,v,E,G,q,null,j,L)),$n(e,o,f,!N);return}}ih(e,t,o,n,l,i,f,v,E)}function j0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],o=i.getSnapshot;i=i.value;try{if(!At(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function $n(e,t,n,l){t&=~bc,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var o=31-Et(i),f=1<<o;l[o]=-1,i&=~f}n!==0&&of(e,n,t)}function ku(){return(Oe&6)===0?(pi(0),!1):!0}function Cc(){if(Ee!==null){if(Re===0)var e=Ee.return;else e=Ee,gn=xl=null,kr(e),na=null,Pa=0,e=Ee;for(;e!==null;)_m(e.alternate,e),e=e.return;Ee=null}}function da(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,eb(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,Cc(),Ue=e,Ee=n=mn(e.current,null),Ce=t,Re=0,wt=null,Kn=!1,ca=La(e,t),yc=!1,sa=_t=bc=Ol=Jn=Ye=0,pt=gi=null,xc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Et(l),o=1<<i;t|=e[i],l&=~o}return Mn=t,ou(),n}function Im(e,t){ve=null,O.H=oi,t===ta||t===gu?(t=hd(),Re=3):t===_r?(t=hd(),Re=4):Re=t===nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,Ee===null&&(Ye=1,Ou(e,Ut(t,e.current)))}function Pm(){var e=Mt.current;return e===null?!0:(Ce&4194048)===Ce?Gt===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===Gt:!1}function eh(){var e=O.H;return O.H=oi,e===null?oi:e}function th(){var e=O.A;return O.A=D0,e}function Yu(){Ye=4,Kn||(Ce&4194048)!==Ce&&Mt.current!==null||(ca=!0),(Jn&134217727)===0&&(Ol&134217727)===0||Ue===null||$n(Ue,Ce,_t,!1)}function Mc(e,t,n){var l=Oe;Oe|=2;var i=eh(),o=th();(Ue!==e||Ce!==t)&&(Gu=null,da(e,t)),t=!1;var f=Ye;e:do try{if(Re!==0&&Ee!==null){var v=Ee,E=wt;switch(Re){case 8:Cc(),f=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var N=Re;if(Re=0,wt=null,ma(e,v,E,N),n&&ca){f=0;break e}break;default:N=Re,Re=0,wt=null,ma(e,v,E,N)}}U0(),f=Ye;break}catch(G){Im(e,G)}while(!0);return t&&e.shellSuspendCounter++,gn=xl=null,Oe=l,O.H=i,O.A=o,Ee===null&&(Ue=null,Ce=0,ou()),f}function U0(){for(;Ee!==null;)nh(Ee)}function L0(e,t){var n=Oe;Oe|=2;var l=eh(),i=th();Ue!==e||Ce!==t?(Gu=null,Bu=xt()+500,da(e,t)):ca=La(e,t);e:do try{if(Re!==0&&Ee!==null){t=Ee;var o=wt;t:switch(Re){case 1:Re=0,wt=null,ma(e,t,o,1);break;case 2:case 9:if(dd(o)){Re=0,wt=null,lh(t);break}t=function(){Re!==2&&Re!==9||Ue!==e||(Re=7),tn(e)},o.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:dd(o)?(Re=0,wt=null,lh(t)):(Re=0,wt=null,ma(e,t,o,7));break;case 5:var f=null;switch(Ee.tag){case 26:f=Ee.memoizedState;case 5:case 27:var v=Ee;if(f?qh(f):v.stateNode.complete){Re=0,wt=null;var E=v.sibling;if(E!==null)Ee=E;else{var N=v.return;N!==null?(Ee=N,qu(N)):Ee=null}break t}}Re=0,wt=null,ma(e,t,o,5);break;case 6:Re=0,wt=null,ma(e,t,o,6);break;case 8:Cc(),Ye=6;break e;default:throw Error(r(462))}}H0();break}catch(G){Im(e,G)}while(!0);return gn=xl=null,O.H=l,O.A=i,Oe=n,Ee!==null?0:(Ue=null,Ce=0,ou(),Ye)}function H0(){for(;Ee!==null&&!uy();)nh(Ee)}function nh(e){var t=Tm(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?qu(e):Ee=t}function lh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=xm(n,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=xm(n,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:kr(t);default:_m(n,t),t=Ee=td(t,Mn),t=Tm(n,t,Mn)}e.memoizedProps=e.pendingProps,t===null?qu(e):Ee=t}function ma(e,t,n,l){gn=xl=null,kr(t),na=null,Pa=0;var i=t.return;try{if(M0(e,i,t,n,Ce)){Ye=1,Ou(e,Ut(n,e.current)),Ee=null;return}}catch(o){if(i!==null)throw Ee=i,o;Ye=1,Ou(e,Ut(n,e.current)),Ee=null;return}t.flags&32768?(Te||l===1?e=!0:ca||(Ce&536870912)!==0?e=!1:(Kn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Mt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ah(t,e)):qu(t)}function qu(e){var t=e;do{if((t.flags&32768)!==0){ah(t,Kn);return}e=t.return;var n=_0(t.alternate,t,Mn);if(n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ye===0&&(Ye=5)}function ah(e,t){do{var n=O0(e.alternate,e);if(n!==null){n.flags&=32767,Ee=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=n}while(e!==null);Ye=6,Ee=null}function ih(e,t,n,l,i,o,f,v,E){e.cancelPendingCommit=null;do Xu();while(We!==0);if((Oe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=mr,vy(e,n,o,f,v,E),e===Ue&&(Ee=Ue=null,Ce=0),fa=t,Wn=e,Tn=n,Sc=o,Ec=i,Jm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Y0(Qi,function(){return sh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,i=Q.p,Q.p=2,f=Oe,Oe|=4;try{R0(e,t,n)}finally{Oe=f,Q.p=i,O.T=l}}We=1,uh(),oh(),rh()}}function uh(){if(We===1){We=0;var e=Wn,t=fa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var l=Q.p;Q.p=2;var i=Oe;Oe|=4;try{km(t,e);var o=Hc,f=Zf(e.containerInfo),v=o.focusedElem,E=o.selectionRange;if(f!==v&&v&&v.ownerDocument&&Qf(v.ownerDocument.documentElement,v)){if(E!==null&&rr(v)){var N=E.start,G=E.end;if(G===void 0&&(G=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(G,v.value.length);else{var q=v.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var L=j.getSelection(),te=v.textContent.length,se=Math.min(E.start,te),je=E.end===void 0?se:Math.min(E.end,te);!L.extend&&se>je&&(f=je,je=se,se=f);var _=Vf(v,se),T=Vf(v,je);if(_&&T&&(L.rangeCount!==1||L.anchorNode!==_.node||L.anchorOffset!==_.offset||L.focusNode!==T.node||L.focusOffset!==T.offset)){var R=q.createRange();R.setStart(_.node,_.offset),L.removeAllRanges(),se>je?(L.addRange(R),L.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),L.addRange(R))}}}}for(q=[],L=v;L=L.parentNode;)L.nodeType===1&&q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var k=q[v];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}to=!!Lc,Hc=Lc=null}finally{Oe=i,Q.p=l,O.T=n}}e.current=t,We=2}}function oh(){if(We===2){We=0;var e=Wn,t=fa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var l=Q.p;Q.p=2;var i=Oe;Oe|=4;try{Um(e,t.alternate,t)}finally{Oe=i,Q.p=l,O.T=n}}We=3}}function rh(){if(We===4||We===3){We=0,oy();var e=Wn,t=fa,n=Tn,l=Jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,fa=Wn=null,ch(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Fn=null),Xo(n),t=t.stateNode,St&&typeof St.onCommitFiberRoot=="function")try{St.onCommitFiberRoot(Ua,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var o=e.onRecoverableError,f=0;f<l.length;f++){var v=l[f];o(v.value,{componentStack:v.stack})}}finally{O.T=t,Q.p=i}}(Tn&3)!==0&&Xu(),tn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Ac?vi++:(vi=0,Ac=e):vi=0,pi(0)}}function ch(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Xu(){return uh(),oh(),rh(),sh()}function sh(){if(We!==5)return!1;var e=Wn,t=Sc;Sc=0;var n=Xo(Tn),l=O.T,i=Q.p;try{Q.p=32>n?32:n,O.T=null,n=Ec,Ec=null;var o=Wn,f=Tn;if(We=0,fa=Wn=null,Tn=0,(Oe&6)!==0)throw Error(r(331));var v=Oe;if(Oe|=4,Qm(o.current),qm(o,o.current,f,n),Oe=v,pi(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Ua,o)}catch{}return!0}finally{Q.p=i,O.T=l,ch(e,t)}}function fh(e,t,n){t=Ut(n,t),t=tc(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(Ha(e,2),tn(e))}function Ne(e,t,n){if(e.tag===3)fh(e,e,n);else for(;t!==null;){if(t.tag===3){fh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Fn===null||!Fn.has(l))){e=Ut(n,e),n=dm(2),l=Xn(t,n,2),l!==null&&(mm(n,l,t,e),Ha(l,2),tn(l));break}}t=t.return}}function Tc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new z0;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(yc=!0,i.add(n),e=B0.bind(null,e,t,n),t.then(e,e))}function B0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(Ce&n)===n&&(Ye===4||Ye===3&&(Ce&62914560)===Ce&&300>xt()-Hu?(Oe&2)===0&&da(e,0):bc|=n,sa===Ce&&(sa=0)),tn(e)}function dh(e,t){t===0&&(t=uf()),e=pl(e,t),e!==null&&(Ha(e,t),tn(e))}function G0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dh(e,n)}function k0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),dh(e,n)}function Y0(e,t){return Go(e,t)}var Vu=null,ha=null,wc=!1,Qu=!1,_c=!1,In=0;function tn(e){e!==ha&&e.next===null&&(ha===null?Vu=ha=e:ha=ha.next=e),Qu=!0,wc||(wc=!0,X0())}function pi(e,t){if(!_c&&Qu){_c=!0;do for(var n=!1,l=Vu;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var o=0;else{var f=l.suspendedLanes,v=l.pingedLanes;o=(1<<31-Et(42|e)+1)-1,o&=i&~(f&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,vh(l,o))}else o=Ce,o=Fi(l,l===Ue?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||La(l,o)||(n=!0,vh(l,o));l=l.next}while(n);_c=!1}}function q0(){mh()}function mh(){Qu=wc=!1;var e=0;In!==0&&P0()&&(e=In);for(var t=xt(),n=null,l=Vu;l!==null;){var i=l.next,o=hh(l,t);o===0?(l.next=null,n===null?Vu=i:n.next=i,i===null&&(ha=n)):(n=l,(e!==0||(o&3)!==0)&&(Qu=!0)),l=i}We!==0&&We!==5||pi(e),In!==0&&(In=0)}function hh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var f=31-Et(o),v=1<<f,E=i[f];E===-1?((v&n)===0||(v&l)!==0)&&(i[f]=gy(v,t)):E<=t&&(e.expiredLanes|=v),o&=~v}if(t=Ue,n=Ce,n=Fi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ko(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||La(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&ko(l),Xo(n)){case 2:case 8:n=lf;break;case 32:n=Qi;break;case 268435456:n=af;break;default:n=Qi}return l=gh.bind(null,e),n=Go(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&ko(l),e.callbackPriority=2,e.callbackNode=null,2}function gh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var l=Ce;return l=Fi(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Wm(e,l,t),hh(e,xt()),e.callbackNode!=null&&e.callbackNode===n?gh.bind(null,e):null)}function vh(e,t){if(Xu())return null;Wm(e,t,!0)}function X0(){tb(function(){(Oe&6)!==0?Go(nf,q0):mh()})}function Oc(){if(In===0){var e=Pl;e===0&&(e=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),In=e}return In}function ph(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pi(""+e)}function yh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function V0(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var o=ph((i[dt]||null).action),f=l.submitter;f&&(t=(t=f[dt]||null)?ph(t.formAction):f.getAttribute("formAction"),t!==null&&(o=t,f=null));var v=new lu("action","action",null,l,i);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(In!==0){var E=f?yh(i,f):new FormData(i);Fr(n,{pending:!0,data:E,method:i.method,action:o},null,E)}}else typeof o=="function"&&(v.preventDefault(),E=f?yh(i,f):new FormData(i),Fr(n,{pending:!0,data:E,method:i.method,action:o},o,E))},currentTarget:i}]})}}for(var Rc=0;Rc<dr.length;Rc++){var Nc=dr[Rc],Q0=Nc.toLowerCase(),Z0=Nc[0].toUpperCase()+Nc.slice(1);Qt(Q0,"on"+Z0)}Qt(Ff,"onAnimationEnd"),Qt(Wf,"onAnimationIteration"),Qt($f,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(r0,"onTransitionRun"),Qt(c0,"onTransitionStart"),Qt(s0,"onTransitionCancel"),Qt(If,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="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(" "),K0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yi));function bh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var f=l.length-1;0<=f;f--){var v=l[f],E=v.instance,N=v.currentTarget;if(v=v.listener,E!==o&&i.isPropagationStopped())break e;o=v,i.currentTarget=N;try{o(i)}catch(G){uu(G)}i.currentTarget=null,o=E}else for(f=0;f<l.length;f++){if(v=l[f],E=v.instance,N=v.currentTarget,v=v.listener,E!==o&&i.isPropagationStopped())break e;o=v,i.currentTarget=N;try{o(i)}catch(G){uu(G)}i.currentTarget=null,o=E}}}}function Ae(e,t){var n=t[Vo];n===void 0&&(n=t[Vo]=new Set);var l=e+"__bubble";n.has(l)||(xh(t,e,2,!1),n.add(l))}function Dc(e,t,n){var l=0;t&&(l|=4),xh(n,e,l,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[Zu]){e[Zu]=!0,mf.forEach(function(n){n!=="selectionchange"&&(K0.has(n)||Dc(n,!1,e),Dc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,Dc("selectionchange",!1,t))}}function xh(e,t,n,l){switch(Fh(t)){case 2:var i=Sb;break;case 8:i=Eb;break;default:i=Jc}n=i.bind(null,t,n,e),i=void 0,!Po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jc(e,t,n,l,i){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var v=l.stateNode.containerInfo;if(v===i)break;if(f===4)for(f=l.return;f!==null;){var E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;v!==null;){if(f=Ll(v),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){l=o=f;continue e}v=v.parentNode}}l=l.return}Mf(function(){var N=o,G=$o(n),q=[];e:{var j=Pf.get(e);if(j!==void 0){var L=lu,te=e;switch(e){case"keypress":if(tu(n)===0)break e;case"keydown":case"keyup":L=ky;break;case"focusin":te="focus",L=lr;break;case"focusout":te="blur",L=lr;break;case"beforeblur":case"afterblur":L=lr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=_y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Xy;break;case Ff:case Wf:case $f:L=Ny;break;case If:L=Qy;break;case"scroll":case"scrollend":L=Ty;break;case"wheel":L=Ky;break;case"copy":case"cut":case"paste":L=zy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Rf;break;case"toggle":case"beforetoggle":L=Fy}var se=(t&4)!==0,je=!se&&(e==="scroll"||e==="scrollend"),_=se?j!==null?j+"Capture":null:j;se=[];for(var T=N,R;T!==null;){var k=T;if(R=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||R===null||_===null||(k=ka(T,_),k!=null&&se.push(bi(T,k,R))),je)break;T=T.return}0<se.length&&(j=new L(j,te,null,n,G),q.push({event:j,listeners:se}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",j&&n!==Wo&&(te=n.relatedTarget||n.fromElement)&&(Ll(te)||te[Ul]))break e;if((L||j)&&(j=G.window===G?G:(j=G.ownerDocument)?j.defaultView||j.parentWindow:window,L?(te=n.relatedTarget||n.toElement,L=N,te=te?Ll(te):null,te!==null&&(je=d(te),se=te.tag,te!==je||se!==5&&se!==27&&se!==6)&&(te=null)):(L=null,te=N),L!==te)){if(se=_f,k="onMouseLeave",_="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(se=Rf,k="onPointerLeave",_="onPointerEnter",T="pointer"),je=L==null?j:Ga(L),R=te==null?j:Ga(te),j=new se(k,T+"leave",L,n,G),j.target=je,j.relatedTarget=R,k=null,Ll(G)===N&&(se=new se(_,T+"enter",te,n,G),se.target=R,se.relatedTarget=je,k=se),je=k,L&&te)t:{for(se=J0,_=L,T=te,R=0,k=_;k;k=se(k))R++;k=0;for(var oe=T;oe;oe=se(oe))k++;for(;0<R-k;)_=se(_),R--;for(;0<k-R;)T=se(T),k--;for(;R--;){if(_===T||T!==null&&_===T.alternate){se=_;break t}_=se(_),T=se(T)}se=null}else se=null;L!==null&&Sh(q,j,L,se,!1),te!==null&&je!==null&&Sh(q,je,te,se,!0)}}e:{if(j=N?Ga(N):window,L=j.nodeName&&j.nodeName.toLowerCase(),L==="select"||L==="input"&&j.type==="file")var we=Bf;else if(Lf(j))if(Gf)we=i0;else{we=l0;var ae=n0}else L=j.nodeName,!L||L.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?N&&Fo(N.elementType)&&(we=Bf):we=a0;if(we&&(we=we(e,N))){Hf(q,we,n,G);break e}ae&&ae(e,j,N),e==="focusout"&&N&&j.type==="number"&&N.memoizedProps.value!=null&&Jo(j,"number",j.value)}switch(ae=N?Ga(N):window,e){case"focusin":(Lf(ae)||ae.contentEditable==="true")&&(Ql=ae,cr=N,Ja=null);break;case"focusout":Ja=cr=Ql=null;break;case"mousedown":sr=!0;break;case"contextmenu":case"mouseup":case"dragend":sr=!1,Kf(q,n,G);break;case"selectionchange":if(o0)break;case"keydown":case"keyup":Kf(q,n,G)}var pe;if(ir)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Vl?jf(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Nf&&n.locale!=="ko"&&(Vl||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Vl&&(pe=Tf()):(Ln=G,er="value"in Ln?Ln.value:Ln.textContent,Vl=!0)),ae=Ku(N,Me),0<ae.length&&(Me=new Of(Me,e,null,n,G),q.push({event:Me,listeners:ae}),pe?Me.data=pe:(pe=Uf(n),pe!==null&&(Me.data=pe)))),(pe=$y?Iy(e,n):Py(e,n))&&(Me=Ku(N,"onBeforeInput"),0<Me.length&&(ae=new Of("onBeforeInput","beforeinput",null,n,G),q.push({event:ae,listeners:Me}),ae.data=pe)),V0(q,e,N,n,G)}bh(q,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ku(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=ka(e,n),i!=null&&l.unshift(bi(e,i,o)),i=ka(e,t),i!=null&&l.push(bi(e,i,o))),e.tag===3)return l;e=e.return}return[]}function J0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sh(e,t,n,l,i){for(var o=t._reactName,f=[];n!==null&&n!==l;){var v=n,E=v.alternate,N=v.stateNode;if(v=v.tag,E!==null&&E===l)break;v!==5&&v!==26&&v!==27||N===null||(E=N,i?(N=ka(n,o),N!=null&&f.unshift(bi(n,N,E))):i||(N=ka(n,o),N!=null&&f.push(bi(n,N,E)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var F0=/\r\n?/g,W0=/\u0000|\uFFFD/g;function Eh(e){return(typeof e=="string"?e:""+e).replace(F0,`
|
|
49
|
-
`).replace(W0,"")}function Ah(e,t){return t=Eh(t),Eh(e)===t}function ze(e,t,n,l,i,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Yl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Yl(e,""+l);break;case"className":$i(e,"class",l);break;case"tabIndex":$i(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(e,n,l);break;case"style":Af(e,l,o);break;case"data":if(t!=="object"){$i(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",i.name,i,null),ze(e,t,"formEncType",i.formEncType,i,null),ze(e,t,"formMethod",i.formMethod,i,null),ze(e,t,"formTarget",i.formTarget,i,null)):(ze(e,t,"encType",i.encType,i,null),ze(e,t,"method",i.method,i,null),ze(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=fn);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Pi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),Wi(e,"popover",l);break;case"xlinkActuate":sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Wi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Cy.get(n)||n,Wi(e,n,l))}}function Uc(e,t,n,l,i,o){switch(n){case"style":Af(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Yl(e,l):(typeof l=="number"||typeof l=="bigint")&&Yl(e,""+l);break;case"onScroll":l!=null&&Ae("scroll",e);break;case"onScrollEnd":l!=null&&Ae("scrollend",e);break;case"onClick":l!=null&&(e.onclick=fn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[dt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Wi(e,n,l)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var l=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var f=n[o];if(f!=null)switch(o){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,o,f,n,null)}}i&&ze(e,t,"srcSet",n.srcSet,n,null),l&&ze(e,t,"src",n.src,n,null);return;case"input":Ae("invalid",e);var v=o=f=i=null,E=null,N=null;for(l in n)if(n.hasOwnProperty(l)){var G=n[l];if(G!=null)switch(l){case"name":i=G;break;case"type":f=G;break;case"checked":E=G;break;case"defaultChecked":N=G;break;case"value":o=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:ze(e,t,l,G,n,null)}}bf(e,o,v,E,N,f,i,!1);return;case"select":Ae("invalid",e),l=f=o=null;for(i in n)if(n.hasOwnProperty(i)&&(v=n[i],v!=null))switch(i){case"value":o=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:ze(e,t,i,v,n,null)}t=o,n=f,e.multiple=!!l,t!=null?kl(e,!!l,t,!1):n!=null&&kl(e,!!l,n,!0);return;case"textarea":Ae("invalid",e),o=i=l=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":i=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:ze(e,t,f,v,n,null)}Sf(e,l,i,o);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,E,l,n,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(l=0;l<yi.length;l++)Ae(yi[l],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in n)if(n.hasOwnProperty(N)&&(l=n[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,N,l,n,null)}return;default:if(Fo(t)){for(G in n)n.hasOwnProperty(G)&&(l=n[G],l!==void 0&&Uc(e,t,G,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&ze(e,t,v,l,n,null))}function $0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,f=null,v=null,E=null,N=null,G=null;for(L in n){var q=n[L];if(n.hasOwnProperty(L)&&q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":E=q;default:l.hasOwnProperty(L)||ze(e,t,L,null,l,q)}}for(var j in l){var L=l[j];if(q=n[j],l.hasOwnProperty(j)&&(L!=null||q!=null))switch(j){case"type":o=L;break;case"name":i=L;break;case"checked":N=L;break;case"defaultChecked":G=L;break;case"value":f=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:L!==q&&ze(e,t,j,L,l,q)}}Ko(e,f,v,E,N,G,o,i);return;case"select":L=f=v=j=null;for(o in n)if(E=n[o],n.hasOwnProperty(o)&&E!=null)switch(o){case"value":break;case"multiple":L=E;default:l.hasOwnProperty(o)||ze(e,t,o,null,l,E)}for(i in l)if(o=l[i],E=n[i],l.hasOwnProperty(i)&&(o!=null||E!=null))switch(i){case"value":j=o;break;case"defaultValue":v=o;break;case"multiple":f=o;default:o!==E&&ze(e,t,i,o,l,E)}t=v,n=f,l=L,j!=null?kl(e,!!n,j,!1):!!l!=!!n&&(t!=null?kl(e,!!n,t,!0):kl(e,!!n,n?[]:"",!1));return;case"textarea":L=j=null;for(v in n)if(i=n[v],n.hasOwnProperty(v)&&i!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:ze(e,t,v,null,l,i)}for(f in l)if(i=l[f],o=n[f],l.hasOwnProperty(f)&&(i!=null||o!=null))switch(f){case"value":j=i;break;case"defaultValue":L=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==o&&ze(e,t,f,i,l,o)}xf(e,j,L);return;case"option":for(var te in n)if(j=n[te],n.hasOwnProperty(te)&&j!=null&&!l.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:ze(e,t,te,null,l,j)}for(E in l)if(j=l[E],L=n[E],l.hasOwnProperty(E)&&j!==L&&(j!=null||L!=null))switch(E){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:ze(e,t,E,j,l,L)}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 se in n)j=n[se],n.hasOwnProperty(se)&&j!=null&&!l.hasOwnProperty(se)&&ze(e,t,se,null,l,j);for(N in l)if(j=l[N],L=n[N],l.hasOwnProperty(N)&&j!==L&&(j!=null||L!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:ze(e,t,N,j,l,L)}return;default:if(Fo(t)){for(var je in n)j=n[je],n.hasOwnProperty(je)&&j!==void 0&&!l.hasOwnProperty(je)&&Uc(e,t,je,void 0,l,j);for(G in l)j=l[G],L=n[G],!l.hasOwnProperty(G)||j===L||j===void 0&&L===void 0||Uc(e,t,G,j,l,L);return}}for(var _ in n)j=n[_],n.hasOwnProperty(_)&&j!=null&&!l.hasOwnProperty(_)&&ze(e,t,_,null,l,j);for(q in l)j=l[q],L=n[q],!l.hasOwnProperty(q)||j===L||j==null&&L==null||ze(e,t,q,j,l,L)}function Ch(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],o=i.transferSize,f=i.initiatorType,v=i.duration;if(o&&v&&Ch(f)){for(f=0,v=i.responseEnd,l+=1;l<n.length;l++){var E=n[l],N=E.startTime;if(N>v)break;var G=E.transferSize,q=E.initiatorType;G&&Ch(q)&&(E=E.responseEnd,f+=G*(E<v?1:(v-N)/(E-N)))}if(--l,t+=8*(o+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lc=null,Hc=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function Mh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Th(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Bc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gc=null;function P0(){var e=window.event;return e&&e.type==="popstate"?e===Gc?!1:(Gc=e,!0):(Gc=null,!1)}var wh=typeof setTimeout=="function"?setTimeout:void 0,eb=typeof clearTimeout=="function"?clearTimeout:void 0,_h=typeof Promise=="function"?Promise:void 0,tb=typeof queueMicrotask=="function"?queueMicrotask:typeof _h<"u"?function(e){return _h.resolve(null).then(e).catch(nb)}:wh;function nb(e){setTimeout(function(){throw e})}function Pn(e){return e==="head"}function Oh(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),ya(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")xi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xi(n);for(var o=n.firstChild;o;){var f=o.nextSibling,v=o.nodeName;o[Ba]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=f}}else n==="body"&&xi(e.ownerDocument.body);n=i}while(n);ya(t)}function Rh(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function kc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":kc(n),Qo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function lb(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ba])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function ab(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=kt(e.nextSibling),e===null))return null;return e}function Nh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kt(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$?"||e.data==="$~"}function qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ib(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function kt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Xc=null;function Dh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return kt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function jh(e,t,n){switch(t=Ju(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function xi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qo(e)}var Yt=new Map,Uh=new Set;function Fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wn=Q.d;Q.d={f:ub,r:ob,D:rb,C:cb,L:sb,m:fb,X:mb,S:db,M:hb};function ub(){var e=wn.f(),t=ku();return e||t}function ob(e){var t=Hl(e);t!==null&&t.tag===5&&t.type==="form"?Id(t):wn.r(e)}var ga=typeof document>"u"?null:document;function Lh(e,t,n){var l=ga;if(l&&typeof t=="string"&&t){var i=zt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Uh.has(i)||(Uh.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ut(t,"link",e),Ie(t),l.head.appendChild(t)))}}function rb(e){wn.D(e),Lh("dns-prefetch",e,null)}function cb(e,t){wn.C(e,t),Lh("preconnect",e,t)}function sb(e,t,n){wn.L(e,t,n);var l=ga;if(l&&e&&t){var i='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+zt(n.imageSizes)+'"]')):i+='[href="'+zt(e)+'"]';var o=i;switch(t){case"style":o=va(e);break;case"script":o=pa(e)}Yt.has(o)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Yt.set(o,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Si(o))||t==="script"&&l.querySelector(Ei(o))||(t=l.createElement("link"),ut(t,"link",e),Ie(t),l.head.appendChild(t)))}}function fb(e,t){wn.m(e,t);var n=ga;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+zt(l)+'"][href="'+zt(e)+'"]',o=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=pa(e)}if(!Yt.has(o)&&(e=x({rel:"modulepreload",href:e},t),Yt.set(o,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ei(o)))return}l=n.createElement("link"),ut(l,"link",e),Ie(l),n.head.appendChild(l)}}}function db(e,t,n){wn.S(e,t,n);var l=ga;if(l&&e){var i=Bl(l).hoistableStyles,o=va(e);t=t||"default";var f=i.get(o);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(Si(o)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Yt.get(o))&&Vc(e,n);var E=f=l.createElement("link");Ie(E),ut(E,"link",e),E._p=new Promise(function(N,G){E.onload=N,E.onerror=G}),E.addEventListener("load",function(){v.loading|=1}),E.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Wu(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:v},i.set(o,f)}}}function mb(e,t){wn.X(e,t);var n=ga;if(n&&e){var l=Bl(n).hoistableScripts,i=pa(e),o=l.get(i);o||(o=n.querySelector(Ei(i)),o||(e=x({src:e,async:!0},t),(t=Yt.get(i))&&Qc(e,t),o=n.createElement("script"),Ie(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(i,o))}}function hb(e,t){wn.M(e,t);var n=ga;if(n&&e){var l=Bl(n).hoistableScripts,i=pa(e),o=l.get(i);o||(o=n.querySelector(Ei(i)),o||(e=x({src:e,async:!0,type:"module"},t),(t=Yt.get(i))&&Qc(e,t),o=n.createElement("script"),Ie(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(i,o))}}function Hh(e,t,n,l){var i=(i=ie.current)?Fu(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=va(n.href),n=Bl(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=va(n.href);var o=Bl(i).hoistableStyles,f=o.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,f),(o=i.querySelector(Si(e)))&&!o._p&&(f.instance=o,f.state.loading=5),Yt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Yt.set(e,n),o||gb(i,e,n,f.state))),t&&l===null)throw Error(r(528,""));return f}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pa(n),n=Bl(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function va(e){return'href="'+zt(e)+'"'}function Si(e){return'link[rel="stylesheet"]['+e+"]"}function Bh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function gb(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",n),Ie(t),e.head.appendChild(t))}function pa(e){return'[src="'+zt(e)+'"]'}function Ei(e){return"script[async]"+e}function Gh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+zt(n.href)+'"]');if(l)return t.instance=l,Ie(l),l;var i=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),ut(l,"style",i),Wu(l,n.precedence,e),t.instance=l;case"stylesheet":i=va(n.href);var o=e.querySelector(Si(i));if(o)return t.state.loading|=4,t.instance=o,Ie(o),o;l=Bh(n),(i=Yt.get(i))&&Vc(l,i),o=(e.ownerDocument||e).createElement("link"),Ie(o);var f=o;return f._p=new Promise(function(v,E){f.onload=v,f.onerror=E}),ut(o,"link",l),t.state.loading|=4,Wu(o,n.precedence,e),t.instance=o;case"script":return o=pa(n.src),(i=e.querySelector(Ei(o)))?(t.instance=i,Ie(i),i):(l=n,(i=Yt.get(o))&&(l=x({},n),Qc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Ie(i),ut(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Wu(l,n.precedence,e));return t.instance}function Wu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,o=i,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===t)o=v;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $u=null;function kh(e,t,n){if($u===null){var l=new Map,i=$u=new Map;i.set(n,l)}else i=$u,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Ba]||o[nt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var f=o.getAttribute(t)||"";f=e+f;var v=l.get(f);v?v.push(o):l.set(f,[o])}}return l}function Yh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function vb(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function qh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pb(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=va(l.href),o=t.querySelector(Si(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Iu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Ie(o);return}o=t.ownerDocument||t,l=Bh(l),(i=Yt.get(i))&&Vc(l,i),o=o.createElement("link"),Ie(o);var f=o;f._p=new Promise(function(v,E){f.onload=v,f.onerror=E}),ut(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Iu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Zc=0;function yb(e,t){return e.stylesheets&&e.count===0&&eo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&eo(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Zc===0&&(Zc=62500*I0());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&eo(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Zc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pu=null;function eo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pu=new Map,t.forEach(bb,e),Pu=null,Iu.call(e))}function bb(e,t){if(!(t.state.loading&4)){var n=Pu.get(e);if(n)var l=n.get(null);else{n=new Map,Pu.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var f=i[o];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),o=n.get(f)||l,o===l&&n.set(null,i),n.set(f,i),this.count++,l=Iu.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:X,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function xb(e,t,n,l,i,o,f,v,E){this.tag=1,this.containerInfo=e,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=Yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yo(0),this.hiddenUpdates=Yo(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Xh(e,t,n,l,i,o,f,v,E,N,G,q){return e=new xb(e,t,n,f,E,N,G,q,v),t=1,o===!0&&(t|=24),o=Ct(3,null,null,t),e.current=o,o.stateNode=e,t=Mr(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},Or(o),e}function Vh(e){return e?(e=Jl,e):Jl}function Qh(e,t,n,l,i,o){i=Vh(i),l.context===null?l.context=i:l.pendingContext=i,l=qn(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Xn(e,l,t),n!==null&&(yt(n,e,t),ti(n,e,t))}function Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Kc(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function Kh(e){if(e.tag===13||e.tag===31){var t=pl(e,67108864);t!==null&&yt(t,e,67108864),Kc(e,67108864)}}function Jh(e){if(e.tag===13||e.tag===31){var t=Ot();t=qo(t);var n=pl(e,t);n!==null&&yt(n,e,t),Kc(e,t)}}var to=!0;function Sb(e,t,n,l){var i=O.T;O.T=null;var o=Q.p;try{Q.p=2,Jc(e,t,n,l)}finally{Q.p=o,O.T=i}}function Eb(e,t,n,l){var i=O.T;O.T=null;var o=Q.p;try{Q.p=8,Jc(e,t,n,l)}finally{Q.p=o,O.T=i}}function Jc(e,t,n,l){if(to){var i=Fc(l);if(i===null)jc(e,t,l,no,n),Wh(e,l);else if(Cb(i,e,t,n,l))l.stopPropagation();else if(Wh(e,l),t&4&&-1<Ab.indexOf(e)){for(;i!==null;){var o=Hl(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var f=dl(o.pendingLanes);if(f!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var E=1<<31-Et(f);v.entanglements[1]|=E,f&=~E}tn(o),(Oe&6)===0&&(Bu=xt()+500,pi(0))}}break;case 31:case 13:v=pl(o,2),v!==null&&yt(v,o,2),ku(),Kc(o,2)}if(o=Fc(l),o===null&&jc(e,t,l,no,n),o===i)break;i=o}i!==null&&l.stopPropagation()}else jc(e,t,l,null,n)}}function Fc(e){return e=$o(e),Wc(e)}var no=null;function Wc(e){if(no=null,e=Ll(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return no=e,null}function Fh(e){switch(e){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(ry()){case nf:return 2;case lf:return 8;case Qi:case cy:return 32;case af:return 268435456;default:return 32}default:return 32}}var $c=!1,el=null,tl=null,nl=null,Ci=new Map,Mi=new Map,ll=[],Ab="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 Wh(e,t){switch(e){case"focusin":case"focusout":el=null;break;case"dragenter":case"dragleave":tl=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(t.pointerId)}}function Ti(e,t,n,l,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Hl(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Cb(e,t,n,l,i){switch(t){case"focusin":return el=Ti(el,e,t,n,l,i),!0;case"dragenter":return tl=Ti(tl,e,t,n,l,i),!0;case"mouseover":return nl=Ti(nl,e,t,n,l,i),!0;case"pointerover":var o=i.pointerId;return Ci.set(o,Ti(Ci.get(o)||null,e,t,n,l,i)),!0;case"gotpointercapture":return o=i.pointerId,Mi.set(o,Ti(Mi.get(o)||null,e,t,n,l,i)),!0}return!1}function $h(e){var t=Ll(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,ff(e.priority,function(){Jh(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,ff(e.priority,function(){Jh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Wo=l,n.target.dispatchEvent(l),Wo=null}else return t=Hl(n),t!==null&&Kh(t),e.blockedOn=n,!1;t.shift()}return!0}function Ih(e,t,n){lo(e)&&n.delete(t)}function Mb(){$c=!1,el!==null&&lo(el)&&(el=null),tl!==null&&lo(tl)&&(tl=null),nl!==null&&lo(nl)&&(nl=null),Ci.forEach(Ih),Mi.forEach(Ih)}function ao(e,t){e.blockedOn===t&&(e.blockedOn=null,$c||($c=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Mb)))}var io=null;function Ph(e){io!==e&&(io=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){io===e&&(io=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Wc(l||n)===null)continue;break}var o=Hl(n);o!==null&&(e.splice(t,3),t-=3,Fr(o,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function ya(e){function t(E){return ao(E,e)}el!==null&&ao(el,e),tl!==null&&ao(tl,e),nl!==null&&ao(nl,e),Ci.forEach(t),Mi.forEach(t);for(var n=0;n<ll.length;n++){var l=ll[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ll.length&&(n=ll[0],n.blockedOn===null);)$h(n),n.blockedOn===null&&ll.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],o=n[l+1],f=i[dt]||null;if(typeof o=="function")f||Ph(n);else if(f){var v=null;if(o&&o.hasAttribute("formAction")){if(i=o,f=o[dt]||null)v=f.formAction;else if(Wc(i)!==null)continue}else v=f.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),Ph(n)}}}function eg(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ic(e){this._internalRoot=e}uo.prototype.render=Ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Ot();Qh(n,l,e,t,null,null)},uo.prototype.unmount=Ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qh(e.current,2,null,e,null,null),ku(),t[Ul]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=sf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ll.length&&t!==0&&t<ll[n].priority;n++);ll.splice(n,0,e),n===0&&$h(e)}};var tg=u.version;if(tg!=="19.2.4")throw Error(r(527,tg,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var Tb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oo.isDisabled&&oo.supportsFiber)try{Ua=oo.inject(Tb),St=oo}catch{}}return _i.createRoot=function(e,t){if(!s(e))throw Error(r(299));var n=!1,l="",i=rm,o=cm,f=sm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Xh(e,1,!1,null,null,n,l,null,i,o,f,eg),e[Ul]=t.current,zc(e),new Ic(t)},_i.hydrateRoot=function(e,t,n){if(!s(e))throw Error(r(299));var l=!1,i="",o=rm,f=cm,v=sm,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Xh(e,1,!0,t,n??null,l,i,E,o,f,v,eg),t.context=Vh(null),n=t.current,l=Ot(),l=qo(l),i=qn(l),i.callback=null,Xn(n,i,l),n=l,t.current.lanes=n,Ha(t,n),tn(t),e[Ul]=t.current,zc(e),new uo(t)},_i.version="19.2.4",_i}var fg;function Lb(){if(fg)return ts.exports;fg=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),ts.exports=Ub(),ts.exports}var Hb=Lb();const Wg=b.createContext({theme:"system",setTheme:()=>null}),dg="conversations-dashboard-theme";function Bb({children:a,defaultTheme:u="system"}){const[c,r]=b.useState(()=>localStorage.getItem(dg)||u);b.useEffect(()=>{const d=window.document.documentElement;if(d.classList.remove("light","dark"),c==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.classList.add(m)}else d.classList.add(c)},[c]);const s=b.useMemo(()=>({theme:c,setTheme:d=>{localStorage.setItem(dg,d),r(d)}}),[c]);return h.jsx(Wg.Provider,{value:s,children:a})}function Gb(){const a=b.useContext(Wg);if(!a)throw new Error("useTheme must be used within a ThemeProvider");return a}/**
|
|
50
|
-
* @license lucide-react v0.468.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const kb=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$g=(...a)=>a.filter((u,c,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===c).join(" ").trim();/**
|
|
55
|
-
* @license lucide-react v0.468.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var Yb={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"};/**
|
|
60
|
-
* @license lucide-react v0.468.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const qb=b.forwardRef(({color:a="currentColor",size:u=24,strokeWidth:c=2,absoluteStrokeWidth:r,className:s="",children:d,iconNode:m,...g},y)=>b.createElement("svg",{ref:y,...Yb,width:u,height:u,stroke:a,strokeWidth:r?Number(c)*24/Number(u):c,className:$g("lucide",s),...g},[...m.map(([p,S])=>b.createElement(p,S)),...Array.isArray(d)?d:[d]]));/**
|
|
65
|
-
* @license lucide-react v0.468.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const bt=(a,u)=>{const c=b.forwardRef(({className:r,...s},d)=>b.createElement(qb,{ref:d,iconNode:u,className:$g(`lucide-${kb(a)}`,r),...s}));return c.displayName=`${a}`,c};/**
|
|
70
|
-
* @license lucide-react v0.468.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const Xb=bt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
75
|
-
* @license lucide-react v0.468.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const Vb=bt("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
80
|
-
* @license lucide-react v0.468.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const Ig=bt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
85
|
-
* @license lucide-react v0.468.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const Pg=bt("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
90
|
-
* @license lucide-react v0.468.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const ev=bt("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
95
|
-
* @license lucide-react v0.468.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const Qb=bt("MailOpen",[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]]);/**
|
|
100
|
-
* @license lucide-react v0.468.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const tv=bt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
105
|
-
* @license lucide-react v0.468.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const Zb=bt("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/**
|
|
110
|
-
* @license lucide-react v0.468.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const Kb=bt("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
115
|
-
* @license lucide-react v0.468.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const mg=bt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
120
|
-
* @license lucide-react v0.468.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const Jb=bt("RefreshCw",[["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"}]]);/**
|
|
125
|
-
* @license lucide-react v0.468.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const ws=bt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
130
|
-
* @license lucide-react v0.468.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const hg=bt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
135
|
-
* @license lucide-react v0.468.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const nv=bt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function lv(a){var u,c,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var s=a.length;for(u=0;u<s;u++)a[u]&&(c=lv(a[u]))&&(r&&(r+=" "),r+=c)}else for(c in a)a[c]&&(r&&(r+=" "),r+=c);return r}function av(){for(var a,u,c=0,r="",s=arguments.length;c<s;c++)(a=arguments[c])&&(u=lv(a))&&(r&&(r+=" "),r+=u);return r}const gg=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,vg=av,iv=(a,u)=>c=>{var r;if((u==null?void 0:u.variants)==null)return vg(a,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:s,defaultVariants:d}=u,m=Object.keys(s).map(p=>{const S=c==null?void 0:c[p],x=d==null?void 0:d[p];if(S===null)return null;const C=gg(S)||gg(x);return s[p][C]}),g=c&&Object.entries(c).reduce((p,S)=>{let[x,C]=S;return C===void 0||(p[x]=C),p},{}),y=u==null||(r=u.compoundVariants)===null||r===void 0?void 0:r.reduce((p,S)=>{let{class:x,className:C,...M}=S;return Object.entries(M).every(D=>{let[w,z]=D;return Array.isArray(z)?z.includes({...d,...g}[w]):{...d,...g}[w]===z})?[...p,x,C]:p},[]);return vg(a,m,y,c==null?void 0:c.class,c==null?void 0:c.className)},Fb=(a,u)=>{const c=new Array(a.length+u.length);for(let r=0;r<a.length;r++)c[r]=a[r];for(let r=0;r<u.length;r++)c[a.length+r]=u[r];return c},Wb=(a,u)=>({classGroupId:a,validator:u}),uv=(a=new Map,u=null,c)=>({nextPart:a,validators:u,classGroupId:c}),xo="-",pg=[],$b="arbitrary..",Ib=a=>{const u=ex(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return Pb(m);const g=m.split(xo),y=g[0]===""&&g.length>1?1:0;return ov(g,y,u)},getConflictingClassGroupIds:(m,g)=>{if(g){const y=r[m],p=c[m];return y?p?Fb(p,y):y:p||pg}return c[m]||pg}}},ov=(a,u,c)=>{if(a.length-u===0)return c.classGroupId;const s=a[u],d=c.nextPart.get(s);if(d){const p=ov(a,u+1,d);if(p)return p}const m=c.validators;if(m===null)return;const g=u===0?a.join(xo):a.slice(u).join(xo),y=m.length;for(let p=0;p<y;p++){const S=m[p];if(S.validator(g))return S.classGroupId}},Pb=a=>a.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const u=a.slice(1,-1),c=u.indexOf(":"),r=u.slice(0,c);return r?$b+r:void 0})(),ex=a=>{const{theme:u,classGroups:c}=a;return tx(c,u)},tx=(a,u)=>{const c=uv();for(const r in a){const s=a[r];_s(s,c,r,u)}return c},_s=(a,u,c,r)=>{const s=a.length;for(let d=0;d<s;d++){const m=a[d];nx(m,u,c,r)}},nx=(a,u,c,r)=>{if(typeof a=="string"){lx(a,u,c);return}if(typeof a=="function"){ax(a,u,c,r);return}ix(a,u,c,r)},lx=(a,u,c)=>{const r=a===""?u:rv(u,a);r.classGroupId=c},ax=(a,u,c,r)=>{if(ux(a)){_s(a(r),u,c,r);return}u.validators===null&&(u.validators=[]),u.validators.push(Wb(c,a))},ix=(a,u,c,r)=>{const s=Object.entries(a),d=s.length;for(let m=0;m<d;m++){const[g,y]=s[m];_s(y,rv(u,g),c,r)}},rv=(a,u)=>{let c=a;const r=u.split(xo),s=r.length;for(let d=0;d<s;d++){const m=r[d];let g=c.nextPart.get(m);g||(g=uv(),c.nextPart.set(m,g)),c=g}return c},ux=a=>"isThemeGetter"in a&&a.isThemeGetter===!0,ox=a=>{if(a<1)return{get:()=>{},set:()=>{}};let u=0,c=Object.create(null),r=Object.create(null);const s=(d,m)=>{c[d]=m,u++,u>a&&(u=0,r=c,c=Object.create(null))};return{get(d){let m=c[d];if(m!==void 0)return m;if((m=r[d])!==void 0)return s(d,m),m},set(d,m){d in c?c[d]=m:s(d,m)}}},ys="!",yg=":",rx=[],bg=(a,u,c,r,s)=>({modifiers:a,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:r,isExternal:s}),cx=a=>{const{prefix:u,experimentalParseClassName:c}=a;let r=s=>{const d=[];let m=0,g=0,y=0,p;const S=s.length;for(let w=0;w<S;w++){const z=s[w];if(m===0&&g===0){if(z===yg){d.push(s.slice(y,w)),y=w+1;continue}if(z==="/"){p=w;continue}}z==="["?m++:z==="]"?m--:z==="("?g++:z===")"&&g--}const x=d.length===0?s:s.slice(y);let C=x,M=!1;x.endsWith(ys)?(C=x.slice(0,-1),M=!0):x.startsWith(ys)&&(C=x.slice(1),M=!0);const D=p&&p>y?p-y:void 0;return bg(d,M,C,D)};if(u){const s=u+yg,d=r;r=m=>m.startsWith(s)?d(m.slice(s.length)):bg(rx,!1,m,void 0,!0)}if(c){const s=r;r=d=>c({className:d,parseClassName:s})}return r},sx=a=>{const u=new Map;return a.orderSensitiveModifiers.forEach((c,r)=>{u.set(c,1e6+r)}),c=>{const r=[];let s=[];for(let d=0;d<c.length;d++){const m=c[d],g=m[0]==="[",y=u.has(m);g||y?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(m)):s.push(m)}return s.length>0&&(s.sort(),r.push(...s)),r}},fx=a=>({cache:ox(a.cacheSize),parseClassName:cx(a),sortModifiers:sx(a),...Ib(a)}),dx=/\s+/,mx=(a,u)=>{const{parseClassName:c,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:d}=u,m=[],g=a.trim().split(dx);let y="";for(let p=g.length-1;p>=0;p-=1){const S=g[p],{isExternal:x,modifiers:C,hasImportantModifier:M,baseClassName:D,maybePostfixModifierPosition:w}=c(S);if(x){y=S+(y.length>0?" "+y:y);continue}let z=!!w,H=r(z?D.substring(0,w):D);if(!H){if(!z){y=S+(y.length>0?" "+y:y);continue}if(H=r(D),!H){y=S+(y.length>0?" "+y:y);continue}z=!1}const J=C.length===0?"":C.length===1?C[0]:d(C).join(":"),X=M?J+ys:J,V=X+H;if(m.indexOf(V)>-1)continue;m.push(V);const I=s(H,z);for(let $=0;$<I.length;++$){const Z=I[$];m.push(X+Z)}y=S+(y.length>0?" "+y:y)}return y},hx=(...a)=>{let u=0,c,r,s="";for(;u<a.length;)(c=a[u++])&&(r=cv(c))&&(s&&(s+=" "),s+=r);return s},cv=a=>{if(typeof a=="string")return a;let u,c="";for(let r=0;r<a.length;r++)a[r]&&(u=cv(a[r]))&&(c&&(c+=" "),c+=u);return c},gx=(a,...u)=>{let c,r,s,d;const m=y=>{const p=u.reduce((S,x)=>x(S),a());return c=fx(p),r=c.cache.get,s=c.cache.set,d=g,g(y)},g=y=>{const p=r(y);if(p)return p;const S=mx(y,c);return s(y,S),S};return d=m,(...y)=>d(hx(...y))},vx=[],$e=a=>{const u=c=>c[a]||vx;return u.isThemeGetter=!0,u},sv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,px=/^\d+\/\d+$/,yx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bx=/\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$/,xx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Sx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ba=a=>px.test(a),xe=a=>!!a&&!Number.isNaN(Number(a)),il=a=>!!a&&Number.isInteger(Number(a)),is=a=>a.endsWith("%")&&xe(a.slice(0,-1)),_n=a=>yx.test(a),Ax=()=>!0,Cx=a=>bx.test(a)&&!xx.test(a),dv=()=>!1,Mx=a=>Sx.test(a),Tx=a=>Ex.test(a),wx=a=>!ne(a)&&!le(a),_x=a=>_a(a,gv,dv),ne=a=>sv.test(a),Rl=a=>_a(a,vv,Cx),us=a=>_a(a,zx,xe),xg=a=>_a(a,mv,dv),Ox=a=>_a(a,hv,Tx),ro=a=>_a(a,pv,Mx),le=a=>fv.test(a),Oi=a=>Oa(a,vv),Rx=a=>Oa(a,jx),Sg=a=>Oa(a,mv),Nx=a=>Oa(a,gv),Dx=a=>Oa(a,hv),co=a=>Oa(a,pv,!0),_a=(a,u,c)=>{const r=sv.exec(a);return r?r[1]?u(r[1]):c(r[2]):!1},Oa=(a,u,c=!1)=>{const r=fv.exec(a);return r?r[1]?u(r[1]):c:!1},mv=a=>a==="position"||a==="percentage",hv=a=>a==="image"||a==="url",gv=a=>a==="length"||a==="size"||a==="bg-size",vv=a=>a==="length",zx=a=>a==="number",jx=a=>a==="family-name",pv=a=>a==="shadow",Ux=()=>{const a=$e("color"),u=$e("font"),c=$e("text"),r=$e("font-weight"),s=$e("tracking"),d=$e("leading"),m=$e("breakpoint"),g=$e("container"),y=$e("spacing"),p=$e("radius"),S=$e("shadow"),x=$e("inset-shadow"),C=$e("text-shadow"),M=$e("drop-shadow"),D=$e("blur"),w=$e("perspective"),z=$e("aspect"),H=$e("ease"),J=$e("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...V(),le,ne],$=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],K=()=>[le,ne,y],ce=()=>[ba,"full","auto",...K()],de=()=>[il,"none","subgrid",le,ne],fe=()=>["auto",{span:["full",il,le,ne]},il,le,ne],re=()=>[il,"auto",le,ne],ge=()=>["auto","min","max","fr",le,ne],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ye=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...K()],Q=()=>[ba,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],U=()=>[a,le,ne],F=()=>[...V(),Sg,xg,{position:[le,ne]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",Nx,_x,{size:[le,ne]}],B=()=>[is,Oi,Rl],W=()=>["","none","full",p,le,ne],Y=()=>["",xe,Oi,Rl],P=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[xe,is,Sg,xg],Le=()=>["","none",D,le,ne],be=()=>["none",xe,le,ne],rt=()=>["none",xe,le,ne],Xt=()=>[xe,le,ne],Vt=()=>[ba,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_n],breakpoint:[_n],color:[Ax],container:[_n],"drop-shadow":[_n],ease:["in","out","in-out"],font:[wx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_n],shadow:[_n],spacing:["px",xe],text:[_n],"text-shadow":[_n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ba,ne,le,z]}],container:["container"],columns:[{columns:[xe,ne,le,g]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:I()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ce()}],"inset-x":[{"inset-x":ce()}],"inset-y":[{"inset-y":ce()}],start:[{start:ce()}],end:[{end:ce()}],top:[{top:ce()}],right:[{right:ce()}],bottom:[{bottom:ce()}],left:[{left:ce()}],visibility:["visible","invisible","collapse"],z:[{z:[il,"auto",le,ne]}],basis:[{basis:[ba,"full","auto",g,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,ba,"auto","initial","none",ne]}],grow:[{grow:["",xe,le,ne]}],shrink:[{shrink:["",xe,le,ne]}],order:[{order:[il,"first","last","none",le,ne]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...ye()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...ye(),"baseline"]}],"place-self":[{"place-self":["auto",...ye()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[g,"screen",...Q()]}],"min-w":[{"min-w":[g,"screen","none",...Q()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[m]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",c,Oi,Rl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,le,us]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",is,ne]}],"font-family":[{font:[Rx,ne,u]}],"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:[s,le,ne]}],"line-clamp":[{"line-clamp":[xe,"none",le,us]}],leading:[{leading:[d,...K()]}],"list-image":[{"list-image":["none",le,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",le,Rl]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[xe,"auto",le,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ne]}],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",le,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},il,le,ne],radial:["",le,ne],conic:[il,le,ne]},Dx,Ox]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...P(),"hidden","none"]}],"divide-style":[{divide:[...P(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...P(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,le,ne]}],"outline-w":[{outline:["",xe,Oi,Rl]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",S,co,ro]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",x,co,ro]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[xe,Rl]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",C,co,ro]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[xe,le,ne]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[le,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",le,ne]}],filter:[{filter:["","none",le,ne]}],blur:[{blur:Le()}],brightness:[{brightness:[xe,le,ne]}],contrast:[{contrast:[xe,le,ne]}],"drop-shadow":[{"drop-shadow":["","none",M,co,ro]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",xe,le,ne]}],"hue-rotate":[{"hue-rotate":[xe,le,ne]}],invert:[{invert:["",xe,le,ne]}],saturate:[{saturate:[xe,le,ne]}],sepia:[{sepia:["",xe,le,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ne]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[xe,le,ne]}],"backdrop-contrast":[{"backdrop-contrast":[xe,le,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,le,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,le,ne]}],"backdrop-invert":[{"backdrop-invert":["",xe,le,ne]}],"backdrop-opacity":[{"backdrop-opacity":[xe,le,ne]}],"backdrop-saturate":[{"backdrop-saturate":[xe,le,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,le,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",le,ne]}],ease:[{ease:["linear","initial",H,le,ne]}],delay:[{delay:[xe,le,ne]}],animate:[{animate:["none",J,le,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,le,ne]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:Xt()}],"skew-x":[{"skew-x":Xt()}],"skew-y":[{"skew-y":Xt()}],transform:[{transform:[le,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Vt()}],"translate-x":[{"translate-x":Vt()}],"translate-y":[{"translate-y":Vt()}],"translate-z":[{"translate-z":Vt()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"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",le,ne]}],"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":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",le,ne]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[xe,Oi,Rl,us]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},Lx=gx(Ux);function Ve(...a){return Lx(av(a))}const Hx=iv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function an({className:a,variant:u,size:c,...r}){return h.jsx("button",{className:Ve(Hx({variant:u,size:c,className:a})),...r})}var Os=Fg();const Bx=Kg(Os);function Eg(a,u){if(typeof a=="function")return a(u);a!=null&&(a.current=u)}function _o(...a){return u=>{let c=!1;const r=a.map(s=>{const d=Eg(s,u);return!c&&typeof d=="function"&&(c=!0),d});if(c)return()=>{for(let s=0;s<r.length;s++){const d=r[s];typeof d=="function"?d():Eg(a[s],null)}}}}function ot(...a){return b.useCallback(_o(...a),a)}function Li(a){const u=Gx(a),c=b.forwardRef((r,s)=>{const{children:d,...m}=r,g=b.Children.toArray(d),y=g.find(Yx);if(y){const p=y.props.children,S=g.map(x=>x===y?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:x);return h.jsx(u,{...m,ref:s,children:b.isValidElement(p)?b.cloneElement(p,void 0,S):null})}return h.jsx(u,{...m,ref:s,children:d})});return c.displayName=`${a}.Slot`,c}function Gx(a){const u=b.forwardRef((c,r)=>{const{children:s,...d}=c;if(b.isValidElement(s)){const m=Xx(s),g=qx(d,s.props);return s.type!==b.Fragment&&(g.ref=r?_o(r,m):m),b.cloneElement(s,g)}return b.Children.count(s)>1?b.Children.only(null):null});return u.displayName=`${a}.SlotClone`,u}var kx=Symbol("radix.slottable");function Yx(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===kx}function qx(a,u){const c={...u};for(const r in u){const s=a[r],d=u[r];/^on[A-Z]/.test(r)?s&&d?c[r]=(...g)=>{const y=d(...g);return s(...g),y}:s&&(c[r]=s):r==="style"?c[r]={...s,...d}:r==="className"&&(c[r]=[s,d].filter(Boolean).join(" "))}return{...a,...c}}function Xx(a){var r,s;let u=(r=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:r.get,c=u&&"isReactWarning"in u&&u.isReactWarning;return c?a.ref:(u=(s=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:s.get,c=u&&"isReactWarning"in u&&u.isReactWarning,c?a.props.ref:a.props.ref||a.ref)}var Vx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=Vx.reduce((a,u)=>{const c=Li(`Primitive.${u}`),r=b.forwardRef((s,d)=>{const{asChild:m,...g}=s,y=m?c:u;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(y,{...g,ref:d})});return r.displayName=`Primitive.${u}`,{...a,[u]:r}},{});function yv(a,u){a&&Os.flushSync(()=>a.dispatchEvent(u))}function Qx(a,u){const c=b.createContext(u),r=d=>{const{children:m,...g}=d,y=b.useMemo(()=>g,Object.values(g));return h.jsx(c.Provider,{value:y,children:m})};r.displayName=a+"Provider";function s(d){const m=b.useContext(c);if(m)return m;if(u!==void 0)return u;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[r,s]}function Ra(a,u=[]){let c=[];function r(d,m){const g=b.createContext(m),y=c.length;c=[...c,m];const p=x=>{var H;const{scope:C,children:M,...D}=x,w=((H=C==null?void 0:C[a])==null?void 0:H[y])||g,z=b.useMemo(()=>D,Object.values(D));return h.jsx(w.Provider,{value:z,children:M})};p.displayName=d+"Provider";function S(x,C){var w;const M=((w=C==null?void 0:C[a])==null?void 0:w[y])||g,D=b.useContext(M);if(D)return D;if(m!==void 0)return m;throw new Error(`\`${x}\` must be used within \`${d}\``)}return[p,S]}const s=()=>{const d=c.map(m=>b.createContext(m));return function(g){const y=(g==null?void 0:g[a])||d;return b.useMemo(()=>({[`__scope${a}`]:{...g,[a]:y}}),[g,y])}};return s.scopeName=a,[r,Zx(s,...u)]}function Zx(...a){const u=a[0];if(a.length===1)return u;const c=()=>{const r=a.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(d){const m=r.reduce((g,{useScope:y,scopeName:p})=>{const x=y(d)[`__scope${p}`];return{...g,...x}},{});return b.useMemo(()=>({[`__scope${u.scopeName}`]:m}),[m])}};return c.scopeName=u.scopeName,c}function bv(a){const u=a+"CollectionProvider",[c,r]=Ra(u),[s,d]=c(u,{collectionRef:{current:null},itemMap:new Map}),m=w=>{const{scope:z,children:H}=w,J=ul.useRef(null),X=ul.useRef(new Map).current;return h.jsx(s,{scope:z,itemMap:X,collectionRef:J,children:H})};m.displayName=u;const g=a+"CollectionSlot",y=Li(g),p=ul.forwardRef((w,z)=>{const{scope:H,children:J}=w,X=d(g,H),V=ot(z,X.collectionRef);return h.jsx(y,{ref:V,children:J})});p.displayName=g;const S=a+"CollectionItemSlot",x="data-radix-collection-item",C=Li(S),M=ul.forwardRef((w,z)=>{const{scope:H,children:J,...X}=w,V=ul.useRef(null),I=ot(z,V),$=d(S,H);return ul.useEffect(()=>($.itemMap.set(V,{ref:V,...X}),()=>void $.itemMap.delete(V))),h.jsx(C,{[x]:"",ref:I,children:J})});M.displayName=S;function D(w){const z=d(a+"CollectionConsumer",w);return ul.useCallback(()=>{const J=z.collectionRef.current;if(!J)return[];const X=Array.from(J.querySelectorAll(`[${x}]`));return Array.from(z.itemMap.values()).sort(($,Z)=>X.indexOf($.ref.current)-X.indexOf(Z.ref.current))},[z.collectionRef,z.itemMap])}return[{Provider:m,Slot:p,ItemSlot:M},D,r]}function Se(a,u,{checkForDefaultPrevented:c=!0}={}){return function(s){if(a==null||a(s),c===!1||!s.defaultPrevented)return u==null?void 0:u(s)}}var rl=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Kx=Jg[" useInsertionEffect ".trim().toString()]||rl;function Rs({prop:a,defaultProp:u,onChange:c=()=>{},caller:r}){const[s,d,m]=Jx({defaultProp:u,onChange:c}),g=a!==void 0,y=g?a:s;{const S=b.useRef(a!==void 0);b.useEffect(()=>{const x=S.current;x!==g&&console.warn(`${r} is changing from ${x?"controlled":"uncontrolled"} to ${g?"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.`),S.current=g},[g,r])}const p=b.useCallback(S=>{var x;if(g){const C=Fx(S)?S(a):S;C!==a&&((x=m.current)==null||x.call(m,C))}else d(S)},[g,a,d,m]);return[y,p]}function Jx({defaultProp:a,onChange:u}){const[c,r]=b.useState(a),s=b.useRef(c),d=b.useRef(u);return Kx(()=>{d.current=u},[u]),b.useEffect(()=>{var m;s.current!==c&&((m=d.current)==null||m.call(d,c),s.current=c)},[c,s]),[c,r,d]}function Fx(a){return typeof a=="function"}function Wx(a,u){return b.useReducer((c,r)=>u[c][r]??c,a)}var fl=a=>{const{present:u,children:c}=a,r=$x(u),s=typeof c=="function"?c({present:r.isPresent}):b.Children.only(c),d=ot(r.ref,Ix(s));return typeof c=="function"||r.isPresent?b.cloneElement(s,{ref:d}):null};fl.displayName="Presence";function $x(a){const[u,c]=b.useState(),r=b.useRef(null),s=b.useRef(a),d=b.useRef("none"),m=a?"mounted":"unmounted",[g,y]=Wx(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=so(r.current);d.current=g==="mounted"?p:"none"},[g]),rl(()=>{const p=r.current,S=s.current;if(S!==a){const C=d.current,M=so(p);a?y("MOUNT"):M==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(S&&C!==M?"ANIMATION_OUT":"UNMOUNT"),s.current=a}},[a,y]),rl(()=>{if(u){let p;const S=u.ownerDocument.defaultView??window,x=M=>{const w=so(r.current).includes(CSS.escape(M.animationName));if(M.target===u&&w&&(y("ANIMATION_END"),!s.current)){const z=u.style.animationFillMode;u.style.animationFillMode="forwards",p=S.setTimeout(()=>{u.style.animationFillMode==="forwards"&&(u.style.animationFillMode=z)})}},C=M=>{M.target===u&&(d.current=so(r.current))};return u.addEventListener("animationstart",C),u.addEventListener("animationcancel",x),u.addEventListener("animationend",x),()=>{S.clearTimeout(p),u.removeEventListener("animationstart",C),u.removeEventListener("animationcancel",x),u.removeEventListener("animationend",x)}}else y("ANIMATION_END")},[u,y]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:b.useCallback(p=>{r.current=p?getComputedStyle(p):null,c(p)},[])}}function so(a){return(a==null?void 0:a.animationName)||"none"}function Ix(a){var r,s;let u=(r=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:r.get,c=u&&"isReactWarning"in u&&u.isReactWarning;return c?a.ref:(u=(s=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:s.get,c=u&&"isReactWarning"in u&&u.isReactWarning,c?a.props.ref:a.props.ref||a.ref)}var Px=Jg[" useId ".trim().toString()]||(()=>{}),e1=0;function Aa(a){const[u,c]=b.useState(Px());return rl(()=>{c(r=>r??String(e1++))},[a]),a||(u?`radix-${u}`:"")}var t1=b.createContext(void 0);function xv(a){const u=b.useContext(t1);return a||u||"ltr"}function On(a){const u=b.useRef(a);return b.useEffect(()=>{u.current=a}),b.useMemo(()=>(...c)=>{var r;return(r=u.current)==null?void 0:r.call(u,...c)},[])}function n1(a,u=globalThis==null?void 0:globalThis.document){const c=On(a);b.useEffect(()=>{const r=s=>{s.key==="Escape"&&c(s)};return u.addEventListener("keydown",r,{capture:!0}),()=>u.removeEventListener("keydown",r,{capture:!0})},[c,u])}var l1="DismissableLayer",bs="dismissableLayer.update",a1="dismissableLayer.pointerDownOutside",i1="dismissableLayer.focusOutside",Ag,Sv=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ns=b.forwardRef((a,u)=>{const{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:m,onDismiss:g,...y}=a,p=b.useContext(Sv),[S,x]=b.useState(null),C=(S==null?void 0:S.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,M]=b.useState({}),D=ot(u,Z=>x(Z)),w=Array.from(p.layers),[z]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),H=w.indexOf(z),J=S?w.indexOf(S):-1,X=p.layersWithOutsidePointerEventsDisabled.size>0,V=J>=H,I=r1(Z=>{const K=Z.target,ce=[...p.branches].some(de=>de.contains(K));!V||ce||(s==null||s(Z),m==null||m(Z),Z.defaultPrevented||g==null||g())},C),$=c1(Z=>{const K=Z.target;[...p.branches].some(de=>de.contains(K))||(d==null||d(Z),m==null||m(Z),Z.defaultPrevented||g==null||g())},C);return n1(Z=>{J===p.layers.size-1&&(r==null||r(Z),!Z.defaultPrevented&&g&&(Z.preventDefault(),g()))},C),b.useEffect(()=>{if(S)return c&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ag=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(S)),p.layers.add(S),Cg(),()=>{c&&p.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=Ag)}},[S,C,c,p]),b.useEffect(()=>()=>{S&&(p.layers.delete(S),p.layersWithOutsidePointerEventsDisabled.delete(S),Cg())},[S,p]),b.useEffect(()=>{const Z=()=>M({});return document.addEventListener(bs,Z),()=>document.removeEventListener(bs,Z)},[]),h.jsx(Fe.div,{...y,ref:D,style:{pointerEvents:X?V?"auto":"none":void 0,...a.style},onFocusCapture:Se(a.onFocusCapture,$.onFocusCapture),onBlurCapture:Se(a.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Se(a.onPointerDownCapture,I.onPointerDownCapture)})});Ns.displayName=l1;var u1="DismissableLayerBranch",o1=b.forwardRef((a,u)=>{const c=b.useContext(Sv),r=b.useRef(null),s=ot(u,r);return b.useEffect(()=>{const d=r.current;if(d)return c.branches.add(d),()=>{c.branches.delete(d)}},[c.branches]),h.jsx(Fe.div,{...a,ref:s})});o1.displayName=u1;function r1(a,u=globalThis==null?void 0:globalThis.document){const c=On(a),r=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const d=g=>{if(g.target&&!r.current){let y=function(){Ev(a1,c,p,{discrete:!0})};const p={originalEvent:g};g.pointerType==="touch"?(u.removeEventListener("click",s.current),s.current=y,u.addEventListener("click",s.current,{once:!0})):y()}else u.removeEventListener("click",s.current);r.current=!1},m=window.setTimeout(()=>{u.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),u.removeEventListener("pointerdown",d),u.removeEventListener("click",s.current)}},[u,c]),{onPointerDownCapture:()=>r.current=!0}}function c1(a,u=globalThis==null?void 0:globalThis.document){const c=On(a),r=b.useRef(!1);return b.useEffect(()=>{const s=d=>{d.target&&!r.current&&Ev(i1,c,{originalEvent:d},{discrete:!1})};return u.addEventListener("focusin",s),()=>u.removeEventListener("focusin",s)},[u,c]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Cg(){const a=new CustomEvent(bs);document.dispatchEvent(a)}function Ev(a,u,c,{discrete:r}){const s=c.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});u&&s.addEventListener(a,u,{once:!0}),r?yv(s,d):s.dispatchEvent(d)}var os="focusScope.autoFocusOnMount",rs="focusScope.autoFocusOnUnmount",Mg={bubbles:!1,cancelable:!0},s1="FocusScope",Ds=b.forwardRef((a,u)=>{const{loop:c=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:d,...m}=a,[g,y]=b.useState(null),p=On(s),S=On(d),x=b.useRef(null),C=ot(u,w=>y(w)),M=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let w=function(X){if(M.paused||!g)return;const V=X.target;g.contains(V)?x.current=V:ol(x.current,{select:!0})},z=function(X){if(M.paused||!g)return;const V=X.relatedTarget;V!==null&&(g.contains(V)||ol(x.current,{select:!0}))},H=function(X){if(document.activeElement===document.body)for(const I of X)I.removedNodes.length>0&&ol(g)};document.addEventListener("focusin",w),document.addEventListener("focusout",z);const J=new MutationObserver(H);return g&&J.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",z),J.disconnect()}}},[r,g,M.paused]),b.useEffect(()=>{if(g){wg.add(M);const w=document.activeElement;if(!g.contains(w)){const H=new CustomEvent(os,Mg);g.addEventListener(os,p),g.dispatchEvent(H),H.defaultPrevented||(f1(v1(Av(g)),{select:!0}),document.activeElement===w&&ol(g))}return()=>{g.removeEventListener(os,p),setTimeout(()=>{const H=new CustomEvent(rs,Mg);g.addEventListener(rs,S),g.dispatchEvent(H),H.defaultPrevented||ol(w??document.body,{select:!0}),g.removeEventListener(rs,S),wg.remove(M)},0)}}},[g,p,S,M]);const D=b.useCallback(w=>{if(!c&&!r||M.paused)return;const z=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,H=document.activeElement;if(z&&H){const J=w.currentTarget,[X,V]=d1(J);X&&V?!w.shiftKey&&H===V?(w.preventDefault(),c&&ol(X,{select:!0})):w.shiftKey&&H===X&&(w.preventDefault(),c&&ol(V,{select:!0})):H===J&&w.preventDefault()}},[c,r,M.paused]);return h.jsx(Fe.div,{tabIndex:-1,...m,ref:C,onKeyDown:D})});Ds.displayName=s1;function f1(a,{select:u=!1}={}){const c=document.activeElement;for(const r of a)if(ol(r,{select:u}),document.activeElement!==c)return}function d1(a){const u=Av(a),c=Tg(u,a),r=Tg(u.reverse(),a);return[c,r]}function Av(a){const u=[],c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;c.nextNode();)u.push(c.currentNode);return u}function Tg(a,u){for(const c of a)if(!m1(c,{upTo:u}))return c}function m1(a,{upTo:u}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(u!==void 0&&a===u)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function h1(a){return a instanceof HTMLInputElement&&"select"in a}function ol(a,{select:u=!1}={}){if(a&&a.focus){const c=document.activeElement;a.focus({preventScroll:!0}),a!==c&&h1(a)&&u&&a.select()}}var wg=g1();function g1(){let a=[];return{add(u){const c=a[0];u!==c&&(c==null||c.pause()),a=_g(a,u),a.unshift(u)},remove(u){var c;a=_g(a,u),(c=a[0])==null||c.resume()}}}function _g(a,u){const c=[...a],r=c.indexOf(u);return r!==-1&&c.splice(r,1),c}function v1(a){return a.filter(u=>u.tagName!=="A")}var p1="Portal",zs=b.forwardRef((a,u)=>{var g;const{container:c,...r}=a,[s,d]=b.useState(!1);rl(()=>d(!0),[]);const m=c||s&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return m?Bx.createPortal(h.jsx(Fe.div,{...r,ref:u}),m):null});zs.displayName=p1;var cs=0;function Cv(){b.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??Og()),document.body.insertAdjacentElement("beforeend",a[1]??Og()),cs++,()=>{cs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(u=>u.remove()),cs--}},[])}function Og(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var nn=function(){return nn=Object.assign||function(u){for(var c,r=1,s=arguments.length;r<s;r++){c=arguments[r];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(u[d]=c[d])}return u},nn.apply(this,arguments)};function Mv(a,u){var c={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&u.indexOf(r)<0&&(c[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(a);s<r.length;s++)u.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(a,r[s])&&(c[r[s]]=a[r[s]]);return c}function y1(a,u,c){if(c||arguments.length===2)for(var r=0,s=u.length,d;r<s;r++)(d||!(r in u))&&(d||(d=Array.prototype.slice.call(u,0,r)),d[r]=u[r]);return a.concat(d||Array.prototype.slice.call(u))}var po="right-scroll-bar-position",yo="width-before-scroll-bar",b1="with-scroll-bars-hidden",x1="--removed-body-scroll-bar-size";function ss(a,u){return typeof a=="function"?a(u):a&&(a.current=u),a}function S1(a,u){var c=b.useState(function(){return{value:a,callback:u,facade:{get current(){return c.value},set current(r){var s=c.value;s!==r&&(c.value=r,c.callback(r,s))}}}})[0];return c.callback=u,c.facade}var E1=typeof window<"u"?b.useLayoutEffect:b.useEffect,Rg=new WeakMap;function A1(a,u){var c=S1(null,function(r){return a.forEach(function(s){return ss(s,r)})});return E1(function(){var r=Rg.get(c);if(r){var s=new Set(r),d=new Set(a),m=c.current;s.forEach(function(g){d.has(g)||ss(g,null)}),d.forEach(function(g){s.has(g)||ss(g,m)})}Rg.set(c,a)},[a]),c}function C1(a){return a}function M1(a,u){u===void 0&&(u=C1);var c=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:a},useMedium:function(d){var m=u(d,r);return c.push(m),function(){c=c.filter(function(g){return g!==m})}},assignSyncMedium:function(d){for(r=!0;c.length;){var m=c;c=[],m.forEach(d)}c={push:function(g){return d(g)},filter:function(){return c}}},assignMedium:function(d){r=!0;var m=[];if(c.length){var g=c;c=[],g.forEach(d),m=c}var y=function(){var S=m;m=[],S.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),c={push:function(S){m.push(S),p()},filter:function(S){return m=m.filter(S),c}}}};return s}function T1(a){a===void 0&&(a={});var u=M1(null);return u.options=nn({async:!0,ssr:!1},a),u}var Tv=function(a){var u=a.sideCar,c=Mv(a,["sideCar"]);if(!u)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=u.read();if(!r)throw new Error("Sidecar medium not found");return b.createElement(r,nn({},c))};Tv.isSideCarExport=!0;function w1(a,u){return a.useMedium(u),Tv}var wv=T1(),fs=function(){},Oo=b.forwardRef(function(a,u){var c=b.useRef(null),r=b.useState({onScrollCapture:fs,onWheelCapture:fs,onTouchMoveCapture:fs}),s=r[0],d=r[1],m=a.forwardProps,g=a.children,y=a.className,p=a.removeScrollBar,S=a.enabled,x=a.shards,C=a.sideCar,M=a.noRelative,D=a.noIsolation,w=a.inert,z=a.allowPinchZoom,H=a.as,J=H===void 0?"div":H,X=a.gapMode,V=Mv(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=C,$=A1([c,u]),Z=nn(nn({},V),s);return b.createElement(b.Fragment,null,S&&b.createElement(I,{sideCar:wv,removeScrollBar:p,shards:x,noRelative:M,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!z,lockRef:c,gapMode:X}),m?b.cloneElement(b.Children.only(g),nn(nn({},Z),{ref:$})):b.createElement(J,nn({},Z,{className:y,ref:$}),g))});Oo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oo.classNames={fullWidth:yo,zeroRight:po};var _1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function O1(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var u=_1();return u&&a.setAttribute("nonce",u),a}function R1(a,u){a.styleSheet?a.styleSheet.cssText=u:a.appendChild(document.createTextNode(u))}function N1(a){var u=document.head||document.getElementsByTagName("head")[0];u.appendChild(a)}var D1=function(){var a=0,u=null;return{add:function(c){a==0&&(u=O1())&&(R1(u,c),N1(u)),a++},remove:function(){a--,!a&&u&&(u.parentNode&&u.parentNode.removeChild(u),u=null)}}},z1=function(){var a=D1();return function(u,c){b.useEffect(function(){return a.add(u),function(){a.remove()}},[u&&c])}},_v=function(){var a=z1(),u=function(c){var r=c.styles,s=c.dynamic;return a(r,s),null};return u},j1={left:0,top:0,right:0,gap:0},ds=function(a){return parseInt(a||"",10)||0},U1=function(a){var u=window.getComputedStyle(document.body),c=u[a==="padding"?"paddingLeft":"marginLeft"],r=u[a==="padding"?"paddingTop":"marginTop"],s=u[a==="padding"?"paddingRight":"marginRight"];return[ds(c),ds(r),ds(s)]},L1=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return j1;var u=U1(a),c=document.documentElement.clientWidth,r=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,r-c+u[2]-u[0])}},H1=_v(),Ca="data-scroll-locked",B1=function(a,u,c,r){var s=a.left,d=a.top,m=a.right,g=a.gap;return c===void 0&&(c="margin"),`
|
|
140
|
-
.`.concat(b1,` {
|
|
141
|
-
overflow: hidden `).concat(r,`;
|
|
142
|
-
padding-right: `).concat(g,"px ").concat(r,`;
|
|
143
|
-
}
|
|
144
|
-
body[`).concat(Ca,`] {
|
|
145
|
-
overflow: hidden `).concat(r,`;
|
|
146
|
-
overscroll-behavior: contain;
|
|
147
|
-
`).concat([u&&"position: relative ".concat(r,";"),c==="margin"&&`
|
|
148
|
-
padding-left: `.concat(s,`px;
|
|
149
|
-
padding-top: `).concat(d,`px;
|
|
150
|
-
padding-right: `).concat(m,`px;
|
|
151
|
-
margin-left:0;
|
|
152
|
-
margin-top:0;
|
|
153
|
-
margin-right: `).concat(g,"px ").concat(r,`;
|
|
154
|
-
`),c==="padding"&&"padding-right: ".concat(g,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.`).concat(po,` {
|
|
158
|
-
right: `).concat(g,"px ").concat(r,`;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.`).concat(yo,` {
|
|
162
|
-
margin-right: `).concat(g,"px ").concat(r,`;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.`).concat(po," .").concat(po,` {
|
|
166
|
-
right: 0 `).concat(r,`;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.`).concat(yo," .").concat(yo,` {
|
|
170
|
-
margin-right: 0 `).concat(r,`;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
body[`).concat(Ca,`] {
|
|
174
|
-
`).concat(x1,": ").concat(g,`px;
|
|
175
|
-
}
|
|
176
|
-
`)},Ng=function(){var a=parseInt(document.body.getAttribute(Ca)||"0",10);return isFinite(a)?a:0},G1=function(){b.useEffect(function(){return document.body.setAttribute(Ca,(Ng()+1).toString()),function(){var a=Ng()-1;a<=0?document.body.removeAttribute(Ca):document.body.setAttribute(Ca,a.toString())}},[])},k1=function(a){var u=a.noRelative,c=a.noImportant,r=a.gapMode,s=r===void 0?"margin":r;G1();var d=b.useMemo(function(){return L1(s)},[s]);return b.createElement(H1,{styles:B1(d,!u,s,c?"":"!important")})},xs=!1;if(typeof window<"u")try{var fo=Object.defineProperty({},"passive",{get:function(){return xs=!0,!0}});window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{xs=!1}var xa=xs?{passive:!1}:!1,Y1=function(a){return a.tagName==="TEXTAREA"},Ov=function(a,u){if(!(a instanceof Element))return!1;var c=window.getComputedStyle(a);return c[u]!=="hidden"&&!(c.overflowY===c.overflowX&&!Y1(a)&&c[u]==="visible")},q1=function(a){return Ov(a,"overflowY")},X1=function(a){return Ov(a,"overflowX")},Dg=function(a,u){var c=u.ownerDocument,r=u;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Rv(a,r);if(s){var d=Nv(a,r),m=d[1],g=d[2];if(m>g)return!0}r=r.parentNode}while(r&&r!==c.body);return!1},V1=function(a){var u=a.scrollTop,c=a.scrollHeight,r=a.clientHeight;return[u,c,r]},Q1=function(a){var u=a.scrollLeft,c=a.scrollWidth,r=a.clientWidth;return[u,c,r]},Rv=function(a,u){return a==="v"?q1(u):X1(u)},Nv=function(a,u){return a==="v"?V1(u):Q1(u)},Z1=function(a,u){return a==="h"&&u==="rtl"?-1:1},K1=function(a,u,c,r,s){var d=Z1(a,window.getComputedStyle(u).direction),m=d*r,g=c.target,y=u.contains(g),p=!1,S=m>0,x=0,C=0;do{if(!g)break;var M=Nv(a,g),D=M[0],w=M[1],z=M[2],H=w-z-d*D;(D||H)&&Rv(a,g)&&(x+=H,C+=D);var J=g.parentNode;g=J&&J.nodeType===Node.DOCUMENT_FRAGMENT_NODE?J.host:J}while(!y&&g!==document.body||y&&(u.contains(g)||u===g));return(S&&Math.abs(x)<1||!S&&Math.abs(C)<1)&&(p=!0),p},mo=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},zg=function(a){return[a.deltaX,a.deltaY]},jg=function(a){return a&&"current"in a?a.current:a},J1=function(a,u){return a[0]===u[0]&&a[1]===u[1]},F1=function(a){return`
|
|
177
|
-
.block-interactivity-`.concat(a,` {pointer-events: none;}
|
|
178
|
-
.allow-interactivity-`).concat(a,` {pointer-events: all;}
|
|
179
|
-
`)},W1=0,Sa=[];function $1(a){var u=b.useRef([]),c=b.useRef([0,0]),r=b.useRef(),s=b.useState(W1++)[0],d=b.useState(_v)[0],m=b.useRef(a);b.useEffect(function(){m.current=a},[a]),b.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(s));var w=y1([a.lockRef.current],(a.shards||[]).map(jg),!0).filter(Boolean);return w.forEach(function(z){return z.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(z){return z.classList.remove("allow-interactivity-".concat(s))})}}},[a.inert,a.lockRef.current,a.shards]);var g=b.useCallback(function(w,z){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!m.current.allowPinchZoom;var H=mo(w),J=c.current,X="deltaX"in w?w.deltaX:J[0]-H[0],V="deltaY"in w?w.deltaY:J[1]-H[1],I,$=w.target,Z=Math.abs(X)>Math.abs(V)?"h":"v";if("touches"in w&&Z==="h"&&$.type==="range")return!1;var K=window.getSelection(),ce=K&&K.anchorNode,de=ce?ce===$||ce.contains($):!1;if(de)return!1;var fe=Dg(Z,$);if(!fe)return!0;if(fe?I=Z:(I=Z==="v"?"h":"v",fe=Dg(Z,$)),!fe)return!1;if(!r.current&&"changedTouches"in w&&(X||V)&&(r.current=I),!I)return!0;var re=r.current||I;return K1(re,z,w,re==="h"?X:V)},[]),y=b.useCallback(function(w){var z=w;if(!(!Sa.length||Sa[Sa.length-1]!==d)){var H="deltaY"in z?zg(z):mo(z),J=u.current.filter(function(I){return I.name===z.type&&(I.target===z.target||z.target===I.shadowParent)&&J1(I.delta,H)})[0];if(J&&J.should){z.cancelable&&z.preventDefault();return}if(!J){var X=(m.current.shards||[]).map(jg).filter(Boolean).filter(function(I){return I.contains(z.target)}),V=X.length>0?g(z,X[0]):!m.current.noIsolation;V&&z.cancelable&&z.preventDefault()}}},[]),p=b.useCallback(function(w,z,H,J){var X={name:w,delta:z,target:H,should:J,shadowParent:I1(H)};u.current.push(X),setTimeout(function(){u.current=u.current.filter(function(V){return V!==X})},1)},[]),S=b.useCallback(function(w){c.current=mo(w),r.current=void 0},[]),x=b.useCallback(function(w){p(w.type,zg(w),w.target,g(w,a.lockRef.current))},[]),C=b.useCallback(function(w){p(w.type,mo(w),w.target,g(w,a.lockRef.current))},[]);b.useEffect(function(){return Sa.push(d),a.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",y,xa),document.addEventListener("touchmove",y,xa),document.addEventListener("touchstart",S,xa),function(){Sa=Sa.filter(function(w){return w!==d}),document.removeEventListener("wheel",y,xa),document.removeEventListener("touchmove",y,xa),document.removeEventListener("touchstart",S,xa)}},[]);var M=a.removeScrollBar,D=a.inert;return b.createElement(b.Fragment,null,D?b.createElement(d,{styles:F1(s)}):null,M?b.createElement(k1,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function I1(a){for(var u=null;a!==null;)a instanceof ShadowRoot&&(u=a.host,a=a.host),a=a.parentNode;return u}const P1=w1(wv,$1);var js=b.forwardRef(function(a,u){return b.createElement(Oo,nn({},a,{ref:u,sideCar:P1}))});js.classNames=Oo.classNames;var eS=function(a){if(typeof document>"u")return null;var u=Array.isArray(a)?a[0]:a;return u.ownerDocument.body},Ea=new WeakMap,ho=new WeakMap,go={},ms=0,Dv=function(a){return a&&(a.host||Dv(a.parentNode))},tS=function(a,u){return u.map(function(c){if(a.contains(c))return c;var r=Dv(c);return r&&a.contains(r)?r:(console.error("aria-hidden",c,"in not contained inside",a,". Doing nothing"),null)}).filter(function(c){return!!c})},nS=function(a,u,c,r){var s=tS(u,Array.isArray(a)?a:[a]);go[c]||(go[c]=new WeakMap);var d=go[c],m=[],g=new Set,y=new Set(s),p=function(x){!x||g.has(x)||(g.add(x),p(x.parentNode))};s.forEach(p);var S=function(x){!x||y.has(x)||Array.prototype.forEach.call(x.children,function(C){if(g.has(C))S(C);else try{var M=C.getAttribute(r),D=M!==null&&M!=="false",w=(Ea.get(C)||0)+1,z=(d.get(C)||0)+1;Ea.set(C,w),d.set(C,z),m.push(C),w===1&&D&&ho.set(C,!0),z===1&&C.setAttribute(c,"true"),D||C.setAttribute(r,"true")}catch(H){console.error("aria-hidden: cannot operate on ",C,H)}})};return S(u),g.clear(),ms++,function(){m.forEach(function(x){var C=Ea.get(x)-1,M=d.get(x)-1;Ea.set(x,C),d.set(x,M),C||(ho.has(x)||x.removeAttribute(r),ho.delete(x)),M||x.removeAttribute(c)}),ms--,ms||(Ea=new WeakMap,Ea=new WeakMap,ho=new WeakMap,go={})}},zv=function(a,u,c){c===void 0&&(c="data-aria-hidden");var r=Array.from(Array.isArray(a)?a:[a]),s=eS(a);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),nS(r,s,c,"aria-hidden")):function(){return null}},Ro="Dialog",[jv]=Ra(Ro),[lS,Wt]=jv(Ro),Uv=a=>{const{__scopeDialog:u,children:c,open:r,defaultOpen:s,onOpenChange:d,modal:m=!0}=a,g=b.useRef(null),y=b.useRef(null),[p,S]=Rs({prop:r,defaultProp:s??!1,onChange:d,caller:Ro});return h.jsx(lS,{scope:u,triggerRef:g,contentRef:y,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),open:p,onOpenChange:S,onOpenToggle:b.useCallback(()=>S(x=>!x),[S]),modal:m,children:c})};Uv.displayName=Ro;var Lv="DialogTrigger",aS=b.forwardRef((a,u)=>{const{__scopeDialog:c,...r}=a,s=Wt(Lv,c),d=ot(u,s.triggerRef);return h.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Hs(s.open),...r,ref:d,onClick:Se(a.onClick,s.onOpenToggle)})});aS.displayName=Lv;var Us="DialogPortal",[iS,Hv]=jv(Us,{forceMount:void 0}),Bv=a=>{const{__scopeDialog:u,forceMount:c,children:r,container:s}=a,d=Wt(Us,u);return h.jsx(iS,{scope:u,forceMount:c,children:b.Children.map(r,m=>h.jsx(fl,{present:c||d.open,children:h.jsx(zs,{asChild:!0,container:s,children:m})}))})};Bv.displayName=Us;var So="DialogOverlay",Gv=b.forwardRef((a,u)=>{const c=Hv(So,a.__scopeDialog),{forceMount:r=c.forceMount,...s}=a,d=Wt(So,a.__scopeDialog);return d.modal?h.jsx(fl,{present:r||d.open,children:h.jsx(oS,{...s,ref:u})}):null});Gv.displayName=So;var uS=Li("DialogOverlay.RemoveScroll"),oS=b.forwardRef((a,u)=>{const{__scopeDialog:c,...r}=a,s=Wt(So,c);return h.jsx(js,{as:uS,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(Fe.div,{"data-state":Hs(s.open),...r,ref:u,style:{pointerEvents:"auto",...r.style}})})}),Nl="DialogContent",kv=b.forwardRef((a,u)=>{const c=Hv(Nl,a.__scopeDialog),{forceMount:r=c.forceMount,...s}=a,d=Wt(Nl,a.__scopeDialog);return h.jsx(fl,{present:r||d.open,children:d.modal?h.jsx(rS,{...s,ref:u}):h.jsx(cS,{...s,ref:u})})});kv.displayName=Nl;var rS=b.forwardRef((a,u)=>{const c=Wt(Nl,a.__scopeDialog),r=b.useRef(null),s=ot(u,c.contentRef,r);return b.useEffect(()=>{const d=r.current;if(d)return zv(d)},[]),h.jsx(Yv,{...a,ref:s,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(a.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=c.triggerRef.current)==null||m.focus()}),onPointerDownOutside:Se(a.onPointerDownOutside,d=>{const m=d.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0;(m.button===2||g)&&d.preventDefault()}),onFocusOutside:Se(a.onFocusOutside,d=>d.preventDefault())})}),cS=b.forwardRef((a,u)=>{const c=Wt(Nl,a.__scopeDialog),r=b.useRef(!1),s=b.useRef(!1);return h.jsx(Yv,{...a,ref:u,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,g;(m=a.onCloseAutoFocus)==null||m.call(a,d),d.defaultPrevented||(r.current||(g=c.triggerRef.current)==null||g.focus(),d.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:d=>{var y,p;(y=a.onInteractOutside)==null||y.call(a,d),d.defaultPrevented||(r.current=!0,d.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const m=d.target;((p=c.triggerRef.current)==null?void 0:p.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&s.current&&d.preventDefault()}})}),Yv=b.forwardRef((a,u)=>{const{__scopeDialog:c,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:d,...m}=a,g=Wt(Nl,c),y=b.useRef(null),p=ot(u,y);return Cv(),h.jsxs(h.Fragment,{children:[h.jsx(Ds,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:d,children:h.jsx(Ns,{role:"dialog",id:g.contentId,"aria-describedby":g.descriptionId,"aria-labelledby":g.titleId,"data-state":Hs(g.open),...m,ref:p,onDismiss:()=>g.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(sS,{titleId:g.titleId}),h.jsx(dS,{contentRef:y,descriptionId:g.descriptionId})]})]})}),Ls="DialogTitle",qv=b.forwardRef((a,u)=>{const{__scopeDialog:c,...r}=a,s=Wt(Ls,c);return h.jsx(Fe.h2,{id:s.titleId,...r,ref:u})});qv.displayName=Ls;var Xv="DialogDescription",Vv=b.forwardRef((a,u)=>{const{__scopeDialog:c,...r}=a,s=Wt(Xv,c);return h.jsx(Fe.p,{id:s.descriptionId,...r,ref:u})});Vv.displayName=Xv;var Qv="DialogClose",Zv=b.forwardRef((a,u)=>{const{__scopeDialog:c,...r}=a,s=Wt(Qv,c);return h.jsx(Fe.button,{type:"button",...r,ref:u,onClick:Se(a.onClick,()=>s.onOpenChange(!1))})});Zv.displayName=Qv;function Hs(a){return a?"open":"closed"}var Kv="DialogTitleWarning",[LA,Jv]=Qx(Kv,{contentName:Nl,titleName:Ls,docsSlug:"dialog"}),sS=({titleId:a})=>{const u=Jv(Kv),c=`\`${u.contentName}\` requires a \`${u.titleName}\` for the component to be accessible for screen reader users.
|
|
180
|
-
|
|
181
|
-
If you want to hide the \`${u.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
182
|
-
|
|
183
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${u.docsSlug}`;return b.useEffect(()=>{a&&(document.getElementById(a)||console.error(c))},[c,a]),null},fS="DialogDescriptionWarning",dS=({contentRef:a,descriptionId:u})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Jv(fS).contentName}}.`;return b.useEffect(()=>{var d;const s=(d=a.current)==null?void 0:d.getAttribute("aria-describedby");u&&s&&(document.getElementById(u)||console.warn(r))},[r,a,u]),null},mS=Uv,hS=Bv,gS=Gv,vS=kv,pS=qv,yS=Vv,bS=Zv;function xS(a){const[u,c]=b.useState(void 0);return rl(()=>{if(a){c({width:a.offsetWidth,height:a.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const d=s[0];let m,g;if("borderBoxSize"in d){const y=d.borderBoxSize,p=Array.isArray(y)?y[0]:y;m=p.inlineSize,g=p.blockSize}else m=a.offsetWidth,g=a.offsetHeight;c({width:m,height:g})});return r.observe(a,{box:"border-box"}),()=>r.unobserve(a)}else c(void 0)},[a]),u}const SS=["top","right","bottom","left"],cl=Math.min,Rt=Math.max,Eo=Math.round,vo=Math.floor,un=a=>({x:a,y:a}),ES={left:"right",right:"left",bottom:"top",top:"bottom"},AS={start:"end",end:"start"};function Ss(a,u,c){return Rt(a,cl(u,c))}function Rn(a,u){return typeof a=="function"?a(u):a}function Nn(a){return a.split("-")[0]}function Na(a){return a.split("-")[1]}function Bs(a){return a==="x"?"y":"x"}function Gs(a){return a==="y"?"height":"width"}const CS=new Set(["top","bottom"]);function ln(a){return CS.has(Nn(a))?"y":"x"}function ks(a){return Bs(ln(a))}function MS(a,u,c){c===void 0&&(c=!1);const r=Na(a),s=ks(a),d=Gs(s);let m=s==="x"?r===(c?"end":"start")?"right":"left":r==="start"?"bottom":"top";return u.reference[d]>u.floating[d]&&(m=Ao(m)),[m,Ao(m)]}function TS(a){const u=Ao(a);return[Es(a),u,Es(u)]}function Es(a){return a.replace(/start|end/g,u=>AS[u])}const Ug=["left","right"],Lg=["right","left"],wS=["top","bottom"],_S=["bottom","top"];function OS(a,u,c){switch(a){case"top":case"bottom":return c?u?Lg:Ug:u?Ug:Lg;case"left":case"right":return u?wS:_S;default:return[]}}function RS(a,u,c,r){const s=Na(a);let d=OS(Nn(a),c==="start",r);return s&&(d=d.map(m=>m+"-"+s),u&&(d=d.concat(d.map(Es)))),d}function Ao(a){return a.replace(/left|right|bottom|top/g,u=>ES[u])}function NS(a){return{top:0,right:0,bottom:0,left:0,...a}}function Fv(a){return typeof a!="number"?NS(a):{top:a,right:a,bottom:a,left:a}}function Co(a){const{x:u,y:c,width:r,height:s}=a;return{width:r,height:s,top:c,left:u,right:u+r,bottom:c+s,x:u,y:c}}function Hg(a,u,c){let{reference:r,floating:s}=a;const d=ln(u),m=ks(u),g=Gs(m),y=Nn(u),p=d==="y",S=r.x+r.width/2-s.width/2,x=r.y+r.height/2-s.height/2,C=r[g]/2-s[g]/2;let M;switch(y){case"top":M={x:S,y:r.y-s.height};break;case"bottom":M={x:S,y:r.y+r.height};break;case"right":M={x:r.x+r.width,y:x};break;case"left":M={x:r.x-s.width,y:x};break;default:M={x:r.x,y:r.y}}switch(Na(u)){case"start":M[m]-=C*(c&&p?-1:1);break;case"end":M[m]+=C*(c&&p?-1:1);break}return M}async function DS(a,u){var c;u===void 0&&(u={});const{x:r,y:s,platform:d,rects:m,elements:g,strategy:y}=a,{boundary:p="clippingAncestors",rootBoundary:S="viewport",elementContext:x="floating",altBoundary:C=!1,padding:M=0}=Rn(u,a),D=Fv(M),z=g[C?x==="floating"?"reference":"floating":x],H=Co(await d.getClippingRect({element:(c=await(d.isElement==null?void 0:d.isElement(z)))==null||c?z:z.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(g.floating)),boundary:p,rootBoundary:S,strategy:y})),J=x==="floating"?{x:r,y:s,width:m.floating.width,height:m.floating.height}:m.reference,X=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g.floating)),V=await(d.isElement==null?void 0:d.isElement(X))?await(d.getScale==null?void 0:d.getScale(X))||{x:1,y:1}:{x:1,y:1},I=Co(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:J,offsetParent:X,strategy:y}):J);return{top:(H.top-I.top+D.top)/V.y,bottom:(I.bottom-H.bottom+D.bottom)/V.y,left:(H.left-I.left+D.left)/V.x,right:(I.right-H.right+D.right)/V.x}}const zS=async(a,u,c)=>{const{placement:r="bottom",strategy:s="absolute",middleware:d=[],platform:m}=c,g=d.filter(Boolean),y=await(m.isRTL==null?void 0:m.isRTL(u));let p=await m.getElementRects({reference:a,floating:u,strategy:s}),{x:S,y:x}=Hg(p,r,y),C=r,M={},D=0;for(let z=0;z<g.length;z++){var w;const{name:H,fn:J}=g[z],{x:X,y:V,data:I,reset:$}=await J({x:S,y:x,initialPlacement:r,placement:C,strategy:s,middlewareData:M,rects:p,platform:{...m,detectOverflow:(w=m.detectOverflow)!=null?w:DS},elements:{reference:a,floating:u}});S=X??S,x=V??x,M={...M,[H]:{...M[H],...I}},$&&D<=50&&(D++,typeof $=="object"&&($.placement&&(C=$.placement),$.rects&&(p=$.rects===!0?await m.getElementRects({reference:a,floating:u,strategy:s}):$.rects),{x:S,y:x}=Hg(p,C,y)),z=-1)}return{x:S,y:x,placement:C,strategy:s,middlewareData:M}},jS=a=>({name:"arrow",options:a,async fn(u){const{x:c,y:r,placement:s,rects:d,platform:m,elements:g,middlewareData:y}=u,{element:p,padding:S=0}=Rn(a,u)||{};if(p==null)return{};const x=Fv(S),C={x:c,y:r},M=ks(s),D=Gs(M),w=await m.getDimensions(p),z=M==="y",H=z?"top":"left",J=z?"bottom":"right",X=z?"clientHeight":"clientWidth",V=d.reference[D]+d.reference[M]-C[M]-d.floating[D],I=C[M]-d.reference[M],$=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let Z=$?$[X]:0;(!Z||!await(m.isElement==null?void 0:m.isElement($)))&&(Z=g.floating[X]||d.floating[D]);const K=V/2-I/2,ce=Z/2-w[D]/2-1,de=cl(x[H],ce),fe=cl(x[J],ce),re=de,ge=Z-w[D]-fe,me=Z/2-w[D]/2+K,ye=Ss(re,me,ge),O=!y.arrow&&Na(s)!=null&&me!==ye&&d.reference[D]/2-(me<re?de:fe)-w[D]/2<0,Q=O?me<re?me-re:me-ge:0;return{[M]:C[M]+Q,data:{[M]:ye,centerOffset:me-ye-Q,...O&&{alignmentOffset:Q}},reset:O}}}),US=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(u){var c,r;const{placement:s,middlewareData:d,rects:m,initialPlacement:g,platform:y,elements:p}=u,{mainAxis:S=!0,crossAxis:x=!0,fallbackPlacements:C,fallbackStrategy:M="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...z}=Rn(a,u);if((c=d.arrow)!=null&&c.alignmentOffset)return{};const H=Nn(s),J=ln(g),X=Nn(g)===g,V=await(y.isRTL==null?void 0:y.isRTL(p.floating)),I=C||(X||!w?[Ao(g)]:TS(g)),$=D!=="none";!C&&$&&I.push(...RS(g,w,D,V));const Z=[g,...I],K=await y.detectOverflow(u,z),ce=[];let de=((r=d.flip)==null?void 0:r.overflows)||[];if(S&&ce.push(K[H]),x){const me=MS(s,m,V);ce.push(K[me[0]],K[me[1]])}if(de=[...de,{placement:s,overflows:ce}],!ce.every(me=>me<=0)){var fe,re;const me=(((fe=d.flip)==null?void 0:fe.index)||0)+1,ye=Z[me];if(ye&&(!(x==="alignment"?J!==ln(ye):!1)||de.every(U=>ln(U.placement)===J?U.overflows[0]>0:!0)))return{data:{index:me,overflows:de},reset:{placement:ye}};let O=(re=de.filter(Q=>Q.overflows[0]<=0).sort((Q,U)=>Q.overflows[1]-U.overflows[1])[0])==null?void 0:re.placement;if(!O)switch(M){case"bestFit":{var ge;const Q=(ge=de.filter(U=>{if($){const F=ln(U.placement);return F===J||F==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(F=>F>0).reduce((F,ue)=>F+ue,0)]).sort((U,F)=>U[1]-F[1])[0])==null?void 0:ge[0];Q&&(O=Q);break}case"initialPlacement":O=g;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function Bg(a,u){return{top:a.top-u.height,right:a.right-u.width,bottom:a.bottom-u.height,left:a.left-u.width}}function Gg(a){return SS.some(u=>a[u]>=0)}const LS=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(u){const{rects:c,platform:r}=u,{strategy:s="referenceHidden",...d}=Rn(a,u);switch(s){case"referenceHidden":{const m=await r.detectOverflow(u,{...d,elementContext:"reference"}),g=Bg(m,c.reference);return{data:{referenceHiddenOffsets:g,referenceHidden:Gg(g)}}}case"escaped":{const m=await r.detectOverflow(u,{...d,altBoundary:!0}),g=Bg(m,c.floating);return{data:{escapedOffsets:g,escaped:Gg(g)}}}default:return{}}}}},Wv=new Set(["left","top"]);async function HS(a,u){const{placement:c,platform:r,elements:s}=a,d=await(r.isRTL==null?void 0:r.isRTL(s.floating)),m=Nn(c),g=Na(c),y=ln(c)==="y",p=Wv.has(m)?-1:1,S=d&&y?-1:1,x=Rn(u,a);let{mainAxis:C,crossAxis:M,alignmentAxis:D}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return g&&typeof D=="number"&&(M=g==="end"?D*-1:D),y?{x:M*S,y:C*p}:{x:C*p,y:M*S}}const BS=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(u){var c,r;const{x:s,y:d,placement:m,middlewareData:g}=u,y=await HS(u,a);return m===((c=g.offset)==null?void 0:c.placement)&&(r=g.arrow)!=null&&r.alignmentOffset?{}:{x:s+y.x,y:d+y.y,data:{...y,placement:m}}}}},GS=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(u){const{x:c,y:r,placement:s,platform:d}=u,{mainAxis:m=!0,crossAxis:g=!1,limiter:y={fn:H=>{let{x:J,y:X}=H;return{x:J,y:X}}},...p}=Rn(a,u),S={x:c,y:r},x=await d.detectOverflow(u,p),C=ln(Nn(s)),M=Bs(C);let D=S[M],w=S[C];if(m){const H=M==="y"?"top":"left",J=M==="y"?"bottom":"right",X=D+x[H],V=D-x[J];D=Ss(X,D,V)}if(g){const H=C==="y"?"top":"left",J=C==="y"?"bottom":"right",X=w+x[H],V=w-x[J];w=Ss(X,w,V)}const z=y.fn({...u,[M]:D,[C]:w});return{...z,data:{x:z.x-c,y:z.y-r,enabled:{[M]:m,[C]:g}}}}}},kS=function(a){return a===void 0&&(a={}),{options:a,fn(u){const{x:c,y:r,placement:s,rects:d,middlewareData:m}=u,{offset:g=0,mainAxis:y=!0,crossAxis:p=!0}=Rn(a,u),S={x:c,y:r},x=ln(s),C=Bs(x);let M=S[C],D=S[x];const w=Rn(g,u),z=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(y){const X=C==="y"?"height":"width",V=d.reference[C]-d.floating[X]+z.mainAxis,I=d.reference[C]+d.reference[X]-z.mainAxis;M<V?M=V:M>I&&(M=I)}if(p){var H,J;const X=C==="y"?"width":"height",V=Wv.has(Nn(s)),I=d.reference[x]-d.floating[X]+(V&&((H=m.offset)==null?void 0:H[x])||0)+(V?0:z.crossAxis),$=d.reference[x]+d.reference[X]+(V?0:((J=m.offset)==null?void 0:J[x])||0)-(V?z.crossAxis:0);D<I?D=I:D>$&&(D=$)}return{[C]:M,[x]:D}}}},YS=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(u){var c,r;const{placement:s,rects:d,platform:m,elements:g}=u,{apply:y=()=>{},...p}=Rn(a,u),S=await m.detectOverflow(u,p),x=Nn(s),C=Na(s),M=ln(s)==="y",{width:D,height:w}=d.floating;let z,H;x==="top"||x==="bottom"?(z=x,H=C===(await(m.isRTL==null?void 0:m.isRTL(g.floating))?"start":"end")?"left":"right"):(H=x,z=C==="end"?"top":"bottom");const J=w-S.top-S.bottom,X=D-S.left-S.right,V=cl(w-S[z],J),I=cl(D-S[H],X),$=!u.middlewareData.shift;let Z=V,K=I;if((c=u.middlewareData.shift)!=null&&c.enabled.x&&(K=X),(r=u.middlewareData.shift)!=null&&r.enabled.y&&(Z=J),$&&!C){const de=Rt(S.left,0),fe=Rt(S.right,0),re=Rt(S.top,0),ge=Rt(S.bottom,0);M?K=D-2*(de!==0||fe!==0?de+fe:Rt(S.left,S.right)):Z=w-2*(re!==0||ge!==0?re+ge:Rt(S.top,S.bottom))}await y({...u,availableWidth:K,availableHeight:Z});const ce=await m.getDimensions(g.floating);return D!==ce.width||w!==ce.height?{reset:{rects:!0}}:{}}}};function No(){return typeof window<"u"}function Da(a){return $v(a)?(a.nodeName||"").toLowerCase():"#document"}function Nt(a){var u;return(a==null||(u=a.ownerDocument)==null?void 0:u.defaultView)||window}function cn(a){var u;return(u=($v(a)?a.ownerDocument:a.document)||window.document)==null?void 0:u.documentElement}function $v(a){return No()?a instanceof Node||a instanceof Nt(a).Node:!1}function Jt(a){return No()?a instanceof Element||a instanceof Nt(a).Element:!1}function rn(a){return No()?a instanceof HTMLElement||a instanceof Nt(a).HTMLElement:!1}function kg(a){return!No()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Nt(a).ShadowRoot}const qS=new Set(["inline","contents"]);function ki(a){const{overflow:u,overflowX:c,overflowY:r,display:s}=Ft(a);return/auto|scroll|overlay|hidden|clip/.test(u+r+c)&&!qS.has(s)}const XS=new Set(["table","td","th"]);function VS(a){return XS.has(Da(a))}const QS=[":popover-open",":modal"];function Do(a){return QS.some(u=>{try{return a.matches(u)}catch{return!1}})}const ZS=["transform","translate","scale","rotate","perspective"],KS=["transform","translate","scale","rotate","perspective","filter"],JS=["paint","layout","strict","content"];function Ys(a){const u=qs(),c=Jt(a)?Ft(a):a;return ZS.some(r=>c[r]?c[r]!=="none":!1)||(c.containerType?c.containerType!=="normal":!1)||!u&&(c.backdropFilter?c.backdropFilter!=="none":!1)||!u&&(c.filter?c.filter!=="none":!1)||KS.some(r=>(c.willChange||"").includes(r))||JS.some(r=>(c.contain||"").includes(r))}function FS(a){let u=sl(a);for(;rn(u)&&!Ta(u);){if(Ys(u))return u;if(Do(u))return null;u=sl(u)}return null}function qs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const WS=new Set(["html","body","#document"]);function Ta(a){return WS.has(Da(a))}function Ft(a){return Nt(a).getComputedStyle(a)}function zo(a){return Jt(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function sl(a){if(Da(a)==="html")return a;const u=a.assignedSlot||a.parentNode||kg(a)&&a.host||cn(a);return kg(u)?u.host:u}function Iv(a){const u=sl(a);return Ta(u)?a.ownerDocument?a.ownerDocument.body:a.body:rn(u)&&ki(u)?u:Iv(u)}function Hi(a,u,c){var r;u===void 0&&(u=[]),c===void 0&&(c=!0);const s=Iv(a),d=s===((r=a.ownerDocument)==null?void 0:r.body),m=Nt(s);if(d){const g=As(m);return u.concat(m,m.visualViewport||[],ki(s)?s:[],g&&c?Hi(g):[])}return u.concat(s,Hi(s,[],c))}function As(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Pv(a){const u=Ft(a);let c=parseFloat(u.width)||0,r=parseFloat(u.height)||0;const s=rn(a),d=s?a.offsetWidth:c,m=s?a.offsetHeight:r,g=Eo(c)!==d||Eo(r)!==m;return g&&(c=d,r=m),{width:c,height:r,$:g}}function Xs(a){return Jt(a)?a:a.contextElement}function Ma(a){const u=Xs(a);if(!rn(u))return un(1);const c=u.getBoundingClientRect(),{width:r,height:s,$:d}=Pv(u);let m=(d?Eo(c.width):c.width)/r,g=(d?Eo(c.height):c.height)/s;return(!m||!Number.isFinite(m))&&(m=1),(!g||!Number.isFinite(g))&&(g=1),{x:m,y:g}}const $S=un(0);function ep(a){const u=Nt(a);return!qs()||!u.visualViewport?$S:{x:u.visualViewport.offsetLeft,y:u.visualViewport.offsetTop}}function IS(a,u,c){return u===void 0&&(u=!1),!c||u&&c!==Nt(a)?!1:u}function Dl(a,u,c,r){u===void 0&&(u=!1),c===void 0&&(c=!1);const s=a.getBoundingClientRect(),d=Xs(a);let m=un(1);u&&(r?Jt(r)&&(m=Ma(r)):m=Ma(a));const g=IS(d,c,r)?ep(d):un(0);let y=(s.left+g.x)/m.x,p=(s.top+g.y)/m.y,S=s.width/m.x,x=s.height/m.y;if(d){const C=Nt(d),M=r&&Jt(r)?Nt(r):r;let D=C,w=As(D);for(;w&&r&&M!==D;){const z=Ma(w),H=w.getBoundingClientRect(),J=Ft(w),X=H.left+(w.clientLeft+parseFloat(J.paddingLeft))*z.x,V=H.top+(w.clientTop+parseFloat(J.paddingTop))*z.y;y*=z.x,p*=z.y,S*=z.x,x*=z.y,y+=X,p+=V,D=Nt(w),w=As(D)}}return Co({width:S,height:x,x:y,y:p})}function jo(a,u){const c=zo(a).scrollLeft;return u?u.left+c:Dl(cn(a)).left+c}function tp(a,u){const c=a.getBoundingClientRect(),r=c.left+u.scrollLeft-jo(a,c),s=c.top+u.scrollTop;return{x:r,y:s}}function PS(a){let{elements:u,rect:c,offsetParent:r,strategy:s}=a;const d=s==="fixed",m=cn(r),g=u?Do(u.floating):!1;if(r===m||g&&d)return c;let y={scrollLeft:0,scrollTop:0},p=un(1);const S=un(0),x=rn(r);if((x||!x&&!d)&&((Da(r)!=="body"||ki(m))&&(y=zo(r)),rn(r))){const M=Dl(r);p=Ma(r),S.x=M.x+r.clientLeft,S.y=M.y+r.clientTop}const C=m&&!x&&!d?tp(m,y):un(0);return{width:c.width*p.x,height:c.height*p.y,x:c.x*p.x-y.scrollLeft*p.x+S.x+C.x,y:c.y*p.y-y.scrollTop*p.y+S.y+C.y}}function e2(a){return Array.from(a.getClientRects())}function t2(a){const u=cn(a),c=zo(a),r=a.ownerDocument.body,s=Rt(u.scrollWidth,u.clientWidth,r.scrollWidth,r.clientWidth),d=Rt(u.scrollHeight,u.clientHeight,r.scrollHeight,r.clientHeight);let m=-c.scrollLeft+jo(a);const g=-c.scrollTop;return Ft(r).direction==="rtl"&&(m+=Rt(u.clientWidth,r.clientWidth)-s),{width:s,height:d,x:m,y:g}}const Yg=25;function n2(a,u){const c=Nt(a),r=cn(a),s=c.visualViewport;let d=r.clientWidth,m=r.clientHeight,g=0,y=0;if(s){d=s.width,m=s.height;const S=qs();(!S||S&&u==="fixed")&&(g=s.offsetLeft,y=s.offsetTop)}const p=jo(r);if(p<=0){const S=r.ownerDocument,x=S.body,C=getComputedStyle(x),M=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(r.clientWidth-x.clientWidth-M);D<=Yg&&(d-=D)}else p<=Yg&&(d+=p);return{width:d,height:m,x:g,y}}const l2=new Set(["absolute","fixed"]);function a2(a,u){const c=Dl(a,!0,u==="fixed"),r=c.top+a.clientTop,s=c.left+a.clientLeft,d=rn(a)?Ma(a):un(1),m=a.clientWidth*d.x,g=a.clientHeight*d.y,y=s*d.x,p=r*d.y;return{width:m,height:g,x:y,y:p}}function qg(a,u,c){let r;if(u==="viewport")r=n2(a,c);else if(u==="document")r=t2(cn(a));else if(Jt(u))r=a2(u,c);else{const s=ep(a);r={x:u.x-s.x,y:u.y-s.y,width:u.width,height:u.height}}return Co(r)}function np(a,u){const c=sl(a);return c===u||!Jt(c)||Ta(c)?!1:Ft(c).position==="fixed"||np(c,u)}function i2(a,u){const c=u.get(a);if(c)return c;let r=Hi(a,[],!1).filter(g=>Jt(g)&&Da(g)!=="body"),s=null;const d=Ft(a).position==="fixed";let m=d?sl(a):a;for(;Jt(m)&&!Ta(m);){const g=Ft(m),y=Ys(m);!y&&g.position==="fixed"&&(s=null),(d?!y&&!s:!y&&g.position==="static"&&!!s&&l2.has(s.position)||ki(m)&&!y&&np(a,m))?r=r.filter(S=>S!==m):s=g,m=sl(m)}return u.set(a,r),r}function u2(a){let{element:u,boundary:c,rootBoundary:r,strategy:s}=a;const m=[...c==="clippingAncestors"?Do(u)?[]:i2(u,this._c):[].concat(c),r],g=m[0],y=m.reduce((p,S)=>{const x=qg(u,S,s);return p.top=Rt(x.top,p.top),p.right=cl(x.right,p.right),p.bottom=cl(x.bottom,p.bottom),p.left=Rt(x.left,p.left),p},qg(u,g,s));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function o2(a){const{width:u,height:c}=Pv(a);return{width:u,height:c}}function r2(a,u,c){const r=rn(u),s=cn(u),d=c==="fixed",m=Dl(a,!0,d,u);let g={scrollLeft:0,scrollTop:0};const y=un(0);function p(){y.x=jo(s)}if(r||!r&&!d)if((Da(u)!=="body"||ki(s))&&(g=zo(u)),r){const M=Dl(u,!0,d,u);y.x=M.x+u.clientLeft,y.y=M.y+u.clientTop}else s&&p();d&&!r&&s&&p();const S=s&&!r&&!d?tp(s,g):un(0),x=m.left+g.scrollLeft-y.x-S.x,C=m.top+g.scrollTop-y.y-S.y;return{x,y:C,width:m.width,height:m.height}}function hs(a){return Ft(a).position==="static"}function Xg(a,u){if(!rn(a)||Ft(a).position==="fixed")return null;if(u)return u(a);let c=a.offsetParent;return cn(a)===c&&(c=c.ownerDocument.body),c}function lp(a,u){const c=Nt(a);if(Do(a))return c;if(!rn(a)){let s=sl(a);for(;s&&!Ta(s);){if(Jt(s)&&!hs(s))return s;s=sl(s)}return c}let r=Xg(a,u);for(;r&&VS(r)&&hs(r);)r=Xg(r,u);return r&&Ta(r)&&hs(r)&&!Ys(r)?c:r||FS(a)||c}const c2=async function(a){const u=this.getOffsetParent||lp,c=this.getDimensions,r=await c(a.floating);return{reference:r2(a.reference,await u(a.floating),a.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function s2(a){return Ft(a).direction==="rtl"}const f2={convertOffsetParentRelativeRectToViewportRelativeRect:PS,getDocumentElement:cn,getClippingRect:u2,getOffsetParent:lp,getElementRects:c2,getClientRects:e2,getDimensions:o2,getScale:Ma,isElement:Jt,isRTL:s2};function ap(a,u){return a.x===u.x&&a.y===u.y&&a.width===u.width&&a.height===u.height}function d2(a,u){let c=null,r;const s=cn(a);function d(){var g;clearTimeout(r),(g=c)==null||g.disconnect(),c=null}function m(g,y){g===void 0&&(g=!1),y===void 0&&(y=1),d();const p=a.getBoundingClientRect(),{left:S,top:x,width:C,height:M}=p;if(g||u(),!C||!M)return;const D=vo(x),w=vo(s.clientWidth-(S+C)),z=vo(s.clientHeight-(x+M)),H=vo(S),X={rootMargin:-D+"px "+-w+"px "+-z+"px "+-H+"px",threshold:Rt(0,cl(1,y))||1};let V=!0;function I($){const Z=$[0].intersectionRatio;if(Z!==y){if(!V)return m();Z?m(!1,Z):r=setTimeout(()=>{m(!1,1e-7)},1e3)}Z===1&&!ap(p,a.getBoundingClientRect())&&m(),V=!1}try{c=new IntersectionObserver(I,{...X,root:s.ownerDocument})}catch{c=new IntersectionObserver(I,X)}c.observe(a)}return m(!0),d}function m2(a,u,c,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:y=!1}=r,p=Xs(a),S=s||d?[...p?Hi(p):[],...Hi(u)]:[];S.forEach(H=>{s&&H.addEventListener("scroll",c,{passive:!0}),d&&H.addEventListener("resize",c)});const x=p&&g?d2(p,c):null;let C=-1,M=null;m&&(M=new ResizeObserver(H=>{let[J]=H;J&&J.target===p&&M&&(M.unobserve(u),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var X;(X=M)==null||X.observe(u)})),c()}),p&&!y&&M.observe(p),M.observe(u));let D,w=y?Dl(a):null;y&&z();function z(){const H=Dl(a);w&&!ap(w,H)&&c(),w=H,D=requestAnimationFrame(z)}return c(),()=>{var H;S.forEach(J=>{s&&J.removeEventListener("scroll",c),d&&J.removeEventListener("resize",c)}),x==null||x(),(H=M)==null||H.disconnect(),M=null,y&&cancelAnimationFrame(D)}}const h2=BS,g2=GS,v2=US,p2=YS,y2=LS,Vg=jS,b2=kS,x2=(a,u,c)=>{const r=new Map,s={platform:f2,...c},d={...s.platform,_c:r};return zS(a,u,{...s,platform:d})};var S2=typeof document<"u",E2=function(){},bo=S2?b.useLayoutEffect:E2;function Mo(a,u){if(a===u)return!0;if(typeof a!=typeof u)return!1;if(typeof a=="function"&&a.toString()===u.toString())return!0;let c,r,s;if(a&&u&&typeof a=="object"){if(Array.isArray(a)){if(c=a.length,c!==u.length)return!1;for(r=c;r--!==0;)if(!Mo(a[r],u[r]))return!1;return!0}if(s=Object.keys(a),c=s.length,c!==Object.keys(u).length)return!1;for(r=c;r--!==0;)if(!{}.hasOwnProperty.call(u,s[r]))return!1;for(r=c;r--!==0;){const d=s[r];if(!(d==="_owner"&&a.$$typeof)&&!Mo(a[d],u[d]))return!1}return!0}return a!==a&&u!==u}function ip(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Qg(a,u){const c=ip(a);return Math.round(u*c)/c}function gs(a){const u=b.useRef(a);return bo(()=>{u.current=a}),u}function A2(a){a===void 0&&(a={});const{placement:u="bottom",strategy:c="absolute",middleware:r=[],platform:s,elements:{reference:d,floating:m}={},transform:g=!0,whileElementsMounted:y,open:p}=a,[S,x]=b.useState({x:0,y:0,strategy:c,placement:u,middlewareData:{},isPositioned:!1}),[C,M]=b.useState(r);Mo(C,r)||M(r);const[D,w]=b.useState(null),[z,H]=b.useState(null),J=b.useCallback(U=>{U!==$.current&&($.current=U,w(U))},[]),X=b.useCallback(U=>{U!==Z.current&&(Z.current=U,H(U))},[]),V=d||D,I=m||z,$=b.useRef(null),Z=b.useRef(null),K=b.useRef(S),ce=y!=null,de=gs(y),fe=gs(s),re=gs(p),ge=b.useCallback(()=>{if(!$.current||!Z.current)return;const U={placement:u,strategy:c,middleware:C};fe.current&&(U.platform=fe.current),x2($.current,Z.current,U).then(F=>{const ue={...F,isPositioned:re.current!==!1};me.current&&!Mo(K.current,ue)&&(K.current=ue,Os.flushSync(()=>{x(ue)}))})},[C,u,c,fe,re]);bo(()=>{p===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,x(U=>({...U,isPositioned:!1})))},[p]);const me=b.useRef(!1);bo(()=>(me.current=!0,()=>{me.current=!1}),[]),bo(()=>{if(V&&($.current=V),I&&(Z.current=I),V&&I){if(de.current)return de.current(V,I,ge);ge()}},[V,I,ge,de,ce]);const ye=b.useMemo(()=>({reference:$,floating:Z,setReference:J,setFloating:X}),[J,X]),O=b.useMemo(()=>({reference:V,floating:I}),[V,I]),Q=b.useMemo(()=>{const U={position:c,left:0,top:0};if(!O.floating)return U;const F=Qg(O.floating,S.x),ue=Qg(O.floating,S.y);return g?{...U,transform:"translate("+F+"px, "+ue+"px)",...ip(O.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:F,top:ue}},[c,g,O.floating,S.x,S.y]);return b.useMemo(()=>({...S,update:ge,refs:ye,elements:O,floatingStyles:Q}),[S,ge,ye,O,Q])}const C2=a=>{function u(c){return{}.hasOwnProperty.call(c,"current")}return{name:"arrow",options:a,fn(c){const{element:r,padding:s}=typeof a=="function"?a(c):a;return r&&u(r)?r.current!=null?Vg({element:r.current,padding:s}).fn(c):{}:r?Vg({element:r,padding:s}).fn(c):{}}}},M2=(a,u)=>({...h2(a),options:[a,u]}),T2=(a,u)=>({...g2(a),options:[a,u]}),w2=(a,u)=>({...b2(a),options:[a,u]}),_2=(a,u)=>({...v2(a),options:[a,u]}),O2=(a,u)=>({...p2(a),options:[a,u]}),R2=(a,u)=>({...y2(a),options:[a,u]}),N2=(a,u)=>({...C2(a),options:[a,u]});var D2="Arrow",up=b.forwardRef((a,u)=>{const{children:c,width:r=10,height:s=5,...d}=a;return h.jsx(Fe.svg,{...d,ref:u,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?c:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});up.displayName=D2;var z2=up,Vs="Popper",[op,rp]=Ra(Vs),[j2,cp]=op(Vs),sp=a=>{const{__scopePopper:u,children:c}=a,[r,s]=b.useState(null);return h.jsx(j2,{scope:u,anchor:r,onAnchorChange:s,children:c})};sp.displayName=Vs;var fp="PopperAnchor",dp=b.forwardRef((a,u)=>{const{__scopePopper:c,virtualRef:r,...s}=a,d=cp(fp,c),m=b.useRef(null),g=ot(u,m),y=b.useRef(null);return b.useEffect(()=>{const p=y.current;y.current=(r==null?void 0:r.current)||m.current,p!==y.current&&d.onAnchorChange(y.current)}),r?null:h.jsx(Fe.div,{...s,ref:g})});dp.displayName=fp;var Qs="PopperContent",[U2,L2]=op(Qs),mp=b.forwardRef((a,u)=>{var ee,Le,be,rt,Xt,Vt;const{__scopePopper:c,side:r="bottom",sideOffset:s=0,align:d="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:S=0,sticky:x="partial",hideWhenDetached:C=!1,updatePositionStrategy:M="optimized",onPlaced:D,...w}=a,z=cp(Qs,c),[H,J]=b.useState(null),X=ot(u,Dn=>J(Dn)),[V,I]=b.useState(null),$=xS(V),Z=($==null?void 0:$.width)??0,K=($==null?void 0:$.height)??0,ce=r+(d!=="center"?"-"+d:""),de=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},fe=Array.isArray(p)?p:[p],re=fe.length>0,ge={padding:de,boundary:fe.filter(B2),altBoundary:re},{refs:me,floatingStyles:ye,placement:O,isPositioned:Q,middlewareData:U}=A2({strategy:"fixed",placement:ce,whileElementsMounted:(...Dn)=>m2(...Dn,{animationFrame:M==="always"}),elements:{reference:z.anchor},middleware:[M2({mainAxis:s+K,alignmentAxis:m}),y&&T2({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?w2():void 0,...ge}),y&&_2({...ge}),O2({...ge,apply:({elements:Dn,rects:$t,availableWidth:za,availableHeight:ja})=>{const{width:Bo,height:Vi}=$t.reference,zn=Dn.floating.style;zn.setProperty("--radix-popper-available-width",`${za}px`),zn.setProperty("--radix-popper-available-height",`${ja}px`),zn.setProperty("--radix-popper-anchor-width",`${Bo}px`),zn.setProperty("--radix-popper-anchor-height",`${Vi}px`)}}),V&&N2({element:V,padding:g}),G2({arrowWidth:Z,arrowHeight:K}),C&&R2({strategy:"referenceHidden",...ge})]}),[F,ue]=vp(O),A=On(D);rl(()=>{Q&&(A==null||A())},[Q,A]);const B=(ee=U.arrow)==null?void 0:ee.x,W=(Le=U.arrow)==null?void 0:Le.y,Y=((be=U.arrow)==null?void 0:be.centerOffset)!==0,[P,ie]=b.useState();return rl(()=>{H&&ie(window.getComputedStyle(H).zIndex)},[H]),h.jsx("div",{ref:me.setFloating,"data-radix-popper-content-wrapper":"",style:{...ye,transform:Q?ye.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:P,"--radix-popper-transform-origin":[(rt=U.transformOrigin)==null?void 0:rt.x,(Xt=U.transformOrigin)==null?void 0:Xt.y].join(" "),...((Vt=U.hide)==null?void 0:Vt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:h.jsx(U2,{scope:c,placedSide:F,onArrowChange:I,arrowX:B,arrowY:W,shouldHideArrow:Y,children:h.jsx(Fe.div,{"data-side":F,"data-align":ue,...w,ref:X,style:{...w.style,animation:Q?void 0:"none"}})})})});mp.displayName=Qs;var hp="PopperArrow",H2={top:"bottom",right:"left",bottom:"top",left:"right"},gp=b.forwardRef(function(u,c){const{__scopePopper:r,...s}=u,d=L2(hp,r),m=H2[d.placedSide];return h.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:h.jsx(z2,{...s,ref:c,style:{...s.style,display:"block"}})})});gp.displayName=hp;function B2(a){return a!==null}var G2=a=>({name:"transformOrigin",options:a,fn(u){var z,H,J;const{placement:c,rects:r,middlewareData:s}=u,m=((z=s.arrow)==null?void 0:z.centerOffset)!==0,g=m?0:a.arrowWidth,y=m?0:a.arrowHeight,[p,S]=vp(c),x={start:"0%",center:"50%",end:"100%"}[S],C=(((H=s.arrow)==null?void 0:H.x)??0)+g/2,M=(((J=s.arrow)==null?void 0:J.y)??0)+y/2;let D="",w="";return p==="bottom"?(D=m?x:`${C}px`,w=`${-y}px`):p==="top"?(D=m?x:`${C}px`,w=`${r.floating.height+y}px`):p==="right"?(D=`${-y}px`,w=m?x:`${M}px`):p==="left"&&(D=`${r.floating.width+y}px`,w=m?x:`${M}px`),{data:{x:D,y:w}}}});function vp(a){const[u,c="center"]=a.split("-");return[u,c]}var k2=sp,Y2=dp,q2=mp,X2=gp,vs="rovingFocusGroup.onEntryFocus",V2={bubbles:!1,cancelable:!0},Yi="RovingFocusGroup",[Cs,pp,Q2]=bv(Yi),[Z2,yp]=Ra(Yi,[Q2]),[K2,J2]=Z2(Yi),bp=b.forwardRef((a,u)=>h.jsx(Cs.Provider,{scope:a.__scopeRovingFocusGroup,children:h.jsx(Cs.Slot,{scope:a.__scopeRovingFocusGroup,children:h.jsx(F2,{...a,ref:u})})}));bp.displayName=Yi;var F2=b.forwardRef((a,u)=>{const{__scopeRovingFocusGroup:c,orientation:r,loop:s=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:S=!1,...x}=a,C=b.useRef(null),M=ot(u,C),D=xv(d),[w,z]=Rs({prop:m,defaultProp:g??null,onChange:y,caller:Yi}),[H,J]=b.useState(!1),X=On(p),V=pp(c),I=b.useRef(!1),[$,Z]=b.useState(0);return b.useEffect(()=>{const K=C.current;if(K)return K.addEventListener(vs,X),()=>K.removeEventListener(vs,X)},[X]),h.jsx(K2,{scope:c,orientation:r,dir:D,loop:s,currentTabStopId:w,onItemFocus:b.useCallback(K=>z(K),[z]),onItemShiftTab:b.useCallback(()=>J(!0),[]),onFocusableItemAdd:b.useCallback(()=>Z(K=>K+1),[]),onFocusableItemRemove:b.useCallback(()=>Z(K=>K-1),[]),children:h.jsx(Fe.div,{tabIndex:H||$===0?-1:0,"data-orientation":r,...x,ref:M,style:{outline:"none",...a.style},onMouseDown:Se(a.onMouseDown,()=>{I.current=!0}),onFocus:Se(a.onFocus,K=>{const ce=!I.current;if(K.target===K.currentTarget&&ce&&!H){const de=new CustomEvent(vs,V2);if(K.currentTarget.dispatchEvent(de),!de.defaultPrevented){const fe=V().filter(O=>O.focusable),re=fe.find(O=>O.active),ge=fe.find(O=>O.id===w),ye=[re,ge,...fe].filter(Boolean).map(O=>O.ref.current);Ep(ye,S)}}I.current=!1}),onBlur:Se(a.onBlur,()=>J(!1))})})}),xp="RovingFocusGroupItem",Sp=b.forwardRef((a,u)=>{const{__scopeRovingFocusGroup:c,focusable:r=!0,active:s=!1,tabStopId:d,children:m,...g}=a,y=Aa(),p=d||y,S=J2(xp,c),x=S.currentTabStopId===p,C=pp(c),{onFocusableItemAdd:M,onFocusableItemRemove:D,currentTabStopId:w}=S;return b.useEffect(()=>{if(r)return M(),()=>D()},[r,M,D]),h.jsx(Cs.ItemSlot,{scope:c,id:p,focusable:r,active:s,children:h.jsx(Fe.span,{tabIndex:x?0:-1,"data-orientation":S.orientation,...g,ref:u,onMouseDown:Se(a.onMouseDown,z=>{r?S.onItemFocus(p):z.preventDefault()}),onFocus:Se(a.onFocus,()=>S.onItemFocus(p)),onKeyDown:Se(a.onKeyDown,z=>{if(z.key==="Tab"&&z.shiftKey){S.onItemShiftTab();return}if(z.target!==z.currentTarget)return;const H=I2(z,S.orientation,S.dir);if(H!==void 0){if(z.metaKey||z.ctrlKey||z.altKey||z.shiftKey)return;z.preventDefault();let X=C().filter(V=>V.focusable).map(V=>V.ref.current);if(H==="last")X.reverse();else if(H==="prev"||H==="next"){H==="prev"&&X.reverse();const V=X.indexOf(z.currentTarget);X=S.loop?P2(X,V+1):X.slice(V+1)}setTimeout(()=>Ep(X))}}),children:typeof m=="function"?m({isCurrentTabStop:x,hasTabStop:w!=null}):m})})});Sp.displayName=xp;var W2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $2(a,u){return u!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function I2(a,u,c){const r=$2(a.key,c);if(!(u==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(u==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return W2[r]}function Ep(a,u=!1){const c=document.activeElement;for(const r of a)if(r===c||(r.focus({preventScroll:u}),document.activeElement!==c))return}function P2(a,u){return a.map((c,r)=>a[(u+r)%a.length])}var eE=bp,tE=Sp,Ms=["Enter"," "],nE=["ArrowDown","PageUp","Home"],Ap=["ArrowUp","PageDown","End"],lE=[...nE,...Ap],aE={ltr:[...Ms,"ArrowRight"],rtl:[...Ms,"ArrowLeft"]},iE={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qi="Menu",[Bi,uE,oE]=bv(qi),[zl,Cp]=Ra(qi,[oE,rp,yp]),Uo=rp(),Mp=yp(),[rE,jl]=zl(qi),[cE,Xi]=zl(qi),Tp=a=>{const{__scopeMenu:u,open:c=!1,children:r,dir:s,onOpenChange:d,modal:m=!0}=a,g=Uo(u),[y,p]=b.useState(null),S=b.useRef(!1),x=On(d),C=xv(s);return b.useEffect(()=>{const M=()=>{S.current=!0,document.addEventListener("pointerdown",D,{capture:!0,once:!0}),document.addEventListener("pointermove",D,{capture:!0,once:!0})},D=()=>S.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",D,{capture:!0}),document.removeEventListener("pointermove",D,{capture:!0})}},[]),h.jsx(k2,{...g,children:h.jsx(rE,{scope:u,open:c,onOpenChange:x,content:y,onContentChange:p,children:h.jsx(cE,{scope:u,onClose:b.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:S,dir:C,modal:m,children:r})})})};Tp.displayName=qi;var sE="MenuAnchor",Zs=b.forwardRef((a,u)=>{const{__scopeMenu:c,...r}=a,s=Uo(c);return h.jsx(Y2,{...s,...r,ref:u})});Zs.displayName=sE;var Ks="MenuPortal",[fE,wp]=zl(Ks,{forceMount:void 0}),_p=a=>{const{__scopeMenu:u,forceMount:c,children:r,container:s}=a,d=jl(Ks,u);return h.jsx(fE,{scope:u,forceMount:c,children:h.jsx(fl,{present:c||d.open,children:h.jsx(zs,{asChild:!0,container:s,children:r})})})};_p.displayName=Ks;var qt="MenuContent",[dE,Js]=zl(qt),Op=b.forwardRef((a,u)=>{const c=wp(qt,a.__scopeMenu),{forceMount:r=c.forceMount,...s}=a,d=jl(qt,a.__scopeMenu),m=Xi(qt,a.__scopeMenu);return h.jsx(Bi.Provider,{scope:a.__scopeMenu,children:h.jsx(fl,{present:r||d.open,children:h.jsx(Bi.Slot,{scope:a.__scopeMenu,children:m.modal?h.jsx(mE,{...s,ref:u}):h.jsx(hE,{...s,ref:u})})})})}),mE=b.forwardRef((a,u)=>{const c=jl(qt,a.__scopeMenu),r=b.useRef(null),s=ot(u,r);return b.useEffect(()=>{const d=r.current;if(d)return zv(d)},[]),h.jsx(Fs,{...a,ref:s,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:Se(a.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)})}),hE=b.forwardRef((a,u)=>{const c=jl(qt,a.__scopeMenu);return h.jsx(Fs,{...a,ref:u,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)})}),gE=Li("MenuContent.ScrollLock"),Fs=b.forwardRef((a,u)=>{const{__scopeMenu:c,loop:r=!1,trapFocus:s,onOpenAutoFocus:d,onCloseAutoFocus:m,disableOutsidePointerEvents:g,onEntryFocus:y,onEscapeKeyDown:p,onPointerDownOutside:S,onFocusOutside:x,onInteractOutside:C,onDismiss:M,disableOutsideScroll:D,...w}=a,z=jl(qt,c),H=Xi(qt,c),J=Uo(c),X=Mp(c),V=uE(c),[I,$]=b.useState(null),Z=b.useRef(null),K=ot(u,Z,z.onContentChange),ce=b.useRef(0),de=b.useRef(""),fe=b.useRef(0),re=b.useRef(null),ge=b.useRef("right"),me=b.useRef(0),ye=D?js:b.Fragment,O=D?{as:gE,allowPinchZoom:!0}:void 0,Q=F=>{var ee,Le;const ue=de.current+F,A=V().filter(be=>!be.disabled),B=document.activeElement,W=(ee=A.find(be=>be.ref.current===B))==null?void 0:ee.textValue,Y=A.map(be=>be.textValue),P=wE(Y,ue,W),ie=(Le=A.find(be=>be.textValue===P))==null?void 0:Le.ref.current;(function be(rt){de.current=rt,window.clearTimeout(ce.current),rt!==""&&(ce.current=window.setTimeout(()=>be(""),1e3))})(ue),ie&&setTimeout(()=>ie.focus())};b.useEffect(()=>()=>window.clearTimeout(ce.current),[]),Cv();const U=b.useCallback(F=>{var A,B;return ge.current===((A=re.current)==null?void 0:A.side)&&OE(F,(B=re.current)==null?void 0:B.area)},[]);return h.jsx(dE,{scope:c,searchRef:de,onItemEnter:b.useCallback(F=>{U(F)&&F.preventDefault()},[U]),onItemLeave:b.useCallback(F=>{var ue;U(F)||((ue=Z.current)==null||ue.focus(),$(null))},[U]),onTriggerLeave:b.useCallback(F=>{U(F)&&F.preventDefault()},[U]),pointerGraceTimerRef:fe,onPointerGraceIntentChange:b.useCallback(F=>{re.current=F},[]),children:h.jsx(ye,{...O,children:h.jsx(Ds,{asChild:!0,trapped:s,onMountAutoFocus:Se(d,F=>{var ue;F.preventDefault(),(ue=Z.current)==null||ue.focus({preventScroll:!0})}),onUnmountAutoFocus:m,children:h.jsx(Ns,{asChild:!0,disableOutsidePointerEvents:g,onEscapeKeyDown:p,onPointerDownOutside:S,onFocusOutside:x,onInteractOutside:C,onDismiss:M,children:h.jsx(eE,{asChild:!0,...X,dir:H.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:$,onEntryFocus:Se(y,F=>{H.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(q2,{role:"menu","aria-orientation":"vertical","data-state":Qp(z.open),"data-radix-menu-content":"",dir:H.dir,...J,...w,ref:K,style:{outline:"none",...w.style},onKeyDown:Se(w.onKeyDown,F=>{const A=F.target.closest("[data-radix-menu-content]")===F.currentTarget,B=F.ctrlKey||F.altKey||F.metaKey,W=F.key.length===1;A&&(F.key==="Tab"&&F.preventDefault(),!B&&W&&Q(F.key));const Y=Z.current;if(F.target!==Y||!lE.includes(F.key))return;F.preventDefault();const ie=V().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);Ap.includes(F.key)&&ie.reverse(),ME(ie)}),onBlur:Se(a.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(ce.current),de.current="")}),onPointerMove:Se(a.onPointerMove,Gi(F=>{const ue=F.target,A=me.current!==F.clientX;if(F.currentTarget.contains(ue)&&A){const B=F.clientX>me.current?"right":"left";ge.current=B,me.current=F.clientX}}))})})})})})})});Op.displayName=qt;var vE="MenuGroup",Ws=b.forwardRef((a,u)=>{const{__scopeMenu:c,...r}=a;return h.jsx(Fe.div,{role:"group",...r,ref:u})});Ws.displayName=vE;var pE="MenuLabel",Rp=b.forwardRef((a,u)=>{const{__scopeMenu:c,...r}=a;return h.jsx(Fe.div,{...r,ref:u})});Rp.displayName=pE;var To="MenuItem",Zg="menu.itemSelect",Lo=b.forwardRef((a,u)=>{const{disabled:c=!1,onSelect:r,...s}=a,d=b.useRef(null),m=Xi(To,a.__scopeMenu),g=Js(To,a.__scopeMenu),y=ot(u,d),p=b.useRef(!1),S=()=>{const x=d.current;if(!c&&x){const C=new CustomEvent(Zg,{bubbles:!0,cancelable:!0});x.addEventListener(Zg,M=>r==null?void 0:r(M),{once:!0}),yv(x,C),C.defaultPrevented?p.current=!1:m.onClose()}};return h.jsx(Np,{...s,ref:y,disabled:c,onClick:Se(a.onClick,S),onPointerDown:x=>{var C;(C=a.onPointerDown)==null||C.call(a,x),p.current=!0},onPointerUp:Se(a.onPointerUp,x=>{var C;p.current||(C=x.currentTarget)==null||C.click()}),onKeyDown:Se(a.onKeyDown,x=>{const C=g.searchRef.current!=="";c||C&&x.key===" "||Ms.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});Lo.displayName=To;var Np=b.forwardRef((a,u)=>{const{__scopeMenu:c,disabled:r=!1,textValue:s,...d}=a,m=Js(To,c),g=Mp(c),y=b.useRef(null),p=ot(u,y),[S,x]=b.useState(!1),[C,M]=b.useState("");return b.useEffect(()=>{const D=y.current;D&&M((D.textContent??"").trim())},[d.children]),h.jsx(Bi.ItemSlot,{scope:c,disabled:r,textValue:s??C,children:h.jsx(tE,{asChild:!0,...g,focusable:!r,children:h.jsx(Fe.div,{role:"menuitem","data-highlighted":S?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...d,ref:p,onPointerMove:Se(a.onPointerMove,Gi(D=>{r?m.onItemLeave(D):(m.onItemEnter(D),D.defaultPrevented||D.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Se(a.onPointerLeave,Gi(D=>m.onItemLeave(D))),onFocus:Se(a.onFocus,()=>x(!0)),onBlur:Se(a.onBlur,()=>x(!1))})})})}),yE="MenuCheckboxItem",Dp=b.forwardRef((a,u)=>{const{checked:c=!1,onCheckedChange:r,...s}=a;return h.jsx(Hp,{scope:a.__scopeMenu,checked:c,children:h.jsx(Lo,{role:"menuitemcheckbox","aria-checked":wo(c)?"mixed":c,...s,ref:u,"data-state":Is(c),onSelect:Se(s.onSelect,()=>r==null?void 0:r(wo(c)?!0:!c),{checkForDefaultPrevented:!1})})})});Dp.displayName=yE;var zp="MenuRadioGroup",[bE,xE]=zl(zp,{value:void 0,onValueChange:()=>{}}),jp=b.forwardRef((a,u)=>{const{value:c,onValueChange:r,...s}=a,d=On(r);return h.jsx(bE,{scope:a.__scopeMenu,value:c,onValueChange:d,children:h.jsx(Ws,{...s,ref:u})})});jp.displayName=zp;var Up="MenuRadioItem",Lp=b.forwardRef((a,u)=>{const{value:c,...r}=a,s=xE(Up,a.__scopeMenu),d=c===s.value;return h.jsx(Hp,{scope:a.__scopeMenu,checked:d,children:h.jsx(Lo,{role:"menuitemradio","aria-checked":d,...r,ref:u,"data-state":Is(d),onSelect:Se(r.onSelect,()=>{var m;return(m=s.onValueChange)==null?void 0:m.call(s,c)},{checkForDefaultPrevented:!1})})})});Lp.displayName=Up;var $s="MenuItemIndicator",[Hp,SE]=zl($s,{checked:!1}),Bp=b.forwardRef((a,u)=>{const{__scopeMenu:c,forceMount:r,...s}=a,d=SE($s,c);return h.jsx(fl,{present:r||wo(d.checked)||d.checked===!0,children:h.jsx(Fe.span,{...s,ref:u,"data-state":Is(d.checked)})})});Bp.displayName=$s;var EE="MenuSeparator",Gp=b.forwardRef((a,u)=>{const{__scopeMenu:c,...r}=a;return h.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:u})});Gp.displayName=EE;var AE="MenuArrow",kp=b.forwardRef((a,u)=>{const{__scopeMenu:c,...r}=a,s=Uo(c);return h.jsx(X2,{...s,...r,ref:u})});kp.displayName=AE;var CE="MenuSub",[HA,Yp]=zl(CE),ji="MenuSubTrigger",qp=b.forwardRef((a,u)=>{const c=jl(ji,a.__scopeMenu),r=Xi(ji,a.__scopeMenu),s=Yp(ji,a.__scopeMenu),d=Js(ji,a.__scopeMenu),m=b.useRef(null),{pointerGraceTimerRef:g,onPointerGraceIntentChange:y}=d,p={__scopeMenu:a.__scopeMenu},S=b.useCallback(()=>{m.current&&window.clearTimeout(m.current),m.current=null},[]);return b.useEffect(()=>S,[S]),b.useEffect(()=>{const x=g.current;return()=>{window.clearTimeout(x),y(null)}},[g,y]),h.jsx(Zs,{asChild:!0,...p,children:h.jsx(Np,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":s.contentId,"data-state":Qp(c.open),...a,ref:_o(u,s.onTriggerChange),onClick:x=>{var C;(C=a.onClick)==null||C.call(a,x),!(a.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:Se(a.onPointerMove,Gi(x=>{d.onItemEnter(x),!x.defaultPrevented&&!a.disabled&&!c.open&&!m.current&&(d.onPointerGraceIntentChange(null),m.current=window.setTimeout(()=>{c.onOpenChange(!0),S()},100))})),onPointerLeave:Se(a.onPointerLeave,Gi(x=>{var M,D;S();const C=(M=c.content)==null?void 0:M.getBoundingClientRect();if(C){const w=(D=c.content)==null?void 0:D.dataset.side,z=w==="right",H=z?-5:5,J=C[z?"left":"right"],X=C[z?"right":"left"];d.onPointerGraceIntentChange({area:[{x:x.clientX+H,y:x.clientY},{x:J,y:C.top},{x:X,y:C.top},{x:X,y:C.bottom},{x:J,y:C.bottom}],side:w}),window.clearTimeout(g.current),g.current=window.setTimeout(()=>d.onPointerGraceIntentChange(null),300)}else{if(d.onTriggerLeave(x),x.defaultPrevented)return;d.onPointerGraceIntentChange(null)}})),onKeyDown:Se(a.onKeyDown,x=>{var M;const C=d.searchRef.current!=="";a.disabled||C&&x.key===" "||aE[r.dir].includes(x.key)&&(c.onOpenChange(!0),(M=c.content)==null||M.focus(),x.preventDefault())})})})});qp.displayName=ji;var Xp="MenuSubContent",Vp=b.forwardRef((a,u)=>{const c=wp(qt,a.__scopeMenu),{forceMount:r=c.forceMount,...s}=a,d=jl(qt,a.__scopeMenu),m=Xi(qt,a.__scopeMenu),g=Yp(Xp,a.__scopeMenu),y=b.useRef(null),p=ot(u,y);return h.jsx(Bi.Provider,{scope:a.__scopeMenu,children:h.jsx(fl,{present:r||d.open,children:h.jsx(Bi.Slot,{scope:a.__scopeMenu,children:h.jsx(Fs,{id:g.contentId,"aria-labelledby":g.triggerId,...s,ref:p,align:"start",side:m.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:S=>{var x;m.isUsingKeyboardRef.current&&((x=y.current)==null||x.focus()),S.preventDefault()},onCloseAutoFocus:S=>S.preventDefault(),onFocusOutside:Se(a.onFocusOutside,S=>{S.target!==g.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:Se(a.onEscapeKeyDown,S=>{m.onClose(),S.preventDefault()}),onKeyDown:Se(a.onKeyDown,S=>{var M;const x=S.currentTarget.contains(S.target),C=iE[m.dir].includes(S.key);x&&C&&(d.onOpenChange(!1),(M=g.trigger)==null||M.focus(),S.preventDefault())})})})})})});Vp.displayName=Xp;function Qp(a){return a?"open":"closed"}function wo(a){return a==="indeterminate"}function Is(a){return wo(a)?"indeterminate":a?"checked":"unchecked"}function ME(a){const u=document.activeElement;for(const c of a)if(c===u||(c.focus(),document.activeElement!==u))return}function TE(a,u){return a.map((c,r)=>a[(u+r)%a.length])}function wE(a,u,c){const s=u.length>1&&Array.from(u).every(p=>p===u[0])?u[0]:u,d=c?a.indexOf(c):-1;let m=TE(a,Math.max(d,0));s.length===1&&(m=m.filter(p=>p!==c));const y=m.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return y!==c?y:void 0}function _E(a,u){const{x:c,y:r}=a;let s=!1;for(let d=0,m=u.length-1;d<u.length;m=d++){const g=u[d],y=u[m],p=g.x,S=g.y,x=y.x,C=y.y;S>r!=C>r&&c<(x-p)*(r-S)/(C-S)+p&&(s=!s)}return s}function OE(a,u){if(!u)return!1;const c={x:a.clientX,y:a.clientY};return _E(c,u)}function Gi(a){return u=>u.pointerType==="mouse"?a(u):void 0}var RE=Tp,NE=Zs,DE=_p,zE=Op,jE=Ws,UE=Rp,LE=Lo,HE=Dp,BE=jp,GE=Lp,kE=Bp,YE=Gp,qE=kp,XE=qp,VE=Vp,Ho="DropdownMenu",[QE]=Ra(Ho,[Cp]),ft=Cp(),[ZE,Zp]=QE(Ho),Kp=a=>{const{__scopeDropdownMenu:u,children:c,dir:r,open:s,defaultOpen:d,onOpenChange:m,modal:g=!0}=a,y=ft(u),p=b.useRef(null),[S,x]=Rs({prop:s,defaultProp:d??!1,onChange:m,caller:Ho});return h.jsx(ZE,{scope:u,triggerId:Aa(),triggerRef:p,contentId:Aa(),open:S,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(C=>!C),[x]),modal:g,children:h.jsx(RE,{...y,open:S,onOpenChange:x,dir:r,modal:g,children:c})})};Kp.displayName=Ho;var Jp="DropdownMenuTrigger",Fp=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,disabled:r=!1,...s}=a,d=Zp(Jp,c),m=ft(c);return h.jsx(NE,{asChild:!0,...m,children:h.jsx(Fe.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...s,ref:_o(u,d.triggerRef),onPointerDown:Se(a.onPointerDown,g=>{!r&&g.button===0&&g.ctrlKey===!1&&(d.onOpenToggle(),d.open||g.preventDefault())}),onKeyDown:Se(a.onKeyDown,g=>{r||(["Enter"," "].includes(g.key)&&d.onOpenToggle(),g.key==="ArrowDown"&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(g.key)&&g.preventDefault())})})})});Fp.displayName=Jp;var KE="DropdownMenuPortal",Wp=a=>{const{__scopeDropdownMenu:u,...c}=a,r=ft(u);return h.jsx(DE,{...r,...c})};Wp.displayName=KE;var $p="DropdownMenuContent",Ip=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=Zp($p,c),d=ft(c),m=b.useRef(!1);return h.jsx(zE,{id:s.contentId,"aria-labelledby":s.triggerId,...d,...r,ref:u,onCloseAutoFocus:Se(a.onCloseAutoFocus,g=>{var y;m.current||(y=s.triggerRef.current)==null||y.focus(),m.current=!1,g.preventDefault()}),onInteractOutside:Se(a.onInteractOutside,g=>{const y=g.detail.originalEvent,p=y.button===0&&y.ctrlKey===!0,S=y.button===2||p;(!s.modal||S)&&(m.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ip.displayName=$p;var JE="DropdownMenuGroup",FE=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(jE,{...s,...r,ref:u})});FE.displayName=JE;var WE="DropdownMenuLabel",$E=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(UE,{...s,...r,ref:u})});$E.displayName=WE;var IE="DropdownMenuItem",Pp=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(LE,{...s,...r,ref:u})});Pp.displayName=IE;var PE="DropdownMenuCheckboxItem",eA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(HE,{...s,...r,ref:u})});eA.displayName=PE;var tA="DropdownMenuRadioGroup",nA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(BE,{...s,...r,ref:u})});nA.displayName=tA;var lA="DropdownMenuRadioItem",aA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(GE,{...s,...r,ref:u})});aA.displayName=lA;var iA="DropdownMenuItemIndicator",uA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(kE,{...s,...r,ref:u})});uA.displayName=iA;var oA="DropdownMenuSeparator",rA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(YE,{...s,...r,ref:u})});rA.displayName=oA;var cA="DropdownMenuArrow",sA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(qE,{...s,...r,ref:u})});sA.displayName=cA;var fA="DropdownMenuSubTrigger",dA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(XE,{...s,...r,ref:u})});dA.displayName=fA;var mA="DropdownMenuSubContent",hA=b.forwardRef((a,u)=>{const{__scopeDropdownMenu:c,...r}=a,s=ft(c);return h.jsx(VE,{...s,...r,ref:u,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hA.displayName=mA;var gA=Kp,vA=Fp,pA=Wp,yA=Ip,bA=Pp;function xA({...a}){return h.jsx(gA,{...a})}function SA({...a}){return h.jsx(vA,{...a})}function EA({className:a,sideOffset:u=4,...c}){return h.jsx(pA,{children:h.jsx(yA,{sideOffset:u,className:Ve("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",a),...c})})}function ps({className:a,inset:u,...c}){return h.jsx(bA,{"data-inset":u,className:Ve("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...c})}function AA(){const{setTheme:a}=Gb();return h.jsxs(xA,{children:[h.jsx(SA,{asChild:!0,children:h.jsxs(an,{variant:"outline",size:"icon",children:[h.jsx(hg,{className:"size-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),h.jsx(mg,{className:"absolute size-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),h.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),h.jsxs(EA,{align:"end",children:[h.jsxs(ps,{onClick:()=>a("light"),children:[h.jsx(hg,{}),"Light"]}),h.jsxs(ps,{onClick:()=>a("dark"),children:[h.jsx(mg,{}),"Dark"]}),h.jsxs(ps,{onClick:()=>a("system"),children:[h.jsx(Kb,{}),"System"]})]})]})}function Ri({className:a,...u}){return h.jsx("div",{className:Ve("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...u})}function Ni({className:a,...u}){return h.jsx("div",{className:Ve("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",a),...u})}function Di({className:a,...u}){return h.jsx("div",{className:Ve("leading-none font-semibold",a),...u})}function zi({className:a,...u}){return h.jsx("div",{className:Ve("px-6",a),...u})}function CA({status:a}){return h.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[h.jsxs(Ri,{children:[h.jsx(Ni,{children:h.jsxs(Di,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[h.jsx(tv,{className:"size-4"}),"Messages"]})}),h.jsx(zi,{children:h.jsx("div",{className:"text-3xl font-bold",children:(a==null?void 0:a.total_messages)??"—"})})]}),h.jsxs(Ri,{children:[h.jsx(Ni,{children:h.jsxs(Di,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[h.jsx(Zb,{className:"size-4"}),"Sessions"]})}),h.jsx(zi,{children:h.jsx("div",{className:"text-3xl font-bold",children:(a==null?void 0:a.total_sessions)??"—"})})]}),h.jsxs(Ri,{children:[h.jsx(Ni,{children:h.jsxs(Di,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[h.jsx(ev,{className:"size-4"}),"Spaces"]})}),h.jsx(zi,{children:h.jsx("div",{className:"text-3xl font-bold",children:(a==null?void 0:a.total_spaces)??"—"})})]}),h.jsxs(Ri,{children:[h.jsx(Ni,{children:h.jsxs(Di,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[h.jsx(Pg,{className:"size-4"}),"Projects"]})}),h.jsx(zi,{children:h.jsx("div",{className:"text-3xl font-bold",children:(a==null?void 0:a.total_projects)??"—"})})]}),h.jsxs(Ri,{children:[h.jsx(Ni,{children:h.jsxs(Di,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[h.jsx(Qb,{className:"size-4"}),"Unread"]})}),h.jsx(zi,{children:h.jsx("div",{className:"text-3xl font-bold text-orange-600 dark:text-orange-400",children:(a==null?void 0:a.unread_messages)??"—"})})]})]})}const MA=iv("inline-flex items-center justify-center rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 gap-1 transition-colors overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-white",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function on({className:a,variant:u,...c}){return h.jsx("span",{className:Ve(MA({variant:u}),a),...c})}function Ps({className:a,...u}){return h.jsx("div",{className:"relative w-full overflow-x-auto",children:h.jsx("table",{className:Ve("w-full caption-bottom text-sm",a),...u})})}function ef({className:a,...u}){return h.jsx("thead",{className:Ve("[&_tr]:border-b",a),...u})}function tf({className:a,...u}){return h.jsx("tbody",{className:Ve("[&_tr:last-child]:border-0",a),...u})}function wa({className:a,...u}){return h.jsx("tr",{className:Ve("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...u})}function et({className:a,...u}){return h.jsx("th",{className:Ve("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...u})}function tt({className:a,...u}){return h.jsx("td",{className:Ve("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...u})}function TA({priority:a}){switch(a){case"urgent":return h.jsx(on,{className:"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300 border-0",children:"urgent"});case"high":return h.jsx(on,{className:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300 border-0",children:"high"});case"low":return h.jsx(on,{className:"bg-slate-100 text-slate-600 dark:bg-slate-900 dark:text-slate-400 border-0",children:"low"});default:return null}}function wA(a){const u=Date.now(),c=a.endsWith("Z")?a:`${a}Z`,r=Date.parse(c);if(Number.isNaN(r))return"—";const s=Math.max(0,u-r),d=Math.floor(s/1e3);if(d<60)return`${d}s ago`;const m=Math.floor(d/60);if(m<60)return`${m}m ago`;const g=Math.floor(m/60);return g<24?`${g}h ago`:`${Math.floor(g/24)}d ago`}function _A({messages:a}){return a.length===0?h.jsx("div",{className:"rounded-xl border p-8 text-center text-muted-foreground",children:"No messages yet. Send one from the CLI or use the button above."}):h.jsx("div",{className:"rounded-xl border",children:h.jsxs(Ps,{children:[h.jsx(ef,{children:h.jsxs(wa,{children:[h.jsx(et,{className:"w-10",children:"#"}),h.jsx(et,{children:"From"}),h.jsx(et,{children:"To"}),h.jsx(et,{children:"Content"}),h.jsx(et,{children:"Priority"}),h.jsx(et,{children:"Status"}),h.jsx(et,{className:"text-right",children:"Time"})]})}),h.jsx(tf,{children:a.map(u=>h.jsxs(wa,{children:[h.jsx(tt,{className:"text-muted-foreground",children:u.id}),h.jsx(tt,{children:h.jsx("span",{className:"font-medium",children:u.from_agent})}),h.jsx(tt,{children:u.space?h.jsxs(on,{className:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 border-0",children:["#",u.space]}):h.jsx("span",{children:u.to_agent})}),h.jsx(tt,{className:"max-w-xs truncate",children:u.content}),h.jsx(tt,{children:h.jsx(TA,{priority:u.priority})}),h.jsx(tt,{children:u.read_at?h.jsx(on,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-800 dark:text-green-400",children:"Read"}):h.jsx(on,{variant:"outline",className:"border-orange-300 text-orange-700 dark:border-orange-800 dark:text-orange-400",children:"Unread"})}),h.jsx(tt,{className:"text-right text-muted-foreground",children:wA(u.created_at)})]},u.id))})]})})}function OA({spaces:a,onSelectSpace:u}){return a.length===0?h.jsxs("div",{className:"rounded-xl border p-8 text-center text-muted-foreground",children:["No spaces yet. Create one with"," ",h.jsx("code",{className:"text-xs bg-muted px-1.5 py-0.5 rounded",children:"conversations space create"})]}):h.jsx("div",{className:"rounded-xl border",children:h.jsxs(Ps,{children:[h.jsx(ef,{children:h.jsxs(wa,{children:[h.jsx(et,{children:"Space"}),h.jsx(et,{children:"Description"}),h.jsx(et,{children:"Parent"}),h.jsx(et,{children:"Created by"}),h.jsx(et,{className:"text-right",children:"Members"}),h.jsx(et,{className:"text-right",children:"Messages"})]})}),h.jsx(tf,{children:a.map(c=>h.jsxs(wa,{className:"cursor-pointer",onClick:()=>u==null?void 0:u(c.name),children:[h.jsx(tt,{children:h.jsxs(on,{className:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 border-0",children:["#",c.name]})}),h.jsx(tt,{className:"text-muted-foreground",children:c.description||"—"}),h.jsx(tt,{className:"text-muted-foreground",children:c.parent_id?h.jsx(on,{variant:"outline",className:"text-xs",children:c.parent_id}):"—"}),h.jsx(tt,{className:"font-medium",children:c.created_by}),h.jsx(tt,{className:"text-right",children:c.member_count}),h.jsx(tt,{className:"text-right",children:c.message_count})]},c.name))})]})})}function RA({projects:a}){return a.length===0?h.jsxs("div",{className:"rounded-xl border p-8 text-center text-muted-foreground",children:["No projects yet. Create one with"," ",h.jsx("code",{className:"text-xs bg-muted px-1.5 py-0.5 rounded",children:"conversations project create"})]}):h.jsx("div",{className:"rounded-xl border",children:h.jsxs(Ps,{children:[h.jsx(ef,{children:h.jsxs(wa,{children:[h.jsx(et,{children:"Project"}),h.jsx(et,{children:"Description"}),h.jsx(et,{children:"Status"}),h.jsx(et,{children:"Created by"}),h.jsx(et,{className:"text-right",children:"Spaces"})]})}),h.jsx(tf,{children:a.map(u=>h.jsxs(wa,{children:[h.jsx(tt,{className:"font-medium",children:u.name}),h.jsx(tt,{className:"text-muted-foreground",children:u.description||"—"}),h.jsx(tt,{children:u.status==="archived"?h.jsx(on,{variant:"outline",className:"border-amber-300 text-amber-700 dark:border-amber-800 dark:text-amber-400",children:"archived"}):h.jsx(on,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-800 dark:text-green-400",children:"active"})}),h.jsx(tt,{children:u.created_by}),h.jsx(tt,{className:"text-right",children:u.space_count})]},u.id))})]})})}function Ui({className:a,type:u,...c}){return h.jsx("input",{type:u,className:Ve("placeholder:text-muted-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",a),...c})}function NA({open:a,onClose:u,spaceName:c,sessionId:r,title:s}){const[d,m]=b.useState([]),[g,y]=b.useState(""),[p,S]=b.useState("dashboard-user"),x=b.useRef(null);b.useEffect(()=>{if(!a)return;const M=async()=>{const w=new URLSearchParams;c?w.set("space",c):r&&w.set("session",r),w.set("limit","100");try{const H=await(await fetch(`/api/messages?${w}`)).json();m(H.reverse())}catch{}};M();const D=setInterval(M,1e3);return()=>clearInterval(D)},[a,c,r]),b.useEffect(()=>{var M;(M=x.current)==null||M.scrollIntoView({behavior:"smooth"})},[d.length]);const C=async()=>{if(!g.trim()||!p.trim())return;const M={from:p,to:c||"unknown",content:g.trim()};c&&(M.space=c);try{await fetch("/api/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)}),y("")}catch{}};return a?h.jsxs("div",{className:"fixed inset-y-0 right-0 z-40 w-96 border-l bg-background shadow-xl flex flex-col",children:[h.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[h.jsx("h3",{className:"font-semibold text-sm truncate",children:s}),h.jsx(an,{variant:"ghost",size:"sm",onClick:u,children:h.jsx(nv,{className:"size-4"})})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3 space-y-3",children:[d.length===0?h.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"No messages yet"}):d.map(M=>h.jsxs("div",{className:"text-sm",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"font-medium text-xs",children:M.from_agent}),h.jsx("span",{className:"text-xs text-muted-foreground",children:M.created_at.slice(11,19)})]}),h.jsx("p",{className:"mt-0.5 text-sm",children:M.content})]},M.id)),h.jsx("div",{ref:x})]}),h.jsxs("div",{className:"border-t px-4 py-3 space-y-2",children:[h.jsx(Ui,{value:p,onChange:M=>S(M.target.value),placeholder:"Your agent name",className:"text-xs"}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Ui,{value:g,onChange:M=>y(M.target.value),onKeyDown:M=>M.key==="Enter"&&C(),placeholder:"Type a message..."}),h.jsx(an,{size:"sm",onClick:C,children:h.jsx(ws,{className:"size-3.5"})})]})]})]}):null}function ey({...a}){return h.jsx(mS,{...a})}function DA({className:a,...u}){return h.jsx(gS,{className:Ve("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",a),...u})}function ty({className:a,children:u,...c}){return h.jsxs(hS,{children:[h.jsx(DA,{}),h.jsxs(vS,{className:Ve("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",a),...c,children:[u,h.jsxs(bS,{className:"ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[h.jsx(nv,{}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ny({className:a,...u}){return h.jsx("div",{className:Ve("flex flex-col gap-2 text-center sm:text-left",a),...u})}function ly({className:a,...u}){return h.jsx("div",{className:Ve("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...u})}function ay({className:a,...u}){return h.jsx(pS,{className:Ve("text-lg leading-none font-semibold",a),...u})}function iy({className:a,...u}){return h.jsx(yS,{className:Ve("text-muted-foreground text-sm",a),...u})}function zA({open:a,onOpenChange:u,onSent:c}){const[r,s]=b.useState(""),[d,m]=b.useState(""),[g,y]=b.useState(""),[p,S]=b.useState(!1),[x,C]=b.useState(null);b.useEffect(()=>{a||(s(""),m(""),y(""),C(null),S(!1))},[a]);async function M(){if(!p&&!(!r.trim()||!d.trim()||!g.trim())){S(!0),C(null);try{const D=await fetch("/api/messages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:r.trim(),to:d.trim(),content:g.trim()})});let w=null;try{w=await D.json()}catch{w=null}D.ok?w!=null&&w.id?(s(""),m(""),y(""),u(!1),c()):C((w==null?void 0:w.error)||"Failed to send"):C((w==null?void 0:w.error)||`Failed to send (${D.status})`)}catch{C("Failed to send message")}finally{S(!1)}}}return h.jsx(ey,{open:a,onOpenChange:u,children:h.jsxs(ty,{children:[h.jsxs(ny,{children:[h.jsxs(ay,{className:"flex items-center gap-2",children:[h.jsx(ws,{className:"size-5"}),"Send Message"]}),h.jsx(iy,{children:"Send a direct message between agents."})]}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-sm font-medium",htmlFor:"send-from",children:"From"}),h.jsx(Ui,{id:"send-from",placeholder:"sender-agent",value:r,onChange:D=>s(D.target.value),autoFocus:!0})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-sm font-medium",htmlFor:"send-to",children:"To"}),h.jsx(Ui,{id:"send-to",placeholder:"recipient-agent",value:d,onChange:D=>m(D.target.value)})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-sm font-medium",htmlFor:"send-content",children:"Message"}),h.jsx(Ui,{id:"send-content",placeholder:"Your message...",value:g,onChange:D=>y(D.target.value),onKeyDown:D=>D.key==="Enter"&&M()})]}),x&&h.jsx("p",{className:"text-sm text-destructive",children:x})]}),h.jsxs(ly,{children:[h.jsx(an,{variant:"outline",onClick:()=>u(!1),children:"Cancel"}),h.jsx(an,{onClick:M,disabled:!r.trim()||!d.trim()||!g.trim()||p,children:p?"Sending...":"Send"})]})]})})}function jA({open:a,onOpenChange:u,current:c,latest:r,onUpdated:s}){const[d,m]=b.useState(!1),[g,y]=b.useState(null);function p(){d||(y(null),u(!1))}function S(C){if(!C){p();return}u(!0)}async function x(){m(!0),y(null);try{const C=await fetch("/api/update",{method:"POST"});let M=null;try{M=await C.json()}catch{M=null}if(C.ok)(M==null?void 0:M.status)==="updated"?(y({status:"success",message:`Updated to v${r}`}),s(`Updated to v${r}`,"success")):(M==null?void 0:M.status)==="up-to-date"?y({status:"success",message:"Already up to date"}):(y({status:"error",message:(M==null?void 0:M.stderr)||(M==null?void 0:M.error)||"Update failed"}),s("Update failed","error"));else{const D=(M==null?void 0:M.stderr)||(M==null?void 0:M.error)||`Update failed (${C.status})`;y({status:"error",message:D}),s("Update failed","error")}}catch{y({status:"error",message:"Failed to connect to server"}),s("Update failed","error")}finally{m(!1)}}return h.jsx(ey,{open:a,onOpenChange:S,children:h.jsxs(ty,{children:[h.jsxs(ny,{children:[h.jsxs(ay,{className:"flex items-center gap-2",children:[h.jsx(Ig,{className:"size-5"}),"Update Available"]}),h.jsx(iy,{children:"A new version of Conversations is available."})]}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between rounded-md border px-4 py-3 text-sm",children:[h.jsx("span",{className:"text-muted-foreground",children:"Current version"}),h.jsxs("span",{className:"font-mono font-medium",children:["v",c]})]}),h.jsxs("div",{className:"flex items-center justify-between rounded-md border border-green-200 bg-green-50 px-4 py-3 text-sm dark:border-green-900 dark:bg-green-950",children:[h.jsx("span",{className:"text-muted-foreground",children:"Latest version"}),h.jsxs("span",{className:"font-mono font-medium text-green-700 dark:text-green-300",children:["v",r]})]}),g&&h.jsxs("div",{className:`flex items-center gap-2 rounded-md border px-4 py-3 text-sm ${g.status==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200"}`,children:[g.status==="success"?h.jsx(Xb,{className:"size-4 shrink-0"}):h.jsx(Vb,{className:"size-4 shrink-0"}),g.message]})]}),h.jsxs(ly,{children:[h.jsx(an,{variant:"outline",onClick:p,disabled:d,children:g?"Close":"Cancel"}),!g&&h.jsx(an,{onClick:x,disabled:d,children:d?"Updating...":"Update Now"})]})]})})}function UA(){const[a,u]=b.useState(null),[c,r]=b.useState([]),[s,d]=b.useState([]),[m,g]=b.useState([]),[y,p]=b.useState(!0),[S,x]=b.useState("messages"),[C,M]=b.useState(!1),[D,w]=b.useState(!1),[z,H]=b.useState(!1),[J,X]=b.useState(),[V,I]=b.useState(),[$,Z]=b.useState(""),[K,ce]=b.useState(""),[de,fe]=b.useState(null),[re,ge]=b.useState(null),[me,ye]=b.useState(null),O=b.useRef(null),Q=b.useRef(!1),U=b.useCallback((Y,P)=>{ye({message:Y,type:P}),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>ye(null),3e3)},[]),F=b.useCallback(async(Y,P)=>{const ie=await fetch(Y,P);let ee=null;try{ee=await ie.json()}catch{}if(!ie.ok){const Le=typeof(ee==null?void 0:ee.error)=="string"?ee.error:`Request failed (${ie.status})`;throw new Error(Le)}if(ee===null)throw new Error("Invalid server response");return ee},[]),ue=Y=>{if(!Y||typeof Y!="object")return!1;const P=Y;return typeof P.current=="string"&&typeof P.latest=="string"&&typeof P.updateAvailable=="boolean"},A=b.useCallback(async()=>{if(!Q.current){Q.current=!0;try{const[Y,P,ie,ee]=await Promise.all([F("/api/status"),F("/api/messages?limit=50"),F("/api/spaces"),F("/api/projects")]);u(Y),r(P),d(ie),g(ee)}catch(Y){const P=Y instanceof Error?Y.message:"Failed to load data";U(P,"error")}finally{Q.current=!1,p(!1)}}},[F,U]),B=b.useCallback(async Y=>{if(ce(Y),!Y.trim()){fe(null);return}try{const P=await fetch(`/api/messages/search?q=${encodeURIComponent(Y)}&limit=50`);if(P.ok){const ie=await P.json();fe(ie)}}catch{fe(null)}},[]),W=b.useCallback(Y=>{X(Y.spaceName),I(Y.sessionId),Z(Y.title),H(!0)},[]);return b.useEffect(()=>{A();const Y=setInterval(A,3e3);return()=>clearInterval(Y)},[A]),b.useEffect(()=>{F("/api/version").then(Y=>{ue(Y)?ge(Y):ge(null)}).catch(()=>ge(null))},[F]),h.jsxs("div",{className:"min-h-screen",children:[h.jsx("header",{className:"border-b",children:h.jsxs("div",{className:"mx-auto flex h-14 max-w-6xl items-center justify-between px-6",children:[h.jsx("div",{className:"flex items-center gap-3",children:h.jsxs("h1",{className:"text-base font-semibold",children:["Hasna"," ",h.jsx("span",{className:"font-normal text-muted-foreground",children:"Conversations"})]})}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs(an,{variant:"ghost",size:"sm",onClick:()=>M(!0),children:[h.jsx(ws,{className:"size-3.5"}),"Send"]}),h.jsxs(an,{variant:"ghost",size:"sm",onClick:()=>{p(!0),A()},disabled:y,children:[h.jsx(Jb,{className:`size-3.5 ${y?"animate-spin":""}`}),"Reload"]}),re&&(re.updateAvailable?h.jsxs(an,{variant:"ghost",size:"sm",onClick:()=>w(!0),className:"text-green-600 hover:text-green-700 dark:text-green-400 dark:hover:text-green-300",children:[h.jsx(Ig,{className:"size-3.5"}),"Update v",re.latest]}):h.jsxs("span",{className:"text-xs text-muted-foreground px-2",children:["v",re.current]})),h.jsx(AA,{})]})]})}),h.jsxs("main",{className:"mx-auto max-w-6xl space-y-6 px-6 py-6",children:[h.jsx(CA,{status:a}),h.jsxs("div",{className:"flex items-center gap-1 border-b",children:[h.jsxs("button",{onClick:()=>x("messages"),className:`flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors ${S==="messages"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[h.jsx(tv,{className:"size-4"}),"Messages"]}),h.jsxs("button",{onClick:()=>x("spaces"),className:`flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors ${S==="spaces"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[h.jsx(ev,{className:"size-4"}),"Spaces",s.length>0&&h.jsx("span",{className:"text-xs text-muted-foreground",children:s.length})]}),h.jsxs("button",{onClick:()=>x("projects"),className:`flex items-center gap-2 px-4 py-2 text-sm font-medium border-b-2 transition-colors ${S==="projects"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[h.jsx(Pg,{className:"size-4"}),"Projects",m.length>0&&h.jsx("span",{className:"text-xs text-muted-foreground",children:m.length})]})]}),S==="messages"&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("div",{className:"relative flex-1",children:[h.jsx("input",{type:"text",value:K,onChange:Y=>B(Y.target.value),placeholder:"Search messages...",className:"w-full rounded-lg border px-4 py-2 text-sm bg-background pl-9"}),h.jsxs("svg",{className:"absolute left-3 top-2.5 size-4 text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"11",cy:"11",r:"8"}),h.jsx("path",{d:"m21 21-4.3-4.3"})]})]}),K&&h.jsx("button",{onClick:()=>{ce(""),fe(null)},className:"text-sm text-muted-foreground hover:text-foreground",children:"Clear"})]}),h.jsx(_A,{messages:de??c})]}),S==="spaces"&&h.jsx(OA,{spaces:s,onSelectSpace:Y=>W({spaceName:Y,title:`#${Y}`})}),S==="projects"&&h.jsx(RA,{projects:m})]}),h.jsx(zA,{open:C,onOpenChange:M,onSent:()=>{U("Message sent","success"),A()}}),(re==null?void 0:re.updateAvailable)&&h.jsx(jA,{open:D,onOpenChange:w,current:re.current,latest:re.latest,onUpdated:(Y,P)=>{U(Y,P),P==="success"&&F("/api/version").then(ie=>{ue(ie)?ge(ie):ge(null)}).catch(()=>ge(null))}}),h.jsx(NA,{open:z,onClose:()=>H(!1),spaceName:J,sessionId:V,title:$}),me&&h.jsx("div",{className:`fixed bottom-6 right-6 z-50 rounded-lg border px-4 py-3 text-sm shadow-lg transition-all ${me.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200"}`,children:me.message})]})}Hb.createRoot(document.getElementById("root")).render(h.jsx(b.StrictMode,{children:h.jsx(Bb,{defaultTheme:"light",children:h.jsx(UA,{})})}));
|