import{i as pm,m as pr,o as Em,s as Sm,ab as xm}from"./api-ClUvtz75.js";function Tm(n,i){for(var r=0;r<i.length;r++){const c=i[r];if(typeof c!="string"&&!Array.isArray(c)){for(const o in c)if(o!=="default"&&!(o in n)){const f=Object.getOwnPropertyDescriptor(c,o);f&&Object.defineProperty(n,o,f.get?f:{enumerable:!0,get:()=>c[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const v of f.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&c(v)}).observe(document,{childList:!0,subtree:!0});function r(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(o){if(o.ep)return;o.ep=!0;const f=r(o);fetch(o.href,f)}})();try{pm()}catch(n){console.error("[wxt] Failed to initialize plugins",n)}var qs={exports:{}},Mu={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var R1;function _m(){if(R1)return Mu;R1=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(c,o,f){var v=null;if(f!==void 0&&(v=""+f),o.key!==void 0&&(v=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:n,type:c,key:v,ref:o!==void 0?o:null,props:f}}return Mu.Fragment=i,Mu.jsx=r,Mu.jsxs=r,Mu}var N1;function Am(){return N1||(N1=1,qs.exports=_m()),qs.exports}var T=Am();const P4=pr(T);var Ys={exports:{}},Ee={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $1;function Cm(){if($1)return Ee;$1=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),v=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),M=Symbol.iterator;function D(x){return x===null||typeof x!="object"?null:(x=M&&x[M]||x["@@iterator"],typeof x=="function"?x:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K=Object.assign,R={};function L(x,Y,ne){this.props=x,this.context=Y,this.refs=R,this.updater=ne||q}L.prototype.isReactComponent={},L.prototype.setState=function(x,Y){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,Y,"setState")},L.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function W(){}W.prototype=L.prototype;function G(x,Y,ne){this.props=x,this.context=Y,this.refs=R,this.updater=ne||q}var k=G.prototype=new W;k.constructor=G,K(k,L.prototype),k.isPureReactComponent=!0;var J=Array.isArray,Q={H:null,A:null,T:null,S:null,V:null},ve=Object.prototype.hasOwnProperty;function ue(x,Y,ne,te,de,Me){return ne=Me.ref,{$$typeof:n,type:x,key:Y,ref:ne!==void 0?ne:null,props:Me}}function Ae(x,Y){return ue(x.type,Y,void 0,void 0,void 0,x.props)}function we(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function Ce(x){var Y={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(ne){return Y[ne]})}var H=/\/+/g;function F(x,Y){return typeof x=="object"&&x!==null&&x.key!=null?Ce(""+x.key):Y.toString(36)}function oe(){}function X(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(oe,oe):(x.status="pending",x.then(function(Y){x.status==="pending"&&(x.status="fulfilled",x.value=Y)},function(Y){x.status==="pending"&&(x.status="rejected",x.reason=Y)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function fe(x,Y,ne,te,de){var Me=typeof x;(Me==="undefined"||Me==="boolean")&&(x=null);var be=!1;if(x===null)be=!0;else switch(Me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(x.$$typeof){case n:case i:be=!0;break;case p:return be=x._init,fe(be(x._payload),Y,ne,te,de)}}if(be)return de=de(x),be=te===""?"."+F(x,0):te,J(de)?(ne="",be!=null&&(ne=be.replace(H,"$&/")+"/"),fe(de,Y,ne,"",function(zt){return zt})):de!=null&&(we(de)&&(de=Ae(de,ne+(de.key==null||x&&x.key===de.key?"":(""+de.key).replace(H,"$&/")+"/")+be)),Y.push(de)),1;be=0;var rt=te===""?".":te+":";if(J(x))for(var Le=0;Le<x.length;Le++)te=x[Le],Me=rt+F(te,Le),be+=fe(te,Y,ne,Me,de);else if(Le=D(x),typeof Le=="function")for(x=Le.call(x),Le=0;!(te=x.next()).done;)te=te.value,Me=rt+F(te,Le++),be+=fe(te,Y,ne,Me,de);else if(Me==="object"){if(typeof x.then=="function")return fe(X(x),Y,ne,te,de);throw Y=String(x),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return be}function A(x,Y,ne){if(x==null)return x;var te=[],de=0;return fe(x,te,"","",function(Me){return Y.call(ne,Me,de++)}),te}function Z(x){if(x._status===-1){var Y=x._result;Y=Y(),Y.then(function(ne){(x._status===0||x._status===-1)&&(x._status=1,x._result=ne)},function(ne){(x._status===0||x._status===-1)&&(x._status=2,x._result=ne)}),x._status===-1&&(x._status=0,x._result=Y)}if(x._status===1)return x._result.default;throw x._result}var ae=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function ge(){}return Ee.Children={map:A,forEach:function(x,Y,ne){A(x,function(){Y.apply(this,arguments)},ne)},count:function(x){var Y=0;return A(x,function(){Y++}),Y},toArray:function(x){return A(x,function(Y){return Y})||[]},only:function(x){if(!we(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},Ee.Component=L,Ee.Fragment=r,Ee.Profiler=o,Ee.PureComponent=G,Ee.StrictMode=c,Ee.Suspense=b,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(x){return Q.H.useMemoCache(x)}},Ee.cache=function(x){return function(){return x.apply(null,arguments)}},Ee.cloneElement=function(x,Y,ne){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var te=K({},x.props),de=x.key,Me=void 0;if(Y!=null)for(be in Y.ref!==void 0&&(Me=void 0),Y.key!==void 0&&(de=""+Y.key),Y)!ve.call(Y,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&Y.ref===void 0||(te[be]=Y[be]);var be=arguments.length-2;if(be===1)te.children=ne;else if(1<be){for(var rt=Array(be),Le=0;Le<be;Le++)rt[Le]=arguments[Le+2];te.children=rt}return ue(x.type,de,void 0,void 0,Me,te)},Ee.createContext=function(x){return x={$$typeof:v,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},Ee.createElement=function(x,Y,ne){var te,de={},Me=null;if(Y!=null)for(te in Y.key!==void 0&&(Me=""+Y.key),Y)ve.call(Y,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(de[te]=Y[te]);var be=arguments.length-2;if(be===1)de.children=ne;else if(1<be){for(var rt=Array(be),Le=0;Le<be;Le++)rt[Le]=arguments[Le+2];de.children=rt}if(x&&x.defaultProps)for(te in be=x.defaultProps,be)de[te]===void 0&&(de[te]=be[te]);return ue(x,Me,void 0,void 0,null,de)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(x){return{$$typeof:h,render:x}},Ee.isValidElement=we,Ee.lazy=function(x){return{$$typeof:p,_payload:{_status:-1,_result:x},_init:Z}},Ee.memo=function(x,Y){return{$$typeof:m,type:x,compare:Y===void 0?null:Y}},Ee.startTransition=function(x){var Y=Q.T,ne={};Q.T=ne;try{var te=x(),de=Q.S;de!==null&&de(ne,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(ge,ae)}catch(Me){ae(Me)}finally{Q.T=Y}},Ee.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},Ee.use=function(x){return Q.H.use(x)},Ee.useActionState=function(x,Y,ne){return Q.H.useActionState(x,Y,ne)},Ee.useCallback=function(x,Y){return Q.H.useCallback(x,Y)},Ee.useContext=function(x){return Q.H.useContext(x)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(x,Y){return Q.H.useDeferredValue(x,Y)},Ee.useEffect=function(x,Y,ne){var te=Q.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return te.useEffect(x,Y)},Ee.useId=function(){return Q.H.useId()},Ee.useImperativeHandle=function(x,Y,ne){return Q.H.useImperativeHandle(x,Y,ne)},Ee.useInsertionEffect=function(x,Y){return Q.H.useInsertionEffect(x,Y)},Ee.useLayoutEffect=function(x,Y){return Q.H.useLayoutEffect(x,Y)},Ee.useMemo=function(x,Y){return Q.H.useMemo(x,Y)},Ee.useOptimistic=function(x,Y){return Q.H.useOptimistic(x,Y)},Ee.useReducer=function(x,Y,ne){return Q.H.useReducer(x,Y,ne)},Ee.useRef=function(x){return Q.H.useRef(x)},Ee.useState=function(x){return Q.H.useState(x)},Ee.useSyncExternalStore=function(x,Y,ne){return Q.H.useSyncExternalStore(x,Y,ne)},Ee.useTransition=function(){return Q.H.useTransition()},Ee.version="19.1.2",Ee}var z1;function Eo(){return z1||(z1=1,Ys.exports=Cm()),Ys.exports}var g=Eo();const re=pr(g),Rv=Tm({__proto__:null,default:re},[g]);var Gs={exports:{}},Ou={},Zs={exports:{}},ks={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var U1;function Mm(){return U1||(U1=1,(function(n){function i(A,Z){var ae=A.length;A.push(Z);e:for(;0<ae;){var ge=ae-1>>>1,x=A[ge];if(0<o(x,Z))A[ge]=Z,A[ae]=x,ae=ge;else break e}}function r(A){return A.length===0?null:A[0]}function c(A){if(A.length===0)return null;var Z=A[0],ae=A.pop();if(ae!==Z){A[0]=ae;e:for(var ge=0,x=A.length,Y=x>>>1;ge<Y;){var ne=2*(ge+1)-1,te=A[ne],de=ne+1,Me=A[de];if(0>o(te,ae))de<x&&0>o(Me,te)?(A[ge]=Me,A[de]=ae,ge=de):(A[ge]=te,A[ne]=ae,ge=ne);else if(de<x&&0>o(Me,ae))A[ge]=Me,A[de]=ae,ge=de;else break e}}return Z}function o(A,Z){var ae=A.sortIndex-Z.sortIndex;return ae!==0?ae:A.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var v=Date,h=v.now();n.unstable_now=function(){return v.now()-h}}var b=[],m=[],p=1,M=null,D=3,q=!1,K=!1,R=!1,L=!1,W=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function J(A){for(var Z=r(m);Z!==null;){if(Z.callback===null)c(m);else if(Z.startTime<=A)c(m),Z.sortIndex=Z.expirationTime,i(b,Z);else break;Z=r(m)}}function Q(A){if(R=!1,J(A),!K)if(r(b)!==null)K=!0,ve||(ve=!0,F());else{var Z=r(m);Z!==null&&fe(Q,Z.startTime-A)}}var ve=!1,ue=-1,Ae=5,we=-1;function Ce(){return L?!0:!(n.unstable_now()-we<Ae)}function H(){if(L=!1,ve){var A=n.unstable_now();we=A;var Z=!0;try{e:{K=!1,R&&(R=!1,G(ue),ue=-1),q=!0;var ae=D;try{t:{for(J(A),M=r(b);M!==null&&!(M.expirationTime>A&&Ce());){var ge=M.callback;if(typeof ge=="function"){M.callback=null,D=M.priorityLevel;var x=ge(M.expirationTime<=A);if(A=n.unstable_now(),typeof x=="function"){M.callback=x,J(A),Z=!0;break t}M===r(b)&&c(b),J(A)}else c(b);M=r(b)}if(M!==null)Z=!0;else{var Y=r(m);Y!==null&&fe(Q,Y.startTime-A),Z=!1}}break e}finally{M=null,D=ae,q=!1}Z=void 0}}finally{Z?F():ve=!1}}}var F;if(typeof k=="function")F=function(){k(H)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,X=oe.port2;oe.port1.onmessage=H,F=function(){X.postMessage(null)}}else F=function(){W(H,0)};function fe(A,Z){ue=W(function(){A(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ae=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return D},n.unstable_next=function(A){switch(D){case 1:case 2:case 3:var Z=3;break;default:Z=D}var ae=D;D=Z;try{return A()}finally{D=ae}},n.unstable_requestPaint=function(){L=!0},n.unstable_runWithPriority=function(A,Z){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var ae=D;D=A;try{return Z()}finally{D=ae}},n.unstable_scheduleCallback=function(A,Z,ae){var ge=n.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ge+ae:ge):ae=ge,A){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=ae+x,A={id:p++,callback:Z,priorityLevel:A,startTime:ae,expirationTime:x,sortIndex:-1},ae>ge?(A.sortIndex=ae,i(m,A),r(b)===null&&A===r(m)&&(R?(G(ue),ue=-1):R=!0,fe(Q,ae-ge))):(A.sortIndex=x,i(b,A),K||q||(K=!0,ve||(ve=!0,F()))),A},n.unstable_shouldYield=Ce,n.unstable_wrapCallback=function(A){var Z=D;return function(){var ae=D;D=Z;try{return A.apply(this,arguments)}finally{D=ae}}}})(ks)),ks}var V1;function Om(){return V1||(V1=1,Zs.exports=Mm()),Zs.exports}var Xs={exports:{}},vt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var j1;function Dm(){if(j1)return vt;j1=1;var n=Eo();function i(b){var m="https://react.dev/errors/"+b;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)m+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+b+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(b,m,p){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:M==null?null:""+M,children:b,containerInfo:m,implementation:p}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(b,m){if(b==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,vt.createPortal=function(b,m){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(b,m,null,p)},vt.flushSync=function(b){var m=v.T,p=c.p;try{if(v.T=null,c.p=2,b)return b()}finally{v.T=m,c.p=p,c.d.f()}},vt.preconnect=function(b,m){typeof b=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,c.d.C(b,m))},vt.prefetchDNS=function(b){typeof b=="string"&&c.d.D(b)},vt.preinit=function(b,m){if(typeof b=="string"&&m&&typeof m.as=="string"){var p=m.as,M=h(p,m.crossOrigin),D=typeof m.integrity=="string"?m.integrity:void 0,q=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;p==="style"?c.d.S(b,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:M,integrity:D,fetchPriority:q}):p==="script"&&c.d.X(b,{crossOrigin:M,integrity:D,fetchPriority:q,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},vt.preinitModule=function(b,m){if(typeof b=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var p=h(m.as,m.crossOrigin);c.d.M(b,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&c.d.M(b)},vt.preload=function(b,m){if(typeof b=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var p=m.as,M=h(p,m.crossOrigin);c.d.L(b,p,{crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},vt.preloadModule=function(b,m){if(typeof b=="string")if(m){var p=h(m.as,m.crossOrigin);c.d.m(b,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else c.d.m(b)},vt.requestFormReset=function(b){c.d.r(b)},vt.unstable_batchedUpdates=function(b,m){return b(m)},vt.useFormState=function(b,m,p){return v.H.useFormState(b,m,p)},vt.useFormStatus=function(){return v.H.useHostTransitionStatus()},vt.version="19.1.2",vt}var H1;function Nv(){if(H1)return Xs.exports;H1=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Xs.exports=Dm(),Xs.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var L1;function wm(){if(L1)return Ou;L1=1;var n=Om(),i=Eo(),r=Nv();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function v(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 h(e){if(f(e)!==e)throw Error(c(188))}function b(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var u=l.return;if(u===null)break;var s=u.alternate;if(s===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===l)return h(u),e;if(s===a)return h(u),t;s=s.sibling}throw Error(c(188))}if(l.return!==a.return)l=u,a=s;else{for(var d=!1,y=u.child;y;){if(y===l){d=!0,l=u,a=s;break}if(y===a){d=!0,a=u,l=s;break}y=y.sibling}if(!d){for(y=s.child;y;){if(y===l){d=!0,l=s,a=u;break}if(y===a){d=!0,a=s,l=u;break}y=y.sibling}if(!d)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,M=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),k=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Ae=Symbol.for("react.lazy"),we=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case K:return"Fragment";case L:return"Profiler";case R:return"StrictMode";case Q:return"Suspense";case ve:return"SuspenseList";case we:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case k:return(e.displayName||"Context")+".Provider";case G:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ue:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case Ae:t=e._payload,e=e._init;try{return X(e(t))}catch{}}return null}var fe=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ge=[],x=-1;function Y(e){return{current:e}}function ne(e){0>x||(e.current=ge[x],ge[x]=null,x--)}function te(e,t){x++,ge[x]=e.current,e.current=t}var de=Y(null),Me=Y(null),be=Y(null),rt=Y(null);function Le(e,t){switch(te(be,t),te(Me,e),te(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?u1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=u1(t),e=i1(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ne(de),te(de,e)}function zt(){ne(de),ne(Me),ne(be)}function aa(e){e.memoizedState!==null&&te(rt,e);var t=de.current,l=i1(t,e.type);t!==l&&(te(Me,e),te(de,l))}function Da(e){Me.current===e&&(ne(de),ne(Me)),rt.current===e&&(ne(rt),xu._currentValue=ae)}var wa=Object.prototype.hasOwnProperty,wn=n.unstable_scheduleCallback,Ra=n.unstable_cancelCallback,Gu=n.unstable_shouldYield,Or=n.unstable_requestPaint,Ut=n.unstable_now,Bo=n.unstable_getCurrentPriorityLevel,Rn=n.unstable_ImmediatePriority,S=n.unstable_UserBlockingPriority,N=n.unstable_NormalPriority,U=n.unstable_LowPriority,le=n.unstable_IdlePriority,I=n.log,P=n.unstable_setDisableYieldValue,ce=null,pe=null;function Oe(e){if(typeof I=="function"&&P(e),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(ce,e)}catch{}}var qe=Math.clz32?Math.clz32:Dr,Na=Math.log,tl=Math.LN2;function Dr(e){return e>>>=0,e===0?32:31-(Na(e)/tl|0)|0}var Ml=256,Ol=4194304;function sl(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 na(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~s,a!==0?u=sl(a):(d&=y,d!==0?u=sl(d):l||(l=y&~e,l!==0&&(u=sl(l))))):(y=a&~s,y!==0?u=sl(y):d!==0?u=sl(d):l||(l=a&~e,l!==0&&(u=sl(l)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:u}function ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zu(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 qo(){var e=Ml;return Ml<<=1,(Ml&4194048)===0&&(Ml=256),e}function Yo(){var e=Ol;return Ol<<=1,(Ol&62914560)===0&&(Ol=4194304),e}function wr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Nn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rh(e,t,l,a,u,s){var d=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var y=e.entanglements,E=e.expirationTimes,w=e.hiddenUpdates;for(l=d&~l;0<l;){var V=31-qe(l),B=1<<V;y[V]=0,E[V]=-1;var $=w[V];if($!==null)for(w[V]=null,V=0;V<$.length;V++){var z=$[V];z!==null&&(z.lane&=-536870913)}l&=~B}a!==0&&Go(e,a,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function Go(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-qe(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Zo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-qe(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function Rr(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 Nr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ko(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:A1(e.type))}function ch(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var Dl=Math.random().toString(36).slice(2),ft="__reactFiber$"+Dl,gt="__reactProps$"+Dl,$a="__reactContainer$"+Dl,$r="__reactEvents$"+Dl,sh="__reactListeners$"+Dl,oh="__reactHandles$"+Dl,Xo="__reactResources$"+Dl,$n="__reactMarker$"+Dl;function zr(e){delete e[ft],delete e[gt],delete e[$r],delete e[sh],delete e[oh]}function za(e){var t=e[ft];if(t)return t;for(var l=e.parentNode;l;){if(t=l[$a]||l[ft]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=o1(e);e!==null;){if(l=e[ft])return l;e=o1(e)}return t}e=l,l=e.parentNode}return null}function Ua(e){if(e=e[ft]||e[$a]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function zn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Va(e){var t=e[Xo];return t||(t=e[Xo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[$n]=!0}var Qo=new Set,Ko={};function ia(e,t){ja(e,t),ja(e+"Capture",t)}function ja(e,t){for(Ko[e]=t,e=0;e<t.length;e++)Qo.add(t[e])}var fh=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]*$"),Fo={},Po={};function dh(e){return wa.call(Po,e)?!0:wa.call(Fo,e)?!1:fh.test(e)?Po[e]=!0:(Fo[e]=!0,!1)}function ku(e,t,l){if(dh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Xu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ol(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var Ur,Jo;function Ha(e){if(Ur===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ur=t&&t[1]||"",Jo=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ur+e+Jo}var Vr=!1;function jr(e,t){if(!e||Vr)return"";Vr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(z){var $=z}Reflect.construct(e,[],B)}else{try{B.call()}catch(z){$=z}e.call(B.prototype)}}else{try{throw Error()}catch(z){$=z}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(z){if(z&&$&&typeof z.stack=="string")return[z.stack,$.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),d=s[0],y=s[1];if(d&&y){var E=d.split(`
`),w=y.split(`
`);for(u=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;u<w.length&&!w[u].includes("DetermineComponentFrameRoot");)u++;if(a===E.length||u===w.length)for(a=E.length-1,u=w.length-1;1<=a&&0<=u&&E[a]!==w[u];)u--;for(;1<=a&&0<=u;a--,u--)if(E[a]!==w[u]){if(a!==1||u!==1)do if(a--,u--,0>u||E[a]!==w[u]){var V=`
`+E[a].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=a&&0<=u);break}}}finally{Vr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ha(l):""}function vh(e){switch(e.tag){case 26:case 27:case 5:return Ha(e.type);case 16:return Ha("Lazy");case 13:return Ha("Suspense");case 19:return Ha("SuspenseList");case 0:case 15:return jr(e.type,!1);case 11:return jr(e.type.render,!1);case 1:return jr(e.type,!0);case 31:return Ha("Activity");default:return""}}function Wo(e){try{var t="";do t+=vh(e),e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Io(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hh(e){var t=Io(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qu(e){e._valueTracker||(e._valueTracker=hh(e))}function ef(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Io(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ku(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 yh=/[\n"\\]/g;function jt(e){return e.replace(yh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hr(e,t,l,a,u,s,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Lr(e,d,Vt(t)):l!=null?Lr(e,d,Vt(l)):a!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Vt(y):e.removeAttribute("name")}function tf(e,t,l,a,u,s,d,y){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;l=l!=null?""+Vt(l):"",t=t!=null?""+Vt(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function Lr(e,t,l){t==="number"&&Ku(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function La(e,t,l,a){if(e=e.options,t){t={};for(var u=0;u<l.length;u++)t["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=t.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Vt(l),t=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function lf(e,t,l){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Vt(l):""}function af(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(fe(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Vt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function Ba(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var mh=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 nf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||mh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function uf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&l[u]!==a&&nf(e,u,a)}else for(var s in t)t.hasOwnProperty(s)&&nf(e,s,t[s])}function Br(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 bh=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"]]),gh=/^[\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 Fu(e){return gh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var qr=null;function Yr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qa=null,Ya=null;function rf(e){var t=Ua(e);if(t&&(e=t.stateNode)){var l=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Hr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var u=a[gt]||null;if(!u)throw Error(c(90));Hr(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&ef(a)}break e;case"textarea":lf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&La(e,!!l.multiple,t,!1)}}}var Gr=!1;function cf(e,t,l){if(Gr)return e(t,l);Gr=!0;try{var a=e(t);return a}finally{if(Gr=!1,(qa!==null||Ya!==null)&&(zi(),qa&&(t=qa,e=Ya,Ya=qa=null,rf(t),e)))for(t=0;t<e.length;t++)rf(e[t])}}function Un(e,t){var l=e.stateNode;if(l===null)return null;var a=l[gt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var fl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zr=!1;if(fl)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Zr=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Zr=!1}var wl=null,kr=null,Pu=null;function sf(){if(Pu)return Pu;var e,t=kr,l=t.length,a,u="value"in wl?wl.value:wl.textContent,s=u.length;for(e=0;e<l&&t[e]===u[e];e++);var d=l-e;for(a=1;a<=d&&t[l-a]===u[s-a];a++);return Pu=u.slice(e,1<a?1-a:void 0)}function Ju(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 Wu(){return!0}function of(){return!1}function pt(e){function t(l,a,u,s,d){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(s):s[y]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Wu:of,this.isPropagationStopped=of,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wu)},persist:function(){},isPersistent:Wu}),t}var ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Iu=pt(ra),jn=p({},ra,{view:0,detail:0}),ph=pt(jn),Xr,Qr,Hn,ei=p({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fr,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!==Hn&&(Hn&&e.type==="mousemove"?(Xr=e.screenX-Hn.screenX,Qr=e.screenY-Hn.screenY):Qr=Xr=0,Hn=e),Xr)},movementY:function(e){return"movementY"in e?e.movementY:Qr}}),ff=pt(ei),Eh=p({},ei,{dataTransfer:0}),Sh=pt(Eh),xh=p({},jn,{relatedTarget:0}),Kr=pt(xh),Th=p({},ra,{animationName:0,elapsedTime:0,pseudoElement:0}),_h=pt(Th),Ah=p({},ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ch=pt(Ah),Mh=p({},ra,{data:0}),df=pt(Mh),Oh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dh={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"},wh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wh[e])?!!t[e]:!1}function Fr(){return Rh}var Nh=p({},jn,{key:function(e){if(e.key){var t=Oh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ju(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fr,charCode:function(e){return e.type==="keypress"?Ju(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ju(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$h=pt(Nh),zh=p({},ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vf=pt(zh),Uh=p({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fr}),Vh=pt(Uh),jh=p({},ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hh=pt(jh),Lh=p({},ei,{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}),Bh=pt(Lh),qh=p({},ra,{newState:0,oldState:0}),Yh=pt(qh),Gh=[9,13,27,32],Pr=fl&&"CompositionEvent"in window,Ln=null;fl&&"documentMode"in document&&(Ln=document.documentMode);var Zh=fl&&"TextEvent"in window&&!Ln,hf=fl&&(!Pr||Ln&&8<Ln&&11>=Ln),yf=" ",mf=!1;function bf(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ga=!1;function kh(e,t){switch(e){case"compositionend":return gf(t);case"keypress":return t.which!==32?null:(mf=!0,yf);case"textInput":return e=t.data,e===yf&&mf?null:e;default:return null}}function Xh(e,t){if(Ga)return e==="compositionend"||!Pr&&bf(e,t)?(e=sf(),Pu=kr=wl=null,Ga=!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 hf&&t.locale!=="ko"?null:t.data;default:return null}}var Qh={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 pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Qh[e.type]:t==="textarea"}function Ef(e,t,l,a){qa?Ya?Ya.push(a):Ya=[a]:qa=a,t=Bi(t,"onChange"),0<t.length&&(l=new Iu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Bn=null,qn=null;function Kh(e){e1(e,0)}function ti(e){var t=zn(e);if(ef(t))return e}function Sf(e,t){if(e==="change")return t}var xf=!1;if(fl){var Jr;if(fl){var Wr="oninput"in document;if(!Wr){var Tf=document.createElement("div");Tf.setAttribute("oninput","return;"),Wr=typeof Tf.oninput=="function"}Jr=Wr}else Jr=!1;xf=Jr&&(!document.documentMode||9<document.documentMode)}function _f(){Bn&&(Bn.detachEvent("onpropertychange",Af),qn=Bn=null)}function Af(e){if(e.propertyName==="value"&&ti(qn)){var t=[];Ef(t,qn,e,Yr(e)),cf(Kh,t)}}function Fh(e,t,l){e==="focusin"?(_f(),Bn=t,qn=l,Bn.attachEvent("onpropertychange",Af)):e==="focusout"&&_f()}function Ph(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ti(qn)}function Jh(e,t){if(e==="click")return ti(t)}function Wh(e,t){if(e==="input"||e==="change")return ti(t)}function Ih(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:Ih;function Yn(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!wa.call(t,u)||!At(e[u],t[u]))return!1}return!0}function Cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mf(e,t){var l=Cf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Cf(l)}}function Of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ku(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ku(e.document)}return t}function Ir(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 ey=fl&&"documentMode"in document&&11>=document.documentMode,Za=null,ec=null,Gn=null,tc=!1;function wf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;tc||Za==null||Za!==Ku(a)||(a=Za,"selectionStart"in a&&Ir(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Gn&&Yn(Gn,a)||(Gn=a,a=Bi(ec,"onSelect"),0<a.length&&(t=new Iu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Za)))}function ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ka={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionrun:ca("Transition","TransitionRun"),transitionstart:ca("Transition","TransitionStart"),transitioncancel:ca("Transition","TransitionCancel"),transitionend:ca("Transition","TransitionEnd")},lc={},Rf={};fl&&(Rf=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function sa(e){if(lc[e])return lc[e];if(!ka[e])return e;var t=ka[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Rf)return lc[e]=t[l];return e}var Nf=sa("animationend"),$f=sa("animationiteration"),zf=sa("animationstart"),ty=sa("transitionrun"),ly=sa("transitionstart"),ay=sa("transitioncancel"),Uf=sa("transitionend"),Vf=new Map,ac="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(" ");ac.push("scrollEnd");function Qt(e,t){Vf.set(e,t),ia(t,[e])}var jf=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var l=jf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Wo(t)},jf.set(e,t),t)}return{value:e,source:t,stack:Wo(t)}}var Lt=[],Xa=0,nc=0;function li(){for(var e=Xa,t=nc=Xa=0;t<e;){var l=Lt[t];Lt[t++]=null;var a=Lt[t];Lt[t++]=null;var u=Lt[t];Lt[t++]=null;var s=Lt[t];if(Lt[t++]=null,a!==null&&u!==null){var d=a.pending;d===null?u.next=u:(u.next=d.next,d.next=u),a.pending=u}s!==0&&Hf(l,u,s)}}function ai(e,t,l,a){Lt[Xa++]=e,Lt[Xa++]=t,Lt[Xa++]=l,Lt[Xa++]=a,nc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function uc(e,t,l,a){return ai(e,t,l,a),ni(e)}function Qa(e,t){return ai(e,null,null,t),ni(e)}function Hf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var u=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-qe(l),e=s.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),s):null}function ni(e){if(50<hu)throw hu=0,fs=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ka={};function ny(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,l,a){return new ny(e,t,l,a)}function ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dl(e,t){var l=e.alternate;return l===null?(l=Ct(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Lf(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ui(e,t,l,a,u,s){var d=0;if(a=e,typeof e=="function")ic(e)&&(d=1);else if(typeof e=="string")d=im(e,l,de.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case we:return e=Ct(31,l,t,u),e.elementType=we,e.lanes=s,e;case K:return oa(l.children,u,s,t);case R:d=8,u|=24;break;case L:return e=Ct(12,l,t,u|2),e.elementType=L,e.lanes=s,e;case Q:return e=Ct(13,l,t,u),e.elementType=Q,e.lanes=s,e;case ve:return e=Ct(19,l,t,u),e.elementType=ve,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:case k:d=10;break e;case G:d=9;break e;case J:d=11;break e;case ue:d=14;break e;case Ae:d=16,a=null;break e}d=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Ct(d,l,t,u),t.elementType=e,t.type=a,t.lanes=s,t}function oa(e,t,l,a){return e=Ct(7,e,a,t),e.lanes=l,e}function rc(e,t,l){return e=Ct(6,e,null,t),e.lanes=l,e}function cc(e,t,l){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fa=[],Pa=0,ii=null,ri=0,Bt=[],qt=0,fa=null,vl=1,hl="";function da(e,t){Fa[Pa++]=ri,Fa[Pa++]=ii,ii=e,ri=t}function Bf(e,t,l){Bt[qt++]=vl,Bt[qt++]=hl,Bt[qt++]=fa,fa=e;var a=vl;e=hl;var u=32-qe(a)-1;a&=~(1<<u),l+=1;var s=32-qe(t)+u;if(30<s){var d=u-u%5;s=(a&(1<<d)-1).toString(32),a>>=d,u-=d,vl=1<<32-qe(t)+u|l<<u|a,hl=s+e}else vl=1<<s|l<<u|a,hl=e}function sc(e){e.return!==null&&(da(e,1),Bf(e,1,0))}function oc(e){for(;e===ii;)ii=Fa[--Pa],Fa[Pa]=null,ri=Fa[--Pa],Fa[Pa]=null;for(;e===fa;)fa=Bt[--qt],Bt[qt]=null,hl=Bt[--qt],Bt[qt]=null,vl=Bt[--qt],Bt[qt]=null}var ht=null,ke=null,Ne=!1,va=null,ll=!1,fc=Error(c(519));function ha(e){var t=Error(c(418,""));throw Xn(Ht(t,e)),fc}function qf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ft]=e,t[gt]=a,l){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(l=0;l<mu.length;l++)_e(mu[l],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),tf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Qu(t);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),af(t,a.value,a.defaultValue,a.children),Qu(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||n1(t.textContent,l)?(a.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),a.onScroll!=null&&_e("scroll",t),a.onScrollEnd!=null&&_e("scrollend",t),a.onClick!=null&&(t.onclick=qi),t=!0):t=!1,t||ha(e)}function Yf(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 13:ll=!1;return;case 27:case 3:ll=!0;return;default:ht=ht.return}}function Zn(e){if(e!==ht)return!1;if(!Ne)return Yf(e),Ne=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ms(e.type,e.memoizedProps)),l=!l),l&&ke&&ha(e),Yf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){ke=Ft(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}ke=null}}else t===27?(t=ke,Xl(e.type)?(e=Rs,Rs=null,ke=e):ke=t):ke=ht?Ft(e.stateNode.nextSibling):null;return!0}function kn(){ke=ht=null,Ne=!1}function Gf(){var e=va;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),va=null),e}function Xn(e){va===null?va=[e]:va.push(e)}var dc=Y(null),ya=null,yl=null;function Rl(e,t,l){te(dc,t._currentValue),t._currentValue=l}function ml(e){e._currentValue=dc.current,ne(dc)}function vc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function hc(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var d=u.child;s=s.firstContext;e:for(;s!==null;){var y=s;s=u;for(var E=0;E<t.length;E++)if(y.context===t[E]){s.lanes|=l,y=s.alternate,y!==null&&(y.lanes|=l),vc(s.return,l,e),a||(d=null);break e}s=y.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(c(341));d.lanes|=l,s=d.alternate,s!==null&&(s.lanes|=l),vc(d,l,e),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function Qn(e,t,l,a){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(c(387));if(d=d.memoizedProps,d!==null){var y=u.type;At(u.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(u===rt.current){if(d=u.alternate,d===null)throw Error(c(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(xu):e=[xu])}u=u.return}e!==null&&hc(t,e,l,a),t.flags|=262144}function ci(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ma(e){ya=e,yl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dt(e){return Zf(ya,e)}function si(e,t){return ya===null&&ma(e),Zf(e,t)}function Zf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},yl===null){if(e===null)throw Error(c(308));yl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yl=yl.next=t;return l}var uy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},iy=n.unstable_scheduleCallback,ry=n.unstable_NormalPriority,et={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yc(){return{controller:new uy,data:new Map,refCount:0}}function Kn(e){e.refCount--,e.refCount===0&&iy(ry,function(){e.controller.abort()})}var Fn=null,mc=0,Ja=0,Wa=null;function cy(e,t){if(Fn===null){var l=Fn=[];mc=0,Ja=gs(),Wa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return mc++,t.then(kf,kf),t}function kf(){if(--mc===0&&Fn!==null){Wa!==null&&(Wa.status="fulfilled");var e=Fn;Fn=null,Ja=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<l.length;u++)(0,l[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Xf=A.S;A.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&cy(e,t),Xf!==null&&Xf(e,t)};var ba=Y(null);function bc(){var e=ba.current;return e!==null?e:Ye.pooledCache}function oi(e,t){t===null?te(ba,ba.current):te(ba,t.pool)}function Qf(){var e=bc();return e===null?null:{parent:et._currentValue,pool:e}}var Pn=Error(c(460)),Kf=Error(c(474)),fi=Error(c(542)),gc={then:function(){}};function Ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function di(){}function Pf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(di,di),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wf(e),e;default:if(typeof t.status=="string")t.then(di,di);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wf(e),e}throw Jn=t,Pn}}var Jn=null;function Jf(){if(Jn===null)throw Error(c(459));var e=Jn;return Jn=null,e}function Wf(e){if(e===Pn||e===fi)throw Error(c(483))}var Nl=!1;function pc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ec(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 $l(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,($e&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=ni(e),Hf(e,null,l),t}return ai(e,a,t,l),ni(e)}function Wn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Zo(e,l)}}function Sc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var d={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?u=s=d:s=s.next=d,l=l.next}while(l!==null);s===null?u=s=t:s=s.next=t}else u=s=t;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var xc=!1;function In(){if(xc){var e=Wa;if(e!==null)throw e}}function eu(e,t,l,a){xc=!1;var u=e.updateQueue;Nl=!1;var s=u.firstBaseUpdate,d=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var E=y,w=E.next;E.next=null,d===null?s=w:d.next=w,d=E;var V=e.alternate;V!==null&&(V=V.updateQueue,y=V.lastBaseUpdate,y!==d&&(y===null?V.firstBaseUpdate=w:y.next=w,V.lastBaseUpdate=E))}if(s!==null){var B=u.baseState;d=0,V=w=E=null,y=s;do{var $=y.lane&-536870913,z=$!==y.lane;if(z?(De&$)===$:(a&$)===$){$!==0&&$===Ja&&(xc=!0),V!==null&&(V=V.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var me=e,he=y;$=t;var He=l;switch(he.tag){case 1:if(me=he.payload,typeof me=="function"){B=me.call(He,B,$);break e}B=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=he.payload,$=typeof me=="function"?me.call(He,B,$):me,$==null)break e;B=p({},B,$);break e;case 2:Nl=!0}}$=y.callback,$!==null&&(e.flags|=64,z&&(e.flags|=8192),z=u.callbacks,z===null?u.callbacks=[$]:z.push($))}else z={lane:$,tag:y.tag,payload:y.payload,callback:y.callback,next:null},V===null?(w=V=z,E=B):V=V.next=z,d|=$;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;z=y,y=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);V===null&&(E=B),u.baseState=E,u.firstBaseUpdate=w,u.lastBaseUpdate=V,s===null&&(u.shared.lanes=0),Yl|=d,e.lanes=d,e.memoizedState=B}}function If(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function ed(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)If(l[e],t)}var Ia=Y(null),vi=Y(0);function td(e,t){e=Tl,te(vi,e),te(Ia,t),Tl=e|t.baseLanes}function Tc(){te(vi,Tl),te(Ia,Ia.current)}function _c(){Tl=vi.current,ne(Ia),ne(vi)}var Ul=0,Se=null,Ve=null,Pe=null,hi=!1,en=!1,ga=!1,yi=0,tu=0,tn=null,oy=0;function Ke(){throw Error(c(321))}function Ac(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!At(e[l],t[l]))return!1;return!0}function Cc(e,t,l,a,u,s){return Ul=s,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Hd:Ld,ga=!1,s=l(a,u),ga=!1,en&&(s=ad(t,l,a,u)),ld(e),s}function ld(e){A.H=Si;var t=Ve!==null&&Ve.next!==null;if(Ul=0,Pe=Ve=Se=null,hi=!1,tu=0,tn=null,t)throw Error(c(300));e===null||nt||(e=e.dependencies,e!==null&&ci(e)&&(nt=!0))}function ad(e,t,l,a){Se=e;var u=0;do{if(en&&(tn=null),tu=0,en=!1,25<=u)throw Error(c(301));if(u+=1,Pe=Ve=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}A.H=by,s=t(l,a)}while(en);return s}function fy(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?lu(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(Se.flags|=1024),t}function Mc(){var e=yi!==0;return yi=0,e}function Oc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Dc(e){if(hi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hi=!1}Ul=0,Pe=Ve=Se=null,en=!1,tu=yi=0,tn=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?Se.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Je(){if(Ve===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Pe===null?Se.memoizedState:Pe.next;if(t!==null)Pe=t,Ve=e;else{if(e===null)throw Se.alternate===null?Error(c(467)):Error(c(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Pe===null?Se.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function wc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lu(e){var t=tu;return tu+=1,tn===null&&(tn=[]),e=Pf(tn,e,t),t=Se,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Hd:Ld),e}function mi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return lu(e);if(e.$$typeof===k)return dt(e)}throw Error(c(438,String(e)))}function Rc(e){var t=null,l=Se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=Se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=wc(),Se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Ce;return t.index++,l}function bl(e,t){return typeof t=="function"?t(e):t}function bi(e){var t=Je();return Nc(t,Ve,e)}function Nc(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var u=e.baseQueue,s=a.pending;if(s!==null){if(u!==null){var d=u.next;u.next=s.next,s.next=d}t.baseQueue=u=s,a.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var y=d=null,E=null,w=t,V=!1;do{var B=w.lane&-536870913;if(B!==w.lane?(De&B)===B:(Ul&B)===B){var $=w.revertLane;if($===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),B===Ja&&(V=!0);else if((Ul&$)===$){w=w.next,$===Ja&&(V=!0);continue}else B={lane:0,revertLane:w.revertLane,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},E===null?(y=E=B,d=s):E=E.next=B,Se.lanes|=$,Yl|=$;B=w.action,ga&&l(s,B),s=w.hasEagerState?w.eagerState:l(s,B)}else $={lane:B,revertLane:w.revertLane,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},E===null?(y=E=$,d=s):E=E.next=$,Se.lanes|=B,Yl|=B;w=w.next}while(w!==null&&w!==t);if(E===null?d=s:E.next=y,!At(s,e.memoizedState)&&(nt=!0,V&&(l=Wa,l!==null)))throw l;e.memoizedState=s,e.baseState=d,e.baseQueue=E,a.lastRenderedState=s}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function $c(e){var t=Je(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,u=l.pending,s=t.memoizedState;if(u!==null){l.pending=null;var d=u=u.next;do s=e(s,d.action),d=d.next;while(d!==u);At(s,t.memoizedState)||(nt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function nd(e,t,l){var a=Se,u=Je(),s=Ne;if(s){if(l===void 0)throw Error(c(407));l=l()}else l=t();var d=!At((Ve||u).memoizedState,l);d&&(u.memoizedState=l,nt=!0),u=u.queue;var y=rd.bind(null,a,u,e);if(au(2048,8,y,[e]),u.getSnapshot!==t||d||Pe!==null&&Pe.memoizedState.tag&1){if(a.flags|=2048,ln(9,gi(),id.bind(null,a,u,l,t),null),Ye===null)throw Error(c(349));s||(Ul&124)!==0||ud(a,t,l)}return l}function ud(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Se.updateQueue,t===null?(t=wc(),Se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function id(e,t,l,a){t.value=l,t.getSnapshot=a,cd(t)&&sd(e)}function rd(e,t,l){return l(function(){cd(t)&&sd(e)})}function cd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!At(e,l)}catch{return!0}}function sd(e){var t=Qa(e,2);t!==null&&Rt(t,e,2)}function zc(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),ga){Oe(!0);try{l()}finally{Oe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t}function od(e,t,l,a){return e.baseState=l,Nc(e,Ve,typeof a=="function"?a:bl)}function dy(e,t,l,a,u){if(Ei(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};A.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,fd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function fd(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var s=A.T,d={};A.T=d;try{var y=l(u,a),E=A.S;E!==null&&E(d,y),dd(e,t,y)}catch(w){Uc(e,t,w)}finally{A.T=s}}else try{s=l(u,a),dd(e,t,s)}catch(w){Uc(e,t,w)}}function dd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){vd(e,t,a)},function(a){return Uc(e,t,a)}):vd(e,t,l)}function vd(e,t,l){t.status="fulfilled",t.value=l,hd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fd(e,l)))}function Uc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,hd(t),t=t.next;while(t!==a)}e.action=null}function hd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yd(e,t){return t}function md(e,t){if(Ne){var l=Ye.formState;if(l!==null){e:{var a=Se;if(Ne){if(ke){t:{for(var u=ke,s=ll;u.nodeType!==8;){if(!s){u=null;break t}if(u=Ft(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){ke=Ft(u.nextSibling),a=u.data==="F!";break e}}ha(a)}a=!1}a&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yd,lastRenderedState:t},l.queue=a,l=Ud.bind(null,Se,a),a.dispatch=l,a=zc(!1),s=Bc.bind(null,Se,!1,a.queue),a=Et(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=dy.bind(null,Se,u,s,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function bd(e){var t=Je();return gd(t,Ve,e)}function gd(e,t,l){if(t=Nc(e,t,yd)[0],e=bi(bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=lu(t)}catch(d){throw d===Pn?fi:d}else a=t;t=Je();var u=t.queue,s=u.dispatch;return l!==t.memoizedState&&(Se.flags|=2048,ln(9,gi(),vy.bind(null,u,l),null)),[a,s,e]}function vy(e,t){e.action=t}function pd(e){var t=Je(),l=Ve;if(l!==null)return gd(t,l,e);Je(),t=t.memoizedState,l=Je();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ln(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=Se.updateQueue,t===null&&(t=wc(),Se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function gi(){return{destroy:void 0,resource:void 0}}function Ed(){return Je().memoizedState}function pi(e,t,l,a){var u=Et();a=a===void 0?null:a,Se.flags|=e,u.memoizedState=ln(1|t,gi(),l,a)}function au(e,t,l,a){var u=Je();a=a===void 0?null:a;var s=u.memoizedState.inst;Ve!==null&&a!==null&&Ac(a,Ve.memoizedState.deps)?u.memoizedState=ln(t,s,l,a):(Se.flags|=e,u.memoizedState=ln(1|t,s,l,a))}function Sd(e,t){pi(8390656,8,e,t)}function xd(e,t){au(2048,8,e,t)}function Td(e,t){return au(4,2,e,t)}function _d(e,t){return au(4,4,e,t)}function Ad(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cd(e,t,l){l=l!=null?l.concat([e]):null,au(4,4,Ad.bind(null,t,e),l)}function Vc(){}function Md(e,t){var l=Je();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ac(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Od(e,t){var l=Je();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ac(t,a[1]))return a[0];if(a=e(),ga){Oe(!0);try{e()}finally{Oe(!1)}}return l.memoizedState=[a,t],a}function jc(e,t,l){return l===void 0||(Ul&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=R0(),Se.lanes|=e,Yl|=e,l)}function Dd(e,t,l,a){return At(l,t)?l:Ia.current!==null?(e=jc(e,l,a),At(e,t)||(nt=!0),e):(Ul&42)===0?(nt=!0,e.memoizedState=l):(e=R0(),Se.lanes|=e,Yl|=e,t)}function wd(e,t,l,a,u){var s=Z.p;Z.p=s!==0&&8>s?s:8;var d=A.T,y={};A.T=y,Bc(e,!1,t,l);try{var E=u(),w=A.S;if(w!==null&&w(y,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var V=sy(E,a);nu(e,t,V,wt(e))}else nu(e,t,a,wt(e))}catch(B){nu(e,t,{then:function(){},status:"rejected",reason:B},wt())}finally{Z.p=s,A.T=d}}function hy(){}function Hc(e,t,l,a){if(e.tag!==5)throw Error(c(476));var u=Rd(e).queue;wd(e,u,t,ae,l===null?hy:function(){return Nd(e),l(a)})}function Rd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:ae},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nd(e){var t=Rd(e).next.queue;nu(e,t,{},wt())}function Lc(){return dt(xu)}function $d(){return Je().memoizedState}function zd(){return Je().memoizedState}function yy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=$l(l);var a=zl(t,e,l);a!==null&&(Rt(a,t,l),Wn(a,t,l)),t={cache:yc()},e.payload=t;return}t=t.return}}function my(e,t,l){var a=wt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Ei(e)?Vd(t,l):(l=uc(e,t,l,a),l!==null&&(Rt(l,e,a),jd(l,t,a)))}function Ud(e,t,l){var a=wt();nu(e,t,l,a)}function nu(e,t,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ei(e))Vd(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,y=s(d,l);if(u.hasEagerState=!0,u.eagerState=y,At(y,d))return ai(e,t,u,0),Ye===null&&li(),!1}catch{}finally{}if(l=uc(e,t,u,a),l!==null)return Rt(l,e,a),jd(l,t,a),!0}return!1}function Bc(e,t,l,a){if(a={lane:2,revertLane:gs(),action:a,hasEagerState:!1,eagerState:null,next:null},Ei(e)){if(t)throw Error(c(479))}else t=uc(e,l,a,2),t!==null&&Rt(t,e,2)}function Ei(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Vd(e,t){en=hi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Zo(e,l)}}var Si={readContext:dt,use:mi,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},Hd={readContext:dt,use:mi,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:Sd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,pi(4194308,4,Ad.bind(null,t,e),l)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){pi(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var a=e();if(ga){Oe(!0);try{e()}finally{Oe(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Et();if(l!==void 0){var u=l(t);if(ga){Oe(!0);try{l(t)}finally{Oe(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=my.bind(null,Se,e),[a.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=Ud.bind(null,Se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Vc,useDeferredValue:function(e,t){var l=Et();return jc(l,e,t)},useTransition:function(){var e=zc(!1);return e=wd.bind(null,Se,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=Se,u=Et();if(Ne){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Ye===null)throw Error(c(349));(De&124)!==0||ud(a,t,l)}u.memoizedState=l;var s={value:l,getSnapshot:t};return u.queue=s,Sd(rd.bind(null,a,s,e),[e]),a.flags|=2048,ln(9,gi(),id.bind(null,a,s,l,t),null),l},useId:function(){var e=Et(),t=Ye.identifierPrefix;if(Ne){var l=hl,a=vl;l=(a&~(1<<32-qe(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=yi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=oy++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Lc,useFormState:md,useActionState:md,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Bc.bind(null,Se,!0,l),l.dispatch=t,[e,t]},useMemoCache:Rc,useCacheRefresh:function(){return Et().memoizedState=yy.bind(null,Se)}},Ld={readContext:dt,use:mi,useCallback:Md,useContext:dt,useEffect:xd,useImperativeHandle:Cd,useInsertionEffect:Td,useLayoutEffect:_d,useMemo:Od,useReducer:bi,useRef:Ed,useState:function(){return bi(bl)},useDebugValue:Vc,useDeferredValue:function(e,t){var l=Je();return Dd(l,Ve.memoizedState,e,t)},useTransition:function(){var e=bi(bl)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:lu(e),t]},useSyncExternalStore:nd,useId:$d,useHostTransitionStatus:Lc,useFormState:bd,useActionState:bd,useOptimistic:function(e,t){var l=Je();return od(l,Ve,e,t)},useMemoCache:Rc,useCacheRefresh:zd},by={readContext:dt,use:mi,useCallback:Md,useContext:dt,useEffect:xd,useImperativeHandle:Cd,useInsertionEffect:Td,useLayoutEffect:_d,useMemo:Od,useReducer:$c,useRef:Ed,useState:function(){return $c(bl)},useDebugValue:Vc,useDeferredValue:function(e,t){var l=Je();return Ve===null?jc(l,e,t):Dd(l,Ve.memoizedState,e,t)},useTransition:function(){var e=$c(bl)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:lu(e),t]},useSyncExternalStore:nd,useId:$d,useHostTransitionStatus:Lc,useFormState:pd,useActionState:pd,useOptimistic:function(e,t){var l=Je();return Ve!==null?od(l,Ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:zd},an=null,uu=0;function xi(e){var t=uu;return uu+=1,an===null&&(an=[]),Pf(an,e,t)}function iu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ti(e,t){throw t.$$typeof===M?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bd(e){var t=e._init;return t(e._payload)}function qd(e){function t(C,_){if(e){var O=C.deletions;O===null?(C.deletions=[_],C.flags|=16):O.push(_)}}function l(C,_){if(!e)return null;for(;_!==null;)t(C,_),_=_.sibling;return null}function a(C){for(var _=new Map;C!==null;)C.key!==null?_.set(C.key,C):_.set(C.index,C),C=C.sibling;return _}function u(C,_){return C=dl(C,_),C.index=0,C.sibling=null,C}function s(C,_,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<_?(C.flags|=67108866,_):O):(C.flags|=67108866,_)):(C.flags|=1048576,_)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function y(C,_,O,j){return _===null||_.tag!==6?(_=rc(O,C.mode,j),_.return=C,_):(_=u(_,O),_.return=C,_)}function E(C,_,O,j){var ie=O.type;return ie===K?V(C,_,O.props.children,j,O.key):_!==null&&(_.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ae&&Bd(ie)===_.type)?(_=u(_,O.props),iu(_,O),_.return=C,_):(_=ui(O.type,O.key,O.props,null,C.mode,j),iu(_,O),_.return=C,_)}function w(C,_,O,j){return _===null||_.tag!==4||_.stateNode.containerInfo!==O.containerInfo||_.stateNode.implementation!==O.implementation?(_=cc(O,C.mode,j),_.return=C,_):(_=u(_,O.children||[]),_.return=C,_)}function V(C,_,O,j,ie){return _===null||_.tag!==7?(_=oa(O,C.mode,j,ie),_.return=C,_):(_=u(_,O),_.return=C,_)}function B(C,_,O){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=rc(""+_,C.mode,O),_.return=C,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case D:return O=ui(_.type,_.key,_.props,null,C.mode,O),iu(O,_),O.return=C,O;case q:return _=cc(_,C.mode,O),_.return=C,_;case Ae:var j=_._init;return _=j(_._payload),B(C,_,O)}if(fe(_)||F(_))return _=oa(_,C.mode,O,null),_.return=C,_;if(typeof _.then=="function")return B(C,xi(_),O);if(_.$$typeof===k)return B(C,si(C,_),O);Ti(C,_)}return null}function $(C,_,O,j){var ie=_!==null?_.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ie!==null?null:y(C,_,""+O,j);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case D:return O.key===ie?E(C,_,O,j):null;case q:return O.key===ie?w(C,_,O,j):null;case Ae:return ie=O._init,O=ie(O._payload),$(C,_,O,j)}if(fe(O)||F(O))return ie!==null?null:V(C,_,O,j,null);if(typeof O.then=="function")return $(C,_,xi(O),j);if(O.$$typeof===k)return $(C,_,si(C,O),j);Ti(C,O)}return null}function z(C,_,O,j,ie){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return C=C.get(O)||null,y(_,C,""+j,ie);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case D:return C=C.get(j.key===null?O:j.key)||null,E(_,C,j,ie);case q:return C=C.get(j.key===null?O:j.key)||null,w(_,C,j,ie);case Ae:var xe=j._init;return j=xe(j._payload),z(C,_,O,j,ie)}if(fe(j)||F(j))return C=C.get(O)||null,V(_,C,j,ie,null);if(typeof j.then=="function")return z(C,_,O,xi(j),ie);if(j.$$typeof===k)return z(C,_,O,si(_,j),ie);Ti(_,j)}return null}function me(C,_,O,j){for(var ie=null,xe=null,se=_,ye=_=0,it=null;se!==null&&ye<O.length;ye++){se.index>ye?(it=se,se=null):it=se.sibling;var Re=$(C,se,O[ye],j);if(Re===null){se===null&&(se=it);break}e&&se&&Re.alternate===null&&t(C,se),_=s(Re,_,ye),xe===null?ie=Re:xe.sibling=Re,xe=Re,se=it}if(ye===O.length)return l(C,se),Ne&&da(C,ye),ie;if(se===null){for(;ye<O.length;ye++)se=B(C,O[ye],j),se!==null&&(_=s(se,_,ye),xe===null?ie=se:xe.sibling=se,xe=se);return Ne&&da(C,ye),ie}for(se=a(se);ye<O.length;ye++)it=z(se,C,ye,O[ye],j),it!==null&&(e&&it.alternate!==null&&se.delete(it.key===null?ye:it.key),_=s(it,_,ye),xe===null?ie=it:xe.sibling=it,xe=it);return e&&se.forEach(function(Jl){return t(C,Jl)}),Ne&&da(C,ye),ie}function he(C,_,O,j){if(O==null)throw Error(c(151));for(var ie=null,xe=null,se=_,ye=_=0,it=null,Re=O.next();se!==null&&!Re.done;ye++,Re=O.next()){se.index>ye?(it=se,se=null):it=se.sibling;var Jl=$(C,se,Re.value,j);if(Jl===null){se===null&&(se=it);break}e&&se&&Jl.alternate===null&&t(C,se),_=s(Jl,_,ye),xe===null?ie=Jl:xe.sibling=Jl,xe=Jl,se=it}if(Re.done)return l(C,se),Ne&&da(C,ye),ie;if(se===null){for(;!Re.done;ye++,Re=O.next())Re=B(C,Re.value,j),Re!==null&&(_=s(Re,_,ye),xe===null?ie=Re:xe.sibling=Re,xe=Re);return Ne&&da(C,ye),ie}for(se=a(se);!Re.done;ye++,Re=O.next())Re=z(se,C,ye,Re.value,j),Re!==null&&(e&&Re.alternate!==null&&se.delete(Re.key===null?ye:Re.key),_=s(Re,_,ye),xe===null?ie=Re:xe.sibling=Re,xe=Re);return e&&se.forEach(function(gm){return t(C,gm)}),Ne&&da(C,ye),ie}function He(C,_,O,j){if(typeof O=="object"&&O!==null&&O.type===K&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case D:e:{for(var ie=O.key;_!==null;){if(_.key===ie){if(ie=O.type,ie===K){if(_.tag===7){l(C,_.sibling),j=u(_,O.props.children),j.return=C,C=j;break e}}else if(_.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Ae&&Bd(ie)===_.type){l(C,_.sibling),j=u(_,O.props),iu(j,O),j.return=C,C=j;break e}l(C,_);break}else t(C,_);_=_.sibling}O.type===K?(j=oa(O.props.children,C.mode,j,O.key),j.return=C,C=j):(j=ui(O.type,O.key,O.props,null,C.mode,j),iu(j,O),j.return=C,C=j)}return d(C);case q:e:{for(ie=O.key;_!==null;){if(_.key===ie)if(_.tag===4&&_.stateNode.containerInfo===O.containerInfo&&_.stateNode.implementation===O.implementation){l(C,_.sibling),j=u(_,O.children||[]),j.return=C,C=j;break e}else{l(C,_);break}else t(C,_);_=_.sibling}j=cc(O,C.mode,j),j.return=C,C=j}return d(C);case Ae:return ie=O._init,O=ie(O._payload),He(C,_,O,j)}if(fe(O))return me(C,_,O,j);if(F(O)){if(ie=F(O),typeof ie!="function")throw Error(c(150));return O=ie.call(O),he(C,_,O,j)}if(typeof O.then=="function")return He(C,_,xi(O),j);if(O.$$typeof===k)return He(C,_,si(C,O),j);Ti(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,_!==null&&_.tag===6?(l(C,_.sibling),j=u(_,O),j.return=C,C=j):(l(C,_),j=rc(O,C.mode,j),j.return=C,C=j),d(C)):l(C,_)}return function(C,_,O,j){try{uu=0;var ie=He(C,_,O,j);return an=null,ie}catch(se){if(se===Pn||se===fi)throw se;var xe=Ct(29,se,null,C.mode);return xe.lanes=j,xe.return=C,xe}finally{}}}var nn=qd(!0),Yd=qd(!1),Yt=Y(null),al=null;function Vl(e){var t=e.alternate;te(tt,tt.current&1),te(Yt,e),al===null&&(t===null||Ia.current!==null||t.memoizedState!==null)&&(al=e)}function Gd(e){if(e.tag===22){if(te(tt,tt.current),te(Yt,e),al===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(al=e)}}else jl()}function jl(){te(tt,tt.current),te(Yt,Yt.current)}function gl(e){ne(Yt),al===e&&(al=null),ne(tt)}var tt=Y(0);function _i(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||ws(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function qc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Yc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),u=$l(a);u.payload=t,l!=null&&(u.callback=l),t=zl(e,u,a),t!==null&&(Rt(t,e,a),Wn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),u=$l(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=zl(e,u,a),t!==null&&(Rt(t,e,a),Wn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=$l(l);a.tag=2,t!=null&&(a.callback=t),t=zl(e,a,l),t!==null&&(Rt(t,e,l),Wn(t,e,l))}};function Zd(e,t,l,a,u,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,d):t.prototype&&t.prototype.isPureReactComponent?!Yn(l,a)||!Yn(u,s):!0}function kd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Yc.enqueueReplaceState(t,t.state,null)}function pa(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}var Ai=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)};function Xd(e){Ai(e)}function Qd(e){console.error(e)}function Kd(e){Ai(e)}function Ci(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Fd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Gc(e,t,l){return l=$l(l),l.tag=3,l.payload={element:null},l.callback=function(){Ci(e,t)},l}function Pd(e){return e=$l(e),e.tag=3,e}function Jd(e,t,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var s=a.value;e.payload=function(){return u(s)},e.callback=function(){Fd(t,l,a)}}var d=l.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Fd(t,l,a),typeof u!="function"&&(Gl===null?Gl=new Set([this]):Gl.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function gy(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Qn(t,l,u,!0),l=Yt.current,l!==null){switch(l.tag){case 13:return al===null?vs():l.alternate===null&&Xe===0&&(Xe=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===gc?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ys(e,a,u)),!1;case 22:return l.flags|=65536,a===gc?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ys(e,a,u)),!1}throw Error(c(435,l.tag))}return ys(e,a,u),vs(),!1}if(Ne)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==fc&&(e=Error(c(422),{cause:a}),Xn(Ht(e,l)))):(a!==fc&&(t=Error(c(423),{cause:a}),Xn(Ht(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Ht(a,l),u=Gc(e.stateNode,a,u),Sc(e,u),Xe!==4&&(Xe=2)),!1;var s=Error(c(520),{cause:a});if(s=Ht(s,l),vu===null?vu=[s]:vu.push(s),Xe!==4&&(Xe=2),t===null)return!0;a=Ht(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=Gc(l.stateNode,a,e),Sc(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Gl===null||!Gl.has(s))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Pd(u),Jd(u,e,l,a),Sc(l,u),!1}l=l.return}while(l!==null);return!1}var Wd=Error(c(461)),nt=!1;function ct(e,t,l,a){t.child=e===null?Yd(t,null,l,a):nn(t,e.child,l,a)}function Id(e,t,l,a,u){l=l.render;var s=t.ref;if("ref"in a){var d={};for(var y in a)y!=="ref"&&(d[y]=a[y])}else d=a;return ma(t),a=Cc(e,t,l,d,s,u),y=Mc(),e!==null&&!nt?(Oc(e,t,u),pl(e,t,u)):(Ne&&y&&sc(t),t.flags|=1,ct(e,t,a,u),t.child)}function e0(e,t,l,a,u){if(e===null){var s=l.type;return typeof s=="function"&&!ic(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,t0(e,t,s,a,u)):(e=ui(l.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Jc(e,u)){var d=s.memoizedProps;if(l=l.compare,l=l!==null?l:Yn,l(d,a)&&e.ref===t.ref)return pl(e,t,u)}return t.flags|=1,e=dl(s,a),e.ref=t.ref,e.return=t,t.child=e}function t0(e,t,l,a,u){if(e!==null){var s=e.memoizedProps;if(Yn(s,a)&&e.ref===t.ref)if(nt=!1,t.pendingProps=a=s,Jc(e,u))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,pl(e,t,u)}return Zc(e,t,l,a,u)}function l0(e,t,l){var a=t.pendingProps,u=a.children,s=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=s!==null?s.baseLanes|l:l,e!==null){for(u=t.child=e.child,s=0;u!==null;)s=s|u.lanes|u.childLanes,u=u.sibling;t.childLanes=s&~a}else t.childLanes=0,t.child=null;return a0(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&oi(t,s!==null?s.cachePool:null),s!==null?td(t,s):Tc(),Gd(t);else return t.lanes=t.childLanes=536870912,a0(e,t,s!==null?s.baseLanes|l:l,l)}else s!==null?(oi(t,s.cachePool),td(t,s),jl(),t.memoizedState=null):(e!==null&&oi(t,null),Tc(),jl());return ct(e,t,u,l),t.child}function a0(e,t,l,a){var u=bc();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&oi(t,null),Tc(),Gd(t),e!==null&&Qn(e,t,a,!0),null}function Mi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Zc(e,t,l,a,u){return ma(t),l=Cc(e,t,l,a,void 0,u),a=Mc(),e!==null&&!nt?(Oc(e,t,u),pl(e,t,u)):(Ne&&a&&sc(t),t.flags|=1,ct(e,t,l,u),t.child)}function n0(e,t,l,a,u,s){return ma(t),t.updateQueue=null,l=ad(t,a,l,u),ld(e),a=Mc(),e!==null&&!nt?(Oc(e,t,s),pl(e,t,s)):(Ne&&a&&sc(t),t.flags|=1,ct(e,t,l,s),t.child)}function u0(e,t,l,a,u){if(ma(t),t.stateNode===null){var s=Ka,d=l.contextType;typeof d=="object"&&d!==null&&(s=dt(d)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Yc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},pc(t),d=l.contextType,s.context=typeof d=="object"&&d!==null?dt(d):Ka,s.state=t.memoizedState,d=l.getDerivedStateFromProps,typeof d=="function"&&(qc(t,l,d,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&Yc.enqueueReplaceState(s,s.state,null),eu(t,a,s,u),In(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var y=t.memoizedProps,E=pa(l,y);s.props=E;var w=s.context,V=l.contextType;d=Ka,typeof V=="object"&&V!==null&&(d=dt(V));var B=l.getDerivedStateFromProps;V=typeof B=="function"||typeof s.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,V||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(y||w!==d)&&kd(t,s,a,d),Nl=!1;var $=t.memoizedState;s.state=$,eu(t,a,s,u),In(),w=t.memoizedState,y||$!==w||Nl?(typeof B=="function"&&(qc(t,l,B,a),w=t.memoizedState),(E=Nl||Zd(t,l,E,a,$,w,d))?(V||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=w),s.props=a,s.state=w,s.context=d,a=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,Ec(e,t),d=t.memoizedProps,V=pa(l,d),s.props=V,B=t.pendingProps,$=s.context,w=l.contextType,E=Ka,typeof w=="object"&&w!==null&&(E=dt(w)),y=l.getDerivedStateFromProps,(w=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==B||$!==E)&&kd(t,s,a,E),Nl=!1,$=t.memoizedState,s.state=$,eu(t,a,s,u),In();var z=t.memoizedState;d!==B||$!==z||Nl||e!==null&&e.dependencies!==null&&ci(e.dependencies)?(typeof y=="function"&&(qc(t,l,y,a),z=t.memoizedState),(V=Nl||Zd(t,l,V,a,$,z,E)||e!==null&&e.dependencies!==null&&ci(e.dependencies))?(w||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,z,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,z,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),s.props=a,s.state=z,s.context=E,a=V):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Mi(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=nn(t,e.child,null,u),t.child=nn(t,null,l,u)):ct(e,t,l,u),t.memoizedState=s.state,e=t.child):e=pl(e,t,u),e}function i0(e,t,l,a){return kn(),t.flags|=256,ct(e,t,l,a),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Qf()}}function Qc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Gt),e}function r0(e,t,l){var a=t.pendingProps,u=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(u?Vl(t):jl(),Ne){var y=ke,E;if(E=y){e:{for(E=y,y=ll;E.nodeType!==8;){if(!y){y=null;break e}if(E=Ft(E.nextSibling),E===null){y=null;break e}}y=E}y!==null?(t.memoizedState={dehydrated:y,treeContext:fa!==null?{id:vl,overflow:hl}:null,retryLane:536870912,hydrationErrors:null},E=Ct(18,null,null,0),E.stateNode=y,E.return=t,t.child=E,ht=t,ke=null,E=!0):E=!1}E||ha(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return ws(y)?t.lanes=32:t.lanes=536870912,null;gl(t)}return y=a.children,a=a.fallback,u?(jl(),u=t.mode,y=Oi({mode:"hidden",children:y},u),a=oa(a,u,l,null),y.return=t,a.return=t,y.sibling=a,t.child=y,u=t.child,u.memoizedState=Xc(l),u.childLanes=Qc(e,d,l),t.memoizedState=kc,a):(Vl(t),Kc(t,y))}if(E=e.memoizedState,E!==null&&(y=E.dehydrated,y!==null)){if(s)t.flags&256?(Vl(t),t.flags&=-257,t=Fc(e,t,l)):t.memoizedState!==null?(jl(),t.child=e.child,t.flags|=128,t=null):(jl(),u=a.fallback,y=t.mode,a=Oi({mode:"visible",children:a.children},y),u=oa(u,y,l,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,nn(t,e.child,null,l),a=t.child,a.memoizedState=Xc(l),a.childLanes=Qc(e,d,l),t.memoizedState=kc,t=u);else if(Vl(t),ws(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var w=d.dgst;d=w,a=Error(c(419)),a.stack="",a.digest=d,Xn({value:a,source:null,stack:null}),t=Fc(e,t,l)}else if(nt||Qn(e,t,l,!1),d=(l&e.childLanes)!==0,nt||d){if(d=Ye,d!==null&&(a=l&-l,a=(a&42)!==0?1:Rr(a),a=(a&(d.suspendedLanes|l))!==0?0:a,a!==0&&a!==E.retryLane))throw E.retryLane=a,Qa(e,a),Rt(d,e,a),Wd;y.data==="$?"||vs(),t=Fc(e,t,l)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,ke=Ft(y.nextSibling),ht=t,Ne=!0,va=null,ll=!1,e!==null&&(Bt[qt++]=vl,Bt[qt++]=hl,Bt[qt++]=fa,vl=e.id,hl=e.overflow,fa=t),t=Kc(t,a.children),t.flags|=4096);return t}return u?(jl(),u=a.fallback,y=t.mode,E=e.child,w=E.sibling,a=dl(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&65011712,w!==null?u=dl(w,u):(u=oa(u,y,l,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,y=e.child.memoizedState,y===null?y=Xc(l):(E=y.cachePool,E!==null?(w=et._currentValue,E=E.parent!==w?{parent:w,pool:w}:E):E=Qf(),y={baseLanes:y.baseLanes|l,cachePool:E}),u.memoizedState=y,u.childLanes=Qc(e,d,l),t.memoizedState=kc,a):(Vl(t),l=e.child,e=l.sibling,l=dl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=l,t.memoizedState=null,l)}function Kc(e,t){return t=Oi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Oi(e,t){return e=Ct(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Fc(e,t,l){return nn(t,e.child,null,l),e=Kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function c0(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),vc(e.return,t,l)}function Pc(e,t,l,a,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=u)}function s0(e,t,l){var a=t.pendingProps,u=a.revealOrder,s=a.tail;if(ct(e,t,a.children,l),a=tt.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&c0(e,l,t);else if(e.tag===19)c0(e,l,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}a&=1}switch(te(tt,a),u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&_i(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=t.child,t.child=null):(u=l.sibling,l.sibling=null),Pc(t,!1,u,l,s);break;case"backwards":for(l=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&_i(e)===null){t.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}Pc(t,!0,l,null,s);break;case"together":Pc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Yl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Qn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=dl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=dl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ci(e)))}function py(e,t,l){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),Rl(t,et,e.memoizedState.cache),kn();break;case 27:case 5:aa(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:Rl(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Vl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?r0(e,t,l):(Vl(t),e=pl(e,t,l),e!==null?e.sibling:null);Vl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Qn(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return s0(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),te(tt,tt.current),a)break;return null;case 22:case 23:return t.lanes=0,l0(e,t,l);case 24:Rl(t,et,e.memoizedState.cache)}return pl(e,t,l)}function o0(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Jc(e,l)&&(t.flags&128)===0)return nt=!1,py(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,Ne&&(t.flags&1048576)!==0&&Bf(t,ri,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")ic(a)?(e=pa(a,e),t.tag=1,t=u0(null,t,a,e,l)):(t.tag=0,t=Zc(null,t,a,e,l));else{if(a!=null){if(u=a.$$typeof,u===J){t.tag=11,t=Id(null,t,a,e,l);break e}else if(u===ue){t.tag=14,t=e0(null,t,a,e,l);break e}}throw t=X(a)||a,Error(c(306,t,""))}}return t;case 0:return Zc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=pa(a,t.pendingProps),u0(e,t,a,u,l);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var s=t.memoizedState;u=s.element,Ec(e,t),eu(t,a,null,l);var d=t.memoizedState;if(a=d.cache,Rl(t,et,a),a!==s.cache&&hc(t,[et],l,!0),In(),a=d.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=i0(e,t,a,l);break e}else if(a!==u){u=Ht(Error(c(424)),t),Xn(u),t=i0(e,t,a,l);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(ke=Ft(e.firstChild),ht=t,Ne=!0,va=null,ll=!0,l=Yd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kn(),a===u){t=pl(e,t,l);break e}ct(e,t,a,l)}t=t.child}return t;case 26:return Mi(e,t),e===null?(l=h1(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ne||(l=t.type,e=t.pendingProps,a=Yi(be.current).createElement(l),a[ft]=t,a[gt]=e,ot(a,l,e),at(a),t.stateNode=a):t.memoizedState=h1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return aa(t),e===null&&Ne&&(a=t.stateNode=f1(t.type,t.pendingProps,be.current),ht=t,ll=!0,u=ke,Xl(t.type)?(Rs=u,ke=Ft(a.firstChild)):ke=u),ct(e,t,t.pendingProps.children,l),Mi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((u=a=ke)&&(a=Qy(a,t.type,t.pendingProps,ll),a!==null?(t.stateNode=a,ht=t,ke=Ft(a.firstChild),ll=!1,u=!0):u=!1),u||ha(t)),aa(t),u=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,a=s.children,Ms(u,s)?a=null:d!==null&&Ms(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=Cc(e,t,fy,null,null,l),xu._currentValue=u),Mi(e,t),ct(e,t,a,l),t.child;case 6:return e===null&&Ne&&((e=l=ke)&&(l=Ky(l,t.pendingProps,ll),l!==null?(t.stateNode=l,ht=t,ke=null,e=!0):e=!1),e||ha(t)),null;case 13:return r0(e,t,l);case 4:return Le(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=nn(t,null,a,l):ct(e,t,a,l),t.child;case 11:return Id(e,t,t.type,t.pendingProps,l);case 7:return ct(e,t,t.pendingProps,l),t.child;case 8:return ct(e,t,t.pendingProps.children,l),t.child;case 12:return ct(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Rl(t,t.type,a.value),ct(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,ma(t),u=dt(u),a=a(u),t.flags|=1,ct(e,t,a,l),t.child;case 14:return e0(e,t,t.type,t.pendingProps,l);case 15:return t0(e,t,t.type,t.pendingProps,l);case 19:return s0(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Oi(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=dl(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return l0(e,t,l);case 24:return ma(t),a=dt(et),e===null?(u=bc(),u===null&&(u=Ye,s=yc(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=l),u=s),t.memoizedState={parent:a,cache:u},pc(t),Rl(t,et,u)):((e.lanes&l)!==0&&(Ec(e,t),eu(t,null,null,l),In()),u=e.memoizedState,s=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Rl(t,et,a)):(a=s.cache,Rl(t,et,a),a!==u.cache&&hc(t,[et],l,!0))),ct(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function El(e){e.flags|=4}function f0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!p1(t)){if(t=Yt.current,t!==null&&((De&4194048)===De?al!==null:(De&62914560)!==De&&(De&536870912)===0||t!==al))throw Jn=gc,Kf;e.flags|=8192}}function Di(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Yo():536870912,e.lanes|=t,sn|=t)}function ru(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ey(e,t,l){var a=t.pendingProps;switch(oc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ml(et),zt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Zn(t)?El(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gf())),Ze(t),null;case 26:return l=t.memoizedState,e===null?(El(t),l!==null?(Ze(t),f0(t,l)):(Ze(t),t.flags&=-16777217)):l?l!==e.memoizedState?(El(t),Ze(t),f0(t,l)):(Ze(t),t.flags&=-16777217):(e.memoizedProps!==a&&El(t),Ze(t),t.flags&=-16777217),null;case 27:Da(t),l=be.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&El(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ze(t),null}e=de.current,Zn(t)?qf(t):(e=f1(u,a,l),t.stateNode=e,El(t))}return Ze(t),null;case 5:if(Da(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&El(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ze(t),null}if(e=de.current,Zn(t))qf(t);else{switch(u=Yi(be.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}e[ft]=t,e[gt]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(ot(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&El(t)}}return Ze(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&El(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=be.current,Zn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,u=ht,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[ft]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||n1(e.nodeValue,l)),e||ha(t)}else e=Yi(e).createTextNode(a),e[ft]=t,t.stateNode=e}return Ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Zn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(c(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[ft]=t}else kn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),u=!1}else u=Gf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(gl(t),t):(gl(t),null)}if(gl(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var s=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==u&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Di(t,t.updateQueue),Ze(t),null;case 4:return zt(),e===null&&xs(t.stateNode.containerInfo),Ze(t),null;case 10:return ml(t.type),Ze(t),null;case 19:if(ne(tt),u=t.memoizedState,u===null)return Ze(t),null;if(a=(t.flags&128)!==0,s=u.rendering,s===null)if(a)ru(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=_i(e),s!==null){for(t.flags|=128,ru(u,!1),e=s.updateQueue,t.updateQueue=e,Di(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lf(l,e),l=l.sibling;return te(tt,tt.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ut()>Ni&&(t.flags|=128,a=!0,ru(u,!1),t.lanes=4194304)}else{if(!a)if(e=_i(s),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Di(t,e),ru(u,!0),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!Ne)return Ze(t),null}else 2*Ut()-u.renderingStartTime>Ni&&l!==536870912&&(t.flags|=128,a=!0,ru(u,!1),t.lanes=4194304);u.isBackwards?(s.sibling=t.child,t.child=s):(e=u.last,e!==null?e.sibling=s:t.child=s,u.last=s)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ut(),t.sibling=null,e=tt.current,te(tt,a?e&1|2:e&1),t):(Ze(t),null);case 22:case 23:return gl(t),_c(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&Di(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&ne(ba),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ml(et),Ze(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Sy(e,t){switch(oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(et),zt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Da(t),null;case 13:if(gl(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));kn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(tt),null;case 4:return zt(),null;case 10:return ml(t.type),null;case 22:case 23:return gl(t),_c(),e!==null&&ne(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(et),null;case 25:return null;default:return null}}function d0(e,t){switch(oc(t),t.tag){case 3:ml(et),zt();break;case 26:case 27:case 5:Da(t);break;case 4:zt();break;case 13:gl(t);break;case 19:ne(tt);break;case 10:ml(t.type);break;case 22:case 23:gl(t),_c(),e!==null&&ne(ba);break;case 24:ml(et)}}function cu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){a=void 0;var s=l.create,d=l.inst;a=s(),d.destroy=a}l=l.next}while(l!==u)}}catch(y){Be(t,t.return,y)}}function Hl(e,t,l){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var s=u.next;a=s;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,u=t;var E=l,w=y;try{w()}catch(V){Be(u,E,V)}}}a=a.next}while(a!==s)}}catch(V){Be(t,t.return,V)}}function v0(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ed(t,l)}catch(a){Be(e,e.return,a)}}}function h0(e,t,l){l.props=pa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Be(e,t,a)}}function su(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(u){Be(e,t,u)}}function nl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){Be(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){Be(e,t,u)}else l.current=null}function y0(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){Be(e,e.return,u)}}function Wc(e,t,l){try{var a=e.stateNode;Yy(a,e.type,l,t),a[gt]=t}catch(u){Be(e,e.return,u)}}function m0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xl(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m0(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&&Xl(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 es(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=qi));else if(a!==4&&(a===27&&Xl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(es(e,t,l),e=e.sibling;e!==null;)es(e,t,l),e=e.sibling}function wi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Xl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(wi(e,t,l),e=e.sibling;e!==null;)wi(e,t,l),e=e.sibling}function b0(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ot(t,a,l),t[ft]=e,t[gt]=l}catch(s){Be(e,e.return,s)}}var Sl=!1,Fe=!1,ts=!1,g0=typeof WeakSet=="function"?WeakSet:Set,ut=null;function xy(e,t){if(e=e.containerInfo,As=Ki,e=Df(e),Ir(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var d=0,y=-1,E=-1,w=0,V=0,B=e,$=null;t:for(;;){for(var z;B!==l||u!==0&&B.nodeType!==3||(y=d+u),B!==s||a!==0&&B.nodeType!==3||(E=d+a),B.nodeType===3&&(d+=B.nodeValue.length),(z=B.firstChild)!==null;)$=B,B=z;for(;;){if(B===e)break t;if($===l&&++w===u&&(y=d),$===s&&++V===a&&(E=d),(z=B.nextSibling)!==null)break;B=$,$=B.parentNode}B=z}l=y===-1||E===-1?null:{start:y,end:E}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cs={focusedElem:e,selectionRange:l},Ki=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,s=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,u=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var me=pa(l.type,u,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(me,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(he){Be(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ds(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ds(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function p0(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Ll(e,l),a&4&&cu(5,l);break;case 1:if(Ll(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(d){Be(l,l.return,d)}else{var u=pa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Be(l,l.return,d)}}a&64&&v0(l),a&512&&su(l,l.return);break;case 3:if(Ll(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ed(e,t)}catch(d){Be(l,l.return,d)}}break;case 27:t===null&&a&4&&b0(l);case 26:case 5:Ll(e,l),t===null&&a&4&&y0(l),a&512&&su(l,l.return);break;case 12:Ll(e,l);break;case 13:Ll(e,l),a&4&&x0(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ry.bind(null,l),Fy(e,l))));break;case 22:if(a=l.memoizedState!==null||Sl,!a){t=t!==null&&t.memoizedState!==null||Fe,u=Sl;var s=Fe;Sl=a,(Fe=t)&&!s?Bl(e,l,(l.subtreeFlags&8772)!==0):Ll(e,l),Sl=u,Fe=s}break;case 30:break;default:Ll(e,l)}}function E0(e){var t=e.alternate;t!==null&&(e.alternate=null,E0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zr(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,St=!1;function xl(e,t,l){for(l=l.child;l!==null;)S0(e,t,l),l=l.sibling}function S0(e,t,l){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(ce,l)}catch{}switch(l.tag){case 26:Fe||nl(l,t),xl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Fe||nl(l,t);var a=Ge,u=St;Xl(l.type)&&(Ge=l.stateNode,St=!1),xl(e,t,l),gu(l.stateNode),Ge=a,St=u;break;case 5:Fe||nl(l,t);case 6:if(a=Ge,u=St,Ge=null,xl(e,t,l),Ge=a,St=u,Ge!==null)if(St)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(l.stateNode)}catch(s){Be(l,t,s)}else try{Ge.removeChild(l.stateNode)}catch(s){Be(l,t,s)}break;case 18:Ge!==null&&(St?(e=Ge,s1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Cu(e)):s1(Ge,l.stateNode));break;case 4:a=Ge,u=St,Ge=l.stateNode.containerInfo,St=!0,xl(e,t,l),Ge=a,St=u;break;case 0:case 11:case 14:case 15:Fe||Hl(2,l,t),Fe||Hl(4,l,t),xl(e,t,l);break;case 1:Fe||(nl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&h0(l,t,a)),xl(e,t,l);break;case 21:xl(e,t,l);break;case 22:Fe=(a=Fe)||l.memoizedState!==null,xl(e,t,l),Fe=a;break;default:xl(e,t,l)}}function x0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cu(e)}catch(l){Be(t,t.return,l)}}function Ty(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new g0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new g0),t;default:throw Error(c(435,e.tag))}}function ls(e,t){var l=Ty(e);t.forEach(function(a){var u=Ny.bind(null,e,a);l.has(a)||(l.add(a),a.then(u,u))})}function Mt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],s=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Xl(y.type)){Ge=y.stateNode,St=!1;break e}break;case 5:Ge=y.stateNode,St=!1;break e;case 3:case 4:Ge=y.stateNode.containerInfo,St=!0;break e}y=y.return}if(Ge===null)throw Error(c(160));S0(s,d,u),Ge=null,St=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)T0(t,e),t=t.sibling}var Kt=null;function T0(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),Ot(e),a&4&&(Hl(3,e,e.return),cu(3,e),Hl(5,e,e.return));break;case 1:Mt(t,e),Ot(e),a&512&&(Fe||l===null||nl(l,l.return)),a&64&&Sl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=Kt;if(Mt(t,e),Ot(e),a&512&&(Fe||l===null||nl(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":s=u.getElementsByTagName("title")[0],(!s||s[$n]||s[ft]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(a),u.head.insertBefore(s,u.querySelector("head > title"))),ot(s,a,l),s[ft]=e,at(s),a=s;break e;case"link":var d=b1("link","href",u).get(a+(l.href||""));if(d){for(var y=0;y<d.length;y++)if(s=d[y],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){d.splice(y,1);break t}}s=u.createElement(a),ot(s,a,l),u.head.appendChild(s);break;case"meta":if(d=b1("meta","content",u).get(a+(l.content||""))){for(y=0;y<d.length;y++)if(s=d[y],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){d.splice(y,1);break t}}s=u.createElement(a),ot(s,a,l),u.head.appendChild(s);break;default:throw Error(c(468,a))}s[ft]=e,at(s),a=s}e.stateNode=a}else g1(u,e.type,e.stateNode);else e.stateNode=m1(u,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?g1(u,e.type,e.stateNode):m1(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Mt(t,e),Ot(e),a&512&&(Fe||l===null||nl(l,l.return)),l!==null&&a&4&&Wc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Mt(t,e),Ot(e),a&512&&(Fe||l===null||nl(l,l.return)),e.flags&32){u=e.stateNode;try{Ba(u,"")}catch(z){Be(e,e.return,z)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,Wc(e,u,l!==null?l.memoizedProps:u)),a&1024&&(ts=!0);break;case 6:if(Mt(t,e),Ot(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(z){Be(e,e.return,z)}}break;case 3:if(ki=null,u=Kt,Kt=Gi(t.containerInfo),Mt(t,e),Kt=u,Ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Cu(t.containerInfo)}catch(z){Be(e,e.return,z)}ts&&(ts=!1,_0(e));break;case 4:a=Kt,Kt=Gi(e.stateNode.containerInfo),Mt(t,e),Ot(e),Kt=a;break;case 12:Mt(t,e),Ot(e);break;case 13:Mt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(cs=Ut()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ls(e,a)));break;case 22:u=e.memoizedState!==null;var E=l!==null&&l.memoizedState!==null,w=Sl,V=Fe;if(Sl=w||u,Fe=V||E,Mt(t,e),Fe=V,Sl=w,Ot(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||E||Sl||Fe||Ea(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){E=l=t;try{if(s=E.stateNode,u)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=E.stateNode;var B=E.memoizedProps.style,$=B!=null&&B.hasOwnProperty("display")?B.display:null;y.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(z){Be(E,E.return,z)}}}else if(t.tag===6){if(l===null){E=t;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(z){Be(E,E.return,z)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ls(e,l))));break;case 19:Mt(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ls(e,a)));break;case 30:break;case 21:break;default:Mt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(m0(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var u=l.stateNode,s=Ic(e);wi(e,s,u);break;case 5:var d=l.stateNode;l.flags&32&&(Ba(d,""),l.flags&=-33);var y=Ic(e);wi(e,y,d);break;case 3:case 4:var E=l.stateNode.containerInfo,w=Ic(e);es(e,w,E);break;default:throw Error(c(161))}}catch(V){Be(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ll(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)p0(e,t.alternate,t),t=t.sibling}function Ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hl(4,t,t.return),Ea(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&h0(t,t.return,l),Ea(t);break;case 27:gu(t.stateNode);case 26:case 5:nl(t,t.return),Ea(t);break;case 22:t.memoizedState===null&&Ea(t);break;case 30:Ea(t);break;default:Ea(t)}e=e.sibling}}function Bl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:Bl(u,s,l),cu(4,s);break;case 1:if(Bl(u,s,l),a=s,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(w){Be(a,a.return,w)}if(a=s,u=a.updateQueue,u!==null){var y=a.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)If(E[u],y)}catch(w){Be(a,a.return,w)}}l&&d&64&&v0(s),su(s,s.return);break;case 27:b0(s);case 26:case 5:Bl(u,s,l),l&&a===null&&d&4&&y0(s),su(s,s.return);break;case 12:Bl(u,s,l);break;case 13:Bl(u,s,l),l&&d&4&&x0(u,s);break;case 22:s.memoizedState===null&&Bl(u,s,l),su(s,s.return);break;case 30:break;default:Bl(u,s,l)}t=t.sibling}}function as(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Kn(l))}function ns(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e))}function ul(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)A0(e,t,l,a),t=t.sibling}function A0(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:ul(e,t,l,a),u&2048&&cu(9,t);break;case 1:ul(e,t,l,a);break;case 3:ul(e,t,l,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kn(e)));break;case 12:if(u&2048){ul(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,y=s.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Be(t,t.return,E)}}else ul(e,t,l,a);break;case 13:ul(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?ul(e,t,l,a):ou(e,t):s._visibility&2?ul(e,t,l,a):(s._visibility|=2,un(e,t,l,a,(t.subtreeFlags&10256)!==0)),u&2048&&as(d,t);break;case 24:ul(e,t,l,a),u&2048&&ns(t.alternate,t);break;default:ul(e,t,l,a)}}function un(e,t,l,a,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var s=e,d=t,y=l,E=a,w=d.flags;switch(d.tag){case 0:case 11:case 15:un(s,d,y,E,u),cu(8,d);break;case 23:break;case 22:var V=d.stateNode;d.memoizedState!==null?V._visibility&2?un(s,d,y,E,u):ou(s,d):(V._visibility|=2,un(s,d,y,E,u)),u&&w&2048&&as(d.alternate,d);break;case 24:un(s,d,y,E,u),u&&w&2048&&ns(d.alternate,d);break;default:un(s,d,y,E,u)}t=t.sibling}}function ou(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,u=a.flags;switch(a.tag){case 22:ou(l,a),u&2048&&as(a.alternate,a);break;case 24:ou(l,a),u&2048&&ns(a.alternate,a);break;default:ou(l,a)}t=t.sibling}}var fu=8192;function rn(e){if(e.subtreeFlags&fu)for(e=e.child;e!==null;)C0(e),e=e.sibling}function C0(e){switch(e.tag){case 26:rn(e),e.flags&fu&&e.memoizedState!==null&&cm(Kt,e.memoizedState,e.memoizedProps);break;case 5:rn(e);break;case 3:case 4:var t=Kt;Kt=Gi(e.stateNode.containerInfo),rn(e),Kt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=fu,fu=16777216,rn(e),fu=t):rn(e));break;default:rn(e)}}function M0(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 du(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ut=a,D0(a,e)}M0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)O0(e),e=e.sibling}function O0(e){switch(e.tag){case 0:case 11:case 15:du(e),e.flags&2048&&Hl(9,e,e.return);break;case 3:du(e);break;case 12:du(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ri(e)):du(e);break;default:du(e)}}function Ri(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ut=a,D0(a,e)}M0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hl(8,t,t.return),Ri(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ri(t));break;default:Ri(t)}e=e.sibling}}function D0(e,t){for(;ut!==null;){var l=ut;switch(l.tag){case 0:case 11:case 15:Hl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Kn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ut=a;else e:for(l=e;ut!==null;){a=ut;var u=a.sibling,s=a.return;if(E0(a),a===l){ut=null;break e}if(u!==null){u.return=s,ut=u;break e}ut=s}}}var _y={getCacheForType:function(e){var t=dt(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},Ay=typeof WeakMap=="function"?WeakMap:Map,$e=0,Ye=null,Te=null,De=0,ze=0,Dt=null,ql=!1,cn=!1,us=!1,Tl=0,Xe=0,Yl=0,Sa=0,is=0,Gt=0,sn=0,vu=null,xt=null,rs=!1,cs=0,Ni=1/0,$i=null,Gl=null,st=0,Zl=null,on=null,fn=0,ss=0,os=null,w0=null,hu=0,fs=null;function wt(){if(($e&2)!==0&&De!==0)return De&-De;if(A.T!==null){var e=Ja;return e!==0?e:gs()}return ko()}function R0(){Gt===0&&(Gt=(De&536870912)===0||Ne?qo():536870912);var e=Yt.current;return e!==null&&(e.flags|=32),Gt}function Rt(e,t,l){(e===Ye&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(dn(e,0),kl(e,De,Gt,!1)),Nn(e,l),(($e&2)===0||e!==Ye)&&(e===Ye&&(($e&2)===0&&(Sa|=l),Xe===4&&kl(e,De,Gt,!1)),il(e))}function N0(e,t,l){if(($e&6)!==0)throw Error(c(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||ua(e,t),u=a?Oy(e,t):hs(e,t,!0),s=a;do{if(u===0){cn&&!a&&kl(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Cy(l)){u=hs(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;u=vu;var E=y.current.memoizedState.isDehydrated;if(E&&(dn(y,d).flags|=256),d=hs(y,d,!1),d!==2){if(us&&!E){y.errorRecoveryDisabledLanes|=s,Sa|=s,u=4;break e}s=xt,xt=u,s!==null&&(xt===null?xt=s:xt.push.apply(xt,s))}u=d}if(s=!1,u!==2)continue}}if(u===1){dn(e,0),kl(e,t,0,!0);break}e:{switch(a=e,s=u,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:kl(a,t,Gt,!ql);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(u=cs+300-Ut(),10<u)){if(kl(a,t,Gt,!ql),na(a,0,!0)!==0)break e;a.timeoutHandle=r1($0.bind(null,a,l,xt,$i,rs,t,Gt,Sa,sn,ql,s,2,-0,0),u);break e}$0(a,l,xt,$i,rs,t,Gt,Sa,sn,ql,s,0,-0,0)}}break}while(!0);il(e)}function $0(e,t,l,a,u,s,d,y,E,w,V,B,$,z){if(e.timeoutHandle=-1,B=t.subtreeFlags,(B&8192||(B&16785408)===16785408)&&(Su={stylesheets:null,count:0,unsuspend:rm},C0(t),B=sm(),B!==null)){e.cancelPendingCommit=B(B0.bind(null,e,t,s,l,a,u,d,y,E,V,1,$,z)),kl(e,s,d,!w);return}B0(e,t,s,l,a,u,d,y,E)}function Cy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],s=u.getSnapshot;u=u.value;try{if(!At(s(),u))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 kl(e,t,l,a){t&=~is,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var s=31-qe(u),d=1<<s;a[s]=-1,u&=~d}l!==0&&Go(e,l,t)}function zi(){return($e&6)===0?(yu(0),!1):!0}function ds(){if(Te!==null){if(ze===0)var e=Te.return;else e=Te,yl=ya=null,Dc(e),an=null,uu=0,e=Te;for(;e!==null;)d0(e.alternate,e),e=e.return;Te=null}}function dn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Zy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ds(),Ye=e,Te=l=dl(e.current,null),De=t,ze=0,Dt=null,ql=!1,cn=ua(e,t),us=!1,sn=Gt=is=Sa=Yl=Xe=0,xt=vu=null,rs=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-qe(a),s=1<<u;t|=e[u],a&=~s}return Tl=t,li(),l}function z0(e,t){Se=null,A.H=Si,t===Pn||t===fi?(t=Jf(),ze=3):t===Kf?(t=Jf(),ze=4):ze=t===Wd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,Te===null&&(Xe=1,Ci(e,Ht(t,e.current)))}function U0(){var e=A.H;return A.H=Si,e===null?Si:e}function V0(){var e=A.A;return A.A=_y,e}function vs(){Xe=4,ql||(De&4194048)!==De&&Yt.current!==null||(cn=!0),(Yl&134217727)===0&&(Sa&134217727)===0||Ye===null||kl(Ye,De,Gt,!1)}function hs(e,t,l){var a=$e;$e|=2;var u=U0(),s=V0();(Ye!==e||De!==t)&&($i=null,dn(e,t)),t=!1;var d=Xe;e:do try{if(ze!==0&&Te!==null){var y=Te,E=Dt;switch(ze){case 8:ds(),d=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var w=ze;if(ze=0,Dt=null,vn(e,y,E,w),l&&cn){d=0;break e}break;default:w=ze,ze=0,Dt=null,vn(e,y,E,w)}}My(),d=Xe;break}catch(V){z0(e,V)}while(!0);return t&&e.shellSuspendCounter++,yl=ya=null,$e=a,A.H=u,A.A=s,Te===null&&(Ye=null,De=0,li()),d}function My(){for(;Te!==null;)j0(Te)}function Oy(e,t){var l=$e;$e|=2;var a=U0(),u=V0();Ye!==e||De!==t?($i=null,Ni=Ut()+500,dn(e,t)):cn=ua(e,t);e:do try{if(ze!==0&&Te!==null){t=Te;var s=Dt;t:switch(ze){case 1:ze=0,Dt=null,vn(e,t,s,1);break;case 2:case 9:if(Ff(s)){ze=0,Dt=null,H0(t);break}t=function(){ze!==2&&ze!==9||Ye!==e||(ze=7),il(e)},s.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Ff(s)?(ze=0,Dt=null,H0(t)):(ze=0,Dt=null,vn(e,t,s,7));break;case 5:var d=null;switch(Te.tag){case 26:d=Te.memoizedState;case 5:case 27:var y=Te;if(!d||p1(d)){ze=0,Dt=null;var E=y.sibling;if(E!==null)Te=E;else{var w=y.return;w!==null?(Te=w,Ui(w)):Te=null}break t}}ze=0,Dt=null,vn(e,t,s,5);break;case 6:ze=0,Dt=null,vn(e,t,s,6);break;case 8:ds(),Xe=6;break e;default:throw Error(c(462))}}Dy();break}catch(V){z0(e,V)}while(!0);return yl=ya=null,A.H=a,A.A=u,$e=l,Te!==null?0:(Ye=null,De=0,li(),Xe)}function Dy(){for(;Te!==null&&!Gu();)j0(Te)}function j0(e){var t=o0(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,t===null?Ui(e):Te=t}function H0(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=n0(l,t,t.pendingProps,t.type,void 0,De);break;case 11:t=n0(l,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:Dc(t);default:d0(l,t),t=Te=Lf(t,Tl),t=o0(l,t,Tl)}e.memoizedProps=e.pendingProps,t===null?Ui(e):Te=t}function vn(e,t,l,a){yl=ya=null,Dc(t),an=null,uu=0;var u=t.return;try{if(gy(e,u,t,l,De)){Xe=1,Ci(e,Ht(l,e.current)),Te=null;return}}catch(s){if(u!==null)throw Te=u,s;Xe=1,Ci(e,Ht(l,e.current)),Te=null;return}t.flags&32768?(Ne||a===1?e=!0:cn||(De&536870912)!==0?e=!1:(ql=e=!0,(a===2||a===9||a===3||a===6)&&(a=Yt.current,a!==null&&a.tag===13&&(a.flags|=16384))),L0(t,e)):Ui(t)}function Ui(e){var t=e;do{if((t.flags&32768)!==0){L0(t,ql);return}e=t.return;var l=Ey(t.alternate,t,Tl);if(l!==null){Te=l;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Xe===0&&(Xe=5)}function L0(e,t){do{var l=Sy(e.alternate,e);if(l!==null){l.flags&=32767,Te=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Te=e;return}Te=e=l}while(e!==null);Xe=6,Te=null}function B0(e,t,l,a,u,s,d,y,E){e.cancelPendingCommit=null;do Vi();while(st!==0);if(($e&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=nc,rh(e,l,s,d,y,E),e===Ye&&(Te=Ye=null,De=0),on=t,Zl=e,fn=l,ss=s,os=u,w0=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$y(N,function(){return k0(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,u=Z.p,Z.p=2,d=$e,$e|=4;try{xy(e,t,l)}finally{$e=d,Z.p=u,A.T=a}}st=1,q0(),Y0(),G0()}}function q0(){if(st===1){st=0;var e=Zl,t=on,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=Z.p;Z.p=2;var u=$e;$e|=4;try{T0(t,e);var s=Cs,d=Df(e.containerInfo),y=s.focusedElem,E=s.selectionRange;if(d!==y&&y&&y.ownerDocument&&Of(y.ownerDocument.documentElement,y)){if(E!==null&&Ir(y)){var w=E.start,V=E.end;if(V===void 0&&(V=w),"selectionStart"in y)y.selectionStart=w,y.selectionEnd=Math.min(V,y.value.length);else{var B=y.ownerDocument||document,$=B&&B.defaultView||window;if($.getSelection){var z=$.getSelection(),me=y.textContent.length,he=Math.min(E.start,me),He=E.end===void 0?he:Math.min(E.end,me);!z.extend&&he>He&&(d=He,He=he,he=d);var C=Mf(y,he),_=Mf(y,He);if(C&&_&&(z.rangeCount!==1||z.anchorNode!==C.node||z.anchorOffset!==C.offset||z.focusNode!==_.node||z.focusOffset!==_.offset)){var O=B.createRange();O.setStart(C.node,C.offset),z.removeAllRanges(),he>He?(z.addRange(O),z.extend(_.node,_.offset)):(O.setEnd(_.node,_.offset),z.addRange(O))}}}}for(B=[],z=y;z=z.parentNode;)z.nodeType===1&&B.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<B.length;y++){var j=B[y];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Ki=!!As,Cs=As=null}finally{$e=u,Z.p=a,A.T=l}}e.current=t,st=2}}function Y0(){if(st===2){st=0;var e=Zl,t=on,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=Z.p;Z.p=2;var u=$e;$e|=4;try{p0(e,t.alternate,t)}finally{$e=u,Z.p=a,A.T=l}}st=3}}function G0(){if(st===4||st===3){st=0,Or();var e=Zl,t=on,l=fn,a=w0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?st=5:(st=0,on=Zl=null,Z0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Gl=null),Nr(l),t=t.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(ce,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=A.T,u=Z.p,Z.p=2,A.T=null;try{for(var s=e.onRecoverableError,d=0;d<a.length;d++){var y=a[d];s(y.value,{componentStack:y.stack})}}finally{A.T=t,Z.p=u}}(fn&3)!==0&&Vi(),il(e),u=e.pendingLanes,(l&4194090)!==0&&(u&42)!==0?e===fs?hu++:(hu=0,fs=e):hu=0,yu(0)}}function Z0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kn(t)))}function Vi(e){return q0(),Y0(),G0(),k0()}function k0(){if(st!==5)return!1;var e=Zl,t=ss;ss=0;var l=Nr(fn),a=A.T,u=Z.p;try{Z.p=32>l?32:l,A.T=null,l=os,os=null;var s=Zl,d=fn;if(st=0,on=Zl=null,fn=0,($e&6)!==0)throw Error(c(331));var y=$e;if($e|=4,O0(s.current),A0(s,s.current,d,l),$e=y,yu(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(ce,s)}catch{}return!0}finally{Z.p=u,A.T=a,Z0(e,t)}}function X0(e,t,l){t=Ht(l,t),t=Gc(e.stateNode,t,2),e=zl(e,t,2),e!==null&&(Nn(e,2),il(e))}function Be(e,t,l){if(e.tag===3)X0(e,e,l);else for(;t!==null;){if(t.tag===3){X0(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Gl===null||!Gl.has(a))){e=Ht(l,e),l=Pd(2),a=zl(t,l,2),a!==null&&(Jd(l,a,t,e),Nn(a,2),il(a));break}}t=t.return}}function ys(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ay;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(l)||(us=!0,u.add(l),e=wy.bind(null,e,t,l),t.then(e,e))}function wy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(De&l)===l&&(Xe===4||Xe===3&&(De&62914560)===De&&300>Ut()-cs?($e&2)===0&&dn(e,0):is|=l,sn===De&&(sn=0)),il(e)}function Q0(e,t){t===0&&(t=Yo()),e=Qa(e,t),e!==null&&(Nn(e,t),il(e))}function Ry(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Q0(e,l)}function Ny(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Q0(e,l)}function $y(e,t){return wn(e,t)}var ji=null,hn=null,ms=!1,Hi=!1,bs=!1,xa=0;function il(e){e!==hn&&e.next===null&&(hn===null?ji=hn=e:hn=hn.next=e),Hi=!0,ms||(ms=!0,Uy())}function yu(e,t){if(!bs&&Hi){bs=!0;do for(var l=!1,a=ji;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var s=0;else{var d=a.suspendedLanes,y=a.pingedLanes;s=(1<<31-qe(42|e)+1)-1,s&=u&~(d&~y),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,J0(a,s))}else s=De,s=na(a,a===Ye?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||ua(a,s)||(l=!0,J0(a,s));a=a.next}while(l);bs=!1}}function zy(){K0()}function K0(){Hi=ms=!1;var e=0;xa!==0&&(Gy()&&(e=xa),xa=0);for(var t=Ut(),l=null,a=ji;a!==null;){var u=a.next,s=F0(a,t);s===0?(a.next=null,l===null?ji=u:l.next=u,u===null&&(hn=l)):(l=a,(e!==0||(s&3)!==0)&&(Hi=!0)),a=u}yu(e)}function F0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-qe(s),y=1<<d,E=u[d];E===-1?((y&l)===0||(y&a)!==0)&&(u[d]=Zu(y,t)):E<=t&&(e.expiredLanes|=y),s&=~y}if(t=Ye,l=De,l=na(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ra(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ua(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ra(a),Nr(l)){case 2:case 8:l=S;break;case 32:l=N;break;case 268435456:l=le;break;default:l=N}return a=P0.bind(null,e),l=wn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ra(a),e.callbackPriority=2,e.callbackNode=null,2}function P0(e,t){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Vi()&&e.callbackNode!==l)return null;var a=De;return a=na(e,e===Ye?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(N0(e,a,t),F0(e,Ut()),e.callbackNode!=null&&e.callbackNode===l?P0.bind(null,e):null)}function J0(e,t){if(Vi())return null;N0(e,t,!0)}function Uy(){ky(function(){($e&6)!==0?wn(Rn,zy):K0()})}function gs(){return xa===0&&(xa=qo()),xa}function W0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fu(""+e)}function I0(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Vy(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var s=W0((u[gt]||null).action),d=a.submitter;d&&(t=(t=d[gt]||null)?W0(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var y=new Iu("action","action",null,a,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(xa!==0){var E=d?I0(u,d):new FormData(u);Hc(l,{pending:!0,data:E,method:u.method,action:s},null,E)}}else typeof s=="function"&&(y.preventDefault(),E=d?I0(u,d):new FormData(u),Hc(l,{pending:!0,data:E,method:u.method,action:s},s,E))},currentTarget:u}]})}}for(var ps=0;ps<ac.length;ps++){var Es=ac[ps],jy=Es.toLowerCase(),Hy=Es[0].toUpperCase()+Es.slice(1);Qt(jy,"on"+Hy)}Qt(Nf,"onAnimationEnd"),Qt($f,"onAnimationIteration"),Qt(zf,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(ty,"onTransitionRun"),Qt(ly,"onTransitionStart"),Qt(ay,"onTransitionCancel"),Qt(Uf,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mu="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(" "),Ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mu));function e1(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],u=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var d=a.length-1;0<=d;d--){var y=a[d],E=y.instance,w=y.currentTarget;if(y=y.listener,E!==s&&u.isPropagationStopped())break e;s=y,u.currentTarget=w;try{s(u)}catch(V){Ai(V)}u.currentTarget=null,s=E}else for(d=0;d<a.length;d++){if(y=a[d],E=y.instance,w=y.currentTarget,y=y.listener,E!==s&&u.isPropagationStopped())break e;s=y,u.currentTarget=w;try{s(u)}catch(V){Ai(V)}u.currentTarget=null,s=E}}}}function _e(e,t){var l=t[$r];l===void 0&&(l=t[$r]=new Set);var a=e+"__bubble";l.has(a)||(t1(t,e,2,!1),l.add(a))}function Ss(e,t,l){var a=0;t&&(a|=4),t1(l,e,a,t)}var Li="_reactListening"+Math.random().toString(36).slice(2);function xs(e){if(!e[Li]){e[Li]=!0,Qo.forEach(function(l){l!=="selectionchange"&&(Ly.has(l)||Ss(l,!1,e),Ss(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Li]||(t[Li]=!0,Ss("selectionchange",!1,t))}}function t1(e,t,l,a){switch(A1(t)){case 2:var u=dm;break;case 8:u=vm;break;default:u=Vs}l=u.bind(null,t,l,e),u=void 0,!Zr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,l,{capture:!0,passive:u}):e.addEventListener(t,l,!0):u!==void 0?e.addEventListener(t,l,{passive:u}):e.addEventListener(t,l,!1)}function Ts(e,t,l,a,u){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var y=a.stateNode.containerInfo;if(y===u)break;if(d===4)for(d=a.return;d!==null;){var E=d.tag;if((E===3||E===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;y!==null;){if(d=za(y),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){a=s=d;continue e}y=y.parentNode}}a=a.return}cf(function(){var w=s,V=Yr(l),B=[];e:{var $=Vf.get(e);if($!==void 0){var z=Iu,me=e;switch(e){case"keypress":if(Ju(l)===0)break e;case"keydown":case"keyup":z=$h;break;case"focusin":me="focus",z=Kr;break;case"focusout":me="blur",z=Kr;break;case"beforeblur":case"afterblur":z=Kr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Sh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Vh;break;case Nf:case $f:case zf:z=_h;break;case Uf:z=Hh;break;case"scroll":case"scrollend":z=ph;break;case"wheel":z=Bh;break;case"copy":case"cut":case"paste":z=Ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=vf;break;case"toggle":case"beforetoggle":z=Yh}var he=(t&4)!==0,He=!he&&(e==="scroll"||e==="scrollend"),C=he?$!==null?$+"Capture":null:$;he=[];for(var _=w,O;_!==null;){var j=_;if(O=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||O===null||C===null||(j=Un(_,C),j!=null&&he.push(bu(_,j,O))),He)break;_=_.return}0<he.length&&($=new z($,me,null,l,V),B.push({event:$,listeners:he}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",$&&l!==qr&&(me=l.relatedTarget||l.fromElement)&&(za(me)||me[$a]))break e;if((z||$)&&($=V.window===V?V:($=V.ownerDocument)?$.defaultView||$.parentWindow:window,z?(me=l.relatedTarget||l.toElement,z=w,me=me?za(me):null,me!==null&&(He=f(me),he=me.tag,me!==He||he!==5&&he!==27&&he!==6)&&(me=null)):(z=null,me=w),z!==me)){if(he=ff,j="onMouseLeave",C="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(he=vf,j="onPointerLeave",C="onPointerEnter",_="pointer"),He=z==null?$:zn(z),O=me==null?$:zn(me),$=new he(j,_+"leave",z,l,V),$.target=He,$.relatedTarget=O,j=null,za(V)===w&&(he=new he(C,_+"enter",me,l,V),he.target=O,he.relatedTarget=He,j=he),He=j,z&&me)t:{for(he=z,C=me,_=0,O=he;O;O=yn(O))_++;for(O=0,j=C;j;j=yn(j))O++;for(;0<_-O;)he=yn(he),_--;for(;0<O-_;)C=yn(C),O--;for(;_--;){if(he===C||C!==null&&he===C.alternate)break t;he=yn(he),C=yn(C)}he=null}else he=null;z!==null&&l1(B,$,z,he,!1),me!==null&&He!==null&&l1(B,He,me,he,!0)}}e:{if($=w?zn(w):window,z=$.nodeName&&$.nodeName.toLowerCase(),z==="select"||z==="input"&&$.type==="file")var ie=Sf;else if(pf($))if(xf)ie=Wh;else{ie=Ph;var xe=Fh}else z=$.nodeName,!z||z.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?w&&Br(w.elementType)&&(ie=Sf):ie=Jh;if(ie&&(ie=ie(e,w))){Ef(B,ie,l,V);break e}xe&&xe(e,$,w),e==="focusout"&&w&&$.type==="number"&&w.memoizedProps.value!=null&&Lr($,"number",$.value)}switch(xe=w?zn(w):window,e){case"focusin":(pf(xe)||xe.contentEditable==="true")&&(Za=xe,ec=w,Gn=null);break;case"focusout":Gn=ec=Za=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,wf(B,l,V);break;case"selectionchange":if(ey)break;case"keydown":case"keyup":wf(B,l,V)}var se;if(Pr)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Ga?bf(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(hf&&l.locale!=="ko"&&(Ga||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Ga&&(se=sf()):(wl=V,kr="value"in wl?wl.value:wl.textContent,Ga=!0)),xe=Bi(w,ye),0<xe.length&&(ye=new df(ye,e,null,l,V),B.push({event:ye,listeners:xe}),se?ye.data=se:(se=gf(l),se!==null&&(ye.data=se)))),(se=Zh?kh(e,l):Xh(e,l))&&(ye=Bi(w,"onBeforeInput"),0<ye.length&&(xe=new df("onBeforeInput","beforeinput",null,l,V),B.push({event:xe,listeners:ye}),xe.data=se)),Vy(B,e,w,l,V)}e1(B,t)})}function bu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Bi(e,t){for(var l=t+"Capture",a=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=Un(e,l),u!=null&&a.unshift(bu(e,u,s)),u=Un(e,t),u!=null&&a.push(bu(e,u,s))),e.tag===3)return a;e=e.return}return[]}function yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function l1(e,t,l,a,u){for(var s=t._reactName,d=[];l!==null&&l!==a;){var y=l,E=y.alternate,w=y.stateNode;if(y=y.tag,E!==null&&E===a)break;y!==5&&y!==26&&y!==27||w===null||(E=w,u?(w=Un(l,s),w!=null&&d.unshift(bu(l,w,E))):u||(w=Un(l,s),w!=null&&d.push(bu(l,w,E)))),l=l.return}d.length!==0&&e.push({event:t,listeners:d})}var By=/\r\n?/g,qy=/\u0000|\uFFFD/g;function a1(e){return(typeof e=="string"?e:""+e).replace(By,`
`).replace(qy,"")}function n1(e,t){return t=a1(t),a1(e)===t}function qi(){}function je(e,t,l,a,u,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ba(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ba(e,""+a);break;case"className":Xu(e,"class",a);break;case"tabIndex":Xu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(e,l,a);break;case"style":uf(e,a,s);break;case"data":if(t!=="object"){Xu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Fu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 s=="function"&&(l==="formAction"?(t!=="input"&&je(e,t,"name",u.name,u,null),je(e,t,"formEncType",u.formEncType,u,null),je(e,t,"formMethod",u.formMethod,u,null),je(e,t,"formTarget",u.formTarget,u,null)):(je(e,t,"encType",u.encType,u,null),je(e,t,"method",u.method,u,null),je(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Fu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=qi);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Fu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":_e("beforetoggle",e),_e("toggle",e),ku(e,"popover",a);break;case"xlinkActuate":ol(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ol(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ol(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ol(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ol(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ol(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ol(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ol(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ol(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ku(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=bh.get(l)||l,ku(e,l,a))}}function _s(e,t,l,a,u,s){switch(l){case"style":uf(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ba(e,a):(typeof a=="number"||typeof a=="bigint")&&Ba(e,""+a);break;case"onScroll":a!=null&&_e("scroll",e);break;case"onScrollEnd":a!=null&&_e("scrollend",e);break;case"onClick":a!=null&&(e.onclick=qi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ko.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),t=l.slice(2,u?l.length-7:void 0),s=e[gt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,u);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ku(e,l,a)}}}function ot(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var a=!1,u=!1,s;for(s in l)if(l.hasOwnProperty(s)){var d=l[s];if(d!=null)switch(s){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:je(e,t,s,d,l,null)}}u&&je(e,t,"srcSet",l.srcSet,l,null),a&&je(e,t,"src",l.src,l,null);return;case"input":_e("invalid",e);var y=s=d=u=null,E=null,w=null;for(a in l)if(l.hasOwnProperty(a)){var V=l[a];if(V!=null)switch(a){case"name":u=V;break;case"type":d=V;break;case"checked":E=V;break;case"defaultChecked":w=V;break;case"value":s=V;break;case"defaultValue":y=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(c(137,t));break;default:je(e,t,a,V,l,null)}}tf(e,s,y,E,w,d,u,!1),Qu(e);return;case"select":_e("invalid",e),a=d=s=null;for(u in l)if(l.hasOwnProperty(u)&&(y=l[u],y!=null))switch(u){case"value":s=y;break;case"defaultValue":d=y;break;case"multiple":a=y;default:je(e,t,u,y,l,null)}t=s,l=d,e.multiple=!!a,t!=null?La(e,!!a,t,!1):l!=null&&La(e,!!a,l,!0);return;case"textarea":_e("invalid",e),s=u=a=null;for(d in l)if(l.hasOwnProperty(d)&&(y=l[d],y!=null))switch(d){case"value":a=y;break;case"defaultValue":u=y;break;case"children":s=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:je(e,t,d,y,l,null)}af(e,a,u,s),Qu(e);return;case"option":for(E in l)if(l.hasOwnProperty(E)&&(a=l[E],a!=null))switch(E){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:je(e,t,E,a,l,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(a=0;a<mu.length;a++)_e(mu[a],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(w in l)if(l.hasOwnProperty(w)&&(a=l[w],a!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:je(e,t,w,a,l,null)}return;default:if(Br(t)){for(V in l)l.hasOwnProperty(V)&&(a=l[V],a!==void 0&&_s(e,t,V,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&je(e,t,y,a,l,null))}function Yy(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,d=null,y=null,E=null,w=null,V=null;for(z in l){var B=l[z];if(l.hasOwnProperty(z)&&B!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":E=B;default:a.hasOwnProperty(z)||je(e,t,z,null,a,B)}}for(var $ in a){var z=a[$];if(B=l[$],a.hasOwnProperty($)&&(z!=null||B!=null))switch($){case"type":s=z;break;case"name":u=z;break;case"checked":w=z;break;case"defaultChecked":V=z;break;case"value":d=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:z!==B&&je(e,t,$,z,a,B)}}Hr(e,d,y,E,w,V,s,u);return;case"select":z=d=y=$=null;for(s in l)if(E=l[s],l.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":z=E;default:a.hasOwnProperty(s)||je(e,t,s,null,a,E)}for(u in a)if(s=a[u],E=l[u],a.hasOwnProperty(u)&&(s!=null||E!=null))switch(u){case"value":$=s;break;case"defaultValue":y=s;break;case"multiple":d=s;default:s!==E&&je(e,t,u,s,a,E)}t=y,l=d,a=z,$!=null?La(e,!!l,$,!1):!!a!=!!l&&(t!=null?La(e,!!l,t,!0):La(e,!!l,l?[]:"",!1));return;case"textarea":z=$=null;for(y in l)if(u=l[y],l.hasOwnProperty(y)&&u!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:je(e,t,y,null,a,u)}for(d in a)if(u=a[d],s=l[d],a.hasOwnProperty(d)&&(u!=null||s!=null))switch(d){case"value":$=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==s&&je(e,t,d,u,a,s)}lf(e,$,z);return;case"option":for(var me in l)if($=l[me],l.hasOwnProperty(me)&&$!=null&&!a.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:je(e,t,me,null,a,$)}for(E in a)if($=a[E],z=l[E],a.hasOwnProperty(E)&&$!==z&&($!=null||z!=null))switch(E){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:je(e,t,E,$,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var he in l)$=l[he],l.hasOwnProperty(he)&&$!=null&&!a.hasOwnProperty(he)&&je(e,t,he,null,a,$);for(w in a)if($=a[w],z=l[w],a.hasOwnProperty(w)&&$!==z&&($!=null||z!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(c(137,t));break;default:je(e,t,w,$,a,z)}return;default:if(Br(t)){for(var He in l)$=l[He],l.hasOwnProperty(He)&&$!==void 0&&!a.hasOwnProperty(He)&&_s(e,t,He,void 0,a,$);for(V in a)$=a[V],z=l[V],!a.hasOwnProperty(V)||$===z||$===void 0&&z===void 0||_s(e,t,V,$,a,z);return}}for(var C in l)$=l[C],l.hasOwnProperty(C)&&$!=null&&!a.hasOwnProperty(C)&&je(e,t,C,null,a,$);for(B in a)$=a[B],z=l[B],!a.hasOwnProperty(B)||$===z||$==null&&z==null||je(e,t,B,$,a,z)}var As=null,Cs=null;function Yi(e){return e.nodeType===9?e:e.ownerDocument}function u1(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 i1(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 Ms(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 Os=null;function Gy(){var e=window.event;return e&&e.type==="popstate"?e===Os?!1:(Os=e,!0):(Os=null,!1)}var r1=typeof setTimeout=="function"?setTimeout:void 0,Zy=typeof clearTimeout=="function"?clearTimeout:void 0,c1=typeof Promise=="function"?Promise:void 0,ky=typeof queueMicrotask=="function"?queueMicrotask:typeof c1<"u"?function(e){return c1.resolve(null).then(e).catch(Xy)}:r1;function Xy(e){setTimeout(function(){throw e})}function Xl(e){return e==="head"}function s1(e,t){var l=t,a=0,u=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(0<a&&8>a){l=a;var d=e.ownerDocument;if(l&1&&gu(d.documentElement),l&2&&gu(d.body),l&4)for(l=d.head,gu(l),d=l.firstChild;d;){var y=d.nextSibling,E=d.nodeName;d[$n]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=y}}if(u===0){e.removeChild(s),Cu(t);return}u--}else l==="$"||l==="$?"||l==="$!"?u++:a=l.charCodeAt(0)-48;else a=0;l=s}while(l);Cu(t)}function Ds(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ds(l),zr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Qy(e,t,l,a){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[$n])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function Ky(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ft(e.nextSibling),e===null))return null;return e}function ws(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Fy(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ft(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Rs=null;function o1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function f1(e,t,l){switch(t=Yi(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function gu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zr(e)}var Zt=new Map,d1=new Set;function Gi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _l=Z.d;Z.d={f:Py,r:Jy,D:Wy,C:Iy,L:em,m:tm,X:am,S:lm,M:nm};function Py(){var e=_l.f(),t=zi();return e||t}function Jy(e){var t=Ua(e);t!==null&&t.tag===5&&t.type==="form"?Nd(t):_l.r(e)}var mn=typeof document>"u"?null:document;function v1(e,t,l){var a=mn;if(a&&typeof t=="string"&&t){var u=jt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),d1.has(u)||(d1.add(u),e={rel:e,crossOrigin:l,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ot(t,"link",e),at(t),a.head.appendChild(t)))}}function Wy(e){_l.D(e),v1("dns-prefetch",e,null)}function Iy(e,t){_l.C(e,t),v1("preconnect",e,t)}function em(e,t,l){_l.L(e,t,l);var a=mn;if(a&&e&&t){var u='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+jt(l.imageSizes)+'"]')):u+='[href="'+jt(e)+'"]';var s=u;switch(t){case"style":s=bn(e);break;case"script":s=gn(e)}Zt.has(s)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(s,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(pu(s))||t==="script"&&a.querySelector(Eu(s))||(t=a.createElement("link"),ot(t,"link",e),at(t),a.head.appendChild(t)))}}function tm(e,t){_l.m(e,t);var l=mn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',s=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=gn(e)}if(!Zt.has(s)&&(e=p({rel:"modulepreload",href:e},t),Zt.set(s,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Eu(s)))return}a=l.createElement("link"),ot(a,"link",e),at(a),l.head.appendChild(a)}}}function lm(e,t,l){_l.S(e,t,l);var a=mn;if(a&&e){var u=Va(a).hoistableStyles,s=bn(e);t=t||"default";var d=u.get(s);if(!d){var y={loading:0,preload:null};if(d=a.querySelector(pu(s)))y.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(s))&&Ns(e,l);var E=d=a.createElement("link");at(E),ot(E,"link",e),E._p=new Promise(function(w,V){E.onload=w,E.onerror=V}),E.addEventListener("load",function(){y.loading|=1}),E.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Zi(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},u.set(s,d)}}}function am(e,t){_l.X(e,t);var l=mn;if(l&&e){var a=Va(l).hoistableScripts,u=gn(e),s=a.get(u);s||(s=l.querySelector(Eu(u)),s||(e=p({src:e,async:!0},t),(t=Zt.get(u))&&$s(e,t),s=l.createElement("script"),at(s),ot(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(u,s))}}function nm(e,t){_l.M(e,t);var l=mn;if(l&&e){var a=Va(l).hoistableScripts,u=gn(e),s=a.get(u);s||(s=l.querySelector(Eu(u)),s||(e=p({src:e,async:!0,type:"module"},t),(t=Zt.get(u))&&$s(e,t),s=l.createElement("script"),at(s),ot(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(u,s))}}function h1(e,t,l,a){var u=(u=be.current)?Gi(u):null;if(!u)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=bn(l.href),l=Va(u).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=bn(l.href);var s=Va(u).hoistableStyles,d=s.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=u.querySelector(pu(e)))&&!s._p&&(d.instance=s,d.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),s||um(u,e,l,d.state))),t&&a===null)throw Error(c(528,""));return d}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gn(l),l=Va(u).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function bn(e){return'href="'+jt(e)+'"'}function pu(e){return'link[rel="stylesheet"]['+e+"]"}function y1(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function um(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ot(t,"link",l),at(t),e.head.appendChild(t))}function gn(e){return'[src="'+jt(e)+'"]'}function Eu(e){return"script[async]"+e}function m1(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(a)return t.instance=a,at(a),a;var u=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ot(a,"style",u),Zi(a,l.precedence,e),t.instance=a;case"stylesheet":u=bn(l.href);var s=e.querySelector(pu(u));if(s)return t.state.loading|=4,t.instance=s,at(s),s;a=y1(l),(u=Zt.get(u))&&Ns(a,u),s=(e.ownerDocument||e).createElement("link"),at(s);var d=s;return d._p=new Promise(function(y,E){d.onload=y,d.onerror=E}),ot(s,"link",a),t.state.loading|=4,Zi(s,l.precedence,e),t.instance=s;case"script":return s=gn(l.src),(u=e.querySelector(Eu(s)))?(t.instance=u,at(u),u):(a=l,(u=Zt.get(s))&&(a=p({},l),$s(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),at(u),ot(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Zi(a,l.precedence,e));return t.instance}function Zi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,s=u,d=0;d<a.length;d++){var y=a[d];if(y.dataset.precedence===t)s=y;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $s(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ki=null;function b1(e,t,l){if(ki===null){var a=new Map,u=ki=new Map;u.set(l,a)}else u=ki,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var s=l[u];if(!(s[$n]||s[ft]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var y=a.get(d);y?y.push(s):a.set(d,[s])}}return a}function g1(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function im(e,t,l){if(l===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 p1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Su=null;function rm(){}function cm(e,t,l){if(Su===null)throw Error(c(475));var a=Su;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=bn(l.href),s=e.querySelector(pu(u));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Xi.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=s,at(s);return}s=e.ownerDocument||e,l=y1(l),(u=Zt.get(u))&&Ns(l,u),s=s.createElement("link"),at(s);var d=s;d._p=new Promise(function(y,E){d.onload=y,d.onerror=E}),ot(s,"link",l),t.instance=s}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Xi.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function sm(){if(Su===null)throw Error(c(475));var e=Su;return e.stylesheets&&e.count===0&&zs(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&zs(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Xi(){if(this.count--,this.count===0){if(this.stylesheets)zs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qi=null;function zs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qi=new Map,t.forEach(om,e),Qi=null,Xi.call(e))}function om(e,t){if(!(t.state.loading&4)){var l=Qi.get(e);if(l)var a=l.get(null);else{l=new Map,Qi.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var d=u[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(l.set(d.dataset.precedence,d),a=d)}a&&l.set(null,a)}u=t.instance,d=u.getAttribute("data-precedence"),s=l.get(d)||a,s===a&&l.set(null,u),l.set(d,u),this.count++,a=Xi.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var xu={$$typeof:k,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function fm(e,t,l,a,u,s,d,y){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=wr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wr(0),this.hiddenUpdates=wr(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function E1(e,t,l,a,u,s,d,y,E,w,V,B){return e=new fm(e,t,l,d,y,E,w,B),t=1,s===!0&&(t|=24),s=Ct(3,null,null,t),e.current=s,s.stateNode=e,t=yc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},pc(s),e}function S1(e){return e?(e=Ka,e):Ka}function x1(e,t,l,a,u,s){u=S1(u),a.context===null?a.context=u:a.pendingContext=u,a=$l(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=zl(e,a,t),l!==null&&(Rt(l,e,t),Wn(l,e,t))}function T1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Us(e,t){T1(e,t),(e=e.alternate)&&T1(e,t)}function _1(e){if(e.tag===13){var t=Qa(e,67108864);t!==null&&Rt(t,e,67108864),Us(e,67108864)}}var Ki=!0;function dm(e,t,l,a){var u=A.T;A.T=null;var s=Z.p;try{Z.p=2,Vs(e,t,l,a)}finally{Z.p=s,A.T=u}}function vm(e,t,l,a){var u=A.T;A.T=null;var s=Z.p;try{Z.p=8,Vs(e,t,l,a)}finally{Z.p=s,A.T=u}}function Vs(e,t,l,a){if(Ki){var u=js(a);if(u===null)Ts(e,t,a,Fi,l),C1(e,a);else if(ym(u,e,t,l,a))a.stopPropagation();else if(C1(e,a),t&4&&-1<hm.indexOf(e)){for(;u!==null;){var s=Ua(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=sl(s.pendingLanes);if(d!==0){var y=s;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var E=1<<31-qe(d);y.entanglements[1]|=E,d&=~E}il(s),($e&6)===0&&(Ni=Ut()+500,yu(0))}}break;case 13:y=Qa(s,2),y!==null&&Rt(y,s,2),zi(),Us(s,2)}if(s=js(a),s===null&&Ts(e,t,a,Fi,l),s===u)break;u=s}u!==null&&a.stopPropagation()}else Ts(e,t,a,null,l)}}function js(e){return e=Yr(e),Hs(e)}var Fi=null;function Hs(e){if(Fi=null,e=za(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fi=e,null}function A1(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(Bo()){case Rn:return 2;case S:return 8;case N:case U:return 32;case le:return 268435456;default:return 32}default:return 32}}var Ls=!1,Ql=null,Kl=null,Fl=null,Tu=new Map,_u=new Map,Pl=[],hm="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 C1(e,t){switch(e){case"focusin":case"focusout":Ql=null;break;case"dragenter":case"dragleave":Kl=null;break;case"mouseover":case"mouseout":Fl=null;break;case"pointerover":case"pointerout":Tu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_u.delete(t.pointerId)}}function Au(e,t,l,a,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[u]},t!==null&&(t=Ua(t),t!==null&&_1(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function ym(e,t,l,a,u){switch(t){case"focusin":return Ql=Au(Ql,e,t,l,a,u),!0;case"dragenter":return Kl=Au(Kl,e,t,l,a,u),!0;case"mouseover":return Fl=Au(Fl,e,t,l,a,u),!0;case"pointerover":var s=u.pointerId;return Tu.set(s,Au(Tu.get(s)||null,e,t,l,a,u)),!0;case"gotpointercapture":return s=u.pointerId,_u.set(s,Au(_u.get(s)||null,e,t,l,a,u)),!0}return!1}function M1(e){var t=za(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,ch(e.priority,function(){if(l.tag===13){var a=wt();a=Rr(a);var u=Qa(l,a);u!==null&&Rt(u,l,a),Us(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=js(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);qr=a,l.target.dispatchEvent(a),qr=null}else return t=Ua(l),t!==null&&_1(t),e.blockedOn=l,!1;t.shift()}return!0}function O1(e,t,l){Pi(e)&&l.delete(t)}function mm(){Ls=!1,Ql!==null&&Pi(Ql)&&(Ql=null),Kl!==null&&Pi(Kl)&&(Kl=null),Fl!==null&&Pi(Fl)&&(Fl=null),Tu.forEach(O1),_u.forEach(O1)}function Ji(e,t){e.blockedOn===t&&(e.blockedOn=null,Ls||(Ls=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mm)))}var Wi=null;function D1(e){Wi!==e&&(Wi=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Wi===e&&(Wi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(Hs(a||l)===null)continue;break}var s=Ua(l);s!==null&&(e.splice(t,3),t-=3,Hc(s,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function Cu(e){function t(E){return Ji(E,e)}Ql!==null&&Ji(Ql,e),Kl!==null&&Ji(Kl,e),Fl!==null&&Ji(Fl,e),Tu.forEach(t),_u.forEach(t);for(var l=0;l<Pl.length;l++){var a=Pl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Pl.length&&(l=Pl[0],l.blockedOn===null);)M1(l),l.blockedOn===null&&Pl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],s=l[a+1],d=u[gt]||null;if(typeof s=="function")d||D1(l);else if(d){var y=null;if(s&&s.hasAttribute("formAction")){if(u=s,d=s[gt]||null)y=d.formAction;else if(Hs(u)!==null)continue}else y=d.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),D1(l)}}}function Bs(e){this._internalRoot=e}Ii.prototype.render=Bs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=wt();x1(l,a,e,t,null,null)},Ii.prototype.unmount=Bs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;x1(e.current,2,null,e,null,null),zi(),t[$a]=null}};function Ii(e){this._internalRoot=e}Ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=ko();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Pl.length&&t!==0&&t<Pl[l].priority;l++);Pl.splice(l,0,e),l===0&&M1(e)}};var w1=i.version;if(w1!=="19.1.2")throw Error(c(527,w1,"19.1.2"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=b(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var bm={bundleType:0,version:"19.1.2",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.2"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var er=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!er.isDisabled&&er.supportsFiber)try{ce=er.inject(bm),pe=er}catch{}}return Ou.createRoot=function(e,t){if(!o(e))throw Error(c(299));var l=!1,a="",u=Xd,s=Qd,d=Kd,y=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(y=t.unstable_transitionCallbacks)),t=E1(e,1,!1,null,null,l,a,u,s,d,y,null),e[$a]=t.current,xs(e),new Bs(t)},Ou.hydrateRoot=function(e,t,l){if(!o(e))throw Error(c(299));var a=!1,u="",s=Xd,d=Qd,y=Kd,E=null,w=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(d=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(E=l.unstable_transitionCallbacks),l.formState!==void 0&&(w=l.formState)),t=E1(e,1,!0,t,l??null,a,u,s,d,y,E,w),t.context=S1(null),l=t.current,a=wt(),a=Rr(a),u=$l(a),u.callback=null,zl(l,u,a),l=a,t.current.lanes=l,Nn(t,l),il(t),e[$a]=t.current,xs(e),new Ii(t)},Ou.version="19.1.2",Ou}var B1;function Rm(){if(B1)return Gs.exports;B1=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Gs.exports=wm(),Gs.exports}var Nm=Rm();const J4=pr(Nm);function $v(n){var i,r,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n))for(i=0;i<n.length;i++)n[i]&&(r=$v(n[i]))&&(c&&(c+=" "),c+=r);else for(i in n)n[i]&&(c&&(c+=" "),c+=i);return c}function $m(){for(var n,i,r=0,c="";r<arguments.length;)(n=arguments[r++])&&(i=$v(n))&&(c&&(c+=" "),c+=i);return c}const q1=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,zm=n=>{const i=function(){for(var o=arguments.length,f=new Array(o),v=0;v<o;v++)f[v]=arguments[v];return $m(f)};return{compose:function(){for(var o=arguments.length,f=new Array(o),v=0;v<o;v++)f[v]=arguments[v];return h=>{const b=Object.fromEntries(Object.entries(h||{}).filter(m=>{let[p]=m;return!["class","className"].includes(p)}));return i(f.map(m=>m(b)),h?.class,h?.className)}},cva:o=>f=>{var v;if(o?.variants==null)return i(o?.base,f?.class,f?.className);const{variants:h,defaultVariants:b}=o,m=Object.keys(h).map(D=>{const q=f?.[D],K=b?.[D],R=q1(q)||q1(K);return h[D][R]}),p={...b,...f&&Object.entries(f).reduce((D,q)=>{let[K,R]=q;return typeof R>"u"?D:{...D,[K]:R}},{})},M=o==null||(v=o.compoundVariants)===null||v===void 0?void 0:v.reduce((D,q)=>{let{class:K,className:R,...L}=q;return Object.entries(L).every(W=>{let[G,k]=W;const J=p[G];return Array.isArray(k)?k.includes(J):J===k})?[...D,K,R]:D},[]);return i(o?.base,m,M,f?.class,f?.className)},cx:i}},{cva:qu,cx:Um}=zm(),zv=g.createContext({link:"a"});function W4(n){return T.jsx(zv.Provider,{value:n.config,children:n.children})}const Vm=()=>g.useContext(zv);function jm(n,i){const{size:r="40",variant:c="primary",onPress:o,...f}=n,{link:v}=Vm(),h=typeof n.href=="string"&&n.href.startsWith("http"),b=h?"a":n.href?v:"button",m=n.href?{href:n.href,...h&&{target:"_blank",rel:"noopener noreferrer"}}:{};if("icon"in f){const{icon:K,...R}=f;return T.jsx(b,{onClick:o,...R,...m,ref:i,className:Y1({variant:c,size:r,iconOnly:!0}),children:g.cloneElement(K,{className:Qs({size:r,variant:c,iconOnly:!0})})})}const{children:p,iconBefore:M,iconAfter:D,...q}=f;return T.jsxs(b,{onClick:o,...q,...m,ref:i,className:Y1({variant:c,size:r}),children:[M&&T.jsx("span",{className:Qs({size:r,placement:"before",variant:c}),children:M}),T.jsx("span",{className:"whitespace-nowrap",children:p}),D&&T.jsx("span",{className:Qs({size:r,placement:"after",variant:c}),children:D})]})}const Y1=qu({base:["inline-flex shrink-0 cursor-pointer select-none items-center justify-center gap-1 text-center font-medium transition-all","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-customisation-50 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-neutral-100","disabled:pointer-events-none disabled:cursor-default disabled:opacity-[.3]"],variants:{variant:{primary:["pressed:bg-customisation-60/[.9] bg-customisation-50 text-white-100 hover:bg-customisation-60","dark:pressed:bg-customisation-50/[.9] dark:bg-customisation-60 dark:hover:bg-customisation-50"],positive:["bg-success-50 text-white-100 hover:bg-success-60 focus-visible:ring-success-50","dark:bg-success-60 dark:hover:bg-success-50 dark:pressed:bg-success-50/[.9]"],grey:["bg-neutral-10 text-neutral-100 hover:bg-neutral-20 focus-visible:ring-neutral-80 pressed:bg-neutral-30","dark:bg-neutral-80 dark:text-white-100 dark:hover:bg-neutral-60 dark:pressed:bg-neutral-50"],darkGrey:["bg-neutral-20 text-neutral-100 hover:bg-neutral-30 focus-visible:ring-neutral-80 pressed:bg-neutral-40","dark:bg-neutral-90 dark:text-white-100 dark:hover:bg-neutral-60 dark:pressed:bg-neutral-50"],outline:["border border-neutral-30 text-neutral-100 hover:border-neutral-40 focus-visible:ring-neutral-80 pressed:border-neutral-50 disabled:border-neutral-20","blur:border-neutral-80/10 blur:hover:border-neutral-80/20","dark:border-neutral-70 dark:text-white-100 dark:hover:border-neutral-60 dark:focus-visible:ring-neutral-80 dark:pressed:border-neutral-50 dark:disabled:border-neutral-80","blur:dark:border-white-10 blur:dark:hover:border-white-20"],ghost:["text-neutral-100 hover:bg-neutral-10 pressed:bg-neutral-20","dark:text-white-100 dark:hover:bg-neutral-80 dark:pressed:bg-neutral-70"],danger:["bg-danger-50 text-white-100 hover:bg-danger-60 focus-visible:ring-danger-50 pressed:bg-danger-60/[.9]","dark:bg-danger-60 dark:hover:bg-danger-50 dark:pressed:bg-danger-50/[.9]"]},size:{40:"h-[40px] rounded-12 px-4 text-15",32:"h-[32px] rounded-10 px-3 text-15",24:"h-[24px] rounded-8 px-2 text-13"},iconOnly:{true:"aspect-square !px-0"}}}),Qs=qu({base:["shrink-0","[&>svg]:size-full"],variants:{variant:{primary:["text-blur-white/70"],positive:["text-blur-white/70"],grey:["text-neutral-50","blur:text-neutral-80/40","dark:text-neutral-40","blur:dark:text-white-40"],darkGrey:["text-neutral-40"],outline:["text-neutral-50","blur:text-neutral-80/40","dark:text-neutral-40","blur:dark:text-white-40"],ghost:["text-neutral-50"],danger:["text-blur-white/70"]},placement:{before:"",after:""},size:{40:"size-5",32:"size-5",24:"size-3"},iconOnly:{true:""}},compoundVariants:[{size:["40","32"],placement:"before",className:"-ml-1"},{size:["40","32"],placement:"after",className:"-mr-1"},{size:"24",placement:"before",className:"-ml-0.5"},{size:"24",placement:"after",className:"-mr-0.5"},{variant:"grey",iconOnly:!0,className:"!text-neutral-100 dark:!text-white-100"},{variant:"outline",iconOnly:!0,className:"!text-neutral-100 dark:!text-white-100"},{variant:"darkGrey",iconOnly:!0,className:"!text-neutral-100 dark:!text-white-100"},{variant:"ghost",iconOnly:!0,className:"!text-neutral-100 dark:!text-white-100"},{variant:"primary",iconOnly:!0,className:"!text-white-100"},{variant:"positive",iconOnly:!0,className:"!text-white-100"},{variant:"danger",iconOnly:!0,className:"!text-white-100"}]}),G1=g.forwardRef(jm);function Z1(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Uv(...n){return i=>{let r=!1;const c=n.map(o=>{const f=Z1(o,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let o=0;o<c.length;o++){const f=c[o];typeof f=="function"?f():Z1(n[o],null)}}}}function Ma(...n){return g.useCallback(Uv(...n),n)}function Hm(n,i){const r=g.createContext(i),c=f=>{const{children:v,...h}=f,b=g.useMemo(()=>h,Object.values(h));return T.jsx(r.Provider,{value:b,children:v})};c.displayName=n+"Provider";function o(f){const v=g.useContext(r);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${n}\``)}return[c,o]}function Lm(n,i=[]){let r=[];function c(f,v){const h=g.createContext(v),b=r.length;r=[...r,v];const m=M=>{const{scope:D,children:q,...K}=M,R=D?.[n]?.[b]||h,L=g.useMemo(()=>K,Object.values(K));return T.jsx(R.Provider,{value:L,children:q})};m.displayName=f+"Provider";function p(M,D){const q=D?.[n]?.[b]||h,K=g.useContext(q);if(K)return K;if(v!==void 0)return v;throw new Error(`\`${M}\` must be used within \`${f}\``)}return[m,p]}const o=()=>{const f=r.map(v=>g.createContext(v));return function(h){const b=h?.[n]||f;return g.useMemo(()=>({[`__scope${n}`]:{...h,[n]:b}}),[h,b])}};return o.scopeName=n,[c,Bm(o,...i)]}function Bm(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const c=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(f){const v=c.reduce((h,{useScope:b,scopeName:m})=>{const M=b(f)[`__scope${m}`];return{...h,...M}},{});return g.useMemo(()=>({[`__scope${i.scopeName}`]:v}),[v])}};return r.scopeName=i.scopeName,r}function ea(n,i,{checkForDefaultPrevented:r=!0}={}){return function(o){if(n?.(o),r===!1||!o.defaultPrevented)return i?.(o)}}var Uu=globalThis?.document?g.useLayoutEffect:()=>{},qm=Rv[" useInsertionEffect ".trim().toString()]||Uu;function Ym({prop:n,defaultProp:i,onChange:r=()=>{},caller:c}){const[o,f,v]=Gm({defaultProp:i,onChange:r}),h=n!==void 0,b=h?n:o;{const p=g.useRef(n!==void 0);g.useEffect(()=>{const M=p.current;M!==h&&console.warn(`${c} is changing from ${M?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=h},[h,c])}const m=g.useCallback(p=>{if(h){const M=Zm(p)?p(n):p;M!==n&&v.current?.(M)}else f(p)},[h,n,f,v]);return[b,m]}function Gm({defaultProp:n,onChange:i}){const[r,c]=g.useState(n),o=g.useRef(r),f=g.useRef(i);return qm(()=>{f.current=i},[i]),g.useEffect(()=>{o.current!==r&&(f.current?.(r),o.current=r)},[r,o]),[r,c,f]}function Zm(n){return typeof n=="function"}function km(n,i){return g.useReducer((r,c)=>i[r][c]??r,n)}var Er=n=>{const{present:i,children:r}=n,c=Xm(i),o=typeof r=="function"?r({present:c.isPresent}):g.Children.only(r),f=Ma(c.ref,Qm(o));return typeof r=="function"||c.isPresent?g.cloneElement(o,{ref:f}):null};Er.displayName="Presence";function Xm(n){const[i,r]=g.useState(),c=g.useRef(null),o=g.useRef(n),f=g.useRef("none"),v=n?"mounted":"unmounted",[h,b]=km(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const m=tr(c.current);f.current=h==="mounted"?m:"none"},[h]),Uu(()=>{const m=c.current,p=o.current;if(p!==n){const D=f.current,q=tr(m);n?b("MOUNT"):q==="none"||m?.display==="none"?b("UNMOUNT"):b(p&&D!==q?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,b]),Uu(()=>{if(i){let m;const p=i.ownerDocument.defaultView??window,M=q=>{const R=tr(c.current).includes(CSS.escape(q.animationName));if(q.target===i&&R&&(b("ANIMATION_END"),!o.current)){const L=i.style.animationFillMode;i.style.animationFillMode="forwards",m=p.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=L)})}},D=q=>{q.target===i&&(f.current=tr(c.current))};return i.addEventListener("animationstart",D),i.addEventListener("animationcancel",M),i.addEventListener("animationend",M),()=>{p.clearTimeout(m),i.removeEventListener("animationstart",D),i.removeEventListener("animationcancel",M),i.removeEventListener("animationend",M)}}else b("ANIMATION_END")},[i,b]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:g.useCallback(m=>{c.current=m?getComputedStyle(m):null,r(m)},[])}}function tr(n){return n?.animationName||"none"}function Qm(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var Vv=Nv();const Km=pr(Vv);function So(n){const i=Fm(n),r=g.forwardRef((c,o)=>{const{children:f,...v}=c,h=g.Children.toArray(f),b=h.find(Pm);if(b){const m=b.props.children,p=h.map(M=>M===b?g.Children.count(m)>1?g.Children.only(null):g.isValidElement(m)?m.props.children:null:M);return T.jsx(i,{...v,ref:o,children:g.isValidElement(m)?g.cloneElement(m,void 0,p):null})}return T.jsx(i,{...v,ref:o,children:f})});return r.displayName=`${n}.Slot`,r}var I4=So("Slot");function Fm(n){const i=g.forwardRef((r,c)=>{const{children:o,...f}=r;if(g.isValidElement(o)){const v=Wm(o),h=Jm(f,o.props);return o.type!==g.Fragment&&(h.ref=c?Uv(c,v):v),g.cloneElement(o,h)}return g.Children.count(o)>1?g.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var jv=Symbol("radix.slottable");function e6(n){const i=({children:r})=>T.jsx(T.Fragment,{children:r});return i.displayName=`${n}.Slottable`,i.__radixId=jv,i}function Pm(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===jv}function Jm(n,i){const r={...i};for(const c in i){const o=n[c],f=i[c];/^on[A-Z]/.test(c)?o&&f?r[c]=(...h)=>{const b=f(...h);return o(...h),b}:o&&(r[c]=o):c==="style"?r[c]={...o,...f}:c==="className"&&(r[c]=[o,f].filter(Boolean).join(" "))}return{...n,...r}}function Wm(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var Im=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cl=Im.reduce((n,i)=>{const r=So(`Primitive.${i}`),c=g.forwardRef((o,f)=>{const{asChild:v,...h}=o,b=v?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),T.jsx(b,{...h,ref:f})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{});function eb(n,i){n&&Vv.flushSync(()=>n.dispatchEvent(i))}const t6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.4 10.6v5.9h1.2v-5.9h5.9V9.4h-5.9V3.5H9.4v5.9H3.5v1.2h5.9Z",clipRule:"evenodd"})}),tb=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.6 10a6.4 6.4 0 1 1 12.8 0 6.4 6.4 0 0 1-12.8 0ZM10 2.4a7.6 7.6 0 1 0 0 15.2 7.6 7.6 0 0 0 0-15.2Zm.55 9.1.2-6h-1.5l.2 6h1.1Zm.2 2.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z",clipRule:"evenodd"})}),l6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.056 4.097-5 5.5-.367.403.367.404 5 5.5.888-.807L4.856 10.6H16V9.4H4.856l4.088-4.496-.888-.807Z",clipRule:"evenodd"})}),a6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",d:"M6.5 10c0-2.5 1-3.5 3.5-3.5s3.5 1 3.5 3.5-1 3.5-3.5 3.5-3.5-1-3.5-3.5Z"})}),n6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.1 10c0-1.619.063-2.852.247-3.8.182-.942.474-1.547.89-1.963.415-.416 1.021-.708 1.963-.89.948-.184 2.18-.247 3.8-.247 1.619 0 2.852.063 3.8.247.942.182 1.547.474 1.963.89.416.416.708 1.021.89 1.963.184.948.247 2.181.247 3.8 0 1.619-.063 2.852-.247 3.8-.182.942-.474 1.547-.89 1.963-.416.416-1.021.708-1.963.89-.948.184-2.181.247-3.8.247-1.62 0-2.852-.063-3.8-.247-.942-.182-1.548-.474-1.963-.89-.416-.416-.708-1.021-.89-1.963-.184-.948-.247-2.181-.247-3.8ZM10 1.9c-1.631 0-2.96.062-4.028.269-1.074.208-1.937.573-2.584 1.22-.647.646-1.011 1.51-1.22 2.583C1.963 7.039 1.9 8.369 1.9 10c0 1.631.062 2.96.269 4.028.208 1.074.572 1.937 1.22 2.584.646.647 1.509 1.011 2.583 1.22 1.067.206 2.397.268 4.028.268 1.63 0 2.96-.062 4.028-.269 1.074-.208 1.937-.572 2.584-1.22.646-.646 1.011-1.51 1.22-2.583.206-1.067.268-2.397.268-4.028 0-1.631-.062-2.96-.269-4.028-.208-1.074-.573-1.937-1.22-2.584-.646-.646-1.51-1.011-2.583-1.22C12.961 1.963 11.631 1.9 10 1.9Zm.6 4.6v2.9h2.9v1.2h-2.9v2.9H9.4v-2.9H6.5V9.4h2.9V6.5h1.2Z",clipRule:"evenodd"})}),u6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"m4.5 11 4 3.5 7-9.5"})}),i6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"m5.5 8 4.5 4.5L14.5 8"})}),lb=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z",clipRule:"evenodd"}),T.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"m9.151 10-2.075 2.076.848.848L10 10.85l2.076 2.075.848-.848L10.85 10l2.075-2.076-.848-.848L10 9.15 7.924 7.076l-.848.848L9.15 10Z",clipRule:"evenodd"})]}),ab=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.153 10-4.576 4.575.848.849 4.576-4.576 4.576 4.576.848-.848L10.85 10l4.575-4.576-.848-.849L10 9.151 5.425 4.576l-.848.848L9.153 10Z",clipRule:"evenodd"})}),r6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.284 5.401C3.152 6.065 3.1 6.911 3.1 8c0 1.088.052 1.935.184 2.599.13.66.333 1.098.603 1.404.388.438 1.014.712 2.124.83.011.414.034.82.074 1.213-1.363-.118-2.399-.458-3.097-1.249-.459-.519-.726-1.18-.881-1.965C1.952 10.052 1.9 9.112 1.9 8c0-1.112.052-2.052.207-2.832.155-.784.422-1.446.88-1.965C3.912 2.158 5.422 1.9 7.5 1.9c2.078 0 3.59.258 4.512 1.303.426.482.687 1.087.846 1.8a24.548 24.548 0 0 0-1.233.013c-.127-.452-.298-.777-.512-1.019C10.577 3.391 9.588 3.1 7.5 3.1s-3.078.291-3.613.897c-.27.306-.472.744-.603 1.404ZM8.1 12c0-1.088.052-1.935.184-2.599.13-.66.333-1.098.603-1.404.536-.606 1.525-.897 3.613-.897s3.078.291 3.613.897c.27.306.472.744.603 1.404.132.664.184 1.51.184 2.599 0 1.088-.052 1.935-.184 2.599-.13.66-.333 1.098-.603 1.404-.535.605-1.525.897-3.613.897s-3.077-.292-3.613-.897c-.27-.306-.472-.744-.603-1.404-.132-.664-.184-1.511-.184-2.6Zm4.4-6.1c-2.079 0-3.59.258-4.512 1.303-.459.519-.726 1.18-.881 1.964-.155.78-.207 1.72-.207 2.833 0 1.112.052 2.052.207 2.832.155.784.422 1.446.88 1.965.924 1.044 2.434 1.303 4.513 1.303 2.079 0 3.59-.259 4.512-1.303.459-.519.726-1.18.881-1.965.155-.78.207-1.72.207-2.832 0-1.112-.052-2.052-.207-2.833-.155-.783-.422-1.445-.88-1.964C16.088 6.158 14.577 5.9 12.5 5.9Z",clipRule:"evenodd"})}),c6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("circle",{cx:10,cy:10,r:7,stroke:"#23ADA0",strokeWidth:1.2}),T.jsx("path",{stroke:"#23ADA0",strokeWidth:1.2,d:"m7.25 10.75 2 1.5 3.5-4.5"})]}),s6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.9c-.635 0-1.192.03-1.661.141-.481.113-.904.318-1.228.689-.317.362-.488.824-.584 1.35a8.84 8.84 0 0 0-.12 1.32H2.5v1.2H3.902c.009 2.345.074 4.21.229 5.689.166 1.594.441 2.793.9 3.675.475.915 1.14 1.472 2.011 1.781.832.295 1.83.355 2.959.355s2.126-.06 2.958-.355c.871-.309 1.536-.866 2.012-1.78.458-.883.733-2.082.9-3.676.154-1.479.22-3.344.229-5.689H17.5V5.4H13.592a8.841 8.841 0 0 0-.12-1.32c-.096-.526-.266-.988-.583-1.35-.324-.37-.747-.576-1.228-.689-.469-.11-1.026-.141-1.661-.141ZM7.627 5.4h-.019c.014-.45.045-.811.1-1.104.075-.412.185-.638.306-.776.113-.13.284-.237.6-.31.328-.078.77-.11 1.386-.11.615 0 1.057.032 1.386.11.316.073.487.18.6.31.12.138.23.364.306.776.054.293.086.655.1 1.104H7.625Zm-2.304 6.764C5.175 10.746 5.11 8.93 5.101 6.6H14.899c-.01 2.33-.074 4.146-.223 5.564-.161 1.547-.417 2.566-.771 3.247-.337.648-.766.997-1.348 1.203-.621.22-1.436.286-2.557.286s-1.936-.065-2.557-.286c-.582-.206-1.011-.555-1.348-1.203-.354-.68-.61-1.7-.772-3.247ZM7.9 13.5V9h1.2v4.5H7.9Zm3 0V9h1.2v4.5h-1.2Z",clipRule:"evenodd"})}),o6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("path",{fill:"#E7EAEE",fillRule:"evenodd",d:"M3 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z",clipRule:"evenodd"}),T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"m7 8.5 3 3 3-3"})]}),f6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.551 6.6H7V5.4h6.6V12h-1.2V7.449l-6.476 6.475-.848-.848L11.55 6.6Z",clipRule:"evenodd"})}),nb=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m14.07 14.989 2.97 2.97.92-.919-15-15-.92.92 2.796 2.795c-.432.335-.823.687-1.17 1.035a14.783 14.783 0 0 0-2.082 2.635 8.66 8.66 0 0 0-.142.242l-.009.015-.002.004v.002H1.43L2 10l-.57-.311-.17.311.17.311L2 10l-.57.312.001.002.002.004.009.015a4.752 4.752 0 0 0 .142.242 14.78 14.78 0 0 0 2.082 2.635c1.43 1.43 3.587 2.94 6.334 2.94 1.554 0 2.918-.483 4.07-1.161Zm-.955-.955L11.6 12.52c-.429.39-.973.63-1.6.63-1.591 0-2.65-1.553-2.65-3.15 0-.499.103-.993.294-1.437l-1.88-1.88c-.43.321-.824.671-1.18 1.027A13.483 13.483 0 0 0 2.758 10a13.482 13.482 0 0 0 1.828 2.29c1.319 1.32 3.163 2.56 5.415 2.56 1.15 0 2.194-.323 3.115-.816ZM8.681 9.6c-.02.126-.03.26-.03.4 0 1.165.731 1.85 1.35 1.85.222 0 .46-.09.672-.258L8.681 9.6Zm8.239.888c-.265.38-.627.856-1.078 1.354l.92.92a14.969 14.969 0 0 0 1.654-2.187 8.51 8.51 0 0 0 .135-.228l.008-.014.008-.015.002-.004.001-.002L18 10l.57.311.17-.311-.17-.311L18 10l.57-.312v-.002l-.003-.004-.009-.015a12.967 12.967 0 0 0-.572-.898 14.775 14.775 0 0 0-1.651-1.979C14.904 5.36 12.747 3.85 10 3.85c-.67 0-1.305.09-1.903.247l1.105 1.105c.26-.034.526-.052.798-.052 2.253 0 4.097 1.24 5.415 2.56A13.479 13.479 0 0 1 17.244 10c-.081.13-.19.296-.323.488Z",clipRule:"evenodd"})}),d6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.6 10c0-1.492.063-2.63.238-3.507.174-.87.45-1.432.836-1.819.387-.387.948-.662 1.819-.836C7.369 3.663 8.508 3.6 10 3.6V2.4c-1.508 0-2.744.062-3.743.262-1.004.2-1.818.55-2.431 1.164-.614.613-.964 1.426-1.164 2.431-.2.999-.262 2.235-.262 3.743s.062 2.744.262 3.743c.2 1.004.55 1.818 1.164 2.431.613.613 1.427.963 2.431 1.164.999.2 2.235.262 3.743.262s2.744-.062 3.743-.262c1.004-.2 1.818-.55 2.431-1.164.613-.613.963-1.427 1.164-2.431.2-.999.262-2.235.262-3.743h-1.2c0 1.492-.063 2.63-.238 3.507-.174.87-.45 1.432-.836 1.819-.387.386-.949.662-1.819.836-.876.175-2.015.238-3.507.238s-2.63-.063-3.507-.238c-.87-.174-1.432-.45-1.819-.836-.387-.387-.662-.948-.836-1.819C3.663 12.631 3.6 11.492 3.6 10Zm12.824-5.576L11.448 9.4H14v1.2H9.4V6h1.2v2.551l4.976-4.975.848.848Z",clipRule:"evenodd"})}),v6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("circle",{cx:10,cy:10,r:7,stroke:"#E95460",strokeWidth:1.2}),T.jsx("path",{fill:"#E95460",fillRule:"evenodd",d:"m10.75 5.5-.2 6h-1.1l-.2-6h1.5ZM10 13a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Z",clipRule:"evenodd"})]}),h6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.826 6.187C4.663 7.143 4.6 8.383 4.6 10s.063 2.857.226 3.813c.163.957.418 1.575.763 1.993C6.26 16.623 7.466 16.9 10 16.9c2.535 0 3.74-.277 4.412-1.094.344-.418.6-1.036.763-1.993.163-.956.225-2.196.225-3.813s-.062-2.857-.225-3.813c-.164-.957-.419-1.575-.763-1.993C13.74 3.377 12.535 3.1 10 3.1c-2.534 0-3.739.277-4.411 1.094-.345.418-.6 1.036-.763 1.993ZM4.662 3.43C5.74 2.123 7.535 1.9 10 1.9c2.466 0 4.261.223 5.338 1.531.532.645.839 1.495 1.02 2.554.18 1.06.242 2.382.242 4.015 0 1.633-.062 2.956-.242 4.015-.181 1.059-.489 1.91-1.02 2.554-1.077 1.308-2.872 1.53-5.338 1.53-2.465 0-4.26-.222-5.338-1.53-.53-.645-.838-1.495-1.019-2.554-.18-1.06-.243-2.382-.243-4.015 0-1.633.063-2.956.243-4.015.18-1.06.488-1.91 1.02-2.554ZM9.5 6.1a.9.9 0 1 0 0 1.8.9.9 0 0 0 0-1.8ZM7.4 7a2.1 2.1 0 1 1 2.7 2.013V11.4h.112l1.12-1.4h1.536l-1.625 2.032 1.645 2.468h-1.442l-1.267-1.9H10.1v1.9H8.9V9.013A2.1 2.1 0 0 1 7.4 7Z",clipRule:"evenodd"})}),y6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"M17 10a7 7 0 1 1-7-7"}),T.jsx("mask",{id:"prefix__mask0_1036_13",width:10,height:10,x:9,y:1,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint0_linear_1036_13)",d:"M9 1h10v10H9z"})}),T.jsx("g",{mask:"url(#prefix__mask0_1036_13)",children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"M10 3a7 7 0 0 1 7 7"})}),T.jsx("defs",{children:T.jsxs("linearGradient",{id:"prefix__paint0_linear_1036_13",x1:11,x2:15.396,y1:3,y2:5.909,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]})})]}),m6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("circle",{cx:10,cy:10,r:7,stroke:"#E95460",strokeWidth:1.2,opacity:.4}),T.jsx("path",{fill:"#E95460",fillRule:"evenodd",d:"m10.75 5.5-.2 6h-1.1l-.2-6h1.5ZM10 13a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Z",clipRule:"evenodd"})]}),b6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.6 10a6.4 6.4 0 1 1 12.8 0 6.4 6.4 0 0 1-12.8 0ZM10 2.4a7.6 7.6 0 1 0 0 15.2 7.6 7.6 0 0 0 0-15.2Zm.6 3.6v3.4h2.9v1.2H9.4V6h1.2Z",clipRule:"evenodd"})}),g6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("mask",{id:"prefix__mask0_7508_128",width:14,height:17,x:3,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint0_linear_7508_128)",d:"M0 0h13v17H0z",transform:"matrix(-1 0 0 1 16.5 2)"})}),T.jsx("g",{mask:"url(#prefix__mask0_7508_128)",children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.4 13.147 4.904 9.06l-.807.888 5.5 5 .404.367.403-.367 5.5-5-.807-.888-4.497 4.088V2.5H9.4v10.647Z",clipRule:"evenodd"})}),T.jsx("defs",{children:T.jsxs("linearGradient",{id:"prefix__paint0_linear_7508_128",x1:6.5,x2:6.5,y1:.708,y2:8.5,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]})})]}),p6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.597 14.948-5.5-5 .807-.888 5.097 4.633 5.096-4.633.807.888-5.5 5-.403.367-.404-.367Z",clipRule:"evenodd"}),T.jsx("mask",{id:"prefix__mask0_347_48",width:2,height:13,x:9,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint0_linear_347_48)",d:"M0 0h2v12H0z",transform:"matrix(-1 0 0 1 11 2.5)"})}),T.jsx("g",{mask:"url(#prefix__mask0_347_48)",children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"M10 2.5V14"})}),T.jsx("defs",{children:T.jsxs("linearGradient",{id:"prefix__paint0_linear_347_48",x1:1,x2:1,y1:.5,y2:6,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]})})]}),E6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.031 2.659a7.6 7.6 0 0 1 7.87 2.553V3.5h1.2v4.1H13V6.4h2.289a6.4 6.4 0 1 0 .25 6.8l1.04.6A7.6 7.6 0 1 1 8.03 2.659Z",clipRule:"evenodd"})}),ub=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.08 10.488A12.076 12.076 0 0 1 2.757 10a13.484 13.484 0 0 1 1.828-2.29C5.904 6.39 7.748 5.15 10 5.15c2.253 0 4.097 1.24 5.415 2.56A13.478 13.478 0 0 1 17.244 10a13.484 13.484 0 0 1-1.828 2.29c-1.319 1.32-3.162 2.56-5.415 2.56-2.252 0-4.096-1.24-5.415-2.56a13.482 13.482 0 0 1-1.505-1.802Zm15.49-.8L18 10l.57.312v.002l-.003.004-.009.015c-.006.013-.017.03-.03.053a13.073 13.073 0 0 1-.542.845c-.375.539-.93 1.258-1.651 1.979-1.431 1.43-3.587 2.94-6.335 2.94-2.747 0-4.904-1.51-6.334-2.94a14.78 14.78 0 0 1-2.082-2.635 8.754 8.754 0 0 1-.142-.242l-.009-.015-.002-.004v-.002H1.43L2 10l-.57-.312.001-.002.002-.004.009-.015a5.085 5.085 0 0 1 .142-.242A14.781 14.781 0 0 1 3.666 6.79C5.096 5.36 7.253 3.85 10 3.85c2.748 0 4.904 1.51 6.335 2.94a14.775 14.775 0 0 1 2.081 2.635 8.421 8.421 0 0 1 .142.242l.009.015.002.004.001.002ZM18 10l.57-.311.17.311-.17.311L18 10ZM1.43 9.689 2 10l-.57.311L1.26 10l.17-.311ZM8.65 10c0-1.165.732-1.85 1.35-1.85.618 0 1.35.685 1.35 1.85s-.732 1.85-1.35 1.85c-.618 0-1.35-.685-1.35-1.85ZM10 6.85C8.41 6.85 7.35 8.403 7.35 10S8.41 13.15 10 13.15c1.592 0 2.65-1.553 2.65-3.15S11.592 6.85 10 6.85Z",clipRule:"evenodd"})}),S6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.242 3.157c1.264-.192 2.555.101 3.675.847l.666-.999c-1.359-.904-2.95-1.273-4.522-1.034-1.57.239-3.013 1.066-4.11 2.333-1.097 1.265-1.792 2.9-1.992 4.649a9.077 9.077 0 0 0 .875 5.065c.77 1.538 1.966 2.758 3.42 3.452a6.295 6.295 0 0 0 4.606.348c1.525-.472 2.856-1.506 3.796-2.92l-.999-.665c-.802 1.206-1.914 2.055-3.152 2.438a5.094 5.094 0 0 1-3.734-.283c-1.19-.57-2.202-1.585-2.864-2.907a7.877 7.877 0 0 1-.755-4.392c.174-1.525.778-2.93 1.705-4 .926-1.068 2.118-1.74 3.385-1.932ZM10.5 8.5c.552 0 1-.672 1-1.5 0-.829-.448-1.5-1-1.5s-1 .671-1 1.5c0 .828.448 1.5 1 1.5Zm5.5 0c.552 0 1-.672 1-1.5 0-.829-.448-1.5-1-1.5S15 6.17 15 7c0 .828.448 1.5 1 1.5Zm-5.119 3.81.57.19.568.19v.002l-.001.002v.001a1.26 1.26 0 0 1 .066-.138c.057-.102.15-.242.29-.383.27-.27.746-.574 1.576-.574.83 0 1.306.304 1.576.574a1.746 1.746 0 0 1 .347.498l.01.023-.001-.003v-.002l.568-.19.57-.19-.001-.001v-.002l-.002-.003-.003-.009-.009-.024a2.478 2.478 0 0 0-.14-.297c-.1-.18-.256-.414-.49-.648-.48-.48-1.255-.926-2.425-.926s-1.944.446-2.424.926a2.944 2.944 0 0 0-.602.873 1.82 1.82 0 0 0-.03.072l-.008.024-.003.009-.001.003v.002Zm5.002.386Z",clipRule:"evenodd"})}),x6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.1 9a5.9 5.9 0 1 1 11.8 0A5.9 5.9 0 0 1 3.1 9ZM9 1.9a7.1 7.1 0 1 0 4.578 12.527l3.498 3.497.848-.848-3.497-3.498A7.1 7.1 0 0 0 9 1.9Z",clipRule:"evenodd"})}),T6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("mask",{id:"prefix__mask0_7508_129",width:14,height:17,x:3,y:1,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint0_linear_7508_129)",d:"M16.5 18h13v17h-13z",transform:"rotate(-180 16.5 18)"})}),T.jsx("g",{mask:"url(#prefix__mask0_7508_129)",children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.4 6.857-4.496 4.087-.807-.888 5.5-5 .404-.367.403.367 5.5 5-.807.888L10.6 6.856V17.5H9.4V6.857Z",clipRule:"evenodd"})}),T.jsx("defs",{children:T.jsxs("linearGradient",{id:"prefix__paint0_linear_7508_129",x1:23,x2:23,y1:18.708,y2:26.5,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]})})]}),_6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10 4.69.404.366 5.5 5-.807.888-5.096-4.633-5.097 4.633-.807-.888 5.5-5 .404-.367Z",clipRule:"evenodd"}),T.jsx("mask",{id:"prefix__mask0_347_58",width:2,height:13,x:9,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint0_linear_347_58)",d:"M11 17.5h2v12h-2z",transform:"rotate(-180 11 17.5)"})}),T.jsx("g",{mask:"url(#prefix__mask0_347_58)",children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"M10 17.5V6"})}),T.jsx("defs",{children:T.jsxs("linearGradient",{id:"prefix__paint0_linear_347_58",x1:12,x2:12,y1:18,y2:23.5,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]})})]}),A6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.928 1.9H8.62l-.18.251-.795 1.114c-.257.359-.301.406-.34.432a.4.4 0 0 1-.178.065c-.046.005-.11-.001-.538-.108l-.944-.236-.33-.082-.24.24-1.5 1.5-.24.24.083.33.242.969c.105.418.111.48.106.526a.4.4 0 0 1-.062.175c-.024.038-.07.083-.414.341l-1.15.863-.24.18V11.3l.24.18 1.155.866c.343.257.387.302.412.34a.4.4 0 0 1 .062.174c.005.045-.001.107-.103.524l-.249 1.02-.082.333.247.24 1.5 1.454.24.232.323-.08.97-.243c.418-.105.48-.111.526-.107a.4.4 0 0 1 .175.063c.038.024.083.07.341.414l.863 1.15.18.24H11.3l.18-.24.862-1.15c.26-.345.304-.39.342-.414a.4.4 0 0 1 .175-.063c.045-.004.108.002.526.107l.97.242.329.082.24-.24 1.5-1.5.24-.24-.082-.33-.242-.969c-.105-.418-.111-.48-.107-.526a.399.399 0 0 1 .063-.175c.024-.038.069-.083.414-.341l1.15-.863.24-.18V8.7l-.24-.18-1.15-.863c-.345-.258-.39-.303-.415-.34a.399.399 0 0 1-.062-.176c-.005-.045.002-.108.107-.526l.242-.97.082-.329-.24-.24-1.5-1.5-.24-.24-.33.082-.943.236c-.428.107-.492.113-.538.108a.4.4 0 0 1-.178-.065c-.039-.026-.084-.073-.34-.432L11.56 2.15l-.18-.251H8.928Zm-.307 2.062.616-.862h1.526l.616.862.042.06c.185.26.36.507.604.67a1.6 1.6 0 0 0 .711.262c.292.034.586-.04.895-.118l.071-.018.614-.153 1.02 1.02-.16.639-.018.07c-.076.301-.149.589-.118.875.027.25.112.49.249.7.157.242.394.42.643.605l.058.043.91.683v1.4l-.91.683-.058.043c-.249.186-.486.363-.643.605-.137.21-.222.45-.249.7-.03.286.042.574.118.876l.018.07.16.639-1.02 1.02-.64-.16-.07-.018c-.301-.076-.589-.148-.875-.118a1.6 1.6 0 0 0-.7.249c-.242.157-.42.394-.606.643l-.043.058-.682.91H9.3l-.683-.91-.043-.058c-.186-.249-.363-.486-.605-.643a1.601 1.601 0 0 0-.7-.249c-.287-.03-.574.042-.876.118l-.07.018-.645.161-1.014-.983.168-.685.017-.07c.074-.3.145-.587.113-.871a1.6 1.6 0 0 0-.25-.697c-.156-.24-.392-.417-.64-.602l-.057-.043L3.1 10.7V9.3l.91-.683.057-.043c.25-.186.487-.363.644-.605a1.6 1.6 0 0 0 .249-.7c.03-.286-.042-.574-.118-.876l-.018-.07-.16-.639 1.02-1.02.614.154.07.018c.31.078.604.152.895.118a1.6 1.6 0 0 0 .712-.261c.243-.164.42-.411.604-.67l.042-.06ZM8.1 10a1.9 1.9 0 1 1 3.8 0 1.9 1.9 0 0 1-3.8 0ZM10 6.9a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2Z",clipRule:"evenodd"})}),C6=n=>T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:[T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.452 10.895 3.5-4 .346-.395-.346-.395-3.5-4-.903.79L14.703 6.5l-3.154 3.605.903.79Zm-4.903-1.79-3.5 4-.346.395.345.395 3.5 4 .904-.79L5.297 13.5l3.155-3.605-.903-.79Z",clipRule:"evenodd"}),T.jsx("mask",{id:"prefix__mask0_8023_48",width:12,height:3,x:3,y:5,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint0_linear_8023_48)",d:"M3 7.5h2v12H3z",transform:"rotate(-90 3 7.5)"})}),T.jsx("g",{mask:"url(#prefix__mask0_8023_48)",children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"M3.5 6.5H15"})}),T.jsx("mask",{id:"prefix__mask1_8023_48",width:12,height:3,x:5,y:12,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:T.jsx("path",{fill:"url(#prefix__paint1_linear_8023_48)",d:"M17 12.5h2v12h-2z",transform:"rotate(90 17 12.5)"})}),T.jsx("g",{mask:"url(#prefix__mask1_8023_48)",children:T.jsx("path",{stroke:"currentColor",strokeWidth:1.2,d:"M16.5 13.5H5"})}),T.jsxs("defs",{children:[T.jsxs("linearGradient",{id:"prefix__paint0_linear_8023_48",x1:4,x2:4,y1:8,y2:13.5,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]}),T.jsxs("linearGradient",{id:"prefix__paint1_linear_8023_48",x1:18,x2:18,y1:13,y2:18.5,gradientUnits:"userSpaceOnUse",children:[T.jsx("stop",{stopColor:"#09101C",stopOpacity:0}),T.jsx("stop",{offset:1,stopColor:"#09101C"})]})]})]}),M6=n=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20","aria-hidden":!0,focusable:!1,...n,children:T.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.9 10a60.55 60.55 0 0 0 0 .5h.002c0 .1.002.198.004.295A3.7 3.7 0 0 0 1.9 11h.01c.023 1.185.096 2.188.259 3.028.208 1.074.572 1.937 1.22 2.584.646.647 1.509 1.011 2.583 1.22 1.067.206 2.397.268 4.028.268 1.63 0 2.96-.062 4.028-.269 1.074-.208 1.937-.572 2.584-1.22.646-.646 1.011-1.51 1.22-2.583.162-.84.235-1.843.259-3.028h.009c0-.069-.002-.137-.006-.206l.004-.294h.002V10c0-1.631-.062-2.96-.269-4.028-.208-1.074-.573-1.937-1.22-2.584-.646-.646-1.51-1.011-2.583-1.22C12.961 1.963 11.631 1.9 10 1.9c-1.631 0-2.96.062-4.028.269-1.074.208-1.937.573-2.584 1.22-.647.646-1.011 1.51-1.22 2.583C1.963 7.039 1.9 8.369 1.9 10Zm14.88-1.309c-.146-.837-.438-1.347-.939-1.7-.423-.3-1.054-.53-2.02-.68C12.86 6.164 11.616 6.1 10 6.1c-1.615 0-2.86.063-3.822.212-.965.15-1.596.38-2.02.678-.5.354-.792.864-.938 1.701l.058-.032C4.23 8.147 5.735 7.9 8 7.9h.6v.6c0 .41.104.757.298.99.179.215.496.41 1.102.41.606 0 .923-.195 1.101-.41.195-.233.299-.58.299-.99v-.6h.6c2.265 0 3.77.247 4.722.76l.058.031ZM3.106 10.823c.02 1.223.09 2.196.24 2.977.183.942.475 1.547.89 1.963.417.416 1.022.708 1.964.89.948.184 2.18.247 3.8.247 1.619 0 2.852-.063 3.8-.247.942-.182 1.547-.474 1.963-.89.416-.416.708-1.021.89-1.963.151-.78.22-1.755.24-2.978a1.375 1.375 0 0 0-.148-.561c-.1-.186-.273-.373-.592-.545-.616-.332-1.712-.572-3.607-.61-.076.405-.236.81-.523 1.153-.446.536-1.129.841-2.023.841-.894 0-1.577-.305-2.023-.84a2.494 2.494 0 0 1-.523-1.155c-1.895.039-2.991.28-3.607.61-.32.173-.492.36-.592.546a1.376 1.376 0 0 0-.149.562Zm12.657-6.586c.398.398.682.97.866 1.843a3.613 3.613 0 0 0-.096-.07c-.639-.451-1.477-.721-2.527-.884C12.952 4.962 11.634 4.9 10 4.9c-1.635 0-2.953.062-4.006.226-1.05.163-1.889.433-2.528.884a3.459 3.459 0 0 0-.095.07c.184-.874.468-1.445.866-1.843.415-.416 1.021-.708 1.963-.89.948-.184 2.18-.247 3.8-.247 1.619 0 2.852.063 3.8.247.942.182 1.547.474 1.963.89Z",clipRule:"evenodd"})});function Vu(n){const i=g.useRef(n);return g.useEffect(()=>{i.current=n}),g.useMemo(()=>(...r)=>i.current?.(...r),[])}function ib(n,i=globalThis?.document){const r=Vu(n);g.useEffect(()=>{const c=o=>{o.key==="Escape"&&r(o)};return i.addEventListener("keydown",c,{capture:!0}),()=>i.removeEventListener("keydown",c,{capture:!0})},[r,i])}var rb="DismissableLayer",ro="dismissableLayer.update",cb="dismissableLayer.pointerDownOutside",sb="dismissableLayer.focusOutside",k1,Hv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xo=g.forwardRef((n,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:c,onPointerDownOutside:o,onFocusOutside:f,onInteractOutside:v,onDismiss:h,...b}=n,m=g.useContext(Hv),[p,M]=g.useState(null),D=p?.ownerDocument??globalThis?.document,[,q]=g.useState({}),K=Ma(i,ue=>M(ue)),R=Array.from(m.layers),[L]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),W=R.indexOf(L),G=p?R.indexOf(p):-1,k=m.layersWithOutsidePointerEventsDisabled.size>0,J=G>=W,Q=fb(ue=>{const Ae=ue.target,we=[...m.branches].some(Ce=>Ce.contains(Ae));!J||we||(o?.(ue),v?.(ue),ue.defaultPrevented||h?.())},D),ve=db(ue=>{const Ae=ue.target;[...m.branches].some(Ce=>Ce.contains(Ae))||(f?.(ue),v?.(ue),ue.defaultPrevented||h?.())},D);return ib(ue=>{G===m.layers.size-1&&(c?.(ue),!ue.defaultPrevented&&h&&(ue.preventDefault(),h()))},D),g.useEffect(()=>{if(p)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(k1=D.body.style.pointerEvents,D.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(p)),m.layers.add(p),X1(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(D.body.style.pointerEvents=k1)}},[p,D,r,m]),g.useEffect(()=>()=>{p&&(m.layers.delete(p),m.layersWithOutsidePointerEventsDisabled.delete(p),X1())},[p,m]),g.useEffect(()=>{const ue=()=>q({});return document.addEventListener(ro,ue),()=>document.removeEventListener(ro,ue)},[]),T.jsx(Cl.div,{...b,ref:K,style:{pointerEvents:k?J?"auto":"none":void 0,...n.style},onFocusCapture:ea(n.onFocusCapture,ve.onFocusCapture),onBlurCapture:ea(n.onBlurCapture,ve.onBlurCapture),onPointerDownCapture:ea(n.onPointerDownCapture,Q.onPointerDownCapture)})});xo.displayName=rb;var ob="DismissableLayerBranch",Lv=g.forwardRef((n,i)=>{const r=g.useContext(Hv),c=g.useRef(null),o=Ma(i,c);return g.useEffect(()=>{const f=c.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),T.jsx(Cl.div,{...n,ref:o})});Lv.displayName=ob;function fb(n,i=globalThis?.document){const r=Vu(n),c=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const f=h=>{if(h.target&&!c.current){let b=function(){Bv(cb,r,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(i.removeEventListener("click",o.current),o.current=b,i.addEventListener("click",o.current,{once:!0})):b()}else i.removeEventListener("click",o.current);c.current=!1},v=window.setTimeout(()=>{i.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(v),i.removeEventListener("pointerdown",f),i.removeEventListener("click",o.current)}},[i,r]),{onPointerDownCapture:()=>c.current=!0}}function db(n,i=globalThis?.document){const r=Vu(n),c=g.useRef(!1);return g.useEffect(()=>{const o=f=>{f.target&&!c.current&&Bv(sb,r,{originalEvent:f},{discrete:!1})};return i.addEventListener("focusin",o),()=>i.removeEventListener("focusin",o)},[i,r]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function X1(){const n=new CustomEvent(ro);document.dispatchEvent(n)}function Bv(n,i,r,{discrete:c}){const o=r.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});i&&o.addEventListener(n,i,{once:!0}),c?eb(o,f):o.dispatchEvent(f)}var O6=xo,D6=Lv,Ks=0;function vb(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Q1()),document.body.insertAdjacentElement("beforeend",n[1]??Q1()),Ks++,()=>{Ks===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Ks--}},[])}function Q1(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Fs="focusScope.autoFocusOnMount",Ps="focusScope.autoFocusOnUnmount",K1={bubbles:!1,cancelable:!0},hb="FocusScope",qv=g.forwardRef((n,i)=>{const{loop:r=!1,trapped:c=!1,onMountAutoFocus:o,onUnmountAutoFocus:f,...v}=n,[h,b]=g.useState(null),m=Vu(o),p=Vu(f),M=g.useRef(null),D=Ma(i,R=>b(R)),q=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(c){let R=function(k){if(q.paused||!h)return;const J=k.target;h.contains(J)?M.current=J:Wl(M.current,{select:!0})},L=function(k){if(q.paused||!h)return;const J=k.relatedTarget;J!==null&&(h.contains(J)||Wl(M.current,{select:!0}))},W=function(k){if(document.activeElement===document.body)for(const Q of k)Q.removedNodes.length>0&&Wl(h)};document.addEventListener("focusin",R),document.addEventListener("focusout",L);const G=new MutationObserver(W);return h&&G.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",L),G.disconnect()}}},[c,h,q.paused]),g.useEffect(()=>{if(h){P1.add(q);const R=document.activeElement;if(!h.contains(R)){const W=new CustomEvent(Fs,K1);h.addEventListener(Fs,m),h.dispatchEvent(W),W.defaultPrevented||(yb(Eb(Yv(h)),{select:!0}),document.activeElement===R&&Wl(h))}return()=>{h.removeEventListener(Fs,m),setTimeout(()=>{const W=new CustomEvent(Ps,K1);h.addEventListener(Ps,p),h.dispatchEvent(W),W.defaultPrevented||Wl(R??document.body,{select:!0}),h.removeEventListener(Ps,p),P1.remove(q)},0)}}},[h,m,p,q]);const K=g.useCallback(R=>{if(!r&&!c||q.paused)return;const L=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,W=document.activeElement;if(L&&W){const G=R.currentTarget,[k,J]=mb(G);k&&J?!R.shiftKey&&W===J?(R.preventDefault(),r&&Wl(k,{select:!0})):R.shiftKey&&W===k&&(R.preventDefault(),r&&Wl(J,{select:!0})):W===G&&R.preventDefault()}},[r,c,q.paused]);return T.jsx(Cl.div,{tabIndex:-1,...v,ref:D,onKeyDown:K})});qv.displayName=hb;function yb(n,{select:i=!1}={}){const r=document.activeElement;for(const c of n)if(Wl(c,{select:i}),document.activeElement!==r)return}function mb(n){const i=Yv(n),r=F1(i,n),c=F1(i.reverse(),n);return[r,c]}function Yv(n){const i=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const o=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||o?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function F1(n,i){for(const r of n)if(!bb(r,{upTo:i}))return r}function bb(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function gb(n){return n instanceof HTMLInputElement&&"select"in n}function Wl(n,{select:i=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&gb(n)&&i&&n.select()}}var P1=pb();function pb(){let n=[];return{add(i){const r=n[0];i!==r&&r?.pause(),n=J1(n,i),n.unshift(i)},remove(i){n=J1(n,i),n[0]?.resume()}}}function J1(n,i){const r=[...n],c=r.indexOf(i);return c!==-1&&r.splice(c,1),r}function Eb(n){return n.filter(i=>i.tagName!=="A")}var Sb=Rv[" useId ".trim().toString()]||(()=>{}),xb=0;function Js(n){const[i,r]=g.useState(Sb());return Uu(()=>{r(c=>c??String(xb++))},[n]),n||(i?`radix-${i}`:"")}var Tb="Portal",Gv=g.forwardRef((n,i)=>{const{container:r,...c}=n,[o,f]=g.useState(!1);Uu(()=>f(!0),[]);const v=r||o&&globalThis?.document?.body;return v?Km.createPortal(T.jsx(Cl.div,{...c,ref:i}),v):null});Gv.displayName=Tb;var _b=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},pn=new WeakMap,lr=new WeakMap,ar={},Ws=0,Zv=function(n){return n&&(n.host||Zv(n.parentNode))},Ab=function(n,i){return i.map(function(r){if(n.contains(r))return r;var c=Zv(r);return c&&n.contains(c)?c:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},Cb=function(n,i,r,c){var o=Ab(i,Array.isArray(n)?n:[n]);ar[r]||(ar[r]=new WeakMap);var f=ar[r],v=[],h=new Set,b=new Set(o),m=function(M){!M||h.has(M)||(h.add(M),m(M.parentNode))};o.forEach(m);var p=function(M){!M||b.has(M)||Array.prototype.forEach.call(M.children,function(D){if(h.has(D))p(D);else try{var q=D.getAttribute(c),K=q!==null&&q!=="false",R=(pn.get(D)||0)+1,L=(f.get(D)||0)+1;pn.set(D,R),f.set(D,L),v.push(D),R===1&&K&&lr.set(D,!0),L===1&&D.setAttribute(r,"true"),K||D.setAttribute(c,"true")}catch(W){console.error("aria-hidden: cannot operate on ",D,W)}})};return p(i),h.clear(),Ws++,function(){v.forEach(function(M){var D=pn.get(M)-1,q=f.get(M)-1;pn.set(M,D),f.set(M,q),D||(lr.has(M)||M.removeAttribute(c),lr.delete(M)),q||M.removeAttribute(r)}),Ws--,Ws||(pn=new WeakMap,pn=new WeakMap,lr=new WeakMap,ar={})}},Mb=function(n,i,r){r===void 0&&(r="data-aria-hidden");var c=Array.from(Array.isArray(n)?n:[n]),o=_b(n);return o?(c.push.apply(c,Array.from(o.querySelectorAll("[aria-live], script"))),Cb(c,o,r,"aria-hidden")):function(){return null}},cl=function(){return cl=Object.assign||function(i){for(var r,c=1,o=arguments.length;c<o;c++){r=arguments[c];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(i[f]=r[f])}return i},cl.apply(this,arguments)};function kv(n,i){var r={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&i.indexOf(c)<0&&(r[c]=n[c]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,c=Object.getOwnPropertySymbols(n);o<c.length;o++)i.indexOf(c[o])<0&&Object.prototype.propertyIsEnumerable.call(n,c[o])&&(r[c[o]]=n[c[o]]);return r}function Ob(n,i,r){if(r||arguments.length===2)for(var c=0,o=i.length,f;c<o;c++)(f||!(c in i))&&(f||(f=Array.prototype.slice.call(i,0,c)),f[c]=i[c]);return n.concat(f||Array.prototype.slice.call(i))}var or="right-scroll-bar-position",fr="width-before-scroll-bar",Db="with-scroll-bars-hidden",wb="--removed-body-scroll-bar-size";function Is(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function Rb(n,i){var r=g.useState(function(){return{value:n,callback:i,facade:{get current(){return r.value},set current(c){var o=r.value;o!==c&&(r.value=c,r.callback(c,o))}}}})[0];return r.callback=i,r.facade}var Nb=typeof window<"u"?g.useLayoutEffect:g.useEffect,W1=new WeakMap;function $b(n,i){var r=Rb(null,function(c){return n.forEach(function(o){return Is(o,c)})});return Nb(function(){var c=W1.get(r);if(c){var o=new Set(c),f=new Set(n),v=r.current;o.forEach(function(h){f.has(h)||Is(h,null)}),f.forEach(function(h){o.has(h)||Is(h,v)})}W1.set(r,n)},[n]),r}function zb(n){return n}function Ub(n,i){i===void 0&&(i=zb);var r=[],c=!1,o={read:function(){if(c)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(f){var v=i(f,c);return r.push(v),function(){r=r.filter(function(h){return h!==v})}},assignSyncMedium:function(f){for(c=!0;r.length;){var v=r;r=[],v.forEach(f)}r={push:function(h){return f(h)},filter:function(){return r}}},assignMedium:function(f){c=!0;var v=[];if(r.length){var h=r;r=[],h.forEach(f),v=r}var b=function(){var p=v;v=[],p.forEach(f)},m=function(){return Promise.resolve().then(b)};m(),r={push:function(p){v.push(p),m()},filter:function(p){return v=v.filter(p),r}}}};return o}function Vb(n){n===void 0&&(n={});var i=Ub(null);return i.options=cl({async:!0,ssr:!1},n),i}var Xv=function(n){var i=n.sideCar,r=kv(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=i.read();if(!c)throw new Error("Sidecar medium not found");return g.createElement(c,cl({},r))};Xv.isSideCarExport=!0;function jb(n,i){return n.useMedium(i),Xv}var Qv=Vb(),eo=function(){},Sr=g.forwardRef(function(n,i){var r=g.useRef(null),c=g.useState({onScrollCapture:eo,onWheelCapture:eo,onTouchMoveCapture:eo}),o=c[0],f=c[1],v=n.forwardProps,h=n.children,b=n.className,m=n.removeScrollBar,p=n.enabled,M=n.shards,D=n.sideCar,q=n.noRelative,K=n.noIsolation,R=n.inert,L=n.allowPinchZoom,W=n.as,G=W===void 0?"div":W,k=n.gapMode,J=kv(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=D,ve=$b([r,i]),ue=cl(cl({},J),o);return g.createElement(g.Fragment,null,p&&g.createElement(Q,{sideCar:Qv,removeScrollBar:m,shards:M,noRelative:q,noIsolation:K,inert:R,setCallbacks:f,allowPinchZoom:!!L,lockRef:r,gapMode:k}),v?g.cloneElement(g.Children.only(h),cl(cl({},ue),{ref:ve})):g.createElement(G,cl({},ue,{className:b,ref:ve}),h))});Sr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sr.classNames={fullWidth:fr,zeroRight:or};var Hb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Lb(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=Hb();return i&&n.setAttribute("nonce",i),n}function Bb(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function qb(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var Yb=function(){var n=0,i=null;return{add:function(r){n==0&&(i=Lb())&&(Bb(i,r),qb(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},Gb=function(){var n=Yb();return function(i,r){g.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&r])}},Kv=function(){var n=Gb(),i=function(r){var c=r.styles,o=r.dynamic;return n(c,o),null};return i},Zb={left:0,top:0,right:0,gap:0},to=function(n){return parseInt(n||"",10)||0},kb=function(n){var i=window.getComputedStyle(document.body),r=i[n==="padding"?"paddingLeft":"marginLeft"],c=i[n==="padding"?"paddingTop":"marginTop"],o=i[n==="padding"?"paddingRight":"marginRight"];return[to(r),to(c),to(o)]},Xb=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Zb;var i=kb(n),r=document.documentElement.clientWidth,c=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,c-r+i[2]-i[0])}},Qb=Kv(),An="data-scroll-locked",Kb=function(n,i,r,c){var o=n.left,f=n.top,v=n.right,h=n.gap;return r===void 0&&(r="margin"),`
  .`.concat(Db,` {
   overflow: hidden `).concat(c,`;
   padding-right: `).concat(h,"px ").concat(c,`;
  }
  body[`).concat(An,`] {
    overflow: hidden `).concat(c,`;
    overscroll-behavior: contain;
    `).concat([i&&"position: relative ".concat(c,";"),r==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(f,`px;
    padding-right: `).concat(v,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(h,"px ").concat(c,`;
    `),r==="padding"&&"padding-right: ".concat(h,"px ").concat(c,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(or,` {
    right: `).concat(h,"px ").concat(c,`;
  }
  
  .`).concat(fr,` {
    margin-right: `).concat(h,"px ").concat(c,`;
  }
  
  .`).concat(or," .").concat(or,` {
    right: 0 `).concat(c,`;
  }
  
  .`).concat(fr," .").concat(fr,` {
    margin-right: 0 `).concat(c,`;
  }
  
  body[`).concat(An,`] {
    `).concat(wb,": ").concat(h,`px;
  }
`)},I1=function(){var n=parseInt(document.body.getAttribute(An)||"0",10);return isFinite(n)?n:0},Fb=function(){g.useEffect(function(){return document.body.setAttribute(An,(I1()+1).toString()),function(){var n=I1()-1;n<=0?document.body.removeAttribute(An):document.body.setAttribute(An,n.toString())}},[])},Pb=function(n){var i=n.noRelative,r=n.noImportant,c=n.gapMode,o=c===void 0?"margin":c;Fb();var f=g.useMemo(function(){return Xb(o)},[o]);return g.createElement(Qb,{styles:Kb(f,!i,o,r?"":"!important")})},co=!1;if(typeof window<"u")try{var nr=Object.defineProperty({},"passive",{get:function(){return co=!0,!0}});window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{co=!1}var En=co?{passive:!1}:!1,Jb=function(n){return n.tagName==="TEXTAREA"},Fv=function(n,i){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!Jb(n)&&r[i]==="visible")},Wb=function(n){return Fv(n,"overflowY")},Ib=function(n){return Fv(n,"overflowX")},ev=function(n,i){var r=i.ownerDocument,c=i;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var o=Pv(n,c);if(o){var f=Jv(n,c),v=f[1],h=f[2];if(v>h)return!0}c=c.parentNode}while(c&&c!==r.body);return!1},eg=function(n){var i=n.scrollTop,r=n.scrollHeight,c=n.clientHeight;return[i,r,c]},tg=function(n){var i=n.scrollLeft,r=n.scrollWidth,c=n.clientWidth;return[i,r,c]},Pv=function(n,i){return n==="v"?Wb(i):Ib(i)},Jv=function(n,i){return n==="v"?eg(i):tg(i)},lg=function(n,i){return n==="h"&&i==="rtl"?-1:1},ag=function(n,i,r,c,o){var f=lg(n,window.getComputedStyle(i).direction),v=f*c,h=r.target,b=i.contains(h),m=!1,p=v>0,M=0,D=0;do{if(!h)break;var q=Jv(n,h),K=q[0],R=q[1],L=q[2],W=R-L-f*K;(K||W)&&Pv(n,h)&&(M+=W,D+=K);var G=h.parentNode;h=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!b&&h!==document.body||b&&(i.contains(h)||i===h));return(p&&Math.abs(M)<1||!p&&Math.abs(D)<1)&&(m=!0),m},ur=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},tv=function(n){return[n.deltaX,n.deltaY]},lv=function(n){return n&&"current"in n?n.current:n},ng=function(n,i){return n[0]===i[0]&&n[1]===i[1]},ug=function(n){return`
  .block-interactivity-`.concat(n,` {pointer-events: none;}
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
`)},ig=0,Sn=[];function rg(n){var i=g.useRef([]),r=g.useRef([0,0]),c=g.useRef(),o=g.useState(ig++)[0],f=g.useState(Kv)[0],v=g.useRef(n);g.useEffect(function(){v.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var R=Ob([n.lockRef.current],(n.shards||[]).map(lv),!0).filter(Boolean);return R.forEach(function(L){return L.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),R.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var h=g.useCallback(function(R,L){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!v.current.allowPinchZoom;var W=ur(R),G=r.current,k="deltaX"in R?R.deltaX:G[0]-W[0],J="deltaY"in R?R.deltaY:G[1]-W[1],Q,ve=R.target,ue=Math.abs(k)>Math.abs(J)?"h":"v";if("touches"in R&&ue==="h"&&ve.type==="range")return!1;var Ae=ev(ue,ve);if(!Ae)return!0;if(Ae?Q=ue:(Q=ue==="v"?"h":"v",Ae=ev(ue,ve)),!Ae)return!1;if(!c.current&&"changedTouches"in R&&(k||J)&&(c.current=Q),!Q)return!0;var we=c.current||Q;return ag(we,L,R,we==="h"?k:J)},[]),b=g.useCallback(function(R){var L=R;if(!(!Sn.length||Sn[Sn.length-1]!==f)){var W="deltaY"in L?tv(L):ur(L),G=i.current.filter(function(Q){return Q.name===L.type&&(Q.target===L.target||L.target===Q.shadowParent)&&ng(Q.delta,W)})[0];if(G&&G.should){L.cancelable&&L.preventDefault();return}if(!G){var k=(v.current.shards||[]).map(lv).filter(Boolean).filter(function(Q){return Q.contains(L.target)}),J=k.length>0?h(L,k[0]):!v.current.noIsolation;J&&L.cancelable&&L.preventDefault()}}},[]),m=g.useCallback(function(R,L,W,G){var k={name:R,delta:L,target:W,should:G,shadowParent:cg(W)};i.current.push(k),setTimeout(function(){i.current=i.current.filter(function(J){return J!==k})},1)},[]),p=g.useCallback(function(R){r.current=ur(R),c.current=void 0},[]),M=g.useCallback(function(R){m(R.type,tv(R),R.target,h(R,n.lockRef.current))},[]),D=g.useCallback(function(R){m(R.type,ur(R),R.target,h(R,n.lockRef.current))},[]);g.useEffect(function(){return Sn.push(f),n.setCallbacks({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:D}),document.addEventListener("wheel",b,En),document.addEventListener("touchmove",b,En),document.addEventListener("touchstart",p,En),function(){Sn=Sn.filter(function(R){return R!==f}),document.removeEventListener("wheel",b,En),document.removeEventListener("touchmove",b,En),document.removeEventListener("touchstart",p,En)}},[]);var q=n.removeScrollBar,K=n.inert;return g.createElement(g.Fragment,null,K?g.createElement(f,{styles:ug(o)}):null,q?g.createElement(Pb,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function cg(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const sg=jb(Qv,rg);var Wv=g.forwardRef(function(n,i){return g.createElement(Sr,cl({},n,{ref:i,sideCar:sg}))});Wv.classNames=Sr.classNames;g.createContext(null);g.createContext(null);g.createContext(null);g.createContext(null);g.createContext(null);g.createContext({});g.createContext(null);const og=g.createContext(null),ta=typeof document<"u"?re.useLayoutEffect:()=>{};var lo;const fg=(lo=re.useInsertionEffect)!==null&&lo!==void 0?lo:ta;function _t(n){const i=g.useRef(null);return fg(()=>{i.current=n},[n]),g.useCallback((...r)=>{const c=i.current;return c?.(...r)},[])}function dg(n){let[i,r]=g.useState(n),c=g.useRef(null),o=_t(()=>{if(!c.current)return;let v=c.current.next();if(v.done){c.current=null;return}i===v.value?o():r(v.value)});ta(()=>{c.current&&o()});let f=_t(v=>{c.current=v(i),o()});return[i,f]}const Iv={prefix:String(Math.round(Math.random()*1e10)),current:0},e2=re.createContext(Iv),vg=re.createContext(!1);let ao=new WeakMap;function hg(n=!1){let i=g.useContext(e2),r=g.useRef(null);if(r.current===null&&!n){var c,o;let f=(o=re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(c=o.ReactCurrentOwner)===null||c===void 0?void 0:c.current;if(f){let v=ao.get(f);v==null?ao.set(f,{id:i.current,state:f.memoizedState}):f.memoizedState!==v.state&&(i.current=v.id,ao.delete(f))}r.current=++i.current}return r.current}function yg(n){let i=g.useContext(e2),r=hg(!!n),c=`react-aria${i.prefix}`;return n||`${c}-${r}`}function mg(n){let i=re.useId(),[r]=g.useState(Sg()),c=r?"react-aria":`react-aria${Iv.prefix}`;return n||`${c}-${i}`}const bg=typeof re.useId=="function"?mg:yg;function gg(){return!1}function pg(){return!0}function Eg(n){return()=>{}}function Sg(){return typeof re.useSyncExternalStore=="function"?re.useSyncExternalStore(Eg,gg,pg):g.useContext(vg)}let xg=!!(typeof window<"u"&&window.document&&window.document.createElement),Cn=new Map,Ru;typeof FinalizationRegistry<"u"&&(Ru=new FinalizationRegistry(n=>{Cn.delete(n)}));function On(n){let[i,r]=g.useState(n),c=g.useRef(null),o=bg(i),f=g.useRef(null);if(Ru&&Ru.register(f,o),xg){const v=Cn.get(o);v&&!v.includes(c)?v.push(c):Cn.set(o,[c])}return ta(()=>{let v=o;return()=>{Ru&&Ru.unregister(f),Cn.delete(v)}},[o]),g.useEffect(()=>{let v=c.current;return v&&r(v),()=>{v&&(c.current=null)}}),o}function Tg(n,i){if(n===i)return n;let r=Cn.get(n);if(r)return r.forEach(o=>o.current=i),i;let c=Cn.get(i);return c?(c.forEach(o=>o.current=n),n):i}function av(n=[]){let i=On(),[r,c]=dg(i),o=g.useCallback(()=>{c(function*(){yield i,yield document.getElementById(i)?i:void 0})},[i,c]);return ta(o,[i,o,...n]),r}function t2(...n){return(...i)=>{for(let r of n)typeof r=="function"&&r(...i)}}const bt=n=>{var i;return(i=n?.ownerDocument)!==null&&i!==void 0?i:document},Xt=n=>n&&"window"in n&&n.window===n?n:bt(n).defaultView||window;function _g(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function Ag(n){return _g(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let Cg=!1;function To(){return Cg}function kt(n,i){if(!To())return i&&n?n.contains(i):!1;if(!n||!i)return!1;let r=i;for(;r!==null;){if(r===n)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:Ag(r)?r=r.host:r=r.parentNode}return!1}const ju=(n=document)=>{var i;if(!To())return n.activeElement;let r=n.activeElement;for(;r&&"shadowRoot"in r&&(!((i=r.shadowRoot)===null||i===void 0)&&i.activeElement);)r=r.shadowRoot.activeElement;return r};function yt(n){return To()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}function l2(n){var i,r,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(i=0;i<o;i++)n[i]&&(r=l2(n[i]))&&(c&&(c+=" "),c+=r)}else for(r in n)n[r]&&(c&&(c+=" "),c+=r);return c}function Mg(){for(var n,i,r=0,c="",o=arguments.length;r<o;r++)(n=arguments[r])&&(i=l2(n))&&(c&&(c+=" "),c+=i);return c}function It(...n){let i={...n[0]};for(let r=1;r<n.length;r++){let c=n[r];for(let o in c){let f=i[o],v=c[o];typeof f=="function"&&typeof v=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?i[o]=t2(f,v):(o==="className"||o==="UNSAFE_className")&&typeof f=="string"&&typeof v=="string"?i[o]=Mg(f,v):o==="id"&&f&&v?i.id=Tg(f,v):i[o]=v!==void 0?v:f}}return i}function Og(...n){return n.length===1&&n[0]?n[0]:i=>{let r=!1;const c=n.map(o=>{const f=nv(o,i);return r||(r=typeof f=="function"),f});if(r)return()=>{c.forEach((o,f)=>{typeof o=="function"?o():nv(n[f],null)})}}}function nv(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}const Dg=new Set(["id"]),wg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Rg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ng=new Set(["dir","lang","hidden","inert","translate"]),uv=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),$g=/^(data-.*)$/;function xr(n,i={}){let{labelable:r,isLink:c,global:o,events:f=o,propNames:v}=i,h={};for(const b in n)Object.prototype.hasOwnProperty.call(n,b)&&(Dg.has(b)||r&&wg.has(b)||c&&Rg.has(b)||o&&Ng.has(b)||f&&uv.has(b)||b.endsWith("Capture")&&uv.has(b.slice(0,-7))||v?.has(b)||$g.test(b))&&(h[b]=n[b]);return h}function Dn(n){if(zg())n.focus({preventScroll:!0});else{let i=Ug(n);n.focus(),Vg(i)}}let ir=null;function zg(){if(ir==null){ir=!1;try{document.createElement("div").focus({get preventScroll(){return ir=!0,!0}})}catch{}}return ir}function Ug(n){let i=n.parentNode,r=[],c=document.scrollingElement||document.documentElement;for(;i instanceof HTMLElement&&i!==c;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&r.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return c instanceof HTMLElement&&r.push({element:c,scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}),r}function Vg(n){for(let{element:i,scrollTop:r,scrollLeft:c}of n)i.scrollTop=r,i.scrollLeft=c}function Tr(n){var i;if(typeof window>"u"||window.navigator==null)return!1;let r=(i=window.navigator.userAgentData)===null||i===void 0?void 0:i.brands;return Array.isArray(r)&&r.some(c=>n.test(c.brand))||n.test(window.navigator.userAgent)}function _o(n){var i;return typeof window<"u"&&window.navigator!=null?n.test(((i=window.navigator.userAgentData)===null||i===void 0?void 0:i.platform)||window.navigator.platform):!1}function la(n){let i=null;return()=>(i==null&&(i=n()),i)}const Hu=la(function(){return _o(/^Mac/i)}),jg=la(function(){return _o(/^iPhone/i)}),a2=la(function(){return _o(/^iPad/i)||Hu()&&navigator.maxTouchPoints>1}),n2=la(function(){return jg()||a2()}),Hg=la(function(){return Tr(/AppleWebKit/i)&&!Lg()}),Lg=la(function(){return Tr(/Chrome/i)}),u2=la(function(){return Tr(/Android/i)}),Bg=la(function(){return Tr(/Firefox/i)});function Lu(n,i,r=!0){var c,o;let{metaKey:f,ctrlKey:v,altKey:h,shiftKey:b}=i;Bg()&&(!((o=window.event)===null||o===void 0||(c=o.type)===null||c===void 0)&&c.startsWith("key"))&&n.target==="_blank"&&(Hu()?f=!0:v=!0);let m=Hg()&&Hu()&&!a2()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:f,ctrlKey:v,altKey:h,shiftKey:b}):new MouseEvent("click",{metaKey:f,ctrlKey:v,altKey:h,shiftKey:b,bubbles:!0,cancelable:!0});Lu.isOpening=r,Dn(n),n.dispatchEvent(m),Lu.isOpening=!1}Lu.isOpening=!1;let Il=new Map,so=new Set;function iv(){if(typeof window>"u")return;function n(c){return"propertyName"in c}let i=c=>{if(!n(c)||!c.target)return;let o=Il.get(c.target);o||(o=new Set,Il.set(c.target,o),c.target.addEventListener("transitioncancel",r,{once:!0})),o.add(c.propertyName)},r=c=>{if(!n(c)||!c.target)return;let o=Il.get(c.target);if(o&&(o.delete(c.propertyName),o.size===0&&(c.target.removeEventListener("transitioncancel",r),Il.delete(c.target)),Il.size===0)){for(let f of so)f();so.clear()}};document.body.addEventListener("transitionrun",i),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?iv():document.addEventListener("DOMContentLoaded",iv));function qg(){for(const[n]of Il)"isConnected"in n&&!n.isConnected&&Il.delete(n)}function i2(n){requestAnimationFrame(()=>{qg(),Il.size===0?n():so.add(n)})}function Ao(){let n=g.useRef(new Map),i=g.useCallback((o,f,v,h)=>{let b=h?.once?(...m)=>{n.current.delete(v),v(...m)}:v;n.current.set(v,{type:f,eventTarget:o,fn:b,options:h}),o.addEventListener(f,b,h)},[]),r=g.useCallback((o,f,v,h)=>{var b;let m=((b=n.current.get(v))===null||b===void 0?void 0:b.fn)||v;o.removeEventListener(f,m,h),n.current.delete(v)},[]),c=g.useCallback(()=>{n.current.forEach((o,f)=>{r(o.eventTarget,o.type,f,o.options)})},[r]);return g.useEffect(()=>c,[c]),{addGlobalListener:i,removeGlobalListener:r,removeAllGlobalListeners:c}}function Yg(n,i){let{id:r,"aria-label":c,"aria-labelledby":o}=n;return r=On(r),o&&c?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!c&&!o&&i&&(c=i),{id:r,"aria-label":c,"aria-labelledby":o}}function Gg(n){const i=g.useRef(null),r=g.useRef(void 0),c=g.useCallback(o=>{if(typeof n=="function"){const f=n,v=f(o);return()=>{typeof v=="function"?v():f(null)}}else if(n)return n.current=o,()=>{n.current=null}},[n]);return g.useMemo(()=>({get current(){return i.current},set current(o){i.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=c(o))}}),[c])}function r2(n,i){ta(()=>{if(n&&n.ref&&i)return n.ref.current=i.current,()=>{n.ref&&(n.ref.current=null)}})}function c2(n){return n.pointerType===""&&n.isTrusted?!0:u2()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function Zg(n){return!u2()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function kg(n,i,r){let c=_t(()=>{r&&r(i)});g.useEffect(()=>{var o;let f=n==null||(o=n.current)===null||o===void 0?void 0:o.form;return f?.addEventListener("reset",c),()=>{f?.removeEventListener("reset",c)}},[n,c])}const Xg=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Qg(n){const i=Xt(n);if(!(n instanceof i.HTMLElement)&&!(n instanceof i.SVGElement))return!1;let{display:r,visibility:c}=n.style,o=r!=="none"&&c!=="hidden"&&c!=="collapse";if(o){const{getComputedStyle:f}=n.ownerDocument.defaultView;let{display:v,visibility:h}=f(n);o=v!=="none"&&h!=="hidden"&&h!=="collapse"}return o}function Kg(n,i){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&i&&i.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function s2(n,i){return Xg?n.checkVisibility({visibilityProperty:!0})&&!n.closest("[data-react-aria-prevent-focus]"):n.nodeName!=="#comment"&&Qg(n)&&Kg(n,i)&&(!n.parentElement||s2(n.parentElement,n))}const o2=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Fg=o2.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";o2.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Pg(n){return n.matches(Fg)&&s2(n)&&!Jg(n)}function Jg(n){let i=n;for(;i!=null;){if(i instanceof i.ownerDocument.defaultView.HTMLElement&&i.inert)return!0;i=i.parentElement}return!1}function Wg(n,i,r){let[c,o]=g.useState(n||i),f=g.useRef(n!==void 0),v=n!==void 0;g.useEffect(()=>{f.current,f.current=v},[v]);let h=v?n:c,b=g.useCallback((m,...p)=>{let M=(D,...q)=>{r&&(Object.is(h,D)||r(D,...q)),v||(h=D)};typeof m=="function"?o((q,...K)=>{let R=m(v?h:q,...K);return M(R,...p),v?q:R}):(v||o(m),M(m,...p))},[v,h,r]);return[h,b]}const Ig=Symbol("default");function e3({values:n,children:i}){for(let[r,c]of n)i=re.createElement(r.Provider,{value:c},i);return i}function Co(n){let{className:i,style:r,children:c,defaultClassName:o,defaultChildren:f,defaultStyle:v,values:h}=n;return g.useMemo(()=>{let b,m,p;return typeof i=="function"?b=i({...h,defaultClassName:o}):b=i,typeof r=="function"?m=r({...h,defaultStyle:v||{}}):m=r,typeof c=="function"?p=c({...h,defaultChildren:f}):c==null?p=f:p=c,{className:b??o,style:m||v?{...v,...m}:void 0,children:p??f,"data-rac":""}},[i,r,c,o,f,v,h])}function f2(n,i){let r=g.useContext(n);if(i===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let c=i||Ig;if(!r.slots[c]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(v=>`"${v}"`)),f=i?`Invalid slot "${i}".`:"A slot prop is required.";throw new Error(`${f} Valid slot names are ${o}.`)}return r.slots[c]}return r}function Bu(n,i,r){let c=f2(r,n.slot)||{},{ref:o,...f}=c,v=Gg(g.useMemo(()=>Og(i,o),[i,o])),h=It(f,n);return"style"in f&&f.style&&"style"in n&&n.style&&(typeof f.style=="function"||typeof n.style=="function"?h.style=b=>{let m=typeof f.style=="function"?f.style(b):f.style,p={...b.defaultStyle,...m},M=typeof n.style=="function"?n.style({...b,defaultStyle:p}):n.style;return{...p,...M}}:h.style={...f.style,...n.style}),[h,v]}function t3(n=!0){let[i,r]=g.useState(n),c=g.useRef(!1),o=g.useCallback(f=>{c.current=!0,r(!!f)},[]);return ta(()=>{c.current||r(!1)},[]),[o,i]}function l3(n){const i=/^(data-.*)$/;let r={};for(const c in n)i.test(c)||(r[c]=n[c]);return r}const d2=7e3;let rl=null;function rv(n,i="assertive",r=d2){rl?rl.announce(n,i,r):(rl=new a3,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?rl.announce(n,i,r):setTimeout(()=>{rl?.isAttached()&&rl?.announce(n,i,r)},100))}class a3{isAttached(){var i;return(i=this.node)===null||i===void 0?void 0:i.isConnected}createLog(i){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",i),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(i,r="assertive",c=d2){var o,f;if(!this.node)return;let v=document.createElement("div");typeof i=="object"?(v.setAttribute("role","img"),v.setAttribute("aria-labelledby",i["aria-labelledby"])):v.textContent=i,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(v):(f=this.politeLog)===null||f===void 0||f.appendChild(v),i!==""&&setTimeout(()=>{v.remove()},c)}clear(i){this.node&&((!i||i==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!i||i==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function n3(n,i){if(i.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u3(n,i,r){n3(n,i),i.set(n,r)}function Mo(n){let i=n;return i.nativeEvent=n,i.isDefaultPrevented=()=>i.defaultPrevented,i.isPropagationStopped=()=>i.cancelBubble,i.persist=()=>{},i}function v2(n,i){Object.defineProperty(n,"target",{value:i}),Object.defineProperty(n,"currentTarget",{value:i})}function h2(n){let i=g.useRef({isFocused:!1,observer:null});ta(()=>{const c=i.current;return()=>{c.observer&&(c.observer.disconnect(),c.observer=null)}},[]);let r=_t(c=>{n?.(c)});return g.useCallback(c=>{if(c.target instanceof HTMLButtonElement||c.target instanceof HTMLInputElement||c.target instanceof HTMLTextAreaElement||c.target instanceof HTMLSelectElement){i.current.isFocused=!0;let o=c.target,f=v=>{if(i.current.isFocused=!1,o.disabled){let h=Mo(v);r(h)}i.current.observer&&(i.current.observer.disconnect(),i.current.observer=null)};o.addEventListener("focusout",f,{once:!0}),i.current.observer=new MutationObserver(()=>{if(i.current.isFocused&&o.disabled){var v;(v=i.current.observer)===null||v===void 0||v.disconnect();let h=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:h})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:h}))}}),i.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let vr=!1;function i3(n){for(;n&&!Pg(n);)n=n.parentElement;let i=Xt(n),r=i.document.activeElement;if(!r||r===n)return;vr=!0;let c=!1,o=p=>{(p.target===r||c)&&p.stopImmediatePropagation()},f=p=>{(p.target===r||c)&&(p.stopImmediatePropagation(),!n&&!c&&(c=!0,Dn(r),b()))},v=p=>{(p.target===n||c)&&p.stopImmediatePropagation()},h=p=>{(p.target===n||c)&&(p.stopImmediatePropagation(),c||(c=!0,Dn(r),b()))};i.addEventListener("blur",o,!0),i.addEventListener("focusout",f,!0),i.addEventListener("focusin",h,!0),i.addEventListener("focus",v,!0);let b=()=>{cancelAnimationFrame(m),i.removeEventListener("blur",o,!0),i.removeEventListener("focusout",f,!0),i.removeEventListener("focusin",h,!0),i.removeEventListener("focus",v,!0),vr=!1,c=!1},m=requestAnimationFrame(b);return b}let _n="default",oo="",dr=new WeakMap;function r3(n){if(n2()){if(_n==="default"){const i=bt(n);oo=i.documentElement.style.webkitUserSelect,i.documentElement.style.webkitUserSelect="none"}_n="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let i="userSelect"in n.style?"userSelect":"webkitUserSelect";dr.set(n,n.style[i]),n.style[i]="none"}}function cv(n){if(n2()){if(_n!=="disabled")return;_n="restoring",setTimeout(()=>{i2(()=>{if(_n==="restoring"){const i=bt(n);i.documentElement.style.webkitUserSelect==="none"&&(i.documentElement.style.webkitUserSelect=oo||""),oo="",_n="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&dr.has(n)){let i=dr.get(n),r="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[r]==="none"&&(n.style[r]=i),n.getAttribute("style")===""&&n.removeAttribute("style"),dr.delete(n)}}const y2=re.createContext({register:()=>{}});y2.displayName="PressResponderContext";function c3(n,i){return i.get?i.get.call(n):i.value}function m2(n,i,r){if(!i.has(n))throw new TypeError("attempted to "+r+" private field on non-instance");return i.get(n)}function s3(n,i){var r=m2(n,i,"get");return c3(n,r)}function o3(n,i,r){if(i.set)i.set.call(n,r);else{if(!i.writable)throw new TypeError("attempted to set read only private field");i.value=r}}function sv(n,i,r){var c=m2(n,i,"set");return o3(n,c,r),r}function f3(n){let i=g.useContext(y2);if(i){let{register:r,...c}=i;n=It(c,n),r()}return r2(i,n.ref),n}var rr=new WeakMap;class cr{continuePropagation(){sv(this,rr,!1)}get shouldStopPropagation(){return s3(this,rr)}constructor(i,r,c,o){u3(this,rr,{writable:!0,value:void 0}),sv(this,rr,!0);var f;let v=(f=o?.target)!==null&&f!==void 0?f:c.currentTarget;const h=v?.getBoundingClientRect();let b,m=0,p,M=null;c.clientX!=null&&c.clientY!=null&&(p=c.clientX,M=c.clientY),h&&(p!=null&&M!=null?(b=p-h.left,m=M-h.top):(b=h.width/2,m=h.height/2)),this.type=i,this.pointerType=r,this.target=c.currentTarget,this.shiftKey=c.shiftKey,this.metaKey=c.metaKey,this.ctrlKey=c.ctrlKey,this.altKey=c.altKey,this.x=b,this.y=m}}const ov=Symbol("linkClicked"),fv="react-aria-pressable-style",dv="data-react-aria-pressable";function d3(n){let{onPress:i,onPressChange:r,onPressStart:c,onPressEnd:o,onPressUp:f,onClick:v,isDisabled:h,isPressed:b,preventFocusOnPress:m,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:M,ref:D,...q}=f3(n),[K,R]=g.useState(!1),L=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:W,removeAllGlobalListeners:G}=Ao(),k=_t((H,F)=>{let oe=L.current;if(h||oe.didFirePressStart)return!1;let X=!0;if(oe.isTriggeringEvent=!0,c){let fe=new cr("pressstart",F,H);c(fe),X=fe.shouldStopPropagation}return r&&r(!0),oe.isTriggeringEvent=!1,oe.didFirePressStart=!0,R(!0),X}),J=_t((H,F,oe=!0)=>{let X=L.current;if(!X.didFirePressStart)return!1;X.didFirePressStart=!1,X.isTriggeringEvent=!0;let fe=!0;if(o){let A=new cr("pressend",F,H);o(A),fe=A.shouldStopPropagation}if(r&&r(!1),R(!1),i&&oe&&!h){let A=new cr("press",F,H);i(A),fe&&(fe=A.shouldStopPropagation)}return X.isTriggeringEvent=!1,fe}),Q=_t((H,F)=>{let oe=L.current;if(h)return!1;if(f){oe.isTriggeringEvent=!0;let X=new cr("pressup",F,H);return f(X),oe.isTriggeringEvent=!1,X.shouldStopPropagation}return!0}),ve=_t(H=>{let F=L.current;if(F.isPressed&&F.target){F.didFirePressStart&&F.pointerType!=null&&J(Ta(F.target,H),F.pointerType,!1),F.isPressed=!1,F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,G(),M||cv(F.target);for(let oe of F.disposables)oe();F.disposables=[]}}),ue=_t(H=>{p&&ve(H)}),Ae=_t(H=>{h||v?.(H)}),we=_t((H,F)=>{if(!h&&v){let oe=new MouseEvent("click",H);v2(oe,F),v(Mo(oe))}}),Ce=g.useMemo(()=>{let H=L.current,F={onKeyDown(X){if(no(X.nativeEvent,X.currentTarget)&&kt(X.currentTarget,yt(X.nativeEvent))){var fe;vv(yt(X.nativeEvent),X.key)&&X.preventDefault();let A=!0;if(!H.isPressed&&!X.repeat){H.target=X.currentTarget,H.isPressed=!0,H.pointerType="keyboard",A=k(X,"keyboard");let Z=X.currentTarget,ae=ge=>{no(ge,Z)&&!ge.repeat&&kt(Z,yt(ge))&&H.target&&Q(Ta(H.target,ge),"keyboard")};W(bt(X.currentTarget),"keyup",t2(ae,oe),!0)}A&&X.stopPropagation(),X.metaKey&&Hu()&&((fe=H.metaKeyEvents)===null||fe===void 0||fe.set(X.key,X.nativeEvent))}else X.key==="Meta"&&(H.metaKeyEvents=new Map)},onClick(X){if(!(X&&!kt(X.currentTarget,yt(X.nativeEvent)))&&X&&X.button===0&&!H.isTriggeringEvent&&!Lu.isOpening){let fe=!0;if(h&&X.preventDefault(),!H.ignoreEmulatedMouseEvents&&!H.isPressed&&(H.pointerType==="virtual"||c2(X.nativeEvent))){let A=k(X,"virtual"),Z=Q(X,"virtual"),ae=J(X,"virtual");Ae(X),fe=A&&Z&&ae}else if(H.isPressed&&H.pointerType!=="keyboard"){let A=H.pointerType||X.nativeEvent.pointerType||"virtual",Z=Q(Ta(X.currentTarget,X),A),ae=J(Ta(X.currentTarget,X),A,!0);fe=Z&&ae,H.isOverTarget=!1,Ae(X),ve(X)}H.ignoreEmulatedMouseEvents=!1,fe&&X.stopPropagation()}}},oe=X=>{var fe;if(H.isPressed&&H.target&&no(X,H.target)){var A;vv(yt(X),X.key)&&X.preventDefault();let ae=yt(X),ge=kt(H.target,yt(X));J(Ta(H.target,X),"keyboard",ge),ge&&we(X,H.target),G(),X.key!=="Enter"&&Oo(H.target)&&kt(H.target,ae)&&!X[ov]&&(X[ov]=!0,Lu(H.target,X,!1)),H.isPressed=!1,(A=H.metaKeyEvents)===null||A===void 0||A.delete(X.key)}else if(X.key==="Meta"&&(!((fe=H.metaKeyEvents)===null||fe===void 0)&&fe.size)){var Z;let ae=H.metaKeyEvents;H.metaKeyEvents=void 0;for(let ge of ae.values())(Z=H.target)===null||Z===void 0||Z.dispatchEvent(new KeyboardEvent("keyup",ge))}};if(typeof PointerEvent<"u"){F.onPointerDown=A=>{if(A.button!==0||!kt(A.currentTarget,yt(A.nativeEvent)))return;if(Zg(A.nativeEvent)){H.pointerType="virtual";return}H.pointerType=A.pointerType;let Z=!0;if(!H.isPressed){H.isPressed=!0,H.isOverTarget=!0,H.activePointerId=A.pointerId,H.target=A.currentTarget,M||r3(H.target),Z=k(A,H.pointerType);let ae=yt(A.nativeEvent);"releasePointerCapture"in ae&&ae.releasePointerCapture(A.pointerId),W(bt(A.currentTarget),"pointerup",X,!1),W(bt(A.currentTarget),"pointercancel",fe,!1)}Z&&A.stopPropagation()},F.onMouseDown=A=>{if(kt(A.currentTarget,yt(A.nativeEvent))&&A.button===0){if(m){let Z=i3(A.target);Z&&H.disposables.push(Z)}A.stopPropagation()}},F.onPointerUp=A=>{!kt(A.currentTarget,yt(A.nativeEvent))||H.pointerType==="virtual"||A.button===0&&!H.isPressed&&Q(A,H.pointerType||A.pointerType)},F.onPointerEnter=A=>{A.pointerId===H.activePointerId&&H.target&&!H.isOverTarget&&H.pointerType!=null&&(H.isOverTarget=!0,k(Ta(H.target,A),H.pointerType))},F.onPointerLeave=A=>{A.pointerId===H.activePointerId&&H.target&&H.isOverTarget&&H.pointerType!=null&&(H.isOverTarget=!1,J(Ta(H.target,A),H.pointerType,!1),ue(A))};let X=A=>{if(A.pointerId===H.activePointerId&&H.isPressed&&A.button===0&&H.target){if(kt(H.target,yt(A))&&H.pointerType!=null){let Z=!1,ae=setTimeout(()=>{H.isPressed&&H.target instanceof HTMLElement&&(Z?ve(A):(Dn(H.target),H.target.click()))},80);W(A.currentTarget,"click",()=>Z=!0,!0),H.disposables.push(()=>clearTimeout(ae))}else ve(A);H.isOverTarget=!1}},fe=A=>{ve(A)};F.onDragStart=A=>{kt(A.currentTarget,yt(A.nativeEvent))&&ve(A)}}return F},[W,h,m,G,M,ve,ue,J,k,Q,Ae,we]);return g.useEffect(()=>{if(!D)return;const H=bt(D.current);if(!H||!H.head||H.getElementById(fv))return;const F=H.createElement("style");F.id=fv,F.textContent=`
@layer {
  [${dv}] {
    touch-action: pan-x pan-y pinch-zoom;
  }
}
    `.trim(),H.head.prepend(F)},[D]),g.useEffect(()=>{let H=L.current;return()=>{var F;M||cv((F=H.target)!==null&&F!==void 0?F:void 0);for(let oe of H.disposables)oe();H.disposables=[]}},[M]),{isPressed:b||K,pressProps:It(q,Ce,{[dv]:!0})}}function Oo(n){return n.tagName==="A"&&n.hasAttribute("href")}function no(n,i){const{key:r,code:c}=n,o=i,f=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||c==="Space")&&!(o instanceof Xt(o).HTMLInputElement&&!b2(o,r)||o instanceof Xt(o).HTMLTextAreaElement||o.isContentEditable)&&!((f==="link"||!f&&Oo(o))&&r!=="Enter")}function Ta(n,i){let r=i.clientX,c=i.clientY;return{currentTarget:n,shiftKey:i.shiftKey,ctrlKey:i.ctrlKey,metaKey:i.metaKey,altKey:i.altKey,clientX:r,clientY:c}}function v3(n){return n instanceof HTMLInputElement?!1:n instanceof HTMLButtonElement?n.type!=="submit"&&n.type!=="reset":!Oo(n)}function vv(n,i){return n instanceof HTMLInputElement?!b2(n,i):v3(n)}const h3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function b2(n,i){return n.type==="checkbox"||n.type==="radio"?i===" ":h3.has(n.type)}let Oa=null,fo=new Set,Nu=new Map,Aa=!1,vo=!1;const y3={Tab:!0,Escape:!0};function _r(n,i){for(let r of fo)r(n,i)}function m3(n){return!(n.metaKey||!Hu()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function hr(n){Aa=!0,m3(n)&&(Oa="keyboard",_r("keyboard",n))}function Mn(n){Oa="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(Aa=!0,_r("pointer",n))}function g2(n){c2(n)&&(Aa=!0,Oa="virtual")}function p2(n){n.target===window||n.target===document||vr||!n.isTrusted||(!Aa&&!vo&&(Oa="virtual",_r("virtual",n)),Aa=!1,vo=!1)}function E2(){vr||(Aa=!1,vo=!0)}function ho(n){if(typeof window>"u"||typeof document>"u"||Nu.get(Xt(n)))return;const i=Xt(n),r=bt(n);let c=i.HTMLElement.prototype.focus;i.HTMLElement.prototype.focus=function(){Aa=!0,c.apply(this,arguments)},r.addEventListener("keydown",hr,!0),r.addEventListener("keyup",hr,!0),r.addEventListener("click",g2,!0),i.addEventListener("focus",p2,!0),i.addEventListener("blur",E2,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Mn,!0),r.addEventListener("pointermove",Mn,!0),r.addEventListener("pointerup",Mn,!0)),i.addEventListener("beforeunload",()=>{S2(n)},{once:!0}),Nu.set(i,{focus:c})}const S2=(n,i)=>{const r=Xt(n),c=bt(n);i&&c.removeEventListener("DOMContentLoaded",i),Nu.has(r)&&(r.HTMLElement.prototype.focus=Nu.get(r).focus,c.removeEventListener("keydown",hr,!0),c.removeEventListener("keyup",hr,!0),c.removeEventListener("click",g2,!0),r.removeEventListener("focus",p2,!0),r.removeEventListener("blur",E2,!1),typeof PointerEvent<"u"&&(c.removeEventListener("pointerdown",Mn,!0),c.removeEventListener("pointermove",Mn,!0),c.removeEventListener("pointerup",Mn,!0)),Nu.delete(r))};function b3(n){const i=bt(n);let r;return i.readyState!=="loading"?ho(n):(r=()=>{ho(n)},i.addEventListener("DOMContentLoaded",r)),()=>S2(n,r)}typeof document<"u"&&b3();function x2(){return Oa!=="pointer"}function g3(){return Oa}function p3(n){Oa=n,_r(n,null)}const E3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S3(n,i,r){let c=bt(r?.target);const o=typeof window<"u"?Xt(r?.target).HTMLInputElement:HTMLInputElement,f=typeof window<"u"?Xt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,v=typeof window<"u"?Xt(r?.target).HTMLElement:HTMLElement,h=typeof window<"u"?Xt(r?.target).KeyboardEvent:KeyboardEvent;return n=n||c.activeElement instanceof o&&!E3.has(c.activeElement.type)||c.activeElement instanceof f||c.activeElement instanceof v&&c.activeElement.isContentEditable,!(n&&i==="keyboard"&&r instanceof h&&!y3[r.key])}function x3(n,i,r){ho(),g.useEffect(()=>{let c=(o,f)=>{S3(!!r?.isTextInput,o,f)&&n(x2())};return fo.add(c),()=>{fo.delete(c)}},i)}function T3(n){const i=bt(n),r=ju(i);if(g3()==="virtual"){let c=r;i2(()=>{ju(i)===c&&n.isConnected&&Dn(n)})}else Dn(n)}function T2(n){let{isDisabled:i,onFocus:r,onBlur:c,onFocusChange:o}=n;const f=g.useCallback(b=>{if(b.target===b.currentTarget)return c&&c(b),o&&o(!1),!0},[c,o]),v=h2(f),h=g.useCallback(b=>{const m=bt(b.target),p=m?ju(m):ju();b.target===b.currentTarget&&p===yt(b.nativeEvent)&&(r&&r(b),o&&o(!0),v(b))},[o,r,v]);return{focusProps:{onFocus:!i&&(r||o||c)?h:void 0,onBlur:!i&&(c||o)?f:void 0}}}function hv(n){if(!n)return;let i=!0;return r=>{let c={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){i=!0},continuePropagation(){i=!1},isPropagationStopped(){return i}};n(c),i&&r.stopPropagation()}}function _3(n){return{keyboardProps:n.isDisabled?{}:{onKeyDown:hv(n.onKeyDown),onKeyUp:hv(n.onKeyUp)}}}let A3=re.createContext(null);function C3(n){let i=g.useContext(A3)||{};r2(i,n);let{ref:r,...c}=i;return c}function _2(n,i){let{focusProps:r}=T2(n),{keyboardProps:c}=_3(n),o=It(r,c),f=C3(i),v=n.isDisabled?{}:f,h=g.useRef(n.autoFocus);g.useEffect(()=>{h.current&&i.current&&T3(i.current),h.current=!1},[i]);let b=n.excludeFromTabOrder?-1:0;return n.isDisabled&&(b=void 0),{focusableProps:It({...o,tabIndex:b},v)}}function M3(n){let{isDisabled:i,onBlurWithin:r,onFocusWithin:c,onFocusWithinChange:o}=n,f=g.useRef({isFocusWithin:!1}),{addGlobalListener:v,removeAllGlobalListeners:h}=Ao(),b=g.useCallback(M=>{M.currentTarget.contains(M.target)&&f.current.isFocusWithin&&!M.currentTarget.contains(M.relatedTarget)&&(f.current.isFocusWithin=!1,h(),r&&r(M),o&&o(!1))},[r,o,f,h]),m=h2(b),p=g.useCallback(M=>{if(!M.currentTarget.contains(M.target))return;const D=bt(M.target),q=ju(D);if(!f.current.isFocusWithin&&q===yt(M.nativeEvent)){c&&c(M),o&&o(!0),f.current.isFocusWithin=!0,m(M);let K=M.currentTarget;v(D,"focus",R=>{if(f.current.isFocusWithin&&!kt(K,R.target)){let L=new D.defaultView.FocusEvent("blur",{relatedTarget:R.target});v2(L,K);let W=Mo(L);b(W)}},{capture:!0})}},[c,o,m,v,b]);return i?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:b}}}let yo=!1,sr=0;function O3(){yo=!0,setTimeout(()=>{yo=!1},50)}function yv(n){n.pointerType==="touch"&&O3()}function D3(){if(!(typeof document>"u"))return sr===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",yv),sr++,()=>{sr--,!(sr>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",yv)}}function A2(n){let{onHoverStart:i,onHoverChange:r,onHoverEnd:c,isDisabled:o}=n,[f,v]=g.useState(!1),h=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(D3,[]);let{addGlobalListener:b,removeAllGlobalListeners:m}=Ao(),{hoverProps:p,triggerHoverEnd:M}=g.useMemo(()=>{let D=(R,L)=>{if(h.pointerType=L,o||L==="touch"||h.isHovered||!R.currentTarget.contains(R.target))return;h.isHovered=!0;let W=R.currentTarget;h.target=W,b(bt(R.target),"pointerover",G=>{h.isHovered&&h.target&&!kt(h.target,G.target)&&q(G,G.pointerType)},{capture:!0}),i&&i({type:"hoverstart",target:W,pointerType:L}),r&&r(!0),v(!0)},q=(R,L)=>{let W=h.target;h.pointerType="",h.target=null,!(L==="touch"||!h.isHovered||!W)&&(h.isHovered=!1,m(),c&&c({type:"hoverend",target:W,pointerType:L}),r&&r(!1),v(!1))},K={};return typeof PointerEvent<"u"&&(K.onPointerEnter=R=>{yo&&R.pointerType==="mouse"||D(R,R.pointerType)},K.onPointerLeave=R=>{!o&&R.currentTarget.contains(R.target)&&q(R,R.pointerType)}),{hoverProps:K,triggerHoverEnd:q}},[i,r,c,o,h,b,m]);return g.useEffect(()=>{o&&M({currentTarget:h.target},h.pointerType)},[o]),{hoverProps:p,isHovered:f}}function C2(n={}){let{autoFocus:i=!1,isTextInput:r,within:c}=n,o=g.useRef({isFocused:!1,isFocusVisible:i||x2()}),[f,v]=g.useState(!1),[h,b]=g.useState(()=>o.current.isFocused&&o.current.isFocusVisible),m=g.useCallback(()=>b(o.current.isFocused&&o.current.isFocusVisible),[]),p=g.useCallback(q=>{o.current.isFocused=q,v(q),m()},[m]);x3(q=>{o.current.isFocusVisible=q,m()},[],{isTextInput:r});let{focusProps:M}=T2({isDisabled:c,onFocusChange:p}),{focusWithinProps:D}=M3({isDisabled:!c,onFocusWithinChange:p});return{isFocused:f,isFocusVisible:h,focusProps:c?D:M}}function w3(n){let{id:i,label:r,"aria-labelledby":c,"aria-label":o,labelElementType:f="label"}=n;i=On(i);let v=On(),h={};r&&(c=c?`${v} ${c}`:v,h={id:v,htmlFor:f==="label"?i:void 0});let b=Yg({id:i,"aria-label":o,"aria-labelledby":c});return{labelProps:h,fieldProps:b}}function R3(n){let{description:i,errorMessage:r,isInvalid:c,validationState:o}=n,{labelProps:f,fieldProps:v}=w3(n),h=av([!!i,!!r,c,o]),b=av([!!i,!!r,c,o]);return v=It(v,{"aria-describedby":[h,b,n["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:f,fieldProps:v,descriptionProps:{id:h},errorMessageProps:{id:b}}}const M2={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},O2={...M2,customError:!0,valid:!1},Du={isInvalid:!1,validationDetails:M2,validationErrors:[]},N3=g.createContext({}),mv="__formValidationState"+Date.now();function $3(n){if(n[mv]){let{realtimeValidation:i,displayValidation:r,updateValidation:c,resetValidation:o,commitValidation:f}=n[mv];return{realtimeValidation:i,displayValidation:r,updateValidation:c,resetValidation:o,commitValidation:f}}return z3(n)}function z3(n){let{isInvalid:i,validationState:r,name:c,value:o,builtinValidation:f,validate:v,validationBehavior:h="aria"}=n;r&&(i||(i=r==="invalid"));let b=i!==void 0?{isInvalid:i,validationErrors:[],validationDetails:O2}:null,m=g.useMemo(()=>{if(!v||o==null)return null;let Ce=U3(v,o);return bv(Ce)},[v,o]);f?.validationDetails.valid&&(f=void 0);let p=g.useContext(N3),M=g.useMemo(()=>c?Array.isArray(c)?c.flatMap(Ce=>mo(p[Ce])):mo(p[c]):[],[p,c]),[D,q]=g.useState(p),[K,R]=g.useState(!1);p!==D&&(q(p),R(!1));let L=g.useMemo(()=>bv(K?[]:M),[K,M]),W=g.useRef(Du),[G,k]=g.useState(Du),J=g.useRef(Du),Q=()=>{if(!ve)return;ue(!1);let Ce=m||f||W.current;uo(Ce,J.current)||(J.current=Ce,k(Ce))},[ve,ue]=g.useState(!1);return g.useEffect(Q),{realtimeValidation:b||L||m||f||Du,displayValidation:h==="native"?b||L||G:b||L||m||f||G,updateValidation(Ce){h==="aria"&&!uo(G,Ce)?k(Ce):W.current=Ce},resetValidation(){let Ce=Du;uo(Ce,J.current)||(J.current=Ce,k(Ce)),h==="native"&&ue(!1),R(!0)},commitValidation(){h==="native"&&ue(!0),R(!0)}}}function mo(n){return n?Array.isArray(n)?n:[n]:[]}function U3(n,i){if(typeof n=="function"){let r=n(i);if(r&&typeof r!="boolean")return mo(r)}return[]}function bv(n){return n.length?{isInvalid:!0,validationErrors:n,validationDetails:O2}:null}function uo(n,i){return n===i?!0:!!n&&!!i&&n.isInvalid===i.isInvalid&&n.validationErrors.length===i.validationErrors.length&&n.validationErrors.every((r,c)=>r===i.validationErrors[c])&&Object.entries(n.validationDetails).every(([r,c])=>i.validationDetails[r]===c)}function V3(n,i,r){let{validationBehavior:c,focus:o}=n;ta(()=>{if(c==="native"&&r?.current&&!r.current.disabled){let m=i.realtimeValidation.isInvalid?i.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(m),r.current.hasAttribute("title")||(r.current.title=""),i.realtimeValidation.isInvalid||i.updateValidation(H3(r.current))}});let f=g.useRef(!1),v=_t(()=>{f.current||i.resetValidation()}),h=_t(m=>{var p;i.displayValidation.isInvalid||i.commitValidation();let M=r==null||(p=r.current)===null||p===void 0?void 0:p.form;if(!m.defaultPrevented&&r&&M&&L3(M)===r.current){var D;o?o():(D=r.current)===null||D===void 0||D.focus(),p3("keyboard")}m.preventDefault()}),b=_t(()=>{i.commitValidation()});g.useEffect(()=>{let m=r?.current;if(!m)return;let p=m.form,M=p?.reset;return p&&(p.reset=()=>{f.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,M?.call(p),f.current=!1}),m.addEventListener("invalid",h),m.addEventListener("change",b),p?.addEventListener("reset",v),()=>{m.removeEventListener("invalid",h),m.removeEventListener("change",b),p?.removeEventListener("reset",v),p&&(p.reset=M)}},[r,h,b,v,c])}function j3(n){let i=n.validity;return{badInput:i.badInput,customError:i.customError,patternMismatch:i.patternMismatch,rangeOverflow:i.rangeOverflow,rangeUnderflow:i.rangeUnderflow,stepMismatch:i.stepMismatch,tooLong:i.tooLong,tooShort:i.tooShort,typeMismatch:i.typeMismatch,valueMissing:i.valueMissing,valid:i.valid}}function H3(n){return{isInvalid:!n.validity.valid,validationDetails:j3(n),validationErrors:n.validationMessage?[n.validationMessage]:[]}}function L3(n){for(let i=0;i<n.elements.length;i++){let r=n.elements[i];if(!r.validity.valid)return r}return null}function B3(n,i){let{inputElementType:r="input",isDisabled:c=!1,isRequired:o=!1,isReadOnly:f=!1,type:v="text",validationBehavior:h="aria"}=n,[b,m]=Wg(n.value,n.defaultValue||"",n.onChange),{focusableProps:p}=_2(n,i),M=$3({...n,value:b}),{isInvalid:D,validationErrors:q,validationDetails:K}=M.displayValidation,{labelProps:R,fieldProps:L,descriptionProps:W,errorMessageProps:G}=R3({...n,isInvalid:D,errorMessage:n.errorMessage||q}),k=xr(n,{labelable:!0});const J={type:v,pattern:n.pattern};let[Q]=g.useState(b);var ve;return kg(i,(ve=n.defaultValue)!==null&&ve!==void 0?ve:Q,m),V3(n,M,i),g.useEffect(()=>{if(i.current instanceof Xt(i.current).HTMLTextAreaElement){let ue=i.current;Object.defineProperty(ue,"defaultValue",{get:()=>ue.value,set:()=>{},configurable:!0})}},[i]),{labelProps:R,inputProps:It(k,r==="input"?J:void 0,{disabled:c,readOnly:f,required:o&&h==="native","aria-required":o&&h==="aria"||void 0,"aria-invalid":D||void 0,"aria-errormessage":n["aria-errormessage"],"aria-activedescendant":n["aria-activedescendant"],"aria-autocomplete":n["aria-autocomplete"],"aria-haspopup":n["aria-haspopup"],"aria-controls":n["aria-controls"],value:b,onChange:ue=>m(ue.target.value),autoComplete:n.autoComplete,autoCapitalize:n.autoCapitalize,maxLength:n.maxLength,minLength:n.minLength,name:n.name,form:n.form,placeholder:n.placeholder,inputMode:n.inputMode,autoCorrect:n.autoCorrect,spellCheck:n.spellCheck,[parseInt(re.version,10)>=17?"enterKeyHint":"enterkeyhint"]:n.enterKeyHint,onCopy:n.onCopy,onCut:n.onCut,onPaste:n.onPaste,onCompositionEnd:n.onCompositionEnd,onCompositionStart:n.onCompositionStart,onCompositionUpdate:n.onCompositionUpdate,onSelect:n.onSelect,onBeforeInput:n.onBeforeInput,onInput:n.onInput,...p,...L}),descriptionProps:W,errorMessageProps:G,isInvalid:D,validationErrors:q,validationDetails:K}}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const q3=g.createContext(!1);function Ar(n){let i=(r,c)=>g.useContext(q3)?null:n(r,c);return i.displayName=n.displayName||n.name,g.forwardRef(i)}function Y3(n,i){let{elementType:r="button",isDisabled:c,onPress:o,onPressStart:f,onPressEnd:v,onPressUp:h,onPressChange:b,preventFocusOnPress:m,allowFocusWhenDisabled:p,onClick:M,href:D,target:q,rel:K,type:R="button"}=n,L;r==="button"?L={type:R,disabled:c,form:n.form,formAction:n.formAction,formEncType:n.formEncType,formMethod:n.formMethod,formNoValidate:n.formNoValidate,formTarget:n.formTarget,name:n.name,value:n.value}:L={role:"button",href:r==="a"&&!c?D:void 0,target:r==="a"?q:void 0,type:r==="input"?R:void 0,disabled:r==="input"?c:void 0,"aria-disabled":!c||r==="input"?void 0:c,rel:r==="a"?K:void 0};let{pressProps:W,isPressed:G}=d3({onPressStart:f,onPressEnd:v,onPressChange:b,onPress:o,onPressUp:h,onClick:M,isDisabled:c,preventFocusOnPress:m,ref:i}),{focusableProps:k}=_2(n,i);p&&(k.tabIndex=c?-1:k.tabIndex);let J=It(k,W,xr(n,{labelable:!0}));return{isPressed:G,buttonProps:It(L,J,{"aria-haspopup":n["aria-haspopup"],"aria-expanded":n["aria-expanded"],"aria-controls":n["aria-controls"],"aria-pressed":n["aria-pressed"],"aria-current":n["aria-current"],"aria-disabled":n["aria-disabled"]})}}const D2=g.createContext({}),gv=Ar(function(i,r){[i,r]=Bu(i,r,D2);let{elementType:c="label",...o}=i;return re.createElement(c,{className:"react-aria-Label",...o,ref:r})}),G3=g.createContext(null),Z3=g.createContext({}),k3=Ar(function(i,r){[i,r]=Bu(i,r,Z3);let c=i,{isPending:o}=c,{buttonProps:f,isPressed:v}=Y3(i,r);f=X3(f,o);let{focusProps:h,isFocused:b,isFocusVisible:m}=C2(i),{hoverProps:p,isHovered:M}=A2({...i,isDisabled:i.isDisabled||o}),D={isHovered:M,isPressed:(c.isPressed||v)&&!o,isFocused:b,isFocusVisible:m,isDisabled:i.isDisabled||!1,isPending:o??!1},q=Co({...i,values:D,defaultClassName:"react-aria-Button"}),K=On(f.id),R=On(),L=f["aria-labelledby"];o&&(L?L=`${L} ${R}`:f["aria-label"]&&(L=`${K} ${R}`));let W=g.useRef(o);g.useEffect(()=>{let k={"aria-labelledby":L||K};(!W.current&&b&&o||W.current&&b&&!o)&&rv(k,"assertive"),W.current=o},[o,b,L,K]);let G=xr(i,{global:!0});return delete G.onClick,re.createElement("button",{...It(G,q,f,h,p),type:f.type==="submit"&&o?"button":f.type,id:K,ref:r,"aria-labelledby":L,slot:i.slot||void 0,"aria-disabled":o?"true":f["aria-disabled"],"data-disabled":i.isDisabled||void 0,"data-pressed":D.isPressed||void 0,"data-hovered":M||void 0,"data-focused":b||void 0,"data-pending":o||void 0,"data-focus-visible":m||void 0},re.createElement(G3.Provider,{value:{id:R}},q.children))});function X3(n,i){if(i){for(const r in n)r.startsWith("on")&&!(r.includes("Focus")||r.includes("Blur"))&&(n[r]=void 0);n.href=void 0,n.target=void 0}return n}const Q3=g.createContext({}),K3=g.createContext(null),F3=g.createContext(null),P3=g.createContext({}),w2=g.createContext({});let J3=n=>{let{onHoverStart:i,onHoverChange:r,onHoverEnd:c,...o}=n;return o};const W3=Ar(function(i,r){[i,r]=Bu(i,r,w2);let{hoverProps:c,isHovered:o}=A2(i),{isFocused:f,isFocusVisible:v,focusProps:h}=C2({isTextInput:!0,autoFocus:i.autoFocus}),b=!!i["aria-invalid"]&&i["aria-invalid"]!=="false",m=Co({...i,values:{isHovered:o,isFocused:f,isFocusVisible:v,isDisabled:i.disabled||!1,isInvalid:b},defaultClassName:"react-aria-Input"});return re.createElement("input",{...It(J3(i),h,c),...m,ref:r,"data-focused":f||void 0,"data-disabled":i.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":v||void 0,"data-invalid":b||void 0})}),I3=g.createContext({}),e4=g.createContext(null),t4=Ar(function(i,r){[i,r]=Bu(i,r,e4);let{validationBehavior:c}=f2(F3)||{};var o,f;let v=(f=(o=i.validationBehavior)!==null&&o!==void 0?o:c)!==null&&f!==void 0?f:"native",h=g.useRef(null);[i,h]=Bu(i,h,og);let[b,m]=t3(!i["aria-label"]&&!i["aria-labelledby"]),[p,M]=g.useState("input"),{labelProps:D,inputProps:q,descriptionProps:K,errorMessageProps:R,...L}=B3({...l3(i),inputElementType:p,label:m,validationBehavior:v},h),W=g.useCallback(J=>{h.current=J,J&&M(J instanceof HTMLTextAreaElement?"textarea":"input")},[h]),G=Co({...i,values:{isDisabled:i.isDisabled||!1,isInvalid:L.isInvalid,isReadOnly:i.isReadOnly||!1,isRequired:i.isRequired||!1},defaultClassName:"react-aria-TextField"}),k=xr(i,{global:!0});return delete k.id,re.createElement("div",{...k,...G,ref:r,slot:i.slot||void 0,"data-disabled":i.isDisabled||void 0,"data-invalid":L.isInvalid||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},re.createElement(e3,{values:[[D2,{...D,ref:b}],[w2,{...q,ref:W}],[I3,{...q,ref:W}],[P3,{role:"presentation",isInvalid:L.isInvalid,isDisabled:i.isDisabled||!1}],[Q3,{slots:{description:K,errorMessage:R}}],[K3,L]]},G.children))}),l4=(n,i)=>{const{size:r="40",label:c,icon:o,placeholder:f,type:v="text",inputMode:h,autoComplete:b="off",clearable:m=!1,maxLength:p,...M}=n;return T.jsxs(t4,{...M,className:"grid gap-2",children:[(c||p)&&T.jsxs("div",{className:"grid grid-cols-2",children:[T.jsx(gv,{className:"text-13 font-medium text-neutral-50 dark:text-neutral-40",children:c}),p&&T.jsxs(gv,{className:"text-right text-13 font-regular text-neutral-50 dark:text-neutral-40",children:[M.value?.length,"/",p]})]}),T.jsxs("div",{className:"relative",children:[o&&T.jsx("span",{className:n4({size:r}),children:g.cloneElement(o)}),T.jsx(W3,{ref:i,type:v,inputMode:h,autoComplete:b,placeholder:f,className:a4({size:r,icon:!!o,clearable:m})}),m&&T.jsx(k3,{className:u4({size:r}),"aria-label":"Clear input",onPress:()=>n.onChange?.(""),children:T.jsx(lb,{})})]})]})},a4=qu({base:["block h-10 w-full min-w-0 flex-1 border border-neutral-20 bg-white-100 text-15 text-neutral-100 placeholder-neutral-40 max-sm:text-[1rem]","outline-none focus:border-neutral-40","disabled:border-neutral-20 disabled:opacity-[.3]","invalid:border-danger-50/40","dark:border-neutral-70 dark:bg-neutral-95 dark:text-white-100 dark:placeholder-neutral-50","dark:invalid:border-danger-50/40"],variants:{size:{40:"h-10 rounded-12 px-3",32:"h-8 rounded-10 px-2"},icon:{true:""},clearable:{true:""}},compoundVariants:[{size:"40",icon:!0,className:"pl-10"},{icon:!0,size:"32",className:"pl-8"},{size:"40",clearable:!0,className:"pr-10"},{size:"32",clearable:!0,className:"pr-8"}]}),n4=qu({base:["absolute top-1/2 -translate-y-1/2 text-neutral-50 [&>svg]:size-full","dark:text-neutral-40"],variants:{size:{40:"left-3",32:"left-2"}}}),u4=qu({base:["absolute top-1/2 size-5 -translate-y-1/2 text-neutral-40 dark:text-neutral-60","outline-none"],variants:{size:{40:"right-3",32:"right-2"}}}),i4=g.forwardRef(l4);var Cr="Dialog",[R2]=Lm(Cr),[r4,el]=R2(Cr),N2=n=>{const{__scopeDialog:i,children:r,open:c,defaultOpen:o,onOpenChange:f,modal:v=!0}=n,h=g.useRef(null),b=g.useRef(null),[m,p]=Ym({prop:c,defaultProp:o??!1,onChange:f,caller:Cr});return T.jsx(r4,{scope:i,triggerRef:h,contentRef:b,contentId:Js(),titleId:Js(),descriptionId:Js(),open:m,onOpenChange:p,onOpenToggle:g.useCallback(()=>p(M=>!M),[p]),modal:v,children:r})};N2.displayName=Cr;var $2="DialogTrigger",z2=g.forwardRef((n,i)=>{const{__scopeDialog:r,...c}=n,o=el($2,r),f=Ma(i,o.triggerRef);return T.jsx(Cl.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ro(o.open),...c,ref:f,onClick:ea(n.onClick,o.onOpenToggle)})});z2.displayName=$2;var Do="DialogPortal",[c4,U2]=R2(Do,{forceMount:void 0}),V2=n=>{const{__scopeDialog:i,forceMount:r,children:c,container:o}=n,f=el(Do,i);return T.jsx(c4,{scope:i,forceMount:r,children:g.Children.map(c,v=>T.jsx(Er,{present:r||f.open,children:T.jsx(Gv,{asChild:!0,container:o,children:v})}))})};V2.displayName=Do;var yr="DialogOverlay",j2=g.forwardRef((n,i)=>{const r=U2(yr,n.__scopeDialog),{forceMount:c=r.forceMount,...o}=n,f=el(yr,n.__scopeDialog);return f.modal?T.jsx(Er,{present:c||f.open,children:T.jsx(o4,{...o,ref:i})}):null});j2.displayName=yr;var s4=So("DialogOverlay.RemoveScroll"),o4=g.forwardRef((n,i)=>{const{__scopeDialog:r,...c}=n,o=el(yr,r);return T.jsx(Wv,{as:s4,allowPinchZoom:!0,shards:[o.contentRef],children:T.jsx(Cl.div,{"data-state":Ro(o.open),...c,ref:i,style:{pointerEvents:"auto",...c.style}})})}),Ca="DialogContent",H2=g.forwardRef((n,i)=>{const r=U2(Ca,n.__scopeDialog),{forceMount:c=r.forceMount,...o}=n,f=el(Ca,n.__scopeDialog);return T.jsx(Er,{present:c||f.open,children:f.modal?T.jsx(f4,{...o,ref:i}):T.jsx(d4,{...o,ref:i})})});H2.displayName=Ca;var f4=g.forwardRef((n,i)=>{const r=el(Ca,n.__scopeDialog),c=g.useRef(null),o=Ma(i,r.contentRef,c);return g.useEffect(()=>{const f=c.current;if(f)return Mb(f)},[]),T.jsx(L2,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ea(n.onCloseAutoFocus,f=>{f.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ea(n.onPointerDownOutside,f=>{const v=f.detail.originalEvent,h=v.button===0&&v.ctrlKey===!0;(v.button===2||h)&&f.preventDefault()}),onFocusOutside:ea(n.onFocusOutside,f=>f.preventDefault())})}),d4=g.forwardRef((n,i)=>{const r=el(Ca,n.__scopeDialog),c=g.useRef(!1),o=g.useRef(!1);return T.jsx(L2,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{n.onCloseAutoFocus?.(f),f.defaultPrevented||(c.current||r.triggerRef.current?.focus(),f.preventDefault()),c.current=!1,o.current=!1},onInteractOutside:f=>{n.onInteractOutside?.(f),f.defaultPrevented||(c.current=!0,f.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const v=f.target;r.triggerRef.current?.contains(v)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&o.current&&f.preventDefault()}})}),L2=g.forwardRef((n,i)=>{const{__scopeDialog:r,trapFocus:c,onOpenAutoFocus:o,onCloseAutoFocus:f,...v}=n,h=el(Ca,r),b=g.useRef(null),m=Ma(i,b);return vb(),T.jsxs(T.Fragment,{children:[T.jsx(qv,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:o,onUnmountAutoFocus:f,children:T.jsx(xo,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Ro(h.open),...v,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),T.jsxs(T.Fragment,{children:[T.jsx(v4,{titleId:h.titleId}),T.jsx(y4,{contentRef:b,descriptionId:h.descriptionId})]})]})}),wo="DialogTitle",B2=g.forwardRef((n,i)=>{const{__scopeDialog:r,...c}=n,o=el(wo,r);return T.jsx(Cl.h2,{id:o.titleId,...c,ref:i})});B2.displayName=wo;var q2="DialogDescription",Y2=g.forwardRef((n,i)=>{const{__scopeDialog:r,...c}=n,o=el(q2,r);return T.jsx(Cl.p,{id:o.descriptionId,...c,ref:i})});Y2.displayName=q2;var G2="DialogClose",Z2=g.forwardRef((n,i)=>{const{__scopeDialog:r,...c}=n,o=el(G2,r);return T.jsx(Cl.button,{type:"button",...c,ref:i,onClick:ea(n.onClick,()=>o.onOpenChange(!1))})});Z2.displayName=G2;function Ro(n){return n?"open":"closed"}var k2="DialogTitleWarning",[w6,X2]=Hm(k2,{contentName:Ca,titleName:wo,docsSlug:"dialog"}),v4=({titleId:n})=>{const i=X2(k2),r=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return g.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},h4="DialogDescriptionWarning",y4=({contentRef:n,descriptionId:i})=>{const c=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${X2(h4).contentName}}.`;return g.useEffect(()=>{const o=n.current?.getAttribute("aria-describedby");i&&o&&(document.getElementById(i)||console.warn(c))},[c,n,i]),null},m4=N2,R6=z2,b4=V2,g4=j2,p4=H2,E4=B2,S4=Y2,x4=Z2,Yu=n=>n.type==="checkbox",_a=n=>n instanceof Date,Tt=n=>n==null;const Q2=n=>typeof n=="object";var Ie=n=>!Tt(n)&&!Array.isArray(n)&&Q2(n)&&!_a(n),K2=n=>Ie(n)&&n.target?Yu(n.target)?n.target.checked:n.target.value:n,T4=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,F2=(n,i)=>n.has(T4(i)),_4=n=>{const i=n.constructor&&n.constructor.prototype;return Ie(i)&&i.hasOwnProperty("isPrototypeOf")},No=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lt(n){let i;const r=Array.isArray(n),c=typeof FileList<"u"?n instanceof FileList:!1;if(n instanceof Date)i=new Date(n);else if(!(No&&(n instanceof Blob||c))&&(r||Ie(n)))if(i=r?[]:Object.create(Object.getPrototypeOf(n)),!r&&!_4(n))i=n;else for(const o in n)n.hasOwnProperty(o)&&(i[o]=lt(n[o]));else return n;return i}var Mr=n=>/^\w*$/.test(n),Qe=n=>n===void 0,$o=n=>Array.isArray(n)?n.filter(Boolean):[],zo=n=>$o(n.replace(/["|']|\]/g,"").split(/\.|\[/)),ee=(n,i,r)=>{if(!i||!Ie(n))return r;const c=(Mr(i)?[i]:zo(i)).reduce((o,f)=>Tt(o)?o:o[f],n);return Qe(c)||c===n?Qe(n[i])?r:n[i]:c},Nt=n=>typeof n=="boolean",Ue=(n,i,r)=>{let c=-1;const o=Mr(i)?[i]:zo(i),f=o.length,v=f-1;for(;++c<f;){const h=o[c];let b=r;if(c!==v){const m=n[h];b=Ie(m)||Array.isArray(m)?m:isNaN(+o[c+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;n[h]=b,n=n[h]}};const mr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Pt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Al={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Uo=re.createContext(null);Uo.displayName="HookFormContext";const Vo=()=>re.useContext(Uo),N6=n=>{const{children:i,...r}=n;return re.createElement(Uo.Provider,{value:r},i)};var P2=(n,i,r,c=!0)=>{const o={defaultValues:i._defaultValues};for(const f in n)Object.defineProperty(o,f,{get:()=>{const v=f;return i._proxyFormState[v]!==Pt.all&&(i._proxyFormState[v]=!c||Pt.all),r&&(r[v]=!0),n[v]}});return o};const jo=typeof window<"u"?re.useLayoutEffect:re.useEffect;function A4(n){const i=Vo(),{control:r=i.control,disabled:c,name:o,exact:f}=n||{},[v,h]=re.useState(r._formState),b=re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return jo(()=>r._subscribe({name:o,formState:b.current,exact:f,callback:m=>{!c&&h({...r._formState,...m})}}),[o,c,f]),re.useEffect(()=>{b.current.isValid&&r._setValid(!0)},[r]),re.useMemo(()=>P2(v,r,b.current,!1),[v,r])}var $t=n=>typeof n=="string",bo=(n,i,r,c,o)=>$t(n)?(c&&i.watch.add(n),ee(r,n,o)):Array.isArray(n)?n.map(f=>(c&&i.watch.add(f),ee(r,f))):(c&&(i.watchAll=!0),r),go=n=>Tt(n)||!Q2(n);function Jt(n,i,r=new WeakSet){if(go(n)||go(i))return n===i;if(_a(n)&&_a(i))return n.getTime()===i.getTime();const c=Object.keys(n),o=Object.keys(i);if(c.length!==o.length)return!1;if(r.has(n)||r.has(i))return!0;r.add(n),r.add(i);for(const f of c){const v=n[f];if(!o.includes(f))return!1;if(f!=="ref"){const h=i[f];if(_a(v)&&_a(h)||Ie(v)&&Ie(h)||Array.isArray(v)&&Array.isArray(h)?!Jt(v,h,r):v!==h)return!1}}return!0}function C4(n){const i=Vo(),{control:r=i.control,name:c,defaultValue:o,disabled:f,exact:v,compute:h}=n||{},b=re.useRef(o),m=re.useRef(h),p=re.useRef(void 0),M=re.useRef(r),D=re.useRef(c);m.current=h;const[q,K]=re.useState(()=>{const J=r._getWatch(c,b.current);return m.current?m.current(J):J}),R=re.useCallback(J=>{const Q=bo(c,r._names,J||r._formValues,!1,b.current);return m.current?m.current(Q):Q},[r._formValues,r._names,c]),L=re.useCallback(J=>{if(!f){const Q=bo(c,r._names,J||r._formValues,!1,b.current);if(m.current){const ve=m.current(Q);Jt(ve,p.current)||(K(ve),p.current=ve)}else K(Q)}},[r._formValues,r._names,f,c]);jo(()=>((M.current!==r||!Jt(D.current,c))&&(M.current=r,D.current=c,L()),r._subscribe({name:c,formState:{values:!0},exact:v,callback:J=>{L(J.values)}})),[r,v,c,L]),re.useEffect(()=>r._removeUnmounted());const W=M.current!==r,G=D.current,k=re.useMemo(()=>{if(f)return null;const J=!W&&!Jt(G,c);return W||J?R():null},[f,W,c,G,R]);return k!==null?k:q}function M4(n){const i=Vo(),{name:r,disabled:c,control:o=i.control,shouldUnregister:f,defaultValue:v}=n,h=F2(o._names.array,r),b=re.useMemo(()=>ee(o._formValues,r,ee(o._defaultValues,r,v)),[o,r,v]),m=C4({control:o,name:r,defaultValue:b,exact:!0}),p=A4({control:o,name:r,exact:!0}),M=re.useRef(n),D=re.useRef(void 0),q=re.useRef(o.register(r,{...n.rules,value:m,...Nt(n.disabled)?{disabled:n.disabled}:{}}));M.current=n;const K=re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ee(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!ee(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ee(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ee(p.validatingFields,r)},error:{enumerable:!0,get:()=>ee(p.errors,r)}}),[p,r]),R=re.useCallback(k=>q.current.onChange({target:{value:K2(k),name:r},type:mr.CHANGE}),[r]),L=re.useCallback(()=>q.current.onBlur({target:{value:ee(o._formValues,r),name:r},type:mr.BLUR}),[r,o._formValues]),W=re.useCallback(k=>{const J=ee(o._fields,r);J&&k&&(J._f.ref={focus:()=>k.focus&&k.focus(),select:()=>k.select&&k.select(),setCustomValidity:Q=>k.setCustomValidity(Q),reportValidity:()=>k.reportValidity()})},[o._fields,r]),G=re.useMemo(()=>({name:r,value:m,...Nt(c)||p.disabled?{disabled:p.disabled||c}:{},onChange:R,onBlur:L,ref:W}),[r,c,p.disabled,R,L,W,m]);return re.useEffect(()=>{const k=o._options.shouldUnregister||f,J=D.current;J&&J!==r&&!h&&o.unregister(J),o.register(r,{...M.current.rules,...Nt(M.current.disabled)?{disabled:M.current.disabled}:{}});const Q=(ve,ue)=>{const Ae=ee(o._fields,ve);Ae&&Ae._f&&(Ae._f.mount=ue)};if(Q(r,!0),k){const ve=lt(ee(o._options.defaultValues,r,M.current.defaultValue));Ue(o._defaultValues,r,ve),Qe(ee(o._formValues,r))&&Ue(o._formValues,r,ve)}return!h&&o.register(r),D.current=r,()=>{(h?k&&!o._state.action:k)?o.unregister(r):Q(r,!1)}},[r,o,h,f]),re.useEffect(()=>{o._setDisabledField({disabled:c,name:r})},[c,r,o]),re.useMemo(()=>({field:G,formState:p,fieldState:K}),[G,p,K])}const O4=n=>n.render(M4(n));var J2=(n,i,r,c,o)=>i?{...r[n],types:{...r[n]&&r[n].types?r[n].types:{},[c]:o||!0}}:{},$u=n=>Array.isArray(n)?n:[n],pv=()=>{let n=[];return{get observers(){return n},next:o=>{for(const f of n)f.next&&f.next(o)},subscribe:o=>(n.push(o),{unsubscribe:()=>{n=n.filter(f=>f!==o)}}),unsubscribe:()=>{n=[]}}};function W2(n,i){const r={};for(const c in n)if(n.hasOwnProperty(c)){const o=n[c],f=i[c];if(o&&Ie(o)&&f){const v=W2(o,f);Ie(v)&&(r[c]=v)}else n[c]&&(r[c]=f)}return r}var mt=n=>Ie(n)&&!Object.keys(n).length,Ho=n=>n.type==="file",Wt=n=>typeof n=="function",br=n=>{if(!No)return!1;const i=n?n.ownerDocument:0;return n instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},I2=n=>n.type==="select-multiple",Lo=n=>n.type==="radio",D4=n=>Lo(n)||Yu(n),io=n=>br(n)&&n.isConnected;function w4(n,i){const r=i.slice(0,-1).length;let c=0;for(;c<r;)n=Qe(n)?c++:n[i[c++]];return n}function R4(n){for(const i in n)if(n.hasOwnProperty(i)&&!Qe(n[i]))return!1;return!0}function We(n,i){const r=Array.isArray(i)?i:Mr(i)?[i]:zo(i),c=r.length===1?n:w4(n,r),o=r.length-1,f=r[o];return c&&delete c[f],o!==0&&(Ie(c)&&mt(c)||Array.isArray(c)&&R4(c))&&We(n,r.slice(0,-1)),n}var N4=n=>{for(const i in n)if(Wt(n[i]))return!0;return!1};function eh(n){return Array.isArray(n)||Ie(n)&&!N4(n)}function po(n,i={}){for(const r in n)eh(n[r])?(i[r]=Array.isArray(n[r])?[]:{},po(n[r],i[r])):Qe(n[r])||(i[r]=!0);return i}function Tn(n,i,r){r||(r=po(i));for(const c in n)eh(n[c])?Qe(i)||go(r[c])?r[c]=po(n[c],Array.isArray(n[c])?[]:{}):Tn(n[c],Tt(i)?{}:i[c],r[c]):r[c]=!Jt(n[c],i[c]);return r}const Ev={value:!1,isValid:!1},Sv={value:!0,isValid:!0};var th=n=>{if(Array.isArray(n)){if(n.length>1){const i=n.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!Qe(n[0].attributes.value)?Qe(n[0].value)||n[0].value===""?Sv:{value:n[0].value,isValid:!0}:Sv:Ev}return Ev},lh=(n,{valueAsNumber:i,valueAsDate:r,setValueAs:c})=>Qe(n)?n:i?n===""?NaN:n&&+n:r&&$t(n)?new Date(n):c?c(n):n;const xv={isValid:!1,value:null};var ah=n=>Array.isArray(n)?n.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,xv):xv;function Tv(n){const i=n.ref;return Ho(i)?i.files:Lo(i)?ah(n.refs).value:I2(i)?[...i.selectedOptions].map(({value:r})=>r):Yu(i)?th(n.refs).value:lh(Qe(i.value)?n.ref.value:i.value,n)}var $4=(n,i,r,c)=>{const o={};for(const f of n){const v=ee(i,f);v&&Ue(o,f,v._f)}return{criteriaMode:r,names:[...n],fields:o,shouldUseNativeValidation:c}},gr=n=>n instanceof RegExp,wu=n=>Qe(n)?n:gr(n)?n.source:Ie(n)?gr(n.value)?n.value.source:n.value:n,_v=n=>({isOnSubmit:!n||n===Pt.onSubmit,isOnBlur:n===Pt.onBlur,isOnChange:n===Pt.onChange,isOnAll:n===Pt.all,isOnTouch:n===Pt.onTouched});const Av="AsyncFunction";var z4=n=>!!n&&!!n.validate&&!!(Wt(n.validate)&&n.validate.constructor.name===Av||Ie(n.validate)&&Object.values(n.validate).find(i=>i.constructor.name===Av)),U4=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),Cv=(n,i,r)=>!r&&(i.watchAll||i.watch.has(n)||[...i.watch].some(c=>n.startsWith(c)&&/^\.\w+/.test(n.slice(c.length))));const zu=(n,i,r,c)=>{for(const o of r||Object.keys(n)){const f=ee(n,o);if(f){const{_f:v,...h}=f;if(v){if(v.refs&&v.refs[0]&&i(v.refs[0],o)&&!c)return!0;if(v.ref&&i(v.ref,v.name)&&!c)return!0;if(zu(h,i))break}else if(Ie(h)&&zu(h,i))break}}};function Mv(n,i,r){const c=ee(n,r);if(c||Mr(r))return{error:c,name:r};const o=r.split(".");for(;o.length;){const f=o.join("."),v=ee(i,f),h=ee(n,f);if(v&&!Array.isArray(v)&&r!==f)return{name:r};if(h&&h.type)return{name:f,error:h};if(h&&h.root&&h.root.type)return{name:`${f}.root`,error:h.root};o.pop()}return{name:r}}var V4=(n,i,r,c)=>{r(n);const{name:o,...f}=n;return mt(f)||Object.keys(f).length>=Object.keys(i).length||Object.keys(f).find(v=>i[v]===(!c||Pt.all))},j4=(n,i,r)=>!n||!i||n===i||$u(n).some(c=>c&&(r?c===i:c.startsWith(i)||i.startsWith(c))),H4=(n,i,r,c,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(i||n):(r?c.isOnBlur:o.isOnBlur)?!n:(r?c.isOnChange:o.isOnChange)?n:!0,L4=(n,i)=>!$o(ee(n,i)).length&&We(n,i),B4=(n,i,r)=>{const c=$u(ee(n,r));return Ue(c,"root",i[r]),Ue(n,r,c),n};function Ov(n,i,r="validate"){if($t(n)||Array.isArray(n)&&n.every($t)||Nt(n)&&!n)return{type:r,message:$t(n)?n:"",ref:i}}var xn=n=>Ie(n)&&!gr(n)?n:{value:n,message:""},Dv=async(n,i,r,c,o,f)=>{const{ref:v,refs:h,required:b,maxLength:m,minLength:p,min:M,max:D,pattern:q,validate:K,name:R,valueAsNumber:L,mount:W}=n._f,G=ee(r,R);if(!W||i.has(R))return{};const k=h?h[0]:v,J=F=>{o&&k.reportValidity&&(k.setCustomValidity(Nt(F)?"":F||""),k.reportValidity())},Q={},ve=Lo(v),ue=Yu(v),Ae=ve||ue,we=(L||Ho(v))&&Qe(v.value)&&Qe(G)||br(v)&&v.value===""||G===""||Array.isArray(G)&&!G.length,Ce=J2.bind(null,R,c,Q),H=(F,oe,X,fe=Al.maxLength,A=Al.minLength)=>{const Z=F?oe:X;Q[R]={type:F?fe:A,message:Z,ref:v,...Ce(F?fe:A,Z)}};if(f?!Array.isArray(G)||!G.length:b&&(!Ae&&(we||Tt(G))||Nt(G)&&!G||ue&&!th(h).isValid||ve&&!ah(h).isValid)){const{value:F,message:oe}=$t(b)?{value:!!b,message:b}:xn(b);if(F&&(Q[R]={type:Al.required,message:oe,ref:k,...Ce(Al.required,oe)},!c))return J(oe),Q}if(!we&&(!Tt(M)||!Tt(D))){let F,oe;const X=xn(D),fe=xn(M);if(!Tt(G)&&!isNaN(G)){const A=v.valueAsNumber||G&&+G;Tt(X.value)||(F=A>X.value),Tt(fe.value)||(oe=A<fe.value)}else{const A=v.valueAsDate||new Date(G),Z=x=>new Date(new Date().toDateString()+" "+x),ae=v.type=="time",ge=v.type=="week";$t(X.value)&&G&&(F=ae?Z(G)>Z(X.value):ge?G>X.value:A>new Date(X.value)),$t(fe.value)&&G&&(oe=ae?Z(G)<Z(fe.value):ge?G<fe.value:A<new Date(fe.value))}if((F||oe)&&(H(!!F,X.message,fe.message,Al.max,Al.min),!c))return J(Q[R].message),Q}if((m||p)&&!we&&($t(G)||f&&Array.isArray(G))){const F=xn(m),oe=xn(p),X=!Tt(F.value)&&G.length>+F.value,fe=!Tt(oe.value)&&G.length<+oe.value;if((X||fe)&&(H(X,F.message,oe.message),!c))return J(Q[R].message),Q}if(q&&!we&&$t(G)){const{value:F,message:oe}=xn(q);if(gr(F)&&!G.match(F)&&(Q[R]={type:Al.pattern,message:oe,ref:v,...Ce(Al.pattern,oe)},!c))return J(oe),Q}if(K){if(Wt(K)){const F=await K(G,r),oe=Ov(F,k);if(oe&&(Q[R]={...oe,...Ce(Al.validate,oe.message)},!c))return J(oe.message),Q}else if(Ie(K)){let F={};for(const oe in K){if(!mt(F)&&!c)break;const X=Ov(await K[oe](G,r),k,oe);X&&(F={...X,...Ce(oe,X.message)},J(X.message),c&&(Q[R]=F))}if(!mt(F)&&(Q[R]={ref:k,...F},!c))return Q}}return J(!0),Q};const q4={mode:Pt.onSubmit,reValidateMode:Pt.onChange,shouldFocusError:!0};function Y4(n={}){let i={...q4,...n},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Wt(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},c={},o=Ie(i.defaultValues)||Ie(i.values)?lt(i.defaultValues||i.values)||{}:{},f=i.shouldUnregister?{}:lt(o),v={action:!1,mount:!1,watch:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},b,m=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let M={...p};const D={array:pv(),state:pv()},q=i.criteriaMode===Pt.all,K=S=>N=>{clearTimeout(m),m=setTimeout(S,N)},R=async S=>{if(!i.disabled&&(p.isValid||M.isValid||S)){const N=i.resolver?mt((await ue()).errors):await we(c,!0);N!==r.isValid&&D.state.next({isValid:N})}},L=(S,N)=>{!i.disabled&&(p.isValidating||p.validatingFields||M.isValidating||M.validatingFields)&&((S||Array.from(h.mount)).forEach(U=>{U&&(N?Ue(r.validatingFields,U,N):We(r.validatingFields,U))}),D.state.next({validatingFields:r.validatingFields,isValidating:!mt(r.validatingFields)}))},W=(S,N=[],U,le,I=!0,P=!0)=>{if(le&&U&&!i.disabled){if(v.action=!0,P&&Array.isArray(ee(c,S))){const ce=U(ee(c,S),le.argA,le.argB);I&&Ue(c,S,ce)}if(P&&Array.isArray(ee(r.errors,S))){const ce=U(ee(r.errors,S),le.argA,le.argB);I&&Ue(r.errors,S,ce),L4(r.errors,S)}if((p.touchedFields||M.touchedFields)&&P&&Array.isArray(ee(r.touchedFields,S))){const ce=U(ee(r.touchedFields,S),le.argA,le.argB);I&&Ue(r.touchedFields,S,ce)}(p.dirtyFields||M.dirtyFields)&&(r.dirtyFields=Tn(o,f)),D.state.next({name:S,isDirty:H(S,N),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ue(f,S,N)},G=(S,N)=>{Ue(r.errors,S,N),D.state.next({errors:r.errors})},k=S=>{r.errors=S,D.state.next({errors:r.errors,isValid:!1})},J=(S,N,U,le)=>{const I=ee(c,S);if(I){const P=ee(f,S,Qe(U)?ee(o,S):U);Qe(P)||le&&le.defaultChecked||N?Ue(f,S,N?P:Tv(I._f)):X(S,P),v.mount&&R()}},Q=(S,N,U,le,I)=>{let P=!1,ce=!1;const pe={name:S};if(!i.disabled){if(!U||le){(p.isDirty||M.isDirty)&&(ce=r.isDirty,r.isDirty=pe.isDirty=H(),P=ce!==pe.isDirty);const Oe=Jt(ee(o,S),N);ce=!!ee(r.dirtyFields,S),Oe?We(r.dirtyFields,S):Ue(r.dirtyFields,S,!0),pe.dirtyFields=r.dirtyFields,P=P||(p.dirtyFields||M.dirtyFields)&&ce!==!Oe}if(U){const Oe=ee(r.touchedFields,S);Oe||(Ue(r.touchedFields,S,U),pe.touchedFields=r.touchedFields,P=P||(p.touchedFields||M.touchedFields)&&Oe!==U)}P&&I&&D.state.next(pe)}return P?pe:{}},ve=(S,N,U,le)=>{const I=ee(r.errors,S),P=(p.isValid||M.isValid)&&Nt(N)&&r.isValid!==N;if(i.delayError&&U?(b=K(()=>G(S,U)),b(i.delayError)):(clearTimeout(m),b=null,U?Ue(r.errors,S,U):We(r.errors,S)),(U?!Jt(I,U):I)||!mt(le)||P){const ce={...le,...P&&Nt(N)?{isValid:N}:{},errors:r.errors,name:S};r={...r,...ce},D.state.next(ce)}},ue=async S=>{L(S,!0);const N=await i.resolver(f,i.context,$4(S||h.mount,c,i.criteriaMode,i.shouldUseNativeValidation));return L(S),N},Ae=async S=>{const{errors:N}=await ue(S);if(S)for(const U of S){const le=ee(N,U);le?Ue(r.errors,U,le):We(r.errors,U)}else r.errors=N;return N},we=async(S,N,U={valid:!0})=>{for(const le in S){const I=S[le];if(I){const{_f:P,...ce}=I;if(P){const pe=h.array.has(P.name),Oe=I._f&&z4(I._f);Oe&&p.validatingFields&&L([P.name],!0);const qe=await Dv(I,h.disabled,f,q,i.shouldUseNativeValidation&&!N,pe);if(Oe&&p.validatingFields&&L([P.name]),qe[P.name]&&(U.valid=!1,N))break;!N&&(ee(qe,P.name)?pe?B4(r.errors,qe,P.name):Ue(r.errors,P.name,qe[P.name]):We(r.errors,P.name))}!mt(ce)&&await we(ce,N,U)}}return U.valid},Ce=()=>{for(const S of h.unMount){const N=ee(c,S);N&&(N._f.refs?N._f.refs.every(U=>!io(U)):!io(N._f.ref))&&rt(S)}h.unMount=new Set},H=(S,N)=>!i.disabled&&(S&&N&&Ue(f,S,N),!Jt(x(),o)),F=(S,N,U)=>bo(S,h,{...v.mount?f:Qe(N)?o:$t(S)?{[S]:N}:N},U,N),oe=S=>$o(ee(v.mount?f:o,S,i.shouldUnregister?ee(o,S,[]):[])),X=(S,N,U={})=>{const le=ee(c,S);let I=N;if(le){const P=le._f;P&&(!P.disabled&&Ue(f,S,lh(N,P)),I=br(P.ref)&&Tt(N)?"":N,I2(P.ref)?[...P.ref.options].forEach(ce=>ce.selected=I.includes(ce.value)):P.refs?Yu(P.ref)?P.refs.forEach(ce=>{(!ce.defaultChecked||!ce.disabled)&&(Array.isArray(I)?ce.checked=!!I.find(pe=>pe===ce.value):ce.checked=I===ce.value||!!I)}):P.refs.forEach(ce=>ce.checked=ce.value===I):Ho(P.ref)?P.ref.value="":(P.ref.value=I,P.ref.type||D.state.next({name:S,values:lt(f)})))}(U.shouldDirty||U.shouldTouch)&&Q(S,I,U.shouldTouch,U.shouldDirty,!0),U.shouldValidate&&ge(S)},fe=(S,N,U)=>{for(const le in N){if(!N.hasOwnProperty(le))return;const I=N[le],P=S+"."+le,ce=ee(c,P);(h.array.has(S)||Ie(I)||ce&&!ce._f)&&!_a(I)?fe(P,I,U):X(P,I,U)}},A=(S,N,U={})=>{const le=ee(c,S),I=h.array.has(S),P=lt(N);Ue(f,S,P),I?(D.array.next({name:S,values:lt(f)}),(p.isDirty||p.dirtyFields||M.isDirty||M.dirtyFields)&&U.shouldDirty&&D.state.next({name:S,dirtyFields:Tn(o,f),isDirty:H(S,P)})):le&&!le._f&&!Tt(P)?fe(S,P,U):X(S,P,U),Cv(S,h)&&D.state.next({...r,name:S}),D.state.next({name:v.mount?S:void 0,values:lt(f)})},Z=async S=>{v.mount=!0;const N=S.target;let U=N.name,le=!0;const I=ee(c,U),P=Oe=>{le=Number.isNaN(Oe)||_a(Oe)&&isNaN(Oe.getTime())||Jt(Oe,ee(f,U,Oe))},ce=_v(i.mode),pe=_v(i.reValidateMode);if(I){let Oe,qe;const Na=N.type?Tv(I._f):K2(S),tl=S.type===mr.BLUR||S.type===mr.FOCUS_OUT,Dr=!U4(I._f)&&!i.resolver&&!ee(r.errors,U)&&!I._f.deps||H4(tl,ee(r.touchedFields,U),r.isSubmitted,pe,ce),Ml=Cv(U,h,tl);Ue(f,U,Na),tl?(!N||!N.readOnly)&&(I._f.onBlur&&I._f.onBlur(S),b&&b(0)):I._f.onChange&&I._f.onChange(S);const Ol=Q(U,Na,tl),sl=!mt(Ol)||Ml;if(!tl&&D.state.next({name:U,type:S.type,values:lt(f)}),Dr)return(p.isValid||M.isValid)&&(i.mode==="onBlur"?tl&&R():tl||R()),sl&&D.state.next({name:U,...Ml?{}:Ol});if(!tl&&Ml&&D.state.next({...r}),i.resolver){const{errors:na}=await ue([U]);if(P(Na),le){const ua=Mv(r.errors,c,U),Zu=Mv(na,c,ua.name||U);Oe=Zu.error,U=Zu.name,qe=mt(na)}}else L([U],!0),Oe=(await Dv(I,h.disabled,f,q,i.shouldUseNativeValidation))[U],L([U]),P(Na),le&&(Oe?qe=!1:(p.isValid||M.isValid)&&(qe=await we(c,!0)));le&&(I._f.deps&&(!Array.isArray(I._f.deps)||I._f.deps.length>0)&&ge(I._f.deps),ve(U,qe,Oe,Ol))}},ae=(S,N)=>{if(ee(r.errors,N)&&S.focus)return S.focus(),1},ge=async(S,N={})=>{let U,le;const I=$u(S);if(i.resolver){const P=await Ae(Qe(S)?S:I);U=mt(P),le=S?!I.some(ce=>ee(P,ce)):U}else S?(le=(await Promise.all(I.map(async P=>{const ce=ee(c,P);return await we(ce&&ce._f?{[P]:ce}:ce)}))).every(Boolean),!(!le&&!r.isValid)&&R()):le=U=await we(c);return D.state.next({...!$t(S)||(p.isValid||M.isValid)&&U!==r.isValid?{}:{name:S},...i.resolver||!S?{isValid:U}:{},errors:r.errors}),N.shouldFocus&&!le&&zu(c,ae,S?I:h.mount),le},x=(S,N)=>{let U={...v.mount?f:o};return N&&(U=W2(N.dirtyFields?r.dirtyFields:r.touchedFields,U)),Qe(S)?U:$t(S)?ee(U,S):S.map(le=>ee(U,le))},Y=(S,N)=>({invalid:!!ee((N||r).errors,S),isDirty:!!ee((N||r).dirtyFields,S),error:ee((N||r).errors,S),isValidating:!!ee(r.validatingFields,S),isTouched:!!ee((N||r).touchedFields,S)}),ne=S=>{S&&$u(S).forEach(N=>We(r.errors,N)),D.state.next({errors:S?r.errors:{}})},te=(S,N,U)=>{const le=(ee(c,S,{_f:{}})._f||{}).ref,I=ee(r.errors,S)||{},{ref:P,message:ce,type:pe,...Oe}=I;Ue(r.errors,S,{...Oe,...N,ref:le}),D.state.next({name:S,errors:r.errors,isValid:!1}),U&&U.shouldFocus&&le&&le.focus&&le.focus()},de=(S,N)=>Wt(S)?D.state.subscribe({next:U=>"values"in U&&S(F(void 0,N),U)}):F(S,N,!0),Me=S=>D.state.subscribe({next:N=>{j4(S.name,N.name,S.exact)&&V4(N,S.formState||p,Ut,S.reRenderRoot)&&S.callback({values:{...f},...r,...N,defaultValues:o})}}).unsubscribe,be=S=>(v.mount=!0,M={...M,...S.formState},Me({...S,formState:M})),rt=(S,N={})=>{for(const U of S?$u(S):h.mount)h.mount.delete(U),h.array.delete(U),N.keepValue||(We(c,U),We(f,U)),!N.keepError&&We(r.errors,U),!N.keepDirty&&We(r.dirtyFields,U),!N.keepTouched&&We(r.touchedFields,U),!N.keepIsValidating&&We(r.validatingFields,U),!i.shouldUnregister&&!N.keepDefaultValue&&We(o,U);D.state.next({values:lt(f)}),D.state.next({...r,...N.keepDirty?{isDirty:H()}:{}}),!N.keepIsValid&&R()},Le=({disabled:S,name:N})=>{(Nt(S)&&v.mount||S||h.disabled.has(N))&&(S?h.disabled.add(N):h.disabled.delete(N))},zt=(S,N={})=>{let U=ee(c,S);const le=Nt(N.disabled)||Nt(i.disabled);return Ue(c,S,{...U||{},_f:{...U&&U._f?U._f:{ref:{name:S}},name:S,mount:!0,...N}}),h.mount.add(S),U?Le({disabled:Nt(N.disabled)?N.disabled:i.disabled,name:S}):J(S,!0,N.value),{...le?{disabled:N.disabled||i.disabled}:{},...i.progressive?{required:!!N.required,min:wu(N.min),max:wu(N.max),minLength:wu(N.minLength),maxLength:wu(N.maxLength),pattern:wu(N.pattern)}:{},name:S,onChange:Z,onBlur:Z,ref:I=>{if(I){zt(S,N),U=ee(c,S);const P=Qe(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,ce=D4(P),pe=U._f.refs||[];if(ce?pe.find(Oe=>Oe===P):P===U._f.ref)return;Ue(c,S,{_f:{...U._f,...ce?{refs:[...pe.filter(io),P,...Array.isArray(ee(o,S))?[{}]:[]],ref:{type:P.type,name:S}}:{ref:P}}}),J(S,!1,void 0,P)}else U=ee(c,S,{}),U._f&&(U._f.mount=!1),(i.shouldUnregister||N.shouldUnregister)&&!(F2(h.array,S)&&v.action)&&h.unMount.add(S)}}},aa=()=>i.shouldFocusError&&zu(c,ae,h.mount),Da=S=>{Nt(S)&&(D.state.next({disabled:S}),zu(c,(N,U)=>{const le=ee(c,U);le&&(N.disabled=le._f.disabled||S,Array.isArray(le._f.refs)&&le._f.refs.forEach(I=>{I.disabled=le._f.disabled||S}))},0,!1))},wa=(S,N)=>async U=>{let le;U&&(U.preventDefault&&U.preventDefault(),U.persist&&U.persist());let I=lt(f);if(D.state.next({isSubmitting:!0}),i.resolver){const{errors:P,values:ce}=await ue();r.errors=P,I=lt(ce)}else await we(c);if(h.disabled.size)for(const P of h.disabled)We(I,P);if(We(r.errors,"root"),mt(r.errors)){D.state.next({errors:{}});try{await S(I,U)}catch(P){le=P}}else N&&await N({...r.errors},U),aa(),setTimeout(aa);if(D.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:mt(r.errors)&&!le,submitCount:r.submitCount+1,errors:r.errors}),le)throw le},wn=(S,N={})=>{ee(c,S)&&(Qe(N.defaultValue)?A(S,lt(ee(o,S))):(A(S,N.defaultValue),Ue(o,S,lt(N.defaultValue))),N.keepTouched||We(r.touchedFields,S),N.keepDirty||(We(r.dirtyFields,S),r.isDirty=N.defaultValue?H(S,lt(ee(o,S))):H()),N.keepError||(We(r.errors,S),p.isValid&&R()),D.state.next({...r}))},Ra=(S,N={})=>{const U=S?lt(S):o,le=lt(U),I=mt(S),P=I?o:le;if(N.keepDefaultValues||(o=U),!N.keepValues){if(N.keepDirtyValues){const ce=new Set([...h.mount,...Object.keys(Tn(o,f))]);for(const pe of Array.from(ce))ee(r.dirtyFields,pe)?Ue(P,pe,ee(f,pe)):A(pe,ee(P,pe))}else{if(No&&Qe(S))for(const ce of h.mount){const pe=ee(c,ce);if(pe&&pe._f){const Oe=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(br(Oe)){const qe=Oe.closest("form");if(qe){qe.reset();break}}}}if(N.keepFieldsRef)for(const ce of h.mount)A(ce,ee(P,ce));else c={}}f=i.shouldUnregister?N.keepDefaultValues?lt(o):{}:lt(P),D.array.next({values:{...P}}),D.state.next({values:{...P}})}h={mount:N.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},v.mount=!p.isValid||!!N.keepIsValid||!!N.keepDirtyValues||!i.shouldUnregister&&!mt(P),v.watch=!!i.shouldUnregister,D.state.next({submitCount:N.keepSubmitCount?r.submitCount:0,isDirty:I?!1:N.keepDirty?r.isDirty:!!(N.keepDefaultValues&&!Jt(S,o)),isSubmitted:N.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:I?{}:N.keepDirtyValues?N.keepDefaultValues&&f?Tn(o,f):r.dirtyFields:N.keepDefaultValues&&S?Tn(o,S):N.keepDirty?r.dirtyFields:{},touchedFields:N.keepTouched?r.touchedFields:{},errors:N.keepErrors?r.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Gu=(S,N)=>Ra(Wt(S)?S(f):S,N),Or=(S,N={})=>{const U=ee(c,S),le=U&&U._f;if(le){const I=le.refs?le.refs[0]:le.ref;I.focus&&(I.focus(),N.shouldSelect&&Wt(I.select)&&I.select())}},Ut=S=>{r={...r,...S}},Rn={control:{register:zt,unregister:rt,getFieldState:Y,handleSubmit:wa,setError:te,_subscribe:Me,_runSchema:ue,_focusError:aa,_getWatch:F,_getDirty:H,_setValid:R,_setFieldArray:W,_setDisabledField:Le,_setErrors:k,_getFieldArray:oe,_reset:Ra,_resetDefaultValues:()=>Wt(i.defaultValues)&&i.defaultValues().then(S=>{Gu(S,i.resetOptions),D.state.next({isLoading:!1})}),_removeUnmounted:Ce,_disableForm:Da,_subjects:D,_proxyFormState:p,get _fields(){return c},get _formValues(){return f},get _state(){return v},set _state(S){v=S},get _defaultValues(){return o},get _names(){return h},set _names(S){h=S},get _formState(){return r},get _options(){return i},set _options(S){i={...i,...S}}},subscribe:be,trigger:ge,register:zt,handleSubmit:wa,watch:de,setValue:A,getValues:x,reset:Gu,resetField:wn,clearErrors:ne,unregister:rt,setError:te,setFocus:Or,getFieldState:Y};return{...Rn,formControl:Rn}}function G4(n={}){const i=re.useRef(void 0),r=re.useRef(void 0),[c,o]=re.useState({isDirty:!1,isValidating:!1,isLoading:Wt(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:Wt(n.defaultValues)?void 0:n.defaultValues});if(!i.current)if(n.formControl)i.current={...n.formControl,formState:c},n.defaultValues&&!Wt(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:v,...h}=Y4(n);i.current={...h,formState:c}}const f=i.current.control;return f._options=n,jo(()=>{const v=f._subscribe({formState:f._proxyFormState,callback:()=>o({...f._formState}),reRenderRoot:!0});return o(h=>({...h,isReady:!0})),f._formState.isReady=!0,v},[f]),re.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),re.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),re.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),re.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),re.useEffect(()=>{if(f._proxyFormState.isDirty){const v=f._getDirty();v!==c.isDirty&&f._subjects.state.next({isDirty:v})}},[f,c.isDirty]),re.useEffect(()=>{n.values&&!Jt(n.values,r.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),r.current=n.values,o(v=>({...v}))):f._resetDefaultValues()},[f,n.values]),re.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),i.current.formState=P2(c,f),i.current}const wv=(n,i,r)=>{if(n&&"reportValidity"in n){const c=ee(r,i);n.setCustomValidity(c&&c.message||""),n.reportValidity()}},nh=(n,i)=>{for(const r in i.fields){const c=i.fields[r];c&&c.ref&&"reportValidity"in c.ref?wv(c.ref,r,n):c.refs&&c.refs.forEach(o=>wv(o,r,n))}},Z4=(n,i)=>{i.shouldUseNativeValidation&&nh(n,i);const r={};for(const c in n){const o=ee(i.fields,c),f=Object.assign(n[c]||{},{ref:o&&o.ref});if(k4(i.names||Object.keys(n),c)){const v=Object.assign({},ee(r,c));Ue(v,"root",f),Ue(r,c,v)}else Ue(r,c,f)}return r},k4=(n,i)=>n.some(r=>r.startsWith(i+"."));var X4=function(n,i){for(var r={};n.length;){var c=n[0],o=c.code,f=c.message,v=c.path.join(".");if(!r[v])if("unionErrors"in c){var h=c.unionErrors[0].errors[0];r[v]={message:h.message,type:h.code}}else r[v]={message:f,type:o};if("unionErrors"in c&&c.unionErrors.forEach(function(p){return p.errors.forEach(function(M){return n.push(M)})}),i){var b=r[v].types,m=b&&b[c.code];r[v]=J2(v,i,r,o,m?[].concat(m,c.message):c.message)}n.shift()}return r},Q4=function(n,i,r){return r===void 0&&(r={}),function(c,o,f){try{return Promise.resolve((function(v,h){try{var b=Promise.resolve(n[r.mode==="sync"?"parse":"parseAsync"](c,i)).then(function(m){return f.shouldUseNativeValidation&&nh({},f),{errors:{},values:r.raw?c:m}})}catch(m){return h(m)}return b&&b.then?b.then(void 0,h):b})(0,function(v){if((function(h){return Array.isArray(h?.errors)})(v))return{values:{},errors:Z4(X4(v.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw v}))}catch(v){return Promise.reject(v)}}};const K4=Em({password:Sm().min(1,"Password is required")}),$6=n=>{const{control:i,handleSubmit:r,formState:{errors:c},reset:o,setError:f}=G4({resolver:Q4(K4),defaultValues:{password:""}}),{open:v,onOpenChange:h,onConfirm:b,isLoading:m=!1,buttonLabel:p="Confirm",title:M="Enter password",description:D="To sign transaction"}=n,[q,K]=g.useState(!1),R=async G=>{try{await b(G.password),o()}catch(k){k instanceof Error&&(k.message==="Invalid password"?f("password",{message:"Password is incorrect. Try again."}):f("password",{message:"An error occurred. Please try again."}))}},L=G=>{h(G),G||o()},W=()=>T.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-white-100 border-t-transparent"});return T.jsx(m4,{open:v,onOpenChange:L,children:T.jsxs(b4,{children:[T.jsx(g4,{className:Um("fixed inset-0 bg-blur-neutral-100/70 backdrop-blur-[2px] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in")}),T.jsx(p4,{"data-customisation":"blue",className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-[24px]",children:T.jsxs("div",{className:"flex min-h-[251px] w-screen max-w-[436px] flex-col rounded-16 border border-neutral-10 bg-white-100 p-4 shadow-3",children:[T.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[T.jsx(E4,{className:"text-27 font-semibold",children:M}),T.jsx(x4,{asChild:!0,children:T.jsx(G1,{icon:T.jsx(ab,{}),"aria-label":"Close",variant:"outline",size:"32",disabled:m})})]}),T.jsx(S4,{className:"mb-5 text-13 text-neutral-50",children:D}),T.jsxs("form",{onSubmit:r(R),className:"flex flex-1 flex-col place-content-between",children:[T.jsxs("div",{className:"mb-4 w-full",children:[T.jsx(O4,{name:"password",control:i,render:({field:G})=>T.jsxs("div",{className:"relative",children:[T.jsx(i4,{...G,type:q?"text":"password",placeholder:"Type password","aria-label":"Password",isInvalid:!!c.password,isDisabled:m,onKeyDown:k=>{k.key==="Enter"&&!m&&r(R)()}}),T.jsx("button",{type:"button",onClick:()=>K(!q),"aria-label":q?"Hide password":"Show password",className:"absolute right-4 top-1/2 -translate-y-1/2 text-neutral-50 hover:text-neutral-70",children:q?T.jsx(nb,{}):T.jsx(ub,{})})]})}),c.password&&T.jsxs("div",{className:"mt-2 flex items-center gap-1 text-13 text-danger-50",children:[T.jsx(tb,{className:"size-4"}),T.jsx("p",{children:c.password.message})]})]}),T.jsx(G1,{variant:"primary",className:"w-full flex-1",type:"submit",disabled:m,children:m?T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsx(W,{}),T.jsx("span",{children:"Signing..."})]}):p})]})]})})]})})},uh=xm(),ih=g.createContext(uh);function z6(){const n=g.useContext(ih);if(!n)throw new Error("useAPI must be used within a APIClientProvider");return n}function U6(n){const{children:i}=n;return T.jsx(ih.Provider,{value:uh,children:i})}export{b6 as $,x6 as A,i4 as B,D6 as C,xo as D,G1 as E,qv as F,O6 as G,c6 as H,v6 as I,e6 as J,Mg as K,m4 as L,b4 as M,p4 as N,E4 as O,Er as P,g4 as Q,J4 as R,x4 as S,R6 as T,r6 as U,$6 as V,l6 as W,p6 as X,u6 as Y,_6 as Z,m6 as _,uh as a,Km as a0,S6 as a1,M4 as a2,nb as a3,ub as a4,G4 as a5,Q4 as a6,N6 as a7,y6 as a8,s6 as a9,tb as aa,A6 as ab,S4 as ac,O4 as ad,z6 as ae,E6 as af,i6 as ag,M6 as ah,t6 as ai,d6 as aj,h6 as ak,a6 as al,P4 as am,Rv as an,I4 as ao,n6 as ap,C6 as aq,g6 as ar,T6 as as,W4 as at,U6 as au,Lm as b,qu as c,Cl as d,Ym as e,ab as f,Ma as g,ea as h,Um as i,T as j,re as k,So as l,Vv as m,Vu as n,o6 as o,Js as p,Gv as q,g as r,Mb as s,eb as t,Uu as u,vb as v,Wv as w,Uv as x,Eo as y,f6 as z};
