estatesfunding/ef-ui/dist/assets/index-CFxhPaJf.js

90 lines
551 KiB
JavaScript

var Rg=Object.defineProperty;var Ag=(e,t,n)=>t in e?Rg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pl=(e,t,n)=>Ag(e,typeof t!="symbol"?t+"":t,n);function Ig(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Fg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _p={exports:{}},xa={},Op={exports:{}},ue={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wo=Symbol.for("react.element"),Dg=Symbol.for("react.portal"),Mg=Symbol.for("react.fragment"),Lg=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),zg=Symbol.for("react.provider"),$g=Symbol.for("react.context"),Wg=Symbol.for("react.forward_ref"),Ug=Symbol.for("react.suspense"),qg=Symbol.for("react.memo"),Vg=Symbol.for("react.lazy"),Od=Symbol.iterator;function Hg(e){return e===null||typeof e!="object"?null:(e=Od&&e[Od]||e["@@iterator"],typeof e=="function"?e:null)}var Tp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rp=Object.assign,Ap={};function us(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||Tp}us.prototype.isReactComponent={};us.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ip(){}Ip.prototype=us.prototype;function xu(e,t,n){this.props=e,this.context=t,this.refs=Ap,this.updater=n||Tp}var yu=xu.prototype=new Ip;yu.constructor=xu;Rp(yu,us.prototype);yu.isPureReactComponent=!0;var Td=Array.isArray,Fp=Object.prototype.hasOwnProperty,ju={current:null},Dp={key:!0,ref:!0,__self:!0,__source:!0};function Mp(e,t,n){var s,o={},i=null,a=null;if(t!=null)for(s in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Fp.call(t,s)&&!Dp.hasOwnProperty(s)&&(o[s]=t[s]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)o[s]===void 0&&(o[s]=l[s]);return{$$typeof:wo,type:e,key:i,ref:a,props:o,_owner:ju.current}}function Kg(e,t){return{$$typeof:wo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nu(e){return typeof e=="object"&&e!==null&&e.$$typeof===wo}function Yg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rd=/\/+/g;function ml(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yg(""+e.key):t.toString(36)}function ai(e,t,n,s,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case wo:case Dg:a=!0}}if(a)return a=e,o=o(a),e=s===""?"."+ml(a,0):s,Td(o)?(n="",e!=null&&(n=e.replace(Rd,"$&/")+"/"),ai(o,t,n,"",function(c){return c})):o!=null&&(Nu(o)&&(o=Kg(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Rd,"$&/")+"/")+e)),t.push(o)),1;if(a=0,s=s===""?".":s+":",Td(e))for(var l=0;l<e.length;l++){i=e[l];var u=s+ml(i,l);a+=ai(i,t,n,u,o)}else if(u=Hg(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=s+ml(i,l++),a+=ai(i,t,n,u,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Lo(e,t,n){if(e==null)return e;var s=[],o=0;return ai(e,s,"","",function(i){return t.call(n,i,o++)}),s}function Gg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},li={transition:null},Qg={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:li,ReactCurrentOwner:ju};function Lp(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:Lo,forEach:function(e,t,n){Lo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lo(e,function(){t++}),t},toArray:function(e){return Lo(e,function(t){return t})||[]},only:function(e){if(!Nu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=us;ue.Fragment=Mg;ue.Profiler=Bg;ue.PureComponent=xu;ue.StrictMode=Lg;ue.Suspense=Ug;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qg;ue.act=Lp;ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=Rp({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=ju.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Fp.call(t,u)&&!Dp.hasOwnProperty(u)&&(s[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)s.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];s.children=l}return{$$typeof:wo,type:e.type,key:o,ref:i,props:s,_owner:a}};ue.createContext=function(e){return e={$$typeof:$g,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:zg,_context:e},e.Consumer=e};ue.createElement=Mp;ue.createFactory=function(e){var t=Mp.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:Wg,render:e}};ue.isValidElement=Nu;ue.lazy=function(e){return{$$typeof:Vg,_payload:{_status:-1,_result:e},_init:Gg}};ue.memo=function(e,t){return{$$typeof:qg,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=li.transition;li.transition={};try{e()}finally{li.transition=t}};ue.unstable_act=Lp;ue.useCallback=function(e,t){return Xe.current.useCallback(e,t)};ue.useContext=function(e){return Xe.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Xe.current.useEffect(e,t)};ue.useId=function(){return Xe.current.useId()};ue.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Xe.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};ue.useRef=function(e){return Xe.current.useRef(e)};ue.useState=function(e){return Xe.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Xe.current.useTransition()};ue.version="18.3.1";Op.exports=ue;var S=Op.exports;const I=bo(S),nc=Ig({__proto__:null,default:I},[S]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xg=S,Jg=Symbol.for("react.element"),Zg=Symbol.for("react.fragment"),ex=Object.prototype.hasOwnProperty,tx=Xg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nx={key:!0,ref:!0,__self:!0,__source:!0};function Bp(e,t,n){var s,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(s in t)ex.call(t,s)&&!nx.hasOwnProperty(s)&&(o[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)o[s]===void 0&&(o[s]=t[s]);return{$$typeof:Jg,type:e,key:i,ref:a,props:o,_owner:tx.current}}xa.Fragment=Zg;xa.jsx=Bp;xa.jsxs=Bp;_p.exports=xa;var r=_p.exports,zp={exports:{}},gt={},$p={exports:{}},Wp={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(R,A){var B=R.length;R.push(A);e:for(;0<B;){var M=B-1>>>1,W=R[M];if(0<o(W,A))R[M]=A,R[B]=W,B=M;else break e}}function n(R){return R.length===0?null:R[0]}function s(R){if(R.length===0)return null;var A=R[0],B=R.pop();if(B!==A){R[0]=B;e:for(var M=0,W=R.length,K=W>>>1;M<K;){var Y=2*(M+1)-1,ee=R[Y],re=Y+1,ne=R[re];if(0>o(ee,B))re<W&&0>o(ne,ee)?(R[M]=ne,R[re]=B,M=re):(R[M]=ee,R[Y]=B,M=Y);else if(re<W&&0>o(ne,B))R[M]=ne,R[re]=B,M=re;else break e}}return A}function o(R,A){var B=R.sortIndex-A.sortIndex;return B!==0?B:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,f=null,g=3,b=!1,x=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(R){for(var A=n(c);A!==null;){if(A.callback===null)s(c);else if(A.startTime<=R)s(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function y(R){if(N=!1,h(R),!x)if(n(u)!==null)x=!0,U(k);else{var A=n(c);A!==null&&G(y,A.startTime-R)}}function k(R,A){x=!1,N&&(N=!1,m(_),_=-1),b=!0;var B=g;try{for(h(A),f=n(u);f!==null&&(!(f.expirationTime>A)||R&&!H());){var M=f.callback;if(typeof M=="function"){f.callback=null,g=f.priorityLevel;var W=M(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(u)&&s(u),h(A)}else s(u);f=n(u)}if(f!==null)var K=!0;else{var Y=n(c);Y!==null&&G(y,Y.startTime-A),K=!1}return K}finally{f=null,g=B,b=!1}}var O=!1,T=null,_=-1,D=5,z=-1;function H(){return!(e.unstable_now()-z<D)}function te(){if(T!==null){var R=e.unstable_now();z=R;var A=!0;try{A=T(!0,R)}finally{A?Q():(O=!1,T=null)}}else O=!1}var Q;if(typeof v=="function")Q=function(){v(te)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,F=Z.port2;Z.port1.onmessage=te,Q=function(){F.postMessage(null)}}else Q=function(){C(te,0)};function U(R){T=R,O||(O=!0,Q())}function G(R,A){_=C(function(){R(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){x||b||(x=!0,U(k))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(R){switch(g){case 1:case 2:case 3:var A=3;break;default:A=g}var B=g;g=A;try{return R()}finally{g=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,A){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var B=g;g=R;try{return A()}finally{g=B}},e.unstable_scheduleCallback=function(R,A,B){var M=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?M+B:M):B=M,R){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=B+W,R={id:d++,callback:A,priorityLevel:R,startTime:B,expirationTime:W,sortIndex:-1},B>M?(R.sortIndex=B,t(c,R),n(u)===null&&R===n(c)&&(N?(m(_),_=-1):N=!0,G(y,B-M))):(R.sortIndex=W,t(u,R),x||b||(x=!0,U(k))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var A=g;return function(){var B=g;g=A;try{return R.apply(this,arguments)}finally{g=B}}}})(Wp);$p.exports=Wp;var rx=$p.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sx=S,mt=rx;function V(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 Up=new Set,Js={};function br(e,t){ts(e,t),ts(e+"Capture",t)}function ts(e,t){for(Js[e]=t,e=0;e<t.length;e++)Up.add(t[e])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rc=Object.prototype.hasOwnProperty,ox=/^[: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]*$/,Ad={},Id={};function ix(e){return rc.call(Id,e)?!0:rc.call(Ad,e)?!1:ox.test(e)?Id[e]=!0:(Ad[e]=!0,!1)}function ax(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lx(e,t,n,s){if(t===null||typeof t>"u"||ax(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Je(e,t,n,s,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new Je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new Je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new Je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new Je(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){We[e]=new Je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new Je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new Je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new Je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new Je(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cu=/[\-:]([a-z])/g;function bu(e){return e[1].toUpperCase()}"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(Cu,bu);We[t]=new Je(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(Cu,bu);We[t]=new Je(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(Cu,bu);We[t]=new Je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new Je(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new Je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new Je(e,1,!1,e.toLowerCase(),null,!0,!0)});function wu(e,t,n,s){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(lx(t,n,o,s)&&(n=null),s||o===null?ix(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,s=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var pn=sx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bo=Symbol.for("react.element"),Or=Symbol.for("react.portal"),Tr=Symbol.for("react.fragment"),Su=Symbol.for("react.strict_mode"),sc=Symbol.for("react.profiler"),qp=Symbol.for("react.provider"),Vp=Symbol.for("react.context"),ku=Symbol.for("react.forward_ref"),oc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),Eu=Symbol.for("react.memo"),jn=Symbol.for("react.lazy"),Hp=Symbol.for("react.offscreen"),Fd=Symbol.iterator;function ws(e){return e===null||typeof e!="object"?null:(e=Fd&&e[Fd]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,hl;function As(e){if(hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);hl=t&&t[1]||""}return`
`+hl+e}var vl=!1;function gl(e,t){if(!e||vl)return"";vl=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var s=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){s=c}e.call(t.prototype)}else{try{throw Error()}catch(c){s=c}e()}}catch(c){if(c&&s&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),i=s.stack.split(`
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var u=`
`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?As(e):""}function cx(e){switch(e.tag){case 5:return As(e.type);case 16:return As("Lazy");case 13:return As("Suspense");case 19:return As("SuspenseList");case 0:case 2:case 15:return e=gl(e.type,!1),e;case 11:return e=gl(e.type.render,!1),e;case 1:return e=gl(e.type,!0),e;default:return""}}function ac(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tr:return"Fragment";case Or:return"Portal";case sc:return"Profiler";case Su:return"StrictMode";case oc:return"Suspense";case ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vp:return(e.displayName||"Context")+".Consumer";case qp:return(e._context.displayName||"Context")+".Provider";case ku:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eu:return t=e.displayName||null,t!==null?t:ac(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return ac(e(t))}catch{}}return null}function ux(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=t.render,e=e.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 ac(t);case 8:return t===Su?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dx(e){var t=Kp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){s=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(a){s=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zo(e){e._valueTracker||(e._valueTracker=dx(e))}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Kp(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Dd(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=$n(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gp(e,t){t=t.checked,t!=null&&wu(e,"checked",t,!1)}function cc(e,t){Gp(e,t);var n=$n(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uc(e,t.type,n):t.hasOwnProperty("defaultValue")&&uc(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Md(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function uc(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Is=Array.isArray;function Yr(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&s&&(e[n].defaultSelected=!0)}else{for(n=""+$n(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function dc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ld(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(Is(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$n(n)}}function Qp(e,t){var n=$n(t.value),s=$n(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Bd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xp(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 fc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $o,Jp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($o=$o||document.createElement("div"),$o.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$o.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bs={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},fx=["Webkit","ms","Moz","O"];Object.keys(Bs).forEach(function(e){fx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bs[t]=Bs[e]})});function Zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bs.hasOwnProperty(e)&&Bs[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,o=Zp(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,o):e[n]=o}}var px=Se({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 pc(e,t){if(t){if(px[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function mc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 hc=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vc=null,Gr=null,Qr=null;function zd(e){if(e=Eo(e)){if(typeof vc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=ba(t),vc(e.stateNode,e.type,t))}}function tm(e){Gr?Qr?Qr.push(e):Qr=[e]:Gr=e}function nm(){if(Gr){var e=Gr,t=Qr;if(Qr=Gr=null,zd(e),t)for(e=0;e<t.length;e++)zd(t[e])}}function rm(e,t){return e(t)}function sm(){}var xl=!1;function om(e,t,n){if(xl)return e(t,n);xl=!0;try{return rm(e,t,n)}finally{xl=!1,(Gr!==null||Qr!==null)&&(sm(),nm())}}function eo(e,t){var n=e.stateNode;if(n===null)return null;var s=ba(n);if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var gc=!1;if(an)try{var Ss={};Object.defineProperty(Ss,"passive",{get:function(){gc=!0}}),window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{gc=!1}function mx(e,t,n,s,o,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var zs=!1,Ii=null,Fi=!1,xc=null,hx={onError:function(e){zs=!0,Ii=e}};function vx(e,t,n,s,o,i,a,l,u){zs=!1,Ii=null,mx.apply(hx,arguments)}function gx(e,t,n,s,o,i,a,l,u){if(vx.apply(this,arguments),zs){if(zs){var c=Ii;zs=!1,Ii=null}else throw Error(V(198));Fi||(Fi=!0,xc=c)}}function wr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function im(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function $d(e){if(wr(e)!==e)throw Error(V(188))}function xx(e){var t=e.alternate;if(!t){if(t=wr(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return $d(o),e;if(i===s)return $d(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==s.return)n=o,s=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,s=i;break}if(l===s){a=!0,s=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,s=o;break}if(l===s){a=!0,s=i,n=o;break}l=l.sibling}if(!a)throw Error(V(189))}}if(n.alternate!==s)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function am(e){return e=xx(e),e!==null?lm(e):null}function lm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lm(e);if(t!==null)return t;e=e.sibling}return null}var cm=mt.unstable_scheduleCallback,Wd=mt.unstable_cancelCallback,yx=mt.unstable_shouldYield,jx=mt.unstable_requestPaint,Pe=mt.unstable_now,Nx=mt.unstable_getCurrentPriorityLevel,_u=mt.unstable_ImmediatePriority,um=mt.unstable_UserBlockingPriority,Di=mt.unstable_NormalPriority,Cx=mt.unstable_LowPriority,dm=mt.unstable_IdlePriority,ya=null,Gt=null;function bx(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(ya,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:kx,wx=Math.log,Sx=Math.LN2;function kx(e){return e>>>=0,e===0?32:31-(wx(e)/Sx|0)|0}var Wo=64,Uo=4194304;function Fs(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?s=Fs(l):(i&=a,i!==0&&(s=Fs(i)))}else a=n&~o,a!==0?s=Fs(a):i!==0&&(s=Fs(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&o)&&(o=s&-s,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-It(t),o=1<<n,s|=e[n],t&=~o;return s}function Ex(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Px(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-It(i),l=1<<a,u=o[a];u===-1?(!(l&n)||l&s)&&(o[a]=Ex(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}function yc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fm(){var e=Wo;return Wo<<=1,!(Wo&4194240)&&(Wo=64),e}function yl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function So(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function _x(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 s=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-It(n),i=1<<o;t[o]=0,s[o]=-1,e[o]=-1,n&=~i}}function Ou(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-It(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}var he=0;function pm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mm,Tu,hm,vm,gm,jc=!1,qo=[],Rn=null,An=null,In=null,to=new Map,no=new Map,kn=[],Ox="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 Ud(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":to.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":no.delete(t.pointerId)}}function ks(e,t,n,s,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Eo(t),t!==null&&Tu(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Tx(e,t,n,s,o){switch(t){case"focusin":return Rn=ks(Rn,e,t,n,s,o),!0;case"dragenter":return An=ks(An,e,t,n,s,o),!0;case"mouseover":return In=ks(In,e,t,n,s,o),!0;case"pointerover":var i=o.pointerId;return to.set(i,ks(to.get(i)||null,e,t,n,s,o)),!0;case"gotpointercapture":return i=o.pointerId,no.set(i,ks(no.get(i)||null,e,t,n,s,o)),!0}return!1}function xm(e){var t=ir(e.target);if(t!==null){var n=wr(t);if(n!==null){if(t=n.tag,t===13){if(t=im(n),t!==null){e.blockedOn=t,gm(e.priority,function(){hm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);hc=s,n.target.dispatchEvent(s),hc=null}else return t=Eo(n),t!==null&&Tu(t),e.blockedOn=n,!1;t.shift()}return!0}function qd(e,t,n){ci(e)&&n.delete(t)}function Rx(){jc=!1,Rn!==null&&ci(Rn)&&(Rn=null),An!==null&&ci(An)&&(An=null),In!==null&&ci(In)&&(In=null),to.forEach(qd),no.forEach(qd)}function Es(e,t){e.blockedOn===t&&(e.blockedOn=null,jc||(jc=!0,mt.unstable_scheduleCallback(mt.unstable_NormalPriority,Rx)))}function ro(e){function t(o){return Es(o,e)}if(0<qo.length){Es(qo[0],e);for(var n=1;n<qo.length;n++){var s=qo[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Rn!==null&&Es(Rn,e),An!==null&&Es(An,e),In!==null&&Es(In,e),to.forEach(t),no.forEach(t),n=0;n<kn.length;n++)s=kn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)xm(n),n.blockedOn===null&&kn.shift()}var Xr=pn.ReactCurrentBatchConfig,Li=!0;function Ax(e,t,n,s){var o=he,i=Xr.transition;Xr.transition=null;try{he=1,Ru(e,t,n,s)}finally{he=o,Xr.transition=i}}function Ix(e,t,n,s){var o=he,i=Xr.transition;Xr.transition=null;try{he=4,Ru(e,t,n,s)}finally{he=o,Xr.transition=i}}function Ru(e,t,n,s){if(Li){var o=Nc(e,t,n,s);if(o===null)_l(e,t,s,Bi,n),Ud(e,s);else if(Tx(o,e,t,n,s))s.stopPropagation();else if(Ud(e,s),t&4&&-1<Ox.indexOf(e)){for(;o!==null;){var i=Eo(o);if(i!==null&&mm(i),i=Nc(e,t,n,s),i===null&&_l(e,t,s,Bi,n),i===o)break;o=i}o!==null&&s.stopPropagation()}else _l(e,t,s,null,n)}}var Bi=null;function Nc(e,t,n,s){if(Bi=null,e=Pu(s),e=ir(e),e!==null)if(t=wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=im(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bi=e,null}function ym(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(Nx()){case _u:return 1;case um:return 4;case Di:case Cx:return 16;case dm:return 536870912;default:return 16}default:return 16}}var Pn=null,Au=null,ui=null;function jm(){if(ui)return ui;var e,t=Au,n=t.length,s,o="value"in Pn?Pn.value:Pn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(s=1;s<=a&&t[n-s]===o[i-s];s++);return ui=o.slice(e,1<s?1-s:void 0)}function di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vo(){return!0}function Vd(){return!1}function xt(e){function t(n,s,o,i,a){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Vo:Vd,this.isPropagationStopped=Vd,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vo)},persist:function(){},isPersistent:Vo}),t}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Iu=xt(ds),ko=Se({},ds,{view:0,detail:0}),Fx=xt(ko),jl,Nl,Ps,ja=Se({},ko,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ps&&(Ps&&e.type==="mousemove"?(jl=e.screenX-Ps.screenX,Nl=e.screenY-Ps.screenY):Nl=jl=0,Ps=e),jl)},movementY:function(e){return"movementY"in e?e.movementY:Nl}}),Hd=xt(ja),Dx=Se({},ja,{dataTransfer:0}),Mx=xt(Dx),Lx=Se({},ko,{relatedTarget:0}),Cl=xt(Lx),Bx=Se({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),zx=xt(Bx),$x=Se({},ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wx=xt($x),Ux=Se({},ds,{data:0}),Kd=xt(Ux),qx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vx={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"},Hx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hx[e])?!!t[e]:!1}function Fu(){return Kx}var Yx=Se({},ko,{key:function(e){if(e.key){var t=qx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(e){return e.type==="keypress"?di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gx=xt(Yx),Qx=Se({},ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yd=xt(Qx),Xx=Se({},ko,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),Jx=xt(Xx),Zx=Se({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),ey=xt(Zx),ty=Se({},ja,{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}),ny=xt(ty),ry=[9,13,27,32],Du=an&&"CompositionEvent"in window,$s=null;an&&"documentMode"in document&&($s=document.documentMode);var sy=an&&"TextEvent"in window&&!$s,Nm=an&&(!Du||$s&&8<$s&&11>=$s),Gd=" ",Qd=!1;function Cm(e,t){switch(e){case"keyup":return ry.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function oy(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(Qd=!0,Gd);case"textInput":return e=t.data,e===Gd&&Qd?null:e;default:return null}}function iy(e,t){if(Rr)return e==="compositionend"||!Du&&Cm(e,t)?(e=jm(),ui=Au=Pn=null,Rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nm&&t.locale!=="ko"?null:t.data;default:return null}}var ay={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 Xd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ay[e.type]:t==="textarea"}function wm(e,t,n,s){tm(s),t=zi(t,"onChange"),0<t.length&&(n=new Iu("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Ws=null,so=null;function ly(e){Fm(e,0)}function Na(e){var t=Fr(e);if(Yp(t))return e}function cy(e,t){if(e==="change")return t}var Sm=!1;if(an){var bl;if(an){var wl="oninput"in document;if(!wl){var Jd=document.createElement("div");Jd.setAttribute("oninput","return;"),wl=typeof Jd.oninput=="function"}bl=wl}else bl=!1;Sm=bl&&(!document.documentMode||9<document.documentMode)}function Zd(){Ws&&(Ws.detachEvent("onpropertychange",km),so=Ws=null)}function km(e){if(e.propertyName==="value"&&Na(so)){var t=[];wm(t,so,e,Pu(e)),om(ly,t)}}function uy(e,t,n){e==="focusin"?(Zd(),Ws=t,so=n,Ws.attachEvent("onpropertychange",km)):e==="focusout"&&Zd()}function dy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Na(so)}function fy(e,t){if(e==="click")return Na(t)}function py(e,t){if(e==="input"||e==="change")return Na(t)}function my(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:my;function oo(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var o=n[s];if(!rc.call(t,o)||!Mt(e[o],t[o]))return!1}return!0}function ef(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tf(e,t){var n=ef(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ef(n)}}function Em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pm(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function Mu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hy(e){var t=Pm(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Em(n.ownerDocument.documentElement,n)){if(s!==null&&Mu(n)){if(t=s.start,e=s.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(s.start,o);s=s.end===void 0?i:Math.min(s.end,o),!e.extend&&i>s&&(o=s,s=i,i=o),o=tf(n,i);var a=tf(n,s);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vy=an&&"documentMode"in document&&11>=document.documentMode,Ar=null,Cc=null,Us=null,bc=!1;function nf(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bc||Ar==null||Ar!==Ai(s)||(s=Ar,"selectionStart"in s&&Mu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Us&&oo(Us,s)||(Us=s,s=zi(Cc,"onSelect"),0<s.length&&(t=new Iu("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ar)))}function Ho(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ir={animationend:Ho("Animation","AnimationEnd"),animationiteration:Ho("Animation","AnimationIteration"),animationstart:Ho("Animation","AnimationStart"),transitionend:Ho("Transition","TransitionEnd")},Sl={},_m={};an&&(_m=document.createElement("div").style,"AnimationEvent"in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),"TransitionEvent"in window||delete Ir.transitionend.transition);function Ca(e){if(Sl[e])return Sl[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _m)return Sl[e]=t[n];return e}var Om=Ca("animationend"),Tm=Ca("animationiteration"),Rm=Ca("animationstart"),Am=Ca("transitionend"),Im=new Map,rf="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 qn(e,t){Im.set(e,t),br(t,[e])}for(var kl=0;kl<rf.length;kl++){var El=rf[kl],gy=El.toLowerCase(),xy=El[0].toUpperCase()+El.slice(1);qn(gy,"on"+xy)}qn(Om,"onAnimationEnd");qn(Tm,"onAnimationIteration");qn(Rm,"onAnimationStart");qn("dblclick","onDoubleClick");qn("focusin","onFocus");qn("focusout","onBlur");qn(Am,"onTransitionEnd");ts("onMouseEnter",["mouseout","mouseover"]);ts("onMouseLeave",["mouseout","mouseover"]);ts("onPointerEnter",["pointerout","pointerover"]);ts("onPointerLeave",["pointerout","pointerover"]);br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));br("onBeforeInput",["compositionend","keypress","textInput","paste"]);br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ds));function sf(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,gx(s,t,void 0,e),e.currentTarget=null}function Fm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var a=s.length-1;0<=a;a--){var l=s[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;sf(o,l,c),i=u}else for(a=0;a<s.length;a++){if(l=s[a],u=l.instance,c=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;sf(o,l,c),i=u}}}if(Fi)throw e=xc,Fi=!1,xc=null,e}function je(e,t){var n=t[Pc];n===void 0&&(n=t[Pc]=new Set);var s=e+"__bubble";n.has(s)||(Dm(t,e,2,!1),n.add(s))}function Pl(e,t,n){var s=0;t&&(s|=4),Dm(n,e,s,t)}var Ko="_reactListening"+Math.random().toString(36).slice(2);function io(e){if(!e[Ko]){e[Ko]=!0,Up.forEach(function(n){n!=="selectionchange"&&(yy.has(n)||Pl(n,!1,e),Pl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ko]||(t[Ko]=!0,Pl("selectionchange",!1,t))}}function Dm(e,t,n,s){switch(ym(t)){case 1:var o=Ax;break;case 4:o=Ix;break;default:o=Ru}n=o.bind(null,t,n,e),o=void 0,!gc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function _l(e,t,n,s,o){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var a=s.tag;if(a===3||a===4){var l=s.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=s.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;a=a.return}for(;l!==null;){if(a=ir(l),a===null)return;if(u=a.tag,u===5||u===6){s=i=a;continue e}l=l.parentNode}}s=s.return}om(function(){var c=i,d=Pu(n),f=[];e:{var g=Im.get(e);if(g!==void 0){var b=Iu,x=e;switch(e){case"keypress":if(di(n)===0)break e;case"keydown":case"keyup":b=Gx;break;case"focusin":x="focus",b=Cl;break;case"focusout":x="blur",b=Cl;break;case"beforeblur":case"afterblur":b=Cl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":b=Hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=Mx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=Jx;break;case Om:case Tm:case Rm:b=zx;break;case Am:b=ey;break;case"scroll":b=Fx;break;case"wheel":b=ny;break;case"copy":case"cut":case"paste":b=Wx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=Yd}var N=(t&4)!==0,C=!N&&e==="scroll",m=N?g!==null?g+"Capture":null:g;N=[];for(var v=c,h;v!==null;){h=v;var y=h.stateNode;if(h.tag===5&&y!==null&&(h=y,m!==null&&(y=eo(v,m),y!=null&&N.push(ao(v,y,h)))),C)break;v=v.return}0<N.length&&(g=new b(g,x,null,n,d),f.push({event:g,listeners:N}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",g&&n!==hc&&(x=n.relatedTarget||n.fromElement)&&(ir(x)||x[ln]))break e;if((b||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,b?(x=n.relatedTarget||n.toElement,b=c,x=x?ir(x):null,x!==null&&(C=wr(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(b=null,x=c),b!==x)){if(N=Hd,y="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(N=Yd,y="onPointerLeave",m="onPointerEnter",v="pointer"),C=b==null?g:Fr(b),h=x==null?g:Fr(x),g=new N(y,v+"leave",b,n,d),g.target=C,g.relatedTarget=h,y=null,ir(d)===c&&(N=new N(m,v+"enter",x,n,d),N.target=h,N.relatedTarget=C,y=N),C=y,b&&x)t:{for(N=b,m=x,v=0,h=N;h;h=kr(h))v++;for(h=0,y=m;y;y=kr(y))h++;for(;0<v-h;)N=kr(N),v--;for(;0<h-v;)m=kr(m),h--;for(;v--;){if(N===m||m!==null&&N===m.alternate)break t;N=kr(N),m=kr(m)}N=null}else N=null;b!==null&&of(f,g,b,N,!1),x!==null&&C!==null&&of(f,C,x,N,!0)}}e:{if(g=c?Fr(c):window,b=g.nodeName&&g.nodeName.toLowerCase(),b==="select"||b==="input"&&g.type==="file")var k=cy;else if(Xd(g))if(Sm)k=py;else{k=dy;var O=uy}else(b=g.nodeName)&&b.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=fy);if(k&&(k=k(e,c))){wm(f,k,n,d);break e}O&&O(e,g,c),e==="focusout"&&(O=g._wrapperState)&&O.controlled&&g.type==="number"&&uc(g,"number",g.value)}switch(O=c?Fr(c):window,e){case"focusin":(Xd(O)||O.contentEditable==="true")&&(Ar=O,Cc=c,Us=null);break;case"focusout":Us=Cc=Ar=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,nf(f,n,d);break;case"selectionchange":if(vy)break;case"keydown":case"keyup":nf(f,n,d)}var T;if(Du)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Rr?Cm(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Nm&&n.locale!=="ko"&&(Rr||_!=="onCompositionStart"?_==="onCompositionEnd"&&Rr&&(T=jm()):(Pn=d,Au="value"in Pn?Pn.value:Pn.textContent,Rr=!0)),O=zi(c,_),0<O.length&&(_=new Kd(_,e,null,n,d),f.push({event:_,listeners:O}),T?_.data=T:(T=bm(n),T!==null&&(_.data=T)))),(T=sy?oy(e,n):iy(e,n))&&(c=zi(c,"onBeforeInput"),0<c.length&&(d=new Kd("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=T))}Fm(f,t)})}function ao(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zi(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=eo(e,n),i!=null&&s.unshift(ao(e,i,o)),i=eo(e,t),i!=null&&s.push(ao(e,i,o))),e=e.return}return s}function kr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function of(e,t,n,s,o){for(var i=t._reactName,a=[];n!==null&&n!==s;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===s)break;l.tag===5&&c!==null&&(l=c,o?(u=eo(n,i),u!=null&&a.unshift(ao(n,u,l))):o||(u=eo(n,i),u!=null&&a.push(ao(n,u,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var jy=/\r\n?/g,Ny=/\u0000|\uFFFD/g;function af(e){return(typeof e=="string"?e:""+e).replace(jy,`
`).replace(Ny,"")}function Yo(e,t,n){if(t=af(t),af(e)!==t&&n)throw Error(V(425))}function $i(){}var wc=null,Sc=null;function kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ec=typeof setTimeout=="function"?setTimeout:void 0,Cy=typeof clearTimeout=="function"?clearTimeout:void 0,lf=typeof Promise=="function"?Promise:void 0,by=typeof queueMicrotask=="function"?queueMicrotask:typeof lf<"u"?function(e){return lf.resolve(null).then(e).catch(wy)}:Ec;function wy(e){setTimeout(function(){throw e})}function Ol(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(s===0){e.removeChild(o),ro(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=o}while(n);ro(t)}function Fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function cf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fs=Math.random().toString(36).slice(2),Kt="__reactFiber$"+fs,lo="__reactProps$"+fs,ln="__reactContainer$"+fs,Pc="__reactEvents$"+fs,Sy="__reactListeners$"+fs,ky="__reactHandles$"+fs;function ir(e){var t=e[Kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ln]||n[Kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cf(e);e!==null;){if(n=e[Kt])return n;e=cf(e)}return t}e=n,n=e.parentNode}return null}function Eo(e){return e=e[Kt]||e[ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function ba(e){return e[lo]||null}var _c=[],Dr=-1;function Vn(e){return{current:e}}function Ne(e){0>Dr||(e.current=_c[Dr],_c[Dr]=null,Dr--)}function xe(e,t){Dr++,_c[Dr]=e.current,e.current=t}var Wn={},He=Vn(Wn),rt=Vn(!1),hr=Wn;function ns(e,t){var n=e.type.contextTypes;if(!n)return Wn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function st(e){return e=e.childContextTypes,e!=null}function Wi(){Ne(rt),Ne(He)}function uf(e,t,n){if(He.current!==Wn)throw Error(V(168));xe(He,t),xe(rt,n)}function Mm(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var o in s)if(!(o in t))throw Error(V(108,ux(e)||"Unknown",o));return Se({},n,s)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,hr=He.current,xe(He,e),xe(rt,rt.current),!0}function df(e,t,n){var s=e.stateNode;if(!s)throw Error(V(169));n?(e=Mm(e,t,hr),s.__reactInternalMemoizedMergedChildContext=e,Ne(rt),Ne(He),xe(He,e)):Ne(rt),xe(rt,n)}var nn=null,wa=!1,Tl=!1;function Lm(e){nn===null?nn=[e]:nn.push(e)}function Ey(e){wa=!0,Lm(e)}function Hn(){if(!Tl&&nn!==null){Tl=!0;var e=0,t=he;try{var n=nn;for(he=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}nn=null,wa=!1}catch(o){throw nn!==null&&(nn=nn.slice(e+1)),cm(_u,Hn),o}finally{he=t,Tl=!1}}return null}var Mr=[],Lr=0,qi=null,Vi=0,Ct=[],bt=0,vr=null,rn=1,sn="";function er(e,t){Mr[Lr++]=Vi,Mr[Lr++]=qi,qi=e,Vi=t}function Bm(e,t,n){Ct[bt++]=rn,Ct[bt++]=sn,Ct[bt++]=vr,vr=e;var s=rn;e=sn;var o=32-It(s)-1;s&=~(1<<o),n+=1;var i=32-It(t)+o;if(30<i){var a=o-o%5;i=(s&(1<<a)-1).toString(32),s>>=a,o-=a,rn=1<<32-It(t)+o|n<<o|s,sn=i+e}else rn=1<<i|n<<o|s,sn=e}function Lu(e){e.return!==null&&(er(e,1),Bm(e,1,0))}function Bu(e){for(;e===qi;)qi=Mr[--Lr],Mr[Lr]=null,Vi=Mr[--Lr],Mr[Lr]=null;for(;e===vr;)vr=Ct[--bt],Ct[bt]=null,sn=Ct[--bt],Ct[bt]=null,rn=Ct[--bt],Ct[bt]=null}var ft=null,ct=null,Ce=!1,Rt=null;function zm(e,t){var n=wt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ff(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ft=e,ct=Fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ft=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=vr!==null?{id:rn,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=wt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ft=e,ct=null,!0):!1;default:return!1}}function Oc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tc(e){if(Ce){var t=ct;if(t){var n=t;if(!ff(e,t)){if(Oc(e))throw Error(V(418));t=Fn(n.nextSibling);var s=ft;t&&ff(e,t)?zm(s,n):(e.flags=e.flags&-4097|2,Ce=!1,ft=e)}}else{if(Oc(e))throw Error(V(418));e.flags=e.flags&-4097|2,Ce=!1,ft=e}}}function pf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ft=e}function Go(e){if(e!==ft)return!1;if(!Ce)return pf(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kc(e.type,e.memoizedProps)),t&&(t=ct)){if(Oc(e))throw $m(),Error(V(418));for(;t;)zm(e,t),t=Fn(t.nextSibling)}if(pf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ct=Fn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=ft?Fn(e.stateNode.nextSibling):null;return!0}function $m(){for(var e=ct;e;)e=Fn(e.nextSibling)}function rs(){ct=ft=null,Ce=!1}function zu(e){Rt===null?Rt=[e]:Rt.push(e)}var Py=pn.ReactCurrentBatchConfig;function _s(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var s=n.stateNode}if(!s)throw Error(V(147,e));var o=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function Qo(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mf(e){var t=e._init;return t(e._payload)}function Wm(e){function t(m,v){if(e){var h=m.deletions;h===null?(m.deletions=[v],m.flags|=16):h.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function s(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function o(m,v){return m=Bn(m,v),m.index=0,m.sibling=null,m}function i(m,v,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<v?(m.flags|=2,v):h):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,v,h,y){return v===null||v.tag!==6?(v=Ll(h,m.mode,y),v.return=m,v):(v=o(v,h),v.return=m,v)}function u(m,v,h,y){var k=h.type;return k===Tr?d(m,v,h.props.children,y,h.key):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===jn&&mf(k)===v.type)?(y=o(v,h.props),y.ref=_s(m,v,h),y.return=m,y):(y=xi(h.type,h.key,h.props,null,m.mode,y),y.ref=_s(m,v,h),y.return=m,y)}function c(m,v,h,y){return v===null||v.tag!==4||v.stateNode.containerInfo!==h.containerInfo||v.stateNode.implementation!==h.implementation?(v=Bl(h,m.mode,y),v.return=m,v):(v=o(v,h.children||[]),v.return=m,v)}function d(m,v,h,y,k){return v===null||v.tag!==7?(v=dr(h,m.mode,y,k),v.return=m,v):(v=o(v,h),v.return=m,v)}function f(m,v,h){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ll(""+v,m.mode,h),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bo:return h=xi(v.type,v.key,v.props,null,m.mode,h),h.ref=_s(m,null,v),h.return=m,h;case Or:return v=Bl(v,m.mode,h),v.return=m,v;case jn:var y=v._init;return f(m,y(v._payload),h)}if(Is(v)||ws(v))return v=dr(v,m.mode,h,null),v.return=m,v;Qo(m,v)}return null}function g(m,v,h,y){var k=v!==null?v.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return k!==null?null:l(m,v,""+h,y);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Bo:return h.key===k?u(m,v,h,y):null;case Or:return h.key===k?c(m,v,h,y):null;case jn:return k=h._init,g(m,v,k(h._payload),y)}if(Is(h)||ws(h))return k!==null?null:d(m,v,h,y,null);Qo(m,h)}return null}function b(m,v,h,y,k){if(typeof y=="string"&&y!==""||typeof y=="number")return m=m.get(h)||null,l(v,m,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Bo:return m=m.get(y.key===null?h:y.key)||null,u(v,m,y,k);case Or:return m=m.get(y.key===null?h:y.key)||null,c(v,m,y,k);case jn:var O=y._init;return b(m,v,h,O(y._payload),k)}if(Is(y)||ws(y))return m=m.get(h)||null,d(v,m,y,k,null);Qo(v,y)}return null}function x(m,v,h,y){for(var k=null,O=null,T=v,_=v=0,D=null;T!==null&&_<h.length;_++){T.index>_?(D=T,T=null):D=T.sibling;var z=g(m,T,h[_],y);if(z===null){T===null&&(T=D);break}e&&T&&z.alternate===null&&t(m,T),v=i(z,v,_),O===null?k=z:O.sibling=z,O=z,T=D}if(_===h.length)return n(m,T),Ce&&er(m,_),k;if(T===null){for(;_<h.length;_++)T=f(m,h[_],y),T!==null&&(v=i(T,v,_),O===null?k=T:O.sibling=T,O=T);return Ce&&er(m,_),k}for(T=s(m,T);_<h.length;_++)D=b(T,m,_,h[_],y),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?_:D.key),v=i(D,v,_),O===null?k=D:O.sibling=D,O=D);return e&&T.forEach(function(H){return t(m,H)}),Ce&&er(m,_),k}function N(m,v,h,y){var k=ws(h);if(typeof k!="function")throw Error(V(150));if(h=k.call(h),h==null)throw Error(V(151));for(var O=k=null,T=v,_=v=0,D=null,z=h.next();T!==null&&!z.done;_++,z=h.next()){T.index>_?(D=T,T=null):D=T.sibling;var H=g(m,T,z.value,y);if(H===null){T===null&&(T=D);break}e&&T&&H.alternate===null&&t(m,T),v=i(H,v,_),O===null?k=H:O.sibling=H,O=H,T=D}if(z.done)return n(m,T),Ce&&er(m,_),k;if(T===null){for(;!z.done;_++,z=h.next())z=f(m,z.value,y),z!==null&&(v=i(z,v,_),O===null?k=z:O.sibling=z,O=z);return Ce&&er(m,_),k}for(T=s(m,T);!z.done;_++,z=h.next())z=b(T,m,_,z.value,y),z!==null&&(e&&z.alternate!==null&&T.delete(z.key===null?_:z.key),v=i(z,v,_),O===null?k=z:O.sibling=z,O=z);return e&&T.forEach(function(te){return t(m,te)}),Ce&&er(m,_),k}function C(m,v,h,y){if(typeof h=="object"&&h!==null&&h.type===Tr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Bo:e:{for(var k=h.key,O=v;O!==null;){if(O.key===k){if(k=h.type,k===Tr){if(O.tag===7){n(m,O.sibling),v=o(O,h.props.children),v.return=m,m=v;break e}}else if(O.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===jn&&mf(k)===O.type){n(m,O.sibling),v=o(O,h.props),v.ref=_s(m,O,h),v.return=m,m=v;break e}n(m,O);break}else t(m,O);O=O.sibling}h.type===Tr?(v=dr(h.props.children,m.mode,y,h.key),v.return=m,m=v):(y=xi(h.type,h.key,h.props,null,m.mode,y),y.ref=_s(m,v,h),y.return=m,m=y)}return a(m);case Or:e:{for(O=h.key;v!==null;){if(v.key===O)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=o(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Bl(h,m.mode,y),v.return=m,m=v}return a(m);case jn:return O=h._init,C(m,v,O(h._payload),y)}if(Is(h))return x(m,v,h,y);if(ws(h))return N(m,v,h,y);Qo(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,h),v.return=m,m=v):(n(m,v),v=Ll(h,m.mode,y),v.return=m,m=v),a(m)):n(m,v)}return C}var ss=Wm(!0),Um=Wm(!1),Hi=Vn(null),Ki=null,Br=null,$u=null;function Wu(){$u=Br=Ki=null}function Uu(e){var t=Hi.current;Ne(Hi),e._currentValue=t}function Rc(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Jr(e,t){Ki=e,$u=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if($u!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Ki===null)throw Error(V(308));Br=e,Ki.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var ar=null;function qu(e){ar===null?ar=[e]:ar.push(e)}function qm(e,t,n,s){var o=t.interleaved;return o===null?(n.next=n,qu(t)):(n.next=o.next,o.next=n),t.interleaved=n,cn(e,s)}function cn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nn=!1;function Vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vm(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,fe&2){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,cn(e,n)}return o=s.interleaved,o===null?(t.next=t,qu(s)):(t.next=o.next,o.next=t),s.interleaved=t,cn(e,n)}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ou(e,n)}}function hf(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yi(e,t,n,s){var o=e.updateQueue;Nn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var f=o.baseState;a=0,d=c=u=null,l=i;do{var g=l.lane,b=l.eventTime;if((s&g)===g){d!==null&&(d=d.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,N=l;switch(g=t,b=n,N.tag){case 1:if(x=N.payload,typeof x=="function"){f=x.call(b,f,g);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=N.payload,g=typeof x=="function"?x.call(b,f,g):x,g==null)break e;f=Se({},f,g);break e;case 2:Nn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else b={eventTime:b,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=b,u=f):d=d.next=b,a|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);xr|=a,e.lanes=a,e.memoizedState=f}}function vf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],o=s.callback;if(o!==null){if(s.callback=null,s=n,typeof o!="function")throw Error(V(191,o));o.call(s)}}}var Po={},Qt=Vn(Po),co=Vn(Po),uo=Vn(Po);function lr(e){if(e===Po)throw Error(V(174));return e}function Hu(e,t){switch(xe(uo,t),xe(co,e),xe(Qt,Po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fc(t,e)}Ne(Qt),xe(Qt,t)}function os(){Ne(Qt),Ne(co),Ne(uo)}function Hm(e){lr(uo.current);var t=lr(Qt.current),n=fc(t,e.type);t!==n&&(xe(co,e),xe(Qt,n))}function Ku(e){co.current===e&&(Ne(Qt),Ne(co))}var be=Vn(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rl=[];function Yu(){for(var e=0;e<Rl.length;e++)Rl[e]._workInProgressVersionPrimary=null;Rl.length=0}var pi=pn.ReactCurrentDispatcher,Al=pn.ReactCurrentBatchConfig,gr=0,we=null,Oe=null,Fe=null,Qi=!1,qs=!1,fo=0,_y=0;function Ue(){throw Error(V(321))}function Gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function Qu(e,t,n,s,o,i){if(gr=i,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=e===null||e.memoizedState===null?Ay:Iy,e=n(s,o),qs){i=0;do{if(qs=!1,fo=0,25<=i)throw Error(V(301));i+=1,Fe=Oe=null,t.updateQueue=null,pi.current=Fy,e=n(s,o)}while(qs)}if(pi.current=Xi,t=Oe!==null&&Oe.next!==null,gr=0,Fe=Oe=we=null,Qi=!1,t)throw Error(V(300));return e}function Xu(){var e=fo!==0;return fo=0,e}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Pt(){if(Oe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Fe===null?we.memoizedState:Fe.next;if(t!==null)Fe=t,Oe=e;else{if(e===null)throw Error(V(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Fe===null?we.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function po(e,t){return typeof t=="function"?t(e):t}function Il(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var s=Oe,o=s.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}s.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,s=s.baseState;var l=a=null,u=null,c=i;do{var d=c.lane;if((gr&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),s=c.hasEagerState?c.eagerState:e(s,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=f,a=s):u=u.next=f,we.lanes|=d,xr|=d}c=c.next}while(c!==null&&c!==i);u===null?a=s:u.next=l,Mt(s,t.memoizedState)||(nt=!0),t.memoizedState=s,t.baseState=a,t.baseQueue=u,n.lastRenderedState=s}if(e=n.interleaved,e!==null){o=e;do i=o.lane,we.lanes|=i,xr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fl(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Mt(i,t.memoizedState)||(nt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function Km(){}function Ym(e,t){var n=we,s=Pt(),o=t(),i=!Mt(s.memoizedState,o);if(i&&(s.memoizedState=o,nt=!0),s=s.queue,Ju(Xm.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,mo(9,Qm.bind(null,n,s,o,t),void 0,null),De===null)throw Error(V(349));gr&30||Gm(n,t,o)}return o}function Gm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qm(e,t,n,s){t.value=n,t.getSnapshot=s,Jm(t)&&Zm(e)}function Xm(e,t,n){return n(function(){Jm(t)&&Zm(e)})}function Jm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function Zm(e){var t=cn(e,1);t!==null&&Ft(t,e,1,-1)}function gf(e){var t=Vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:e},t.queue=e,e=e.dispatch=Ry.bind(null,we,e),[t.memoizedState,e]}function mo(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function eh(){return Pt().memoizedState}function mi(e,t,n,s){var o=Vt();we.flags|=e,o.memoizedState=mo(1|t,n,void 0,s===void 0?null:s)}function Sa(e,t,n,s){var o=Pt();s=s===void 0?null:s;var i=void 0;if(Oe!==null){var a=Oe.memoizedState;if(i=a.destroy,s!==null&&Gu(s,a.deps)){o.memoizedState=mo(t,n,i,s);return}}we.flags|=e,o.memoizedState=mo(1|t,n,i,s)}function xf(e,t){return mi(8390656,8,e,t)}function Ju(e,t){return Sa(2048,8,e,t)}function th(e,t){return Sa(4,2,e,t)}function nh(e,t){return Sa(4,4,e,t)}function rh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sh(e,t,n){return n=n!=null?n.concat([e]):null,Sa(4,4,rh.bind(null,t,e),n)}function Zu(){}function oh(e,t){var n=Pt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Gu(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function ih(e,t){var n=Pt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Gu(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function ah(e,t,n){return gr&21?(Mt(n,t)||(n=fm(),we.lanes|=n,xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,nt=!0),e.memoizedState=n)}function Oy(e,t){var n=he;he=n!==0&&4>n?n:4,e(!0);var s=Al.transition;Al.transition={};try{e(!1),t()}finally{he=n,Al.transition=s}}function lh(){return Pt().memoizedState}function Ty(e,t,n){var s=Ln(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},ch(e))uh(t,n);else if(n=qm(e,t,n,s),n!==null){var o=Qe();Ft(n,e,s,o),dh(n,t,s)}}function Ry(e,t,n){var s=Ln(e),o={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(ch(e))uh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Mt(l,a)){var u=t.interleaved;u===null?(o.next=o,qu(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=qm(e,t,o,s),n!==null&&(o=Qe(),Ft(n,e,s,o),dh(n,t,s))}}function ch(e){var t=e.alternate;return e===we||t!==null&&t===we}function uh(e,t){qs=Qi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dh(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Ou(e,n)}}var Xi={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Ay={readContext:Et,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:xf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mi(4194308,4,rh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return mi(4,2,e,t)},useMemo:function(e,t){var n=Vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Vt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Ty.bind(null,we,e),[s.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:gf,useDebugValue:Zu,useDeferredValue:function(e){return Vt().memoizedState=e},useTransition:function(){var e=gf(!1),t=e[0];return e=Oy.bind(null,e[1]),Vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=we,o=Vt();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));gr&30||Gm(s,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,xf(Xm.bind(null,s,i,e),[e]),s.flags|=2048,mo(9,Qm.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Vt(),t=De.identifierPrefix;if(Ce){var n=sn,s=rn;n=(s&~(1<<32-It(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=fo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=_y++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Iy={readContext:Et,useCallback:oh,useContext:Et,useEffect:Ju,useImperativeHandle:sh,useInsertionEffect:th,useLayoutEffect:nh,useMemo:ih,useReducer:Il,useRef:eh,useState:function(){return Il(po)},useDebugValue:Zu,useDeferredValue:function(e){var t=Pt();return ah(t,Oe.memoizedState,e)},useTransition:function(){var e=Il(po)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:Km,useSyncExternalStore:Ym,useId:lh,unstable_isNewReconciler:!1},Fy={readContext:Et,useCallback:oh,useContext:Et,useEffect:Ju,useImperativeHandle:sh,useInsertionEffect:th,useLayoutEffect:nh,useMemo:ih,useReducer:Fl,useRef:eh,useState:function(){return Fl(po)},useDebugValue:Zu,useDeferredValue:function(e){var t=Pt();return Oe===null?t.memoizedState=e:ah(t,Oe.memoizedState,e)},useTransition:function(){var e=Fl(po)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:Km,useSyncExternalStore:Ym,useId:lh,unstable_isNewReconciler:!1};function Ot(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ac(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ka={isMounted:function(e){return(e=e._reactInternals)?wr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Qe(),o=Ln(e),i=on(s,o);i.payload=t,n!=null&&(i.callback=n),t=Dn(e,i,o),t!==null&&(Ft(t,e,o,s),fi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Qe(),o=Ln(e),i=on(s,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Dn(e,i,o),t!==null&&(Ft(t,e,o,s),fi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qe(),s=Ln(e),o=on(n,s);o.tag=2,t!=null&&(o.callback=t),t=Dn(e,o,s),t!==null&&(Ft(t,e,s,n),fi(t,e,s))}};function yf(e,t,n,s,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,a):t.prototype&&t.prototype.isPureReactComponent?!oo(n,s)||!oo(o,i):!0}function fh(e,t,n){var s=!1,o=Wn,i=t.contextType;return typeof i=="object"&&i!==null?i=Et(i):(o=st(t)?hr:He.current,s=t.contextTypes,i=(s=s!=null)?ns(e,o):Wn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ka,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function jf(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&ka.enqueueReplaceState(t,t.state,null)}function Ic(e,t,n,s){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Vu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Et(i):(i=st(t)?hr:He.current,o.context=ns(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ac(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ka.enqueueReplaceState(o,o.state,null),Yi(e,n,o,s),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function is(e,t){try{var n="",s=t;do n+=cx(s),s=s.return;while(s);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Dl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Dy=typeof WeakMap=="function"?WeakMap:Map;function ph(e,t,n){n=on(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Zi||(Zi=!0,Vc=s),Fc(e,t)},n}function mh(e,t,n){n=on(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var o=t.value;n.payload=function(){return s(o)},n.callback=function(){Fc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Fc(e,t),typeof s!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Nf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Dy;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(o.add(n),e=Qy.bind(null,e,t,n),t.then(e,e))}function Cf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function bf(e,t,n,s,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=on(-1,1),t.tag=2,Dn(n,t,1))),n.lanes|=1),e)}var My=pn.ReactCurrentOwner,nt=!1;function Ye(e,t,n,s){t.child=e===null?Um(t,null,n,s):ss(t,e.child,n,s)}function wf(e,t,n,s,o){n=n.render;var i=t.ref;return Jr(t,o),s=Qu(e,t,n,s,i,o),n=Xu(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(Ce&&n&&Lu(t),t.flags|=1,Ye(e,t,s,o),t.child)}function Sf(e,t,n,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!ad(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,hh(e,t,i,s,o)):(e=xi(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:oo,n(a,s)&&e.ref===t.ref)return un(e,t,o)}return t.flags|=1,e=Bn(i,s),e.ref=t.ref,e.return=t,t.child=e}function hh(e,t,n,s,o){if(e!==null){var i=e.memoizedProps;if(oo(i,s)&&e.ref===t.ref)if(nt=!1,t.pendingProps=s=i,(e.lanes&o)!==0)e.flags&131072&&(nt=!0);else return t.lanes=e.lanes,un(e,t,o)}return Dc(e,t,n,s,o)}function vh(e,t,n){var s=t.pendingProps,o=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xe($r,lt),lt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xe($r,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,xe($r,lt),lt|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,xe($r,lt),lt|=s;return Ye(e,t,o,n),t.child}function gh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dc(e,t,n,s,o){var i=st(n)?hr:He.current;return i=ns(t,i),Jr(t,o),n=Qu(e,t,n,s,i,o),s=Xu(),e!==null&&!nt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(Ce&&s&&Lu(t),t.flags|=1,Ye(e,t,n,o),t.child)}function kf(e,t,n,s,o){if(st(n)){var i=!0;Ui(t)}else i=!1;if(Jr(t,o),t.stateNode===null)hi(e,t),fh(t,n,s),Ic(t,n,s,o),s=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Et(c):(c=st(n)?hr:He.current,c=ns(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==s||u!==c)&&jf(t,a,s,c),Nn=!1;var g=t.memoizedState;a.state=g,Yi(t,s,a,o),u=t.memoizedState,l!==s||g!==u||rt.current||Nn?(typeof d=="function"&&(Ac(t,n,d,s),u=t.memoizedState),(l=Nn||yf(t,n,l,s,g,u,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=u),a.props=s,a.state=u,a.context=c,s=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{a=t.stateNode,Vm(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ot(t.type,l),a.props=c,f=t.pendingProps,g=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=Et(u):(u=st(n)?hr:He.current,u=ns(t,u));var b=n.getDerivedStateFromProps;(d=typeof b=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||g!==u)&&jf(t,a,s,u),Nn=!1,g=t.memoizedState,a.state=g,Yi(t,s,a,o);var x=t.memoizedState;l!==f||g!==x||rt.current||Nn?(typeof b=="function"&&(Ac(t,n,b,s),x=t.memoizedState),(c=Nn||yf(t,n,c,s,g,x,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(s,x,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(s,x,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=x),a.props=s,a.state=x,a.context=u,s=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),s=!1)}return Mc(e,t,n,s,i,o)}function Mc(e,t,n,s,o,i){gh(e,t);var a=(t.flags&128)!==0;if(!s&&!a)return o&&df(t,n,!1),un(e,t,i);s=t.stateNode,My.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&a?(t.child=ss(t,e.child,null,i),t.child=ss(t,null,l,i)):Ye(e,t,l,i),t.memoizedState=s.state,o&&df(t,n,!0),t.child}function xh(e){var t=e.stateNode;t.pendingContext?uf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uf(e,t.context,!1),Hu(e,t.containerInfo)}function Ef(e,t,n,s,o){return rs(),zu(o),t.flags|=256,Ye(e,t,n,s),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0};function Bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function yh(e,t,n){var s=t.pendingProps,o=be.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xe(be,o&1),e===null)return Tc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=s.children,e=s.fallback,i?(s=t.mode,i=t.child,a={mode:"hidden",children:a},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=_a(a,s,0,null),e=dr(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Bc(n),t.memoizedState=Lc,e):ed(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ly(e,t,a,s,l,o,n);if(i){i=s.fallback,a=t.mode,o=e.child,l=o.sibling;var u={mode:"hidden",children:s.children};return!(a&1)&&t.child!==o?(s=t.child,s.childLanes=0,s.pendingProps=u,t.deletions=null):(s=Bn(o,u),s.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Bn(l,i):(i=dr(i,a,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,a=e.child.memoizedState,a=a===null?Bc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Lc,s}return i=e.child,e=i.sibling,s=Bn(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function ed(e,t){return t=_a({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xo(e,t,n,s){return s!==null&&zu(s),ss(t,e.child,null,n),e=ed(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ly(e,t,n,s,o,i,a){if(n)return t.flags&256?(t.flags&=-257,s=Dl(Error(V(422))),Xo(e,t,a,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,o=t.mode,s=_a({mode:"visible",children:s.children},o,0,null),i=dr(i,o,a,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&ss(t,e.child,null,a),t.child.memoizedState=Bc(a),t.memoizedState=Lc,i);if(!(t.mode&1))return Xo(e,t,a,null);if(o.data==="$!"){if(s=o.nextSibling&&o.nextSibling.dataset,s)var l=s.dgst;return s=l,i=Error(V(419)),s=Dl(i,s,void 0),Xo(e,t,a,s)}if(l=(a&e.childLanes)!==0,nt||l){if(s=De,s!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(s.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,cn(e,o),Ft(s,e,o,-1))}return id(),s=Dl(Error(V(421))),Xo(e,t,a,s)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Xy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ct=Fn(o.nextSibling),ft=t,Ce=!0,Rt=null,e!==null&&(Ct[bt++]=rn,Ct[bt++]=sn,Ct[bt++]=vr,rn=e.id,sn=e.overflow,vr=t),t=ed(t,s.children),t.flags|=4096,t)}function Pf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Rc(e.return,t,n)}function Ml(e,t,n,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=o)}function jh(e,t,n){var s=t.pendingProps,o=s.revealOrder,i=s.tail;if(Ye(e,t,s.children,n),s=be.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pf(e,n,t);else if(e.tag===19)Pf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(xe(be,s),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Gi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ml(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Gi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ml(t,!0,n,null,i);break;case"together":Ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function By(e,t,n){switch(t.tag){case 3:xh(t),rs();break;case 5:Hm(t);break;case 1:st(t.type)&&Ui(t);break;case 4:Hu(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,o=t.memoizedProps.value;xe(Hi,s._currentValue),s._currentValue=o;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(xe(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?yh(e,t,n):(xe(be,be.current&1),e=un(e,t,n),e!==null?e.sibling:null);xe(be,be.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return jh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(be,be.current),s)break;return null;case 22:case 23:return t.lanes=0,vh(e,t,n)}return un(e,t,n)}var Nh,zc,Ch,bh;Nh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};zc=function(){};Ch=function(e,t,n,s){var o=e.memoizedProps;if(o!==s){e=t.stateNode,lr(Qt.current);var i=null;switch(n){case"input":o=lc(e,o),s=lc(e,s),i=[];break;case"select":o=Se({},o,{value:void 0}),s=Se({},s,{value:void 0}),i=[];break;case"textarea":o=dc(e,o),s=dc(e,s),i=[];break;default:typeof o.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=$i)}pc(n,s);var a;n=null;for(c in o)if(!s.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Js.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in s){var u=s[c];if(l=o!=null?o[c]:void 0,s.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Js.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&je("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};bh=function(e,t,n,s){n!==s&&(t.flags|=4)};function Os(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&14680064,s|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function zy(e,t,n){var s=t.pendingProps;switch(Bu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return st(t.type)&&Wi(),qe(t),null;case 3:return s=t.stateNode,os(),Ne(rt),Ne(He),Yu(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Go(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(Yc(Rt),Rt=null))),zc(e,t),qe(t),null;case 5:Ku(t);var o=lr(uo.current);if(n=t.type,e!==null&&t.stateNode!=null)Ch(e,t,n,s,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(V(166));return qe(t),null}if(e=lr(Qt.current),Go(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[Kt]=t,s[lo]=i,e=(t.mode&1)!==0,n){case"dialog":je("cancel",s),je("close",s);break;case"iframe":case"object":case"embed":je("load",s);break;case"video":case"audio":for(o=0;o<Ds.length;o++)je(Ds[o],s);break;case"source":je("error",s);break;case"img":case"image":case"link":je("error",s),je("load",s);break;case"details":je("toggle",s);break;case"input":Dd(s,i),je("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},je("invalid",s);break;case"textarea":Ld(s,i),je("invalid",s)}pc(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?s.textContent!==l&&(i.suppressHydrationWarning!==!0&&Yo(s.textContent,l,e),o=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Yo(s.textContent,l,e),o=["children",""+l]):Js.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&je("scroll",s)}switch(n){case"input":zo(s),Md(s,i,!0);break;case"textarea":zo(s),Bd(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=$i)}s=o,t.updateQueue=s,s!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=a.createElement(n,{is:s.is}):(e=a.createElement(n),n==="select"&&(a=e,s.multiple?a.multiple=!0:s.size&&(a.size=s.size))):e=a.createElementNS(e,n),e[Kt]=t,e[lo]=s,Nh(e,t,!1,!1),t.stateNode=e;e:{switch(a=mc(n,s),n){case"dialog":je("cancel",e),je("close",e),o=s;break;case"iframe":case"object":case"embed":je("load",e),o=s;break;case"video":case"audio":for(o=0;o<Ds.length;o++)je(Ds[o],e);o=s;break;case"source":je("error",e),o=s;break;case"img":case"image":case"link":je("error",e),je("load",e),o=s;break;case"details":je("toggle",e),o=s;break;case"input":Dd(e,s),o=lc(e,s),je("invalid",e);break;case"option":o=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},o=Se({},s,{value:void 0}),je("invalid",e);break;case"textarea":Ld(e,s),o=dc(e,s),je("invalid",e);break;default:o=s}pc(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="style"?em(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Jp(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Zs(e,u):typeof u=="number"&&Zs(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Js.hasOwnProperty(i)?u!=null&&i==="onScroll"&&je("scroll",e):u!=null&&wu(e,i,u,a))}switch(n){case"input":zo(e),Md(e,s,!1);break;case"textarea":zo(e),Bd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+$n(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Yr(e,!!s.multiple,i,!1):s.defaultValue!=null&&Yr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=$i)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)bh(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(V(166));if(n=lr(uo.current),lr(Qt.current),Go(t)){if(s=t.stateNode,n=t.memoizedProps,s[Kt]=t,(i=s.nodeValue!==n)&&(e=ft,e!==null))switch(e.tag){case 3:Yo(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yo(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Kt]=t,t.stateNode=s}return qe(t),null;case 13:if(Ne(be),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&ct!==null&&t.mode&1&&!(t.flags&128))$m(),rs(),t.flags|=98560,i=!1;else if(i=Go(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[Kt]=t}else rs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else Rt!==null&&(Yc(Rt),Rt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||be.current&1?Te===0&&(Te=3):id())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return os(),zc(e,t),e===null&&io(t.stateNode.containerInfo),qe(t),null;case 10:return Uu(t.type._context),qe(t),null;case 17:return st(t.type)&&Wi(),qe(t),null;case 19:if(Ne(be),i=t.memoizedState,i===null)return qe(t),null;if(s=(t.flags&128)!==0,a=i.rendering,a===null)if(s)Os(i,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Gi(e),a!==null){for(t.flags|=128,Os(i,!1),s=a.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xe(be,be.current&1|2),t.child}e=e.sibling}i.tail!==null&&Pe()>as&&(t.flags|=128,s=!0,Os(i,!1),t.lanes=4194304)}else{if(!s)if(e=Gi(a),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Os(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return qe(t),null}else 2*Pe()-i.renderingStartTime>as&&n!==1073741824&&(t.flags|=128,s=!0,Os(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Pe(),t.sibling=null,n=be.current,xe(be,s?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return od(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?lt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function $y(e,t){switch(Bu(t),t.tag){case 1:return st(t.type)&&Wi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),Ne(rt),Ne(He),Yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ku(t),null;case 13:if(Ne(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));rs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(be),null;case 4:return os(),null;case 10:return Uu(t.type._context),null;case 22:case 23:return od(),null;case 24:return null;default:return null}}var Jo=!1,Ve=!1,Wy=typeof WeakSet=="function"?WeakSet:Set,J=null;function zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){ke(e,t,s)}else n.current=null}function $c(e,t,n){try{n()}catch(s){ke(e,t,s)}}var _f=!1;function Uy(e,t){if(wc=Li,e=Pm(),Mu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,f=e,g=null;t:for(;;){for(var b;f!==n||o!==0&&f.nodeType!==3||(l=a+o),f!==i||s!==0&&f.nodeType!==3||(u=a+s),f.nodeType===3&&(a+=f.nodeValue.length),(b=f.firstChild)!==null;)g=f,f=b;for(;;){if(f===e)break t;if(g===n&&++c===o&&(l=a),g===i&&++d===s&&(u=a),(b=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=b}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sc={focusedElem:e,selectionRange:n},Li=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var N=x.memoizedProps,C=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?N:Ot(t.type,N),C);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){ke(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=_f,_f=!1,x}function Vs(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$c(t,n,i)}o=o.next}while(o!==s)}}function Ea(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Wc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wh(e){var t=e.alternate;t!==null&&(e.alternate=null,wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kt],delete t[lo],delete t[Pc],delete t[Sy],delete t[ky])),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 Sh(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$i));else if(s!==4&&(e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function qc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}var ze=null,Tt=!1;function xn(e,t,n){for(n=n.child;n!==null;)kh(e,t,n),n=n.sibling}function kh(e,t,n){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(ya,n)}catch{}switch(n.tag){case 5:Ve||zr(n,t);case 6:var s=ze,o=Tt;ze=null,xn(e,t,n),ze=s,Tt=o,ze!==null&&(Tt?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Tt?(e=ze,n=n.stateNode,e.nodeType===8?Ol(e.parentNode,n):e.nodeType===1&&Ol(e,n),ro(e)):Ol(ze,n.stateNode));break;case 4:s=ze,o=Tt,ze=n.stateNode.containerInfo,Tt=!0,xn(e,t,n),ze=s,Tt=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){o=s=s.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&$c(n,t,a),o=o.next}while(o!==s)}xn(e,t,n);break;case 1:if(!Ve&&(zr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){ke(n,t,l)}xn(e,t,n);break;case 21:xn(e,t,n);break;case 22:n.mode&1?(Ve=(s=Ve)||n.memoizedState!==null,xn(e,t,n),Ve=s):xn(e,t,n);break;default:xn(e,t,n)}}function Tf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wy),t.forEach(function(s){var o=Jy.bind(null,e,s);n.has(s)||(n.add(s),s.then(o,o))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ze=l.stateNode,Tt=!1;break e;case 3:ze=l.stateNode.containerInfo,Tt=!0;break e;case 4:ze=l.stateNode.containerInfo,Tt=!0;break e}l=l.return}if(ze===null)throw Error(V(160));kh(i,a,o),ze=null,Tt=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(c){ke(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Eh(t,e),t=t.sibling}function Eh(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),qt(e),s&4){try{Vs(3,e,e.return),Ea(3,e)}catch(N){ke(e,e.return,N)}try{Vs(5,e,e.return)}catch(N){ke(e,e.return,N)}}break;case 1:_t(t,e),qt(e),s&512&&n!==null&&zr(n,n.return);break;case 5:if(_t(t,e),qt(e),s&512&&n!==null&&zr(n,n.return),e.flags&32){var o=e.stateNode;try{Zs(o,"")}catch(N){ke(e,e.return,N)}}if(s&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Gp(o,i),mc(l,a);var c=mc(l,i);for(a=0;a<u.length;a+=2){var d=u[a],f=u[a+1];d==="style"?em(o,f):d==="dangerouslySetInnerHTML"?Jp(o,f):d==="children"?Zs(o,f):wu(o,d,f,c)}switch(l){case"input":cc(o,i);break;case"textarea":Qp(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var b=i.value;b!=null?Yr(o,!!i.multiple,b,!1):g!==!!i.multiple&&(i.defaultValue!=null?Yr(o,!!i.multiple,i.defaultValue,!0):Yr(o,!!i.multiple,i.multiple?[]:"",!1))}o[lo]=i}catch(N){ke(e,e.return,N)}}break;case 6:if(_t(t,e),qt(e),s&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(N){ke(e,e.return,N)}}break;case 3:if(_t(t,e),qt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ro(t.containerInfo)}catch(N){ke(e,e.return,N)}break;case 4:_t(t,e),qt(e);break;case 13:_t(t,e),qt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(rd=Pe())),s&4&&Tf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(c=Ve)||d,_t(t,e),Ve=c):_t(t,e),qt(e),s&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(J=e,d=e.child;d!==null;){for(f=J=d;J!==null;){switch(g=J,b=g.child,g.tag){case 0:case 11:case 14:case 15:Vs(4,g,g.return);break;case 1:zr(g,g.return);var x=g.stateNode;if(typeof x.componentWillUnmount=="function"){s=g,n=g.return;try{t=s,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(N){ke(s,n,N)}}break;case 5:zr(g,g.return);break;case 22:if(g.memoizedState!==null){Af(f);continue}}b!==null?(b.return=g,J=b):Af(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,u=f.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=Zp("display",a))}catch(N){ke(e,e.return,N)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(N){ke(e,e.return,N)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||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:_t(t,e),qt(e),s&4&&Tf(e);break;case 21:break;default:_t(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Sh(n)){var s=n;break e}n=n.return}throw Error(V(160))}switch(s.tag){case 5:var o=s.stateNode;s.flags&32&&(Zs(o,""),s.flags&=-33);var i=Of(e);qc(e,i,o);break;case 3:case 4:var a=s.stateNode.containerInfo,l=Of(e);Uc(e,l,a);break;default:throw Error(V(161))}}catch(u){ke(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qy(e,t,n){J=e,Ph(e)}function Ph(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var o=J,i=o.child;if(o.tag===22&&s){var a=o.memoizedState!==null||Jo;if(!a){var l=o.alternate,u=l!==null&&l.memoizedState!==null||Ve;l=Jo;var c=Ve;if(Jo=a,(Ve=u)&&!c)for(J=o;J!==null;)a=J,u=a.child,a.tag===22&&a.memoizedState!==null?If(o):u!==null?(u.return=a,J=u):If(o);for(;i!==null;)J=i,Ph(i),i=i.sibling;J=o,Jo=l,Ve=c}Rf(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,J=i):Rf(e)}}function Rf(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||Ea(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ve)if(n===null)s.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ot(t.type,n.memoizedProps);s.componentDidUpdate(o,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&vf(t,i,s);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}vf(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ro(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Ve||t.flags&512&&Wc(t)}catch(g){ke(t,t.return,g)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Af(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function If(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ea(4,t)}catch(u){ke(t,n,u)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var o=t.return;try{s.componentDidMount()}catch(u){ke(t,o,u)}}var i=t.return;try{Wc(t)}catch(u){ke(t,i,u)}break;case 5:var a=t.return;try{Wc(t)}catch(u){ke(t,a,u)}}}catch(u){ke(t,t.return,u)}if(t===e){J=null;break}var l=t.sibling;if(l!==null){l.return=t.return,J=l;break}J=t.return}}var Vy=Math.ceil,Ji=pn.ReactCurrentDispatcher,td=pn.ReactCurrentOwner,kt=pn.ReactCurrentBatchConfig,fe=0,De=null,_e=null,$e=0,lt=0,$r=Vn(0),Te=0,ho=null,xr=0,Pa=0,nd=0,Hs=null,tt=null,rd=0,as=1/0,en=null,Zi=!1,Vc=null,Mn=null,Zo=!1,_n=null,ea=0,Ks=0,Hc=null,vi=-1,gi=0;function Qe(){return fe&6?Pe():vi!==-1?vi:vi=Pe()}function Ln(e){return e.mode&1?fe&2&&$e!==0?$e&-$e:Py.transition!==null?(gi===0&&(gi=fm()),gi):(e=he,e!==0||(e=window.event,e=e===void 0?16:ym(e.type)),e):1}function Ft(e,t,n,s){if(50<Ks)throw Ks=0,Hc=null,Error(V(185));So(e,n,s),(!(fe&2)||e!==De)&&(e===De&&(!(fe&2)&&(Pa|=n),Te===4&&En(e,$e)),ot(e,s),n===1&&fe===0&&!(t.mode&1)&&(as=Pe()+500,wa&&Hn()))}function ot(e,t){var n=e.callbackNode;Px(e,t);var s=Mi(e,e===De?$e:0);if(s===0)n!==null&&Wd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Wd(n),t===1)e.tag===0?Ey(Ff.bind(null,e)):Lm(Ff.bind(null,e)),by(function(){!(fe&6)&&Hn()}),n=null;else{switch(pm(s)){case 1:n=_u;break;case 4:n=um;break;case 16:n=Di;break;case 536870912:n=dm;break;default:n=Di}n=Dh(n,_h.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _h(e,t){if(vi=-1,gi=0,fe&6)throw Error(V(327));var n=e.callbackNode;if(Zr()&&e.callbackNode!==n)return null;var s=Mi(e,e===De?$e:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=ta(e,s);else{t=s;var o=fe;fe|=2;var i=Th();(De!==e||$e!==t)&&(en=null,as=Pe()+500,ur(e,t));do try{Yy();break}catch(l){Oh(e,l)}while(!0);Wu(),Ji.current=i,fe=o,_e!==null?t=0:(De=null,$e=0,t=Te)}if(t!==0){if(t===2&&(o=yc(e),o!==0&&(s=o,t=Kc(e,o))),t===1)throw n=ho,ur(e,0),En(e,s),ot(e,Pe()),n;if(t===6)En(e,s);else{if(o=e.current.alternate,!(s&30)&&!Hy(o)&&(t=ta(e,s),t===2&&(i=yc(e),i!==0&&(s=i,t=Kc(e,i))),t===1))throw n=ho,ur(e,0),En(e,s),ot(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=s,t){case 0:case 1:throw Error(V(345));case 2:tr(e,tt,en);break;case 3:if(En(e,s),(s&130023424)===s&&(t=rd+500-Pe(),10<t)){if(Mi(e,0)!==0)break;if(o=e.suspendedLanes,(o&s)!==s){Qe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ec(tr.bind(null,e,tt,en),t);break}tr(e,tt,en);break;case 4:if(En(e,s),(s&4194240)===s)break;for(t=e.eventTimes,o=-1;0<s;){var a=31-It(s);i=1<<a,a=t[a],a>o&&(o=a),s&=~i}if(s=o,s=Pe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Vy(s/1960))-s,10<s){e.timeoutHandle=Ec(tr.bind(null,e,tt,en),s);break}tr(e,tt,en);break;case 5:tr(e,tt,en);break;default:throw Error(V(329))}}}return ot(e,Pe()),e.callbackNode===n?_h.bind(null,e):null}function Kc(e,t){var n=Hs;return e.current.memoizedState.isDehydrated&&(ur(e,t).flags|=256),e=ta(e,t),e!==2&&(t=tt,tt=n,t!==null&&Yc(t)),e}function Yc(e){tt===null?tt=e:tt.push.apply(tt,e)}function Hy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var o=n[s],i=o.getSnapshot;o=o.value;try{if(!Mt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function En(e,t){for(t&=~nd,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),s=1<<n;e[n]=-1,t&=~s}}function Ff(e){if(fe&6)throw Error(V(327));Zr();var t=Mi(e,0);if(!(t&1))return ot(e,Pe()),null;var n=ta(e,t);if(e.tag!==0&&n===2){var s=yc(e);s!==0&&(t=s,n=Kc(e,s))}if(n===1)throw n=ho,ur(e,0),En(e,t),ot(e,Pe()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tr(e,tt,en),ot(e,Pe()),null}function sd(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(as=Pe()+500,wa&&Hn())}}function yr(e){_n!==null&&_n.tag===0&&!(fe&6)&&Zr();var t=fe;fe|=1;var n=kt.transition,s=he;try{if(kt.transition=null,he=1,e)return e()}finally{he=s,kt.transition=n,fe=t,!(fe&6)&&Hn()}}function od(){lt=$r.current,Ne($r)}function ur(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Cy(n)),_e!==null)for(n=_e.return;n!==null;){var s=n;switch(Bu(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Wi();break;case 3:os(),Ne(rt),Ne(He),Yu();break;case 5:Ku(s);break;case 4:os();break;case 13:Ne(be);break;case 19:Ne(be);break;case 10:Uu(s.type._context);break;case 22:case 23:od()}n=n.return}if(De=e,_e=e=Bn(e.current,null),$e=lt=t,Te=0,ho=null,nd=Pa=xr=0,tt=Hs=null,ar!==null){for(t=0;t<ar.length;t++)if(n=ar[t],s=n.interleaved,s!==null){n.interleaved=null;var o=s.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,s.next=a}n.pending=s}ar=null}return e}function Oh(e,t){do{var n=_e;try{if(Wu(),pi.current=Xi,Qi){for(var s=we.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}Qi=!1}if(gr=0,Fe=Oe=we=null,qs=!1,fo=0,td.current=null,n===null||n.return===null){Te=1,ho=t,_e=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=$e,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var b=Cf(a);if(b!==null){b.flags&=-257,bf(b,a,l,i,t),b.mode&1&&Nf(i,c,t),t=b,u=c;var x=t.updateQueue;if(x===null){var N=new Set;N.add(u),t.updateQueue=N}else x.add(u);break e}else{if(!(t&1)){Nf(i,c,t),id();break e}u=Error(V(426))}}else if(Ce&&l.mode&1){var C=Cf(a);if(C!==null){!(C.flags&65536)&&(C.flags|=256),bf(C,a,l,i,t),zu(is(u,l));break e}}i=u=is(u,l),Te!==4&&(Te=2),Hs===null?Hs=[i]:Hs.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=ph(i,u,t);hf(i,m);break e;case 1:l=u;var v=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Mn===null||!Mn.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var y=mh(i,l,t);hf(i,y);break e}}i=i.return}while(i!==null)}Ah(n)}catch(k){t=k,_e===n&&n!==null&&(_e=n=n.return);continue}break}while(!0)}function Th(){var e=Ji.current;return Ji.current=Xi,e===null?Xi:e}function id(){(Te===0||Te===3||Te===2)&&(Te=4),De===null||!(xr&268435455)&&!(Pa&268435455)||En(De,$e)}function ta(e,t){var n=fe;fe|=2;var s=Th();(De!==e||$e!==t)&&(en=null,ur(e,t));do try{Ky();break}catch(o){Oh(e,o)}while(!0);if(Wu(),fe=n,Ji.current=s,_e!==null)throw Error(V(261));return De=null,$e=0,Te}function Ky(){for(;_e!==null;)Rh(_e)}function Yy(){for(;_e!==null&&!yx();)Rh(_e)}function Rh(e){var t=Fh(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?Ah(e):_e=t,td.current=null}function Ah(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=$y(n,t),n!==null){n.flags&=32767,_e=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,_e=null;return}}else if(n=zy(n,t,lt),n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Te===0&&(Te=5)}function tr(e,t,n){var s=he,o=kt.transition;try{kt.transition=null,he=1,Gy(e,t,n,s)}finally{kt.transition=o,he=s}return null}function Gy(e,t,n,s){do Zr();while(_n!==null);if(fe&6)throw Error(V(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(_x(e,i),e===De&&(_e=De=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Zo||(Zo=!0,Dh(Di,function(){return Zr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=kt.transition,kt.transition=null;var a=he;he=1;var l=fe;fe|=4,td.current=null,Uy(e,n),Eh(n,e),hy(Sc),Li=!!wc,Sc=wc=null,e.current=n,qy(n),jx(),fe=l,he=a,kt.transition=i}else e.current=n;if(Zo&&(Zo=!1,_n=e,ea=o),i=e.pendingLanes,i===0&&(Mn=null),bx(n.stateNode),ot(e,Pe()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],s(o.value,{componentStack:o.stack,digest:o.digest});if(Zi)throw Zi=!1,e=Vc,Vc=null,e;return ea&1&&e.tag!==0&&Zr(),i=e.pendingLanes,i&1?e===Hc?Ks++:(Ks=0,Hc=e):Ks=0,Hn(),null}function Zr(){if(_n!==null){var e=pm(ea),t=kt.transition,n=he;try{if(kt.transition=null,he=16>e?16:e,_n===null)var s=!1;else{if(e=_n,_n=null,ea=0,fe&6)throw Error(V(331));var o=fe;for(fe|=4,J=e.current;J!==null;){var i=J,a=i.child;if(J.flags&16){var l=i.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(J=c;J!==null;){var d=J;switch(d.tag){case 0:case 11:case 15:Vs(8,d,i)}var f=d.child;if(f!==null)f.return=d,J=f;else for(;J!==null;){d=J;var g=d.sibling,b=d.return;if(wh(d),d===c){J=null;break}if(g!==null){g.return=b,J=g;break}J=b}}}var x=i.alternate;if(x!==null){var N=x.child;if(N!==null){x.child=null;do{var C=N.sibling;N.sibling=null,N=C}while(N!==null)}}J=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,J=a;else e:for(;J!==null;){if(i=J,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Vs(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,J=m;break e}J=i.return}}var v=e.current;for(J=v;J!==null;){a=J;var h=a.child;if(a.subtreeFlags&2064&&h!==null)h.return=a,J=h;else e:for(a=v;J!==null;){if(l=J,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ea(9,l)}}catch(k){ke(l,l.return,k)}if(l===a){J=null;break e}var y=l.sibling;if(y!==null){y.return=l.return,J=y;break e}J=l.return}}if(fe=o,Hn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(ya,e)}catch{}s=!0}return s}finally{he=n,kt.transition=t}}return!1}function Df(e,t,n){t=is(n,t),t=ph(e,t,1),e=Dn(e,t,1),t=Qe(),e!==null&&(So(e,1,t),ot(e,t))}function ke(e,t,n){if(e.tag===3)Df(e,e,n);else for(;t!==null;){if(t.tag===3){Df(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Mn===null||!Mn.has(s))){e=is(n,e),e=mh(t,e,1),t=Dn(t,e,1),e=Qe(),t!==null&&(So(t,1,e),ot(t,e));break}}t=t.return}}function Qy(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Qe(),e.pingedLanes|=e.suspendedLanes&n,De===e&&($e&n)===n&&(Te===4||Te===3&&($e&130023424)===$e&&500>Pe()-rd?ur(e,0):nd|=n),ot(e,t)}function Ih(e,t){t===0&&(e.mode&1?(t=Uo,Uo<<=1,!(Uo&130023424)&&(Uo=4194304)):t=1);var n=Qe();e=cn(e,t),e!==null&&(So(e,t,n),ot(e,n))}function Xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ih(e,n)}function Jy(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(V(314))}s!==null&&s.delete(t),Ih(e,n)}var Fh;Fh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nt=!1,By(e,t,n);nt=!!(e.flags&131072)}else nt=!1,Ce&&t.flags&1048576&&Bm(t,Vi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;hi(e,t),e=t.pendingProps;var o=ns(t,He.current);Jr(t,n),o=Qu(null,t,s,e,o,n);var i=Xu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(s)?(i=!0,Ui(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Vu(t),o.updater=ka,t.stateNode=o,o._reactInternals=t,Ic(t,s,e,n),t=Mc(null,t,s,!0,i,n)):(t.tag=0,Ce&&i&&Lu(t),Ye(null,t,o,n),t=t.child),t;case 16:s=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=ej(s),e=Ot(s,e),o){case 0:t=Dc(null,t,s,e,n);break e;case 1:t=kf(null,t,s,e,n);break e;case 11:t=wf(null,t,s,e,n);break e;case 14:t=Sf(null,t,s,Ot(s.type,e),n);break e}throw Error(V(306,s,""))}return t;case 0:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Ot(s,o),Dc(e,t,s,o,n);case 1:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Ot(s,o),kf(e,t,s,o,n);case 3:e:{if(xh(t),e===null)throw Error(V(387));s=t.pendingProps,i=t.memoizedState,o=i.element,Vm(e,t),Yi(t,s,null,n);var a=t.memoizedState;if(s=a.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=is(Error(V(423)),t),t=Ef(e,t,s,n,o);break e}else if(s!==o){o=is(Error(V(424)),t),t=Ef(e,t,s,n,o);break e}else for(ct=Fn(t.stateNode.containerInfo.firstChild),ft=t,Ce=!0,Rt=null,n=Um(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rs(),s===o){t=un(e,t,n);break e}Ye(e,t,s,n)}t=t.child}return t;case 5:return Hm(t),e===null&&Tc(t),s=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,kc(s,o)?a=null:i!==null&&kc(s,i)&&(t.flags|=32),gh(e,t),Ye(e,t,a,n),t.child;case 6:return e===null&&Tc(t),null;case 13:return yh(e,t,n);case 4:return Hu(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ss(t,null,s,n):Ye(e,t,s,n),t.child;case 11:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Ot(s,o),wf(e,t,s,o,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,xe(Hi,s._currentValue),s._currentValue=a,i!==null)if(Mt(i.value,a)){if(i.children===o.children&&!rt.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===s){if(i.tag===1){u=on(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Rc(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Rc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ye(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps.children,Jr(t,n),o=Et(o),s=s(o),t.flags|=1,Ye(e,t,s,n),t.child;case 14:return s=t.type,o=Ot(s,t.pendingProps),o=Ot(s.type,o),Sf(e,t,s,o,n);case 15:return hh(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Ot(s,o),hi(e,t),t.tag=1,st(s)?(e=!0,Ui(t)):e=!1,Jr(t,n),fh(t,s,o),Ic(t,s,o,n),Mc(null,t,s,!0,e,n);case 19:return jh(e,t,n);case 22:return vh(e,t,n)}throw Error(V(156,t.tag))};function Dh(e,t){return cm(e,t)}function Zy(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,n,s){return new Zy(e,t,n,s)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ej(e){if(typeof e=="function")return ad(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ku)return 11;if(e===Eu)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xi(e,t,n,s,o,i){var a=2;if(s=e,typeof e=="function")ad(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Tr:return dr(n.children,o,i,t);case Su:a=8,o|=8;break;case sc:return e=wt(12,n,t,o|2),e.elementType=sc,e.lanes=i,e;case oc:return e=wt(13,n,t,o),e.elementType=oc,e.lanes=i,e;case ic:return e=wt(19,n,t,o),e.elementType=ic,e.lanes=i,e;case Hp:return _a(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qp:a=10;break e;case Vp:a=9;break e;case ku:a=11;break e;case Eu:a=14;break e;case jn:a=16,s=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=wt(a,n,t,o),t.elementType=e,t.type=s,t.lanes=i,t}function dr(e,t,n,s){return e=wt(7,e,s,t),e.lanes=n,e}function _a(e,t,n,s){return e=wt(22,e,s,t),e.elementType=Hp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ll(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Bl(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tj(e,t,n,s,o){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=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=s,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ld(e,t,n,s,o,i,a,l,u){return e=new tj(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=wt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vu(i),e}function nj(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Or,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Mh(e){if(!e)return Wn;e=e._reactInternals;e:{if(wr(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(st(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(st(n))return Mm(e,n,t)}return t}function Lh(e,t,n,s,o,i,a,l,u){return e=ld(n,s,!0,e,o,i,a,l,u),e.context=Mh(null),n=e.current,s=Qe(),o=Ln(n),i=on(s,o),i.callback=t??null,Dn(n,i,o),e.current.lanes=o,So(e,o,s),ot(e,s),e}function Oa(e,t,n,s){var o=t.current,i=Qe(),a=Ln(o);return n=Mh(n),t.context===null?t.context=n:t.pendingContext=n,t=on(i,a),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Dn(o,t,a),e!==null&&(Ft(e,o,a,i),fi(e,o,a)),a}function na(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Mf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cd(e,t){Mf(e,t),(e=e.alternate)&&Mf(e,t)}function rj(){return null}var Bh=typeof reportError=="function"?reportError:function(e){console.error(e)};function ud(e){this._internalRoot=e}Ta.prototype.render=ud.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));Oa(e,t,null,null)};Ta.prototype.unmount=ud.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yr(function(){Oa(null,e,null,null)}),t[ln]=null}};function Ta(e){this._internalRoot=e}Ta.prototype.unstable_scheduleHydration=function(e){if(e){var t=vm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kn.length&&t!==0&&t<kn[n].priority;n++);kn.splice(n,0,e),n===0&&xm(e)}};function dd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ra(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lf(){}function sj(e,t,n,s,o){if(o){if(typeof s=="function"){var i=s;s=function(){var c=na(a);i.call(c)}}var a=Lh(t,s,e,0,null,!1,!1,"",Lf);return e._reactRootContainer=a,e[ln]=a.current,io(e.nodeType===8?e.parentNode:e),yr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof s=="function"){var l=s;s=function(){var c=na(u);l.call(c)}}var u=ld(e,0,!1,null,null,!1,!1,"",Lf);return e._reactRootContainer=u,e[ln]=u.current,io(e.nodeType===8?e.parentNode:e),yr(function(){Oa(t,u,n,s)}),u}function Aa(e,t,n,s,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var u=na(a);l.call(u)}}Oa(t,a,e,o)}else a=sj(n,t,e,o,s);return na(a)}mm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fs(t.pendingLanes);n!==0&&(Ou(t,n|1),ot(t,Pe()),!(fe&6)&&(as=Pe()+500,Hn()))}break;case 13:yr(function(){var s=cn(e,1);if(s!==null){var o=Qe();Ft(s,e,1,o)}}),cd(e,1)}};Tu=function(e){if(e.tag===13){var t=cn(e,134217728);if(t!==null){var n=Qe();Ft(t,e,134217728,n)}cd(e,134217728)}};hm=function(e){if(e.tag===13){var t=Ln(e),n=cn(e,t);if(n!==null){var s=Qe();Ft(n,e,t,s)}cd(e,t)}};vm=function(){return he};gm=function(e,t){var n=he;try{return he=e,t()}finally{he=n}};vc=function(e,t,n){switch(t){case"input":if(cc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=ba(s);if(!o)throw Error(V(90));Yp(s),cc(s,o)}}}break;case"textarea":Qp(e,n);break;case"select":t=n.value,t!=null&&Yr(e,!!n.multiple,t,!1)}};rm=sd;sm=yr;var oj={usingClientEntryPoint:!1,Events:[Eo,Fr,ba,tm,nm,sd]},Ts={findFiberByHostInstance:ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ij={bundleType:Ts.bundleType,version:Ts.version,rendererPackageName:Ts.rendererPackageName,rendererConfig:Ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=am(e),e===null?null:e.stateNode},findFiberByHostInstance:Ts.findFiberByHostInstance||rj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{ya=ei.inject(ij),Gt=ei}catch{}}gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oj;gt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dd(t))throw Error(V(200));return nj(e,t,null,n)};gt.createRoot=function(e,t){if(!dd(e))throw Error(V(299));var n=!1,s="",o=Bh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ld(e,1,!1,null,null,n,!1,s,o),e[ln]=t.current,io(e.nodeType===8?e.parentNode:e),new ud(t)};gt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=am(t),e=e===null?null:e.stateNode,e};gt.flushSync=function(e){return yr(e)};gt.hydrate=function(e,t,n){if(!Ra(t))throw Error(V(200));return Aa(null,e,t,!0,n)};gt.hydrateRoot=function(e,t,n){if(!dd(e))throw Error(V(405));var s=n!=null&&n.hydratedSources||null,o=!1,i="",a=Bh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Lh(t,null,e,1,n??null,o,!1,i,a),e[ln]=t.current,io(e),s)for(e=0;e<s.length;e++)n=s[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ta(t)};gt.render=function(e,t,n){if(!Ra(t))throw Error(V(200));return Aa(null,e,t,!1,n)};gt.unmountComponentAtNode=function(e){if(!Ra(e))throw Error(V(40));return e._reactRootContainer?(yr(function(){Aa(null,null,e,!1,function(){e._reactRootContainer=null,e[ln]=null})}),!0):!1};gt.unstable_batchedUpdates=sd;gt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Ra(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return Aa(e,t,n,!1,s)};gt.version="18.3.1-next-f1338f8080-20240426";function zh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zh)}catch(e){console.error(e)}}zh(),zp.exports=gt;var $h=zp.exports;const Wr=bo($h);var Wh,Bf=$h;Wh=Bf.createRoot,Bf.hydrateRoot;var Uh={exports:{}},qh={};/**
* @license React
* use-sync-external-store-with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _o=S;function aj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lj=typeof Object.is=="function"?Object.is:aj,cj=_o.useSyncExternalStore,uj=_o.useRef,dj=_o.useEffect,fj=_o.useMemo,pj=_o.useDebugValue;qh.useSyncExternalStoreWithSelector=function(e,t,n,s,o){var i=uj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=fj(function(){function u(b){if(!c){if(c=!0,d=b,b=s(b),o!==void 0&&a.hasValue){var x=a.value;if(o(x,b))return f=x}return f=b}if(x=f,lj(d,b))return x;var N=s(b);return o!==void 0&&o(x,N)?x:(d=b,f=N)}var c=!1,d,f,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,s,o]);var l=cj(e,i[0],i[1]);return dj(function(){a.hasValue=!0,a.value=l},[l]),pj(l),l};Uh.exports=qh;var mj=Uh.exports,ut="default"in nc?I:nc,zf=Symbol.for("react-redux-context"),$f=typeof globalThis<"u"?globalThis:{};function hj(){if(!ut.createContext)return{};const e=$f[zf]??($f[zf]=new Map);let t=e.get(ut.createContext);return t||(t=ut.createContext(null),e.set(ut.createContext,t)),t}var Un=hj(),vj=()=>{throw new Error("uSES not initialized!")};function fd(e=Un){return function(){return ut.useContext(e)}}var Vh=fd(),Hh=vj,gj=e=>{Hh=e},xj=(e,t)=>e===t;function yj(e=Un){const t=e===Un?Vh:fd(e),n=(s,o={})=>{const{equalityFn:i=xj,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();ut.useRef(!0);const g=ut.useCallback({[s.name](x){return s(x)}}[s.name],[s,d,a.stabilityCheck]),b=Hh(u.addNestedSub,l.getState,c||l.getState,g,i);return ut.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Re=yj();function jj(e){e()}function Nj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){jj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let s=e;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Wf={notify(){},get:()=>[]};function Cj(e,t){let n,s=Wf,o=0,i=!1;function a(N){d();const C=s.subscribe(N);let m=!1;return()=>{m||(m=!0,C(),f())}}function l(){s.notify()}function u(){x.onStateChange&&x.onStateChange()}function c(){return i}function d(){o++,n||(n=e.subscribe(u),s=Nj())}function f(){o--,n&&o===0&&(n(),n=void 0,s.clear(),s=Wf)}function g(){i||(i=!0,d())}function b(){i&&(i=!1,f())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>s};return x}var bj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wj=typeof navigator<"u"&&navigator.product==="ReactNative",Sj=bj||wj?ut.useLayoutEffect:ut.useEffect;function kj({store:e,context:t,children:n,serverState:s,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=ut.useMemo(()=>{const c=Cj(e);return{store:e,subscription:c,getServerState:s?()=>s:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,s,o,i]),l=ut.useMemo(()=>e.getState(),[e]);Sj(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const u=t||Un;return ut.createElement(u.Provider,{value:a},n)}var Ej=kj;function Kh(e=Un){const t=e===Un?Vh:fd(e),n=()=>{const{store:s}=t();return s};return Object.assign(n,{withTypes:()=>n}),n}var Pj=Kh();function _j(e=Un){const t=e===Un?Pj:Kh(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var yt=_j();gj(mj.useSyncExternalStoreWithSelector);function Be(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Oj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Uf=Oj,zl=()=>Math.random().toString(36).substring(7).split("").join("."),Tj={INIT:`@@redux/INIT${zl()}`,REPLACE:`@@redux/REPLACE${zl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zl()}`},ra=Tj;function pd(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Yh(e,t,n){if(typeof e!="function")throw new Error(Be(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Be(1));return n(Yh)(e,t)}let s=e,o=t,i=new Map,a=i,l=0,u=!1;function c(){a===i&&(a=new Map,i.forEach((C,m)=>{a.set(m,C)}))}function d(){if(u)throw new Error(Be(3));return o}function f(C){if(typeof C!="function")throw new Error(Be(4));if(u)throw new Error(Be(5));let m=!0;c();const v=l++;return a.set(v,C),function(){if(m){if(u)throw new Error(Be(6));m=!1,c(),a.delete(v),i=null}}}function g(C){if(!pd(C))throw new Error(Be(7));if(typeof C.type>"u")throw new Error(Be(8));if(typeof C.type!="string")throw new Error(Be(17));if(u)throw new Error(Be(9));try{u=!0,o=s(o,C)}finally{u=!1}return(i=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Be(10));s=C,g({type:ra.REPLACE})}function x(){const C=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Be(11));function v(){const y=m;y.next&&y.next(d())}return v(),{unsubscribe:C(v)}},[Uf](){return this}}}return g({type:ra.INIT}),{dispatch:g,subscribe:f,getState:d,replaceReducer:b,[Uf]:x}}function Rj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ra.INIT})>"u")throw new Error(Be(12));if(typeof n(void 0,{type:ra.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function Aj(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];typeof e[a]=="function"&&(n[a]=e[a])}const s=Object.keys(n);let o;try{Rj(n)}catch(i){o=i}return function(a={},l){if(o)throw o;let u=!1;const c={};for(let d=0;d<s.length;d++){const f=s[d],g=n[f],b=a[f],x=g(b,l);if(typeof x>"u")throw l&&l.type,new Error(Be(14));c[f]=x,u=u||x!==b}return u=u||s.length!==Object.keys(a).length,u?c:a}}function sa(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Ij(...e){return t=>(n,s)=>{const o=t(n,s);let i=()=>{throw new Error(Be(15))};const a={getState:o.getState,dispatch:(u,...c)=>i(u,...c)},l=e.map(u=>u(a));return i=sa(...l)(o.dispatch),{...o,dispatch:i}}}function Fj(e){return pd(e)&&"type"in e&&typeof e.type=="string"}var Gh=Symbol.for("immer-nothing"),qf=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state");function At(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ls=Object.getPrototypeOf;function jr(e){return!!e&&!!e[ht]}function dn(e){var t;return e?Qh(e)||Array.isArray(e)||!!e[qf]||!!((t=e.constructor)!=null&&t[qf])||Fa(e)||Da(e):!1}var Dj=Object.prototype.constructor.toString();function Qh(e){if(!e||typeof e!="object")return!1;const t=ls(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Dj}function oa(e,t){Ia(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,s)=>t(s,n,e))}function Ia(e){const t=e[ht];return t?t.type_:Array.isArray(e)?1:Fa(e)?2:Da(e)?3:0}function Gc(e,t){return Ia(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xh(e,t,n){const s=Ia(e);s===2?e.set(t,n):s===3?e.add(n):e[t]=n}function Mj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Fa(e){return e instanceof Map}function Da(e){return e instanceof Set}function nr(e){return e.copy_||e.base_}function Qc(e,t){if(Fa(e))return new Map(e);if(Da(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Qh(e);if(t===!0||t==="class_only"&&!n){const s=Object.getOwnPropertyDescriptors(e);delete s[ht];let o=Reflect.ownKeys(s);for(let i=0;i<o.length;i++){const a=o[i],l=s[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(s[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(ls(e),s)}else{const s=ls(e);if(s!==null&&n)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function md(e,t=!1){return Ma(e)||jr(e)||!dn(e)||(Ia(e)>1&&(e.set=e.add=e.clear=e.delete=Lj),Object.freeze(e),t&&Object.entries(e).forEach(([n,s])=>md(s,!0))),e}function Lj(){At(2)}function Ma(e){return Object.isFrozen(e)}var Bj={};function Nr(e){const t=Bj[e];return t||At(0,e),t}var vo;function Jh(){return vo}function zj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vf(e,t){t&&(Nr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xc(e){Jc(e),e.drafts_.forEach($j),e.drafts_=null}function Jc(e){e===vo&&(vo=e.parent_)}function Hf(e){return vo=zj(vo,e)}function $j(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Kf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ht].modified_&&(Xc(t),At(4)),dn(e)&&(e=ia(t,e),t.parent_||aa(t,e)),t.patches_&&Nr("Patches").generateReplacementPatches_(n[ht].base_,e,t.patches_,t.inversePatches_)):e=ia(t,n,[]),Xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gh?e:void 0}function ia(e,t,n){if(Ma(t))return t;const s=t[ht];if(!s)return oa(t,(o,i)=>Yf(e,s,t,o,i,n)),t;if(s.scope_!==e)return t;if(!s.modified_)return aa(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let i=o,a=!1;s.type_===3&&(i=new Set(o),o.clear(),a=!0),oa(i,(l,u)=>Yf(e,s,o,l,u,n,a)),aa(e,o,!1),n&&e.patches_&&Nr("Patches").generatePatches_(s,n,e.patches_,e.inversePatches_)}return s.copy_}function Yf(e,t,n,s,o,i,a){if(jr(o)){const l=i&&t&&t.type_!==3&&!Gc(t.assigned_,s)?i.concat(s):void 0,u=ia(e,o,l);if(Xh(n,s,u),jr(u))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(dn(o)&&!Ma(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ia(e,o),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,s)&&aa(e,o)}}function aa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&md(t,n)}function Wj(e,t){const n=Array.isArray(e),s={type_:n?1:0,scope_:t?t.scope_:Jh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,i=hd;n&&(o=[s],i=go);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return s.draft_=l,s.revoke_=a,l}var hd={get(e,t){if(t===ht)return e;const n=nr(e);if(!Gc(n,t))return Uj(e,n,t);const s=n[t];return e.finalized_||!dn(s)?s:s===$l(e.base_,t)?(Wl(e),e.copy_[t]=eu(s,e)):s},has(e,t){return t in nr(e)},ownKeys(e){return Reflect.ownKeys(nr(e))},set(e,t,n){const s=Zh(nr(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,n),!0;if(!e.modified_){const o=$l(nr(e),t),i=o==null?void 0:o[ht];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Mj(n,o)&&(n!==void 0||Gc(e.base_,t)))return!0;Wl(e),Zc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $l(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Wl(e),Zc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=nr(e),s=Reflect.getOwnPropertyDescriptor(n,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:n[t]}},defineProperty(){At(11)},getPrototypeOf(e){return ls(e.base_)},setPrototypeOf(){At(12)}},go={};oa(hd,(e,t)=>{go[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});go.deleteProperty=function(e,t){return go.set.call(this,e,t,void 0)};go.set=function(e,t,n){return hd.set.call(this,e[0],t,n,e[0])};function $l(e,t){const n=e[ht];return(n?nr(n):e)[t]}function Uj(e,t,n){var o;const s=Zh(t,n);return s?"value"in s?s.value:(o=s.get)==null?void 0:o.call(e.draft_):void 0}function Zh(e,t){if(!(t in e))return;let n=ls(e);for(;n;){const s=Object.getOwnPropertyDescriptor(n,t);if(s)return s;n=ls(n)}}function Zc(e){e.modified_||(e.modified_=!0,e.parent_&&Zc(e.parent_))}function Wl(e){e.copy_||(e.copy_=Qc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,s)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(u=i,...c){return a.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&At(6),s!==void 0&&typeof s!="function"&&At(7);let o;if(dn(t)){const i=Hf(this),a=eu(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?Xc(i):Jc(i)}return Vf(i,s),Kf(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Gh&&(o=void 0),this.autoFreeze_&&md(o,!0),s){const i=[],a=[];Nr("Patches").generateReplacementPatches_(t,o,i,a),s(i,a)}return o}else At(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let s,o;return[this.produce(t,n,(a,l)=>{s=a,o=l}),s,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){dn(e)||At(8),jr(e)&&(e=Vj(e));const t=Hf(this),n=eu(e,void 0);return n[ht].isManual_=!0,Jc(t),n}finishDraft(e,t){const n=e&&e[ht];(!n||!n.isManual_)&&At(9);const{scope_:s}=n;return Vf(s,t),Kf(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const s=Nr("Patches").applyPatches_;return jr(e)?s(e,t):this.produce(e,o=>s(o,t))}};function eu(e,t){const n=Fa(e)?Nr("MapSet").proxyMap_(e,t):Da(e)?Nr("MapSet").proxySet_(e,t):Wj(e,t);return(t?t.scope_:Jh()).drafts_.push(n),n}function Vj(e){return jr(e)||At(10,e),ev(e)}function ev(e){if(!dn(e)||Ma(e))return e;const t=e[ht];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Qc(e,!0);return oa(n,(s,o)=>{Xh(n,s,ev(o))}),t&&(t.finalized_=!1),n}var vt=new qj,tv=vt.produce;vt.produceWithPatches.bind(vt);vt.setAutoFreeze.bind(vt);vt.setUseStrictShallowCopy.bind(vt);vt.applyPatches.bind(vt);vt.createDraft.bind(vt);vt.finishDraft.bind(vt);function nv(e){return({dispatch:n,getState:s})=>o=>i=>typeof i=="function"?i(n,s,e):o(i)}var Hj=nv(),Kj=nv,Yj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sa:sa.apply(null,arguments)},Gj=e=>e&&typeof e.match=="function";function Ys(e,t){function n(...s){if(t){let o=t(...s);if(!o)throw new Error(Dt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:s[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=s=>Fj(s)&&s.type===e,n}var rv=class Ms extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ms.prototype)}static get[Symbol.species](){return Ms}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ms(...t[0].concat(this)):new Ms(...t.concat(this))}};function Gf(e){return dn(e)?tv(e,()=>{}):e}function Qf(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(Dt(10));const s=n.insert(t,e);return e.set(t,s),s}function Qj(e){return typeof e=="boolean"}var Xj=()=>function(t){const{thunk:n=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new rv;return n&&(Qj(n)?a.push(Hj):a.push(Kj(n.extraArgument))),a},Jj="RTK_autoBatch",sv=e=>t=>{setTimeout(t,e)},Zj=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sv(10),e1=(e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let o=!0,i=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?Zj:e.type==="callback"?e.queueNotification:sv(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(d=>d()))};return Object.assign({},s,{subscribe(d){const f=()=>o&&d(),g=s.subscribe(f);return l.add(d),()=>{g(),l.delete(d)}},dispatch(d){var f;try{return o=!((f=d==null?void 0:d.meta)!=null&&f[Jj]),i=!o,i&&(a||(a=!0,u(c))),s.dispatch(d)}finally{o=!0}}})},t1=e=>function(n){const{autoBatch:s=!0}=n??{};let o=new rv(e);return s&&o.push(e1(typeof s=="object"?s:void 0)),o};function n1(e){const t=Xj(),{reducer:n=void 0,middleware:s,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(pd(n))l=Aj(n);else throw new Error(Dt(1));let u;typeof s=="function"?u=s(t):u=t();let c=sa;o&&(c=Yj({trace:!1,...typeof o=="object"&&o}));const d=Ij(...u),f=t1(d);let g=typeof a=="function"?a(f):f();const b=c(...g);return Yh(l,i,b)}function ov(e){const t={},n=[];let s;const o={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(Dt(28));if(l in t)throw new Error(Dt(29));return t[l]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return s=i,o}};return e(o),[t,n,s]}function r1(e){return typeof e=="function"}function s1(e,t){let[n,s,o]=ov(t),i;if(r1(e))i=()=>Gf(e());else{const l=Gf(e);i=()=>l}function a(l=i(),u){let c=[n[u.type],...s.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[o]),c.reduce((d,f)=>{if(f)if(jr(d)){const b=f(d,u);return b===void 0?d:b}else{if(dn(d))return tv(d,g=>f(g,u));{const g=f(d,u);if(g===void 0){if(d===null)return d;throw new Error(Dt(9))}return g}}return d},l)}return a.getInitialState=i,a}var o1=(e,t)=>Gj(e)?e.match(t):e(t);function i1(...e){return t=>e.some(n=>o1(n,t))}var a1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",l1=(e=21)=>{let t="",n=e;for(;n--;)t+=a1[Math.random()*64|0];return t},c1=["name","message","stack","code"],Ul=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},Xf=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},u1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of c1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},jt=(()=>{function e(t,n,s){const o=Ys(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),i=Ys(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),a=Ys(t+"/rejected",(u,c,d,f,g)=>({payload:f,error:(s&&s.serializeError||u1)(u||"Rejected"),meta:{...g||{},arg:d,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function l(u){return(c,d,f)=>{const g=s!=null&&s.idGenerator?s.idGenerator(u):l1(),b=new AbortController;let x,N;function C(v){N=v,b.abort()}const m=async function(){var y,k;let v;try{let O=(y=s==null?void 0:s.condition)==null?void 0:y.call(s,u,{getState:d,extra:f});if(f1(O)&&(O=await O),O===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((_,D)=>{x=()=>{D({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",x)});c(i(g,u,(k=s==null?void 0:s.getPendingMeta)==null?void 0:k.call(s,{requestId:g,arg:u},{getState:d,extra:f}))),v=await Promise.race([T,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:g,signal:b.signal,abort:C,rejectWithValue:(_,D)=>new Ul(_,D),fulfillWithValue:(_,D)=>new Xf(_,D)})).then(_=>{if(_ instanceof Ul)throw _;return _ instanceof Xf?o(_.payload,g,u,_.meta):o(_,g,u)})])}catch(O){v=O instanceof Ul?a(null,g,u,O.payload,O.meta):a(O,g,u)}finally{x&&b.signal.removeEventListener("abort",x)}return s&&!s.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:C,requestId:g,arg:u,unwrap(){return m.then(d1)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:i1(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function d1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function f1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var p1=Symbol.for("rtk-slice-createasyncthunk");function m1(e,t){return`${e}/${t}`}function h1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[p1];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(Dt(11));typeof process<"u";const l=(typeof o.reducers=="function"?o.reducers(g1()):o.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(h,y){const k=typeof h=="string"?h:h.type;if(!k)throw new Error(Dt(12));if(k in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[k]=y,d},addMatcher(h,y){return c.sliceMatchers.push({matcher:h,reducer:y}),d},exposeAction(h,y){return c.actionCreators[h]=y,d},exposeCaseReducer(h,y){return c.sliceCaseReducersByName[h]=y,d}};u.forEach(h=>{const y=l[h],k={reducerName:h,type:m1(i,h),createNotation:typeof o.reducers=="function"};y1(y)?N1(k,y,d,t):x1(k,y,d)});function f(){const[h={},y=[],k=void 0]=typeof o.extraReducers=="function"?ov(o.extraReducers):[o.extraReducers],O={...h,...c.sliceCaseReducersByType};return s1(o.initialState,T=>{for(let _ in O)T.addCase(_,O[_]);for(let _ of c.sliceMatchers)T.addMatcher(_.matcher,_.reducer);for(let _ of y)T.addMatcher(_.matcher,_.reducer);k&&T.addDefaultCase(k)})}const g=h=>h,b=new Map;let x;function N(h,y){return x||(x=f()),x(h,y)}function C(){return x||(x=f()),x.getInitialState()}function m(h,y=!1){function k(T){let _=T[h];return typeof _>"u"&&y&&(_=C()),_}function O(T=g){const _=Qf(b,y,{insert:()=>new WeakMap});return Qf(_,T,{insert:()=>{const D={};for(const[z,H]of Object.entries(o.selectors??{}))D[z]=v1(H,T,C,y);return D}})}return{reducerPath:h,getSelectors:O,get selectors(){return O(k)},selectSlice:k}}const v={name:i,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...m(a),injectInto(h,{reducerPath:y,...k}={}){const O=y??a;return h.inject({reducerPath:O,reducer:N},k),{...v,...m(O,!0)}}};return v}}function v1(e,t,n,s){function o(i,...a){let l=t(i);return typeof l>"u"&&s&&(l=n()),e(l,...a)}return o.unwrapped=e,o}var La=h1();function g1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function x1({type:e,reducerName:t,createNotation:n},s,o){let i,a;if("reducer"in s){if(n&&!j1(s))throw new Error(Dt(17));i=s.reducer,a=s.prepare}else i=s;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Ys(e,a):Ys(e))}function y1(e){return e._reducerDefinitionType==="asyncThunk"}function j1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function N1({type:e,reducerName:t},n,s,o){if(!o)throw new Error(Dt(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:u,settled:c,options:d}=n,f=o(e,i,d);s.exposeAction(t,f),a&&s.addCase(f.fulfilled,a),l&&s.addCase(f.pending,l),u&&s.addCase(f.rejected,u),c&&s.addMatcher(f.settled,c),s.exposeCaseReducer(t,{fulfilled:a||ti,pending:l||ti,rejected:u||ti,settled:c||ti})}function ti(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function iv(e,t){return function(){return e.apply(t,arguments)}}const{toString:C1}=Object.prototype,{getPrototypeOf:vd}=Object,Ba=(e=>t=>{const n=C1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Lt=e=>(e=e.toLowerCase(),t=>Ba(t)===e),za=e=>t=>typeof t===e,{isArray:ps}=Array,xo=za("undefined");function b1(e){return e!==null&&!xo(e)&&e.constructor!==null&&!xo(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const av=Lt("ArrayBuffer");function w1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&av(e.buffer),t}const S1=za("string"),pt=za("function"),lv=za("number"),$a=e=>e!==null&&typeof e=="object",k1=e=>e===!0||e===!1,yi=e=>{if(Ba(e)!=="object")return!1;const t=vd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E1=Lt("Date"),P1=Lt("File"),_1=Lt("Blob"),O1=Lt("FileList"),T1=e=>$a(e)&&pt(e.pipe),R1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||pt(e.append)&&((t=Ba(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},A1=Lt("URLSearchParams"),[I1,F1,D1,M1]=["ReadableStream","Request","Response","Headers"].map(Lt),L1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),ps(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(s=0;s<a;s++)l=i[s],t.call(null,e[l],l,e)}}function cv(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uv=e=>!xo(e)&&e!==cr;function tu(){const{caseless:e}=uv(this)&&this||{},t={},n=(s,o)=>{const i=e&&cv(t,o)||o;yi(t[i])&&yi(s)?t[i]=tu(t[i],s):yi(s)?t[i]=tu({},s):ps(s)?t[i]=s.slice():t[i]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Oo(arguments[s],n);return t}const B1=(e,t,n,{allOwnKeys:s}={})=>(Oo(t,(o,i)=>{n&&pt(o)?e[i]=iv(o,n):e[i]=o},{allOwnKeys:s}),e),z1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$1=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},W1=(e,t,n,s)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!s||s(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&vd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},q1=e=>{if(!e)return null;if(ps(e))return e;let t=e.length;if(!lv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},V1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vd(Uint8Array)),H1=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},K1=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Y1=Lt("HTMLFormElement"),G1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),Jf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q1=Lt("RegExp"),dv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Oo(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(s[i]=a||o)}),Object.defineProperties(e,s)},X1=e=>{dv(e,(t,n)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(pt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J1=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return ps(e)?s(e):s(String(e).split(t)),n},Z1=()=>{},e0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ql="abcdefghijklmnopqrstuvwxyz",Zf="0123456789",fv={DIGIT:Zf,ALPHA:ql,ALPHA_DIGIT:ql+ql.toUpperCase()+Zf},t0=(e=16,t=fv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function n0(e){return!!(e&&pt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const r0=e=>{const t=new Array(10),n=(s,o)=>{if($a(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const i=ps(s)?[]:{};return Oo(s,(a,l)=>{const u=n(a,o+1);!xo(u)&&(i[l]=u)}),t[o]=void 0,i}}return s};return n(e,0)},s0=Lt("AsyncFunction"),o0=e=>e&&($a(e)||pt(e))&&pt(e.then)&&pt(e.catch),pv=((e,t)=>e?setImmediate:t?((n,s)=>(cr.addEventListener("message",({source:o,data:i})=>{o===cr&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pt(cr.postMessage)),i0=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||pv,$={isArray:ps,isArrayBuffer:av,isBuffer:b1,isFormData:R1,isArrayBufferView:w1,isString:S1,isNumber:lv,isBoolean:k1,isObject:$a,isPlainObject:yi,isReadableStream:I1,isRequest:F1,isResponse:D1,isHeaders:M1,isUndefined:xo,isDate:E1,isFile:P1,isBlob:_1,isRegExp:Q1,isFunction:pt,isStream:T1,isURLSearchParams:A1,isTypedArray:V1,isFileList:O1,forEach:Oo,merge:tu,extend:B1,trim:L1,stripBOM:z1,inherits:$1,toFlatObject:W1,kindOf:Ba,kindOfTest:Lt,endsWith:U1,toArray:q1,forEachEntry:H1,matchAll:K1,isHTMLForm:Y1,hasOwnProperty:Jf,hasOwnProp:Jf,reduceDescriptors:dv,freezeMethods:X1,toObjectSet:J1,toCamelCase:G1,noop:Z1,toFiniteNumber:e0,findKey:cv,global:cr,isContextDefined:uv,ALPHABET:fv,generateString:t0,isSpecCompliantForm:n0,toJSONObject:r0,isAsyncFn:s0,isThenable:o0,setImmediate:pv,asap:i0};function ie(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.status}}});const mv=ie.prototype,hv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hv[e]={value:e}});Object.defineProperties(ie,hv);Object.defineProperty(mv,"isAxiosError",{value:!0});ie.from=(e,t,n,s,o,i)=>{const a=Object.create(mv);return $.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),ie.call(a,e.message,t,n,s,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const a0=null;function nu(e){return $.isPlainObject(e)||$.isArray(e)}function vv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(o,i){return o=vv(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function l0(e){return $.isArray(e)&&!e.some(nu)}const c0=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Wa(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!$.isUndefined(C[N])});const s=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if($.isDate(x))return x.toISOString();if(!u&&$.isBlob(x))throw new ie("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(x)||$.isTypedArray(x)?u&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,N,C){let m=x;if(x&&!C&&typeof x=="object"){if($.endsWith(N,"{}"))N=s?N:N.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&l0(x)||($.isFileList(x)||$.endsWith(N,"[]"))&&(m=$.toArray(x)))return N=vv(N),m.forEach(function(h,y){!($.isUndefined(h)||h===null)&&t.append(a===!0?ep([N],y,i):a===null?N:N+"[]",c(h))}),!1}return nu(x)?!0:(t.append(ep(C,N,i),c(x)),!1)}const f=[],g=Object.assign(c0,{defaultVisitor:d,convertValue:c,isVisitable:nu});function b(x,N){if(!$.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+N.join("."));f.push(x),$.forEach(x,function(m,v){(!($.isUndefined(m)||m===null)&&o.call(t,m,$.isString(v)?v.trim():v,N,g))===!0&&b(m,N?N.concat(v):[v])}),f.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return b(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function gd(e,t){this._pairs=[],e&&Wa(e,this,t)}const gv=gd.prototype;gv.append=function(t,n){this._pairs.push([t,n])};gv.toString=function(t){const n=t?function(s){return t.call(this,s,tp)}:tp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function u0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xv(e,t,n){if(!t)return e;const s=n&&n.encode||u0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=$.isURLSearchParams(t)?t.toString():new gd(t,n).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class np{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const yv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},d0=typeof URLSearchParams<"u"?URLSearchParams:gd,f0=typeof FormData<"u"?FormData:null,p0=typeof Blob<"u"?Blob:null,m0={isBrowser:!0,classes:{URLSearchParams:d0,FormData:f0,Blob:p0},protocols:["http","https","file","blob","url","data"]},xd=typeof window<"u"&&typeof document<"u",ru=typeof navigator=="object"&&navigator||void 0,h0=xd&&(!ru||["ReactNative","NativeScript","NS"].indexOf(ru.product)<0),v0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g0=xd&&window.location.href||"http://localhost",x0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xd,hasStandardBrowserEnv:h0,hasStandardBrowserWebWorkerEnv:v0,navigator:ru,origin:g0},Symbol.toStringTag,{value:"Module"})),it={...x0,...m0};function y0(e,t){return Wa(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,i){return it.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function j0(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function N0(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s<o;s++)i=n[s],t[i]=e[i];return t}function jv(e){function t(n,s,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),u=i>=n.length;return a=!a&&$.isArray(o)?o.length:a,u?($.hasOwnProp(o,a)?o[a]=[o[a],s]:o[a]=s,!l):((!o[a]||!$.isObject(o[a]))&&(o[a]=[]),t(n,s,o[a],i)&&$.isArray(o[a])&&(o[a]=N0(o[a])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,o)=>{t(j0(s),o,n,0)}),n}return null}function C0(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const To={transitional:yv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o?JSON.stringify(jv(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return y0(t,this.formSerializer).toString();if((l=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Wa(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),C0(t)):t}],transformResponse:[function(t){const n=this.transitional||To.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ie.from(l,ie.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{To.headers[e]={}});const b0=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w0=e=>{const t={};let n,s,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),s=a.substring(o+1).trim(),!(!n||t[n]&&b0[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},rp=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function ji(e){return e===!1||e==null?e:$.isArray(e)?e.map(ji):String(e)}function S0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const k0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vl(e,t,n,s,o){if($.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function E0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function P0(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,i,a){return this[s].call(this,t,o,i,a)},configurable:!0})})}class at{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(l,u,c){const d=Rs(u);if(!d)throw new Error("header name must be a non-empty string");const f=$.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=ji(l))}const a=(l,u)=>$.forEach(l,(c,d)=>i(c,d,u));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!k0(t))a(w0(t),n);else if($.isHeaders(t))for(const[l,u]of t.entries())i(u,l,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Rs(t),t){const s=$.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return S0(o);if($.isFunction(n))return n.call(this,o,s);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rs(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Vl(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(a){if(a=Rs(a),a){const l=$.findKey(s,a);l&&(!n||Vl(s,s[l],l,n))&&(delete s[l],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||Vl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return $.forEach(this,(o,i)=>{const a=$.findKey(s,i);if(a){n[a]=ji(o),delete n[i];return}const l=t?E0(i):String(i).trim();l!==i&&delete n[i],n[l]=ji(o),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&$.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[rp]=this[rp]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=Rs(a);s[l]||(P0(o,a),s[l]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(at.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});$.freezeMethods(at);function Hl(e,t){const n=this||To,s=t||n,o=at.from(s.headers);let i=s.data;return $.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Nv(e){return!!(e&&e.__CANCEL__)}function ms(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(ms,ie,{__CANCEL__:!0});function Cv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function _0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O0(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=s[i];a||(a=c),n[o]=u,s[o]=c;let f=i,g=0;for(;f!==o;)g+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const b=d&&c-d;return b?Math.round(g*1e3/b):void 0}}function T0(e,t){let n=0,s=1e3/t,o,i;const a=(c,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=s?a(c,d):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},s-f)))},()=>o&&a(o)]}const la=(e,t,n=3)=>{let s=0;const o=O0(50,250);return T0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=a-s,c=o(u),d=a<=l;s=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},sp=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},op=e=>(...t)=>$.asap(()=>e(...t)),R0=it.hasStandardBrowserEnv?function(){const t=it.navigator&&/(msie|trident)/i.test(it.navigator.userAgent),n=document.createElement("a");let s;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(a){const l=$.isString(a)?o(a):a;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),A0=it.hasStandardBrowserEnv?{write(e,t,n,s,o,i){const a=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(s)&&a.push("path="+s),$.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function I0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function F0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bv(e,t){return e&&!I0(t)?F0(e,t):t}const ip=e=>e instanceof at?{...e}:e;function Cr(e,t){t=t||{};const n={};function s(c,d,f){return $.isPlainObject(c)&&$.isPlainObject(d)?$.merge.call({caseless:f},c,d):$.isPlainObject(d)?$.merge({},d):$.isArray(d)?d.slice():d}function o(c,d,f){if($.isUndefined(d)){if(!$.isUndefined(c))return s(void 0,c,f)}else return s(c,d,f)}function i(c,d){if(!$.isUndefined(d))return s(void 0,d)}function a(c,d){if($.isUndefined(d)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,d)}function l(c,d,f){if(f in t)return s(c,d);if(f in e)return s(void 0,c)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,d)=>o(ip(c),ip(d),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||o,g=f(e[d],t[d],d);$.isUndefined(g)&&f!==l||(n[d]=g)}),n}const wv=e=>{const t=Cr({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=at.from(a),t.url=xv(bv(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if($.isFormData(n)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(it.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(t)),s||s!==!1&&R0(t.url))){const c=o&&i&&A0.read(i);c&&a.set(o,c)}return t},D0=typeof XMLHttpRequest<"u",M0=D0&&function(e){return new Promise(function(n,s){const o=wv(e);let i=o.data;const a=at.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=o,d,f,g,b,x;function N(){b&&b(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function m(){if(!C)return;const h=at.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:h,config:e,request:C};Cv(function(T){n(T),N()},function(T){s(T),N()},k),C=null}"onloadend"in C?C.onloadend=m:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(m)},C.onabort=function(){C&&(s(new ie("Request aborted",ie.ECONNABORTED,e,C)),C=null)},C.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||yv;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),s(new ie(y,k.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,C)),C=null},i===void 0&&a.setContentType(null),"setRequestHeader"in C&&$.forEach(a.toJSON(),function(y,k){C.setRequestHeader(k,y)}),$.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),l&&l!=="json"&&(C.responseType=o.responseType),c&&([g,x]=la(c,!0),C.addEventListener("progress",g)),u&&C.upload&&([f,b]=la(u),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=h=>{C&&(s(!h||h.type?new ms(null,e,C):h),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const v=_0(o.url);if(v&&it.protocols.indexOf(v)===-1){s(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e));return}C.send(i||null)})},L0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const i=function(c){if(!o){o=!0,l();const d=c instanceof Error?c:this.reason;s.abort(d instanceof ie?d:new ms(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:u}=s;return u.unsubscribe=()=>$.asap(l),u}},B0=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},z0=async function*(e,t){for await(const n of $0(e))yield*B0(n,t)},$0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},ap=(e,t,n,s)=>{const o=z0(e,t);let i=0,a,l=u=>{a||(a=!0,s&&s(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){l(),u.close();return}let f=d.byteLength;if(n){let g=i+=f;n(g)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},Ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sv=Ua&&typeof ReadableStream=="function",W0=Ua&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},U0=Sv&&kv(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),lp=64*1024,su=Sv&&kv(()=>$.isReadableStream(new Response("").body)),ca={stream:su&&(e=>e.body)};Ua&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ca[t]&&(ca[t]=$.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const q0=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(it.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await W0(e)).byteLength},V0=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return n??q0(t)},H0=Ua&&(async e=>{let{url:t,method:n,data:s,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:g}=wv(e);c=c?(c+"").toLowerCase():"text";let b=L0([o,i&&i.toAbortSignal()],a),x;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&U0&&n!=="get"&&n!=="head"&&(C=await V0(d,s))!==0){let k=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if($.isFormData(s)&&(O=k.headers.get("content-type"))&&d.setContentType(O),k.body){const[T,_]=sp(C,la(op(u)));s=ap(k.body,lp,T,_)}}$.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:m?f:void 0});let v=await fetch(x);const h=su&&(c==="stream"||c==="response");if(su&&(l||h&&N)){const k={};["status","statusText","headers"].forEach(D=>{k[D]=v[D]});const O=$.toFiniteNumber(v.headers.get("content-length")),[T,_]=l&&sp(O,la(op(l),!0))||[];v=new Response(ap(v.body,lp,T,()=>{_&&_(),N&&N()}),k)}c=c||"text";let y=await ca[$.findKey(ca,c)||"text"](v,e);return!h&&N&&N(),await new Promise((k,O)=>{Cv(k,O,{data:y,headers:at.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw N&&N(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,x),{cause:m.cause||m}):ie.from(m,m&&m.code,e,x)}}),ou={http:a0,xhr:M0,fetch:H0};$.forEach(ou,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cp=e=>`- ${e}`,K0=e=>$.isFunction(e)||e===null||e===!1,Ev={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,s;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(s=n,!K0(n)&&(s=ou[(a=String(n)).toLowerCase()],s===void 0))throw new ie(`Unknown adapter '${a}'`);if(s)break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(cp).join(`
`):" "+cp(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:ou};function Kl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ms(null,e)}function up(e){return Kl(e),e.headers=at.from(e.headers),e.data=Hl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ev.getAdapter(e.adapter||To.adapter)(e).then(function(s){return Kl(e),s.data=Hl.call(e,e.transformResponse,s),s.headers=at.from(s.headers),s},function(s){return Nv(s)||(Kl(e),s&&s.response&&(s.response.data=Hl.call(e,e.transformResponse,s.response),s.response.headers=at.from(s.response.headers))),Promise.reject(s)})}const Pv="1.7.7",yd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yd[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const dp={};yd.transitional=function(t,n,s){function o(i,a){return"[Axios v"+Pv+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,l)=>{if(t===!1)throw new ie(o(a," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!dp[a]&&(dp[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function Y0(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],a=t[i];if(a){const l=e[i],u=l===void 0||a(l,i,e);if(u!==!0)throw new ie("option "+i+" must be "+u,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const iu={assertOptions:Y0,validators:yd},yn=iu.validators;class fr{constructor(t){this.defaults=t,this.interceptors={request:new np,response:new np}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&iu.assertOptions(s,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:iu.assertOptions(o,{encode:yn.function,serialize:yn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=at.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(u=u&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let d,f=0,g;if(!u){const x=[up.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,d=Promise.resolve(n);f<g;)d=d.then(x[f++],x[f++]);return d}g=l.length;let b=n;for(f=0;f<g;){const x=l[f++],N=l[f++];try{b=x(b)}catch(C){N.call(this,C);break}}try{d=up.call(this,b)}catch(x){return Promise.reject(x)}for(f=0,g=c.length;f<g;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Cr(this.defaults,t);const n=bv(t.baseURL,t.url);return xv(n,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){fr.prototype[t]=function(n,s){return this.request(Cr(s||{},{method:t,url:n,data:(s||{}).data}))}});$.forEach(["post","put","patch"],function(t){function n(s){return function(i,a,l){return this.request(Cr(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}fr.prototype[t]=n(),fr.prototype[t+"Form"]=n(!0)});class jd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(o=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{s.subscribe(l),i=l}).then(o);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,l){s.reason||(s.reason=new ms(i,a,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jd(function(o){t=o}),cancel:t}}}function G0(e){return function(n){return e.apply(null,n)}}function Q0(e){return $.isObject(e)&&e.isAxiosError===!0}const au={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(au).forEach(([e,t])=>{au[t]=e});function _v(e){const t=new fr(e),n=iv(fr.prototype.request,t);return $.extend(n,fr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _v(Cr(e,o))},n}const ve=_v(To);ve.Axios=fr;ve.CanceledError=ms;ve.CancelToken=jd;ve.isCancel=Nv;ve.VERSION=Pv;ve.toFormData=Wa;ve.AxiosError=ie;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=G0;ve.isAxiosError=Q0;ve.mergeConfig=Cr;ve.AxiosHeaders=at;ve.formToJSON=e=>jv($.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Ev.getAdapter;ve.HttpStatusCode=au;ve.default=ve;const X0="http://67.225.129.127:3002",mn=ve.create({baseURL:X0});mn.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const J0=e=>mn.post("/users/signup",e),Z0=e=>mn.post("/users/signin",e),eN=(e,t,n)=>mn.get(`/users/${e}/verify/${t}`,n),tN=e=>mn.post("/properties",e),nN=(e,t,n)=>mn.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),rN=e=>mn.get(`/properties/${e}`,e),sN=(e,t)=>mn.put(`/properties/${e}`,t),oN=e=>mn.get(`/users/${e}`),iN="http://67.225.129.127:3002",Ni=jt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const s=await Z0(e);return t("/dashboard"),s.data}catch(s){return n(s.response.data)}}),Ci=jt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:s})=>{try{const o=await J0(e);return console.log("response",o),n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return s(o.response.data)}}),bi=jt("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:s})=>{try{const o=await ve.put(`${iN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),o.data}catch(o){return s(o.response.data)}}),Ov=La({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(Ni.pending,t=>{t.loading=!0}).addCase(Ni.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ni.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ci.pending,t=>{t.loading=!0}).addCase(Ci.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ci.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(bi.pending,t=>{t.isLoading=!0}).addCase(bi.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(bi.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:Jw,setLogout:aN,setUserDetails:Zw}=Ov.actions,lN=Ov.reducer,wi=jt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await oN(e)).data}catch(n){return t(n.response.data)}}),Si=jt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:s})=>{try{return(await eN(e,t,n)).data.message}catch(o){return s(o.response.data)}}),cN=La({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(wi.pending,t=>{t.loading=!0,t.error=null}).addCase(wi.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(wi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Si.pending,t=>{t.loading=!0,t.error=null}).addCase(Si.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Si.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),uN=cN.reducer,ki=jt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await tN(e)).data}catch(n){return t(n.response.data)}}),Gs=jt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:s})=>{try{return(await nN(e,t,n)).data}catch(o){return s(o.response.data)}}),Qs=jt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await rN(e)).data}catch(n){return t(n.response.data)}}),Ei=jt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await sN(e,t)).data}catch(s){return n(s.response.data)}}),Pi=jt("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:s})=>{try{const o=await ve.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),o.data}catch(o){return s(o.response.data)}}),_i=jt("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:s})=>{try{return(await ve.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(o){return s(o.response.data)}}),es=jt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await ve.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),dN=La({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(ki.pending,t=>{t.status="loading"}).addCase(ki.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(ki.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Gs.pending,t=>{t.loading=!0}).addCase(Gs.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Gs.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Qs.pending,t=>{t.status="loading"}).addCase(Qs.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Qs.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ei.pending,t=>{t.status="loading"}).addCase(Ei.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ei.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(es.pending,t=>{t.loading=!0}).addCase(es.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(es.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Pi.pending,t=>{t.loading=!0}).addCase(Pi.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Pi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(_i.pending,t=>{t.loading=!0}).addCase(_i.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(s=>s._id!==n.meta.arg.id)}).addCase(_i.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),fN=dN.reducer,Yl=jt("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await ve.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),pN=La({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Yl.pending,t=>{t.loading=!0}).addCase(Yl.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(Yl.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),mN=pN.reducer,hN=n1({reducer:{auth:lN,user:uN,property:fN,fundDetails:mN}});/**
* @remix-run/router v1.19.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},yo.apply(this,arguments)}var On;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(On||(On={}));const fp="popstate";function vN(e){e===void 0&&(e={});function t(s,o){let{pathname:i,search:a,hash:l}=s.location;return lu("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(s,o){return typeof o=="string"?o:ua(o)}return xN(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Tv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gN(){return Math.random().toString(36).substr(2,8)}function pp(e,t){return{usr:e.state,key:e.key,idx:t}}function lu(e,t,n,s){return n===void 0&&(n=null),yo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hs(t):t,{state:n,key:t&&t.key||s||gN()})}function ua(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function hs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function xN(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:i=!1}=s,a=o.history,l=On.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(yo({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=On.Pop;let C=d(),m=C==null?null:C-c;c=C,u&&u({action:l,location:N.location,delta:m})}function g(C,m){l=On.Push;let v=lu(N.location,C,m);c=d()+1;let h=pp(v,c),y=N.createHref(v);try{a.pushState(h,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(y)}i&&u&&u({action:l,location:N.location,delta:1})}function b(C,m){l=On.Replace;let v=lu(N.location,C,m);c=d();let h=pp(v,c),y=N.createHref(v);a.replaceState(h,"",y),i&&u&&u({action:l,location:N.location,delta:0})}function x(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof C=="string"?C:ua(C);return v=v.replace(/ $/,"%20"),Ee(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let N={get action(){return l},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(fp,f),u=C,()=>{o.removeEventListener(fp,f),u=null}},createHref(C){return t(o,C)},createURL:x,encodeLocation(C){let m=x(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:b,go(C){return a.go(C)}};return N}var mp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mp||(mp={}));function yN(e,t,n){return n===void 0&&(n="/"),jN(e,t,n,!1)}function jN(e,t,n,s){let o=typeof t=="string"?hs(t):t,i=cs(o.pathname||"/",n);if(i==null)return null;let a=Rv(e);NN(a);let l=null;for(let u=0;l==null&&u<a.length;++u){let c=RN(i);l=ON(a[u],c,s)}return l}function Rv(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(i,a,l)=>{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Ee(u.relativePath.startsWith(s),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(s.length));let c=zn([s,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&(Ee(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Rv(i.children,t,d,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:PN(c,i.index),routesMeta:d})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let u of Av(i.path))o(i,a,u)}),t}function Av(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return o?[i,""]:[i];let a=Av(s.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function NN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_N(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const CN=/^:[\w-]+$/,bN=3,wN=2,SN=1,kN=10,EN=-2,hp=e=>e==="*";function PN(e,t){let n=e.split("/"),s=n.length;return n.some(hp)&&(s+=EN),t&&(s+=wN),n.filter(o=>!hp(o)).reduce((o,i)=>o+(CN.test(i)?bN:i===""?SN:kN),s)}function _N(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function ON(e,t,n){let{routesMeta:s}=e,o={},i="/",a=[];for(let l=0;l<s.length;++l){let u=s[l],c=l===s.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=da({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),g=u.route;if(!f&&c&&n&&!s[s.length-1].route.index&&(f=da({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:zn([i,f.pathname]),pathnameBase:DN(zn([i,f.pathnameBase])),route:g}),f.pathnameBase!=="/"&&(i=zn([i,f.pathnameBase]))}return a}function da(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=TN(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:s.reduce((c,d,f)=>{let{paramName:g,isOptional:b}=d;if(g==="*"){let N=l[f]||"";a=i.slice(0,i.length-N.length).replace(/(.)\/+$/,"$1")}const x=l[f];return b&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function TN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(s.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function RN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function cs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function AN(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?hs(e):e;return{pathname:n?n.startsWith("/")?n:IN(n,t):t,search:MN(s),hash:LN(o)}}function IN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Gl(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function FN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Iv(e,t){let n=FN(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Fv(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=hs(e):(o=yo({},e),Ee(!o.pathname||!o.pathname.includes("?"),Gl("?","pathname","search",o)),Ee(!o.pathname||!o.pathname.includes("#"),Gl("#","pathname","hash",o)),Ee(!o.search||!o.search.includes("#"),Gl("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!s&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),f-=1;o.pathname=g.join("/")}l=f>=0?t[f]:"/"}let u=AN(o,l),c=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const zn=e=>e.join("/").replace(/\/\/+/g,"/"),DN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,LN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function BN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Dv=["post","put","patch","delete"];new Set(Dv);const zN=["get",...Dv];new Set(zN);/**
* React Router v6.26.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function jo(){return jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},jo.apply(this,arguments)}const qa=S.createContext(null),Mv=S.createContext(null),Kn=S.createContext(null),Va=S.createContext(null),Yn=S.createContext({outlet:null,matches:[],isDataRoute:!1}),Lv=S.createContext(null);function $N(e,t){let{relative:n}=t===void 0?{}:t;Ro()||Ee(!1);let{basename:s,navigator:o}=S.useContext(Kn),{hash:i,pathname:a,search:l}=Ha(e,{relative:n}),u=a;return s!=="/"&&(u=a==="/"?s:zn([s,a])),o.createHref({pathname:u,search:l,hash:i})}function Ro(){return S.useContext(Va)!=null}function Ao(){return Ro()||Ee(!1),S.useContext(Va).location}function Bv(e){S.useContext(Kn).static||S.useLayoutEffect(e)}function vs(){let{isDataRoute:e}=S.useContext(Yn);return e?eC():WN()}function WN(){Ro()||Ee(!1);let e=S.useContext(qa),{basename:t,future:n,navigator:s}=S.useContext(Kn),{matches:o}=S.useContext(Yn),{pathname:i}=Ao(),a=JSON.stringify(Iv(o,n.v7_relativeSplatPath)),l=S.useRef(!1);return Bv(()=>{l.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){s.go(c);return}let f=Fv(c,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:zn([t,f.pathname])),(d.replace?s.replace:s.push)(f,d.state,d)},[t,s,a,i,e])}function gs(){let{matches:e}=S.useContext(Yn),t=e[e.length-1];return t?t.params:{}}function Ha(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=S.useContext(Kn),{matches:o}=S.useContext(Yn),{pathname:i}=Ao(),a=JSON.stringify(Iv(o,s.v7_relativeSplatPath));return S.useMemo(()=>Fv(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function UN(e,t){return qN(e,t)}function qN(e,t,n,s){Ro()||Ee(!1);let{navigator:o}=S.useContext(Kn),{matches:i}=S.useContext(Yn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=Ao(),d;if(t){var f;let C=typeof t=="string"?hs(t):t;u==="/"||(f=C.pathname)!=null&&f.startsWith(u)||Ee(!1),d=C}else d=c;let g=d.pathname||"/",b=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=yN(e,{pathname:b}),N=GN(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:zn([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:zn([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,s);return t&&N?S.createElement(Va.Provider,{value:{location:jo({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},N):N}function VN(){let e=ZN(),t=BN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const HN=S.createElement(VN,null);class KN extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Yn.Provider,{value:this.props.routeContext},S.createElement(Lv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YN(e){let{routeContext:t,match:n,children:s}=e,o=S.useContext(qa);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Yn.Provider,{value:t},s)}function GN(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||Ee(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&s&&s.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=d),f.route.id){let{loaderData:g,errors:b}=n,x=f.route.loader&&g[f.route.id]===void 0&&(!b||b[f.route.id]===void 0);if(f.route.lazy||x){u=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,f,g)=>{let b,x=!1,N=null,C=null;n&&(b=l&&f.route.id?l[f.route.id]:void 0,N=f.route.errorElement||HN,u&&(c<0&&g===0?(x=!0,C=null):c===g&&(x=!0,C=f.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return b?h=N:x?h=C:f.route.Component?h=S.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=d,S.createElement(YN,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?S.createElement(KN,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var zv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zv||{}),fa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fa||{});function QN(e){let t=S.useContext(qa);return t||Ee(!1),t}function XN(e){let t=S.useContext(Mv);return t||Ee(!1),t}function JN(e){let t=S.useContext(Yn);return t||Ee(!1),t}function $v(e){let t=JN(),n=t.matches[t.matches.length-1];return n.route.id||Ee(!1),n.route.id}function ZN(){var e;let t=S.useContext(Lv),n=XN(fa.UseRouteError),s=$v(fa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function eC(){let{router:e}=QN(zv.UseNavigateStable),t=$v(fa.UseNavigateStable),n=S.useRef(!1);return Bv(()=>{n.current=!0}),S.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,jo({fromRouteId:t},i)))},[e,t])}function Ie(e){Ee(!1)}function tC(e){let{basename:t="/",children:n=null,location:s,navigationType:o=On.Pop,navigator:i,static:a=!1,future:l}=e;Ro()&&Ee(!1);let u=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:u,navigator:i,static:a,future:jo({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof s=="string"&&(s=hs(s));let{pathname:d="/",search:f="",hash:g="",state:b=null,key:x="default"}=s,N=S.useMemo(()=>{let C=cs(d,u);return C==null?null:{location:{pathname:C,search:f,hash:g,state:b,key:x},navigationType:o}},[u,d,f,g,b,x,o]);return N==null?null:S.createElement(Kn.Provider,{value:c},S.createElement(Va.Provider,{children:n,value:N}))}function nC(e){let{children:t,location:n}=e;return UN(cu(t),n)}new Promise(()=>{});function cu(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(s,o)=>{if(!S.isValidElement(s))return;let i=[...t,o];if(s.type===S.Fragment){n.push.apply(n,cu(s.props.children,i));return}s.type!==Ie&&Ee(!1),!s.props.index||!s.props.children||Ee(!1);let a={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(a.children=cu(s.props.children,i)),n.push(a)}),n}/**
* React Router DOM v6.26.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},pa.apply(this,arguments)}function Wv(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,i;for(i=0;i<s.length;i++)o=s[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sC(e,t){return e.button===0&&(!t||t==="_self")&&!rC(e)}const oC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],iC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],aC="6";try{window.__reactRouterVersion=aC}catch{}const lC=S.createContext({isTransitioning:!1}),cC="startTransition",vp=nc[cC];function uC(e){let{basename:t,children:n,future:s,window:o}=e,i=S.useRef();i.current==null&&(i.current=vN({window:o,v5Compat:!0}));let a=i.current,[l,u]=S.useState({action:a.action,location:a.location}),{v7_startTransition:c}=s||{},d=S.useCallback(f=>{c&&vp?vp(()=>u(f)):u(f)},[u,c]);return S.useLayoutEffect(()=>a.listen(d),[a,d]),S.createElement(tC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const dC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pC=S.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:i,replace:a,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,g=Wv(t,oC),{basename:b}=S.useContext(Kn),x,N=!1;if(typeof c=="string"&&fC.test(c)&&(x=c,dC))try{let h=new URL(window.location.href),y=c.startsWith("//")?new URL(h.protocol+c):new URL(c),k=cs(y.pathname,b);y.origin===h.origin&&k!=null?c=k+y.search+y.hash:N=!0}catch{}let C=$N(c,{relative:o}),m=hC(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function v(h){s&&s(h),h.defaultPrevented||m(h)}return S.createElement("a",pa({},g,{href:x||C,onClick:N||i?s:v,ref:n,target:u}))}),me=S.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,f=Wv(t,iC),g=Ha(u,{relative:f.relative}),b=Ao(),x=S.useContext(Mv),{navigator:N,basename:C}=S.useContext(Kn),m=x!=null&&vC(g)&&c===!0,v=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,h=b.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(h=h.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=cs(y,C)||y);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=h===v||!a&&h.startsWith(v)&&h.charAt(k)==="/",T=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),_={isActive:O,isPending:T,isTransitioning:m},D=O?s:void 0,z;typeof i=="function"?z=i(_):z=[i,O?"active":null,T?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return S.createElement(pC,pa({},f,{"aria-current":D,className:z,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(_):d)});var uu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uu||(uu={}));var gp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gp||(gp={}));function mC(e){let t=S.useContext(qa);return t||Ee(!1),t}function hC(e,t){let{target:n,replace:s,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,u=vs(),c=Ao(),d=Ha(e,{relative:a});return S.useCallback(f=>{if(sC(f,n)){f.preventDefault();let g=s!==void 0?s:ua(c)===ua(d);u(e,{replace:g,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,u,d,s,o,n,e,i,a,l])}function vC(e,t){t===void 0&&(t={});let n=S.useContext(lC);n==null&&Ee(!1);let{basename:s}=mC(uu.useViewTransitionState),o=Ha(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=cs(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=cs(n.nextLocation.pathname,s)||n.nextLocation.pathname;return da(o.pathname,a)!=null||da(o.pathname,i)!=null}function Uv(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Uv(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Tn(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Uv(e))&&(s&&(s+=" "),s+=t);return s}const No=e=>typeof e=="number"&&!isNaN(e),pr=e=>typeof e=="string",dt=e=>typeof e=="function",Oi=e=>pr(e)||dt(e)?e:null,du=e=>S.isValidElement(e)||pr(e)||dt(e)||No(e);function gC(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=s+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Ka(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:g,playToast:b}=a;const x=s?`${t}--${u}`:t,N=s?`${n}--${u}`:n,C=S.useRef(0);return S.useLayoutEffect(()=>{const m=f.current,v=x.split(" "),h=y=>{y.target===f.current&&(b(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),C.current===0&&y.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),S.useEffect(()=>{const m=f.current,v=()=>{m.removeEventListener("animationend",v),o?gC(m,d,i):d()};g||(c?v():(C.current=1,m.className+=` ${N}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function xp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ge=new Map;let Co=[];const fu=new Set,xC=e=>fu.forEach(t=>t(e)),qv=()=>Ge.size>0;function Vv(e,t){var n;if(t)return!((n=Ge.get(t))==null||!n.isToastActive(e));let s=!1;return Ge.forEach(o=>{o.isToastActive(e)&&(s=!0)}),s}function Hv(e,t){du(e)&&(qv()||Co.push({content:e,options:t}),Ge.forEach(n=>{n.buildToast(e,t)}))}function yp(e,t){Ge.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function yC(e){const{subscribe:t,getSnapshot:n,setProps:s}=S.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const u=function(d,f,g){let b=1,x=0,N=[],C=[],m=[],v=f;const h=new Map,y=new Set,k=()=>{m=Array.from(h.values()),y.forEach(_=>_())},O=_=>{C=_==null?[]:C.filter(D=>D!==_),k()},T=_=>{const{toastId:D,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(D,_),C=[...C,_.props.toastId].filter(Z=>Z!==_.staleId),k(),g(xp(_,Q?"added":"updated")),Q&&dt(z)&&z(S.isValidElement(te)&&te.props)};return{id:d,props:v,observe:_=>(y.add(_),()=>y.delete(_)),toggle:(_,D)=>{h.forEach(z=>{D!=null&&D!==z.props.toastId||dt(z.toggle)&&z.toggle(_)})},removeToast:O,toasts:h,clearQueue:()=>{x-=N.length,N=[]},buildToast:(_,D)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==d:d!==1,ne=h.has(Y)&&ee==null;return re||ne})(D))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=D,F=()=>{O(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(D).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:F,isIn:!1,className:Oi(D.className||v.toastClassName),bodyClassName:Oi(D.bodyClassName||v.bodyClassName),progressClassName:Oi(D.progressClassName||v.progressClassName),autoClose:!D.isLoading&&(R=D.autoClose,A=v.autoClose,R===!1||No(R)&&R>0?R:A),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;dt(K)&&K(S.isValidElement(Y)&&Y.props),g(xp(W,"removed")),h.delete(z),x--,x<0&&(x=0),N.length>0?T(N.shift()):k()}};var R,A;G.closeButton=v.closeButton,D.closeButton===!1||du(D.closeButton)?G.closeButton=D.closeButton:D.closeButton===!0&&(G.closeButton=!du(v.closeButton)||v.closeButton);let B=_;S.isValidElement(_)&&!pr(_.type)?B=S.cloneElement(_,{closeToast:F,toastProps:G,data:te}):dt(_)&&(B=_({closeToast:F,toastProps:G,data:te}));const M={content:B,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?N.push(M):No(Z)?setTimeout(()=>{T(M)},Z):T(M)},setProps(_){v=_},setToggle:(_,D)=>{h.get(_).toggle=D},isToastActive:_=>C.some(D=>D===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,i,xC);Ge.set(a,u);const c=u.observe(l);return Co.forEach(d=>Hv(d.content,d.options)),Co=[],()=>{c(),Ge.delete(a)}},setProps(l){var u;(u=Ge.get(a))==null||u.setProps(l)},getSnapshot(){var l;return(l=Ge.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const o=S.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return o.forEach(l=>{const{position:u}=l.props;a.has(u)||a.set(u,[]),a.get(u).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Vv,count:o==null?void 0:o.length}}function jC(e){const[t,n]=S.useState(!1),[s,o]=S.useState(!1),i=S.useRef(null),a=S.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var g,b;function x(){n(!0)}function N(){n(!1)}function C(h){const y=i.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",m);const h=i.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(b=Ge.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(g.id,g.fn),S.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",x),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",m);const y=i.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:y,bottom:k,left:O,right:T}=i.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=O&&h.clientX<=T&&h.clientY>=y&&h.clientY<=k?N():x()}};return l&&u&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=x)),f&&(v.onClick=h=>{d&&d(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:N,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:v}}function NC(e){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:i,className:a,style:l,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:g}=e;const b=i||u&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(x.transform=`scaleX(${c})`);const N=Tn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),C=dt(a)?a({rtl:d,type:o,defaultClassName:N}):Tn(N,a),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:x,...m}))}let CC=1;const Kv=()=>""+CC++;function bC(e){return e&&(pr(e.toastId)||No(e.toastId))?e.toastId:Kv()}function Xs(e,t){return Hv(e,t),t.toastId}function ma(e,t){return{...t,type:t&&t.type||e,toastId:bC(t)}}function ni(e){return(t,n)=>Xs(t,ma(e,n))}function oe(e,t){return Xs(e,ma("default",t))}oe.loading=(e,t)=>Xs(e,ma("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),oe.promise=function(e,t,n){let s,{pending:o,error:i,success:a}=t;o&&(s=pr(o)?oe.loading(o,n):oe.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,g)=>{if(f==null)return void oe.dismiss(s);const b={type:d,...l,...n,data:g},x=pr(f)?{render:f}:f;return s?oe.update(s,{...b,...x}):oe(x.render,{...b,...x}),g},c=dt(e)?e():e;return c.then(d=>u("success",a,d)).catch(d=>u("error",i,d)),c},oe.success=ni("success"),oe.info=ni("info"),oe.error=ni("error"),oe.warning=ni("warning"),oe.warn=oe.warning,oe.dark=(e,t)=>Xs(e,ma("default",{theme:"dark",...t})),oe.dismiss=function(e){(function(t){var n;if(qv()){if(t==null||pr(n=t)||No(n))Ge.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Ge.get(t.containerId);s?s.removeToast(t.id):Ge.forEach(o=>{o.removeToast(t.id)})}}else Co=Co.filter(s=>t!=null&&s.options.toastId!==t)})(e)},oe.clearWaitingQueue=function(e){e===void 0&&(e={}),Ge.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},oe.isActive=Vv,oe.update=function(e,t){t===void 0&&(t={});const n=((s,o)=>{var i;let{containerId:a}=o;return(i=Ge.get(a||1))==null?void 0:i.toasts.get(s)})(e,t);if(n){const{props:s,content:o}=n,i={delay:100,...s,...t,toastId:t.toastId||e,updateId:Kv()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Xs(a,i)}},oe.done=e=>{oe.update(e,{progress:1})},oe.onChange=function(e){return fu.add(e),()=>{fu.delete(e)}},oe.play=e=>yp(!0,e),oe.pause=e=>yp(!1,e);const wC=typeof window<"u"?S.useLayoutEffect:S.useEffect,ri=e=>{let{theme:t,type:n,isLoading:s,...o}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Ql={info:function(e){return I.createElement(ri,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(ri,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(ri,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(ri,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},SC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o,playToast:i}=jC(e),{closeButton:a,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:g,transition:b,position:x,className:N,style:C,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:y,updateId:k,role:O,progress:T,rtl:_,toastId:D,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,F=Tn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=dt(N)?N({rtl:_,position:x,type:d,defaultClassName:F}):Tn(F,N),G=function(M){let{theme:W,type:K,isLoading:Y,icon:ee}=M,re=null;const ne={theme:W,type:K};return ee===!1||(dt(ee)?re=ee({...ne,isLoading:Y}):S.isValidElement(ee)?re=S.cloneElement(ee,ne):Y?re=Ql.spinner():(se=>se in Ql)(K)&&(re=Ql[K](ne))),re}(e),R=!!T||!u,A={closeToast:g,type:d,theme:Z};let B=null;return a===!1||(B=dt(a)?a(A):S.isValidElement(a)?S.cloneElement(a,A):function(M){let{closeToast:W,theme:K,ariaLabel:Y="close"}=M;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(A)),I.createElement(b,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:s,playToast:i},I.createElement("div",{id:D,onClick:c,"data-in":H,className:U,...o,style:C,ref:s},I.createElement("div",{...H&&{role:O},className:dt(m)?m({type:d}):Tn("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:Tn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),B,I.createElement(NC,{...k&&!R?{key:`pb-${k}`}:{},rtl:_,theme:Z,delay:u,isRunning:t,isIn:H,closeToast:g,hide:f,type:d,style:y,className:h,controlledProgress:R,progress:T||0})))},Ya=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},kC=Ka(Ya("bounce",!0));Ka(Ya("slide",!0));Ka(Ya("zoom"));Ka(Ya("flip"));const EC={position:"top-right",transition:kC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function PC(e){let t={...EC,...e};const n=e.stacked,[s,o]=S.useState(!0),i=S.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=yC(t),{className:c,style:d,rtl:f,containerId:g}=t;function b(N){const C=Tn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":f});return dt(c)?c({position:N,rtl:f,defaultClassName:C}):Tn(C,Oi(c))}function x(){n&&(o(!0),oe.play())}return wC(()=>{if(n){var N;const C=i.current.querySelectorAll('[data-in="true"]'),m=12,v=(N=t.position)==null?void 0:N.includes("top");let h=0,y=0;Array.from(C).reverse().forEach((k,O)=>{const T=k;T.classList.add("Toastify__toast--stacked"),O>0&&(T.dataset.collapsed=`${s}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:m*O);T.style.setProperty("--y",`${v?_:-1*_}px`),T.style.setProperty("--g",`${m}`),T.style.setProperty("--s",""+(1-(s?y:0))),h+=T.offsetHeight,y+=.025})}},[s,u,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),oe.pause())},onMouseLeave:x},a((N,C)=>{const m=C.length?{...d}:{...d,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:m,key:`container-${N}`},C.map(v=>{let{content:h,props:y}=v;return I.createElement(SC,{...y,stacked:n,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},h)}))}))}const Ze=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(me,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(me,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(me,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(me,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},_C="/assets/logo-Cb1x1exd.png",Me=()=>{var o,i;const{user:e}=Re(a=>({...a.auth})),t=yt(),n=vs(),s=()=>{t(aN()),n("/")};return r.jsx(r.Fragment,{children:r.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:_C,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(me,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(me,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(me,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(me,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(me,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(me,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(o=e==null?void 0:e.result)!=null&&o._id?r.jsx(me,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(me,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(i=e==null?void 0:e.result)!=null&&i._id?r.jsx(me,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:s,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(me,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},OC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsx("div",{className:"carousel-item active",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),r.jsx(Ze,{})]}),TC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(Ze,{})]}),RC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(Ze,{})]});var tn=function(){return tn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tn.apply(this,arguments)};function AC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.fill)!==null&&n!==void 0?n:"#fff",u=(s=e.stroke)!==null&&s!==void 0?s:"transparent",c=e.fillOpacity,d=e.strokeOpacity;return I.createElement("svg",tn({},tn(tn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:80,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:55}),{viewBox:"0 0 55 80"}),I.createElement("g",{transform:"matrix(1 0 0 -1 0 80)"},I.createElement("rect",tn({width:10,height:20,rx:3},{fill:l,stroke:u,fillOpacity:c,strokeOpacity:d}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(4.3/a,"s"),values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",tn({x:15,width:10,height:80,rx:3},{fill:l,stroke:u,fillOpacity:c,strokeOpacity:d}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(2/a,"s"),values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",tn({x:30,width:10,height:50,rx:3},{fill:l,stroke:u,fillOpacity:c,strokeOpacity:d}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(1.4/a,"s"),values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",tn({x:45,width:10,height:30,rx:3},{fill:l,stroke:u,fillOpacity:c,strokeOpacity:d}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(2/a,"s"),values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}))))}var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Cn.apply(this,arguments)};function IC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=e.fill,l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",u=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Cn({},Cn(Cn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:57,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:57}),{viewBox:"0 0 57 57"}),I.createElement("g",{transform:"translate(1 1)",strokeWidth:2,fill:"none",fillRule:"evenodd"},I.createElement("circle",Cn({cx:5,cy:50,r:5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/i,"s"),values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",begin:"0s",dur:"".concat(2.2/i,"s"),values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",Cn({cx:27,cy:5,r:5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/i,"s"),from:5,to:5,values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",begin:"0s",dur:"".concat(2.2/i,"s"),from:27,to:27,values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",Cn({cx:49,cy:50,r:5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/i,"s"),values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",from:49,to:49,begin:"0s",dur:"".concat(2.2/i,"s"),values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}))))}var Ht=function(){return Ht=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ht.apply(this,arguments)};function FC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,u=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Ht({},Ht(Ht({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:140,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:135}),{viewBox:"0 0 135 140"}),I.createElement("rect",Ht({y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Ht({x:30,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Ht({x:60,width:15,height:140,rx:6},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Ht({x:90,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Ht({x:120,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var sr=function(){return sr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},sr.apply(this,arguments)};function DC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,u=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",sr({},sr(sr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:135,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:135}),{viewBox:"0 0 135 135"}),I.createElement("path",sr({d:"M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"-360 67 67",dur:"".concat(2.5/i,"s"),repeatCount:"indefinite"})),I.createElement("path",sr({d:"M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"360 67 67",dur:"".concat(8/i,"s"),repeatCount:"indefinite"})))}var et=function(){return et=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},et.apply(this,arguments)};function MC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,u=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",et({},et(et({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:105,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:105}),{viewBox:"0 0 105 105"}),I.createElement("circle",et({cx:12.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:12.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:52.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:52.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:92.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:92.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:12.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:52.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",et({cx:92.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})))}var bn=function(){return bn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bn.apply(this,arguments)};function LC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,u=e.fillOpacity;return I.createElement("svg",bn({},bn(bn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:64,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:140}),{viewBox:"0 0 140 64"}),I.createElement("path",bn({d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z",fillOpacity:u},{fill:a,stroke:l}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.4/i,"s"),values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("path",bn({d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z",fillOpacity:u},{fill:a,stroke:l}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"".concat(1.4/i,"s"),values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("path",bn({d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"},{fill:a,stroke:l})))}var Ur=function(){return Ur=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ur.apply(this,arguments)};function BC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",u=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Ur({},Ur(Ur({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:38}),{viewBox:"0 0 38 38",overflow:"visible"}),I.createElement("g",Ur({transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},{stroke:l,strokeWidth:u,strokeOpacity:c}),I.createElement("circle",{strokeOpacity:.5,cx:18,cy:18,r:18}),I.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(1/a,"s"),repeatCount:"indefinite"}))))}var qr=function(){return qr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},qr.apply(this,arguments)};function zC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",u=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",qr({},qr(qr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:44,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:44}),{viewBox:"0 0 44 44"}),I.createElement("g",qr({fill:"none",fillRule:"evenodd"},{stroke:l,strokeWidth:u,strokeOpacity:c}),I.createElement("circle",{cx:22,cy:22,r:1},I.createElement("animate",{attributeName:"r",begin:"0s",dur:"".concat(1.8/a,"s"),values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"".concat(1.8/a,"s"),values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:1},I.createElement("animate",{attributeName:"r",begin:"-0.9s",dur:"".concat(1.8/a,"s"),values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"".concat(1.8/a,"s"),values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}))))}var Vr=function(){return Vr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vr.apply(this,arguments)};function $C(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",u=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Vr({},Vr(Vr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:45,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:45}),{viewBox:"0 0 45 45"}),I.createElement("g",Vr({fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},{stroke:l,strokeWidth:u,strokeOpacity:c}),I.createElement("circle",{cx:22,cy:22,r:6},I.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"".concat(3/a,"s"),values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"".concat(3/a,"s"),values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"".concat(3/a,"s"),values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:6},I.createElement("animate",{attributeName:"r",begin:"3s",dur:"".concat(3/a,"s"),values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"".concat(3/a,"s"),values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"".concat(3/a,"s"),values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:8},I.createElement("animate",{attributeName:"r",begin:"0s",dur:"".concat(1.5/a,"s"),values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))}var Hr=function(){return Hr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hr.apply(this,arguments)};function WC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,u=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Hr({},Hr(Hr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:58,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:58}),{viewBox:"0 0 58 58"}),I.createElement("g",Hr({transform:"translate(2 1)",fillRule:"evenodd"},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("circle",{cx:42.601,cy:11.462,r:5},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"1;0;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:49.063,cy:27.063,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;1;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:42.601,cy:42.663,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;1;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:27,cy:49.125,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;1;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:11.399,cy:42.663,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;1;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:4.938,cy:27.063,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;0;1;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:11.399,cy:11.462,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;0;0;1;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:27,cy:5,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;0;0;0;1",calcMode:"linear",repeatCount:"indefinite"}))))}var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Kr.apply(this,arguments)};function UC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",u=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Kr({},Kr(Kr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:38}),{viewBox:"0 0 38 38"}),I.createElement("defs",null,I.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"prefix__a"},I.createElement("stop",{stopOpacity:0,offset:"0%"}),I.createElement("stop",{stopOpacity:.631,offset:"63.146%"}),I.createElement("stop",{offset:"100%"}))),I.createElement("g",{transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},I.createElement("path",Kr({d:"M36 18c0-9.94-8.06-18-18-18"},{stroke:l,strokeWidth:u,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(.9/a,"s"),repeatCount:"indefinite"})),I.createElement("circle",{cx:36,cy:18,r:1},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(.9/a,"s"),repeatCount:"indefinite"}))))}var wn=function(){return wn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wn.apply(this,arguments)};function qC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,u=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",wn({},wn(wn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:30,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:120}),{viewBox:"0 0 120 30"}),I.createElement("circle",wn({cx:15,cy:15,r:15},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:"".concat(.8/i,"s"),values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:"".concat(.8/i,"s"),values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",wn({cx:60,cy:15,r:9},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:9,to:9,begin:"0s",dur:"".concat(.8/i,"s"),values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:.5,to:.5,begin:"0s",dur:"".concat(.8/i,"s"),values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",wn({cx:105,cy:15,r:15},{fill:a,stroke:l,fillOpacity:u,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:"".concat(.8/i,"s"),values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:"".concat(.8/i,"s"),values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var VC=AC,HC=IC,KC=FC,YC=DC,GC=MC,QC=LC,XC=BC,JC=zC,ZC=$C,eb=WC,tb=UC,nb=qC,Yv={Audio:VC,BallTriangle:HC,Bars:KC,Circles:YC,Grid:GC,Hearts:QC,Oval:XC,Puff:JC,Rings:ZC,SpinningCircles:eb,TailSpin:tb,ThreeDots:nb};const rb={title:"None",firstName:"",middleName:"",lastName:"",email:"",password:"",confirmPassword:"",termsconditions:"",userType:""},sb=()=>{const[e,t]=S.useState(rb),[n,s]=S.useState(!1),{loading:o,error:i}=Re(k=>({...k.auth})),{title:a,email:l,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:g,termsconditions:b,userType:x}=e,N=yt(),C=vs();S.useEffect(()=>{i&&oe.error(i)},[i]),S.useEffect(()=>{s(a!=="None"&&l&&u&&c&&d&&f&&g&&b&&x!=="")},[a,l,u,c,d,f,g,b,x]);const m=k=>{if(k.preventDefault(),u!==g)return oe.error("Password should match");n?N(Ci({formValue:e,navigate:C,toast:oe})):oe.error("Please fill in all fields and select all checkboxes")},v=k=>k.charAt(0).toUpperCase()+k.slice(1),h=k=>{const{name:O,value:T,type:_,checked:D}=k.target;t(_==="checkbox"?z=>({...z,[O]:D}):z=>({...z,[O]:O==="email"||O==="password"||O==="confirmPassword"?T:v(T)}))},y=k=>{t(O=>({...O,userType:k.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:y,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:y,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:b,name:"termsconditions",checked:b,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&r.jsx(Yv.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},ob={email:"",password:""},ib=()=>{const[e,t]=S.useState(ob),{loading:n,error:s}=Re(d=>({...d.auth})),{email:o,password:i}=e,a=yt(),l=vs();S.useEffect(()=>{s&&oe.error(s)},[s]);const u=d=>{d.preventDefault(),o&&i&&a(Ni({formValue:e,navigate:l,toast:oe}))},c=d=>{let{name:f,value:g}=d.target;t({...e,[f]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:i,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(Yv.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(me,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(me,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(Ze,{})]})},Ti="/assets/samplepic-BM_cnzgz.jpg";var Gv={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Fg,function(){return function(n){function s(i){if(o[i])return o[i].exports;var a=o[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}var o={};return s.m=n,s.c=o,s.p="",s(0)}([function(n,s,o){function i(b){return b&&b.__esModule?b:{default:b}}function a(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function l(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function u(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function b(x,N){for(var C=0;C<N.length;C++){var m=N[C];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,N,C){return N&&b(x.prototype,N),C&&b(x,C),x}}(),d=o(36),f=i(d),g=function(b){function x(N){a(this,x);var C=l(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,N));return C.state={files:[]},C}return u(x,b),c(x,[{key:"handleChange",value:function(N){for(var C=this,m=N.target.files,v=[],h=function(){var k=m[y],O=new FileReader;O.readAsDataURL(k),O.onload=function(){var T={name:k.name,type:k.type,size:Math.round(k.size/1e3)+" kB",base64:O.result,file:k};v.push(T),v.length==m.length&&(C.props.multiple?C.props.onDone(v):C.props.onDone(v[0]))}},y=0;y<m.length;y++)h()}},{key:"render",value:function(){return f.default.createElement("input",{type:"file",onChange:this.handleChange.bind(this),multiple:this.props.multiple})}}]),x}(f.default.Component);s.default=g,g.defaultProps={multiple:!1}},function(n,s){function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(h){if(g===setTimeout)return setTimeout(h,0);if((g===o||!g)&&setTimeout)return g=setTimeout,setTimeout(h,0);try{return g(h,0)}catch{try{return g.call(null,h,0)}catch{return g.call(this,h,0)}}}function l(h){if(b===clearTimeout)return clearTimeout(h);if((b===i||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(h);try{return b(h)}catch{try{return b.call(null,h)}catch{return b.call(this,h)}}}function u(){m&&N&&(m=!1,N.length?C=N.concat(C):v=-1,C.length&&c())}function c(){if(!m){var h=a(u);m=!0;for(var y=C.length;y;){for(N=C,C=[];++v<y;)N&&N[v].run();v=-1,y=C.length}N=null,m=!1,l(h)}}function d(h,y){this.fun=h,this.array=y}function f(){}var g,b,x=n.exports={};(function(){try{g=typeof setTimeout=="function"?setTimeout:o}catch{g=o}try{b=typeof clearTimeout=="function"?clearTimeout:i}catch{b=i}})();var N,C=[],m=!1,v=-1;x.nextTick=function(h){var y=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)y[k-1]=arguments[k];C.push(new d(h,y)),C.length!==1||m||a(c)},d.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={},x.on=f,x.addListener=f,x.once=f,x.off=f,x.removeListener=f,x.removeAllListeners=f,x.emit=f,x.prependListener=f,x.prependOnceListener=f,x.listeners=function(h){return[]},x.binding=function(h){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(h){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},function(n,s,o){(function(i){function a(u,c,d,f,g,b,x,N){if(l(c),!u){var C;if(c===void 0)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[d,f,g,b,x,N],v=0;C=new Error(c.replace(/%s/g,function(){return m[v++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}}var l=function(u){};i.env.NODE_ENV!=="production"&&(l=function(u){if(u===void 0)throw new Error("invariant requires an error message argument")}),n.exports=a}).call(s,o(1))},function(n,s,o){(function(i){var a=o(9),l=a;if(i.env.NODE_ENV!=="production"){var u=function(c){for(var d=arguments.length,f=Array(d>1?d-1:0),g=1;g<d;g++)f[g-1]=arguments[g];var b=0,x="Warning: "+c.replace(/%s/g,function(){return f[b++]});typeof console<"u"&&console.error(x);try{throw new Error(x)}catch{}};l=function(c,d){if(d===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(d.indexOf("Failed Composite propType: ")!==0&&!c){for(var f=arguments.length,g=Array(f>2?f-2:0),b=2;b<f;b++)g[b-2]=arguments[b];u.apply(void 0,[d].concat(g))}}}n.exports=l}).call(s,o(1))},function(n,s,o){(function(i){function a(y){if(i.env.NODE_ENV!=="production"&&C.call(y,"ref")){var k=Object.getOwnPropertyDescriptor(y,"ref").get;if(k&&k.isReactWarning)return!1}return y.ref!==void 0}function l(y){if(i.env.NODE_ENV!=="production"&&C.call(y,"key")){var k=Object.getOwnPropertyDescriptor(y,"key").get;if(k&&k.isReactWarning)return!1}return y.key!==void 0}function u(y,k){var O=function(){d||(d=!0,i.env.NODE_ENV!=="production"&&x(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",k))};O.isReactWarning=!0,Object.defineProperty(y,"key",{get:O,configurable:!0})}function c(y,k){var O=function(){f||(f=!0,i.env.NODE_ENV!=="production"&&x(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",k))};O.isReactWarning=!0,Object.defineProperty(y,"ref",{get:O,configurable:!0})}var d,f,g=o(6),b=o(7),x=o(3),N=o(8),C=Object.prototype.hasOwnProperty,m=o(15),v={key:!0,ref:!0,__self:!0,__source:!0},h=function(y,k,O,T,_,D,z){var H={$$typeof:m,type:y,key:k,ref:O,props:z,_owner:D};return i.env.NODE_ENV!=="production"&&(H._store={},N?(Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(H,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_})):(H._store.validated=!1,H._self=T,H._source=_),Object.freeze&&(Object.freeze(H.props),Object.freeze(H))),H};h.createElement=function(y,k,O){var T,_={},D=null,z=null,H=null,te=null;if(k!=null){a(k)&&(z=k.ref),l(k)&&(D=""+k.key),H=k.__self===void 0?null:k.__self,te=k.__source===void 0?null:k.__source;for(T in k)C.call(k,T)&&!v.hasOwnProperty(T)&&(_[T]=k[T])}var Q=arguments.length-2;if(Q===1)_.children=O;else if(Q>1){for(var Z=Array(Q),F=0;F<Q;F++)Z[F]=arguments[F+2];i.env.NODE_ENV!=="production"&&Object.freeze&&Object.freeze(Z),_.children=Z}if(y&&y.defaultProps){var U=y.defaultProps;for(T in U)_[T]===void 0&&(_[T]=U[T])}if(i.env.NODE_ENV!=="production"&&(D||z)&&(typeof _.$$typeof>"u"||_.$$typeof!==m)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;D&&u(_,G),z&&c(_,G)}return h(y,D,z,H,te,b.current,_)},h.createFactory=function(y){var k=h.createElement.bind(null,y);return k.type=y,k},h.cloneAndReplaceKey=function(y,k){var O=h(y.type,k,y.ref,y._self,y._source,y._owner,y.props);return O},h.cloneElement=function(y,k,O){var T,_=g({},y.props),D=y.key,z=y.ref,H=y._self,te=y._source,Q=y._owner;if(k!=null){a(k)&&(z=k.ref,Q=b.current),l(k)&&(D=""+k.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(T in k)C.call(k,T)&&!v.hasOwnProperty(T)&&(k[T]===void 0&&Z!==void 0?_[T]=Z[T]:_[T]=k[T])}var F=arguments.length-2;if(F===1)_.children=O;else if(F>1){for(var U=Array(F),G=0;G<F;G++)U[G]=arguments[G+2];_.children=U}return h(y.type,D,z,H,te,Q,_)},h.isValidElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===m},n.exports=h}).call(s,o(1))},function(n,s){function o(i){for(var a=arguments.length-1,l="Minified React error #"+i+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+i,u=0;u<a;u++)l+="&args[]="+encodeURIComponent(arguments[u+1]);l+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var c=new Error(l);throw c.name="Invariant Violation",c.framesToPop=1,c}n.exports=o},function(n,s){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function i(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var d={},f=0;f<10;f++)d["_"+String.fromCharCode(f)]=f;var g=Object.getOwnPropertyNames(d).map(function(x){return d[x]});if(g.join("")!=="0123456789")return!1;var b={};return"abcdefghijklmnopqrst".split("").forEach(function(x){b[x]=x}),Object.keys(Object.assign({},b)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;n.exports=i()?Object.assign:function(c,d){for(var f,g,b=o(c),x=1;x<arguments.length;x++){f=Object(arguments[x]);for(var N in f)l.call(f,N)&&(b[N]=f[N]);if(a){g=a(f);for(var C=0;C<g.length;C++)u.call(f,g[C])&&(b[g[C]]=f[g[C]])}}return b}},function(n,s){var o={current:null};n.exports=o},function(n,s,o){(function(i){var a=!1;if(i.env.NODE_ENV!=="production")try{Object.defineProperty({},"x",{get:function(){}}),a=!0}catch{}n.exports=a}).call(s,o(1))},function(n,s){function o(a){return function(){return a}}var i=function(){};i.thatReturns=o,i.thatReturnsFalse=o(!1),i.thatReturnsTrue=o(!0),i.thatReturnsNull=o(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(a){return a},n.exports=i},function(n,s,o){(function(i){function a(F){var U=Function.prototype.toString,G=Object.prototype.hasOwnProperty,R=RegExp("^"+U.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var A=U.call(F);return R.test(A)}catch{return!1}}function l(F){var U=g(F);if(U){var G=U.childIDs;b(F),G.forEach(l)}}function u(F,U,G){return`
in `+(F||"Unknown")+(U?" (at "+U.fileName.replace(/^.*[\\\/]/,"")+":"+U.lineNumber+")":G?" (created by "+G+")":"")}function c(F){return F==null?"#empty":typeof F=="string"||typeof F=="number"?"#text":typeof F.type=="string"?F.type:F.type.displayName||F.type.name||"Unknown"}function d(F){var U,G=Z.getDisplayName(F),R=Z.getElement(F),A=Z.getOwnerID(F);return A&&(U=Z.getDisplayName(A)),i.env.NODE_ENV!=="production"&&k(R,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",F),u(G,R&&R._source,U)}var f,g,b,x,N,C,m,v=o(5),h=o(7),y=o(2),k=o(3),O=typeof Array.from=="function"&&typeof Map=="function"&&a(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&a(Map.prototype.keys)&&typeof Set=="function"&&a(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&a(Set.prototype.keys);if(O){var T=new Map,_=new Set;f=function(F,U){T.set(F,U)},g=function(F){return T.get(F)},b=function(F){T.delete(F)},x=function(){return Array.from(T.keys())},N=function(F){_.add(F)},C=function(F){_.delete(F)},m=function(){return Array.from(_.keys())}}else{var D={},z={},H=function(F){return"."+F},te=function(F){return parseInt(F.substr(1),10)};f=function(F,U){var G=H(F);D[G]=U},g=function(F){var U=H(F);return D[U]},b=function(F){var U=H(F);delete D[U]},x=function(){return Object.keys(D).map(te)},N=function(F){var U=H(F);z[U]=!0},C=function(F){var U=H(F);delete z[U]},m=function(){return Object.keys(z).map(te)}}var Q=[],Z={onSetChildren:function(F,U){var G=g(F);G||(i.env.NODE_ENV!=="production"?y(!1,"Item must have been set"):v("144")),G.childIDs=U;for(var R=0;R<U.length;R++){var A=U[R],B=g(A);B||(i.env.NODE_ENV!=="production"?y(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."):v("140")),B.childIDs==null&&typeof B.element=="object"&&B.element!=null&&(i.env.NODE_ENV!=="production"?y(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."):v("141")),B.isMounted||(i.env.NODE_ENV!=="production"?y(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."):v("71")),B.parentID==null&&(B.parentID=F),B.parentID!==F&&(i.env.NODE_ENV!=="production"?y(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",A,B.parentID,F):v("142",A,B.parentID,F))}},onBeforeMountComponent:function(F,U,G){var R={element:U,parentID:G,text:null,childIDs:[],isMounted:!1,updateCount:0};f(F,R)},onBeforeUpdateComponent:function(F,U){var G=g(F);G&&G.isMounted&&(G.element=U)},onMountComponent:function(F){var U=g(F);U||(i.env.NODE_ENV!=="production"?y(!1,"Item must have been set"):v("144")),U.isMounted=!0;var G=U.parentID===0;G&&N(F)},onUpdateComponent:function(F){var U=g(F);U&&U.isMounted&&U.updateCount++},onUnmountComponent:function(F){var U=g(F);if(U){U.isMounted=!1;var G=U.parentID===0;G&&C(F)}Q.push(F)},purgeUnmountedComponents:function(){if(!Z._preventPurging){for(var F=0;F<Q.length;F++){var U=Q[F];l(U)}Q.length=0}},isMounted:function(F){var U=g(F);return!!U&&U.isMounted},getCurrentStackAddendum:function(F){var U="";if(F){var G=c(F),R=F._owner;U+=u(G,F._source,R&&R.getName())}var A=h.current,B=A&&A._debugID;return U+=Z.getStackAddendumByID(B)},getStackAddendumByID:function(F){for(var U="";F;)U+=d(F),F=Z.getParentID(F);return U},getChildIDs:function(F){var U=g(F);return U?U.childIDs:[]},getDisplayName:function(F){var U=Z.getElement(F);return U?c(U):null},getElement:function(F){var U=g(F);return U?U.element:null},getOwnerID:function(F){var U=Z.getElement(F);return U&&U._owner?U._owner._debugID:null},getParentID:function(F){var U=g(F);return U?U.parentID:null},getSource:function(F){var U=g(F),G=U?U.element:null,R=G!=null?G._source:null;return R},getText:function(F){var U=Z.getElement(F);return typeof U=="string"?U:typeof U=="number"?""+U:null},getUpdateCount:function(F){var U=g(F);return U?U.updateCount:0},getRootIDs:m,getRegisteredIDs:x,pushNonStandardWarningStack:function(F,U){if(typeof console.reactStack=="function"){var G=[],R=h.current,A=R&&R._debugID;try{for(F&&G.push({name:A?Z.getDisplayName(A):null,fileName:U?U.fileName:null,lineNumber:U?U.lineNumber:null});A;){var B=Z.getElement(A),M=Z.getParentID(A),W=Z.getOwnerID(A),K=W?Z.getDisplayName(W):null,Y=B&&B._source;G.push({name:K,fileName:Y?Y.fileName:null,lineNumber:Y?Y.lineNumber:null}),A=M}}catch{}console.reactStack(G)}},popNonStandardWarningStack:function(){typeof console.reactStackEnd=="function"&&console.reactStackEnd()}};n.exports=Z}).call(s,o(1))},function(n,s,o){(function(i){var a=function(){};if(i.env.NODE_ENV!=="production"){var l=function(u){for(var c=arguments.length,d=Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];var g=0,b="Warning: "+u.replace(/%s/g,function(){return d[g++]});typeof console<"u"&&console.warn(b);try{throw new Error(b)}catch{}};a=function(u,c){if(c===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!u){for(var d=arguments.length,f=Array(d>2?d-2:0),g=2;g<d;g++)f[g-2]=arguments[g];l.apply(void 0,[c].concat(f))}}}n.exports=a}).call(s,o(1))},function(n,s,o){(function(i){var a={};i.env.NODE_ENV!=="production"&&Object.freeze(a),n.exports=a}).call(s,o(1))},function(n,s){var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=o},function(n,s,o){(function(i){function a(h,y,k){this.props=h,this.context=y,this.refs=b,this.updater=k||f}function l(h,y,k){this.props=h,this.context=y,this.refs=b,this.updater=k||f}function u(){}var c=o(5),d=o(6),f=o(17),g=o(8),b=o(12),x=o(2),N=o(11);if(a.prototype.isReactComponent={},a.prototype.setState=function(h,y){typeof h!="object"&&typeof h!="function"&&h!=null&&(i.env.NODE_ENV!=="production"?x(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):c("85")),this.updater.enqueueSetState(this,h),y&&this.updater.enqueueCallback(this,y,"setState")},a.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this),h&&this.updater.enqueueCallback(this,h,"forceUpdate")},i.env.NODE_ENV!=="production"){var C={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},m=function(h,y){g&&Object.defineProperty(a.prototype,h,{get:function(){N(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})};for(var v in C)C.hasOwnProperty(v)&&m(v,C[v])}u.prototype=a.prototype,l.prototype=new u,l.prototype.constructor=l,d(l.prototype,a.prototype),l.prototype.isPureReactComponent=!0,n.exports={Component:a,PureComponent:l}}).call(s,o(1))},function(n,s){var o=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103;n.exports=o},function(n,s,o){(function(i){function a(){if(g.current){var O=g.current.getName();if(O)return" Check the render method of `"+O+"`."}return""}function l(O){if(O!=null&&O.__source!==void 0){var T=O.__source,_=T.fileName.replace(/^.*[\\\/]/,""),D=T.lineNumber;return" Check your code at "+_+":"+D+"."}return""}function u(O){var T=a();if(!T){var _=typeof O=="string"?O:O.displayName||O.name;_&&(T=" Check the top-level render call using <"+_+">.")}return T}function c(O,T){if(O._store&&!O._store.validated&&O.key==null){O._store.validated=!0;var _=y.uniqueKey||(y.uniqueKey={}),D=u(T);if(!_[D]){_[D]=!0;var z="";O&&O._owner&&O._owner!==g.current&&(z=" It was passed a child from "+O._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',D,z,b.getCurrentStackAddendum(O))}}}function d(O,T){if(typeof O=="object"){if(Array.isArray(O))for(var _=0;_<O.length;_++){var D=O[_];x.isValidElement(D)&&c(D,T)}else if(x.isValidElement(O))O._store&&(O._store.validated=!0);else if(O){var z=m(O);if(z&&z!==O.entries)for(var H,te=z.call(O);!(H=te.next()).done;)x.isValidElement(H.value)&&c(H.value,T)}}}function f(O){var T=O.type;if(typeof T=="function"){var _=T.displayName||T.name;T.propTypes&&N(T.propTypes,O.props,"prop",_,O,null),typeof T.getDefaultProps=="function"&&(i.env.NODE_ENV!=="production"&&v(T.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}var g=o(7),b=o(10),x=o(4),N=o(32),C=o(8),m=o(18),v=o(3),h=o(11),y={},k={createElement:function(O,T,_){var D=typeof O=="string"||typeof O=="function";if(!D&&typeof O!="function"&&typeof O!="string"){var z="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in.");var H=l(T);z+=H||a(),z+=b.getCurrentStackAddendum();var te=T!=null&&T.__source!==void 0?T.__source:null;b.pushNonStandardWarningStack(!0,te),i.env.NODE_ENV!=="production"&&v(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O==null?O:typeof O,z),b.popNonStandardWarningStack()}var Q=x.createElement.apply(this,arguments);if(Q==null)return Q;if(D)for(var Z=2;Z<arguments.length;Z++)d(arguments[Z],O);return f(Q),Q},createFactory:function(O){var T=k.createElement.bind(null,O);return T.type=O,i.env.NODE_ENV!=="production"&&C&&Object.defineProperty(T,"type",{enumerable:!1,get:function(){return h(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:O}),O}}),T},cloneElement:function(O,T,_){for(var D=x.cloneElement.apply(this,arguments),z=2;z<arguments.length;z++)d(arguments[z],D.type);return f(D),D}};n.exports=k}).call(s,o(1))},function(n,s,o){(function(i){function a(c,d){if(i.env.NODE_ENV!=="production"){var f=c.constructor;i.env.NODE_ENV!=="production"&&l(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",d,d,f&&(f.displayName||f.name)||"ReactClass")}}var l=o(3),u={isMounted:function(c){return!1},enqueueCallback:function(c,d){},enqueueForceUpdate:function(c){a(c,"forceUpdate")},enqueueReplaceState:function(c,d){a(c,"replaceState")},enqueueSetState:function(c,d){a(c,"setState")}};n.exports=u}).call(s,o(1))},function(n,s){function o(l){var u=l&&(i&&l[i]||l[a]);if(typeof u=="function")return u}var i=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";n.exports=o},function(n,s,o){(function(i){function a(x){return x}function l(x,N,C){function m(R,A,B){for(var M in A)A.hasOwnProperty(M)&&i.env.NODE_ENV!=="production"&&f(typeof A[M]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",R.displayName||"ReactClass",g[B],M)}function v(R,A){var B=te.hasOwnProperty(A)?te[A]:null;U.hasOwnProperty(A)&&d(B==="OVERRIDE_BASE","ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",A),R&&d(B==="DEFINE_MANY"||B==="DEFINE_MANY_MERGED","ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",A)}function h(R,A){if(A){d(typeof A!="function","ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),d(!N(A),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var B=R.prototype,M=B.__reactAutoBindPairs;A.hasOwnProperty(b)&&Q.mixins(R,A.mixins);for(var W in A)if(A.hasOwnProperty(W)&&W!==b){var K=A[W],Y=B.hasOwnProperty(W);if(v(Y,W),Q.hasOwnProperty(W))Q[W](R,K);else{var ee=te.hasOwnProperty(W),re=typeof K=="function",ne=re&&!ee&&!Y&&A.autobind!==!1;if(ne)M.push(W,K),B[W]=K;else if(Y){var se=te[W];d(ee&&(se==="DEFINE_MANY_MERGED"||se==="DEFINE_MANY"),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",se,W),se==="DEFINE_MANY_MERGED"?B[W]=O(B[W],K):se==="DEFINE_MANY"&&(B[W]=T(B[W],K))}else B[W]=K,i.env.NODE_ENV!=="production"&&typeof K=="function"&&A.displayName&&(B[W].displayName=A.displayName+"_"+W)}}}else if(i.env.NODE_ENV!=="production"){var ae=typeof A,ce=ae==="object"&&A!==null;i.env.NODE_ENV!=="production"&&f(ce,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",R.displayName||"ReactClass",A===null?null:ae)}}function y(R,A){if(A)for(var B in A){var M=A[B];if(A.hasOwnProperty(B)){var W=B in Q;d(!W,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',B);var K=B in R;d(!K,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",B),R[B]=M}}}function k(R,A){d(R&&A&&typeof R=="object"&&typeof A=="object","mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var B in A)A.hasOwnProperty(B)&&(d(R[B]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",B),R[B]=A[B]);return R}function O(R,A){return function(){var B=R.apply(this,arguments),M=A.apply(this,arguments);if(B==null)return M;if(M==null)return B;var W={};return k(W,B),k(W,M),W}}function T(R,A){return function(){R.apply(this,arguments),A.apply(this,arguments)}}function _(R,A){var B=A.bind(R);if(i.env.NODE_ENV!=="production"){B.__reactBoundContext=R,B.__reactBoundMethod=A,B.__reactBoundArguments=null;var M=R.constructor.displayName,W=B.bind;B.bind=function(K){for(var Y=arguments.length,ee=Array(Y>1?Y-1:0),re=1;re<Y;re++)ee[re-1]=arguments[re];if(K!==R&&K!==null)i.env.NODE_ENV!=="production"&&f(!1,"bind(): React component methods may only be bound to the component instance. See %s",M);else if(!ee.length)return i.env.NODE_ENV!=="production"&&f(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",M),B;var ne=W.apply(B,arguments);return ne.__reactBoundContext=R,ne.__reactBoundMethod=A,ne.__reactBoundArguments=ee,ne}}return B}function D(R){for(var A=R.__reactAutoBindPairs,B=0;B<A.length;B+=2){var M=A[B],W=A[B+1];R[M]=_(R,W)}}function z(R){var A=function(M,W,K){i.env.NODE_ENV!=="production"&&f(this instanceof A,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&D(this),this.props=M,this.context=W,this.refs=c,this.updater=K||C,this.state=null;var Y=this.getInitialState?this.getInitialState():null;i.env.NODE_ENV!=="production"&&Y===void 0&&this.getInitialState._isMockFunction&&(Y=null),d(typeof Y=="object"&&!Array.isArray(Y),"%s.getInitialState(): must return an object or null",A.displayName||"ReactCompositeComponent"),this.state=Y};A.prototype=new G,A.prototype.constructor=A,A.prototype.__reactAutoBindPairs=[],H.forEach(h.bind(null,A)),h(A,Z),h(A,R),h(A,F),A.getDefaultProps&&(A.defaultProps=A.getDefaultProps()),i.env.NODE_ENV!=="production"&&(A.getDefaultProps&&(A.getDefaultProps.isReactClassApproved={}),A.prototype.getInitialState&&(A.prototype.getInitialState.isReactClassApproved={})),d(A.prototype.render,"createClass(...): Class specification must implement a `render` method."),i.env.NODE_ENV!=="production"&&(f(!A.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",R.displayName||"A component"),f(!A.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",R.displayName||"A component"));for(var B in te)A.prototype[B]||(A.prototype[B]=null);return A}var H=[],te={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},Q={displayName:function(R,A){R.displayName=A},mixins:function(R,A){if(A)for(var B=0;B<A.length;B++)h(R,A[B])},childContextTypes:function(R,A){i.env.NODE_ENV!=="production"&&m(R,A,"childContext"),R.childContextTypes=u({},R.childContextTypes,A)},contextTypes:function(R,A){i.env.NODE_ENV!=="production"&&m(R,A,"context"),R.contextTypes=u({},R.contextTypes,A)},getDefaultProps:function(R,A){R.getDefaultProps?R.getDefaultProps=O(R.getDefaultProps,A):R.getDefaultProps=A},propTypes:function(R,A){i.env.NODE_ENV!=="production"&&m(R,A,"prop"),R.propTypes=u({},R.propTypes,A)},statics:function(R,A){y(R,A)},autobind:function(){}},Z={componentDidMount:function(){this.__isMounted=!0}},F={componentWillUnmount:function(){this.__isMounted=!1}},U={replaceState:function(R,A){this.updater.enqueueReplaceState(this,R,A)},isMounted:function(){return i.env.NODE_ENV!=="production"&&(f(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},G=function(){};return u(G.prototype,x.prototype,U),z}var u=o(6),c=o(12),d=o(2);if(i.env.NODE_ENV!=="production")var f=o(3);var g,b="mixins";g=i.env.NODE_ENV!=="production"?{prop:"prop",context:"context",childContext:"child context"}:{},n.exports=l}).call(s,o(1))},function(n,s,o){(function(i){function a(f,g,b,x,N){if(i.env.NODE_ENV!=="production"){for(var C in f)if(f.hasOwnProperty(C)){var m;try{l(typeof f[C]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",x||"React class",b,C),m=f[C](g,C,x,b,null,c)}catch(h){m=h}if(u(!m||m instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",b,C,typeof m),m instanceof Error&&!(m.message in d)){d[m.message]=!0;var v=N?N():"";u(!1,"Failed %s type: %s%s",b,m.message,v??"")}}}}if(i.env.NODE_ENV!=="production")var l=o(2),u=o(3),c=o(13),d={};n.exports=a}).call(s,o(1))},function(n,s,o){var i=o(22);n.exports=function(a){var l=!1;return i(a,l)}},function(n,s,o){(function(i){var a=o(9),l=o(2),u=o(3),c=o(13),d=o(20);n.exports=function(f,g){function b(M){var W=M&&(G&&M[G]||M[R]);if(typeof W=="function")return W}function x(M,W){return M===W?M!==0||1/M===1/W:M!==M&&W!==W}function N(M){this.message=M,this.stack=""}function C(M){function W(re,ne,se,ae,ce,ge,Le){if(ae=ae||A,ge=ge||se,Le!==c){if(g)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(i.env.NODE_ENV!=="production"&&typeof console<"u"){var Nt=ae+":"+se;!K[Nt]&&Y<3&&(u(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",ge,ae),K[Nt]=!0,Y++)}}return ne[se]==null?re?new N(ne[se]===null?"The "+ce+" `"+ge+"` is marked as required "+("in `"+ae+"`, but its value is `null`."):"The "+ce+" `"+ge+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:M(ne,se,ae,ce,ge)}if(i.env.NODE_ENV!=="production")var K={},Y=0;var ee=W.bind(null,!1);return ee.isRequired=W.bind(null,!0),ee}function m(M){function W(K,Y,ee,re,ne,se){var ae=K[Y],ce=Q(ae);if(ce!==M){var ge=Z(ae);return new N("Invalid "+re+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+ee+"`, expected ")+("`"+M+"`."))}return null}return C(W)}function v(){return C(a.thatReturnsNull)}function h(M){function W(K,Y,ee,re,ne){if(typeof M!="function")return new N("Property `"+ne+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var se=K[Y];if(!Array.isArray(se)){var ae=Q(se);return new N("Invalid "+re+" `"+ne+"` of type "+("`"+ae+"` supplied to `"+ee+"`, expected an array."))}for(var ce=0;ce<se.length;ce++){var ge=M(se,ce,ee,re,ne+"["+ce+"]",c);if(ge instanceof Error)return ge}return null}return C(W)}function y(){function M(W,K,Y,ee,re){var ne=W[K];if(!f(ne)){var se=Q(ne);return new N("Invalid "+ee+" `"+re+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return C(M)}function k(M){function W(K,Y,ee,re,ne){if(!(K[Y]instanceof M)){var se=M.name||A,ae=U(K[Y]);return new N("Invalid "+re+" `"+ne+"` of type "+("`"+ae+"` supplied to `"+ee+"`, expected ")+("instance of `"+se+"`."))}return null}return C(W)}function O(M){function W(K,Y,ee,re,ne){for(var se=K[Y],ae=0;ae<M.length;ae++)if(x(se,M[ae]))return null;var ce=JSON.stringify(M);return new N("Invalid "+re+" `"+ne+"` of value `"+se+"` "+("supplied to `"+ee+"`, expected one of "+ce+"."))}return Array.isArray(M)?C(W):(i.env.NODE_ENV!=="production"&&u(!1,"Invalid argument supplied to oneOf, expected an instance of array."),a.thatReturnsNull)}function T(M){function W(K,Y,ee,re,ne){if(typeof M!="function")return new N("Property `"+ne+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var se=K[Y],ae=Q(se);if(ae!=="object")return new N("Invalid "+re+" `"+ne+"` of type "+("`"+ae+"` supplied to `"+ee+"`, expected an object."));for(var ce in se)if(se.hasOwnProperty(ce)){var ge=M(se,ce,ee,re,ne+"."+ce,c);if(ge instanceof Error)return ge}return null}return C(W)}function _(M){function W(ee,re,ne,se,ae){for(var ce=0;ce<M.length;ce++){var ge=M[ce];if(ge(ee,re,ne,se,ae,c)==null)return null}return new N("Invalid "+se+" `"+ae+"` supplied to "+("`"+ne+"`."))}if(!Array.isArray(M))return i.env.NODE_ENV!=="production"&&u(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),a.thatReturnsNull;for(var K=0;K<M.length;K++){var Y=M[K];if(typeof Y!="function")return u(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",F(Y),K),a.thatReturnsNull}return C(W)}function D(){function M(W,K,Y,ee,re){return H(W[K])?null:new N("Invalid "+ee+" `"+re+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return C(M)}function z(M){function W(K,Y,ee,re,ne){var se=K[Y],ae=Q(se);if(ae!=="object")return new N("Invalid "+re+" `"+ne+"` of type `"+ae+"` "+("supplied to `"+ee+"`, expected `object`."));for(var ce in M){var ge=M[ce];if(ge){var Le=ge(se,ce,ee,re,ne+"."+ce,c);if(Le)return Le}}return null}return C(W)}function H(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(H);if(M===null||f(M))return!0;var W=b(M);if(!W)return!1;var K,Y=W.call(M);if(W!==M.entries){for(;!(K=Y.next()).done;)if(!H(K.value))return!1}else for(;!(K=Y.next()).done;){var ee=K.value;if(ee&&!H(ee[1]))return!1}return!0;default:return!1}}function te(M,W){return M==="symbol"||W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol}function Q(M){var W=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":te(W,M)?"symbol":W}function Z(M){if(typeof M>"u"||M===null)return""+M;var W=Q(M);if(W==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return W}function F(M){var W=Z(M);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(M){return M.constructor&&M.constructor.name?M.constructor.name:A}var G=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator",A="<<anonymous>>",B={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:y(),instanceOf:k,node:D(),objectOf:T,oneOf:O,oneOfType:_,shape:z};return N.prototype=Error.prototype,B.checkPropTypes=d,B.PropTypes=B,B}}).call(s,o(1))},function(n,s){function o(l){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+l).replace(u,function(f){return c[f]});return"$"+d}function i(l){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+d).replace(u,function(f){return c[f]})}var a={escape:o,unescape:i};n.exports=a},function(n,s,o){(function(i){var a=o(5),l=o(2),u=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var y=h.instancePool.pop();return h.call(y,m,v),y}return new h(m,v)},d=function(m,v,h){var y=this;if(y.instancePool.length){var k=y.instancePool.pop();return y.call(k,m,v,h),k}return new y(m,v,h)},f=function(m,v,h,y){var k=this;if(k.instancePool.length){var O=k.instancePool.pop();return k.call(O,m,v,h,y),O}return new k(m,v,h,y)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length<v.poolSize&&v.instancePool.push(m)},b=10,x=u,N=function(m,v){var h=m;return h.instancePool=[],h.getPooled=v||x,h.poolSize||(h.poolSize=b),h.release=g,h},C={addPoolingTo:N,oneArgumentPooler:u,twoArgumentPooler:c,threeArgumentPooler:d,fourArgumentPooler:f};n.exports=C}).call(s,o(1))},function(n,s,o){(function(i){var a=o(6),l=o(14),u=o(26),c=o(27),d=o(4),f=o(29),g=o(31),b=o(33),x=o(34),N=d.createElement,C=d.createFactory,m=d.cloneElement;if(i.env.NODE_ENV!=="production"){var v=o(11),h=o(8),y=o(16),k=!1;N=y.createElement,C=y.createFactory,m=y.cloneElement}var O=a,T=function(Q){return Q};if(i.env.NODE_ENV!=="production"){var _=!1,D=!1;O=function(){return v(_,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),_=!0,a.apply(null,arguments)},T=function(Q){return v(D,"React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),D=!0,Q}}var z={Children:{map:u.map,forEach:u.forEach,count:u.count,toArray:u.toArray,only:x},Component:l.Component,PureComponent:l.PureComponent,createElement:N,cloneElement:m,isValidElement:d.isValidElement,PropTypes:f,createClass:b,createFactory:C,createMixin:T,DOM:c,version:g,__spread:O};if(i.env.NODE_ENV!=="production"){var H=!1;h&&(Object.defineProperty(z,"PropTypes",{get:function(){return v(k,"Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),k=!0,f}}),Object.defineProperty(z,"createClass",{get:function(){return v(H,"Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),H=!0,b}})),z.DOM={};var te=!1;Object.keys(c).forEach(function(Q){z.DOM[Q]=function(){return te||(v(!1,"Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories",Q),te=!0),c[Q].apply(c,arguments)}})}n.exports=z}).call(s,o(1))},function(n,s,o){function i(_){return(""+_).replace(O,"$&/")}function a(_,D){this.func=_,this.context=D,this.count=0}function l(_,D,z){var H=_.func,te=_.context;H.call(te,D,_.count++)}function u(_,D,z){if(_==null)return _;var H=a.getPooled(D,z);h(_,l,H),a.release(H)}function c(_,D,z,H){this.result=_,this.keyPrefix=D,this.func=z,this.context=H,this.count=0}function d(_,D,z){var H=_.result,te=_.keyPrefix,Q=_.func,Z=_.context,F=Q.call(Z,D,_.count++);Array.isArray(F)?f(F,H,z,v.thatReturnsArgument):F!=null&&(m.isValidElement(F)&&(F=m.cloneAndReplaceKey(F,te+(!F.key||D&&D.key===F.key?"":i(F.key)+"/")+z)),H.push(F))}function f(_,D,z,H,te){var Q="";z!=null&&(Q=i(z)+"/");var Z=c.getPooled(D,Q,H,te);h(_,d,Z),c.release(Z)}function g(_,D,z){if(_==null)return _;var H=[];return f(_,H,null,D,z),H}function b(_,D,z){return null}function x(_,D){return h(_,b,null)}function N(_){var D=[];return f(_,D,null,v.thatReturnsArgument),D}var C=o(24),m=o(4),v=o(9),h=o(35),y=C.twoArgumentPooler,k=C.fourArgumentPooler,O=/\/+/g;a.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},C.addPoolingTo(a,y),c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},C.addPoolingTo(c,k);var T={forEach:u,map:g,mapIntoWithKeyPrefixInternal:f,count:x,toArray:N};n.exports=T},function(n,s,o){(function(i){var a=o(4),l=a.createFactory;if(i.env.NODE_ENV!=="production"){var u=o(16);l=u.createFactory}var c={a:l("a"),abbr:l("abbr"),address:l("address"),area:l("area"),article:l("article"),aside:l("aside"),audio:l("audio"),b:l("b"),base:l("base"),bdi:l("bdi"),bdo:l("bdo"),big:l("big"),blockquote:l("blockquote"),body:l("body"),br:l("br"),button:l("button"),canvas:l("canvas"),caption:l("caption"),cite:l("cite"),code:l("code"),col:l("col"),colgroup:l("colgroup"),data:l("data"),datalist:l("datalist"),dd:l("dd"),del:l("del"),details:l("details"),dfn:l("dfn"),dialog:l("dialog"),div:l("div"),dl:l("dl"),dt:l("dt"),em:l("em"),embed:l("embed"),fieldset:l("fieldset"),figcaption:l("figcaption"),figure:l("figure"),footer:l("footer"),form:l("form"),h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),head:l("head"),header:l("header"),hgroup:l("hgroup"),hr:l("hr"),html:l("html"),i:l("i"),iframe:l("iframe"),img:l("img"),input:l("input"),ins:l("ins"),kbd:l("kbd"),keygen:l("keygen"),label:l("label"),legend:l("legend"),li:l("li"),link:l("link"),main:l("main"),map:l("map"),mark:l("mark"),menu:l("menu"),menuitem:l("menuitem"),meta:l("meta"),meter:l("meter"),nav:l("nav"),noscript:l("noscript"),object:l("object"),ol:l("ol"),optgroup:l("optgroup"),option:l("option"),output:l("output"),p:l("p"),param:l("param"),picture:l("picture"),pre:l("pre"),progress:l("progress"),q:l("q"),rp:l("rp"),rt:l("rt"),ruby:l("ruby"),s:l("s"),samp:l("samp"),script:l("script"),section:l("section"),select:l("select"),small:l("small"),source:l("source"),span:l("span"),strong:l("strong"),style:l("style"),sub:l("sub"),summary:l("summary"),sup:l("sup"),table:l("table"),tbody:l("tbody"),td:l("td"),textarea:l("textarea"),tfoot:l("tfoot"),th:l("th"),thead:l("thead"),time:l("time"),title:l("title"),tr:l("tr"),track:l("track"),u:l("u"),ul:l("ul"),var:l("var"),video:l("video"),wbr:l("wbr"),circle:l("circle"),clipPath:l("clipPath"),defs:l("defs"),ellipse:l("ellipse"),g:l("g"),image:l("image"),line:l("line"),linearGradient:l("linearGradient"),mask:l("mask"),path:l("path"),pattern:l("pattern"),polygon:l("polygon"),polyline:l("polyline"),radialGradient:l("radialGradient"),rect:l("rect"),stop:l("stop"),svg:l("svg"),text:l("text"),tspan:l("tspan")};n.exports=c}).call(s,o(1))},function(n,s,o){(function(i){var a={};i.env.NODE_ENV!=="production"&&(a={prop:"prop",context:"context",childContext:"child context"}),n.exports=a}).call(s,o(1))},function(n,s,o){var i=o(4),a=i.isValidElement,l=o(21);n.exports=l(a)},function(n,s){var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=o},function(n,s){n.exports="15.6.1"},function(n,s,o){(function(i){function a(x,N,C,m,v,h){for(var y in x)if(x.hasOwnProperty(y)){var k;try{typeof x[y]!="function"&&(i.env.NODE_ENV!=="production"?f(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",m||"React class",c[C],y):u("84",m||"React class",c[C],y)),k=x[y](N,y,m,C,null,d)}catch(T){k=T}if(i.env.NODE_ENV!=="production"&&g(!k||k instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",c[C],y,typeof k),k instanceof Error&&!(k.message in b)){b[k.message]=!0;var O="";i.env.NODE_ENV!=="production"&&(l||(l=o(10)),h!==null?O=l.getStackAddendumByID(h):v!==null&&(O=l.getCurrentStackAddendum(v))),i.env.NODE_ENV!=="production"&&g(!1,"Failed %s type: %s%s",C,k.message,O)}}}var l,u=o(5),c=o(28),d=o(30),f=o(2),g=o(3);typeof i<"u"&&i.env&&i.env.NODE_ENV==="test"&&(l=o(10));var b={};n.exports=a}).call(s,o(1))},function(n,s,o){var i=o(14),a=i.Component,l=o(4),u=l.isValidElement,c=o(17),d=o(19);n.exports=d(a,u,c)},function(n,s,o){(function(i){function a(d){return u.isValidElement(d)||(i.env.NODE_ENV!=="production"?c(!1,"React.Children.only expected to receive a single React element child."):l("143")),d}var l=o(5),u=o(4),c=o(2);n.exports=a}).call(s,o(1))},function(n,s,o){(function(i){function a(h,y){return h&&typeof h=="object"&&h.key!=null?x.escape(h.key):y.toString(36)}function l(h,y,k,O){var T=typeof h;if(T!=="undefined"&&T!=="boolean"||(h=null),h===null||T==="string"||T==="number"||T==="object"&&h.$$typeof===f)return k(O,h,y===""?C+a(h,0):y),1;var _,D,z=0,H=y===""?C:y+m;if(Array.isArray(h))for(var te=0;te<h.length;te++)_=h[te],D=H+a(_,te),z+=l(_,D,k,O);else{var Q=g(h);if(Q){var Z,F=Q.call(h);if(Q!==h.entries)for(var U=0;!(Z=F.next()).done;)_=Z.value,D=H+a(_,U++),z+=l(_,D,k,O);else{if(i.env.NODE_ENV!=="production"){var G="";if(d.current){var R=d.current.getName();R&&(G=" Check the render method of `"+R+"`.")}i.env.NODE_ENV!=="production"&&N(v,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s",G),v=!0}for(;!(Z=F.next()).done;){var A=Z.value;A&&(_=A[1],D=H+x.escape(A[0])+m+a(_,0),z+=l(_,D,k,O))}}}else if(T==="object"){var B="";if(i.env.NODE_ENV!=="production"&&(B=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",h._isReactElement&&(B=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),d.current)){var M=d.current.getName();M&&(B+=" Check the render method of `"+M+"`.")}var W=String(h);i.env.NODE_ENV!=="production"?b(!1,"Objects are not valid as a React child (found: %s).%s",W==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":W,B):c("31",W==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":W,B)}}return z}function u(h,y,k){return h==null?0:l(h,"",y,k)}var c=o(5),d=o(7),f=o(15),g=o(18),b=o(2),x=o(23),N=o(3),C=".",m=":",v=!1;n.exports=u}).call(s,o(1))},function(n,s,o){n.exports=o(25)}])})})(Gv);var ab=Gv.exports;const Nd=bo(ab),lb=()=>{const[e,t]=S.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},o=yt(),{status:i,error:a}=Re(p=>p.property),{user:l}=Re(p=>({...p.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=S.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),[f,g]=S.useState(!1),b=(p,j)=>{console.log("File received:",p);const w=[...c.images];w[j].file=p.base64,d({...c,images:w})},x=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},N=p=>{const j=c.images.filter((w,L)=>L!==p);d({...c,images:j})},C=(p,j)=>{const w=[...c.images];w[p].title=j.target.value,d({...c,images:w})},m=(p,j,w)=>{const{name:L,value:q}=p.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[j][L]=q,d({...c,propertyTaxInfo:X})}else d({...c,[L]:q})},v=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=p=>{const j=c.propertyTaxInfo.filter((w,L)=>L!==p);d({...c,propertyTaxInfo:j})},y=()=>{d(p=>({...p,costPaidAtoB:[...p.costPaidAtoB,{title:"",price:""}]}))},k=p=>{const j=c.costPaidAtoB.filter((w,L)=>L!==p);d(w=>({...w,costPaidAtoB:j}))},O=(p,j,w)=>{const L=[...c.costPaidAtoB];L[p][j]=w,d(q=>({...q,costPaidAtoB:L}))},T=(p,j)=>{let w=p.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,costPaidAtoB:q})}},_=()=>{const p=c.costPaidAtoB.reduce((w,L)=>{const q=parseFloat(L.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return p+j},D=()=>{d(p=>({...p,credits:[...p.credits,{title:"",price:""}]}))},z=p=>{const j=c.credits.filter((w,L)=>L!==p);d(w=>({...w,credits:j}))},H=(p,j,w)=>{const L=[...c.credits];L[p][j]=w,d(q=>({...q,credits:L}))},te=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,credits:q})}else{const q=c.credits.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,credits:q})}},Q=()=>c.credits.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Z=()=>{const p=c.costPaidAtoB.reduce((L,q)=>{const X=parseFloat(q.price)||0;return L+X},0),j=c.credits.reduce((L,q)=>{const X=parseFloat(q.price)||0;return L+X},0),w=parseFloat(c.purchaseCost)||0;return p+j+w},F=()=>{d(p=>({...p,cashAdjustments:[...p.cashAdjustments,{title:"",price:""}]}))},U=p=>{const j=c.cashAdjustments.filter((w,L)=>L!==p);d(w=>({...w,cashAdjustments:j}))},G=(p,j,w)=>{const L=[...c.cashAdjustments];L[p][j]=w,d(q=>({...q,cashAdjustments:L}))},R=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,cashAdjustments:q})}},A=()=>c.cashAdjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),B=()=>{const p=A(),j=Q(),w=_();return p+j+w},M=()=>{d(p=>({...p,incidentalCost:[...p.incidentalCost,{title:"",price:""}]}))},W=p=>{const j=c.incidentalCost.filter((w,L)=>L!==p);d(w=>({...w,incidentalCost:j}))},K=(p,j,w)=>{const L=[...c.incidentalCost];L[p][j]=w,d(q=>({...q,incidentalCost:L}))},Y=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),re=()=>{d(p=>({...p,carryCosts:[...p.carryCosts,{title:"",price:""}]}))},ne=p=>{const j=c.carryCosts.filter((w,L)=>L!==p);d(w=>({...w,carryCosts:j}))},se=(p,j,w)=>{const L=[...c.carryCosts];L[p][j]=w,d(q=>({...q,carryCosts:L}))},ae=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),ge=()=>{d(p=>({...p,renovationCost:[...p.renovationCost,{title:"",price:""}]}))},Le=p=>{const j=c.renovationCost.filter((w,L)=>L!==p);d(w=>({...w,renovationCost:j}))},Nt=(p,j,w)=>{const L=[...c.renovationCost];L[p][j]=w,d(q=>({...q,renovationCost:L}))},Bt=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,renovationCost:q})}},pe=()=>c.renovationCost.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),zt=()=>{const p=ee(),j=ce(),w=pe();return p+j+w},Ke=()=>{const p=zt(),j=B();return p+j},Gn=()=>{d(p=>({...p,costPaidOutofClosing:[...p.costPaidOutofClosing,{title:"",price:""}]}))},Jt=p=>{const j=c.costPaidOutofClosing.filter((w,L)=>L!==p);d(w=>({...w,costPaidOutofClosing:j}))},ys=(p,j,w)=>{const L=[...c.costPaidOutofClosing];L[p][j]=w,d(q=>({...q,costPaidOutofClosing:L}))},js=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,costPaidOutofClosing:q})}},Qn=()=>c.costPaidOutofClosing.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),$t=()=>{const p=c.sellingPriceBtoC,j=Qn();return p-j},vn=()=>{d(p=>({...p,adjustments:[...p.adjustments,{title:"",price:""}]}))},Wt=p=>{const j=c.adjustments.filter((w,L)=>L!==p);d(w=>({...w,adjustments:j}))},de=(p,j,w)=>{const L=[...c.adjustments];L[p][j]=w,d(q=>({...q,adjustments:L}))},Ut=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,adjustments:q})}else{const q=c.adjustments.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,adjustments:q})}},gn=()=>c.adjustments.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Fo=()=>{const p=$t(),j=gn();return p+j},Ns=()=>{d(p=>({...p,incomestatement:[...p.incomestatement,{title:"",price:""}]}))},Do=p=>{const j=c.incomestatement.filter((w,L)=>L!==p);d(w=>({...w,incomestatement:j}))},Ja=(p,j,w)=>{const L=[...c.incomestatement];L[p][j]=w,d(q=>({...q,incomestatement:L}))},Za=(p,j)=>{const w=p.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,le)=>le===j?{...X,price:w,isInvalid:!1}:X);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,le)=>le===j?{...X,isInvalid:!0}:X);d({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((p,j)=>{const w=parseFloat(j.price);return p+(isNaN(w)?0:w)},0),Xn=()=>{const p=Cs(),j=$t();return p+j},Jn=()=>{const p=isNaN(parseFloat(Xn()))?0:parseFloat(Xn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),L=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(Ke()))?0:parseFloat(Ke());return p+j+w+L+q-X},Zt=()=>{const p=Jn(),j=c.FinancingCostClosingCost;return p-j},Sr=()=>Zt(),bs=()=>{var p,j,w,L,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const le=Sr(),Mo=_(),tl=Z(),nl=A(),rl=ee(),sl=Q(),ol=B(),il=ce(),al=pe(),ll=zt(),cl=Ke(),ul=Qn(),dl=gn(),Sg=Fo(),kg=$t(),Eg=$t(),Pg=Cs(),_g=Xn(),Og=Jn(),Tg=Zt(),fl={...c,userfirstname:(p=l==null?void 0:l.result)==null?void 0:p.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(L=l==null?void 0:l.result)==null?void 0:L.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Mo,totalcredits:sl,totalPurchaseCostsaftercredits:tl,totalcashAdjustments:nl,totalcashrequiredonsettlement:ol,totalincidentalCost:rl,totalcarryCosts:il,totalrenovationCost:al,totalRenovationsandHoldingCost:ll,totalCoststoBuyAtoB:cl,totalcostPaidOutofClosing:ul,totaladjustments:dl,fundsavailablefordistribution:Sg,grossproceedsperHUD:kg,totalCosttoSellBtoC:Eg,totalincomestatement:Pg,netBtoCsalevalue:_g,netprofitbeforefinancingcosts:Og,NetProfit:Tg,rateofreturn:le};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?fl.propertyTaxInfo=c.propertyTaxInfo:fl.propertyTaxInfo=[],o(ki(fl)),g(!0)}else oe.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};S.useEffect(()=>{f&&(i==="succeeded"?(oe.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(oe.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,f]);const[el,E]=S.useState("0 days"),P=(p,j)=>{if(p&&j){const w=new Date(p),L=new Date(j),q=Math.abs(L-w),X=Math.ceil(q/(1e3*60*60*24));E(`${X} days`)}else E("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Me,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((p,j)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:p.propertytaxowned,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:p.ownedyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:p.taxassessed,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:p.taxyear,onChange:w=>m(w,j,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,placeholder:"Image Title",onChange:w=>C(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:w=>b(w,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(j),style:{marginLeft:"5px"},children:"Delete"})]}),p.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[p.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:p.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},j)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY&center=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:p=>{const j=p.target.value;d({...c,closeDateAtoB:j}),P(j,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:p=>{const j=p.target.value;d({...c,closeDateBtoC:j}),P(c.closeDateAtoB,j)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:u.map(p=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${p}`,value:p,checked:c.renovationRisk===p,onChange:j=>{const w=parseInt(j.target.value,10);d({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${p}`,children:p})]},p))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Sr().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:el,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:p=>{let j=p.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(j);d({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>O(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:`$ ${p.price}`,onChange:w=>T(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>k(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>H(j,"title",w.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>te(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>G(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>R(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:F,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:A(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>K(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Y(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:M,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>se(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>ae(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>Nt(j,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Bt(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Le(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:pe(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ke(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>ys(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>js(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Jt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>de(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Ut(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Wt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:vn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Fo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((p,j)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p.title,onChange:w=>Ja(j,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${p.isInvalid?"is-invalid":""}`,value:p.price,onChange:w=>Za(w,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),p.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Do(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ke(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:p=>{const j=p.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:p=>{const j=p.charCode;(j<48||j>57)&&j!==46&&(p.preventDefault(),d({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},St="/assets/propertydummy-DhVEZ7jN.jpg",cb=()=>{var u;const e=yt(),{user:t}=Re(c=>({...c.auth})),{userProperties:n,totalPages:s}=Re(c=>c.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(Gs({userId:t.result.userId,page:o,limit:a}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,o]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(me,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(me,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(me,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(c,d)=>d+1).map(c=>c===o||c===1||c===s||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>l(c),disabled:o===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},ub=()=>{var c,d,f,g,b,x,N,C,m,v,h,y;const{user:e,isLoading:t}=Re(k=>k.auth),n=yt(),s=vs(),[o,i]=S.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((d=e==null?void 0:e.result)==null?void 0:d.title)||"",firstName:((f=e==null?void 0:e.result)==null?void 0:f.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((b=e==null?void 0:e.result)==null?void 0:b.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((N=e==null?void 0:e.result)==null?void 0:N.aboutme)||"",city:((C=e==null?void 0:e.result)==null?void 0:C.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((y=e==null?void 0:e.result)==null?void 0:y.profileImage)||""});S.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=k=>{i({...o,[k.target.name]:k.target.value})},l=()=>{i({...o,profileImage:""})},u=k=>{k.preventDefault(),n(bi({formData:o,toast:oe,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:u,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:o.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:o.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:o.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:o.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:o.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:o.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:o.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:o.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:o.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:o.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Nd,{type:"file",multiple:!1,onDone:({base64:k})=>i({...o,profileImage:k})})})]}),o.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:o.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},db=()=>{var c;const e=yt(),{user:t}=Re(d=>({...d.auth})),{userProperties:n,totalPages:s}=Re(d=>d.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(Gs({userId:t.result.userId,page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=d=>{i(d)},u=n.filter(d=>d.fundDetails&&d.fundDetails.some(f=>f.fundValue!==void 0&&f.fundPercentage!==void 0&&f.userId));return r.jsx(r.Fragment,{children:u.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:u.map(d=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:d.images[0].file||St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(me,{to:`/property/${d.propertyId}`,children:[d.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(me,{to:`/property/${d.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(me,{to:`/editproperty/${d.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},d._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(d,f)=>f+1).map(d=>d===o||d===1||d===s||d>=o-1&&d<=o+1?r.jsx("button",{onClick:()=>l(d),disabled:o===d,children:d},d):d===2||d===s-1?r.jsx("span",{children:"..."},d):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},fb=()=>{var c;const e=yt(),{user:t}=Re(d=>({...d.auth})),{properties:n,totalPages:s}=Re(d=>d.property),[o,i]=S.useState(1),a=5;S.useEffect(()=>{e(es({page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=d=>{i(d)},u=n.filter(d=>d.fundDetails&&d.fundDetails.some(f=>f.fundValue!==void 0&&f.fundPercentage!==void 0&&f.userId===t.result._id));return r.jsx(r.Fragment,{children:u.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:u.map(d=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:d.images[0].file||St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(me,{to:`/property/${d.propertyId}`,target:"_blank",children:[d.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(me,{to:`/property/${d.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(me,{to:`/editproperty/${d.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},d._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(d,f)=>f+1).map(d=>d===o||d===1||d===s||d>=o-1&&d<=o+1?r.jsx("button",{onClick:()=>l(d),disabled:o===d,children:d},d):d===2||d===s-1?r.jsx("span",{children:"..."},d):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},pb=()=>{const[e,t]=S.useState("dashboard"),{user:n}=Re(o=>o.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(ub,{});case"addProperty":return r.jsx(lb,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(cb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(db,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(fb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Ti,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Fundings Received"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Offers Submitted"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(me,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(Ze,{})]})};var Qv={exports:{}},mb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hb=mb,vb=hb;function Xv(){}function Jv(){}Jv.resetWarningCache=Xv;var gb=function(){function e(s,o,i,a,l,u){if(u!==vb){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Jv,resetWarningCache:Xv};return n.PropTypes=n,n};Qv.exports=gb();var xb=Qv.exports;const Xt=bo(xb),yb=()=>{const[e,t]=S.useState(3),n=vs();return S.useEffect(()=>{const s=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ri=({children:e})=>{const{user:t}=Re(n=>({...n.auth}));return t?e:r.jsx(yb,{})};Ri.propTypes={children:Xt.node.isRequired};const jb=()=>{const e=yt(),{id:t,token:n}=gs();return S.useEffect(()=>{e(Si({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(me,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(Ze,{})]})},Nb=()=>{const[e,t]=S.useState(""),[n,s]=S.useState(""),o="http://67.225.129.127:3002",i=async()=>{try{const a=await ve.post(`${o}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(me,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(Ze,{})]})]})},Cb=()=>{const{userId:e,token:t}=gs(),[n,s]=S.useState(""),[o,i]=S.useState(""),[a,l]=S.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),oe.error("Password not entered");return}const d=await ve.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){l("Passwords do not match."),oe.error("Passwords do not match.");return}else l("Password reset successfull"),oe.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return S.useEffect(()=>{oe.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>s(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:o,onChange:d=>i(d.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(Ze,{})]})},bb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(Ze,{})]});var Zv={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,s(l)))}return i}function s(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Zv);var wb=Zv.exports;const ye=bo(wb);function Sb(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;n[s]=e[s]}return n}function pu(e,t){return pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},pu(e,t)}function kb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pu(e,t)}const Eb=["xxl","xl","lg","md","sm","xs"],Pb="xs",Ga=S.createContext({prefixes:{},breakpoints:Eb,minBreakpoint:Pb});function Ae(e,t){const{prefixes:n}=S.useContext(Ga);return e||n[t]||t}function _b(){const{breakpoints:e}=S.useContext(Ga);return e}function Ob(){const{minBreakpoint:e}=S.useContext(Ga);return e}function Tb(){const{dir:e}=S.useContext(Ga);return e==="rtl"}function Qa(e){return e&&e.ownerDocument||document}function Rb(e){var t=Qa(e);return t&&t.defaultView||window}function Ab(e,t){return Rb(e).getComputedStyle(e,t)}var Ib=/([A-Z])/g;function Fb(e){return e.replace(Ib,"-$1").toLowerCase()}var Db=/^ms-/;function si(e){return Fb(e).replace(Db,"-ms-")}var Mb=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Lb(e){return!!(e&&Mb.test(e))}function mr(e,t){var n="",s="";if(typeof t=="string")return e.style.getPropertyValue(si(t))||Ab(e).getPropertyValue(si(t));Object.keys(t).forEach(function(o){var i=t[o];!i&&i!==0?e.style.removeProperty(si(o)):Lb(o)?s+=o+"("+i+") ":n+=si(o)+": "+i+";"}),s&&(n+="transform: "+s+";"),e.style.cssText+=";"+n}const jp={disabled:!1},eg=I.createContext(null);var Bb=function(t){return t.scrollTop},Ls="unmounted",rr="exited",Sn="entering",or="entered",mu="exiting",hn=function(e){kb(t,e);function t(s,o){var i;i=e.call(this,s,o)||this;var a=o,l=a&&!a.isMounting?s.enter:s.appear,u;return i.appearStatus=null,s.in?l?(u=rr,i.appearStatus=Sn):u=or:s.unmountOnExit||s.mountOnEnter?u=Ls:u=rr,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ls?{status:rr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Sn&&a!==or&&(i=Sn):(a===Sn||a===or)&&(i=mu)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Wr.findDOMNode(this);a&&Bb(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rr&&this.setState({status:Ls})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[Wr.findDOMNode(this),l],c=u[0],d=u[1],f=this.getTimeouts(),g=l?f.appear:f.enter;if(!o&&!a||jp.disabled){this.safeSetState({status:or},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Sn},function(){i.props.onEntering(c,d),i.onTransitionEnd(g,function(){i.safeSetState({status:or},function(){i.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Wr.findDOMNode(this);if(!i||jp.disabled){this.safeSetState({status:rr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:mu},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Wr.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ls)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Sb(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(eg.Provider,{value:null},typeof a=="function"?a(o,l):I.cloneElement(I.Children.only(a),l))},t}(I.Component);hn.contextType=eg;hn.propTypes={};function Er(){}hn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Er,onEntering:Er,onEntered:Er,onExit:Er,onExiting:Er,onExited:Er};hn.UNMOUNTED=Ls;hn.EXITED=rr;hn.ENTERING=Sn;hn.ENTERED=or;hn.EXITING=mu;const xs=!!(typeof window<"u"&&window.document&&window.document.createElement);var hu=!1,vu=!1;try{var Xl={get passive(){return hu=!0},get once(){return vu=hu=!0}};xs&&(window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,!0))}catch{}function tg(e,t,n,s){if(s&&typeof s!="boolean"&&!vu){var o=s.once,i=s.capture,a=n;!vu&&o&&(a=n.__once||function l(u){this.removeEventListener(t,l,i),n.call(this,u)},n.__once=a),e.addEventListener(t,a,hu?s:i)}e.addEventListener(t,n,s)}function gu(e,t,n,s){var o=s&&typeof s!="boolean"?s.capture:s;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function ha(e,t,n,s){return tg(e,t,n,s),function(){gu(e,t,n,s)}}function zb(e,t,n,s){if(s===void 0&&(s=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,s),e.dispatchEvent(o)}}function $b(e){var t=mr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function Wb(e,t,n){n===void 0&&(n=5);var s=!1,o=setTimeout(function(){s||zb(e,"transitionend",!0)},t+n),i=ha(e,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(o),i()}}function ng(e,t,n,s){n==null&&(n=$b(e)||0);var o=Wb(e,n,s),i=ha(e,"transitionend",t);return function(){o(),i()}}function Np(e,t){const n=mr(e,t)||"",s=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*s}function Ub(e,t){const n=Np(e,"transitionDuration"),s=Np(e,"transitionDelay"),o=ng(e,i=>{i.target===e&&(o(),t(i))},n+s)}function qb(e){e.offsetHeight}const Cp=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Vb(e,t){const n=Cp(e),s=Cp(t);return o=>{n&&n(o),s&&s(o)}}function Io(e,t){return S.useMemo(()=>Vb(e,t),[e,t])}function Hb(e){return e&&"setState"in e?Wr.findDOMNode(e):e??null}const Kb=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:o,onExited:i,addEndListener:a,children:l,childRef:u,...c},d)=>{const f=S.useRef(null),g=Io(f,u),b=O=>{g(Hb(O))},x=O=>T=>{O&&f.current&&O(f.current,T)},N=S.useCallback(x(e),[e]),C=S.useCallback(x(t),[t]),m=S.useCallback(x(n),[n]),v=S.useCallback(x(s),[s]),h=S.useCallback(x(o),[o]),y=S.useCallback(x(i),[i]),k=S.useCallback(x(a),[a]);return r.jsx(hn,{ref:d,...c,onEnter:N,onEntered:m,onEntering:C,onExit:v,onExited:y,onExiting:h,addEndListener:k,nodeRef:f,children:typeof l=="function"?(O,T)=>l(O,{...T,ref:b}):I.cloneElement(l,{ref:b})})});function Yb(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e},[e]),t}function Yt(e){const t=Yb(e);return S.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Gb=e=>S.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function Qb(){return S.useState(null)}function Xb(){const e=S.useRef(!0),t=S.useRef(()=>e.current);return S.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Jb(e){const t=S.useRef(null);return S.useEffect(()=>{t.current=e}),t.current}const Zb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",ew=typeof document<"u",bp=ew||Zb?S.useLayoutEffect:S.useEffect,tw=["as","disabled"];function nw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function rw(e){return!e||e.trim()==="#"}function rg({tagName:e,disabled:t,href:n,target:s,rel:o,role:i,onClick:a,tabIndex:l=0,type:u}){e||(n!=null||s!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const d=g=>{if((t||e==="a"&&rw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},f=g=>{g.key===" "&&(g.preventDefault(),d(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:d,onKeyDown:f},c]}const sw=S.forwardRef((e,t)=>{let{as:n,disabled:s}=e,o=nw(e,tw);const[i,{tagName:a}]=rg(Object.assign({tagName:n,disabled:s},o));return r.jsx(a,Object.assign({},o,i,{ref:t}))});sw.displayName="Button";function ow(e){return e.code==="Escape"||e.keyCode===27}function sg(){const e=S.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const iw={[Sn]:"show",[or]:"show"},Cd=S.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=S.useCallback((d,f)=>{qb(d),s==null||s(d,f)},[s]),{major:u}=sg(),c=u>=19?t.props.ref:t.ref;return r.jsx(Kb,{ref:i,addEndListener:Ub,...a,onEnter:l,childRef:c,children:(d,f)=>S.cloneElement(t,{...f,className:ye("fade",e,t.props.className,iw[d],n[d])})})});Cd.displayName="Fade";const aw={"aria-label":Xt.string,onClick:Xt.func,variant:Xt.oneOf(["white"])},bd=S.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},o)=>r.jsx("button",{ref:o,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));bd.displayName="CloseButton";bd.propTypes=aw;const og=S.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:o=!1,disabled:i=!1,className:a,...l},u)=>{const c=Ae(t,"btn"),[d,{tagName:f}]=rg({tagName:e,disabled:i,...l}),g=f;return r.jsx(g,{...d,...l,ref:u,disabled:i,className:ye(a,c,o&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&i&&"disabled")})});og.displayName="Button";function lw(e){const t=S.useRef(e);return t.current=e,t}function ig(e){const t=lw(e);S.useEffect(()=>()=>t.current(),[])}function cw(e,t){return S.Children.toArray(e).some(n=>S.isValidElement(n)&&n.type===t)}function uw({as:e,bsPrefix:t,className:n,...s}){t=Ae(t,"col");const o=_b(),i=Ob(),a=[],l=[];return o.forEach(u=>{const c=s[u];delete s[u];let d,f,g;typeof c=="object"&&c!=null?{span:d,offset:f,order:g}=c:d=c;const b=u!==i?`-${u}`:"";d&&a.push(d===!0?`${t}${b}`:`${t}${b}-${d}`),g!=null&&l.push(`order${b}-${g}`),f!=null&&l.push(`offset${b}-${f}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const ag=S.forwardRef((e,t)=>{const[{className:n,...s},{as:o="div",bsPrefix:i,spans:a}]=uw(e);return r.jsx(o,{...s,ref:t,className:ye(n,!a.length&&i)})});ag.displayName="Col";var dw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Pr(e,t){return dw(e.querySelectorAll(t))}function wp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const fw="data-rr-ui-";function pw(e){return`${fw}${e}`}const lg=S.createContext(xs?window:void 0);lg.Provider;function wd(){return S.useContext(lg)}const mw={type:Xt.string,tooltip:Xt.bool,as:Xt.elementType},Xa=S.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...o},i)=>r.jsx(e,{...o,ref:i,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));Xa.displayName="Feedback";Xa.propTypes=mw;const fn=S.createContext({}),Sd=S.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:o=!1,isInvalid:i=!1,as:a="input",...l},u)=>{const{controlId:c}=S.useContext(fn);return t=Ae(t,"form-check-input"),r.jsx(a,{...l,ref:u,type:s,id:e||c,className:ye(n,t,o&&"is-valid",i&&"is-invalid")})});Sd.displayName="FormCheckInput";const va=S.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},o)=>{const{controlId:i}=S.useContext(fn);return e=Ae(e,"form-check-label"),r.jsx("label",{...s,ref:o,htmlFor:n||i,className:ye(t,e)})});va.displayName="FormCheckLabel";const cg=S.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:o=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:u=!1,feedback:c,feedbackType:d,className:f,style:g,title:b="",type:x="checkbox",label:N,children:C,as:m="input",...v},h)=>{t=Ae(t,"form-check"),n=Ae(n,"form-switch");const{controlId:y}=S.useContext(fn),k=S.useMemo(()=>({controlId:e||y}),[y,e]),O=!C&&N!=null&&N!==!1||cw(C,va),T=r.jsx(Sd,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(fn.Provider,{value:k,children:r.jsx("div",{style:g,className:ye(f,O&&t,s&&`${t}-inline`,o&&`${t}-reverse`,x==="switch"&&n),children:C||r.jsxs(r.Fragment,{children:[T,O&&r.jsx(va,{title:b,children:N}),c&&r.jsx(Xa,{type:d,tooltip:u,children:c})]})})})});cg.displayName="FormCheck";const ga=Object.assign(cg,{Input:Sd,Label:va}),ug=S.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:o,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:u,readOnly:c,as:d="input",...f},g)=>{const{controlId:b}=S.useContext(fn);return e=Ae(e,"form-control"),r.jsx(d,{...f,type:t,size:s,ref:g,readOnly:c,id:o||b,className:ye(i,u?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});ug.displayName="FormControl";const hw=Object.assign(ug,{Feedback:Xa}),dg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ae(t,"form-floating"),r.jsx(n,{ref:o,className:ye(e,t),...s})));dg.displayName="FormFloating";const kd=S.forwardRef(({controlId:e,as:t="div",...n},s)=>{const o=S.useMemo(()=>({controlId:e}),[e]);return r.jsx(fn.Provider,{value:o,children:r.jsx(t,{...n,ref:s})})});kd.displayName="FormGroup";const fg=S.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:o,htmlFor:i,...a},l)=>{const{controlId:u}=S.useContext(fn);t=Ae(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const d=ye(o,t,s&&"visually-hidden",n&&c);return i=i||u,n?r.jsx(ag,{ref:l,as:"label",className:d,htmlFor:i,...a}):r.jsx(e,{ref:l,className:d,htmlFor:i,...a})});fg.displayName="FormLabel";const pg=S.forwardRef(({bsPrefix:e,className:t,id:n,...s},o)=>{const{controlId:i}=S.useContext(fn);return e=Ae(e,"form-range"),r.jsx("input",{...s,type:"range",ref:o,className:ye(t,e),id:n||i})});pg.displayName="FormRange";const mg=S.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:o=!1,isInvalid:i=!1,id:a,...l},u)=>{const{controlId:c}=S.useContext(fn);return e=Ae(e,"form-select"),r.jsx("select",{...l,size:n,ref:u,className:ye(s,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:a||c})});mg.displayName="FormSelect";const hg=S.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...o},i)=>(e=Ae(e,"form-text"),r.jsx(n,{...o,ref:i,className:ye(t,e,s&&"text-muted")})));hg.displayName="FormText";const vg=S.forwardRef((e,t)=>r.jsx(ga,{...e,ref:t,type:"switch"}));vg.displayName="Switch";const vw=Object.assign(vg,{Input:ga.Input,Label:ga.Label}),gg=S.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:o,...i},a)=>(e=Ae(e,"form-floating"),r.jsxs(kd,{ref:a,className:ye(t,e),controlId:s,...i,children:[n,r.jsx("label",{htmlFor:s,children:o})]})));gg.displayName="FloatingLabel";const gw={_ref:Xt.any,validated:Xt.bool,as:Xt.elementType},Ed=S.forwardRef(({className:e,validated:t,as:n="form",...s},o)=>r.jsx(n,{...s,ref:o,className:ye(e,t&&"was-validated")}));Ed.displayName="Form";Ed.propTypes=gw;const Zn=Object.assign(Ed,{Group:kd,Control:hw,Floating:dg,Check:ga,Switch:vw,Label:fg,Text:hg,Range:pg,Select:mg,FloatingLabel:gg});var oi;function Sp(e){if((!oi&&oi!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),oi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oi}function Jl(e){e===void 0&&(e=Qa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function xw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const kp=pw("modal-open");class Pd{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return xw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[s]:o.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(mr(o,s)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(kp,""),mr(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(kp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Zl=(e,t)=>xs?e==null?(t||Qa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function yw(e,t){const n=wd(),[s,o]=S.useState(()=>Zl(e,n==null?void 0:n.document));if(!s){const i=Zl(e);i&&o(i)}return S.useEffect(()=>{},[t,s]),S.useEffect(()=>{const i=Zl(e);i!==s&&o(i)},[e,s]),s}function jw({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:o}){const i=S.useRef(null),a=S.useRef(t),l=Yt(n);S.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const u=Io(i,e.ref),c=S.cloneElement(e,{ref:u});return t?c:o||!a.current&&s?null:c}const Nw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Cw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function bw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:u}=e,c=Cw(e,Nw);const{major:d}=sg(),f=d>=19?u.props.ref:u.ref,g=S.useRef(null),b=Io(g,typeof u=="function"?null:f),x=O=>T=>{O&&g.current&&O(g.current,T)},N=S.useCallback(x(t),[t]),C=S.useCallback(x(n),[n]),m=S.useCallback(x(s),[s]),v=S.useCallback(x(o),[o]),h=S.useCallback(x(i),[i]),y=S.useCallback(x(a),[a]),k=S.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:N},n&&{onEntering:C},s&&{onEntered:m},o&&{onExit:v},i&&{onExiting:h},a&&{onExited:y},l&&{addEndListener:k},{children:typeof u=="function"?(O,T)=>u(O,Object.assign({},T,{ref:b})):S.cloneElement(u,{ref:b})})}const ww=["component"];function Sw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const kw=S.forwardRef((e,t)=>{let{component:n}=e,s=Sw(e,ww);const o=bw(s);return r.jsx(n,Object.assign({ref:t},o))});function Ew({in:e,onTransition:t}){const n=S.useRef(null),s=S.useRef(!0),o=Yt(t);return bp(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:s.current,isStale:()=>i}),()=>{i=!0}},[e,o]),bp(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function Pw({children:e,in:t,onExited:n,onEntered:s,transition:o}){const[i,a]=S.useState(!t);t&&i&&a(!1);const l=Ew({in:!!t,onTransition:c=>{const d=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(o(c)).then(d,f=>{throw c.in||a(!0),f})}}),u=Io(l,e.ref);return i&&!t?null:S.cloneElement(e,{ref:u})}function Ep(e,t,n){return e?r.jsx(kw,Object.assign({},n,{component:e})):t?r.jsx(Pw,Object.assign({},n,{transition:t})):r.jsx(jw,Object.assign({},n))}const _w=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Ow(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let ec;function Tw(e){return ec||(ec=new Pd({ownerDocument:e==null?void 0:e.document})),ec}function Rw(e){const t=wd(),n=e||Tw(t),s=S.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:S.useCallback(o=>{s.current.dialog=o},[]),setBackdropRef:S.useCallback(o=>{s.current.backdrop=o},[])})}const xg=S.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:o,style:i,children:a,backdrop:l=!0,keyboard:u=!0,onBackdropClick:c,onEscapeKeyDown:d,transition:f,runTransition:g,backdropTransition:b,runBackdropTransition:x,autoFocus:N=!0,enforceFocus:C=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:y=pe=>r.jsx("div",Object.assign({},pe)),manager:k,container:O,onShow:T,onHide:_=()=>{},onExit:D,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,F=Ow(e,_w);const U=wd(),G=yw(O),R=Rw(k),A=Xb(),B=Jb(n),[M,W]=S.useState(!n),K=S.useRef(null);S.useImperativeHandle(t,()=>R,[R]),xs&&!B&&n&&(K.current=Jl(U==null?void 0:U.document)),n&&M&&W(!1);const Y=Yt(()=>{if(R.add(),ce.current=ha(document,"keydown",se),ae.current=ha(document,"focus",()=>setTimeout(re),!0),T&&T(),N){var pe,zt;const Ke=Jl((pe=(zt=R.dialog)==null?void 0:zt.ownerDocument)!=null?pe:U==null?void 0:U.document);R.dialog&&Ke&&!wp(R.dialog,Ke)&&(K.current=Ke,R.dialog.focus())}}),ee=Yt(()=>{if(R.remove(),ce.current==null||ce.current(),ae.current==null||ae.current(),m){var pe;(pe=K.current)==null||pe.focus==null||pe.focus(v),K.current=null}});S.useEffect(()=>{!n||!G||Y()},[n,G,Y]),S.useEffect(()=>{M&&ee()},[M,ee]),ig(()=>{ee()});const re=Yt(()=>{if(!C||!A()||!R.isTopModal())return;const pe=Jl(U==null?void 0:U.document);R.dialog&&pe&&!wp(R.dialog,pe)&&R.dialog.focus()}),ne=Yt(pe=>{pe.target===pe.currentTarget&&(c==null||c(pe),l===!0&&_())}),se=Yt(pe=>{u&&ow(pe)&&R.isTopModal()&&(d==null||d(pe),pe.defaultPrevented||_())}),ae=S.useRef(),ce=S.useRef(),ge=(...pe)=>{W(!0),z==null||z(...pe)};if(!G)return null;const Le=Object.assign({role:s,ref:R.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},F,{style:i,className:o,tabIndex:-1});let Nt=h?h(Le):r.jsx("div",Object.assign({},Le,{children:S.cloneElement(a,{role:"document"})}));Nt=Ep(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:D,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Nt});let Bt=null;return l&&(Bt=y({ref:R.setBackdropRef,onClick:ne}),Bt=Ep(b,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Bt})),r.jsx(r.Fragment,{children:Wr.createPortal(r.jsxs(r.Fragment,{children:[Bt,Nt]}),G)})});xg.displayName="Modal";const Aw=Object.assign(xg,{Manager:Pd});function Iw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Fw(e,t){e.classList?e.classList.add(t):Iw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Pp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Dw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Pp(e.className,t):e.setAttribute("class",Pp(e.className&&e.className.baseVal||"",t))}const _r={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Mw extends Pd{adjustAndStore(t,n,s){const o=n.style[t];n.dataset[t]=o,mr(n,{[t]:`${parseFloat(mr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],mr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Fw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Pr(n,_r.FIXED_CONTENT).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth)),Pr(n,_r.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),Pr(n,_r.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Dw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Pr(n,_r.FIXED_CONTENT).forEach(i=>this.restore(s,i)),Pr(n,_r.STICKY_CONTENT).forEach(i=>this.restore(o,i)),Pr(n,_r.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let tc;function Lw(e){return tc||(tc=new Mw(e)),tc}const yg=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ae(t,"modal-body"),r.jsx(n,{ref:o,className:ye(e,t),...s})));yg.displayName="ModalBody";const jg=S.createContext({onHide(){}}),_d=S.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:o,fullscreen:i,children:a,scrollable:l,...u},c)=>{e=Ae(e,"modal");const d=`${e}-dialog`,f=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...u,ref:c,className:ye(d,t,o&&`${e}-${o}`,s&&`${d}-centered`,l&&`${d}-scrollable`,i&&f),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});_d.displayName="ModalDialog";const Ng=S.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ae(t,"modal-footer"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Ng.displayName="ModalFooter";const Bw=S.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:o,...i},a)=>{const l=S.useContext(jg),u=Yt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...i,children:[o,n&&r.jsx(bd,{"aria-label":e,variant:t,onClick:u})]})}),Cg=S.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...o},i)=>(e=Ae(e,"modal-header"),r.jsx(Bw,{ref:i,...o,className:ye(t,e),closeLabel:n,closeButton:s})));Cg.displayName="ModalHeader";const zw=Gb("h4"),bg=S.forwardRef(({className:e,bsPrefix:t,as:n=zw,...s},o)=>(t=Ae(t,"modal-title"),r.jsx(n,{ref:o,className:ye(e,t),...s})));bg.displayName="ModalTitle";function $w(e){return r.jsx(Cd,{...e,timeout:null})}function Ww(e){return r.jsx(Cd,{...e,timeout:null})}const wg=S.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:o,children:i,dialogAs:a=_d,"data-bs-theme":l,"aria-labelledby":u,"aria-describedby":c,"aria-label":d,show:f=!1,animation:g=!0,backdrop:b=!0,keyboard:x=!0,onEscapeKeyDown:N,onShow:C,onHide:m,container:v,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:k=!0,restoreFocusOptions:O,onEntered:T,onExit:_,onExiting:D,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...F},U)=>{const[G,R]=S.useState({}),[A,B]=S.useState(!1),M=S.useRef(!1),W=S.useRef(!1),K=S.useRef(null),[Y,ee]=Qb(),re=Io(U,ee),ne=Yt(m),se=Tb();e=Ae(e,"modal");const ae=S.useMemo(()=>({onHide:ne}),[ne]);function ce(){return Z||Lw({isRTL:se})}function ge(de){if(!xs)return;const Ut=ce().getScrollbarWidth()>0,gn=de.scrollHeight>Qa(de).documentElement.clientHeight;R({paddingRight:Ut&&!gn?Sp():void 0,paddingLeft:!Ut&&gn?Sp():void 0})}const Le=Yt(()=>{Y&&ge(Y.dialog)});ig(()=>{gu(window,"resize",Le),K.current==null||K.current()});const Nt=()=>{M.current=!0},Bt=de=>{M.current&&Y&&de.target===Y.dialog&&(W.current=!0),M.current=!1},pe=()=>{B(!0),K.current=ng(Y.dialog,()=>{B(!1)})},zt=de=>{de.target===de.currentTarget&&pe()},Ke=de=>{if(b==="static"){zt(de);return}if(W.current||de.target!==de.currentTarget){W.current=!1;return}m==null||m()},Gn=de=>{x?N==null||N(de):(de.preventDefault(),b==="static"&&pe())},Jt=(de,Ut)=>{de&&ge(de),z==null||z(de,Ut)},ys=de=>{K.current==null||K.current(),_==null||_(de)},js=(de,Ut)=>{H==null||H(de,Ut),tg(window,"resize",Le)},Qn=de=>{de&&(de.style.display=""),te==null||te(de),gu(window,"resize",Le)},$t=S.useCallback(de=>r.jsx("div",{...de,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),vn={...n,...G};vn.display="block";const Wt=de=>r.jsx("div",{role:"dialog",...de,style:vn,className:ye(t,e,A&&`${e}-static`,!g&&"show"),onClick:b?Ke:void 0,onMouseUp:Bt,"data-bs-theme":l,"aria-label":d,"aria-labelledby":u,"aria-describedby":c,children:r.jsx(a,{...F,onMouseDown:Nt,className:s,contentClassName:o,children:i})});return r.jsx(jg.Provider,{value:ae,children:r.jsx(Aw,{show:f,ref:re,backdrop:b,container:v,keyboard:!0,autoFocus:h,enforceFocus:y,restoreFocus:k,restoreFocusOptions:O,onEscapeKeyDown:Gn,onShow:C,onHide:m,onEnter:Jt,onEntering:js,onEntered:T,onExit:ys,onExiting:D,onExited:Qn,manager:ce(),transition:g?$w:void 0,backdropTransition:g?Ww:void 0,renderBackdrop:$t,renderDialog:Wt})})});wg.displayName="Modal";const ii=Object.assign(wg,{Body:yg,Header:Cg,Title:bg,Footer:Ng,Dialog:_d,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Uw=()=>{var O;const{id:e}=gs(),t=yt(),{selectedProperty:n,status:s,error:o}=Re(T=>T.property),{user:i}=Re(T=>({...T.auth})),[a,l]=S.useState("propertydetails"),[u,c]=S.useState(!0),[d,f]=S.useState(!1),[g,b]=S.useState({fundValue:"0",fundPercentage:"0"});if(S.useEffect(()=>{e&&t(Qs(e))},[e,t]),S.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",o]});const x=((O=i==null?void 0:i.result)==null?void 0:O.userId)===(n==null?void 0:n.userId),N=!!i,C=()=>{f(!0)},m=()=>{f(!1)},v=T=>{const{name:_,value:D}=T.target;b({...g,[_]:D})},h=T=>{if(T.preventDefault(),g.fundValue<=0)return oe.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return oe.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return oe.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Pi({id:e,fundDetails:_,toast:oe})),m()},y=T=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(_i({id:e,fundDetailId:T,token:_}))},k=T=>{window.confirm("Are you sure you want to delete this?")&&y(T)};return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:u?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||St,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:St,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!N,onClick:x||!N?null:C,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!N&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((T,_)=>{var D,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",T.fundValue,", Interest Percentage: ",T.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((D=i==null?void 0:i.result)==null?void 0:D.userId)&&((z=i==null?void 0:i.result)==null?void 0:z._id)===T.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>k(T._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(Ze,{}),r.jsxs(ii,{show:d,onHide:m,children:[r.jsx(ii.Header,{closeButton:!0,children:r.jsx(ii.Title,{children:"Investment/Funding Details"})}),r.jsx(ii.Body,{children:r.jsxs(Zn,{onSubmit:h,children:[r.jsxs(Zn.Group,{children:[r.jsx(Zn.Label,{children:"Total Fund Value"}),r.jsx(Zn.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(Zn.Group,{children:[r.jsx(Zn.Label,{children:"Interest Percentage"}),r.jsx(Zn.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(og,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},qw=()=>{const[e,t]=S.useState([]),[n,s]=S.useState(0),[o,i]=S.useState(0),[a]=S.useState(10),[l,u]=S.useState(""),[c,d]=S.useState(!1),[f,g]=S.useState(!1),b=async()=>{d(!0),g(!1);try{const m=await ve.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:o*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},x=m=>{u(m.target.value),m.target.value.trim()===""&&(i(0),t([]),s(0),g(!1),b())},N=m=>{m.key==="Enter"&&(m.preventDefault(),b())};S.useEffect(()=>{b()},[l,o]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:N})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[f&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(me,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",C," "]}),r.jsx("button",{onClick:()=>i(o+1),disabled:o+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(Ze,{})]})},Vw=()=>r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(Ze,{})]}),Hw=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=S.useState(null),[s,o]=S.useState(!0);return S.useEffect(()=>{(async()=>{try{const a=await ve.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{o(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(Ze,{})]})},Kw=()=>{const{id:e}=gs(),t=yt(),[n,s]=S.useState("propertydetails"),o=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting")},i=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images")},{selectedProperty:a}=Re(E=>E.property),[l,u]=S.useState({address:"",city:"",state:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0"}),c=[1,2,3,4,5,6,7,8,9,10];S.useEffect(()=>{t(Qs(e))},[t,e]),S.useEffect(()=>{a&&u({address:a.address||"",city:a.city||"",state:a.state||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn})},[a]);const d=E=>{u({...l,[E.target.name]:E.target.value})},f=(E,P)=>{const{name:p,value:j}=E.target,w=[...l.propertyTaxInfo],L={...w[P]};L[p]=j,w[P]=L,u({...l,propertyTaxInfo:w})},g=E=>{E.preventDefault();const P=z(),p=F(),j=U(),w=M(),L=W(),q=ne(),X=Le(),le=Ke(),Mo=Gn(),tl=Jt(),nl=vn(),rl=Wt(),sl=Wt(),ol=Ns(),il=Do(),al=Jn(),ll=Zt(),cl=Sr(),ul=bs(),dl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:p.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:L.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:le.toFixed(2),totalRenovationsandHoldingCost:Mo.toFixed(2),totalCoststoBuyAtoB:tl.toFixed(2),totalcostPaidOutofClosing:nl.toFixed(2),totalCosttoSellBtoC:rl.toFixed(2),grossproceedsperHUD:sl.toFixed(2),totaladjustments:ol.toFixed(2),fundsavailablefordistribution:il.toFixed(2),totalincomestatement:al.toFixed(2),netBtoCsalevalue:ll.toFixed(2),netprofitbeforefinancingcosts:cl.toFixed(2),netprofit:ul.toFixed(2)};t(Ei({id:e,propertyData:dl}))},b=()=>{u({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=E=>{const P=l.propertyTaxInfo.filter((p,j)=>j!==E);u({...l,propertyTaxInfo:P})},N=(E,P)=>{const p=[...l.images];p[P]={...p[P],file:E.base64},u({...l,images:p})},C=()=>{u({...l,images:[...l.images,{title:"",file:""}]})},m=E=>{const P=l.images.filter((p,j)=>j!==E);u({...l,images:P})},v=(E,P)=>{const p=[...l.images];p[E]={...p[E],title:P.target.value},u({...l,images:p})};S.useEffect(()=>{k(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,y]=S.useState("0 days"),k=(E,P)=>{if(E&&P){const p=new Date(E),j=new Date(P),w=Math.abs(j-p),L=Math.ceil(w/(1e3*60*60*24));y(`${L} days`)}else y("0 days")},O=()=>{u(E=>({...E,costPaidAtoB:[...E.costPaidAtoB,{title:"",price:""}]}))},T=E=>{const P=l.costPaidAtoB.filter((p,j)=>j!==E);u(p=>({...p,costPaidAtoB:P}))},_=(E,P,p)=>{const j=[...l.costPaidAtoB];j[E][P]=p,u(w=>({...w,costPaidAtoB:j}))},D=(E,P)=>{let p=E.target.value;if(p=p.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidAtoB.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,costPaidAtoB:w})}},z=()=>{const E=l.costPaidAtoB.reduce((p,j)=>{const w=parseFloat(j.price)||0;return p+w},0),P=parseFloat(l.purchaseCost)||0;return E+P},H=()=>{u(E=>({...E,credits:[...E.credits,{title:"",price:""}]}))},te=E=>{const P=l.credits.filter((p,j)=>j!==E);u(p=>({...p,credits:P}))},Q=(E,P,p)=>{const j=[...l.credits];j[E][P]=p,u(w=>({...w,credits:j}))},Z=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.credits.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,credits:w})}else{const w=l.credits.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,credits:w})}},F=()=>l.credits.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),U=()=>{const E=l.costPaidAtoB.reduce((j,w)=>{const L=parseFloat(w.price)||0;return j+L},0),P=l.credits.reduce((j,w)=>{const L=parseFloat(w.price)||0;return j+L},0),p=parseFloat(l.purchaseCost)||0;return E+P+p},G=()=>{u(E=>({...E,cashAdjustments:[...E.cashAdjustments,{title:"",price:""}]}))},R=E=>{const P=l.cashAdjustments.filter((p,j)=>j!==E);u(p=>({...p,cashAdjustments:P}))},A=(E,P,p)=>{const j=[...l.cashAdjustments];j[E][P]=p,u(w=>({...w,cashAdjustments:j}))},B=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.cashAdjustments.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,cashAdjustments:w})}},M=()=>l.cashAdjustments.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),W=()=>{const E=M(),P=F(),p=z();return E+P+p},K=()=>{u(E=>({...E,incidentalCost:[...E.incidentalCost,{title:"",price:""}]}))},Y=E=>{const P=l.incidentalCost.filter((p,j)=>j!==E);u(p=>({...p,incidentalCost:P}))},ee=(E,P,p)=>{const j=[...l.incidentalCost];j[E][P]=p,u(w=>({...w,incidentalCost:j}))},re=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incidentalCost.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),se=()=>{u(E=>({...E,carryCosts:[...E.carryCosts,{title:"",price:""}]}))},ae=E=>{const P=l.carryCosts.filter((p,j)=>j!==E);u(p=>({...p,carryCosts:P}))},ce=(E,P,p)=>{const j=[...l.carryCosts];j[E][P]=p,u(w=>({...w,carryCosts:j}))},ge=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.carryCosts.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,carryCosts:w})}else{const w=l.carryCosts.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,carryCosts:w})}},Le=()=>l.carryCosts.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Nt=()=>{u(E=>({...E,renovationCost:[...E.renovationCost,{title:"",price:""}]}))},Bt=E=>{const P=l.renovationCost.filter((p,j)=>j!==E);u(p=>({...p,renovationCost:P}))},pe=(E,P,p)=>{const j=[...l.renovationCost];j[E][P]=p,u(w=>({...w,renovationCost:j}))},zt=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.renovationCost.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,renovationCost:w})}else{const w=l.renovationCost.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,renovationCost:w})}},Ke=()=>l.renovationCost.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Gn=()=>{const E=ne(),P=Le(),p=Ke();return E+P+p},Jt=()=>{const E=Gn(),P=W();return E+P},ys=()=>{u(E=>({...E,costPaidOutofClosing:[...E.costPaidOutofClosing,{title:"",price:""}]}))},js=E=>{const P=l.costPaidOutofClosing.filter((p,j)=>j!==E);u(p=>({...p,costPaidOutofClosing:P}))},Qn=(E,P,p)=>{const j=[...l.costPaidOutofClosing];j[E][P]=p,u(w=>({...w,costPaidOutofClosing:j}))},$t=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.costPaidOutofClosing.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,costPaidOutofClosing:w})}},vn=()=>l.costPaidOutofClosing.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Wt=()=>{const E=l.sellingPriceBtoC,P=vn();return E-P},de=()=>{u(E=>({...E,adjustments:[...E.adjustments,{title:"",price:""}]}))},Ut=E=>{const P=l.adjustments.filter((p,j)=>j!==E);u(p=>({...p,adjustments:P}))},gn=(E,P,p)=>{const j=[...l.adjustments];j[E][P]=p,u(w=>({...w,adjustments:j}))},Fo=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.adjustments.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,adjustments:w})}else{const w=l.adjustments.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,adjustments:w})}},Ns=()=>l.adjustments.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Do=()=>{const E=Wt(),P=Ns();return E+P},Ja=()=>{u(E=>({...E,incomestatement:[...E.incomestatement,{title:"",price:""}]}))},Za=E=>{const P=l.incomestatement.filter((p,j)=>j!==E);u(p=>({...p,incomestatement:P}))},Cs=(E,P,p)=>{const j=[...l.incomestatement];j[E][P]=p,u(w=>({...w,incomestatement:j}))},Xn=(E,P)=>{const p=E.target.value;if(/^\d*\.?\d*$/.test(p)||p===""){const w=l.incomestatement.map((L,q)=>q===P?{...L,price:p,isInvalid:!1}:L);u({...l,incomestatement:w})}else{const w=l.incomestatement.map((L,q)=>q===P?{...L,isInvalid:!0}:L);u({...l,incomestatement:w})}},Jn=()=>l.incomestatement.reduce((E,P)=>{const p=parseFloat(P.price);return E+(isNaN(p)?0:p)},0),Zt=()=>{const E=Jn(),P=Wt();return E+P},Sr=()=>{const E=isNaN(parseFloat(Zt()))?0:parseFloat(Zt()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),p=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),L=isNaN(parseFloat(Jt()))?0:parseFloat(Jt());return E+P+p+j+w-L},bs=()=>{const E=Sr(),P=l.FinancingCostClosingCost;return E-P},el=()=>bs();return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center",children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:d,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((E,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:E.propertytaxowned,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:E.ownedyear,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:E.taxassessed,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:E.taxyear,onChange:p=>f(p,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:b,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,placeholder:"Image Title",onChange:p=>v(P,p)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Nd,{multiple:!1,onDone:p=>N(p,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),style:{marginLeft:"5px"},children:"Delete"})]}),E.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:E.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:d,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY&center=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:E=>{const P=E.target.value;u({...l,closeDateAtoB:P}),k(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:E=>{const P=E.target.value;u({...l,closeDateBtoC:P}),k(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(E=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${E}`,value:E,checked:l.renovationRisk===E,onChange:P=>{const p=parseInt(P.target.value,10);u({...l,renovationRisk:p})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${E}`,children:E})]},E))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${el().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:E=>{let P=E.target.value.replace(/[^\d.]/g,"");const p=/^\d*\.?\d*$/.test(P);u({...l,purchaseCost:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>_(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:`$ ${E.price}`,onChange:p=>D(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>T(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:O,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Q(P,"title",p.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Z(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:F(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>A(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>B(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>R(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ee(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>re(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>ce(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>ge(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ae(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Le(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>pe(P,"title",p.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>zt(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Bt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Nt,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ke(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Jt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Qn(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>$t(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:vn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>gn(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Fo(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:de,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Do(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((E,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:p=>Cs(P,"title",p.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:p=>Xn(p,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Za(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ja,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Jt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,shorttermrental:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,OtherIncome:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,InsuranceClaim:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,LongTermRental:P,isPurchaseCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Sr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:E=>{const P=E.target.value,p=/^\d*\.?\d*$/.test(P);u({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!p})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),u({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},Yw=()=>{const e=yt(),{properties:t,loading:n,totalPages:s,currentPage:o}=Re(N=>N.property),[i,a]=S.useState(""),[l,u]=S.useState([]),[c,d]=S.useState(1),f=10;S.useEffect(()=>{e(es({page:c,limit:f,keyword:i}))},[e,c,i]),S.useEffect(()=>{i.trim()?u(t.filter(N=>N.address.toLowerCase().includes(i.toLowerCase()))):u(t)},[i,t]);const g=N=>{a(N.target.value)},b=N=>{N.preventDefault()},x=N=>{d(N),e(es({page:N,limit:f,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:b,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(N=>r.jsxs("tr",{children:[r.jsx("td",{children:N.images&&N.images[0]?r.jsx("img",{src:N.images[0].file||St,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:St,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(me,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",children:N.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),N.city,", ",N.county,","," ",N.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",N.propertyId]})]})]})}),r.jsx("td",{children:N.totallivingsqft}),r.jsx("td",{children:N.yearBuild}),r.jsx("td",{children:N.costpersqft})]},N.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o-1),children:"Previous"})}),Array.from({length:s},(N,C)=>r.jsx("li",{className:`page-item ${o===C+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(C+1),children:C+1})},C+1)),r.jsx("li",{className:`page-item ${o===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o+1),children:"Next"})})]})})]}),r.jsx(Ze,{})]})},Gw=()=>{const{userId:e}=gs(),t=yt(),{user:n,loading:s}=Re(o=>o.user);return console.log("user",n),S.useEffect(()=>{e&&t(wi(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Me,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Ti,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Qw=()=>r.jsxs(uC,{children:[r.jsx(PC,{}),r.jsxs(nC,{children:[r.jsx(Ie,{path:"/",element:r.jsx(OC,{})}),r.jsx(Ie,{path:"/about",element:r.jsx(TC,{})}),r.jsx(Ie,{path:"/services",element:r.jsx(Vw,{})}),r.jsx(Ie,{path:"/contact",element:r.jsx(RC,{})}),r.jsx(Ie,{path:"/register",element:r.jsx(sb,{})}),r.jsx(Ie,{path:"/registrationsuccess",element:r.jsx(Ri,{children:r.jsx(bb,{})})}),r.jsx(Ie,{path:"/login",element:r.jsx(ib,{})}),r.jsx(Ie,{path:"/dashboard",element:r.jsx(Ri,{children:r.jsx(pb,{})})}),r.jsx(Ie,{path:"/users/:id/verify/:token",element:r.jsx(jb,{})}),r.jsx(Ie,{path:"/forgotpassword",element:r.jsx(Nb,{})}),r.jsx(Ie,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Cb,{})}),r.jsx(Ie,{path:"/property/:id",element:r.jsx(Uw,{})}),r.jsx(Ie,{path:"/properties/:house_id",element:r.jsx(Hw,{})}),r.jsx(Ie,{path:"/searchmyproperties",element:r.jsx(qw,{})}),r.jsx(Ie,{path:"/searchproperties",element:r.jsx(Yw,{})}),r.jsx(Ie,{path:"/editproperty/:id",element:r.jsx(Ri,{children:r.jsx(Kw,{})})}),r.jsx(Ie,{path:"/profile/:userId",element:r.jsx(Gw,{})})]})]});Wh(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(Ej,{store:hN,children:r.jsx(Qw,{})})}));