@wellesley/notifications 1.0.541 → 1.0.543
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{api as ad,usePostApiV1BlockByUserIdMutation as X1,useDeleteApiV1BlockByUserIdMutation as e_,usePostApiV1UsersFollowByUsernameAcceptMutation as t_,usePostApiV1UsersFollowByUsernameRejectMutation as n_,useGetApiV1UsersFolloweesQuery as r_,useGetApiV1UsersByUserIdFollowingQuery as i_,useGetApiV1SearchQuery as s_}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.
|
|
1
|
+
import{api as ad,usePostApiV1BlockByUserIdMutation as X1,useDeleteApiV1BlockByUserIdMutation as e_,usePostApiV1UsersFollowByUsernameAcceptMutation as t_,usePostApiV1UsersFollowByUsernameRejectMutation as n_,useGetApiV1UsersFolloweesQuery as r_,useGetApiV1UsersByUserIdFollowingQuery as i_,useGetApiV1SearchQuery as s_}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.644";import we,{forwardRef as Py,createElement as Hv,useState as Kr,useRef as nl,useEffect as Zs,useCallback as Iv}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{cn as kt,Dialog as o_,DialogContent as a_,Form as zy,FormField as jy,FormItem as l_,FormLabel as u_,FormControl as c_,Input as Dy,Command as f_,CommandList as d_,CommandItem as p_,FormMessage as h_,Button as Bc,ButtonLoader as Zv,TooltipWrapper as Yv,Avatar as m_,AvatarImage as g_,Skeleton as v_,DropdownMenu as Uy,DropdownMenuTrigger as $y,DropdownMenuContent as Fy,DropdownMenuItem as By,useIsMobile as y_,Tabs as __,TabsList as w_,TabsTrigger as A0,TabsContent as O0,HoverCard as x_,HoverCardTrigger as S_,HoverCardContent as k_,Tooltip as b_,TooltipTrigger as E_,TooltipContent as C_}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.606";import{useDispatch as nm,useSelector as Qn}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{rootReducer as d0,getStore as N_}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.643";import{createSlice as dd,createAction as Wy,createSelector as p0}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{ToastContainer as I_,toast as M_}from"https://cdn.jsdelivr.net/npm/react-toastify@10.0.5/+esm";import{authSlice as pd}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.700";import{get as Qv,set as Mv,appendErrors as T_,useForm as h0,FormProvider as A_}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{useAppsNavigate as O_,ExternalLinks as R_,AppsLink as Dh}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.572";import{usePostApiV1UsersFollowByUsernameMutation as L_,usePostApiV1UsersFollowByUsernameUndoMutation as P_,canFollowBack as z_,isFollowPending as j_,canUnfollow as R0,useIsOwnProfile as m0,useRelationship as D_,useCurrentUser as Vy,useGetUserByUserName as U_,useGetUserById as $_,usePostApiV1MuteByUserIdMutation as F_,useDeleteApiV1MuteByUserIdMutation as B_,isMuted as W_,usePutApiV1NotesMutation as V_,useDeleteApiV1NotesByUserIdMutation as H_,userSlice as g0,useGetApiV1UsersFollowersQuery as Z_,useGetApiV1UsersByUserIdFollowersQuery as Y_,UserAvatar as Hy,usePostApiV1UsersFollowByUsernameRejectMutation as Q_,canUnsubscribeFromMe as G_}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.659";import{getErrorMsg as sd}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.495";import{selectSmallestPreview as L0}from"https://cdn.jsdelivr.net/npm/@wellesley/uploads@1.0.529";import{useProfileSettings as Zy,platformSettingsSlice as q_,UserKeysSettings as K_}from"https://cdn.jsdelivr.net/npm/@wellesley/settings@1.0.601";import{wsSlice as J_}from"https://cdn.jsdelivr.net/npm/@wellesley/ws@1.0.626";var Fc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P0,Oh={exports:{}},X_=Oh.exports;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Lodash <https://lodash.com/>
|
|
@@ -57,7 +57,7 @@ import{api as ad,usePostApiV1BlockByUserIdMutation as X1,useDeleteApiV1BlockByUs
|
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the MIT license found in the
|
|
59
59
|
* LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/}function Hw(){if(Z0)return ys;Z0=1;var e=we,t=Vw();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function i(e,t){o(e,t),o(e+"Capture",t)}function o(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function f(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var a=p.hasOwnProperty(t)?p[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),S=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),I=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var z,O=Object.assign;function T(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var P=!1;function D(e,t){if(!e||P)return"";P=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{P=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?T(e):""}function R(e){switch(e.tag){case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case b:return"Portal";case x:return"Profiler";case w:return"StrictMode";case E:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function F(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Q(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=F(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function H(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function q(e,t){H(e,t);var n=F(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?G(e,t.type,n):t.hasOwnProperty("defaultValue")&&G(e,t.type,F(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function K(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function G(e,t,n){("number"!==t||V(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function X(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+F(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:F(r)}}function ne(e,t){var n=F(t.value),r=F(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var oe,se,le=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((oe=oe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var he=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ve=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,_e=null,xe=null;function ke(e){if(e=va(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=ba(t),be(e.stateNode,e.type,t))}}function Se(e){_e?xe?xe.push(e):xe=[e]:_e=e}function Ne(){if(_e){var e=_e,t=xe;if(xe=_e=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ee(e,t){return e(t)}function je(){}var Ce=!1;function Me(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return Ee(e,t,n)}finally{Ce=!1,(null!==_e||null!==xe)&&(je(),Ne())}}function Le(e,t){var r=e.stateNode;if(null===r)return null;var a=ba(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ie=!1;if(s)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch{Ie=!1}function ze(e,t,n,r,a,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Oe=!1,Te=null,Pe=!1,De=null,Re={onError:function(e){Oe=!0,Te=e}};function Ue(e,t,n,r,a,i,o,s,l){Oe=!1,Te=null,ze.apply(Re,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if($e(e)!==e)throw Error(n(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(a=i.return)){r=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Be(i),e;if(o===a)return Be(i),t;o=o.sibling}throw Error(n(188))}if(r.return!==a.return)r=i,a=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,a=o;break}if(l===a){s=!0,a=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,a=i;break}if(l===a){s=!0,a=o,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=t.unstable_scheduleCallback,Qe=t.unstable_cancelCallback,Ye=t.unstable_shouldYield,He=t.unstable_requestPaint,qe=t.unstable_now,Ke=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/ot|0)|0},it=Math.log,ot=Math.LN2;var st=64,lt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~a;0!==s?r=ut(s):0!==(i&=o)&&(r=ut(i))}else 0!==(o=n&~a)?r=ut(o):0!==i&&(r=ut(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-at(t)),r|=e[n],t&=~a;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,_t,wt,xt,kt,St=!1,Nt=[],Et=null,jt=null,Ct=null,Mt=new Map,Lt=new Map,It=[],At="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 submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Ot(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Tt(e){var t=ga(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void kt(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function Dt(e,t,n){Pt(e)&&n.delete(t)}function Rt(){St=!1,null!==Et&&Pt(Et)&&(Et=null),null!==jt&&Pt(jt)&&(jt=null),null!==Ct&&Pt(Ct)&&(Ct=null),Mt.forEach(Dt),Lt.forEach(Dt)}function Ut(e,n){e.blockedOn===n&&(e.blockedOn=null,St||(St=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rt)))}function $t(e){function t(t){return Ut(t,e)}if(0<Nt.length){Ut(Nt[0],e);for(var n=1;n<Nt.length;n++){var r=Nt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ut(Et,e),null!==jt&&Ut(jt,e),null!==Ct&&Ut(Ct,e),Mt.forEach(t),Lt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Tt(n),null===n.blockedOn&&It.shift()}var Ft=v.ReactCurrentBatchConfig,Bt=!0;function Wt(e,t,n,r){var a=vt,i=Ft.transition;Ft.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ft.transition=i}}function Zt(e,t,n,r){var a=vt,i=Ft.transition;Ft.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ft.transition=i}}function Vt(e,t,n,r){if(Bt){var a=Yt(e,t,n,r);if(null===a)Br(e,t,r,Qt,n),zt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Et=Ot(Et,e,t,n,r,a),!0;case"dragenter":return jt=Ot(jt,e,t,n,r,a),!0;case"mouseover":return Ct=Ot(Ct,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Mt.set(i,Ot(Mt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Lt.set(i,Ot(Lt.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==a;){var i=va(a);if(null!==i&&bt(i),null===(i=Yt(e,t,n,r))&&Br(e,t,r,Qt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Qt=null;function Yt(e,t,n,r){if(Qt=null,null!==(e=ga(e=ye(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Ht(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ke()){case Ge:return 1;case Je:return 4;case Xe:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var qt=null,Kt=null,Gt=null;function Jt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,a="value"in qt?qt.value:qt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return Gt=a.slice(e,1<t?1-t:void 0)}function Xt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?en:tn,this.isPropagationStopped=tn,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,an,on,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=O({},sn,{view:0,detail:0}),cn=nn(un),dn=O({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(rn=e.screenX-on.screenX,an=e.screenY-on.screenY):an=rn=0,on=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=nn(dn),pn=nn(O({},dn,{dataTransfer:0})),hn=nn(O({},un,{relatedTarget:0})),mn=nn(O({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=O({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=nn(gn),yn=nn(O({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function kn(){return xn}var Sn=O({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Xt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=nn(Sn),En=nn(O({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=nn(O({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Cn=nn(O({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=O({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=nn(Mn),In=[9,13,27,32],An=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var On=s&&"TextEvent"in window&&!zn,Tn=s&&(!An||zn&&8<zn&&11>=zn),Pn=" ",Dn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Fn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Wn(e,t,n,r){Se(r),0<(t=Zr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Qn(e){Pr(e,0)}function Yn(e){if(Z(ya(e)))return e}function Hn(e,t){if("change"===e)return t}var qn=!1;if(s){var Kn;if(s){var Gn="oninput"in document;if(!Gn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Gn="function"==typeof Jn.oninput}Kn=Gn}else Kn=!1;qn=Kn&&(!document.documentMode||9<document.documentMode)}function Xn(){Zn&&(Zn.detachEvent("onpropertychange",er),Vn=Zn=null)}function er(e){if("value"===e.propertyName&&Yn(Vn)){var t=[];Wn(t,Vn,e,ye(e)),Me(Qn,t)}}function tr(e,t,n){"focusin"===e?(Xn(),Vn=n,(Zn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Xn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Vn)}function rr(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!l.call(t,a)||!ir(e[a],t[a]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=lr(n,i);var o=lr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==V(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&or(gr,r)||(gr=r,0<(r=Zr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},wr={},xr={};function kr(e){if(wr[e])return wr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return wr[e]=n[t];return e}s&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Sr=kr("animationend"),Nr=kr("animationiteration"),Er=kr("animationstart"),jr=kr("transitionend"),Cr=new Map,Mr="abort auxClick 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(" ");function Lr(e,t){Cr.set(e,t),i(t,[e])}for(var Ir=0;Ir<Mr.length;Ir++){var Ar=Mr[Ir];Lr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Lr(Sr,"onAnimationEnd"),Lr(Nr,"onAnimationIteration"),Lr(Er,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(jr,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Tr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,i,o,s,l,u){if(Ue.apply(this,arguments),Oe){if(!Oe)throw Error(n(198));var c=Te;Oe=!1,Te=null,Pe||(Pe=!0,De=c)}}(a,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Tr(a,s,u),i=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Tr(a,s,u),i=l}}}if(Pe)throw e=De,Pe=!1,De=null,e}function Dr(e,t){var n=t[pa];void 0===n&&(n=t[pa]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Rr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,r.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Rr(t,!1,e),Rr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Rr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Ht(t)){case 1:var a=Wt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,a){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=ga(s)))return;if(5===(l=o.tag)||6===l){r=i=o;continue e}s=s.parentNode}}r=r.return}Me((function(){var r=i,a=ye(n),o=[];e:{var s=Cr.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Xt(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":u="focus",l=hn;break;case"focusout":u="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Sr:case Nr:case Er:l=mn;break;case jr:l=Cn;break;case"scroll":l=cn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Le(h,f))&&c.push(Wr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ve||!(u=n.relatedTarget||n.fromElement)||!ga(u)&&!u[fa])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ga(u):null)&&(u!==(d=$e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=En,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ya(l),p=null==u?s:ya(u),(s=new c(m,h+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,ga(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,m=f;m;m=Vr(m))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Qr(o,s,l,c,!1),null!==u&&null!==d&&Qr(o,d,u,c,!0)}if("select"===(l=(s=r?ya(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Hn;else if(Bn(s))if(qn)g=ar;else{g=nr;var v=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Wn(o,g,n,a):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&G(s,"number",s.value)),v=r?ya(r):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(hr=v,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(o,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,a)}var y;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Rn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Tn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=Jt()):(Kt="value"in(qt=a)?qt.value:qt.textContent,$n=!0)),0<(v=Zr(r,b)).length&&(b=new yn(b,e,null,n,a),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=On?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Dn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!An&&Rn(e,t)?(e=Jt(),Gt=Kt=qt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new yn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}Pr(o,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Le(e,n))&&r.unshift(Wr(e,i,a)),null!=(i=Le(e,t))&&r.push(Wr(e,i,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Le(n,i))&&o.unshift(Wr(n,l,s)):a||null!=(l=Le(n,i))&&o.push(Wr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Yr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function qr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Hr,"")}function Kr(e,t,r){if(t=qr(t),qr(e)!==t&&r)throw Error(n(425))}function Gr(){}var Jr=null,Xr=null;function ea(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0,ra="function"==typeof Promise?Promise:void 0,aa="function"==typeof queueMicrotask?queueMicrotask:typeof ra<"u"?function(e){return ra.resolve(null).then(e).catch(ia)}:ta;function ia(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);$t(t)}function sa(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function la(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ua=Math.random().toString(36).slice(2),ca="__reactFiber$"+ua,da="__reactProps$"+ua,fa="__reactContainer$"+ua,pa="__reactEvents$"+ua,ha="__reactListeners$"+ua,ma="__reactHandles$"+ua;function ga(e){var t=e[ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[ca]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=la(e);null!==e;){if(n=e[ca])return n;e=la(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[ca]||e[fa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ya(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ba(e){return e[da]||null}var _a=[],wa=-1;function xa(e){return{current:e}}function ka(e){0>wa||(e.current=_a[wa],_a[wa]=null,wa--)}function Sa(e,t){wa++,_a[wa]=e.current,e.current=t}var Na={},Ea=xa(Na),ja=xa(!1),Ca=Na;function Ma(e,t){var n=e.type.contextTypes;if(!n)return Na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function La(e){return null!=(e=e.childContextTypes)}function Ia(){ka(ja),ka(Ea)}function Aa(e,t,r){if(Ea.current!==Na)throw Error(n(168));Sa(Ea,t),Sa(ja,r)}function za(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var i in a=a.getChildContext())if(!(i in t))throw Error(n(108,$(e)||"Unknown",i));return O({},r,a)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Na,Ca=Ea.current,Sa(Ea,e),Sa(ja,ja.current),!0}function Ta(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=za(e,t,Ca),a.__reactInternalMemoizedMergedChildContext=e,ka(ja),ka(Ea),Sa(Ea,e)):ka(ja),Sa(ja,r)}var Pa=null,Da=!1,Ra=!1;function Ua(e){null===Pa?Pa=[e]:Pa.push(e)}function $a(){if(!Ra&&null!==Pa){Ra=!0;var e=0,t=vt;try{var n=Pa;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Pa=null,Da=!1}catch(t){throw null!==Pa&&(Pa=Pa.slice(e+1)),Ve(Ge,$a),t}finally{vt=t,Ra=!1}}return null}var Fa=[],Ba=0,Wa=null,Za=0,Va=[],Qa=0,Ya=null,Ha=1,qa="";function Ka(e,t){Fa[Ba++]=Za,Fa[Ba++]=Wa,Wa=e,Za=t}function Ga(e,t,n){Va[Qa++]=Ha,Va[Qa++]=qa,Va[Qa++]=Ya,Ya=e;var r=Ha;e=qa;var a=32-at(r)-1;r&=~(1<<a),n+=1;var i=32-at(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ha=1<<32-at(t)+a|n<<a|r,qa=i+e}else Ha=1<<i|n<<a|r,qa=e}function Ja(e){null!==e.return&&(Ka(e,1),Ga(e,1,0))}function Xa(e){for(;e===Wa;)Wa=Fa[--Ba],Fa[Ba]=null,Za=Fa[--Ba],Fa[Ba]=null;for(;e===Ya;)Ya=Va[--Qa],Va[Qa]=null,qa=Va[--Qa],Va[Qa]=null,Ha=Va[--Qa],Va[Qa]=null}var ei=null,ti=null,ni=!1,ri=null;function ai(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ii(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ei=e,ti=sa(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ei=e,ti=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ya?{id:Ha,overflow:qa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ei=e,ti=null,!0);default:return!1}}function oi(e){return!(!(1&e.mode)||128&e.flags)}function si(e){if(ni){var t=ti;if(t){var r=t;if(!ii(e,t)){if(oi(e))throw Error(n(418));t=sa(r.nextSibling);var a=ei;t&&ii(e,t)?ai(a,r):(e.flags=-4097&e.flags|2,ni=!1,ei=e)}}else{if(oi(e))throw Error(n(418));e.flags=-4097&e.flags|2,ni=!1,ei=e}}}function li(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ei=e}function ui(e){if(e!==ei)return!1;if(!ni)return li(e),ni=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ea(e.type,e.memoizedProps)),t&&(t=ti)){if(oi(e))throw ci(),Error(n(418));for(;t;)ai(e,t),t=sa(t.nextSibling)}if(li(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ti=sa(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ti=null}}else ti=ei?sa(e.stateNode.nextSibling):null;return!0}function ci(){for(var e=ti;e;)e=sa(e.nextSibling)}function di(){ti=ei=null,ni=!1}function fi(e){null===ri?ri=[e]:ri.push(e)}var pi=v.ReactCurrentBatchConfig;function hi(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mi=xa(null),gi=null,vi=null,yi=null;function bi(){yi=vi=gi=null}function _i(e){var t=mi.current;ka(mi),e._currentValue=t}function wi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xi(e,t){gi=e,yi=vi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(bs=!0),e.firstContext=null)}function ki(e){var t=e._currentValue;if(yi!==e)if(e={context:e,memoizedValue:t,next:null},null===vi){if(null===gi)throw Error(n(308));vi=e,gi.dependencies={lanes:0,firstContext:e}}else vi=vi.next=e;return t}var Si=null;function Ni(e){null===Si?Si=[e]:Si.push(e)}function Ei(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ni(t)):(n.next=a.next,a.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ci=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Cl){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,ji(e,n)}return null===(a=r.interleaved)?(t.next=t,Ni(r)):(t.next=a.next,a.next=t),r.interleaved=t,ji(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Oi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ti(e,t,n,r){var a=e.updateQueue;Ci=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?i=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=a.baseState;for(o=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=O({},d,f);break e;case 2:Ci=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=f;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(f=s).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Pl|=o,e.lanes=o,e.memoizedState=d}}function Pi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],i=a.callback;if(null!==i){if(a.callback=null,a=r,"function"!=typeof i)throw Error(n(191,i));i.call(a)}}}var Di=(new e.Component).refs;function Ri(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),i=Ii(r,a);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,a))&&(nu(t,e,a,r),zi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),i=Ii(r,a);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,a))&&(nu(t,e,a,r),zi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),a=Ii(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Ai(e,a,r))&&(nu(t,e,r,n),zi(t,e,r))}};function $i(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(a,i))}function Fi(e,t,n){var r=!1,a=Na,i=t.contextType;return"object"==typeof i&&null!==i?i=ki(i):(a=La(t)?Ca:Ea.current,i=(r=null!=(r=t.contextTypes))?Ma(e,a):Na),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Bi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ui.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Di,Mi(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=ki(i):(i=La(t)?Ca:Ea.current,a.context=Ma(e,i)),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ri(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ui.enqueueReplaceState(a,a.state,null),Ti(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Zi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var i=a,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=i.refs;t===Di&&(t=i.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qi(e){return(0,e._init)(e._payload)}function Yi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===M&&Qi(a)===t.type)?((r=i(t,n.props)).ref=Zi(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=Zi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ru(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Tu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=Zi(e,null,t),n.return=e,n;case b:return(t=Ru(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(J(t)||A(t))return(t=Tu(t,e.mode,n,null)).return=e,t;Vi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===a?u(e,t,n,r):null;case b:return n.key===a?c(e,t,n,r):null;case M:return p(e,t,(a=n._init)(n._payload),r)}if(J(n)||A(n))return null!==a?null:d(e,t,n,r,null);Vi(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case M:return h(e,t,n,(0,r._init)(r._payload),a)}if(J(r)||A(r))return d(t,e=e.get(n)||null,r,a,null);Vi(t,r)}return null}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===_&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var g=d.key,v=c;null!==v;){if(v.key===g){if((g=d.type)===_){if(7===v.tag){r(u,v.sibling),(c=i(v,d.props.children)).return=u,u=c;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===M&&Qi(g)===v.type){r(u,v.sibling),(c=i(v,d.props)).ref=Zi(u,v,d),c.return=u,u=c;break e}r(u,v);break}t(u,v),v=v.sibling}d.type===_?((c=Tu(d.props.children,u.mode,m,d.key)).return=u,u=c):((m=Ou(d.type,d.key,d.props,null,u.mode,m)).ref=Zi(u,c,d),m.return=u,u=m)}return s(u);case b:e:{for(v=d.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=i(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Ru(d,u.mode,m)).return=u,u=c}return s(u);case M:return l(u,c,(v=d._init)(d._payload),m)}if(J(d))return function(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=o(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ni&&Ka(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=o(d,i,m),null===c?u=d:c.sibling=d,c=d);return ni&&Ka(n,m),u}for(d=a(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),ni&&Ka(n,m),u}(u,c,d,m);if(A(d))return function(i,s,l,u){var c=A(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ni&&Ka(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return ni&&Ka(i,g),c}for(m=a(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),ni&&Ka(i,g),c}(u,c,d,m);Vi(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=i(c,d)).return=u,u=c):(r(u,c),(c=Du(d,u.mode,m)).return=u,u=c),s(u)):r(u,c)}}var Hi=Yi(!0),qi=Yi(!1),Ki={},Gi=xa(Ki),Ji=xa(Ki),Xi=xa(Ki);function eo(e){if(e===Ki)throw Error(n(174));return e}function to(e,t){switch(Sa(Xi,t),Sa(Ji,e),Sa(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ka(Gi),Sa(Gi,t)}function no(){ka(Gi),ka(Ji),ka(Xi)}function ro(e){eo(Xi.current);var t=eo(Gi.current),n=ie(t,e.type);t!==n&&(Sa(Ji,e),Sa(Gi,n))}function ao(e){Ji.current===e&&(ka(Gi),ka(Ji))}var io=xa(0);function oo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var so=[];function lo(){for(var e=0;e<so.length;e++)so[e]._workInProgressVersionPrimary=null;so.length=0}var uo=v.ReactCurrentDispatcher,co=v.ReactCurrentBatchConfig,fo=0,po=null,ho=null,mo=null,go=!1,vo=!1,yo=0,bo=0;function _o(){throw Error(n(321))}function wo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function xo(e,t,r,a,i,o){if(fo=o,po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uo.current=null===e||null===e.memoizedState?is:os,e=r(a,i),vo){o=0;do{if(vo=!1,yo=0,25<=o)throw Error(n(301));o+=1,mo=ho=null,t.updateQueue=null,uo.current=ss,e=r(a,i)}while(vo)}if(uo.current=as,t=null!==ho&&null!==ho.next,fo=0,mo=ho=po=null,go=!1,t)throw Error(n(300));return e}function ko(){var e=0!==yo;return yo=0,e}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mo?po.memoizedState=mo=e:mo=mo.next=e,mo}function No(){if(null===ho){var e=po.alternate;e=null!==e?e.memoizedState:null}else e=ho.next;var t=null===mo?po.memoizedState:mo.next;if(null!==t)mo=t,ho=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ho=e).memoizedState,baseState:ho.baseState,baseQueue:ho.baseQueue,queue:ho.queue,next:null},null===mo?po.memoizedState=mo=e:mo=mo.next=e}return mo}function Eo(e,t){return"function"==typeof t?t(e):t}function jo(e){var t=No(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=ho,i=a.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}a.baseQueue=i=o,r.pending=null}if(null!==i){o=i.next,a=a.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((fo&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=a):u=u.next=f,po.lanes|=d,Pl|=d}c=c.next}while(null!==c&&c!==o);null===u?s=a:u.next=l,ir(a,t.memoizedState)||(bs=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=u,r.lastRenderedState=a}if(null!==(e=r.interleaved)){i=e;do{o=i.lane,po.lanes|=o,Pl|=o,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Co(e){var t=No(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ir(o,t.memoizedState)||(bs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function Mo(){}function Lo(e,t){var r=po,a=No(),i=t(),o=!ir(a.memoizedState,i);if(o&&(a.memoizedState=i,bs=!0),a=a.queue,Bo(zo.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==mo&&1&mo.memoizedState.tag){if(r.flags|=2048,Do(9,Ao.bind(null,r,a,i,t),void 0,null),null===Ml)throw Error(n(349));30&fo||Io(r,t,i)}return i}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=po.updateQueue)?(t={lastEffect:null,stores:null},po.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ao(e,t,n,r){t.value=n,t.getSnapshot=r,Oo(t)&&To(e)}function zo(e,t,n){return n((function(){Oo(t)&&To(e)}))}function Oo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch{return!0}}function To(e){var t=ji(e,1);null!==t&&nu(t,e,1,-1)}function Po(e){var t=So();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t.queue=e,e=e.dispatch=es.bind(null,po,e),[t.memoizedState,e]}function Do(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=po.updateQueue)?(t={lastEffect:null,stores:null},po.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ro(){return No().memoizedState}function Uo(e,t,n,r){var a=So();po.flags|=e,a.memoizedState=Do(1|t,n,void 0,void 0===r?null:r)}function $o(e,t,n,r){var a=No();r=void 0===r?null:r;var i=void 0;if(null!==ho){var o=ho.memoizedState;if(i=o.destroy,null!==r&&wo(r,o.deps))return void(a.memoizedState=Do(t,n,i,r))}po.flags|=e,a.memoizedState=Do(1|t,n,i,r)}function Fo(e,t){return Uo(8390656,8,e,t)}function Bo(e,t){return $o(2048,8,e,t)}function Wo(e,t){return $o(4,2,e,t)}function Zo(e,t){return $o(4,4,e,t)}function Vo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qo(e,t,n){return n=null!=n?n.concat([e]):null,$o(4,4,Vo.bind(null,t,e),n)}function Yo(){}function Ho(e,t){var n=No();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qo(e,t){var n=No();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ko(e,t,n){return 21&fo?(ir(n,t)||(n=pt(),po.lanes|=n,Pl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Go(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{vt=n,co.transition=r}}function Jo(){return No().memoizedState}function Xo(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ts(e))ns(t,n);else if(null!==(n=Ei(e,t,n,r))){nu(n,e,r,eu()),rs(n,t,r)}}function es(e,t,n){var r=tu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ts(e))ns(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,ir(s,o)){var l=t.interleaved;return null===l?(a.next=a,Ni(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch{}null!==(n=Ei(e,t,a,r))&&(nu(n,e,r,a=eu()),rs(n,t,r))}}function ts(e){var t=e.alternate;return e===po||null!==t&&t===po}function ns(e,t){vo=go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var as={readContext:ki,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useInsertionEffect:_o,useLayoutEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useMutableSource:_o,useSyncExternalStore:_o,useId:_o,unstable_isNewReconciler:!1},is={readContext:ki,useCallback:function(e,t){return So().memoizedState=[e,void 0===t?null:t],e},useContext:ki,useEffect:Fo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Uo(4194308,4,Vo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=So();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=So();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Xo.bind(null,po,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},So().memoizedState=e},useState:Po,useDebugValue:Yo,useDeferredValue:function(e){return So().memoizedState=e},useTransition:function(){var e=Po(!1),t=e[0];return e=Go.bind(null,e[1]),So().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=po,i=So();if(ni){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ml)throw Error(n(349));30&fo||Io(a,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Fo(zo.bind(null,a,o,e),[e]),a.flags|=2048,Do(9,Ao.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=So(),t=Ml.identifierPrefix;if(ni){var n=qa;t=":"+t+"R"+(n=(Ha&~(1<<32-at(Ha)-1)).toString(32)+n),0<(n=yo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},os={readContext:ki,useCallback:Ho,useContext:ki,useEffect:Bo,useImperativeHandle:Qo,useInsertionEffect:Wo,useLayoutEffect:Zo,useMemo:qo,useReducer:jo,useRef:Ro,useState:function(){return jo(Eo)},useDebugValue:Yo,useDeferredValue:function(e){return Ko(No(),ho.memoizedState,e)},useTransition:function(){return[jo(Eo)[0],No().memoizedState]},useMutableSource:Mo,useSyncExternalStore:Lo,useId:Jo,unstable_isNewReconciler:!1},ss={readContext:ki,useCallback:Ho,useContext:ki,useEffect:Bo,useImperativeHandle:Qo,useInsertionEffect:Wo,useLayoutEffect:Zo,useMemo:qo,useReducer:Co,useRef:Ro,useState:function(){return Co(Eo)},useDebugValue:Yo,useDeferredValue:function(e){var t=No();return null===ho?t.memoizedState=e:Ko(t,ho.memoizedState,e)},useTransition:function(){return[Co(Eo)[0],No().memoizedState]},useMutableSource:Mo,useSyncExternalStore:Lo,useId:Jo,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=R(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zl||(Zl=!0,Vl=r),cs(0,t)},n}function ps(e,t,n){(n=Ii(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){cs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){cs(0,t),"function"!=typeof r&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ds;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Nu.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e)}var vs=v.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?qi(t,null,n,r):Hi(t,e.child,n,r)}function ws(e,t,n,r,a){n=n.render;var i=t.ref;return xi(t,a),r=xo(e,t,n,r,i,a),n=ko(),null===e||bs?(ni&&n&&Ja(t),t.flags|=1,_s(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Zs(e,t,a))}function xs(e,t,n,r,a){if(null===e){var i=n.type;return"function"!=typeof i||Au(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,a))}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:or)(o,r)&&e.ref===t.ref)return Zs(e,t,a)}return t.flags|=1,(e=zu(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,!(e.lanes&a))return t.lanes=e.lanes,Zs(e,t,a);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,a)}function Ss(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Sa(zl,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Sa(zl,Al),Al|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sa(zl,Al),Al|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Sa(zl,Al),Al|=r;return _s(e,t,a,n),t.child}function Ns(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,a){var i=La(n)?Ca:Ea.current;return i=Ma(t,i),xi(t,a),n=xo(e,t,n,r,i,a),r=ko(),null===e||bs?(ni&&r&&Ja(t),t.flags|=1,_s(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Zs(e,t,a))}function js(e,t,n,r,a){if(La(n)){var i=!0;Oa(t)}else i=!1;if(xi(t,a),null===t.stateNode)Ws(e,t),Fi(t,n,r),Wi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=ki(u):u=Ma(t,u=La(n)?Ca:Ea.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&Bi(t,o,r,u),Ci=!1;var f=t.memoizedState;o.state=f,Ti(t,r,o,a),l=t.memoizedState,s!==r||f!==l||ja.current||Ci?("function"==typeof c&&(Ri(t,n,c,r),l=t.memoizedState),(s=Ci||$i(t,n,s,r,f,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Li(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:hi(t.type,s),o.props=u,d=t.pendingProps,f=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=ki(l):l=Ma(t,l=La(n)?Ca:Ea.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||f!==l)&&Bi(t,o,r,l),Ci=!1,f=t.memoizedState,o.state=f,Ti(t,r,o,a);var h=t.memoizedState;s!==d||f!==h||ja.current||Ci?("function"==typeof p&&(Ri(t,n,p,r),h=t.memoizedState),(u=Ci||$i(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,i,a)}function Cs(e,t,n,r,a,i){Ns(e,t);var o=!!(128&t.flags);if(!r&&!o)return a&&Ta(t,n,!1),Zs(e,t,i);r=t.stateNode,vs.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Hi(t,e.child,null,i),t.child=Hi(t,null,s,i)):_s(e,t,s,i),t.memoizedState=r.state,a&&Ta(t,n,!0),t.child}function Ms(e){var t=e.stateNode;t.pendingContext?Aa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Aa(0,t.context,!1),to(e,t.containerInfo)}function Ls(e,t,n,r,a){return di(),fi(a),t.flags|=256,_s(e,t,n,r),t.child}var Is,As,zs,Os,Ts={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var a,i=t.pendingProps,o=io.current,s=!1,l=!!(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&!!(2&o)),a?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(o|=1),Sa(io,1&o),null===e)return si(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Pu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Tu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ps(r),t.memoizedState=Ts,e):Rs(t,l));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,r,a,i,o,s){if(r)return 256&t.flags?(t.flags&=-257,a=us(Error(n(422))),Us(e,t,s,a)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,i=t.mode,a=Pu({mode:"visible",children:a.children},i,0,null),o=Tu(o,i,s,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,1&t.mode&&Hi(t,e.child,null,s),t.child.memoizedState=Ps(s),t.memoizedState=Ts,o);if(!(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(a=i.nextSibling&&i.nextSibling.dataset)var l=a.dgst;return a=l,Us(e,t,s,a=us(o=Error(n(419)),a,void 0))}if(l=!!(s&e.childLanes),bs||l){if(null!==(a=Ml)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(a.suspendedLanes|s)?0:i)&&i!==o.retryLane&&(o.retryLane=i,ji(e,i),nu(a,e,i,-1))}return mu(),Us(e,t,s,a=us(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=ju.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ti=sa(i.nextSibling),ei=t,ni=!0,ri=null,null!==e&&(Va[Qa++]=Ha,Va[Qa++]=qa,Va[Qa++]=Ya,Ha=e.id,qa=e.overflow,Ya=t),t=Rs(t,a.children),t.flags|=4096,t)}(e,t,l,i,a,o,r);if(s){s=i.fallback,l=t.mode,a=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===o?(i=zu(o,u)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==a?s=zu(a,s):(s=Tu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ps(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ts,i}return e=(s=e.child).sibling,i=zu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Rs(e,t){return(t=Pu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&fi(r),Hi(t,e.child,null,n),(e=Rs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wi(e.return,t,n)}function Fs(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Bs(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(_s(e,t,r.children,n),2&(r=io.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Sa(io,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===oo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Fs(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===oo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Fs(t,!0,n,null,i);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Pl|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=zu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=zu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,r){var i=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return La(t.type)&&Ia(),Qs(t),null;case 3:return i=t.stateNode,no(),ka(ja),ka(Ea),lo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(ui(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ri&&(ou(ri),ri=null))),As(e,t),Qs(t),null;case 5:ao(t);var o=eo(Xi.current);if(r=t.type,null!==e&&null!=t.stateNode)zs(e,t,r,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Qs(t),null}if(e=eo(Gi.current),ui(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[ca]=t,i[da]=s,e=!!(1&t.mode),r){case"dialog":Dr("cancel",i),Dr("close",i);break;case"iframe":case"object":case"embed":Dr("load",i);break;case"video":case"audio":for(o=0;o<zr.length;o++)Dr(zr[o],i);break;case"source":Dr("error",i);break;case"img":case"image":case"link":Dr("error",i),Dr("load",i);break;case"details":Dr("toggle",i);break;case"input":Y(i,s),Dr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Dr("invalid",i);break;case"textarea":te(i,s),Dr("invalid",i)}for(var l in me(r,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Kr(i.textContent,u,e),o=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Kr(i.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Dr("scroll",i)}switch(r){case"input":W(i),K(i,s,!0);break;case"textarea":W(i),re(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Gr)}i=o,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[ca]=t,e[da]=i,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ge(r,i),r){case"dialog":Dr("cancel",e),Dr("close",e),o=i;break;case"iframe":case"object":case"embed":Dr("load",e),o=i;break;case"video":case"audio":for(o=0;o<zr.length;o++)Dr(zr[o],e);o=i;break;case"source":Dr("error",e),o=i;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=i;break;case"details":Dr("toggle",e),o=i;break;case"input":Y(e,i),o=Q(e,i),Dr("invalid",e);break;case"option":default:o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=O({},i,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,i),o=ee(e,i),Dr("invalid",e)}for(s in me(r,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?pe(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ue(e,c):"number"==typeof c&&ue(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Dr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":W(e),K(e,i,!1);break;case"textarea":W(e),re(e);break;case"option":null!=i.value&&e.setAttribute("value",""+F(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?X(e,!!i.multiple,s,!1):null!=i.defaultValue&&X(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Gr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)Os(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=eo(Xi.current),eo(Gi.current),ui(t)){if(i=t.stateNode,r=t.memoizedProps,i[ca]=t,(s=i.nodeValue!==r)&&null!==(e=ei))switch(e.tag){case 3:Kr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[ca]=t,t.stateNode=i}return Qs(t),null;case 13:if(ka(io),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ni&&null!==ti&&1&t.mode&&!(128&t.flags))ci(),di(),t.flags|=98560,s=!1;else if(s=ui(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ca]=t}else di(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),s=!1}else null!==ri&&(ou(ri),ri=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&io.current?0===Ol&&(Ol=3):mu())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return no(),As(e,t),null===e&&$r(t.stateNode.containerInfo),Qs(t),null;case 10:return _i(t.type._context),Qs(t),null;case 19:if(ka(io),null===(s=t.memoizedState))return Qs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Vs(s,!1);else{if(0!==Ol||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=oo(e))){for(t.flags|=128,Vs(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Sa(io,1&io.current|2),t.child}e=e.sibling}null!==s.tail&&qe()>Bl&&(t.flags|=128,i=!0,Vs(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=oo(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ni)return Qs(t),null}else 2*qe()-s.renderingStartTime>Bl&&1073741824!==r&&(t.flags|=128,i=!0,Vs(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=qe(),t.sibling=null,r=io.current,Sa(io,i?1&r|2:1&r),t):(Qs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?1073741824&Al&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Hs(e,t){switch(Xa(t),t.tag){case 1:return La(t.type)&&Ia(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return no(),ka(ja),ka(Ea),lo(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ao(t),null;case 13:if(ka(io),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));di()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ka(io),null;case 4:return no(),null;case 10:return _i(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},As=function(){},zs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,eo(Gi.current);var o,s=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),s=[];break;case"select":i=O({},i,{value:void 0}),r=O({},r,{value:void 0}),s=[];break;case"textarea":i=ee(e,i),r=ee(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Gr)}for(c in me(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Ks=!1,Gs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&el(t,n,i)}a=a.next}while(a!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ca],delete t[da],delete t[pa],delete t[ha],delete t[ma])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Gr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch{}switch(n.tag){case 5:Ks||Xs(n,t);case 6:var r=cl,a=dl;cl=null,fl(e,t,n),dl=a,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),$t(e)):oa(cl,n.stateNode));break;case 4:r=cl,a=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=a;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(2&i||4&i)&&el(n,t,o),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ks&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gs),t.forEach((function(t){var r=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var i=r[a];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(o,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&a){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&a&&null!==r&&Xs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&a&&null!==r&&Xs(r,r.return),32&e.flags){var i=e.stateNode;try{ue(i,"")}catch(t){Su(e,e.return,t)}}if(4&a&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==r?r.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&H(i,o),ge(l,s);var c=ge(l,o);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?le(i,f):"children"===d?ue(i,f):g(i,d,f,c)}switch(l){case"input":q(i,o);break;case"textarea":ne(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?X(i,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?X(i,!!o.multiple,o.defaultValue,!0):X(i,!!o.multiple,o.multiple?[]:"",!1))}i[da]=o}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&a){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Fl=qe())),4&a&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ks=(c=Ks)||d,ml(t,e),Ks=c):ml(t,e),vl(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(a,r,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){wl(f);continue}}null!==h?(h.return=p,Js=h):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=fe("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&a&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ol(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var i=a.stateNode;32&a.flags&&(ue(i,""),a.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var o=a.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var a=Js,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||qs;if(!o){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=qs;var u=Ks;if(qs=o,(Ks=l)&&!u)for(Js=a;null!==Js;)l=(o=Js).child,22===o.tag&&null!==o.memoizedState?xl(a):null!==l?(l.return=o,Js=l):xl(a);for(;null!==i;)Js=i,bl(i),i=i.sibling;Js=a,qs=s,Ks=u}_l(e)}else 8772&a.subtreeFlags&&null!==i?(i.return=a,Js=i):_l(e)}}function _l(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Ks)if(null===r)a.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:hi(t.type,r.memoizedProps);a.componentDidUpdate(i,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Pi(t,o,a);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Pi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(n(163))}Ks||512&t.flags&&al(t)}catch(e){Su(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){Su(t,a,e)}}var i=t.return;try{al(t)}catch(e){Su(t,i,e)}break;case 5:var o=t.return;try{al(t)}catch(e){Su(t,o,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var kl,Sl=Math.ceil,Nl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,jl=v.ReactCurrentBatchConfig,Cl=0,Ml=null,Ll=null,Il=0,Al=0,zl=xa(0),Ol=0,Tl=null,Pl=0,Dl=0,Rl=0,Ul=null,$l=null,Fl=0,Bl=1/0,Wl=null,Zl=!1,Vl=null,Ql=null,Yl=!1,Hl=null,ql=0,Kl=0,Gl=null,Jl=-1,Xl=0;function eu(){return 6&Cl?qe():-1!==Jl?Jl:Jl=qe()}function tu(e){return 1&e.mode?2&Cl&&0!==Il?Il&-Il:null!==pi.transition?(0===Xl&&(Xl=pt()),Xl):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Ht(e.type)),e):1}function nu(e,t,r,a){if(50<Kl)throw Kl=0,Gl=null,Error(n(185));mt(e,r,a),(!(2&Cl)||e!==Ml)&&(e===Ml&&(!(2&Cl)&&(Dl|=r),4===Ol&&su(e,Il)),ru(e,a),1===r&&0===Cl&&!(1&t.mode)&&(Bl=qe()+500,Da&&$a()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-at(i),s=1<<o,l=a[o];-1===l?(!(s&n)||s&r)&&(a[o]=dt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ct(e,e===Ml?Il:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Da=!0,Ua(e)}(lu.bind(null,e)):Ua(lu.bind(null,e)),aa((function(){!(6&Cl)&&$a()})),n=null;else{switch(yt(r)){case 1:n=Ge;break;case 4:n=Je;break;case 16:default:n=Xe;break;case 536870912:n=tt}n=Mu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Jl=-1,Xl=0,6&Cl)throw Error(n(327));var r=e.callbackNode;if(xu()&&e.callbackNode!==r)return null;var a=ct(e,e===Ml?Il:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=gu(e,a);else{t=a;var i=Cl;Cl|=2;var o=hu();for((Ml!==e||Il!==t)&&(Wl=null,Bl=qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}bi(),Nl.current=o,Cl=i,null!==Ll?t=0:(Ml=null,Il=0,t=Ol)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(a=i,t=iu(e,i))),1===t)throw r=Tl,fu(e,0),su(e,a),ru(e,qe()),r;if(6===t)su(e,a);else{if(i=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!ir(i(),a))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,a),2===t&&(o=ft(e),0!==o&&(a=o,t=iu(e,o))),1!==t)))throw r=Tl,fu(e,0),su(e,a),ru(e,qe()),r;switch(e.finishedWork=i,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:wu(e,$l,Wl);break;case 3:if(su(e,a),(130023424&a)===a&&10<(t=Fl+500-qe())){if(0!==ct(e,0))break;if(((i=e.suspendedLanes)&a)!==a){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ta(wu.bind(null,e,$l,Wl),t);break}wu(e,$l,Wl);break;case 4:if(su(e,a),(4194240&a)===a)break;for(t=e.eventTimes,i=-1;0<a;){var s=31-at(a);o=1<<s,(s=t[s])>i&&(i=s),a&=~o}if(a=i,10<(a=(120>(a=qe()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Sl(a/1960))-a)){e.timeoutHandle=ta(wu.bind(null,e,$l,Wl),a);break}wu(e,$l,Wl);break;default:throw Error(n(329))}}}return ru(e,qe()),e.callbackNode===r?au.bind(null,e):null}function iu(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=$l,$l=n,null!==t&&ou(t)),e}function ou(e){null===$l?$l=e:$l.push.apply($l,e)}function su(e,t){for(t&=~Rl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Cl)throw Error(n(327));xu();var t=ct(e,0);if(!(1&t))return ru(e,qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var a=ft(e);0!==a&&(t=a,r=iu(e,a))}if(1===r)throw r=Tl,fu(e,0),su(e,t),ru(e,qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,$l,Wl),ru(e,qe()),null}function uu(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Bl=qe()+500,Da&&$a())}}function cu(e){null!==Hl&&0===Hl.tag&&!(6&Cl)&&xu();var t=Cl;Cl|=1;var n=jl.transition,r=vt;try{if(jl.transition=null,vt=1,e)return e()}finally{vt=r,jl.transition=n,!(6&(Cl=t))&&$a()}}function du(){Al=zl.current,ka(zl)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(Xa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ia();break;case 3:no(),ka(ja),ka(Ea),lo();break;case 5:ao(r);break;case 4:no();break;case 13:case 19:ka(io);break;case 10:_i(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ml=e,Ll=e=zu(e.current,null),Il=Al=t,Ol=0,Tl=null,Rl=Dl=Pl=0,$l=Ul=null,null!==Si){for(t=0;t<Si.length;t++)if(null!==(r=(n=Si[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}Si=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(bi(),uo.current=as,go){for(var a=po.memoizedState;null!==a;){var i=a.queue;null!==i&&(i.pending=null),a=a.next}go=!1}if(fo=0,mo=ho=po=null,vo=!1,yo=0,El.current=null,null===r||null===r.return){Ol=1,Tl=t,Ll=null;break}e:{var o=e,s=r.return,l=r,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,gs(h,s,l,0,t),1&h.mode&&hs(o,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){hs(o,c,t),mu();break e}u=Error(n(426))}else if(ni&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),gs(v,s,l,0,t),fi(ls(u,l));break e}}o=u=ls(u,l),4!==Ol&&(Ol=2),null===Ul?Ul=[o]:Ul.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Oi(o,fs(0,u,t));break e;case 1:l=u;var y=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ql&&Ql.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Oi(o,ps(o,l,t));break e}}o=o.return}while(null!==o)}_u(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Nl.current;return Nl.current=as,null===e?as:e}function mu(){(0===Ol||3===Ol||2===Ol)&&(Ol=4),null===Ml||!(268435455&Pl)&&!(268435455&Dl)||su(Ml,Il)}function gu(e,t){var r=Cl;Cl|=2;var a=hu();for((Ml!==e||Il!==t)&&(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(bi(),Cl=r,Nl.current=a,null!==Ll)throw Error(n(261));return Ml=null,Il=0,Ol}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!Ye();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?_u(e):Ll=t,El.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Hs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Ol=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Al)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Ol&&(Ol=5)}function wu(e,t,r){var a=vt,i=jl.transition;try{jl.transition=null,vt=1,function(e,t,r,a){do{xu()}while(null!==Hl);if(6&Cl)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-at(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===Ml&&(Ll=Ml=null,Il=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Yl||(Yl=!0,Mu(Xe,(function(){return xu(),null}))),o=!!(15990&r.flags),15990&r.subtreeFlags||o){o=jl.transition,jl.transition=null;var s=vt;vt=1;var l=Cl;Cl|=4,El.current=null,function(e,t){if(Jr=Bt,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==o||0!==a&&3!==f.nodeType||(u=s+a),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===o&&++d===a&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xr={focusedElem:e,selectionRange:r},Bt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:hi(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,r),gl(r,e),fr(Xr),Bt=!!Jr,Xr=Jr=null,e.current=r,yl(r),He(),Cl=l,vt=s,jl.transition=o}else e.current=r;if(Yl&&(Yl=!1,Hl=e,ql=i),o=e.pendingLanes,0===o&&(Ql=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),ru(e,qe()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],a(i.value,{componentStack:i.stack,digest:i.digest});if(Zl)throw Zl=!1,e=Vl,Vl=null,e;1&ql&&0!==e.tag&&xu(),o=e.pendingLanes,1&o?e===Gl?Kl++:(Kl=0,Gl=e):Kl=0,$a()}(e,t,r,a)}finally{jl.transition=i,vt=a}return null}function xu(){if(null!==Hl){var e=yt(ql),t=jl.transition,r=vt;try{if(jl.transition=null,vt=16>e?16:e,null===Hl)var a=!1;else{if(e=Hl,Hl=null,ql=0,6&Cl)throw Error(n(331));var i=Cl;for(Cl|=4,Js=e.current;null!==Js;){var o=Js,s=o.child;if(16&Js.flags){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Js=s;else e:for(;null!==Js;){if(2048&(o=Js).flags)switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Js=y;break e}Js=o.return}}var b=e.current;for(Js=b;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Cl=i,$a(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch{}a=!0}return a}finally{vt=r,jl.transition=t}}return!1}function ku(e,t,n){e=Ai(e,t=fs(0,t=ls(n,t),1),1),t=eu(),null!==e&&(mt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ql||!Ql.has(r))){t=Ai(t,e=ps(t,e=ls(n,e),1),1),e=eu(),null!==t&&(mt(t,1,e),ru(t,e));break}}t=t.return}}function Nu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ml===e&&(Il&n)===n&&(4===Ol||3===Ol&&(130023424&Il)===Il&&500>qe()-Fl?fu(e,0):Rl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=lt,!(130023424&(lt<<=1))&&(lt=4194304)):t=1);var n=eu();null!==(e=ji(e,t))&&(mt(e,t,n),ru(e,n))}function ju(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Cu(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Eu(e,r)}function Mu(e,t){return Ve(e,t)}function Lu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Lu(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,r,a,i,o){var s=2;if(a=e,"function"==typeof e)Au(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Tu(r.children,i,o,t);case w:s=8,i|=8;break;case x:return(e=Iu(12,r,t,2|i)).elementType=x,e.lanes=o,e;case E:return(e=Iu(13,r,t,i)).elementType=E,e.lanes=o,e;case j:return(e=Iu(19,r,t,i)).elementType=j,e.lanes=o,e;case L:return Pu(r,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case S:s=9;break e;case N:s=11;break e;case C:s=14;break e;case M:s=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Iu(s,r,t,i)).elementType=e,t.type=a,t.lanes=o,t}function Tu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Pu(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function Ru(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,a,i,o,s,l){return e=new Uu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mi(i),e}function Fu(e){if(!e)return Na;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(La(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(La(r))return za(e,r,t)}return t}function Bu(e,t,n,r,a,i,o,s,l){return(e=$u(n,r,!0,e,0,i,0,s,l)).context=Fu(null),n=e.current,(i=Ii(r=eu(),a=tu(n))).callback=t??null,Ai(n,i,a),e.current.lanes=a,mt(e,a,r),ru(e,r),e}function Wu(e,t,n,r){var a=t.current,i=eu(),o=tu(a);return n=Fu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ai(a,t,o))&&(nu(e,a,o,i),zi(e,a,o)),o}function Zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||ja.current)bs=!0;else{if(!(e.lanes&r||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ms(t),di();break;case 5:ro(t);break;case 1:La(t.type)&&Oa(t);break;case 4:to(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Sa(mi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Sa(io,1&io.current),t.flags|=128,null):n&t.child.childLanes?Ds(e,t,n):(Sa(io,1&io.current),null!==(e=Zs(e,t,n))?e.sibling:null);Sa(io,1&io.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Sa(io,io.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Zs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ni&&1048576&t.flags&&Ga(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ws(e,t),e=t.pendingProps;var i=Ma(t,Ea.current);xi(t,r),i=xo(null,t,a,e,i,r);var o=ko();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,La(a)?(o=!0,Oa(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Mi(t),i.updater=Ui,t.stateNode=i,i._reactInternals=t,Wi(t,a,e,r),t=Cs(null,t,a,!0,o,r)):(t.tag=0,ni&&o&&Ja(t),_s(null,t,i,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"==typeof e)return Au(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===C)return 14}return 2}(a),e=hi(a,e),i){case 0:t=Es(null,t,a,e,r);break e;case 1:t=js(null,t,a,e,r);break e;case 11:t=ws(null,t,a,e,r);break e;case 14:t=xs(null,t,a,hi(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,i=t.pendingProps,Es(e,t,a,i=t.elementType===a?i:hi(a,i),r);case 1:return a=t.type,i=t.pendingProps,js(e,t,a,i=t.elementType===a?i:hi(a,i),r);case 3:e:{if(Ms(t),null===e)throw Error(n(387));a=t.pendingProps,i=(o=t.memoizedState).element,Li(e,t),Ti(t,a,null,r);var s=t.memoizedState;if(a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ls(e,t,a,r,i=ls(Error(n(423)),t));break e}if(a!==i){t=Ls(e,t,a,r,i=ls(Error(n(424)),t));break e}for(ti=sa(t.stateNode.containerInfo.firstChild),ei=t,ni=!0,ri=null,r=qi(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(di(),a===i){t=Zs(e,t,r);break e}_s(e,t,a,r)}t=t.child}return t;case 5:return ro(t),null===e&&si(t),a=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ea(a,i)?s=null:null!==o&&ea(a,o)&&(t.flags|=32),Ns(e,t),_s(e,t,s,r),t.child;case 6:return null===e&&si(t),null;case 13:return Ds(e,t,r);case 4:return to(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Hi(t,null,a,r):_s(e,t,a,r),t.child;case 11:return a=t.type,i=t.pendingProps,ws(e,t,a,i=t.elementType===a?i:hi(a,i),r);case 7:return _s(e,t,t.pendingProps,r),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Sa(mi,a._currentValue),a._currentValue=s,null!==o)if(ir(o.value,s)){if(o.children===i.children&&!ja.current){t=Zs(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===a){if(1===o.tag){(u=Ii(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=r,null!==(u=o.alternate)&&(u.lanes|=r),wi(o.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),wi(s,r,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}_s(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps.children,xi(t,r),a=a(i=ki(i)),t.flags|=1,_s(e,t,a,r),t.child;case 14:return i=hi(a=t.type,t.pendingProps),xs(e,t,a,i=hi(a.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,i=t.pendingProps,i=t.elementType===a?i:hi(a,i),Ws(e,t),t.tag=1,La(a)?(e=!0,Oa(t)):e=!1,xi(t,r),Fi(t,a,i),Wi(t,a,i,r),Cs(null,t,a,!0,e,r);case 19:return Bs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Hu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Xu(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"==typeof a){var s=a;a=function(){var e=Zu(o);s.call(e)}}Wu(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"==typeof r){var i=r;r=function(){var e=Zu(o);i.call(e)}}var o=Bu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=o,e[fa]=o.current,$r(8===e.nodeType?e.parentNode:e),cu(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Zu(l);s.call(e)}}var l=$u(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[fa]=l.current,$r(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,l,n,r)})),l}(n,t,e,a,r);return Zu(o)}qu.prototype.render=Hu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Hu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Wu(null,e,null,null)})),t[fa]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Tt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(gt(t,1|n),ru(t,qe()),!(6&Cl)&&(Bl=qe()+500,$a()))}break;case 13:cu((function(){var t=ji(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Qu(e,1)}},_t=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nu(t,e,134217728,eu());Qu(e,134217728)}},wt=function(e){if(13===e.tag){var t=tu(e),n=ji(e,t);if(null!==n)nu(n,e,t,eu());Qu(e,t)}},xt=function(){return vt},kt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var i=ba(a);if(!i)throw Error(n(90));Z(a),q(a,i)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&X(e,!!r.multiple,t,!1)}},Ee=uu,je=cu;var ec={usingClientEntryPoint:!1,Events:[va,ya,ba,Se,Ne,uu]},tc={findFiberByHostInstance:ga,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{nt=rc.inject(nc),rt=rc}catch{}}return ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,ys.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},ys.createRoot=function(e,t){if(!Ku(e))throw Error(n(299));var r=!1,a="",i=Yu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=$u(e,1,!1,null,0,r,0,a,i),e[fa]=t.current,$r(8===e.nodeType?e.parentNode:e),new Hu(t)},ys.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=We(t))?null:e.stateNode},ys.flushSync=function(e){return cu(e)},ys.hydrate=function(e,t,r){if(!Gu(t))throw Error(n(200));return Xu(null,e,t,!0,r)},ys.hydrateRoot=function(e,t,r){if(!Ku(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,i=!1,o="",s=Yu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Bu(t,null,e,1,r??null,i,0,o,s),e[fa]=t.current,$r(e),a)for(e=0;e<a.length;e++)i=(i=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},ys.render=function(e,t,r){if(!Gu(t))throw Error(n(200));return Xu(null,e,t,!1,r)},ys.unmountComponentAtNode=function(e){if(!Gu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu((function(){Xu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fa]=null}))})),!0)},ys.unstable_batchedUpdates=uu,ys.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Gu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xu(e,t,r,!1,a)},ys.version="18.2.0-next-9e3b772b8-20220608",ys}function Zw(){if(Y0)return zv.exports;return Y0=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),zv.exports=Hw(),zv.exports}var qy=Zw();const Yw=v0(qy);function Qw(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Gw=e=>{switch(e){case"success":return Jw;case"info":return ex;case"warning":return Xw;case"error":return tx;default:return null}},qw=Array(12).fill(0),Kw=({visible:e,className:t})=>we.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},we.createElement("div",{className:"sonner-spinner"},qw.map(((e,t)=>we.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`}))))),Jw=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xw=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ex=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),tx=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),nx=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},we.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),we.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),rx=()=>{const[e,t]=we.useState(document.hidden);return we.useEffect((()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),[]),e};let Gv=1;class ix{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Gv++,i=this.toasts.find((e=>e.id===a)),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map((t=>t.id===a?(this.publish({...t,...e,id:a,title:n}),{...t,...e,id:a,dismissible:o,title:n}):t)):this.addToast({title:n,...r,dismissible:o,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame((()=>this.subscribers.forEach((t=>t({id:e,dismiss:!0})))))):this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let a,i=void 0!==n;const o=r.then((async e=>{if(a=["resolve",e],we.isValidElement(e))i=!1,this.create({id:n,type:"default",message:e});else if(ox(e)&&!e.ok){i=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,a="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...o})}else if(e instanceof Error){i=!1;const r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...o})}else if(void 0!==t.success){i=!1;const r="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"success",description:a,...o})}})).catch((async e=>{if(a=["reject",e],void 0!==t.error){i=!1;const r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...o})}})).finally((()=>{i&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)})),s=()=>new Promise(((e,t)=>o.then((()=>"reject"===a[0]?t(a[1]):e(a[1]))).catch(t)));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||Gv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter((e=>!this.dismissedToasts.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ws=new ix,sx=(e,t)=>{const n=(null==t?void 0:t.id)||Gv++;return ws.addToast({title:e,...t,id:n}),n},ox=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,ax=sx,lx=()=>ws.toasts,ux=()=>ws.getActiveToasts(),qv=Object.assign(ax,{success:ws.success,info:ws.info,warning:ws.warning,error:ws.error,custom:ws.custom,message:ws.message,promise:ws.promise,dismiss:ws.dismiss,loading:ws.loading},{getHistory:lx,getToasts:ux});function Rm(e){return void 0!==e.label}Qw("[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 cx=3,fx="24px",dx="16px",Q0=4e3,px=356,hx=14,mx=45,gx=200;function tl(...e){return e.filter(Boolean).join(" ")}function vx(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const yx=e=>{var t,n,r,a,i,o,s,l,u;const{invert:c,toast:d,unstyled:f,interacting:p,setHeights:h,visibleToasts:m,heights:g,index:v,toasts:y,expanded:b,removeToast:_,defaultRichColors:w,closeButton:x,style:k,cancelButtonStyle:S,actionButtonStyle:N,className:E="",descriptionClassName:j="",duration:C,position:M,gap:L,expandByDefault:I,classNames:A,icons:z,closeButtonAriaLabel:O="Close toast"}=e,[T,P]=we.useState(null),[D,R]=we.useState(null),[U,$]=we.useState(!1),[F,B]=we.useState(!1),[W,Z]=we.useState(!1),[V,Q]=we.useState(!1),[Y,H]=we.useState(!1),[q,K]=we.useState(0),[G,J]=we.useState(0),X=we.useRef(d.duration||C||Q0),ee=we.useRef(null),te=we.useRef(null),ne=0===v,re=v+1<=m,ae=d.type,ie=!1!==d.dismissible,oe=d.className||"",se=d.descriptionClassName||"",le=we.useMemo((()=>g.findIndex((e=>e.toastId===d.id))||0),[g,d.id]),ue=we.useMemo((()=>{var e;return null!=(e=d.closeButton)?e:x}),[d.closeButton,x]),ce=we.useMemo((()=>d.duration||C||Q0),[d.duration,C]),de=we.useRef(0),fe=we.useRef(0),pe=we.useRef(0),he=we.useRef(null),[me,ge]=M.split("-"),ve=we.useMemo((()=>g.reduce(((e,t,n)=>n>=le?e:e+t.height),0)),[g,le]),ye=rx(),be=d.invert||c,_e="loading"===ae;fe.current=we.useMemo((()=>le*L+ve),[le,ve]),we.useEffect((()=>{X.current=ce}),[ce]),we.useEffect((()=>{$(!0)}),[]),we.useEffect((()=>{const e=te.current;if(e){const t=e.getBoundingClientRect().height;return J(t),h((e=>[{toastId:d.id,height:t,position:d.position},...e])),()=>h((e=>e.filter((e=>e.toastId!==d.id))))}}),[h,d.id]),we.useLayoutEffect((()=>{if(!U)return;const e=te.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,J(n),h((e=>e.find((e=>e.toastId===d.id))?e.map((e=>e.toastId===d.id?{...e,height:n}:e)):[{toastId:d.id,height:n,position:d.position},...e]))}),[U,d.title,d.description,h,d.id,d.jsx,d.action,d.cancel]);const xe=we.useCallback((()=>{B(!0),K(fe.current),h((e=>e.filter((e=>e.toastId!==d.id)))),setTimeout((()=>{_(d)}),gx)}),[d,_,h,fe]);we.useEffect((()=>{if(d.promise&&"loading"===ae||d.duration===1/0||"loading"===d.type)return;let e;return b||p||ye?(()=>{if(pe.current<de.current){const e=(new Date).getTime()-de.current;X.current=X.current-e}pe.current=(new Date).getTime()})():X.current!==1/0&&(de.current=(new Date).getTime(),e=setTimeout((()=>{null==d.onAutoClose||d.onAutoClose.call(d,d),xe()}),X.current)),()=>clearTimeout(e)}),[b,p,d,ae,ye,xe]),we.useEffect((()=>{d.delete&&(xe(),null==d.onDismiss||d.onDismiss.call(d,d))}),[xe,d.delete]);const ke=d.icon||(null==z?void 0:z[ae])||Gw(ae);var Se,Ne,Ee,je;return we.createElement("li",{tabIndex:0,ref:te,className:tl(E,oe,null==A?void 0:A.toast,null==d||null==(t=d.classNames)?void 0:t.toast,null==A?void 0:A.default,null==A?void 0:A[ae],null==d||null==(n=d.classNames)?void 0:n[ae]),"data-sonner-toast":"","data-rich-colors":null!=(Se=d.richColors)?Se:w,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":U,"data-promise":!!d.promise,"data-swiped":Y,"data-removed":F,"data-visible":re,"data-y-position":me,"data-x-position":ge,"data-index":v,"data-front":ne,"data-swiping":W,"data-dismissible":ie,"data-type":ae,"data-invert":be,"data-swipe-out":V,"data-swipe-direction":D,"data-expanded":!!(b||I&&U),"data-testid":d.testId,style:{"--index":v,"--toasts-before":v,"--z-index":y.length-v,"--offset":`${F?q:fe.current}px`,"--initial-height":I?"auto":`${G}px`,...k,...d.style},onDragEnd:()=>{Z(!1),P(null),he.current=null},onPointerDown:e=>{2!==e.button&&(_e||!ie||(ee.current=new Date,K(fe.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),he.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{var e,t,n;if(V||!ie)return;he.current=null;const r=Number((null==(e=te.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=te.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=(new Date).getTime()-(null==(n=ee.current)?void 0:n.getTime()),o="x"===T?r:a,s=Math.abs(o)/i;if(Math.abs(o)>=45||s>.11)return K(fe.current),null==d.onDismiss||d.onDismiss.call(d,d),R("x"===T?r>0?"right":"left":a>0?"down":"up"),xe(),void Q(!0);var l,u;null==(l=te.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(u=te.current)||u.style.setProperty("--swipe-amount-y","0px"),H(!1),Z(!1),P(null)},onPointerMove:t=>{var n,r,a;if(!he.current||!ie||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const i=t.clientY-he.current.y,o=t.clientX-he.current.x;var s;const l=null!=(s=e.swipeDirections)?s:vx(M);!T&&(Math.abs(o)>1||Math.abs(i)>1)&&P(Math.abs(o)>Math.abs(i)?"x":"y");let u={x:0,y:0};const c=e=>1/(1.5+Math.abs(e)/20);if("y"===T){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&i<0||l.includes("bottom")&&i>0)u.y=i;else{const e=i*c(i);u.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===T&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&o<0||l.includes("right")&&o>0)u.x=o;else{const e=o*c(o);u.x=Math.abs(e)<Math.abs(o)?e:o}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&H(!0),null==(r=te.current)||r.style.setProperty("--swipe-amount-x",`${u.x}px`),null==(a=te.current)||a.style.setProperty("--swipe-amount-y",`${u.y}px`)}},ue&&!d.jsx&&"loading"!==ae?we.createElement("button",{"aria-label":O,"data-disabled":_e,"data-close-button":!0,onClick:_e||!ie?()=>{}:()=>{xe(),null==d.onDismiss||d.onDismiss.call(d,d)},className:tl(null==A?void 0:A.closeButton,null==d||null==(r=d.classNames)?void 0:r.closeButton)},null!=(Ne=null==z?void 0:z.close)?Ne:nx):null,(ae||d.icon||d.promise)&&null!==d.icon&&(null!==(null==z?void 0:z[ae])||d.icon)?we.createElement("div",{"data-icon":"",className:tl(null==A?void 0:A.icon,null==d||null==(a=d.classNames)?void 0:a.icon)},d.promise||"loading"===d.type&&!d.icon?d.icon||(null!=z&&z.loading?we.createElement("div",{className:tl(null==A?void 0:A.loader,null==d||null==(je=d.classNames)?void 0:je.loader,"sonner-loader"),"data-visible":"loading"===ae},z.loading):we.createElement(Kw,{className:tl(null==A?void 0:A.loader,null==d||null==(Ee=d.classNames)?void 0:Ee.loader),visible:"loading"===ae})):null,"loading"!==d.type?ke:null):null,we.createElement("div",{"data-content":"",className:tl(null==A?void 0:A.content,null==d||null==(i=d.classNames)?void 0:i.content)},we.createElement("div",{"data-title":"",className:tl(null==A?void 0:A.title,null==d||null==(o=d.classNames)?void 0:o.title)},d.jsx?d.jsx:"function"==typeof d.title?d.title():d.title),d.description?we.createElement("div",{"data-description":"",className:tl(j,se,null==A?void 0:A.description,null==d||null==(s=d.classNames)?void 0:s.description)},"function"==typeof d.description?d.description():d.description):null),we.isValidElement(d.cancel)?d.cancel:d.cancel&&Rm(d.cancel)?we.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||S,onClick:e=>{Rm(d.cancel)&&ie&&(null==d.cancel.onClick||d.cancel.onClick.call(d.cancel,e),xe())},className:tl(null==A?void 0:A.cancelButton,null==d||null==(l=d.classNames)?void 0:l.cancelButton)},d.cancel.label):null,we.isValidElement(d.action)?d.action:d.action&&Rm(d.action)?we.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||N,onClick:e=>{Rm(d.action)&&(null==d.action.onClick||d.action.onClick.call(d.action,e),!e.defaultPrevented&&xe())},className:tl(null==A?void 0:A.actionButton,null==d||null==(u=d.classNames)?void 0:u.actionButton)},d.action.label):null)};function G0(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function _x(e,t){const n={};return[e,t].forEach(((e,t)=>{const r=1===t,a=r?"--mobile-offset":"--offset",i=r?dx:fx;function o(e){["top","right","bottom","left"].forEach((t=>{n[`${a}-${t}`]="number"==typeof e?`${e}px`:e}))}"number"==typeof e||"string"==typeof e?o(e):"object"==typeof e?["top","right","bottom","left"].forEach((t=>{void 0===e[t]?n[`${a}-${t}`]=i:n[`${a}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]})):o(i)})),n}const wx=we.forwardRef((function(e,t){const{id:n,invert:r,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:s,className:l,offset:u,mobileOffset:c,theme:d="light",richColors:f,duration:p,style:h,visibleToasts:m=cx,toastOptions:g,dir:v=G0(),gap:y=hx,icons:b,containerAriaLabel:_="Notifications"}=e,[w,x]=we.useState([]),k=we.useMemo((()=>n?w.filter((e=>e.toasterId===n)):w.filter((e=>!e.toasterId))),[w,n]),S=we.useMemo((()=>Array.from(new Set([a].concat(k.filter((e=>e.position)).map((e=>e.position)))))),[k,a]),[N,E]=we.useState([]),[j,C]=we.useState(!1),[M,L]=we.useState(!1),[I,A]=we.useState("system"!==d?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=we.useRef(null),O=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=we.useRef(null),P=we.useRef(!1),D=we.useCallback((e=>{x((t=>{var n;return null!=(n=t.find((t=>t.id===e.id)))&&n.delete||ws.dismiss(e.id),t.filter((({id:t})=>t!==e.id))}))}),[]);return we.useEffect((()=>ws.subscribe((e=>{e.dismiss?requestAnimationFrame((()=>{x((t=>t.map((t=>t.id===e.id?{...t,delete:!0}:t))))})):setTimeout((()=>{Yw.flushSync((()=>{x((t=>{const n=t.findIndex((t=>t.id===e.id));return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]}))}))}))}))),[w]),we.useEffect((()=>{if("system"!==d)return void A(d);if("system"===d&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",(({matches:e})=>{A(e?"dark":"light")}))}catch{e.addListener((({matches:e})=>{try{A(e?"dark":"light")}catch(e){console.error(e)}}))}}),[d]),we.useEffect((()=>{w.length<=1&&C(!1)}),[w]),we.useEffect((()=>{const e=e=>{var t,n;i.every((t=>e[t]||e.code===t))&&(C(!0),null==(n=z.current)||n.focus());"Escape"===e.code&&(document.activeElement===z.current||null!=(t=z.current)&&t.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[i]),we.useEffect((()=>{if(z.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,P.current=!1)}}),[z.current]),we.createElement("section",{ref:t,"aria-label":`${_} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map(((t,n)=>{var a;const[i,d]=t.split("-");return k.length?we.createElement("ol",{key:t,dir:"auto"===v?G0():v,tabIndex:-1,ref:z,className:l,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":i,"data-x-position":d,style:{"--front-toast-height":`${(null==(a=N[0])?void 0:a.height)||0}px`,"--width":"356px","--gap":`${y}px`,...h,..._x(u,c)},onBlur:e=>{P.current&&!e.currentTarget.contains(e.relatedTarget)&&(P.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||P.current||(P.current=!0,T.current=e.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{M||C(!1)},onDragEnd:()=>C(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||L(!0)},onPointerUp:()=>L(!1)},k.filter((e=>!e.position&&0===n||e.position===t)).map(((n,a)=>{var i,l;return we.createElement(yx,{key:n.id,icons:b,index:a,toast:n,defaultRichColors:f,duration:null!=(i=null==g?void 0:g.duration)?i:p,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:r,visibleToasts:m,closeButton:null!=(l=null==g?void 0:g.closeButton)?l:s,interacting:M,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,closeButtonAriaLabel:null==g?void 0:g.closeButtonAriaLabel,removeToast:D,toasts:k.filter((e=>e.position==n.position)),heights:N.filter((e=>e.position==n.position)),setHeights:E,expandByDefault:o,gap:y,expanded:j,swipeDirections:e.swipeDirections})}))):null})))})),xx="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzExMTY1XzE4NjcxX2NsaXBfcGF0aCkiIGRhdGEtZmlnbWEtc2tpcC1wYXJzZT0idHJ1ZSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAwLjAxMiAtMC4wMTIgMCAxMiAxMikiPjxmb3JlaWduT2JqZWN0IHg9Ii0xMDY2LjI0IiB5PSItMTA2Ni4yNCIgd2lkdGg9IjIxMzIuNDkiIGhlaWdodD0iMjEzMi40OSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tncm91bmQ6Y29uaWMtZ3JhZGllbnQoZnJvbSA5MGRlZyxyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpIDBkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAxKSA2My4yNDNkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAwKSAzNjBkZWcpO2hlaWdodDoxMDAlO3dpZHRoOjEwMCU7b3BhY2l0eToxIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PC9nPjwvZz48cGF0aCBkPSJNMjQgMTJDMjQgMTguNjI3NCAxOC42Mjc0IDI0IDEyIDI0QzUuMzcyNTggMjQgMCAxOC42Mjc0IDAgMTJDMCA1LjM3MjU4IDUuMzcyNTggMCAxMiAwQzE4LjYyNzQgMCAyNCA1LjM3MjU4IDI0IDEyWk0zLjU4ODMyIDEyQzMuNTg4MzIgMTYuNjQ1NiA3LjM1NDM2IDIwLjQxMTcgMTIgMjAuNDExN0MxNi42NDU2IDIwLjQxMTcgMjAuNDExNyAxNi42NDU2IDIwLjQxMTcgMTJDMjAuNDExNyA3LjM1NDM2IDE2LjY0NTYgMy41ODgzMiAxMiAzLjU4ODMyQzcuMzU0MzYgMy41ODgzMiAzLjU4ODMyIDcuMzU0MzYgMy41ODgzMiAxMloiIGRhdGEtZmlnbWEtZ3JhZGllbnQtZmlsbD0ieyYjMzQ7dHlwZSYjMzQ7OiYjMzQ7R1JBRElFTlRfQU5HVUxBUiYjMzQ7LCYjMzQ7c3RvcHMmIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4wfSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzoxLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzowLjE3NTY3NTAwNDcyMDY4Nzg3fSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzowLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzoxLjB9XSwmIzM0O3N0b3BzVmFyJiMzNDs6W3smIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjEuMCwmIzM0O2cmIzM0OzoxLjAsJiMzNDtiJiMzNDs6MS4wLCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuMH0seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4xNzU2NzUwMDQ3MjA2ODc4N30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MC4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MS4wfV0sJiMzNDt0cmFuc2Zvcm0mIzM0Ozp7JiMzNDttMDAmIzM0OzoxLjQ2OTU3NjIyMzEwMjIwMTRlLTE1LCYjMzQ7bTAxJiMzNDs6LTI0LjAsJiMzNDttMDImIzM0OzoyNC4wLCYjMzQ7bTEwJiMzNDs6MjQuMCwmIzM0O20xMSYjMzQ7OjEuNDY5NTc2MjIzMTAyMjAxNGUtMTUsJiMzNDttMTImIzM0OzotMS40Njk1NzYyMjMxMDIyMDE0ZS0xNX0sJiMzNDtvcGFjaXR5JiMzNDs6MS4wLCYjMzQ7YmxlbmRNb2RlJiMzNDs6JiMzNDtOT1JNQUwmIzM0OywmIzM0O3Zpc2libGUmIzM0Ozp0cnVlfSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJwYWludDBfYW5ndWxhcl8xMTE2NV8xODY3MV9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCAxMkMyNCAxOC42Mjc0IDE4LjYyNzQgMjQgMTIgMjRDNS4zNzI1OCAyNCAwIDE4LjYyNzQgMCAxMkMwIDUuMzcyNTggNS4zNzI1OCAwIDEyIDBDMTguNjI3NCAwIDI0IDUuMzcyNTggMjQgMTJaTTMuNTg4MzIgMTJDMy41ODgzMiAxNi42NDU2IDcuMzU0MzYgMjAuNDExNyAxMiAyMC40MTE3QzE2LjY0NTYgMjAuNDExNyAyMC40MTE3IDE2LjY0NTYgMjAuNDExNyAxMkMyMC40MTE3IDcuMzU0MzYgMTYuNjQ1NiAzLjU4ODMyIDEyIDMuNTg4MzJDNy4zNTQzNiAzLjU4ODMyIDMuNTg4MzIgNy4zNTQzNiAzLjU4ODMyIDEyWiIvPjwvY2xpcFBhdGg+PC9kZWZzPgo8L3N2Zz4K",Sx=e=>{switch(!0){case"success"===e:return L.jsx(yw,{color:"white"});case"error"===e:return L.jsx(Pw,{color:"white"});case"loading"===e:return L.jsx("img",{src:xx,className:"animate-forward animate-spin [animation-direction:reverse]"});default:return null}},kx={toastsSizes:{}},Ky=dd({name:"systemToast",initialState:kx,reducers:{addToastSize(e,t){const{id:n,size:r}=t.payload;e.toastsSizes[n]=r},removeToastSize(e,t){delete e.toastsSizes[t.payload]}},selectors:{selectToastSize:e=>Math.max(0,...Object.values(e.toastsSizes))}}).injectInto(d0),{addToastSize:bx,removeToastSize:Ex}=Ky.actions,{selectToastSize:Cx}=Ky.selectors,Nx=e=>{const{title:t,action:n,id:r,type:a,promise:i,dismiss:o}=e,s=nm(),l=Qn(Cx),[u,c]=Kr(a),[d,f]=Kr("loading"===a),p=nl(null),h=Sx(d?"loading":u);Zs((()=>{var e;s(bx({id:`${r}`,size:(null==(e=p.current)?void 0:e.offsetWidth)??0}))}),[d]),Zs((()=>()=>{s(Ex(`${r}`))}),[]),Zs((()=>{if(!i)return;let e=!1;return f(!0),i.then((()=>c("success"))).catch((()=>c("error"))).finally((()=>{e||f(!1)})),()=>{e=!0}}),[i]);return L.jsxs("div",{ref:p,onClick:()=>{n||o(r)},style:{minWidth:l},"data-testid":"toast-container",className:kt("gap-xs px-xs flex min-h-[56px] w-full items-center rounded-lg bg-slate-800",{"bg-red-dark":"error"===u,"border border-slate-700":"success"===u,"cursor-pointer":!n}),children:[h,L.jsx("p",{dangerouslySetInnerHTML:{__html:t},className:"text-base font-medium text-white"}),n&&L.jsx("button",{className:"h-s px-xs rounded-sm bg-slate-500 text-sm",onClick:()=>{n.onClick(),o(r)},children:n.label})]})},Ix=e=>e.action||"error"===e.type?7e5:5e5,Uv=(e,t)=>qv.custom((t=>L.jsx(Nx,{id:t,dismiss:qv.dismiss,...e})),{dismissible:!0,duration:Ix(e),toasterId:"system-bottom-toaster",...t}),yi={success:(e,t)=>Uv({type:"success",title:e},t),error:(e,t)=>Uv({type:"error",title:e},t),loading:(e,t)=>Uv({type:"loading",title:e},t),dismiss:e=>qv.dismiss(e)},vn=async(e,t,n)=>{try{return await e,t&&yi.success(t),e}catch(e){null==n||n(),yi.error(`${Bw(e)}`)}},Mx=e=>{if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)},Tx=e=>Mx(e)&&"type"in e&&"string"==typeof e.type,wt=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>Tx(t)&&t.type===e,t};wt("remoteReady");const Ax=wt("askLogin");wt("reselectUser"),wt("requestLogout"),wt("setConfirmLeavePage"),wt("requestChangePath");const Ox=wt("wsSubscribe"),Rx=wt("wsUnSubscribe");wt("hostStoreConnect"),wt("remoteLogin"),wt("remoteLogout"),wt("wsOnMessage"),wt("setRouterPath"),wt("setDeviceType");const Jy=wt("setUserError"),Xy=wt("setUserIsError"),Kv=wt("setUserPending"),Jv=wt("setUserSuccess"),e1=wt("setUserData"),Lx=wt("updateAccountData"),Px=wt("updateUser"),t1=wt("addNotification"),n1=wt("markNotification"),r1=wt("setNotificationsError"),i1=wt("setNotificationsList"),Xv=wt("setNotificationsPending"),s1=wt("setNotificationsTotalCount"),e0=wt("setNotificationsUnreadCount"),o1=wt("resetNotificationsState"),a1=wt("undoNotification");wt("setInstanceInfo"),wt("setInstanceInfoPending"),wt("setInstanceInfoError"),wt("setPlatformSettings"),wt("setProfileSettings"),wt("setGroupData"),wt("setGroupLoading"),Wy("requestMicroFrontendFetch"),Wy("sendMicroFrontendFetchResponse");const zx=ad.enhanceEndpoints({endpoints:{getApiV1Notifications:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){var a;t(Xv(!0));try{const e=await vn(n),i=(null==(a=r().user.data)?void 0:a.selectedUserId)||"";e&&t(i1({userId:i,list:e.data}))}catch(e){t(r1(e))}finally{t(Xv(!1))}}},postApiV1NotificationsByIdMark:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await vn(n),t(n1(e))}catch(e){yi.error(`Mark notification error, ${e}`)}}},postApiV1NotificationsMarkAll:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){await vn(n),t(e0(0))}},getApiV1NotificationsCount:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const r=await vn(n),a=!e.status;r&&t(a?s1(r.data):e0(r.data))}catch(e){yi.error(`Error getting unread notifications count', ${e}`)}}}}}),{useGetApiV1NotificationsQuery:jx,usePostApiV1NotificationsByIdMarkMutation:fE,usePostApiV1NotificationsMarkAllMutation:dE,useGetApiV1NotificationsCountQuery:Dx}=zx,q0={data:{userId:"",list:[]},count:{},isPending:!1},Ux=e=>e,$x=e=>e.error,Fx=e=>e.isPending,Bx=e=>{var t;return null==(t=e.count)?void 0:t.total},Wx=e=>{var t;return null==(t=e.count)?void 0:t.unread},Vx=e=>e.data.userId,y0=p0(Ux,(e=>e.data.list)),Hx=p0(y0,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),Zx=p0(y0,(e=>null==e?void 0:e.at(-1))),Vm=dd({name:"notifications",initialState:q0,reducers:{updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))}},extraReducers:e=>{e.addCase(Xv,((e,t)=>{e.isPending=t.payload})).addCase(r1,((e,t)=>{e.error=t.payload})).addCase(i1,((e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}})).addCase(t1,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(n1,((e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))})).addCase(s1,((e,t)=>{e.count.total=t.payload})).addCase(e0,((e,t)=>{e.count.unread=t.payload})).addCase(o1,(()=>q0)).addCase(a1,((e,t)=>{var n,r,a;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(a=e.data.list)?void 0:a.filter((e=>e.id!==i)))||[]}))},selectors:{selectError:$x,selectIsPending:Fx,selectTotalCount:Bx,selectUnreadCount:Wx,selectNotifications:y0,selectUnreadNotifications:Hx,selectLastNotification:Zx,selectNotificationsOwner:Vx}}),$v="toast-root",pE=()=>{const[e,t]=Kr(document.getElementById($v));return Zs((()=>{let e=document.getElementById($v);e||(e=document.createElement("div"),e.id=$v,document.body.appendChild(e)),t(e)}),[]),e?qy.createPortal(L.jsx(wx,{gap:8,theme:"dark",visibleToasts:3,id:"system-bottom-toaster",position:"bottom-center"}),e):null},hE=()=>L.jsx(I_,{position:"top-right",theme:"dark",limit:5,autoClose:5e3,containerId:"custom",hideProgressBar:!0,className:"custom-notifications"}),Yx=(e,t)=>M_(e,{...t,containerId:"custom"});var K0=function(e,t,n){if(e&&"reportValidity"in e){var r=Qv(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},l1=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?K0(r.ref,n,e):r.refs&&r.refs.forEach((function(t){return K0(t,n,e)}))};for(var r in t.fields)n(r)},Qx=function(e,t){t.shouldUseNativeValidation&&l1(e,t);var n={};for(var r in e){var a=Qv(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(Gx(t.names||Object.keys(e),r)){var o=Object.assign({},Qv(n,r));Mv(o,"root",i),Mv(n,r,o)}else Mv(n,r,i)}return n},Gx=function(e,t){return e.some((function(e){return e.startsWith(t+".")}))},qx=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=n[o].types,u=l&&l[r.code];n[o]=T_(o,t,n,a,u?[].concat(u,r.message):r.message)}e.shift()}return n},u1=function(e,t,n){return void 0===n&&(n={}),function(r,a,i){try{return Promise.resolve(function(a,o){try{var s=Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](r,t)).then((function(e){return i.shouldUseNativeValidation&&l1({},i),{errors:{},values:n.raw?r:e}}))}catch(e){return o(e)}return s&&s.then?s.then(void 0,o):s}(0,(function(e){if(null!=e.errors)return{values:{},errors:Qx(qx(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e})))}catch(e){return Promise.reject(e)}}};const Kx=e=>{try{return e.startsWith("https")||e.startsWith("http")?new URL(e).origin:new URL(`https://${e}`).origin}catch{throw new Error("Error getting domain from entered URL")}},Jx=e=>{const t=e.links.find((e=>"http://ostatus.org/schema/1.0/subscribe"===e.rel));return null==t?void 0:t.template},Xx=({template:e,user:t})=>null==e?void 0:e.replace("{uri}",t.uri),eS=async({url:e,...t})=>{const n=await fetch(e,t);if(!n.ok)throw new Error(n.statusText);if("PUT"===t.method)return;const r=await n.json(),a=r;if(a.errorCode)throw new Error(a.message);return r},tS=({user:e})=>async({url:t})=>{const n=Kx(t);try{const t=`${n}/.well-known/webfinger?resource=${n}`,r=await eS({url:t,headers:{Accept:"application/json"}});if(!r)return;const a=Jx(r),i=Xx({template:a,user:e});if(!i)throw new Error("Error getting follow link");window.open(i,"_self")}catch{window.open(`${n}/authorize_interaction?uri=${e.uri}`,"_self")}},nS=(e,t)=>{const n=e.at(0),r=(null==n?void 0:n.toUpperCase())===n&&"@"!==n,a=e.toLowerCase(),i=(null==t?void 0:t.toLowerCase())||"";if(!i)return e;const o=a.startsWith(i),s=a.replace(i,`<mark>${o?ld.capitalize(i):t}</mark>`);return r&&o?s:ld.capitalize(s)},rm=({open:e,modal:t,children:n,onCloseModal:r,className:a,...i})=>L.jsx(o_,{open:e,modal:t,onOpenChange:e=>{e||null==r||r()},children:L.jsx(a_,{className:kt(a),closeSize:"small",closeVariant:"insideCard",onCloseModal:r,...i,childrenClassName:kt("overflow-auto",i.title?"max-h-[calc(90vh-65px)]":"max-h-[90vh]",i.childrenClassName),children:n})});var Ot,t0;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Ot||(Ot={})),(t0||(t0={})).mergeShapes=(e,t)=>({...e,...t});const Ae=Ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$c=e=>{switch(typeof e){case"undefined":return Ae.undefined;case"string":return Ae.string;case"number":return isNaN(e)?Ae.nan:Ae.number;case"boolean":return Ae.boolean;case"function":return Ae.function;case"bigint":return Ae.bigint;case"symbol":return Ae.symbol;case"object":return Array.isArray(e)?Ae.array:null===e?Ae.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ae.promise:typeof Map<"u"&&e instanceof Map?Ae.map:typeof Set<"u"&&e instanceof Set?Ae.set:typeof Date<"u"&&e instanceof Date?Ae.date:Ae.object;default:return Ae.unknown}},he=Ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),rS=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ys extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof Ys))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ot.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ys.create=e=>new Ys(e);const Mp=(e,t)=>{let n;switch(e.code){case he.invalid_type:n=e.received===Ae.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ot.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ot.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ot.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${Ot.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ot.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case he.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case he.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ot.assertNever(e)}return{message:n}};let c1=Mp;function iS(e){c1=e}function Hm(){return c1}const Zm=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},sS=[];function Ne(e,t){const n=Hm(),r=Zm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Mp?void 0:Mp].filter((e=>!!e))});e.common.issues.push(r)}class Ui{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return ot;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return Ui.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status||"aborted"===a.status)return ot;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(typeof a.value<"u"||r.alwaysSet)&&(n[t.value]=a.value)}return{status:e.value,value:n}}}const ot=Object.freeze({status:"aborted"}),Cp=e=>({status:"dirty",value:e}),es=e=>({status:"valid",value:e}),n0=e=>"aborted"===e.status,r0=e=>"dirty"===e.status,Fh=e=>"valid"===e.status,Bh=e=>typeof Promise<"u"&&e instanceof Promise;function Ym(e,t,n,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function f1(e,t,n,r,a){if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Qe,Rh,Lh;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(Qe||(Qe={}));class il{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const J0=(e,t)=>{if(Fh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Ys(e.common.issues);return this._error=t,this._error}}};function ft(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{var i,o;const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:typeof a.data>"u"?{message:null!==(i=s??r)&&void 0!==i?i:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(o=s??n)&&void 0!==o?o:a.defaultError}},description:a}}class pt{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return $c(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:$c(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ui,ctx:{common:e.parent.common,data:e.data,parsedType:$c(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Bh(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$c(e)},a=this._parseSync({data:e,path:r.path,parent:r});return J0(r,a)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$c(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(Bh(r)?r:Promise.resolve(r));return J0(n,a)}refine(e,t){const n=e=>"string"==typeof t||typeof t>"u"?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const a=e(t),i=()=>r.addIssue({code:he.custom,...n(t)});return typeof Promise<"u"&&a instanceof Promise?a.then((e=>!!e||(i(),!1))):!!a||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new fa({schema:this,typeName:it.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return rl.create(this,this._def)}nullable(){return Zc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ua.create(this,this._def)}promise(){return Ap.create(this,this._def)}or(e){return Zh.create([this,e],this._def)}and(e){return Yh.create(this,e,this._def)}transform(e){return new fa({...ft(this._def),schema:this,typeName:it.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Jh({...ft(this._def),innerType:this,defaultValue:t,typeName:it.ZodDefault})}brand(){return new _0({typeName:it.ZodBranded,type:this,...ft(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Xh({...ft(this._def),innerType:this,catchValue:t,typeName:it.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return im.create(this,e)}readonly(){return em.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oS=/^c[^\s-]{8,}$/i,aS=/^[0-9a-z]+$/,lS=/^[0-9A-HJKMNP-TV-Z]{26}$/,uS=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cS=/^[a-z0-9_-]{21}$/i,fS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,dS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Fv;const hS=/^(?:(?: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])$/,mS=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,gS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,d1="((\\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])))",vS=new RegExp(`^${d1}$`);function p1(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function yS(e){return new RegExp(`^${p1(e)}$`)}function h1(e){let t=`${d1}T${p1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function _S(e,t){return!(("v4"!==t&&t||!hS.test(e))&&("v6"!==t&&t||!mS.test(e)))}class la extends pt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ae.string){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.string,received:t.parsedType}),ot}const t=new Ui;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("max"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const a=e.data.length>r.value,i=e.data.length<r.value;(a||i)&&(n=this._getOrReturnCtx(e,n),a?Ne(n,{code:he.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):i&&Ne(n,{code:he.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if("email"===r.kind)dS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"email",code:he.invalid_string,message:r.message}),t.dirty());else if("emoji"===r.kind)Fv||(Fv=new RegExp(pS,"u")),Fv.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"emoji",code:he.invalid_string,message:r.message}),t.dirty());else if("uuid"===r.kind)uS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"uuid",code:he.invalid_string,message:r.message}),t.dirty());else if("nanoid"===r.kind)cS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"nanoid",code:he.invalid_string,message:r.message}),t.dirty());else if("cuid"===r.kind)oS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"cuid",code:he.invalid_string,message:r.message}),t.dirty());else if("cuid2"===r.kind)aS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"cuid2",code:he.invalid_string,message:r.message}),t.dirty());else if("ulid"===r.kind)lS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"ulid",code:he.invalid_string,message:r.message}),t.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),Ne(n,{validation:"url",code:he.invalid_string,message:r.message}),t.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"regex",code:he.invalid_string,message:r.message}),t.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):"datetime"===r.kind?h1(r).test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:"datetime",message:r.message}),t.dirty()):"date"===r.kind?vS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:"date",message:r.message}),t.dirty()):"time"===r.kind?yS(r).test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:"time",message:r.message}),t.dirty()):"duration"===r.kind?fS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"duration",code:he.invalid_string,message:r.message}),t.dirty()):"ip"===r.kind?_S(e.data,r.version)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"ip",code:he.invalid_string,message:r.message}),t.dirty()):"base64"===r.kind?gS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"base64",code:he.invalid_string,message:r.message}),t.dirty()):Ot.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:he.invalid_string,...Qe.errToObj(n)})}_addCheck(e){return new la({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Qe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Qe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Qe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Qe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Qe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Qe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Qe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Qe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Qe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Qe.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...Qe.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,...Qe.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...Qe.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Qe.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...Qe.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Qe.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Qe.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Qe.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Qe.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Qe.errToObj(t)})}nonempty(e){return this.min(1,Qe.errToObj(e))}trim(){return new la({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new la({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new la({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function wS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}la.create=e=>{var t;return new la({checks:[],typeName:it.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ft(e)})};class Wc extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ae.number){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.number,received:t.parsedType}),ot}let t;const n=new Ui;for(const r of this._def.checks)"int"===r.kind?Ot.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==wS(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.not_finite,message:r.message}),n.dirty()):Ot.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Qe.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Qe.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Qe.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Qe.toString(t))}setLimit(e,t,n,r){return new Wc({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Qe.toString(r)}]})}_addCheck(e){return new Wc({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Qe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Qe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Qe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Qe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Qe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Qe.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Qe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Qe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Qe.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Ot.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Wc.create=e=>new Wc({checks:[],typeName:it.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...ft(e)});class Vc extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ae.bigint){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.bigint,received:t.parsedType}),ot}let t;const n=new Ui;for(const r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Ot.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Qe.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Qe.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Qe.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Qe.toString(t))}setLimit(e,t,n,r){return new Vc({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Qe.toString(r)}]})}_addCheck(e){return new Vc({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Qe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Qe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Qe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Qe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Qe.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Vc.create=e=>{var t;return new Vc({checks:[],typeName:it.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ft(e)})};class Wh extends pt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ae.boolean){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.boolean,received:t.parsedType}),ot}return es(e.data)}}Wh.create=e=>new Wh({typeName:it.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...ft(e)});class cd extends pt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ae.date){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.date,received:t.parsedType}),ot}if(isNaN(e.data.getTime())){return Ne(this._getOrReturnCtx(e),{code:he.invalid_date}),ot}const t=new Ui;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):Ot.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new cd({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Qe.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Qe.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}cd.create=e=>new cd({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:it.ZodDate,...ft(e)});class Qm extends pt{_parse(e){if(this._getType(e)!==Ae.symbol){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.symbol,received:t.parsedType}),ot}return es(e.data)}}Qm.create=e=>new Qm({typeName:it.ZodSymbol,...ft(e)});class Vh extends pt{_parse(e){if(this._getType(e)!==Ae.undefined){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.undefined,received:t.parsedType}),ot}return es(e.data)}}Vh.create=e=>new Vh({typeName:it.ZodUndefined,...ft(e)});class Hh extends pt{_parse(e){if(this._getType(e)!==Ae.null){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.null,received:t.parsedType}),ot}return es(e.data)}}Hh.create=e=>new Hh({typeName:it.ZodNull,...ft(e)});class Tp extends pt{constructor(){super(...arguments),this._any=!0}_parse(e){return es(e.data)}}Tp.create=e=>new Tp({typeName:it.ZodAny,...ft(e)});class ud extends pt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return es(e.data)}}ud.create=e=>new ud({typeName:it.ZodUnknown,...ft(e)});class fu extends pt{_parse(e){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.never,received:t.parsedType}),ot}}fu.create=e=>new fu({typeName:it.ZodNever,...ft(e)});class Gm extends pt{_parse(e){if(this._getType(e)!==Ae.undefined){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.void,received:t.parsedType}),ot}return es(e.data)}}Gm.create=e=>new Gm({typeName:it.ZodVoid,...ft(e)});class ua extends pt{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ae.array)return Ne(t,{code:he.invalid_type,expected:Ae.array,received:t.parsedType}),ot;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(Ne(t,{code:e?he.too_big:he.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(Ne(t,{code:he.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(Ne(t,{code:he.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new il(t,e,t.path,n))))).then((e=>Ui.mergeArray(n,e)));const a=[...t.data].map(((e,n)=>r.type._parseSync(new il(t,e,t.path,n))));return Ui.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new ua({...this._def,minLength:{value:e,message:Qe.toString(t)}})}max(e,t){return new ua({...this._def,maxLength:{value:e,message:Qe.toString(t)}})}length(e,t){return new ua({...this._def,exactLength:{value:e,message:Qe.toString(t)}})}nonempty(e){return this.min(1,e)}}function Ep(e){if(e instanceof jn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=rl.create(Ep(r))}return new jn({...e._def,shape:()=>t})}return e instanceof ua?new ua({...e._def,type:Ep(e.element)}):e instanceof rl?rl.create(Ep(e.unwrap())):e instanceof Zc?Zc.create(Ep(e.unwrap())):e instanceof sl?sl.create(e.items.map((e=>Ep(e)))):e}ua.create=(e,t)=>new ua({type:e,minLength:null,maxLength:null,exactLength:null,typeName:it.ZodArray,...ft(t)});class jn extends pt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Ot.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ae.object){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.object,received:t.parsedType}),ot}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof fu&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||i.push(e);const o=[];for(const e of a){const t=r[e],a=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new il(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof fu){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(Ne(n,{code:he.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new il(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of o){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>Ui.mergeObjectSync(t,e))):Ui.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return Qe.errToObj,new jn({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,a,i,o;const s=null!==(i=null===(a=(r=this._def).errorMap)||void 0===a?void 0:a.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=Qe.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new jn({...this._def,unknownKeys:"strip"})}passthrough(){return new jn({...this._def,unknownKeys:"passthrough"})}extend(e){return new jn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new jn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:it.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new jn({...this._def,catchall:e})}pick(e){const t={};return Ot.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new jn({...this._def,shape:()=>t})}omit(e){const t={};return Ot.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new jn({...this._def,shape:()=>t})}deepPartial(){return Ep(this)}partial(e){const t={};return Ot.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new jn({...this._def,shape:()=>t})}required(e){const t={};return Ot.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof rl;)e=e._def.innerType;t[n]=e}})),new jn({...this._def,shape:()=>t})}keyof(){return m1(Ot.objectKeys(this.shape))}}jn.create=(e,t)=>new jn({shape:()=>e,unknownKeys:"strip",catchall:fu.create(),typeName:it.ZodObject,...ft(t)}),jn.strictCreate=(e,t)=>new jn({shape:()=>e,unknownKeys:"strict",catchall:fu.create(),typeName:it.ZodObject,...ft(t)}),jn.lazycreate=(e,t)=>new jn({shape:e,unknownKeys:"strip",catchall:fu.create(),typeName:it.ZodObject,...ft(t)});class Zh extends pt{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new Ys(e.ctx.common.issues)));return Ne(t,{code:he.invalid_union,unionErrors:n}),ot}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"===i.status&&!e&&(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map((e=>new Ys(e)));return Ne(t,{code:he.invalid_union,unionErrors:a}),ot}}get options(){return this._def.options}}Zh.create=(e,t)=>new Zh({options:e,typeName:it.ZodUnion,...ft(t)});const uu=e=>e instanceof Gh?uu(e.schema):e instanceof fa?uu(e.innerType()):e instanceof qh?[e.value]:e instanceof Hc?e.options:e instanceof Kh?Ot.objectValues(e.enum):e instanceof Jh?uu(e._def.innerType):e instanceof Vh?[void 0]:e instanceof Hh?[null]:e instanceof rl?[void 0,...uu(e.unwrap())]:e instanceof Zc?[null,...uu(e.unwrap())]:e instanceof _0||e instanceof em?uu(e.unwrap()):e instanceof Xh?uu(e._def.innerType):[];class Jm extends pt{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ae.object)return Ne(t,{code:he.invalid_type,expected:Ae.object,received:t.parsedType}),ot;const n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(Ne(t,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ot)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=uu(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(r.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,n)}}return new Jm({typeName:it.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...ft(n)})}}function i0(e,t){const n=$c(e),r=$c(t);if(e===t)return{valid:!0,data:e};if(n===Ae.object&&r===Ae.object){const n=Ot.objectKeys(t),r=Ot.objectKeys(e).filter((e=>-1!==n.indexOf(e))),a={...e,...t};for(const n of r){const r=i0(e[n],t[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===Ae.array&&r===Ae.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=i0(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===Ae.date&&r===Ae.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Yh extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(n0(e)||n0(r))return ot;const a=i0(e.value,r.value);return a.valid?((r0(e)||r0(r))&&t.dirty(),{status:t.value,value:a.data}):(Ne(n,{code:he.invalid_intersection_types}),ot)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Yh.create=(e,t,n)=>new Yh({left:e,right:t,typeName:it.ZodIntersection,...ft(n)});class sl extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.array)return Ne(n,{code:he.invalid_type,expected:Ae.array,received:n.parsedType}),ot;if(n.data.length<this._def.items.length)return Ne(n,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ot;!this._def.rest&&n.data.length>this._def.items.length&&(Ne(n,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new il(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>Ui.mergeArray(t,e))):Ui.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new sl({...this._def,rest:e})}}sl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sl({items:e,typeName:it.ZodTuple,rest:null,...ft(t)})};class Qh extends pt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.object)return Ne(n,{code:he.invalid_type,expected:Ae.object,received:n.parsedType}),ot;const r=[],a=this._def.keyType,i=this._def.valueType;for(const e in n.data)r.push({key:a._parse(new il(n,e,n.path,e)),value:i._parse(new il(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?Ui.mergeObjectAsync(t,r):Ui.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Qh(t instanceof pt?{keyType:e,valueType:t,typeName:it.ZodRecord,...ft(n)}:{keyType:la.create(),valueType:e,typeName:it.ZodRecord,...ft(t)})}}class qm extends pt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.map)return Ne(n,{code:he.invalid_type,expected:Ae.map,received:n.parsedType}),ot;const r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new il(n,e,n.path,[i,"key"])),value:a._parse(new il(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return ot;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return ot;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}qm.create=(e,t,n)=>new qm({valueType:t,keyType:e,typeName:it.ZodMap,...ft(n)});class fd extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.set)return Ne(n,{code:he.invalid_type,expected:Ae.set,received:n.parsedType}),ot;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(Ne(n,{code:he.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(Ne(n,{code:he.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return ot;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const o=[...n.data.values()].map(((e,t)=>a._parse(new il(n,e,n.path,t))));return n.common.async?Promise.all(o).then((e=>i(e))):i(o)}min(e,t){return new fd({...this._def,minSize:{value:e,message:Qe.toString(t)}})}max(e,t){return new fd({...this._def,maxSize:{value:e,message:Qe.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}fd.create=(e,t)=>new fd({valueType:e,minSize:null,maxSize:null,typeName:it.ZodSet,...ft(t)});class Np extends pt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ae.function)return Ne(t,{code:he.invalid_type,expected:Ae.function,received:t.parsedType}),ot;function n(e,n){return Zm({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Hm(),Mp].filter((e=>!!e)),issueData:{code:he.invalid_arguments,argumentsError:n}})}function r(e,n){return Zm({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Hm(),Mp].filter((e=>!!e)),issueData:{code:he.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Ap){const e=this;return es((async function(...t){const o=new Ys([]),s=await e._def.args.parseAsync(t,a).catch((e=>{throw o.addIssue(n(t,e)),o})),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch((e=>{throw o.addIssue(r(l,e)),o}))}))}{const e=this;return es((function(...t){const o=e._def.args.safeParse(t,a);if(!o.success)throw new Ys([n(t,o.error)]);const s=Reflect.apply(i,this,o.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new Ys([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Np({...this._def,args:sl.create(e).rest(ud.create())})}returns(e){return new Np({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Np({args:e||sl.create([]).rest(ud.create()),returns:t||ud.create(),typeName:it.ZodFunction,...ft(n)})}}class Gh extends pt{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Gh.create=(e,t)=>new Gh({getter:e,typeName:it.ZodLazy,...ft(t)});class qh extends pt{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ne(t,{received:t.data,code:he.invalid_literal,expected:this._def.value}),ot}return{status:"valid",value:e.data}}get value(){return this._def.value}}function m1(e,t){return new Hc({values:e,typeName:it.ZodEnum,...ft(t)})}qh.create=(e,t)=>new qh({value:e,typeName:it.ZodLiteral,...ft(t)});class Hc extends pt{constructor(){super(...arguments),Rh.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ne(t,{expected:Ot.joinValues(n),received:t.parsedType,code:he.invalid_type}),ot}if(Ym(this,Rh)||f1(this,Rh,new Set(this._def.values)),!Ym(this,Rh).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ne(t,{received:t.data,code:he.invalid_enum_value,options:n}),ot}return es(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Hc.create(e,{...this._def,...t})}exclude(e,t=this._def){return Hc.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}Rh=new WeakMap,Hc.create=m1;class Kh extends pt{constructor(){super(...arguments),Lh.set(this,void 0)}_parse(e){const t=Ot.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ae.string&&n.parsedType!==Ae.number){const e=Ot.objectValues(t);return Ne(n,{expected:Ot.joinValues(e),received:n.parsedType,code:he.invalid_type}),ot}if(Ym(this,Lh)||f1(this,Lh,new Set(Ot.getValidEnumValues(this._def.values))),!Ym(this,Lh).has(e.data)){const e=Ot.objectValues(t);return Ne(n,{received:n.data,code:he.invalid_enum_value,options:e}),ot}return es(e.data)}get enum(){return this._def.values}}Lh=new WeakMap,Kh.create=(e,t)=>new Kh({values:e,typeName:it.ZodNativeEnum,...ft(t)});class Ap extends pt{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ae.promise&&!1===t.common.async)return Ne(t,{code:he.invalid_type,expected:Ae.promise,received:t.parsedType}),ot;const n=t.parsedType===Ae.promise?t.data:Promise.resolve(t.data);return es(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Ap.create=(e,t)=>new Ap({type:e,typeName:it.ZodPromise,...ft(t)});class fa extends pt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===it.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{Ne(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){const e=r.transform(n.data,a);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return ot;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?ot:"dirty"===r.status||"dirty"===t.value?Cp(r.value):r}));{if("aborted"===t.value)return ot;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?ot:"dirty"===r.status||"dirty"===t.value?Cp(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?ot:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?ot:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Fh(e))return e;const i=r.transform(e.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Fh(e)?Promise.resolve(r.transform(e.value,a)).then((e=>({status:t.value,value:e}))):e))}Ot.assertNever(r)}}fa.create=(e,t,n)=>new fa({schema:e,typeName:it.ZodEffects,effect:t,...ft(n)}),fa.createWithPreprocess=(e,t,n)=>new fa({schema:t,effect:{type:"preprocess",transform:e},typeName:it.ZodEffects,...ft(n)});class rl extends pt{_parse(e){return this._getType(e)===Ae.undefined?es(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}rl.create=(e,t)=>new rl({innerType:e,typeName:it.ZodOptional,...ft(t)});class Zc extends pt{_parse(e){return this._getType(e)===Ae.null?es(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Zc.create=(e,t)=>new Zc({innerType:e,typeName:it.ZodNullable,...ft(t)});class Jh extends pt{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Jh.create=(e,t)=>new Jh({innerType:e,typeName:it.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ft(t)});class Xh extends pt{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Bh(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Ys(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new Ys(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Xh.create=(e,t)=>new Xh({innerType:e,typeName:it.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ft(t)});class Km extends pt{_parse(e){if(this._getType(e)!==Ae.nan){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.nan,received:t.parsedType}),ot}return{status:"valid",value:e.data}}}Km.create=e=>new Km({typeName:it.ZodNaN,...ft(e)});const xS=Symbol("zod_brand");class _0 extends pt{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class im extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?ot:"dirty"===e.status?(t.dirty(),Cp(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?ot:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new im({in:e,out:t,typeName:it.ZodPipeline})}}class em extends pt{_parse(e){const t=this._def.innerType._parse(e),n=e=>(Fh(e)&&(e.value=Object.freeze(e.value)),e);return Bh(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function g1(e,t={},n){return e?Tp.create().superRefine(((r,a)=>{var i,o;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===o||o,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:s})}})):Tp.create()}em.create=(e,t)=>new em({innerType:e,typeName:it.ZodReadonly,...ft(t)});const SS={object:jn.lazycreate};var it;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(it||(it={}));const kS=(e,t={message:`Input not instance of ${e.name}`})=>g1((t=>t instanceof e),t),v1=la.create,y1=Wc.create,bS=Km.create,ES=Vc.create,_1=Wh.create,CS=cd.create,NS=Qm.create,IS=Vh.create,MS=Hh.create,TS=Tp.create,AS=ud.create,OS=fu.create,RS=Gm.create,LS=ua.create,PS=jn.create,zS=jn.strictCreate,jS=Zh.create,DS=Jm.create,US=Yh.create,$S=sl.create,FS=Qh.create,BS=qm.create,WS=fd.create,VS=Np.create,HS=Gh.create,ZS=qh.create,YS=Hc.create,QS=Kh.create,GS=Ap.create,X0=fa.create,qS=rl.create,KS=Zc.create,JS=fa.createWithPreprocess,XS=im.create,e2=()=>v1().optional(),t2=()=>y1().optional(),n2=()=>_1().optional(),r2={string:e=>la.create({...e,coerce:!0}),number:e=>Wc.create({...e,coerce:!0}),boolean:e=>Wh.create({...e,coerce:!0}),bigint:e=>Vc.create({...e,coerce:!0}),date:e=>cd.create({...e,coerce:!0})},i2=ot;var Dn=Object.freeze({__proto__:null,defaultErrorMap:Mp,setErrorMap:iS,getErrorMap:Hm,makeIssue:Zm,EMPTY_PATH:sS,addIssueToContext:Ne,ParseStatus:Ui,INVALID:ot,DIRTY:Cp,OK:es,isAborted:n0,isDirty:r0,isValid:Fh,isAsync:Bh,get util(){return Ot},get objectUtil(){return t0},ZodParsedType:Ae,getParsedType:$c,ZodType:pt,datetimeRegex:h1,ZodString:la,ZodNumber:Wc,ZodBigInt:Vc,ZodBoolean:Wh,ZodDate:cd,ZodSymbol:Qm,ZodUndefined:Vh,ZodNull:Hh,ZodAny:Tp,ZodUnknown:ud,ZodNever:fu,ZodVoid:Gm,ZodArray:ua,ZodObject:jn,ZodUnion:Zh,ZodDiscriminatedUnion:Jm,ZodIntersection:Yh,ZodTuple:sl,ZodRecord:Qh,ZodMap:qm,ZodSet:fd,ZodFunction:Np,ZodLazy:Gh,ZodLiteral:qh,ZodEnum:Hc,ZodNativeEnum:Kh,ZodPromise:Ap,ZodEffects:fa,ZodTransformer:fa,ZodOptional:rl,ZodNullable:Zc,ZodDefault:Jh,ZodCatch:Xh,ZodNaN:Km,BRAND:xS,ZodBranded:_0,ZodPipeline:im,ZodReadonly:em,custom:g1,Schema:pt,ZodSchema:pt,late:SS,get ZodFirstPartyTypeKind(){return it},coerce:r2,any:TS,array:LS,bigint:ES,boolean:_1,date:CS,discriminatedUnion:DS,effect:X0,enum:YS,function:VS,instanceof:kS,intersection:US,lazy:HS,literal:ZS,map:BS,nan:bS,nativeEnum:QS,never:OS,null:MS,nullable:KS,number:y1,object:PS,oboolean:n2,onumber:t2,optional:qS,ostring:e2,pipeline:XS,preprocess:JS,promise:GS,record:FS,set:WS,strictObject:zS,string:v1,symbol:NS,transformer:X0,tuple:$S,undefined:IS,union:jS,unknown:AS,void:RS,NEVER:i2,ZodIssueCode:he,quotelessJson:rS,ZodError:Ys});const s2=Dn.object({url:Dn.string().min(1,"Field is required")}),o2=({open:e,user:t,onCloseModal:n})=>{const r=tS({user:t}),a=O_(),[i,o]=Kr(!0),s=h0({shouldFocusError:!1,mode:"onSubmit",resolver:u1(s2),defaultValues:{url:""}}),[l,{data:u}]=ad.endpoints.getApiV1InstanceDomains.useLazyQuery(),c=e=>{!i&&o(!0),s.setValue("url",e),(e=>{i&&l({limit:20,domain:e,software:"mastodon"})})(e)},d=i&&!!s.getValues("url");return L.jsxs(rm,{open:e,onCloseModal:n,title:`You're not following @${t.username}`,children:[L.jsx(zy,{...s,children:L.jsxs("form",{className:"flex flex-col gap-3 md:mb-4 md:flex-row md:items-end",autoFocus:!1,onSubmit:(...e)=>{s.handleSubmit(r)(...e)},children:[L.jsx(jy,{control:s.control,name:"url",render:({field:e})=>L.jsxs(l_,{className:"mt-0 flex-1",children:[L.jsx(u_,{className:"mb-2 block text-base",children:"Enter your server name to follow this user"}),L.jsxs("div",{className:"relative",children:[L.jsx(c_,{children:L.jsx(Dy,{"data-testid":"input",placeholder:"Server name",...e,onChange:e=>c(e.target.value)})}),L.jsx(f_,{"data-testid":"command",children:L.jsx(d_,{"data-testid":"list",className:"bg-background absolute z-50 mt-1 w-full rounded-md shadow-md empty:hidden",children:d&&(null==u?void 0:u.map((e=>L.jsx(p_,{className:"w-full max-w-[unset] [&>div]:overflow-hidden [&>div]:text-ellipsis",onSelect:e=>{o(!1),s.setValue("url",e)},children:L.jsx("div",{dangerouslySetInnerHTML:{__html:nS(e,s.getValues("url"))}})},e))))})})]}),L.jsx(h_,{className:"md:absolute"})]})}),L.jsx(Bc,{type:"submit",variant:"primary",children:"Take me home"})]})}),L.jsxs("div",{children:[L.jsx("span",{className:"text-base text-slate-500",children:"Do not have an account yet?"}),L.jsx(Bc,{"data-testid":"join",variant:"tertiary",className:"text-blue_100 ml-1 text-base",onClick:()=>{null==n||n(),a("/signin",{props:{redirectUrl:window.location.href}})},children:"Join Wellsley"})]})]})},ca=e=>`@${e.username}${e.domain?`@${e.domain}`:""}`,w1=({user:e,onFollow:t,onUnfollow:n,unsubscribe:r})=>{const[a,i]=Kr(!1),o=Qn(pd.selectors.selectIsAuthenticated),[s]=L_(),[l]=P_(),u=null==e?void 0:e.domain,c={user:e,username:ca(e),...u&&{domain:u}};return{follow:async()=>{o?await s(c):i(!0),null==t||t()},unfollow:async()=>{await l({mutual:r,...c}),null==n||n()},renderGuestFollowModal:()=>a?L.jsx(o2,{user:e,open:a,onCloseModal:()=>i(!1)}):null}},a2=({delay:e=0,defaultHover:t=!1,dependProps:n=[],leaveDelay:r=0}={})=>{const a=nl(null),[i,o]=Kr(t),s=nl(null),l=nl(null),u=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{o(!0)}),e),l.current&&clearTimeout(l.current)},c=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout((()=>{o(!1)}),r),s.current&&clearTimeout(s.current)};return Zs((()=>()=>{s.current&&clearTimeout(s.current),l.current&&clearTimeout(l.current)}),[]),Zs((()=>{const e=a.current;if(e)return e.addEventListener("mouseenter",u),e.addEventListener("mouseleave",c),()=>{e.removeEventListener("mouseenter",u),e.removeEventListener("mouseleave",c)}}),[a.current,...n]),[a,i,o]},l2=({open:e,title:t,children:n,leftButton:r,rightButton:a,onClose:i,titleTestId:o,...s})=>L.jsxs(rm,{open:e,onCloseModal:i,showClose:!1,className:"gap-none max-w-[400px] rounded-lg",...s,children:[L.jsx("h3",{className:"p-none mb-xxs text-center text-lg font-semibold text-slate-700","data-testid":o,children:t}),n&&L.jsx("div",{className:"text-center text-base text-slate-500",children:n}),L.jsxs("div",{className:"mt-m max-md:gap-s md:gap-m flex justify-center",children:[L.jsx(Zv,{size:"m",variant:"secondary",className:"flex-1",...r,title:void 0,children:r.title}),a&&L.jsx(Zv,{size:"m",className:"flex-1",...a,title:void 0,children:a.title})]})]}),u2=e=>!(null==e||!e.blocked),x1=(e=!1)=>{const[t,n]=Kr(e);return[t,Iv((()=>n(!0)),[]),Iv((()=>n(!1)),[]),Iv((()=>n((e=>!e))),[]),n]},w0=({user:e,relationship:t})=>{const[n,{isLoading:r}]=X1(),[a]=e_(),[i,o,s]=x1(),l=u2(t);return[l,o,async()=>{try{await a({userId:e.id}).unwrap(),yi.success(`${e.username} is unblocked`)}catch(e){yi.error(`${sd(e)}`)}},()=>L.jsx(l2,{open:i,title:`Do you want to block ${e.username}?`,onClose:s,"data-testid":"block-dialog",leftButton:{title:"Cancel",isLoading:!1,variant:"secondary",onClick:s},rightButton:{title:"Block",variant:"red_primary",isLoading:r,onClick:()=>{(async()=>{try{await n({userId:e.id}).unwrap(),yi.success(`${e.username} is blocked`),s()}catch(e){yi.error(`${sd(e)}`)}})()}},children:"Blocked users will not be able to follow you or see your content, and you will not see any content from them. They will also be aware that they have been blocked."}),i]},S1=({size:e,user:t,follow:n,unfollow:r,disabled:a,relationship:i,isRelationshipPending:o,className:s,followButtonText:l,unfollowButtonText:u})=>{const[c,,d]=w0({user:t,relationship:i}),f=z_(i)?"Follow back":l||"Follow",p=u||"Unfollow",h=j_(i),m=R0(i),[g,v]=a2(),y=h&&!v||m;if(!o)return L.jsx(Bc,{ref:g,"data-testid":"followBtn",onClick:c?d:m||h?r:n,size:e,className:kt("rounded-m px-xs w-[100%] min-w-[130px] md:max-w-[300px] lg:max-w-full",!R0&&"bg-slate-700",s),variant:c?"secondary_danger":y?"secondary":"primary",disabled:a,children:c?"Unblock":h?v?"Cancel follow request":"Follow Pending":m?p:f})},ey={data:null,isError:!1,isPending:!1,isSuccess:!1},Uh=dd({name:"user",initialState:ey,reducers:{reset:e=>{Object.assign(e,ey)}},extraReducers:e=>{e.addCase(e1,((e,{payload:t})=>{e.data=t})).addCase(Lx,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(Jv,((e,{payload:t})=>{e.isSuccess=t})).addCase(Kv,((e,{payload:t})=>{e.isPending=t})).addCase(Xy,((e,{payload:t})=>{e.isError=t})).addCase(Jy,((e,{payload:t})=>{e.error=t})).addCase(Px,((e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}))},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess}}),$h="8.48.0",du=globalThis;function x0(e,t,n){const r=du,a=r.__SENTRY__=r.__SENTRY__||{},i=a[$h]=a[$h]||{};return i[e]||(i[e]=t())}const k1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,c2="Sentry Logger ",ty=["debug","info","warn","error","log","assert","trace"],ny={};function f2(e){if(!("console"in du))return e();const t=du.console,n={},r=Object.keys(ny);r.forEach((e=>{const r=ny[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function d2(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return k1?ty.forEach((n=>{t[n]=(...t)=>{e&&f2((()=>{du.console[n](`${c2}[${n}]:`,...t)}))}})):ty.forEach((e=>{t[e]=()=>{}})),t}const $m=x0("logger",d2);function S0(){return k0(du),du}function k0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$h,t[$h]=t[$h]||{}}const p2=Object.prototype.toString;function h2(e,t){return p2.call(e)===`[object ${t}]`}function m2(e){return h2(e,"Object")}function g2(e){return!(!e||!e.then||"function"!=typeof e.then)}function v2(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{k1&&$m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const b1=1e3;function E1(){return Date.now()/b1}function y2(){const{performance:e}=du;if(!e||!e.now)return E1;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/b1}const _2=y2();function Ip(){const e=du,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function w2(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||_2(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Ip()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ry(){return Ip()}function iy(){return Ip().substring(16)}function C1(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=C1(r[e],t[e],n-1));return r}(()=>{const{performance:e}=du;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=a<t,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+n-r):t;(i||s<t)&&(a<=s&&e.timeOrigin)})();const s0="_sentrySpan";function sy(e,t){t?v2(e,s0,t):delete e[s0]}function oy(e){return e[s0]}const x2=100;class b0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ry(),spanId:iy()}}clone(){const e=new b0;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,sy(e,oy(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&w2(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof tm?[t.getScopeData(),t.getRequestSession()]:m2(t)?[e,e.requestSession]:[],{tags:a,extra:i,user:o,contexts:s,level:l,fingerprint:u=[],propagationContext:c}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,sy(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ry()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:x2;if(n<=0)return this;const r={timestamp:E1(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:oy(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=C1(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:iy(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Ip();if(!this._client)return $m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Ip();if(!this._client)return $m.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Ip();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):($m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const tm=b0;function S2(){return x0("defaultCurrentScope",(()=>new tm))}function k2(){return x0("defaultIsolationScope",(()=>new tm))}class b2{constructor(e,t){let n,r;n=e||new tm,r=t||new tm,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return g2(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Op(){const e=k0(S0());return e.stack=e.stack||new b2(S2(),k2())}function E2(e){return Op().withScope(e)}function C2(e,t){const n=Op();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function ay(e){return Op().withScope((()=>e(Op().getIsolationScope())))}function N2(){return{withIsolationScope:ay,withScope:E2,withSetScope:C2,withSetIsolationScope:(e,t)=>ay(t),getCurrentScope:()=>Op().getScope(),getIsolationScope:()=>Op().getIsolationScope()}}function N1(e){const t=k0(e);return t.acs?t.acs:N2()}function I1(){return N1(S0()).getCurrentScope()}function I2(){return N1(S0()).getIsolationScope()}function M2(e,t){return I1().captureException(e,void 0)}function T2(e,t){const n={captureContext:t};return I1().captureMessage(e,void 0,n)}function A2(e,t){I2().setExtra(e,t)}const O2=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return A2("exceptionMessage",t),void M2(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}T2(t)},R2=()=>"object"!=typeof window,L2="wlsy",M1=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},P2=()=>{const e=new Set,t=M1();if(!t)return[];for(let n=0;n<(null==t?void 0:t.length);n+=1){const r=null==t?void 0:t.key(n);"string"==typeof r&&e.add(r)}return Array.from(e)},E0=e=>{const t=`${L2}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>P2().filter((e=>e.startsWith(`${t}:`))),a=e=>e.slice(t.length+1),i=M1(),o=e=>{try{return null==i?void 0:i.getItem(n(e))}catch{return null}},s=(e,t)=>{try{null==i||i.setItem(n(e),String(t))}catch{return}};return{getItem:o,setItem:s,removeItem:e=>{try{null==i||i.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==i?void 0:i.removeItem(e)))}catch{return}},keys:()=>r().map(a),has:e=>null!==o(e),getJSON:e=>{const t=o(e);if(null==t)return null;try{return JSON.parse(t)}catch{return null}},setJSON:(e,t)=>{try{s(e,JSON.stringify(t))}catch{return}}}},ly=["debug","info","warn","error"],z2=(e,t)=>{const n=ly.indexOf(e);return ly.indexOf(t)>=n},Lm=(e,t,n,...r)=>{z2(t,e)&&console.log(`[${e}] ${n}`,...r)},j2=()=>E0().getItem("logger_lvl"),D2=(e=(R2()?"info":j2()||"warn"))=>{let t=e;return{debug:(e,...n)=>Lm("debug",t,e,...n),info:(e,...n)=>Lm("info",t,e,...n),warn:(e,...n)=>Lm("warn",t,e,...n),error:(e,...n)=>(O2(e,...n),Lm("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Xm=D2(),U2=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return Xm.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},$2=e=>{const t=window.parent??window;if(t)try{const n=U2(e);t.postMessage(n,"*")}catch(e){Xm.error("Failed to process or send message:",e)}},C0="auth_token",N0=E0("user"),T1=()=>N0.getItem(C0)||void 0,F2=e=>N0.setItem(C0,e),B2=()=>N0.removeItem(C0),W2=()=>!!T1(),V2={getToken:T1,setToken:F2,removeToken:B2,hasToken:W2},uy={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!V2.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},A1=dd({name:"auth",initialState:uy,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...uy,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectAskLoginOpen:e=>e.isAskLoginOpen,selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectIsAuthenticated:e=>e.isAuthenticated}}),H2=()=>{window.parent===window?N_().dispatch(A1.actions.setAskLoginOpen(!0)):$2(Ax())},sm=e=>{const t=Qn(Uh.selectors.selectCurrentUser),n=Qn(pd.selectors.selectIsAuthenticated),r="SUSPENDED"===(null==t?void 0:t.state),a=r;return{isDisabled:a,guardedAction:(e=()=>{})=>()=>{n?n&&!r&&e():H2()},ActionTooltipWrapper:({children:e,triggerClassname:n})=>a?L.jsx(Yv,{theme:"dark",tooltipText:`${ca(t)} is suspended`,size:"default",triggerClassname:n,children:L.jsx("div",{className:"!pointer-events-auto w-full",children:e})}):L.jsx(L.Fragment,{children:e})}},O1=({user:e,size:t="m",disabled:n,className:r,relationship:a,isRelationshipPending:i,onFollow:o,onUnfollow:s,followButtonText:l,unfollowButtonText:u})=>{const{follow:c,unfollow:d,renderGuestFollowModal:f}=w1({user:e,onFollow:o,onUnfollow:s}),p=m0(e.id),{isDisabled:h,ActionTooltipWrapper:m}=sm();return p||i?null:L.jsxs("div",{"data-testid":"followControl",children:[f(),L.jsx(m,{triggerClassname:kt("l"===t&&"w-full"),children:L.jsx(S1,{user:e,size:t,disabled:n,className:r,follow:()=>{c()},unfollow:()=>{d()},disabled:h,relationship:a,isRelationshipPending:!1,followButtonText:l,unfollowButtonText:u})})]})},Z2=({author:e,isPopup:t,notification:n})=>{var r,a;const i=nm(),[o]=t_(),[s]=n_(),{relationship:l,isLoading:u}=D_({userId:null==e?void 0:e.id}),c=!(!e||"FOLLOW"!==n.type||t),d=!(!e||"FOLLOW_REQUEST"!==n.type||t),f=e?ca(e):"",p=n.followResponse||(null==(a=null==(r=n.meta)?void 0:r.actionsTaken)?void 0:a[0].text);return L.jsxs(L.Fragment,{children:[c&&e&&L.jsx(O1,{size:"s",user:e,relationship:l,isRelationshipPending:u}),p?L.jsx("div",{className:"min-w-[120px] text-center text-sm font-semibold text-slate-400",children:p}):d?L.jsxs("div",{className:"flex items-center gap-2","data-testid":"followControls",children:[L.jsx(Bc,{variant:"tertiary",className:"px-3",onClick:()=>{e&&(s({username:f,user:e}),i(Vm.actions.updateNotification({...n,followResponse:"Declined"})))},children:"Decline"}),L.jsx(Bc,{size:"m",variant:"primary",onClick:()=>{e&&(o({username:f,user:e}),i(Vm.actions.updateNotification({...n,followResponse:"Accepted"})))},children:"Confirm"})]}):null]})};var cy,Fm={exports:{}},Y2=Fm.exports;function Q2(){return cy||(cy=1,Fm.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",s="day",l="week",u="month",c="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(r,u),i=n-a<0,o=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-a)/(i?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:s,D:f,h:o,m:i,s:a,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var w="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[w])},k=function e(t,n,r){var a;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(a=i),n&&(_[i]=n,a=i);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;_[s]=t,a=s}return!r&&a&&(b=a),a||!r&&b},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},N=y;N.l=k,N.i=x,N.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(N.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return N},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return N.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!N.u(t)||t,c=N.p(e),p=function(e,t){var a=N.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?a:a.endOf(s)},h=function(e,t){return N.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case u:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(r?v-_:v+(6-_),g);case s:case f:return h(y+"Hours",0);case o:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case a:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=N.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[o]=c+"Hours",n[i]=c+"Minutes",n[a]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[N.p(e)]()},v.add=function(r,c){var f,p=this;r=Number(r);var h=N.p(c),m=function(e){var t=S(p);return N.w(t.date(t.date()+Math.round(e*r)),p)};if(h===u)return this.set(u,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[i]=t,f[o]=n,f[a]=e,f)[h]||1,v=this.$d.getTime()+r*g;return N.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=N.z(this),i=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,a,i){return e&&(e[n]||e(t,r))||a[n].slice(0,i)},f=function(e){return N.s(i%12||12,e,"0")},h=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return N.s(t.$y,4,"0");case"M":return s+1;case"MM":return N.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return N.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return N.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,o,!0);case"A":return h(i,o,!1);case"m":return String(o);case"mm":return N.s(o,2,"0");case"s":return String(t.$s);case"ss":return N.s(t.$s,2,"0");case"SSS":return N.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=N.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,_=function(){return N.m(m,v)};switch(g){case d:h=_()/12;break;case u:h=_();break;case c:h=_()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case o:h=b/n;break;case i:h=b/t;break;case a:h=b/e;break;default:h=b}return p?h:N.a(h)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return N.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),j=E.prototype;return S.prototype=j,[["$ms",r],["$s",a],["$m",i],["$H",o],["$W",s],["$M",u],["$y",d],["$D",f]].forEach((function(e){j[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,E,S),e.$i=!0),S},S.locale=k,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=_[b],S.Ls=_,S.p={},S}()),Fm.exports}var G2=Q2();const q2=v0(G2);var fy,Bm={exports:{}},K2=Bm.exports;function J2(){return fy||(fy=1,Bm.exports=(o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s=31536e6,months:l=2628e6,days:i=864e5,hours:a=36e5,minutes:r=6e4,seconds:n=1e3,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof y},f=function(e,t,n){return new y(e,n,t.$l)},p=function(e){return t.p(e)+"s"},h=function(e){return e<0},m=function(e){return h(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:""+g(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*c[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var a=e.match(u);if(a){var i=a.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var g=h.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*c[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/l),e%=l,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/a),e%=a,this.$d.minutes=m(e/r),e%=r,this.$d.seconds=m(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,"D"),a=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,"S"),l=e.negative||t.negative||r.negative||a.negative||i.negative||s.negative,u=a.format||i.format||s.format?"T":"",c=(l?"-":"")+"P"+e.format+t.format+r.format+u+a.format+i.format+s.format;return"P"===c||"-P"===c?"P0D":c},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/c[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?m(t/c[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*c[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")},function(n,r,a){e=a,t=a().$utils(),a.duration=function(e,t){var n=a.locale();return f(e,{$l:n},t)},a.isDuration=d;var i=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):o.bind(this)(e,t)}})),Bm.exports;var e,t,n,r,a,i,o,s,l,u,c,d,f,p,h,m,g,v,y,b}var X2=J2();const ek=v0(X2);q2.extend(ek);const R1=1e3,o0=6e4,a0=60*o0,Ph=24*a0,l0=30*Ph,dy=12*l0,id=(e,t,n,r)=>`${e}${n}`,tk=(e,t)=>e<o0?id(Math.floor(e/R1),0,"s"):e<a0?id(Math.floor(e/o0),0,"min"):e<Ph?id(Math.floor(e/a0),0,"h"):e<7*Ph?id(Math.floor(e/Ph),0,"d"):e<l0?id(Math.floor(e/(7*Ph)),0,"w"):e<dy?id(Math.floor(e/l0),0,"m"):id(Math.floor(e/dy),0,"y"),nk=(e,t)=>{const n=Date.now(),r=new Date(e).getTime(),a=Math.max(1,n-r);return tk(a)},rk=({type:e,post:t})=>{var n,r;return"LIKE"===e&&null!=(n=null==t?void 0:t.path)&&n.length||"COMMENT"===e&&(null==t?void 0:t.path)&&t.path.length>1||"REPOST"===e&&(null==(r=null==t?void 0:t.originalPost)?void 0:r.path.length)?"reply":"post"},bp=e=>{var t;const n=rk(e);switch(e.type){case"COMMENT":return`replied to your ${n}`;case"FOLLOW":return"started following you";case"FOLLOW_REQUEST":return"requested following you";case"LIKE":return`liked your ${n}`;case"MENTION":return"mentioned you";case"REPOST":return null!=(t=e.post)&&t.text?`quoted your ${n}`:`reposted your ${n}`}},ik=(e,t=!1)=>{var n;const r=t?"mr-1":"mr-2";switch(e.type){case"COMMENT":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(kw,{size:16,className:r})," ",bp(e)]});case"FOLLOW":case"FOLLOW_REQUEST":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(W0,{size:16,className:r}),bp(e)]});case"LIKE":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(xw,{size:16,className:r,color:t?"#fff":"var(--slate-700)",fill:"transparent"})," ",bp(e)]});case"MENTION":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(fw,{size:16,className:r})," ",bp(e)]});case"REPOST":{const t=null==(n=e.post)?void 0:n.text;return L.jsxs("div",{className:"flex items-center",children:[t?L.jsx(Ew,{size:16,className:r}):L.jsx(Nw,{size:16,className:r})," ",bp(e)]})}}},sk=e=>{const{user:t,isLoading:n}=Vy(),{data:r,isLoading:a,error:i}=U_(e),o="userId"in e,{data:s,isLoading:l}=$_({userId:o?e.userId:"",htmlContent:e.htmlContent??!1,canFetch:!!o&&(e.canFetch??!0)});return[o&&s||r,"username"in e&&`@${null==t?void 0:t.username}`===e.username||o&&(null==t?void 0:t.id)===e.userId,n||a||o&&l,!!i]},L1={forever:0,"6h":21600,"12h":43200,"24h":86400,"7 days":604800,"30 days":2592e3},ok=({selected:e,onSelect:t})=>Object.keys(L1).map((n=>L.jsxs("span",{className:kt("p-xxs gap-xxxs flex cursor-pointer rounded-full border border-slate-400 bg-transparent text-sm",{"border-slate-100 bg-slate-100":e===n}),onClick:()=>t(n),children:[e===n&&L.jsx(gw,{size:16}),"forever"===n?"Until I unmute":`For ${n}`]},n))),P1=({user:e,relationship:t,onMute:n,onUnmute:r})=>{const[a,{isLoading:i}]=F_(),[o,{isLoading:s}]=B_(),[l,u]=Kr("forever"),c=e?ca(e):"",[d,f,p]=x1(),h=W_(t);return{isLoading:i||s,isMuted:h,mute:f,unmute:()=>{e&&(o({userId:e.id}),yi.success(`${c} is unmuted`),null==r||r())},renderMuteDialog:()=>e?L.jsxs(rm,{open:d,onCloseModal:p,title:`Do you want to mute ${e.username}?`,className:"p-none","data-testid":"mute-dialog",children:[L.jsx("span",{className:"text-sm text-slate-500",children:"Muted users can still follow you and see your content, but you will not see any content from them. They will not know that they have been muted."}),L.jsx("div",{className:"gap-xxxs mt-m flex",children:L.jsx(ok,{selected:l,onSelect:u})}),L.jsx(Zv,{variant:"primary",onClick:()=>{(()=>{if(!e)return;const t=L1[l];a({userId:e.id,...t&&{duration:t}}),yi.success(`${c} is muted`),p(),null==n||n()})()},isLoading:i,className:"mt-m ml-auto block","data-testid":"submitAction",children:"Mute"})]}):null,isMuteDialogOpened:d}};function z1(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=z1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ak(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=z1(e))&&(r&&(r+=" "),r+=t);return r}const py=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u0=ak,lk=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return u0(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const o=py(t)||py(r);return a[e][o]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return u0(e,o,l,null==n?void 0:n.class,null==n?void 0:n.className)},uk=lk("rounded-full",{variants:{size:{20:"size-5 text-[10px]",24:"size-6 text-[10px]",32:"size-8 text-sm",40:"size-10 text-base",48:"size-[48px] text-base",96:"size-[96px] text-[32px]"}},defaultVariants:{size:40}}),j1=({name:e,imgUrl:t,size:n=40,className:r})=>{var a;return L.jsxs(m_,{className:kt(uk({size:n}),r),"data-testid":`userAvatar-${n}`,children:[t&&L.jsx(g_,{src:t,alt:"user-avatar"}),L.jsx("span",{className:"flex size-full items-center justify-center bg-slate-700 text-white",children:null==(a=null==e?void 0:e[0])?void 0:a.toUpperCase()})]})},ck={data:null,isPending:!1,isSuccess:!1},_s=dd({name:"userNoHTML",initialState:ck,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),D1="getApiV1UsersRelationships",fk=ld.memoize(((e,t)=>ad.util.selectCachedArgsForQuery(e,D1).find((e=>e.targets.includes(t))))),ou=({state:e,userId:t,dispatch:n,relationsProps:r})=>{const a=fk(e,t);return a?n(ad.util.updateQueryData(D1,a,(e=>{e[t]={...e[t],...r}}))):null},hy=3,my=64,gy=5,dk=56,pk=2,hk=30,mk=50,U1=30,eg={short:"Too short",long:"Too long"},I0=new RegExp("\\p{Extended_Pictographic}","u"),gk=({showInlineError:e=!0})=>Dn.string().trim().min(2,e?"Username is required":"").max(30,eg.long).regex(/^[0-9a-zA-Z_]+[0-9a-zA-Z_.]*$/,"Only latin letters, digits, _ and . allowed"),vk=Dn.string().trim().min(1,"Display name is required").max(50).regex(/^[^@]*$/,"@ is not allowed").superRefine(((e,t)=>{const n=I0.test(e),r=/[a-zA-Z0-9]/.test(e);n&&!r&&t.addIssue({code:Dn.ZodIssueCode.custom,message:"Emojis alone are not allowed. Please add text"})})),yk=Dn.string().max(1024,eg.long).optional(),$1=({minLength:e,minErrorMessage:t,maxLength:n,regexErrorMessage:r})=>Dn.string().trim().min(e,t).max(n,eg.long).regex(/^[0-9a-zA-Z_]+[0-9a-zA-Z_.]*$/,r);$1({minLength:2,maxLength:30,regexErrorMessage:"Invalid characters. ex.: group_name_1"}),$1({minLength:2,minErrorMessage:eg.short,maxLength:30,regexErrorMessage:"Invalid characters. ex.: channel_name_1"}),Dn.string().trim().min(2,"Too short").max(56,"Too long").regex(/^[0-9a-zA-Z_]+[0-9a-zA-Z_.]*$|^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{1,}$/,"Invalid characters"),Dn.string().trim().superRefine(((e,t)=>{I0.test(e)&&t.addIssue({code:Dn.ZodIssueCode.custom,message:"Emojis are not allowed"}),/[A-Z]/.test(e)&&/[a-z]/.test(e)&&/[0-9]/.test(e)&&/[^A-Za-z0-9]/.test(e)&&e.length>=3&&e.length<=64||t.addIssue({code:Dn.ZodIssueCode.custom,message:"Must include A-Z, a-z, 0-9, a special character, and be 3 - 64 chars"})})),Dn.string().trim().min(5,"Must be at least 5 characters long").regex(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/i,"Email format is not valid").refine((e=>!I0.test(e)),"Emojis are not allowed"),Dn.object({bio:yk,username:gk({showInlineError:!0}),displayName:vk}),Dn.object({show:Dn.boolean(),dateOnly:Dn.boolean(),date:Dn.date().optional().nullable()}),Dn.object({show:Dn.boolean(),dateOnly:Dn.boolean(),date:Dn.date().optional().nullable()});const vy=e=>{var t;const n=e,r=409===(null==n?void 0:n.status);return{message:"UserNameIsReserved"===(null==(t=null==n?void 0:n.data)?void 0:t.errorCode)?"Restricted words detected. Please, try alternatives":"Username already in use. Please, try another one",isError:r}},_k=ad.enhanceEndpoints({endpoints:{deleteApiV1Users:{invalidatesTags:["Secure","Account"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await vn(n)&&await t(ad.endpoints.getApiV1AccountsProfile.initiate({htmlContent:!1})).unwrap()}catch(e){yi.error(`${sd(e)}`)}}},getApiV1AccountsProfile:{providesTags:["Secure","Account"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){t(Kv(!0));try{const e=await vn(n);e&&t(e1(e.data)),t(Jv(!0))}catch(e){t(Jv(!1)),t(Xy(!0)),t(Jy(e))}finally{t(Kv(!1))}}},putApiV1UsersByUserId:{invalidatesTags:["Secure","Account"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,yi.success("User updated successfully")}catch(e){const t=e.error,{isError:n}=vy(t);!n&&yi.error(`${sd(t)}`)}}},getApiV1Users:{providesTags:["Secure","UserNoHtml"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const r=!e.htmlContent;try{r&&t(_s.actions.setPending(!0));const e=await vn(n);r&&e&&(t(_s.actions.setUser(e.data)),t(_s.actions.setSuccess(!0)),t(_s.actions.setPending(!1)))}catch(e){r&&(t(_s.actions.setSuccess(!1)),t(_s.actions.setError(e)),t(_s.actions.setPending(!1))),yi.error(`${sd(e)}`)}}},postApiV1Users:{invalidatesTags:["Account"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,yi.success("User created successfully")}catch(e){const t=e.error,{isError:n}=vy(t);!n&&yi.error(`${sd(t)}`)}}},getApiV1UsersFollowers:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersByUserId:{providesTags:["Secure","UserNoHtml"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const r=!e.htmlContent;try{r&&t(_s.actions.setPending(!0));const e=await vn(n);r&&e&&(t(_s.actions.setUser(e.data)),t(_s.actions.setSuccess(!0)),t(_s.actions.setPending(!1)))}catch(e){r&&(t(_s.actions.setSuccess(!1)),t(_s.actions.setError(e)),t(_s.actions.setPending(!1))),yi.error(`${sd(e)}`)}}},getApiV1UsersByUserIdFollowers:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersFollowees:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersByUserIdFollowing:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},postApiV1UsersFollowByUsernameAccept:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n,getState:r}){const a=ou({dispatch:n,userId:e.user.id,state:r(),relationsProps:{followed:"ACCEPTED"}});await vn(t,`Accepted follow request from ${e.username}`,(()=>null==a?void 0:a.undo()))}},postApiV1UsersFollowByUsernameReject:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n,getState:r}){const a=ou({dispatch:n,userId:e.user.id,state:r(),relationsProps:{followed:"REJECTED"}});await vn(t,`Rejected follow request from ${e.username}`,(()=>null==a?void 0:a.undo()))}},postApiV1UsersFollowByUsername:{invalidatesTags:["Follow","Secure"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n}){await vn(t,`Follow request sent to ${e.username}`)&&n(ad.util.invalidateTags([{type:"Relationship",id:e.user.id}]))}},postApiV1UsersFollowByUsernameUndo:{invalidatesTags:["Follow","Secure"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n,getState:r}){const a=ou({dispatch:n,userId:e.user.id,state:r(),relationsProps:{following:null}});await vn(t,`You unfollowed ${e.username}`,(()=>null==a?void 0:a.undo()))}},getApiV1Block:{providesTags:["Follow"]},postApiV1BlockByUserId:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e.userId,dispatch:r,state:n(),relationsProps:{blocked:!0}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},deleteApiV1BlockByUserId:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e.userId,dispatch:r,state:n(),relationsProps:{blocked:!1,muted:{state:!1}}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},postApiV1MuteByUserId:{async onQueryStarted({userId:e},{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e,dispatch:r,state:n(),relationsProps:{muted:{state:!0}}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},deleteApiV1MuteByUserId:{async onQueryStarted({userId:e},{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e,dispatch:r,state:n(),relationsProps:{muted:{state:!1}}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},getApiV1Mute:{async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersRelationships:{providesTags:(e,t,{targets:n})=>n.map((e=>({type:"Relationship",id:e}))),async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},postApiV1AdminUserChangeState:{invalidatesTags:["Secure"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t,`User ${e.changeUserState.userId} state changed to ${e.changeUserState.newState}`)}},putApiV1Notes:{async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const{userId:a,text:i}=e.noteUpdate,o=ou({userId:a,dispatch:r,state:n(),relationsProps:{note:i}});await vn(t,"Note has been updated",(()=>null==o?void 0:o.undo()))}},deleteApiV1NotesByUserId:{async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e.userId,dispatch:r,state:n(),relationsProps:{note:""}});await vn(t,"Note has been removed",(()=>null==a?void 0:a.undo()))}},postApiV1UsersFollowByUsernamePend:{async onQueryStarted(e,{queryFulfilled:t}){await vn(t,`${e.username} has been removed from followers`)}}}}).injectEndpoints({endpoints:e=>({getInteractionUrl:e.query({query:e=>({url:e,headers:{Accept:"application/activity+json"}}),transformResponse:e=>"string"==typeof e?JSON.parse(e):e})})}),{useGetInteractionUrlQuery:mE,usePostApiV1UsersMutation:gE,useDeleteApiV1AccountsDeleteMutation:vE,useGetApiV1AccountsProfileQuery:yE,usePutApiV1UsersByUserIdMutation:_E,useGetApiV1UsersQuery:wE,useDeleteApiV1UsersMutation:xE,usePostApiV1MuteByUserIdMutation:SE,useDeleteApiV1MuteByUserIdMutation:kE,useGetApiV1MuteQuery:bE,usePostApiV1AdminUserChangeStateMutation:EE,useGetApiV1UsersRelationshipsQuery:wk,usePutApiV1NotesMutation:CE,useDeleteApiV1NotesByUserIdMutation:NE,useLazyGetApiV1UsersRelationshipsQuery:xk,useLazyGetApiV1GeoQuery:IE,useGetApiV1UsersFollowersQuery:ME,useGetApiV1UsersByUserIdQuery:TE,useLazyGetApiV1GroupsAccountQuery:AE,useLazyGetApiV1UsersRenameHistoryQuery:OE,useGetApiV1UsersByUserIdFollowersQuery:RE,usePostApiV1UsersFollowByUsernameMutation:LE,usePostApiV1UsersFollowByUsernameUndoMutation:PE,usePostApiV1UsersFollowByUsernameRejectMutation:zE,usePostApiV1UsersFollowByUsernameAcceptMutation:jE}=_k,Sk=()=>{const e=Qn(Uh.selectors.selectCurrentUser),t=Qn(A1.selectors.selectIsAuthenticated);return{user:e,isLoading:Qn(Uh.selectors.selectPending),isLogged:t,error:Qn(Uh.selectors.selectError)}},F1=({onChange:e})=>{const{user:t}=Sk(),n=null==t?void 0:t.id,r=nl(n);Zs((()=>{r.current?n!==r.current&&(e(),r.current=n):r.current=n}),[n,r.current])},yy=["following","followed","blocked","muted","note","blocked_by"],_y=({userId:e,currentUserId:t})=>{const n="string"==typeof e,r=n?[e]:(null==e?void 0:e.filter((e=>e!==t)))||[],a=e===t;return{isSingleUser:n,canFetch:!(!r.length||a||!t),safeTargets:r}},B1=({userId:e,skip:t})=>{const n=Qn(Uh.selectors.selectCurrentUser),r=null==n?void 0:n.id,{canFetch:a,isSingleUser:i,safeTargets:o}=_y({userId:e,currentUserId:r}),{data:s,isLoading:l}=wk({targets:o,filter:yy},{skip:!a||t}),[u]=xk(),c=({userId:e})=>{const{canFetch:t,safeTargets:n}=_y({userId:e,currentUserId:r});t&&u({targets:n,filter:yy})};return F1({onChange:()=>{c({userId:o})}}),{relationship:(i?null==s?void 0:s[e]:s)||{},isLoading:l,updateRelations:c}},kk=e=>e.replace(/(<)/g,"<").replace(/>/g,">"),wy=(e,t)=>null!=t&&t.length?t.reduce(((e,t)=>e=e.replaceAll(new RegExp(`:${t.shortcode}:`,"g"),`<img class="custom-emoji" src="${t.staticUrl}" alt='emoji ${t.shortcode}'/>`)),e):e,bk={list:[]},Ek=dd({name:"emojis",initialState:bk,reducers:{addEmoji:(e,t)=>{e.list.push(t.payload)},addList:(e,t)=>{e.list=t.payload}},selectors:{selectEmojis:e=>e.list}}).injectInto(d0);var tg=(e=>(e.header="header",e.avatar="avatar",e))(tg||{});const M0=({user:e,type:t})=>{var n,r,a,i;if(!e)return"";try{return("avatar"===t?null==(r=null==(n=e.avatar)?void 0:n.files[0])?void 0:r.uri:null==(i=null==(a=e.header)?void 0:a.files[0])?void 0:i.uri)||""}catch{return""}},Ck="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%209V0L0%2012H9C10.6569%2012%2012%2010.6569%2012%209Z'%20fill='white'/%3e%3cpath%20d='M0%203V12L12%200H3C1.34315%200%200%201.34315%200%203Z'%20fill='%23CBD5E1'/%3e%3c/svg%3e",Nk="Enter",c0=52,Ik=e=>{const[t,n]=Kr((null==e?void 0:e.length)||0),r=nl(null),a=nl(null);return{inputRef:r,textareaRef:a,charCount:t,setCharCount:n,handleKeyDown:e=>{var t,n;e.key===Nk&&(e.preventDefault(),null==(t=r.current)||t.blur(),null==(n=a.current)||n.blur())},handleTextareaChange:e=>{const t=e.target,r=t.value.length;n(r);const a=Mk(t);setTimeout((()=>{if(t.style.height="52px",!a)return;const e=Math.max(t.scrollHeight,52);t.style.height=`${e}px`}),0)}}},Mk=e=>{if(e instanceof HTMLTextAreaElement){const t=document.createElement("canvas").getContext("2d"),n=window.getComputedStyle(e);if(t){t.font=n.font||"16px sans-serif";const r=parseInt(n.paddingLeft||"0")||0,a=parseInt(n.paddingRight||"0")||0,i=e.clientWidth-r-a;return t.measureText(e.value).width>i}return e.scrollHeight>52}{const t=e.value.includes("\n"),n=e.scrollWidth>e.clientWidth;return t||n}},xy=52,zh=200,Tk=10,Ak=Dn.object({note:Dn.string().max(zh)}),Ok=({userId:e,note:t="",className:n,resizable:r=!1})=>{const[a]=V_(),[i]=H_(),o=Qn(pd.selectors.selectIsAuthenticated),s=Qn(g0.selectors.selectCurrentUser),l=(null==s?void 0:s.id)===e,u=e=>{const t=e.target.value;c(t)},c=async(t="")=>{t?await a({noteUpdate:{userId:e,text:t}}):await i({userId:e})},d=h0({resolver:u1(Ak)}),{inputRef:f,textareaRef:p,charCount:h,setCharCount:m,handleTextareaChange:g,handleKeyDown:v}=Ik(t);if(!l&&o)return L.jsx(zy,{...d,children:L.jsxs("form",{className:kt("my-5",n),onKeyDown:v,children:[h>=190&&L.jsxs("div",{className:"mb-xxs text-right text-sm text-slate-400",children:[zh-h," characters left"]}),L.jsx(jy,{control:d.control,name:"note",render:e=>L.jsxs("div",{className:"rounded-m relative flex items-center bg-slate-100 text-slate-700",children:[r?L.jsx("textarea",{...e,ref:p,maxLength:zh,onBlur:u,onChange:g,defaultValue:t,placeholder:"Leave a note (visible only to you)",className:"scrollbar-hide p-s w-full resize-none border-0 bg-transparent text-base leading-5 outline-none [-ms-overflow-style:none] [scrollbar-width:none] focus:border-0 focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0 disabled:opacity-[1] [&::-webkit-scrollbar]:hidden",style:{height:"52px"}}):L.jsx("input",{...e,ref:f,maxLength:zh,onBlur:u,onChange:e=>{m(e.target.value.length)},defaultValue:t,placeholder:"Leave a note visible only to you",className:"p-s w-full border-0 bg-transparent focus-visible:outline-none disabled:opacity-[1]",style:{height:"52px"}}),L.jsx("img",{src:Ck,alt:"user note",className:"absolute bottom-0 right-0"})]})})]})})},Sy=({status:e,iconOnly:t=!1,clasName:n})=>{const r="muted"===e?L.jsx(Qy,{size:16}):L.jsx(Gy,{size:16}),a="muted"===e?"text-brown outline-brown":"text-red-dark outline-red-dark";return L.jsxs("div",{className:kt(a,"flex items-center gap-1 rounded-sm bg-white px-2 py-1 text-sm font-semibold outline",t&&"p-1",n),children:[r,!t&&ld.capitalize(e)]})},Rk=({children:e})=>L.jsx("span",{className:"line-clamp-2 block text-ellipsis whitespace-pre-wrap break-words text-left",children:e}),W1=({userId:e,status:t,skip:n=!1})=>{const r=Qn(g0.selectors.selectCurrentUser),a=Qn(pd.selectors.selectIsAuthenticated),i=!n&&a,o=e||(null==r?void 0:r.id),s=!(t||!o||!i),l=!(!t||!a||s||!i),{data:u,isLoading:c}=Z_({status:t},{skip:s||!l}),{data:d,isLoading:f}=Y_({userId:o},{skip:l||!s});return[d||u,c||f]},Uc={followers:"followers",following:"following"},Lk=({user:e,showEmpty:t=!0,className:n,renderModal:r,...a})=>{const[i]=W1({userId:e.id}),[o,s]=Kr({open:!1,tab:Uc.followers}),{guardedAction:l,ActionTooltipWrapper:u}=sm(),c=(null==i?void 0:i.length)||0,d=1===c?"follower":"followers",f=(null==i?void 0:i.slice(0,3))||[];return 0!==c||t?L.jsxs("div",{"data-testid":"user-followers",children:[o.open&&(null==r?void 0:r({user:e,tab:o.tab,isOpen:!0,onClose:()=>s((e=>({...e,open:!1}))),...a})),L.jsx(u,{children:L.jsxs("div",{onClick:l((()=>{s({tab:Uc.followers,open:!0})})),className:kt("mb-4 flex cursor-pointer items-center text-base font-medium text-slate-900",n),children:[f.length>0&&L.jsx("ul",{className:"mr-2 flex items-center",children:f.map(((e,t)=>L.jsx("li",{className:kt("relative",t>0&&"-ml-2"),children:L.jsx("div",{className:"rounded-full bg-white p-0.5",children:L.jsx(Hy,{size:24,name:e.displayName,imgUrl:M0({user:e,type:tg.avatar})})})},e.id)))}),c," ",d]})})]}):null},Pk=({status:e,userId:t,skip:n=!1})=>{const r=Qn(pd.selectors.selectIsAuthenticated),a=!!e&&r,{data:i,isLoading:o}=r_({status:e},{skip:!a||n}),{data:s,isLoading:l}=i_({userId:t},{skip:a||!t||!r||n});return{data:i||s,isLoading:o||l}},zk=({userUrl:e})=>L.jsxs("div",{className:"flex w-full items-center justify-between",children:[L.jsxs("div",{className:"gap-xs flex items-center",children:[L.jsx("div",{className:"flex size-10 items-center justify-center rounded-full border border-slate-200",children:L.jsx(Uw,{size:20})}),L.jsxs("div",{className:"text-sm",children:[L.jsx("p",{className:"mb-xxxs font-semibold text-slate-900",children:"Some followers may not be visible"}),L.jsx("span",{className:"text-slate-400",children:"You can see more on the original server"})]})]}),L.jsx(R_,{baseUrl:e,children:L.jsx("a",{href:e,children:L.jsxs(Bc,{variant:"secondary",className:"gap-xxs font-semibold",children:["See more followers ",L.jsx(Rw,{})]})})})]}),ky=({count:e=15,className:t,itemClassName:n})=>L.jsx("div",{"data-testid":"list-loader",className:kt("gap-m ml-auto mr-auto flex max-w-[560px] flex-col",t),children:Array.from(Array(e).keys()).map(((e,t)=>L.jsx(v_,{className:kt("rounded-m h-[50px] w-full",n)},t)))});var by,jh={exports:{}},jk=jh.exports;
|
|
60
|
+
*/}function Hw(){if(Z0)return ys;Z0=1;var e=we,t=Vw();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function i(e,t){o(e,t),o(e+"Capture",t)}function o(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function f(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function g(e,t,n,r){var a=p.hasOwnProperty(t)?p[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),S=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),I=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var z,O=Object.assign;function T(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var P=!1;function D(e,t){if(!e||P)return"";P=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{P=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?T(e):""}function R(e){switch(e.tag){case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1);case 11:return e=D(e.type.render,!1);case 1:return e=D(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case b:return"Portal";case x:return"Profiler";case w:return"StrictMode";case E:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function F(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Q(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=F(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function H(e,t){null!=(t=t.checked)&&g(e,"checked",t,!1)}function q(e,t){H(e,t);var n=F(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?G(e,t.type,n):t.hasOwnProperty("defaultValue")&&G(e,t.type,F(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function K(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function G(e,t,n){("number"!==t||V(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var J=Array.isArray;function X(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+F(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(J(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:F(r)}}function ne(e,t){var n=F(t.value),r=F(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var oe,se,le=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((oe=oe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var he=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ve=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,_e=null,xe=null;function ke(e){if(e=va(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=ba(t),be(e.stateNode,e.type,t))}}function Se(e){_e?xe?xe.push(e):xe=[e]:_e=e}function Ne(){if(_e){var e=_e,t=xe;if(xe=_e=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ee(e,t){return e(t)}function je(){}var Ce=!1;function Me(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return Ee(e,t,n)}finally{Ce=!1,(null!==_e||null!==xe)&&(je(),Ne())}}function Le(e,t){var r=e.stateNode;if(null===r)return null;var a=ba(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ie=!1;if(s)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch{Ie=!1}function ze(e,t,n,r,a,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Oe=!1,Te=null,Pe=!1,De=null,Re={onError:function(e){Oe=!0,Te=e}};function Ue(e,t,n,r,a,i,o,s,l){Oe=!1,Te=null,ze.apply(Re,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if($e(e)!==e)throw Error(n(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(a=i.return)){r=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Be(i),e;if(o===a)return Be(i),t;o=o.sibling}throw Error(n(188))}if(r.return!==a.return)r=i,a=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,a=o;break}if(l===a){s=!0,a=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,a=i;break}if(l===a){s=!0,a=o,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ve=t.unstable_scheduleCallback,Qe=t.unstable_cancelCallback,Ye=t.unstable_shouldYield,He=t.unstable_requestPaint,qe=t.unstable_now,Ke=t.unstable_getCurrentPriorityLevel,Ge=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/ot|0)|0},it=Math.log,ot=Math.LN2;var st=64,lt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~a;0!==s?r=ut(s):0!==(i&=o)&&(r=ut(i))}else 0!==(o=n&~a)?r=ut(o):0!==i&&(r=ut(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-at(t)),r|=e[n],t&=~a;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,_t,wt,xt,kt,St=!1,Nt=[],Et=null,jt=null,Ct=null,Mt=new Map,Lt=new Map,It=[],At="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 submit".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Ot(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Tt(e){var t=ga(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void kt(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function Dt(e,t,n){Pt(e)&&n.delete(t)}function Rt(){St=!1,null!==Et&&Pt(Et)&&(Et=null),null!==jt&&Pt(jt)&&(jt=null),null!==Ct&&Pt(Ct)&&(Ct=null),Mt.forEach(Dt),Lt.forEach(Dt)}function Ut(e,n){e.blockedOn===n&&(e.blockedOn=null,St||(St=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rt)))}function $t(e){function t(t){return Ut(t,e)}if(0<Nt.length){Ut(Nt[0],e);for(var n=1;n<Nt.length;n++){var r=Nt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ut(Et,e),null!==jt&&Ut(jt,e),null!==Ct&&Ut(Ct,e),Mt.forEach(t),Lt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Tt(n),null===n.blockedOn&&It.shift()}var Ft=v.ReactCurrentBatchConfig,Bt=!0;function Wt(e,t,n,r){var a=vt,i=Ft.transition;Ft.transition=null;try{vt=1,Vt(e,t,n,r)}finally{vt=a,Ft.transition=i}}function Zt(e,t,n,r){var a=vt,i=Ft.transition;Ft.transition=null;try{vt=4,Vt(e,t,n,r)}finally{vt=a,Ft.transition=i}}function Vt(e,t,n,r){if(Bt){var a=Yt(e,t,n,r);if(null===a)Br(e,t,r,Qt,n),zt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Et=Ot(Et,e,t,n,r,a),!0;case"dragenter":return jt=Ot(jt,e,t,n,r,a),!0;case"mouseover":return Ct=Ot(Ct,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Mt.set(i,Ot(Mt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Lt.set(i,Ot(Lt.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==a;){var i=va(a);if(null!==i&&bt(i),null===(i=Yt(e,t,n,r))&&Br(e,t,r,Qt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Qt=null;function Yt(e,t,n,r){if(Qt=null,null!==(e=ga(e=ye(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Ht(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ke()){case Ge:return 1;case Je:return 4;case Xe:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var qt=null,Kt=null,Gt=null;function Jt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,a="value"in qt?qt.value:qt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return Gt=a.slice(e,1<t?1-t:void 0)}function Xt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?en:tn,this.isPropagationStopped=tn,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,an,on,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=O({},sn,{view:0,detail:0}),cn=nn(un),dn=O({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(rn=e.screenX-on.screenX,an=e.screenY-on.screenY):an=rn=0,on=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=nn(dn),pn=nn(O({},dn,{dataTransfer:0})),hn=nn(O({},un,{relatedTarget:0})),mn=nn(O({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=O({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=nn(gn),yn=nn(O({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function kn(){return xn}var Sn=O({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Xt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=nn(Sn),En=nn(O({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=nn(O({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Cn=nn(O({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=O({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=nn(Mn),In=[9,13,27,32],An=s&&"CompositionEvent"in window,zn=null;s&&"documentMode"in document&&(zn=document.documentMode);var On=s&&"TextEvent"in window&&!zn,Tn=s&&(!An||zn&&8<zn&&11>=zn),Pn=" ",Dn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Fn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Wn(e,t,n,r){Se(r),0<(t=Zr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Vn=null;function Qn(e){Pr(e,0)}function Yn(e){if(Z(ya(e)))return e}function Hn(e,t){if("change"===e)return t}var qn=!1;if(s){var Kn;if(s){var Gn="oninput"in document;if(!Gn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Gn="function"==typeof Jn.oninput}Kn=Gn}else Kn=!1;qn=Kn&&(!document.documentMode||9<document.documentMode)}function Xn(){Zn&&(Zn.detachEvent("onpropertychange",er),Vn=Zn=null)}function er(e){if("value"===e.propertyName&&Yn(Vn)){var t=[];Wn(t,Vn,e,ye(e)),Me(Qn,t)}}function tr(e,t,n){"focusin"===e?(Xn(),Vn=n,(Zn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Xn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Vn)}function rr(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!l.call(t,a)||!ir(e[a],t[a]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=lr(n,i);var o=lr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==V(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&or(gr,r)||(gr=r,0<(r=Zr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},wr={},xr={};function kr(e){if(wr[e])return wr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return wr[e]=n[t];return e}s&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Sr=kr("animationend"),Nr=kr("animationiteration"),Er=kr("animationstart"),jr=kr("transitionend"),Cr=new Map,Mr="abort auxClick 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(" ");function Lr(e,t){Cr.set(e,t),i(t,[e])}for(var Ir=0;Ir<Mr.length;Ir++){var Ar=Mr[Ir];Lr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Lr(Sr,"onAnimationEnd"),Lr(Nr,"onAnimationIteration"),Lr(Er,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(jr,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="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(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Tr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,i,o,s,l,u){if(Ue.apply(this,arguments),Oe){if(!Oe)throw Error(n(198));var c=Te;Oe=!1,Te=null,Pe||(Pe=!0,De=c)}}(a,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Tr(a,s,u),i=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Tr(a,s,u),i=l}}}if(Pe)throw e=De,Pe=!1,De=null,e}function Dr(e,t){var n=t[pa];void 0===n&&(n=t[pa]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Rr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,r.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Rr(t,!1,e),Rr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Rr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Ht(t)){case 1:var a=Wt;break;case 4:a=Zt;break;default:a=Vt}n=a.bind(null,t,n,e),a=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,a){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=ga(s)))return;if(5===(l=o.tag)||6===l){r=i=o;continue e}s=s.parentNode}}r=r.return}Me((function(){var r=i,a=ye(n),o=[];e:{var s=Cr.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Xt(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":u="focus",l=hn;break;case"focusout":u="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jn;break;case Sr:case Nr:case Er:l=mn;break;case jr:l=Cn;break;case"scroll":l=cn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Le(h,f))&&c.push(Wr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ve||!(u=n.relatedTarget||n.fromElement)||!ga(u)&&!u[fa])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ga(u):null)&&(u!==(d=$e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=En,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:ya(l),p=null==u?s:ya(u),(s=new c(m,h+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,ga(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Vr(p))h++;for(p=0,m=f;m;m=Vr(m))p++;for(;0<h-p;)c=Vr(c),h--;for(;0<p-h;)f=Vr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vr(c),f=Vr(f)}c=null}else c=null;null!==l&&Qr(o,s,l,c,!1),null!==u&&null!==d&&Qr(o,d,u,c,!0)}if("select"===(l=(s=r?ya(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Hn;else if(Bn(s))if(qn)g=ar;else{g=nr;var v=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Wn(o,g,n,a):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&G(s,"number",s.value)),v=r?ya(r):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(hr=v,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(o,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,a)}var y;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Rn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Tn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=Jt()):(Kt="value"in(qt=a)?qt.value:qt.textContent,$n=!0)),0<(v=Zr(r,b)).length&&(b=new yn(b,e,null,n,a),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=On?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Dn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!An&&Rn(e,t)?(e=Jt(),Gt=Kt=qt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Zr(r,"onBeforeInput")).length&&(a=new yn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}Pr(o,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Le(e,n))&&r.unshift(Wr(e,i,a)),null!=(i=Le(e,t))&&r.push(Wr(e,i,a))),e=e.return}return r}function Vr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Le(n,i))&&o.unshift(Wr(n,l,s)):a||null!=(l=Le(n,i))&&o.push(Wr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Yr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function qr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Hr,"")}function Kr(e,t,r){if(t=qr(t),qr(e)!==t&&r)throw Error(n(425))}function Gr(){}var Jr=null,Xr=null;function ea(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0,ra="function"==typeof Promise?Promise:void 0,aa="function"==typeof queueMicrotask?queueMicrotask:typeof ra<"u"?function(e){return ra.resolve(null).then(e).catch(ia)}:ta;function ia(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);$t(t)}function sa(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function la(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ua=Math.random().toString(36).slice(2),ca="__reactFiber$"+ua,da="__reactProps$"+ua,fa="__reactContainer$"+ua,pa="__reactEvents$"+ua,ha="__reactListeners$"+ua,ma="__reactHandles$"+ua;function ga(e){var t=e[ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[ca]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=la(e);null!==e;){if(n=e[ca])return n;e=la(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[ca]||e[fa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ya(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ba(e){return e[da]||null}var _a=[],wa=-1;function xa(e){return{current:e}}function ka(e){0>wa||(e.current=_a[wa],_a[wa]=null,wa--)}function Sa(e,t){wa++,_a[wa]=e.current,e.current=t}var Na={},Ea=xa(Na),ja=xa(!1),Ca=Na;function Ma(e,t){var n=e.type.contextTypes;if(!n)return Na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function La(e){return null!=(e=e.childContextTypes)}function Ia(){ka(ja),ka(Ea)}function Aa(e,t,r){if(Ea.current!==Na)throw Error(n(168));Sa(Ea,t),Sa(ja,r)}function za(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var i in a=a.getChildContext())if(!(i in t))throw Error(n(108,$(e)||"Unknown",i));return O({},r,a)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Na,Ca=Ea.current,Sa(Ea,e),Sa(ja,ja.current),!0}function Ta(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=za(e,t,Ca),a.__reactInternalMemoizedMergedChildContext=e,ka(ja),ka(Ea),Sa(Ea,e)):ka(ja),Sa(ja,r)}var Pa=null,Da=!1,Ra=!1;function Ua(e){null===Pa?Pa=[e]:Pa.push(e)}function $a(){if(!Ra&&null!==Pa){Ra=!0;var e=0,t=vt;try{var n=Pa;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Pa=null,Da=!1}catch(t){throw null!==Pa&&(Pa=Pa.slice(e+1)),Ve(Ge,$a),t}finally{vt=t,Ra=!1}}return null}var Fa=[],Ba=0,Wa=null,Za=0,Va=[],Qa=0,Ya=null,Ha=1,qa="";function Ka(e,t){Fa[Ba++]=Za,Fa[Ba++]=Wa,Wa=e,Za=t}function Ga(e,t,n){Va[Qa++]=Ha,Va[Qa++]=qa,Va[Qa++]=Ya,Ya=e;var r=Ha;e=qa;var a=32-at(r)-1;r&=~(1<<a),n+=1;var i=32-at(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ha=1<<32-at(t)+a|n<<a|r,qa=i+e}else Ha=1<<i|n<<a|r,qa=e}function Ja(e){null!==e.return&&(Ka(e,1),Ga(e,1,0))}function Xa(e){for(;e===Wa;)Wa=Fa[--Ba],Fa[Ba]=null,Za=Fa[--Ba],Fa[Ba]=null;for(;e===Ya;)Ya=Va[--Qa],Va[Qa]=null,qa=Va[--Qa],Va[Qa]=null,Ha=Va[--Qa],Va[Qa]=null}var ei=null,ti=null,ni=!1,ri=null;function ai(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ii(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ei=e,ti=sa(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ei=e,ti=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ya?{id:Ha,overflow:qa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ei=e,ti=null,!0);default:return!1}}function oi(e){return!(!(1&e.mode)||128&e.flags)}function si(e){if(ni){var t=ti;if(t){var r=t;if(!ii(e,t)){if(oi(e))throw Error(n(418));t=sa(r.nextSibling);var a=ei;t&&ii(e,t)?ai(a,r):(e.flags=-4097&e.flags|2,ni=!1,ei=e)}}else{if(oi(e))throw Error(n(418));e.flags=-4097&e.flags|2,ni=!1,ei=e}}}function li(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ei=e}function ui(e){if(e!==ei)return!1;if(!ni)return li(e),ni=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ea(e.type,e.memoizedProps)),t&&(t=ti)){if(oi(e))throw ci(),Error(n(418));for(;t;)ai(e,t),t=sa(t.nextSibling)}if(li(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ti=sa(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ti=null}}else ti=ei?sa(e.stateNode.nextSibling):null;return!0}function ci(){for(var e=ti;e;)e=sa(e.nextSibling)}function di(){ti=ei=null,ni=!1}function fi(e){null===ri?ri=[e]:ri.push(e)}var pi=v.ReactCurrentBatchConfig;function hi(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mi=xa(null),gi=null,vi=null,yi=null;function bi(){yi=vi=gi=null}function _i(e){var t=mi.current;ka(mi),e._currentValue=t}function wi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xi(e,t){gi=e,yi=vi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(bs=!0),e.firstContext=null)}function ki(e){var t=e._currentValue;if(yi!==e)if(e={context:e,memoizedValue:t,next:null},null===vi){if(null===gi)throw Error(n(308));vi=e,gi.dependencies={lanes:0,firstContext:e}}else vi=vi.next=e;return t}var Si=null;function Ni(e){null===Si?Si=[e]:Si.push(e)}function Ei(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ni(t)):(n.next=a.next,a.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ci=!1;function Mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Cl){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,ji(e,n)}return null===(a=r.interleaved)?(t.next=t,Ni(r)):(t.next=a.next,a.next=t),r.interleaved=t,ji(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Oi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ti(e,t,n,r){var a=e.updateQueue;Ci=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?i=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=a.baseState;for(o=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=O({},d,f);break e;case 2:Ci=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=f;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(f=s).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Pl|=o,e.lanes=o,e.memoizedState=d}}function Pi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],i=a.callback;if(null!==i){if(a.callback=null,a=r,"function"!=typeof i)throw Error(n(191,i));i.call(a)}}}var Di=(new e.Component).refs;function Ri(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),i=Ii(r,a);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,a))&&(nu(t,e,a,r),zi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),i=Ii(r,a);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,a))&&(nu(t,e,a,r),zi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),a=Ii(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Ai(e,a,r))&&(nu(t,e,r,n),zi(t,e,r))}};function $i(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(a,i))}function Fi(e,t,n){var r=!1,a=Na,i=t.contextType;return"object"==typeof i&&null!==i?i=ki(i):(a=La(t)?Ca:Ea.current,i=(r=null!=(r=t.contextTypes))?Ma(e,a):Na),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Bi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ui.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Di,Mi(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=ki(i):(i=La(t)?Ca:Ea.current,a.context=Ma(e,i)),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ri(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ui.enqueueReplaceState(a,a.state,null),Ti(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Zi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var i=a,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=i.refs;t===Di&&(t=i.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Vi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qi(e){return(0,e._init)(e._payload)}function Yi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===M&&Qi(a)===t.type)?((r=i(t,n.props)).ref=Zi(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=Zi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ru(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Tu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=Zi(e,null,t),n.return=e,n;case b:return(t=Ru(t,e.mode,n)).return=e,t;case M:return f(e,(0,t._init)(t._payload),n)}if(J(t)||A(t))return(t=Tu(t,e.mode,n,null)).return=e,t;Vi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===a?u(e,t,n,r):null;case b:return n.key===a?c(e,t,n,r):null;case M:return p(e,t,(a=n._init)(n._payload),r)}if(J(n)||A(n))return null!==a?null:d(e,t,n,r,null);Vi(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case M:return h(e,t,n,(0,r._init)(r._payload),a)}if(J(r)||A(r))return d(t,e=e.get(n)||null,r,a,null);Vi(t,r)}return null}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===_&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var g=d.key,v=c;null!==v;){if(v.key===g){if((g=d.type)===_){if(7===v.tag){r(u,v.sibling),(c=i(v,d.props.children)).return=u,u=c;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===M&&Qi(g)===v.type){r(u,v.sibling),(c=i(v,d.props)).ref=Zi(u,v,d),c.return=u,u=c;break e}r(u,v);break}t(u,v),v=v.sibling}d.type===_?((c=Tu(d.props.children,u.mode,m,d.key)).return=u,u=c):((m=Ou(d.type,d.key,d.props,null,u.mode,m)).ref=Zi(u,c,d),m.return=u,u=m)}return s(u);case b:e:{for(v=d.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=i(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Ru(d,u.mode,m)).return=u,u=c}return s(u);case M:return l(u,c,(v=d._init)(d._payload),m)}if(J(d))return function(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=o(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ni&&Ka(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=o(d,i,m),null===c?u=d:c.sibling=d,c=d);return ni&&Ka(n,m),u}for(d=a(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),ni&&Ka(n,m),u}(u,c,d,m);if(A(d))return function(i,s,l,u){var c=A(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ni&&Ka(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return ni&&Ka(i,g),c}for(m=a(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),ni&&Ka(i,g),c}(u,c,d,m);Vi(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=i(c,d)).return=u,u=c):(r(u,c),(c=Du(d,u.mode,m)).return=u,u=c),s(u)):r(u,c)}}var Hi=Yi(!0),qi=Yi(!1),Ki={},Gi=xa(Ki),Ji=xa(Ki),Xi=xa(Ki);function eo(e){if(e===Ki)throw Error(n(174));return e}function to(e,t){switch(Sa(Xi,t),Sa(Ji,e),Sa(Gi,Ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ka(Gi),Sa(Gi,t)}function no(){ka(Gi),ka(Ji),ka(Xi)}function ro(e){eo(Xi.current);var t=eo(Gi.current),n=ie(t,e.type);t!==n&&(Sa(Ji,e),Sa(Gi,n))}function ao(e){Ji.current===e&&(ka(Gi),ka(Ji))}var io=xa(0);function oo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var so=[];function lo(){for(var e=0;e<so.length;e++)so[e]._workInProgressVersionPrimary=null;so.length=0}var uo=v.ReactCurrentDispatcher,co=v.ReactCurrentBatchConfig,fo=0,po=null,ho=null,mo=null,go=!1,vo=!1,yo=0,bo=0;function _o(){throw Error(n(321))}function wo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function xo(e,t,r,a,i,o){if(fo=o,po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uo.current=null===e||null===e.memoizedState?is:os,e=r(a,i),vo){o=0;do{if(vo=!1,yo=0,25<=o)throw Error(n(301));o+=1,mo=ho=null,t.updateQueue=null,uo.current=ss,e=r(a,i)}while(vo)}if(uo.current=as,t=null!==ho&&null!==ho.next,fo=0,mo=ho=po=null,go=!1,t)throw Error(n(300));return e}function ko(){var e=0!==yo;return yo=0,e}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mo?po.memoizedState=mo=e:mo=mo.next=e,mo}function No(){if(null===ho){var e=po.alternate;e=null!==e?e.memoizedState:null}else e=ho.next;var t=null===mo?po.memoizedState:mo.next;if(null!==t)mo=t,ho=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ho=e).memoizedState,baseState:ho.baseState,baseQueue:ho.baseQueue,queue:ho.queue,next:null},null===mo?po.memoizedState=mo=e:mo=mo.next=e}return mo}function Eo(e,t){return"function"==typeof t?t(e):t}function jo(e){var t=No(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=ho,i=a.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}a.baseQueue=i=o,r.pending=null}if(null!==i){o=i.next,a=a.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((fo&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=a):u=u.next=f,po.lanes|=d,Pl|=d}c=c.next}while(null!==c&&c!==o);null===u?s=a:u.next=l,ir(a,t.memoizedState)||(bs=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=u,r.lastRenderedState=a}if(null!==(e=r.interleaved)){i=e;do{o=i.lane,po.lanes|=o,Pl|=o,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Co(e){var t=No(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ir(o,t.memoizedState)||(bs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function Mo(){}function Lo(e,t){var r=po,a=No(),i=t(),o=!ir(a.memoizedState,i);if(o&&(a.memoizedState=i,bs=!0),a=a.queue,Bo(zo.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==mo&&1&mo.memoizedState.tag){if(r.flags|=2048,Do(9,Ao.bind(null,r,a,i,t),void 0,null),null===Ml)throw Error(n(349));30&fo||Io(r,t,i)}return i}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=po.updateQueue)?(t={lastEffect:null,stores:null},po.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ao(e,t,n,r){t.value=n,t.getSnapshot=r,Oo(t)&&To(e)}function zo(e,t,n){return n((function(){Oo(t)&&To(e)}))}function Oo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch{return!0}}function To(e){var t=ji(e,1);null!==t&&nu(t,e,1,-1)}function Po(e){var t=So();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t.queue=e,e=e.dispatch=es.bind(null,po,e),[t.memoizedState,e]}function Do(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=po.updateQueue)?(t={lastEffect:null,stores:null},po.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ro(){return No().memoizedState}function Uo(e,t,n,r){var a=So();po.flags|=e,a.memoizedState=Do(1|t,n,void 0,void 0===r?null:r)}function $o(e,t,n,r){var a=No();r=void 0===r?null:r;var i=void 0;if(null!==ho){var o=ho.memoizedState;if(i=o.destroy,null!==r&&wo(r,o.deps))return void(a.memoizedState=Do(t,n,i,r))}po.flags|=e,a.memoizedState=Do(1|t,n,i,r)}function Fo(e,t){return Uo(8390656,8,e,t)}function Bo(e,t){return $o(2048,8,e,t)}function Wo(e,t){return $o(4,2,e,t)}function Zo(e,t){return $o(4,4,e,t)}function Vo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qo(e,t,n){return n=null!=n?n.concat([e]):null,$o(4,4,Vo.bind(null,t,e),n)}function Yo(){}function Ho(e,t){var n=No();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qo(e,t){var n=No();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ko(e,t,n){return 21&fo?(ir(n,t)||(n=pt(),po.lanes|=n,Pl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Go(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=co.transition;co.transition={};try{e(!1),t()}finally{vt=n,co.transition=r}}function Jo(){return No().memoizedState}function Xo(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ts(e))ns(t,n);else if(null!==(n=Ei(e,t,n,r))){nu(n,e,r,eu()),rs(n,t,r)}}function es(e,t,n){var r=tu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ts(e))ns(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,ir(s,o)){var l=t.interleaved;return null===l?(a.next=a,Ni(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch{}null!==(n=Ei(e,t,a,r))&&(nu(n,e,r,a=eu()),rs(n,t,r))}}function ts(e){var t=e.alternate;return e===po||null!==t&&t===po}function ns(e,t){vo=go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var as={readContext:ki,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useInsertionEffect:_o,useLayoutEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useMutableSource:_o,useSyncExternalStore:_o,useId:_o,unstable_isNewReconciler:!1},is={readContext:ki,useCallback:function(e,t){return So().memoizedState=[e,void 0===t?null:t],e},useContext:ki,useEffect:Fo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Uo(4194308,4,Vo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=So();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=So();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Xo.bind(null,po,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},So().memoizedState=e},useState:Po,useDebugValue:Yo,useDeferredValue:function(e){return So().memoizedState=e},useTransition:function(){var e=Po(!1),t=e[0];return e=Go.bind(null,e[1]),So().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=po,i=So();if(ni){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ml)throw Error(n(349));30&fo||Io(a,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Fo(zo.bind(null,a,o,e),[e]),a.flags|=2048,Do(9,Ao.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=So(),t=Ml.identifierPrefix;if(ni){var n=qa;t=":"+t+"R"+(n=(Ha&~(1<<32-at(Ha)-1)).toString(32)+n),0<(n=yo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},os={readContext:ki,useCallback:Ho,useContext:ki,useEffect:Bo,useImperativeHandle:Qo,useInsertionEffect:Wo,useLayoutEffect:Zo,useMemo:qo,useReducer:jo,useRef:Ro,useState:function(){return jo(Eo)},useDebugValue:Yo,useDeferredValue:function(e){return Ko(No(),ho.memoizedState,e)},useTransition:function(){return[jo(Eo)[0],No().memoizedState]},useMutableSource:Mo,useSyncExternalStore:Lo,useId:Jo,unstable_isNewReconciler:!1},ss={readContext:ki,useCallback:Ho,useContext:ki,useEffect:Bo,useImperativeHandle:Qo,useInsertionEffect:Wo,useLayoutEffect:Zo,useMemo:qo,useReducer:Co,useRef:Ro,useState:function(){return Co(Eo)},useDebugValue:Yo,useDeferredValue:function(e){var t=No();return null===ho?t.memoizedState=e:Ko(t,ho.memoizedState,e)},useTransition:function(){return[Co(Eo)[0],No().memoizedState]},useMutableSource:Mo,useSyncExternalStore:Lo,useId:Jo,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=R(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function us(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zl||(Zl=!0,Vl=r),cs(0,t)},n}function ps(e,t,n){(n=Ii(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){cs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){cs(0,t),"function"!=typeof r&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ds;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Nu.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e)}var vs=v.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?qi(t,null,n,r):Hi(t,e.child,n,r)}function ws(e,t,n,r,a){n=n.render;var i=t.ref;return xi(t,a),r=xo(e,t,n,r,i,a),n=ko(),null===e||bs?(ni&&n&&Ja(t),t.flags|=1,_s(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Zs(e,t,a))}function xs(e,t,n,r,a){if(null===e){var i=n.type;return"function"!=typeof i||Au(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,a))}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:or)(o,r)&&e.ref===t.ref)return Zs(e,t,a)}return t.flags|=1,(e=zu(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,!(e.lanes&a))return t.lanes=e.lanes,Zs(e,t,a);131072&e.flags&&(bs=!0)}}return Es(e,t,n,r,a)}function Ss(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Sa(zl,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Sa(zl,Al),Al|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sa(zl,Al),Al|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Sa(zl,Al),Al|=r;return _s(e,t,a,n),t.child}function Ns(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,a){var i=La(n)?Ca:Ea.current;return i=Ma(t,i),xi(t,a),n=xo(e,t,n,r,i,a),r=ko(),null===e||bs?(ni&&r&&Ja(t),t.flags|=1,_s(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Zs(e,t,a))}function js(e,t,n,r,a){if(La(n)){var i=!0;Oa(t)}else i=!1;if(xi(t,a),null===t.stateNode)Ws(e,t),Fi(t,n,r),Wi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=ki(u):u=Ma(t,u=La(n)?Ca:Ea.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&Bi(t,o,r,u),Ci=!1;var f=t.memoizedState;o.state=f,Ti(t,r,o,a),l=t.memoizedState,s!==r||f!==l||ja.current||Ci?("function"==typeof c&&(Ri(t,n,c,r),l=t.memoizedState),(s=Ci||$i(t,n,s,r,f,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Li(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:hi(t.type,s),o.props=u,d=t.pendingProps,f=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=ki(l):l=Ma(t,l=La(n)?Ca:Ea.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||f!==l)&&Bi(t,o,r,l),Ci=!1,f=t.memoizedState,o.state=f,Ti(t,r,o,a);var h=t.memoizedState;s!==d||f!==h||ja.current||Ci?("function"==typeof p&&(Ri(t,n,p,r),h=t.memoizedState),(u=Ci||$i(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,i,a)}function Cs(e,t,n,r,a,i){Ns(e,t);var o=!!(128&t.flags);if(!r&&!o)return a&&Ta(t,n,!1),Zs(e,t,i);r=t.stateNode,vs.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Hi(t,e.child,null,i),t.child=Hi(t,null,s,i)):_s(e,t,s,i),t.memoizedState=r.state,a&&Ta(t,n,!0),t.child}function Ms(e){var t=e.stateNode;t.pendingContext?Aa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Aa(0,t.context,!1),to(e,t.containerInfo)}function Ls(e,t,n,r,a){return di(),fi(a),t.flags|=256,_s(e,t,n,r),t.child}var Is,As,zs,Os,Ts={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,r){var a,i=t.pendingProps,o=io.current,s=!1,l=!!(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&!!(2&o)),a?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(o|=1),Sa(io,1&o),null===e)return si(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Pu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Tu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ps(r),t.memoizedState=Ts,e):Rs(t,l));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,r,a,i,o,s){if(r)return 256&t.flags?(t.flags&=-257,a=us(Error(n(422))),Us(e,t,s,a)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,i=t.mode,a=Pu({mode:"visible",children:a.children},i,0,null),o=Tu(o,i,s,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,1&t.mode&&Hi(t,e.child,null,s),t.child.memoizedState=Ps(s),t.memoizedState=Ts,o);if(!(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(a=i.nextSibling&&i.nextSibling.dataset)var l=a.dgst;return a=l,Us(e,t,s,a=us(o=Error(n(419)),a,void 0))}if(l=!!(s&e.childLanes),bs||l){if(null!==(a=Ml)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(a.suspendedLanes|s)?0:i)&&i!==o.retryLane&&(o.retryLane=i,ji(e,i),nu(a,e,i,-1))}return mu(),Us(e,t,s,a=us(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=ju.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ti=sa(i.nextSibling),ei=t,ni=!0,ri=null,null!==e&&(Va[Qa++]=Ha,Va[Qa++]=qa,Va[Qa++]=Ya,Ha=e.id,qa=e.overflow,Ya=t),t=Rs(t,a.children),t.flags|=4096,t)}(e,t,l,i,a,o,r);if(s){s=i.fallback,l=t.mode,a=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===o?(i=zu(o,u)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==a?s=zu(a,s):(s=Tu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ps(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ts,i}return e=(s=e.child).sibling,i=zu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Rs(e,t){return(t=Pu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&fi(r),Hi(t,e.child,null,n),(e=Rs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wi(e.return,t,n)}function Fs(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Bs(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(_s(e,t,r.children,n),2&(r=io.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Sa(io,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===oo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Fs(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===oo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Fs(t,!0,n,null,i);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Pl|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=zu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=zu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!ni)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ys(e,t,r){var i=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return La(t.type)&&Ia(),Qs(t),null;case 3:return i=t.stateNode,no(),ka(ja),ka(Ea),lo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(ui(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ri&&(ou(ri),ri=null))),As(e,t),Qs(t),null;case 5:ao(t);var o=eo(Xi.current);if(r=t.type,null!==e&&null!=t.stateNode)zs(e,t,r,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Qs(t),null}if(e=eo(Gi.current),ui(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[ca]=t,i[da]=s,e=!!(1&t.mode),r){case"dialog":Dr("cancel",i),Dr("close",i);break;case"iframe":case"object":case"embed":Dr("load",i);break;case"video":case"audio":for(o=0;o<zr.length;o++)Dr(zr[o],i);break;case"source":Dr("error",i);break;case"img":case"image":case"link":Dr("error",i),Dr("load",i);break;case"details":Dr("toggle",i);break;case"input":Y(i,s),Dr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Dr("invalid",i);break;case"textarea":te(i,s),Dr("invalid",i)}for(var l in me(r,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Kr(i.textContent,u,e),o=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Kr(i.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Dr("scroll",i)}switch(r){case"input":W(i),K(i,s,!0);break;case"textarea":W(i),re(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Gr)}i=o,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[ca]=t,e[da]=i,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=ge(r,i),r){case"dialog":Dr("cancel",e),Dr("close",e),o=i;break;case"iframe":case"object":case"embed":Dr("load",e),o=i;break;case"video":case"audio":for(o=0;o<zr.length;o++)Dr(zr[o],e);o=i;break;case"source":Dr("error",e),o=i;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=i;break;case"details":Dr("toggle",e),o=i;break;case"input":Y(e,i),o=Q(e,i),Dr("invalid",e);break;case"option":default:o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=O({},i,{value:void 0}),Dr("invalid",e);break;case"textarea":te(e,i),o=ee(e,i),Dr("invalid",e)}for(s in me(r,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?pe(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ue(e,c):"number"==typeof c&&ue(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Dr("scroll",e):null!=c&&g(e,s,c,l))}switch(r){case"input":W(e),K(e,i,!1);break;case"textarea":W(e),re(e);break;case"option":null!=i.value&&e.setAttribute("value",""+F(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?X(e,!!i.multiple,s,!1):null!=i.defaultValue&&X(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Gr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)Os(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=eo(Xi.current),eo(Gi.current),ui(t)){if(i=t.stateNode,r=t.memoizedProps,i[ca]=t,(s=i.nodeValue!==r)&&null!==(e=ei))switch(e.tag){case 3:Kr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Kr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[ca]=t,t.stateNode=i}return Qs(t),null;case 13:if(ka(io),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ni&&null!==ti&&1&t.mode&&!(128&t.flags))ci(),di(),t.flags|=98560,s=!1;else if(s=ui(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ca]=t}else di(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),s=!1}else null!==ri&&(ou(ri),ri=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&io.current?0===Ol&&(Ol=3):mu())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return no(),As(e,t),null===e&&$r(t.stateNode.containerInfo),Qs(t),null;case 10:return _i(t.type._context),Qs(t),null;case 19:if(ka(io),null===(s=t.memoizedState))return Qs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Vs(s,!1);else{if(0!==Ol||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=oo(e))){for(t.flags|=128,Vs(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Sa(io,1&io.current|2),t.child}e=e.sibling}null!==s.tail&&qe()>Bl&&(t.flags|=128,i=!0,Vs(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=oo(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ni)return Qs(t),null}else 2*qe()-s.renderingStartTime>Bl&&1073741824!==r&&(t.flags|=128,i=!0,Vs(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=qe(),t.sibling=null,r=io.current,Sa(io,i?1&r|2:1&r),t):(Qs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?1073741824&Al&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Hs(e,t){switch(Xa(t),t.tag){case 1:return La(t.type)&&Ia(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return no(),ka(ja),ka(Ea),lo(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ao(t),null;case 13:if(ka(io),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));di()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ka(io),null;case 4:return no(),null;case 10:return _i(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},As=function(){},zs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,eo(Gi.current);var o,s=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),s=[];break;case"select":i=O({},i,{value:void 0}),r=O({},r,{value:void 0}),s=[];break;case"textarea":i=ee(e,i),r=ee(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Gr)}for(c in me(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Ks=!1,Gs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Su(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&el(t,n,i)}a=a.next}while(a!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ca],delete t[da],delete t[pa],delete t[ha],delete t[ma])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Gr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch{}switch(n.tag){case 5:Ks||Xs(n,t);case 6:var r=cl,a=dl;cl=null,fl(e,t,n),dl=a,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),$t(e)):oa(cl,n.stateNode));break;case 4:r=cl,a=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=a;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(2&i||4&i)&&el(n,t,o),a=a.next}while(a!==r)}fl(e,t,n);break;case 1:if(!Ks&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gs),t.forEach((function(t){var r=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var i=r[a];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(o,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&a){try{nl(3,e,e.return),rl(3,e)}catch(t){Su(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&a&&null!==r&&Xs(r,r.return);break;case 5:if(ml(t,e),vl(e),512&a&&null!==r&&Xs(r,r.return),32&e.flags){var i=e.stateNode;try{ue(i,"")}catch(t){Su(e,e.return,t)}}if(4&a&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==r?r.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&H(i,o),ge(l,s);var c=ge(l,o);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?le(i,f):"children"===d?ue(i,f):g(i,d,f,c)}switch(l){case"input":q(i,o);break;case"textarea":ne(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?X(i,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?X(i,!!o.multiple,o.defaultValue,!0):X(i,!!o.multiple,o.multiple?[]:"",!1))}i[da]=o}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&a){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Fl=qe())),4&a&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ks=(c=Ks)||d,ml(t,e),Ks=c):ml(t,e),vl(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(a,r,e)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){wl(f);continue}}null!==h?(h.return=p,Js=h):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=fe("display",s))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&a&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ol(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var i=a.stateNode;32&a.flags&&(ue(i,""),a.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var o=a.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(n(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var a=Js,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||qs;if(!o){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=qs;var u=Ks;if(qs=o,(Ks=l)&&!u)for(Js=a;null!==Js;)l=(o=Js).child,22===o.tag&&null!==o.memoizedState?xl(a):null!==l?(l.return=o,Js=l):xl(a);for(;null!==i;)Js=i,bl(i),i=i.sibling;Js=a,qs=s,Ks=u}_l(e)}else 8772&a.subtreeFlags&&null!==i?(i.return=a,Js=i):_l(e)}}function _l(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Ks)if(null===r)a.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:hi(t.type,r.memoizedProps);a.componentDidUpdate(i,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Pi(t,o,a);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Pi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(n(163))}Ks||512&t.flags&&al(t)}catch(e){Su(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){Su(t,a,e)}}var i=t.return;try{al(t)}catch(e){Su(t,i,e)}break;case 5:var o=t.return;try{al(t)}catch(e){Su(t,o,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var kl,Sl=Math.ceil,Nl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,jl=v.ReactCurrentBatchConfig,Cl=0,Ml=null,Ll=null,Il=0,Al=0,zl=xa(0),Ol=0,Tl=null,Pl=0,Dl=0,Rl=0,Ul=null,$l=null,Fl=0,Bl=1/0,Wl=null,Zl=!1,Vl=null,Ql=null,Yl=!1,Hl=null,ql=0,Kl=0,Gl=null,Jl=-1,Xl=0;function eu(){return 6&Cl?qe():-1!==Jl?Jl:Jl=qe()}function tu(e){return 1&e.mode?2&Cl&&0!==Il?Il&-Il:null!==pi.transition?(0===Xl&&(Xl=pt()),Xl):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Ht(e.type)),e):1}function nu(e,t,r,a){if(50<Kl)throw Kl=0,Gl=null,Error(n(185));mt(e,r,a),(!(2&Cl)||e!==Ml)&&(e===Ml&&(!(2&Cl)&&(Dl|=r),4===Ol&&su(e,Il)),ru(e,a),1===r&&0===Cl&&!(1&t.mode)&&(Bl=qe()+500,Da&&$a()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-at(i),s=1<<o,l=a[o];-1===l?(!(s&n)||s&r)&&(a[o]=dt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ct(e,e===Ml?Il:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Da=!0,Ua(e)}(lu.bind(null,e)):Ua(lu.bind(null,e)),aa((function(){!(6&Cl)&&$a()})),n=null;else{switch(yt(r)){case 1:n=Ge;break;case 4:n=Je;break;case 16:default:n=Xe;break;case 536870912:n=tt}n=Mu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Jl=-1,Xl=0,6&Cl)throw Error(n(327));var r=e.callbackNode;if(xu()&&e.callbackNode!==r)return null;var a=ct(e,e===Ml?Il:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=gu(e,a);else{t=a;var i=Cl;Cl|=2;var o=hu();for((Ml!==e||Il!==t)&&(Wl=null,Bl=qe()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}bi(),Nl.current=o,Cl=i,null!==Ll?t=0:(Ml=null,Il=0,t=Ol)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(a=i,t=iu(e,i))),1===t)throw r=Tl,fu(e,0),su(e,a),ru(e,qe()),r;if(6===t)su(e,a);else{if(i=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!ir(i(),a))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,a),2===t&&(o=ft(e),0!==o&&(a=o,t=iu(e,o))),1!==t)))throw r=Tl,fu(e,0),su(e,a),ru(e,qe()),r;switch(e.finishedWork=i,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:wu(e,$l,Wl);break;case 3:if(su(e,a),(130023424&a)===a&&10<(t=Fl+500-qe())){if(0!==ct(e,0))break;if(((i=e.suspendedLanes)&a)!==a){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ta(wu.bind(null,e,$l,Wl),t);break}wu(e,$l,Wl);break;case 4:if(su(e,a),(4194240&a)===a)break;for(t=e.eventTimes,i=-1;0<a;){var s=31-at(a);o=1<<s,(s=t[s])>i&&(i=s),a&=~o}if(a=i,10<(a=(120>(a=qe()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Sl(a/1960))-a)){e.timeoutHandle=ta(wu.bind(null,e,$l,Wl),a);break}wu(e,$l,Wl);break;default:throw Error(n(329))}}}return ru(e,qe()),e.callbackNode===r?au.bind(null,e):null}function iu(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=$l,$l=n,null!==t&&ou(t)),e}function ou(e){null===$l?$l=e:$l.push.apply($l,e)}function su(e,t){for(t&=~Rl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Cl)throw Error(n(327));xu();var t=ct(e,0);if(!(1&t))return ru(e,qe()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var a=ft(e);0!==a&&(t=a,r=iu(e,a))}if(1===r)throw r=Tl,fu(e,0),su(e,t),ru(e,qe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,$l,Wl),ru(e,qe()),null}function uu(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Bl=qe()+500,Da&&$a())}}function cu(e){null!==Hl&&0===Hl.tag&&!(6&Cl)&&xu();var t=Cl;Cl|=1;var n=jl.transition,r=vt;try{if(jl.transition=null,vt=1,e)return e()}finally{vt=r,jl.transition=n,!(6&(Cl=t))&&$a()}}function du(){Al=zl.current,ka(zl)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(Xa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ia();break;case 3:no(),ka(ja),ka(Ea),lo();break;case 5:ao(r);break;case 4:no();break;case 13:case 19:ka(io);break;case 10:_i(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ml=e,Ll=e=zu(e.current,null),Il=Al=t,Ol=0,Tl=null,Rl=Dl=Pl=0,$l=Ul=null,null!==Si){for(t=0;t<Si.length;t++)if(null!==(r=(n=Si[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}Si=null}return e}function pu(e,t){for(;;){var r=Ll;try{if(bi(),uo.current=as,go){for(var a=po.memoizedState;null!==a;){var i=a.queue;null!==i&&(i.pending=null),a=a.next}go=!1}if(fo=0,mo=ho=po=null,vo=!1,yo=0,El.current=null,null===r||null===r.return){Ol=1,Tl=t,Ll=null;break}e:{var o=e,s=r.return,l=r,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,gs(h,s,l,0,t),1&h.mode&&hs(o,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){hs(o,c,t),mu();break e}u=Error(n(426))}else if(ni&&1&l.mode){var v=ms(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),gs(v,s,l,0,t),fi(ls(u,l));break e}}o=u=ls(u,l),4!==Ol&&(Ol=2),null===Ul?Ul=[o]:Ul.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Oi(o,fs(0,u,t));break e;case 1:l=u;var y=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ql&&Ql.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Oi(o,ps(o,l,t));break e}}o=o.return}while(null!==o)}_u(r)}catch(e){t=e,Ll===r&&null!==r&&(Ll=r=r.return);continue}break}}function hu(){var e=Nl.current;return Nl.current=as,null===e?as:e}function mu(){(0===Ol||3===Ol||2===Ol)&&(Ol=4),null===Ml||!(268435455&Pl)&&!(268435455&Dl)||su(Ml,Il)}function gu(e,t){var r=Cl;Cl|=2;var a=hu();for((Ml!==e||Il!==t)&&(Wl=null,fu(e,t));;)try{vu();break}catch(t){pu(e,t)}if(bi(),Cl=r,Nl.current=a,null!==Ll)throw Error(n(261));return Ml=null,Il=0,Ol}function vu(){for(;null!==Ll;)bu(Ll)}function yu(){for(;null!==Ll&&!Ye();)bu(Ll)}function bu(e){var t=kl(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?_u(e):Ll=t,El.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Hs(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Ol=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Al)))return void(Ll=n);if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Ol&&(Ol=5)}function wu(e,t,r){var a=vt,i=jl.transition;try{jl.transition=null,vt=1,function(e,t,r,a){do{xu()}while(null!==Hl);if(6&Cl)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-at(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===Ml&&(Ll=Ml=null,Il=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Yl||(Yl=!0,Mu(Xe,(function(){return xu(),null}))),o=!!(15990&r.flags),15990&r.subtreeFlags||o){o=jl.transition,jl.transition=null;var s=vt;vt=1;var l=Cl;Cl|=4,El.current=null,function(e,t){if(Jr=Bt,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==o||0!==a&&3!==f.nodeType||(u=s+a),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===o&&++d===a&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xr={focusedElem:e,selectionRange:r},Bt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:hi(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,r),gl(r,e),fr(Xr),Bt=!!Jr,Xr=Jr=null,e.current=r,yl(r),He(),Cl=l,vt=s,jl.transition=o}else e.current=r;if(Yl&&(Yl=!1,Hl=e,ql=i),o=e.pendingLanes,0===o&&(Ql=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),ru(e,qe()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],a(i.value,{componentStack:i.stack,digest:i.digest});if(Zl)throw Zl=!1,e=Vl,Vl=null,e;1&ql&&0!==e.tag&&xu(),o=e.pendingLanes,1&o?e===Gl?Kl++:(Kl=0,Gl=e):Kl=0,$a()}(e,t,r,a)}finally{jl.transition=i,vt=a}return null}function xu(){if(null!==Hl){var e=yt(ql),t=jl.transition,r=vt;try{if(jl.transition=null,vt=16>e?16:e,null===Hl)var a=!1;else{if(e=Hl,Hl=null,ql=0,6&Cl)throw Error(n(331));var i=Cl;for(Cl|=4,Js=e.current;null!==Js;){var o=Js,s=o.child;if(16&Js.flags){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Js=s;else e:for(;null!==Js;){if(2048&(o=Js).flags)switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Js=y;break e}Js=o.return}}var b=e.current;for(Js=b;null!==Js;){var _=(s=Js).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Js=_;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Su(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Cl=i,$a(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch{}a=!0}return a}finally{vt=r,jl.transition=t}}return!1}function ku(e,t,n){e=Ai(e,t=fs(0,t=ls(n,t),1),1),t=eu(),null!==e&&(mt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ql||!Ql.has(r))){t=Ai(t,e=ps(t,e=ls(n,e),1),1),e=eu(),null!==t&&(mt(t,1,e),ru(t,e));break}}t=t.return}}function Nu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ml===e&&(Il&n)===n&&(4===Ol||3===Ol&&(130023424&Il)===Il&&500>qe()-Fl?fu(e,0):Rl|=n),ru(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=lt,!(130023424&(lt<<=1))&&(lt=4194304)):t=1);var n=eu();null!==(e=ji(e,t))&&(mt(e,t,n),ru(e,n))}function ju(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Cu(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Eu(e,r)}function Mu(e,t){return Ve(e,t)}function Lu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Lu(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,r,a,i,o){var s=2;if(a=e,"function"==typeof e)Au(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Tu(r.children,i,o,t);case w:s=8,i|=8;break;case x:return(e=Iu(12,r,t,2|i)).elementType=x,e.lanes=o,e;case E:return(e=Iu(13,r,t,i)).elementType=E,e.lanes=o,e;case j:return(e=Iu(19,r,t,i)).elementType=j,e.lanes=o,e;case L:return Pu(r,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case S:s=9;break e;case N:s=11;break e;case C:s=14;break e;case M:s=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Iu(s,r,t,i)).elementType=e,t.type=a,t.lanes=o,t}function Tu(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Pu(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function Ru(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,a,i,o,s,l){return e=new Uu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Iu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mi(i),e}function Fu(e){if(!e)return Na;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(La(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(La(r))return za(e,r,t)}return t}function Bu(e,t,n,r,a,i,o,s,l){return(e=$u(n,r,!0,e,0,i,0,s,l)).context=Fu(null),n=e.current,(i=Ii(r=eu(),a=tu(n))).callback=t??null,Ai(n,i,a),e.current.lanes=a,mt(e,a,r),ru(e,r),e}function Wu(e,t,n,r){var a=t.current,i=eu(),o=tu(a);return n=Fu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ai(a,t,o))&&(nu(e,a,o,i),zi(e,a,o)),o}function Zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||ja.current)bs=!0;else{if(!(e.lanes&r||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ms(t),di();break;case 5:ro(t);break;case 1:La(t.type)&&Oa(t);break;case 4:to(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Sa(mi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Sa(io,1&io.current),t.flags|=128,null):n&t.child.childLanes?Ds(e,t,n):(Sa(io,1&io.current),null!==(e=Zs(e,t,n))?e.sibling:null);Sa(io,1&io.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Sa(io,io.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Zs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ni&&1048576&t.flags&&Ga(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ws(e,t),e=t.pendingProps;var i=Ma(t,Ea.current);xi(t,r),i=xo(null,t,a,e,i,r);var o=ko();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,La(a)?(o=!0,Oa(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Mi(t),i.updater=Ui,t.stateNode=i,i._reactInternals=t,Wi(t,a,e,r),t=Cs(null,t,a,!0,o,r)):(t.tag=0,ni&&o&&Ja(t),_s(null,t,i,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"==typeof e)return Au(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===C)return 14}return 2}(a),e=hi(a,e),i){case 0:t=Es(null,t,a,e,r);break e;case 1:t=js(null,t,a,e,r);break e;case 11:t=ws(null,t,a,e,r);break e;case 14:t=xs(null,t,a,hi(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,i=t.pendingProps,Es(e,t,a,i=t.elementType===a?i:hi(a,i),r);case 1:return a=t.type,i=t.pendingProps,js(e,t,a,i=t.elementType===a?i:hi(a,i),r);case 3:e:{if(Ms(t),null===e)throw Error(n(387));a=t.pendingProps,i=(o=t.memoizedState).element,Li(e,t),Ti(t,a,null,r);var s=t.memoizedState;if(a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ls(e,t,a,r,i=ls(Error(n(423)),t));break e}if(a!==i){t=Ls(e,t,a,r,i=ls(Error(n(424)),t));break e}for(ti=sa(t.stateNode.containerInfo.firstChild),ei=t,ni=!0,ri=null,r=qi(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(di(),a===i){t=Zs(e,t,r);break e}_s(e,t,a,r)}t=t.child}return t;case 5:return ro(t),null===e&&si(t),a=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ea(a,i)?s=null:null!==o&&ea(a,o)&&(t.flags|=32),Ns(e,t),_s(e,t,s,r),t.child;case 6:return null===e&&si(t),null;case 13:return Ds(e,t,r);case 4:return to(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=Hi(t,null,a,r):_s(e,t,a,r),t.child;case 11:return a=t.type,i=t.pendingProps,ws(e,t,a,i=t.elementType===a?i:hi(a,i),r);case 7:return _s(e,t,t.pendingProps,r),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Sa(mi,a._currentValue),a._currentValue=s,null!==o)if(ir(o.value,s)){if(o.children===i.children&&!ja.current){t=Zs(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===a){if(1===o.tag){(u=Ii(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=r,null!==(u=o.alternate)&&(u.lanes|=r),wi(o.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),wi(s,r,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}_s(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps.children,xi(t,r),a=a(i=ki(i)),t.flags|=1,_s(e,t,a,r),t.child;case 14:return i=hi(a=t.type,t.pendingProps),xs(e,t,a,i=hi(a.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,i=t.pendingProps,i=t.elementType===a?i:hi(a,i),Ws(e,t),t.tag=1,La(a)?(e=!0,Oa(t)):e=!1,xi(t,r),Fi(t,a,i),Wi(t,a,i,r),Cs(null,t,a,!0,e,r);case 19:return Bs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Hu(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Xu(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"==typeof a){var s=a;a=function(){var e=Zu(o);s.call(e)}}Wu(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"==typeof r){var i=r;r=function(){var e=Zu(o);i.call(e)}}var o=Bu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=o,e[fa]=o.current,$r(8===e.nodeType?e.parentNode:e),cu(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Zu(l);s.call(e)}}var l=$u(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[fa]=l.current,$r(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,l,n,r)})),l}(n,t,e,a,r);return Zu(o)}qu.prototype.render=Hu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},qu.prototype.unmount=Hu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Wu(null,e,null,null)})),t[fa]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Tt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(gt(t,1|n),ru(t,qe()),!(6&Cl)&&(Bl=qe()+500,$a()))}break;case 13:cu((function(){var t=ji(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Qu(e,1)}},_t=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nu(t,e,134217728,eu());Qu(e,134217728)}},wt=function(e){if(13===e.tag){var t=tu(e),n=ji(e,t);if(null!==n)nu(n,e,t,eu());Qu(e,t)}},xt=function(){return vt},kt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var i=ba(a);if(!i)throw Error(n(90));Z(a),q(a,i)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&X(e,!!r.multiple,t,!1)}},Ee=uu,je=cu;var ec={usingClientEntryPoint:!1,Events:[va,ya,ba,Se,Ne,uu]},tc={findFiberByHostInstance:ga,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{nt=rc.inject(nc),rt=rc}catch{}}return ys.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,ys.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},ys.createRoot=function(e,t){if(!Ku(e))throw Error(n(299));var r=!1,a="",i=Yu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=$u(e,1,!1,null,0,r,0,a,i),e[fa]=t.current,$r(8===e.nodeType?e.parentNode:e),new Hu(t)},ys.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=We(t))?null:e.stateNode},ys.flushSync=function(e){return cu(e)},ys.hydrate=function(e,t,r){if(!Gu(t))throw Error(n(200));return Xu(null,e,t,!0,r)},ys.hydrateRoot=function(e,t,r){if(!Ku(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,i=!1,o="",s=Yu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Bu(t,null,e,1,r??null,i,0,o,s),e[fa]=t.current,$r(e),a)for(e=0;e<a.length;e++)i=(i=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new qu(t)},ys.render=function(e,t,r){if(!Gu(t))throw Error(n(200));return Xu(null,e,t,!1,r)},ys.unmountComponentAtNode=function(e){if(!Gu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu((function(){Xu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fa]=null}))})),!0)},ys.unstable_batchedUpdates=uu,ys.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Gu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xu(e,t,r,!1,a)},ys.version="18.2.0-next-9e3b772b8-20220608",ys}function Zw(){if(Y0)return zv.exports;return Y0=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),zv.exports=Hw(),zv.exports}var qy=Zw();const Yw=v0(qy);function Qw(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Gw=e=>{switch(e){case"success":return Jw;case"info":return ex;case"warning":return Xw;case"error":return tx;default:return null}},qw=Array(12).fill(0),Kw=({visible:e,className:t})=>we.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},we.createElement("div",{className:"sonner-spinner"},qw.map(((e,t)=>we.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`}))))),Jw=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xw=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ex=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),tx=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},we.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),nx=we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},we.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),we.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),rx=()=>{const[e,t]=we.useState(document.hidden);return we.useEffect((()=>{const e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)}),[]),e};let Gv=1;class ix{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach((t=>t(e)))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:n,...r}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Gv++,i=this.toasts.find((e=>e.id===a)),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map((t=>t.id===a?(this.publish({...t,...e,id:a,title:n}),{...t,...e,id:a,dismissible:o,title:n}):t)):this.addToast({title:n,...r,dismissible:o,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame((()=>this.subscribers.forEach((t=>t({id:e,dismiss:!0})))))):this.toasts.forEach((e=>{this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const r=Promise.resolve(e instanceof Function?e():e);let a,i=void 0!==n;const o=r.then((async e=>{if(a=["resolve",e],we.isValidElement(e))i=!1,this.create({id:n,type:"default",message:e});else if(ox(e)&&!e.ok){i=!1;const r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,a="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...o})}else if(e instanceof Error){i=!1;const r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...o})}else if(void 0!==t.success){i=!1;const r="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"success",description:a,...o})}})).catch((async e=>{if(a=["reject",e],void 0!==t.error){i=!1;const r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,o="object"!=typeof r||we.isValidElement(r)?{message:r}:r;this.create({id:n,type:"error",description:a,...o})}})).finally((()=>{i&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)})),s=()=>new Promise(((e,t)=>o.then((()=>"reject"===a[0]?t(a[1]):e(a[1]))).catch(t)));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||Gv++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter((e=>!this.dismissedToasts.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ws=new ix,sx=(e,t)=>{const n=(null==t?void 0:t.id)||Gv++;return ws.addToast({title:e,...t,id:n}),n},ox=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,ax=sx,lx=()=>ws.toasts,ux=()=>ws.getActiveToasts(),qv=Object.assign(ax,{success:ws.success,info:ws.info,warning:ws.warning,error:ws.error,custom:ws.custom,message:ws.message,promise:ws.promise,dismiss:ws.dismiss,loading:ws.loading},{getHistory:lx,getToasts:ux});function Rm(e){return void 0!==e.label}Qw("[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 cx=3,fx="24px",dx="16px",Q0=4e3,px=356,hx=14,mx=45,gx=200;function tl(...e){return e.filter(Boolean).join(" ")}function vx(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const yx=e=>{var t,n,r,a,i,o,s,l,u;const{invert:c,toast:d,unstyled:f,interacting:p,setHeights:h,visibleToasts:m,heights:g,index:v,toasts:y,expanded:b,removeToast:_,defaultRichColors:w,closeButton:x,style:k,cancelButtonStyle:S,actionButtonStyle:N,className:E="",descriptionClassName:j="",duration:C,position:M,gap:L,expandByDefault:I,classNames:A,icons:z,closeButtonAriaLabel:O="Close toast"}=e,[T,P]=we.useState(null),[D,R]=we.useState(null),[U,$]=we.useState(!1),[F,B]=we.useState(!1),[W,Z]=we.useState(!1),[V,Q]=we.useState(!1),[Y,H]=we.useState(!1),[q,K]=we.useState(0),[G,J]=we.useState(0),X=we.useRef(d.duration||C||Q0),ee=we.useRef(null),te=we.useRef(null),ne=0===v,re=v+1<=m,ae=d.type,ie=!1!==d.dismissible,oe=d.className||"",se=d.descriptionClassName||"",le=we.useMemo((()=>g.findIndex((e=>e.toastId===d.id))||0),[g,d.id]),ue=we.useMemo((()=>{var e;return null!=(e=d.closeButton)?e:x}),[d.closeButton,x]),ce=we.useMemo((()=>d.duration||C||Q0),[d.duration,C]),de=we.useRef(0),fe=we.useRef(0),pe=we.useRef(0),he=we.useRef(null),[me,ge]=M.split("-"),ve=we.useMemo((()=>g.reduce(((e,t,n)=>n>=le?e:e+t.height),0)),[g,le]),ye=rx(),be=d.invert||c,_e="loading"===ae;fe.current=we.useMemo((()=>le*L+ve),[le,ve]),we.useEffect((()=>{X.current=ce}),[ce]),we.useEffect((()=>{$(!0)}),[]),we.useEffect((()=>{const e=te.current;if(e){const t=e.getBoundingClientRect().height;return J(t),h((e=>[{toastId:d.id,height:t,position:d.position},...e])),()=>h((e=>e.filter((e=>e.toastId!==d.id))))}}),[h,d.id]),we.useLayoutEffect((()=>{if(!U)return;const e=te.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,J(n),h((e=>e.find((e=>e.toastId===d.id))?e.map((e=>e.toastId===d.id?{...e,height:n}:e)):[{toastId:d.id,height:n,position:d.position},...e]))}),[U,d.title,d.description,h,d.id,d.jsx,d.action,d.cancel]);const xe=we.useCallback((()=>{B(!0),K(fe.current),h((e=>e.filter((e=>e.toastId!==d.id)))),setTimeout((()=>{_(d)}),gx)}),[d,_,h,fe]);we.useEffect((()=>{if(d.promise&&"loading"===ae||d.duration===1/0||"loading"===d.type)return;let e;return b||p||ye?(()=>{if(pe.current<de.current){const e=(new Date).getTime()-de.current;X.current=X.current-e}pe.current=(new Date).getTime()})():X.current!==1/0&&(de.current=(new Date).getTime(),e=setTimeout((()=>{null==d.onAutoClose||d.onAutoClose.call(d,d),xe()}),X.current)),()=>clearTimeout(e)}),[b,p,d,ae,ye,xe]),we.useEffect((()=>{d.delete&&(xe(),null==d.onDismiss||d.onDismiss.call(d,d))}),[xe,d.delete]);const ke=d.icon||(null==z?void 0:z[ae])||Gw(ae);var Se,Ne,Ee,je;return we.createElement("li",{tabIndex:0,ref:te,className:tl(E,oe,null==A?void 0:A.toast,null==d||null==(t=d.classNames)?void 0:t.toast,null==A?void 0:A.default,null==A?void 0:A[ae],null==d||null==(n=d.classNames)?void 0:n[ae]),"data-sonner-toast":"","data-rich-colors":null!=(Se=d.richColors)?Se:w,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":U,"data-promise":!!d.promise,"data-swiped":Y,"data-removed":F,"data-visible":re,"data-y-position":me,"data-x-position":ge,"data-index":v,"data-front":ne,"data-swiping":W,"data-dismissible":ie,"data-type":ae,"data-invert":be,"data-swipe-out":V,"data-swipe-direction":D,"data-expanded":!!(b||I&&U),"data-testid":d.testId,style:{"--index":v,"--toasts-before":v,"--z-index":y.length-v,"--offset":`${F?q:fe.current}px`,"--initial-height":I?"auto":`${G}px`,...k,...d.style},onDragEnd:()=>{Z(!1),P(null),he.current=null},onPointerDown:e=>{2!==e.button&&(_e||!ie||(ee.current=new Date,K(fe.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(Z(!0),he.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{var e,t,n;if(V||!ie)return;he.current=null;const r=Number((null==(e=te.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),a=Number((null==(t=te.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=(new Date).getTime()-(null==(n=ee.current)?void 0:n.getTime()),o="x"===T?r:a,s=Math.abs(o)/i;if(Math.abs(o)>=45||s>.11)return K(fe.current),null==d.onDismiss||d.onDismiss.call(d,d),R("x"===T?r>0?"right":"left":a>0?"down":"up"),xe(),void Q(!0);var l,u;null==(l=te.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(u=te.current)||u.style.setProperty("--swipe-amount-y","0px"),H(!1),Z(!1),P(null)},onPointerMove:t=>{var n,r,a;if(!he.current||!ie||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const i=t.clientY-he.current.y,o=t.clientX-he.current.x;var s;const l=null!=(s=e.swipeDirections)?s:vx(M);!T&&(Math.abs(o)>1||Math.abs(i)>1)&&P(Math.abs(o)>Math.abs(i)?"x":"y");let u={x:0,y:0};const c=e=>1/(1.5+Math.abs(e)/20);if("y"===T){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&i<0||l.includes("bottom")&&i>0)u.y=i;else{const e=i*c(i);u.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===T&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&o<0||l.includes("right")&&o>0)u.x=o;else{const e=o*c(o);u.x=Math.abs(e)<Math.abs(o)?e:o}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&H(!0),null==(r=te.current)||r.style.setProperty("--swipe-amount-x",`${u.x}px`),null==(a=te.current)||a.style.setProperty("--swipe-amount-y",`${u.y}px`)}},ue&&!d.jsx&&"loading"!==ae?we.createElement("button",{"aria-label":O,"data-disabled":_e,"data-close-button":!0,onClick:_e||!ie?()=>{}:()=>{xe(),null==d.onDismiss||d.onDismiss.call(d,d)},className:tl(null==A?void 0:A.closeButton,null==d||null==(r=d.classNames)?void 0:r.closeButton)},null!=(Ne=null==z?void 0:z.close)?Ne:nx):null,(ae||d.icon||d.promise)&&null!==d.icon&&(null!==(null==z?void 0:z[ae])||d.icon)?we.createElement("div",{"data-icon":"",className:tl(null==A?void 0:A.icon,null==d||null==(a=d.classNames)?void 0:a.icon)},d.promise||"loading"===d.type&&!d.icon?d.icon||(null!=z&&z.loading?we.createElement("div",{className:tl(null==A?void 0:A.loader,null==d||null==(je=d.classNames)?void 0:je.loader,"sonner-loader"),"data-visible":"loading"===ae},z.loading):we.createElement(Kw,{className:tl(null==A?void 0:A.loader,null==d||null==(Ee=d.classNames)?void 0:Ee.loader),visible:"loading"===ae})):null,"loading"!==d.type?ke:null):null,we.createElement("div",{"data-content":"",className:tl(null==A?void 0:A.content,null==d||null==(i=d.classNames)?void 0:i.content)},we.createElement("div",{"data-title":"",className:tl(null==A?void 0:A.title,null==d||null==(o=d.classNames)?void 0:o.title)},d.jsx?d.jsx:"function"==typeof d.title?d.title():d.title),d.description?we.createElement("div",{"data-description":"",className:tl(j,se,null==A?void 0:A.description,null==d||null==(s=d.classNames)?void 0:s.description)},"function"==typeof d.description?d.description():d.description):null),we.isValidElement(d.cancel)?d.cancel:d.cancel&&Rm(d.cancel)?we.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||S,onClick:e=>{Rm(d.cancel)&&ie&&(null==d.cancel.onClick||d.cancel.onClick.call(d.cancel,e),xe())},className:tl(null==A?void 0:A.cancelButton,null==d||null==(l=d.classNames)?void 0:l.cancelButton)},d.cancel.label):null,we.isValidElement(d.action)?d.action:d.action&&Rm(d.action)?we.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||N,onClick:e=>{Rm(d.action)&&(null==d.action.onClick||d.action.onClick.call(d.action,e),!e.defaultPrevented&&xe())},className:tl(null==A?void 0:A.actionButton,null==d||null==(u=d.classNames)?void 0:u.actionButton)},d.action.label):null)};function G0(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function _x(e,t){const n={};return[e,t].forEach(((e,t)=>{const r=1===t,a=r?"--mobile-offset":"--offset",i=r?dx:fx;function o(e){["top","right","bottom","left"].forEach((t=>{n[`${a}-${t}`]="number"==typeof e?`${e}px`:e}))}"number"==typeof e||"string"==typeof e?o(e):"object"==typeof e?["top","right","bottom","left"].forEach((t=>{void 0===e[t]?n[`${a}-${t}`]=i:n[`${a}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]})):o(i)})),n}const wx=we.forwardRef((function(e,t){const{id:n,invert:r,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:s,className:l,offset:u,mobileOffset:c,theme:d="light",richColors:f,duration:p,style:h,visibleToasts:m=cx,toastOptions:g,dir:v=G0(),gap:y=hx,icons:b,containerAriaLabel:_="Notifications"}=e,[w,x]=we.useState([]),k=we.useMemo((()=>n?w.filter((e=>e.toasterId===n)):w.filter((e=>!e.toasterId))),[w,n]),S=we.useMemo((()=>Array.from(new Set([a].concat(k.filter((e=>e.position)).map((e=>e.position)))))),[k,a]),[N,E]=we.useState([]),[j,C]=we.useState(!1),[M,L]=we.useState(!1),[I,A]=we.useState("system"!==d?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=we.useRef(null),O=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=we.useRef(null),P=we.useRef(!1),D=we.useCallback((e=>{x((t=>{var n;return null!=(n=t.find((t=>t.id===e.id)))&&n.delete||ws.dismiss(e.id),t.filter((({id:t})=>t!==e.id))}))}),[]);return we.useEffect((()=>ws.subscribe((e=>{e.dismiss?requestAnimationFrame((()=>{x((t=>t.map((t=>t.id===e.id?{...t,delete:!0}:t))))})):setTimeout((()=>{Yw.flushSync((()=>{x((t=>{const n=t.findIndex((t=>t.id===e.id));return-1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]}))}))}))}))),[w]),we.useEffect((()=>{if("system"!==d)return void A(d);if("system"===d&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",(({matches:e})=>{A(e?"dark":"light")}))}catch{e.addListener((({matches:e})=>{try{A(e?"dark":"light")}catch(e){console.error(e)}}))}}),[d]),we.useEffect((()=>{w.length<=1&&C(!1)}),[w]),we.useEffect((()=>{const e=e=>{var t,n;i.every((t=>e[t]||e.code===t))&&(C(!0),null==(n=z.current)||n.focus());"Escape"===e.code&&(document.activeElement===z.current||null!=(t=z.current)&&t.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[i]),we.useEffect((()=>{if(z.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,P.current=!1)}}),[z.current]),we.createElement("section",{ref:t,"aria-label":`${_} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map(((t,n)=>{var a;const[i,d]=t.split("-");return k.length?we.createElement("ol",{key:t,dir:"auto"===v?G0():v,tabIndex:-1,ref:z,className:l,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":i,"data-x-position":d,style:{"--front-toast-height":`${(null==(a=N[0])?void 0:a.height)||0}px`,"--width":"356px","--gap":`${y}px`,...h,..._x(u,c)},onBlur:e=>{P.current&&!e.currentTarget.contains(e.relatedTarget)&&(P.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||P.current||(P.current=!0,T.current=e.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{M||C(!1)},onDragEnd:()=>C(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||L(!0)},onPointerUp:()=>L(!1)},k.filter((e=>!e.position&&0===n||e.position===t)).map(((n,a)=>{var i,l;return we.createElement(yx,{key:n.id,icons:b,index:a,toast:n,defaultRichColors:f,duration:null!=(i=null==g?void 0:g.duration)?i:p,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:r,visibleToasts:m,closeButton:null!=(l=null==g?void 0:g.closeButton)?l:s,interacting:M,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,closeButtonAriaLabel:null==g?void 0:g.closeButtonAriaLabel,removeToast:D,toasts:k.filter((e=>e.position==n.position)),heights:N.filter((e=>e.position==n.position)),setHeights:E,expandByDefault:o,gap:y,expanded:j,swipeDirections:e.swipeDirections})}))):null})))})),xx="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzExMTY1XzE4NjcxX2NsaXBfcGF0aCkiIGRhdGEtZmlnbWEtc2tpcC1wYXJzZT0idHJ1ZSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMCAwLjAxMiAtMC4wMTIgMCAxMiAxMikiPjxmb3JlaWduT2JqZWN0IHg9Ii0xMDY2LjI0IiB5PSItMTA2Ni4yNCIgd2lkdGg9IjIxMzIuNDkiIGhlaWdodD0iMjEzMi40OSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImJhY2tncm91bmQ6Y29uaWMtZ3JhZGllbnQoZnJvbSA5MGRlZyxyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpIDBkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAxKSA2My4yNDNkZWcscmdiYSgyNTUsIDI1NSwgMjU1LCAwKSAzNjBkZWcpO2hlaWdodDoxMDAlO3dpZHRoOjEwMCU7b3BhY2l0eToxIj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PC9nPjwvZz48cGF0aCBkPSJNMjQgMTJDMjQgMTguNjI3NCAxOC42Mjc0IDI0IDEyIDI0QzUuMzcyNTggMjQgMCAxOC42Mjc0IDAgMTJDMCA1LjM3MjU4IDUuMzcyNTggMCAxMiAwQzE4LjYyNzQgMCAyNCA1LjM3MjU4IDI0IDEyWk0zLjU4ODMyIDEyQzMuNTg4MzIgMTYuNjQ1NiA3LjM1NDM2IDIwLjQxMTcgMTIgMjAuNDExN0MxNi42NDU2IDIwLjQxMTcgMjAuNDExNyAxNi42NDU2IDIwLjQxMTcgMTJDMjAuNDExNyA3LjM1NDM2IDE2LjY0NTYgMy41ODgzMiAxMiAzLjU4ODMyQzcuMzU0MzYgMy41ODgzMiAzLjU4ODMyIDcuMzU0MzYgMy41ODgzMiAxMloiIGRhdGEtZmlnbWEtZ3JhZGllbnQtZmlsbD0ieyYjMzQ7dHlwZSYjMzQ7OiYjMzQ7R1JBRElFTlRfQU5HVUxBUiYjMzQ7LCYjMzQ7c3RvcHMmIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4wfSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzoxLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzowLjE3NTY3NTAwNDcyMDY4Nzg3fSx7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzoxLjAsJiMzNDtnJiMzNDs6MS4wLCYjMzQ7YiYjMzQ7OjEuMCwmIzM0O2EmIzM0OzowLjB9LCYjMzQ7cG9zaXRpb24mIzM0OzoxLjB9XSwmIzM0O3N0b3BzVmFyJiMzNDs6W3smIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjEuMCwmIzM0O2cmIzM0OzoxLjAsJiMzNDtiJiMzNDs6MS4wLCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuMH0seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC4xNzU2NzUwMDQ3MjA2ODc4N30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MC4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MS4wfV0sJiMzNDt0cmFuc2Zvcm0mIzM0Ozp7JiMzNDttMDAmIzM0OzoxLjQ2OTU3NjIyMzEwMjIwMTRlLTE1LCYjMzQ7bTAxJiMzNDs6LTI0LjAsJiMzNDttMDImIzM0OzoyNC4wLCYjMzQ7bTEwJiMzNDs6MjQuMCwmIzM0O20xMSYjMzQ7OjEuNDY5NTc2MjIzMTAyMjAxNGUtMTUsJiMzNDttMTImIzM0OzotMS40Njk1NzYyMjMxMDIyMDE0ZS0xNX0sJiMzNDtvcGFjaXR5JiMzNDs6MS4wLCYjMzQ7YmxlbmRNb2RlJiMzNDs6JiMzNDtOT1JNQUwmIzM0OywmIzM0O3Zpc2libGUmIzM0Ozp0cnVlfSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJwYWludDBfYW5ndWxhcl8xMTE2NV8xODY3MV9jbGlwX3BhdGgiPjxwYXRoIGQ9Ik0yNCAxMkMyNCAxOC42Mjc0IDE4LjYyNzQgMjQgMTIgMjRDNS4zNzI1OCAyNCAwIDE4LjYyNzQgMCAxMkMwIDUuMzcyNTggNS4zNzI1OCAwIDEyIDBDMTguNjI3NCAwIDI0IDUuMzcyNTggMjQgMTJaTTMuNTg4MzIgMTJDMy41ODgzMiAxNi42NDU2IDcuMzU0MzYgMjAuNDExNyAxMiAyMC40MTE3QzE2LjY0NTYgMjAuNDExNyAyMC40MTE3IDE2LjY0NTYgMjAuNDExNyAxMkMyMC40MTE3IDcuMzU0MzYgMTYuNjQ1NiAzLjU4ODMyIDEyIDMuNTg4MzJDNy4zNTQzNiAzLjU4ODMyIDMuNTg4MzIgNy4zNTQzNiAzLjU4ODMyIDEyWiIvPjwvY2xpcFBhdGg+PC9kZWZzPgo8L3N2Zz4K",Sx=e=>{switch(!0){case"success"===e:return L.jsx(yw,{color:"white"});case"error"===e:return L.jsx(Pw,{color:"white"});case"loading"===e:return L.jsx("img",{src:xx,className:"animate-forward animate-spin [animation-direction:reverse]"});default:return null}},kx={toastsSizes:{}},Ky=dd({name:"systemToast",initialState:kx,reducers:{addToastSize(e,t){const{id:n,size:r}=t.payload;e.toastsSizes[n]=r},removeToastSize(e,t){delete e.toastsSizes[t.payload]}},selectors:{selectToastSize:e=>Math.max(0,...Object.values(e.toastsSizes))}}).injectInto(d0),{addToastSize:bx,removeToastSize:Ex}=Ky.actions,{selectToastSize:Cx}=Ky.selectors,Nx=e=>{const{title:t,action:n,id:r,type:a,promise:i,dismiss:o}=e,s=nm(),l=Qn(Cx),[u,c]=Kr(a),[d,f]=Kr("loading"===a),p=nl(null),h=Sx(d?"loading":u);Zs((()=>{var e;s(bx({id:`${r}`,size:(null==(e=p.current)?void 0:e.offsetWidth)??0}))}),[d]),Zs((()=>()=>{s(Ex(`${r}`))}),[]),Zs((()=>{if(!i)return;let e=!1;return f(!0),i.then((()=>c("success"))).catch((()=>c("error"))).finally((()=>{e||f(!1)})),()=>{e=!0}}),[i]);return L.jsxs("div",{ref:p,onClick:()=>{n||o(r)},style:{minWidth:l},"data-testid":"toast-container",className:kt("gap-xs px-xs flex min-h-[56px] w-full items-center rounded-lg bg-slate-800",{"bg-red-dark":"error"===u,"border border-slate-700":"success"===u,"cursor-pointer":!n}),children:[h,L.jsx("p",{dangerouslySetInnerHTML:{__html:t},className:"text-base font-medium text-white"}),n&&L.jsx("button",{className:"h-s px-xs rounded-sm bg-slate-500 text-sm",onClick:()=>{n.onClick(),o(r)},children:n.label})]})},Ix=e=>e.action||"error"===e.type?7e3:5e3,Uv=(e,t)=>(console.log("systemToast",e),qv.custom((t=>L.jsx(Nx,{id:t,dismiss:qv.dismiss,...e})),{dismissible:!0,duration:Ix(e),toasterId:"system-bottom-toaster",...t})),yi={success:(e,t)=>Uv({type:"success",title:e},t),error:(e,t)=>Uv({type:"error",title:e},t),loading:(e,t)=>Uv({type:"loading",title:e},t),dismiss:e=>qv.dismiss(e)},vn=async(e,t,n)=>{try{return await e,t&&yi.success(t),e}catch(e){null==n||n(),yi.error(`${Bw(e)}`)}},Mx=e=>{if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)},Tx=e=>Mx(e)&&"type"in e&&"string"==typeof e.type,wt=e=>{const t=t=>({type:e,payload:t});return t.toString=()=>`${e}`,t.type=e,t.match=t=>Tx(t)&&t.type===e,t};wt("remoteReady");const Ax=wt("askLogin");wt("reselectUser"),wt("requestLogout"),wt("setConfirmLeavePage"),wt("requestChangePath");const Ox=wt("wsSubscribe"),Rx=wt("wsUnSubscribe");wt("hostStoreConnect"),wt("remoteLogin"),wt("remoteLogout"),wt("wsOnMessage"),wt("setRouterPath"),wt("setDeviceType");const Jy=wt("setUserError"),Xy=wt("setUserIsError"),Kv=wt("setUserPending"),Jv=wt("setUserSuccess"),e1=wt("setUserData"),Lx=wt("updateAccountData"),Px=wt("updateUser"),t1=wt("addNotification"),n1=wt("markNotification"),r1=wt("setNotificationsError"),i1=wt("setNotificationsList"),Xv=wt("setNotificationsPending"),s1=wt("setNotificationsTotalCount"),e0=wt("setNotificationsUnreadCount"),o1=wt("resetNotificationsState"),a1=wt("undoNotification");wt("setInstanceInfo"),wt("setInstanceInfoPending"),wt("setInstanceInfoError"),wt("setPlatformSettings"),wt("setProfileSettings"),wt("setGroupData"),wt("setGroupLoading"),Wy("requestMicroFrontendFetch"),Wy("sendMicroFrontendFetchResponse");const zx=ad.enhanceEndpoints({endpoints:{getApiV1Notifications:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){var a;t(Xv(!0));try{const e=await vn(n),i=(null==(a=r().user.data)?void 0:a.selectedUserId)||"";e&&t(i1({userId:i,list:e.data}))}catch(e){t(r1(e))}finally{t(Xv(!1))}}},postApiV1NotificationsByIdMark:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await vn(n),t(n1(e))}catch(e){yi.error(`Mark notification error, ${e}`)}}},postApiV1NotificationsMarkAll:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){await vn(n),t(e0(0))}},getApiV1NotificationsCount:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const r=await vn(n),a=!e.status;r&&t(a?s1(r.data):e0(r.data))}catch(e){yi.error(`Error getting unread notifications count', ${e}`)}}}}}),{useGetApiV1NotificationsQuery:jx,usePostApiV1NotificationsByIdMarkMutation:fE,usePostApiV1NotificationsMarkAllMutation:dE,useGetApiV1NotificationsCountQuery:Dx}=zx,q0={data:{userId:"",list:[]},count:{},isPending:!1},Ux=e=>e,$x=e=>e.error,Fx=e=>e.isPending,Bx=e=>{var t;return null==(t=e.count)?void 0:t.total},Wx=e=>{var t;return null==(t=e.count)?void 0:t.unread},Vx=e=>e.data.userId,y0=p0(Ux,(e=>e.data.list)),Hx=p0(y0,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),Zx=p0(y0,(e=>null==e?void 0:e.at(-1))),Vm=dd({name:"notifications",initialState:q0,reducers:{updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))}},extraReducers:e=>{e.addCase(Xv,((e,t)=>{e.isPending=t.payload})).addCase(r1,((e,t)=>{e.error=t.payload})).addCase(i1,((e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}})).addCase(t1,((e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])})).addCase(n1,((e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))})).addCase(s1,((e,t)=>{e.count.total=t.payload})).addCase(e0,((e,t)=>{e.count.unread=t.payload})).addCase(o1,(()=>q0)).addCase(a1,((e,t)=>{var n,r,a;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(a=e.data.list)?void 0:a.filter((e=>e.id!==i)))||[]}))},selectors:{selectError:$x,selectIsPending:Fx,selectTotalCount:Bx,selectUnreadCount:Wx,selectNotifications:y0,selectUnreadNotifications:Hx,selectLastNotification:Zx,selectNotificationsOwner:Vx}}),$v="toast-root",pE=()=>{const[e,t]=Kr(document.getElementById($v));return Zs((()=>{let e=document.getElementById($v);e||(e=document.createElement("div"),e.id=$v,document.body.appendChild(e)),t(e)}),[]),e?qy.createPortal(L.jsx(wx,{gap:8,theme:"dark",visibleToasts:3,id:"system-bottom-toaster",position:"bottom-center"}),e):null},hE=()=>L.jsx(I_,{position:"top-right",theme:"dark",limit:5,autoClose:5e3,containerId:"custom",hideProgressBar:!0,className:"custom-notifications"}),Yx=(e,t)=>M_(e,{...t,containerId:"custom"});var K0=function(e,t,n){if(e&&"reportValidity"in e){var r=Qv(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},l1=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?K0(r.ref,n,e):r.refs&&r.refs.forEach((function(t){return K0(t,n,e)}))};for(var r in t.fields)n(r)},Qx=function(e,t){t.shouldUseNativeValidation&&l1(e,t);var n={};for(var r in e){var a=Qv(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(Gx(t.names||Object.keys(e),r)){var o=Object.assign({},Qv(n,r));Mv(o,"root",i),Mv(n,r,o)}else Mv(n,r,i)}return n},Gx=function(e,t){return e.some((function(e){return e.startsWith(t+".")}))},qx=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=n[o].types,u=l&&l[r.code];n[o]=T_(o,t,n,a,u?[].concat(u,r.message):r.message)}e.shift()}return n},u1=function(e,t,n){return void 0===n&&(n={}),function(r,a,i){try{return Promise.resolve(function(a,o){try{var s=Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](r,t)).then((function(e){return i.shouldUseNativeValidation&&l1({},i),{errors:{},values:n.raw?r:e}}))}catch(e){return o(e)}return s&&s.then?s.then(void 0,o):s}(0,(function(e){if(null!=e.errors)return{values:{},errors:Qx(qx(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e})))}catch(e){return Promise.reject(e)}}};const Kx=e=>{try{return e.startsWith("https")||e.startsWith("http")?new URL(e).origin:new URL(`https://${e}`).origin}catch{throw new Error("Error getting domain from entered URL")}},Jx=e=>{const t=e.links.find((e=>"http://ostatus.org/schema/1.0/subscribe"===e.rel));return null==t?void 0:t.template},Xx=({template:e,user:t})=>null==e?void 0:e.replace("{uri}",t.uri),eS=async({url:e,...t})=>{const n=await fetch(e,t);if(!n.ok)throw new Error(n.statusText);if("PUT"===t.method)return;const r=await n.json(),a=r;if(a.errorCode)throw new Error(a.message);return r},tS=({user:e})=>async({url:t})=>{const n=Kx(t);try{const t=`${n}/.well-known/webfinger?resource=${n}`,r=await eS({url:t,headers:{Accept:"application/json"}});if(!r)return;const a=Jx(r),i=Xx({template:a,user:e});if(!i)throw new Error("Error getting follow link");window.open(i,"_self")}catch{window.open(`${n}/authorize_interaction?uri=${e.uri}`,"_self")}},nS=(e,t)=>{const n=e.at(0),r=(null==n?void 0:n.toUpperCase())===n&&"@"!==n,a=e.toLowerCase(),i=(null==t?void 0:t.toLowerCase())||"";if(!i)return e;const o=a.startsWith(i),s=a.replace(i,`<mark>${o?ld.capitalize(i):t}</mark>`);return r&&o?s:ld.capitalize(s)},rm=({open:e,modal:t,children:n,onCloseModal:r,className:a,...i})=>L.jsx(o_,{open:e,modal:t,onOpenChange:e=>{e||null==r||r()},children:L.jsx(a_,{className:kt(a),closeSize:"small",closeVariant:"insideCard",onCloseModal:r,...i,childrenClassName:kt("overflow-auto",i.title?"max-h-[calc(90vh-65px)]":"max-h-[90vh]",i.childrenClassName),children:n})});var Ot,t0;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Ot||(Ot={})),(t0||(t0={})).mergeShapes=(e,t)=>({...e,...t});const Ae=Ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$c=e=>{switch(typeof e){case"undefined":return Ae.undefined;case"string":return Ae.string;case"number":return isNaN(e)?Ae.nan:Ae.number;case"boolean":return Ae.boolean;case"function":return Ae.function;case"bigint":return Ae.bigint;case"symbol":return Ae.symbol;case"object":return Array.isArray(e)?Ae.array:null===e?Ae.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ae.promise:typeof Map<"u"&&e instanceof Map?Ae.map:typeof Set<"u"&&e instanceof Set?Ae.set:typeof Date<"u"&&e instanceof Date?Ae.date:Ae.object;default:return Ae.unknown}},he=Ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),rS=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ys extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof Ys))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ot.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ys.create=e=>new Ys(e);const Mp=(e,t)=>{let n;switch(e.code){case he.invalid_type:n=e.received===Ae.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ot.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ot.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ot.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${Ot.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ot.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case he.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case he.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ot.assertNever(e)}return{message:n}};let c1=Mp;function iS(e){c1=e}function Hm(){return c1}const Zm=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},sS=[];function Ne(e,t){const n=Hm(),r=Zm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Mp?void 0:Mp].filter((e=>!!e))});e.common.issues.push(r)}class Ui{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return ot;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return Ui.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status||"aborted"===a.status)return ot;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(typeof a.value<"u"||r.alwaysSet)&&(n[t.value]=a.value)}return{status:e.value,value:n}}}const ot=Object.freeze({status:"aborted"}),Cp=e=>({status:"dirty",value:e}),es=e=>({status:"valid",value:e}),n0=e=>"aborted"===e.status,r0=e=>"dirty"===e.status,Fh=e=>"valid"===e.status,Bh=e=>typeof Promise<"u"&&e instanceof Promise;function Ym(e,t,n,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function f1(e,t,n,r,a){if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Qe,Rh,Lh;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(Qe||(Qe={}));class il{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const J0=(e,t)=>{if(Fh(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Ys(e.common.issues);return this._error=t,this._error}}};function ft(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{var i,o;const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:typeof a.data>"u"?{message:null!==(i=s??r)&&void 0!==i?i:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(o=s??n)&&void 0!==o?o:a.defaultError}},description:a}}class pt{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return $c(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:$c(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ui,ctx:{common:e.parent.common,data:e.data,parsedType:$c(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Bh(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$c(e)},a=this._parseSync({data:e,path:r.path,parent:r});return J0(r,a)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:$c(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(Bh(r)?r:Promise.resolve(r));return J0(n,a)}refine(e,t){const n=e=>"string"==typeof t||typeof t>"u"?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const a=e(t),i=()=>r.addIssue({code:he.custom,...n(t)});return typeof Promise<"u"&&a instanceof Promise?a.then((e=>!!e||(i(),!1))):!!a||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new fa({schema:this,typeName:it.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return rl.create(this,this._def)}nullable(){return Zc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ua.create(this,this._def)}promise(){return Ap.create(this,this._def)}or(e){return Zh.create([this,e],this._def)}and(e){return Yh.create(this,e,this._def)}transform(e){return new fa({...ft(this._def),schema:this,typeName:it.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Jh({...ft(this._def),innerType:this,defaultValue:t,typeName:it.ZodDefault})}brand(){return new _0({typeName:it.ZodBranded,type:this,...ft(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Xh({...ft(this._def),innerType:this,catchValue:t,typeName:it.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return im.create(this,e)}readonly(){return em.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oS=/^c[^\s-]{8,}$/i,aS=/^[0-9a-z]+$/,lS=/^[0-9A-HJKMNP-TV-Z]{26}$/,uS=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cS=/^[a-z0-9_-]{21}$/i,fS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,dS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Fv;const hS=/^(?:(?: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])$/,mS=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,gS=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,d1="((\\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])))",vS=new RegExp(`^${d1}$`);function p1(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function yS(e){return new RegExp(`^${p1(e)}$`)}function h1(e){let t=`${d1}T${p1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function _S(e,t){return!(("v4"!==t&&t||!hS.test(e))&&("v6"!==t&&t||!mS.test(e)))}class la extends pt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ae.string){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.string,received:t.parsedType}),ot}const t=new Ui;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("max"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const a=e.data.length>r.value,i=e.data.length<r.value;(a||i)&&(n=this._getOrReturnCtx(e,n),a?Ne(n,{code:he.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):i&&Ne(n,{code:he.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if("email"===r.kind)dS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"email",code:he.invalid_string,message:r.message}),t.dirty());else if("emoji"===r.kind)Fv||(Fv=new RegExp(pS,"u")),Fv.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"emoji",code:he.invalid_string,message:r.message}),t.dirty());else if("uuid"===r.kind)uS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"uuid",code:he.invalid_string,message:r.message}),t.dirty());else if("nanoid"===r.kind)cS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"nanoid",code:he.invalid_string,message:r.message}),t.dirty());else if("cuid"===r.kind)oS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"cuid",code:he.invalid_string,message:r.message}),t.dirty());else if("cuid2"===r.kind)aS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"cuid2",code:he.invalid_string,message:r.message}),t.dirty());else if("ulid"===r.kind)lS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"ulid",code:he.invalid_string,message:r.message}),t.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),Ne(n,{validation:"url",code:he.invalid_string,message:r.message}),t.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"regex",code:he.invalid_string,message:r.message}),t.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):"datetime"===r.kind?h1(r).test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:"datetime",message:r.message}),t.dirty()):"date"===r.kind?vS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:"date",message:r.message}),t.dirty()):"time"===r.kind?yS(r).test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.invalid_string,validation:"time",message:r.message}),t.dirty()):"duration"===r.kind?fS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"duration",code:he.invalid_string,message:r.message}),t.dirty()):"ip"===r.kind?_S(e.data,r.version)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"ip",code:he.invalid_string,message:r.message}),t.dirty()):"base64"===r.kind?gS.test(e.data)||(n=this._getOrReturnCtx(e,n),Ne(n,{validation:"base64",code:he.invalid_string,message:r.message}),t.dirty()):Ot.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:he.invalid_string,...Qe.errToObj(n)})}_addCheck(e){return new la({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Qe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Qe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Qe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Qe.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Qe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Qe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Qe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Qe.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Qe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Qe.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...Qe.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,...Qe.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...Qe.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Qe.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...Qe.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Qe.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Qe.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Qe.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Qe.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Qe.errToObj(t)})}nonempty(e){return this.min(1,Qe.errToObj(e))}trim(){return new la({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new la({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new la({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function wS(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}la.create=e=>{var t;return new la({checks:[],typeName:it.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ft(e)})};class Wc extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ae.number){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.number,received:t.parsedType}),ot}let t;const n=new Ui;for(const r of this._def.checks)"int"===r.kind?Ot.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==wS(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.not_finite,message:r.message}),n.dirty()):Ot.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Qe.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Qe.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Qe.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Qe.toString(t))}setLimit(e,t,n,r){return new Wc({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Qe.toString(r)}]})}_addCheck(e){return new Wc({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Qe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Qe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Qe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Qe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Qe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Qe.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Qe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Qe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Qe.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Ot.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Wc.create=e=>new Wc({checks:[],typeName:it.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...ft(e)});class Vc extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ae.bigint){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.bigint,received:t.parsedType}),ot}let t;const n=new Ui;for(const r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ne(t,{code:he.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Ot.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Qe.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Qe.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Qe.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Qe.toString(t))}setLimit(e,t,n,r){return new Vc({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:Qe.toString(r)}]})}_addCheck(e){return new Vc({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Qe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Qe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Qe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Qe.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Qe.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Vc.create=e=>{var t;return new Vc({checks:[],typeName:it.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...ft(e)})};class Wh extends pt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ae.boolean){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.boolean,received:t.parsedType}),ot}return es(e.data)}}Wh.create=e=>new Wh({typeName:it.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...ft(e)});class cd extends pt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ae.date){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.date,received:t.parsedType}),ot}if(isNaN(e.data.getTime())){return Ne(this._getOrReturnCtx(e),{code:he.invalid_date}),ot}const t=new Ui;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),Ne(n,{code:he.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):Ot.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new cd({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Qe.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Qe.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}cd.create=e=>new cd({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:it.ZodDate,...ft(e)});class Qm extends pt{_parse(e){if(this._getType(e)!==Ae.symbol){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.symbol,received:t.parsedType}),ot}return es(e.data)}}Qm.create=e=>new Qm({typeName:it.ZodSymbol,...ft(e)});class Vh extends pt{_parse(e){if(this._getType(e)!==Ae.undefined){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.undefined,received:t.parsedType}),ot}return es(e.data)}}Vh.create=e=>new Vh({typeName:it.ZodUndefined,...ft(e)});class Hh extends pt{_parse(e){if(this._getType(e)!==Ae.null){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.null,received:t.parsedType}),ot}return es(e.data)}}Hh.create=e=>new Hh({typeName:it.ZodNull,...ft(e)});class Tp extends pt{constructor(){super(...arguments),this._any=!0}_parse(e){return es(e.data)}}Tp.create=e=>new Tp({typeName:it.ZodAny,...ft(e)});class ud extends pt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return es(e.data)}}ud.create=e=>new ud({typeName:it.ZodUnknown,...ft(e)});class fu extends pt{_parse(e){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.never,received:t.parsedType}),ot}}fu.create=e=>new fu({typeName:it.ZodNever,...ft(e)});class Gm extends pt{_parse(e){if(this._getType(e)!==Ae.undefined){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.void,received:t.parsedType}),ot}return es(e.data)}}Gm.create=e=>new Gm({typeName:it.ZodVoid,...ft(e)});class ua extends pt{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ae.array)return Ne(t,{code:he.invalid_type,expected:Ae.array,received:t.parsedType}),ot;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(Ne(t,{code:e?he.too_big:he.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(Ne(t,{code:he.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(Ne(t,{code:he.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new il(t,e,t.path,n))))).then((e=>Ui.mergeArray(n,e)));const a=[...t.data].map(((e,n)=>r.type._parseSync(new il(t,e,t.path,n))));return Ui.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new ua({...this._def,minLength:{value:e,message:Qe.toString(t)}})}max(e,t){return new ua({...this._def,maxLength:{value:e,message:Qe.toString(t)}})}length(e,t){return new ua({...this._def,exactLength:{value:e,message:Qe.toString(t)}})}nonempty(e){return this.min(1,e)}}function Ep(e){if(e instanceof jn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=rl.create(Ep(r))}return new jn({...e._def,shape:()=>t})}return e instanceof ua?new ua({...e._def,type:Ep(e.element)}):e instanceof rl?rl.create(Ep(e.unwrap())):e instanceof Zc?Zc.create(Ep(e.unwrap())):e instanceof sl?sl.create(e.items.map((e=>Ep(e)))):e}ua.create=(e,t)=>new ua({type:e,minLength:null,maxLength:null,exactLength:null,typeName:it.ZodArray,...ft(t)});class jn extends pt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Ot.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ae.object){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.object,received:t.parsedType}),ot}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof fu&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||i.push(e);const o=[];for(const e of a){const t=r[e],a=n.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new il(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof fu){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)o.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(Ne(n,{code:he.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new il(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of o){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>Ui.mergeObjectSync(t,e))):Ui.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return Qe.errToObj,new jn({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,a,i,o;const s=null!==(i=null===(a=(r=this._def).errorMap)||void 0===a?void 0:a.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=Qe.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new jn({...this._def,unknownKeys:"strip"})}passthrough(){return new jn({...this._def,unknownKeys:"passthrough"})}extend(e){return new jn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new jn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:it.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new jn({...this._def,catchall:e})}pick(e){const t={};return Ot.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new jn({...this._def,shape:()=>t})}omit(e){const t={};return Ot.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new jn({...this._def,shape:()=>t})}deepPartial(){return Ep(this)}partial(e){const t={};return Ot.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new jn({...this._def,shape:()=>t})}required(e){const t={};return Ot.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof rl;)e=e._def.innerType;t[n]=e}})),new jn({...this._def,shape:()=>t})}keyof(){return m1(Ot.objectKeys(this.shape))}}jn.create=(e,t)=>new jn({shape:()=>e,unknownKeys:"strip",catchall:fu.create(),typeName:it.ZodObject,...ft(t)}),jn.strictCreate=(e,t)=>new jn({shape:()=>e,unknownKeys:"strict",catchall:fu.create(),typeName:it.ZodObject,...ft(t)}),jn.lazycreate=(e,t)=>new jn({shape:e,unknownKeys:"strip",catchall:fu.create(),typeName:it.ZodObject,...ft(t)});class Zh extends pt{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new Ys(e.ctx.common.issues)));return Ne(t,{code:he.invalid_union,unionErrors:n}),ot}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"===i.status&&!e&&(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map((e=>new Ys(e)));return Ne(t,{code:he.invalid_union,unionErrors:a}),ot}}get options(){return this._def.options}}Zh.create=(e,t)=>new Zh({options:e,typeName:it.ZodUnion,...ft(t)});const uu=e=>e instanceof Gh?uu(e.schema):e instanceof fa?uu(e.innerType()):e instanceof qh?[e.value]:e instanceof Hc?e.options:e instanceof Kh?Ot.objectValues(e.enum):e instanceof Jh?uu(e._def.innerType):e instanceof Vh?[void 0]:e instanceof Hh?[null]:e instanceof rl?[void 0,...uu(e.unwrap())]:e instanceof Zc?[null,...uu(e.unwrap())]:e instanceof _0||e instanceof em?uu(e.unwrap()):e instanceof Xh?uu(e._def.innerType):[];class Jm extends pt{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ae.object)return Ne(t,{code:he.invalid_type,expected:Ae.object,received:t.parsedType}),ot;const n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(Ne(t,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ot)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=uu(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(r.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,n)}}return new Jm({typeName:it.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...ft(n)})}}function i0(e,t){const n=$c(e),r=$c(t);if(e===t)return{valid:!0,data:e};if(n===Ae.object&&r===Ae.object){const n=Ot.objectKeys(t),r=Ot.objectKeys(e).filter((e=>-1!==n.indexOf(e))),a={...e,...t};for(const n of r){const r=i0(e[n],t[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===Ae.array&&r===Ae.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=i0(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===Ae.date&&r===Ae.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Yh extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(n0(e)||n0(r))return ot;const a=i0(e.value,r.value);return a.valid?((r0(e)||r0(r))&&t.dirty(),{status:t.value,value:a.data}):(Ne(n,{code:he.invalid_intersection_types}),ot)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Yh.create=(e,t,n)=>new Yh({left:e,right:t,typeName:it.ZodIntersection,...ft(n)});class sl extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.array)return Ne(n,{code:he.invalid_type,expected:Ae.array,received:n.parsedType}),ot;if(n.data.length<this._def.items.length)return Ne(n,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ot;!this._def.rest&&n.data.length>this._def.items.length&&(Ne(n,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new il(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>Ui.mergeArray(t,e))):Ui.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new sl({...this._def,rest:e})}}sl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sl({items:e,typeName:it.ZodTuple,rest:null,...ft(t)})};class Qh extends pt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.object)return Ne(n,{code:he.invalid_type,expected:Ae.object,received:n.parsedType}),ot;const r=[],a=this._def.keyType,i=this._def.valueType;for(const e in n.data)r.push({key:a._parse(new il(n,e,n.path,e)),value:i._parse(new il(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?Ui.mergeObjectAsync(t,r):Ui.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Qh(t instanceof pt?{keyType:e,valueType:t,typeName:it.ZodRecord,...ft(n)}:{keyType:la.create(),valueType:e,typeName:it.ZodRecord,...ft(t)})}}class qm extends pt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.map)return Ne(n,{code:he.invalid_type,expected:Ae.map,received:n.parsedType}),ot;const r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new il(n,e,n.path,[i,"key"])),value:a._parse(new il(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return ot;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return ot;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}qm.create=(e,t,n)=>new qm({valueType:t,keyType:e,typeName:it.ZodMap,...ft(n)});class fd extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ae.set)return Ne(n,{code:he.invalid_type,expected:Ae.set,received:n.parsedType}),ot;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(Ne(n,{code:he.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(Ne(n,{code:he.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return ot;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const o=[...n.data.values()].map(((e,t)=>a._parse(new il(n,e,n.path,t))));return n.common.async?Promise.all(o).then((e=>i(e))):i(o)}min(e,t){return new fd({...this._def,minSize:{value:e,message:Qe.toString(t)}})}max(e,t){return new fd({...this._def,maxSize:{value:e,message:Qe.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}fd.create=(e,t)=>new fd({valueType:e,minSize:null,maxSize:null,typeName:it.ZodSet,...ft(t)});class Np extends pt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ae.function)return Ne(t,{code:he.invalid_type,expected:Ae.function,received:t.parsedType}),ot;function n(e,n){return Zm({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Hm(),Mp].filter((e=>!!e)),issueData:{code:he.invalid_arguments,argumentsError:n}})}function r(e,n){return Zm({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Hm(),Mp].filter((e=>!!e)),issueData:{code:he.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Ap){const e=this;return es((async function(...t){const o=new Ys([]),s=await e._def.args.parseAsync(t,a).catch((e=>{throw o.addIssue(n(t,e)),o})),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch((e=>{throw o.addIssue(r(l,e)),o}))}))}{const e=this;return es((function(...t){const o=e._def.args.safeParse(t,a);if(!o.success)throw new Ys([n(t,o.error)]);const s=Reflect.apply(i,this,o.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new Ys([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Np({...this._def,args:sl.create(e).rest(ud.create())})}returns(e){return new Np({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Np({args:e||sl.create([]).rest(ud.create()),returns:t||ud.create(),typeName:it.ZodFunction,...ft(n)})}}class Gh extends pt{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Gh.create=(e,t)=>new Gh({getter:e,typeName:it.ZodLazy,...ft(t)});class qh extends pt{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ne(t,{received:t.data,code:he.invalid_literal,expected:this._def.value}),ot}return{status:"valid",value:e.data}}get value(){return this._def.value}}function m1(e,t){return new Hc({values:e,typeName:it.ZodEnum,...ft(t)})}qh.create=(e,t)=>new qh({value:e,typeName:it.ZodLiteral,...ft(t)});class Hc extends pt{constructor(){super(...arguments),Rh.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ne(t,{expected:Ot.joinValues(n),received:t.parsedType,code:he.invalid_type}),ot}if(Ym(this,Rh)||f1(this,Rh,new Set(this._def.values)),!Ym(this,Rh).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ne(t,{received:t.data,code:he.invalid_enum_value,options:n}),ot}return es(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Hc.create(e,{...this._def,...t})}exclude(e,t=this._def){return Hc.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}Rh=new WeakMap,Hc.create=m1;class Kh extends pt{constructor(){super(...arguments),Lh.set(this,void 0)}_parse(e){const t=Ot.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ae.string&&n.parsedType!==Ae.number){const e=Ot.objectValues(t);return Ne(n,{expected:Ot.joinValues(e),received:n.parsedType,code:he.invalid_type}),ot}if(Ym(this,Lh)||f1(this,Lh,new Set(Ot.getValidEnumValues(this._def.values))),!Ym(this,Lh).has(e.data)){const e=Ot.objectValues(t);return Ne(n,{received:n.data,code:he.invalid_enum_value,options:e}),ot}return es(e.data)}get enum(){return this._def.values}}Lh=new WeakMap,Kh.create=(e,t)=>new Kh({values:e,typeName:it.ZodNativeEnum,...ft(t)});class Ap extends pt{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ae.promise&&!1===t.common.async)return Ne(t,{code:he.invalid_type,expected:Ae.promise,received:t.parsedType}),ot;const n=t.parsedType===Ae.promise?t.data:Promise.resolve(t.data);return es(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Ap.create=(e,t)=>new Ap({type:e,typeName:it.ZodPromise,...ft(t)});class fa extends pt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===it.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{Ne(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){const e=r.transform(n.data,a);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return ot;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?ot:"dirty"===r.status||"dirty"===t.value?Cp(r.value):r}));{if("aborted"===t.value)return ot;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?ot:"dirty"===r.status||"dirty"===t.value?Cp(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?ot:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?ot:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Fh(e))return e;const i=r.transform(e.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>Fh(e)?Promise.resolve(r.transform(e.value,a)).then((e=>({status:t.value,value:e}))):e))}Ot.assertNever(r)}}fa.create=(e,t,n)=>new fa({schema:e,typeName:it.ZodEffects,effect:t,...ft(n)}),fa.createWithPreprocess=(e,t,n)=>new fa({schema:t,effect:{type:"preprocess",transform:e},typeName:it.ZodEffects,...ft(n)});class rl extends pt{_parse(e){return this._getType(e)===Ae.undefined?es(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}rl.create=(e,t)=>new rl({innerType:e,typeName:it.ZodOptional,...ft(t)});class Zc extends pt{_parse(e){return this._getType(e)===Ae.null?es(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Zc.create=(e,t)=>new Zc({innerType:e,typeName:it.ZodNullable,...ft(t)});class Jh extends pt{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ae.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Jh.create=(e,t)=>new Jh({innerType:e,typeName:it.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...ft(t)});class Xh extends pt{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Bh(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Ys(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new Ys(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Xh.create=(e,t)=>new Xh({innerType:e,typeName:it.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...ft(t)});class Km extends pt{_parse(e){if(this._getType(e)!==Ae.nan){const t=this._getOrReturnCtx(e);return Ne(t,{code:he.invalid_type,expected:Ae.nan,received:t.parsedType}),ot}return{status:"valid",value:e.data}}}Km.create=e=>new Km({typeName:it.ZodNaN,...ft(e)});const xS=Symbol("zod_brand");class _0 extends pt{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class im extends pt{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?ot:"dirty"===e.status?(t.dirty(),Cp(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?ot:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new im({in:e,out:t,typeName:it.ZodPipeline})}}class em extends pt{_parse(e){const t=this._def.innerType._parse(e),n=e=>(Fh(e)&&(e.value=Object.freeze(e.value)),e);return Bh(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function g1(e,t={},n){return e?Tp.create().superRefine(((r,a)=>{var i,o;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===o||o,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:s})}})):Tp.create()}em.create=(e,t)=>new em({innerType:e,typeName:it.ZodReadonly,...ft(t)});const SS={object:jn.lazycreate};var it;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(it||(it={}));const kS=(e,t={message:`Input not instance of ${e.name}`})=>g1((t=>t instanceof e),t),v1=la.create,y1=Wc.create,bS=Km.create,ES=Vc.create,_1=Wh.create,CS=cd.create,NS=Qm.create,IS=Vh.create,MS=Hh.create,TS=Tp.create,AS=ud.create,OS=fu.create,RS=Gm.create,LS=ua.create,PS=jn.create,zS=jn.strictCreate,jS=Zh.create,DS=Jm.create,US=Yh.create,$S=sl.create,FS=Qh.create,BS=qm.create,WS=fd.create,VS=Np.create,HS=Gh.create,ZS=qh.create,YS=Hc.create,QS=Kh.create,GS=Ap.create,X0=fa.create,qS=rl.create,KS=Zc.create,JS=fa.createWithPreprocess,XS=im.create,e2=()=>v1().optional(),t2=()=>y1().optional(),n2=()=>_1().optional(),r2={string:e=>la.create({...e,coerce:!0}),number:e=>Wc.create({...e,coerce:!0}),boolean:e=>Wh.create({...e,coerce:!0}),bigint:e=>Vc.create({...e,coerce:!0}),date:e=>cd.create({...e,coerce:!0})},i2=ot;var Dn=Object.freeze({__proto__:null,defaultErrorMap:Mp,setErrorMap:iS,getErrorMap:Hm,makeIssue:Zm,EMPTY_PATH:sS,addIssueToContext:Ne,ParseStatus:Ui,INVALID:ot,DIRTY:Cp,OK:es,isAborted:n0,isDirty:r0,isValid:Fh,isAsync:Bh,get util(){return Ot},get objectUtil(){return t0},ZodParsedType:Ae,getParsedType:$c,ZodType:pt,datetimeRegex:h1,ZodString:la,ZodNumber:Wc,ZodBigInt:Vc,ZodBoolean:Wh,ZodDate:cd,ZodSymbol:Qm,ZodUndefined:Vh,ZodNull:Hh,ZodAny:Tp,ZodUnknown:ud,ZodNever:fu,ZodVoid:Gm,ZodArray:ua,ZodObject:jn,ZodUnion:Zh,ZodDiscriminatedUnion:Jm,ZodIntersection:Yh,ZodTuple:sl,ZodRecord:Qh,ZodMap:qm,ZodSet:fd,ZodFunction:Np,ZodLazy:Gh,ZodLiteral:qh,ZodEnum:Hc,ZodNativeEnum:Kh,ZodPromise:Ap,ZodEffects:fa,ZodTransformer:fa,ZodOptional:rl,ZodNullable:Zc,ZodDefault:Jh,ZodCatch:Xh,ZodNaN:Km,BRAND:xS,ZodBranded:_0,ZodPipeline:im,ZodReadonly:em,custom:g1,Schema:pt,ZodSchema:pt,late:SS,get ZodFirstPartyTypeKind(){return it},coerce:r2,any:TS,array:LS,bigint:ES,boolean:_1,date:CS,discriminatedUnion:DS,effect:X0,enum:YS,function:VS,instanceof:kS,intersection:US,lazy:HS,literal:ZS,map:BS,nan:bS,nativeEnum:QS,never:OS,null:MS,nullable:KS,number:y1,object:PS,oboolean:n2,onumber:t2,optional:qS,ostring:e2,pipeline:XS,preprocess:JS,promise:GS,record:FS,set:WS,strictObject:zS,string:v1,symbol:NS,transformer:X0,tuple:$S,undefined:IS,union:jS,unknown:AS,void:RS,NEVER:i2,ZodIssueCode:he,quotelessJson:rS,ZodError:Ys});const s2=Dn.object({url:Dn.string().min(1,"Field is required")}),o2=({open:e,user:t,onCloseModal:n})=>{const r=tS({user:t}),a=O_(),[i,o]=Kr(!0),s=h0({shouldFocusError:!1,mode:"onSubmit",resolver:u1(s2),defaultValues:{url:""}}),[l,{data:u}]=ad.endpoints.getApiV1InstanceDomains.useLazyQuery(),c=e=>{!i&&o(!0),s.setValue("url",e),(e=>{i&&l({limit:20,domain:e,software:"mastodon"})})(e)},d=i&&!!s.getValues("url");return L.jsxs(rm,{open:e,onCloseModal:n,title:`You're not following @${t.username}`,children:[L.jsx(zy,{...s,children:L.jsxs("form",{className:"flex flex-col gap-3 md:mb-4 md:flex-row md:items-end",autoFocus:!1,onSubmit:(...e)=>{s.handleSubmit(r)(...e)},children:[L.jsx(jy,{control:s.control,name:"url",render:({field:e})=>L.jsxs(l_,{className:"mt-0 flex-1",children:[L.jsx(u_,{className:"mb-2 block text-base",children:"Enter your server name to follow this user"}),L.jsxs("div",{className:"relative",children:[L.jsx(c_,{children:L.jsx(Dy,{"data-testid":"input",placeholder:"Server name",...e,onChange:e=>c(e.target.value)})}),L.jsx(f_,{"data-testid":"command",children:L.jsx(d_,{"data-testid":"list",className:"bg-background absolute z-50 mt-1 w-full rounded-md shadow-md empty:hidden",children:d&&(null==u?void 0:u.map((e=>L.jsx(p_,{className:"w-full max-w-[unset] [&>div]:overflow-hidden [&>div]:text-ellipsis",onSelect:e=>{o(!1),s.setValue("url",e)},children:L.jsx("div",{dangerouslySetInnerHTML:{__html:nS(e,s.getValues("url"))}})},e))))})})]}),L.jsx(h_,{className:"md:absolute"})]})}),L.jsx(Bc,{type:"submit",variant:"primary",children:"Take me home"})]})}),L.jsxs("div",{children:[L.jsx("span",{className:"text-base text-slate-500",children:"Do not have an account yet?"}),L.jsx(Bc,{"data-testid":"join",variant:"tertiary",className:"text-blue_100 ml-1 text-base",onClick:()=>{null==n||n(),a("/signin",{props:{redirectUrl:window.location.href}})},children:"Join Wellsley"})]})]})},ca=e=>`@${e.username}${e.domain?`@${e.domain}`:""}`,w1=({user:e,onFollow:t,onUnfollow:n,unsubscribe:r})=>{const[a,i]=Kr(!1),o=Qn(pd.selectors.selectIsAuthenticated),[s]=L_(),[l]=P_(),u=null==e?void 0:e.domain,c={user:e,username:ca(e),...u&&{domain:u}};return{follow:async()=>{o?await s(c):i(!0),null==t||t()},unfollow:async()=>{await l({mutual:r,...c}),null==n||n()},renderGuestFollowModal:()=>a?L.jsx(o2,{user:e,open:a,onCloseModal:()=>i(!1)}):null}},a2=({delay:e=0,defaultHover:t=!1,dependProps:n=[],leaveDelay:r=0}={})=>{const a=nl(null),[i,o]=Kr(t),s=nl(null),l=nl(null),u=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{o(!0)}),e),l.current&&clearTimeout(l.current)},c=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout((()=>{o(!1)}),r),s.current&&clearTimeout(s.current)};return Zs((()=>()=>{s.current&&clearTimeout(s.current),l.current&&clearTimeout(l.current)}),[]),Zs((()=>{const e=a.current;if(e)return e.addEventListener("mouseenter",u),e.addEventListener("mouseleave",c),()=>{e.removeEventListener("mouseenter",u),e.removeEventListener("mouseleave",c)}}),[a.current,...n]),[a,i,o]},l2=({open:e,title:t,children:n,leftButton:r,rightButton:a,onClose:i,titleTestId:o,...s})=>L.jsxs(rm,{open:e,onCloseModal:i,showClose:!1,className:"gap-none max-w-[400px] rounded-lg",...s,children:[L.jsx("h3",{className:"p-none mb-xxs text-center text-lg font-semibold text-slate-700","data-testid":o,children:t}),n&&L.jsx("div",{className:"text-center text-base text-slate-500",children:n}),L.jsxs("div",{className:"mt-m max-md:gap-s md:gap-m flex justify-center",children:[L.jsx(Zv,{size:"m",variant:"secondary",className:"flex-1",...r,title:void 0,children:r.title}),a&&L.jsx(Zv,{size:"m",className:"flex-1",...a,title:void 0,children:a.title})]})]}),u2=e=>!(null==e||!e.blocked),x1=(e=!1)=>{const[t,n]=Kr(e);return[t,Iv((()=>n(!0)),[]),Iv((()=>n(!1)),[]),Iv((()=>n((e=>!e))),[]),n]},w0=({user:e,relationship:t})=>{const[n,{isLoading:r}]=X1(),[a]=e_(),[i,o,s]=x1(),l=u2(t);return[l,o,async()=>{try{await a({userId:e.id}).unwrap(),yi.success(`${e.username} is unblocked`)}catch(e){yi.error(`${sd(e)}`)}},()=>L.jsx(l2,{open:i,title:`Do you want to block ${e.username}?`,onClose:s,"data-testid":"block-dialog",leftButton:{title:"Cancel",isLoading:!1,variant:"secondary",onClick:s},rightButton:{title:"Block",variant:"red_primary",isLoading:r,onClick:()=>{(async()=>{try{await n({userId:e.id}).unwrap(),yi.success(`${e.username} is blocked`),s()}catch(e){yi.error(`${sd(e)}`)}})()}},children:"Blocked users will not be able to follow you or see your content, and you will not see any content from them. They will also be aware that they have been blocked."}),i]},S1=({size:e,user:t,follow:n,unfollow:r,disabled:a,relationship:i,isRelationshipPending:o,className:s,followButtonText:l,unfollowButtonText:u})=>{const[c,,d]=w0({user:t,relationship:i}),f=z_(i)?"Follow back":l||"Follow",p=u||"Unfollow",h=j_(i),m=R0(i),[g,v]=a2(),y=h&&!v||m;if(!o)return L.jsx(Bc,{ref:g,"data-testid":"followBtn",onClick:c?d:m||h?r:n,size:e,className:kt("rounded-m px-xs w-[100%] min-w-[130px] md:max-w-[300px] lg:max-w-full",!R0&&"bg-slate-700",s),variant:c?"secondary_danger":y?"secondary":"primary",disabled:a,children:c?"Unblock":h?v?"Cancel follow request":"Follow Pending":m?p:f})},ey={data:null,isError:!1,isPending:!1,isSuccess:!1},Uh=dd({name:"user",initialState:ey,reducers:{reset:e=>{Object.assign(e,ey)}},extraReducers:e=>{e.addCase(e1,((e,{payload:t})=>{e.data=t})).addCase(Lx,((e,{payload:t})=>{e.data&&Object.assign(e.data,t||{})})).addCase(Jv,((e,{payload:t})=>{e.isSuccess=t})).addCase(Kv,((e,{payload:t})=>{e.isPending=t})).addCase(Xy,((e,{payload:t})=>{e.isError=t})).addCase(Jy,((e,{payload:t})=>{e.error=t})).addCase(Px,((e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}))},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess}}),$h="8.48.0",du=globalThis;function x0(e,t,n){const r=du,a=r.__SENTRY__=r.__SENTRY__||{},i=a[$h]=a[$h]||{};return i[e]||(i[e]=t())}const k1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,c2="Sentry Logger ",ty=["debug","info","warn","error","log","assert","trace"],ny={};function f2(e){if(!("console"in du))return e();const t=du.console,n={},r=Object.keys(ny);r.forEach((e=>{const r=ny[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function d2(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return k1?ty.forEach((n=>{t[n]=(...t)=>{e&&f2((()=>{du.console[n](`${c2}[${n}]:`,...t)}))}})):ty.forEach((e=>{t[e]=()=>{}})),t}const $m=x0("logger",d2);function S0(){return k0(du),du}function k0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$h,t[$h]=t[$h]||{}}const p2=Object.prototype.toString;function h2(e,t){return p2.call(e)===`[object ${t}]`}function m2(e){return h2(e,"Object")}function g2(e){return!(!e||!e.then||"function"!=typeof e.then)}function v2(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{k1&&$m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const b1=1e3;function E1(){return Date.now()/b1}function y2(){const{performance:e}=du;if(!e||!e.now)return E1;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/b1}const _2=y2();function Ip(){const e=du,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function w2(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||_2(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Ip()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function ry(){return Ip()}function iy(){return Ip().substring(16)}function C1(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=C1(r[e],t[e],n-1));return r}(()=>{const{performance:e}=du;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=a<t,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+n-r):t;(i||s<t)&&(a<=s&&e.timeOrigin)})();const s0="_sentrySpan";function sy(e,t){t?v2(e,s0,t):delete e[s0]}function oy(e){return e[s0]}const x2=100;class b0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ry(),spanId:iy()}}clone(){const e=new b0;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,sy(e,oy(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&w2(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof tm?[t.getScopeData(),t.getRequestSession()]:m2(t)?[e,e.requestSession]:[],{tags:a,extra:i,user:o,contexts:s,level:l,fingerprint:u=[],propagationContext:c}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,sy(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ry()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:x2;if(n<=0)return this;const r={timestamp:E1(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:oy(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=C1(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:iy(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Ip();if(!this._client)return $m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Ip();if(!this._client)return $m.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Ip();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):($m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const tm=b0;function S2(){return x0("defaultCurrentScope",(()=>new tm))}function k2(){return x0("defaultIsolationScope",(()=>new tm))}class b2{constructor(e,t){let n,r;n=e||new tm,r=t||new tm,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return g2(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Op(){const e=k0(S0());return e.stack=e.stack||new b2(S2(),k2())}function E2(e){return Op().withScope(e)}function C2(e,t){const n=Op();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function ay(e){return Op().withScope((()=>e(Op().getIsolationScope())))}function N2(){return{withIsolationScope:ay,withScope:E2,withSetScope:C2,withSetIsolationScope:(e,t)=>ay(t),getCurrentScope:()=>Op().getScope(),getIsolationScope:()=>Op().getIsolationScope()}}function N1(e){const t=k0(e);return t.acs?t.acs:N2()}function I1(){return N1(S0()).getCurrentScope()}function I2(){return N1(S0()).getIsolationScope()}function M2(e,t){return I1().captureException(e,void 0)}function T2(e,t){const n={captureContext:t};return I1().captureMessage(e,void 0,n)}function A2(e,t){I2().setExtra(e,t)}const O2=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return A2("exceptionMessage",t),void M2(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}T2(t)},R2=()=>"object"!=typeof window,L2="wlsy",M1=()=>{try{return window.localStorage}catch(e){console.warn("Error getting window.localStorage storage",e)}},P2=()=>{const e=new Set,t=M1();if(!t)return[];for(let n=0;n<(null==t?void 0:t.length);n+=1){const r=null==t?void 0:t.key(n);"string"==typeof r&&e.add(r)}return Array.from(e)},E0=e=>{const t=`${L2}${e?`:${e}`:""}`,n=e=>`${t}:${e}`,r=()=>P2().filter((e=>e.startsWith(`${t}:`))),a=e=>e.slice(t.length+1),i=M1(),o=e=>{try{return null==i?void 0:i.getItem(n(e))}catch{return null}},s=(e,t)=>{try{null==i||i.setItem(n(e),String(t))}catch{return}};return{getItem:o,setItem:s,removeItem:e=>{try{null==i||i.removeItem(n(e))}catch{return}},clear:()=>{try{r().forEach((e=>null==i?void 0:i.removeItem(e)))}catch{return}},keys:()=>r().map(a),has:e=>null!==o(e),getJSON:e=>{const t=o(e);if(null==t)return null;try{return JSON.parse(t)}catch{return null}},setJSON:(e,t)=>{try{s(e,JSON.stringify(t))}catch{return}}}},ly=["debug","info","warn","error"],z2=(e,t)=>{const n=ly.indexOf(e);return ly.indexOf(t)>=n},Lm=(e,t,n,...r)=>{z2(t,e)&&console.log(`[${e}] ${n}`,...r)},j2=()=>E0().getItem("logger_lvl"),D2=(e=(R2()?"info":j2()||"warn"))=>{let t=e;return{debug:(e,...n)=>Lm("debug",t,e,...n),info:(e,...n)=>Lm("info",t,e,...n),warn:(e,...n)=>Lm("warn",t,e,...n),error:(e,...n)=>(O2(e,...n),Lm("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Xm=D2(),U2=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return Xm.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},$2=e=>{const t=window.parent??window;if(t)try{const n=U2(e);t.postMessage(n,"*")}catch(e){Xm.error("Failed to process or send message:",e)}},C0="auth_token",N0=E0("user"),T1=()=>N0.getItem(C0)||void 0,F2=e=>N0.setItem(C0,e),B2=()=>N0.removeItem(C0),W2=()=>!!T1(),V2={getToken:T1,setToken:F2,removeToken:B2,hasToken:W2},uy={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isPending:!!V2.getToken(),isAuthenticated:!1,isAskLoginOpen:!1},A1=dd({name:"auth",initialState:uy,reducers:{setAskLoginOpen:(e,t)=>{e.isAskLoginOpen=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload||null,e.isPending=!1},logout:()=>({...uy,isPending:!1}),setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectAskLoginOpen:e=>e.isAskLoginOpen,selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectIsAuthenticated:e=>e.isAuthenticated}}),H2=()=>{window.parent===window?N_().dispatch(A1.actions.setAskLoginOpen(!0)):$2(Ax())},sm=e=>{const t=Qn(Uh.selectors.selectCurrentUser),n=Qn(pd.selectors.selectIsAuthenticated),r="SUSPENDED"===(null==t?void 0:t.state),a=r;return{isDisabled:a,guardedAction:(e=()=>{})=>()=>{n?n&&!r&&e():H2()},ActionTooltipWrapper:({children:e,triggerClassname:n})=>a?L.jsx(Yv,{theme:"dark",tooltipText:`${ca(t)} is suspended`,size:"default",triggerClassname:n,children:L.jsx("div",{className:"!pointer-events-auto w-full",children:e})}):L.jsx(L.Fragment,{children:e})}},O1=({user:e,size:t="m",disabled:n,className:r,relationship:a,isRelationshipPending:i,onFollow:o,onUnfollow:s,followButtonText:l,unfollowButtonText:u})=>{const{follow:c,unfollow:d,renderGuestFollowModal:f}=w1({user:e,onFollow:o,onUnfollow:s}),p=m0(e.id),{isDisabled:h,ActionTooltipWrapper:m}=sm();return p||i?null:L.jsxs("div",{"data-testid":"followControl",children:[f(),L.jsx(m,{triggerClassname:kt("l"===t&&"w-full"),children:L.jsx(S1,{user:e,size:t,disabled:n,className:r,follow:()=>{c()},unfollow:()=>{d()},disabled:h,relationship:a,isRelationshipPending:!1,followButtonText:l,unfollowButtonText:u})})]})},Z2=({author:e,isPopup:t,notification:n})=>{var r,a;const i=nm(),[o]=t_(),[s]=n_(),{relationship:l,isLoading:u}=D_({userId:null==e?void 0:e.id}),c=!(!e||"FOLLOW"!==n.type||t),d=!(!e||"FOLLOW_REQUEST"!==n.type||t),f=e?ca(e):"",p=n.followResponse||(null==(a=null==(r=n.meta)?void 0:r.actionsTaken)?void 0:a[0].text);return L.jsxs(L.Fragment,{children:[c&&e&&L.jsx(O1,{size:"s",user:e,relationship:l,isRelationshipPending:u}),p?L.jsx("div",{className:"min-w-[120px] text-center text-sm font-semibold text-slate-400",children:p}):d?L.jsxs("div",{className:"flex items-center gap-2","data-testid":"followControls",children:[L.jsx(Bc,{variant:"tertiary",className:"px-3",onClick:()=>{e&&(s({username:f,user:e}),i(Vm.actions.updateNotification({...n,followResponse:"Declined"})))},children:"Decline"}),L.jsx(Bc,{size:"m",variant:"primary",onClick:()=>{e&&(o({username:f,user:e}),i(Vm.actions.updateNotification({...n,followResponse:"Accepted"})))},children:"Confirm"})]}):null]})};var cy,Fm={exports:{}},Y2=Fm.exports;function Q2(){return cy||(cy=1,Fm.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",s="day",l="week",u="month",c="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(r,u),i=n-a<0,o=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-a)/(i?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:l,d:s,D:f,h:o,m:i,s:a,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=g;var w="$isDayjsObject",x=function(e){return e instanceof E||!(!e||!e[w])},k=function e(t,n,r){var a;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(a=i),n&&(_[i]=n,a=i);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;_[s]=t,a=s}return!r&&a&&(b=a),a||!r&&b},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},N=y;N.l=k,N.i=x,N.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(N.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return N},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return N.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!N.u(t)||t,c=N.p(e),p=function(e,t){var a=N.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?a:a.endOf(s)},h=function(e,t){return N.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case u:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return p(r?v-_:v+(6-_),g);case s:case f:return h(y+"Hours",0);case o:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case a:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=N.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=c+"Date",n[f]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[o]=c+"Hours",n[i]=c+"Minutes",n[a]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===u||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[N.p(e)]()},v.add=function(r,c){var f,p=this;r=Number(r);var h=N.p(c),m=function(e){var t=S(p);return N.w(t.date(t.date()+Math.round(e*r)),p)};if(h===u)return this.set(u,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[i]=t,f[o]=n,f[a]=e,f)[h]||1,v=this.$d.getTime()+r*g;return N.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=N.z(this),i=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,a,i){return e&&(e[n]||e(t,r))||a[n].slice(0,i)},f=function(e){return N.s(i%12||12,e,"0")},h=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return N.s(t.$y,4,"0");case"M":return s+1;case"MM":return N.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return N.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return N.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,o,!0);case"A":return h(i,o,!1);case"m":return String(o);case"mm":return N.s(o,2,"0");case"s":return String(t.$s);case"ss":return N.s(t.$s,2,"0");case"SSS":return N.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=N.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,_=function(){return N.m(m,v)};switch(g){case d:h=_()/12;break;case u:h=_();break;case c:h=_()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case o:h=b/n;break;case i:h=b/t;break;case a:h=b/e;break;default:h=b}return p?h:N.a(h)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return N.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),j=E.prototype;return S.prototype=j,[["$ms",r],["$s",a],["$m",i],["$H",o],["$W",s],["$M",u],["$y",d],["$D",f]].forEach((function(e){j[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,E,S),e.$i=!0),S},S.locale=k,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=_[b],S.Ls=_,S.p={},S}()),Fm.exports}var G2=Q2();const q2=v0(G2);var fy,Bm={exports:{}},K2=Bm.exports;function J2(){return fy||(fy=1,Bm.exports=(o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s=31536e6,months:l=2628e6,days:i=864e5,hours:a=36e5,minutes:r=6e4,seconds:n=1e3,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof y},f=function(e,t,n){return new y(e,n,t.$l)},p=function(e){return t.p(e)+"s"},h=function(e){return e<0},m=function(e){return h(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:""+g(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*c[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var a=e.match(u);if(a){var i=a.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var g=h.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*c[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/l),e%=l,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/a),e%=a,this.$d.minutes=m(e/r),e%=r,this.$d.seconds=m(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,"D"),a=v(this.$d.hours,"H"),i=v(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,"S"),l=e.negative||t.negative||r.negative||a.negative||i.negative||s.negative,u=a.format||i.format||s.format?"T":"",c=(l?"-":"")+"P"+e.format+t.format+r.format+u+a.format+i.format+s.format;return"P"===c||"-P"===c?"P0D":c},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/c[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?m(t/c[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*c[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")},function(n,r,a){e=a,t=a().$utils(),a.duration=function(e,t){var n=a.locale();return f(e,{$l:n},t)},a.isDuration=d;var i=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):o.bind(this)(e,t)}})),Bm.exports;var e,t,n,r,a,i,o,s,l,u,c,d,f,p,h,m,g,v,y,b}var X2=J2();const ek=v0(X2);q2.extend(ek);const R1=1e3,o0=6e4,a0=60*o0,Ph=24*a0,l0=30*Ph,dy=12*l0,id=(e,t,n,r)=>`${e}${n}`,tk=(e,t)=>e<o0?id(Math.floor(e/R1),0,"s"):e<a0?id(Math.floor(e/o0),0,"min"):e<Ph?id(Math.floor(e/a0),0,"h"):e<7*Ph?id(Math.floor(e/Ph),0,"d"):e<l0?id(Math.floor(e/(7*Ph)),0,"w"):e<dy?id(Math.floor(e/l0),0,"m"):id(Math.floor(e/dy),0,"y"),nk=(e,t)=>{const n=Date.now(),r=new Date(e).getTime(),a=Math.max(1,n-r);return tk(a)},rk=({type:e,post:t})=>{var n,r;return"LIKE"===e&&null!=(n=null==t?void 0:t.path)&&n.length||"COMMENT"===e&&(null==t?void 0:t.path)&&t.path.length>1||"REPOST"===e&&(null==(r=null==t?void 0:t.originalPost)?void 0:r.path.length)?"reply":"post"},bp=e=>{var t;const n=rk(e);switch(e.type){case"COMMENT":return`replied to your ${n}`;case"FOLLOW":return"started following you";case"FOLLOW_REQUEST":return"requested following you";case"LIKE":return`liked your ${n}`;case"MENTION":return"mentioned you";case"REPOST":return null!=(t=e.post)&&t.text?`quoted your ${n}`:`reposted your ${n}`}},ik=(e,t=!1)=>{var n;const r=t?"mr-1":"mr-2";switch(e.type){case"COMMENT":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(kw,{size:16,className:r})," ",bp(e)]});case"FOLLOW":case"FOLLOW_REQUEST":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(W0,{size:16,className:r}),bp(e)]});case"LIKE":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(xw,{size:16,className:r,color:t?"#fff":"var(--slate-700)",fill:"transparent"})," ",bp(e)]});case"MENTION":return L.jsxs("div",{className:"flex items-center",children:[L.jsx(fw,{size:16,className:r})," ",bp(e)]});case"REPOST":{const t=null==(n=e.post)?void 0:n.text;return L.jsxs("div",{className:"flex items-center",children:[t?L.jsx(Ew,{size:16,className:r}):L.jsx(Nw,{size:16,className:r})," ",bp(e)]})}}},sk=e=>{const{user:t,isLoading:n}=Vy(),{data:r,isLoading:a,error:i}=U_(e),o="userId"in e,{data:s,isLoading:l}=$_({userId:o?e.userId:"",htmlContent:e.htmlContent??!1,canFetch:!!o&&(e.canFetch??!0)});return[o&&s||r,"username"in e&&`@${null==t?void 0:t.username}`===e.username||o&&(null==t?void 0:t.id)===e.userId,n||a||o&&l,!!i]},L1={forever:0,"6h":21600,"12h":43200,"24h":86400,"7 days":604800,"30 days":2592e3},ok=({selected:e,onSelect:t})=>Object.keys(L1).map((n=>L.jsxs("span",{className:kt("p-xxs gap-xxxs flex cursor-pointer rounded-full border border-slate-400 bg-transparent text-sm",{"border-slate-100 bg-slate-100":e===n}),onClick:()=>t(n),children:[e===n&&L.jsx(gw,{size:16}),"forever"===n?"Until I unmute":`For ${n}`]},n))),P1=({user:e,relationship:t,onMute:n,onUnmute:r})=>{const[a,{isLoading:i}]=F_(),[o,{isLoading:s}]=B_(),[l,u]=Kr("forever"),c=e?ca(e):"",[d,f,p]=x1(),h=W_(t);return{isLoading:i||s,isMuted:h,mute:f,unmute:()=>{e&&(o({userId:e.id}),yi.success(`${c} is unmuted`),null==r||r())},renderMuteDialog:()=>e?L.jsxs(rm,{open:d,onCloseModal:p,title:`Do you want to mute ${e.username}?`,className:"p-none","data-testid":"mute-dialog",children:[L.jsx("span",{className:"text-sm text-slate-500",children:"Muted users can still follow you and see your content, but you will not see any content from them. They will not know that they have been muted."}),L.jsx("div",{className:"gap-xxxs mt-m flex",children:L.jsx(ok,{selected:l,onSelect:u})}),L.jsx(Zv,{variant:"primary",onClick:()=>{(()=>{if(!e)return;const t=L1[l];a({userId:e.id,...t&&{duration:t}}),yi.success(`${c} is muted`),p(),null==n||n()})()},isLoading:i,className:"mt-m ml-auto block","data-testid":"submitAction",children:"Mute"})]}):null,isMuteDialogOpened:d}};function z1(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=z1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ak(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=z1(e))&&(r&&(r+=" "),r+=t);return r}const py=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u0=ak,lk=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return u0(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const o=py(t)||py(r);return a[e][o]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return u0(e,o,l,null==n?void 0:n.class,null==n?void 0:n.className)},uk=lk("rounded-full",{variants:{size:{20:"size-5 text-[10px]",24:"size-6 text-[10px]",32:"size-8 text-sm",40:"size-10 text-base",48:"size-[48px] text-base",96:"size-[96px] text-[32px]"}},defaultVariants:{size:40}}),j1=({name:e,imgUrl:t,size:n=40,className:r})=>{var a;return L.jsxs(m_,{className:kt(uk({size:n}),r),"data-testid":`userAvatar-${n}`,children:[t&&L.jsx(g_,{src:t,alt:"user-avatar"}),L.jsx("span",{className:"flex size-full items-center justify-center bg-slate-700 text-white",children:null==(a=null==e?void 0:e[0])?void 0:a.toUpperCase()})]})},ck={data:null,isPending:!1,isSuccess:!1},_s=dd({name:"userNoHTML",initialState:ck,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),D1="getApiV1UsersRelationships",fk=ld.memoize(((e,t)=>ad.util.selectCachedArgsForQuery(e,D1).find((e=>e.targets.includes(t))))),ou=({state:e,userId:t,dispatch:n,relationsProps:r})=>{const a=fk(e,t);return a?n(ad.util.updateQueryData(D1,a,(e=>{e[t]={...e[t],...r}}))):null},hy=3,my=64,gy=5,dk=56,pk=2,hk=30,mk=50,U1=30,eg={short:"Too short",long:"Too long"},I0=new RegExp("\\p{Extended_Pictographic}","u"),gk=({showInlineError:e=!0})=>Dn.string().trim().min(2,e?"Username is required":"").max(30,eg.long).regex(/^[0-9a-zA-Z_]+[0-9a-zA-Z_.]*$/,"Only latin letters, digits, _ and . allowed"),vk=Dn.string().trim().min(1,"Display name is required").max(50).regex(/^[^@]*$/,"@ is not allowed").superRefine(((e,t)=>{const n=I0.test(e),r=/[a-zA-Z0-9]/.test(e);n&&!r&&t.addIssue({code:Dn.ZodIssueCode.custom,message:"Emojis alone are not allowed. Please add text"})})),yk=Dn.string().max(1024,eg.long).optional(),$1=({minLength:e,minErrorMessage:t,maxLength:n,regexErrorMessage:r})=>Dn.string().trim().min(e,t).max(n,eg.long).regex(/^[0-9a-zA-Z_]+[0-9a-zA-Z_.]*$/,r);$1({minLength:2,maxLength:30,regexErrorMessage:"Invalid characters. ex.: group_name_1"}),$1({minLength:2,minErrorMessage:eg.short,maxLength:30,regexErrorMessage:"Invalid characters. ex.: channel_name_1"}),Dn.string().trim().min(2,"Too short").max(56,"Too long").regex(/^[0-9a-zA-Z_]+[0-9a-zA-Z_.]*$|^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{1,}$/,"Invalid characters"),Dn.string().trim().superRefine(((e,t)=>{I0.test(e)&&t.addIssue({code:Dn.ZodIssueCode.custom,message:"Emojis are not allowed"}),/[A-Z]/.test(e)&&/[a-z]/.test(e)&&/[0-9]/.test(e)&&/[^A-Za-z0-9]/.test(e)&&e.length>=3&&e.length<=64||t.addIssue({code:Dn.ZodIssueCode.custom,message:"Must include A-Z, a-z, 0-9, a special character, and be 3 - 64 chars"})})),Dn.string().trim().min(5,"Must be at least 5 characters long").regex(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/i,"Email format is not valid").refine((e=>!I0.test(e)),"Emojis are not allowed"),Dn.object({bio:yk,username:gk({showInlineError:!0}),displayName:vk}),Dn.object({show:Dn.boolean(),dateOnly:Dn.boolean(),date:Dn.date().optional().nullable()}),Dn.object({show:Dn.boolean(),dateOnly:Dn.boolean(),date:Dn.date().optional().nullable()});const vy=e=>{var t;const n=e,r=409===(null==n?void 0:n.status);return{message:"UserNameIsReserved"===(null==(t=null==n?void 0:n.data)?void 0:t.errorCode)?"Restricted words detected. Please, try alternatives":"Username already in use. Please, try another one",isError:r}},_k=ad.enhanceEndpoints({endpoints:{deleteApiV1Users:{invalidatesTags:["Secure","Account"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await vn(n)&&await t(ad.endpoints.getApiV1AccountsProfile.initiate({htmlContent:!1})).unwrap()}catch(e){yi.error(`${sd(e)}`)}}},getApiV1AccountsProfile:{providesTags:["Secure","Account"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){t(Kv(!0));try{const e=await vn(n);e&&t(e1(e.data)),t(Jv(!0))}catch(e){t(Jv(!1)),t(Xy(!0)),t(Jy(e))}finally{t(Kv(!1))}}},putApiV1UsersByUserId:{invalidatesTags:["Secure","Account"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,yi.success("User updated successfully")}catch(e){const t=e.error,{isError:n}=vy(t);!n&&yi.error(`${sd(t)}`)}}},getApiV1Users:{providesTags:["Secure","UserNoHtml"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const r=!e.htmlContent;try{r&&t(_s.actions.setPending(!0));const e=await vn(n);r&&e&&(t(_s.actions.setUser(e.data)),t(_s.actions.setSuccess(!0)),t(_s.actions.setPending(!1)))}catch(e){r&&(t(_s.actions.setSuccess(!1)),t(_s.actions.setError(e)),t(_s.actions.setPending(!1))),yi.error(`${sd(e)}`)}}},postApiV1Users:{invalidatesTags:["Account"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,yi.success("User created successfully")}catch(e){const t=e.error,{isError:n}=vy(t);!n&&yi.error(`${sd(t)}`)}}},getApiV1UsersFollowers:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersByUserId:{providesTags:["Secure","UserNoHtml"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const r=!e.htmlContent;try{r&&t(_s.actions.setPending(!0));const e=await vn(n);r&&e&&(t(_s.actions.setUser(e.data)),t(_s.actions.setSuccess(!0)),t(_s.actions.setPending(!1)))}catch(e){r&&(t(_s.actions.setSuccess(!1)),t(_s.actions.setError(e)),t(_s.actions.setPending(!1))),yi.error(`${sd(e)}`)}}},getApiV1UsersByUserIdFollowers:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersFollowees:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersByUserIdFollowing:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},postApiV1UsersFollowByUsernameAccept:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n,getState:r}){const a=ou({dispatch:n,userId:e.user.id,state:r(),relationsProps:{followed:"ACCEPTED"}});await vn(t,`Accepted follow request from ${e.username}`,(()=>null==a?void 0:a.undo()))}},postApiV1UsersFollowByUsernameReject:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n,getState:r}){const a=ou({dispatch:n,userId:e.user.id,state:r(),relationsProps:{followed:"REJECTED"}});await vn(t,`Rejected follow request from ${e.username}`,(()=>null==a?void 0:a.undo()))}},postApiV1UsersFollowByUsername:{invalidatesTags:["Follow","Secure"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n}){await vn(t,`Follow request sent to ${e.username}`)&&n(ad.util.invalidateTags([{type:"Relationship",id:e.user.id}]))}},postApiV1UsersFollowByUsernameUndo:{invalidatesTags:["Follow","Secure"],async onQueryStarted(e,{queryFulfilled:t,dispatch:n,getState:r}){const a=ou({dispatch:n,userId:e.user.id,state:r(),relationsProps:{following:null}});await vn(t,`You unfollowed ${e.username}`,(()=>null==a?void 0:a.undo()))}},getApiV1Block:{providesTags:["Follow"]},postApiV1BlockByUserId:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e.userId,dispatch:r,state:n(),relationsProps:{blocked:!0}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},deleteApiV1BlockByUserId:{invalidatesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e.userId,dispatch:r,state:n(),relationsProps:{blocked:!1,muted:{state:!1}}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},postApiV1MuteByUserId:{async onQueryStarted({userId:e},{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e,dispatch:r,state:n(),relationsProps:{muted:{state:!0}}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},deleteApiV1MuteByUserId:{async onQueryStarted({userId:e},{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e,dispatch:r,state:n(),relationsProps:{muted:{state:!1}}});await vn(t,void 0,(()=>null==a?void 0:a.undo()))}},getApiV1Mute:{async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},getApiV1UsersRelationships:{providesTags:(e,t,{targets:n})=>n.map((e=>({type:"Relationship",id:e}))),async onQueryStarted(e,{queryFulfilled:t}){await vn(t)}},postApiV1AdminUserChangeState:{invalidatesTags:["Secure"],async onQueryStarted(e,{queryFulfilled:t}){await vn(t,`User ${e.changeUserState.userId} state changed to ${e.changeUserState.newState}`)}},putApiV1Notes:{async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const{userId:a,text:i}=e.noteUpdate,o=ou({userId:a,dispatch:r,state:n(),relationsProps:{note:i}});await vn(t,"Note has been updated",(()=>null==o?void 0:o.undo()))}},deleteApiV1NotesByUserId:{async onQueryStarted(e,{queryFulfilled:t,getState:n,dispatch:r}){const a=ou({userId:e.userId,dispatch:r,state:n(),relationsProps:{note:""}});await vn(t,"Note has been removed",(()=>null==a?void 0:a.undo()))}},postApiV1UsersFollowByUsernamePend:{async onQueryStarted(e,{queryFulfilled:t}){await vn(t,`${e.username} has been removed from followers`)}}}}).injectEndpoints({endpoints:e=>({getInteractionUrl:e.query({query:e=>({url:e,headers:{Accept:"application/activity+json"}}),transformResponse:e=>"string"==typeof e?JSON.parse(e):e})})}),{useGetInteractionUrlQuery:mE,usePostApiV1UsersMutation:gE,useDeleteApiV1AccountsDeleteMutation:vE,useGetApiV1AccountsProfileQuery:yE,usePutApiV1UsersByUserIdMutation:_E,useGetApiV1UsersQuery:wE,useDeleteApiV1UsersMutation:xE,usePostApiV1MuteByUserIdMutation:SE,useDeleteApiV1MuteByUserIdMutation:kE,useGetApiV1MuteQuery:bE,usePostApiV1AdminUserChangeStateMutation:EE,useGetApiV1UsersRelationshipsQuery:wk,usePutApiV1NotesMutation:CE,useDeleteApiV1NotesByUserIdMutation:NE,useLazyGetApiV1UsersRelationshipsQuery:xk,useLazyGetApiV1GeoQuery:IE,useGetApiV1UsersFollowersQuery:ME,useGetApiV1UsersByUserIdQuery:TE,useLazyGetApiV1GroupsAccountQuery:AE,useLazyGetApiV1UsersRenameHistoryQuery:OE,useGetApiV1UsersByUserIdFollowersQuery:RE,usePostApiV1UsersFollowByUsernameMutation:LE,usePostApiV1UsersFollowByUsernameUndoMutation:PE,usePostApiV1UsersFollowByUsernameRejectMutation:zE,usePostApiV1UsersFollowByUsernameAcceptMutation:jE}=_k,Sk=()=>{const e=Qn(Uh.selectors.selectCurrentUser),t=Qn(A1.selectors.selectIsAuthenticated);return{user:e,isLoading:Qn(Uh.selectors.selectPending),isLogged:t,error:Qn(Uh.selectors.selectError)}},F1=({onChange:e})=>{const{user:t}=Sk(),n=null==t?void 0:t.id,r=nl(n);Zs((()=>{r.current?n!==r.current&&(e(),r.current=n):r.current=n}),[n,r.current])},yy=["following","followed","blocked","muted","note","blocked_by"],_y=({userId:e,currentUserId:t})=>{const n="string"==typeof e,r=n?[e]:(null==e?void 0:e.filter((e=>e!==t)))||[],a=e===t;return{isSingleUser:n,canFetch:!(!r.length||a||!t),safeTargets:r}},B1=({userId:e,skip:t})=>{const n=Qn(Uh.selectors.selectCurrentUser),r=null==n?void 0:n.id,{canFetch:a,isSingleUser:i,safeTargets:o}=_y({userId:e,currentUserId:r}),{data:s,isLoading:l}=wk({targets:o,filter:yy},{skip:!a||t}),[u]=xk(),c=({userId:e})=>{const{canFetch:t,safeTargets:n}=_y({userId:e,currentUserId:r});t&&u({targets:n,filter:yy})};return F1({onChange:()=>{c({userId:o})}}),{relationship:(i?null==s?void 0:s[e]:s)||{},isLoading:l,updateRelations:c}},kk=e=>e.replace(/(<)/g,"<").replace(/>/g,">"),wy=(e,t)=>null!=t&&t.length?t.reduce(((e,t)=>e=e.replaceAll(new RegExp(`:${t.shortcode}:`,"g"),`<img class="custom-emoji" src="${t.staticUrl}" alt='emoji ${t.shortcode}'/>`)),e):e,bk={list:[]},Ek=dd({name:"emojis",initialState:bk,reducers:{addEmoji:(e,t)=>{e.list.push(t.payload)},addList:(e,t)=>{e.list=t.payload}},selectors:{selectEmojis:e=>e.list}}).injectInto(d0);var tg=(e=>(e.header="header",e.avatar="avatar",e))(tg||{});const M0=({user:e,type:t})=>{var n,r,a,i;if(!e)return"";try{return("avatar"===t?null==(r=null==(n=e.avatar)?void 0:n.files[0])?void 0:r.uri:null==(i=null==(a=e.header)?void 0:a.files[0])?void 0:i.uri)||""}catch{return""}},Ck="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%209V0L0%2012H9C10.6569%2012%2012%2010.6569%2012%209Z'%20fill='white'/%3e%3cpath%20d='M0%203V12L12%200H3C1.34315%200%200%201.34315%200%203Z'%20fill='%23CBD5E1'/%3e%3c/svg%3e",Nk="Enter",c0=52,Ik=e=>{const[t,n]=Kr((null==e?void 0:e.length)||0),r=nl(null),a=nl(null);return{inputRef:r,textareaRef:a,charCount:t,setCharCount:n,handleKeyDown:e=>{var t,n;e.key===Nk&&(e.preventDefault(),null==(t=r.current)||t.blur(),null==(n=a.current)||n.blur())},handleTextareaChange:e=>{const t=e.target,r=t.value.length;n(r);const a=Mk(t);setTimeout((()=>{if(t.style.height="52px",!a)return;const e=Math.max(t.scrollHeight,52);t.style.height=`${e}px`}),0)}}},Mk=e=>{if(e instanceof HTMLTextAreaElement){const t=document.createElement("canvas").getContext("2d"),n=window.getComputedStyle(e);if(t){t.font=n.font||"16px sans-serif";const r=parseInt(n.paddingLeft||"0")||0,a=parseInt(n.paddingRight||"0")||0,i=e.clientWidth-r-a;return t.measureText(e.value).width>i}return e.scrollHeight>52}{const t=e.value.includes("\n"),n=e.scrollWidth>e.clientWidth;return t||n}},xy=52,zh=200,Tk=10,Ak=Dn.object({note:Dn.string().max(zh)}),Ok=({userId:e,note:t="",className:n,resizable:r=!1})=>{const[a]=V_(),[i]=H_(),o=Qn(pd.selectors.selectIsAuthenticated),s=Qn(g0.selectors.selectCurrentUser),l=(null==s?void 0:s.id)===e,u=e=>{const t=e.target.value;c(t)},c=async(t="")=>{t?await a({noteUpdate:{userId:e,text:t}}):await i({userId:e})},d=h0({resolver:u1(Ak)}),{inputRef:f,textareaRef:p,charCount:h,setCharCount:m,handleTextareaChange:g,handleKeyDown:v}=Ik(t);if(!l&&o)return L.jsx(zy,{...d,children:L.jsxs("form",{className:kt("my-5",n),onKeyDown:v,children:[h>=190&&L.jsxs("div",{className:"mb-xxs text-right text-sm text-slate-400",children:[zh-h," characters left"]}),L.jsx(jy,{control:d.control,name:"note",render:e=>L.jsxs("div",{className:"rounded-m relative flex items-center bg-slate-100 text-slate-700",children:[r?L.jsx("textarea",{...e,ref:p,maxLength:zh,onBlur:u,onChange:g,defaultValue:t,placeholder:"Leave a note (visible only to you)",className:"scrollbar-hide p-s w-full resize-none border-0 bg-transparent text-base leading-5 outline-none [-ms-overflow-style:none] [scrollbar-width:none] focus:border-0 focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0 disabled:opacity-[1] [&::-webkit-scrollbar]:hidden",style:{height:"52px"}}):L.jsx("input",{...e,ref:f,maxLength:zh,onBlur:u,onChange:e=>{m(e.target.value.length)},defaultValue:t,placeholder:"Leave a note visible only to you",className:"p-s w-full border-0 bg-transparent focus-visible:outline-none disabled:opacity-[1]",style:{height:"52px"}}),L.jsx("img",{src:Ck,alt:"user note",className:"absolute bottom-0 right-0"})]})})]})})},Sy=({status:e,iconOnly:t=!1,clasName:n})=>{const r="muted"===e?L.jsx(Qy,{size:16}):L.jsx(Gy,{size:16}),a="muted"===e?"text-brown outline-brown":"text-red-dark outline-red-dark";return L.jsxs("div",{className:kt(a,"flex items-center gap-1 rounded-sm bg-white px-2 py-1 text-sm font-semibold outline",t&&"p-1",n),children:[r,!t&&ld.capitalize(e)]})},Rk=({children:e})=>L.jsx("span",{className:"line-clamp-2 block text-ellipsis whitespace-pre-wrap break-words text-left",children:e}),W1=({userId:e,status:t,skip:n=!1})=>{const r=Qn(g0.selectors.selectCurrentUser),a=Qn(pd.selectors.selectIsAuthenticated),i=!n&&a,o=e||(null==r?void 0:r.id),s=!(t||!o||!i),l=!(!t||!a||s||!i),{data:u,isLoading:c}=Z_({status:t},{skip:s||!l}),{data:d,isLoading:f}=Y_({userId:o},{skip:l||!s});return[d||u,c||f]},Uc={followers:"followers",following:"following"},Lk=({user:e,showEmpty:t=!0,className:n,renderModal:r,...a})=>{const[i]=W1({userId:e.id}),[o,s]=Kr({open:!1,tab:Uc.followers}),{guardedAction:l,ActionTooltipWrapper:u}=sm(),c=(null==i?void 0:i.length)||0,d=1===c?"follower":"followers",f=(null==i?void 0:i.slice(0,3))||[];return 0!==c||t?L.jsxs("div",{"data-testid":"user-followers",children:[o.open&&(null==r?void 0:r({user:e,tab:o.tab,isOpen:!0,onClose:()=>s((e=>({...e,open:!1}))),...a})),L.jsx(u,{children:L.jsxs("div",{onClick:l((()=>{s({tab:Uc.followers,open:!0})})),className:kt("mb-4 flex cursor-pointer items-center text-base font-medium text-slate-900",n),children:[f.length>0&&L.jsx("ul",{className:"mr-2 flex items-center",children:f.map(((e,t)=>L.jsx("li",{className:kt("relative",t>0&&"-ml-2"),children:L.jsx("div",{className:"rounded-full bg-white p-0.5",children:L.jsx(Hy,{size:24,name:e.displayName,imgUrl:M0({user:e,type:tg.avatar})})})},e.id)))}),c," ",d]})})]}):null},Pk=({status:e,userId:t,skip:n=!1})=>{const r=Qn(pd.selectors.selectIsAuthenticated),a=!!e&&r,{data:i,isLoading:o}=r_({status:e},{skip:!a||n}),{data:s,isLoading:l}=i_({userId:t},{skip:a||!t||!r||n});return{data:i||s,isLoading:o||l}},zk=({userUrl:e})=>L.jsxs("div",{className:"flex w-full items-center justify-between",children:[L.jsxs("div",{className:"gap-xs flex items-center",children:[L.jsx("div",{className:"flex size-10 items-center justify-center rounded-full border border-slate-200",children:L.jsx(Uw,{size:20})}),L.jsxs("div",{className:"text-sm",children:[L.jsx("p",{className:"mb-xxxs font-semibold text-slate-900",children:"Some followers may not be visible"}),L.jsx("span",{className:"text-slate-400",children:"You can see more on the original server"})]})]}),L.jsx(R_,{baseUrl:e,children:L.jsx("a",{href:e,children:L.jsxs(Bc,{variant:"secondary",className:"gap-xxs font-semibold",children:["See more followers ",L.jsx(Rw,{})]})})})]}),ky=({count:e=15,className:t,itemClassName:n})=>L.jsx("div",{"data-testid":"list-loader",className:kt("gap-m ml-auto mr-auto flex max-w-[560px] flex-col",t),children:Array.from(Array(e).keys()).map(((e,t)=>L.jsx(v_,{className:kt("rounded-m h-[50px] w-full",n)},t)))});var by,jh={exports:{}},jk=jh.exports;
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Lodash <https://lodash.com/>
|