@nightnetwork/night-auth 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,114 @@
1
+ (function(nr,Wi){typeof exports=="object"&&typeof module<"u"?Wi(exports):typeof define=="function"&&define.amd?define(["exports"],Wi):(nr=typeof globalThis<"u"?globalThis:nr||self,Wi(nr.NightLoginFrame={}))})(this,function(nr){"use strict";function Wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hu={exports:{}},Ve={};/**
2
+ * @license React
3
+ * react.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var km;function Vw(){if(km)return Ve;km=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=y&&w[y]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function $(w,Q,se){this.props=w,this.context=Q,this.refs=D,this.updater=se||E}$.prototype.isReactComponent={},$.prototype.setState=function(w,Q){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,Q,"setState")},$.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function X(){}X.prototype=$.prototype;function R(w,Q,se){this.props=w,this.context=Q,this.refs=D,this.updater=se||E}var Z=R.prototype=new X;Z.constructor=R,_(Z,$.prototype),Z.isPureReactComponent=!0;var W=Array.isArray,Y={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function J(w,Q,se,ie,fe,Te){return se=Te.ref,{$$typeof:e,type:w,key:Q,ref:se!==void 0?se:null,props:Te}}function H(w,Q){return J(w.type,Q,void 0,void 0,void 0,w.props)}function ce(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function me(w){var Q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(se){return Q[se]})}var G=/\/+/g;function q(w,Q){return typeof w=="object"&&w!==null&&w.key!=null?me(""+w.key):Q.toString(36)}function ae(){}function U(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ae,ae):(w.status="pending",w.then(function(Q){w.status==="pending"&&(w.status="fulfilled",w.value=Q)},function(Q){w.status==="pending"&&(w.status="rejected",w.reason=Q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ne(w,Q,se,ie,fe){var Te=typeof w;(Te==="undefined"||Te==="boolean")&&(w=null);var Se=!1;if(w===null)Se=!0;else switch(Te){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(w.$$typeof){case e:case n:Se=!0;break;case g:return Se=w._init,ne(Se(w._payload),Q,se,ie,fe)}}if(Se)return fe=fe(w),Se=ie===""?"."+q(w,0):ie,W(fe)?(se="",Se!=null&&(se=Se.replace(G,"$&/")+"/"),ne(fe,Q,se,"",function(vt){return vt})):fe!=null&&(ce(fe)&&(fe=H(fe,se+(fe.key==null||w&&w.key===fe.key?"":(""+fe.key).replace(G,"$&/")+"/")+Se)),Q.push(fe)),1;Se=0;var De=ie===""?".":ie+":";if(W(w))for(var Be=0;Be<w.length;Be++)ie=w[Be],Te=De+q(ie,Be),Se+=ne(ie,Q,se,Te,fe);else if(Be=x(w),typeof Be=="function")for(w=Be.call(w),Be=0;!(ie=w.next()).done;)ie=ie.value,Te=De+q(ie,Be++),Se+=ne(ie,Q,se,Te,fe);else if(Te==="object"){if(typeof w.then=="function")return ne(U(w),Q,se,ie,fe);throw Q=String(w),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function S(w,Q,se){if(w==null)return w;var ie=[],fe=0;return ne(w,ie,"","",function(Te){return Q.call(se,Te,fe++)}),ie}function j(w){if(w._status===-1){var Q=w._result;Q=Q(),Q.then(function(se){(w._status===0||w._status===-1)&&(w._status=1,w._result=se)},function(se){(w._status===0||w._status===-1)&&(w._status=2,w._result=se)}),w._status===-1&&(w._status=0,w._result=Q)}if(w._status===1)return w._result.default;throw w._result}var z=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function le(){}return Ve.Children={map:S,forEach:function(w,Q,se){S(w,function(){Q.apply(this,arguments)},se)},count:function(w){var Q=0;return S(w,function(){Q++}),Q},toArray:function(w){return S(w,function(Q){return Q})||[]},only:function(w){if(!ce(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},Ve.Component=$,Ve.Fragment=r,Ve.Profiler=l,Ve.PureComponent=R,Ve.StrictMode=s,Ve.Suspense=m,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(w){return Y.H.useMemoCache(w)}},Ve.cache=function(w){return function(){return w.apply(null,arguments)}},Ve.cloneElement=function(w,Q,se){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ie=_({},w.props),fe=w.key,Te=void 0;if(Q!=null)for(Se in Q.ref!==void 0&&(Te=void 0),Q.key!==void 0&&(fe=""+Q.key),Q)!O.call(Q,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&Q.ref===void 0||(ie[Se]=Q[Se]);var Se=arguments.length-2;if(Se===1)ie.children=se;else if(1<Se){for(var De=Array(Se),Be=0;Be<Se;Be++)De[Be]=arguments[Be+2];ie.children=De}return J(w.type,fe,void 0,void 0,Te,ie)},Ve.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:c,_context:w},w},Ve.createElement=function(w,Q,se){var ie,fe={},Te=null;if(Q!=null)for(ie in Q.key!==void 0&&(Te=""+Q.key),Q)O.call(Q,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(fe[ie]=Q[ie]);var Se=arguments.length-2;if(Se===1)fe.children=se;else if(1<Se){for(var De=Array(Se),Be=0;Be<Se;Be++)De[Be]=arguments[Be+2];fe.children=De}if(w&&w.defaultProps)for(ie in Se=w.defaultProps,Se)fe[ie]===void 0&&(fe[ie]=Se[ie]);return J(w,Te,void 0,void 0,null,fe)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(w){return{$$typeof:h,render:w}},Ve.isValidElement=ce,Ve.lazy=function(w){return{$$typeof:g,_payload:{_status:-1,_result:w},_init:j}},Ve.memo=function(w,Q){return{$$typeof:p,type:w,compare:Q===void 0?null:Q}},Ve.startTransition=function(w){var Q=Y.T,se={};Y.T=se;try{var ie=w(),fe=Y.S;fe!==null&&fe(se,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(le,z)}catch(Te){z(Te)}finally{Y.T=Q}},Ve.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},Ve.use=function(w){return Y.H.use(w)},Ve.useActionState=function(w,Q,se){return Y.H.useActionState(w,Q,se)},Ve.useCallback=function(w,Q){return Y.H.useCallback(w,Q)},Ve.useContext=function(w){return Y.H.useContext(w)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(w,Q){return Y.H.useDeferredValue(w,Q)},Ve.useEffect=function(w,Q,se){var ie=Y.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ie.useEffect(w,Q)},Ve.useId=function(){return Y.H.useId()},Ve.useImperativeHandle=function(w,Q,se){return Y.H.useImperativeHandle(w,Q,se)},Ve.useInsertionEffect=function(w,Q){return Y.H.useInsertionEffect(w,Q)},Ve.useLayoutEffect=function(w,Q){return Y.H.useLayoutEffect(w,Q)},Ve.useMemo=function(w,Q){return Y.H.useMemo(w,Q)},Ve.useOptimistic=function(w,Q){return Y.H.useOptimistic(w,Q)},Ve.useReducer=function(w,Q,se){return Y.H.useReducer(w,Q,se)},Ve.useRef=function(w){return Y.H.useRef(w)},Ve.useState=function(w){return Y.H.useState(w)},Ve.useSyncExternalStore=function(w,Q,se){return Y.H.useSyncExternalStore(w,Q,se)},Ve.useTransition=function(){return Y.H.useTransition()},Ve.version="19.1.0",Ve}var $m;function ko(){return $m||($m=1,Hu.exports=Vw()),Hu.exports}var C=ko();const Re=Wi(C);var Gu={exports:{}},es={},qu={exports:{}},Yu={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var jm;function Ow(){return jm||(jm=1,function(e){function n(S,j){var z=S.length;S.push(j);e:for(;0<z;){var le=z-1>>>1,w=S[le];if(0<l(w,j))S[le]=j,S[z]=w,z=le;else break e}}function r(S){return S.length===0?null:S[0]}function s(S){if(S.length===0)return null;var j=S[0],z=S.pop();if(z!==j){S[0]=z;e:for(var le=0,w=S.length,Q=w>>>1;le<Q;){var se=2*(le+1)-1,ie=S[se],fe=se+1,Te=S[fe];if(0>l(ie,z))fe<w&&0>l(Te,ie)?(S[le]=Te,S[fe]=z,le=fe):(S[le]=ie,S[se]=z,le=se);else if(fe<w&&0>l(Te,z))S[le]=Te,S[fe]=z,le=fe;else break e}}return j}function l(S,j){var z=S.sortIndex-j.sortIndex;return z!==0?z:S.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var m=[],p=[],g=1,y=null,x=3,E=!1,_=!1,D=!1,$=!1,X=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function W(S){for(var j=r(p);j!==null;){if(j.callback===null)s(p);else if(j.startTime<=S)s(p),j.sortIndex=j.expirationTime,n(m,j);else break;j=r(p)}}function Y(S){if(D=!1,W(S),!_)if(r(m)!==null)_=!0,O||(O=!0,q());else{var j=r(p);j!==null&&ne(Y,j.startTime-S)}}var O=!1,J=-1,H=5,ce=-1;function me(){return $?!0:!(e.unstable_now()-ce<H)}function G(){if($=!1,O){var S=e.unstable_now();ce=S;var j=!0;try{e:{_=!1,D&&(D=!1,R(J),J=-1),E=!0;var z=x;try{t:{for(W(S),y=r(m);y!==null&&!(y.expirationTime>S&&me());){var le=y.callback;if(typeof le=="function"){y.callback=null,x=y.priorityLevel;var w=le(y.expirationTime<=S);if(S=e.unstable_now(),typeof w=="function"){y.callback=w,W(S),j=!0;break t}y===r(m)&&s(m),W(S)}else s(m);y=r(m)}if(y!==null)j=!0;else{var Q=r(p);Q!==null&&ne(Y,Q.startTime-S),j=!1}}break e}finally{y=null,x=z,E=!1}j=void 0}}finally{j?q():O=!1}}}var q;if(typeof Z=="function")q=function(){Z(G)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,U=ae.port2;ae.port1.onmessage=G,q=function(){U.postMessage(null)}}else q=function(){X(G,0)};function ne(S,j){J=X(function(){S(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<S?Math.floor(1e3/S):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(S){switch(x){case 1:case 2:case 3:var j=3;break;default:j=x}var z=x;x=j;try{return S()}finally{x=z}},e.unstable_requestPaint=function(){$=!0},e.unstable_runWithPriority=function(S,j){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var z=x;x=S;try{return j()}finally{x=z}},e.unstable_scheduleCallback=function(S,j,z){var le=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?le+z:le):z=le,S){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=z+w,S={id:g++,callback:j,priorityLevel:S,startTime:z,expirationTime:w,sortIndex:-1},z>le?(S.sortIndex=z,n(p,S),r(m)===null&&S===r(p)&&(D?(R(J),J=-1):D=!0,ne(Y,z-le))):(S.sortIndex=w,n(m,S),_||E||(_=!0,O||(O=!0,q()))),S},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(S){var j=x;return function(){var z=x;x=j;try{return S.apply(this,arguments)}finally{x=z}}}}(Yu)),Yu}var Nm;function kw(){return Nm||(Nm=1,qu.exports=Ow()),qu.exports}var Fu={exports:{}},Lt={};/**
18
+ * @license React
19
+ * react-dom.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Lm;function $w(){if(Lm)return Lt;Lm=1;var e=ko();function n(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(m,p,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:m,containerInfo:p,implementation:g}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Lt.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return c(m,p,null,g)},Lt.flushSync=function(m){var p=f.T,g=s.p;try{if(f.T=null,s.p=2,m)return m()}finally{f.T=p,s.p=g,s.d.f()}},Lt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},Lt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Lt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,y=h(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:E}):g==="script"&&s.d.X(m,{crossOrigin:y,integrity:x,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Lt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},Lt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,y=h(g,p.crossOrigin);s.d.L(m,g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Lt.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Lt.requestFormReset=function(m){s.d.r(m)},Lt.unstable_batchedUpdates=function(m,p){return m(p)},Lt.useFormState=function(m,p,g){return f.H.useFormState(m,p,g)},Lt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Lt.version="19.1.0",Lt}var Um;function jw(){if(Um)return Fu.exports;Um=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Fu.exports=$w(),Fu.exports}/**
26
+ * @license React
27
+ * react-dom-client.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Bm;function Nw(){if(Bm)return es;Bm=1;var e=kw(),n=ko(),r=jw();function s(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function f(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(c(t)!==t)throw Error(s(188))}function m(t){var a=t.alternate;if(!a){if(a=c(t),a===null)throw Error(s(188));return a!==t?null:t}for(var i=t,o=a;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(o=u.return,o!==null){i=o;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return h(u),t;if(d===o)return h(u),a;d=d.sibling}throw Error(s(188))}if(i.return!==o.return)i=u,o=d;else{for(var v=!1,b=u.child;b;){if(b===i){v=!0,i=u,o=d;break}if(b===o){v=!0,o=u,i=d;break}b=b.sibling}if(!v){for(b=d.child;b;){if(b===i){v=!0,i=d,o=u;break}if(b===o){v=!0,o=d,i=u;break}b=b.sibling}if(!v)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:a}function p(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=p(t),a!==null)return a;t=t.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function q(t){return t===null||typeof t!="object"?null:(t=G&&t[G]||t["@@iterator"],typeof t=="function"?t:null)}var ae=Symbol.for("react.client.reference");function U(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case $:return"Profiler";case D:return"StrictMode";case Y:return"Suspense";case O:return"SuspenseList";case ce:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case Z:return(t.displayName||"Context")+".Provider";case R:return(t._context.displayName||"Context")+".Consumer";case W:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return a=t.displayName||null,a!==null?a:U(t.type)||"Memo";case H:a=t._payload,t=t._init;try{return U(t(a))}catch{}}return null}var ne=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},le=[],w=-1;function Q(t){return{current:t}}function se(t){0>w||(t.current=le[w],le[w]=null,w--)}function ie(t,a){w++,le[w]=t.current,t.current=a}var fe=Q(null),Te=Q(null),Se=Q(null),De=Q(null);function Be(t,a){switch(ie(Se,a),ie(Te,t),ie(fe,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?sw(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=sw(a),t=ow(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}se(fe),ie(fe,t)}function vt(){se(fe),se(Te),se(Se)}function Yt(t){t.memoizedState!==null&&ie(De,t);var a=fe.current,i=ow(a,t.type);a!==i&&(ie(Te,t),ie(fe,i))}function Ct(t){Te.current===t&&(se(fe),se(Te)),De.current===t&&(se(De),Do._currentValue=z)}var Mt=Object.prototype.hasOwnProperty,Ft=e.unstable_scheduleCallback,Gn=e.unstable_cancelCallback,hi=e.unstable_shouldYield,js=e.unstable_requestPaint,Jt=e.unstable_now,ra=e.unstable_getCurrentPriorityLevel,Ra=e.unstable_ImmediatePriority,A=e.unstable_UserBlockingPriority,N=e.unstable_NormalPriority,K=e.unstable_LowPriority,he=e.unstable_IdlePriority,ue=e.log,oe=e.unstable_setDisableYieldValue,ve=null,ze=null;function $e(t){if(typeof ue=="function"&&oe(t),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(ve,t)}catch{}}var Fe=Math.clz32?Math.clz32:Ns,Va=Math.log,Sn=Math.LN2;function Ns(t){return t>>>=0,t===0?32:31-(Va(t)/Sn|0)|0}var qn=256,Dt=4194304;function ia(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function xr(t,a,i){var o=t.pendingLanes;if(o===0)return 0;var u=0,d=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var b=o&134217727;return b!==0?(o=b&~d,o!==0?u=ia(o):(v&=b,v!==0?u=ia(v):i||(i=b&~t,i!==0&&(u=ia(i))))):(b=o&~d,b!==0?u=ia(b):v!==0?u=ia(v):i||(i=o&~t,i!==0&&(u=ia(i)))),u===0?0:a!==0&&a!==u&&(a&d)===0&&(d=u&-u,i=a&-a,d>=i||d===32&&(i&4194048)!==0)?a:u}function Sr(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function Vl(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 H0(){var t=qn;return qn<<=1,(qn&4194048)===0&&(qn=256),t}function G0(){var t=Dt;return Dt<<=1,(Dt&62914560)===0&&(Dt=4194304),t}function Td(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function Ls(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function pR(t,a,i,o,u,d){var v=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,L=t.hiddenUpdates;for(i=v&~i;0<i;){var I=31-Fe(i),te=1<<I;b[I]=0,T[I]=-1;var B=L[I];if(B!==null)for(L[I]=null,I=0;I<B.length;I++){var P=B[I];P!==null&&(P.lane&=-536870913)}i&=~te}o!==0&&q0(t,o,0),d!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=d&~(v&~a))}function q0(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var o=31-Fe(a);t.entangledLanes|=a,t.entanglements[o]=t.entanglements[o]|1073741824|i&4194090}function Y0(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var o=31-Fe(i),u=1<<o;u&a|t[o]&a&&(t[o]|=a),i&=~u}}function Ed(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ad(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function F0(){var t=j.p;return t!==0?t:(t=window.event,t===void 0?32:_w(t.type))}function gR(t,a){var i=j.p;try{return j.p=t,a()}finally{j.p=i}}var Oa=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Oa,Wt="__reactProps$"+Oa,mi="__reactContainer$"+Oa,_d="__reactEvents$"+Oa,vR="__reactListeners$"+Oa,yR="__reactHandles$"+Oa,X0="__reactResources$"+Oa,Us="__reactMarker$"+Oa;function Cd(t){delete t[Bt],delete t[Wt],delete t[_d],delete t[vR],delete t[yR]}function pi(t){var a=t[Bt];if(a)return a;for(var i=t.parentNode;i;){if(a=i[mi]||i[Bt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=fw(t);t!==null;){if(i=t[Bt])return i;t=fw(t)}return a}t=i,i=t.parentNode}return null}function gi(t){if(t=t[Bt]||t[mi]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function Bs(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(s(33))}function vi(t){var a=t[X0];return a||(a=t[X0]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function zt(t){t[Us]=!0}var K0=new Set,Q0={};function wr(t,a){yi(t,a),yi(t+"Capture",a)}function yi(t,a){for(Q0[t]=a,t=0;t<a.length;t++)K0.add(a[t])}var bR=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]*$"),I0={},J0={};function xR(t){return Mt.call(J0,t)?!0:Mt.call(I0,t)?!1:bR.test(t)?J0[t]=!0:(I0[t]=!0,!1)}function Ol(t,a,i){if(xR(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function kl(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function sa(t,a,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+o)}}var Md,W0;function bi(t){if(Md===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Md=a&&a[1]||"",W0=-1<i.stack.indexOf(`
34
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
35
+ `+Md+t+W0}var Dd=!1;function zd(t,a){if(!t||Dd)return"";Dd=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(P){var B=P}Reflect.construct(t,[],te)}else{try{te.call()}catch(P){B=P}t.call(te.prototype)}}else{try{throw Error()}catch(P){B=P}(te=t())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(P){if(P&&B&&typeof P.stack=="string")return[P.stack,B.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),v=d[0],b=d[1];if(v&&b){var T=v.split(`
36
+ `),L=b.split(`
37
+ `);for(u=o=0;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;for(;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;if(o===T.length||u===L.length)for(o=T.length-1,u=L.length-1;1<=o&&0<=u&&T[o]!==L[u];)u--;for(;1<=o&&0<=u;o--,u--)if(T[o]!==L[u]){if(o!==1||u!==1)do if(o--,u--,0>u||T[o]!==L[u]){var I=`
38
+ `+T[o].replace(" at new "," at ");return t.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",t.displayName)),I}while(1<=o&&0<=u);break}}}finally{Dd=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?bi(i):""}function SR(t){switch(t.tag){case 26:case 27:case 5:return bi(t.type);case 16:return bi("Lazy");case 13:return bi("Suspense");case 19:return bi("SuspenseList");case 0:case 15:return zd(t.type,!1);case 11:return zd(t.type.render,!1);case 1:return zd(t.type,!0);case 31:return bi("Activity");default:return""}}function e1(t){try{var a="";do a+=SR(t),t=t.return;while(t);return a}catch(i){return`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}}function wn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function t1(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function wR(t){var a=t1(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),o=""+t[a];if(!t.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return u.call(this)},set:function(v){o=""+v,d.call(this,v)}}),Object.defineProperty(t,a,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function $l(t){t._valueTracker||(t._valueTracker=wR(t))}function n1(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return t&&(o=t1(t)?t.checked?"true":"false":t.value),t=o,t!==i?(a.setValue(t),!0):!1}function jl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var TR=/[\n"\\]/g;function Tn(t){return t.replace(TR,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Rd(t,a,i,o,u,d,v,b){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),a!=null?v==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+wn(a)):t.value!==""+wn(a)&&(t.value=""+wn(a)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),a!=null?Vd(t,v,wn(a)):i!=null?Vd(t,v,wn(i)):o!=null&&t.removeAttribute("value"),u==null&&d!=null&&(t.defaultChecked=!!d),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+wn(b):t.removeAttribute("name")}function a1(t,a,i,o,u,d,v,b){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.type=d),a!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||a!=null))return;i=i!=null?""+wn(i):"",a=a!=null?""+wn(a):i,b||a===t.value||(t.value=a),t.defaultValue=a}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=b?t.checked:!!o,t.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v)}function Vd(t,a,i){a==="number"&&jl(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function xi(t,a,i,o){if(t=t.options,a){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=!0;for(i=0;i<t.length;i++)u=a.hasOwnProperty("$"+t[i].value),t[i].selected!==u&&(t[i].selected=u),u&&o&&(t[i].defaultSelected=!0)}else{for(i=""+wn(i),a=null,u=0;u<t.length;u++){if(t[u].value===i){t[u].selected=!0,o&&(t[u].defaultSelected=!0);return}a!==null||t[u].disabled||(a=t[u])}a!==null&&(a.selected=!0)}}function r1(t,a,i){if(a!=null&&(a=""+wn(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+wn(i):""}function i1(t,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(s(92));if(ne(o)){if(1<o.length)throw Error(s(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=wn(a),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o)}function Si(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var ER=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 s1(t,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":o?t.setProperty(a,i):typeof i!="number"||i===0||ER.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function o1(t,a,i){if(a!=null&&typeof a!="object")throw Error(s(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var u in a)o=a[u],a.hasOwnProperty(u)&&i[u]!==o&&s1(t,u,o)}else for(var d in a)a.hasOwnProperty(d)&&s1(t,d,a[d])}function Od(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var AR=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"]]),_R=/^[\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 Nl(t){return _R.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var kd=null;function $d(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wi=null,Ti=null;function l1(t){var a=gi(t);if(a&&(t=a.stateNode)){var i=t[Wt]||null;e:switch(t=a.stateNode,a.type){case"input":if(Rd(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Tn(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==t&&o.form===t.form){var u=o[Wt]||null;if(!u)throw Error(s(90));Rd(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===t.form&&n1(o)}break e;case"textarea":r1(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&xi(t,!!i.multiple,a,!1)}}}var jd=!1;function u1(t,a,i){if(jd)return t(a,i);jd=!0;try{var o=t(a);return o}finally{if(jd=!1,(wi!==null||Ti!==null)&&(wu(),wi&&(a=wi,t=Ti,Ti=wi=null,l1(a),t)))for(a=0;a<t.length;a++)l1(t[a])}}function Ps(t,a){var i=t.stateNode;if(i===null)return null;var o=i[Wt]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,a,typeof i));return i}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nd=!1;if(oa)try{var Zs={};Object.defineProperty(Zs,"passive",{get:function(){Nd=!0}}),window.addEventListener("test",Zs,Zs),window.removeEventListener("test",Zs,Zs)}catch{Nd=!1}var ka=null,Ld=null,Ll=null;function c1(){if(Ll)return Ll;var t,a=Ld,i=a.length,o,u="value"in ka?ka.value:ka.textContent,d=u.length;for(t=0;t<i&&a[t]===u[t];t++);var v=i-t;for(o=1;o<=v&&a[i-o]===u[d-o];o++);return Ll=u.slice(t,1<o?1-o:void 0)}function Ul(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Bl(){return!0}function f1(){return!1}function en(t){function a(i,o,u,d,v){this._reactName=i,this._targetInst=u,this.type=o,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(i=t[b],this[b]=i?i(d):d[b]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Bl:f1,this.isPropagationStopped=f1,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),a}var Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pl=en(Tr),Hs=g({},Tr,{view:0,detail:0}),CR=en(Hs),Ud,Bd,Gs,Zl=g({},Hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Gs&&(Gs&&t.type==="mousemove"?(Ud=t.screenX-Gs.screenX,Bd=t.screenY-Gs.screenY):Bd=Ud=0,Gs=t),Ud)},movementY:function(t){return"movementY"in t?t.movementY:Bd}}),d1=en(Zl),MR=g({},Zl,{dataTransfer:0}),DR=en(MR),zR=g({},Hs,{relatedTarget:0}),Pd=en(zR),RR=g({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),VR=en(RR),OR=g({},Tr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),kR=en(OR),$R=g({},Tr,{data:0}),h1=en($R),jR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NR={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"},LR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function UR(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=LR[t])?!!a[t]:!1}function Zd(){return UR}var BR=g({},Hs,{key:function(t){if(t.key){var a=jR[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Ul(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?NR[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zd,charCode:function(t){return t.type==="keypress"?Ul(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ul(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),PR=en(BR),ZR=g({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),m1=en(ZR),HR=g({},Hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zd}),GR=en(HR),qR=g({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),YR=en(qR),FR=g({},Zl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),XR=en(FR),KR=g({},Tr,{newState:0,oldState:0}),QR=en(KR),IR=[9,13,27,32],Hd=oa&&"CompositionEvent"in window,qs=null;oa&&"documentMode"in document&&(qs=document.documentMode);var JR=oa&&"TextEvent"in window&&!qs,p1=oa&&(!Hd||qs&&8<qs&&11>=qs),g1=" ",v1=!1;function y1(t,a){switch(t){case"keyup":return IR.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function WR(t,a){switch(t){case"compositionend":return b1(a);case"keypress":return a.which!==32?null:(v1=!0,g1);case"textInput":return t=a.data,t===g1&&v1?null:t;default:return null}}function e5(t,a){if(Ei)return t==="compositionend"||!Hd&&y1(t,a)?(t=c1(),Ll=Ld=ka=null,Ei=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return p1&&a.locale!=="ko"?null:a.data;default:return null}}var t5={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 x1(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!t5[t.type]:a==="textarea"}function S1(t,a,i,o){wi?Ti?Ti.push(o):Ti=[o]:wi=o,a=Mu(a,"onChange"),0<a.length&&(i=new Pl("onChange","change",null,i,o),t.push({event:i,listeners:a}))}var Ys=null,Fs=null;function n5(t){tw(t,0)}function Hl(t){var a=Bs(t);if(n1(a))return t}function w1(t,a){if(t==="change")return a}var T1=!1;if(oa){var Gd;if(oa){var qd="oninput"in document;if(!qd){var E1=document.createElement("div");E1.setAttribute("oninput","return;"),qd=typeof E1.oninput=="function"}Gd=qd}else Gd=!1;T1=Gd&&(!document.documentMode||9<document.documentMode)}function A1(){Ys&&(Ys.detachEvent("onpropertychange",_1),Fs=Ys=null)}function _1(t){if(t.propertyName==="value"&&Hl(Fs)){var a=[];S1(a,Fs,t,$d(t)),u1(n5,a)}}function a5(t,a,i){t==="focusin"?(A1(),Ys=a,Fs=i,Ys.attachEvent("onpropertychange",_1)):t==="focusout"&&A1()}function r5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Hl(Fs)}function i5(t,a){if(t==="click")return Hl(a)}function s5(t,a){if(t==="input"||t==="change")return Hl(a)}function o5(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var on=typeof Object.is=="function"?Object.is:o5;function Xs(t,a){if(on(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var u=i[o];if(!Mt.call(a,u)||!on(t[u],a[u]))return!1}return!0}function C1(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function M1(t,a){var i=C1(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=a&&o>=a)return{node:i,offset:a-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=C1(i)}}function D1(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?D1(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function z1(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=jl(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=jl(t.document)}return a}function Yd(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var l5=oa&&"documentMode"in document&&11>=document.documentMode,Ai=null,Fd=null,Ks=null,Xd=!1;function R1(t,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Xd||Ai==null||Ai!==jl(o)||(o=Ai,"selectionStart"in o&&Yd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ks&&Xs(Ks,o)||(Ks=o,o=Mu(Fd,"onSelect"),0<o.length&&(a=new Pl("onSelect","select",null,a,i),t.push({event:a,listeners:o}),a.target=Ai)))}function Er(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var _i={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionrun:Er("Transition","TransitionRun"),transitionstart:Er("Transition","TransitionStart"),transitioncancel:Er("Transition","TransitionCancel"),transitionend:Er("Transition","TransitionEnd")},Kd={},V1={};oa&&(V1=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function Ar(t){if(Kd[t])return Kd[t];if(!_i[t])return t;var a=_i[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in V1)return Kd[t]=a[i];return t}var O1=Ar("animationend"),k1=Ar("animationiteration"),$1=Ar("animationstart"),u5=Ar("transitionrun"),c5=Ar("transitionstart"),f5=Ar("transitioncancel"),j1=Ar("transitionend"),N1=new Map,Qd="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(" ");Qd.push("scrollEnd");function kn(t,a){N1.set(t,a),wr(a,[t])}var L1=new WeakMap;function En(t,a){if(typeof t=="object"&&t!==null){var i=L1.get(t);return i!==void 0?i:(a={value:t,source:a,stack:e1(a)},L1.set(t,a),a)}return{value:t,source:a,stack:e1(a)}}var An=[],Ci=0,Id=0;function Gl(){for(var t=Ci,a=Id=Ci=0;a<t;){var i=An[a];An[a++]=null;var o=An[a];An[a++]=null;var u=An[a];An[a++]=null;var d=An[a];if(An[a++]=null,o!==null&&u!==null){var v=o.pending;v===null?u.next=u:(u.next=v.next,v.next=u),o.pending=u}d!==0&&U1(i,u,d)}}function ql(t,a,i,o){An[Ci++]=t,An[Ci++]=a,An[Ci++]=i,An[Ci++]=o,Id|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Jd(t,a,i,o){return ql(t,a,i,o),Yl(t)}function Mi(t,a){return ql(t,null,null,a),Yl(t)}function U1(t,a,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var u=!1,d=t.return;d!==null;)d.childLanes|=i,o=d.alternate,o!==null&&(o.childLanes|=i),d.tag===22&&(t=d.stateNode,t===null||t._visibility&1||(u=!0)),t=d,d=d.return;return t.tag===3?(d=t.stateNode,u&&a!==null&&(u=31-Fe(i),t=d.hiddenUpdates,o=t[u],o===null?t[u]=[a]:o.push(a),a.lane=i|536870912),d):null}function Yl(t){if(50<So)throw So=0,rm=null,Error(s(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Di={};function d5(t,a,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(t,a,i,o){return new d5(t,a,i,o)}function Wd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function la(t,a){var i=t.alternate;return i===null?(i=ln(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function B1(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Fl(t,a,i,o,u,d){var v=0;if(o=t,typeof t=="function")Wd(t)&&(v=1);else if(typeof t=="string")v=mV(t,i,fe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ce:return t=ln(31,i,a,u),t.elementType=ce,t.lanes=d,t;case _:return _r(i.children,u,d,a);case D:v=8,u|=24;break;case $:return t=ln(12,i,a,u|2),t.elementType=$,t.lanes=d,t;case Y:return t=ln(13,i,a,u),t.elementType=Y,t.lanes=d,t;case O:return t=ln(19,i,a,u),t.elementType=O,t.lanes=d,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:case Z:v=10;break e;case R:v=9;break e;case W:v=11;break e;case J:v=14;break e;case H:v=16,o=null;break e}v=29,i=Error(s(130,t===null?"null":typeof t,"")),o=null}return a=ln(v,i,a,u),a.elementType=t,a.type=o,a.lanes=d,a}function _r(t,a,i,o){return t=ln(7,t,o,a),t.lanes=i,t}function eh(t,a,i){return t=ln(6,t,null,a),t.lanes=i,t}function th(t,a,i){return a=ln(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var zi=[],Ri=0,Xl=null,Kl=0,_n=[],Cn=0,Cr=null,ua=1,ca="";function Mr(t,a){zi[Ri++]=Kl,zi[Ri++]=Xl,Xl=t,Kl=a}function P1(t,a,i){_n[Cn++]=ua,_n[Cn++]=ca,_n[Cn++]=Cr,Cr=t;var o=ua;t=ca;var u=32-Fe(o)-1;o&=~(1<<u),i+=1;var d=32-Fe(a)+u;if(30<d){var v=u-u%5;d=(o&(1<<v)-1).toString(32),o>>=v,u-=v,ua=1<<32-Fe(a)+u|i<<u|o,ca=d+t}else ua=1<<d|i<<u|o,ca=t}function nh(t){t.return!==null&&(Mr(t,1),P1(t,1,0))}function ah(t){for(;t===Xl;)Xl=zi[--Ri],zi[Ri]=null,Kl=zi[--Ri],zi[Ri]=null;for(;t===Cr;)Cr=_n[--Cn],_n[Cn]=null,ca=_n[--Cn],_n[Cn]=null,ua=_n[--Cn],_n[Cn]=null}var Xt=null,ot=null,He=!1,Dr=null,Yn=!1,rh=Error(s(519));function zr(t){var a=Error(s(418,""));throw Js(En(a,t)),rh}function Z1(t){var a=t.stateNode,i=t.type,o=t.memoizedProps;switch(a[Bt]=t,a[Wt]=o,i){case"dialog":Le("cancel",a),Le("close",a);break;case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(i=0;i<To.length;i++)Le(To[i],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"input":Le("invalid",a),a1(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),$l(a);break;case"select":Le("invalid",a);break;case"textarea":Le("invalid",a),i1(a,o.value,o.defaultValue,o.children),$l(a)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||iw(a.textContent,i)?(o.popover!=null&&(Le("beforetoggle",a),Le("toggle",a)),o.onScroll!=null&&Le("scroll",a),o.onScrollEnd!=null&&Le("scrollend",a),o.onClick!=null&&(a.onclick=Du),a=!0):a=!1,a||zr(t)}function H1(t){for(Xt=t.return;Xt;)switch(Xt.tag){case 5:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Xt=Xt.return}}function Qs(t){if(t!==Xt)return!1;if(!He)return H1(t),He=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||xm(t.type,t.memoizedProps)),i=!i),i&&ot&&zr(t),H1(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(a===0){ot=jn(t.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;t=t.nextSibling}ot=null}}else a===27?(a=ot,Qa(t.type)?(t=Em,Em=null,ot=t):ot=a):ot=Xt?jn(t.stateNode.nextSibling):null;return!0}function Is(){ot=Xt=null,He=!1}function G1(){var t=Dr;return t!==null&&(an===null?an=t:an.push.apply(an,t),Dr=null),t}function Js(t){Dr===null?Dr=[t]:Dr.push(t)}var ih=Q(null),Rr=null,fa=null;function $a(t,a,i){ie(ih,a._currentValue),a._currentValue=i}function da(t){t._currentValue=ih.current,se(ih)}function sh(t,a,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),t===i)break;t=t.return}}function oh(t,a,i,o){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var d=u.dependencies;if(d!==null){var v=u.child;d=d.firstContext;e:for(;d!==null;){var b=d;d=u;for(var T=0;T<a.length;T++)if(b.context===a[T]){d.lanes|=i,b=d.alternate,b!==null&&(b.lanes|=i),sh(d.return,i,t),o||(v=null);break e}d=b.next}}else if(u.tag===18){if(v=u.return,v===null)throw Error(s(341));v.lanes|=i,d=v.alternate,d!==null&&(d.lanes|=i),sh(v,i,t),v=null}else v=u.child;if(v!==null)v.return=u;else for(v=u;v!==null;){if(v===t){v=null;break}if(u=v.sibling,u!==null){u.return=v.return,v=u;break}v=v.return}u=v}}function Ws(t,a,i,o){t=null;for(var u=a,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var v=u.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var b=u.type;on(u.pendingProps.value,v.value)||(t!==null?t.push(b):t=[b])}}else if(u===De.current){if(v=u.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Do):t=[Do])}u=u.return}t!==null&&oh(a,t,i,o),a.flags|=262144}function Ql(t){for(t=t.firstContext;t!==null;){if(!on(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Vr(t){Rr=t,fa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pt(t){return q1(Rr,t)}function Il(t,a){return Rr===null&&Vr(t),q1(t,a)}function q1(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},fa===null){if(t===null)throw Error(s(308));fa=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else fa=fa.next=a;return i}var h5=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},m5=e.unstable_scheduleCallback,p5=e.unstable_NormalPriority,Tt={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lh(){return{controller:new h5,data:new Map,refCount:0}}function eo(t){t.refCount--,t.refCount===0&&m5(p5,function(){t.controller.abort()})}var to=null,uh=0,Vi=0,Oi=null;function g5(t,a){if(to===null){var i=to=[];uh=0,Vi=fm(),Oi={status:"pending",value:void 0,then:function(o){i.push(o)}}}return uh++,a.then(Y1,Y1),a}function Y1(){if(--uh===0&&to!==null){Oi!==null&&(Oi.status="fulfilled");var t=to;to=null,Vi=0,Oi=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function v5(t,a){var i=[],o={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return t.then(function(){o.status="fulfilled",o.value=a;for(var u=0;u<i.length;u++)(0,i[u])(a)},function(u){for(o.status="rejected",o.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),o}var F1=S.S;S.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&g5(t,a),F1!==null&&F1(t,a)};var Or=Q(null);function ch(){var t=Or.current;return t!==null?t:We.pooledCache}function Jl(t,a){a===null?ie(Or,Or.current):ie(Or,a.pool)}function X1(){var t=ch();return t===null?null:{parent:Tt._currentValue,pool:t}}var no=Error(s(460)),K1=Error(s(474)),Wl=Error(s(542)),fh={then:function(){}};function Q1(t){return t=t.status,t==="fulfilled"||t==="rejected"}function eu(){}function I1(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(eu,eu),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,W1(t),t;default:if(typeof a.status=="string")a.then(eu,eu);else{if(t=We,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=a,t.status="pending",t.then(function(o){if(a.status==="pending"){var u=a;u.status="fulfilled",u.value=o}},function(o){if(a.status==="pending"){var u=a;u.status="rejected",u.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,W1(t),t}throw ao=a,no}}var ao=null;function J1(){if(ao===null)throw Error(s(459));var t=ao;return ao=null,t}function W1(t){if(t===no||t===Wl)throw Error(s(483))}var ja=!1;function dh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hh(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Na(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function La(t,a,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(qe&2)!==0){var u=o.pending;return u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a,a=Yl(t),U1(t,null,i),a}return ql(t,o,a,i),Yl(t)}function ro(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,Y0(t,i)}}function mh(t,a){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=v:d=d.next=v,i=i.next}while(i!==null);d===null?u=d=a:d=d.next=a}else u=d=a;i={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var ph=!1;function io(){if(ph){var t=Oi;if(t!==null)throw t}}function so(t,a,i,o){ph=!1;var u=t.updateQueue;ja=!1;var d=u.firstBaseUpdate,v=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var T=b,L=T.next;T.next=null,v===null?d=L:v.next=L,v=T;var I=t.alternate;I!==null&&(I=I.updateQueue,b=I.lastBaseUpdate,b!==v&&(b===null?I.firstBaseUpdate=L:b.next=L,I.lastBaseUpdate=T))}if(d!==null){var te=u.baseState;v=0,I=L=T=null,b=d;do{var B=b.lane&-536870913,P=B!==b.lane;if(P?(Pe&B)===B:(o&B)===B){B!==0&&B===Vi&&(ph=!0),I!==null&&(I=I.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var Ce=t,Ee=b;B=a;var Qe=i;switch(Ee.tag){case 1:if(Ce=Ee.payload,typeof Ce=="function"){te=Ce.call(Qe,te,B);break e}te=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ee.payload,B=typeof Ce=="function"?Ce.call(Qe,te,B):Ce,B==null)break e;te=g({},te,B);break e;case 2:ja=!0}}B=b.callback,B!==null&&(t.flags|=64,P&&(t.flags|=8192),P=u.callbacks,P===null?u.callbacks=[B]:P.push(B))}else P={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},I===null?(L=I=P,T=te):I=I.next=P,v|=B;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;P=b,b=P.next,P.next=null,u.lastBaseUpdate=P,u.shared.pending=null}}while(!0);I===null&&(T=te),u.baseState=T,u.firstBaseUpdate=L,u.lastBaseUpdate=I,d===null&&(u.shared.lanes=0),Ya|=v,t.lanes=v,t.memoizedState=te}}function ex(t,a){if(typeof t!="function")throw Error(s(191,t));t.call(a)}function tx(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)ex(i[t],a)}var ki=Q(null),tu=Q(0);function nx(t,a){t=ba,ie(tu,t),ie(ki,a),ba=t|a.baseLanes}function gh(){ie(tu,ba),ie(ki,ki.current)}function vh(){ba=tu.current,se(ki),se(tu)}var Ua=0,ke=null,Xe=null,yt=null,nu=!1,$i=!1,kr=!1,au=0,oo=0,ji=null,y5=0;function dt(){throw Error(s(321))}function yh(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!on(t[i],a[i]))return!1;return!0}function bh(t,a,i,o,u,d){return Ua=d,ke=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,S.H=t===null||t.memoizedState===null?Ux:Bx,kr=!1,d=i(o,u),kr=!1,$i&&(d=rx(a,i,o,u)),ax(t),d}function ax(t){S.H=uu;var a=Xe!==null&&Xe.next!==null;if(Ua=0,yt=Xe=ke=null,nu=!1,oo=0,ji=null,a)throw Error(s(300));t===null||Rt||(t=t.dependencies,t!==null&&Ql(t)&&(Rt=!0))}function rx(t,a,i,o){ke=t;var u=0;do{if($i&&(ji=null),oo=0,$i=!1,25<=u)throw Error(s(301));if(u+=1,yt=Xe=null,t.updateQueue!=null){var d=t.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}S.H=A5,d=a(i,o)}while($i);return d}function b5(){var t=S.H,a=t.useState()[0];return a=typeof a.then=="function"?lo(a):a,t=t.useState()[0],(Xe!==null?Xe.memoizedState:null)!==t&&(ke.flags|=1024),a}function xh(){var t=au!==0;return au=0,t}function Sh(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function wh(t){if(nu){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}nu=!1}Ua=0,yt=Xe=ke=null,$i=!1,oo=au=0,ji=null}function tn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?ke.memoizedState=yt=t:yt=yt.next=t,yt}function bt(){if(Xe===null){var t=ke.alternate;t=t!==null?t.memoizedState:null}else t=Xe.next;var a=yt===null?ke.memoizedState:yt.next;if(a!==null)yt=a,Xe=t;else{if(t===null)throw ke.alternate===null?Error(s(467)):Error(s(310));Xe=t,t={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},yt===null?ke.memoizedState=yt=t:yt=yt.next=t}return yt}function Th(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lo(t){var a=oo;return oo+=1,ji===null&&(ji=[]),t=I1(ji,t,a),a=ke,(yt===null?a.memoizedState:yt.next)===null&&(a=a.alternate,S.H=a===null||a.memoizedState===null?Ux:Bx),t}function ru(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return lo(t);if(t.$$typeof===Z)return Pt(t)}throw Error(s(438,String(t)))}function Eh(t){var a=null,i=ke.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(u){return u.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=Th(),ke.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),o=0;o<t;o++)i[o]=me;return a.index++,i}function ha(t,a){return typeof a=="function"?a(t):a}function iu(t){var a=bt();return Ah(a,Xe,t)}function Ah(t,a,i){var o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var u=t.baseQueue,d=o.pending;if(d!==null){if(u!==null){var v=u.next;u.next=d.next,d.next=v}a.baseQueue=u=d,o.pending=null}if(d=t.baseState,u===null)t.memoizedState=d;else{a=u.next;var b=v=null,T=null,L=a,I=!1;do{var te=L.lane&-536870913;if(te!==L.lane?(Pe&te)===te:(Ua&te)===te){var B=L.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),te===Vi&&(I=!0);else if((Ua&B)===B){L=L.next,B===Vi&&(I=!0);continue}else te={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(b=T=te,v=d):T=T.next=te,ke.lanes|=B,Ya|=B;te=L.action,kr&&i(d,te),d=L.hasEagerState?L.eagerState:i(d,te)}else B={lane:te,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(b=T=B,v=d):T=T.next=B,ke.lanes|=te,Ya|=te;L=L.next}while(L!==null&&L!==a);if(T===null?v=d:T.next=b,!on(d,t.memoizedState)&&(Rt=!0,I&&(i=Oi,i!==null)))throw i;t.memoizedState=d,t.baseState=v,t.baseQueue=T,o.lastRenderedState=d}return u===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function _h(t){var a=bt(),i=a.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var o=i.dispatch,u=i.pending,d=a.memoizedState;if(u!==null){i.pending=null;var v=u=u.next;do d=t(d,v.action),v=v.next;while(v!==u);on(d,a.memoizedState)||(Rt=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),i.lastRenderedState=d}return[d,o]}function ix(t,a,i){var o=ke,u=bt(),d=He;if(d){if(i===void 0)throw Error(s(407));i=i()}else i=a();var v=!on((Xe||u).memoizedState,i);v&&(u.memoizedState=i,Rt=!0),u=u.queue;var b=lx.bind(null,o,u,t);if(uo(2048,8,b,[t]),u.getSnapshot!==a||v||yt!==null&&yt.memoizedState.tag&1){if(o.flags|=2048,Ni(9,su(),ox.bind(null,o,u,i,a),null),We===null)throw Error(s(349));d||(Ua&124)!==0||sx(o,a,i)}return i}function sx(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=ke.updateQueue,a===null?(a=Th(),ke.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function ox(t,a,i,o){a.value=i,a.getSnapshot=o,ux(a)&&cx(t)}function lx(t,a,i){return i(function(){ux(a)&&cx(t)})}function ux(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!on(t,i)}catch{return!0}}function cx(t){var a=Mi(t,2);a!==null&&hn(a,t,2)}function Ch(t){var a=tn();if(typeof t=="function"){var i=t;if(t=i(),kr){$e(!0);try{i()}finally{$e(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:t},a}function fx(t,a,i,o){return t.baseState=i,Ah(t,Xe,typeof o=="function"?o:ha)}function x5(t,a,i,o,u){if(lu(t))throw Error(s(485));if(t=a.action,t!==null){var d={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};S.T!==null?i(!0):d.isTransition=!1,o(d),i=a.pending,i===null?(d.next=a.pending=d,dx(a,d)):(d.next=i.next,a.pending=i.next=d)}}function dx(t,a){var i=a.action,o=a.payload,u=t.state;if(a.isTransition){var d=S.T,v={};S.T=v;try{var b=i(u,o),T=S.S;T!==null&&T(v,b),hx(t,a,b)}catch(L){Mh(t,a,L)}finally{S.T=d}}else try{d=i(u,o),hx(t,a,d)}catch(L){Mh(t,a,L)}}function hx(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){mx(t,a,o)},function(o){return Mh(t,a,o)}):mx(t,a,i)}function mx(t,a,i){a.status="fulfilled",a.value=i,px(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,dx(t,i)))}function Mh(t,a,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,px(a),a=a.next;while(a!==o)}t.action=null}function px(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function gx(t,a){return a}function vx(t,a){if(He){var i=We.formState;if(i!==null){e:{var o=ke;if(He){if(ot){t:{for(var u=ot,d=Yn;u.nodeType!==8;){if(!d){u=null;break t}if(u=jn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){ot=jn(u.nextSibling),o=u.data==="F!";break e}}zr(o)}o=!1}o&&(a=i[0])}}return i=tn(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gx,lastRenderedState:a},i.queue=o,i=jx.bind(null,ke,o),o.dispatch=i,o=Ch(!1),d=Oh.bind(null,ke,!1,o.queue),o=tn(),u={state:a,dispatch:null,action:t,pending:null},o.queue=u,i=x5.bind(null,ke,u,d,i),u.dispatch=i,o.memoizedState=t,[a,i,!1]}function yx(t){var a=bt();return bx(a,Xe,t)}function bx(t,a,i){if(a=Ah(t,a,gx)[0],t=iu(ha)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=lo(a)}catch(v){throw v===no?Wl:v}else o=a;a=bt();var u=a.queue,d=u.dispatch;return i!==a.memoizedState&&(ke.flags|=2048,Ni(9,su(),S5.bind(null,u,i),null)),[o,d,t]}function S5(t,a){t.action=a}function xx(t){var a=bt(),i=Xe;if(i!==null)return bx(a,i,t);bt(),a=a.memoizedState,i=bt();var o=i.queue.dispatch;return i.memoizedState=t,[a,o,!1]}function Ni(t,a,i,o){return t={tag:t,create:i,deps:o,inst:a,next:null},a=ke.updateQueue,a===null&&(a=Th(),ke.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,a.lastEffect=t),t}function su(){return{destroy:void 0,resource:void 0}}function Sx(){return bt().memoizedState}function ou(t,a,i,o){var u=tn();o=o===void 0?null:o,ke.flags|=t,u.memoizedState=Ni(1|a,su(),i,o)}function uo(t,a,i,o){var u=bt();o=o===void 0?null:o;var d=u.memoizedState.inst;Xe!==null&&o!==null&&yh(o,Xe.memoizedState.deps)?u.memoizedState=Ni(a,d,i,o):(ke.flags|=t,u.memoizedState=Ni(1|a,d,i,o))}function wx(t,a){ou(8390656,8,t,a)}function Tx(t,a){uo(2048,8,t,a)}function Ex(t,a){return uo(4,2,t,a)}function Ax(t,a){return uo(4,4,t,a)}function _x(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Cx(t,a,i){i=i!=null?i.concat([t]):null,uo(4,4,_x.bind(null,a,t),i)}function Dh(){}function Mx(t,a){var i=bt();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&yh(a,o[1])?o[0]:(i.memoizedState=[t,a],t)}function Dx(t,a){var i=bt();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&yh(a,o[1]))return o[0];if(o=t(),kr){$e(!0);try{t()}finally{$e(!1)}}return i.memoizedState=[o,a],o}function zh(t,a,i){return i===void 0||(Ua&1073741824)!==0?t.memoizedState=a:(t.memoizedState=i,t=VS(),ke.lanes|=t,Ya|=t,i)}function zx(t,a,i,o){return on(i,a)?i:ki.current!==null?(t=zh(t,i,o),on(t,a)||(Rt=!0),t):(Ua&42)===0?(Rt=!0,t.memoizedState=i):(t=VS(),ke.lanes|=t,Ya|=t,a)}function Rx(t,a,i,o,u){var d=j.p;j.p=d!==0&&8>d?d:8;var v=S.T,b={};S.T=b,Oh(t,!1,a,i);try{var T=u(),L=S.S;if(L!==null&&L(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var I=v5(T,o);co(t,a,I,dn())}else co(t,a,o,dn())}catch(te){co(t,a,{then:function(){},status:"rejected",reason:te},dn())}finally{j.p=d,S.T=v}}function w5(){}function Rh(t,a,i,o){if(t.tag!==5)throw Error(s(476));var u=Vx(t).queue;Rx(t,u,a,z,i===null?w5:function(){return Ox(t),i(o)})}function Vx(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:z},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Ox(t){var a=Vx(t).next.queue;co(t,a,{},dn())}function Vh(){return Pt(Do)}function kx(){return bt().memoizedState}function $x(){return bt().memoizedState}function T5(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=dn();t=Na(i);var o=La(a,t,i);o!==null&&(hn(o,a,i),ro(o,a,i)),a={cache:lh()},t.payload=a;return}a=a.return}}function E5(t,a,i){var o=dn();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},lu(t)?Nx(a,i):(i=Jd(t,a,i,o),i!==null&&(hn(i,t,o),Lx(i,a,o)))}function jx(t,a,i){var o=dn();co(t,a,i,o)}function co(t,a,i,o){var u={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(lu(t))Nx(a,u);else{var d=t.alternate;if(t.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var v=a.lastRenderedState,b=d(v,i);if(u.hasEagerState=!0,u.eagerState=b,on(b,v))return ql(t,a,u,0),We===null&&Gl(),!1}catch{}finally{}if(i=Jd(t,a,u,o),i!==null)return hn(i,t,o),Lx(i,a,o),!0}return!1}function Oh(t,a,i,o){if(o={lane:2,revertLane:fm(),action:o,hasEagerState:!1,eagerState:null,next:null},lu(t)){if(a)throw Error(s(479))}else a=Jd(t,i,o,2),a!==null&&hn(a,t,2)}function lu(t){var a=t.alternate;return t===ke||a!==null&&a===ke}function Nx(t,a){$i=nu=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Lx(t,a,i){if((i&4194048)!==0){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,Y0(t,i)}}var uu={readContext:Pt,use:ru,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt},Ux={readContext:Pt,use:ru,useCallback:function(t,a){return tn().memoizedState=[t,a===void 0?null:a],t},useContext:Pt,useEffect:wx,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,ou(4194308,4,_x.bind(null,a,t),i)},useLayoutEffect:function(t,a){return ou(4194308,4,t,a)},useInsertionEffect:function(t,a){ou(4,2,t,a)},useMemo:function(t,a){var i=tn();a=a===void 0?null:a;var o=t();if(kr){$e(!0);try{t()}finally{$e(!1)}}return i.memoizedState=[o,a],o},useReducer:function(t,a,i){var o=tn();if(i!==void 0){var u=i(a);if(kr){$e(!0);try{i(a)}finally{$e(!1)}}}else u=a;return o.memoizedState=o.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},o.queue=t,t=t.dispatch=E5.bind(null,ke,t),[o.memoizedState,t]},useRef:function(t){var a=tn();return t={current:t},a.memoizedState=t},useState:function(t){t=Ch(t);var a=t.queue,i=jx.bind(null,ke,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:Dh,useDeferredValue:function(t,a){var i=tn();return zh(i,t,a)},useTransition:function(){var t=Ch(!1);return t=Rx.bind(null,ke,t.queue,!0,!1),tn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var o=ke,u=tn();if(He){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),We===null)throw Error(s(349));(Pe&124)!==0||sx(o,a,i)}u.memoizedState=i;var d={value:i,getSnapshot:a};return u.queue=d,wx(lx.bind(null,o,d,t),[t]),o.flags|=2048,Ni(9,su(),ox.bind(null,o,d,i,a),null),i},useId:function(){var t=tn(),a=We.identifierPrefix;if(He){var i=ca,o=ua;i=(o&~(1<<32-Fe(o)-1)).toString(32)+i,a="«"+a+"R"+i,i=au++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=y5++,a="«"+a+"r"+i.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:Vh,useFormState:vx,useActionState:vx,useOptimistic:function(t){var a=tn();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Oh.bind(null,ke,!0,i),i.dispatch=a,[t,a]},useMemoCache:Eh,useCacheRefresh:function(){return tn().memoizedState=T5.bind(null,ke)}},Bx={readContext:Pt,use:ru,useCallback:Mx,useContext:Pt,useEffect:Tx,useImperativeHandle:Cx,useInsertionEffect:Ex,useLayoutEffect:Ax,useMemo:Dx,useReducer:iu,useRef:Sx,useState:function(){return iu(ha)},useDebugValue:Dh,useDeferredValue:function(t,a){var i=bt();return zx(i,Xe.memoizedState,t,a)},useTransition:function(){var t=iu(ha)[0],a=bt().memoizedState;return[typeof t=="boolean"?t:lo(t),a]},useSyncExternalStore:ix,useId:kx,useHostTransitionStatus:Vh,useFormState:yx,useActionState:yx,useOptimistic:function(t,a){var i=bt();return fx(i,Xe,t,a)},useMemoCache:Eh,useCacheRefresh:$x},A5={readContext:Pt,use:ru,useCallback:Mx,useContext:Pt,useEffect:Tx,useImperativeHandle:Cx,useInsertionEffect:Ex,useLayoutEffect:Ax,useMemo:Dx,useReducer:_h,useRef:Sx,useState:function(){return _h(ha)},useDebugValue:Dh,useDeferredValue:function(t,a){var i=bt();return Xe===null?zh(i,t,a):zx(i,Xe.memoizedState,t,a)},useTransition:function(){var t=_h(ha)[0],a=bt().memoizedState;return[typeof t=="boolean"?t:lo(t),a]},useSyncExternalStore:ix,useId:kx,useHostTransitionStatus:Vh,useFormState:xx,useActionState:xx,useOptimistic:function(t,a){var i=bt();return Xe!==null?fx(i,Xe,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:Eh,useCacheRefresh:$x},Li=null,fo=0;function cu(t){var a=fo;return fo+=1,Li===null&&(Li=[]),I1(Li,t,a)}function ho(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function fu(t,a){throw a.$$typeof===y?Error(s(525)):(t=Object.prototype.toString.call(a),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Px(t){var a=t._init;return a(t._payload)}function Zx(t){function a(V,M){if(t){var k=V.deletions;k===null?(V.deletions=[M],V.flags|=16):k.push(M)}}function i(V,M){if(!t)return null;for(;M!==null;)a(V,M),M=M.sibling;return null}function o(V){for(var M=new Map;V!==null;)V.key!==null?M.set(V.key,V):M.set(V.index,V),V=V.sibling;return M}function u(V,M){return V=la(V,M),V.index=0,V.sibling=null,V}function d(V,M,k){return V.index=k,t?(k=V.alternate,k!==null?(k=k.index,k<M?(V.flags|=67108866,M):k):(V.flags|=67108866,M)):(V.flags|=1048576,M)}function v(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function b(V,M,k,ee){return M===null||M.tag!==6?(M=eh(k,V.mode,ee),M.return=V,M):(M=u(M,k),M.return=V,M)}function T(V,M,k,ee){var ye=k.type;return ye===_?I(V,M,k.props.children,ee,k.key):M!==null&&(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===H&&Px(ye)===M.type)?(M=u(M,k.props),ho(M,k),M.return=V,M):(M=Fl(k.type,k.key,k.props,null,V.mode,ee),ho(M,k),M.return=V,M)}function L(V,M,k,ee){return M===null||M.tag!==4||M.stateNode.containerInfo!==k.containerInfo||M.stateNode.implementation!==k.implementation?(M=th(k,V.mode,ee),M.return=V,M):(M=u(M,k.children||[]),M.return=V,M)}function I(V,M,k,ee,ye){return M===null||M.tag!==7?(M=_r(k,V.mode,ee,ye),M.return=V,M):(M=u(M,k),M.return=V,M)}function te(V,M,k){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=eh(""+M,V.mode,k),M.return=V,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case x:return k=Fl(M.type,M.key,M.props,null,V.mode,k),ho(k,M),k.return=V,k;case E:return M=th(M,V.mode,k),M.return=V,M;case H:var ee=M._init;return M=ee(M._payload),te(V,M,k)}if(ne(M)||q(M))return M=_r(M,V.mode,k,null),M.return=V,M;if(typeof M.then=="function")return te(V,cu(M),k);if(M.$$typeof===Z)return te(V,Il(V,M),k);fu(V,M)}return null}function B(V,M,k,ee){var ye=M!==null?M.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ye!==null?null:b(V,M,""+k,ee);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case x:return k.key===ye?T(V,M,k,ee):null;case E:return k.key===ye?L(V,M,k,ee):null;case H:return ye=k._init,k=ye(k._payload),B(V,M,k,ee)}if(ne(k)||q(k))return ye!==null?null:I(V,M,k,ee,null);if(typeof k.then=="function")return B(V,M,cu(k),ee);if(k.$$typeof===Z)return B(V,M,Il(V,k),ee);fu(V,k)}return null}function P(V,M,k,ee,ye){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return V=V.get(k)||null,b(M,V,""+ee,ye);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return V=V.get(ee.key===null?k:ee.key)||null,T(M,V,ee,ye);case E:return V=V.get(ee.key===null?k:ee.key)||null,L(M,V,ee,ye);case H:var je=ee._init;return ee=je(ee._payload),P(V,M,k,ee,ye)}if(ne(ee)||q(ee))return V=V.get(k)||null,I(M,V,ee,ye,null);if(typeof ee.then=="function")return P(V,M,k,cu(ee),ye);if(ee.$$typeof===Z)return P(V,M,k,Il(M,ee),ye);fu(M,ee)}return null}function Ce(V,M,k,ee){for(var ye=null,je=null,we=M,Ae=M=0,Ot=null;we!==null&&Ae<k.length;Ae++){we.index>Ae?(Ot=we,we=null):Ot=we.sibling;var Ze=B(V,we,k[Ae],ee);if(Ze===null){we===null&&(we=Ot);break}t&&we&&Ze.alternate===null&&a(V,we),M=d(Ze,M,Ae),je===null?ye=Ze:je.sibling=Ze,je=Ze,we=Ot}if(Ae===k.length)return i(V,we),He&&Mr(V,Ae),ye;if(we===null){for(;Ae<k.length;Ae++)we=te(V,k[Ae],ee),we!==null&&(M=d(we,M,Ae),je===null?ye=we:je.sibling=we,je=we);return He&&Mr(V,Ae),ye}for(we=o(we);Ae<k.length;Ae++)Ot=P(we,V,Ae,k[Ae],ee),Ot!==null&&(t&&Ot.alternate!==null&&we.delete(Ot.key===null?Ae:Ot.key),M=d(Ot,M,Ae),je===null?ye=Ot:je.sibling=Ot,je=Ot);return t&&we.forEach(function(tr){return a(V,tr)}),He&&Mr(V,Ae),ye}function Ee(V,M,k,ee){if(k==null)throw Error(s(151));for(var ye=null,je=null,we=M,Ae=M=0,Ot=null,Ze=k.next();we!==null&&!Ze.done;Ae++,Ze=k.next()){we.index>Ae?(Ot=we,we=null):Ot=we.sibling;var tr=B(V,we,Ze.value,ee);if(tr===null){we===null&&(we=Ot);break}t&&we&&tr.alternate===null&&a(V,we),M=d(tr,M,Ae),je===null?ye=tr:je.sibling=tr,je=tr,we=Ot}if(Ze.done)return i(V,we),He&&Mr(V,Ae),ye;if(we===null){for(;!Ze.done;Ae++,Ze=k.next())Ze=te(V,Ze.value,ee),Ze!==null&&(M=d(Ze,M,Ae),je===null?ye=Ze:je.sibling=Ze,je=Ze);return He&&Mr(V,Ae),ye}for(we=o(we);!Ze.done;Ae++,Ze=k.next())Ze=P(we,V,Ae,Ze.value,ee),Ze!==null&&(t&&Ze.alternate!==null&&we.delete(Ze.key===null?Ae:Ze.key),M=d(Ze,M,Ae),je===null?ye=Ze:je.sibling=Ze,je=Ze);return t&&we.forEach(function(_V){return a(V,_V)}),He&&Mr(V,Ae),ye}function Qe(V,M,k,ee){if(typeof k=="object"&&k!==null&&k.type===_&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case x:e:{for(var ye=k.key;M!==null;){if(M.key===ye){if(ye=k.type,ye===_){if(M.tag===7){i(V,M.sibling),ee=u(M,k.props.children),ee.return=V,V=ee;break e}}else if(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===H&&Px(ye)===M.type){i(V,M.sibling),ee=u(M,k.props),ho(ee,k),ee.return=V,V=ee;break e}i(V,M);break}else a(V,M);M=M.sibling}k.type===_?(ee=_r(k.props.children,V.mode,ee,k.key),ee.return=V,V=ee):(ee=Fl(k.type,k.key,k.props,null,V.mode,ee),ho(ee,k),ee.return=V,V=ee)}return v(V);case E:e:{for(ye=k.key;M!==null;){if(M.key===ye)if(M.tag===4&&M.stateNode.containerInfo===k.containerInfo&&M.stateNode.implementation===k.implementation){i(V,M.sibling),ee=u(M,k.children||[]),ee.return=V,V=ee;break e}else{i(V,M);break}else a(V,M);M=M.sibling}ee=th(k,V.mode,ee),ee.return=V,V=ee}return v(V);case H:return ye=k._init,k=ye(k._payload),Qe(V,M,k,ee)}if(ne(k))return Ce(V,M,k,ee);if(q(k)){if(ye=q(k),typeof ye!="function")throw Error(s(150));return k=ye.call(k),Ee(V,M,k,ee)}if(typeof k.then=="function")return Qe(V,M,cu(k),ee);if(k.$$typeof===Z)return Qe(V,M,Il(V,k),ee);fu(V,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,M!==null&&M.tag===6?(i(V,M.sibling),ee=u(M,k),ee.return=V,V=ee):(i(V,M),ee=eh(k,V.mode,ee),ee.return=V,V=ee),v(V)):i(V,M)}return function(V,M,k,ee){try{fo=0;var ye=Qe(V,M,k,ee);return Li=null,ye}catch(we){if(we===no||we===Wl)throw we;var je=ln(29,we,null,V.mode);return je.lanes=ee,je.return=V,je}finally{}}}var Ui=Zx(!0),Hx=Zx(!1),Mn=Q(null),Fn=null;function Ba(t){var a=t.alternate;ie(Et,Et.current&1),ie(Mn,t),Fn===null&&(a===null||ki.current!==null||a.memoizedState!==null)&&(Fn=t)}function Gx(t){if(t.tag===22){if(ie(Et,Et.current),ie(Mn,t),Fn===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(Fn=t)}}else Pa()}function Pa(){ie(Et,Et.current),ie(Mn,Mn.current)}function ma(t){se(Mn),Fn===t&&(Fn=null),se(Et)}var Et=Q(0);function du(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Tm(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function kh(t,a,i,o){a=t.memoizedState,i=i(o,a),i=i==null?a:g({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var $h={enqueueSetState:function(t,a,i){t=t._reactInternals;var o=dn(),u=Na(o);u.payload=a,i!=null&&(u.callback=i),a=La(t,u,o),a!==null&&(hn(a,t,o),ro(a,t,o))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var o=dn(),u=Na(o);u.tag=1,u.payload=a,i!=null&&(u.callback=i),a=La(t,u,o),a!==null&&(hn(a,t,o),ro(a,t,o))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=dn(),o=Na(i);o.tag=2,a!=null&&(o.callback=a),a=La(t,o,i),a!==null&&(hn(a,t,i),ro(a,t,i))}};function qx(t,a,i,o,u,d,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,d,v):a.prototype&&a.prototype.isPureReactComponent?!Xs(i,o)||!Xs(u,d):!0}function Yx(t,a,i,o){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==t&&$h.enqueueReplaceState(a,a.state,null)}function $r(t,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(t=t.defaultProps){i===a&&(i=g({},i));for(var u in t)i[u]===void 0&&(i[u]=t[u])}return i}var hu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Fx(t){hu(t)}function Xx(t){console.error(t)}function Kx(t){hu(t)}function mu(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Qx(t,a,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function jh(t,a,i){return i=Na(i),i.tag=3,i.payload={element:null},i.callback=function(){mu(t,a)},i}function Ix(t){return t=Na(t),t.tag=3,t}function Jx(t,a,i,o){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=o.value;t.payload=function(){return u(d)},t.callback=function(){Qx(a,i,o)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){Qx(a,i,o),typeof u!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function _5(t,a,i,o,u){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&Ws(a,i,u,!0),i=Mn.current,i!==null){switch(i.tag){case 13:return Fn===null?sm():i.alternate===null&&lt===0&&(lt=3),i.flags&=-257,i.flags|=65536,i.lanes=u,o===fh?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),lm(t,o,u)),!1;case 22:return i.flags|=65536,o===fh?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),lm(t,o,u)),!1}throw Error(s(435,i.tag))}return lm(t,o,u),sm(),!1}if(He)return a=Mn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=u,o!==rh&&(t=Error(s(422),{cause:o}),Js(En(t,i)))):(o!==rh&&(a=Error(s(423),{cause:o}),Js(En(a,i))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,o=En(o,i),u=jh(t.stateNode,o,u),mh(t,u),lt!==4&&(lt=2)),!1;var d=Error(s(520),{cause:o});if(d=En(d,i),xo===null?xo=[d]:xo.push(d),lt!==4&&(lt=2),a===null)return!0;o=En(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=u&-u,i.lanes|=t,t=jh(i.stateNode,o,t),mh(i,t),!1;case 1:if(a=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Fa===null||!Fa.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Ix(u),Jx(u,t,i,o),mh(i,u),!1}i=i.return}while(i!==null);return!1}var Wx=Error(s(461)),Rt=!1;function $t(t,a,i,o){a.child=t===null?Hx(a,null,i,o):Ui(a,t.child,i,o)}function eS(t,a,i,o,u){i=i.render;var d=a.ref;if("ref"in o){var v={};for(var b in o)b!=="ref"&&(v[b]=o[b])}else v=o;return Vr(a),o=bh(t,a,i,v,d,u),b=xh(),t!==null&&!Rt?(Sh(t,a,u),pa(t,a,u)):(He&&b&&nh(a),a.flags|=1,$t(t,a,o,u),a.child)}function tS(t,a,i,o,u){if(t===null){var d=i.type;return typeof d=="function"&&!Wd(d)&&d.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=d,nS(t,a,d,o,u)):(t=Fl(i.type,null,o,a,a.mode,u),t.ref=a.ref,t.return=a,a.child=t)}if(d=t.child,!Gh(t,u)){var v=d.memoizedProps;if(i=i.compare,i=i!==null?i:Xs,i(v,o)&&t.ref===a.ref)return pa(t,a,u)}return a.flags|=1,t=la(d,o),t.ref=a.ref,t.return=a,a.child=t}function nS(t,a,i,o,u){if(t!==null){var d=t.memoizedProps;if(Xs(d,o)&&t.ref===a.ref)if(Rt=!1,a.pendingProps=o=d,Gh(t,u))(t.flags&131072)!==0&&(Rt=!0);else return a.lanes=t.lanes,pa(t,a,u)}return Nh(t,a,i,o,u)}function aS(t,a,i){var o=a.pendingProps,u=o.children,d=t!==null?t.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=d!==null?d.baseLanes|i:i,t!==null){for(u=a.child=t.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;a.childLanes=d&~o}else a.childLanes=0,a.child=null;return rS(t,a,o,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Jl(a,d!==null?d.cachePool:null),d!==null?nx(a,d):gh(),Gx(a);else return a.lanes=a.childLanes=536870912,rS(t,a,d!==null?d.baseLanes|i:i,i)}else d!==null?(Jl(a,d.cachePool),nx(a,d),Pa(),a.memoizedState=null):(t!==null&&Jl(a,null),gh(),Pa());return $t(t,a,u,i),a.child}function rS(t,a,i,o){var u=ch();return u=u===null?null:{parent:Tt._currentValue,pool:u},a.memoizedState={baseLanes:i,cachePool:u},t!==null&&Jl(a,null),gh(),Gx(a),t!==null&&Ws(t,a,o,!0),null}function pu(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function Nh(t,a,i,o,u){return Vr(a),i=bh(t,a,i,o,void 0,u),o=xh(),t!==null&&!Rt?(Sh(t,a,u),pa(t,a,u)):(He&&o&&nh(a),a.flags|=1,$t(t,a,i,u),a.child)}function iS(t,a,i,o,u,d){return Vr(a),a.updateQueue=null,i=rx(a,o,i,u),ax(t),o=xh(),t!==null&&!Rt?(Sh(t,a,d),pa(t,a,d)):(He&&o&&nh(a),a.flags|=1,$t(t,a,i,d),a.child)}function sS(t,a,i,o,u){if(Vr(a),a.stateNode===null){var d=Di,v=i.contextType;typeof v=="object"&&v!==null&&(d=Pt(v)),d=new i(o,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=$h,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=o,d.state=a.memoizedState,d.refs={},dh(a),v=i.contextType,d.context=typeof v=="object"&&v!==null?Pt(v):Di,d.state=a.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(kh(a,i,v,o),d.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&$h.enqueueReplaceState(d,d.state,null),so(a,o,d,u),io(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(t===null){d=a.stateNode;var b=a.memoizedProps,T=$r(i,b);d.props=T;var L=d.context,I=i.contextType;v=Di,typeof I=="object"&&I!==null&&(v=Pt(I));var te=i.getDerivedStateFromProps;I=typeof te=="function"||typeof d.getSnapshotBeforeUpdate=="function",b=a.pendingProps!==b,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b||L!==v)&&Yx(a,d,o,v),ja=!1;var B=a.memoizedState;d.state=B,so(a,o,d,u),io(),L=a.memoizedState,b||B!==L||ja?(typeof te=="function"&&(kh(a,i,te,o),L=a.memoizedState),(T=ja||qx(a,i,T,o,B,L,v))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(a.flags|=4194308)):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=L),d.props=o,d.state=L,d.context=v,o=T):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{d=a.stateNode,hh(t,a),v=a.memoizedProps,I=$r(i,v),d.props=I,te=a.pendingProps,B=d.context,L=i.contextType,T=Di,typeof L=="object"&&L!==null&&(T=Pt(L)),b=i.getDerivedStateFromProps,(L=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==te||B!==T)&&Yx(a,d,o,T),ja=!1,B=a.memoizedState,d.state=B,so(a,o,d,u),io();var P=a.memoizedState;v!==te||B!==P||ja||t!==null&&t.dependencies!==null&&Ql(t.dependencies)?(typeof b=="function"&&(kh(a,i,b,o),P=a.memoizedState),(I=ja||qx(a,i,I,o,B,P,T)||t!==null&&t.dependencies!==null&&Ql(t.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,P,T),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,P,T)),typeof d.componentDidUpdate=="function"&&(a.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===t.memoizedProps&&B===t.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&B===t.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=P),d.props=o,d.state=P,d.context=T,o=I):(typeof d.componentDidUpdate!="function"||v===t.memoizedProps&&B===t.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&B===t.memoizedState||(a.flags|=1024),o=!1)}return d=o,pu(t,a),o=(a.flags&128)!==0,d||o?(d=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:d.render(),a.flags|=1,t!==null&&o?(a.child=Ui(a,t.child,null,u),a.child=Ui(a,null,i,u)):$t(t,a,i,u),a.memoizedState=d.state,t=a.child):t=pa(t,a,u),t}function oS(t,a,i,o){return Is(),a.flags|=256,$t(t,a,i,o),a.child}var Lh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uh(t){return{baseLanes:t,cachePool:X1()}}function Bh(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Dn),t}function lS(t,a,i){var o=a.pendingProps,u=!1,d=(a.flags&128)!==0,v;if((v=d)||(v=t!==null&&t.memoizedState===null?!1:(Et.current&2)!==0),v&&(u=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,t===null){if(He){if(u?Ba(a):Pa(),He){var b=ot,T;if(T=b){e:{for(T=b,b=Yn;T.nodeType!==8;){if(!b){b=null;break e}if(T=jn(T.nextSibling),T===null){b=null;break e}}b=T}b!==null?(a.memoizedState={dehydrated:b,treeContext:Cr!==null?{id:ua,overflow:ca}:null,retryLane:536870912,hydrationErrors:null},T=ln(18,null,null,0),T.stateNode=b,T.return=a,a.child=T,Xt=a,ot=null,T=!0):T=!1}T||zr(a)}if(b=a.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Tm(b)?a.lanes=32:a.lanes=536870912,null;ma(a)}return b=o.children,o=o.fallback,u?(Pa(),u=a.mode,b=gu({mode:"hidden",children:b},u),o=_r(o,u,i,null),b.return=a,o.return=a,b.sibling=o,a.child=b,u=a.child,u.memoizedState=Uh(i),u.childLanes=Bh(t,v,i),a.memoizedState=Lh,o):(Ba(a),Ph(a,b))}if(T=t.memoizedState,T!==null&&(b=T.dehydrated,b!==null)){if(d)a.flags&256?(Ba(a),a.flags&=-257,a=Zh(t,a,i)):a.memoizedState!==null?(Pa(),a.child=t.child,a.flags|=128,a=null):(Pa(),u=o.fallback,b=a.mode,o=gu({mode:"visible",children:o.children},b),u=_r(u,b,i,null),u.flags|=2,o.return=a,u.return=a,o.sibling=u,a.child=o,Ui(a,t.child,null,i),o=a.child,o.memoizedState=Uh(i),o.childLanes=Bh(t,v,i),a.memoizedState=Lh,a=u);else if(Ba(a),Tm(b)){if(v=b.nextSibling&&b.nextSibling.dataset,v)var L=v.dgst;v=L,o=Error(s(419)),o.stack="",o.digest=v,Js({value:o,source:null,stack:null}),a=Zh(t,a,i)}else if(Rt||Ws(t,a,i,!1),v=(i&t.childLanes)!==0,Rt||v){if(v=We,v!==null&&(o=i&-i,o=(o&42)!==0?1:Ed(o),o=(o&(v.suspendedLanes|i))!==0?0:o,o!==0&&o!==T.retryLane))throw T.retryLane=o,Mi(t,o),hn(v,t,o),Wx;b.data==="$?"||sm(),a=Zh(t,a,i)}else b.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=T.treeContext,ot=jn(b.nextSibling),Xt=a,He=!0,Dr=null,Yn=!1,t!==null&&(_n[Cn++]=ua,_n[Cn++]=ca,_n[Cn++]=Cr,ua=t.id,ca=t.overflow,Cr=a),a=Ph(a,o.children),a.flags|=4096);return a}return u?(Pa(),u=o.fallback,b=a.mode,T=t.child,L=T.sibling,o=la(T,{mode:"hidden",children:o.children}),o.subtreeFlags=T.subtreeFlags&65011712,L!==null?u=la(L,u):(u=_r(u,b,i,null),u.flags|=2),u.return=a,o.return=a,o.sibling=u,a.child=o,o=u,u=a.child,b=t.child.memoizedState,b===null?b=Uh(i):(T=b.cachePool,T!==null?(L=Tt._currentValue,T=T.parent!==L?{parent:L,pool:L}:T):T=X1(),b={baseLanes:b.baseLanes|i,cachePool:T}),u.memoizedState=b,u.childLanes=Bh(t,v,i),a.memoizedState=Lh,o):(Ba(a),i=t.child,t=i.sibling,i=la(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,t!==null&&(v=a.deletions,v===null?(a.deletions=[t],a.flags|=16):v.push(t)),a.child=i,a.memoizedState=null,i)}function Ph(t,a){return a=gu({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function gu(t,a){return t=ln(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Zh(t,a,i){return Ui(a,t.child,null,i),t=Ph(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function uS(t,a,i){t.lanes|=a;var o=t.alternate;o!==null&&(o.lanes|=a),sh(t.return,a,i)}function Hh(t,a,i,o,u){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:u}:(d.isBackwards=a,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=i,d.tailMode=u)}function cS(t,a,i){var o=a.pendingProps,u=o.revealOrder,d=o.tail;if($t(t,a,o.children,i),o=Et.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&uS(t,i,a);else if(t.tag===19)uS(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(ie(Et,o),u){case"forwards":for(i=a.child,u=null;i!==null;)t=i.alternate,t!==null&&du(t)===null&&(u=i),i=i.sibling;i=u,i===null?(u=a.child,a.child=null):(u=i.sibling,i.sibling=null),Hh(a,!1,u,i,d);break;case"backwards":for(i=null,u=a.child,a.child=null;u!==null;){if(t=u.alternate,t!==null&&du(t)===null){a.child=u;break}t=u.sibling,u.sibling=i,i=u,u=t}Hh(a,!0,i,null,d);break;case"together":Hh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function pa(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),Ya|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(Ws(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(s(153));if(a.child!==null){for(t=a.child,i=la(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=la(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Gh(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Ql(t)))}function C5(t,a,i){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),$a(a,Tt,t.memoizedState.cache),Is();break;case 27:case 5:Yt(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:$a(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Ba(a),a.flags|=128,null):(i&a.child.childLanes)!==0?lS(t,a,i):(Ba(a),t=pa(t,a,i),t!==null?t.sibling:null);Ba(a);break;case 19:var u=(t.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(Ws(t,a,i,!1),o=(i&a.childLanes)!==0),u){if(o)return cS(t,a,i);a.flags|=128}if(u=a.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ie(Et,Et.current),o)break;return null;case 22:case 23:return a.lanes=0,aS(t,a,i);case 24:$a(a,Tt,t.memoizedState.cache)}return pa(t,a,i)}function fS(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)Rt=!0;else{if(!Gh(t,i)&&(a.flags&128)===0)return Rt=!1,C5(t,a,i);Rt=(t.flags&131072)!==0}else Rt=!1,He&&(a.flags&1048576)!==0&&P1(a,Kl,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var o=a.elementType,u=o._init;if(o=u(o._payload),a.type=o,typeof o=="function")Wd(o)?(t=$r(o,t),a.tag=1,a=sS(null,a,o,t,i)):(a.tag=0,a=Nh(null,a,o,t,i));else{if(o!=null){if(u=o.$$typeof,u===W){a.tag=11,a=eS(null,a,o,t,i);break e}else if(u===J){a.tag=14,a=tS(null,a,o,t,i);break e}}throw a=U(o)||o,Error(s(306,a,""))}}return a;case 0:return Nh(t,a,a.type,a.pendingProps,i);case 1:return o=a.type,u=$r(o,a.pendingProps),sS(t,a,o,u,i);case 3:e:{if(Be(a,a.stateNode.containerInfo),t===null)throw Error(s(387));o=a.pendingProps;var d=a.memoizedState;u=d.element,hh(t,a),so(a,o,null,i);var v=a.memoizedState;if(o=v.cache,$a(a,Tt,o),o!==d.cache&&oh(a,[Tt],i,!0),io(),o=v.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=d,a.memoizedState=d,a.flags&256){a=oS(t,a,o,i);break e}else if(o!==u){u=En(Error(s(424)),a),Js(u),a=oS(t,a,o,i);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(ot=jn(t.firstChild),Xt=a,He=!0,Dr=null,Yn=!0,i=Hx(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Is(),o===u){a=pa(t,a,i);break e}$t(t,a,o,i)}a=a.child}return a;case 26:return pu(t,a),t===null?(i=pw(a.type,null,a.pendingProps,null))?a.memoizedState=i:He||(i=a.type,t=a.pendingProps,o=zu(Se.current).createElement(i),o[Bt]=a,o[Wt]=t,Nt(o,i,t),zt(o),a.stateNode=o):a.memoizedState=pw(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Yt(a),t===null&&He&&(o=a.stateNode=dw(a.type,a.pendingProps,Se.current),Xt=a,Yn=!0,u=ot,Qa(a.type)?(Em=u,ot=jn(o.firstChild)):ot=u),$t(t,a,a.pendingProps.children,i),pu(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&He&&((u=o=ot)&&(o=tV(o,a.type,a.pendingProps,Yn),o!==null?(a.stateNode=o,Xt=a,ot=jn(o.firstChild),Yn=!1,u=!0):u=!1),u||zr(a)),Yt(a),u=a.type,d=a.pendingProps,v=t!==null?t.memoizedProps:null,o=d.children,xm(u,d)?o=null:v!==null&&xm(u,v)&&(a.flags|=32),a.memoizedState!==null&&(u=bh(t,a,b5,null,null,i),Do._currentValue=u),pu(t,a),$t(t,a,o,i),a.child;case 6:return t===null&&He&&((t=i=ot)&&(i=nV(i,a.pendingProps,Yn),i!==null?(a.stateNode=i,Xt=a,ot=null,t=!0):t=!1),t||zr(a)),null;case 13:return lS(t,a,i);case 4:return Be(a,a.stateNode.containerInfo),o=a.pendingProps,t===null?a.child=Ui(a,null,o,i):$t(t,a,o,i),a.child;case 11:return eS(t,a,a.type,a.pendingProps,i);case 7:return $t(t,a,a.pendingProps,i),a.child;case 8:return $t(t,a,a.pendingProps.children,i),a.child;case 12:return $t(t,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,$a(a,a.type,o.value),$t(t,a,o.children,i),a.child;case 9:return u=a.type._context,o=a.pendingProps.children,Vr(a),u=Pt(u),o=o(u),a.flags|=1,$t(t,a,o,i),a.child;case 14:return tS(t,a,a.type,a.pendingProps,i);case 15:return nS(t,a,a.type,a.pendingProps,i);case 19:return cS(t,a,i);case 31:return o=a.pendingProps,i=a.mode,o={mode:o.mode,children:o.children},t===null?(i=gu(o,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=la(t.child,o),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return aS(t,a,i);case 24:return Vr(a),o=Pt(Tt),t===null?(u=ch(),u===null&&(u=We,d=lh(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),a.memoizedState={parent:o,cache:u},dh(a),$a(a,Tt,u)):((t.lanes&i)!==0&&(hh(t,a),so(a,null,null,i),io()),u=t.memoizedState,d=a.memoizedState,u.parent!==o?(u={parent:o,cache:o},a.memoizedState=u,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=u),$a(a,Tt,o)):(o=d.cache,$a(a,Tt,o),o!==u.cache&&oh(a,[Tt],i,!0))),$t(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function ga(t){t.flags|=4}function dS(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!xw(a)){if(a=Mn.current,a!==null&&((Pe&4194048)===Pe?Fn!==null:(Pe&62914560)!==Pe&&(Pe&536870912)===0||a!==Fn))throw ao=fh,K1;t.flags|=8192}}function vu(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?G0():536870912,t.lanes|=a,Hi|=a)}function mo(t,a){if(!He)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function it(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(a)for(var u=t.child;u!==null;)i|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)i|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=o,t.childLanes=i,a}function M5(t,a,i){var o=a.pendingProps;switch(ah(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(a),null;case 1:return it(a),null;case 3:return i=a.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),da(Tt),vt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Qs(a)?ga(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,G1())),it(a),null;case 26:return i=a.memoizedState,t===null?(ga(a),i!==null?(it(a),dS(a,i)):(it(a),a.flags&=-16777217)):i?i!==t.memoizedState?(ga(a),it(a),dS(a,i)):(it(a),a.flags&=-16777217):(t.memoizedProps!==o&&ga(a),it(a),a.flags&=-16777217),null;case 27:Ct(a),i=Se.current;var u=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==o&&ga(a);else{if(!o){if(a.stateNode===null)throw Error(s(166));return it(a),null}t=fe.current,Qs(a)?Z1(a):(t=dw(u,o,i),a.stateNode=t,ga(a))}return it(a),null;case 5:if(Ct(a),i=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&ga(a);else{if(!o){if(a.stateNode===null)throw Error(s(166));return it(a),null}if(t=fe.current,Qs(a))Z1(a);else{switch(u=zu(Se.current),t){case 1:t=u.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=u.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=u.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=u.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof o.is=="string"?u.createElement("select",{is:o.is}):u.createElement("select"),o.multiple?t.multiple=!0:o.size&&(t.size=o.size);break;default:t=typeof o.is=="string"?u.createElement(i,{is:o.is}):u.createElement(i)}}t[Bt]=a,t[Wt]=o;e:for(u=a.child;u!==null;){if(u.tag===5||u.tag===6)t.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a.stateNode=t;e:switch(Nt(t,i,o),i){case"button":case"input":case"select":case"textarea":t=!!o.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&ga(a)}}return it(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==o&&ga(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(s(166));if(t=Se.current,Qs(a)){if(t=a.stateNode,i=a.memoizedProps,o=null,u=Xt,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}t[Bt]=a,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||iw(t.nodeValue,i)),t||zr(a)}else t=zu(t).createTextNode(o),t[Bt]=a,a.stateNode=t}return it(a),null;case 13:if(o=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Qs(a),o!==null&&o.dehydrated!==null){if(t===null){if(!u)throw Error(s(318));if(u=a.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Bt]=a}else Is(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),u=!1}else u=G1(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return a.flags&256?(ma(a),a):(ma(a),null)}if(ma(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=o!==null,t=t!==null&&t.memoizedState!==null,i){o=a.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==u&&(o.flags|=2048)}return i!==t&&i&&(a.child.flags|=8192),vu(a,a.updateQueue),it(a),null;case 4:return vt(),t===null&&pm(a.stateNode.containerInfo),it(a),null;case 10:return da(a.type),it(a),null;case 19:if(se(Et),u=a.memoizedState,u===null)return it(a),null;if(o=(a.flags&128)!==0,d=u.rendering,d===null)if(o)mo(u,!1);else{if(lt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(d=du(t),d!==null){for(a.flags|=128,mo(u,!1),t=d.updateQueue,a.updateQueue=t,vu(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)B1(i,t),i=i.sibling;return ie(Et,Et.current&1|2),a.child}t=t.sibling}u.tail!==null&&Jt()>xu&&(a.flags|=128,o=!0,mo(u,!1),a.lanes=4194304)}else{if(!o)if(t=du(d),t!==null){if(a.flags|=128,o=!0,t=t.updateQueue,a.updateQueue=t,vu(a,t),mo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!He)return it(a),null}else 2*Jt()-u.renderingStartTime>xu&&i!==536870912&&(a.flags|=128,o=!0,mo(u,!1),a.lanes=4194304);u.isBackwards?(d.sibling=a.child,a.child=d):(t=u.last,t!==null?t.sibling=d:a.child=d,u.last=d)}return u.tail!==null?(a=u.tail,u.rendering=a,u.tail=a.sibling,u.renderingStartTime=Jt(),a.sibling=null,t=Et.current,ie(Et,o?t&1|2:t&1),a):(it(a),null);case 22:case 23:return ma(a),vh(),o=a.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&(it(a),a.subtreeFlags&6&&(a.flags|=8192)):it(a),i=a.updateQueue,i!==null&&vu(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),t!==null&&se(Or),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),da(Tt),it(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function D5(t,a){switch(ah(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return da(Tt),vt(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Ct(a),null;case 13:if(ma(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Is()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return se(Et),null;case 4:return vt(),null;case 10:return da(a.type),null;case 22:case 23:return ma(a),vh(),t!==null&&se(Or),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return da(Tt),null;case 25:return null;default:return null}}function hS(t,a){switch(ah(a),a.tag){case 3:da(Tt),vt();break;case 26:case 27:case 5:Ct(a);break;case 4:vt();break;case 13:ma(a);break;case 19:se(Et);break;case 10:da(a.type);break;case 22:case 23:ma(a),vh(),t!==null&&se(Or);break;case 24:da(Tt)}}function po(t,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var u=o.next;i=u;do{if((i.tag&t)===t){o=void 0;var d=i.create,v=i.inst;o=d(),v.destroy=o}i=i.next}while(i!==u)}}catch(b){Ie(a,a.return,b)}}function Za(t,a,i){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var d=u.next;o=d;do{if((o.tag&t)===t){var v=o.inst,b=v.destroy;if(b!==void 0){v.destroy=void 0,u=a;var T=i,L=b;try{L()}catch(I){Ie(u,T,I)}}}o=o.next}while(o!==d)}}catch(I){Ie(a,a.return,I)}}function mS(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{tx(a,i)}catch(o){Ie(t,t.return,o)}}}function pS(t,a,i){i.props=$r(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){Ie(t,a,o)}}function go(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(u){Ie(t,a,u)}}function Xn(t,a){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(u){Ie(t,a,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){Ie(t,a,u)}else i.current=null}function gS(t){var a=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(u){Ie(t,t.return,u)}}function qh(t,a,i){try{var o=t.stateNode;Q5(o,t.type,i,a),o[Wt]=a}catch(u){Ie(t,t.return,u)}}function vS(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Qa(t.type)||t.tag===4}function Yh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||vS(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Qa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Fh(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Du));else if(o!==4&&(o===27&&Qa(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(Fh(t,a,i),t=t.sibling;t!==null;)Fh(t,a,i),t=t.sibling}function yu(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(o!==4&&(o===27&&Qa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(yu(t,a,i),t=t.sibling;t!==null;)yu(t,a,i),t=t.sibling}function yS(t){var a=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,u=a.attributes;u.length;)a.removeAttributeNode(u[0]);Nt(a,o,i),a[Bt]=t,a[Wt]=i}catch(d){Ie(t,t.return,d)}}var va=!1,ht=!1,Xh=!1,bS=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function z5(t,a){if(t=t.containerInfo,ym=ju,t=z1(t),Yd(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var u=o.anchorOffset,d=o.focusNode;o=o.focusOffset;var v=0,b=-1,T=-1,L=0,I=0,te=t,B=null;e:for(;;){for(var P;te!==i||u!==0&&te.nodeType!==3||(b=v+u),te!==d||o!==0&&te.nodeType!==3||(T=v+o),te.nodeType===3&&(v+=te.nodeValue.length),(P=te.firstChild)!==null;)B=te,te=P;for(;;){if(te===t)break e;if(B===i&&++L===u&&(b=v),B===d&&++I===o&&(T=v),(P=te.nextSibling)!==null)break;te=B,B=te.parentNode}te=P}i=b===-1||T===-1?null:{start:b,end:T}}else i=null}i=i||{start:0,end:0}}else i=null;for(bm={focusedElem:t,selectionRange:i},ju=!1,Vt=a;Vt!==null;)if(a=Vt,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Vt=t;else for(;Vt!==null;){switch(a=Vt,d=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&d!==null){t=void 0,i=a,u=d.memoizedProps,d=d.memoizedState,o=i.stateNode;try{var Ce=$r(i.type,u);t=o.getSnapshotBeforeUpdate(Ce,d),o.__reactInternalSnapshotBeforeUpdate=t}catch(Ee){Ie(i,i.return,Ee)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)wm(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wm(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=a.sibling,t!==null){t.return=a.return,Vt=t;break}Vt=a.return}}function xS(t,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Ha(t,i),o&4&&po(5,i);break;case 1:if(Ha(t,i),o&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(v){Ie(i,i.return,v)}else{var u=$r(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(u,a,t.__reactInternalSnapshotBeforeUpdate)}catch(v){Ie(i,i.return,v)}}o&64&&mS(i),o&512&&go(i,i.return);break;case 3:if(Ha(t,i),o&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{tx(t,a)}catch(v){Ie(i,i.return,v)}}break;case 27:a===null&&o&4&&yS(i);case 26:case 5:Ha(t,i),a===null&&o&4&&gS(i),o&512&&go(i,i.return);break;case 12:Ha(t,i);break;case 13:Ha(t,i),o&4&&TS(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=U5.bind(null,i),aV(t,i))));break;case 22:if(o=i.memoizedState!==null||va,!o){a=a!==null&&a.memoizedState!==null||ht,u=va;var d=ht;va=o,(ht=a)&&!d?Ga(t,i,(i.subtreeFlags&8772)!==0):Ha(t,i),va=u,ht=d}break;case 30:break;default:Ha(t,i)}}function SS(t){var a=t.alternate;a!==null&&(t.alternate=null,SS(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Cd(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var nt=null,nn=!1;function ya(t,a,i){for(i=i.child;i!==null;)wS(t,a,i),i=i.sibling}function wS(t,a,i){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(ve,i)}catch{}switch(i.tag){case 26:ht||Xn(i,a),ya(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ht||Xn(i,a);var o=nt,u=nn;Qa(i.type)&&(nt=i.stateNode,nn=!1),ya(t,a,i),Ao(i.stateNode),nt=o,nn=u;break;case 5:ht||Xn(i,a);case 6:if(o=nt,u=nn,nt=null,ya(t,a,i),nt=o,nn=u,nt!==null)if(nn)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(i.stateNode)}catch(d){Ie(i,a,d)}else try{nt.removeChild(i.stateNode)}catch(d){Ie(i,a,d)}break;case 18:nt!==null&&(nn?(t=nt,cw(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Oo(t)):cw(nt,i.stateNode));break;case 4:o=nt,u=nn,nt=i.stateNode.containerInfo,nn=!0,ya(t,a,i),nt=o,nn=u;break;case 0:case 11:case 14:case 15:ht||Za(2,i,a),ht||Za(4,i,a),ya(t,a,i);break;case 1:ht||(Xn(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&pS(i,a,o)),ya(t,a,i);break;case 21:ya(t,a,i);break;case 22:ht=(o=ht)||i.memoizedState!==null,ya(t,a,i),ht=o;break;default:ya(t,a,i)}}function TS(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Oo(t)}catch(i){Ie(a,a.return,i)}}function R5(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new bS),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new bS),a;default:throw Error(s(435,t.tag))}}function Kh(t,a){var i=R5(t);a.forEach(function(o){var u=B5.bind(null,t,o);i.has(o)||(i.add(o),o.then(u,u))})}function un(t,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var u=i[o],d=t,v=a,b=v;e:for(;b!==null;){switch(b.tag){case 27:if(Qa(b.type)){nt=b.stateNode,nn=!1;break e}break;case 5:nt=b.stateNode,nn=!1;break e;case 3:case 4:nt=b.stateNode.containerInfo,nn=!0;break e}b=b.return}if(nt===null)throw Error(s(160));wS(d,v,u),nt=null,nn=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)ES(a,t),a=a.sibling}var $n=null;function ES(t,a){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:un(a,t),cn(t),o&4&&(Za(3,t,t.return),po(3,t),Za(5,t,t.return));break;case 1:un(a,t),cn(t),o&512&&(ht||i===null||Xn(i,i.return)),o&64&&va&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var u=$n;if(un(a,t),cn(t),o&512&&(ht||i===null||Xn(i,i.return)),o&4){var d=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Us]||d[Bt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(o),u.head.insertBefore(d,u.querySelector("head > title"))),Nt(d,o,i),d[Bt]=t,zt(d),o=d;break e;case"link":var v=yw("link","href",u).get(o+(i.href||""));if(v){for(var b=0;b<v.length;b++)if(d=v[b],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(b,1);break t}}d=u.createElement(o),Nt(d,o,i),u.head.appendChild(d);break;case"meta":if(v=yw("meta","content",u).get(o+(i.content||""))){for(b=0;b<v.length;b++)if(d=v[b],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(b,1);break t}}d=u.createElement(o),Nt(d,o,i),u.head.appendChild(d);break;default:throw Error(s(468,o))}d[Bt]=t,zt(d),o=d}t.stateNode=o}else bw(u,t.type,t.stateNode);else t.stateNode=vw(u,o,t.memoizedProps);else d!==o?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,o===null?bw(u,t.type,t.stateNode):vw(u,o,t.memoizedProps)):o===null&&t.stateNode!==null&&qh(t,t.memoizedProps,i.memoizedProps)}break;case 27:un(a,t),cn(t),o&512&&(ht||i===null||Xn(i,i.return)),i!==null&&o&4&&qh(t,t.memoizedProps,i.memoizedProps);break;case 5:if(un(a,t),cn(t),o&512&&(ht||i===null||Xn(i,i.return)),t.flags&32){u=t.stateNode;try{Si(u,"")}catch(P){Ie(t,t.return,P)}}o&4&&t.stateNode!=null&&(u=t.memoizedProps,qh(t,u,i!==null?i.memoizedProps:u)),o&1024&&(Xh=!0);break;case 6:if(un(a,t),cn(t),o&4){if(t.stateNode===null)throw Error(s(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(P){Ie(t,t.return,P)}}break;case 3:if(Ou=null,u=$n,$n=Ru(a.containerInfo),un(a,t),$n=u,cn(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Oo(a.containerInfo)}catch(P){Ie(t,t.return,P)}Xh&&(Xh=!1,AS(t));break;case 4:o=$n,$n=Ru(t.stateNode.containerInfo),un(a,t),cn(t),$n=o;break;case 12:un(a,t),cn(t);break;case 13:un(a,t),cn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(tm=Jt()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Kh(t,o)));break;case 22:u=t.memoizedState!==null;var T=i!==null&&i.memoizedState!==null,L=va,I=ht;if(va=L||u,ht=I||T,un(a,t),ht=I,va=L,cn(t),o&8192)e:for(a=t.stateNode,a._visibility=u?a._visibility&-2:a._visibility|1,u&&(i===null||T||va||ht||jr(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){T=i=a;try{if(d=T.stateNode,u)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{b=T.stateNode;var te=T.memoizedProps.style,B=te!=null&&te.hasOwnProperty("display")?te.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(P){Ie(T,T.return,P)}}}else if(a.tag===6){if(i===null){T=a;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(P){Ie(T,T.return,P)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Kh(t,i))));break;case 19:un(a,t),cn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Kh(t,o)));break;case 30:break;case 21:break;default:un(a,t),cn(t)}}function cn(t){var a=t.flags;if(a&2){try{for(var i,o=t.return;o!==null;){if(vS(o)){i=o;break}o=o.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var u=i.stateNode,d=Yh(t);yu(t,d,u);break;case 5:var v=i.stateNode;i.flags&32&&(Si(v,""),i.flags&=-33);var b=Yh(t);yu(t,b,v);break;case 3:case 4:var T=i.stateNode.containerInfo,L=Yh(t);Fh(t,L,T);break;default:throw Error(s(161))}}catch(I){Ie(t,t.return,I)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function AS(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;AS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function Ha(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)xS(t,a.alternate,a),a=a.sibling}function jr(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Za(4,a,a.return),jr(a);break;case 1:Xn(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&pS(a,a.return,i),jr(a);break;case 27:Ao(a.stateNode);case 26:case 5:Xn(a,a.return),jr(a);break;case 22:a.memoizedState===null&&jr(a);break;case 30:jr(a);break;default:jr(a)}t=t.sibling}}function Ga(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,u=t,d=a,v=d.flags;switch(d.tag){case 0:case 11:case 15:Ga(u,d,i),po(4,d);break;case 1:if(Ga(u,d,i),o=d,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(L){Ie(o,o.return,L)}if(o=d,u=o.updateQueue,u!==null){var b=o.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)ex(T[u],b)}catch(L){Ie(o,o.return,L)}}i&&v&64&&mS(d),go(d,d.return);break;case 27:yS(d);case 26:case 5:Ga(u,d,i),i&&o===null&&v&4&&gS(d),go(d,d.return);break;case 12:Ga(u,d,i);break;case 13:Ga(u,d,i),i&&v&4&&TS(u,d);break;case 22:d.memoizedState===null&&Ga(u,d,i),go(d,d.return);break;case 30:break;default:Ga(u,d,i)}a=a.sibling}}function Qh(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&eo(i))}function Ih(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&eo(t))}function Kn(t,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)_S(t,a,i,o),a=a.sibling}function _S(t,a,i,o){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Kn(t,a,i,o),u&2048&&po(9,a);break;case 1:Kn(t,a,i,o);break;case 3:Kn(t,a,i,o),u&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&eo(t)));break;case 12:if(u&2048){Kn(t,a,i,o),t=a.stateNode;try{var d=a.memoizedProps,v=d.id,b=d.onPostCommit;typeof b=="function"&&b(v,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){Ie(a,a.return,T)}}else Kn(t,a,i,o);break;case 13:Kn(t,a,i,o);break;case 23:break;case 22:d=a.stateNode,v=a.alternate,a.memoizedState!==null?d._visibility&2?Kn(t,a,i,o):vo(t,a):d._visibility&2?Kn(t,a,i,o):(d._visibility|=2,Bi(t,a,i,o,(a.subtreeFlags&10256)!==0)),u&2048&&Qh(v,a);break;case 24:Kn(t,a,i,o),u&2048&&Ih(a.alternate,a);break;default:Kn(t,a,i,o)}}function Bi(t,a,i,o,u){for(u=u&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var d=t,v=a,b=i,T=o,L=v.flags;switch(v.tag){case 0:case 11:case 15:Bi(d,v,b,T,u),po(8,v);break;case 23:break;case 22:var I=v.stateNode;v.memoizedState!==null?I._visibility&2?Bi(d,v,b,T,u):vo(d,v):(I._visibility|=2,Bi(d,v,b,T,u)),u&&L&2048&&Qh(v.alternate,v);break;case 24:Bi(d,v,b,T,u),u&&L&2048&&Ih(v.alternate,v);break;default:Bi(d,v,b,T,u)}a=a.sibling}}function vo(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,o=a,u=o.flags;switch(o.tag){case 22:vo(i,o),u&2048&&Qh(o.alternate,o);break;case 24:vo(i,o),u&2048&&Ih(o.alternate,o);break;default:vo(i,o)}a=a.sibling}}var yo=8192;function Pi(t){if(t.subtreeFlags&yo)for(t=t.child;t!==null;)CS(t),t=t.sibling}function CS(t){switch(t.tag){case 26:Pi(t),t.flags&yo&&t.memoizedState!==null&&gV($n,t.memoizedState,t.memoizedProps);break;case 5:Pi(t);break;case 3:case 4:var a=$n;$n=Ru(t.stateNode.containerInfo),Pi(t),$n=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=yo,yo=16777216,Pi(t),yo=a):Pi(t));break;default:Pi(t)}}function MS(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function bo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];Vt=o,zS(o,t)}MS(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)DS(t),t=t.sibling}function DS(t){switch(t.tag){case 0:case 11:case 15:bo(t),t.flags&2048&&Za(9,t,t.return);break;case 3:bo(t);break;case 12:bo(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,bu(t)):bo(t);break;default:bo(t)}}function bu(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];Vt=o,zS(o,t)}MS(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Za(8,a,a.return),bu(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,bu(a));break;default:bu(a)}t=t.sibling}}function zS(t,a){for(;Vt!==null;){var i=Vt;switch(i.tag){case 0:case 11:case 15:Za(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:eo(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Vt=o;else e:for(i=t;Vt!==null;){o=Vt;var u=o.sibling,d=o.return;if(SS(o),o===i){Vt=null;break e}if(u!==null){u.return=d,Vt=u;break e}Vt=d}}}var V5={getCacheForType:function(t){var a=Pt(Tt),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i}},O5=typeof WeakMap=="function"?WeakMap:Map,qe=0,We=null,Ne=null,Pe=0,Ye=0,fn=null,qa=!1,Zi=!1,Jh=!1,ba=0,lt=0,Ya=0,Nr=0,Wh=0,Dn=0,Hi=0,xo=null,an=null,em=!1,tm=0,xu=1/0,Su=null,Fa=null,jt=0,Xa=null,Gi=null,qi=0,nm=0,am=null,RS=null,So=0,rm=null;function dn(){if((qe&2)!==0&&Pe!==0)return Pe&-Pe;if(S.T!==null){var t=Vi;return t!==0?t:fm()}return F0()}function VS(){Dn===0&&(Dn=(Pe&536870912)===0||He?H0():536870912);var t=Mn.current;return t!==null&&(t.flags|=32),Dn}function hn(t,a,i){(t===We&&(Ye===2||Ye===9)||t.cancelPendingCommit!==null)&&(Yi(t,0),Ka(t,Pe,Dn,!1)),Ls(t,i),((qe&2)===0||t!==We)&&(t===We&&((qe&2)===0&&(Nr|=i),lt===4&&Ka(t,Pe,Dn,!1)),Qn(t))}function OS(t,a,i){if((qe&6)!==0)throw Error(s(327));var o=!i&&(a&124)===0&&(a&t.expiredLanes)===0||Sr(t,a),u=o?j5(t,a):om(t,a,!0),d=o;do{if(u===0){Zi&&!o&&Ka(t,a,0,!1);break}else{if(i=t.current.alternate,d&&!k5(i)){u=om(t,a,!1),d=!1;continue}if(u===2){if(d=a,t.errorRecoveryDisabledLanes&d)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var b=t;u=xo;var T=b.current.memoizedState.isDehydrated;if(T&&(Yi(b,v).flags|=256),v=om(b,v,!1),v!==2){if(Jh&&!T){b.errorRecoveryDisabledLanes|=d,Nr|=d,u=4;break e}d=an,an=u,d!==null&&(an===null?an=d:an.push.apply(an,d))}u=v}if(d=!1,u!==2)continue}}if(u===1){Yi(t,0),Ka(t,a,0,!0);break}e:{switch(o=t,d=u,d){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:Ka(o,a,Dn,!qa);break e;case 2:an=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(u=tm+300-Jt(),10<u)){if(Ka(o,a,Dn,!qa),xr(o,0,!0)!==0)break e;o.timeoutHandle=lw(kS.bind(null,o,i,an,Su,em,a,Dn,Nr,Hi,qa,d,2,-0,0),u);break e}kS(o,i,an,Su,em,a,Dn,Nr,Hi,qa,d,0,-0,0)}}break}while(!0);Qn(t)}function kS(t,a,i,o,u,d,v,b,T,L,I,te,B,P){if(t.timeoutHandle=-1,te=a.subtreeFlags,(te&8192||(te&16785408)===16785408)&&(Mo={stylesheets:null,count:0,unsuspend:pV},CS(a),te=vV(),te!==null)){t.cancelPendingCommit=te(PS.bind(null,t,a,d,i,o,u,v,b,T,I,1,B,P)),Ka(t,d,v,!L);return}PS(t,a,d,i,o,u,v,b,T)}function k5(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var u=i[o],d=u.getSnapshot;u=u.value;try{if(!on(d(),u))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ka(t,a,i,o){a&=~Wh,a&=~Nr,t.suspendedLanes|=a,t.pingedLanes&=~a,o&&(t.warmLanes|=a),o=t.expirationTimes;for(var u=a;0<u;){var d=31-Fe(u),v=1<<d;o[d]=-1,u&=~v}i!==0&&q0(t,i,a)}function wu(){return(qe&6)===0?(wo(0),!1):!0}function im(){if(Ne!==null){if(Ye===0)var t=Ne.return;else t=Ne,fa=Rr=null,wh(t),Li=null,fo=0,t=Ne;for(;t!==null;)hS(t.alternate,t),t=t.return;Ne=null}}function Yi(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,J5(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),im(),We=t,Ne=i=la(t.current,null),Pe=a,Ye=0,fn=null,qa=!1,Zi=Sr(t,a),Jh=!1,Hi=Dn=Wh=Nr=Ya=lt=0,an=xo=null,em=!1,(a&8)!==0&&(a|=a&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=a;0<o;){var u=31-Fe(o),d=1<<u;a|=t[u],o&=~d}return ba=a,Gl(),i}function $S(t,a){ke=null,S.H=uu,a===no||a===Wl?(a=J1(),Ye=3):a===K1?(a=J1(),Ye=4):Ye=a===Wx?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,fn=a,Ne===null&&(lt=1,mu(t,En(a,t.current)))}function jS(){var t=S.H;return S.H=uu,t===null?uu:t}function NS(){var t=S.A;return S.A=V5,t}function sm(){lt=4,qa||(Pe&4194048)!==Pe&&Mn.current!==null||(Zi=!0),(Ya&134217727)===0&&(Nr&134217727)===0||We===null||Ka(We,Pe,Dn,!1)}function om(t,a,i){var o=qe;qe|=2;var u=jS(),d=NS();(We!==t||Pe!==a)&&(Su=null,Yi(t,a)),a=!1;var v=lt;e:do try{if(Ye!==0&&Ne!==null){var b=Ne,T=fn;switch(Ye){case 8:im(),v=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(a=!0);var L=Ye;if(Ye=0,fn=null,Fi(t,b,T,L),i&&Zi){v=0;break e}break;default:L=Ye,Ye=0,fn=null,Fi(t,b,T,L)}}$5(),v=lt;break}catch(I){$S(t,I)}while(!0);return a&&t.shellSuspendCounter++,fa=Rr=null,qe=o,S.H=u,S.A=d,Ne===null&&(We=null,Pe=0,Gl()),v}function $5(){for(;Ne!==null;)LS(Ne)}function j5(t,a){var i=qe;qe|=2;var o=jS(),u=NS();We!==t||Pe!==a?(Su=null,xu=Jt()+500,Yi(t,a)):Zi=Sr(t,a);e:do try{if(Ye!==0&&Ne!==null){a=Ne;var d=fn;t:switch(Ye){case 1:Ye=0,fn=null,Fi(t,a,d,1);break;case 2:case 9:if(Q1(d)){Ye=0,fn=null,US(a);break}a=function(){Ye!==2&&Ye!==9||We!==t||(Ye=7),Qn(t)},d.then(a,a);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Q1(d)?(Ye=0,fn=null,US(a)):(Ye=0,fn=null,Fi(t,a,d,7));break;case 5:var v=null;switch(Ne.tag){case 26:v=Ne.memoizedState;case 5:case 27:var b=Ne;if(!v||xw(v)){Ye=0,fn=null;var T=b.sibling;if(T!==null)Ne=T;else{var L=b.return;L!==null?(Ne=L,Tu(L)):Ne=null}break t}}Ye=0,fn=null,Fi(t,a,d,5);break;case 6:Ye=0,fn=null,Fi(t,a,d,6);break;case 8:im(),lt=6;break e;default:throw Error(s(462))}}N5();break}catch(I){$S(t,I)}while(!0);return fa=Rr=null,S.H=o,S.A=u,qe=i,Ne!==null?0:(We=null,Pe=0,Gl(),lt)}function N5(){for(;Ne!==null&&!hi();)LS(Ne)}function LS(t){var a=fS(t.alternate,t,ba);t.memoizedProps=t.pendingProps,a===null?Tu(t):Ne=a}function US(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=iS(i,a,a.pendingProps,a.type,void 0,Pe);break;case 11:a=iS(i,a,a.pendingProps,a.type.render,a.ref,Pe);break;case 5:wh(a);default:hS(i,a),a=Ne=B1(a,ba),a=fS(i,a,ba)}t.memoizedProps=t.pendingProps,a===null?Tu(t):Ne=a}function Fi(t,a,i,o){fa=Rr=null,wh(a),Li=null,fo=0;var u=a.return;try{if(_5(t,u,a,i,Pe)){lt=1,mu(t,En(i,t.current)),Ne=null;return}}catch(d){if(u!==null)throw Ne=u,d;lt=1,mu(t,En(i,t.current)),Ne=null;return}a.flags&32768?(He||o===1?t=!0:Zi||(Pe&536870912)!==0?t=!1:(qa=t=!0,(o===2||o===9||o===3||o===6)&&(o=Mn.current,o!==null&&o.tag===13&&(o.flags|=16384))),BS(a,t)):Tu(a)}function Tu(t){var a=t;do{if((a.flags&32768)!==0){BS(a,qa);return}t=a.return;var i=M5(a.alternate,a,ba);if(i!==null){Ne=i;return}if(a=a.sibling,a!==null){Ne=a;return}Ne=a=t}while(a!==null);lt===0&&(lt=5)}function BS(t,a){do{var i=D5(t.alternate,t);if(i!==null){i.flags&=32767,Ne=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){Ne=t;return}Ne=t=i}while(t!==null);lt=6,Ne=null}function PS(t,a,i,o,u,d,v,b,T){t.cancelPendingCommit=null;do Eu();while(jt!==0);if((qe&6)!==0)throw Error(s(327));if(a!==null){if(a===t.current)throw Error(s(177));if(d=a.lanes|a.childLanes,d|=Id,pR(t,i,d,v,b,T),t===We&&(Ne=We=null,Pe=0),Gi=a,Xa=t,qi=i,nm=d,am=u,RS=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,P5(N,function(){return YS(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=S.T,S.T=null,u=j.p,j.p=2,v=qe,qe|=4;try{z5(t,a)}finally{qe=v,j.p=u,S.T=o}}jt=1,ZS(),HS(),GS()}}function ZS(){if(jt===1){jt=0;var t=Xa,a=Gi,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=S.T,S.T=null;var o=j.p;j.p=2;var u=qe;qe|=4;try{ES(a,t);var d=bm,v=z1(t.containerInfo),b=d.focusedElem,T=d.selectionRange;if(v!==b&&b&&b.ownerDocument&&D1(b.ownerDocument.documentElement,b)){if(T!==null&&Yd(b)){var L=T.start,I=T.end;if(I===void 0&&(I=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(I,b.value.length);else{var te=b.ownerDocument||document,B=te&&te.defaultView||window;if(B.getSelection){var P=B.getSelection(),Ce=b.textContent.length,Ee=Math.min(T.start,Ce),Qe=T.end===void 0?Ee:Math.min(T.end,Ce);!P.extend&&Ee>Qe&&(v=Qe,Qe=Ee,Ee=v);var V=M1(b,Ee),M=M1(b,Qe);if(V&&M&&(P.rangeCount!==1||P.anchorNode!==V.node||P.anchorOffset!==V.offset||P.focusNode!==M.node||P.focusOffset!==M.offset)){var k=te.createRange();k.setStart(V.node,V.offset),P.removeAllRanges(),Ee>Qe?(P.addRange(k),P.extend(M.node,M.offset)):(k.setEnd(M.node,M.offset),P.addRange(k))}}}}for(te=[],P=b;P=P.parentNode;)P.nodeType===1&&te.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<te.length;b++){var ee=te[b];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}ju=!!ym,bm=ym=null}finally{qe=u,j.p=o,S.T=i}}t.current=a,jt=2}}function HS(){if(jt===2){jt=0;var t=Xa,a=Gi,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=S.T,S.T=null;var o=j.p;j.p=2;var u=qe;qe|=4;try{xS(t,a.alternate,a)}finally{qe=u,j.p=o,S.T=i}}jt=3}}function GS(){if(jt===4||jt===3){jt=0,js();var t=Xa,a=Gi,i=qi,o=RS;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?jt=5:(jt=0,Gi=Xa=null,qS(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Fa=null),Ad(i),a=a.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(ve,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=S.T,u=j.p,j.p=2,S.T=null;try{for(var d=t.onRecoverableError,v=0;v<o.length;v++){var b=o[v];d(b.value,{componentStack:b.stack})}}finally{S.T=a,j.p=u}}(qi&3)!==0&&Eu(),Qn(t),u=t.pendingLanes,(i&4194090)!==0&&(u&42)!==0?t===rm?So++:(So=0,rm=t):So=0,wo(0)}}function qS(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,eo(a)))}function Eu(t){return ZS(),HS(),GS(),YS()}function YS(){if(jt!==5)return!1;var t=Xa,a=nm;nm=0;var i=Ad(qi),o=S.T,u=j.p;try{j.p=32>i?32:i,S.T=null,i=am,am=null;var d=Xa,v=qi;if(jt=0,Gi=Xa=null,qi=0,(qe&6)!==0)throw Error(s(331));var b=qe;if(qe|=4,DS(d.current),_S(d,d.current,v,i),qe=b,wo(0),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(ve,d)}catch{}return!0}finally{j.p=u,S.T=o,qS(t,a)}}function FS(t,a,i){a=En(i,a),a=jh(t.stateNode,a,2),t=La(t,a,2),t!==null&&(Ls(t,2),Qn(t))}function Ie(t,a,i){if(t.tag===3)FS(t,t,i);else for(;a!==null;){if(a.tag===3){FS(a,t,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fa===null||!Fa.has(o))){t=En(i,t),i=Ix(2),o=La(a,i,2),o!==null&&(Jx(i,o,a,t),Ls(o,2),Qn(o));break}}a=a.return}}function lm(t,a,i){var o=t.pingCache;if(o===null){o=t.pingCache=new O5;var u=new Set;o.set(a,u)}else u=o.get(a),u===void 0&&(u=new Set,o.set(a,u));u.has(i)||(Jh=!0,u.add(i),t=L5.bind(null,t,a,i),a.then(t,t))}function L5(t,a,i){var o=t.pingCache;o!==null&&o.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,We===t&&(Pe&i)===i&&(lt===4||lt===3&&(Pe&62914560)===Pe&&300>Jt()-tm?(qe&2)===0&&Yi(t,0):Wh|=i,Hi===Pe&&(Hi=0)),Qn(t)}function XS(t,a){a===0&&(a=G0()),t=Mi(t,a),t!==null&&(Ls(t,a),Qn(t))}function U5(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),XS(t,i)}function B5(t,a){var i=0;switch(t.tag){case 13:var o=t.stateNode,u=t.memoizedState;u!==null&&(i=u.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(a),XS(t,i)}function P5(t,a){return Ft(t,a)}var Au=null,Xi=null,um=!1,_u=!1,cm=!1,Lr=0;function Qn(t){t!==Xi&&t.next===null&&(Xi===null?Au=Xi=t:Xi=Xi.next=t),_u=!0,um||(um=!0,H5())}function wo(t,a){if(!cm&&_u){cm=!0;do for(var i=!1,o=Au;o!==null;){if(t!==0){var u=o.pendingLanes;if(u===0)var d=0;else{var v=o.suspendedLanes,b=o.pingedLanes;d=(1<<31-Fe(42|t)+1)-1,d&=u&~(v&~b),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,JS(o,d))}else d=Pe,d=xr(o,o===We?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||Sr(o,d)||(i=!0,JS(o,d));o=o.next}while(i);cm=!1}}function Z5(){KS()}function KS(){_u=um=!1;var t=0;Lr!==0&&(I5()&&(t=Lr),Lr=0);for(var a=Jt(),i=null,o=Au;o!==null;){var u=o.next,d=QS(o,a);d===0?(o.next=null,i===null?Au=u:i.next=u,u===null&&(Xi=i)):(i=o,(t!==0||(d&3)!==0)&&(_u=!0)),o=u}wo(t)}function QS(t,a){for(var i=t.suspendedLanes,o=t.pingedLanes,u=t.expirationTimes,d=t.pendingLanes&-62914561;0<d;){var v=31-Fe(d),b=1<<v,T=u[v];T===-1?((b&i)===0||(b&o)!==0)&&(u[v]=Vl(b,a)):T<=a&&(t.expiredLanes|=b),d&=~b}if(a=We,i=Pe,i=xr(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===a&&(Ye===2||Ye===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Gn(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Sr(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(o!==null&&Gn(o),Ad(i)){case 2:case 8:i=A;break;case 32:i=N;break;case 268435456:i=he;break;default:i=N}return o=IS.bind(null,t),i=Ft(i,o),t.callbackPriority=a,t.callbackNode=i,a}return o!==null&&o!==null&&Gn(o),t.callbackPriority=2,t.callbackNode=null,2}function IS(t,a){if(jt!==0&&jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Eu()&&t.callbackNode!==i)return null;var o=Pe;return o=xr(t,t===We?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(OS(t,o,a),QS(t,Jt()),t.callbackNode!=null&&t.callbackNode===i?IS.bind(null,t):null)}function JS(t,a){if(Eu())return null;OS(t,a,!0)}function H5(){W5(function(){(qe&6)!==0?Ft(Ra,Z5):KS()})}function fm(){return Lr===0&&(Lr=H0()),Lr}function WS(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Nl(""+t)}function ew(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function G5(t,a,i,o,u){if(a==="submit"&&i&&i.stateNode===u){var d=WS((u[Wt]||null).action),v=o.submitter;v&&(a=(a=v[Wt]||null)?WS(a.formAction):v.getAttribute("formAction"),a!==null&&(d=a,v=null));var b=new Pl("action","action",null,o,u);t.push({event:b,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Lr!==0){var T=v?ew(u,v):new FormData(u);Rh(i,{pending:!0,data:T,method:u.method,action:d},null,T)}}else typeof d=="function"&&(b.preventDefault(),T=v?ew(u,v):new FormData(u),Rh(i,{pending:!0,data:T,method:u.method,action:d},d,T))},currentTarget:u}]})}}for(var dm=0;dm<Qd.length;dm++){var hm=Qd[dm],q5=hm.toLowerCase(),Y5=hm[0].toUpperCase()+hm.slice(1);kn(q5,"on"+Y5)}kn(O1,"onAnimationEnd"),kn(k1,"onAnimationIteration"),kn($1,"onAnimationStart"),kn("dblclick","onDoubleClick"),kn("focusin","onFocus"),kn("focusout","onBlur"),kn(u5,"onTransitionRun"),kn(c5,"onTransitionStart"),kn(f5,"onTransitionCancel"),kn(j1,"onTransitionEnd"),yi("onMouseEnter",["mouseout","mouseover"]),yi("onMouseLeave",["mouseout","mouseover"]),yi("onPointerEnter",["pointerout","pointerover"]),yi("onPointerLeave",["pointerout","pointerover"]),wr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wr("onBeforeInput",["compositionend","keypress","textInput","paste"]),wr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="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(" "),F5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(To));function tw(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],u=o.event;o=o.listeners;e:{var d=void 0;if(a)for(var v=o.length-1;0<=v;v--){var b=o[v],T=b.instance,L=b.currentTarget;if(b=b.listener,T!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=L;try{d(u)}catch(I){hu(I)}u.currentTarget=null,d=T}else for(v=0;v<o.length;v++){if(b=o[v],T=b.instance,L=b.currentTarget,b=b.listener,T!==d&&u.isPropagationStopped())break e;d=b,u.currentTarget=L;try{d(u)}catch(I){hu(I)}u.currentTarget=null,d=T}}}}function Le(t,a){var i=a[_d];i===void 0&&(i=a[_d]=new Set);var o=t+"__bubble";i.has(o)||(nw(a,t,2,!1),i.add(o))}function mm(t,a,i){var o=0;a&&(o|=4),nw(i,t,o,a)}var Cu="_reactListening"+Math.random().toString(36).slice(2);function pm(t){if(!t[Cu]){t[Cu]=!0,K0.forEach(function(i){i!=="selectionchange"&&(F5.has(i)||mm(i,!1,t),mm(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Cu]||(a[Cu]=!0,mm("selectionchange",!1,a))}}function nw(t,a,i,o){switch(_w(a)){case 2:var u=xV;break;case 8:u=SV;break;default:u=Dm}i=u.bind(null,a,i,t),u=void 0,!Nd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(u=!0),o?u!==void 0?t.addEventListener(a,i,{capture:!0,passive:u}):t.addEventListener(a,i,!0):u!==void 0?t.addEventListener(a,i,{passive:u}):t.addEventListener(a,i,!1)}function gm(t,a,i,o,u){var d=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var b=o.stateNode.containerInfo;if(b===u)break;if(v===4)for(v=o.return;v!==null;){var T=v.tag;if((T===3||T===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;b!==null;){if(v=pi(b),v===null)return;if(T=v.tag,T===5||T===6||T===26||T===27){o=d=v;continue e}b=b.parentNode}}o=o.return}u1(function(){var L=d,I=$d(i),te=[];e:{var B=N1.get(t);if(B!==void 0){var P=Pl,Ce=t;switch(t){case"keypress":if(Ul(i)===0)break e;case"keydown":case"keyup":P=PR;break;case"focusin":Ce="focus",P=Pd;break;case"focusout":Ce="blur",P=Pd;break;case"beforeblur":case"afterblur":P=Pd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=d1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=DR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=GR;break;case O1:case k1:case $1:P=VR;break;case j1:P=YR;break;case"scroll":case"scrollend":P=CR;break;case"wheel":P=XR;break;case"copy":case"cut":case"paste":P=kR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=m1;break;case"toggle":case"beforetoggle":P=QR}var Ee=(a&4)!==0,Qe=!Ee&&(t==="scroll"||t==="scrollend"),V=Ee?B!==null?B+"Capture":null:B;Ee=[];for(var M=L,k;M!==null;){var ee=M;if(k=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||k===null||V===null||(ee=Ps(M,V),ee!=null&&Ee.push(Eo(M,ee,k))),Qe)break;M=M.return}0<Ee.length&&(B=new P(B,Ce,null,i,I),te.push({event:B,listeners:Ee}))}}if((a&7)===0){e:{if(B=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",B&&i!==kd&&(Ce=i.relatedTarget||i.fromElement)&&(pi(Ce)||Ce[mi]))break e;if((P||B)&&(B=I.window===I?I:(B=I.ownerDocument)?B.defaultView||B.parentWindow:window,P?(Ce=i.relatedTarget||i.toElement,P=L,Ce=Ce?pi(Ce):null,Ce!==null&&(Qe=c(Ce),Ee=Ce.tag,Ce!==Qe||Ee!==5&&Ee!==27&&Ee!==6)&&(Ce=null)):(P=null,Ce=L),P!==Ce)){if(Ee=d1,ee="onMouseLeave",V="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(Ee=m1,ee="onPointerLeave",V="onPointerEnter",M="pointer"),Qe=P==null?B:Bs(P),k=Ce==null?B:Bs(Ce),B=new Ee(ee,M+"leave",P,i,I),B.target=Qe,B.relatedTarget=k,ee=null,pi(I)===L&&(Ee=new Ee(V,M+"enter",Ce,i,I),Ee.target=k,Ee.relatedTarget=Qe,ee=Ee),Qe=ee,P&&Ce)t:{for(Ee=P,V=Ce,M=0,k=Ee;k;k=Ki(k))M++;for(k=0,ee=V;ee;ee=Ki(ee))k++;for(;0<M-k;)Ee=Ki(Ee),M--;for(;0<k-M;)V=Ki(V),k--;for(;M--;){if(Ee===V||V!==null&&Ee===V.alternate)break t;Ee=Ki(Ee),V=Ki(V)}Ee=null}else Ee=null;P!==null&&aw(te,B,P,Ee,!1),Ce!==null&&Qe!==null&&aw(te,Qe,Ce,Ee,!0)}}e:{if(B=L?Bs(L):window,P=B.nodeName&&B.nodeName.toLowerCase(),P==="select"||P==="input"&&B.type==="file")var ye=w1;else if(x1(B))if(T1)ye=s5;else{ye=r5;var je=a5}else P=B.nodeName,!P||P.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&Od(L.elementType)&&(ye=w1):ye=i5;if(ye&&(ye=ye(t,L))){S1(te,ye,i,I);break e}je&&je(t,B,L),t==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&Vd(B,"number",B.value)}switch(je=L?Bs(L):window,t){case"focusin":(x1(je)||je.contentEditable==="true")&&(Ai=je,Fd=L,Ks=null);break;case"focusout":Ks=Fd=Ai=null;break;case"mousedown":Xd=!0;break;case"contextmenu":case"mouseup":case"dragend":Xd=!1,R1(te,i,I);break;case"selectionchange":if(l5)break;case"keydown":case"keyup":R1(te,i,I)}var we;if(Hd)e:{switch(t){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Ei?y1(t,i)&&(Ae="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ae="onCompositionStart");Ae&&(p1&&i.locale!=="ko"&&(Ei||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Ei&&(we=c1()):(ka=I,Ld="value"in ka?ka.value:ka.textContent,Ei=!0)),je=Mu(L,Ae),0<je.length&&(Ae=new h1(Ae,t,null,i,I),te.push({event:Ae,listeners:je}),we?Ae.data=we:(we=b1(i),we!==null&&(Ae.data=we)))),(we=JR?WR(t,i):e5(t,i))&&(Ae=Mu(L,"onBeforeInput"),0<Ae.length&&(je=new h1("onBeforeInput","beforeinput",null,i,I),te.push({event:je,listeners:Ae}),je.data=we)),G5(te,t,L,i,I)}tw(te,a)})}function Eo(t,a,i){return{instance:t,listener:a,currentTarget:i}}function Mu(t,a){for(var i=a+"Capture",o=[];t!==null;){var u=t,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Ps(t,i),u!=null&&o.unshift(Eo(t,u,d)),u=Ps(t,a),u!=null&&o.push(Eo(t,u,d))),t.tag===3)return o;t=t.return}return[]}function Ki(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function aw(t,a,i,o,u){for(var d=a._reactName,v=[];i!==null&&i!==o;){var b=i,T=b.alternate,L=b.stateNode;if(b=b.tag,T!==null&&T===o)break;b!==5&&b!==26&&b!==27||L===null||(T=L,u?(L=Ps(i,d),L!=null&&v.unshift(Eo(i,L,T))):u||(L=Ps(i,d),L!=null&&v.push(Eo(i,L,T)))),i=i.return}v.length!==0&&t.push({event:a,listeners:v})}var X5=/\r\n?/g,K5=/\u0000|\uFFFD/g;function rw(t){return(typeof t=="string"?t:""+t).replace(X5,`
41
+ `).replace(K5,"")}function iw(t,a){return a=rw(a),rw(t)===a}function Du(){}function Ke(t,a,i,o,u,d){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Si(t,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Si(t,""+o);break;case"className":kl(t,"class",o);break;case"tabIndex":kl(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":kl(t,i,o);break;case"style":o1(t,o,d);break;case"data":if(a!=="object"){kl(t,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Nl(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"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 d=="function"&&(i==="formAction"?(a!=="input"&&Ke(t,a,"name",u.name,u,null),Ke(t,a,"formEncType",u.formEncType,u,null),Ke(t,a,"formMethod",u.formMethod,u,null),Ke(t,a,"formTarget",u.formTarget,u,null)):(Ke(t,a,"encType",u.encType,u,null),Ke(t,a,"method",u.method,u,null),Ke(t,a,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Nl(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=Du);break;case"onScroll":o!=null&&Le("scroll",t);break;case"onScrollEnd":o!=null&&Le("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(u.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Nl(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);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":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":Le("beforetoggle",t),Le("toggle",t),Ol(t,"popover",o);break;case"xlinkActuate":sa(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":sa(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":sa(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":sa(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":sa(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":sa(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":sa(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":sa(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":sa(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ol(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=AR.get(i)||i,Ol(t,i,o))}}function vm(t,a,i,o,u,d){switch(i){case"style":o1(t,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(u.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof o=="string"?Si(t,o):(typeof o=="number"||typeof o=="bigint")&&Si(t,""+o);break;case"onScroll":o!=null&&Le("scroll",t);break;case"onScrollEnd":o!=null&&Le("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Du);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Q0.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),a=i.slice(2,u?i.length-7:void 0),d=t[Wt]||null,d=d!=null?d[i]:null,typeof d=="function"&&t.removeEventListener(a,d,u),typeof o=="function")){typeof d!="function"&&d!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,o,u);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):Ol(t,i,o)}}}function Nt(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",t),Le("load",t);var o=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var v=i[d];if(v!=null)switch(d){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ke(t,a,d,v,i,null)}}u&&Ke(t,a,"srcSet",i.srcSet,i,null),o&&Ke(t,a,"src",i.src,i,null);return;case"input":Le("invalid",t);var b=d=v=u=null,T=null,L=null;for(o in i)if(i.hasOwnProperty(o)){var I=i[o];if(I!=null)switch(o){case"name":u=I;break;case"type":v=I;break;case"checked":T=I;break;case"defaultChecked":L=I;break;case"value":d=I;break;case"defaultValue":b=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,a));break;default:Ke(t,a,o,I,i,null)}}a1(t,d,b,T,L,v,u,!1),$l(t);return;case"select":Le("invalid",t),o=v=d=null;for(u in i)if(i.hasOwnProperty(u)&&(b=i[u],b!=null))switch(u){case"value":d=b;break;case"defaultValue":v=b;break;case"multiple":o=b;default:Ke(t,a,u,b,i,null)}a=d,i=v,t.multiple=!!o,a!=null?xi(t,!!o,a,!1):i!=null&&xi(t,!!o,i,!0);return;case"textarea":Le("invalid",t),d=u=o=null;for(v in i)if(i.hasOwnProperty(v)&&(b=i[v],b!=null))switch(v){case"value":o=b;break;case"defaultValue":u=b;break;case"children":d=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Ke(t,a,v,b,i,null)}i1(t,o,u,d),$l(t);return;case"option":for(T in i)if(i.hasOwnProperty(T)&&(o=i[T],o!=null))switch(T){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ke(t,a,T,o,i,null)}return;case"dialog":Le("beforetoggle",t),Le("toggle",t),Le("cancel",t),Le("close",t);break;case"iframe":case"object":Le("load",t);break;case"video":case"audio":for(o=0;o<To.length;o++)Le(To[o],t);break;case"image":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"embed":case"source":case"link":Le("error",t),Le("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in i)if(i.hasOwnProperty(L)&&(o=i[L],o!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ke(t,a,L,o,i,null)}return;default:if(Od(a)){for(I in i)i.hasOwnProperty(I)&&(o=i[I],o!==void 0&&vm(t,a,I,o,i,void 0));return}}for(b in i)i.hasOwnProperty(b)&&(o=i[b],o!=null&&Ke(t,a,b,o,i,null))}function Q5(t,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,v=null,b=null,T=null,L=null,I=null;for(P in i){var te=i[P];if(i.hasOwnProperty(P)&&te!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":T=te;default:o.hasOwnProperty(P)||Ke(t,a,P,null,o,te)}}for(var B in o){var P=o[B];if(te=i[B],o.hasOwnProperty(B)&&(P!=null||te!=null))switch(B){case"type":d=P;break;case"name":u=P;break;case"checked":L=P;break;case"defaultChecked":I=P;break;case"value":v=P;break;case"defaultValue":b=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,a));break;default:P!==te&&Ke(t,a,B,P,o,te)}}Rd(t,v,b,T,L,I,d,u);return;case"select":P=v=b=B=null;for(d in i)if(T=i[d],i.hasOwnProperty(d)&&T!=null)switch(d){case"value":break;case"multiple":P=T;default:o.hasOwnProperty(d)||Ke(t,a,d,null,o,T)}for(u in o)if(d=o[u],T=i[u],o.hasOwnProperty(u)&&(d!=null||T!=null))switch(u){case"value":B=d;break;case"defaultValue":b=d;break;case"multiple":v=d;default:d!==T&&Ke(t,a,u,d,o,T)}a=b,i=v,o=P,B!=null?xi(t,!!i,B,!1):!!o!=!!i&&(a!=null?xi(t,!!i,a,!0):xi(t,!!i,i?[]:"",!1));return;case"textarea":P=B=null;for(b in i)if(u=i[b],i.hasOwnProperty(b)&&u!=null&&!o.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ke(t,a,b,null,o,u)}for(v in o)if(u=o[v],d=i[v],o.hasOwnProperty(v)&&(u!=null||d!=null))switch(v){case"value":B=u;break;case"defaultValue":P=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==d&&Ke(t,a,v,u,o,d)}r1(t,B,P);return;case"option":for(var Ce in i)if(B=i[Ce],i.hasOwnProperty(Ce)&&B!=null&&!o.hasOwnProperty(Ce))switch(Ce){case"selected":t.selected=!1;break;default:Ke(t,a,Ce,null,o,B)}for(T in o)if(B=o[T],P=i[T],o.hasOwnProperty(T)&&B!==P&&(B!=null||P!=null))switch(T){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ke(t,a,T,B,o,P)}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 Ee in i)B=i[Ee],i.hasOwnProperty(Ee)&&B!=null&&!o.hasOwnProperty(Ee)&&Ke(t,a,Ee,null,o,B);for(L in o)if(B=o[L],P=i[L],o.hasOwnProperty(L)&&B!==P&&(B!=null||P!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,a));break;default:Ke(t,a,L,B,o,P)}return;default:if(Od(a)){for(var Qe in i)B=i[Qe],i.hasOwnProperty(Qe)&&B!==void 0&&!o.hasOwnProperty(Qe)&&vm(t,a,Qe,void 0,o,B);for(I in o)B=o[I],P=i[I],!o.hasOwnProperty(I)||B===P||B===void 0&&P===void 0||vm(t,a,I,B,o,P);return}}for(var V in i)B=i[V],i.hasOwnProperty(V)&&B!=null&&!o.hasOwnProperty(V)&&Ke(t,a,V,null,o,B);for(te in o)B=o[te],P=i[te],!o.hasOwnProperty(te)||B===P||B==null&&P==null||Ke(t,a,te,B,o,P)}var ym=null,bm=null;function zu(t){return t.nodeType===9?t:t.ownerDocument}function sw(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ow(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function xm(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Sm=null;function I5(){var t=window.event;return t&&t.type==="popstate"?t===Sm?!1:(Sm=t,!0):(Sm=null,!1)}var lw=typeof setTimeout=="function"?setTimeout:void 0,J5=typeof clearTimeout=="function"?clearTimeout:void 0,uw=typeof Promise=="function"?Promise:void 0,W5=typeof queueMicrotask=="function"?queueMicrotask:typeof uw<"u"?function(t){return uw.resolve(null).then(t).catch(eV)}:lw;function eV(t){setTimeout(function(){throw t})}function Qa(t){return t==="head"}function cw(t,a){var i=a,o=0,u=0;do{var d=i.nextSibling;if(t.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<o&&8>o){i=o;var v=t.ownerDocument;if(i&1&&Ao(v.documentElement),i&2&&Ao(v.body),i&4)for(i=v.head,Ao(i),v=i.firstChild;v;){var b=v.nextSibling,T=v.nodeName;v[Us]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&v.rel.toLowerCase()==="stylesheet"||i.removeChild(v),v=b}}if(u===0){t.removeChild(d),Oo(a);return}u--}else i==="$"||i==="$?"||i==="$!"?u++:o=i.charCodeAt(0)-48;else o=0;i=d}while(i);Oo(a)}function wm(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":wm(i),Cd(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function tV(t,a,i,o){for(;t.nodeType===1;){var u=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Us])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(d=t.getAttribute("rel"),d==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(d!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(d=t.getAttribute("src"),(d!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===d)return t}else return t;if(t=jn(t.nextSibling),t===null)break}return null}function nV(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=jn(t.nextSibling),t===null))return null;return t}function Tm(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function aV(t,a){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function jn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var Em=null;function fw(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return t;a--}else i==="/$"&&a++}t=t.previousSibling}return null}function dw(t,a,i){switch(a=zu(i),t){case"html":if(t=a.documentElement,!t)throw Error(s(452));return t;case"head":if(t=a.head,!t)throw Error(s(453));return t;case"body":if(t=a.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ao(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Cd(t)}var zn=new Map,hw=new Set;function Ru(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xa=j.d;j.d={f:rV,r:iV,D:sV,C:oV,L:lV,m:uV,X:fV,S:cV,M:dV};function rV(){var t=xa.f(),a=wu();return t||a}function iV(t){var a=gi(t);a!==null&&a.tag===5&&a.type==="form"?Ox(a):xa.r(t)}var Qi=typeof document>"u"?null:document;function mw(t,a,i){var o=Qi;if(o&&typeof a=="string"&&a){var u=Tn(a);u='link[rel="'+t+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),hw.has(u)||(hw.add(u),t={rel:t,crossOrigin:i,href:a},o.querySelector(u)===null&&(a=o.createElement("link"),Nt(a,"link",t),zt(a),o.head.appendChild(a)))}}function sV(t){xa.D(t),mw("dns-prefetch",t,null)}function oV(t,a){xa.C(t,a),mw("preconnect",t,a)}function lV(t,a,i){xa.L(t,a,i);var o=Qi;if(o&&t&&a){var u='link[rel="preload"][as="'+Tn(a)+'"]';a==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+Tn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+Tn(i.imageSizes)+'"]')):u+='[href="'+Tn(t)+'"]';var d=u;switch(a){case"style":d=Ii(t);break;case"script":d=Ji(t)}zn.has(d)||(t=g({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),zn.set(d,t),o.querySelector(u)!==null||a==="style"&&o.querySelector(_o(d))||a==="script"&&o.querySelector(Co(d))||(a=o.createElement("link"),Nt(a,"link",t),zt(a),o.head.appendChild(a)))}}function uV(t,a){xa.m(t,a);var i=Qi;if(i&&t){var o=a&&typeof a.as=="string"?a.as:"script",u='link[rel="modulepreload"][as="'+Tn(o)+'"][href="'+Tn(t)+'"]',d=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ji(t)}if(!zn.has(d)&&(t=g({rel:"modulepreload",href:t},a),zn.set(d,t),i.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Co(d)))return}o=i.createElement("link"),Nt(o,"link",t),zt(o),i.head.appendChild(o)}}}function cV(t,a,i){xa.S(t,a,i);var o=Qi;if(o&&t){var u=vi(o).hoistableStyles,d=Ii(t);a=a||"default";var v=u.get(d);if(!v){var b={loading:0,preload:null};if(v=o.querySelector(_o(d)))b.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":a},i),(i=zn.get(d))&&Am(t,i);var T=v=o.createElement("link");zt(T),Nt(T,"link",t),T._p=new Promise(function(L,I){T.onload=L,T.onerror=I}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Vu(v,a,o)}v={type:"stylesheet",instance:v,count:1,state:b},u.set(d,v)}}}function fV(t,a){xa.X(t,a);var i=Qi;if(i&&t){var o=vi(i).hoistableScripts,u=Ji(t),d=o.get(u);d||(d=i.querySelector(Co(u)),d||(t=g({src:t,async:!0},a),(a=zn.get(u))&&_m(t,a),d=i.createElement("script"),zt(d),Nt(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(u,d))}}function dV(t,a){xa.M(t,a);var i=Qi;if(i&&t){var o=vi(i).hoistableScripts,u=Ji(t),d=o.get(u);d||(d=i.querySelector(Co(u)),d||(t=g({src:t,async:!0,type:"module"},a),(a=zn.get(u))&&_m(t,a),d=i.createElement("script"),zt(d),Nt(d,"link",t),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(u,d))}}function pw(t,a,i,o){var u=(u=Se.current)?Ru(u):null;if(!u)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=Ii(i.href),i=vi(u).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Ii(i.href);var d=vi(u).hoistableStyles,v=d.get(t);if(v||(u=u.ownerDocument||u,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(t,v),(d=u.querySelector(_o(t)))&&!d._p&&(v.instance=d,v.state.loading=5),zn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},zn.set(t,i),d||hV(u,t,i,v.state))),a&&o===null)throw Error(s(528,""));return v}if(a&&o!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ji(i),i=vi(u).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Ii(t){return'href="'+Tn(t)+'"'}function _o(t){return'link[rel="stylesheet"]['+t+"]"}function gw(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function hV(t,a,i,o){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=t.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Nt(a,"link",i),zt(a),t.head.appendChild(a))}function Ji(t){return'[src="'+Tn(t)+'"]'}function Co(t){return"script[async]"+t}function vw(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=t.querySelector('style[data-href~="'+Tn(i.href)+'"]');if(o)return a.instance=o,zt(o),o;var u=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),zt(o),Nt(o,"style",u),Vu(o,i.precedence,t),a.instance=o;case"stylesheet":u=Ii(i.href);var d=t.querySelector(_o(u));if(d)return a.state.loading|=4,a.instance=d,zt(d),d;o=gw(i),(u=zn.get(u))&&Am(o,u),d=(t.ownerDocument||t).createElement("link"),zt(d);var v=d;return v._p=new Promise(function(b,T){v.onload=b,v.onerror=T}),Nt(d,"link",o),a.state.loading|=4,Vu(d,i.precedence,t),a.instance=d;case"script":return d=Ji(i.src),(u=t.querySelector(Co(d)))?(a.instance=u,zt(u),u):(o=i,(u=zn.get(d))&&(o=g({},i),_m(o,u)),t=t.ownerDocument||t,u=t.createElement("script"),zt(u),Nt(u,"link",o),t.head.appendChild(u),a.instance=u);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,Vu(o,i.precedence,t));return a.instance}function Vu(t,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,d=u,v=0;v<o.length;v++){var b=o[v];if(b.dataset.precedence===a)d=b;else if(d!==u)break}d?d.parentNode.insertBefore(t,d.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function Am(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function _m(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Ou=null;function yw(t,a,i){if(Ou===null){var o=new Map,u=Ou=new Map;u.set(i,o)}else u=Ou,o=u.get(i),o||(o=new Map,u.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),u=0;u<i.length;u++){var d=i[u];if(!(d[Us]||d[Bt]||t==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(a)||"";v=t+v;var b=o.get(v);b?b.push(d):o.set(v,[d])}}return o}function bw(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function mV(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function xw(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Mo=null;function pV(){}function gV(t,a,i){if(Mo===null)throw Error(s(475));var o=Mo;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ii(i.href),d=t.querySelector(_o(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=ku.bind(o),t.then(o,o)),a.state.loading|=4,a.instance=d,zt(d);return}d=t.ownerDocument||t,i=gw(i),(u=zn.get(u))&&Am(i,u),d=d.createElement("link"),zt(d);var v=d;v._p=new Promise(function(b,T){v.onload=b,v.onerror=T}),Nt(d,"link",i),a.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=ku.bind(o),t.addEventListener("load",a),t.addEventListener("error",a))}}function vV(){if(Mo===null)throw Error(s(475));var t=Mo;return t.stylesheets&&t.count===0&&Cm(t,t.stylesheets),0<t.count?function(a){var i=setTimeout(function(){if(t.stylesheets&&Cm(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(i)}}:null}function ku(){if(this.count--,this.count===0){if(this.stylesheets)Cm(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var $u=null;function Cm(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$u=new Map,a.forEach(yV,t),$u=null,ku.call(t))}function yV(t,a){if(!(a.state.loading&4)){var i=$u.get(t);if(i)var o=i.get(null);else{i=new Map,$u.set(t,i);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var v=u[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),o=v)}o&&i.set(null,o)}u=a.instance,v=u.getAttribute("data-precedence"),d=i.get(v)||o,d===o&&i.set(null,u),i.set(v,u),this.count++,o=ku.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),d?d.parentNode.insertBefore(u,d.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),a.state.loading|=4}}var Do={$$typeof:Z,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function bV(t,a,i,o,u,d,v,b){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Td(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Td(0),this.hiddenUpdates=Td(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Sw(t,a,i,o,u,d,v,b,T,L,I,te){return t=new bV(t,a,i,v,b,T,L,te),a=1,d===!0&&(a|=24),d=ln(3,null,null,a),t.current=d,d.stateNode=t,a=lh(),a.refCount++,t.pooledCache=a,a.refCount++,d.memoizedState={element:o,isDehydrated:i,cache:a},dh(d),t}function ww(t){return t?(t=Di,t):Di}function Tw(t,a,i,o,u,d){u=ww(u),o.context===null?o.context=u:o.pendingContext=u,o=Na(a),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=La(t,o,a),i!==null&&(hn(i,t,a),ro(i,t,a))}function Ew(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function Mm(t,a){Ew(t,a),(t=t.alternate)&&Ew(t,a)}function Aw(t){if(t.tag===13){var a=Mi(t,67108864);a!==null&&hn(a,t,67108864),Mm(t,67108864)}}var ju=!0;function xV(t,a,i,o){var u=S.T;S.T=null;var d=j.p;try{j.p=2,Dm(t,a,i,o)}finally{j.p=d,S.T=u}}function SV(t,a,i,o){var u=S.T;S.T=null;var d=j.p;try{j.p=8,Dm(t,a,i,o)}finally{j.p=d,S.T=u}}function Dm(t,a,i,o){if(ju){var u=zm(o);if(u===null)gm(t,a,o,Nu,i),Cw(t,o);else if(TV(u,t,a,i,o))o.stopPropagation();else if(Cw(t,o),a&4&&-1<wV.indexOf(t)){for(;u!==null;){var d=gi(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=ia(d.pendingLanes);if(v!==0){var b=d;for(b.pendingLanes|=2,b.entangledLanes|=2;v;){var T=1<<31-Fe(v);b.entanglements[1]|=T,v&=~T}Qn(d),(qe&6)===0&&(xu=Jt()+500,wo(0))}}break;case 13:b=Mi(d,2),b!==null&&hn(b,d,2),wu(),Mm(d,2)}if(d=zm(o),d===null&&gm(t,a,o,Nu,i),d===u)break;u=d}u!==null&&o.stopPropagation()}else gm(t,a,o,null,i)}}function zm(t){return t=$d(t),Rm(t)}var Nu=null;function Rm(t){if(Nu=null,t=pi(t),t!==null){var a=c(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=f(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Nu=t,null}function _w(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ra()){case Ra:return 2;case A:return 8;case N:case K:return 32;case he:return 268435456;default:return 32}default:return 32}}var Vm=!1,Ia=null,Ja=null,Wa=null,zo=new Map,Ro=new Map,er=[],wV="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 Cw(t,a){switch(t){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":zo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ro.delete(a.pointerId)}}function Vo(t,a,i,o,u,d){return t===null||t.nativeEvent!==d?(t={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:d,targetContainers:[u]},a!==null&&(a=gi(a),a!==null&&Aw(a)),t):(t.eventSystemFlags|=o,a=t.targetContainers,u!==null&&a.indexOf(u)===-1&&a.push(u),t)}function TV(t,a,i,o,u){switch(a){case"focusin":return Ia=Vo(Ia,t,a,i,o,u),!0;case"dragenter":return Ja=Vo(Ja,t,a,i,o,u),!0;case"mouseover":return Wa=Vo(Wa,t,a,i,o,u),!0;case"pointerover":var d=u.pointerId;return zo.set(d,Vo(zo.get(d)||null,t,a,i,o,u)),!0;case"gotpointercapture":return d=u.pointerId,Ro.set(d,Vo(Ro.get(d)||null,t,a,i,o,u)),!0}return!1}function Mw(t){var a=pi(t.target);if(a!==null){var i=c(a);if(i!==null){if(a=i.tag,a===13){if(a=f(i),a!==null){t.blockedOn=a,gR(t.priority,function(){if(i.tag===13){var o=dn();o=Ed(o);var u=Mi(i,o);u!==null&&hn(u,i,o),Mm(i,o)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Lu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=zm(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);kd=o,i.target.dispatchEvent(o),kd=null}else return a=gi(i),a!==null&&Aw(a),t.blockedOn=i,!1;a.shift()}return!0}function Dw(t,a,i){Lu(t)&&i.delete(a)}function EV(){Vm=!1,Ia!==null&&Lu(Ia)&&(Ia=null),Ja!==null&&Lu(Ja)&&(Ja=null),Wa!==null&&Lu(Wa)&&(Wa=null),zo.forEach(Dw),Ro.forEach(Dw)}function Uu(t,a){t.blockedOn===a&&(t.blockedOn=null,Vm||(Vm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EV)))}var Bu=null;function zw(t){Bu!==t&&(Bu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bu===t&&(Bu=null);for(var a=0;a<t.length;a+=3){var i=t[a],o=t[a+1],u=t[a+2];if(typeof o!="function"){if(Rm(o||i)===null)continue;break}var d=gi(i);d!==null&&(t.splice(a,3),a-=3,Rh(d,{pending:!0,data:u,method:i.method,action:o},o,u))}}))}function Oo(t){function a(T){return Uu(T,t)}Ia!==null&&Uu(Ia,t),Ja!==null&&Uu(Ja,t),Wa!==null&&Uu(Wa,t),zo.forEach(a),Ro.forEach(a);for(var i=0;i<er.length;i++){var o=er[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<er.length&&(i=er[0],i.blockedOn===null);)Mw(i),i.blockedOn===null&&er.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var u=i[o],d=i[o+1],v=u[Wt]||null;if(typeof d=="function")v||zw(i);else if(v){var b=null;if(d&&d.hasAttribute("formAction")){if(u=d,v=d[Wt]||null)b=v.formAction;else if(Rm(u)!==null)continue}else b=v.action;typeof b=="function"?i[o+1]=b:(i.splice(o,3),o-=3),zw(i)}}}function Om(t){this._internalRoot=t}Pu.prototype.render=Om.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,o=dn();Tw(i,o,t,a,null,null)},Pu.prototype.unmount=Om.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Tw(t.current,2,null,t,null,null),wu(),a[mi]=null}};function Pu(t){this._internalRoot=t}Pu.prototype.unstable_scheduleHydration=function(t){if(t){var a=F0();t={blockedOn:null,target:t,priority:a};for(var i=0;i<er.length&&a!==0&&a<er[i].priority;i++);er.splice(i,0,t),i===0&&Mw(t)}};var Rw=n.version;if(Rw!=="19.1.0")throw Error(s(527,Rw,"19.1.0"));j.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=m(a),t=t!==null?p(t):null,t=t===null?null:t.stateNode,t};var AV={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:S,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{ve=Zu.inject(AV),ze=Zu}catch{}}return es.createRoot=function(t,a){if(!l(t))throw Error(s(299));var i=!1,o="",u=Fx,d=Xx,v=Kx,b=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(b=a.unstable_transitionCallbacks)),a=Sw(t,1,!1,null,null,i,o,u,d,v,b,null),t[mi]=a.current,pm(t),new Om(a)},es.hydrateRoot=function(t,a,i){if(!l(t))throw Error(s(299));var o=!1,u="",d=Fx,v=Xx,b=Kx,T=null,L=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(b=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(T=i.unstable_transitionCallbacks),i.formState!==void 0&&(L=i.formState)),a=Sw(t,1,!0,a,i??null,o,u,d,v,b,T,L),a.context=ww(null),i=a.current,o=dn(),o=Ed(o),u=Na(o),u.callback=null,La(i,u,o),i=o,a.current.lanes=i,Ls(a,i),Qn(a),t[mi]=a.current,pm(t),new Pu(a)},es.version="19.1.0",es}var Pm;function Lw(){if(Pm)return Gu.exports;Pm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Gu.exports=Nw(),Gu.exports}var Uw=Lw(),Xu={exports:{}},ts={};/**
42
+ * @license React
43
+ * react-jsx-runtime.production.js
44
+ *
45
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */var Zm;function Bw(){if(Zm)return ts;Zm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:f,ref:l!==void 0?l:null,props:c}}return ts.Fragment=n,ts.jsx=r,ts.jsxs=r,ts}var Hm;function Pw(){return Hm||(Hm=1,Xu.exports=Bw()),Xu.exports}var F=Pw();/**
50
+ * @license lucide-react v0.536.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Zw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,s)=>s?s.toUpperCase():r.toLowerCase()),Gm=e=>{const n=Hw(e);return n.charAt(0).toUpperCase()+n.slice(1)},qm=(...e)=>e.filter((n,r,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===r).join(" ").trim(),Gw=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
55
+ * @license lucide-react v0.536.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var qw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
+ * @license lucide-react v0.536.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Yw=C.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:l="",children:c,iconNode:f,...h},m)=>C.createElement("svg",{ref:m,...qw,width:n,height:n,stroke:e,strokeWidth:s?Number(r)*24/Number(n):r,className:qm("lucide",l),...!c&&!Gw(h)&&{"aria-hidden":"true"},...h},[...f.map(([p,g])=>C.createElement(p,g)),...Array.isArray(c)?c:[c]]));/**
65
+ * @license lucide-react v0.536.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Fw=(e,n)=>{const r=C.forwardRef(({className:s,...l},c)=>C.createElement(Yw,{ref:c,iconNode:n,className:qm(`lucide-${Zw(Gm(e))}`,`lucide-${e}`,s),...l}));return r.displayName=Gm(e),r};/**
70
+ * @license lucide-react v0.536.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Xw=Fw("arrow-up-from-line",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);function Ur({label:e,placeholder:n,type:r="text",value:s,onChange:l,style:c,initialPreviewUrl:f,className:h="",previewUsername:m,previewEmail:p}){const g=C.useId(),[y,x]=C.useState(f||null);C.useEffect(()=>{x(f||null)},[f]);const E=_=>{const D=_.target.files?.[0];if(D&&D.type.startsWith("image/")){y&&y.startsWith("blob:")&&URL.revokeObjectURL(y);const $=URL.createObjectURL(D);x($)}l&&l(_)};return C.useEffect(()=>()=>{y&&y.startsWith("blob:")&&URL.revokeObjectURL(y)},[y]),r==="file"?F.jsx("div",{style:c,className:`w-full ${h}`,children:F.jsxs("label",{htmlFor:g,className:"relative rounded-full flex cursor-pointer items-center gap-3 border border-input bg-transparent px-2 py-2 transition-colors hover:border-primary",children:[F.jsx("input",{id:g,type:"file",className:"sr-only",onChange:E,accept:"image/*"}),y?F.jsxs("div",{className:"flex items-center gap-3 w-full",children:[F.jsx("img",{src:y,alt:"Avatar Preview",className:"h-10 w-10 rounded-full object-cover"}),F.jsxs("div",{className:"flex flex-col text-sm",children:[F.jsx("span",{className:"font-medium text-foreground w-0 text-left",children:m||"Username"}),F.jsx("span",{className:"text-muted-foreground text-xs",children:p||"email@example.com"})]})]}):F.jsxs("div",{className:"flex items-center gap-2 w-full",children:[F.jsx(Xw,{size:16,className:"text-muted-foreground"}),F.jsxs("div",{className:"flex flex-col text-sm text-muted-foreground",children:[F.jsx("span",{className:"font-medium text-foreground w-0",children:e}),F.jsx("span",{className:"text-xs",children:"Click to upload or drag image"})]})]})]})}):F.jsxs("div",{style:c,className:"group relative after:absolute after:bottom-0 after:left-0 after:h-[2px] after:w-full after:origin-left after:scale-x-0 after:bg-ring after:transition-transform after:duration-300 after:ease-in-out focus-within:after:scale-x-100",children:[F.jsx("input",{type:r,id:g,value:s,onChange:l,className:"peer block w-full appearance-none border-0 border-b-2 border-input bg-transparent px-0 py-4 text-foreground placeholder:text-transparent focus:outline-none focus:ring-0 sm:text-sm disabled:pointer-events-none disabled:opacity-50 autofill:pb-2 autofill:pt-6 focus:pb-2 focus:pt-6 not-placeholder-shown:pb-2 not-placeholder-shown:pt-6",placeholder:n}),F.jsx("label",{htmlFor:g,className:"absolute top-0 start-0 h-full origin-[0_0] truncate border border-transparent px-0 py-4 text-muted-foreground transition-all duration-200 ease-in-out hover:cursor-text peer-disabled:pointer-events-none peer-disabled:opacity-50 sm:text-sm peer-focus:-translate-y-1.5 peer-focus:scale-[.85] peer-focus:text-primary peer-not-placeholder-shown:-translate-y-1.5 peer-not-placeholder-shown:scale-[.85]",children:e})]})}function Ym(e={}){const{strict:n=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:s}=e,l=C.createContext(void 0);l.displayName=s;function c(){var f;const h=C.useContext(l);if(!h&&n){const m=new Error(r);throw m.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,m,c),m}return h}return[l.Provider,c,l]}function Kw(e){return typeof e=="function"}var In=e=>e?"true":void 0;function Fm(e){var n,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=Fm(e[n]))&&(s&&(s+=" "),s+=r);else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function $o(...e){for(var n=0,r,s,l="";n<e.length;)(r=e[n++])&&(s=Fm(r))&&(l&&(l+=" "),l+=s);return l}var Qw=(...e)=>{let n=" ";for(const r of e)if(typeof r=="string"&&r.length>0){n=r;break}return n};function Ku(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}var Xm=new Map;function Iw(e,n){if(e===n)return e;let r=Xm.get(e);if(r)return r.forEach(l=>l.current=n),n;let s=Xm.get(n);return s?(s.forEach(l=>l.current=e),e):n}function Qu(...e){let n={...e[0]};for(let r=1;r<e.length;r++){let s=e[r];for(let l in s){let c=n[l],f=s[l];typeof c=="function"&&typeof f=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?n[l]=Ku(c,f):(l==="className"||l==="UNSAFE_className")&&typeof c=="string"&&typeof f=="string"?n[l]=$o(c,f):l==="id"&&c&&f?n.id=Iw(c,f):n[l]=f!==void 0?f:c}}return n}function Jw(...e){return e.length===1&&e[0]?e[0]:n=>{let r=!1;const s=e.map(l=>{const c=Km(l,n);return r||(r=typeof c=="function"),c});if(r)return()=>{s.forEach((l,c)=>{typeof l=="function"?l?.():Km(e[c],null)})}}}function Km(e,n){if(typeof e=="function")return()=>e(n);e!=null&&"current"in e&&(e.current=n)}function Ww(e,n){if(e!=null){if(Kw(e)){e(n);return}try{e.current=n}catch{throw new Error(`Cannot assign value '${n}' to ref '${e}'`)}}}function eT(...e){return n=>{e.forEach(r=>Ww(r,n))}}var[MV,tT]=Ym({name:"ProviderContext",strict:!1});function nT(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function aT(e,n,r){nT(e,n),n.set(e,r)}const jo=typeof document<"u"?Re.useLayoutEffect:()=>{};function mn(e){const n=C.useRef(null);return jo(()=>{n.current=e},[e]),C.useCallback((...r)=>{const s=n.current;return s?.(...r)},[])}let Iu=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Iu.delete(e)});function rT(e,n){if(e===n)return e;let r=Iu.get(e);if(r)return r.forEach(l=>l.current=n),n;let s=Iu.get(n);return s?(s.forEach(l=>l.current=e),e):n}function Qm(...e){return(...n)=>{for(let r of e)typeof r=="function"&&r(...n)}}const Zt=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},Nn=e=>e&&"window"in e&&e.window===e?e:Zt(e).defaultView||window;function iT(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function sT(e){return iT(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let oT=!1;function Ju(){return oT}function pn(e,n){if(!Ju())return n&&e?e.contains(n):!1;if(!e||!n)return!1;let r=n;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:sT(r)?r=r.host:r=r.parentNode}return!1}const ns=(e=document)=>{var n;if(!Ju())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((n=r.shadowRoot)===null||n===void 0)&&n.activeElement);)r=r.shadowRoot.activeElement;return r};function Ht(e){return Ju()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Im(e){var n,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=Im(e[n]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Wu(){for(var e,n,r=0,s="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=Im(e))&&(s&&(s+=" "),s+=n);return s}function Sa(...e){let n={...e[0]};for(let r=1;r<e.length;r++){let s=e[r];for(let l in s){let c=n[l],f=s[l];typeof c=="function"&&typeof f=="function"&&l[0]==="o"&&l[1]==="n"&&l.charCodeAt(2)>=65&&l.charCodeAt(2)<=90?n[l]=Qm(c,f):(l==="className"||l==="UNSAFE_className")&&typeof c=="string"&&typeof f=="string"?n[l]=Wu(c,f):l==="id"&&c&&f?n.id=rT(c,f):n[l]=f!==void 0?f:c}}return n}const lT=new Set(["id"]),uT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fT=/^(data-.*)$/;function dT(e,n={}){let{labelable:r,isLink:s,propNames:l}=n,c={};for(const f in e)Object.prototype.hasOwnProperty.call(e,f)&&(lT.has(f)||r&&uT.has(f)||s&&cT.has(f)||l?.has(f)||fT.test(f))&&(c[f]=e[f]);return c}function Br(e){if(hT())e.focus({preventScroll:!0});else{let n=mT(e);e.focus(),pT(n)}}let No=null;function hT(){if(No==null){No=!1;try{document.createElement("div").focus({get preventScroll(){return No=!0,!0}})}catch{}}return No}function mT(e){let n=e.parentNode,r=[],s=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==s;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return s instanceof HTMLElement&&r.push({element:s,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),r}function pT(e){for(let{element:n,scrollTop:r,scrollLeft:s}of e)n.scrollTop=r,n.scrollLeft=s}function Lo(e){var n;return typeof window>"u"||window.navigator==null?!1:((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function ec(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function wa(e){let n=null;return()=>(n==null&&(n=e()),n)}const as=wa(function(){return ec(/^Mac/i)}),gT=wa(function(){return ec(/^iPhone/i)}),Jm=wa(function(){return ec(/^iPad/i)||as()&&navigator.maxTouchPoints>1}),Wm=wa(function(){return gT()||Jm()}),vT=wa(function(){return Lo(/AppleWebKit/i)&&!yT()}),yT=wa(function(){return Lo(/Chrome/i)}),ep=wa(function(){return Lo(/Android/i)}),bT=wa(function(){return Lo(/Firefox/i)});function rs(e,n,r=!0){var s,l;let{metaKey:c,ctrlKey:f,altKey:h,shiftKey:m}=n;bT()&&(!((l=window.event)===null||l===void 0||(s=l.type)===null||s===void 0)&&s.startsWith("key"))&&e.target==="_blank"&&(as()?c=!0:f=!0);let p=vT()&&as()&&!Jm()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:c,ctrlKey:f,altKey:h,shiftKey:m}):new MouseEvent("click",{metaKey:c,ctrlKey:f,altKey:h,shiftKey:m,bubbles:!0,cancelable:!0});rs.isOpening=r,Br(e),e.dispatchEvent(p),rs.isOpening=!1}rs.isOpening=!1;let Ta=new Map,tc=new Set;function tp(){if(typeof window>"u")return;function e(s){return"propertyName"in s}let n=s=>{if(!e(s)||!s.target)return;let l=Ta.get(s.target);l||(l=new Set,Ta.set(s.target,l),s.target.addEventListener("transitioncancel",r,{once:!0})),l.add(s.propertyName)},r=s=>{if(!e(s)||!s.target)return;let l=Ta.get(s.target);if(l&&(l.delete(s.propertyName),l.size===0&&(s.target.removeEventListener("transitioncancel",r),Ta.delete(s.target)),Ta.size===0)){for(let c of tc)c();tc.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?tp():document.addEventListener("DOMContentLoaded",tp));function xT(){for(const[e]of Ta)"isConnected"in e&&!e.isConnected&&Ta.delete(e)}function np(e){requestAnimationFrame(()=>{xT(),Ta.size===0?e():tc.add(e)})}function nc(){let e=C.useRef(new Map),n=C.useCallback((l,c,f,h)=>{let m=h?.once?(...p)=>{e.current.delete(f),f(...p)}:f;e.current.set(f,{type:c,eventTarget:l,fn:m,options:h}),l.addEventListener(c,m,h)},[]),r=C.useCallback((l,c,f,h)=>{var m;let p=((m=e.current.get(f))===null||m===void 0?void 0:m.fn)||f;l.removeEventListener(c,p,h),e.current.delete(f)},[]),s=C.useCallback(()=>{e.current.forEach((l,c)=>{r(l.eventTarget,l.type,c,l.options)})},[r]);return C.useEffect(()=>s,[s]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:s}}function ap(e,n){jo(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function rp(e){return e.mozInputSource===0&&e.isTrusted?!0:ep()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ST(e){return!ep()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function wT(e,n,r){let s=C.useRef(n),l=mn(()=>{r&&r(s.current)});C.useEffect(()=>{var c;let f=e==null||(c=e.current)===null||c===void 0?void 0:c.form;return f?.addEventListener("reset",l),()=>{f?.removeEventListener("reset",l)}},[e,l])}const ip=["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"])'],TT=ip.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ip.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function ET(e){return e.matches(TT)}function AT(e,n,r){let[s,l]=C.useState(e||n),c=C.useRef(e!==void 0),f=e!==void 0;C.useEffect(()=>{c.current=f},[f]);let h=f?e:s,m=C.useCallback((p,...g)=>{let y=(x,...E)=>{r&&(Object.is(h,x)||r(x,...E)),f||(h=x)};typeof p=="function"?l((E,..._)=>{let D=p(f?h:E,..._);return y(D,...g),f?E:D}):(f||l(p),y(p,...g))},[f,h,r]);return[h,m]}function ac(e,n){e.indexOf(n)===-1&&e.push(n)}function rc(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}const Jn=(e,n,r)=>r>n?n:r<e?e:r,Wn={},sp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function op(e){return typeof e=="object"&&e!==null}const lp=e=>/^0[^.\s]+$/u.test(e);function ic(e){let n;return()=>(n===void 0&&(n=e()),n)}const gn=e=>e,_T=(e,n)=>r=>n(e(r)),is=(...e)=>e.reduce(_T),ss=(e,n,r)=>{const s=n-e;return s===0?1:(r-e)/s};class sc{constructor(){this.subscriptions=[]}add(n){return ac(this.subscriptions,n),()=>rc(this.subscriptions,n)}notify(n,r,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](n,r,s);else for(let c=0;c<l;c++){const f=this.subscriptions[c];f&&f(n,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ln=e=>e*1e3,Un=e=>e/1e3;function up(e,n){return n?e*(1e3/n):0}const cp=(e,n,r)=>(((1-3*r+3*n)*e+(3*r-6*n))*e+3*n)*e,CT=1e-7,MT=12;function DT(e,n,r,s,l){let c,f,h=0;do f=n+(r-n)/2,c=cp(f,s,l)-e,c>0?r=f:n=f;while(Math.abs(c)>CT&&++h<MT);return f}function os(e,n,r,s){if(e===n&&r===s)return gn;const l=c=>DT(c,0,1,e,r);return c=>c===0||c===1?c:cp(l(c),n,s)}const fp=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,dp=e=>n=>1-e(1-n),hp=os(.33,1.53,.69,.99),oc=dp(hp),mp=fp(oc),pp=e=>(e*=2)<1?.5*oc(e):.5*(2-Math.pow(2,-10*(e-1))),lc=e=>1-Math.sin(Math.acos(e)),gp=dp(lc),vp=fp(lc),zT=os(.42,0,1,1),RT=os(0,0,.58,1),yp=os(.42,0,.58,1),VT=e=>Array.isArray(e)&&typeof e[0]!="number",bp=e=>Array.isArray(e)&&typeof e[0]=="number",OT={linear:gn,easeIn:zT,easeInOut:yp,easeOut:RT,circIn:lc,circInOut:vp,circOut:gp,backIn:oc,backInOut:mp,backOut:hp,anticipate:pp},kT=e=>typeof e=="string",xp=e=>{if(bp(e)){const[n,r,s,l]=e;return os(n,r,s,l)}else if(kT(e))return OT[e];return e};function uc(e){let n=e;return n.nativeEvent=e,n.isDefaultPrevented=()=>n.defaultPrevented,n.isPropagationStopped=()=>n.cancelBubble,n.persist=()=>{},n}function Sp(e,n){Object.defineProperty(e,"target",{value:n}),Object.defineProperty(e,"currentTarget",{value:n})}function wp(e){let n=C.useRef({isFocused:!1,observer:null});jo(()=>{const s=n.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]);let r=mn(s=>{e?.(s)});return C.useCallback(s=>{if(s.target instanceof HTMLButtonElement||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement||s.target instanceof HTMLSelectElement){n.current.isFocused=!0;let l=s.target,c=f=>{if(n.current.isFocused=!1,l.disabled){let h=uc(f);r(h)}n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};l.addEventListener("focusout",c,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&l.disabled){var f;(f=n.current.observer)===null||f===void 0||f.disconnect();let h=l===document.activeElement?null:document.activeElement;l.dispatchEvent(new FocusEvent("blur",{relatedTarget:h})),l.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:h}))}}),n.current.observer.observe(l,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Uo=!1;function $T(e){for(;e&&!ET(e);)e=e.parentElement;let n=Nn(e),r=n.document.activeElement;if(!r||r===e)return;Uo=!0;let s=!1,l=g=>{(g.target===r||s)&&g.stopImmediatePropagation()},c=g=>{(g.target===r||s)&&(g.stopImmediatePropagation(),!e&&!s&&(s=!0,Br(r),m()))},f=g=>{(g.target===e||s)&&g.stopImmediatePropagation()},h=g=>{(g.target===e||s)&&(g.stopImmediatePropagation(),s||(s=!0,Br(r),m()))};n.addEventListener("blur",l,!0),n.addEventListener("focusout",c,!0),n.addEventListener("focusin",h,!0),n.addEventListener("focus",f,!0);let m=()=>{cancelAnimationFrame(p),n.removeEventListener("blur",l,!0),n.removeEventListener("focusout",c,!0),n.removeEventListener("focusin",h,!0),n.removeEventListener("focus",f,!0),Uo=!1,s=!1},p=requestAnimationFrame(m);return m}let Pr="default",cc="",Bo=new WeakMap;function jT(e){if(Wm()){if(Pr==="default"){const n=Zt(e);cc=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}Pr="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let n="userSelect"in e.style?"userSelect":"webkitUserSelect";Bo.set(e,e.style[n]),e.style[n]="none"}}function Tp(e){if(Wm()){if(Pr!=="disabled")return;Pr="restoring",setTimeout(()=>{np(()=>{if(Pr==="restoring"){const n=Zt(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=cc||""),cc="",Pr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Bo.has(e)){let n=Bo.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=n),e.getAttribute("style")===""&&e.removeAttribute("style"),Bo.delete(e)}}const Ep=Re.createContext({register:()=>{}});Ep.displayName="PressResponderContext";function NT(e,n){return n.get?n.get.call(e):n.value}function Ap(e,n,r){if(!n.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return n.get(e)}function LT(e,n){var r=Ap(e,n,"get");return NT(e,r)}function UT(e,n,r){if(n.set)n.set.call(e,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}}function _p(e,n,r){var s=Ap(e,n,"set");return UT(e,s,r),r}function BT(e){let n=C.useContext(Ep);if(n){let{register:r,...s}=n;e=Sa(s,e),r()}return ap(n,e.ref),e}var Po=new WeakMap;class Zo{continuePropagation(){_p(this,Po,!1)}get shouldStopPropagation(){return LT(this,Po)}constructor(n,r,s,l){aT(this,Po,{writable:!0,value:void 0}),_p(this,Po,!0);var c;let f=(c=l?.target)!==null&&c!==void 0?c:s.currentTarget;const h=f?.getBoundingClientRect();let m,p=0,g,y=null;s.clientX!=null&&s.clientY!=null&&(g=s.clientX,y=s.clientY),h&&(g!=null&&y!=null?(m=g-h.left,p=y-h.top):(m=h.width/2,p=h.height/2)),this.type=n,this.pointerType=r,this.target=s.currentTarget,this.shiftKey=s.shiftKey,this.metaKey=s.metaKey,this.ctrlKey=s.ctrlKey,this.altKey=s.altKey,this.x=m,this.y=p}}const Cp=Symbol("linkClicked"),Mp="react-aria-pressable-style",Dp="data-react-aria-pressable";function fc(e){let{onPress:n,onPressChange:r,onPressStart:s,onPressEnd:l,onPressUp:c,onClick:f,isDisabled:h,isPressed:m,preventFocusOnPress:p,shouldCancelOnPointerExit:g,allowTextSelectionOnPress:y,ref:x,...E}=BT(e),[_,D]=C.useState(!1),$=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:X,removeAllGlobalListeners:R}=nc(),Z=mn((G,q)=>{let ae=$.current;if(h||ae.didFirePressStart)return!1;let U=!0;if(ae.isTriggeringEvent=!0,s){let ne=new Zo("pressstart",q,G);s(ne),U=ne.shouldStopPropagation}return r&&r(!0),ae.isTriggeringEvent=!1,ae.didFirePressStart=!0,D(!0),U}),W=mn((G,q,ae=!0)=>{let U=$.current;if(!U.didFirePressStart)return!1;U.didFirePressStart=!1,U.isTriggeringEvent=!0;let ne=!0;if(l){let S=new Zo("pressend",q,G);l(S),ne=S.shouldStopPropagation}if(r&&r(!1),D(!1),n&&ae&&!h){let S=new Zo("press",q,G);n(S),ne&&(ne=S.shouldStopPropagation)}return U.isTriggeringEvent=!1,ne}),Y=mn((G,q)=>{let ae=$.current;if(h)return!1;if(c){ae.isTriggeringEvent=!0;let U=new Zo("pressup",q,G);return c(U),ae.isTriggeringEvent=!1,U.shouldStopPropagation}return!0}),O=mn(G=>{let q=$.current;if(q.isPressed&&q.target){q.didFirePressStart&&q.pointerType!=null&&W(ar(q.target,G),q.pointerType,!1),q.isPressed=!1,q.isOverTarget=!1,q.activePointerId=null,q.pointerType=null,R(),y||Tp(q.target);for(let ae of q.disposables)ae();q.disposables=[]}}),J=mn(G=>{g&&O(G)}),H=mn(G=>{f?.(G)}),ce=mn((G,q)=>{if(f){let ae=new MouseEvent("click",G);Sp(ae,q),f(uc(ae))}}),me=C.useMemo(()=>{let G=$.current,q={onKeyDown(U){if(hc(U.nativeEvent,U.currentTarget)&&pn(U.currentTarget,Ht(U.nativeEvent))){var ne;zp(Ht(U.nativeEvent),U.key)&&U.preventDefault();let S=!0;if(!G.isPressed&&!U.repeat){G.target=U.currentTarget,G.isPressed=!0,G.pointerType="keyboard",S=Z(U,"keyboard");let j=U.currentTarget,z=le=>{hc(le,j)&&!le.repeat&&pn(j,Ht(le))&&G.target&&Y(ar(G.target,le),"keyboard")};X(Zt(U.currentTarget),"keyup",Qm(z,ae),!0)}S&&U.stopPropagation(),U.metaKey&&as()&&((ne=G.metaKeyEvents)===null||ne===void 0||ne.set(U.key,U.nativeEvent))}else U.key==="Meta"&&(G.metaKeyEvents=new Map)},onClick(U){if(!(U&&!pn(U.currentTarget,Ht(U.nativeEvent)))&&U&&U.button===0&&!G.isTriggeringEvent&&!rs.isOpening){let ne=!0;if(h&&U.preventDefault(),!G.ignoreEmulatedMouseEvents&&!G.isPressed&&(G.pointerType==="virtual"||rp(U.nativeEvent))){let S=Z(U,"virtual"),j=Y(U,"virtual"),z=W(U,"virtual");H(U),ne=S&&j&&z}else if(G.isPressed&&G.pointerType!=="keyboard"){let S=G.pointerType||U.nativeEvent.pointerType||"virtual",j=Y(ar(U.currentTarget,U),S),z=W(ar(U.currentTarget,U),S,!0);ne=j&&z,G.isOverTarget=!1,H(U),O(U)}G.ignoreEmulatedMouseEvents=!1,ne&&U.stopPropagation()}}},ae=U=>{var ne;if(G.isPressed&&G.target&&hc(U,G.target)){var S;zp(Ht(U),U.key)&&U.preventDefault();let z=Ht(U),le=pn(G.target,Ht(U));W(ar(G.target,U),"keyboard",le),le&&ce(U,G.target),R(),U.key!=="Enter"&&dc(G.target)&&pn(G.target,z)&&!U[Cp]&&(U[Cp]=!0,rs(G.target,U,!1)),G.isPressed=!1,(S=G.metaKeyEvents)===null||S===void 0||S.delete(U.key)}else if(U.key==="Meta"&&(!((ne=G.metaKeyEvents)===null||ne===void 0)&&ne.size)){var j;let z=G.metaKeyEvents;G.metaKeyEvents=void 0;for(let le of z.values())(j=G.target)===null||j===void 0||j.dispatchEvent(new KeyboardEvent("keyup",le))}};if(typeof PointerEvent<"u"){q.onPointerDown=S=>{if(S.button!==0||!pn(S.currentTarget,Ht(S.nativeEvent)))return;if(ST(S.nativeEvent)){G.pointerType="virtual";return}G.pointerType=S.pointerType;let j=!0;if(!G.isPressed){G.isPressed=!0,G.isOverTarget=!0,G.activePointerId=S.pointerId,G.target=S.currentTarget,y||jT(G.target),j=Z(S,G.pointerType);let z=Ht(S.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(S.pointerId),X(Zt(S.currentTarget),"pointerup",U,!1),X(Zt(S.currentTarget),"pointercancel",ne,!1)}j&&S.stopPropagation()},q.onMouseDown=S=>{if(pn(S.currentTarget,Ht(S.nativeEvent))&&S.button===0){if(p){let j=$T(S.target);j&&G.disposables.push(j)}S.stopPropagation()}},q.onPointerUp=S=>{!pn(S.currentTarget,Ht(S.nativeEvent))||G.pointerType==="virtual"||S.button===0&&!G.isPressed&&Y(S,G.pointerType||S.pointerType)},q.onPointerEnter=S=>{S.pointerId===G.activePointerId&&G.target&&!G.isOverTarget&&G.pointerType!=null&&(G.isOverTarget=!0,Z(ar(G.target,S),G.pointerType))},q.onPointerLeave=S=>{S.pointerId===G.activePointerId&&G.target&&G.isOverTarget&&G.pointerType!=null&&(G.isOverTarget=!1,W(ar(G.target,S),G.pointerType,!1),J(S))};let U=S=>{if(S.pointerId===G.activePointerId&&G.isPressed&&S.button===0&&G.target){if(pn(G.target,Ht(S))&&G.pointerType!=null){let j=!1,z=setTimeout(()=>{G.isPressed&&G.target instanceof HTMLElement&&(j?O(S):(Br(G.target),G.target.click()))},80);X(S.currentTarget,"click",()=>j=!0,!0),G.disposables.push(()=>clearTimeout(z))}else O(S);G.isOverTarget=!1}},ne=S=>{O(S)};q.onDragStart=S=>{pn(S.currentTarget,Ht(S.nativeEvent))&&O(S)}}return q},[X,h,p,R,y,O,J,W,Z,Y,H,ce]);return C.useEffect(()=>{if(!x)return;const G=Zt(x.current);if(!G||!G.head||G.getElementById(Mp))return;const q=G.createElement("style");q.id=Mp,q.textContent=`
75
+ @layer {
76
+ [${Dp}] {
77
+ touch-action: pan-x pan-y pinch-zoom;
78
+ }
79
+ }
80
+ `.trim(),G.head.prepend(q)},[x]),C.useEffect(()=>{let G=$.current;return()=>{var q;y||Tp((q=G.target)!==null&&q!==void 0?q:void 0);for(let ae of G.disposables)ae();G.disposables=[]}},[y]),{isPressed:m||_,pressProps:Sa(E,me,{[Dp]:!0})}}function dc(e){return e.tagName==="A"&&e.hasAttribute("href")}function hc(e,n){const{key:r,code:s}=e,l=n,c=l.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||s==="Space")&&!(l instanceof Nn(l).HTMLInputElement&&!Rp(l,r)||l instanceof Nn(l).HTMLTextAreaElement||l.isContentEditable)&&!((c==="link"||!c&&dc(l))&&r!=="Enter")}function ar(e,n){let r=n.clientX,s=n.clientY;return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey,clientX:r,clientY:s}}function PT(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!dc(e)}function zp(e,n){return e instanceof HTMLInputElement?!Rp(e,n):PT(e)}const ZT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Rp(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":ZT.has(e.type)}let rr=null,mc=new Set,ls=new Map,ir=!1,pc=!1;const HT={Tab:!0,Escape:!0};function Ho(e,n){for(let r of mc)r(e,n)}function GT(e){return!(e.metaKey||!as()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Go(e){ir=!0,GT(e)&&(rr="keyboard",Ho("keyboard",e))}function Zr(e){rr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ir=!0,Ho("pointer",e))}function Vp(e){rp(e)&&(ir=!0,rr="virtual")}function Op(e){e.target===window||e.target===document||Uo||!e.isTrusted||(!ir&&!pc&&(rr="virtual",Ho("virtual",e)),ir=!1,pc=!1)}function kp(){Uo||(ir=!1,pc=!0)}function gc(e){if(typeof window>"u"||typeof document>"u"||ls.get(Nn(e)))return;const n=Nn(e),r=Zt(e);let s=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ir=!0,s.apply(this,arguments)},r.addEventListener("keydown",Go,!0),r.addEventListener("keyup",Go,!0),r.addEventListener("click",Vp,!0),n.addEventListener("focus",Op,!0),n.addEventListener("blur",kp,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Zr,!0),r.addEventListener("pointermove",Zr,!0),r.addEventListener("pointerup",Zr,!0)),n.addEventListener("beforeunload",()=>{$p(e)},{once:!0}),ls.set(n,{focus:s})}const $p=(e,n)=>{const r=Nn(e),s=Zt(e);n&&s.removeEventListener("DOMContentLoaded",n),ls.has(r)&&(r.HTMLElement.prototype.focus=ls.get(r).focus,s.removeEventListener("keydown",Go,!0),s.removeEventListener("keyup",Go,!0),s.removeEventListener("click",Vp,!0),r.removeEventListener("focus",Op,!0),r.removeEventListener("blur",kp,!1),typeof PointerEvent<"u"&&(s.removeEventListener("pointerdown",Zr,!0),s.removeEventListener("pointermove",Zr,!0),s.removeEventListener("pointerup",Zr,!0)),ls.delete(r))};function qT(e){const n=Zt(e);let r;return n.readyState!=="loading"?gc(e):(r=()=>{gc(e)},n.addEventListener("DOMContentLoaded",r)),()=>$p(e,r)}typeof document<"u"&&qT();function jp(){return rr!=="pointer"}function YT(){return rr}function FT(e){rr=e,Ho(e,null)}const XT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function KT(e,n,r){let s=Zt(r?.target);const l=typeof window<"u"?Nn(r?.target).HTMLInputElement:HTMLInputElement,c=typeof window<"u"?Nn(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,f=typeof window<"u"?Nn(r?.target).HTMLElement:HTMLElement,h=typeof window<"u"?Nn(r?.target).KeyboardEvent:KeyboardEvent;return e=e||s.activeElement instanceof l&&!XT.has(s.activeElement.type)||s.activeElement instanceof c||s.activeElement instanceof f&&s.activeElement.isContentEditable,!(e&&n==="keyboard"&&r instanceof h&&!HT[r.key])}function QT(e,n,r){gc(),C.useEffect(()=>{let s=(l,c)=>{KT(!!r?.isTextInput,l,c)&&e(jp())};return mc.add(s),()=>{mc.delete(s)}},n)}function IT(e){const n=Zt(e),r=ns(n);if(YT()==="virtual"){let s=r;np(()=>{ns(n)===s&&e.isConnected&&Br(e)})}else Br(e)}function Np(e){let{isDisabled:n,onFocus:r,onBlur:s,onFocusChange:l}=e;const c=C.useCallback(m=>{if(m.target===m.currentTarget)return s&&s(m),l&&l(!1),!0},[s,l]),f=wp(c),h=C.useCallback(m=>{const p=Zt(m.target),g=p?ns(p):ns();m.target===m.currentTarget&&g===Ht(m.nativeEvent)&&(r&&r(m),l&&l(!0),f(m))},[l,r,f]);return{focusProps:{onFocus:!n&&(r||l||s)?h:void 0,onBlur:!n&&(s||l)?c:void 0}}}function Lp(e){if(!e)return;let n=!0;return r=>{let s={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){n=!0},continuePropagation(){n=!1},isPropagationStopped(){return n}};e(s),n&&r.stopPropagation()}}function JT(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Lp(e.onKeyDown),onKeyUp:Lp(e.onKeyUp)}}}let WT=Re.createContext(null);function eE(e){let n=C.useContext(WT)||{};ap(n,e);let{ref:r,...s}=n;return s}function tE(e,n){let{focusProps:r}=Np(e),{keyboardProps:s}=JT(e),l=Sa(r,s),c=eE(n),f=e.isDisabled?{}:c,h=C.useRef(e.autoFocus);C.useEffect(()=>{h.current&&n.current&&IT(n.current),h.current=!1},[n]);let m=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(m=void 0),{focusableProps:Sa({...l,tabIndex:m},f)}}function nE(e){let{isDisabled:n,onBlurWithin:r,onFocusWithin:s,onFocusWithinChange:l}=e,c=C.useRef({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:h}=nc(),m=C.useCallback(y=>{y.currentTarget.contains(y.target)&&c.current.isFocusWithin&&!y.currentTarget.contains(y.relatedTarget)&&(c.current.isFocusWithin=!1,h(),r&&r(y),l&&l(!1))},[r,l,c,h]),p=wp(m),g=C.useCallback(y=>{if(!y.currentTarget.contains(y.target))return;const x=Zt(y.target),E=ns(x);if(!c.current.isFocusWithin&&E===Ht(y.nativeEvent)){s&&s(y),l&&l(!0),c.current.isFocusWithin=!0,p(y);let _=y.currentTarget;f(x,"focus",D=>{if(c.current.isFocusWithin&&!pn(_,D.target)){let $=new x.defaultView.FocusEvent("blur",{relatedTarget:D.target});Sp($,_);let X=uc($);m(X)}},{capture:!0})}},[s,l,p,f,m]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:g,onBlur:m}}}let vc=!1,yc=0;function aE(){vc=!0,setTimeout(()=>{vc=!1},50)}function Up(e){e.pointerType==="touch"&&aE()}function rE(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",Up),yc++,()=>{yc--,!(yc>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Up)}}function iE(e){let{onHoverStart:n,onHoverChange:r,onHoverEnd:s,isDisabled:l}=e,[c,f]=C.useState(!1),h=C.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;C.useEffect(rE,[]);let{addGlobalListener:m,removeAllGlobalListeners:p}=nc(),{hoverProps:g,triggerHoverEnd:y}=C.useMemo(()=>{let x=(D,$)=>{if(h.pointerType=$,l||$==="touch"||h.isHovered||!D.currentTarget.contains(D.target))return;h.isHovered=!0;let X=D.currentTarget;h.target=X,m(Zt(D.target),"pointerover",R=>{h.isHovered&&h.target&&!pn(h.target,R.target)&&E(R,R.pointerType)},{capture:!0}),n&&n({type:"hoverstart",target:X,pointerType:$}),r&&r(!0),f(!0)},E=(D,$)=>{let X=h.target;h.pointerType="",h.target=null,!($==="touch"||!h.isHovered||!X)&&(h.isHovered=!1,p(),s&&s({type:"hoverend",target:X,pointerType:$}),r&&r(!1),f(!1))},_={};return typeof PointerEvent<"u"&&(_.onPointerEnter=D=>{vc&&D.pointerType==="mouse"||x(D,D.pointerType)},_.onPointerLeave=D=>{!l&&D.currentTarget.contains(D.target)&&E(D,D.pointerType)}),{hoverProps:_,triggerHoverEnd:E}},[n,r,s,l,h,m,p]);return C.useEffect(()=>{l&&y({currentTarget:h.target},h.pointerType)},[l]),{hoverProps:g,isHovered:c}}function sE(e={}){let{autoFocus:n=!1,isTextInput:r,within:s}=e,l=C.useRef({isFocused:!1,isFocusVisible:n||jp()}),[c,f]=C.useState(!1),[h,m]=C.useState(()=>l.current.isFocused&&l.current.isFocusVisible),p=C.useCallback(()=>m(l.current.isFocused&&l.current.isFocusVisible),[]),g=C.useCallback(E=>{l.current.isFocused=E,f(E),p()},[p]);QT(E=>{l.current.isFocusVisible=E,p()},[],{isTextInput:r});let{focusProps:y}=Np({isDisabled:s,onFocusChange:g}),{focusWithinProps:x}=nE({isDisabled:!s,onFocusWithinChange:g});return{isFocused:c,isFocusVisible:h,focusProps:s?x:y}}function oE(e){return C.forwardRef(e)}var lE={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},uE={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},cE={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},fE={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},Bn="250ms",dE={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Bn},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Bn},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Bn},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Bn},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Bn},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Bn},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":Bn},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":Bn},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Bn},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Bn}},hE={...uE,...dE,...cE,...fE,...lE},qo=["small","medium","large"],Bp={theme:{spacing:["divider"],radius:qo},classGroups:{shadow:[{shadow:qo}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...qo]}],"border-w":[{border:qo}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(hE).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},Pp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kt=e=>!e||typeof e!="object"||Object.keys(e).length===0,mE=(e,n)=>JSON.stringify(e)===JSON.stringify(n);function Zp(e,n){e.forEach(function(r){Array.isArray(r)?Zp(r,n):n.push(r)})}function Hp(e){let n=[];return Zp(e,n),n}var Gp=(...e)=>Hp(e).filter(Boolean),qp=(e,n)=>{let r={},s=Object.keys(e),l=Object.keys(n);for(let c of s)if(l.includes(c)){let f=e[c],h=n[c];Array.isArray(f)||Array.isArray(h)?r[c]=Gp(h,f):typeof f=="object"&&typeof h=="object"?r[c]=qp(f,h):r[c]=h+" "+f}else r[c]=e[c];for(let c of l)s.includes(c)||(r[c]=n[c]);return r},Yp=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const bc="-",pE=e=>{const n=vE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:f=>{const h=f.split(bc);return h[0]===""&&h.length!==1&&h.shift(),Fp(h,n)||gE(f)},getConflictingClassGroupIds:(f,h)=>{const m=r[f]||[];return h&&s[f]?[...m,...s[f]]:m}}},Fp=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],s=n.nextPart.get(r),l=s?Fp(e.slice(1),s):void 0;if(l)return l;if(n.validators.length===0)return;const c=e.join(bc);return n.validators.find(({validator:f})=>f(c))?.classGroupId},Xp=/^\[(.+)\]$/,gE=e=>{if(Xp.test(e)){const n=Xp.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},vE=e=>{const{theme:n,classGroups:r}=e,s={nextPart:new Map,validators:[]};for(const l in r)xc(r[l],s,l,n);return s},xc=(e,n,r,s)=>{e.forEach(l=>{if(typeof l=="string"){const c=l===""?n:Kp(n,l);c.classGroupId=r;return}if(typeof l=="function"){if(yE(l)){xc(l(s),n,r,s);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([c,f])=>{xc(f,Kp(n,c),r,s)})})},Kp=(e,n)=>{let r=e;return n.split(bc).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},yE=e=>e.isThemeGetter,bE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,s=new Map;const l=(c,f)=>{r.set(c,f),n++,n>e&&(n=0,s=r,r=new Map)};return{get(c){let f=r.get(c);if(f!==void 0)return f;if((f=s.get(c))!==void 0)return l(c,f),f},set(c,f){r.has(c)?r.set(c,f):l(c,f)}}},Sc="!",wc=":",xE=wc.length,SE=e=>{const{prefix:n,experimentalParseClassName:r}=e;let s=l=>{const c=[];let f=0,h=0,m=0,p;for(let _=0;_<l.length;_++){let D=l[_];if(f===0&&h===0){if(D===wc){c.push(l.slice(m,_)),m=_+xE;continue}if(D==="/"){p=_;continue}}D==="["?f++:D==="]"?f--:D==="("?h++:D===")"&&h--}const g=c.length===0?l:l.substring(m),y=wE(g),x=y!==g,E=p&&p>m?p-m:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:E}};if(n){const l=n+wc,c=s;s=f=>f.startsWith(l)?c(f.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(r){const l=s;s=c=>r({className:c,parseClassName:l})}return s},wE=e=>e.endsWith(Sc)?e.substring(0,e.length-1):e.startsWith(Sc)?e.substring(1):e,TE=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const l=[];let c=[];return s.forEach(f=>{f[0]==="["||n[f]?(l.push(...c.sort(),f),c=[]):c.push(f)}),l.push(...c.sort()),l}},EE=e=>({cache:bE(e.cacheSize),parseClassName:SE(e),sortModifiers:TE(e),...pE(e)}),AE=/\s+/,_E=(e,n)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:c}=n,f=[],h=e.trim().split(AE);let m="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{isExternal:y,modifiers:x,hasImportantModifier:E,baseClassName:_,maybePostfixModifierPosition:D}=r(g);if(y){m=g+(m.length>0?" "+m:m);continue}let $=!!D,X=s($?_.substring(0,D):_);if(!X){if(!$){m=g+(m.length>0?" "+m:m);continue}if(X=s(_),!X){m=g+(m.length>0?" "+m:m);continue}$=!1}const R=c(x).join(":"),Z=E?R+Sc:R,W=Z+X;if(f.includes(W))continue;f.push(W);const Y=l(X,$);for(let O=0;O<Y.length;++O){const J=Y[O];f.push(Z+J)}m=g+(m.length>0?" "+m:m)}return m};function CE(){let e=0,n,r,s="";for(;e<arguments.length;)(n=arguments[e++])&&(r=Qp(n))&&(s&&(s+=" "),s+=r);return s}const Qp=e=>{if(typeof e=="string")return e;let n,r="";for(let s=0;s<e.length;s++)e[s]&&(n=Qp(e[s]))&&(r&&(r+=" "),r+=n);return r};function Tc(e,...n){let r,s,l,c=f;function f(m){const p=n.reduce((g,y)=>y(g),e());return r=EE(p),s=r.cache.get,l=r.cache.set,c=h,h(m)}function h(m){const p=s(m);if(p)return p;const g=_E(m,r);return l(m,g),g}return function(){return c(CE.apply(null,arguments))}}const At=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Ip=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ME=/^\d+\/\d+$/,DE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,RE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,VE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hr=e=>ME.test(e),Ue=e=>!!e&&!Number.isNaN(Number(e)),sr=e=>!!e&&Number.isInteger(Number(e)),Wp=e=>e.endsWith("%")&&Ue(e.slice(0,-1)),Ea=e=>DE.test(e),kE=()=>!0,$E=e=>zE.test(e)&&!RE.test(e),Ec=()=>!1,jE=e=>VE.test(e),NE=e=>OE.test(e),LE=e=>!be(e)&&!xe(e),UE=e=>Gr(e,ng,Ec),be=e=>Ip.test(e),or=e=>Gr(e,ag,$E),Ac=e=>Gr(e,QE,Ue),BE=e=>Gr(e,eg,Ec),PE=e=>Gr(e,tg,NE),ZE=e=>Gr(e,Ec,jE),xe=e=>Jp.test(e),Yo=e=>qr(e,ag),HE=e=>qr(e,IE),GE=e=>qr(e,eg),qE=e=>qr(e,ng),YE=e=>qr(e,tg),FE=e=>qr(e,JE,!0),Gr=(e,n,r)=>{const s=Ip.exec(e);return s?s[1]?n(s[1]):r(s[2]):!1},qr=(e,n,r=!1)=>{const s=Jp.exec(e);return s?s[1]?n(s[1]):r:!1},eg=e=>e==="position",XE=new Set(["image","url"]),tg=e=>XE.has(e),KE=new Set(["length","size","percentage"]),ng=e=>KE.has(e),ag=e=>e==="length",QE=e=>e==="number",IE=e=>e==="family-name",JE=e=>e==="shadow",_c=()=>{const e=At("color"),n=At("font"),r=At("text"),s=At("font-weight"),l=At("tracking"),c=At("leading"),f=At("breakpoint"),h=At("container"),m=At("spacing"),p=At("radius"),g=At("shadow"),y=At("inset-shadow"),x=At("drop-shadow"),E=At("blur"),_=At("perspective"),D=At("aspect"),$=At("ease"),X=At("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],O=()=>[xe,be,m],J=()=>[Hr,"full","auto",...O()],H=()=>[sr,"none","subgrid",xe,be],ce=()=>["auto",{span:["full",sr,xe,be]},xe,be],me=()=>[sr,"auto",xe,be],G=()=>["auto","min","max","fr",xe,be],q=()=>["start","end","center","between","around","evenly","stretch","baseline"],ae=()=>["start","end","center","stretch"],U=()=>["auto",...O()],ne=()=>[Hr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],S=()=>[e,xe,be],j=()=>[Wp,or],z=()=>["","none","full",p,xe,be],le=()=>["",Ue,Yo,or],w=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["","none",E,xe,be],ie=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe,be],fe=()=>["none",Ue,xe,be],Te=()=>["none",Ue,xe,be],Se=()=>[Ue,xe,be],De=()=>[Hr,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ea],breakpoint:[Ea],color:[kE],container:[Ea],"drop-shadow":[Ea],ease:["in","out","in-out"],font:[LE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ea],shadow:[Ea],spacing:["px",Ue],text:[Ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hr,be,xe,D]}],container:["container"],columns:[{columns:[Ue,be,xe,h]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),be,xe]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[sr,"auto",xe,be]}],basis:[{basis:[Hr,"full","auto",h,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ue,Hr,"auto","initial","none",be]}],grow:[{grow:["",Ue,xe,be]}],shrink:[{shrink:["",Ue,xe,be]}],order:[{order:[sr,"first","last","none",xe,be]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...ae(),"baseline"]}],"align-self":[{self:["auto",...ae(),"baseline"]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[h,"screen",...ne()]}],"min-w":[{"min-w":[h,"screen","none",...ne()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...ne()]}],h:[{h:["screen",...ne()]}],"min-h":[{"min-h":["screen","none",...ne()]}],"max-h":[{"max-h":["screen",...ne()]}],"font-size":[{text:["base",r,Yo,or]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,xe,Ac]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wp,be]}],"font-family":[{font:[HE,be,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,xe,be]}],"line-clamp":[{"line-clamp":[Ue,"none",xe,Ac]}],leading:[{leading:[c,...O()]}],"list-image":[{"list-image":["none",xe,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...w(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ue,"from-font","auto",xe,or]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Ue,"auto",xe,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),GE,BE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",qE,UE]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sr,xe,be],radial:["",xe,be],conic:[sr,xe,be]},YE,PE]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:j()}],"gradient-via-pos":[{via:j()}],"gradient-to-pos":[{to:j()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...w(),"hidden","none"]}],"divide-style":[{divide:[...w(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...w(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ue,xe,be]}],"outline-w":[{outline:["",Ue,Yo,or]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",g,FE,ZE]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",xe,be,y]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Ue,or]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":S()}],opacity:[{opacity:[Ue,xe,be]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none",xe,be]}],blur:[{blur:se()}],brightness:[{brightness:[Ue,xe,be]}],contrast:[{contrast:[Ue,xe,be]}],"drop-shadow":[{"drop-shadow":["","none",x,xe,be]}],grayscale:[{grayscale:["",Ue,xe,be]}],"hue-rotate":[{"hue-rotate":[Ue,xe,be]}],invert:[{invert:["",Ue,xe,be]}],saturate:[{saturate:[Ue,xe,be]}],sepia:[{sepia:["",Ue,xe,be]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,be]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[Ue,xe,be]}],"backdrop-contrast":[{"backdrop-contrast":[Ue,xe,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ue,xe,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ue,xe,be]}],"backdrop-invert":[{"backdrop-invert":["",Ue,xe,be]}],"backdrop-opacity":[{"backdrop-opacity":[Ue,xe,be]}],"backdrop-saturate":[{"backdrop-saturate":[Ue,xe,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Ue,xe,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ue,"initial",xe,be]}],ease:[{ease:["linear","initial",$,xe,be]}],delay:[{delay:[Ue,xe,be]}],animate:[{animate:["none",X,xe,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,xe,be]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[xe,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:De()}],"translate-x":[{"translate-x":De()}],"translate-y":[{"translate-y":De()}],"translate-z":[{"translate-z":De()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,be]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Ue,Yo,or,Ac]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},WE=(e,{cacheSize:n,prefix:r,experimentalParseClassName:s,extend:l={},override:c={}})=>(us(e,"cacheSize",n),us(e,"prefix",r),us(e,"experimentalParseClassName",s),Fo(e.theme,c.theme),Fo(e.classGroups,c.classGroups),Fo(e.conflictingClassGroups,c.conflictingClassGroups),Fo(e.conflictingClassGroupModifiers,c.conflictingClassGroupModifiers),us(e,"orderSensitiveModifiers",c.orderSensitiveModifiers),Xo(e.theme,l.theme),Xo(e.classGroups,l.classGroups),Xo(e.conflictingClassGroups,l.conflictingClassGroups),Xo(e.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),rg(e,l,"orderSensitiveModifiers"),e),us=(e,n,r)=>{r!==void 0&&(e[n]=r)},Fo=(e,n)=>{if(n)for(const r in n)us(e,r,n[r])},Xo=(e,n)=>{if(n)for(const r in n)rg(e,n,r)},rg=(e,n,r)=>{const s=n[r];s!==void 0&&(e[r]=e[r]?e[r].concat(s):s)},e2=(e,...n)=>typeof e=="function"?Tc(_c,e,...n):Tc(()=>WE(_c(),e),...n),t2=Tc(_c);var n2={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},ig=e=>e||void 0,cs=(...e)=>ig(Hp(e).filter(Boolean).join(" ")),Cc=null,ea={},Mc=!1,fs=(...e)=>n=>n.twMerge?((!Cc||Mc)&&(Mc=!1,Cc=Kt(ea)?t2:e2({...ea,extend:{theme:ea.theme,classGroups:ea.classGroups,conflictingClassGroupModifiers:ea.conflictingClassGroupModifiers,conflictingClassGroups:ea.conflictingClassGroups,...ea.extend}})),ig(Cc(cs(e)))):cs(e),sg=(e,n)=>{for(let r in n)e.hasOwnProperty(r)?e[r]=cs(e[r],n[r]):e[r]=n[r];return e},a2=(e,n)=>{let{extend:r=null,slots:s={},variants:l={},compoundVariants:c=[],compoundSlots:f=[],defaultVariants:h={}}=e,m={...n2,...n},p=r!=null&&r.base?cs(r.base,e?.base):e?.base,g=r!=null&&r.variants&&!Kt(r.variants)?qp(l,r.variants):l,y=r!=null&&r.defaultVariants&&!Kt(r.defaultVariants)?{...r.defaultVariants,...h}:h;!Kt(m.twMergeConfig)&&!mE(m.twMergeConfig,ea)&&(Mc=!0,ea=m.twMergeConfig);let x=Kt(r?.slots),E=Kt(s)?{}:{base:cs(e?.base,x&&r?.base),...s},_=x?E:sg({...r?.slots},Kt(E)?{base:e?.base}:E),D=Kt(r?.compoundVariants)?c:Gp(r?.compoundVariants,c),$=R=>{if(Kt(g)&&Kt(s)&&x)return fs(p,R?.class,R?.className)(m);if(D&&!Array.isArray(D))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof D}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let Z=(q,ae,U=[],ne)=>{let S=U;if(typeof ae=="string")S=S.concat(Yp(ae).split(" ").map(j=>`${q}:${j}`));else if(Array.isArray(ae))S=S.concat(ae.reduce((j,z)=>j.concat(`${q}:${z}`),[]));else if(typeof ae=="object"&&typeof ne=="string"){for(let j in ae)if(ae.hasOwnProperty(j)&&j===ne){let z=ae[j];if(z&&typeof z=="string"){let le=Yp(z);S[ne]?S[ne]=S[ne].concat(le.split(" ").map(w=>`${q}:${w}`)):S[ne]=le.split(" ").map(w=>`${q}:${w}`)}else Array.isArray(z)&&z.length>0&&(S[ne]=z.reduce((le,w)=>le.concat(`${q}:${w}`),[]))}}return S},W=(q,ae=g,U=null,ne=null)=>{var S;let j=ae[q];if(!j||Kt(j))return null;let z=(S=ne?.[q])!=null?S:R?.[q];if(z===null)return null;let le=Pp(z),w=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,Q=y?.[q],se=[];if(typeof le=="object"&&w)for(let[Te,Se]of Object.entries(le)){let De=j[Se];if(Te==="initial"){Q=Se;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(Te)||(se=Z(Te,De,se,U))}let ie=le!=null&&typeof le!="object"?le:Pp(Q),fe=j[ie||"false"];return typeof se=="object"&&typeof U=="string"&&se[U]?sg(se,fe):se.length>0?(se.push(fe),U==="base"?se.join(" "):se):fe},Y=()=>g?Object.keys(g).map(q=>W(q,g)):null,O=(q,ae)=>{if(!g||typeof g!="object")return null;let U=new Array;for(let ne in g){let S=W(ne,g,q,ae),j=q==="base"&&typeof S=="string"?S:S&&S[q];j&&(U[U.length]=j)}return U},J={};for(let q in R)R[q]!==void 0&&(J[q]=R[q]);let H=(q,ae)=>{var U;let ne=typeof R?.[q]=="object"?{[q]:(U=R[q])==null?void 0:U.initial}:{};return{...y,...J,...ne,...ae}},ce=(q=[],ae)=>{let U=[];for(let{class:ne,className:S,...j}of q){let z=!0;for(let[le,w]of Object.entries(j)){let Q=H(le,ae)[le];if(Array.isArray(w)){if(!w.includes(Q)){z=!1;break}}else{let se=ie=>ie==null||ie===!1;if(se(w)&&se(Q))continue;if(Q!==w){z=!1;break}}}z&&(ne&&U.push(ne),S&&U.push(S))}return U},me=q=>{let ae=ce(D,q);if(!Array.isArray(ae))return ae;let U={};for(let ne of ae)if(typeof ne=="string"&&(U.base=fs(U.base,ne)(m)),typeof ne=="object")for(let[S,j]of Object.entries(ne))U[S]=fs(U[S],j)(m);return U},G=q=>{if(f.length<1)return null;let ae={};for(let{slots:U=[],class:ne,className:S,...j}of f){if(!Kt(j)){let z=!0;for(let le of Object.keys(j)){let w=H(le,q)[le];if(w===void 0||(Array.isArray(j[le])?!j[le].includes(w):j[le]!==w)){z=!1;break}}if(!z)continue}for(let z of U)ae[z]=ae[z]||[],ae[z].push([ne,S])}return ae};if(!Kt(s)||!x){let q={};if(typeof _=="object"&&!Kt(_))for(let ae of Object.keys(_))q[ae]=U=>{var ne,S;return fs(_[ae],O(ae,U),((ne=me(U))!=null?ne:[])[ae],((S=G(U))!=null?S:[])[ae],U?.class,U?.className)(m)};return q}return fs(p,Y(),ce(D),R?.class,R?.className)(m)},X=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return $.variantKeys=X(),$.extend=r,$.base=p,$.slots=_,$.variants=g,$.defaultVariants=y,$.compoundSlots=f,$.compoundVariants=D,$},Dc=(e,n)=>{var r,s,l;return a2(e,{...n,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(s=void 0)==null?void 0:s.theme,...Bp.theme},classGroups:{...(l=void 0)==null?void 0:l.classGroups,...Bp.classGroups}}})},r2=["outline-hidden","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],i2=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],s2=Dc({base:"flex flex-col gap-2 items-start"}),o2=Dc({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...r2],hiddenInput:i2,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});Dc({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var og=globalThis?.document?C.useLayoutEffect:C.useEffect;const lg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ug={...lg,customError:!0,valid:!1},Yr={isInvalid:!1,validationDetails:lg,validationErrors:[]},cg=C.createContext({}),Ko="__formValidationState"+Date.now();function fg(e){if(e[Ko]){let{realtimeValidation:n,displayValidation:r,updateValidation:s,resetValidation:l,commitValidation:c}=e[Ko];return{realtimeValidation:n,displayValidation:r,updateValidation:s,resetValidation:l,commitValidation:c}}return l2(e)}function l2(e){let{isInvalid:n,validationState:r,name:s,value:l,builtinValidation:c,validate:f,validationBehavior:h="aria"}=e;r&&(n||(n=r==="invalid"));let m=n!==void 0?{isInvalid:n,validationErrors:[],validationDetails:ug}:null,p=C.useMemo(()=>{if(!f||l==null)return null;let me=u2(f,l);return dg(me)},[f,l]);c?.validationDetails.valid&&(c=void 0);let g=C.useContext(cg),y=C.useMemo(()=>s?Array.isArray(s)?s.flatMap(me=>zc(g[me])):zc(g[s]):[],[g,s]),[x,E]=C.useState(g),[_,D]=C.useState(!1);g!==x&&(E(g),D(!1));let $=C.useMemo(()=>dg(_?[]:y),[_,y]),X=C.useRef(Yr),[R,Z]=C.useState(Yr),W=C.useRef(Yr),Y=()=>{if(!O)return;J(!1);let me=p||c||X.current;Rc(me,W.current)||(W.current=me,Z(me))},[O,J]=C.useState(!1);return C.useEffect(Y),{realtimeValidation:m||$||p||c||Yr,displayValidation:h==="native"?m||$||R:m||$||p||c||R,updateValidation(me){h==="aria"&&!Rc(R,me)?Z(me):X.current=me},resetValidation(){let me=Yr;Rc(me,W.current)||(W.current=me,Z(me)),h==="native"&&J(!1),D(!0)},commitValidation(){h==="native"&&J(!0),D(!0)}}}function zc(e){return e?Array.isArray(e)?e:[e]:[]}function u2(e,n){if(typeof e=="function"){let r=e(n);if(r&&typeof r!="boolean")return zc(r)}return[]}function dg(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ug}:null}function Rc(e,n){return e===n?!0:!!e&&!!n&&e.isInvalid===n.isInvalid&&e.validationErrors.length===n.validationErrors.length&&e.validationErrors.every((r,s)=>r===n.validationErrors[s])&&Object.entries(e.validationDetails).every(([r,s])=>n.validationDetails[r]===s)}function c2(e,n,r){let{validationBehavior:s,focus:l}=e;jo(()=>{if(s==="native"&&r?.current&&!r.current.disabled){let m=n.realtimeValidation.isInvalid?n.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(m),r.current.hasAttribute("title")||(r.current.title=""),n.realtimeValidation.isInvalid||n.updateValidation(d2(r.current))}});let c=mn(()=>{n.resetValidation()}),f=mn(m=>{var p;n.displayValidation.isInvalid||n.commitValidation();let g=r==null||(p=r.current)===null||p===void 0?void 0:p.form;if(!m.defaultPrevented&&r&&g&&h2(g)===r.current){var y;l?l():(y=r.current)===null||y===void 0||y.focus(),FT("keyboard")}m.preventDefault()}),h=mn(()=>{n.commitValidation()});C.useEffect(()=>{let m=r?.current;if(!m)return;let p=m.form;return m.addEventListener("invalid",f),m.addEventListener("change",h),p?.addEventListener("reset",c),()=>{m.removeEventListener("invalid",f),m.removeEventListener("change",h),p?.removeEventListener("reset",c)}},[r,f,h,c,s])}function f2(e){let n=e.validity;return{badInput:n.badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid}}function d2(e){return{isInvalid:!e.validity.valid,validationDetails:f2(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function h2(e){for(let n=0;n<e.elements.length;n++){let r=e.elements[n];if(!r.validity.valid)return r}return null}function m2(e,n,r){let{isDisabled:s=!1,isReadOnly:l=!1,value:c,name:f,children:h,"aria-label":m,"aria-labelledby":p,validationState:g="valid",isInvalid:y}=e,x=O=>{O.stopPropagation(),n.setSelected(O.target.checked)},E=h!=null,_=m!=null||p!=null,{pressProps:D,isPressed:$}=fc({isDisabled:s}),{pressProps:X,isPressed:R}=fc({onPress(){var O;n.toggle(),(O=r.current)===null||O===void 0||O.focus()},isDisabled:s||l}),{focusableProps:Z}=tE(e,r),W=Sa(D,Z),Y=dT(e,{labelable:!0});return wT(r,n.isSelected,n.setSelected),{labelProps:Sa(X,{onClick:O=>O.preventDefault()}),inputProps:Sa(Y,{"aria-invalid":y||g==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":l||void 0,onChange:x,disabled:s,...c==null?{}:{value:c},name:f,type:"checkbox",...W}),isSelected:n.isSelected,isPressed:$||R,isDisabled:s,isReadOnly:l,isInvalid:y||g==="invalid"}}function hg(e,n,r){let s=fg({...e,value:n.isSelected}),{isInvalid:l,validationErrors:c,validationDetails:f}=s.displayValidation,{labelProps:h,inputProps:m,isSelected:p,isPressed:g,isDisabled:y,isReadOnly:x}=m2({...e,isInvalid:l},n,r);c2(e,s,r);let{isIndeterminate:E,isRequired:_,validationBehavior:D="aria"}=e;C.useEffect(()=>{r.current&&(r.current.indeterminate=!!E)});let{pressProps:$}=fc({isDisabled:y||x,onPress(){let{[Ko]:X}=e,{commitValidation:R}=X||s;R()}});return{labelProps:Sa(h,$),inputProps:{...m,checked:p,"aria-required":_&&D==="aria"||void 0,required:_&&D==="native"},isSelected:p,isPressed:g,isDisabled:y,isReadOnly:x,isInvalid:l,validationErrors:c,validationDetails:f}}const p2=new WeakMap;function mg(e={}){let{isReadOnly:n}=e,[r,s]=AT(e.isSelected,e.defaultSelected||!1,e.onChange);function l(f){n||s(f)}function c(){n||s(!r)}return{isSelected:r,setSelected:l,toggle:c}}function g2(e,n,r){const s=mg({isReadOnly:e.isReadOnly||n.isReadOnly,isSelected:n.isSelected(e.value),onChange($){$?n.addValue(e.value):n.removeValue(e.value),e.onChange&&e.onChange($)}});let{name:l,descriptionId:c,errorMessageId:f,validationBehavior:h}=p2.get(n);var m;h=(m=e.validationBehavior)!==null&&m!==void 0?m:h;let{realtimeValidation:p}=fg({...e,value:s.isSelected,name:void 0,validationBehavior:"aria"}),g=C.useRef(Yr),y=()=>{n.setInvalid(e.value,p.isInvalid?p:g.current)};C.useEffect(y);let x=n.realtimeValidation.isInvalid?n.realtimeValidation:p,E=h==="native"?n.displayValidation:x;var _;let D=hg({...e,isReadOnly:e.isReadOnly||n.isReadOnly,isDisabled:e.isDisabled||n.isDisabled,name:e.name||l,isRequired:(_=e.isRequired)!==null&&_!==void 0?_:n.isRequired,validationBehavior:h,[Ko]:{realtimeValidation:x,displayValidation:E,resetValidation:n.resetValidation,commitValidation:n.commitValidation,updateValidation($){g.current=$,y()}}},s,r);return{...D,inputProps:{...D.inputProps,"aria-describedby":[e["aria-describedby"],n.isInvalid?f:null,c].filter(Boolean).join(" ")||void 0}}}var pg=Symbol("default");function v2(e){const n=C.useRef(null),r=C.useRef(void 0),s=C.useCallback(l=>{if(typeof e=="function"){const c=e,f=c(l);return()=>{typeof f=="function"?f():c(null)}}else if(e)return e.current=l,()=>{e.current=null}},[e]);return C.useMemo(()=>({get current(){return n.current},set current(l){n.current=l,r.current&&(r.current(),r.current=void 0),l!=null&&(r.current=s(l))}}),[s])}function gg(e,n){let r=C.useContext(e);if(n===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let s=new Intl.ListFormat().format(Object.keys(r.slots).map(c=>`"${c}"`));if(!n&&!r.slots[pg])throw new Error(`A slot prop is required. Valid slot names are ${s}.`);let l=n||pg;if(!r.slots[l])throw new Error(`Invalid slot "${n}". Valid slot names are ${s}.`);return r.slots[l]}return r}function y2(e,n,r){let s=gg(r,e.slot)||{},{ref:l,...c}=s,f=v2(C.useMemo(()=>Jw(n,l),[n,l])),h=Qu(c,e);return"style"in c&&c.style&&"style"in e&&e.style&&(typeof c.style=="function"||typeof e.style=="function"?h.style=m=>{let p=typeof c.style=="function"?c.style(m):c.style,g={...m.defaultStyle,...p},y=typeof e.style=="function"?e.style({...m,defaultStyle:g}):e.style;return{...g,...y}}:h.style={...c.style,...e.style}),[h,f]}var Vc=C.createContext(null);C.forwardRef(function(n,r){[n,r]=y2(n,r,Vc);let{validationErrors:s,validationBehavior:l="native",children:c,className:f,...h}=n;const m=C.useMemo(()=>s2({className:f}),[f]);return F.jsx("form",{noValidate:l!=="native",...h,ref:r,className:m,children:F.jsx(Vc.Provider,{value:{...n,validationBehavior:l},children:F.jsx(cg.Provider,{value:s??{},children:c})})})});var[DV,b2]=Ym({name:"CheckboxGroupContext",strict:!1});function x2(e){const{isSelected:n,disableAnimation:r,...s}=e;return F.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:n?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&n?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...s,children:F.jsx("polyline",{points:"1 9 7 14 15 4"})})}function S2(e){const{isSelected:n,disableAnimation:r,...s}=e;return F.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...s,children:F.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function w2(e){const{isIndeterminate:n,...r}=e,s=n?S2:x2;return F.jsx(s,{...r})}function T2(e,n=[]){const r=C.useRef(e);return og(()=>{r.current=e}),C.useCallback((...s)=>{var l;return(l=r.current)==null?void 0:l.call(r,...s)},n)}function E2(e={}){var n,r,s,l,c,f,h,m;const p=tT(),g=b2(),{validationBehavior:y}=gg(Vc)||{},x=!!g,{as:E,ref:_,value:D="",children:$,icon:X,name:R,isRequired:Z,isReadOnly:W=!1,autoFocus:Y=!1,isSelected:O,size:J=(n=g?.size)!=null?n:"md",color:H=(r=g?.color)!=null?r:"primary",radius:ce=g?.radius,lineThrough:me=(s=g?.lineThrough)!=null?s:!1,isDisabled:G=(l=g?.isDisabled)!=null?l:!1,disableAnimation:q=(f=(c=g?.disableAnimation)!=null?c:p?.disableAnimation)!=null?f:!1,validationState:ae,isInvalid:U=ae?ae==="invalid":(h=g?.isInvalid)!=null?h:!1,isIndeterminate:ne=!1,validationBehavior:S=x?g.validationBehavior:(m=y??p?.validationBehavior)!=null?m:"native",defaultSelected:j,classNames:z,className:le,onValueChange:w,validate:Q,...se}=e,ie=E||"label",fe=C.useRef(null),Te=C.useRef(null);let Se=e.onChange;x&&(Se=Ku(()=>{g.groupState.resetValidation()},Se));const De=C.useId(),Be=C.useMemo(()=>({name:R,value:D,children:$,autoFocus:Y,defaultSelected:j,isIndeterminate:ne,isRequired:Z,isInvalid:U,isSelected:O,isDisabled:G,isReadOnly:W,"aria-label":Qw(se["aria-label"],$),"aria-labelledby":se["aria-labelledby"]||De,onChange:w}),[R,D,$,Y,j,ne,Z,U,O,G,W,se["aria-label"],se["aria-labelledby"],De,w]),vt=mg(Be),Yt={isInvalid:U,isRequired:Z,validate:Q,validationState:ae,validationBehavior:S},{inputProps:Ct,isSelected:Mt,isDisabled:Ft,isReadOnly:Gn,isPressed:hi,isInvalid:js}=x?g2({...Be,...Yt},g.groupState,Te):hg({...Be,...Yt},vt,Te),Jt=Ft||Gn,ra=ae==="invalid"||U||js,Ra=Jt?!1:hi,{hoverProps:A,isHovered:N}=iE({isDisabled:Ct.disabled}),{focusProps:K,isFocused:he,isFocusVisible:ue}=sE({autoFocus:Ct.autoFocus}),oe=C.useMemo(()=>o2({color:H,size:J,radius:ce,isInvalid:ra,lineThrough:me,isDisabled:Ft,disableAnimation:q}),[H,J,ce,ra,me,Ft,q]);og(()=>{if(!Te.current)return;const Dt=!!Te.current.checked;vt.setSelected(Dt)},[Te.current]);const ve=T2(Se),ze=C.useCallback(Dt=>{if(Gn||Ft){Dt.preventDefault();return}ve?.(Dt)},[Gn,Ft,ve]),$e=$o(z?.base,le),Fe=C.useCallback(()=>({ref:fe,className:oe.base({class:$e}),"data-disabled":In(Ft),"data-selected":In(Mt||ne),"data-invalid":In(ra),"data-hover":In(N),"data-focus":In(he),"data-pressed":In(Ra),"data-readonly":In(Ct.readOnly),"data-focus-visible":In(ue),"data-indeterminate":In(ne),...Qu(A,se)}),[oe,$e,Ft,Mt,ne,ra,N,he,Ra,Ct.readOnly,ue,A,se]),Va=C.useCallback((Dt={})=>({...Dt,"aria-hidden":!0,className:$o(oe.wrapper({class:$o(z?.wrapper,Dt?.className)}))}),[oe,z?.wrapper]),Sn=C.useCallback(()=>({ref:eT(Te,_),...Qu(Ct,K),className:oe.hiddenInput({class:z?.hiddenInput}),onChange:Ku(Ct.onChange,ze)}),[Ct,K,ze,z?.hiddenInput]),Ns=C.useCallback(()=>({id:De,className:oe.label({class:z?.label})}),[oe,z?.label,Ft,Mt,ra]),qn=C.useCallback(()=>({isSelected:Mt,isIndeterminate:ne,disableAnimation:q,className:oe.icon({class:z?.icon})}),[oe,z?.icon,Mt,ne,q]);return{Component:ie,icon:X,children:$,isSelected:Mt,isDisabled:Ft,isInvalid:ra,isFocused:he,isHovered:N,isFocusVisible:ue,getBaseProps:Fe,getWrapperProps:Va,getInputProps:Sn,getLabelProps:Ns,getIconProps:qn}}var vg=oE((e,n)=>{const{Component:r,children:s,icon:l=F.jsx(w2,{}),getBaseProps:c,getWrapperProps:f,getInputProps:h,getIconProps:m,getLabelProps:p}=E2({...e,ref:n}),g=typeof l=="function"?l(m()):C.cloneElement(l,m());return F.jsxs(r,{...c(),children:[F.jsx("input",{...h()}),F.jsx("span",{...f(),children:g}),s&&F.jsx("span",{...p(),children:s})]})});vg.displayName="HeroUI.Checkbox";var A2=vg,Oc={exports:{}},kc={};/**
81
+ * @license React
82
+ * use-sync-external-store-shim.production.js
83
+ *
84
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
85
+ *
86
+ * This source code is licensed under the MIT license found in the
87
+ * LICENSE file in the root directory of this source tree.
88
+ */var yg;function _2(){if(yg)return kc;yg=1;var e=ko();function n(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var r=typeof Object.is=="function"?Object.is:n,s=e.useState,l=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue;function h(y,x){var E=x(),_=s({inst:{value:E,getSnapshot:x}}),D=_[0].inst,$=_[1];return c(function(){D.value=E,D.getSnapshot=x,m(D)&&$({inst:D})},[y,E,x]),l(function(){return m(D)&&$({inst:D}),y(function(){m(D)&&$({inst:D})})},[y]),f(E),E}function m(y){var x=y.getSnapshot;y=y.value;try{var E=x();return!r(y,E)}catch{return!0}}function p(y,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return kc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,kc}var bg;function C2(){return bg||(bg=1,Oc.exports=_2()),Oc.exports}var M2=C2();function xg(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function D2(...e){return n=>{let r=!1;const s=e.map(l=>{const c=xg(l,n);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let l=0;l<s.length;l++){const c=s[l];typeof c=="function"?c():xg(e[l],null)}}}}function Sg(e){const n=z2(e),r=C.forwardRef((s,l)=>{const{children:c,...f}=s,h=C.Children.toArray(c),m=h.find(V2);if(m){const p=m.props.children,g=h.map(y=>y===m?C.Children.count(p)>1?C.Children.only(null):C.isValidElement(p)?p.props.children:null:y);return F.jsx(n,{...f,ref:l,children:C.isValidElement(p)?C.cloneElement(p,void 0,g):null})}return F.jsx(n,{...f,ref:l,children:c})});return r.displayName=`${e}.Slot`,r}var wg=Sg("Slot");function z2(e){const n=C.forwardRef((r,s)=>{const{children:l,...c}=r;if(C.isValidElement(l)){const f=k2(l),h=O2(c,l.props);return l.type!==C.Fragment&&(h.ref=s?D2(s,f):f),C.cloneElement(l,h)}return C.Children.count(l)>1?C.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var R2=Symbol("radix.slottable");function V2(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===R2}function O2(e,n){const r={...n};for(const s in n){const l=e[s],c=n[s];/^on[A-Z]/.test(s)?l&&c?r[s]=(...h)=>{const m=c(...h);return l(...h),m}:l&&(r[s]=l):s==="style"?r[s]={...l,...c}:s==="className"&&(r[s]=[l,c].filter(Boolean).join(" "))}return{...e,...r}}function k2(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Tg=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eg=Wu,$2=(e,n)=>r=>{var s;if(n?.variants==null)return Eg(e,r?.class,r?.className);const{variants:l,defaultVariants:c}=n,f=Object.keys(l).map(p=>{const g=r?.[p],y=c?.[p];if(g===null)return null;const x=Tg(g)||Tg(y);return l[p][x]}),h=r&&Object.entries(r).reduce((p,g)=>{let[y,x]=g;return x===void 0||(p[y]=x),p},{}),m=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((p,g)=>{let{class:y,className:x,...E}=g;return Object.entries(E).every(_=>{let[D,$]=_;return Array.isArray($)?$.includes({...c,...h}[D]):{...c,...h}[D]===$})?[...p,y,x]:p},[]);return Eg(e,f,m,r?.class,r?.className)},$c="-",j2=e=>{const n=L2(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:f=>{const h=f.split($c);return h[0]===""&&h.length!==1&&h.shift(),Ag(h,n)||N2(f)},getConflictingClassGroupIds:(f,h)=>{const m=r[f]||[];return h&&s[f]?[...m,...s[f]]:m}}},Ag=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],s=n.nextPart.get(r),l=s?Ag(e.slice(1),s):void 0;if(l)return l;if(n.validators.length===0)return;const c=e.join($c);return n.validators.find(({validator:f})=>f(c))?.classGroupId},_g=/^\[(.+)\]$/,N2=e=>{if(_g.test(e)){const n=_g.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},L2=e=>{const{theme:n,classGroups:r}=e,s={nextPart:new Map,validators:[]};for(const l in r)jc(r[l],s,l,n);return s},jc=(e,n,r,s)=>{e.forEach(l=>{if(typeof l=="string"){const c=l===""?n:Cg(n,l);c.classGroupId=r;return}if(typeof l=="function"){if(U2(l)){jc(l(s),n,r,s);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([c,f])=>{jc(f,Cg(n,c),r,s)})})},Cg=(e,n)=>{let r=e;return n.split($c).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},U2=e=>e.isThemeGetter,B2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,s=new Map;const l=(c,f)=>{r.set(c,f),n++,n>e&&(n=0,s=r,r=new Map)};return{get(c){let f=r.get(c);if(f!==void 0)return f;if((f=s.get(c))!==void 0)return l(c,f),f},set(c,f){r.has(c)?r.set(c,f):l(c,f)}}},Nc="!",Lc=":",P2=Lc.length,Z2=e=>{const{prefix:n,experimentalParseClassName:r}=e;let s=l=>{const c=[];let f=0,h=0,m=0,p;for(let _=0;_<l.length;_++){let D=l[_];if(f===0&&h===0){if(D===Lc){c.push(l.slice(m,_)),m=_+P2;continue}if(D==="/"){p=_;continue}}D==="["?f++:D==="]"?f--:D==="("?h++:D===")"&&h--}const g=c.length===0?l:l.substring(m),y=H2(g),x=y!==g,E=p&&p>m?p-m:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:E}};if(n){const l=n+Lc,c=s;s=f=>f.startsWith(l)?c(f.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(r){const l=s;s=c=>r({className:c,parseClassName:l})}return s},H2=e=>e.endsWith(Nc)?e.substring(0,e.length-1):e.startsWith(Nc)?e.substring(1):e,G2=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const l=[];let c=[];return s.forEach(f=>{f[0]==="["||n[f]?(l.push(...c.sort(),f),c=[]):c.push(f)}),l.push(...c.sort()),l}},q2=e=>({cache:B2(e.cacheSize),parseClassName:Z2(e),sortModifiers:G2(e),...j2(e)}),Y2=/\s+/,F2=(e,n)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:c}=n,f=[],h=e.trim().split(Y2);let m="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{isExternal:y,modifiers:x,hasImportantModifier:E,baseClassName:_,maybePostfixModifierPosition:D}=r(g);if(y){m=g+(m.length>0?" "+m:m);continue}let $=!!D,X=s($?_.substring(0,D):_);if(!X){if(!$){m=g+(m.length>0?" "+m:m);continue}if(X=s(_),!X){m=g+(m.length>0?" "+m:m);continue}$=!1}const R=c(x).join(":"),Z=E?R+Nc:R,W=Z+X;if(f.includes(W))continue;f.push(W);const Y=l(X,$);for(let O=0;O<Y.length;++O){const J=Y[O];f.push(Z+J)}m=g+(m.length>0?" "+m:m)}return m};function X2(){let e=0,n,r,s="";for(;e<arguments.length;)(n=arguments[e++])&&(r=Mg(n))&&(s&&(s+=" "),s+=r);return s}const Mg=e=>{if(typeof e=="string")return e;let n,r="";for(let s=0;s<e.length;s++)e[s]&&(n=Mg(e[s]))&&(r&&(r+=" "),r+=n);return r};function K2(e,...n){let r,s,l,c=f;function f(m){const p=n.reduce((g,y)=>y(g),e());return r=q2(p),s=r.cache.get,l=r.cache.set,c=h,h(m)}function h(m){const p=s(m);if(p)return p;const g=F2(m,r);return l(m,g),g}return function(){return c(X2.apply(null,arguments))}}const xt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Dg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Q2=/^\d+\/\d+$/,I2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,J2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,W2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fr=e=>Q2.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>!!e&&Number.isInteger(Number(e)),Uc=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),ta=e=>I2.test(e),nA=()=>!0,aA=e=>J2.test(e)&&!W2.test(e),Rg=()=>!1,rA=e=>eA.test(e),iA=e=>tA.test(e),sA=e=>!pe(e)&&!ge(e),oA=e=>Xr(e,jg,Rg),pe=e=>Dg.test(e),lr=e=>Xr(e,Ng,aA),Bc=e=>Xr(e,dA,Oe),Vg=e=>Xr(e,kg,Rg),lA=e=>Xr(e,$g,iA),Qo=e=>Xr(e,Lg,rA),ge=e=>zg.test(e),ds=e=>Kr(e,Ng),uA=e=>Kr(e,hA),Og=e=>Kr(e,kg),cA=e=>Kr(e,jg),fA=e=>Kr(e,$g),Io=e=>Kr(e,Lg,!0),Xr=(e,n,r)=>{const s=Dg.exec(e);return s?s[1]?n(s[1]):r(s[2]):!1},Kr=(e,n,r=!1)=>{const s=zg.exec(e);return s?s[1]?n(s[1]):r:!1},kg=e=>e==="position"||e==="percentage",$g=e=>e==="image"||e==="url",jg=e=>e==="length"||e==="size"||e==="bg-size",Ng=e=>e==="length",dA=e=>e==="number",hA=e=>e==="family-name",Lg=e=>e==="shadow",mA=K2(()=>{const e=xt("color"),n=xt("font"),r=xt("text"),s=xt("font-weight"),l=xt("tracking"),c=xt("leading"),f=xt("breakpoint"),h=xt("container"),m=xt("spacing"),p=xt("radius"),g=xt("shadow"),y=xt("inset-shadow"),x=xt("text-shadow"),E=xt("drop-shadow"),_=xt("blur"),D=xt("perspective"),$=xt("aspect"),X=xt("ease"),R=xt("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Y=()=>[...W(),ge,pe],O=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],H=()=>[ge,pe,m],ce=()=>[Fr,"full","auto",...H()],me=()=>[Aa,"none","subgrid",ge,pe],G=()=>["auto",{span:["full",Aa,ge,pe]},Aa,ge,pe],q=()=>[Aa,"auto",ge,pe],ae=()=>["auto","min","max","fr",ge,pe],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...H()],j=()=>[Fr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],z=()=>[e,ge,pe],le=()=>[...W(),Og,Vg,{position:[ge,pe]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",cA,oA,{size:[ge,pe]}],se=()=>[Uc,ds,lr],ie=()=>["","none","full",p,ge,pe],fe=()=>["",Oe,ds,lr],Te=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],De=()=>[Oe,Uc,Og,Vg],Be=()=>["","none",_,ge,pe],vt=()=>["none",Oe,ge,pe],Yt=()=>["none",Oe,ge,pe],Ct=()=>[Oe,ge,pe],Mt=()=>[Fr,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ta],breakpoint:[ta],color:[nA],container:[ta],"drop-shadow":[ta],ease:["in","out","in-out"],font:[sA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ta],shadow:[ta],spacing:["px",Oe],text:[ta],"text-shadow":[ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fr,pe,ge,$]}],container:["container"],columns:[{columns:[Oe,pe,ge,h]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Y()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ce()}],"inset-x":[{"inset-x":ce()}],"inset-y":[{"inset-y":ce()}],start:[{start:ce()}],end:[{end:ce()}],top:[{top:ce()}],right:[{right:ce()}],bottom:[{bottom:ce()}],left:[{left:ce()}],visibility:["visible","invisible","collapse"],z:[{z:[Aa,"auto",ge,pe]}],basis:[{basis:[Fr,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,Fr,"auto","initial","none",pe]}],grow:[{grow:["",Oe,ge,pe]}],shrink:[{shrink:["",Oe,ge,pe]}],order:[{order:[Aa,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[h,"screen",...j()]}],"min-w":[{"min-w":[h,"screen","none",...j()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",r,ds,lr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ge,Bc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Uc,pe]}],"font-family":[{font:[uA,pe,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,ge,pe]}],"line-clamp":[{"line-clamp":[Oe,"none",ge,Bc]}],leading:[{leading:[c,...H()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",ge,lr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Oe,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Aa,ge,pe],radial:["",ge,pe],conic:[Aa,ge,pe]},fA,lA]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,ge,pe]}],"outline-w":[{outline:["",Oe,ds,lr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",g,Io,Qo]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",y,Io,Qo]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Oe,lr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",x,Io,Qo]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Oe,ge,pe]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Oe]}],"mask-image-linear-from-pos":[{"mask-linear-from":De()}],"mask-image-linear-to-pos":[{"mask-linear-to":De()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":De()}],"mask-image-t-to-pos":[{"mask-t-to":De()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":De()}],"mask-image-r-to-pos":[{"mask-r-to":De()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":De()}],"mask-image-b-to-pos":[{"mask-b-to":De()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":De()}],"mask-image-l-to-pos":[{"mask-l-to":De()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":De()}],"mask-image-x-to-pos":[{"mask-x-to":De()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":De()}],"mask-image-y-to-pos":[{"mask-y-to":De()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":De()}],"mask-image-radial-to-pos":[{"mask-radial-to":De()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"mask-image-conic-from-pos":[{"mask-conic-from":De()}],"mask-image-conic-to-pos":[{"mask-conic-to":De()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:Be()}],brightness:[{brightness:[Oe,ge,pe]}],contrast:[{contrast:[Oe,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",E,Io,Qo]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Oe,ge,pe]}],"hue-rotate":[{"hue-rotate":[Oe,ge,pe]}],invert:[{invert:["",Oe,ge,pe]}],saturate:[{saturate:[Oe,ge,pe]}],sepia:[{sepia:["",Oe,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",Oe,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",ge,pe]}],ease:[{ease:["linear","initial",X,ge,pe]}],delay:[{delay:[Oe,ge,pe]}],animate:[{animate:["none",R,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,ge,pe]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:Yt()}],"scale-x":[{"scale-x":Yt()}],"scale-y":[{"scale-y":Yt()}],"scale-z":[{"scale-z":Yt()}],"scale-3d":["scale-3d"],skew:[{skew:Ct()}],"skew-x":[{"skew-x":Ct()}],"skew-y":[{"skew-y":Ct()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Mt()}],"translate-x":[{"translate-x":Mt()}],"translate-y":[{"translate-y":Mt()}],"translate-z":[{"translate-z":Mt()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,pe]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Oe,ds,lr,Bc]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function _a(...e){return mA(Wu(e))}const pA=$2("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",night:"bg-sign-with-night-bg text-primary shadow-xs hover:!bg-sign-with-night-bg hover:!text-primary",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Qr({className:e,variant:n,size:r,asChild:s=!1,...l}){const c=s?wg:"button";return F.jsx(c,{"data-slot":"button",className:_a(pA({variant:n,size:r,className:e})),...l})}function Ug({className:e,...n}){return F.jsx("div",{"data-slot":"card-title",className:_a("leading-none font-semibold",e),...n})}function Pc({className:e,...n}){return F.jsx("div",{"data-slot":"card-description",className:_a("text-muted-foreground text-sm",e),...n})}function gA(e,n=[]){let r=[];function s(c,f){const h=C.createContext(f),m=r.length;r=[...r,f];const p=y=>{const{scope:x,children:E,..._}=y,D=x?.[e]?.[m]||h,$=C.useMemo(()=>_,Object.values(_));return F.jsx(D.Provider,{value:$,children:E})};p.displayName=c+"Provider";function g(y,x){const E=x?.[e]?.[m]||h,_=C.useContext(E);if(_)return _;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[p,g]}const l=()=>{const c=r.map(f=>C.createContext(f));return function(h){const m=h?.[e]||c;return C.useMemo(()=>({[`__scope${e}`]:{...h,[e]:m}}),[h,m])}};return l.scopeName=e,[s,vA(l,...n)]}function vA(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const s=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(c){const f=s.reduce((h,{useScope:m,scopeName:p})=>{const y=m(c)[`__scope${p}`];return{...h,...y}},{});return C.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return r.scopeName=n.scopeName,r}function yA(e){const n=C.useRef(e);return C.useEffect(()=>{n.current=e}),C.useMemo(()=>(...r)=>n.current?.(...r),[])}var Zc=globalThis?.document?C.useLayoutEffect:()=>{},bA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hc=bA.reduce((e,n)=>{const r=Sg(`Primitive.${n}`),s=C.forwardRef((l,c)=>{const{asChild:f,...h}=l,m=f?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),F.jsx(m,{...h,ref:c})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{});function xA(){return M2.useSyncExternalStore(SA,()=>!0,()=>!1)}function SA(){return()=>{}}var Gc="Avatar",[wA,RV]=gA(Gc),[TA,Bg]=wA(Gc),Pg=C.forwardRef((e,n)=>{const{__scopeAvatar:r,...s}=e,[l,c]=C.useState("idle");return F.jsx(TA,{scope:r,imageLoadingStatus:l,onImageLoadingStatusChange:c,children:F.jsx(Hc.span,{...s,ref:n})})});Pg.displayName=Gc;var Zg="AvatarImage",Hg=C.forwardRef((e,n)=>{const{__scopeAvatar:r,src:s,onLoadingStatusChange:l=()=>{},...c}=e,f=Bg(Zg,r),h=EA(s,c),m=yA(p=>{l(p),f.onImageLoadingStatusChange(p)});return Zc(()=>{h!=="idle"&&m(h)},[h,m]),h==="loaded"?F.jsx(Hc.img,{...c,ref:n,src:s}):null});Hg.displayName=Zg;var Gg="AvatarFallback",qg=C.forwardRef((e,n)=>{const{__scopeAvatar:r,delayMs:s,...l}=e,c=Bg(Gg,r),[f,h]=C.useState(s===void 0);return C.useEffect(()=>{if(s!==void 0){const m=window.setTimeout(()=>h(!0),s);return()=>window.clearTimeout(m)}},[s]),f&&c.imageLoadingStatus!=="loaded"?F.jsx(Hc.span,{...l,ref:n}):null});qg.displayName=Gg;function Yg(e,n){return e?n?(e.src!==n&&(e.src=n),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function EA(e,{referrerPolicy:n,crossOrigin:r}){const s=xA(),l=C.useRef(null),c=s?(l.current||(l.current=new window.Image),l.current):null,[f,h]=C.useState(()=>Yg(c,e));return Zc(()=>{h(Yg(c,e))},[c,e]),Zc(()=>{const m=y=>()=>{h(y)};if(!c)return;const p=m("loaded"),g=m("error");return c.addEventListener("load",p),c.addEventListener("error",g),n&&(c.referrerPolicy=n),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",p),c.removeEventListener("error",g)}},[c,r,n]),f}var AA=Pg,_A=Hg,CA=qg;function MA({className:e,...n}){return F.jsx(AA,{"data-slot":"avatar",className:_a("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...n})}function DA({className:e,...n}){return F.jsx(_A,{"data-slot":"avatar-image",className:_a("aspect-square size-full",e),...n})}function zA({className:e,...n}){return F.jsx(CA,{"data-slot":"avatar-fallback",className:_a("bg-muted flex size-full items-center justify-center rounded-full",e),...n})}const qc=C.createContext({});function Yc(e){const n=C.useRef(null);return n.current===null&&(n.current=e()),n.current}const Fc=typeof window<"u",Fg=Fc?C.useLayoutEffect:C.useEffect,Jo=C.createContext(null),Wo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function RA(e,n){let r=new Set,s=new Set,l=!1,c=!1;const f=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(g){f.has(g)&&(p.schedule(g),e()),g(h)}const p={schedule:(g,y=!1,x=!1)=>{const _=x&&l?r:s;return y&&f.add(g),_.has(g)||_.add(g),g},cancel:g=>{s.delete(g),f.delete(g)},process:g=>{if(h=g,l){c=!0;return}l=!0,[r,s]=[s,r],r.forEach(m),r.clear(),l=!1,c&&(c=!1,p.process(g))}};return p}const VA=40;function Xg(e,n){let r=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>r=!0,f=Wo.reduce((Z,W)=>(Z[W]=RA(c),Z),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:g,update:y,preRender:x,render:E,postRender:_}=f,D=()=>{const Z=Wn.useManualTiming?l.timestamp:performance.now();r=!1,Wn.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(Z-l.timestamp,VA),1)),l.timestamp=Z,l.isProcessing=!0,h.process(l),m.process(l),p.process(l),g.process(l),y.process(l),x.process(l),E.process(l),_.process(l),l.isProcessing=!1,r&&n&&(s=!1,e(D))},$=()=>{r=!0,s=!0,l.isProcessing||e(D)};return{schedule:Wo.reduce((Z,W)=>{const Y=f[W];return Z[W]=(O,J=!1,H=!1)=>(r||$(),Y.schedule(O,J,H)),Z},{}),cancel:Z=>{for(let W=0;W<Wo.length;W++)f[Wo[W]].cancel(Z)},state:l,steps:f}}const{schedule:et,cancel:Ca,state:kt,steps:Xc}=Xg(typeof requestAnimationFrame<"u"?requestAnimationFrame:gn,!0);let el;function OA(){el=void 0}const Qt={now:()=>(el===void 0&&Qt.set(kt.isProcessing||Wn.useManualTiming?kt.timestamp:performance.now()),el),set:e=>{el=e,queueMicrotask(OA)}},Kg=e=>n=>typeof n=="string"&&n.startsWith(e),Kc=Kg("--"),kA=Kg("var(--"),Qc=e=>kA(e)?$A.test(e.split("/*")[0].trim()):!1,$A=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ir={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hs={...Ir,transform:e=>Jn(0,1,e)},tl={...Ir,default:1},ms=e=>Math.round(e*1e5)/1e5,Ic=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jA(e){return e==null}const NA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jc=(e,n)=>r=>!!(typeof r=="string"&&NA.test(r)&&r.startsWith(e)||n&&!jA(r)&&Object.prototype.hasOwnProperty.call(r,n)),Qg=(e,n,r)=>s=>{if(typeof s!="string")return s;const[l,c,f,h]=s.match(Ic);return{[e]:parseFloat(l),[n]:parseFloat(c),[r]:parseFloat(f),alpha:h!==void 0?parseFloat(h):1}},LA=e=>Jn(0,255,e),Wc={...Ir,transform:e=>Math.round(LA(e))},ur={test:Jc("rgb","red"),parse:Qg("red","green","blue"),transform:({red:e,green:n,blue:r,alpha:s=1})=>"rgba("+Wc.transform(e)+", "+Wc.transform(n)+", "+Wc.transform(r)+", "+ms(hs.transform(s))+")"};function UA(e){let n="",r="",s="",l="";return e.length>5?(n=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),l=e.substring(7,9)):(n=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),l=e.substring(4,5),n+=n,r+=r,s+=s,l+=l),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const ef={test:Jc("#"),parse:UA,transform:ur.transform},ps=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Ma=ps("deg"),Pn=ps("%"),_e=ps("px"),BA=ps("vh"),PA=ps("vw"),Ig={...Pn,parse:e=>Pn.parse(e)/100,transform:e=>Pn.transform(e*100)},Jr={test:Jc("hsl","hue"),parse:Qg("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+Pn.transform(ms(n))+", "+Pn.transform(ms(r))+", "+ms(hs.transform(s))+")"},mt={test:e=>ur.test(e)||ef.test(e)||Jr.test(e),parse:e=>ur.test(e)?ur.parse(e):Jr.test(e)?Jr.parse(e):ef.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ur.transform(e):Jr.transform(e),getAnimatableNone:e=>{const n=mt.parse(e);return n.alpha=0,mt.transform(n)}},ZA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function HA(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ic)?.length||0)+(e.match(ZA)?.length||0)>0}const Jg="number",Wg="color",GA="var",qA="var(",ev="${}",YA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gs(e){const n=e.toString(),r=[],s={color:[],number:[],var:[]},l=[];let c=0;const h=n.replace(YA,m=>(mt.test(m)?(s.color.push(c),l.push(Wg),r.push(mt.parse(m))):m.startsWith(qA)?(s.var.push(c),l.push(GA),r.push(m)):(s.number.push(c),l.push(Jg),r.push(parseFloat(m))),++c,ev)).split(ev);return{values:r,split:h,indexes:s,types:l}}function tv(e){return gs(e).values}function nv(e){const{split:n,types:r}=gs(e),s=n.length;return l=>{let c="";for(let f=0;f<s;f++)if(c+=n[f],l[f]!==void 0){const h=r[f];h===Jg?c+=ms(l[f]):h===Wg?c+=mt.transform(l[f]):c+=l[f]}return c}}const FA=e=>typeof e=="number"?0:mt.test(e)?mt.getAnimatableNone(e):e;function XA(e){const n=tv(e);return nv(e)(n.map(FA))}const Da={test:HA,parse:tv,createTransformer:nv,getAnimatableNone:XA};function tf(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function KA({hue:e,saturation:n,lightness:r,alpha:s}){e/=360,n/=100,r/=100;let l=0,c=0,f=0;if(!n)l=c=f=r;else{const h=r<.5?r*(1+n):r+n-r*n,m=2*r-h;l=tf(m,h,e+1/3),c=tf(m,h,e),f=tf(m,h,e-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(f*255),alpha:s}}function nl(e,n){return r=>r>0?n:e}const at=(e,n,r)=>e+(n-e)*r,nf=(e,n,r)=>{const s=e*e,l=r*(n*n-s)+s;return l<0?0:Math.sqrt(l)},QA=[ef,ur,Jr],IA=e=>QA.find(n=>n.test(e));function av(e){const n=IA(e);if(!n)return!1;let r=n.parse(e);return n===Jr&&(r=KA(r)),r}const rv=(e,n)=>{const r=av(e),s=av(n);if(!r||!s)return nl(e,n);const l={...r};return c=>(l.red=nf(r.red,s.red,c),l.green=nf(r.green,s.green,c),l.blue=nf(r.blue,s.blue,c),l.alpha=at(r.alpha,s.alpha,c),ur.transform(l))},af=new Set(["none","hidden"]);function JA(e,n){return af.has(e)?r=>r<=0?e:n:r=>r>=1?n:e}function WA(e,n){return r=>at(e,n,r)}function rf(e){return typeof e=="number"?WA:typeof e=="string"?Qc(e)?nl:mt.test(e)?rv:n_:Array.isArray(e)?iv:typeof e=="object"?mt.test(e)?rv:e_:nl}function iv(e,n){const r=[...e],s=r.length,l=e.map((c,f)=>rf(c)(c,n[f]));return c=>{for(let f=0;f<s;f++)r[f]=l[f](c);return r}}function e_(e,n){const r={...e,...n},s={};for(const l in r)e[l]!==void 0&&n[l]!==void 0&&(s[l]=rf(e[l])(e[l],n[l]));return l=>{for(const c in s)r[c]=s[c](l);return r}}function t_(e,n){const r=[],s={color:0,var:0,number:0};for(let l=0;l<n.values.length;l++){const c=n.types[l],f=e.indexes[c][s[c]],h=e.values[f]??0;r[l]=h,s[c]++}return r}const n_=(e,n)=>{const r=Da.createTransformer(n),s=gs(e),l=gs(n);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?af.has(e)&&!l.values.length||af.has(n)&&!s.values.length?JA(e,n):is(iv(t_(s,l),l.values),r):nl(e,n)};function sv(e,n,r){return typeof e=="number"&&typeof n=="number"&&typeof r=="number"?at(e,n,r):rf(e)(e,n)}const a_=e=>{const n=({timestamp:r})=>e(r);return{start:(r=!0)=>et.update(n,r),stop:()=>Ca(n),now:()=>kt.isProcessing?kt.timestamp:Qt.now()}},ov=(e,n,r=10)=>{let s="";const l=Math.max(Math.round(n/r),2);for(let c=0;c<l;c++)s+=Math.round(e(c/(l-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},al=2e4;function sf(e){let n=0;const r=50;let s=e.next(n);for(;!s.done&&n<al;)n+=r,s=e.next(n);return n>=al?1/0:n}function r_(e,n=100,r){const s=r({...e,keyframes:[0,n]}),l=Math.min(sf(s),al);return{type:"keyframes",ease:c=>s.next(l*c).value/n,duration:Un(l)}}const i_=5;function lv(e,n,r){const s=Math.max(n-i_,0);return up(r-e(s),n-s)}const st={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},of=.001;function s_({duration:e=st.duration,bounce:n=st.bounce,velocity:r=st.velocity,mass:s=st.mass}){let l,c,f=1-n;f=Jn(st.minDamping,st.maxDamping,f),e=Jn(st.minDuration,st.maxDuration,Un(e)),f<1?(l=p=>{const g=p*f,y=g*e,x=g-r,E=lf(p,f),_=Math.exp(-y);return of-x/E*_},c=p=>{const y=p*f*e,x=y*r+r,E=Math.pow(f,2)*Math.pow(p,2)*e,_=Math.exp(-y),D=lf(Math.pow(p,2),f);return(-l(p)+of>0?-1:1)*((x-E)*_)/D}):(l=p=>{const g=Math.exp(-p*e),y=(p-r)*e+1;return-of+g*y},c=p=>{const g=Math.exp(-p*e),y=(r-p)*(e*e);return g*y});const h=5/e,m=l_(l,c,h);if(e=Ln(e),isNaN(m))return{stiffness:st.stiffness,damping:st.damping,duration:e};{const p=Math.pow(m,2)*s;return{stiffness:p,damping:f*2*Math.sqrt(s*p),duration:e}}}const o_=12;function l_(e,n,r){let s=r;for(let l=1;l<o_;l++)s=s-e(s)/n(s);return s}function lf(e,n){return e*Math.sqrt(1-n*n)}const u_=["duration","bounce"],c_=["stiffness","damping","mass"];function uv(e,n){return n.some(r=>e[r]!==void 0)}function f_(e){let n={velocity:st.velocity,stiffness:st.stiffness,damping:st.damping,mass:st.mass,isResolvedFromDuration:!1,...e};if(!uv(e,c_)&&uv(e,u_))if(e.visualDuration){const r=e.visualDuration,s=2*Math.PI/(r*1.2),l=s*s,c=2*Jn(.05,1,1-(e.bounce||0))*Math.sqrt(l);n={...n,mass:st.mass,stiffness:l,damping:c}}else{const r=s_(e);n={...n,...r,mass:st.mass},n.isResolvedFromDuration=!0}return n}function rl(e=st.visualDuration,n=st.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:l}=r;const c=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:p,mass:g,duration:y,velocity:x,isResolvedFromDuration:E}=f_({...r,velocity:-Un(r.velocity||0)}),_=x||0,D=p/(2*Math.sqrt(m*g)),$=f-c,X=Un(Math.sqrt(m/g)),R=Math.abs($)<5;s||(s=R?st.restSpeed.granular:st.restSpeed.default),l||(l=R?st.restDelta.granular:st.restDelta.default);let Z;if(D<1){const Y=lf(X,D);Z=O=>{const J=Math.exp(-D*X*O);return f-J*((_+D*X*$)/Y*Math.sin(Y*O)+$*Math.cos(Y*O))}}else if(D===1)Z=Y=>f-Math.exp(-X*Y)*($+(_+X*$)*Y);else{const Y=X*Math.sqrt(D*D-1);Z=O=>{const J=Math.exp(-D*X*O),H=Math.min(Y*O,300);return f-J*((_+D*X*$)*Math.sinh(H)+Y*$*Math.cosh(H))/Y}}const W={calculatedDuration:E&&y||null,next:Y=>{const O=Z(Y);if(E)h.done=Y>=y;else{let J=Y===0?_:0;D<1&&(J=Y===0?Ln(_):lv(Z,Y,O));const H=Math.abs(J)<=s,ce=Math.abs(f-O)<=l;h.done=H&&ce}return h.value=h.done?f:O,h},toString:()=>{const Y=Math.min(sf(W),al),O=ov(J=>W.next(Y*J).value,Y,30);return Y+"ms "+O},toTransition:()=>{}};return W}rl.applyToOptions=e=>{const n=r_(e,100,rl);return e.ease=n.ease,e.duration=Ln(n.duration),e.type="keyframes",e};function uf({keyframes:e,velocity:n=0,power:r=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:f,min:h,max:m,restDelta:p=.5,restSpeed:g}){const y=e[0],x={done:!1,value:y},E=H=>h!==void 0&&H<h||m!==void 0&&H>m,_=H=>h===void 0?m:m===void 0||Math.abs(h-H)<Math.abs(m-H)?h:m;let D=r*n;const $=y+D,X=f===void 0?$:f($);X!==$&&(D=X-y);const R=H=>-D*Math.exp(-H/s),Z=H=>X+R(H),W=H=>{const ce=R(H),me=Z(H);x.done=Math.abs(ce)<=p,x.value=x.done?X:me};let Y,O;const J=H=>{E(x.value)&&(Y=H,O=rl({keyframes:[x.value,_(x.value)],velocity:lv(Z,H,x.value),damping:l,stiffness:c,restDelta:p,restSpeed:g}))};return J(0),{calculatedDuration:null,next:H=>{let ce=!1;return!O&&Y===void 0&&(ce=!0,W(H),J(H)),Y!==void 0&&H>=Y?O.next(H-Y):(!ce&&W(H),x)}}}function d_(e,n,r){const s=[],l=r||Wn.mix||sv,c=e.length-1;for(let f=0;f<c;f++){let h=l(e[f],e[f+1]);if(n){const m=Array.isArray(n)?n[f]||gn:n;h=is(m,h)}s.push(h)}return s}function h_(e,n,{clamp:r=!0,ease:s,mixer:l}={}){const c=e.length;if(c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const f=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),n=[...n].reverse());const h=d_(n,s,l),m=h.length,p=g=>{if(f&&g<e[0])return n[0];let y=0;if(m>1)for(;y<e.length-2&&!(g<e[y+1]);y++);const x=ss(e[y],e[y+1],g);return h[y](x)};return r?g=>p(Jn(e[0],e[c-1],g)):p}function m_(e,n){const r=e[e.length-1];for(let s=1;s<=n;s++){const l=ss(0,n,s);e.push(at(r,1,l))}}function p_(e){const n=[0];return m_(n,e.length-1),n}function g_(e,n){return e.map(r=>r*n)}function v_(e,n){return e.map(()=>n||yp).splice(0,e.length-1)}function vs({duration:e=300,keyframes:n,times:r,ease:s="easeInOut"}){const l=VT(s)?s.map(xp):xp(s),c={done:!1,value:n[0]},f=g_(r&&r.length===n.length?r:p_(n),e),h=h_(f,n,{ease:Array.isArray(l)?l:v_(n,l)});return{calculatedDuration:e,next:m=>(c.value=h(m),c.done=m>=e,c)}}const y_=e=>e!==null;function cf(e,{repeat:n,repeatType:r="loop"},s,l=1){const c=e.filter(y_),h=l<0||n&&r!=="loop"&&n%2===1?0:c.length-1;return!h||s===void 0?c[h]:s}const b_={decay:uf,inertia:uf,tween:vs,keyframes:vs,spring:rl};function cv(e){typeof e.type=="string"&&(e.type=b_[e.type])}class ff{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,r){return this.finished.then(n,r)}}const x_=e=>e/100;class df extends ff{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==Qt.now()&&this.tick(Qt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;cv(n);const{type:r=vs,repeat:s=0,repeatDelay:l=0,repeatType:c,velocity:f=0}=n;let{keyframes:h}=n;const m=r||vs;m!==vs&&typeof h[0]!="number"&&(this.mixKeyframes=is(x_,sv(h[0],h[1])),h=[0,100]);const p=m({...n,keyframes:h});c==="mirror"&&(this.mirroredGenerator=m({...n,keyframes:[...h].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=sf(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=p}updateTime(n){const r=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(n,r=!1){const{generator:s,totalDuration:l,mixKeyframes:c,mirroredGenerator:f,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:g,repeat:y,repeatType:x,repeatDelay:E,type:_,onUpdate:D,finalKeyframe:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-l/this.speed,this.startTime)),r?this.currentTime=n:this.updateTime(n);const X=this.currentTime-p*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?X<0:X>l;this.currentTime=Math.max(X,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let Z=this.currentTime,W=s;if(y){const H=Math.min(this.currentTime,l)/h;let ce=Math.floor(H),me=H%1;!me&&H>=1&&(me=1),me===1&&ce--,ce=Math.min(ce,y+1),!!(ce%2)&&(x==="reverse"?(me=1-me,E&&(me-=E/h)):x==="mirror"&&(W=f)),Z=Jn(0,1,me)*h}const Y=R?{done:!1,value:g[0]}:W.next(Z);c&&(Y.value=c(Y.value));let{done:O}=Y;!R&&m!==null&&(O=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return J&&_!==uf&&(Y.value=cf(g,this.options,$,this.speed)),D&&D(Y.value),J&&this.finish(),Y}then(n,r){return this.finished.then(n,r)}get duration(){return Un(this.calculatedDuration)}get time(){return Un(this.currentTime)}set time(n){n=Ln(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(Qt.now());const r=this.playbackSpeed!==n;this.playbackSpeed=n,r&&(this.time=Un(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=a_,startTime:r}=this.options;this.driver||(this.driver=n(l=>this.tick(l))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Qt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),n.observe(this)}}function S_(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const cr=e=>e*180/Math.PI,hf=e=>{const n=cr(Math.atan2(e[1],e[0]));return mf(n)},w_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hf,rotateZ:hf,skewX:e=>cr(Math.atan(e[1])),skewY:e=>cr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mf=e=>(e=e%360,e<0&&(e+=360),e),fv=hf,dv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),T_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dv,scaleY:hv,scale:e=>(dv(e)+hv(e))/2,rotateX:e=>mf(cr(Math.atan2(e[6],e[5]))),rotateY:e=>mf(cr(Math.atan2(-e[2],e[0]))),rotateZ:fv,rotate:fv,skewX:e=>cr(Math.atan(e[4])),skewY:e=>cr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pf(e){return e.includes("scale")?1:0}function gf(e,n){if(!e||e==="none")return pf(n);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(r)s=T_,l=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=w_,l=h}if(!l)return pf(n);const c=s[n],f=l[1].split(",").map(A_);return typeof c=="function"?c(f):f[c]}const E_=(e,n)=>{const{transform:r="none"}=getComputedStyle(e);return gf(r,n)};function A_(e){return parseFloat(e.trim())}const Wr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ei=new Set(Wr),mv=e=>e===Ir||e===_e,__=new Set(["x","y","z"]),C_=Wr.filter(e=>!__.has(e));function M_(e){const n=[];return C_.forEach(r=>{const s=e.getValue(r);s!==void 0&&(n.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),n}const fr={width:({x:e},{paddingLeft:n="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(n)-parseFloat(r),height:({y:e},{paddingTop:n="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(n)-parseFloat(r),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>gf(n,"x"),y:(e,{transform:n})=>gf(n,"y")};fr.translateX=fr.x,fr.translateY=fr.y;const dr=new Set;let vf=!1,yf=!1,bf=!1;function pv(){if(yf){const e=Array.from(dr).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),r=new Map;n.forEach(s=>{const l=M_(s);l.length&&(r.set(s,l),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const l=r.get(s);l&&l.forEach(([c,f])=>{s.getValue(c)?.set(f)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}yf=!1,vf=!1,dr.forEach(e=>e.complete(bf)),dr.clear()}function gv(){dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yf=!0)})}function D_(){bf=!0,gv(),pv(),bf=!1}class xf{constructor(n,r,s,l,c,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=r,this.name=s,this.motionValue=l,this.element=c,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(dr.add(this),vf||(vf=!0,et.read(gv),et.resolveKeyframes(pv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:r,element:s,motionValue:l}=this;if(n[0]===null){const c=l?.get(),f=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&r){const h=s.readValue(r,f);h!=null&&(n[0]=h)}n[0]===void 0&&(n[0]=f),l&&c===void 0&&l.set(n[0])}S_(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),dr.delete(this)}cancel(){this.state==="scheduled"&&(dr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const z_=e=>e.startsWith("--");function R_(e,n,r){z_(n)?e.style.setProperty(n,r):e.style[n]=r}const V_=ic(()=>window.ScrollTimeline!==void 0),O_={};function k_(e,n){const r=ic(e);return()=>O_[n]??r()}const vv=k_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ys=([e,n,r,s])=>`cubic-bezier(${e}, ${n}, ${r}, ${s})`,yv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ys([0,.65,.55,1]),circOut:ys([.55,0,1,.45]),backIn:ys([.31,.01,.66,-.59]),backOut:ys([.33,1.53,.69,.99])};function bv(e,n){if(e)return typeof e=="function"?vv()?ov(e,n):"ease-out":bp(e)?ys(e):Array.isArray(e)?e.map(r=>bv(r,n)||yv.easeOut):yv[e]}function $_(e,n,r,{delay:s=0,duration:l=300,repeat:c=0,repeatType:f="loop",ease:h="easeOut",times:m}={},p=void 0){const g={[n]:r};m&&(g.offset=m);const y=bv(h,l);Array.isArray(y)&&(g.easing=y);const x={delay:s,duration:l,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:c+1,direction:f==="reverse"?"alternate":"normal"};return p&&(x.pseudoElement=p),e.animate(g,x)}function xv(e){return typeof e=="function"&&"applyToOptions"in e}function j_({type:e,...n}){return xv(e)&&vv()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class N_ extends ff{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,!n)return;const{element:r,name:s,keyframes:l,pseudoElement:c,allowFlatten:f=!1,finalKeyframe:h,onComplete:m}=n;this.isPseudoElement=!!c,this.allowFlatten=f,this.options=n;const p=j_(n);this.animation=$_(r,s,l,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=cf(l,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(g):R_(r,s,g),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const n=this.animation.effect?.getComputedTiming?.().duration||0;return Un(Number(n))}get time(){return Un(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=Ln(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(n){this.animation.startTime=n}attachTimeline({timeline:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,n&&V_()?(this.animation.timeline=n,gn):r(this)}}const Sv={anticipate:pp,backInOut:mp,circInOut:vp};function L_(e){return e in Sv}function U_(e){typeof e.ease=="string"&&L_(e.ease)&&(e.ease=Sv[e.ease])}const wv=10;class B_ extends N_{constructor(n){U_(n),cv(n),super(n),n.startTime&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:r,onUpdate:s,onComplete:l,element:c,...f}=this.options;if(!r)return;if(n!==void 0){r.set(n);return}const h=new df({...f,autoplay:!1}),m=Ln(this.finishedTime??this.time);r.setWithVelocity(h.sample(m-wv).value,h.sample(m).value,wv),h.stop()}}const Tv=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Da.test(e)||e==="0")&&!e.startsWith("url("));function P_(e){const n=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}function Z_(e,n,r,s){const l=e[0];if(l===null)return!1;if(n==="display"||n==="visibility")return!0;const c=e[e.length-1],f=Tv(l,n),h=Tv(c,n);return!f||!h?!1:P_(e)||(r==="spring"||xv(r))&&s}function Sf(e){e.duration=0}const H_=new Set(["opacity","clipPath","filter","transform"]),G_=ic(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function q_(e){const{motionValue:n,name:r,repeatDelay:s,repeatType:l,damping:c,type:f}=e;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=n.owner.getProps();return G_()&&r&&H_.has(r)&&(r!=="transform"||!p)&&!m&&!s&&l!=="mirror"&&c!==0&&f!=="inertia"}const Y_=40;class F_ extends ff{constructor({autoplay:n=!0,delay:r=0,type:s="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:f="loop",keyframes:h,name:m,motionValue:p,element:g,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Qt.now();const x={autoplay:n,delay:r,type:s,repeat:l,repeatDelay:c,repeatType:f,name:m,motionValue:p,element:g,...y},E=g?.KeyframeResolver||xf;this.keyframeResolver=new E(h,(_,D,$)=>this.onKeyframesResolved(_,D,x,!$),m,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,r,s,l){this.keyframeResolver=void 0;const{name:c,type:f,velocity:h,delay:m,isHandoff:p,onUpdate:g}=s;this.resolvedAt=Qt.now(),Z_(n,c,f,h)||((Wn.instantAnimations||!m)&&g?.(cf(n,s,r)),n[0]=n[n.length-1],Sf(s),s.repeat=0);const x={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>Y_?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:n},E=!p&&q_(x)?new B_({...x,element:x.motionValue.owner.current}):new df(x);E.finished.then(()=>this.notifyFinished()).catch(gn),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(n,r){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),D_()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const X_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function K_(e){const n=X_.exec(e);if(!n)return[,];const[,r,s,l]=n;return[`--${r??s}`,l]}function Ev(e,n,r=1){const[s,l]=K_(e);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const f=c.trim();return sp(f)?parseFloat(f):f}return Qc(l)?Ev(l,n,r+1):l}function wf(e,n){return e?.[n]??e?.default??e}const Av=new Set(["width","height","top","left","right","bottom",...Wr]),Q_={test:e=>e==="auto",parse:e=>e},_v=e=>n=>n.test(e),Cv=[Ir,_e,Pn,Ma,PA,BA,Q_],Mv=e=>Cv.find(_v(e));function I_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lp(e):!0}const J_=new Set(["brightness","contrast","saturate","opacity"]);function W_(e){const[n,r]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=r.match(Ic)||[];if(!s)return e;const l=r.replace(s,"");let c=J_.has(n)?1:0;return s!==r&&(c*=100),n+"("+c+l+")"}const e3=/\b([a-z-]*)\(.*?\)/gu,Tf={...Da,getAnimatableNone:e=>{const n=e.match(e3);return n?n.map(W_).join(" "):e}},Dv={...Ir,transform:Math.round},Ef={borderWidth:_e,borderTopWidth:_e,borderRightWidth:_e,borderBottomWidth:_e,borderLeftWidth:_e,borderRadius:_e,radius:_e,borderTopLeftRadius:_e,borderTopRightRadius:_e,borderBottomRightRadius:_e,borderBottomLeftRadius:_e,width:_e,maxWidth:_e,height:_e,maxHeight:_e,top:_e,right:_e,bottom:_e,left:_e,padding:_e,paddingTop:_e,paddingRight:_e,paddingBottom:_e,paddingLeft:_e,margin:_e,marginTop:_e,marginRight:_e,marginBottom:_e,marginLeft:_e,backgroundPositionX:_e,backgroundPositionY:_e,...{rotate:Ma,rotateX:Ma,rotateY:Ma,rotateZ:Ma,scale:tl,scaleX:tl,scaleY:tl,scaleZ:tl,skew:Ma,skewX:Ma,skewY:Ma,distance:_e,translateX:_e,translateY:_e,translateZ:_e,x:_e,y:_e,z:_e,perspective:_e,transformPerspective:_e,opacity:hs,originX:Ig,originY:Ig,originZ:_e},zIndex:Dv,fillOpacity:hs,strokeOpacity:hs,numOctaves:Dv},t3={...Ef,color:mt,backgroundColor:mt,outlineColor:mt,fill:mt,stroke:mt,borderColor:mt,borderTopColor:mt,borderRightColor:mt,borderBottomColor:mt,borderLeftColor:mt,filter:Tf,WebkitFilter:Tf},zv=e=>t3[e];function Rv(e,n){let r=zv(e);return r!==Tf&&(r=Da),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const n3=new Set(["auto","none","0"]);function a3(e,n,r){let s=0,l;for(;s<e.length&&!l;){const c=e[s];typeof c=="string"&&!n3.has(c)&&gs(c).values.length&&(l=e[s]),s++}if(l&&r)for(const c of n)e[c]=Rv(r,l)}class r3 extends xf{constructor(n,r,s,l,c){super(n,r,s,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<n.length;m++){let p=n[m];if(typeof p=="string"&&(p=p.trim(),Qc(p))){const g=Ev(p,r.current);g!==void 0&&(n[m]=g),m===n.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Av.has(s)||n.length!==2)return;const[l,c]=n,f=Mv(l),h=Mv(c);if(f!==h)if(mv(f)&&mv(h))for(let m=0;m<n.length;m++){const p=n[m];typeof p=="string"&&(n[m]=parseFloat(p))}else fr[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:r}=this,s=[];for(let l=0;l<n.length;l++)(n[l]===null||I_(n[l]))&&s.push(l);s.length&&a3(n,s,r)}measureInitialState(){const{element:n,unresolvedKeyframes:r,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fr[s](n.measureViewportBox(),window.getComputedStyle(n.current)),r[0]=this.measuredOrigin;const l=r[r.length-1];l!==void 0&&n.getValue(s,l).jump(l,!1)}measureEndState(){const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const l=n.getValue(r);l&&l.jump(this.measuredOrigin,!1);const c=s.length-1,f=s[c];s[c]=fr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,m])=>{n.getValue(h).set(m)}),this.resolveNoneKeyframes()}}function i3(e,n,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const l=r?.[e]??s.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}const Vv=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function Ov(e){return op(e)&&"offsetHeight"in e}const kv=30,s3=e=>!isNaN(parseFloat(e));class o3{constructor(n,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const l=Qt.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=r.owner}setCurrent(n){this.current=n,this.updatedAt=Qt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=s3(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,r){this.events[n]||(this.events[n]=new sc);const s=this.events[n].add(r);return n==="change"?()=>{s(),et.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,r){this.passiveEffect=n,this.stopPassiveEffect=r}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,r=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Qt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>kv)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,kv);return up(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(n){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=n(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ti(e,n){return new o3(e,n)}const{schedule:Af}=Xg(queueMicrotask,!1),Rn={x:!1,y:!1};function $v(){return Rn.x||Rn.y}function l3(e){return e==="x"||e==="y"?Rn[e]?null:(Rn[e]=!0,()=>{Rn[e]=!1}):Rn.x||Rn.y?null:(Rn.x=Rn.y=!0,()=>{Rn.x=Rn.y=!1})}function jv(e,n){const r=i3(e),s=new AbortController,l={passive:!0,...n,signal:s.signal};return[r,l,()=>s.abort()]}function Nv(e){return!(e.pointerType==="touch"||$v())}function u3(e,n,r={}){const[s,l,c]=jv(e,r),f=h=>{if(!Nv(h))return;const{target:m}=h,p=n(m,h);if(typeof p!="function"||!m)return;const g=y=>{Nv(y)&&(p(y),m.removeEventListener("pointerleave",g))};m.addEventListener("pointerleave",g,l)};return s.forEach(h=>{h.addEventListener("pointerenter",f,l)}),c}const Lv=(e,n)=>n?e===n?!0:Lv(e,n.parentElement):!1,_f=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,c3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function f3(e){return c3.has(e.tagName)||e.tabIndex!==-1}const il=new WeakSet;function Uv(e){return n=>{n.key==="Enter"&&e(n)}}function Cf(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const d3=(e,n)=>{const r=e.currentTarget;if(!r)return;const s=Uv(()=>{if(il.has(r))return;Cf(r,"down");const l=Uv(()=>{Cf(r,"up")}),c=()=>Cf(r,"cancel");r.addEventListener("keyup",l,n),r.addEventListener("blur",c,n)});r.addEventListener("keydown",s,n),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),n)};function Bv(e){return _f(e)&&!$v()}function h3(e,n,r={}){const[s,l,c]=jv(e,r),f=h=>{const m=h.currentTarget;if(!Bv(h))return;il.add(m);const p=n(m,h),g=(E,_)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",x),il.has(m)&&il.delete(m),Bv(E)&&typeof p=="function"&&p(E,{success:_})},y=E=>{g(E,m===window||m===document||r.useGlobalTarget||Lv(m,E.target))},x=E=>{g(E,!1)};window.addEventListener("pointerup",y,l),window.addEventListener("pointercancel",x,l)};return s.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",f,l),Ov(h)&&(h.addEventListener("focus",p=>d3(p,l)),!f3(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function Pv(e){return op(e)&&"ownerSVGElement"in e}function m3(e){return Pv(e)&&e.tagName==="svg"}const Ut=e=>!!(e&&e.getVelocity),p3=[...Cv,mt,Da],g3=e=>p3.find(_v(e)),Mf=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class v3 extends C.Component{getSnapshotBeforeUpdate(n){const r=this.props.childRef.current;if(r&&n.isPresent&&!this.props.isPresent){const s=r.offsetParent,l=Ov(s)&&s.offsetWidth||0,c=this.props.sizeRef.current;c.height=r.offsetHeight||0,c.width=r.offsetWidth||0,c.top=r.offsetTop,c.left=r.offsetLeft,c.right=l-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function y3({children:e,isPresent:n,anchorX:r,root:s}){const l=C.useId(),c=C.useRef(null),f=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=C.useContext(Mf);return C.useInsertionEffect(()=>{const{width:m,height:p,top:g,left:y,right:x}=f.current;if(n||!c.current||!m||!p)return;const E=r==="left"?`left: ${y}`:`right: ${x}`;c.current.dataset.motionPopId=l;const _=document.createElement("style");h&&(_.nonce=h);const D=s??document.head;return D.appendChild(_),_.sheet&&_.sheet.insertRule(`
89
+ [data-motion-pop-id="${l}"] {
90
+ position: absolute !important;
91
+ width: ${m}px !important;
92
+ height: ${p}px !important;
93
+ ${E}px !important;
94
+ top: ${g}px !important;
95
+ }
96
+ `),()=>{D.contains(_)&&D.removeChild(_)}},[n]),F.jsx(v3,{isPresent:n,childRef:c,sizeRef:f,children:C.cloneElement(e,{ref:c})})}const b3=({children:e,initial:n,isPresent:r,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:f,anchorX:h,root:m})=>{const p=Yc(x3),g=C.useId();let y=!0,x=C.useMemo(()=>(y=!1,{id:g,initial:n,isPresent:r,custom:l,onExitComplete:E=>{p.set(E,!0);for(const _ of p.values())if(!_)return;s&&s()},register:E=>(p.set(E,!1),()=>p.delete(E))}),[r,p,s]);return c&&y&&(x={...x}),C.useMemo(()=>{p.forEach((E,_)=>p.set(_,!1))},[r]),C.useEffect(()=>{!r&&!p.size&&s&&s()},[r]),f==="popLayout"&&(e=F.jsx(y3,{isPresent:r,anchorX:h,root:m,children:e})),F.jsx(Jo.Provider,{value:x,children:e})};function x3(){return new Map}function Zv(e=!0){const n=C.useContext(Jo);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:l}=n,c=C.useId();C.useEffect(()=>{if(e)return l(c)},[e]);const f=C.useCallback(()=>e&&s&&s(c),[c,s,e]);return!r&&s?[!1,f]:[!0]}const sl=e=>e.key||"";function Hv(e){const n=[];return C.Children.forEach(e,r=>{C.isValidElement(r)&&n.push(r)}),n}const S3=({children:e,custom:n,initial:r=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:c="sync",propagate:f=!1,anchorX:h="left",root:m})=>{const[p,g]=Zv(f),y=C.useMemo(()=>Hv(e),[e]),x=f&&!p?[]:y.map(sl),E=C.useRef(!0),_=C.useRef(y),D=Yc(()=>new Map),[$,X]=C.useState(y),[R,Z]=C.useState(y);Fg(()=>{E.current=!1,_.current=y;for(let O=0;O<R.length;O++){const J=sl(R[O]);x.includes(J)?D.delete(J):D.get(J)!==!0&&D.set(J,!1)}},[R,x.length,x.join("-")]);const W=[];if(y!==$){let O=[...y];for(let J=0;J<R.length;J++){const H=R[J],ce=sl(H);x.includes(ce)||(O.splice(J,0,H),W.push(H))}return c==="wait"&&W.length&&(O=W),Z(Hv(O)),X(y),null}const{forceRender:Y}=C.useContext(qc);return F.jsx(F.Fragment,{children:R.map(O=>{const J=sl(O),H=f&&!p?!1:y===R||x.includes(J),ce=()=>{if(D.has(J))D.set(J,!0);else return;let me=!0;D.forEach(G=>{G||(me=!1)}),me&&(Y?.(),Z(_.current),f&&g?.(),s&&s())};return F.jsx(b3,{isPresent:H,initial:!E.current||r?void 0:!1,custom:n,presenceAffectsLayout:l,mode:c,root:m,onExitComplete:H?void 0:ce,anchorX:h,children:O},J)})})},Gv=C.createContext({strict:!1}),qv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ni={};for(const e in qv)ni[e]={isEnabled:n=>qv[e].some(r=>!!n[r])};function w3(e){for(const n in e)ni[n]={...ni[n],...e[n]}}const T3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ol(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T3.has(e)}let Yv=e=>!ol(e);function E3(e){typeof e=="function"&&(Yv=n=>n.startsWith("on")?!ol(n):e(n))}try{E3(require("@emotion/is-prop-valid").default)}catch{}function A3(e,n,r){const s={};for(const l in e)l==="values"&&typeof e.values=="object"||(Yv(l)||r===!0&&ol(l)||!n&&!ol(l)||e.draggable&&l.startsWith("onDrag"))&&(s[l]=e[l]);return s}const ll=C.createContext({});function ul(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bs(e){return typeof e=="string"||Array.isArray(e)}const Df=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zf=["initial",...Df];function cl(e){return ul(e.animate)||zf.some(n=>bs(e[n]))}function Fv(e){return!!(cl(e)||e.variants)}function _3(e,n){if(cl(e)){const{initial:r,animate:s}=e;return{initial:r===!1||bs(r)?r:void 0,animate:bs(s)?s:void 0}}return e.inherit!==!1?n:{}}function C3(e){const{initial:n,animate:r}=_3(e,C.useContext(ll));return C.useMemo(()=>({initial:n,animate:r}),[Xv(n),Xv(r)])}function Xv(e){return Array.isArray(e)?e.join(" "):e}const xs={};function M3(e){for(const n in e)xs[n]=e[n],Kc(n)&&(xs[n].isCSSVariable=!0)}function Kv(e,{layout:n,layoutId:r}){return ei.has(e)||e.startsWith("origin")||(n||r!==void 0)&&(!!xs[e]||e==="opacity")}const D3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},z3=Wr.length;function R3(e,n,r){let s="",l=!0;for(let c=0;c<z3;c++){const f=Wr[c],h=e[f];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(f.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||r){const p=Vv(h,Ef[f]);if(!m){l=!1;const g=D3[f]||f;s+=`${g}(${p}) `}r&&(n[f]=p)}}return s=s.trim(),r?s=r(n,l?"":s):l&&(s="none"),s}function Rf(e,n,r){const{style:s,vars:l,transformOrigin:c}=e;let f=!1,h=!1;for(const m in n){const p=n[m];if(ei.has(m)){f=!0;continue}else if(Kc(m)){l[m]=p;continue}else{const g=Vv(p,Ef[m]);m.startsWith("origin")?(h=!0,c[m]=g):s[m]=g}}if(n.transform||(f||r?s.transform=R3(n,e.transform,r):s.transform&&(s.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:g=0}=c;s.transformOrigin=`${m} ${p} ${g}`}}const Vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qv(e,n,r){for(const s in n)!Ut(n[s])&&!Kv(s,r)&&(e[s]=n[s])}function V3({transformTemplate:e},n){return C.useMemo(()=>{const r=Vf();return Rf(r,n,e),Object.assign({},r.vars,r.style)},[n])}function O3(e,n){const r=e.style||{},s={};return Qv(s,r,e),Object.assign(s,V3(e,n)),s}function k3(e,n){const r={},s=O3(e,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const $3={offset:"stroke-dashoffset",array:"stroke-dasharray"},j3={offset:"strokeDashoffset",array:"strokeDasharray"};function N3(e,n,r=1,s=0,l=!0){e.pathLength=1;const c=l?$3:j3;e[c.offset]=_e.transform(-s);const f=_e.transform(n),h=_e.transform(r);e[c.array]=`${f} ${h}`}function Iv(e,{attrX:n,attrY:r,attrScale:s,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...h},m,p,g){if(Rf(e,h,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:x}=e;y.transform&&(x.transform=y.transform,delete y.transform),(x.transform||y.transformOrigin)&&(x.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),x.transform&&(x.transformBox=g?.transformBox??"fill-box",delete y.transformBox),n!==void 0&&(y.x=n),r!==void 0&&(y.y=r),s!==void 0&&(y.scale=s),l!==void 0&&N3(y,l,c,f,!1)}const Jv=()=>({...Vf(),attrs:{}}),Wv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function L3(e,n,r,s){const l=C.useMemo(()=>{const c=Jv();return Iv(c,n,Wv(s),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[n]);if(e.style){const c={};Qv(c,e.style,e),l.style={...c,...l.style}}return l}const U3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Of(e){return typeof e!="string"||e.includes("-")?!1:!!(U3.indexOf(e)>-1||/[A-Z]/u.test(e))}function B3(e,n,r,{latestValues:s},l,c=!1){const h=(Of(e)?L3:k3)(n,s,l,e),m=A3(n,typeof e=="string",c),p=e!==C.Fragment?{...m,...h,ref:r}:{},{children:g}=n,y=C.useMemo(()=>Ut(g)?g.get():g,[g]);return C.createElement(e,{...p,children:y})}function ey(e){const n=[{},{}];return e?.values.forEach((r,s)=>{n[0][s]=r.get(),n[1][s]=r.getVelocity()}),n}function kf(e,n,r,s){if(typeof n=="function"){const[l,c]=ey(s);n=n(r!==void 0?r:e.custom,l,c)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[l,c]=ey(s);n=n(r!==void 0?r:e.custom,l,c)}return n}function fl(e){return Ut(e)?e.get():e}function P3({scrapeMotionValuesFromProps:e,createRenderState:n},r,s,l){return{latestValues:Z3(r,s,l,e),renderState:n()}}function Z3(e,n,r,s){const l={},c=s(e,{});for(const x in c)l[x]=fl(c[x]);let{initial:f,animate:h}=e;const m=cl(e),p=Fv(e);n&&p&&!m&&e.inherit!==!1&&(f===void 0&&(f=n.initial),h===void 0&&(h=n.animate));let g=r?r.initial===!1:!1;g=g||f===!1;const y=g?h:f;if(y&&typeof y!="boolean"&&!ul(y)){const x=Array.isArray(y)?y:[y];for(let E=0;E<x.length;E++){const _=kf(e,x[E]);if(_){const{transitionEnd:D,transition:$,...X}=_;for(const R in X){let Z=X[R];if(Array.isArray(Z)){const W=g?Z.length-1:0;Z=Z[W]}Z!==null&&(l[R]=Z)}for(const R in D)l[R]=D[R]}}}return l}const ty=e=>(n,r)=>{const s=C.useContext(ll),l=C.useContext(Jo),c=()=>P3(e,n,s,l);return r?c():Yc(c)};function $f(e,n,r){const{style:s}=e,l={};for(const c in s)(Ut(s[c])||n.style&&Ut(n.style[c])||Kv(c,e)||r?.getValue(c)?.liveStyle!==void 0)&&(l[c]=s[c]);return l}const H3=ty({scrapeMotionValuesFromProps:$f,createRenderState:Vf});function ny(e,n,r){const s=$f(e,n,r);for(const l in e)if(Ut(e[l])||Ut(n[l])){const c=Wr.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[c]=e[l]}return s}const G3=ty({scrapeMotionValuesFromProps:ny,createRenderState:Jv}),q3=Symbol.for("motionComponentSymbol");function ai(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Y3(e,n,r){return C.useCallback(s=>{s&&e.onMount&&e.onMount(s),n&&(s?n.mount(s):n.unmount()),r&&(typeof r=="function"?r(s):ai(r)&&(r.current=s))},[n])}const jf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ay="data-"+jf("framerAppearId"),ry=C.createContext({});function F3(e,n,r,s,l){const{visualElement:c}=C.useContext(ll),f=C.useContext(Gv),h=C.useContext(Jo),m=C.useContext(Mf).reducedMotion,p=C.useRef(null);s=s||f.renderer,!p.current&&s&&(p.current=s(e,{visualState:n,parent:c,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const g=p.current,y=C.useContext(ry);g&&!g.projection&&l&&(g.type==="html"||g.type==="svg")&&X3(p.current,r,l,y);const x=C.useRef(!1);C.useInsertionEffect(()=>{g&&x.current&&g.update(r,h)});const E=r[ay],_=C.useRef(!!E&&!window.MotionHandoffIsComplete?.(E)&&window.MotionHasOptimisedAnimation?.(E));return Fg(()=>{g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),_.current&&g.animationState&&g.animationState.animateChanges())}),C.useEffect(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(E)}),_.current=!1),g.enteringChildren=void 0)}),g}function X3(e,n,r,s){const{layoutId:l,layout:c,drag:f,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=n;e.projection=new r(e.latestValues,n["data-framer-portal-id"]?void 0:iy(e.parent)),e.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||h&&ai(h),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:m,layoutRoot:p})}function iy(e){if(e)return e.options.allowProjection!==!1?e.projection:iy(e.parent)}function Nf(e,{forwardMotionProps:n=!1}={},r,s){r&&w3(r);const l=Of(e)?G3:H3;function c(h,m){let p;const g={...C.useContext(Mf),...h,layoutId:K3(h)},{isStatic:y}=g,x=C3(h),E=l(h,y);if(!y&&Fc){Q3();const _=I3(g);p=_.MeasureLayout,x.visualElement=F3(e,E,g,s,_.ProjectionNode)}return F.jsxs(ll.Provider,{value:x,children:[p&&x.visualElement?F.jsx(p,{visualElement:x.visualElement,...g}):null,B3(e,h,Y3(E,x.visualElement,m),E,y,n)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=C.forwardRef(c);return f[q3]=e,f}function K3({layoutId:e}){const n=C.useContext(qc).id;return n&&e!==void 0?n+"-"+e:e}function Q3(e,n){C.useContext(Gv).strict}function I3(e){const{drag:n,layout:r}=ni;if(!n&&!r)return{};const s={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function J3(e,n){if(typeof Proxy>"u")return Nf;const r=new Map,s=(c,f)=>Nf(c,f,e,n),l=(c,f)=>s(c,f);return new Proxy(l,{get:(c,f)=>f==="create"?s:(r.has(f)||r.set(f,Nf(f,void 0,e,n)),r.get(f))})}function sy({top:e,left:n,right:r,bottom:s}){return{x:{min:n,max:r},y:{min:e,max:s}}}function W3({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function eC(e,n){if(!n)return e;const r=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function Lf(e){return e===void 0||e===1}function Uf({scale:e,scaleX:n,scaleY:r}){return!Lf(e)||!Lf(n)||!Lf(r)}function hr(e){return Uf(e)||oy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function oy(e){return ly(e.x)||ly(e.y)}function ly(e){return e&&e!=="0%"}function dl(e,n,r){const s=e-r,l=n*s;return r+l}function uy(e,n,r,s,l){return l!==void 0&&(e=dl(e,l,s)),dl(e,r,s)+n}function Bf(e,n=0,r=1,s,l){e.min=uy(e.min,n,r,s,l),e.max=uy(e.max,n,r,s,l)}function cy(e,{x:n,y:r}){Bf(e.x,n.translate,n.scale,n.originPoint),Bf(e.y,r.translate,r.scale,r.originPoint)}const fy=.999999999999,dy=1.0000000000001;function tC(e,n,r,s=!1){const l=r.length;if(!l)return;n.x=n.y=1;let c,f;for(let h=0;h<l;h++){c=r[h],f=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ii(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),f&&(n.x*=f.x.scale,n.y*=f.y.scale,cy(e,f)),s&&hr(c.latestValues)&&ii(e,c.latestValues))}n.x<dy&&n.x>fy&&(n.x=1),n.y<dy&&n.y>fy&&(n.y=1)}function ri(e,n){e.min=e.min+n,e.max=e.max+n}function hy(e,n,r,s,l=.5){const c=at(e.min,e.max,l);Bf(e,n,r,c,s)}function ii(e,n){hy(e.x,n.x,n.scaleX,n.scale,n.originX),hy(e.y,n.y,n.scaleY,n.scale,n.originY)}function my(e,n){return sy(eC(e.getBoundingClientRect(),n))}function nC(e,n,r){const s=my(e,r),{scroll:l}=n;return l&&(ri(s.x,l.offset.x),ri(s.y,l.offset.y)),s}const py=()=>({translate:0,scale:1,origin:0,originPoint:0}),si=()=>({x:py(),y:py()}),gy=()=>({min:0,max:0}),ut=()=>({x:gy(),y:gy()}),Pf={current:null},vy={current:!1};function aC(){if(vy.current=!0,!!Fc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>Pf.current=e.matches;e.addEventListener("change",n),n()}else Pf.current=!1}const rC=new WeakMap;function iC(e,n,r){for(const s in n){const l=n[s],c=r[s];if(Ut(l))e.addValue(s,l);else if(Ut(c))e.addValue(s,ti(l,{owner:e}));else if(c!==l)if(e.hasValue(s)){const f=e.getValue(s);f.liveStyle===!0?f.jump(l):f.hasAnimated||f.set(l)}else{const f=e.getStaticValue(s);e.addValue(s,ti(f!==void 0?f:l,{owner:e}))}}for(const s in r)n[s]===void 0&&e.removeValue(s);return n}const yy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sC{scrapeMotionValuesFromProps(n,r,s){return{}}constructor({parent:n,props:r,presenceContext:s,reducedMotionConfig:l,blockInitialAnimation:c,visualState:f},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const x=Qt.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,et.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=f;this.latestValues=m,this.baseTarget={...m},this.initialValues=r.initial?{...m}:{},this.renderState=p,this.parent=n,this.props=r,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=l,this.options=h,this.blockInitialAnimation=!!c,this.isControllingVariants=cl(r),this.isVariantNode=Fv(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...y}=this.scrapeMotionValuesFromProps(r,{},this);for(const x in y){const E=y[x];m[x]!==void 0&&Ut(E)&&E.set(m[x])}}mount(n){this.current=n,rC.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),vy.current||aC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pf.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ca(this.notifyUpdate),Ca(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,r){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const s=ei.has(n);s&&this.onBindTransform&&this.onBindTransform();const l=r.on("change",f=>{this.latestValues[n]=f,this.props.onUpdate&&et.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,r)),this.valueSubscriptions.set(n,()=>{l(),c&&c(),r.owner&&r.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in ni){const r=ni[n];if(!r)continue;const{isEnabled:s,Feature:l}=r;if(!this.features[n]&&l&&s(this.props)&&(this.features[n]=new l(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ut()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,r){this.latestValues[n]=r}update(n,r){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<yy.length;s++){const l=yy[s];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,f=n[c];f&&(this.propEventSubscriptions[l]=this.on(l,f))}this.prevMotionValues=iC(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(n),()=>r.variantChildren.delete(n)}addValue(n,r){const s=this.values.get(n);r!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,r),this.values.set(n,r),this.latestValues[n]=r.get())}removeValue(n){this.values.delete(n);const r=this.valueSubscriptions.get(n);r&&(r(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,r){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&r!==void 0&&(s=ti(r===null?void 0:r,{owner:this}),this.addValue(n,s)),s}readValue(n,r){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(sp(s)||lp(s))?s=parseFloat(s):!g3(s)&&Da.test(r)&&(s=Rv(n,r)),this.setBaseTarget(n,Ut(s)?s.get():s)),Ut(s)?s.get():s}setBaseTarget(n,r){this.baseTarget[n]=r}getBaseTarget(n){const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const c=kf(this.props,r,this.presenceContext?.custom);c&&(s=c[n])}if(r&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,n);return l!==void 0&&!Ut(l)?l:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,r){return this.events[n]||(this.events[n]=new sc),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}scheduleRenderMicrotask(){Af.render(this.render)}}class by extends sC{constructor(){super(...arguments),this.KeyframeResolver=r3}sortInstanceNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(n,r){return n.style?n.style[r]:void 0}removeValueFromRenderState(n,{vars:r,style:s}){delete r[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;Ut(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function xy(e,{style:n,vars:r},s,l){const c=e.style;let f;for(f in n)c[f]=n[f];l?.applyProjectionStyles(c,s);for(f in r)c.setProperty(f,r[f])}function oC(e){return window.getComputedStyle(e)}class lC extends by{constructor(){super(...arguments),this.type="html",this.renderInstance=xy}readValueFromInstance(n,r){if(ei.has(r))return this.projection?.isProjecting?pf(r):E_(n,r);{const s=oC(n),l=(Kc(r)?s.getPropertyValue(r):s[r])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(n,{transformPagePoint:r}){return my(n,r)}build(n,r,s){Rf(n,r,s.transformTemplate)}scrapeMotionValuesFromProps(n,r,s){return $f(n,r,s)}}const Sy=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function uC(e,n,r,s){xy(e,n,void 0,s);for(const l in n.attrs)e.setAttribute(Sy.has(l)?l:jf(l),n.attrs[l])}class cC extends by{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ut}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(ei.has(r)){const s=zv(r);return s&&s.default||0}return r=Sy.has(r)?r:jf(r),n.getAttribute(r)}scrapeMotionValuesFromProps(n,r,s){return ny(n,r,s)}build(n,r,s){Iv(n,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,r,s,l){uC(n,r,s,l)}mount(n){this.isSVGTag=Wv(n.tagName),super.mount(n)}}const fC=(e,n)=>Of(e)?new cC(n):new lC(n,{allowProjection:e!==C.Fragment});function oi(e,n,r){const s=e.getProps();return kf(s,n,r!==void 0?r:s.custom,e)}const Zf=e=>Array.isArray(e);function dC(e,n,r){e.hasValue(n)?e.getValue(n).set(r):e.addValue(n,ti(r))}function hC(e){return Zf(e)?e[e.length-1]||0:e}function mC(e,n){const r=oi(e,n);let{transitionEnd:s={},transition:l={},...c}=r||{};c={...c,...s};for(const f in c){const h=hC(c[f]);dC(e,f,h)}}function pC(e){return!!(Ut(e)&&e.add)}function Hf(e,n){const r=e.getValue("willChange");if(pC(r))return r.add(n);if(!r&&Wn.WillChange){const s=new Wn.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function wy(e){return e.props[ay]}const gC=e=>e!==null;function vC(e,{repeat:n,repeatType:r="loop"},s){const l=e.filter(gC),c=n&&r!=="loop"&&n%2===1?0:l.length-1;return l[c]}const yC={type:"spring",stiffness:500,damping:25,restSpeed:10},bC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xC={type:"keyframes",duration:.8},SC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wC=(e,{keyframes:n})=>n.length>2?xC:ei.has(e)?e.startsWith("scale")?bC(n[1]):yC:SC;function TC({when:e,delay:n,delayChildren:r,staggerChildren:s,staggerDirection:l,repeat:c,repeatType:f,repeatDelay:h,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const Gf=(e,n,r,s={},l,c)=>f=>{const h=wf(s,e)||{},m=h.delay||s.delay||0;let{elapsed:p=0}=s;p=p-Ln(m);const g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:n.getVelocity(),...h,delay:-p,onUpdate:x=>{n.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{f(),h.onComplete&&h.onComplete()},name:e,motionValue:n,element:c?void 0:l};TC(h)||Object.assign(g,wC(e,g)),g.duration&&(g.duration=Ln(g.duration)),g.repeatDelay&&(g.repeatDelay=Ln(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Sf(g),g.delay===0&&(y=!0)),(Wn.instantAnimations||Wn.skipAnimations)&&(y=!0,Sf(g),g.delay=0),g.allowFlatten=!h.type&&!h.ease,y&&!c&&n.get()!==void 0){const x=vC(g.keyframes,h);if(x!==void 0){et.update(()=>{g.onUpdate(x),g.onComplete()});return}}return h.isSync?new df(g):new F_(g)};function EC({protectedKeys:e,needsAnimating:n},r){const s=e.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,s}function Ty(e,n,{delay:r=0,transitionOverride:s,type:l}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:f,...h}=n;s&&(c=s);const m=[],p=l&&e.animationState&&e.animationState.getState()[l];for(const g in h){const y=e.getValue(g,e.latestValues[g]??null),x=h[g];if(x===void 0||p&&EC(p,g))continue;const E={delay:r,...wf(c||{},g)},_=y.get();if(_!==void 0&&!y.isAnimating&&!Array.isArray(x)&&x===_&&!E.velocity)continue;let D=!1;if(window.MotionHandoffAnimation){const X=wy(e);if(X){const R=window.MotionHandoffAnimation(X,g,et);R!==null&&(E.startTime=R,D=!0)}}Hf(e,g),y.start(Gf(g,y,x,e.shouldReduceMotion&&Av.has(g)?{type:!1}:E,e,D));const $=y.animation;$&&m.push($)}return f&&Promise.all(m).then(()=>{et.update(()=>{f&&mC(e,f)})}),m}function Ey(e,n,r,s=0,l=1){const c=Array.from(e).sort((p,g)=>p.sortNodePosition(g)).indexOf(n),f=e.size,h=(f-1)*s;return typeof r=="function"?r(c,f):l===1?c*s:h-c*s}function qf(e,n,r={}){const s=oi(e,n,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(l=r.transitionOverride);const c=s?()=>Promise.all(Ty(e,s,r)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:y}=l;return AC(e,n,m,p,g,y,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,p]=h==="beforeChildren"?[c,f]:[f,c];return m().then(()=>p())}else return Promise.all([c(),f(r.delay)])}function AC(e,n,r=0,s=0,l=0,c=1,f){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",n),h.push(qf(m,n,{...f,delay:r+(typeof s=="function"?0:s)+Ey(e.variantChildren,m,s,l,c)}).then(()=>m.notify("AnimationComplete",n)));return Promise.all(h)}function _C(e,n,r={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const l=n.map(c=>qf(e,c,r));s=Promise.all(l)}else if(typeof n=="string")s=qf(e,n,r);else{const l=typeof n=="function"?oi(e,n,r.custom):n;s=Promise.all(Ty(e,l,r))}return s.then(()=>{e.notify("AnimationComplete",n)})}function Ay(e,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(n[s]!==e[s])return!1;return!0}const CC=zf.length;function _y(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?_y(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const n={};for(let r=0;r<CC;r++){const s=zf[r],l=e.props[s];(bs(l)||l===!1)&&(n[s]=l)}return n}const MC=[...Df].reverse(),DC=Df.length;function zC(e){return n=>Promise.all(n.map(({animation:r,options:s})=>_C(e,r,s)))}function RC(e){let n=zC(e),r=Cy(),s=!0;const l=m=>(p,g)=>{const y=oi(e,g,m==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:x,transitionEnd:E,..._}=y;p={...p,..._,...E}}return p};function c(m){n=m(e)}function f(m){const{props:p}=e,g=_y(e.parent)||{},y=[],x=new Set;let E={},_=1/0;for(let $=0;$<DC;$++){const X=MC[$],R=r[X],Z=p[X]!==void 0?p[X]:g[X],W=bs(Z),Y=X===m?R.isActive:null;Y===!1&&(_=$);let O=Z===g[X]&&Z!==p[X]&&W;if(O&&s&&e.manuallyAnimateOnMount&&(O=!1),R.protectedKeys={...E},!R.isActive&&Y===null||!Z&&!R.prevProp||ul(Z)||typeof Z=="boolean")continue;const J=VC(R.prevProp,Z);let H=J||X===m&&R.isActive&&!O&&W||$>_&&W,ce=!1;const me=Array.isArray(Z)?Z:[Z];let G=me.reduce(l(X),{});Y===!1&&(G={});const{prevResolvedValues:q={}}=R,ae={...q,...G},U=j=>{H=!0,x.has(j)&&(ce=!0,x.delete(j)),R.needsAnimating[j]=!0;const z=e.getValue(j);z&&(z.liveStyle=!1)};for(const j in ae){const z=G[j],le=q[j];if(E.hasOwnProperty(j))continue;let w=!1;Zf(z)&&Zf(le)?w=!Ay(z,le):w=z!==le,w?z!=null?U(j):x.add(j):z!==void 0&&x.has(j)?U(j):R.protectedKeys[j]=!0}R.prevProp=Z,R.prevResolvedValues=G,R.isActive&&(E={...E,...G}),s&&e.blockInitialAnimation&&(H=!1);const ne=O&&J;H&&(!ne||ce)&&y.push(...me.map(j=>{const z={type:X};if(typeof j=="string"&&s&&!ne&&e.manuallyAnimateOnMount&&e.parent){const{parent:le}=e,w=oi(le,j);if(le.enteringChildren&&w){const{delayChildren:Q}=w.transition||{};z.delay=Ey(le.enteringChildren,e,Q)}}return{animation:j,options:z}}))}if(x.size){const $={};if(typeof p.initial!="boolean"){const X=oi(e,Array.isArray(p.initial)?p.initial[0]:p.initial);X&&X.transition&&($.transition=X.transition)}x.forEach(X=>{const R=e.getBaseTarget(X),Z=e.getValue(X);Z&&(Z.liveStyle=!0),$[X]=R??null}),y.push({animation:$})}let D=!!y.length;return s&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(D=!1),s=!1,D?n(y):Promise.resolve()}function h(m,p){if(r[m].isActive===p)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(m,p)),r[m].isActive=p;const g=f(m);for(const y in r)r[y].protectedKeys={};return g}return{animateChanges:f,setActive:h,setAnimateFunction:c,getState:()=>r,reset:()=>{r=Cy(),s=!0}}}function VC(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!Ay(n,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cy(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class za{constructor(n){this.isMounted=!1,this.node=n}update(){}}class OC extends za{constructor(n){super(n),n.animationState||(n.animationState=RC(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();ul(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:r}=this.node.prevProps||{};n!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let kC=0;class $C extends za{constructor(){super(...arguments),this.id=kC++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const l=this.node.animationState.setActive("exit",!n);r&&!n&&l.then(()=>{r(this.id)})}mount(){const{register:n,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const jC={animation:{Feature:OC},exit:{Feature:$C}};function Ss(e,n,r,s={passive:!0}){return e.addEventListener(n,r,s),()=>e.removeEventListener(n,r)}function ws(e){return{point:{x:e.pageX,y:e.pageY}}}const NC=e=>n=>_f(n)&&e(n,ws(n));function Ts(e,n,r,s){return Ss(e,n,NC(r),s)}const My=1e-4,LC=1-My,UC=1+My,Dy=.01,BC=0-Dy,PC=0+Dy;function Gt(e){return e.max-e.min}function ZC(e,n,r){return Math.abs(e-n)<=r}function zy(e,n,r,s=.5){e.origin=s,e.originPoint=at(n.min,n.max,e.origin),e.scale=Gt(r)/Gt(n),e.translate=at(r.min,r.max,e.origin)-e.originPoint,(e.scale>=LC&&e.scale<=UC||isNaN(e.scale))&&(e.scale=1),(e.translate>=BC&&e.translate<=PC||isNaN(e.translate))&&(e.translate=0)}function Es(e,n,r,s){zy(e.x,n.x,r.x,s?s.originX:void 0),zy(e.y,n.y,r.y,s?s.originY:void 0)}function Ry(e,n,r){e.min=r.min+n.min,e.max=e.min+Gt(n)}function HC(e,n,r){Ry(e.x,n.x,r.x),Ry(e.y,n.y,r.y)}function Vy(e,n,r){e.min=n.min-r.min,e.max=e.min+Gt(n)}function As(e,n,r){Vy(e.x,n.x,r.x),Vy(e.y,n.y,r.y)}function vn(e){return[e("x"),e("y")]}const Oy=({current:e})=>e?e.ownerDocument.defaultView:null,ky=(e,n)=>Math.abs(e-n);function GC(e,n){const r=ky(e.x,n.x),s=ky(e.y,n.y);return Math.sqrt(r**2+s**2)}class $y{constructor(n,r,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:c=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ff(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,_=GC(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!_)return;const{point:D}=x,{timestamp:$}=kt;this.history.push({...D,timestamp:$});const{onStart:X,onMove:R}=this.handlers;E||(X&&X(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,x)},this.handlePointerMove=(x,E)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=Yf(E,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(x,E)=>{this.end();const{onEnd:_,onSessionEnd:D,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const X=Ff(x.type==="pointercancel"?this.lastMoveEventInfo:Yf(E,this.transformPagePoint),this.history);this.startEvent&&_&&_(x,X),D&&D(x,X)},!_f(n))return;this.dragSnapToOrigin=c,this.handlers=r,this.transformPagePoint=s,this.distanceThreshold=f,this.contextWindow=l||window;const h=ws(n),m=Yf(h,this.transformPagePoint),{point:p}=m,{timestamp:g}=kt;this.history=[{...p,timestamp:g}];const{onSessionStart:y}=r;y&&y(n,Ff(m,this.history)),this.removeListeners=is(Ts(this.contextWindow,"pointermove",this.handlePointerMove),Ts(this.contextWindow,"pointerup",this.handlePointerUp),Ts(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Ca(this.updatePoint)}}function Yf(e,n){return n?{point:n(e.point)}:e}function jy(e,n){return{x:e.x-n.x,y:e.y-n.y}}function Ff({point:e},n){return{point:e,delta:jy(e,Ny(n)),offset:jy(e,qC(n)),velocity:YC(n,.1)}}function qC(e){return e[0]}function Ny(e){return e[e.length-1]}function YC(e,n){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null;const l=Ny(e);for(;r>=0&&(s=e[r],!(l.timestamp-s.timestamp>Ln(n)));)r--;if(!s)return{x:0,y:0};const c=Un(l.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const f={x:(l.x-s.x)/c,y:(l.y-s.y)/c};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function FC(e,{min:n,max:r},s){return n!==void 0&&e<n?e=s?at(n,e,s.min):Math.max(e,n):r!==void 0&&e>r&&(e=s?at(r,e,s.max):Math.min(e,r)),e}function Ly(e,n,r){return{min:n!==void 0?e.min+n:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function XC(e,{top:n,left:r,bottom:s,right:l}){return{x:Ly(e.x,r,l),y:Ly(e.y,n,s)}}function Uy(e,n){let r=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function KC(e,n){return{x:Uy(e.x,n.x),y:Uy(e.y,n.y)}}function QC(e,n){let r=.5;const s=Gt(e),l=Gt(n);return l>s?r=ss(n.min,n.max-s,e.min):s>l&&(r=ss(e.min,e.max-l,n.min)),Jn(0,1,r)}function IC(e,n){const r={};return n.min!==void 0&&(r.min=n.min-e.min),n.max!==void 0&&(r.max=n.max-e.min),r}const Xf=.35;function JC(e=Xf){return e===!1?e=0:e===!0&&(e=Xf),{x:By(e,"left","right"),y:By(e,"top","bottom")}}function By(e,n,r){return{min:Py(e,n),max:Py(e,r)}}function Py(e,n){return typeof e=="number"?e:e[n]||0}const WC=new WeakMap;class e4{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:r=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=y=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(ws(y).point)},f=(y,x)=>{const{drag:E,dragPropagation:_,onDragStart:D}=this.getProps();if(E&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=l3(E),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vn(X=>{let R=this.getAxisMotionValue(X).get()||0;if(Pn.test(R)){const{projection:Z}=this.visualElement;if(Z&&Z.layout){const W=Z.layout.layoutBox[X];W&&(R=Gt(W)*(parseFloat(R)/100))}}this.originPoint[X]=R}),D&&et.postRender(()=>D(y,x)),Hf(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},h=(y,x)=>{this.latestPointerEvent=y,this.latestPanInfo=x;const{dragPropagation:E,dragDirectionLock:_,onDirectionLock:D,onDrag:$}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:X}=x;if(_&&this.currentDirection===null){this.currentDirection=t4(X),this.currentDirection!==null&&D&&D(this.currentDirection);return}this.updateAxis("x",x.point,X),this.updateAxis("y",x.point,X),this.visualElement.render(),$&&$(y,x)},m=(y,x)=>{this.latestPointerEvent=y,this.latestPanInfo=x,this.stop(y,x),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>vn(y=>this.getAnimationState(y)==="paused"&&this.getAxisMotionValue(y).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new $y(n,{onSessionStart:c,onStart:f,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:Oy(this.visualElement)})}stop(n,r){const s=n||this.latestPointerEvent,l=r||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!s)return;const{velocity:f}=l;this.startAnimation(f);const{onDragEnd:h}=this.getProps();h&&et.postRender(()=>h(s,l))}cancel(){this.isDragging=!1;const{projection:n,animationState:r}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(n,r,s){const{drag:l}=this.getProps();if(!s||!hl(n,l,this.currentDirection))return;const c=this.getAxisMotionValue(n);let f=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(f=FC(f,this.constraints[n],this.elastic[n])),c.set(f)}resolveConstraints(){const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;n&&ai(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=XC(s.layoutBox,n):this.constraints=!1,this.elastic=JC(r),l!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&vn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=IC(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!ai(n))return!1;const s=n.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=nC(s,l.root,this.visualElement.getTransformPagePoint());let f=KC(l.layout.layoutBox,c);if(r){const h=r(W3(f));this.hasMutatedConstraints=!!h,h&&(f=sy(h))}return f}startAnimation(n){const{drag:r,dragMomentum:s,dragElastic:l,dragTransition:c,dragSnapToOrigin:f,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=vn(g=>{if(!hl(g,r,this.currentDirection))return;let y=m&&m[g]||{};f&&(y={min:0,max:0});const x=l?200:1e6,E=l?40:1e7,_={type:"inertia",velocity:s?n[g]:0,bounceStiffness:x,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...c,...y};return this.startAxisValueAnimation(g,_)});return Promise.all(p).then(h)}startAxisValueAnimation(n,r){const s=this.getAxisMotionValue(n);return Hf(this.visualElement,n),s.start(Gf(n,s,0,r,this.visualElement,!1))}stopAnimation(){vn(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){vn(n=>this.getAxisMotionValue(n).animation?.pause())}getAnimationState(n){return this.getAxisMotionValue(n).animation?.state}getAxisMotionValue(n){const r=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),l=s[r];return l||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){vn(r=>{const{drag:s}=this.getProps();if(!hl(r,s,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(r);if(l&&l.layout){const{min:f,max:h}=l.layout.layoutBox[r];c.set(n[r]-at(f,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!ai(r)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};vn(f=>{const h=this.getAxisMotionValue(f);if(h&&this.constraints!==!1){const m=h.get();l[f]=QC({min:m,max:m},this.constraints[f])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),vn(f=>{if(!hl(f,n,null))return;const h=this.getAxisMotionValue(f),{min:m,max:p}=this.constraints[f];h.set(at(m,p,l[f]))})}addListeners(){if(!this.visualElement.current)return;WC.set(this.visualElement,this);const n=this.visualElement.current,r=Ts(n,"pointerdown",m=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(m)}),s=()=>{const{dragConstraints:m}=this.getProps();ai(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,c=l.addEventListener("measure",s);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),et.read(s);const f=Ss(window,"resize",()=>this.scalePositionWithinConstraints()),h=l.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(vn(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=m[g].translate,y.set(y.get()+m[g].translate))}),this.visualElement.render())});return()=>{f(),r(),c(),h&&h()}}getProps(){const n=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:f=Xf,dragMomentum:h=!0}=n;return{...n,drag:r,dragDirectionLock:s,dragPropagation:l,dragConstraints:c,dragElastic:f,dragMomentum:h}}}function hl(e,n,r){return(n===!0||n===e)&&(r===null||r===e)}function t4(e,n=10){let r=null;return Math.abs(e.y)>n?r="y":Math.abs(e.x)>n&&(r="x"),r}class n4 extends za{constructor(n){super(n),this.removeGroupControls=gn,this.removeListeners=gn,this.controls=new e4(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zy=e=>(n,r)=>{e&&et.postRender(()=>e(n,r))};class a4 extends za{constructor(){super(...arguments),this.removePointerDownListener=gn}onPointerDown(n){this.session=new $y(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oy(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:Zy(n),onStart:Zy(r),onMove:s,onEnd:(c,f)=>{delete this.session,l&&et.postRender(()=>l(c,f))}}}mount(){this.removePointerDownListener=Ts(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ml={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hy(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const _s={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(_e.test(e))e=parseFloat(e);else return e;const r=Hy(e,n.target.x),s=Hy(e,n.target.y);return`${r}% ${s}%`}},r4={correct:(e,{treeScale:n,projectionDelta:r})=>{const s=e,l=Da.parse(e);if(l.length>5)return s;const c=Da.createTransformer(e),f=typeof l[0]!="number"?1:0,h=r.x.scale*n.x,m=r.y.scale*n.y;l[0+f]/=h,l[1+f]/=m;const p=at(h,m,.5);return typeof l[2+f]=="number"&&(l[2+f]/=p),typeof l[3+f]=="number"&&(l[3+f]/=p),c(l)}};let Kf=!1;class i4 extends C.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:s,layoutId:l}=this.props,{projection:c}=n;M3(s4),c&&(r.group&&r.group.add(c),s&&s.register&&l&&s.register(c),Kf&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),ml.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:r,visualElement:s,drag:l,isPresent:c}=this.props,{projection:f}=s;return f&&(f.isPresent=c,Kf=!0,l||n.layoutDependency!==r||r===void 0||n.isPresent!==c?f.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?f.promote():f.relegate()||et.postRender(()=>{const h=f.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Af.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:l}=n;Kf=!0,l&&(l.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function Gy(e){const[n,r]=Zv(),s=C.useContext(qc);return F.jsx(i4,{...e,layoutGroup:s,switchLayoutGroup:C.useContext(ry),isPresent:n,safeToRemove:r})}const s4={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:r4};function o4(e,n,r){const s=Ut(e)?e:ti(e);return s.start(Gf("",s,n,r)),s.animation}const l4=(e,n)=>e.depth-n.depth;class u4{constructor(){this.children=[],this.isDirty=!1}add(n){ac(this.children,n),this.isDirty=!0}remove(n){rc(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(l4),this.isDirty=!1,this.children.forEach(n)}}function c4(e,n){const r=Qt.now(),s=({timestamp:l})=>{const c=l-r;c>=n&&(Ca(s),e(c-n))};return et.setup(s,!0),()=>Ca(s)}const qy=["TopLeft","TopRight","BottomLeft","BottomRight"],f4=qy.length,Yy=e=>typeof e=="string"?parseFloat(e):e,Fy=e=>typeof e=="number"||_e.test(e);function d4(e,n,r,s,l,c){l?(e.opacity=at(0,r.opacity??1,h4(s)),e.opacityExit=at(n.opacity??1,0,m4(s))):c&&(e.opacity=at(n.opacity??1,r.opacity??1,s));for(let f=0;f<f4;f++){const h=`border${qy[f]}Radius`;let m=Xy(n,h),p=Xy(r,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||Fy(m)===Fy(p)?(e[h]=Math.max(at(Yy(m),Yy(p),s),0),(Pn.test(p)||Pn.test(m))&&(e[h]+="%")):e[h]=p}(n.rotate||r.rotate)&&(e.rotate=at(n.rotate||0,r.rotate||0,s))}function Xy(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const h4=Ky(0,.5,gp),m4=Ky(.5,.95,gn);function Ky(e,n,r){return s=>s<e?0:s>n?1:r(ss(e,n,s))}function Qy(e,n){e.min=n.min,e.max=n.max}function yn(e,n){Qy(e.x,n.x),Qy(e.y,n.y)}function Iy(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function Jy(e,n,r,s,l){return e-=n,e=dl(e,1/r,s),l!==void 0&&(e=dl(e,1/l,s)),e}function p4(e,n=0,r=1,s=.5,l,c=e,f=e){if(Pn.test(n)&&(n=parseFloat(n),n=at(f.min,f.max,n/100)-f.min),typeof n!="number")return;let h=at(c.min,c.max,s);e===c&&(h-=n),e.min=Jy(e.min,n,r,h,l),e.max=Jy(e.max,n,r,h,l)}function Wy(e,n,[r,s,l],c,f){p4(e,n[r],n[s],n[l],n.scale,c,f)}const g4=["x","scaleX","originX"],v4=["y","scaleY","originY"];function eb(e,n,r,s){Wy(e.x,n,g4,r?r.x:void 0,s?s.x:void 0),Wy(e.y,n,v4,r?r.y:void 0,s?s.y:void 0)}function tb(e){return e.translate===0&&e.scale===1}function nb(e){return tb(e.x)&&tb(e.y)}function ab(e,n){return e.min===n.min&&e.max===n.max}function y4(e,n){return ab(e.x,n.x)&&ab(e.y,n.y)}function rb(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function ib(e,n){return rb(e.x,n.x)&&rb(e.y,n.y)}function sb(e){return Gt(e.x)/Gt(e.y)}function ob(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class b4{constructor(){this.members=[]}add(n){ac(this.members,n),n.scheduleRender()}remove(n){if(rc(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(n){const r=this.members.findIndex(l=>n===l);if(r===0)return!1;let s;for(let l=r;l>=0;l--){const c=this.members[l];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(n,r){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,r&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:l}=n.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:r,resumingFrom:s}=n;r.onExitComplete&&r.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function x4(e,n,r){let s="";const l=e.x.translate/n.x,c=e.y.translate/n.y,f=r?.z||0;if((l||c||f)&&(s=`translate3d(${l}px, ${c}px, ${f}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),r){const{transformPerspective:p,rotate:g,rotateX:y,rotateY:x,skewX:E,skewY:_}=r;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),y&&(s+=`rotateX(${y}deg) `),x&&(s+=`rotateY(${x}deg) `),E&&(s+=`skewX(${E}deg) `),_&&(s+=`skewY(${_}deg) `)}const h=e.x.scale*n.x,m=e.y.scale*n.y;return(h!==1||m!==1)&&(s+=`scale(${h}, ${m})`),s||"none"}const Qf=["","X","Y","Z"],S4=1e3;let w4=0;function If(e,n,r,s){const{latestValues:l}=n;l[e]&&(r[e]=l[e],n.setStaticValue(e,0),s&&(s[e]=0))}function lb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const r=wy(n);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:l,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",et,!(l||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&lb(s)}function ub({attachResizeListener:e,defaultParent:n,measureScroll:r,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(f={},h=n?.()){this.id=w4++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(A4),this.nodes.forEach(D4),this.nodes.forEach(z4),this.nodes.forEach(_4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new u4)}addEventListener(f,h){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new sc),this.eventHandlers.get(f).add(h)}notifyListeners(f,...h){const m=this.eventHandlers.get(f);m&&m.notify(...h)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Pv(f)&&!m3(f),this.instance=f;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let g,y=0;const x=()=>this.root.updateBlockedByResize=!1;et.read(()=>{y=window.innerWidth}),e(f,()=>{const E=window.innerWidth;E!==y&&(y=E,this.root.updateBlockedByResize=!0,g&&g(),g=c4(x,250),ml.hasAnimatedSinceResize&&(ml.hasAnimatedSinceResize=!1,this.nodes.forEach(db)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:x,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||p.getDefaultTransition()||$4,{onLayoutAnimationStart:D,onLayoutAnimationComplete:$}=p.getProps(),X=!this.targetLayout||!ib(this.targetLayout,E),R=!y&&x;if(this.options.layoutRoot||this.resumeFrom||R||y&&(X||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Z={...wf(_,"layout"),onPlay:D,onComplete:$};(p.shouldReduceMotion||this.options.layoutRoot)&&(Z.delay=0,Z.type=!1),this.startAnimation(Z),this.setAnimationOrigin(g,R)}else y||db(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ca(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(R4),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const y=this.path[g];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(M4),this.nodes.forEach(T4),this.nodes.forEach(E4)):this.nodes.forEach(fb),this.clearAllSnapshots();const h=Qt.now();kt.delta=Jn(0,1e3/60,h-kt.timestamp),kt.timestamp=h,kt.isProcessing=!0,Xc.update.process(kt),Xc.preRender.process(kt),Xc.render.process(kt),kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Af.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(C4),this.sharedNodes.forEach(V4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Gt(this.snapshot.measuredBox.x)&&!Gt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(h=!1),h&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!nb(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;f&&this.instance&&(h||hr(this.latestValues)||g)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return f&&(m=this.removeTransform(m)),j4(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return ut();const h=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(N4))){const{scroll:p}=this.root;p&&(ri(h.x,p.offset.x),ri(h.y,p.offset.y))}return h}removeElementScroll(f){const h=ut();if(yn(h,f),this.scroll?.wasRoot)return h;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:y}=p;p!==this.root&&g&&y.layoutScroll&&(g.wasRoot&&yn(h,f),ri(h.x,g.offset.x),ri(h.y,g.offset.y))}return h}applyTransform(f,h=!1){const m=ut();yn(m,f);for(let p=0;p<this.path.length;p++){const g=this.path[p];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ii(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),hr(g.latestValues)&&ii(m,g.latestValues)}return hr(this.latestValues)&&ii(m,this.latestValues),m}removeTransform(f){const h=ut();yn(h,f);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!hr(p.latestValues))continue;Uf(p.latestValues)&&p.updateSnapshot();const g=ut(),y=p.measurePageBox();yn(g,y),eb(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return hr(this.latestValues)&&eb(h,this.latestValues),h}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==kt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(f||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:y}=this.options;if(!(!this.layout||!(g||y))){if(this.resolvedRelativeTargetAt=kt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),As(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),yn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yn(this.target,this.layout.layoutBox),cy(this.target,this.targetDelta)):yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),As(this.relativeTargetOrigin,this.target,x.target),yn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Uf(this.parent.latestValues)||oy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===kt.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;yn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,x=this.treeScale.y;tC(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=ut());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),Es(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==x||!ob(this.projectionDelta.x,this.prevProjectionDelta.x)||!ob(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=si(),this.projectionDelta=si(),this.projectionDeltaWithTransform=si()}setAnimationOrigin(f,h=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},y=si();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=ut(),E=m?m.source:void 0,_=this.layout?this.layout.source:void 0,D=E!==_,$=this.getStack(),X=!$||$.members.length<=1,R=!!(D&&!X&&this.options.crossfade===!0&&!this.path.some(k4));this.animationProgress=0;let Z;this.mixTargetDelta=W=>{const Y=W/1e3;hb(y.x,f.x,Y),hb(y.y,f.y,Y),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(As(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),O4(this.relativeTarget,this.relativeTargetOrigin,x,Y),Z&&y4(this.relativeTarget,Z)&&(this.isProjectionDirty=!1),Z||(Z=ut()),yn(Z,this.relativeTarget)),D&&(this.animationValues=g,d4(g,p,this.latestValues,Y,R,X)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ca(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{ml.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ti(0)),this.currentAnimation=o4(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),f.onUpdate&&f.onUpdate(h)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(S4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:g}=f;if(!(!h||!m||!p)){if(this!==f&&this.layout&&p&&yb(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||ut();const y=Gt(this.layout.layoutBox.x);m.x.min=f.target.x.min,m.x.max=m.x.min+y;const x=Gt(this.layout.layoutBox.y);m.y.min=f.target.y.min,m.y.max=m.y.min+x}yn(h,m),ii(h,g),Es(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(f,h){this.sharedNodes.has(f)||this.sharedNodes.set(f,new b4),this.sharedNodes.get(f).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),f&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let h=!1;const{latestValues:m}=f;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&If("z",f,p,this.animationValues);for(let g=0;g<Qf.length;g++)If(`rotate${Qf[g]}`,f,p,this.animationValues),If(`skew${Qf[g]}`,f,p,this.animationValues);f.render();for(const g in p)f.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);f.scheduleRender()}applyProjectionStyles(f,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=fl(h?.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=fl(h?.pointerEvents)||""),this.hasProjected&&!hr(this.latestValues)&&(f.transform=m?m({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let y=x4(this.projectionDeltaWithTransform,this.treeScale,g);m&&(y=m(g,y)),f.transform=y;const{x,y:E}=this.projectionDelta;f.transformOrigin=`${x.origin*100}% ${E.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const _ in xs){if(g[_]===void 0)continue;const{correct:D,applyTo:$,isCSSVariable:X}=xs[_],R=y==="none"?g[_]:D(g[_],p);if($){const Z=$.length;for(let W=0;W<Z;W++)f[$[W]]=R}else X?this.options.visualElement.renderState.vars[_]=R:f[_]=R}this.options.layoutId&&(f.pointerEvents=p===this?fl(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(cb),this.root.sharedNodes.clear()}}}function T4(e){e.updateLayout()}function E4(e){const n=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:l}=e.options,c=n.source!==e.layout.source;l==="size"?vn(g=>{const y=c?n.measuredBox[g]:n.layoutBox[g],x=Gt(y);y.min=r[g].min,y.max=y.min+x}):yb(l,n.layoutBox,r)&&vn(g=>{const y=c?n.measuredBox[g]:n.layoutBox[g],x=Gt(r[g]);y.max=y.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+x)});const f=si();Es(f,r,n.layoutBox);const h=si();c?Es(h,e.applyTransform(s,!0),n.measuredBox):Es(h,r,n.layoutBox);const m=!nb(f);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:x}=g;if(y&&x){const E=ut();As(E,n.layoutBox,y.layoutBox);const _=ut();As(_,r,x.layoutBox),ib(E,_)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:h,layoutDelta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function A4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function C4(e){e.clearSnapshot()}function cb(e){e.clearMeasurements()}function fb(e){e.isLayoutDirty=!1}function M4(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function db(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function D4(e){e.resolveTargetDelta()}function z4(e){e.calcProjection()}function R4(e){e.resetSkewAndRotation()}function V4(e){e.removeLeadSnapshot()}function hb(e,n,r){e.translate=at(n.translate,0,r),e.scale=at(n.scale,1,r),e.origin=n.origin,e.originPoint=n.originPoint}function mb(e,n,r,s){e.min=at(n.min,r.min,s),e.max=at(n.max,r.max,s)}function O4(e,n,r,s){mb(e.x,n.x,r.x,s),mb(e.y,n.y,r.y,s)}function k4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $4={duration:.45,ease:[.4,0,.1,1]},pb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gb=pb("applewebkit/")&&!pb("chrome/")?Math.round:gn;function vb(e){e.min=gb(e.min),e.max=gb(e.max)}function j4(e){vb(e.x),vb(e.y)}function yb(e,n,r){return e==="position"||e==="preserve-aspect"&&!ZC(sb(n),sb(r),.2)}function N4(e){return e!==e.root&&e.scroll?.wasRoot}const L4=ub({attachResizeListener:(e,n)=>Ss(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jf={current:void 0},bb=ub({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Jf.current){const e=new L4({});e.mount(window),e.setOptions({layoutScroll:!0}),Jf.current=e}return Jf.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),U4={pan:{Feature:a4},drag:{Feature:n4,ProjectionNode:bb,MeasureLayout:Gy}};function xb(e,n,r){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",r==="Start");const l="onHover"+r,c=s[l];c&&et.postRender(()=>c(n,ws(n)))}class B4 extends za{mount(){const{current:n}=this.node;n&&(this.unmount=u3(n,(r,s)=>(xb(this.node,s,"Start"),l=>xb(this.node,l,"End"))))}unmount(){}}class P4 extends za{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=is(Ss(this.node.current,"focus",()=>this.onFocus()),Ss(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sb(e,n,r){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",r==="Start");const l="onTap"+(r==="End"?"":r),c=s[l];c&&et.postRender(()=>c(n,ws(n)))}class Z4 extends za{mount(){const{current:n}=this.node;n&&(this.unmount=h3(n,(r,s)=>(Sb(this.node,s,"Start"),(l,{success:c})=>Sb(this.node,l,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wf=new WeakMap,ed=new WeakMap,H4=e=>{const n=Wf.get(e.target);n&&n(e)},G4=e=>{e.forEach(H4)};function q4({root:e,...n}){const r=e||document;ed.has(r)||ed.set(r,{});const s=ed.get(r),l=JSON.stringify(n);return s[l]||(s[l]=new IntersectionObserver(G4,{root:e,...n})),s[l]}function Y4(e,n,r){const s=q4(n);return Wf.set(e,r),s.observe(e),()=>{Wf.delete(e),s.unobserve(e)}}const F4={some:0,all:1};class X4 extends za{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:r,margin:s,amount:l="some",once:c}=n,f={root:r?r.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:F4[l]},h=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),x=p?g:y;x&&x(m)};return Y4(this.node.current,f,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:r}=this.node;["amount","margin","root"].some(K4(n,r))&&this.startObserver()}unmount(){}}function K4({viewport:e={}},{viewport:n={}}={}){return r=>e[r]!==n[r]}const Q4={...jC,...{inView:{Feature:X4},tap:{Feature:Z4},focus:{Feature:P4},hover:{Feature:B4}},...U4,...{layout:{ProjectionNode:bb,MeasureLayout:Gy}}},pt=J3(Q4,fC),wb=({size:e=24,className:n,...r})=>F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,...r,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:_a("animate-spin",n),children:F.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})});function re(e,n,r){function s(h,m){var p;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(p=h._zod).traits??(p.traits=new Set),h._zod.traits.add(e),n(h,m);for(const g in f.prototype)g in h||Object.defineProperty(h,g,{value:f.prototype[g].bind(h)});h._zod.constr=f,h._zod.def=m}const l=r?.Parent??Object;class c extends l{}Object.defineProperty(c,"name",{value:e});function f(h){var m;const p=r?.Parent?new c:this;s(p,h),(m=p._zod).deferred??(m.deferred=[]);for(const g of p._zod.deferred)g();return p}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}class Cs extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Tb={};function pr(e){return Tb}function I4(e){const n=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,l])=>n.indexOf(+s)===-1).map(([s,l])=>l)}function td(e,n){return typeof n=="bigint"?n.toString():n}function Eb(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function nd(e){return e==null}function ad(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}const Ab=Symbol("evaluating");function Je(e,n,r){let s;Object.defineProperty(e,n,{get(){if(s!==Ab)return s===void 0&&(s=Ab,s=r()),s},set(l){Object.defineProperty(e,n,{value:l})},configurable:!0})}function J4(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function gr(e,n,r){Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function li(...e){const n={};for(const r of e){const s=Object.getOwnPropertyDescriptors(r);Object.assign(n,s)}return Object.defineProperties({},n)}function _b(e){return JSON.stringify(e)}const Cb="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const W4=Eb(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function pl(e){if(rd(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(rd(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Mb(e){return pl(e)?{...e}:e}const e6=new Set(["string","number","symbol"]);function gl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vr(e,n,r){const s=new e._zod.constr(n??e._zod.def);return(!n||r?.parent)&&(s._zod.parent=e),s}function Me(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function t6(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}function n6(e,n){const r=e._zod.def,s=li(e._zod.def,{get shape(){const l={};for(const c in n){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=r.shape[c])}return gr(this,"shape",l),l},checks:[]});return vr(e,s)}function a6(e,n){const r=e._zod.def,s=li(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in n){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);n[c]&&delete l[c]}return gr(this,"shape",l),l},checks:[]});return vr(e,s)}function r6(e,n){if(!pl(n))throw new Error("Invalid input to extend: expected a plain object");const r=li(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n};return gr(this,"shape",s),s},checks:[]});return vr(e,r)}function i6(e,n){const r=li(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n._zod.def.shape};return gr(this,"shape",s),s},get catchall(){return n._zod.def.catchall},checks:[]});return vr(e,r)}function s6(e,n,r){const s=li(n._zod.def,{get shape(){const l=n._zod.def.shape,c={...l};if(r)for(const f in r){if(!(f in l))throw new Error(`Unrecognized key: "${f}"`);r[f]&&(c[f]=e?new e({type:"optional",innerType:l[f]}):l[f])}else for(const f in l)c[f]=e?new e({type:"optional",innerType:l[f]}):l[f];return gr(this,"shape",c),c},checks:[]});return vr(n,s)}function o6(e,n,r){const s=li(n._zod.def,{get shape(){const l=n._zod.def.shape,c={...l};if(r)for(const f in r){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);r[f]&&(c[f]=new e({type:"nonoptional",innerType:l[f]}))}else for(const f in l)c[f]=new e({type:"nonoptional",innerType:l[f]});return gr(this,"shape",c),c},checks:[]});return vr(n,s)}function Ms(e,n=0){for(let r=n;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Db(e,n){return n.map(r=>{var s;return(s=r).path??(s.path=[]),r.path.unshift(e),r})}function vl(e){return typeof e=="string"?e:e?.message}function yr(e,n,r){const s={...e,path:e.path??[]};if(!e.message){const l=vl(e.inst?._zod.def?.error?.(e))??vl(n?.error?.(e))??vl(r.customError?.(e))??vl(r.localeError?.(e))??"Invalid input";s.message=l}return delete s.inst,delete s.continue,n?.reportInput||delete s.input,s}function id(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ds(...e){const[n,r,s]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:s}:{...n}}const zb=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,td,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},sd=re("$ZodError",zb),yl=re("$ZodError",zb,{Parent:Error});function l6(e,n=r=>r.message){const r={},s=[];for(const l of e.issues)l.path.length>0?(r[l.path[0]]=r[l.path[0]]||[],r[l.path[0]].push(n(l))):s.push(n(l));return{formErrors:s,fieldErrors:r}}function u6(e,n){const r=n||function(c){return c.message},s={_errors:[]},l=c=>{for(const f of c.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(h=>l({issues:h}));else if(f.code==="invalid_key")l({issues:f.issues});else if(f.code==="invalid_element")l({issues:f.issues});else if(f.path.length===0)s._errors.push(r(f));else{let h=s,m=0;for(;m<f.path.length;){const p=f.path[m];m===f.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(r(f))):h[p]=h[p]||{_errors:[]},h=h[p],m++}}};return l(e),s}const Rb=e=>(n,r,s,l)=>{const c=s?Object.assign(s,{async:!1}):{async:!1},f=n._zod.run({value:r,issues:[]},c);if(f instanceof Promise)throw new Cs;if(f.issues.length){const h=new(l?.Err??e)(f.issues.map(m=>yr(m,c,pr())));throw Cb(h,l?.callee),h}return f.value},c6=Rb(yl),Vb=e=>async(n,r,s,l)=>{const c=s?Object.assign(s,{async:!0}):{async:!0};let f=n._zod.run({value:r,issues:[]},c);if(f instanceof Promise&&(f=await f),f.issues.length){const h=new(l?.Err??e)(f.issues.map(m=>yr(m,c,pr())));throw Cb(h,l?.callee),h}return f.value},f6=Vb(yl),Ob=e=>(n,r,s)=>{const l=s?{...s,async:!1}:{async:!1},c=n._zod.run({value:r,issues:[]},l);if(c instanceof Promise)throw new Cs;return c.issues.length?{success:!1,error:new(e??sd)(c.issues.map(f=>yr(f,l,pr())))}:{success:!0,data:c.value}},d6=Ob(yl),kb=e=>async(n,r,s)=>{const l=s?Object.assign(s,{async:!0}):{async:!0};let c=n._zod.run({value:r,issues:[]},l);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(f=>yr(f,l,pr())))}:{success:!0,data:c.value}},h6=kb(yl),m6=/^[cC][^\s-]{8,}$/,p6=/^[0-9a-z]+$/,g6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,v6=/^[0-9a-vA-V]{20}$/,y6=/^[A-Za-z0-9]{27}$/,b6=/^[a-zA-Z0-9_-]{21}$/,x6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,S6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$b=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,w6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,T6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function E6(){return new RegExp(T6,"u")}const A6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,C6=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,M6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,D6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,jb=/^[A-Za-z0-9_-]*$/,z6=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,R6=/^\+(?:[0-9]){6,14}[0-9]$/,Nb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",V6=new RegExp(`^${Nb}$`);function Lb(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function O6(e){return new RegExp(`^${Lb(e)}$`)}function k6(e){const n=Lb({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${n}(?:${r.join("|")})`;return new RegExp(`^${Nb}T(?:${s})$`)}const $6=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},j6=/^[^A-Z]*$/,N6=/^[^a-z]*$/,Zn=re("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),L6=re("$ZodCheckMaxLength",(e,n)=>{var r;Zn.init(e,n),(r=e._zod.def).when??(r.when=s=>{const l=s.value;return!nd(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<l&&(s._zod.bag.maximum=n.maximum)}),e._zod.check=s=>{const l=s.value;if(l.length<=n.maximum)return;const f=id(l);s.issues.push({origin:f,code:"too_big",maximum:n.maximum,inclusive:!0,input:l,inst:e,continue:!n.abort})}}),U6=re("$ZodCheckMinLength",(e,n)=>{var r;Zn.init(e,n),(r=e._zod.def).when??(r.when=s=>{const l=s.value;return!nd(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>l&&(s._zod.bag.minimum=n.minimum)}),e._zod.check=s=>{const l=s.value;if(l.length>=n.minimum)return;const f=id(l);s.issues.push({origin:f,code:"too_small",minimum:n.minimum,inclusive:!0,input:l,inst:e,continue:!n.abort})}}),B6=re("$ZodCheckLengthEquals",(e,n)=>{var r;Zn.init(e,n),(r=e._zod.def).when??(r.when=s=>{const l=s.value;return!nd(l)&&l.length!==void 0}),e._zod.onattach.push(s=>{const l=s._zod.bag;l.minimum=n.length,l.maximum=n.length,l.length=n.length}),e._zod.check=s=>{const l=s.value,c=l.length;if(c===n.length)return;const f=id(l),h=c>n.length;s.issues.push({origin:f,...h?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!n.abort})}}),bl=re("$ZodCheckStringFormat",(e,n)=>{var r,s;Zn.init(e,n),e._zod.onattach.push(l=>{const c=l._zod.bag;c.format=n.format,n.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=l=>{n.pattern.lastIndex=0,!n.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:n.format,input:l.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(s=e._zod).check??(s.check=()=>{})}),P6=re("$ZodCheckRegex",(e,n)=>{bl.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),Z6=re("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=j6),bl.init(e,n)}),H6=re("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=N6),bl.init(e,n)}),G6=re("$ZodCheckIncludes",(e,n)=>{Zn.init(e,n);const r=gl(n.includes),s=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=s,e._zod.onattach.push(l=>{const c=l._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),e._zod.check=l=>{l.value.includes(n.includes,n.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:l.value,inst:e,continue:!n.abort})}}),q6=re("$ZodCheckStartsWith",(e,n)=>{Zn.init(e,n);const r=new RegExp(`^${gl(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=s=>{s.value.startsWith(n.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:s.value,inst:e,continue:!n.abort})}}),Y6=re("$ZodCheckEndsWith",(e,n)=>{Zn.init(e,n);const r=new RegExp(`.*${gl(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(r)}),e._zod.check=s=>{s.value.endsWith(n.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:s.value,inst:e,continue:!n.abort})}}),F6=re("$ZodCheckOverwrite",(e,n)=>{Zn.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class X6{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const s=n.split(`
97
+ `).filter(f=>f),l=Math.min(...s.map(f=>f.length-f.trimStart().length)),c=s.map(f=>f.slice(l)).map(f=>" ".repeat(this.indent*2)+f);for(const f of c)this.content.push(f)}compile(){const n=Function,r=this?.args,l=[...(this?.content??[""]).map(c=>` ${c}`)];return new n(...r,l.join(`
98
+ `))}}const K6={major:4,minor:0,patch:17},St=re("$ZodType",(e,n)=>{var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=K6;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const l of s)for(const c of l._zod.onattach)c(e);if(s.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const l=(c,f,h)=>{let m=Ms(c),p;for(const g of f){if(g._zod.def.when){if(!g._zod.def.when(c))continue}else if(m)continue;const y=c.issues.length,x=g._zod.check(c);if(x instanceof Promise&&h?.async===!1)throw new Cs;if(p||x instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await x,c.issues.length!==y&&(m||(m=Ms(c,y)))});else{if(c.issues.length===y)continue;m||(m=Ms(c,y))}}return p?p.then(()=>c):c};e._zod.run=(c,f)=>{const h=e._zod.parse(c,f);if(h instanceof Promise){if(f.async===!1)throw new Cs;return h.then(m=>l(m,s,f))}return l(h,s,f)}}e["~standard"]={validate:l=>{try{const c=d6(e,l);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return h6(e,l).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),od=re("$ZodString",(e,n)=>{St.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??$6(e._zod.bag),e._zod.parse=(r,s)=>{if(n.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),tt=re("$ZodStringFormat",(e,n)=>{bl.init(e,n),od.init(e,n)}),Q6=re("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=S6),tt.init(e,n)}),I6=re("$ZodUUID",(e,n)=>{if(n.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(s===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=$b(s))}else n.pattern??(n.pattern=$b());tt.init(e,n)}),J6=re("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=w6),tt.init(e,n)}),W6=re("$ZodURL",(e,n)=>{tt.init(e,n),e._zod.check=r=>{try{const s=r.value.trim(),l=new URL(s);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(l.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:z6.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=l.href:r.value=s;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),eM=re("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=E6()),tt.init(e,n)}),tM=re("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=b6),tt.init(e,n)}),nM=re("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=m6),tt.init(e,n)}),aM=re("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=p6),tt.init(e,n)}),rM=re("$ZodULID",(e,n)=>{n.pattern??(n.pattern=g6),tt.init(e,n)}),iM=re("$ZodXID",(e,n)=>{n.pattern??(n.pattern=v6),tt.init(e,n)}),sM=re("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=y6),tt.init(e,n)}),oM=re("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=k6(n)),tt.init(e,n)}),lM=re("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=V6),tt.init(e,n)}),uM=re("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=O6(n)),tt.init(e,n)}),cM=re("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=x6),tt.init(e,n)}),fM=re("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=A6),tt.init(e,n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv4"})}),dM=re("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=_6),tt.init(e,n),e._zod.onattach.push(r=>{const s=r._zod.bag;s.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),hM=re("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=C6),tt.init(e,n)}),mM=re("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=M6),tt.init(e,n),e._zod.check=r=>{const[s,l]=r.value.split("/");try{if(!l)throw new Error;const c=Number(l);if(`${c}`!==l)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${s}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function Ub(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const pM=re("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=D6),tt.init(e,n),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{Ub(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function gM(e){if(!jb.test(e))return!1;const n=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return Ub(r)}const vM=re("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=jb),tt.init(e,n),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{gM(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),yM=re("$ZodE164",(e,n)=>{n.pattern??(n.pattern=R6),tt.init(e,n)});function bM(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[s]=r;if(!s)return!1;const l=JSON.parse(atob(s));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||n&&(!("alg"in l)||l.alg!==n))}catch{return!1}}const xM=re("$ZodJWT",(e,n)=>{tt.init(e,n),e._zod.check=r=>{bM(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),SM=re("$ZodUnknown",(e,n)=>{St.init(e,n),e._zod.parse=r=>r}),wM=re("$ZodNever",(e,n)=>{St.init(e,n),e._zod.parse=(r,s)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function Bb(e,n,r){e.issues.length&&n.issues.push(...Db(r,e.issues)),n.value[r]=e.value}const TM=re("$ZodArray",(e,n)=>{St.init(e,n),e._zod.parse=(r,s)=>{const l=r.value;if(!Array.isArray(l))return r.issues.push({expected:"array",code:"invalid_type",input:l,inst:e}),r;r.value=Array(l.length);const c=[];for(let f=0;f<l.length;f++){const h=l[f],m=n.element._zod.run({value:h,issues:[]},s);m instanceof Promise?c.push(m.then(p=>Bb(p,r,f))):Bb(m,r,f)}return c.length?Promise.all(c).then(()=>r):r}});function xl(e,n,r,s){e.issues.length&&n.issues.push(...Db(r,e.issues)),e.value===void 0?r in s&&(n.value[r]=void 0):n.value[r]=e.value}const EM=re("$ZodObject",(e,n)=>{St.init(e,n);const r=Eb(()=>{const y=Object.keys(n.shape);for(const E of y)if(!n.shape[E]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${E}": expected a Zod schema`);const x=t6(n.shape);return{shape:n.shape,keys:y,keySet:new Set(y),numKeys:y.length,optionalKeys:new Set(x)}});Je(e._zod,"propValues",()=>{const y=n.shape,x={};for(const E in y){const _=y[E]._zod;if(_.values){x[E]??(x[E]=new Set);for(const D of _.values)x[E].add(D)}}return x});const s=y=>{const x=new X6(["shape","payload","ctx"]),E=r.value,_=R=>{const Z=_b(R);return`shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`};x.write("const input = payload.value;");const D=Object.create(null);let $=0;for(const R of E.keys)D[R]=`key_${$++}`;x.write("const newResult = {}");for(const R of E.keys){const Z=D[R],W=_b(R);x.write(`const ${Z} = ${_(R)};`),x.write(`
99
+ if (${Z}.issues.length) {
100
+ payload.issues = payload.issues.concat(${Z}.issues.map(iss => ({
101
+ ...iss,
102
+ path: iss.path ? [${W}, ...iss.path] : [${W}]
103
+ })));
104
+ }
105
+
106
+ if (${Z}.value === undefined) {
107
+ if (${W} in input) {
108
+ newResult[${W}] = undefined;
109
+ }
110
+ } else {
111
+ newResult[${W}] = ${Z}.value;
112
+ }
113
+ `)}x.write("payload.value = newResult;"),x.write("return payload;");const X=x.compile();return(R,Z)=>X(y,R,Z)};let l;const c=rd,f=!Tb.jitless,m=f&&W4.value,p=n.catchall;let g;e._zod.parse=(y,x)=>{g??(g=r.value);const E=y.value;if(!c(E))return y.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),y;const _=[];if(f&&m&&x?.async===!1&&x.jitless!==!0)l||(l=s(n.shape)),y=l(y,x);else{y.value={};const Z=g.shape;for(const W of g.keys){const O=Z[W]._zod.run({value:E[W],issues:[]},x);O instanceof Promise?_.push(O.then(J=>xl(J,y,W,E))):xl(O,y,W,E)}}if(!p)return _.length?Promise.all(_).then(()=>y):y;const D=[],$=g.keySet,X=p._zod,R=X.def.type;for(const Z of Object.keys(E)){if($.has(Z))continue;if(R==="never"){D.push(Z);continue}const W=X.run({value:E[Z],issues:[]},x);W instanceof Promise?_.push(W.then(Y=>xl(Y,y,Z,E))):xl(W,y,Z,E)}return D.length&&y.issues.push({code:"unrecognized_keys",keys:D,input:E,inst:e}),_.length?Promise.all(_).then(()=>y):y}});function Pb(e,n,r,s){for(const c of e)if(c.issues.length===0)return n.value=c.value,n;const l=e.filter(c=>!Ms(c));return l.length===1?(n.value=l[0].value,l[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(c=>c.issues.map(f=>yr(f,s,pr())))}),n)}const AM=re("$ZodUnion",(e,n)=>{St.init(e,n),Je(e._zod,"optin",()=>n.options.some(l=>l._zod.optin==="optional")?"optional":void 0),Je(e._zod,"optout",()=>n.options.some(l=>l._zod.optout==="optional")?"optional":void 0),Je(e._zod,"values",()=>{if(n.options.every(l=>l._zod.values))return new Set(n.options.flatMap(l=>Array.from(l._zod.values)))}),Je(e._zod,"pattern",()=>{if(n.options.every(l=>l._zod.pattern)){const l=n.options.map(c=>c._zod.pattern);return new RegExp(`^(${l.map(c=>ad(c.source)).join("|")})$`)}});const r=n.options.length===1,s=n.options[0]._zod.run;e._zod.parse=(l,c)=>{if(r)return s(l,c);let f=!1;const h=[];for(const m of n.options){const p=m._zod.run({value:l.value,issues:[]},c);if(p instanceof Promise)h.push(p),f=!0;else{if(p.issues.length===0)return p;h.push(p)}}return f?Promise.all(h).then(m=>Pb(m,l,e,c)):Pb(h,l,e,c)}}),_M=re("$ZodIntersection",(e,n)=>{St.init(e,n),e._zod.parse=(r,s)=>{const l=r.value,c=n.left._zod.run({value:l,issues:[]},s),f=n.right._zod.run({value:l,issues:[]},s);return c instanceof Promise||f instanceof Promise?Promise.all([c,f]).then(([m,p])=>Zb(r,m,p)):Zb(r,c,f)}});function ld(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(pl(e)&&pl(n)){const r=Object.keys(n),s=Object.keys(e).filter(c=>r.indexOf(c)!==-1),l={...e,...n};for(const c of s){const f=ld(e[c],n[c]);if(!f.valid)return{valid:!1,mergeErrorPath:[c,...f.mergeErrorPath]};l[c]=f.data}return{valid:!0,data:l}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let s=0;s<e.length;s++){const l=e[s],c=n[s],f=ld(l,c);if(!f.valid)return{valid:!1,mergeErrorPath:[s,...f.mergeErrorPath]};r.push(f.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Zb(e,n,r){if(n.issues.length&&e.issues.push(...n.issues),r.issues.length&&e.issues.push(...r.issues),Ms(e))return e;const s=ld(n.value,r.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const CM=re("$ZodEnum",(e,n)=>{St.init(e,n);const r=I4(n.entries),s=new Set(r);e._zod.values=s,e._zod.pattern=new RegExp(`^(${r.filter(l=>e6.has(typeof l)).map(l=>typeof l=="string"?gl(l):l.toString()).join("|")})$`),e._zod.parse=(l,c)=>{const f=l.value;return s.has(f)||l.issues.push({code:"invalid_value",values:r,input:f,inst:e}),l}}),MM=re("$ZodTransform",(e,n)=>{St.init(e,n),e._zod.parse=(r,s)=>{const l=n.transform(r.value,r);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(f=>(r.value=f,r));if(l instanceof Promise)throw new Cs;return r.value=l,r}});function Hb(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const DM=re("$ZodOptional",(e,n)=>{St.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Je(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Je(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${ad(r.source)})?$`):void 0}),e._zod.parse=(r,s)=>{if(n.innerType._zod.optin==="optional"){const l=n.innerType._zod.run(r,s);return l instanceof Promise?l.then(c=>Hb(c,r.value)):Hb(l,r.value)}return r.value===void 0?r:n.innerType._zod.run(r,s)}}),zM=re("$ZodNullable",(e,n)=>{St.init(e,n),Je(e._zod,"optin",()=>n.innerType._zod.optin),Je(e._zod,"optout",()=>n.innerType._zod.optout),Je(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${ad(r.source)}|null)$`):void 0}),Je(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,s)=>r.value===null?r:n.innerType._zod.run(r,s)}),RM=re("$ZodDefault",(e,n)=>{St.init(e,n),e._zod.optin="optional",Je(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,s)=>{if(r.value===void 0)return r.value=n.defaultValue,r;const l=n.innerType._zod.run(r,s);return l instanceof Promise?l.then(c=>Gb(c,n)):Gb(l,n)}});function Gb(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const VM=re("$ZodPrefault",(e,n)=>{St.init(e,n),e._zod.optin="optional",Je(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,s)=>(r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,s))}),OM=re("$ZodNonOptional",(e,n)=>{St.init(e,n),Je(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(s=>s!==void 0)):void 0}),e._zod.parse=(r,s)=>{const l=n.innerType._zod.run(r,s);return l instanceof Promise?l.then(c=>qb(c,e)):qb(l,e)}});function qb(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const kM=re("$ZodCatch",(e,n)=>{St.init(e,n),Je(e._zod,"optin",()=>n.innerType._zod.optin),Je(e._zod,"optout",()=>n.innerType._zod.optout),Je(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,s)=>{const l=n.innerType._zod.run(r,s);return l instanceof Promise?l.then(c=>(r.value=c.value,c.issues.length&&(r.value=n.catchValue({...r,error:{issues:c.issues.map(f=>yr(f,s,pr()))},input:r.value}),r.issues=[]),r)):(r.value=l.value,l.issues.length&&(r.value=n.catchValue({...r,error:{issues:l.issues.map(c=>yr(c,s,pr()))},input:r.value}),r.issues=[]),r)}}),$M=re("$ZodPipe",(e,n)=>{St.init(e,n),Je(e._zod,"values",()=>n.in._zod.values),Je(e._zod,"optin",()=>n.in._zod.optin),Je(e._zod,"optout",()=>n.out._zod.optout),Je(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,s)=>{const l=n.in._zod.run(r,s);return l instanceof Promise?l.then(c=>Yb(c,n,s)):Yb(l,n,s)}});function Yb(e,n,r){return e.issues.length?e:n.out._zod.run({value:e.value,issues:e.issues},r)}const jM=re("$ZodReadonly",(e,n)=>{St.init(e,n),Je(e._zod,"propValues",()=>n.innerType._zod.propValues),Je(e._zod,"values",()=>n.innerType._zod.values),Je(e._zod,"optin",()=>n.innerType._zod.optin),Je(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(r,s)=>{const l=n.innerType._zod.run(r,s);return l instanceof Promise?l.then(Fb):Fb(l)}});function Fb(e){return e.value=Object.freeze(e.value),e}const NM=re("$ZodCustom",(e,n)=>{Zn.init(e,n),St.init(e,n),e._zod.parse=(r,s)=>r,e._zod.check=r=>{const s=r.value,l=n.fn(s);if(l instanceof Promise)return l.then(c=>Xb(c,r,s,e));Xb(l,r,s,e)}});function Xb(e,n,r,s){if(!e){const l={code:"custom",input:r,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),n.issues.push(Ds(l))}}class LM{constructor(){this._map=new Map,this._idmap=new Map}add(n,...r){const s=r[0];if(this._map.set(n,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,n)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const s={...this.get(r)??{}};delete s.id;const l={...s,...this._map.get(n)};return Object.keys(l).length?l:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function UM(){return new LM}const Sl=UM();function BM(e,n){return new e({type:"string",...Me(n)})}function Kb(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Me(n)})}function Qb(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Me(n)})}function PM(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Me(n)})}function ZM(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Me(n)})}function HM(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Me(n)})}function GM(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Me(n)})}function qM(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Me(n)})}function YM(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Me(n)})}function FM(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Me(n)})}function XM(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Me(n)})}function KM(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Me(n)})}function QM(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Me(n)})}function IM(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Me(n)})}function JM(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Me(n)})}function WM(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Me(n)})}function eD(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Me(n)})}function tD(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Me(n)})}function nD(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Me(n)})}function aD(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Me(n)})}function rD(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Me(n)})}function iD(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Me(n)})}function sD(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Me(n)})}function oD(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Me(n)})}function lD(e,n){return new e({type:"string",format:"date",check:"string_format",...Me(n)})}function uD(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...Me(n)})}function cD(e,n){return new e({type:"string",format:"duration",check:"string_format",...Me(n)})}function fD(e){return new e({type:"unknown"})}function dD(e,n){return new e({type:"never",...Me(n)})}function Ib(e,n){return new L6({check:"max_length",...Me(n),maximum:e})}function wl(e,n){return new U6({check:"min_length",...Me(n),minimum:e})}function Jb(e,n){return new B6({check:"length_equals",...Me(n),length:e})}function hD(e,n){return new P6({check:"string_format",format:"regex",...Me(n),pattern:e})}function mD(e){return new Z6({check:"string_format",format:"lowercase",...Me(e)})}function pD(e){return new H6({check:"string_format",format:"uppercase",...Me(e)})}function gD(e,n){return new G6({check:"string_format",format:"includes",...Me(n),includes:e})}function vD(e,n){return new q6({check:"string_format",format:"starts_with",...Me(n),prefix:e})}function yD(e,n){return new Y6({check:"string_format",format:"ends_with",...Me(n),suffix:e})}function zs(e){return new F6({check:"overwrite",tx:e})}function bD(e){return zs(n=>n.normalize(e))}function xD(){return zs(e=>e.trim())}function SD(){return zs(e=>e.toLowerCase())}function wD(){return zs(e=>e.toUpperCase())}function TD(e,n,r){return new e({type:"array",element:n,...Me(r)})}function ED(e,n,r){return new e({type:"custom",check:"custom",fn:n,...Me(r)})}function AD(e){const n=_D(r=>(r.addIssue=s=>{if(typeof s=="string")r.issues.push(Ds(s,r.value,n._zod.def));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=n),l.continue??(l.continue=!n._zod.def.abort),r.issues.push(Ds(l))}},e(r.value,r)));return n}function _D(e,n){const r=new Zn({check:"custom",...Me(n)});return r._zod.check=e,r}const CD=re("ZodISODateTime",(e,n)=>{oM.init(e,n),rt.init(e,n)});function MD(e){return oD(CD,e)}const DD=re("ZodISODate",(e,n)=>{lM.init(e,n),rt.init(e,n)});function zD(e){return lD(DD,e)}const RD=re("ZodISOTime",(e,n)=>{uM.init(e,n),rt.init(e,n)});function VD(e){return uD(RD,e)}const OD=re("ZodISODuration",(e,n)=>{cM.init(e,n),rt.init(e,n)});function kD(e){return cD(OD,e)}const Tl=re("ZodError",(e,n)=>{sd.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>u6(e,r)},flatten:{value:r=>l6(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,td,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,td,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),$D=Rb(Tl),jD=Vb(Tl),ND=Ob(Tl),LD=kb(Tl),_t=re("ZodType",(e,n)=>(St.init(e,n),e.def=n,Object.defineProperty(e,"_def",{value:n}),e.check=(...r)=>e.clone({...n,checks:[...n.checks??[],...r.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(r,s)=>vr(e,r,s),e.brand=()=>e,e.register=(r,s)=>(r.add(e,s),e),e.parse=(r,s)=>$D(e,r,s,{callee:e.parse}),e.safeParse=(r,s)=>ND(e,r,s),e.parseAsync=async(r,s)=>jD(e,r,s,{callee:e.parseAsync}),e.safeParseAsync=async(r,s)=>LD(e,r,s),e.spa=e.safeParseAsync,e.refine=(r,s)=>e.check(_z(r,s)),e.superRefine=r=>e.check(Cz(r)),e.overwrite=r=>e.check(zs(r)),e.optional=()=>s0(e),e.nullable=()=>o0(e),e.nullish=()=>s0(o0(e)),e.nonoptional=r=>xz(e,r),e.array=()=>sz(e),e.or=r=>uz([e,r]),e.and=r=>fz(e,r),e.transform=r=>u0(e,mz(r)),e.default=r=>vz(e,r),e.prefault=r=>bz(e,r),e.catch=r=>wz(e,r),e.pipe=r=>u0(e,r),e.readonly=()=>Az(e),e.describe=r=>{const s=e.clone();return Sl.add(s,{description:r}),s},Object.defineProperty(e,"description",{get(){return Sl.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Sl.get(e);const s=e.clone();return Sl.add(s,r[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Wb=re("_ZodString",(e,n)=>{od.init(e,n),_t.init(e,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...s)=>e.check(hD(...s)),e.includes=(...s)=>e.check(gD(...s)),e.startsWith=(...s)=>e.check(vD(...s)),e.endsWith=(...s)=>e.check(yD(...s)),e.min=(...s)=>e.check(wl(...s)),e.max=(...s)=>e.check(Ib(...s)),e.length=(...s)=>e.check(Jb(...s)),e.nonempty=(...s)=>e.check(wl(1,...s)),e.lowercase=s=>e.check(mD(s)),e.uppercase=s=>e.check(pD(s)),e.trim=()=>e.check(xD()),e.normalize=(...s)=>e.check(bD(...s)),e.toLowerCase=()=>e.check(SD()),e.toUpperCase=()=>e.check(wD())}),UD=re("ZodString",(e,n)=>{od.init(e,n),Wb.init(e,n),e.email=r=>e.check(Kb(e0,r)),e.url=r=>e.check(qM(BD,r)),e.jwt=r=>e.check(sD(tz,r)),e.emoji=r=>e.check(YM(PD,r)),e.guid=r=>e.check(Qb(n0,r)),e.uuid=r=>e.check(PM(El,r)),e.uuidv4=r=>e.check(ZM(El,r)),e.uuidv6=r=>e.check(HM(El,r)),e.uuidv7=r=>e.check(GM(El,r)),e.nanoid=r=>e.check(FM(ZD,r)),e.guid=r=>e.check(Qb(n0,r)),e.cuid=r=>e.check(XM(HD,r)),e.cuid2=r=>e.check(KM(GD,r)),e.ulid=r=>e.check(QM(qD,r)),e.base64=r=>e.check(aD(JD,r)),e.base64url=r=>e.check(rD(WD,r)),e.xid=r=>e.check(IM(YD,r)),e.ksuid=r=>e.check(JM(FD,r)),e.ipv4=r=>e.check(WM(XD,r)),e.ipv6=r=>e.check(eD(KD,r)),e.cidrv4=r=>e.check(tD(QD,r)),e.cidrv6=r=>e.check(nD(ID,r)),e.e164=r=>e.check(iD(ez,r)),e.datetime=r=>e.check(MD(r)),e.date=r=>e.check(zD(r)),e.time=r=>e.check(VD(r)),e.duration=r=>e.check(kD(r))});function ud(e){return BM(UD,e)}const rt=re("ZodStringFormat",(e,n)=>{tt.init(e,n),Wb.init(e,n)}),e0=re("ZodEmail",(e,n)=>{J6.init(e,n),rt.init(e,n)});function t0(e){return Kb(e0,e)}const n0=re("ZodGUID",(e,n)=>{Q6.init(e,n),rt.init(e,n)}),El=re("ZodUUID",(e,n)=>{I6.init(e,n),rt.init(e,n)}),BD=re("ZodURL",(e,n)=>{W6.init(e,n),rt.init(e,n)}),PD=re("ZodEmoji",(e,n)=>{eM.init(e,n),rt.init(e,n)}),ZD=re("ZodNanoID",(e,n)=>{tM.init(e,n),rt.init(e,n)}),HD=re("ZodCUID",(e,n)=>{nM.init(e,n),rt.init(e,n)}),GD=re("ZodCUID2",(e,n)=>{aM.init(e,n),rt.init(e,n)}),qD=re("ZodULID",(e,n)=>{rM.init(e,n),rt.init(e,n)}),YD=re("ZodXID",(e,n)=>{iM.init(e,n),rt.init(e,n)}),FD=re("ZodKSUID",(e,n)=>{sM.init(e,n),rt.init(e,n)}),XD=re("ZodIPv4",(e,n)=>{fM.init(e,n),rt.init(e,n)}),KD=re("ZodIPv6",(e,n)=>{dM.init(e,n),rt.init(e,n)}),QD=re("ZodCIDRv4",(e,n)=>{hM.init(e,n),rt.init(e,n)}),ID=re("ZodCIDRv6",(e,n)=>{mM.init(e,n),rt.init(e,n)}),JD=re("ZodBase64",(e,n)=>{pM.init(e,n),rt.init(e,n)}),WD=re("ZodBase64URL",(e,n)=>{vM.init(e,n),rt.init(e,n)}),ez=re("ZodE164",(e,n)=>{yM.init(e,n),rt.init(e,n)}),tz=re("ZodJWT",(e,n)=>{xM.init(e,n),rt.init(e,n)}),nz=re("ZodUnknown",(e,n)=>{SM.init(e,n),_t.init(e,n)});function a0(){return fD(nz)}const az=re("ZodNever",(e,n)=>{wM.init(e,n),_t.init(e,n)});function rz(e){return dD(az,e)}const iz=re("ZodArray",(e,n)=>{TM.init(e,n),_t.init(e,n),e.element=n.element,e.min=(r,s)=>e.check(wl(r,s)),e.nonempty=r=>e.check(wl(1,r)),e.max=(r,s)=>e.check(Ib(r,s)),e.length=(r,s)=>e.check(Jb(r,s)),e.unwrap=()=>e.element});function sz(e,n){return TD(iz,e,n)}const oz=re("ZodObject",(e,n)=>{EM.init(e,n),_t.init(e,n),Je(e,"shape",()=>n.shape),e.keyof=()=>dz(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:a0()}),e.loose=()=>e.clone({...e._zod.def,catchall:a0()}),e.strict=()=>e.clone({...e._zod.def,catchall:rz()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>r6(e,r),e.merge=r=>i6(e,r),e.pick=r=>n6(e,r),e.omit=r=>a6(e,r),e.partial=(...r)=>s6(i0,e,r[0]),e.required=(...r)=>o6(l0,e,r[0])});function r0(e,n){const r={type:"object",get shape(){return gr(this,"shape",e?J4(e):{}),this.shape},...Me(n)};return new oz(r)}const lz=re("ZodUnion",(e,n)=>{AM.init(e,n),_t.init(e,n),e.options=n.options});function uz(e,n){return new lz({type:"union",options:e,...Me(n)})}const cz=re("ZodIntersection",(e,n)=>{_M.init(e,n),_t.init(e,n)});function fz(e,n){return new cz({type:"intersection",left:e,right:n})}const cd=re("ZodEnum",(e,n)=>{CM.init(e,n),_t.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(s,l)=>{const c={};for(const f of s)if(r.has(f))c[f]=n.entries[f];else throw new Error(`Key ${f} not found in enum`);return new cd({...n,checks:[],...Me(l),entries:c})},e.exclude=(s,l)=>{const c={...n.entries};for(const f of s)if(r.has(f))delete c[f];else throw new Error(`Key ${f} not found in enum`);return new cd({...n,checks:[],...Me(l),entries:c})}});function dz(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new cd({type:"enum",entries:r,...Me(n)})}const hz=re("ZodTransform",(e,n)=>{MM.init(e,n),_t.init(e,n),e._zod.parse=(r,s)=>{r.addIssue=c=>{if(typeof c=="string")r.issues.push(Ds(c,r.value,n));else{const f=c;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=r.value),f.inst??(f.inst=e),r.issues.push(Ds(f))}};const l=n.transform(r.value,r);return l instanceof Promise?l.then(c=>(r.value=c,r)):(r.value=l,r)}});function mz(e){return new hz({type:"transform",transform:e})}const i0=re("ZodOptional",(e,n)=>{DM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType});function s0(e){return new i0({type:"optional",innerType:e})}const pz=re("ZodNullable",(e,n)=>{zM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType});function o0(e){return new pz({type:"nullable",innerType:e})}const gz=re("ZodDefault",(e,n)=>{RM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vz(e,n){return new gz({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():Mb(n)}})}const yz=re("ZodPrefault",(e,n)=>{VM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType});function bz(e,n){return new yz({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():Mb(n)}})}const l0=re("ZodNonOptional",(e,n)=>{OM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType});function xz(e,n){return new l0({type:"nonoptional",innerType:e,...Me(n)})}const Sz=re("ZodCatch",(e,n)=>{kM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wz(e,n){return new Sz({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const Tz=re("ZodPipe",(e,n)=>{$M.init(e,n),_t.init(e,n),e.in=n.in,e.out=n.out});function u0(e,n){return new Tz({type:"pipe",in:e,out:n})}const Ez=re("ZodReadonly",(e,n)=>{jM.init(e,n),_t.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Az(e){return new Ez({type:"readonly",innerType:e})}const c0=re("ZodCustom",(e,n)=>{NM.init(e,n),_t.init(e,n)});function _z(e,n={}){return ED(c0,e,n)}function Cz(e){return AD(e)}function Mz(e,n={error:`Input not instance of ${e.name}`}){const r=new c0({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...Me(n)});return r._zod.bag.Class=e,r}var Rs=e=>e.type==="checkbox",br=e=>e instanceof Date,qt=e=>e==null;const f0=e=>typeof e=="object";var ct=e=>!qt(e)&&!Array.isArray(e)&&f0(e)&&!br(e),d0=e=>ct(e)&&e.target?Rs(e.target)?e.target.checked:e.target.value:e,Dz=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,h0=(e,n)=>e.has(Dz(n)),zz=e=>{const n=e.constructor&&e.constructor.prototype;return ct(n)&&n.hasOwnProperty("isPrototypeOf")},fd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function wt(e){let n;const r=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(fd&&(e instanceof Blob||s))&&(r||ct(e)))if(n=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!zz(e))n=e;else for(const l in e)e.hasOwnProperty(l)&&(n[l]=wt(e[l]));else return e;return n}var Al=e=>/^\w*$/.test(e),ft=e=>e===void 0,dd=e=>Array.isArray(e)?e.filter(Boolean):[],hd=e=>dd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(e,n,r)=>{if(!n||!ct(e))return r;const s=(Al(n)?[n]:hd(n)).reduce((l,c)=>qt(l)?l:l[c],e);return ft(s)||s===e?ft(e[n])?r:e[n]:s},rn=e=>typeof e=="boolean",Ge=(e,n,r)=>{let s=-1;const l=Al(n)?[n]:hd(n),c=l.length,f=c-1;for(;++s<c;){const h=l[s];let m=r;if(s!==f){const p=e[h];m=ct(p)||Array.isArray(p)?p:isNaN(+l[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;e[h]=m,e=e[h]}};const _l={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Vn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},na={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},md=Re.createContext(null);md.displayName="HookFormContext";const Cl=()=>Re.useContext(md),Rz=e=>{const{children:n,...r}=e;return Re.createElement(md.Provider,{value:r},n)};var m0=(e,n,r,s=!0)=>{const l={defaultValues:n._defaultValues};for(const c in e)Object.defineProperty(l,c,{get:()=>{const f=c;return n._proxyFormState[f]!==Vn.all&&(n._proxyFormState[f]=!s||Vn.all),r&&(r[f]=!0),e[f]}});return l};const pd=typeof window<"u"?Re.useLayoutEffect:Re.useEffect;function p0(e){const n=Cl(),{control:r=n.control,disabled:s,name:l,exact:c}=e||{},[f,h]=Re.useState(r._formState),m=Re.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return pd(()=>r._subscribe({name:l,formState:m.current,exact:c,callback:p=>{!s&&h({...r._formState,...p})}}),[l,s,c]),Re.useEffect(()=>{m.current.isValid&&r._setValid(!0)},[r]),Re.useMemo(()=>m0(f,r,m.current,!1),[f,r])}var Hn=e=>typeof e=="string",g0=(e,n,r,s,l)=>Hn(e)?(s&&n.watch.add(e),de(r,e,l)):Array.isArray(e)?e.map(c=>(s&&n.watch.add(c),de(r,c))):(s&&(n.watchAll=!0),r),gd=e=>qt(e)||!f0(e);function aa(e,n,r=new WeakSet){if(gd(e)||gd(n))return e===n;if(br(e)&&br(n))return e.getTime()===n.getTime();const s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const c of s){const f=e[c];if(!l.includes(c))return!1;if(c!=="ref"){const h=n[c];if(br(f)&&br(h)||ct(f)&&ct(h)||Array.isArray(f)&&Array.isArray(h)?!aa(f,h,r):f!==h)return!1}}return!0}function Vz(e){const n=Cl(),{control:r=n.control,name:s,defaultValue:l,disabled:c,exact:f,compute:h}=e||{},m=Re.useRef(l),p=Re.useRef(h),g=Re.useRef(void 0);p.current=h;const y=Re.useMemo(()=>r._getWatch(s,m.current),[r,s]),[x,E]=Re.useState(p.current?p.current(y):y);return pd(()=>r._subscribe({name:s,formState:{values:!0},exact:f,callback:_=>{if(!c){const D=g0(s,r._names,_.values||r._formValues,!1,m.current);if(p.current){const $=p.current(D);aa($,g.current)||(E($),g.current=$)}else E(D)}}}),[r,c,s,f]),Re.useEffect(()=>r._removeUnmounted()),x}function Oz(e){const n=Cl(),{name:r,disabled:s,control:l=n.control,shouldUnregister:c,defaultValue:f}=e,h=h0(l._names.array,r),m=Re.useMemo(()=>de(l._formValues,r,de(l._defaultValues,r,f)),[l,r,f]),p=Vz({control:l,name:r,defaultValue:m,exact:!0}),g=p0({control:l,name:r,exact:!0}),y=Re.useRef(e),x=Re.useRef(l.register(r,{...e.rules,value:p,...rn(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const E=Re.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!de(g.errors,r)},isDirty:{enumerable:!0,get:()=>!!de(g.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!de(g.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!de(g.validatingFields,r)},error:{enumerable:!0,get:()=>de(g.errors,r)}}),[g,r]),_=Re.useCallback(R=>x.current.onChange({target:{value:d0(R),name:r},type:_l.CHANGE}),[r]),D=Re.useCallback(()=>x.current.onBlur({target:{value:de(l._formValues,r),name:r},type:_l.BLUR}),[r,l._formValues]),$=Re.useCallback(R=>{const Z=de(l._fields,r);Z&&R&&(Z._f.ref={focus:()=>R.focus&&R.focus(),select:()=>R.select&&R.select(),setCustomValidity:W=>R.setCustomValidity(W),reportValidity:()=>R.reportValidity()})},[l._fields,r]),X=Re.useMemo(()=>({name:r,value:p,...rn(s)||g.disabled?{disabled:g.disabled||s}:{},onChange:_,onBlur:D,ref:$}),[r,s,g.disabled,_,D,$,p]);return Re.useEffect(()=>{const R=l._options.shouldUnregister||c;l.register(r,{...y.current.rules,...rn(y.current.disabled)?{disabled:y.current.disabled}:{}});const Z=(W,Y)=>{const O=de(l._fields,W);O&&O._f&&(O._f.mount=Y)};if(Z(r,!0),R){const W=wt(de(l._options.defaultValues,r));Ge(l._defaultValues,r,W),ft(de(l._formValues,r))&&Ge(l._formValues,r,W)}return!h&&l.register(r),()=>{(h?R&&!l._state.action:R)?l.unregister(r):Z(r,!1)}},[r,l,h,c]),Re.useEffect(()=>{l._setDisabledField({disabled:s,name:r})},[s,r,l]),Re.useMemo(()=>({field:X,formState:g,fieldState:E}),[X,g,E])}const kz=e=>e.render(Oz(e));var vd=(e,n,r,s,l)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[s]:l||!0}}:{},Vs=e=>Array.isArray(e)?e:[e],v0=()=>{let e=[];return{get observers(){return e},next:l=>{for(const c of e)c.next&&c.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(c=>c!==l)}}),unsubscribe:()=>{e=[]}}},It=e=>ct(e)&&!Object.keys(e).length,yd=e=>e.type==="file",On=e=>typeof e=="function",Ml=e=>{if(!fd)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},y0=e=>e.type==="select-multiple",bd=e=>e.type==="radio",$z=e=>bd(e)||Rs(e),xd=e=>Ml(e)&&e.isConnected;function jz(e,n){const r=n.slice(0,-1).length;let s=0;for(;s<r;)e=ft(e)?s++:e[n[s++]];return e}function Nz(e){for(const n in e)if(e.hasOwnProperty(n)&&!ft(e[n]))return!1;return!0}function gt(e,n){const r=Array.isArray(n)?n:Al(n)?[n]:hd(n),s=r.length===1?e:jz(e,r),l=r.length-1,c=r[l];return s&&delete s[c],l!==0&&(ct(s)&&It(s)||Array.isArray(s)&&Nz(s))&&gt(e,r.slice(0,-1)),e}var b0=e=>{for(const n in e)if(On(e[n]))return!0;return!1};function Dl(e,n={}){const r=Array.isArray(e);if(ct(e)||r)for(const s in e)Array.isArray(e[s])||ct(e[s])&&!b0(e[s])?(n[s]=Array.isArray(e[s])?[]:{},Dl(e[s],n[s])):qt(e[s])||(n[s]=!0);return n}function x0(e,n,r){const s=Array.isArray(e);if(ct(e)||s)for(const l in e)Array.isArray(e[l])||ct(e[l])&&!b0(e[l])?ft(n)||gd(r[l])?r[l]=Array.isArray(e[l])?Dl(e[l],[]):{...Dl(e[l])}:x0(e[l],qt(n)?{}:n[l],r[l]):r[l]=!aa(e[l],n[l]);return r}var Os=(e,n)=>x0(e,n,Dl(n));const S0={value:!1,isValid:!1},w0={value:!0,isValid:!0};var T0=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ft(e[0].attributes.value)?ft(e[0].value)||e[0].value===""?w0:{value:e[0].value,isValid:!0}:w0:S0}return S0},E0=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:s})=>ft(e)?e:n?e===""?NaN:e&&+e:r&&Hn(e)?new Date(e):s?s(e):e;const A0={isValid:!1,value:null};var _0=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,A0):A0;function C0(e){const n=e.ref;return yd(n)?n.files:bd(n)?_0(e.refs).value:y0(n)?[...n.selectedOptions].map(({value:r})=>r):Rs(n)?T0(e.refs).value:E0(ft(n.value)?e.ref.value:n.value,e)}var Lz=(e,n,r,s)=>{const l={};for(const c of e){const f=de(n,c);f&&Ge(l,c,f._f)}return{criteriaMode:r,names:[...e],fields:l,shouldUseNativeValidation:s}},zl=e=>e instanceof RegExp,ks=e=>ft(e)?e:zl(e)?e.source:ct(e)?zl(e.value)?e.value.source:e.value:e,M0=e=>({isOnSubmit:!e||e===Vn.onSubmit,isOnBlur:e===Vn.onBlur,isOnChange:e===Vn.onChange,isOnAll:e===Vn.all,isOnTouch:e===Vn.onTouched});const D0="AsyncFunction";var Uz=e=>!!e&&!!e.validate&&!!(On(e.validate)&&e.validate.constructor.name===D0||ct(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===D0)),Bz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),z0=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const $s=(e,n,r,s)=>{for(const l of r||Object.keys(e)){const c=de(e,l);if(c){const{_f:f,...h}=c;if(f){if(f.refs&&f.refs[0]&&n(f.refs[0],l)&&!s)return!0;if(f.ref&&n(f.ref,f.name)&&!s)return!0;if($s(h,n))break}else if(ct(h)&&$s(h,n))break}}};function R0(e,n,r){const s=de(e,r);if(s||Al(r))return{error:s,name:r};const l=r.split(".");for(;l.length;){const c=l.join("."),f=de(n,c),h=de(e,c);if(f&&!Array.isArray(f)&&r!==c)return{name:r};if(h&&h.type)return{name:c,error:h};if(h&&h.root&&h.root.type)return{name:`${c}.root`,error:h.root};l.pop()}return{name:r}}var Pz=(e,n,r,s)=>{r(e);const{name:l,...c}=e;return It(c)||Object.keys(c).length>=Object.keys(n).length||Object.keys(c).find(f=>n[f]===(!s||Vn.all))},Zz=(e,n,r)=>!e||!n||e===n||Vs(e).some(s=>s&&(r?s===n:s.startsWith(n)||n.startsWith(s))),Hz=(e,n,r,s,l)=>l.isOnAll?!1:!r&&l.isOnTouch?!(n||e):(r?s.isOnBlur:l.isOnBlur)?!e:(r?s.isOnChange:l.isOnChange)?e:!0,Gz=(e,n)=>!dd(de(e,n)).length&&gt(e,n),qz=(e,n,r)=>{const s=Vs(de(e,r));return Ge(s,"root",n[r]),Ge(e,r,s),e},Rl=e=>Hn(e);function V0(e,n,r="validate"){if(Rl(e)||Array.isArray(e)&&e.every(Rl)||rn(e)&&!e)return{type:r,message:Rl(e)?e:"",ref:n}}var ui=e=>ct(e)&&!zl(e)?e:{value:e,message:""},O0=async(e,n,r,s,l,c)=>{const{ref:f,refs:h,required:m,maxLength:p,minLength:g,min:y,max:x,pattern:E,validate:_,name:D,valueAsNumber:$,mount:X}=e._f,R=de(r,D);if(!X||n.has(D))return{};const Z=h?h[0]:f,W=q=>{l&&Z.reportValidity&&(Z.setCustomValidity(rn(q)?"":q||""),Z.reportValidity())},Y={},O=bd(f),J=Rs(f),H=O||J,ce=($||yd(f))&&ft(f.value)&&ft(R)||Ml(f)&&f.value===""||R===""||Array.isArray(R)&&!R.length,me=vd.bind(null,D,s,Y),G=(q,ae,U,ne=na.maxLength,S=na.minLength)=>{const j=q?ae:U;Y[D]={type:q?ne:S,message:j,ref:f,...me(q?ne:S,j)}};if(c?!Array.isArray(R)||!R.length:m&&(!H&&(ce||qt(R))||rn(R)&&!R||J&&!T0(h).isValid||O&&!_0(h).isValid)){const{value:q,message:ae}=Rl(m)?{value:!!m,message:m}:ui(m);if(q&&(Y[D]={type:na.required,message:ae,ref:Z,...me(na.required,ae)},!s))return W(ae),Y}if(!ce&&(!qt(y)||!qt(x))){let q,ae;const U=ui(x),ne=ui(y);if(!qt(R)&&!isNaN(R)){const S=f.valueAsNumber||R&&+R;qt(U.value)||(q=S>U.value),qt(ne.value)||(ae=S<ne.value)}else{const S=f.valueAsDate||new Date(R),j=w=>new Date(new Date().toDateString()+" "+w),z=f.type=="time",le=f.type=="week";Hn(U.value)&&R&&(q=z?j(R)>j(U.value):le?R>U.value:S>new Date(U.value)),Hn(ne.value)&&R&&(ae=z?j(R)<j(ne.value):le?R<ne.value:S<new Date(ne.value))}if((q||ae)&&(G(!!q,U.message,ne.message,na.max,na.min),!s))return W(Y[D].message),Y}if((p||g)&&!ce&&(Hn(R)||c&&Array.isArray(R))){const q=ui(p),ae=ui(g),U=!qt(q.value)&&R.length>+q.value,ne=!qt(ae.value)&&R.length<+ae.value;if((U||ne)&&(G(U,q.message,ae.message),!s))return W(Y[D].message),Y}if(E&&!ce&&Hn(R)){const{value:q,message:ae}=ui(E);if(zl(q)&&!R.match(q)&&(Y[D]={type:na.pattern,message:ae,ref:f,...me(na.pattern,ae)},!s))return W(ae),Y}if(_){if(On(_)){const q=await _(R,r),ae=V0(q,Z);if(ae&&(Y[D]={...ae,...me(na.validate,ae.message)},!s))return W(ae.message),Y}else if(ct(_)){let q={};for(const ae in _){if(!It(q)&&!s)break;const U=V0(await _[ae](R,r),Z,ae);U&&(q={...U,...me(ae,U.message)},W(U.message),s&&(Y[D]=q))}if(!It(q)&&(Y[D]={ref:Z,...q},!s))return Y}}return W(!0),Y};const Yz={mode:Vn.onSubmit,reValidateMode:Vn.onChange,shouldFocusError:!0};function Fz(e={}){let n={...Yz,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:On(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},l=ct(n.defaultValues)||ct(n.values)?wt(n.defaultValues||n.values)||{}:{},c=n.shouldUnregister?{}:wt(l),f={action:!1,mount:!1,watch:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},m,p=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let y={...g};const x={array:v0(),state:v0()},E=n.criteriaMode===Vn.all,_=A=>N=>{clearTimeout(p),p=setTimeout(A,N)},D=async A=>{if(!n.disabled&&(g.isValid||y.isValid||A)){const N=n.resolver?It((await J()).errors):await ce(s,!0);N!==r.isValid&&x.state.next({isValid:N})}},$=(A,N)=>{!n.disabled&&(g.isValidating||g.validatingFields||y.isValidating||y.validatingFields)&&((A||Array.from(h.mount)).forEach(K=>{K&&(N?Ge(r.validatingFields,K,N):gt(r.validatingFields,K))}),x.state.next({validatingFields:r.validatingFields,isValidating:!It(r.validatingFields)}))},X=(A,N=[],K,he,ue=!0,oe=!0)=>{if(he&&K&&!n.disabled){if(f.action=!0,oe&&Array.isArray(de(s,A))){const ve=K(de(s,A),he.argA,he.argB);ue&&Ge(s,A,ve)}if(oe&&Array.isArray(de(r.errors,A))){const ve=K(de(r.errors,A),he.argA,he.argB);ue&&Ge(r.errors,A,ve),Gz(r.errors,A)}if((g.touchedFields||y.touchedFields)&&oe&&Array.isArray(de(r.touchedFields,A))){const ve=K(de(r.touchedFields,A),he.argA,he.argB);ue&&Ge(r.touchedFields,A,ve)}(g.dirtyFields||y.dirtyFields)&&(r.dirtyFields=Os(l,c)),x.state.next({name:A,isDirty:G(A,N),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ge(c,A,N)},R=(A,N)=>{Ge(r.errors,A,N),x.state.next({errors:r.errors})},Z=A=>{r.errors=A,x.state.next({errors:r.errors,isValid:!1})},W=(A,N,K,he)=>{const ue=de(s,A);if(ue){const oe=de(c,A,ft(K)?de(l,A):K);ft(oe)||he&&he.defaultChecked||N?Ge(c,A,N?oe:C0(ue._f)):U(A,oe),f.mount&&D()}},Y=(A,N,K,he,ue)=>{let oe=!1,ve=!1;const ze={name:A};if(!n.disabled){if(!K||he){(g.isDirty||y.isDirty)&&(ve=r.isDirty,r.isDirty=ze.isDirty=G(),oe=ve!==ze.isDirty);const $e=aa(de(l,A),N);ve=!!de(r.dirtyFields,A),$e?gt(r.dirtyFields,A):Ge(r.dirtyFields,A,!0),ze.dirtyFields=r.dirtyFields,oe=oe||(g.dirtyFields||y.dirtyFields)&&ve!==!$e}if(K){const $e=de(r.touchedFields,A);$e||(Ge(r.touchedFields,A,K),ze.touchedFields=r.touchedFields,oe=oe||(g.touchedFields||y.touchedFields)&&$e!==K)}oe&&ue&&x.state.next(ze)}return oe?ze:{}},O=(A,N,K,he)=>{const ue=de(r.errors,A),oe=(g.isValid||y.isValid)&&rn(N)&&r.isValid!==N;if(n.delayError&&K?(m=_(()=>R(A,K)),m(n.delayError)):(clearTimeout(p),m=null,K?Ge(r.errors,A,K):gt(r.errors,A)),(K?!aa(ue,K):ue)||!It(he)||oe){const ve={...he,...oe&&rn(N)?{isValid:N}:{},errors:r.errors,name:A};r={...r,...ve},x.state.next(ve)}},J=async A=>{$(A,!0);const N=await n.resolver(c,n.context,Lz(A||h.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return $(A),N},H=async A=>{const{errors:N}=await J(A);if(A)for(const K of A){const he=de(N,K);he?Ge(r.errors,K,he):gt(r.errors,K)}else r.errors=N;return N},ce=async(A,N,K={valid:!0})=>{for(const he in A){const ue=A[he];if(ue){const{_f:oe,...ve}=ue;if(oe){const ze=h.array.has(oe.name),$e=ue._f&&Uz(ue._f);$e&&g.validatingFields&&$([he],!0);const Fe=await O0(ue,h.disabled,c,E,n.shouldUseNativeValidation&&!N,ze);if($e&&g.validatingFields&&$([he]),Fe[oe.name]&&(K.valid=!1,N))break;!N&&(de(Fe,oe.name)?ze?qz(r.errors,Fe,oe.name):Ge(r.errors,oe.name,Fe[oe.name]):gt(r.errors,oe.name))}!It(ve)&&await ce(ve,N,K)}}return K.valid},me=()=>{for(const A of h.unMount){const N=de(s,A);N&&(N._f.refs?N._f.refs.every(K=>!xd(K)):!xd(N._f.ref))&&De(A)}h.unMount=new Set},G=(A,N)=>!n.disabled&&(A&&N&&Ge(c,A,N),!aa(w(),l)),q=(A,N,K)=>g0(A,h,{...f.mount?c:ft(N)?l:Hn(A)?{[A]:N}:N},K,N),ae=A=>dd(de(f.mount?c:l,A,n.shouldUnregister?de(l,A,[]):[])),U=(A,N,K={})=>{const he=de(s,A);let ue=N;if(he){const oe=he._f;oe&&(!oe.disabled&&Ge(c,A,E0(N,oe)),ue=Ml(oe.ref)&&qt(N)?"":N,y0(oe.ref)?[...oe.ref.options].forEach(ve=>ve.selected=ue.includes(ve.value)):oe.refs?Rs(oe.ref)?oe.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(ue)?ve.checked=!!ue.find(ze=>ze===ve.value):ve.checked=ue===ve.value||!!ue)}):oe.refs.forEach(ve=>ve.checked=ve.value===ue):yd(oe.ref)?oe.ref.value="":(oe.ref.value=ue,oe.ref.type||x.state.next({name:A,values:wt(c)})))}(K.shouldDirty||K.shouldTouch)&&Y(A,ue,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&le(A)},ne=(A,N,K)=>{for(const he in N){if(!N.hasOwnProperty(he))return;const ue=N[he],oe=A+"."+he,ve=de(s,oe);(h.array.has(A)||ct(ue)||ve&&!ve._f)&&!br(ue)?ne(oe,ue,K):U(oe,ue,K)}},S=(A,N,K={})=>{const he=de(s,A),ue=h.array.has(A),oe=wt(N);Ge(c,A,oe),ue?(x.array.next({name:A,values:wt(c)}),(g.isDirty||g.dirtyFields||y.isDirty||y.dirtyFields)&&K.shouldDirty&&x.state.next({name:A,dirtyFields:Os(l,c),isDirty:G(A,oe)})):he&&!he._f&&!qt(oe)?ne(A,oe,K):U(A,oe,K),z0(A,h)&&x.state.next({...r,name:A}),x.state.next({name:f.mount?A:void 0,values:wt(c)})},j=async A=>{f.mount=!0;const N=A.target;let K=N.name,he=!0;const ue=de(s,K),oe=$e=>{he=Number.isNaN($e)||br($e)&&isNaN($e.getTime())||aa($e,de(c,K,$e))},ve=M0(n.mode),ze=M0(n.reValidateMode);if(ue){let $e,Fe;const Va=N.type?C0(ue._f):d0(A),Sn=A.type===_l.BLUR||A.type===_l.FOCUS_OUT,Ns=!Bz(ue._f)&&!n.resolver&&!de(r.errors,K)&&!ue._f.deps||Hz(Sn,de(r.touchedFields,K),r.isSubmitted,ze,ve),qn=z0(K,h,Sn);Ge(c,K,Va),Sn?(!N||!N.readOnly)&&(ue._f.onBlur&&ue._f.onBlur(A),m&&m(0)):ue._f.onChange&&ue._f.onChange(A);const Dt=Y(K,Va,Sn),ia=!It(Dt)||qn;if(!Sn&&x.state.next({name:K,type:A.type,values:wt(c)}),Ns)return(g.isValid||y.isValid)&&(n.mode==="onBlur"?Sn&&D():Sn||D()),ia&&x.state.next({name:K,...qn?{}:Dt});if(!Sn&&qn&&x.state.next({...r}),n.resolver){const{errors:xr}=await J([K]);if(oe(Va),he){const Sr=R0(r.errors,s,K),Vl=R0(xr,s,Sr.name||K);$e=Vl.error,K=Vl.name,Fe=It(xr)}}else $([K],!0),$e=(await O0(ue,h.disabled,c,E,n.shouldUseNativeValidation))[K],$([K]),oe(Va),he&&($e?Fe=!1:(g.isValid||y.isValid)&&(Fe=await ce(s,!0)));he&&(ue._f.deps&&le(ue._f.deps),O(K,Fe,$e,Dt))}},z=(A,N)=>{if(de(r.errors,N)&&A.focus)return A.focus(),1},le=async(A,N={})=>{let K,he;const ue=Vs(A);if(n.resolver){const oe=await H(ft(A)?A:ue);K=It(oe),he=A?!ue.some(ve=>de(oe,ve)):K}else A?(he=(await Promise.all(ue.map(async oe=>{const ve=de(s,oe);return await ce(ve&&ve._f?{[oe]:ve}:ve)}))).every(Boolean),!(!he&&!r.isValid)&&D()):he=K=await ce(s);return x.state.next({...!Hn(A)||(g.isValid||y.isValid)&&K!==r.isValid?{}:{name:A},...n.resolver||!A?{isValid:K}:{},errors:r.errors}),N.shouldFocus&&!he&&$s(s,z,A?ue:h.mount),he},w=A=>{const N={...f.mount?c:l};return ft(A)?N:Hn(A)?de(N,A):A.map(K=>de(N,K))},Q=(A,N)=>({invalid:!!de((N||r).errors,A),isDirty:!!de((N||r).dirtyFields,A),error:de((N||r).errors,A),isValidating:!!de(r.validatingFields,A),isTouched:!!de((N||r).touchedFields,A)}),se=A=>{A&&Vs(A).forEach(N=>gt(r.errors,N)),x.state.next({errors:A?r.errors:{}})},ie=(A,N,K)=>{const he=(de(s,A,{_f:{}})._f||{}).ref,ue=de(r.errors,A)||{},{ref:oe,message:ve,type:ze,...$e}=ue;Ge(r.errors,A,{...$e,...N,ref:he}),x.state.next({name:A,errors:r.errors,isValid:!1}),K&&K.shouldFocus&&he&&he.focus&&he.focus()},fe=(A,N)=>On(A)?x.state.subscribe({next:K=>"values"in K&&A(q(void 0,N),K)}):q(A,N,!0),Te=A=>x.state.subscribe({next:N=>{Zz(A.name,N.name,A.exact)&&Pz(N,A.formState||g,Jt,A.reRenderRoot)&&A.callback({values:{...c},...r,...N,defaultValues:l})}}).unsubscribe,Se=A=>(f.mount=!0,y={...y,...A.formState},Te({...A,formState:y})),De=(A,N={})=>{for(const K of A?Vs(A):h.mount)h.mount.delete(K),h.array.delete(K),N.keepValue||(gt(s,K),gt(c,K)),!N.keepError&&gt(r.errors,K),!N.keepDirty&&gt(r.dirtyFields,K),!N.keepTouched&&gt(r.touchedFields,K),!N.keepIsValidating&&gt(r.validatingFields,K),!n.shouldUnregister&&!N.keepDefaultValue&&gt(l,K);x.state.next({values:wt(c)}),x.state.next({...r,...N.keepDirty?{isDirty:G()}:{}}),!N.keepIsValid&&D()},Be=({disabled:A,name:N})=>{(rn(A)&&f.mount||A||h.disabled.has(N))&&(A?h.disabled.add(N):h.disabled.delete(N))},vt=(A,N={})=>{let K=de(s,A);const he=rn(N.disabled)||rn(n.disabled);return Ge(s,A,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:A}},name:A,mount:!0,...N}}),h.mount.add(A),K?Be({disabled:rn(N.disabled)?N.disabled:n.disabled,name:A}):W(A,!0,N.value),{...he?{disabled:N.disabled||n.disabled}:{},...n.progressive?{required:!!N.required,min:ks(N.min),max:ks(N.max),minLength:ks(N.minLength),maxLength:ks(N.maxLength),pattern:ks(N.pattern)}:{},name:A,onChange:j,onBlur:j,ref:ue=>{if(ue){vt(A,N),K=de(s,A);const oe=ft(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,ve=$z(oe),ze=K._f.refs||[];if(ve?ze.find($e=>$e===oe):oe===K._f.ref)return;Ge(s,A,{_f:{...K._f,...ve?{refs:[...ze.filter(xd),oe,...Array.isArray(de(l,A))?[{}]:[]],ref:{type:oe.type,name:A}}:{ref:oe}}}),W(A,!1,void 0,oe)}else K=de(s,A,{}),K._f&&(K._f.mount=!1),(n.shouldUnregister||N.shouldUnregister)&&!(h0(h.array,A)&&f.action)&&h.unMount.add(A)}}},Yt=()=>n.shouldFocusError&&$s(s,z,h.mount),Ct=A=>{rn(A)&&(x.state.next({disabled:A}),$s(s,(N,K)=>{const he=de(s,K);he&&(N.disabled=he._f.disabled||A,Array.isArray(he._f.refs)&&he._f.refs.forEach(ue=>{ue.disabled=he._f.disabled||A}))},0,!1))},Mt=(A,N)=>async K=>{let he;K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let ue=wt(c);if(x.state.next({isSubmitting:!0}),n.resolver){const{errors:oe,values:ve}=await J();r.errors=oe,ue=wt(ve)}else await ce(s);if(h.disabled.size)for(const oe of h.disabled)gt(ue,oe);if(gt(r.errors,"root"),It(r.errors)){x.state.next({errors:{}});try{await A(ue,K)}catch(oe){he=oe}}else N&&await N({...r.errors},K),Yt(),setTimeout(Yt);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:It(r.errors)&&!he,submitCount:r.submitCount+1,errors:r.errors}),he)throw he},Ft=(A,N={})=>{de(s,A)&&(ft(N.defaultValue)?S(A,wt(de(l,A))):(S(A,N.defaultValue),Ge(l,A,wt(N.defaultValue))),N.keepTouched||gt(r.touchedFields,A),N.keepDirty||(gt(r.dirtyFields,A),r.isDirty=N.defaultValue?G(A,wt(de(l,A))):G()),N.keepError||(gt(r.errors,A),g.isValid&&D()),x.state.next({...r}))},Gn=(A,N={})=>{const K=A?wt(A):l,he=wt(K),ue=It(A),oe=ue?l:he;if(N.keepDefaultValues||(l=K),!N.keepValues){if(N.keepDirtyValues){const ve=new Set([...h.mount,...Object.keys(Os(l,c))]);for(const ze of Array.from(ve))de(r.dirtyFields,ze)?Ge(oe,ze,de(c,ze)):S(ze,de(oe,ze))}else{if(fd&&ft(A))for(const ve of h.mount){const ze=de(s,ve);if(ze&&ze._f){const $e=Array.isArray(ze._f.refs)?ze._f.refs[0]:ze._f.ref;if(Ml($e)){const Fe=$e.closest("form");if(Fe){Fe.reset();break}}}}if(N.keepFieldsRef)for(const ve of h.mount)S(ve,de(oe,ve));else s={}}c=n.shouldUnregister?N.keepDefaultValues?wt(l):{}:wt(oe),x.array.next({values:{...oe}}),x.state.next({values:{...oe}})}h={mount:N.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!g.isValid||!!N.keepIsValid||!!N.keepDirtyValues,f.watch=!!n.shouldUnregister,x.state.next({submitCount:N.keepSubmitCount?r.submitCount:0,isDirty:ue?!1:N.keepDirty?r.isDirty:!!(N.keepDefaultValues&&!aa(A,l)),isSubmitted:N.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ue?{}:N.keepDirtyValues?N.keepDefaultValues&&c?Os(l,c):r.dirtyFields:N.keepDefaultValues&&A?Os(l,A):N.keepDirty?r.dirtyFields:{},touchedFields:N.keepTouched?r.touchedFields:{},errors:N.keepErrors?r.errors:{},isSubmitSuccessful:N.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},hi=(A,N)=>Gn(On(A)?A(c):A,N),js=(A,N={})=>{const K=de(s,A),he=K&&K._f;if(he){const ue=he.refs?he.refs[0]:he.ref;ue.focus&&(ue.focus(),N.shouldSelect&&On(ue.select)&&ue.select())}},Jt=A=>{r={...r,...A}},Ra={control:{register:vt,unregister:De,getFieldState:Q,handleSubmit:Mt,setError:ie,_subscribe:Te,_runSchema:J,_focusError:Yt,_getWatch:q,_getDirty:G,_setValid:D,_setFieldArray:X,_setDisabledField:Be,_setErrors:Z,_getFieldArray:ae,_reset:Gn,_resetDefaultValues:()=>On(n.defaultValues)&&n.defaultValues().then(A=>{hi(A,n.resetOptions),x.state.next({isLoading:!1})}),_removeUnmounted:me,_disableForm:Ct,_subjects:x,_proxyFormState:g,get _fields(){return s},get _formValues(){return c},get _state(){return f},set _state(A){f=A},get _defaultValues(){return l},get _names(){return h},set _names(A){h=A},get _formState(){return r},get _options(){return n},set _options(A){n={...n,...A}}},subscribe:Se,trigger:le,register:vt,handleSubmit:Mt,watch:fe,setValue:S,getValues:w,reset:hi,resetField:Ft,clearErrors:se,unregister:De,setError:ie,setFocus:js,getFieldState:Q};return{...Ra,formControl:Ra}}function k0(e={}){const n=Re.useRef(void 0),r=Re.useRef(void 0),[s,l]=Re.useState({isDirty:!1,isValidating:!1,isLoading:On(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:On(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:s},e.defaultValues&&!On(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...h}=Fz(e);n.current={...h,formState:s}}const c=n.current.control;return c._options=e,pd(()=>{const f=c._subscribe({formState:c._proxyFormState,callback:()=>l({...c._formState}),reRenderRoot:!0});return l(h=>({...h,isReady:!0})),c._formState.isReady=!0,f},[c]),Re.useEffect(()=>c._disableForm(e.disabled),[c,e.disabled]),Re.useEffect(()=>{e.mode&&(c._options.mode=e.mode),e.reValidateMode&&(c._options.reValidateMode=e.reValidateMode)},[c,e.mode,e.reValidateMode]),Re.useEffect(()=>{e.errors&&(c._setErrors(e.errors),c._focusError())},[c,e.errors]),Re.useEffect(()=>{e.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,e.shouldUnregister]),Re.useEffect(()=>{if(c._proxyFormState.isDirty){const f=c._getDirty();f!==s.isDirty&&c._subjects.state.next({isDirty:f})}},[c,s.isDirty]),Re.useEffect(()=>{e.values&&!aa(e.values,r.current)?(c._reset(e.values,{keepFieldsRef:!0,...c._options.resetOptions}),r.current=e.values,l(f=>({...f}))):c._resetDefaultValues()},[c,e.values]),Re.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),n.current.formState=m0(s,c),n.current}const $0=(e,n,r)=>{if(e&&"reportValidity"in e){const s=de(r,n);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Sd=(e,n)=>{for(const r in n.fields){const s=n.fields[r];s&&s.ref&&"reportValidity"in s.ref?$0(s.ref,r,e):s&&s.refs&&s.refs.forEach(l=>$0(l,r,e))}},j0=(e,n)=>{n.shouldUseNativeValidation&&Sd(e,n);const r={};for(const s in e){const l=de(n.fields,s),c=Object.assign(e[s]||{},{ref:l&&l.ref});if(Xz(n.names||Object.keys(e),s)){const f=Object.assign({},de(r,s));Ge(f,"root",c),Ge(r,s,f)}else Ge(r,s,c)}return r},Xz=(e,n)=>{const r=N0(n);return e.some(s=>N0(s).match(`^${r}\\.\\d+`))};function N0(e){return e.replace(/\]|\[/g,"")}function L0(e,n){try{var r=e()}catch(s){return n(s)}return r&&r.then?r.then(void 0,n):r}function Kz(e,n){for(var r={};e.length;){var s=e[0],l=s.code,c=s.message,f=s.path.join(".");if(!r[f])if("unionErrors"in s){var h=s.unionErrors[0].errors[0];r[f]={message:h.message,type:h.code}}else r[f]={message:c,type:l};if("unionErrors"in s&&s.unionErrors.forEach(function(g){return g.errors.forEach(function(y){return e.push(y)})}),n){var m=r[f].types,p=m&&m[s.code];r[f]=vd(f,n,r,l,p?[].concat(p,s.message):s.message)}e.shift()}return r}function Qz(e,n){for(var r={};e.length;){var s=e[0],l=s.code,c=s.message,f=s.path.join(".");if(!r[f])if(s.code==="invalid_union"&&s.errors.length>0){var h=s.errors[0][0];r[f]={message:h.message,type:h.code}}else r[f]={message:c,type:l};if(s.code==="invalid_union"&&s.errors.forEach(function(g){return g.forEach(function(y){return e.push(y)})}),n){var m=r[f].types,p=m&&m[s.code];r[f]=vd(f,n,r,l,p?[].concat(p,s.message):s.message)}e.shift()}return r}function U0(e,n,r){if(r===void 0&&(r={}),function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def}(e))return function(s,l,c){try{return Promise.resolve(L0(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](s,n)).then(function(f){return c.shouldUseNativeValidation&&Sd({},c),{errors:{},values:r.raw?Object.assign({},s):f}})},function(f){if(function(h){return Array.isArray(h?.issues)}(f))return{values:{},errors:j0(Kz(f.errors,!c.shouldUseNativeValidation&&c.criteriaMode==="all"),c)};throw f}))}catch(f){return Promise.reject(f)}};if(function(s){return"_zod"in s&&typeof s._zod=="object"}(e))return function(s,l,c){try{return Promise.resolve(L0(function(){return Promise.resolve((r.mode==="sync"?c6:f6)(e,s,n)).then(function(f){return c.shouldUseNativeValidation&&Sd({},c),{errors:{},values:r.raw?Object.assign({},s):f}})},function(f){if(function(h){return h instanceof sd}(f))return{values:{},errors:j0(Qz(f.issues,!c.shouldUseNativeValidation&&c.criteriaMode==="all"),c)};throw f}))}catch(f){return Promise.reject(f)}};throw new Error("Invalid input: not a Zod schema")}const B0=Rz,P0=C.createContext({}),ci=({...e})=>F.jsx(P0.Provider,{value:{name:e.name},children:F.jsx(kz,{...e})}),Iz=()=>{const e=C.useContext(P0),n=C.useContext(Z0),{getFieldState:r}=Cl(),s=p0({name:e.name}),l=r(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:c}=n;return{id:c,name:e.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...l}},Z0=C.createContext({});function fi({className:e,...n}){const r=C.useId();return F.jsx(Z0.Provider,{value:{id:r},children:F.jsx("div",{"data-slot":"form-item",className:_a("grid gap-2",e),...n})})}function di({...e}){const{error:n,formItemId:r,formDescriptionId:s,formMessageId:l}=Iz();return F.jsx(wg,{"data-slot":"form-control",id:r,"aria-describedby":n?`${s} ${l}`:`${s}`,"aria-invalid":!!n,...e})}function Jz(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Array(12).fill(0);let wd=1;class Wz{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;const{message:s,...l}=n,c=typeof n?.id=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:wd++,f=this.toasts.find(m=>m.id===c),h=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(m=>m.id===c?(this.publish({...m,...n,id:c,title:s}),{...m,...n,id:c,dismissible:h,title:s}):m):this.addToast({title:s,...l,dismissible:h,id:c}),c},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:n,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const l=Promise.resolve(n instanceof Function?n():n);let c=s!==void 0,f;const h=l.then(async p=>{if(f=["resolve",p],Re.isValidElement(p))c=!1,this.create({id:s,type:"default",message:p});else if(tR(p)&&!p.ok){c=!1;const y=typeof r.error=="function"?await r.error(`HTTP error! status: ${p.status}`):r.error,x=typeof r.description=="function"?await r.description(`HTTP error! status: ${p.status}`):r.description,_=typeof y=="object"&&!Re.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:x,..._})}else if(p instanceof Error){c=!1;const y=typeof r.error=="function"?await r.error(p):r.error,x=typeof r.description=="function"?await r.description(p):r.description,_=typeof y=="object"&&!Re.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:x,..._})}else if(r.success!==void 0){c=!1;const y=typeof r.success=="function"?await r.success(p):r.success,x=typeof r.description=="function"?await r.description(p):r.description,_=typeof y=="object"&&!Re.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:x,..._})}}).catch(async p=>{if(f=["reject",p],r.error!==void 0){c=!1;const g=typeof r.error=="function"?await r.error(p):r.error,y=typeof r.description=="function"?await r.description(p):r.description,E=typeof g=="object"&&!Re.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:y,...E})}}).finally(()=>{c&&(this.dismiss(s),s=void 0),r.finally==null||r.finally.call(r)}),m=()=>new Promise((p,g)=>h.then(()=>f[0]==="reject"?g(f[1]):p(f[1])).catch(g));return typeof s!="string"&&typeof s!="number"?{unwrap:m}:Object.assign(s,{unwrap:m})},this.custom=(n,r)=>{const s=r?.id||wd++;return this.create({jsx:n(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bn=new Wz,eR=(e,n)=>{const r=n?.id||wd++;return bn.addToast({title:e,...n,id:r}),r},tR=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",nR=eR,aR=()=>bn.toasts,rR=()=>bn.getActiveToasts(),xn=Object.assign(nR,{success:bn.success,info:bn.info,warning:bn.warning,error:bn.error,custom:bn.custom,message:bn.message,promise:bn.promise,dismiss:bn.dismiss,loading:bn.loading},{getHistory:aR,getToasts:rR});Jz("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");const iR="/bg_alt.jpeg",sR="/nightlogo.png",oR=r0({email:t0("Invalid email address"),password:ud().min(8,"Password must be at least 8 characters")}),lR=r0({username:ud().min(4,"Username must be at least 4 characters"),email:t0("Invalid email address"),password:ud().min(8,"Password must be at least 8 characters"),avatar:Mz(File).refine(e=>{if(!e)return!1;const n=2*1024*1024,r=1024;if(e.size>n)return!1;const s=new Image;return s.src=URL.createObjectURL(e),new Promise(l=>{s.onload=()=>{l(s.width<=r&&s.height<=r)},s.onerror=()=>l(!1)})},"Avatar image must be smaller than 2MB and not exceed 1024x1024 pixels")}),uR={hidden:{transition:{staggerChildren:.08,staggerDirection:-1,delayChildren:.1}},visible:{transition:{delayChildren:.1,staggerChildren:.08}}},cR={hidden:{transition:{when:"afterChildren",staggerChildren:.08,staggerDirection:-1}},visible:{transition:{delayChildren:.5,staggerChildren:.08}}},sn={hidden:{y:20,opacity:0,transition:{ease:[.4,0,.2,1],duration:.3}},visible:{y:0,opacity:1,transition:{ease:[.4,0,.2,1],duration:.5,type:"spring",stiffness:260,damping:20}}};function fR({service:e="",visible:n=!0,onLogin:r,onCancel:s,API_URL:l="https://jwtauth-srv-api.night-x.com"}){const[c,f]=C.useState(!1),[h,m]=C.useState(!1),[p,g]=C.useState(!1),[y,x]=C.useState(null),[E,_]=C.useState(""),[D,$]=C.useState("");console.log(s);const X=k0({resolver:U0(oR),defaultValues:{email:"",password:""},mode:"onSubmit"}),R=k0({resolver:U0(lR),defaultValues:{username:"",email:"",password:"",avatar:void 0},mode:"onSubmit"});C.useEffect(()=>{n||g(!1)},[n]),C.useEffect(()=>{(async()=>{if(localStorage.getItem("access_token")){const J=await fetch(`${l}/get_user`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({access_token:localStorage.getItem("access_token")})});if(!J.ok){const ce=setTimeout(()=>{g(!0)},800);return()=>clearTimeout(ce)}const H=await J.json();x(H),r&&r()}else{const J=await fetch(`${l}/refresh`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(!J.ok){const ce=setTimeout(()=>{g(!0)},800);return()=>clearTimeout(ce)}const H=await J.json();localStorage.setItem("access_token",H.access_token),r&&r()}})()},[y]);const Z=()=>{m(!h)},W=async O=>{try{f(!0);const J=await fetch(`${l}/login`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(O)}),H=await J.json();if(!J.ok){xn.error(H.error||"Login failed"),f(!1);return}localStorage.setItem("access_token",H.access_token),xn.success("Welcome back!",{description:"Please consent to share your basic profile info with "+e}),f(!1),g(!1),setTimeout(function(){r&&r()},1e3)}catch(J){xn.error("Network error: "+J),f(!1)}},Y=async O=>{f(!0);try{const J=O.avatar;if(!J){xn.error("Avatar is required; please upload one."),f(!1);return}const H=2*1024*1024,ce=1024;if(J.size>H){xn.error("Avatar image must be smaller than 2MB."),f(!1);return}const me=new Image,G=URL.createObjectURL(J);await new Promise((ne,S)=>{me.onload=()=>{if(me.width>ce||me.height>ce){xn.error("Avatar image resolution must not exceed 1024x1024 pixels."),URL.revokeObjectURL(G),S(new Error("Invalid image dimensions"));return}ne(null)},me.onerror=()=>{xn.error("Invalid image file."),URL.revokeObjectURL(G),S(new Error("Invalid image file"))},me.src=G}),URL.revokeObjectURL(G);const q=await J.arrayBuffer(),ae=await fetch(`${l}/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:O.username,password:O.password,email:O.email,avatar:Array.from(new Uint8Array(q))})}),U=await ae.json();if(!ae.ok){xn.error(U.error||"Registration failed"),f(!1);return}xn.success("Account created successfully!",{description:"You can login with your new account if you want to redeem a Night+ subscription."}),f(!1),m(!1)}catch(J){xn.error("Network error: "+J),f(!1)}};return F.jsx("div",{className:"font flex flex-col items-center justify-center min-h-screen text-foreground",children:F.jsxs(pt.div,{initial:{opacity:0,scale:.95},animate:p?{opacity:1,scale:1}:{opacity:0,scale:.95},variants:cR,transition:{duration:.4,ease:[.4,0,.2,1]},className:"relative z-0 h-[calc(67vh+64px)] p-[24px] w-[60vw] rounded-[54px] flex flex-row bg-card border-x-[1.5px] border-t border-b border-border overflow-hidden",children:[F.jsx(pt.div,{initial:{scale:1,rotateY:0,perspective:800,transformStyle:"preserve-3d",filter:"blur(25px) brightness(1)",x:15},animate:p?{scale:1.02,rotateY:8,perspective:800,transformStyle:"preserve-3d",filter:"blur(0px) brightness(0.95)",x:0}:{scale:.9,rotateY:0,perspective:800,transformStyle:"preserve-3d",filter:"blur(15px) brightness(1.5)",x:15},transition:{duration:.3,delay:.1,ease:[.4,0,.2,1],rotateY:{duration:.4},scale:{duration:.4},x:{duration:.5}},style:{transformOrigin:"right center"},className:"relative flex-1 overflow-hidden w-full rounded-[30px] h-full",children:F.jsx(pt.img,{src:iR,alt:"Visual background",initial:{scale:1.1,x:15},animate:p?{scale:1.15,x:0}:{scale:1.1,x:15},transition:{duration:.4,delay:.15,ease:[.4,0,.2,1]},className:"w-full rounded-[30px] h-full object-cover",style:{transformOrigin:"center center"}})}),F.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center z-10 mt-[-20px] p-0",children:[F.jsxs(pt.div,{initial:{opacity:0,x:-30},animate:p?{opacity:1,x:0}:{opacity:0,x:-30},transition:{duration:.4,delay:.3,ease:[.4,0,.2,1]},className:"logo_parent flex flex-row items-center justify-center space-x-2 pt-[30px]",children:[F.jsx(pt.div,{initial:{scale:.3,opacity:0},animate:p?{scale:1,opacity:1}:{scale:.3,opacity:0},transition:{duration:.8,delay:.55,type:"spring",bounce:.6,ease:[.4,0,.2,1]},children:F.jsxs(MA,{className:"w-7 h-7",children:[F.jsx(DA,{src:sR,alt:"Logo"}),F.jsx(zA,{children:"NG"})]})}),F.jsx(pt.p,{initial:{opacity:0,x:-30},animate:p?{opacity:1,x:0}:{opacity:0,x:-30},transition:{duration:.6,delay:.3,ease:[.4,0,.2,1]},className:"text-bold text-foreground",children:"Night Network"})]}),F.jsx(S3,{mode:"wait",children:F.jsxs(pt.div,{variants:uR,initial:"hidden",animate:p?"visible":"hidden",exit:"hidden",transition:{delay:.6},className:"w-[70%] text-center",children:[!h&&F.jsxs(pt.div,{variants:sn,className:"translate-y-[15px] mb-4",children:[F.jsx(Ug,{className:"text-3xl scale-[0.9]",children:h?"Create Account":"Welcome back!"}),F.jsx(Pc,{className:"text-sm mt-1",children:h?"Get started with Night!":`Continue to ${e} with Night`})]}),h&&F.jsxs(pt.div,{variants:sn,className:"translate-y-[15px] mb-2",children:[F.jsx(Ug,{className:"text-3xl scale-[0.9]",children:h?"Create Account":"Welcome back!"}),F.jsx(Pc,{className:"text-sm mt-1",children:h?"Get started with Night!":`Continue to ${e} with Night`})]}),h?F.jsx(B0,{...R,children:F.jsxs("form",{onSubmit:R.handleSubmit(Y,O=>{Object.entries(O).map(([H,ce])=>({field:H.charAt(0).toUpperCase()+H.slice(1),message:ce?.message})).forEach(H=>{xn.error(H.field,{description:H.message})})}),className:"flex flex-col space-y-4 transform scale-[0.85] -translate-y-2",children:[F.jsx(pt.div,{variants:sn,children:F.jsx(ci,{control:R.control,name:"username",render:({field:O})=>F.jsx(fi,{children:F.jsx(di,{children:F.jsx(Ur,{label:"Username",placeholder:"Your username...",...O,onChange:J=>{O.onChange(J),_(J.target.value)}})})})})}),F.jsx(pt.div,{variants:sn,children:F.jsx(ci,{control:R.control,name:"email",render:({field:O})=>F.jsx(fi,{children:F.jsx(di,{children:F.jsx(Ur,{label:"Email address",type:"email",placeholder:"Your email...",...O,onChange:J=>{O.onChange(J),$(J.target.value)}})})})})}),F.jsx(pt.div,{variants:sn,children:F.jsx(ci,{control:R.control,name:"password",render:({field:O})=>F.jsx(fi,{children:F.jsx(di,{children:F.jsx(Ur,{label:"Password",type:"password",placeholder:"Your password...",...O})})})})}),F.jsx(pt.div,{variants:sn,children:F.jsx(ci,{control:R.control,name:"avatar",render:({field:{onChange:O,...J}})=>F.jsx(fi,{children:F.jsx(di,{children:F.jsx(Ur,{label:"Avatar",type:"file",previewUsername:E,previewEmail:D,onChange:H=>{const ce=H.target.files?.[0];ce&&ce.type.startsWith("image/")&&O(ce)},...J,value:J.value?"":void 0})})})})}),F.jsx(pt.div,{variants:sn,children:F.jsx(Qr,{className:"w-full rounded-full hover:cursor-pointer p-[23px]",type:"submit",disabled:c,children:c?F.jsxs(F.Fragment,{children:[F.jsx(wb,{size:18,className:""}),"Loading..."]}):"Create Account"})})]})}):F.jsx(B0,{...X,children:F.jsxs("form",{onSubmit:X.handleSubmit(W,O=>{Object.entries(O).map(([H,ce])=>({field:H.charAt(0).toUpperCase()+H.slice(1),message:ce?.message})).forEach(H=>{xn.error(H.field,{description:H.message})})}),className:"flex flex-col space-y-3 transform scale-[0.85] -translate-y-2",children:[F.jsx(pt.div,{variants:sn,children:F.jsx(ci,{control:X.control,name:"email",render:({field:O})=>F.jsx(fi,{children:F.jsx(di,{children:F.jsx(Ur,{label:"Email address",type:"email",placeholder:"Your email...",...O})})})})}),F.jsx(pt.div,{variants:sn,children:F.jsx(ci,{control:X.control,name:"password",render:({field:O})=>F.jsx(fi,{children:F.jsx(di,{children:F.jsx(Ur,{label:"Password",type:"password",placeholder:"Your password...",...O})})})})}),F.jsxs(pt.div,{variants:sn,className:"flex flex-row translate-y-[-13px]",children:[F.jsx(A2,{defaultSelected:!0,radius:"full",className:"pl-0 pt-0 whitespace-nowrap",style:{transform:"scale(0.65) translate(-20px)"},children:"Remember me"}),F.jsx(Qr,{className:"ml-auto pl-0 pt-0 text-muted-foreground",style:{transform:"scale(0.8) translateX(15px)"},variant:"link",children:"Forgot password?"})]}),F.jsx(pt.div,{variants:sn,children:F.jsx(Qr,{className:"w-full rounded-full hover:cursor-pointer p-[23px]",type:"submit",disabled:c,children:c?F.jsxs(F.Fragment,{children:[F.jsx(wb,{size:18,className:""}),"Loading..."]}):"Sign In"})}),F.jsx(pt.div,{variants:sn,children:F.jsx(Qr,{className:"w-full rounded-full hover:cursor-pointer p-[23px]",variant:"outline",children:"Sign in with..."})})]})}),F.jsx(pt.div,{variants:sn,className:"mt-2 transform scale-[0.85]",children:F.jsxs(Pc,{className:"text-muted-foreground text-xs mt-[-25px]",children:[h?"Already have an account?":"Don't have an account?"," ",F.jsx(Qr,{variant:"link",className:"pl-1 text-xs pb-0",onClick:Z,type:"button",children:h?"Sign in":"Sign up"})]})})]},h?"signup":"signin")})]})]})})}function dR({size:e=24,color:n="currentColor",...r}){return F.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:F.jsx("path",{d:"M11.2051 0.0263672C8.11696 1.59471 6 4.79931 6 8.5C6 13.7467 10.2533 18 15.5 18C19.2008 18 22.4044 15.8823 23.9727 12.7939C23.5639 19.0512 18.3606 24 12 24C5.37258 24 0 18.6274 0 12C0 5.6397 4.94827 0.435567 11.2051 0.0263672ZM16.2236 3.80762C16.5223 3.80762 16.763 3.8403 16.9443 3.9043C17.1361 3.95765 17.2691 4.05381 17.3438 4.19238C17.4397 4.39504 17.4883 4.6884 17.4883 5.07227V6.35156H18.7842C19.1572 6.35158 19.429 6.40021 19.5996 6.49609C19.7703 6.58143 19.8822 6.71515 19.9355 6.89648C19.9995 7.07776 20.0322 7.32274 20.0322 7.63184C20.0322 7.93026 20.0054 8.17028 19.9521 8.35156C19.8988 8.5329 19.8077 8.66166 19.6797 8.73633C19.4878 8.83218 19.2159 8.87986 18.8643 8.87988H17.4883V10.1758C17.4883 10.5491 17.4398 10.8215 17.3438 10.9922C17.2585 11.1626 17.1254 11.2798 16.9443 11.3438C16.763 11.3971 16.5173 11.4238 16.208 11.4238C15.9094 11.4238 15.6696 11.397 15.4883 11.3438C15.3069 11.2797 15.1782 11.1787 15.1035 11.04C15.0076 10.8374 14.96 10.544 14.96 10.1602V8.87988H13.5684C13.2164 8.87988 12.9598 8.83729 12.7998 8.75195C12.6399 8.66662 12.5338 8.53283 12.4805 8.35156C12.4272 8.15965 12.4004 7.91463 12.4004 7.61621C12.4004 7.31772 12.4272 7.07778 12.4805 6.89648C12.5444 6.70457 12.6506 6.57078 12.7998 6.49609C13.0024 6.40012 13.2958 6.35159 13.6797 6.35156H14.96V5.05566C14.96 4.68267 15.0027 4.41086 15.0879 4.24023C15.1732 4.06957 15.3069 3.95763 15.4883 3.9043C15.6802 3.84036 15.9252 3.80764 16.2236 3.80762Z",fill:r.fill??n})})}function hR(){const e=C.useId();return F.jsxs(Qr,{variant:"night",id:e,className:"signInWithNight border-solid border-2 border-sign-with-night-border rounded-full font p-[1rem] w-[17.5rem] transition-shadow duration-300 ease-out shadow-[inset_0_0_0_0_rgba(203,166,247,0)] hover:shadow-[inset_0_4px_12px_-4px_rgba(203,166,247,0.65)]",children:[F.jsx(dR,{size:18,className:"mr-1"})," Sign in with Night"]})}const mR={render:(e,n)=>{const r=Uw.createRoot(e);r.render(Re.createElement(fR,n)),e.__night_root=r},unmount:e=>{const n=e.__night_root;n&&typeof n.unmount=="function"?n.unmount():e.innerHTML=""}};nr.SignInWithNight=hR,nr.default=mR,Object.defineProperties(nr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
114
+ //# sourceMappingURL=night-login-frame.umd.js.map