From cf4368f8553682ef23d5738047d8812d66df30a0 Mon Sep 17 00:00:00 2001 From: omkieit Date: Mon, 7 Oct 2024 17:52:01 +0530 Subject: [PATCH] done --- ef-api/models/property.js | 36 ++ ef-ui/dist/assets/index-BXhlX8aB.js | 85 ----- ef-ui/dist/assets/index-KWwl6oqn.js | 85 +++++ ef-ui/dist/index.html | 2 +- ef-ui/src/components/Addproperty.jsx | 549 ++++++++++++++++++++++++++- 5 files changed, 657 insertions(+), 100 deletions(-) delete mode 100644 ef-ui/dist/assets/index-BXhlX8aB.js create mode 100644 ef-ui/dist/assets/index-KWwl6oqn.js diff --git a/ef-api/models/property.js b/ef-api/models/property.js index d2a6bcb..4526340 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -106,6 +106,26 @@ const propertySchema = mongoose.Schema({ type: Number, required: true, // Set to true if this field is mandatory }, + cashAdjustments: [ + { + title: { + type: String, + required: true, // Set to true if this field is mandatory + }, + price: { + type: Number, + required: true, // Set to true if this field is mandatory + }, + }, + ], + totalcashAdjustments:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + totalcashsurplus :{ + type: Number, + required: true, // Set to true if this field is mandatory + }, incidentalCost: [ { title: { @@ -138,6 +158,22 @@ const propertySchema = mongoose.Schema({ type: Number, required: true, // Set to true if this field is mandatory }, + renovationCost: [ + { + title: { + type: String, + required: true, // Set to true if this field is mandatory + }, + price: { + type: Number, + required: true, // Set to true if this field is mandatory + }, + }, + ], + totalrenovationCost:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, }); const PropertyModal = mongoose.model("property", propertySchema); diff --git a/ef-ui/dist/assets/index-BXhlX8aB.js b/ef-ui/dist/assets/index-BXhlX8aB.js deleted file mode 100644 index f4170e1..0000000 --- a/ef-ui/dist/assets/index-BXhlX8aB.js +++ /dev/null @@ -1,85 +0,0 @@ -var rh=Object.defineProperty;var ih=(e,t,n)=>t in e?rh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $l=(e,t,n)=>ih(e,typeof t!="symbol"?t+"":t,n);function oh(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const a of l.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var lh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},dl={},Td={exports:{}},ne={};/** - * @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 Ci=Symbol.for("react.element"),ah=Symbol.for("react.portal"),sh=Symbol.for("react.fragment"),ch=Symbol.for("react.strict_mode"),uh=Symbol.for("react.profiler"),dh=Symbol.for("react.provider"),fh=Symbol.for("react.context"),ph=Symbol.for("react.forward_ref"),mh=Symbol.for("react.suspense"),hh=Symbol.for("react.memo"),vh=Symbol.for("react.lazy"),Uc=Symbol.iterator;function yh(e){return e===null||typeof e!="object"?null:(e=Uc&&e[Uc]||e["@@iterator"],typeof e=="function"?e:null)}var Rd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Id=Object.assign,Ad={};function Nr(e,t,n){this.props=e,this.context=t,this.refs=Ad,this.updater=n||Rd}Nr.prototype.isReactComponent={};Nr.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")};Nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dd(){}Dd.prototype=Nr.prototype;function Ls(e,t,n){this.props=e,this.context=t,this.refs=Ad,this.updater=n||Rd}var Fs=Ls.prototype=new Dd;Fs.constructor=Ls;Id(Fs,Nr.prototype);Fs.isPureReactComponent=!0;var $c=Array.isArray,Md=Object.prototype.hasOwnProperty,zs={current:null},Ld={key:!0,ref:!0,__self:!0,__source:!0};function Fd(e,t,n){var r,i={},l=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(l=""+t.key),t)Md.call(t,r)&&!Ld.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,z=k[M];if(0>>1;Mi(P,D))Li(R,P)?(k[M]=R,k[L]=D,M=L):(k[M]=P,k[q]=D,M=q);else if(Li(R,D))k[M]=R,k[L]=D,M=L;else break e}}return C}function i(k,C){var D=k.sortIndex-C.sortIndex;return D!==0?D:k.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],d=1,p=null,y=3,N=!1,v=!1,j=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(k){for(var C=n(u);C!==null;){if(C.callback===null)r(u);else if(C.startTime<=k)r(u),C.sortIndex=C.expirationTime,t(c,C);else break;C=n(u)}}function g(k){if(j=!1,f(k),!v)if(n(c)!==null)v=!0,B(w);else{var C=n(u);C!==null&&K(g,C.startTime-k)}}function w(k,C){v=!1,j&&(j=!1,h(E),E=-1),N=!0;var D=y;try{for(f(C),p=n(c);p!==null&&(!(p.expirationTime>C)||k&&!$());){var M=p.callback;if(typeof M=="function"){p.callback=null,y=p.priorityLevel;var z=M(p.expirationTime<=C);C=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(c)&&r(c),f(C)}else r(c);p=n(c)}if(p!==null)var V=!0;else{var q=n(u);q!==null&&K(g,q.startTime-C),V=!1}return V}finally{p=null,y=D,N=!1}}var S=!1,b=null,E=-1,A=5,F=-1;function $(){return!(e.unstable_now()-Fk||125M?(k.sortIndex=D,t(u,k),n(c)===null&&k===n(u)&&(j?(h(E),E=-1):j=!0,K(g,D-M))):(k.sortIndex=z,t(c,k),v||N||(v=!0,B(w))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var C=y;return function(){var D=y;y=C;try{return k.apply(this,arguments)}finally{y=D}}}})(Wd);$d.exports=Wd;var _h=$d.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 Ph=O,Ze=_h;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ca=Object.prototype.hasOwnProperty,Oh=/^[: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]*$/,Vc={},qc={};function Th(e){return Ca.call(qc,e)?!0:Ca.call(Vc,e)?!1:Oh.test(e)?qc[e]=!0:(Vc[e]=!0,!1)}function Rh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ih(e,t,n,r){if(t===null||typeof t>"u"||Rh(e,t,n,r))return!0;if(r)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 Le(e,t,n,r,i,l,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=a}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Le(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){ke[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Us=/[\-:]([a-z])/g;function $s(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(Us,$s);ke[t]=new Le(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(Us,$s);ke[t]=new Le(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(Us,$s);ke[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ws(e,t,n,r){var i=ke.hasOwnProperty(t)?ke[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==l[s]){var c=` -`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function Ah(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=Hl(e.type,!1),e;case 11:return e=Hl(e.type.render,!1),e;case 1:return e=Hl(e.type,!0),e;default:return""}}function Oa(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 Vn:return"Fragment";case Wn:return"Portal";case ka:return"Profiler";case Vs:return"StrictMode";case _a:return"Suspense";case Pa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hd:return(e.displayName||"Context")+".Consumer";case qd:return(e._context.displayName||"Context")+".Provider";case qs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hs:return t=e.displayName||null,t!==null?t:Oa(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return Oa(e(t))}catch{}}return null}function Dh(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 Oa(t);case 8:return t===Vs?"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 dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mh(e){var t=Kd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,l.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zi(e){e._valueTracker||(e._valueTracker=Mh(e))}function Qd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Po(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 Ta(e,t){var n=t.checked;return pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Gd(e,t){t=t.checked,t!=null&&Ws(e,"checked",t,!1)}function Ra(e,t){Gd(e,t);var n=dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ia(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ia(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 Ia(e,t,n){(t!=="number"||Po(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zr=Array.isArray;function lr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ri(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wr={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},Lh=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(e){Lh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wr[t]=Wr[e]})});function ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}function tf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Fh=pe({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 Ma(e,t){if(t){if(Fh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function La(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 Fa=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var za=null,ar=null,sr=null;function Jc(e){if(e=Pi(e)){if(typeof za!="function")throw Error(U(280));var t=e.stateNode;t&&(t=vl(t),za(e.stateNode,e.type,t))}}function nf(e){ar?sr?sr.push(e):sr=[e]:ar=e}function rf(){if(ar){var e=ar,t=sr;if(sr=ar=null,Jc(e),t)for(e=0;e>>=0,e===0?32:31-(Qh(e)/Gh|0)|0}var Ui=64,$i=4194304;function Br(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 Io(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Br(s):(l&=a,l!==0&&(r=Br(l)))}else a=n&~i,a!==0?r=Br(a):l!==0&&(r=Br(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ki(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function ev(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qr),lu=" ",au=!1;function Sf(e,t){switch(e){case"keyup":return _v.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function Ov(e,t){switch(e){case"compositionend":return bf(t);case"keypress":return t.which!==32?null:(au=!0,lu);case"textInput":return e=t.data,e===lu&&au?null:e;default:return null}}function Tv(e,t){if(qn)return e==="compositionend"||!tc&&Sf(e,t)?(e=wf(),lo=Xs=Jt=null,qn=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=du(n)}}function Pf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(){for(var e=window,t=Po();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Po(e.document)}return t}function nc(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 Bv(e){var t=Of(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pf(n.ownerDocument.documentElement,n)){if(r!==null&&nc(n)){if(t=r.start,e=r.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 i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=fu(n,l);var a=fu(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(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=document.documentMode,Hn=null,qa=null,Yr=null,Ha=!1;function pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ha||Hn==null||Hn!==Po(r)||(r=Hn,"selectionStart"in r&&nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&ci(Yr,r)||(Yr=r,r=Mo(qa,"onSelect"),0Qn||(e.current=Xa[Qn],Xa[Qn]=null,Qn--)}function oe(e,t){Qn++,Xa[Qn]=e.current,e.current=t}var fn={},Te=hn(fn),Ue=hn(!1),Tn=fn;function pr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $e(e){return e=e.childContextTypes,e!=null}function Fo(){se(Ue),se(Te)}function ju(e,t,n){if(Te.current!==fn)throw Error(U(168));oe(Te,t),oe(Ue,n)}function zf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,Dh(e)||"Unknown",i));return pe({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Tn=Te.current,oe(Te,e),oe(Ue,Ue.current),!0}function Nu(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=zf(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,se(Ue),se(Te),oe(Te,e)):se(Ue),oe(Ue,n)}var Tt=null,yl=!1,la=!1;function Bf(e){Tt===null?Tt=[e]:Tt.push(e)}function Xv(e){yl=!0,Bf(e)}function vn(){if(!la&&Tt!==null){la=!0;var e=0,t=ie;try{var n=Tt;for(ie=1;e>=a,i-=a,Rt=1<<32-ht(t)+i|n<E?(A=b,b=null):A=b.sibling;var F=y(h,b,f[E],g);if(F===null){b===null&&(b=A);break}e&&b&&F.alternate===null&&t(h,b),m=l(F,m,E),S===null?w=F:S.sibling=F,S=F,b=A}if(E===f.length)return n(h,b),ue&&xn(h,E),w;if(b===null){for(;EE?(A=b,b=null):A=b.sibling;var $=y(h,b,F.value,g);if($===null){b===null&&(b=A);break}e&&b&&$.alternate===null&&t(h,b),m=l($,m,E),S===null?w=$:S.sibling=$,S=$,b=A}if(F.done)return n(h,b),ue&&xn(h,E),w;if(b===null){for(;!F.done;E++,F=f.next())F=p(h,F.value,g),F!==null&&(m=l(F,m,E),S===null?w=F:S.sibling=F,S=F);return ue&&xn(h,E),w}for(b=r(h,b);!F.done;E++,F=f.next())F=N(b,h,E,F.value,g),F!==null&&(e&&F.alternate!==null&&b.delete(F.key===null?E:F.key),m=l(F,m,E),S===null?w=F:S.sibling=F,S=F);return e&&b.forEach(function(X){return t(h,X)}),ue&&xn(h,E),w}function x(h,m,f,g){if(typeof f=="object"&&f!==null&&f.type===Vn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Fi:e:{for(var w=f.key,S=m;S!==null;){if(S.key===w){if(w=f.type,w===Vn){if(S.tag===7){n(h,S.sibling),m=i(S,f.props.children),m.return=h,h=m;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Vt&&Su(w)===S.type){n(h,S.sibling),m=i(S,f.props),m.ref=Ar(h,S,f),m.return=h,h=m;break e}n(h,S);break}else t(h,S);S=S.sibling}f.type===Vn?(m=_n(f.props.children,h.mode,g,f.key),m.return=h,h=m):(g=ho(f.type,f.key,f.props,null,h.mode,g),g.ref=Ar(h,m,f),g.return=h,h=g)}return a(h);case Wn:e:{for(S=f.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===f.containerInfo&&m.stateNode.implementation===f.implementation){n(h,m.sibling),m=i(m,f.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=ma(f,h.mode,g),m.return=h,h=m}return a(h);case Vt:return S=f._init,x(h,m,S(f._payload),g)}if(zr(f))return v(h,m,f,g);if(Pr(f))return j(h,m,f,g);Qi(h,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,f),m.return=h,h=m):(n(h,m),m=pa(f,h.mode,g),m.return=h,h=m),a(h)):n(h,m)}return x}var hr=Vf(!0),qf=Vf(!1),$o=hn(null),Wo=null,Xn=null,lc=null;function ac(){lc=Xn=Wo=null}function sc(e){var t=$o.current;se($o),e._currentValue=t}function ts(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ur(e,t){Wo=e,lc=Xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(lc!==e)if(e={context:e,memoizedValue:t,next:null},Xn===null){if(Wo===null)throw Error(U(308));Xn=e,Wo.dependencies={lanes:0,firstContext:e}}else Xn=Xn.next=e;return t}var Sn=null;function cc(e){Sn===null?Sn=[e]:Sn.push(e)}function Hf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,cc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Lt(e,r)}function Lt(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 qt=!1;function uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yf(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 At(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Lt(e,n)}return i=r.interleaved,i===null?(t.next=t,cc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Lt(e,n)}function so(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qs(e,n)}}function bu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=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};l===null?i=l=a:l=l.next=a,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var i=e.updateQueue;qt=!1;var l=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,u=c.next;c.next=null,a===null?l=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(l!==null){var p=i.baseState;a=0,d=u=c=null,s=l;do{var y=s.lane,N=s.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:N,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,j=s;switch(y=t,N=n,j.tag){case 1:if(v=j.payload,typeof v=="function"){p=v.call(N,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=j.payload,y=typeof v=="function"?v.call(N,p,y):v,y==null)break e;p=pe({},p,y);break e;case 2:qt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[s]:y.push(s))}else N={eventTime:N,lane:y,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=N,c=p):d=d.next=N,a|=y;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;y=s,s=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(d===null&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);An|=a,e.lanes=a,e.memoizedState=p}}function Cu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=sa.transition;sa.transition={};try{e(!1),t()}finally{ie=n,sa.transition=r}}function up(){return ct().memoizedState}function ny(e,t,n){var r=sn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dp(e))fp(t,n);else if(n=Hf(e,t,n,r),n!==null){var i=De();vt(n,e,r,i),pp(n,t,r)}}function ry(e,t,n){var r=sn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dp(e))fp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var a=t.lastRenderedState,s=l(a,n);if(i.hasEagerState=!0,i.eagerState=s,gt(s,a)){var c=t.interleaved;c===null?(i.next=i,cc(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Hf(e,t,i,r),n!==null&&(i=De(),vt(n,e,r,i),pp(n,t,r))}}function dp(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function fp(e,t){Kr=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qs(e,n)}}var Yo={readContext:st,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useInsertionEffect:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useSyncExternalStore:_e,useId:_e,unstable_isNewReconciler:!1},iy={readContext:st,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:_u,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uo(4194308,4,op.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return uo(4,2,e,t)},useMemo:function(e,t){var n=wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ny.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:ku,useDebugValue:gc,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=ku(!1),t=e[0];return e=ty.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,i=wt();if(ue){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),we===null)throw Error(U(349));In&30||Jf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,_u(Zf.bind(null,r,l,e),[e]),r.flags|=2048,yi(9,Xf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=wt(),t=we.identifierPrefix;if(ue){var n=It,r=Rt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[St]=t,e[fi]=r,Ep(e,t,!1,!1),t.stateNode=e;e:{switch(a=La(n,r),n){case"dialog":ae("cancel",e),ae("close",e),i=r;break;case"iframe":case"object":case"embed":ae("load",e),i=r;break;case"video":case"audio":for(i=0;igr&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=qo(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!a.alternate&&!ue)return Pe(t),null}else 2*ve()-l.renderingStartTime>gr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304);l.isBackwards?(a.sibling=t.child,t.child=a):(n=l.last,n!==null?n.sibling=a:t.child=a,l.last=a)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,n=de.current,oe(de,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return Sc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function fy(e,t){switch(ic(t),t.tag){case 1:return $e(t.type)&&Fo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vr(),se(Ue),se(Te),pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fc(t),null;case 13:if(se(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(de),null;case 4:return vr(),null;case 10:return sc(t.type._context),null;case 22:case 23:return Sc(),null;case 24:return null;default:return null}}var Ji=!1,Oe=!1,py=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function us(e,t,n){try{n()}catch(r){me(e,t,r)}}var zu=!1;function my(e,t){if(Ya=Ao,e=Of(),nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var a=0,s=-1,c=-1,u=0,d=0,p=e,y=null;t:for(;;){for(var N;p!==n||i!==0&&p.nodeType!==3||(s=a+i),p!==l||r!==0&&p.nodeType!==3||(c=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(N=p.firstChild)!==null;)y=p,p=N;for(;;){if(p===e)break t;if(y===n&&++u===i&&(s=a),y===l&&++d===r&&(c=a),(N=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=N}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ka={focusedElem:e,selectionRange:n},Ao=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var j=v.memoizedProps,x=v.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?j:dt(t.type,j),x);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(g){me(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return v=zu,zu=!1,v}function Qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&us(t,n,l)}i=i.next}while(i!==r)}}function jl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ds(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 Cp(e){var t=e.alternate;t!==null&&(e.alternate=null,Cp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[fi],delete t[Ja],delete t[Gv],delete t[Jv])),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 kp(e){return e.tag===5||e.tag===3||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kp(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 fs(e,t,n){var r=e.tag;if(r===5||r===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=Lo));else if(r!==4&&(e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function ps(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}var be=null,ft=!1;function $t(e,t,n){for(n=n.child;n!==null;)_p(e,t,n),n=n.sibling}function _p(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(fl,n)}catch{}switch(n.tag){case 5:Oe||Zn(n,t);case 6:var r=be,i=ft;be=null,$t(e,t,n),be=r,ft=i,be!==null&&(ft?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(ft?(e=be,n=n.stateNode,e.nodeType===8?oa(e.parentNode,n):e.nodeType===1&&oa(e,n),ai(e)):oa(be,n.stateNode));break;case 4:r=be,i=ft,be=n.stateNode.containerInfo,ft=!0,$t(e,t,n),be=r,ft=i;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,a=l.destroy;l=l.tag,a!==void 0&&(l&2||l&4)&&us(n,t,a),i=i.next}while(i!==r)}$t(e,t,n);break;case 1:if(!Oe&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){me(n,t,s)}$t(e,t,n);break;case 21:$t(e,t,n);break;case 22:n.mode&1?(Oe=(r=Oe)||n.memoizedState!==null,$t(e,t,n),Oe=r):$t(e,t,n);break;default:$t(e,t,n)}}function Uu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new py),t.forEach(function(r){var i=Ey.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~l}if(r=i,r=ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vy(r/1960))-r,10e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Go=0,re&6)throw Error(U(331));var i=re;for(re|=4,Y=e.current;Y!==null;){var l=Y,a=l.child;if(Y.flags&16){var s=l.deletions;if(s!==null){for(var c=0;cve()-wc?kn(e,0):Nc|=n),We(e,t)}function Mp(e,t){t===0&&(e.mode&1?(t=$i,$i<<=1,!($i&130023424)&&($i=4194304)):t=1);var n=De();e=Lt(e,t),e!==null&&(ki(e,t,n),We(e,n))}function wy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mp(e,n)}function Ey(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Mp(e,n)}var Lp;Lp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Be=!1,uy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ue&&t.flags&1048576&&Uf(t,Uo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fo(e,t),e=t.pendingProps;var i=pr(t,Te.current);ur(t,n),i=hc(null,t,r,e,i,n);var l=vc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(l=!0,zo(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,uc(t),i.updater=xl,t.stateNode=i,i._reactInternals=t,rs(t,r,e,n),t=ls(null,t,r,!0,l,n)):(t.tag=0,ue&&l&&rc(t),Ie(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=by(r),e=dt(r,e),i){case 0:t=os(null,t,r,e,n);break e;case 1:t=Mu(null,t,r,e,n);break e;case 11:t=Au(null,t,r,e,n);break e;case 14:t=Du(null,t,r,dt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),os(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),Mu(e,t,r,i,n);case 3:e:{if(jp(t),e===null)throw Error(U(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Yf(e,t),Vo(t,r,null,n);var a=t.memoizedState;if(r=a.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=yr(Error(U(423)),t),t=Lu(e,t,r,n,i);break e}else if(r!==i){i=yr(Error(U(424)),t),t=Lu(e,t,r,n,i);break e}else for(Ke=on(t.stateNode.containerInfo.firstChild),Je=t,ue=!0,pt=null,n=qf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mr(),r===i){t=Ft(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Kf(t),e===null&&es(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,a=i.children,Qa(r,i)?a=null:l!==null&&Qa(r,l)&&(t.flags|=32),xp(e,t),Ie(e,t,a,n),t.child;case 6:return e===null&&es(t),null;case 13:return Np(e,t,n);case 4:return dc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hr(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),Au(e,t,r,i,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,a=i.value,oe($o,r._currentValue),r._currentValue=a,l!==null)if(gt(l.value,a)){if(l.children===i.children&&!Ue.current){t=Ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){a=l.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(l.tag===1){c=At(-1,n&-n),c.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),ts(l.return,n,t),s.lanes|=n;break}c=c.next}}else if(l.tag===10)a=l.type===t.type?null:l.child;else if(l.tag===18){if(a=l.return,a===null)throw Error(U(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ts(a,n,t),a=l.sibling}else a=l.child;if(a!==null)a.return=l;else for(a=l;a!==null;){if(a===t){a=null;break}if(l=a.sibling,l!==null){l.return=a.return,a=l;break}a=a.return}l=a}Ie(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ur(t,n),i=st(i),r=r(i),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,i=dt(r,t.pendingProps),i=dt(r.type,i),Du(e,t,r,i,n);case 15:return yp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),fo(e,t),t.tag=1,$e(r)?(e=!0,zo(t)):e=!1,ur(t,n),mp(t,r,i),rs(t,r,i,n),ls(null,t,r,!0,e,n);case 19:return wp(e,t,n);case 22:return gp(e,t,n)}throw Error(U(156,t.tag))};function Fp(e,t){return df(e,t)}function Sy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lt(e,t,n,r){return new Sy(e,t,n,r)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function by(e){if(typeof e=="function")return Cc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qs)return 11;if(e===Hs)return 14}return 2}function cn(e,t){var n=e.alternate;return n===null?(n=lt(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 ho(e,t,n,r,i,l){var a=2;if(r=e,typeof e=="function")Cc(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vn:return _n(n.children,i,l,t);case Vs:a=8,i|=8;break;case ka:return e=lt(12,n,t,i|2),e.elementType=ka,e.lanes=l,e;case _a:return e=lt(13,n,t,i),e.elementType=_a,e.lanes=l,e;case Pa:return e=lt(19,n,t,i),e.elementType=Pa,e.lanes=l,e;case Yd:return wl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qd:a=10;break e;case Hd:a=9;break e;case qs:a=11;break e;case Hs:a=14;break e;case Vt:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=lt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function _n(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function wl(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Yd,e.lanes=n,e.stateNode={isHidden:!1},e}function pa(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function ma(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cy(e,t,n,r,i){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=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,i,l,a,s,c){return e=new Cy(e,t,n,s,c),t===1?(t=1,l===!0&&(t|=8)):t=0,l=lt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uc(l),e}function ky(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($p)}catch(e){console.error(e)}}$p(),Ud.exports=nt;var Ry=Ud.exports,Wp,Qu=Ry;Wp=Qu.createRoot,Qu.hydrateRoot;var Vp={exports:{}},qp={};/** - * @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 Ti=O;function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ay=typeof Object.is=="function"?Object.is:Iy,Dy=Ti.useSyncExternalStore,My=Ti.useRef,Ly=Ti.useEffect,Fy=Ti.useMemo,zy=Ti.useDebugValue;qp.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=My(null);if(l.current===null){var a={hasValue:!1,value:null};l.current=a}else a=l.current;l=Fy(function(){function c(N){if(!u){if(u=!0,d=N,N=r(N),i!==void 0&&a.hasValue){var v=a.value;if(i(v,N))return p=v}return p=N}if(v=p,Ay(d,N))return v;var j=r(N);return i!==void 0&&i(v,j)?v:(d=N,p=j)}var u=!1,d,p,y=n===void 0?null:n;return[function(){return c(t())},y===null?void 0:function(){return c(y())}]},[t,n,r,i]);var s=Dy(e,l[0],l[1]);return Ly(function(){a.hasValue=!0,a.value=s},[s]),zy(s),s};Vp.exports=qp;var By=Vp.exports,Qe="default"in ba?_:ba,Gu=Symbol.for("react-redux-context"),Ju=typeof globalThis<"u"?globalThis:{};function Uy(){if(!Qe.createContext)return{};const e=Ju[Gu]??(Ju[Gu]=new Map);let t=e.get(Qe.createContext);return t||(t=Qe.createContext(null),e.set(Qe.createContext,t)),t}var pn=Uy(),$y=()=>{throw new Error("uSES not initialized!")};function Tc(e=pn){return function(){return Qe.useContext(e)}}var Hp=Tc(),Yp=$y,Wy=e=>{Yp=e},Vy=(e,t)=>e===t;function qy(e=pn){const t=e===pn?Hp:Tc(e),n=(r,i={})=>{const{equalityFn:l=Vy,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:c,getServerState:u,stabilityCheck:d,identityFunctionCheck:p}=t();Qe.useRef(!0);const y=Qe.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,a.stabilityCheck]),N=Yp(c.addNestedSub,s.getState,u||s.getState,y,l);return Qe.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var He=qy();function Hy(e){e()}function Yy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Hy(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Xu={notify(){},get:()=>[]};function Ky(e,t){let n,r=Xu,i=0,l=!1;function a(j){d();const x=r.subscribe(j);let h=!1;return()=>{h||(h=!0,x(),p())}}function s(){r.notify()}function c(){v.onStateChange&&v.onStateChange()}function u(){return l}function d(){i++,n||(n=e.subscribe(c),r=Yy())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Xu)}function y(){l||(l=!0,d())}function N(){l&&(l=!1,p())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:u,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>r};return v}var Qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gy=typeof navigator<"u"&&navigator.product==="ReactNative",Jy=Qy||Gy?Qe.useLayoutEffect:Qe.useEffect;function Xy({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const a=Qe.useMemo(()=>{const u=Ky(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),s=Qe.useMemo(()=>e.getState(),[e]);Jy(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const c=t||pn;return Qe.createElement(c.Provider,{value:a},n)}var Zy=Xy;function Kp(e=pn){const t=e===pn?Hp:Tc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var eg=Kp();function tg(e=pn){const t=e===pn?eg:Kp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var xt=tg();Wy(By.useSyncExternalStoreWithSelector);function Se(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 ng=typeof Symbol=="function"&&Symbol.observable||"@@observable",Zu=ng,ha=()=>Math.random().toString(36).substring(7).split("").join("."),rg={INIT:`@@redux/INIT${ha()}`,REPLACE:`@@redux/REPLACE${ha()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ha()}`},Zo=rg;function Rc(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 Qp(e,t,n){if(typeof e!="function")throw new Error(Se(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Se(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Se(1));return n(Qp)(e,t)}let r=e,i=t,l=new Map,a=l,s=0,c=!1;function u(){a===l&&(a=new Map,l.forEach((x,h)=>{a.set(h,x)}))}function d(){if(c)throw new Error(Se(3));return i}function p(x){if(typeof x!="function")throw new Error(Se(4));if(c)throw new Error(Se(5));let h=!0;u();const m=s++;return a.set(m,x),function(){if(h){if(c)throw new Error(Se(6));h=!1,u(),a.delete(m),l=null}}}function y(x){if(!Rc(x))throw new Error(Se(7));if(typeof x.type>"u")throw new Error(Se(8));if(typeof x.type!="string")throw new Error(Se(17));if(c)throw new Error(Se(9));try{c=!0,i=r(i,x)}finally{c=!1}return(l=a).forEach(m=>{m()}),x}function N(x){if(typeof x!="function")throw new Error(Se(10));r=x,y({type:Zo.REPLACE})}function v(){const x=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Se(11));function m(){const g=h;g.next&&g.next(d())}return m(),{unsubscribe:x(m)}},[Zu](){return this}}}return y({type:Zo.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[Zu]:v}}function ig(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Zo.INIT})>"u")throw new Error(Se(12));if(typeof n(void 0,{type:Zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Se(13))})}function og(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw s&&s.type,new Error(Se(14));u[p]=v,c=c||v!==N}return c=c||r.length!==Object.keys(a).length,c?u:a}}function el(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function lg(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Se(15))};const a={getState:i.getState,dispatch:(c,...u)=>l(c,...u)},s=e.map(c=>c(a));return l=el(...s)(i.dispatch),{...i,dispatch:l}}}function ag(e){return Rc(e)&&"type"in e&&typeof e.type=="string"}var Gp=Symbol.for("immer-nothing"),ed=Symbol.for("immer-draftable"),et=Symbol.for("immer-state");function mt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xr=Object.getPrototypeOf;function Mn(e){return!!e&&!!e[et]}function zt(e){var t;return e?Jp(e)||Array.isArray(e)||!!e[ed]||!!((t=e.constructor)!=null&&t[ed])||_l(e)||Pl(e):!1}var sg=Object.prototype.constructor.toString();function Jp(e){if(!e||typeof e!="object")return!1;const t=xr(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)===sg}function tl(e,t){kl(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function kl(e){const t=e[et];return t?t.type_:Array.isArray(e)?1:_l(e)?2:Pl(e)?3:0}function gs(e,t){return kl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xp(e,t,n){const r=kl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function cg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function _l(e){return e instanceof Map}function Pl(e){return e instanceof Set}function Nn(e){return e.copy_||e.base_}function xs(e,t){if(_l(e))return new Map(e);if(Pl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Jp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[et];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=ug),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Ic(r,!0))),e}function ug(){mt(2)}function Ol(e){return Object.isFrozen(e)}var dg={};function Ln(e){const t=dg[e];return t||mt(0,e),t}var xi;function Zp(){return xi}function fg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function td(e,t){t&&(Ln("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function js(e){Ns(e),e.drafts_.forEach(pg),e.drafts_=null}function Ns(e){e===xi&&(xi=e.parent_)}function nd(e){return xi=fg(xi,e)}function pg(e){const t=e[et];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function rd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[et].modified_&&(js(t),mt(4)),zt(e)&&(e=nl(t,e),t.parent_||rl(t,e)),t.patches_&&Ln("Patches").generateReplacementPatches_(n[et].base_,e,t.patches_,t.inversePatches_)):e=nl(t,n,[]),js(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gp?e:void 0}function nl(e,t,n){if(Ol(t))return t;const r=t[et];if(!r)return tl(t,(i,l)=>id(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return rl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,a=!1;r.type_===3&&(l=new Set(i),i.clear(),a=!0),tl(l,(s,c)=>id(e,r,i,s,c,n,a)),rl(e,i,!1),n&&e.patches_&&Ln("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function id(e,t,n,r,i,l,a){if(Mn(i)){const s=l&&t&&t.type_!==3&&!gs(t.assigned_,r)?l.concat(r):void 0,c=nl(e,i,s);if(Xp(n,r,c),Mn(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(zt(i)&&!Ol(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;nl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&rl(e,i)}}function rl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ic(t,n)}function mg(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Zp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Ac;n&&(i=[r],l=ji);const{revoke:a,proxy:s}=Proxy.revocable(i,l);return r.draft_=s,r.revoke_=a,s}var Ac={get(e,t){if(t===et)return e;const n=Nn(e);if(!gs(n,t))return hg(e,n,t);const r=n[t];return e.finalized_||!zt(r)?r:r===va(e.base_,t)?(ya(e),e.copy_[t]=Es(r,e)):r},has(e,t){return t in Nn(e)},ownKeys(e){return Reflect.ownKeys(Nn(e))},set(e,t,n){const r=em(Nn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=va(Nn(e),t),l=i==null?void 0:i[et];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(cg(n,i)&&(n!==void 0||gs(e.base_,t)))return!0;ya(e),ws(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 va(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ya(e),ws(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Nn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){mt(11)},getPrototypeOf(e){return xr(e.base_)},setPrototypeOf(){mt(12)}},ji={};tl(Ac,(e,t)=>{ji[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ji.deleteProperty=function(e,t){return ji.set.call(this,e,t,void 0)};ji.set=function(e,t,n){return Ac.set.call(this,e[0],t,n,e[0])};function va(e,t){const n=e[et];return(n?Nn(n):e)[t]}function hg(e,t,n){var i;const r=em(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function em(e,t){if(!(t in e))return;let n=xr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=xr(n)}}function ws(e){e.modified_||(e.modified_=!0,e.parent_&&ws(e.parent_))}function ya(e){e.copy_||(e.copy_=xs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var vg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const a=this;return function(c=l,...u){return a.produce(c,d=>n.call(this,d,...u))}}typeof n!="function"&&mt(6),r!==void 0&&typeof r!="function"&&mt(7);let i;if(zt(t)){const l=nd(this),a=Es(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?js(l):Ns(l)}return td(l,r),rd(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Gp&&(i=void 0),this.autoFreeze_&&Ic(i,!0),r){const l=[],a=[];Ln("Patches").generateReplacementPatches_(t,i,l,a),r(l,a)}return i}else mt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},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){zt(e)||mt(8),Mn(e)&&(e=yg(e));const t=nd(this),n=Es(e,void 0);return n[et].isManual_=!0,Ns(t),n}finishDraft(e,t){const n=e&&e[et];(!n||!n.isManual_)&&mt(9);const{scope_:r}=n;return td(r,t),rd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ln("Patches").applyPatches_;return Mn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Es(e,t){const n=_l(e)?Ln("MapSet").proxyMap_(e,t):Pl(e)?Ln("MapSet").proxySet_(e,t):mg(e,t);return(t?t.scope_:Zp()).drafts_.push(n),n}function yg(e){return Mn(e)||mt(10,e),tm(e)}function tm(e){if(!zt(e)||Ol(e))return e;const t=e[et];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xs(e,t.scope_.immer_.useStrictShallowCopy_)}else n=xs(e,!0);return tl(n,(r,i)=>{Xp(n,r,tm(i))}),t&&(t.finalized_=!1),n}var tt=new vg,nm=tt.produce;tt.produceWithPatches.bind(tt);tt.setAutoFreeze.bind(tt);tt.setUseStrictShallowCopy.bind(tt);tt.applyPatches.bind(tt);tt.createDraft.bind(tt);tt.finishDraft.bind(tt);function rm(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var gg=rm(),xg=rm,jg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?el:el.apply(null,arguments)},Ng=e=>e&&typeof e.match=="function";function Xr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(yt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>ag(r)&&r.type===e,n}var im=class $r extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$r.prototype)}static get[Symbol.species](){return $r}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $r(...t[0].concat(this)):new $r(...t.concat(this))}};function od(e){return zt(e)?nm(e,()=>{}):e}function ld(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(yt(10));const r=n.insert(t,e);return e.set(t,r),r}function wg(e){return typeof e=="boolean"}var Eg=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let a=new im;return n&&(wg(n)?a.push(gg):a.push(xg(n.extraArgument))),a},Sg="RTK_autoBatch",om=e=>t=>{setTimeout(t,e)},bg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:om(10),Cg=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,a=!1;const s=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?bg:e.type==="callback"?e.queueNotification:om(e.timeout),u=()=>{a=!1,l&&(l=!1,s.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>i&&d(),y=r.subscribe(p);return s.add(d),()=>{y(),s.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[Sg]),l=!i,l&&(a||(a=!0,c(u))),r.dispatch(d)}finally{i=!0}}})},kg=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new im(e);return r&&i.push(Cg(typeof r=="object"?r:void 0)),i};function _g(e){const t=Eg(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(Rc(n))s=og(n);else throw new Error(yt(1));let c;typeof r=="function"?c=r(t):c=t();let u=el;i&&(u=jg({trace:!1,...typeof i=="object"&&i}));const d=lg(...c),p=kg(d);let y=typeof a=="function"?a(p):p();const N=u(...y);return Qp(s,l,N)}function lm(e){const t={},n=[];let r;const i={addCase(l,a){const s=typeof l=="string"?l:l.type;if(!s)throw new Error(yt(28));if(s in t)throw new Error(yt(29));return t[s]=a,i},addMatcher(l,a){return n.push({matcher:l,reducer:a}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function Pg(e){return typeof e=="function"}function Og(e,t){let[n,r,i]=lm(t),l;if(Pg(e))l=()=>od(e());else{const s=od(e);l=()=>s}function a(s=l(),c){let u=[n[c.type],...r.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,p)=>{if(p)if(Mn(d)){const N=p(d,c);return N===void 0?d:N}else{if(zt(d))return nm(d,y=>p(y,c));{const y=p(d,c);if(y===void 0){if(d===null)return d;throw new Error(yt(9))}return y}}return d},s)}return a.getInitialState=l,a}var Tg=(e,t)=>Ng(e)?e.match(t):e(t);function Rg(...e){return t=>e.some(n=>Tg(n,t))}var Ig="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ag=(e=21)=>{let t="",n=e;for(;n--;)t+=Ig[Math.random()*64|0];return t},Dg=["name","message","stack","code"],ga=class{constructor(e,t){$l(this,"_type");this.payload=e,this.meta=t}},ad=class{constructor(e,t){$l(this,"_type");this.payload=e,this.meta=t}},Mg=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Dg)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},_t=(()=>{function e(t,n,r){const i=Xr(t+"/fulfilled",(c,u,d,p)=>({payload:c,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),l=Xr(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),a=Xr(t+"/rejected",(c,u,d,p,y)=>({payload:p,error:(r&&r.serializeError||Mg)(c||"Rejected"),meta:{...y||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function s(c){return(u,d,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(c):Ag(),N=new AbortController;let v,j;function x(m){j=m,N.abort()}const h=async function(){var g,w;let m;try{let S=(g=r==null?void 0:r.condition)==null?void 0:g.call(r,c,{getState:d,extra:p});if(Fg(S)&&(S=await S),S===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const b=new Promise((E,A)=>{v=()=>{A({name:"AbortError",message:j||"Aborted"})},N.signal.addEventListener("abort",v)});u(l(y,c,(w=r==null?void 0:r.getPendingMeta)==null?void 0:w.call(r,{requestId:y,arg:c},{getState:d,extra:p}))),m=await Promise.race([b,Promise.resolve(n(c,{dispatch:u,getState:d,extra:p,requestId:y,signal:N.signal,abort:x,rejectWithValue:(E,A)=>new ga(E,A),fulfillWithValue:(E,A)=>new ad(E,A)})).then(E=>{if(E instanceof ga)throw E;return E instanceof ad?i(E.payload,y,c,E.meta):i(E,y,c)})])}catch(S){m=S instanceof ga?a(null,y,c,S.payload,S.meta):a(S,y,c)}finally{v&&N.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&a.match(m)&&m.meta.condition||u(m),m}();return Object.assign(h,{abort:x,requestId:y,arg:c,unwrap(){return h.then(Lg)}})}}return Object.assign(s,{pending:l,rejected:a,fulfilled:i,settled:Rg(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Lg(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fg(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var zg=Symbol.for("rtk-slice-createasyncthunk");function Bg(e,t){return`${e}/${t}`}function Ug({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[zg];return function(i){const{name:l,reducerPath:a=l}=i;if(!l)throw new Error(yt(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Wg()):i.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,g){const w=typeof f=="string"?f:f.type;if(!w)throw new Error(yt(12));if(w in u.sliceCaseReducersByType)throw new Error(yt(13));return u.sliceCaseReducersByType[w]=g,d},addMatcher(f,g){return u.sliceMatchers.push({matcher:f,reducer:g}),d},exposeAction(f,g){return u.actionCreators[f]=g,d},exposeCaseReducer(f,g){return u.sliceCaseReducersByName[f]=g,d}};c.forEach(f=>{const g=s[f],w={reducerName:f,type:Bg(l,f),createNotation:typeof i.reducers=="function"};qg(g)?Yg(w,g,d,t):Vg(w,g,d)});function p(){const[f={},g=[],w=void 0]=typeof i.extraReducers=="function"?lm(i.extraReducers):[i.extraReducers],S={...f,...u.sliceCaseReducersByType};return Og(i.initialState,b=>{for(let E in S)b.addCase(E,S[E]);for(let E of u.sliceMatchers)b.addMatcher(E.matcher,E.reducer);for(let E of g)b.addMatcher(E.matcher,E.reducer);w&&b.addDefaultCase(w)})}const y=f=>f,N=new Map;let v;function j(f,g){return v||(v=p()),v(f,g)}function x(){return v||(v=p()),v.getInitialState()}function h(f,g=!1){function w(b){let E=b[f];return typeof E>"u"&&g&&(E=x()),E}function S(b=y){const E=ld(N,g,{insert:()=>new WeakMap});return ld(E,b,{insert:()=>{const A={};for(const[F,$]of Object.entries(i.selectors??{}))A[F]=$g($,b,x,g);return A}})}return{reducerPath:f,getSelectors:S,get selectors(){return S(w)},selectSlice:w}}const m={name:l,reducer:j,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...h(a),injectInto(f,{reducerPath:g,...w}={}){const S=g??a;return f.inject({reducerPath:S,reducer:j},w),{...m,...h(S,!0)}}};return m}}function $g(e,t,n,r){function i(l,...a){let s=t(l);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var Dc=Ug();function Wg(){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 Vg({type:e,reducerName:t,createNotation:n},r,i){let l,a;if("reducer"in r){if(n&&!Hg(r))throw new Error(yt(17));l=r.reducer,a=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,a?Xr(e,a):Xr(e))}function qg(e){return e._reducerDefinitionType==="asyncThunk"}function Hg(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Yg({type:e,reducerName:t},n,r,i){if(!i)throw new Error(yt(18));const{payloadCreator:l,fulfilled:a,pending:s,rejected:c,settled:u,options:d}=n,p=i(e,l,d);r.exposeAction(t,p),a&&r.addCase(p.fulfilled,a),s&&r.addCase(p.pending,s),c&&r.addCase(p.rejected,c),u&&r.addMatcher(p.settled,u),r.exposeCaseReducer(t,{fulfilled:a||eo,pending:s||eo,rejected:c||eo,settled:u||eo})}function eo(){}function yt(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 am(e,t){return function(){return e.apply(t,arguments)}}const{toString:Kg}=Object.prototype,{getPrototypeOf:Mc}=Object,Tl=(e=>t=>{const n=Kg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>Tl(t)===e),Rl=e=>t=>typeof t===e,{isArray:Sr}=Array,Ni=Rl("undefined");function Qg(e){return e!==null&&!Ni(e)&&e.constructor!==null&&!Ni(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sm=jt("ArrayBuffer");function Gg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sm(e.buffer),t}const Jg=Rl("string"),Xe=Rl("function"),cm=Rl("number"),Il=e=>e!==null&&typeof e=="object",Xg=e=>e===!0||e===!1,vo=e=>{if(Tl(e)!=="object")return!1;const t=Mc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Zg=jt("Date"),ex=jt("File"),tx=jt("Blob"),nx=jt("FileList"),rx=e=>Il(e)&&Xe(e.pipe),ix=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Tl(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},ox=jt("URLSearchParams"),[lx,ax,sx,cx]=["ReadableStream","Request","Response","Headers"].map(jt),ux=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Sr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dm=e=>!Ni(e)&&e!==Cn;function Ss(){const{caseless:e}=dm(this)&&this||{},t={},n=(r,i)=>{const l=e&&um(t,i)||i;vo(t[l])&&vo(r)?t[l]=Ss(t[l],r):vo(r)?t[l]=Ss({},r):Sr(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(Ri(t,(i,l)=>{n&&Xe(i)?e[l]=am(i,n):e[l]=i},{allOwnKeys:r}),e),fx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),px=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mx=(e,t,n,r)=>{let i,l,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)a=i[l],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Mc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vx=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!cm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mc(Uint8Array)),gx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},xx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jx=jt("HTMLFormElement"),Nx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),sd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wx=jt("RegExp"),fm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ri(n,(i,l)=>{let a;(a=t(i,l,e))!==!1&&(r[l]=a||i)}),Object.defineProperties(e,r)},Ex=e=>{fm(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sx=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Sr(e)?r(e):r(String(e).split(t)),n},bx=()=>{},Cx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xa="abcdefghijklmnopqrstuvwxyz",cd="0123456789",pm={DIGIT:cd,ALPHA:xa,ALPHA_DIGIT:xa+xa.toUpperCase()+cd},kx=(e=16,t=pm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _x(e){return!!(e&&Xe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Px=e=>{const t=new Array(10),n=(r,i)=>{if(Il(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=Sr(r)?[]:{};return Ri(r,(a,s)=>{const c=n(a,i+1);!Ni(c)&&(l[s]=c)}),t[i]=void 0,l}}return r};return n(e,0)},Ox=jt("AsyncFunction"),Tx=e=>e&&(Il(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),mm=((e,t)=>e?setImmediate:t?((n,r)=>(Cn.addEventListener("message",({source:i,data:l})=>{i===Cn&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Cn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(Cn.postMessage)),Rx=typeof queueMicrotask<"u"?queueMicrotask.bind(Cn):typeof process<"u"&&process.nextTick||mm,I={isArray:Sr,isArrayBuffer:sm,isBuffer:Qg,isFormData:ix,isArrayBufferView:Gg,isString:Jg,isNumber:cm,isBoolean:Xg,isObject:Il,isPlainObject:vo,isReadableStream:lx,isRequest:ax,isResponse:sx,isHeaders:cx,isUndefined:Ni,isDate:Zg,isFile:ex,isBlob:tx,isRegExp:wx,isFunction:Xe,isStream:rx,isURLSearchParams:ox,isTypedArray:yx,isFileList:nx,forEach:Ri,merge:Ss,extend:dx,trim:ux,stripBOM:fx,inherits:px,toFlatObject:mx,kindOf:Tl,kindOfTest:jt,endsWith:hx,toArray:vx,forEachEntry:gx,matchAll:xx,isHTMLForm:jx,hasOwnProperty:sd,hasOwnProp:sd,reduceDescriptors:fm,freezeMethods:Ex,toObjectSet:Sx,toCamelCase:Nx,noop:bx,toFiniteNumber:Cx,findKey:um,global:Cn,isContextDefined:dm,ALPHABET:pm,generateString:kx,isSpecCompliantForm:_x,toJSONObject:Px,isAsyncFn:Ox,isThenable:Tx,setImmediate:mm,asap:Rx};function Z(e,t,n,r,i){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),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}I.inherits(Z,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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const hm=Z.prototype,vm={};["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=>{vm[e]={value:e}});Object.defineProperties(Z,vm);Object.defineProperty(hm,"isAxiosError",{value:!0});Z.from=(e,t,n,r,i,l)=>{const a=Object.create(hm);return I.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Z.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,l&&Object.assign(a,l),a};const Ix=null;function bs(e){return I.isPlainObject(e)||I.isArray(e)}function ym(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function ud(e,t,n){return e?e.concat(t).map(function(i,l){return i=ym(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function Ax(e){return I.isArray(e)&&!e.some(bs)}const Dx=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Al(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,x){return!I.isUndefined(x[j])});const r=n.metaTokens,i=n.visitor||d,l=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(I.isDate(v))return v.toISOString();if(!c&&I.isBlob(v))throw new Z("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(v)||I.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,j,x){let h=v;if(v&&!x&&typeof v=="object"){if(I.endsWith(j,"{}"))j=r?j:j.slice(0,-2),v=JSON.stringify(v);else if(I.isArray(v)&&Ax(v)||(I.isFileList(v)||I.endsWith(j,"[]"))&&(h=I.toArray(v)))return j=ym(j),h.forEach(function(f,g){!(I.isUndefined(f)||f===null)&&t.append(a===!0?ud([j],g,l):a===null?j:j+"[]",u(f))}),!1}return bs(v)?!0:(t.append(ud(x,j,l),u(v)),!1)}const p=[],y=Object.assign(Dx,{defaultVisitor:d,convertValue:u,isVisitable:bs});function N(v,j){if(!I.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+j.join("."));p.push(v),I.forEach(v,function(h,m){(!(I.isUndefined(h)||h===null)&&i.call(t,h,I.isString(m)?m.trim():m,j,y))===!0&&N(h,j?j.concat(m):[m])}),p.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return N(e),t}function dd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lc(e,t){this._pairs=[],e&&Al(e,this,t)}const gm=Lc.prototype;gm.append=function(t,n){this._pairs.push([t,n])};gm.toString=function(t){const n=t?function(r){return t.call(this,r,dd)}:dd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Mx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xm(e,t,n){if(!t)return e;const r=n&&n.encode||Mx,i=n&&n.serialize;let l;if(i?l=i(t,n):l=I.isURLSearchParams(t)?t.toString():new Lc(t,n).toString(r),l){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class fd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lx=typeof URLSearchParams<"u"?URLSearchParams:Lc,Fx=typeof FormData<"u"?FormData:null,zx=typeof Blob<"u"?Blob:null,Bx={isBrowser:!0,classes:{URLSearchParams:Lx,FormData:Fx,Blob:zx},protocols:["http","https","file","blob","url","data"]},Fc=typeof window<"u"&&typeof document<"u",Cs=typeof navigator=="object"&&navigator||void 0,Ux=Fc&&(!Cs||["ReactNative","NativeScript","NS"].indexOf(Cs.product)<0),$x=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wx=Fc&&window.location.href||"http://localhost",Vx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fc,hasStandardBrowserEnv:Ux,hasStandardBrowserWebWorkerEnv:$x,navigator:Cs,origin:Wx},Symbol.toStringTag,{value:"Module"})),Ve={...Vx,...Bx};function qx(e,t){return Al(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return Ve.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function Hx(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Yx(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return a=!a&&I.isArray(i)?i.length:a,c?(I.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!I.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],l)&&I.isArray(i[a])&&(i[a]=Yx(i[a])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(Hx(r),i,n,0)}),n}return null}function Kx(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ii={transitional:jm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=I.isObject(t);if(l&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i?JSON.stringify(Nm(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qx(t,this.formSerializer).toString();if((s=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Al(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),Kx(t)):t}],transformResponse:[function(t){const n=this.transitional||Ii.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Z.from(s,Z.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Ii.headers[e]={}});const Qx=I.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"]),Gx=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Qx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},pd=Symbol("internals");function Lr(e){return e&&String(e).trim().toLowerCase()}function yo(e){return e===!1||e==null?e:I.isArray(e)?e.map(yo):String(e)}function Jx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Xx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ja(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function Zx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function e0(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,a){return this[r].call(this,t,i,l,a)},configurable:!0})})}class qe{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(s,c,u){const d=Lr(c);if(!d)throw new Error("header name must be a non-empty string");const p=I.findKey(i,d);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||c]=yo(s))}const a=(s,c)=>I.forEach(s,(u,d)=>l(u,d,c));if(I.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(I.isString(t)&&(t=t.trim())&&!Xx(t))a(Gx(t),n);else if(I.isHeaders(t))for(const[s,c]of t.entries())l(c,s,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Lr(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Jx(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Lr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ja(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(a){if(a=Lr(a),a){const s=I.findKey(r,a);s&&(!n||ja(r,r[s],s,n))&&(delete r[s],i=!0)}}return I.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||ja(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return I.forEach(this,(i,l)=>{const a=I.findKey(r,l);if(a){n[a]=yo(i),delete n[l];return}const s=t?Zx(l):String(l).trim();s!==l&&delete n[l],n[s]=yo(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&I.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[pd]=this[pd]={accessors:{}}).accessors,i=this.prototype;function l(a){const s=Lr(a);r[s]||(e0(i,a),r[s]=!0)}return I.isArray(t)?t.forEach(l):l(t),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(qe);function Na(e,t){const n=this||Ii,r=t||n,i=qe.from(r.headers);let l=r.data;return I.forEach(e,function(s){l=s.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function wm(e){return!!(e&&e.__CANCEL__)}function br(e,t,n){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(br,Z,{__CANCEL__:!0});function Em(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function t0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function n0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[l];a||(a=u),n[i]=c,r[i]=u;let p=l,y=0;for(;p!==i;)y+=n[p++],p=p%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),u-a{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=r?a(u,d):(i=u,l||(l=setTimeout(()=>{l=null,a(i)},r-p)))},()=>i&&a(i)]}const il=(e,t,n=3)=>{let r=0;const i=n0(50,250);return r0(l=>{const a=l.loaded,s=l.lengthComputable?l.total:void 0,c=a-r,u=i(c),d=a<=s;r=a;const p={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&d?(s-a)/u:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(p)},n)},md=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hd=e=>(...t)=>I.asap(()=>e(...t)),i0=Ve.hasStandardBrowserEnv?function(){const t=Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent),n=document.createElement("a");let r;function i(l){let a=l;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 r=i(window.location.href),function(a){const s=I.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),o0=Ve.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const a=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),I.isString(r)&&a.push("path="+r),I.isString(i)&&a.push("domain="+i),l===!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 l0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function a0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sm(e,t){return e&&!l0(t)?a0(e,t):t}const vd=e=>e instanceof qe?{...e}:e;function Fn(e,t){t=t||{};const n={};function r(u,d,p){return I.isPlainObject(u)&&I.isPlainObject(d)?I.merge.call({caseless:p},u,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(u,d,p){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function l(u,d){if(!I.isUndefined(d))return r(void 0,d)}function a(u,d){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const c={url:l,method:l,data:l,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:s,headers:(u,d)=>i(vd(u),vd(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||i,y=p(e[d],t[d],d);I.isUndefined(y)&&p!==s||(n[d]=y)}),n}const bm=e=>{const t=Fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:a,auth:s}=t;t.headers=a=qe.from(a),t.url=xm(Sm(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(I.isFormData(n)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ve.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&i0(t.url))){const u=i&&l&&o0.read(l);u&&a.set(i,u)}return t},s0=typeof XMLHttpRequest<"u",c0=s0&&function(e){return new Promise(function(n,r){const i=bm(e);let l=i.data;const a=qe.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=i,d,p,y,N,v;function j(){N&&N(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function h(){if(!x)return;const f=qe.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:f,config:e,request:x};Em(function(b){n(b),j()},function(b){r(b),j()},w),x=null}"onloadend"in x?x.onloadend=h:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(h)},x.onabort=function(){x&&(r(new Z("Request aborted",Z.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new Z("Network Error",Z.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||jm;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new Z(g,w.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,x)),x=null},l===void 0&&a.setContentType(null),"setRequestHeader"in x&&I.forEach(a.toJSON(),function(g,w){x.setRequestHeader(w,g)}),I.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),s&&s!=="json"&&(x.responseType=i.responseType),u&&([y,v]=il(u,!0),x.addEventListener("progress",y)),c&&x.upload&&([p,N]=il(c),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(d=f=>{x&&(r(!f||f.type?new br(null,e,x):f),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const m=t0(i.url);if(m&&Ve.protocols.indexOf(m)===-1){r(new Z("Unsupported protocol "+m+":",Z.ERR_BAD_REQUEST,e));return}x.send(l||null)})},u0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(u){if(!i){i=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Z?d:new br(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,l(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),e=null)};e.forEach(u=>u.addEventListener("abort",l));const{signal:c}=r;return c.unsubscribe=()=>I.asap(s),c}},d0=function*(e,t){let n=e.byteLength;if(!t||n{const i=f0(e,t);let l=0,a,s=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){s(),c.close();return}let p=d.byteLength;if(n){let y=l+=p;n(y)}c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},Dl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Cm=Dl&&typeof ReadableStream=="function",m0=Dl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),km=(e,...t)=>{try{return!!e(...t)}catch{return!1}},h0=Cm&&km(()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gd=64*1024,ks=Cm&&km(()=>I.isReadableStream(new Response("").body)),ol={stream:ks&&(e=>e.body)};Dl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ol[t]&&(ol[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,r)})})})(new Response);const v0=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Ve.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await m0(e)).byteLength},y0=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??v0(t)},g0=Dl&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:y}=bm(e);u=u?(u+"").toLowerCase():"text";let N=u0([i,l&&l.toAbortSignal()],a),v;const j=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let x;try{if(c&&h0&&n!=="get"&&n!=="head"&&(x=await y0(d,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),S;if(I.isFormData(r)&&(S=w.headers.get("content-type"))&&d.setContentType(S),w.body){const[b,E]=md(x,il(hd(c)));r=yd(w.body,gd,b,E)}}I.isString(p)||(p=p?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:h?p:void 0});let m=await fetch(v);const f=ks&&(u==="stream"||u==="response");if(ks&&(s||f&&j)){const w={};["status","statusText","headers"].forEach(A=>{w[A]=m[A]});const S=I.toFiniteNumber(m.headers.get("content-length")),[b,E]=s&&md(S,il(hd(s),!0))||[];m=new Response(yd(m.body,gd,b,()=>{E&&E(),j&&j()}),w)}u=u||"text";let g=await ol[I.findKey(ol,u)||"text"](m,e);return!f&&j&&j(),await new Promise((w,S)=>{Em(w,S,{data:g,headers:qe.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(h){throw j&&j(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,v),{cause:h.cause||h}):Z.from(h,h&&h.code,e,v)}}),_s={http:Ix,xhr:c0,fetch:g0};I.forEach(_s,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const xd=e=>`- ${e}`,x0=e=>I.isFunction(e)||e===null||e===!1,_m={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?l.length>1?`since : -`+l.map(xd).join(` -`):" "+xd(l[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:_s};function wa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function jd(e){return wa(e),e.headers=qe.from(e.headers),e.data=Na.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_m.getAdapter(e.adapter||Ii.adapter)(e).then(function(r){return wa(e),r.data=Na.call(e,e.transformResponse,r),r.headers=qe.from(r.headers),r},function(r){return wm(r)||(wa(e),r&&r.response&&(r.response.data=Na.call(e,e.transformResponse,r.response),r.response.headers=qe.from(r.response.headers))),Promise.reject(r)})}const Pm="1.7.7",zc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nd={};zc.transitional=function(t,n,r){function i(l,a){return"[Axios v"+Pm+"] Transitional option '"+l+"'"+a+(r?". "+r:"")}return(l,a,s)=>{if(t===!1)throw new Z(i(a," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED);return n&&!Nd[a]&&(Nd[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,a,s):!0}};function j0(e,t,n){if(typeof e!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],a=t[l];if(a){const s=e[l],c=s===void 0||a(s,l,e);if(c!==!0)throw new Z("option "+l+" must be "+c,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z("Unknown option "+l,Z.ERR_BAD_OPTION)}}const Ps={assertOptions:j0,validators:zc},Wt=Ps.validators;class Pn{constructor(t){this.defaults=t,this.interceptors={request:new fd,response:new fd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Ps.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:Ps.assertOptions(i,{encode:Wt.function,serialize:Wt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=l&&I.merge(l.common,l[n.method]);l&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=qe.concat(a,l);const s=[];let c=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(n)===!1||(c=c&&j.synchronous,s.unshift(j.fulfilled,j.rejected))});const u=[];this.interceptors.response.forEach(function(j){u.push(j.fulfilled,j.rejected)});let d,p=0,y;if(!c){const v=[jd.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),y=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const a=new Promise(s=>{r.subscribe(s),l=s}).then(i);return a.cancel=function(){r.unsubscribe(l)},a},t(function(l,a,s){r.reason||(r.reason=new br(l,a,s),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Bc(function(i){t=i}),cancel:t}}}function N0(e){return function(n){return e.apply(null,n)}}function w0(e){return I.isObject(e)&&e.isAxiosError===!0}const Os={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(Os).forEach(([e,t])=>{Os[t]=e});function Om(e){const t=new Pn(e),n=am(Pn.prototype.request,t);return I.extend(n,Pn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Om(Fn(e,i))},n}const le=Om(Ii);le.Axios=Pn;le.CanceledError=br;le.CancelToken=Bc;le.isCancel=wm;le.VERSION=Pm;le.toFormData=Al;le.AxiosError=Z;le.Cancel=le.CanceledError;le.all=function(t){return Promise.all(t)};le.spread=N0;le.isAxiosError=w0;le.mergeConfig=Fn;le.AxiosHeaders=qe;le.formToJSON=e=>Nm(I.isHTMLForm(e)?new FormData(e):e);le.getAdapter=_m.getAdapter;le.HttpStatusCode=Os;le.default=le;const E0="http://67.225.129.127:3002",Ut=le.create({baseURL:E0});Ut.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const S0=e=>Ut.post("/users/signup",e),b0=e=>Ut.post("/users/signin",e),C0=(e,t,n)=>Ut.get(`/users/${e}/verify/${t}`,n),k0=e=>Ut.post("/properties",e),_0=(e,t,n)=>Ut.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),P0=e=>Ut.get(`/properties/${e}`,e),O0=(e,t)=>Ut.put(`/properties/${e}`,t),T0=e=>Ut.get(`/users/${e}`),go=_t("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await b0(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),xo=_t("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await S0(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),jo=_t("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await le.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Tm=Dc({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(go.pending,t=>{t.loading=!0}).addCase(go.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(go.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(xo.pending,t=>{t.loading=!0}).addCase(xo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(xo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(jo.pending,t=>{t.isLoading=!0}).addCase(jo.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(jo.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:tN,setLogout:R0,setUserDetails:nN}=Tm.actions,I0=Tm.reducer,No=_t("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await T0(e)).data}catch(n){return t(n.response.data)}}),wo=_t("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await C0(e,t,n)).data.message}catch(i){return r(i.response.data)}}),A0=Dc({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(No.pending,t=>{t.loading=!0,t.error=null}).addCase(No.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(No.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(wo.pending,t=>{t.loading=!0,t.error=null}).addCase(wo.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(wo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),D0=A0.reducer,Eo=_t("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await k0(e)).data}catch(n){return t(n.response.data)}}),So=_t("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await _0(e,t,n)).data}catch(i){return r(i.response.data)}}),Zr=_t("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await P0(e)).data}catch(n){return t(n.response.data)}}),bo=_t("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await O0(e,t)).data}catch(r){return n(r.response.data)}}),ei=_t("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await le.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),M0=Dc({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Eo.pending,t=>{t.status="loading"}).addCase(Eo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Eo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(So.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Zr.pending,t=>{t.status="loading"}).addCase(Zr.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Zr.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(bo.pending,t=>{t.status="loading"}).addCase(bo.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(bo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ei.pending,t=>{t.loading=!0}).addCase(ei.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(ei.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),L0=M0.reducer,F0=_g({reducer:{auth:I0,user:D0,property:L0}});/** - * @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 wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Rm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B0(){return Math.random().toString(36).substr(2,8)}function Ed(e,t){return{usr:e.state,key:e.key,idx:t}}function Ts(e,t,n,r){return n===void 0&&(n=null),wi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cr(t):t,{state:n,key:t&&t.key||r||B0()})}function ll(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function U0(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,a=i.history,s=Zt.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(wi({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function p(){s=Zt.Pop;let x=d(),h=x==null?null:x-u;u=x,c&&c({action:s,location:j.location,delta:h})}function y(x,h){s=Zt.Push;let m=Ts(j.location,x,h);u=d()+1;let f=Ed(m,u),g=j.createHref(m);try{a.pushState(f,"",g)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(g)}l&&c&&c({action:s,location:j.location,delta:1})}function N(x,h){s=Zt.Replace;let m=Ts(j.location,x,h);u=d();let f=Ed(m,u),g=j.createHref(m);a.replaceState(f,"",g),l&&c&&c({action:s,location:j.location,delta:0})}function v(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof x=="string"?x:ll(x);return m=m.replace(/ $/,"%20"),he(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let j={get action(){return s},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(wd,p),c=x,()=>{i.removeEventListener(wd,p),c=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let h=v(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:y,replace:N,go(x){return a.go(x)}};return j}var Sd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sd||(Sd={}));function $0(e,t,n){return n===void 0&&(n="/"),W0(e,t,n,!1)}function W0(e,t,n,r){let i=typeof t=="string"?Cr(t):t,l=jr(i.pathname||"/",n);if(l==null)return null;let a=Im(e);V0(a);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:a,route:l};c.relativePath.startsWith("/")&&(he(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=un([r,c.relativePath]),d=n.concat(c);l.children&&l.children.length>0&&(he(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Im(l.children,t,d,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:J0(u,l.index),routesMeta:d})};return e.forEach((l,a)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))i(l,a);else for(let c of Am(l.path))i(l,a,c)}),t}function Am(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let a=Am(r.join("/")),s=[];return s.push(...a.map(c=>c===""?l:[l,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function V0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:X0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const q0=/^:[\w-]+$/,H0=3,Y0=2,K0=1,Q0=10,G0=-2,bd=e=>e==="*";function J0(e,t){let n=e.split("/"),r=n.length;return n.some(bd)&&(r+=G0),t&&(r+=Y0),n.filter(i=>!bd(i)).reduce((i,l)=>i+(q0.test(l)?H0:l===""?K0:Q0),r)}function X0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Z0(e,t,n){let{routesMeta:r}=e,i={},l="/",a=[];for(let s=0;s{let{paramName:y,isOptional:N}=d;if(y==="*"){let j=s[p]||"";a=l.slice(0,l.length-j.length).replace(/(.)\/+$/,"$1")}const v=s[p];return N&&!v?u[y]=void 0:u[y]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:a,pattern:e}}function e1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rm(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function t1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rm(!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 jr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function n1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Cr(e):e;return{pathname:n?n.startsWith("/")?n:r1(n,t):t,search:l1(r),hash:a1(i)}}function r1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ea(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function i1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dm(e,t){let n=i1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Mm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Cr(e):(i=wi({},e),he(!i.pathname||!i.pathname.includes("?"),Ea("?","pathname","search",i)),he(!i.pathname||!i.pathname.includes("#"),Ea("#","pathname","hash",i)),he(!i.search||!i.search.includes("#"),Ea("#","search","hash",i)));let l=e===""||i.pathname==="",a=l?"/":i.pathname,s;if(a==null)s=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}s=p>=0?t[p]:"/"}let c=n1(i,s),u=a&&a!=="/"&&a.endsWith("/"),d=(l||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const un=e=>e.join("/").replace(/\/\/+/g,"/"),o1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),l1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,a1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function s1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lm=["post","put","patch","delete"];new Set(Lm);const c1=["get",...Lm];new Set(c1);/** - * 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 Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),O.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=Mm(u,JSON.parse(a),l,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:un([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,a,l,e])}function _r(){let{matches:e}=O.useContext(gn),t=e[e.length-1];return t?t.params:{}}function Fl(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(yn),{matches:i}=O.useContext(gn),{pathname:l}=Di(),a=JSON.stringify(Dm(i,r.v7_relativeSplatPath));return O.useMemo(()=>Mm(e,JSON.parse(a),l,n==="path"),[e,a,l,n])}function f1(e,t){return p1(e,t)}function p1(e,t,n,r){Ai()||he(!1);let{navigator:i}=O.useContext(yn),{matches:l}=O.useContext(gn),a=l[l.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Di(),d;if(t){var p;let x=typeof t=="string"?Cr(t):t;c==="/"||(p=x.pathname)!=null&&p.startsWith(c)||he(!1),d=x}else d=u;let y=d.pathname||"/",N=y;if(c!=="/"){let x=c.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=$0(e,{pathname:N}),j=g1(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:un([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:un([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&j?O.createElement(Ll.Provider,{value:{location:Ei({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Zt.Pop}},j):j}function m1(){let e=w1(),t=s1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const h1=O.createElement(m1,null);class v1 extends O.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?O.createElement(gn.Provider,{value:this.props.routeContext},O.createElement(zm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y1(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Ml);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(gn.Provider,{value:t},r)}function g1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let d=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);d>=0||he(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,p,y)=>{let N,v=!1,j=null,x=null;n&&(N=s&&p.route.id?s[p.route.id]:void 0,j=p.route.errorElement||h1,c&&(u<0&&y===0?(v=!0,x=null):u===y&&(v=!0,x=p.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,y+1)),m=()=>{let f;return N?f=j:v?f=x:p.route.Component?f=O.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,O.createElement(y1,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?O.createElement(v1,{location:n.location,revalidation:n.revalidation,component:j,error:N,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var Um=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Um||{}),sl=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}(sl||{});function x1(e){let t=O.useContext(Ml);return t||he(!1),t}function j1(e){let t=O.useContext(Fm);return t||he(!1),t}function N1(e){let t=O.useContext(gn);return t||he(!1),t}function $m(e){let t=N1(),n=t.matches[t.matches.length-1];return n.route.id||he(!1),n.route.id}function w1(){var e;let t=O.useContext(zm),n=j1(sl.UseRouteError),r=$m(sl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function E1(){let{router:e}=x1(Um.UseNavigateStable),t=$m(sl.UseNavigateStable),n=O.useRef(!1);return Bm(()=>{n.current=!0}),O.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ei({fromRouteId:t},l)))},[e,t])}function je(e){he(!1)}function S1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Zt.Pop,navigator:l,static:a=!1,future:s}=e;Ai()&&he(!1);let c=t.replace(/^\/*/,"/"),u=O.useMemo(()=>({basename:c,navigator:l,static:a,future:Ei({v7_relativeSplatPath:!1},s)}),[c,s,l,a]);typeof r=="string"&&(r=Cr(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,j=O.useMemo(()=>{let x=jr(d,c);return x==null?null:{location:{pathname:x,search:p,hash:y,state:N,key:v},navigationType:i}},[c,d,p,y,N,v,i]);return j==null?null:O.createElement(yn.Provider,{value:u},O.createElement(Ll.Provider,{children:n,value:j}))}function b1(e){let{children:t,location:n}=e;return f1(Rs(t),n)}new Promise(()=>{});function Rs(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let l=[...t,i];if(r.type===O.Fragment){n.push.apply(n,Rs(r.props.children,l));return}r.type!==je&&he(!1),!r.props.index||!r.props.children||he(!1);let a={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Rs(r.props.children,l)),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 cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function C1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function k1(e,t){return e.button===0&&(!t||t==="_self")&&!C1(e)}const _1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],P1=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],O1="6";try{window.__reactRouterVersion=O1}catch{}const T1=O.createContext({isTransitioning:!1}),R1="startTransition",Cd=ba[R1];function I1(e){let{basename:t,children:n,future:r,window:i}=e,l=O.useRef();l.current==null&&(l.current=z0({window:i,v5Compat:!0}));let a=l.current,[s,c]=O.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=O.useCallback(p=>{u&&Cd?Cd(()=>c(p)):c(p)},[c,u]);return O.useLayoutEffect(()=>a.listen(d),[a,d]),O.createElement(S1,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M1=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:a,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:p}=t,y=Wm(t,_1),{basename:N}=O.useContext(yn),v,j=!1;if(typeof u=="string"&&D1.test(u)&&(v=u,A1))try{let f=new URL(window.location.href),g=u.startsWith("//")?new URL(f.protocol+u):new URL(u),w=jr(g.pathname,N);g.origin===f.origin&&w!=null?u=w+g.search+g.hash:j=!0}catch{}let x=u1(u,{relative:i}),h=F1(u,{replace:a,state:s,target:c,preventScrollReset:d,relative:i,unstable_viewTransition:p});function m(f){r&&r(f),f.defaultPrevented||h(f)}return O.createElement("a",cl({},y,{href:v||x,onClick:j||l?r:m,ref:n,target:c}))}),ce=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:a=!1,style:s,to:c,unstable_viewTransition:u,children:d}=t,p=Wm(t,P1),y=Fl(c,{relative:p.relative}),N=Di(),v=O.useContext(Fm),{navigator:j,basename:x}=O.useContext(yn),h=v!=null&&z1(y)&&u===!0,m=j.encodeLocation?j.encodeLocation(y).pathname:y.pathname,f=N.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(f=f.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase()),g&&x&&(g=jr(g,x)||g);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=f===m||!a&&f.startsWith(m)&&f.charAt(w)==="/",b=g!=null&&(g===m||!a&&g.startsWith(m)&&g.charAt(m.length)==="/"),E={isActive:S,isPending:b,isTransitioning:h},A=S?r:void 0,F;typeof l=="function"?F=l(E):F=[l,S?"active":null,b?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let $=typeof s=="function"?s(E):s;return O.createElement(M1,cl({},p,{"aria-current":A,className:F,ref:n,style:$,to:c,unstable_viewTransition:u}),typeof d=="function"?d(E):d)});var Is;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Is||(Is={}));var kd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kd||(kd={}));function L1(e){let t=O.useContext(Ml);return t||he(!1),t}function F1(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,c=kr(),u=Di(),d=Fl(e,{relative:a});return O.useCallback(p=>{if(k1(p,n)){p.preventDefault();let y=r!==void 0?r:ll(u)===ll(d);c(e,{replace:y,state:i,preventScrollReset:l,relative:a,unstable_viewTransition:s})}},[u,c,d,r,i,n,e,l,a,s])}function z1(e,t){t===void 0&&(t={});let n=O.useContext(T1);n==null&&he(!1);let{basename:r}=L1(Is.useViewTransitionState),i=Fl(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=jr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=jr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return al(i.pathname,a)!=null||al(i.pathname,l)!=null}function Vm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),On=e=>typeof e=="string",Ge=e=>typeof e=="function",Co=e=>On(e)||Ge(e)?e:null,As=e=>O.isValidElement(e)||On(e)||Ge(e)||Si(e);function B1(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function zl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(a){let{children:s,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:y,playToast:N}=a;const v=r?`${t}--${c}`:t,j=r?`${n}--${c}`:n,x=O.useRef(0);return O.useLayoutEffect(()=>{const h=p.current,m=v.split(" "),f=g=>{g.target===p.current&&(N(),h.removeEventListener("animationend",f),h.removeEventListener("animationcancel",f),x.current===0&&g.type!=="animationcancel"&&h.classList.remove(...m))};h.classList.add(...m),h.addEventListener("animationend",f),h.addEventListener("animationcancel",f)},[]),O.useEffect(()=>{const h=p.current,m=()=>{h.removeEventListener("animationend",m),i?B1(h,d,l):d()};y||(u?m():(x.current=1,h.className+=` ${j}`,h.addEventListener("animationend",m)))},[y]),_.createElement(_.Fragment,null,s)}}function _d(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 Ae=new Map;let bi=[];const Ds=new Set,U1=e=>Ds.forEach(t=>t(e)),qm=()=>Ae.size>0;function Hm(e,t){var n;if(t)return!((n=Ae.get(t))==null||!n.isToastActive(e));let r=!1;return Ae.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Ym(e,t){As(e)&&(qm()||bi.push({content:e,options:t}),Ae.forEach(n=>{n.buildToast(e,t)}))}function Pd(e,t){Ae.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 $1(e){const{subscribe:t,getSnapshot:n,setProps:r}=O.useRef(function(l){const a=l.containerId||1;return{subscribe(s){const c=function(d,p,y){let N=1,v=0,j=[],x=[],h=[],m=p;const f=new Map,g=new Set,w=()=>{h=Array.from(f.values()),g.forEach(E=>E())},S=E=>{x=E==null?[]:x.filter(A=>A!==E),w()},b=E=>{const{toastId:A,onOpen:F,updateId:$,children:X}=E.props,Q=$==null;E.staleId&&f.delete(E.staleId),f.set(A,E),x=[...x,E.props.toastId].filter(J=>J!==E.staleId),w(),y(_d(E,Q?"added":"updated")),Q&&Ge(F)&&F(O.isValidElement(X)&&X.props)};return{id:d,props:m,observe:E=>(g.add(E),()=>g.delete(E)),toggle:(E,A)=>{f.forEach(F=>{A!=null&&A!==F.props.toastId||Ge(F.toggle)&&F.toggle(E)})},removeToast:S,toasts:f,clearQueue:()=>{v-=j.length,j=[]},buildToast:(E,A)=>{if((z=>{let{containerId:V,toastId:q,updateId:P}=z;const L=V?V!==d:d!==1,R=f.has(q)&&P==null;return L||R})(A))return;const{toastId:F,updateId:$,data:X,staleId:Q,delay:J}=A,T=()=>{S(F)},B=$==null;B&&v++;const K={...m,style:m.toastStyle,key:N++,...Object.fromEntries(Object.entries(A).filter(z=>{let[V,q]=z;return q!=null})),toastId:F,updateId:$,data:X,closeToast:T,isIn:!1,className:Co(A.className||m.toastClassName),bodyClassName:Co(A.bodyClassName||m.bodyClassName),progressClassName:Co(A.progressClassName||m.progressClassName),autoClose:!A.isLoading&&(k=A.autoClose,C=m.autoClose,k===!1||Si(k)&&k>0?k:C),deleteToast(){const z=f.get(F),{onClose:V,children:q}=z.props;Ge(V)&&V(O.isValidElement(q)&&q.props),y(_d(z,"removed")),f.delete(F),v--,v<0&&(v=0),j.length>0?b(j.shift()):w()}};var k,C;K.closeButton=m.closeButton,A.closeButton===!1||As(A.closeButton)?K.closeButton=A.closeButton:A.closeButton===!0&&(K.closeButton=!As(m.closeButton)||m.closeButton);let D=E;O.isValidElement(E)&&!On(E.type)?D=O.cloneElement(E,{closeToast:T,toastProps:K,data:X}):Ge(E)&&(D=E({closeToast:T,toastProps:K,data:X}));const M={content:D,props:K,staleId:Q};m.limit&&m.limit>0&&v>m.limit&&B?j.push(M):Si(J)?setTimeout(()=>{b(M)},J):b(M)},setProps(E){m=E},setToggle:(E,A)=>{f.get(E).toggle=A},isToastActive:E=>x.some(A=>A===E),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(a,l,U1);Ae.set(a,c);const u=c.observe(s);return bi.forEach(d=>Ym(d.content,d.options)),bi=[],()=>{u(),Ae.delete(a)}},setProps(s){var c;(c=Ae.get(a))==null||c.setProps(s)},getSnapshot(){var s;return(s=Ae.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=O.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:c}=s.props;a.has(c)||a.set(c,[]),a.get(c).push(s)}),Array.from(a,s=>l(s[0],s[1]))},isToastActive:Hm,count:i==null?void 0:i.length}}function W1(e){const[t,n]=O.useState(!1),[r,i]=O.useState(!1),l=O.useRef(null),a=O.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:p}=e;var y,N;function v(){n(!0)}function j(){n(!1)}function x(f){const g=l.current;a.canDrag&&g&&(a.didMove=!0,t&&j(),a.delta=e.draggableDirection==="x"?f.clientX-a.start:f.clientY-a.start,a.start!==f.clientX&&(a.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function h(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",h);const f=l.current;if(a.canDrag&&a.didMove&&f){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=Ae.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),O.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||j(),window.addEventListener("focus",v),window.addEventListener("blur",j),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",j)}},[e.pauseOnFocusLoss]);const m={onPointerDown:function(f){if(e.draggable===!0||e.draggable===f.pointerType){a.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",h);const g=l.current;a.canCloseOnClick=!0,a.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(a.start=f.clientX,a.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(a.start=f.clientY,a.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:g,bottom:w,left:S,right:b}=l.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=S&&f.clientX<=b&&f.clientY>=g&&f.clientY<=w?j():v()}};return s&&c&&(m.onMouseEnter=j,e.stacked||(m.onMouseLeave=v)),p&&(m.onClick=f=>{d&&d(f),a.canCloseOnClick&&u()}),{playToast:v,pauseToast:j,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:m}}function V1(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:a,style:s,controlledProgress:c,progress:u,rtl:d,isIn:p,theme:y}=e;const N=l||c&&u===0,v={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(v.transform=`scaleX(${u})`);const j=en("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),x=Ge(a)?a({rtl:d,type:i,defaultClassName:j}):en(j,a),h={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&r()}};return _.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},_.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),_.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:x,style:v,...h}))}let q1=1;const Km=()=>""+q1++;function H1(e){return e&&(On(e.toastId)||Si(e.toastId))?e.toastId:Km()}function ti(e,t){return Ym(e,t),t.toastId}function ul(e,t){return{...t,type:t&&t.type||e,toastId:H1(t)}}function to(e){return(t,n)=>ti(t,ul(e,n))}function ee(e,t){return ti(e,ul("default",t))}ee.loading=(e,t)=>ti(e,ul("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ee.promise=function(e,t,n){let r,{pending:i,error:l,success:a}=t;i&&(r=On(i)?ee.loading(i,n):ee.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(d,p,y)=>{if(p==null)return void ee.dismiss(r);const N={type:d,...s,...n,data:y},v=On(p)?{render:p}:p;return r?ee.update(r,{...N,...v}):ee(v.render,{...N,...v}),y},u=Ge(e)?e():e;return u.then(d=>c("success",a,d)).catch(d=>c("error",l,d)),u},ee.success=to("success"),ee.info=to("info"),ee.error=to("error"),ee.warning=to("warning"),ee.warn=ee.warning,ee.dark=(e,t)=>ti(e,ul("default",{theme:"dark",...t})),ee.dismiss=function(e){(function(t){var n;if(qm()){if(t==null||On(n=t)||Si(n))Ae.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ae.get(t.containerId);r?r.removeToast(t.id):Ae.forEach(i=>{i.removeToast(t.id)})}}else bi=bi.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ee.clearWaitingQueue=function(e){e===void 0&&(e={}),Ae.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ee.isActive=Hm,ee.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:a}=i;return(l=Ae.get(a||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Km()};l.toastId!==e&&(l.staleId=e);const a=l.render||i;delete l.render,ti(a,l)}},ee.done=e=>{ee.update(e,{progress:1})},ee.onChange=function(e){return Ds.add(e),()=>{Ds.delete(e)}},ee.play=e=>Pd(!0,e),ee.pause=e=>Pd(!1,e);const Y1=typeof window<"u"?O.useLayoutEffect:O.useEffect,no=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return _.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Sa={info:function(e){return _.createElement(no,{...e},_.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 _.createElement(no,{...e},_.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 _.createElement(no,{...e},_.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 _.createElement(no,{...e},_.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 _.createElement("div",{className:"Toastify__spinner"})}},K1=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=W1(e),{closeButton:a,children:s,autoClose:c,onClick:u,type:d,hideProgressBar:p,closeToast:y,transition:N,position:v,className:j,style:x,bodyClassName:h,bodyStyle:m,progressClassName:f,progressStyle:g,updateId:w,role:S,progress:b,rtl:E,toastId:A,deleteToast:F,isIn:$,isLoading:X,closeOnClick:Q,theme:J}=e,T=en("Toastify__toast",`Toastify__toast-theme--${J}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":Q}),B=Ge(j)?j({rtl:E,position:v,type:d,defaultClassName:T}):en(T,j),K=function(M){let{theme:z,type:V,isLoading:q,icon:P}=M,L=null;const R={theme:z,type:V};return P===!1||(Ge(P)?L=P({...R,isLoading:q}):O.isValidElement(P)?L=O.cloneElement(P,R):q?L=Sa.spinner():(W=>W in Sa)(V)&&(L=Sa[V](R))),L}(e),k=!!b||!c,C={closeToast:y,type:d,theme:J};let D=null;return a===!1||(D=Ge(a)?a(C):O.isValidElement(a)?O.cloneElement(a,C):function(M){let{closeToast:z,theme:V,ariaLabel:q="close"}=M;return _.createElement("button",{className:`Toastify__close-button Toastify__close-button--${V}`,type:"button",onClick:P=>{P.stopPropagation(),z(P)},"aria-label":q},_.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_.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"})))}(C)),_.createElement(N,{isIn:$,done:F,position:v,preventExitTransition:n,nodeRef:r,playToast:l},_.createElement("div",{id:A,onClick:u,"data-in":$,className:B,...i,style:x,ref:r},_.createElement("div",{...$&&{role:S},className:Ge(h)?h({type:d}):en("Toastify__toast-body",h),style:m},K!=null&&_.createElement("div",{className:en("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!X})},K),_.createElement("div",null,s)),D,_.createElement(V1,{...w&&!k?{key:`pb-${w}`}:{},rtl:E,theme:J,delay:c,isRunning:t,isIn:$,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:k,progress:b||0})))},Bl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Q1=zl(Bl("bounce",!0));zl(Bl("slide",!0));zl(Bl("zoom"));zl(Bl("flip"));const G1={position:"top-right",transition:Q1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function J1(e){let t={...G1,...e};const n=e.stacked,[r,i]=O.useState(!0),l=O.useRef(null),{getToastToRender:a,isToastActive:s,count:c}=$1(t),{className:u,style:d,rtl:p,containerId:y}=t;function N(j){const x=en("Toastify__toast-container",`Toastify__toast-container--${j}`,{"Toastify__toast-container--rtl":p});return Ge(u)?u({position:j,rtl:p,defaultClassName:x}):en(x,Co(u))}function v(){n&&(i(!0),ee.play())}return Y1(()=>{if(n){var j;const x=l.current.querySelectorAll('[data-in="true"]'),h=12,m=(j=t.position)==null?void 0:j.includes("top");let f=0,g=0;Array.from(x).reverse().forEach((w,S)=>{const b=w;b.classList.add("Toastify__toast--stacked"),S>0&&(b.dataset.collapsed=`${r}`),b.dataset.pos||(b.dataset.pos=m?"top":"bot");const E=f*(r?.2:1)+(r?0:h*S);b.style.setProperty("--y",`${m?E:-1*E}px`),b.style.setProperty("--g",`${h}`),b.style.setProperty("--s",""+(1-(r?g:0))),f+=b.offsetHeight,g+=.025})}},[r,c,n]),_.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),ee.pause())},onMouseLeave:v},a((j,x)=>{const h=x.length?{...d}:{...d,pointerEvents:"none"};return _.createElement("div",{className:N(j),style:h,key:`container-${j}`},x.map(m=>{let{content:f,props:g}=m;return _.createElement(K1,{...g,stacked:n,collapseAll:v,isIn:s(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},f)}))}))}const Re=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(ce,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(ce,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(ce,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(ce,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},X1="/assets/logo-Cb1x1exd.png",Ee=()=>{var i,l;const{user:e}=He(a=>({...a.auth})),t=xt(),n=kr(),r=()=>{t(R0()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:X1,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(ce,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ce,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ce,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ce,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ce,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ce,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(ce,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):o.jsx(ce,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(ce,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):o.jsx(ce,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},Z1=()=>o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),o.jsx(Re,{})]}),ej=()=>o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(Re,{})]}),tj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(Re,{})]});var Ot=function(){return Ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=O.useState(Cj),[n,r]=O.useState(!1),{loading:i,error:l}=He(w=>({...w.auth})),{title:a,email:s,password:c,firstName:u,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,j=xt(),x=kr();O.useEffect(()=>{l&&ee.error(l)},[l]),O.useEffect(()=>{r(a!=="None"&&s&&c&&u&&d&&p&&y&&N&&v!=="")},[a,s,c,u,d,p,y,N,v]);const h=w=>{if(w.preventDefault(),c!==y)return ee.error("Password should match");n?j(xo({formValue:e,navigate:x,toast:ee})):ee.error("Please fill in all fields and select all checkboxes")},m=w=>w.charAt(0).toUpperCase()+w.slice(1),f=w=>{const{name:S,value:b,type:E,checked:A}=w.target;t(E==="checkbox"?F=>({...F,[S]:A}):F=>({...F,[S]:S==="email"||S==="password"||S==="confirmPassword"?b:m(b)}))},g=w=>{t(S=>({...S,userType:w.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:h,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:g,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:g,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:f,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:u,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:s,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:c,name:"password",onChange:f,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(Qm.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Re,{})]})},_j={email:"",password:""},Pj=()=>{const[e,t]=O.useState(_j),{loading:n,error:r}=He(d=>({...d.auth})),{email:i,password:l}=e,a=xt(),s=kr();O.useEffect(()=>{r&&ee.error(r)},[r]);const c=d=>{d.preventDefault(),i&&l&&a(go({formValue:e,navigate:s,toast:ee}))},u=d=>{let{name:p,value:y}=d.target;t({...e,[p]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:u,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:u,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(Qm.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(ce,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(ce,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Re,{})]})},ko="/assets/samplepic-BM_cnzgz.jpg";var Gm={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lh,function(){return function(n){function r(l){if(i[l])return i[l].exports;var a=i[l]={exports:{},id:l,loaded:!1};return n[l].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(n,r,i){function l(N){return N&&N.__esModule?N:{default:N}}function a(N,v){if(!(N instanceof v))throw new TypeError("Cannot call a class as a function")}function s(N,v){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?N:v}function c(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(N,v):N.__proto__=v)}Object.defineProperty(r,"__esModule",{value:!0});var u=function(){function N(v,j){for(var x=0;x1)for(var w=1;w1?d-1:0),y=1;y2?p-2:0),N=2;N1){for(var J=Array(Q),T=0;T"u"||E.$$typeof!==h)){var K=typeof g=="function"?g.displayName||g.name||"Unknown":g;A&&c(E,K),F&&u(E,K)}return f(g,A,F,$,X,N.current,E)},f.createFactory=function(g){var w=f.createElement.bind(null,g);return w.type=g,w},f.cloneAndReplaceKey=function(g,w){var S=f(g.type,w,g.ref,g._self,g._source,g._owner,g.props);return S},f.cloneElement=function(g,w,S){var b,E=y({},g.props),A=g.key,F=g.ref,$=g._self,X=g._source,Q=g._owner;if(w!=null){a(w)&&(F=w.ref,Q=N.current),s(w)&&(A=""+w.key);var J;g.type&&g.type.defaultProps&&(J=g.type.defaultProps);for(b in w)x.call(w,b)&&!m.hasOwnProperty(b)&&(w[b]===void 0&&J!==void 0?E[b]=J[b]:E[b]=w[b])}var T=arguments.length-2;if(T===1)E.children=S;else if(T>1){for(var B=Array(T),K=0;K1?u-1:0),p=1;p2?d-2:0),y=2;y.")}return b}function u(S,b){if(S._store&&!S._store.validated&&S.key==null){S._store.validated=!0;var E=g.uniqueKey||(g.uniqueKey={}),A=c(b);if(!E[A]){E[A]=!0;var F="";S&&S._owner&&S._owner!==y.current&&(F=" It was passed a child from "+S._owner.getName()+"."),l.env.NODE_ENV!=="production"&&m(!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',A,F,N.getCurrentStackAddendum(S))}}}function d(S,b){if(typeof S=="object"){if(Array.isArray(S))for(var E=0;E1?q-1:0),L=1;L"u"||M===null)return""+M;var z=Q(M);if(z==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return z}function T(M){var z=J(M);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(M){return M.constructor&&M.constructor.name?M.constructor.name:C}var K=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator",C="<>",D={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(),arrayOf:f,element:g(),instanceOf:w,node:A(),objectOf:b,oneOf:S,oneOfType:E,shape:F};return j.prototype=Error.prototype,D.checkPropTypes=d,D.PropTypes=D,D}}).call(r,i(1))},function(n,r){function i(s){var c=/[=:]/g,u={"=":"=0",":":"=2"},d=(""+s).replace(c,function(p){return u[p]});return"$"+d}function l(s){var c=/(=0|=2)/g,u={"=0":"=","=2":":"},d=s[0]==="."&&s[1]==="$"?s.substring(2):s.substring(1);return(""+d).replace(c,function(p){return u[p]})}var a={escape:i,unescape:l};n.exports=a},function(n,r,i){(function(l){var a=i(5),s=i(2),c=function(h){var m=this;if(m.instancePool.length){var f=m.instancePool.pop();return m.call(f,h),f}return new m(h)},u=function(h,m){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,h,m),g}return new f(h,m)},d=function(h,m,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,h,m,f),w}return new g(h,m,f)},p=function(h,m,f,g){var w=this;if(w.instancePool.length){var S=w.instancePool.pop();return w.call(S,h,m,f,g),S}return new w(h,m,f,g)},y=function(h){var m=this;h instanceof m||(l.env.NODE_ENV!=="production"?s(!1,"Trying to release an instance into a pool of a different type."):a("25")),h.destructor(),m.instancePool.length{const[e,t]=O.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=xt(),{status:l,error:a}=He(P=>P.property),{user:s}=He(P=>({...P.auth})),[c,u]=O.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:""},{title:"Closing Fees - Owner's Title Insurance",price:""},{title:"Courier Fees",price:""},{title:"Wire Fee",price:""},{title:"E recording Fee",price:""},{title:"Recording Fee",price:""},{title:"Property Tax",price:""}],credits:[{title:"Credits received on settlement",price:""}],incidentalCost:[{title:"Accounting Fees",price:""},{title:"Bank Charges",price:""},{title:"Legal Fees",price:""},{title:"Property Taxes",price:""},{title:"Travel Expenses",price:""}],utilMaintenance:[{title:"Electricity",price:""},{title:"Water and Sewer",price:""},{title:"Natural Gas",price:""},{title:"Trash and Recycling",price:""},{title:"Internet and Cable",price:""},{title:"Heating Oil/Propane",price:""},{title:"HOA fees",price:""},{title:"Dump fees",price:""},{title:"Insurance",price:""},{title:"Interest on Loans",price:""},{title:"Loan Payment",price:""},{title:"Property Taxes",price:""},{title:"Security",price:""},{title:"Real Estates fees",price:""}]}),[d,p]=O.useState(!1),y=(P,L)=>{const R=[...c.images];R[L].file=P.base64,u({...c,images:R})},N=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},v=P=>{const L=c.images.filter((R,W)=>W!==P);u({...c,images:L})},j=(P,L)=>{const R=[...c.images];R[P].title=L.target.value,u({...c,images:R})},x=(P,L,R)=>{const{name:W,value:H}=P.target;if(R==="propertyTaxInfo"){const G=[...c.propertyTaxInfo];G[L][W]=H,u({...c,propertyTaxInfo:G})}else u({...c,[W]:H})},h=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=P=>{const L=c.propertyTaxInfo.filter((R,W)=>W!==P);u({...c,propertyTaxInfo:L})},f=()=>{u(P=>({...P,costPaidAtoB:[...P.costPaidAtoB,{title:"",price:""}]}))},g=P=>{const L=c.costPaidAtoB.filter((R,W)=>W!==P);u(R=>({...R,costPaidAtoB:L}))},w=(P,L,R)=>{const W=[...c.costPaidAtoB];W[P][L]=R,u(H=>({...H,costPaidAtoB:W}))},S=(P,L)=>{const R=P.target.value;if(/^\d*\.?\d*$/.test(R)||R===""){const H=c.costPaidAtoB.map((G,te)=>te===L?{...G,price:R,isInvalid:!1}:G);u({...c,costPaidAtoB:H})}else{const H=c.costPaidAtoB.map((G,te)=>te===L?{...G,isInvalid:!0}:G);u({...c,costPaidAtoB:H})}},b=()=>{const P=c.costPaidAtoB.reduce((R,W)=>{const H=parseFloat(W.price)||0;return R+H},0),L=parseFloat(c.purchaseCost)||0;return P+L},E=()=>{u(P=>({...P,credits:[...P.credits,{title:"",price:""}]}))},A=P=>{const L=c.credits.filter((R,W)=>W!==P);u(R=>({...R,credits:L}))},F=(P,L,R)=>{const W=[...c.credits];W[P][L]=R,u(H=>({...H,credits:W}))},$=(P,L)=>{const R=P.target.value;if(/^\d*\.?\d*$/.test(R)||R===""){const H=c.credits.map((G,te)=>te===L?{...G,price:R,isInvalid:!1}:G);u({...c,credits:H})}else{const H=c.credits.map((G,te)=>te===L?{...G,isInvalid:!0}:G);u({...c,credits:H})}},X=()=>c.credits.reduce((P,L)=>{const R=parseFloat(L.price);return P+(isNaN(R)?0:R)},0),Q=()=>{const P=c.costPaidAtoB.reduce((W,H)=>{const G=parseFloat(H.price)||0;return W+G},0),L=c.credits.reduce((W,H)=>{const G=parseFloat(H.price)||0;return W+G},0),R=parseFloat(c.purchaseCost)||0;return P+L+R},J=()=>{u(P=>({...P,incidentalCost:[...P.incidentalCost,{title:"",price:""}]}))},T=P=>{const L=c.incidentalCost.filter((R,W)=>W!==P);u(R=>({...R,incidentalCost:L}))},B=(P,L,R)=>{const W=[...c.incidentalCost];W[P][L]=R,u(H=>({...H,incidentalCost:W}))},K=(P,L)=>{const R=P.target.value;if(/^\d*\.?\d*$/.test(R)||R===""){const H=c.incidentalCost.map((G,te)=>te===L?{...G,price:R,isInvalid:!1}:G);u({...c,incidentalCost:H})}else{const H=c.incidentalCost.map((G,te)=>te===L?{...G,isInvalid:!0}:G);u({...c,incidentalCost:H})}},k=()=>c.incidentalCost.reduce((P,L)=>{const R=parseFloat(L.price);return P+(isNaN(R)?0:R)},0),C=()=>{u(P=>({...P,utilMaintenance:[...P.utilMaintenance,{title:"",price:""}]}))},D=P=>{const L=c.utilMaintenance.filter((R,W)=>W!==P);u(R=>({...R,utilMaintenance:L}))},M=(P,L,R)=>{const W=[...c.utilMaintenance];W[P][L]=R,u(H=>({...H,utilMaintenance:W}))},z=(P,L)=>{const R=P.target.value;if(/^\d*\.?\d*$/.test(R)||R===""){const H=c.utilMaintenance.map((G,te)=>te===L?{...G,price:R,isInvalid:!1}:G);u({...c,utilMaintenance:H})}else{const H=c.utilMaintenance.map((G,te)=>te===L?{...G,isInvalid:!0}:G);u({...c,utilMaintenance:H})}},V=()=>c.utilMaintenance.reduce((P,L)=>{const R=parseFloat(L.price);return P+(isNaN(R)?0:R)},0),q=()=>{var P,L,R,W,H,G;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){const te=b(),Un=Q(),Mi=k(),th=X(),nh=V(),Ul={...c,userfirstname:(P=s==null?void 0:s.result)==null?void 0:P.firstName,usermiddlename:(L=s==null?void 0:s.result)==null?void 0:L.middleName,userlastname:(R=s==null?void 0:s.result)==null?void 0:R.lastName,usertitle:(W=s==null?void 0:s.result)==null?void 0:W.title,useremail:(H=s==null?void 0:s.result)==null?void 0:H.email,userId:(G=s==null?void 0:s.result)==null?void 0:G.userId,totalCostsAtoB:te,totalcredits:th,totalCostsAtoBaftercredits:Un,totalincidentalCost:Mi,totalutilMaintenanceCost:nh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Ul.propertyTaxInfo=c.propertyTaxInfo:Ul.propertyTaxInfo=[],i(Eo(Ul)),p(!0)}else ee.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return O.useEffect(()=>{d&&(l==="succeeded"?(ee.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),p(!1)):l==="failed"&&(ee.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),p(!1)))},[l,a,d]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Ee,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),o.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("form",{children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),o.jsx("hr",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Address",o.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Parcel",o.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Sub division",o.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",o.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",o.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Property Type",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",o.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Year Build",o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Beds",o.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Baths",o.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Stories",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"}),o.jsx("option",{value:"6",children:"6"}),o.jsx("option",{value:"7",children:"7"}),o.jsx("option",{value:"8",children:"8"}),o.jsx("option",{value:"9",children:"9"}),o.jsx("option",{value:"10",children:"10"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Garage",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",o.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Pool/SPA",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),o.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),o.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),o.jsx("option",{value:"4",children:"None"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Fire places",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"yes",children:"Yes"}),o.jsx("option",{value:"no",children:"No"})]})]}),o.jsxs("div",{className:"col-md-4",children:["A/C",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Heating",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Building Style",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"One Story",children:"One Story"}),o.jsx("option",{value:"Craftsman",children:"Craftsman"}),o.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),o.jsx("option",{value:"Split-Level",children:"Split-Level"}),o.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),o.jsx("option",{value:"Stick Built",children:"Stick Built"}),o.jsx("option",{value:"Single wide",children:"Single wide"}),o.jsx("option",{value:"Double wide",children:"Double wide"}),o.jsx("option",{value:"Duplex",children:"Duplex"}),o.jsx("option",{value:"Triplex",children:"Triplex"}),o.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),o.jsx("option",{value:"Two Story",children:"Two Story"}),o.jsx("option",{value:"Victorian",children:"Victorian"}),o.jsx("option",{value:"Tudor",children:"Tudor"}),o.jsx("option",{value:"Modern",children:"Modern"}),o.jsx("option",{value:"Art Deco",children:"Art Deco"}),o.jsx("option",{value:"Bungalow",children:"Bungalow"}),o.jsx("option",{value:"Mansion",children:"Mansion"}),o.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),o.jsx("option",{value:"Conventional",children:"Conventional"}),o.jsx("option",{value:"Ranch",children:"Ranch"}),o.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),o.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),o.jsx("option",{value:"Contemporary",children:"Contemporary"}),o.jsx("option",{value:"Colonial",children:"Colonial"}),o.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Site Vacant",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please select"}),o.jsx("option",{value:"Yes",children:"Yes"}),o.jsx("option",{value:"No",children:"No"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Ext Wall",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Brick",children:"Brick"}),o.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),o.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),o.jsx("option",{value:"Stone",children:"Stone"}),o.jsx("option",{value:"Masonry",children:"Masonry"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),o.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),o.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),o.jsx("option",{value:"Gable",children:"Gable"}),o.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),o.jsx("option",{value:"Frame",children:"Frame"}),o.jsx("option",{value:"Siding",children:"Siding"}),o.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),o.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),o.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),o.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),o.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Roofing",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),o.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),o.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),o.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),o.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),o.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),o.jsx("option",{value:"Slate",children:"Slate"}),o.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),o.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:x,required:!0})]})})]}),o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[o.jsx("br",{}),"Property Tax Information"]}),o.jsx("hr",{}),c.propertyTaxInfo.map((P,L)=>o.jsxs("div",{className:"row gy-4",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",o.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:P.propertytaxowned,onChange:R=>x(R,L,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Owed Year",o.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:P.ownedyear,onChange:R=>x(R,L,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",o.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:P.taxassessed,onChange:R=>x(R,L,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",o.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:P.taxyear,onChange:R=>x(R,L,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-2",children:[o.jsx("br",{}),o.jsx("button",{className:"btn btn-danger",onClick:()=>m(L),style:{height:"25px",width:"35px"},children:"X"})]})})]},L)),o.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),o.jsxs("form",{children:[c.images.map((P,L)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,placeholder:"Image Title",onChange:R=>j(L,R)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(Jm,{multiple:!1,onDone:R=>y(R,L)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>v(L),style:{marginLeft:"5px"},children:"Delete"})]}),P.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:P.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},L)),o.jsx("button",{type:"button",className:"btn btn-primary",onClick:N,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),o.jsx("hr",{}),o.jsxs("div",{className:"mb-3",children:[o.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),o.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:x,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&o.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&o.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Acquisition A to B:"}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Purchase Cost",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:c.purchaseCost,onChange:P=>u({...c,purchaseCost:P.target.value}),placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0})})]}),o.jsx("hr",{}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((P,L)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:R=>w(L,"title",R.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:R=>S(R,L),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>g(L),style:{marginLeft:"5px"},children:"x"})})]},L)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{onClick:f,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoB",value:b(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("hr",{}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits"}),c.credits.map((P,L)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:R=>F(L,"title",R.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:R=>$(R,L),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>A(L),style:{marginLeft:"5px"},children:"x"})})]},L)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:E,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:X(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B After credits"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoBaftercredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((P,L)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:R=>B(L,"title",R.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:R=>K(R,L),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>T(L),style:{marginLeft:"5px"},children:"x"})})]},L)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:J,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:k(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Utilities & Maintenance:"}),c.utilMaintenance.map((P,L)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:R=>M(L,"title",R.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:R=>z(R,L),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>D(L),style:{marginLeft:"5px"},children:"x"})})]},L)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Utilities and Maintenance Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Utilities and Maintenance Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalutilMaintenanceCost",value:V(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:q,children:"Submit"})," "]}),o.jsx("br",{})]})]})]})})},bt="/assets/propertydummy-DhVEZ7jN.jpg",Rj=()=>{var c;const e=xt(),{user:t}=He(u=>({...u.auth})),{userProperties:n,totalPages:r}=He(u=>u.property),[i,l]=O.useState(1),a=5;O.useEffect(()=>{e(So({userId:t.result.userId,page:i,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const s=u=>{l(u)};return o.jsx(o.Fragment,{children:n.length>0?o.jsxs(o.Fragment,{children:[o.jsx("ul",{children:n.map(u=>o.jsx("li",{children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"col-md-12",children:o.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[o.jsx("div",{className:"col-md-3 mt-1",children:o.jsx("img",{src:bt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),o.jsxs("div",{className:"col-md-6 mt-1",children:[o.jsxs("h5",{children:[" ",o.jsxs(ce,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),o.jsx("div",{className:"d-flex flex-row"}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"100% cotton"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"Light weight"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Best finish",o.jsx("br",{})]})]}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"Unique design"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"For men"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Casual",o.jsx("br",{})]})]}),o.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",o.jsx("br",{}),o.jsx("br",{})]})]}),o.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:o.jsxs("div",{className:"d-flex flex-column mt-4",children:[o.jsx(ce,{to:`/property/${u.propertyId}`,target:"_blank",children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),o.jsx(ce,{to:`/editproperty/${u.propertyId}`,children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),o.jsxs("div",{className:"pagination",children:[o.jsx("button",{onClick:()=>s(i-1),disabled:i===1,children:"Previous"}),Array.from({length:r},(u,d)=>d+1).map(u=>u===i||u===1||u===r||u>=i-1&&u<=i+1?o.jsx("button",{onClick:()=>s(u),disabled:i===u,children:u},u):u===2||u===r-1?o.jsx("span",{children:"..."},u):null),o.jsx("button",{onClick:()=>s(i+1),disabled:i===r,children:"Next"})]})]}):o.jsx("p",{children:"No active properties found."})})},Ij=()=>{var d,p,y,N,v,j,x,h,m,f,g,w;const{user:e,isLoading:t,error:n}=He(S=>S.auth),r=xt(),i=kr(),[l,a]=O.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((j=e==null?void 0:e.result)==null?void 0:j.email)||"",aboutme:((x=e==null?void 0:e.result)==null?void 0:x.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});O.useEffect(()=>{e&&a({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 s=S=>{a({...l,[S.target.name]:S.target.value})},c=()=>{a({...l,profileImage:""})},u=S=>{S.preventDefault(),r(jo(l)),i("/login")};return o.jsx(o.Fragment,{children:o.jsxs("form",{onSubmit:u,children:[o.jsxs("div",{className:"col-4",children:["Title",o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:s,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["First Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:s})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:s})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Last Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:s})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Email",o.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:s,disabled:!0})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["About me",o.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:s})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:s,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:s,required:!0,children:[o.jsx("option",{value:"",children:"Please Select State"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:s,required:!0,children:[o.jsx("option",{value:"",children:"Please Select County"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:s,required:!0})]})}),o.jsxs("div",{className:"col-4",children:[o.jsx("label",{children:"Profile Image"}),o.jsx("div",{className:"mb-3",children:o.jsx(Jm,{type:"file",multiple:!1,onDone:({base64:S})=>a({...l,profileImage:S})})})]}),l.profileImage&&o.jsxs("div",{className:"col-4 mb-3",children:[o.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),o.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:c,children:"Delete Image"})]}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&o.jsx("p",{children:n})]})})},Aj=()=>{const[e,t]=O.useState("dashboard"),{user:n}=He(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(Ij,{});case"addProperty":return o.jsx(Tj,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(Rj,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsx(o.Fragment,{})}};return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:n.result.profileImage||ko,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"User Profile"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-1",children:[o.jsx("br",{}),o.jsxs("span",{children:["Welcome to"," ",o.jsx("span",{style:{color:"#067ADC"},children:o.jsxs(ce,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),o.jsx("br",{}),r()]})})]}),o.jsx(Re,{})]})};var Xm={exports:{}},Dj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Mj=Dj,Lj=Mj;function Zm(){}function eh(){}eh.resetWarningCache=Zm;var Fj=function(){function e(r,i,l,a,s,c){if(c!==Lj){var u=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 u.name="Invariant Violation",u}}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:eh,resetWarningCache:Zm};return n.PropTypes=n,n};Xm.exports=Fj();var zj=Xm.exports;const Bj=Ms(zj),Uj=()=>{const[e,t]=O.useState(3),n=kr();return O.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},_o=({children:e})=>{const{user:t}=He(n=>({...n.auth}));return t?e:o.jsx(Uj,{})};_o.propTypes={children:Bj.node.isRequired};const $j=()=>{const e=xt(),{id:t,token:n}=_r();return O.useEffect(()=>{e(wo({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(ce,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(Re,{})]})},Wj=()=>{const[e,t]=O.useState(""),[n,r]=O.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const a=await le.post(`${i}/users/forgotpassword`,{email:e});r(a.data.message)}catch(a){console.error("Forgot Password Error:",a),r(a.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(ce,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(Re,{})]})]})},Vj=()=>{const{userId:e,token:t}=_r(),[n,r]=O.useState(""),[i,l]=O.useState(""),[a,s]=O.useState(""),c="http://67.225.129.127:3002",u=async()=>{try{if(!n||n.trim()===""){s("Password not entered"),ee.error("Password not entered");return}const d=await le.post(`${c}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){s("Passwords do not match."),ee.error("Passwords do not match.");return}else s("Password reset successfull"),ee.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return O.useEffect(()=>{ee.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),o.jsx(Re,{})]})},qj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(Re,{})]}),Hj=()=>{const{id:e}=_r(),t=xt(),{selectedProperty:n,status:r,error:i}=He(s=>s.property),[l,a]=O.useState(!0);return O.useEffect(()=>{e&&(t(Zr(e)),a(!1))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:l?o.jsx("div",{className:"loader",children:"Loading..."}):n?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?o.jsx("img",{src:n.images[0].file||bt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:bt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),o.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(Re,{})]})},Yj=()=>{const[e,t]=O.useState([]),[n,r]=O.useState(0),[i,l]=O.useState(0),[a]=O.useState(10),[s,c]=O.useState(""),[u,d]=O.useState(!1),[p,y]=O.useState(!1),N=async()=>{d(!0),y(!1);try{const h=await le.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:i*a,search:s},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),s.trim()&&y(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},v=h=>{c(h.target.value),h.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),N())},j=h=>{h.key==="Enter"&&(h.preventDefault(),N())};O.useEffect(()=>{N()},[s,i]);const x=Math.ceil(n/a);return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:s,onChange:v,onKeyDown:j})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[p&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword"," ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:s})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((h,m)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(ce,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},m)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",x," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=x||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(Re,{})]})},Kj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(Re,{})]}),Qj=()=>{const{house_id:e}=_r();console.log("house_id",e);const[t,n]=O.useState(null),[r,i]=O.useState(!0);return O.useEffect(()=>{(async()=>{try{const a=await le.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:bt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(Re,{})]})},Gj=()=>{const{id:e}=_r(),t=xt(),{selectedProperty:n}=He(s=>s.property),[r,i]=O.useState({propertyType:"",yearBuild:"",totalSqft:""});O.useEffect(()=>{t(Zr(e))},[t,e]),O.useEffect(()=>{n&&i({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=s=>{i({...r,[s.target.name]:s.target.value})},a=s=>{s.preventDefault(),t(bo({id:e,propertyData:r}))};return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:a,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]}),o.jsx(Re,{})]})},Jj=()=>{const e=xt(),{properties:t,loading:n,totalPages:r,currentPage:i}=He(j=>j.property),[l,a]=O.useState(""),[s,c]=O.useState([]),[u,d]=O.useState(1),p=10;O.useEffect(()=>{e(ei({page:u,limit:p,keyword:l}))},[e,u,l]),O.useEffect(()=>{l.trim()?c(t.filter(j=>j.address.toLowerCase().includes(l.toLowerCase()))):c(t)},[l,t]);const y=j=>{a(j.target.value)},N=j=>{j.preventDefault()},v=j=>{d(j),e(ei({page:j,limit:p,keyword:l}))};return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",onSubmit:N,children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",value:l,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsx("div",{className:"card-body",children:n?o.jsx("div",{children:"Loading..."}):o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Image"}),o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:s.length>0?s.map(j=>o.jsxs("tr",{children:[o.jsx("td",{children:j.images&&j.images[0]?o.jsx("img",{src:j.images[0].file||bt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:bt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(ce,{to:`/property/${j.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:j.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),j.city,", ",j.county,","," ",j.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",j.propertyId]})]})]})}),o.jsx("td",{children:j.totallivingsqft}),o.jsx("td",{children:j.yearBuild}),o.jsx("td",{children:j.costpersqft})]},j.id)):o.jsx("tr",{children:o.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),o.jsx("nav",{"aria-label":"Page navigation",children:o.jsxs("ul",{className:"pagination justify-content-center",children:[o.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i-1),children:"Previous"})}),Array.from({length:r},(j,x)=>o.jsx("li",{className:`page-item ${i===x+1?"active":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(x+1),children:x+1})},x+1)),o.jsx("li",{className:`page-item ${i===r?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i+1),children:"Next"})})]})})]}),o.jsx(Re,{})]})},Xj=()=>{const{userId:e}=_r(),t=xt(),{user:n,loading:r}=He(i=>i.user);return console.log("user",n),O.useEffect(()=>{e&&t(No(e))},[e,t]),r?o.jsx("div",{children:"Loading..."}):o.jsxs(o.Fragment,{children:[o.jsx(Ee,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("div",{className:"main-body",children:o.jsxs("div",{className:"row gutters-sm",children:[o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[o.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),o.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),o.jsxs("span",{className:"text-muted font-size-sm",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),o.jsx("hr",{}),o.jsx("img",{src:bt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),o.jsx("hr",{}),o.jsx("img",{src:bt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),o.jsx("hr",{}),o.jsx("img",{src:bt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("hr",{}),o.jsx("img",{src:bt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4",children:o.jsx("div",{className:"card mb-3",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",o.jsx("hr",{}),n.aboutme]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),o.jsx("hr",{}),o.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),o.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:o.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),o.jsx("hr",{}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Email"})}),n.email,o.jsx("div",{className:"col-sm-9 text-secondary"})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",o.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),o.jsxs("ul",{className:"list-group list-group-flush",children:[o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:ko,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:ko,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:ko,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Zj=()=>o.jsxs(I1,{children:[o.jsx(J1,{}),o.jsxs(b1,{children:[o.jsx(je,{path:"/",element:o.jsx(Z1,{})}),o.jsx(je,{path:"/about",element:o.jsx(ej,{})}),o.jsx(je,{path:"/services",element:o.jsx(Kj,{})}),o.jsx(je,{path:"/contact",element:o.jsx(tj,{})}),o.jsx(je,{path:"/register",element:o.jsx(kj,{})}),o.jsx(je,{path:"/registrationsuccess",element:o.jsx(_o,{children:o.jsx(qj,{})})}),o.jsx(je,{path:"/login",element:o.jsx(Pj,{})}),o.jsx(je,{path:"/dashboard",element:o.jsx(_o,{children:o.jsx(Aj,{})})}),o.jsx(je,{path:"/users/:id/verify/:token",element:o.jsx($j,{})}),o.jsx(je,{path:"/forgotpassword",element:o.jsx(Wj,{})}),o.jsx(je,{path:"/users/resetpassword/:userId/:token",element:o.jsx(Vj,{})}),o.jsx(je,{path:"/property/:id",element:o.jsx(Hj,{})}),o.jsx(je,{path:"/properties/:house_id",element:o.jsx(Qj,{})}),o.jsx(je,{path:"/searchmyproperties",element:o.jsx(Yj,{})}),o.jsx(je,{path:"/searchproperties",element:o.jsx(Jj,{})}),o.jsx(je,{path:"/editproperty/:id",element:o.jsx(_o,{children:o.jsx(Gj,{})})}),o.jsx(je,{path:"/profile/:userId",element:o.jsx(Xj,{})})]})]});Wp(document.getElementById("root")).render(o.jsx(O.StrictMode,{children:o.jsx(Zy,{store:F0,children:o.jsx(Zj,{})})})); diff --git a/ef-ui/dist/assets/index-KWwl6oqn.js b/ef-ui/dist/assets/index-KWwl6oqn.js new file mode 100644 index 0000000..8af930d --- /dev/null +++ b/ef-ui/dist/assets/index-KWwl6oqn.js @@ -0,0 +1,85 @@ +var vh=Object.defineProperty;var yh=(e,t,n)=>t in e?vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ql=(e,t,n)=>yh(e,typeof t!="symbol"?t+"":t,n);function gh(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var xh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ld={exports:{}},gl={},Fd={exports:{}},oe={};/** + * @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 Ii=Symbol.for("react.element"),jh=Symbol.for("react.portal"),Nh=Symbol.for("react.fragment"),wh=Symbol.for("react.strict_mode"),Eh=Symbol.for("react.profiler"),bh=Symbol.for("react.provider"),Ch=Symbol.for("react.context"),Sh=Symbol.for("react.forward_ref"),kh=Symbol.for("react.suspense"),_h=Symbol.for("react.memo"),Ph=Symbol.for("react.lazy"),Kc=Symbol.iterator;function Oh(e){return e===null||typeof e!="object"?null:(e=Kc&&e[Kc]||e["@@iterator"],typeof e=="function"?e:null)}var zd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bd=Object.assign,Ud={};function _r(e,t,n){this.props=e,this.context=t,this.refs=Ud,this.updater=n||zd}_r.prototype.isReactComponent={};_r.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")};_r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $d(){}$d.prototype=_r.prototype;function Va(e,t,n){this.props=e,this.context=t,this.refs=Ud,this.updater=n||zd}var qa=Va.prototype=new $d;qa.constructor=Va;Bd(qa,_r.prototype);qa.isPureReactComponent=!0;var Qc=Array.isArray,Wd=Object.prototype.hasOwnProperty,Ha={current:null},Vd={key:!0,ref:!0,__self:!0,__source:!0};function qd(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)Wd.call(t,r)&&!Vd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,F=k[I];if(0>>1;Ii(Q,A))Xi(ee,Q)?(k[I]=ee,k[X]=A,I=X):(k[I]=Q,k[V]=A,I=V);else if(Xi(ee,A))k[I]=ee,k[X]=A,I=X;else break e}}return S}function i(k,S){var A=k.sortIndex-S.sortIndex;return A!==0?A:k.id-S.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],d=1,p=null,y=3,N=!1,v=!1,j=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(k){for(var S=n(u);S!==null;){if(S.callback===null)r(u);else if(S.startTime<=k)r(u),S.sortIndex=S.expirationTime,t(c,S);else break;S=n(u)}}function g(k){if(j=!1,f(k),!v)if(n(c)!==null)v=!0,B(w);else{var S=n(u);S!==null&&H(g,S.startTime-k)}}function w(k,S){v=!1,j&&(j=!1,h(E),E=-1),N=!0;var A=y;try{for(f(S),p=n(c);p!==null&&(!(p.expirationTime>S)||k&&!$());){var I=p.callback;if(typeof I=="function"){p.callback=null,y=p.priorityLevel;var F=I(p.expirationTime<=S);S=e.unstable_now(),typeof F=="function"?p.callback=F:p===n(c)&&r(c),f(S)}else r(c);p=n(c)}if(p!==null)var W=!0;else{var V=n(u);V!==null&&H(g,V.startTime-S),W=!1}return W}finally{p=null,y=A,N=!1}}var b=!1,C=null,E=-1,R=5,L=-1;function $(){return!(e.unstable_now()-Lk||125I?(k.sortIndex=A,t(u,k),n(c)===null&&k===n(u)&&(j?(h(E),E=-1):j=!0,H(g,A-I))):(k.sortIndex=F,t(c,k),v||N||(v=!0,B(w))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var S=y;return function(){var A=y;y=S;try{return k.apply(this,arguments)}finally{y=A}}}})(Gd);Qd.exports=Gd;var Uh=Qd.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 $h=P,lt=Uh;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),As=Object.prototype.hasOwnProperty,Wh=/^[: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]*$/,Jc={},Xc={};function Vh(e){return As.call(Xc,e)?!0:As.call(Jc,e)?!1:Wh.test(e)?Xc[e]=!0:(Jc[e]=!0,!1)}function qh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hh(e,t,n,r){if(t===null||typeof t>"u"||qh(e,t,n,r))return!0;if(r)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 Ve(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ve(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){Ie[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ka=/[\-:]([a-z])/g;function Qa(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(Ka,Qa);Ie[t]=new Ve(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(Ka,Qa);Ie[t]=new Ve(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(Ka,Qa);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ga(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==l[a]){var c=` +`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{Xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hr(e):""}function Yh(e){switch(e.tag){case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 2:case 15:return e=Zl(e.type,!1),e;case 11:return e=Zl(e.type.render,!1),e;case 1:return e=Zl(e.type,!0),e;default:return""}}function Ls(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 Jn:return"Fragment";case Gn:return"Portal";case Is:return"Profiler";case Ja:return"StrictMode";case Ds:return"Suspense";case Ms:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zd:return(e.displayName||"Context")+".Consumer";case Xd:return(e._context.displayName||"Context")+".Provider";case Xa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Za:return t=e.displayName||null,t!==null?t:Ls(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return Ls(e(t))}catch{}}return null}function Kh(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 Ls(t);case 8:return t===Ja?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qh(e){var t=tf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=Qh(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(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 Fs(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function eu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rf(e,t){t=t.checked,t!=null&&Ga(e,"checked",t,!1)}function zs(e,t){rf(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bs(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 Bs(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yr=Array.isArray;function pr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function di(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={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},Gh=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){Gh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function af(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function cf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=af(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Jh=xe({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 Ws(e,t){if(t){if(Jh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Vs(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 qs=null;function ec(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hs=null,mr=null,hr=null;function iu(e){if(e=Li(e)){if(typeof Hs!="function")throw Error(U(280));var t=e.stateNode;t&&(t=El(t),Hs(e.stateNode,e.type,t))}}function uf(e){mr?hr?hr.push(e):hr=[e]:mr=e}function df(){if(mr){var e=mr,t=hr;if(hr=mr=null,iu(e),t)for(e=0;e>>=0,e===0?32:31-(av(e)/cv|0)|0}var Ki=64,Qi=4194304;function Kr(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 Bo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Kr(a):(l&=s,l!==0&&(r=Kr(l)))}else s=n&~i,s!==0?r=Kr(s):l!==0&&(r=Kr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function pv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zr),pu=" ",mu=!1;function Tf(e,t){switch(e){case"keyup":return Uv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Wv(e,t){switch(e){case"compositionend":return Rf(t);case"keypress":return t.which!==32?null:(mu=!0,pu);case"textInput":return e=t.data,e===pu&&mu?null:e;default:return null}}function Vv(e,t){if(Xn)return e==="compositionend"||!ac&&Tf(e,t)?(e=Pf(),mo=oc=on=null,Xn=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gu(n)}}function Mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function cc(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 Zv(e){var t=Lf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mf(n.ownerDocument.documentElement,n)){if(r!==null&&cc(n)){if(t=r.start,e=r.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 i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=xu(n,l);var s=xu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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=document.documentMode,Zn=null,Xs=null,ti=null,Zs=!1;function ju(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zs||Zn==null||Zn!==Mo(r)||(r=Zn,"selectionStart"in r&&cc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ti&&yi(ti,r)||(ti=r,r=Wo(Xs,"onSelect"),0nr||(e.current=oa[nr],oa[nr]=null,nr--)}function ue(e,t){nr++,oa[nr]=e.current,e.current=t}var xn={},Fe=wn(xn),Ke=wn(!1),Fn=xn;function jr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qe(e){return e=e.childContextTypes,e!=null}function qo(){me(Ke),me(Fe)}function ku(e,t,n){if(Fe.current!==xn)throw Error(U(168));ue(Fe,t),ue(Ke,n)}function Hf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,Kh(e)||"Unknown",i));return xe({},n,r)}function Ho(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Fn=Fe.current,ue(Fe,e),ue(Ke,Ke.current),!0}function _u(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Hf(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,me(Ke),me(Fe),ue(Fe,e)):me(Ke),ue(Ke,n)}var Ft=null,bl=!1,ps=!1;function Yf(e){Ft===null?Ft=[e]:Ft.push(e)}function dy(e){bl=!0,Yf(e)}function En(){if(!ps&&Ft!==null){ps=!0;var e=0,t=ae;try{var n=Ft;for(ae=1;e>=s,i-=s,zt=1<<32-wt(t)+i|n<E?(R=C,C=null):R=C.sibling;var L=y(h,C,f[E],g);if(L===null){C===null&&(C=R);break}e&&C&&L.alternate===null&&t(h,C),m=l(L,m,E),b===null?w=L:b.sibling=L,b=L,C=R}if(E===f.length)return n(h,C),ve&&Sn(h,E),w;if(C===null){for(;EE?(R=C,C=null):R=C.sibling;var $=y(h,C,L.value,g);if($===null){C===null&&(C=R);break}e&&C&&$.alternate===null&&t(h,C),m=l($,m,E),b===null?w=$:b.sibling=$,b=$,C=R}if(L.done)return n(h,C),ve&&Sn(h,E),w;if(C===null){for(;!L.done;E++,L=f.next())L=p(h,L.value,g),L!==null&&(m=l(L,m,E),b===null?w=L:b.sibling=L,b=L);return ve&&Sn(h,E),w}for(C=r(h,C);!L.done;E++,L=f.next())L=N(C,h,E,L.value,g),L!==null&&(e&&L.alternate!==null&&C.delete(L.key===null?E:L.key),m=l(L,m,E),b===null?w=L:b.sibling=L,b=L);return e&&C.forEach(function(G){return t(h,G)}),ve&&Sn(h,E),w}function x(h,m,f,g){if(typeof f=="object"&&f!==null&&f.type===Jn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case qi:e:{for(var w=f.key,b=m;b!==null;){if(b.key===w){if(w=f.type,w===Jn){if(b.tag===7){n(h,b.sibling),m=i(b,f.props.children),m.return=h,h=m;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jt&&Tu(w)===b.type){n(h,b.sibling),m=i(b,f.props),m.ref=$r(h,b,f),m.return=h,h=m;break e}n(h,b);break}else t(h,b);b=b.sibling}f.type===Jn?(m=Dn(f.props.children,h.mode,g,f.key),m.return=h,h=m):(g=wo(f.type,f.key,f.props,null,h.mode,g),g.ref=$r(h,m,f),g.return=h,h=g)}return s(h);case Gn:e:{for(b=f.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===f.containerInfo&&m.stateNode.implementation===f.implementation){n(h,m.sibling),m=i(m,f.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Ns(f,h.mode,g),m.return=h,h=m}return s(h);case Jt:return b=f._init,x(h,m,b(f._payload),g)}if(Yr(f))return v(h,m,f,g);if(Lr(f))return j(h,m,f,g);no(h,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,f),m.return=h,h=m):(n(h,m),m=js(f,h.mode,g),m.return=h,h=m),s(h)):n(h,m)}return x}var wr=Jf(!0),Xf=Jf(!1),Qo=wn(null),Go=null,or=null,pc=null;function mc(){pc=or=Go=null}function hc(e){var t=Qo.current;me(Qo),e._currentValue=t}function aa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){Go=e,pc=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(pc!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Go===null)throw Error(U(308));or=e,Go.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Tn=null;function vc(e){Tn===null?Tn=[e]:Tn.push(e)}function Zf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Vt(e,r)}function Vt(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 Xt=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ep(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Vt(e,n)}return i=r.interleaved,i===null?(t.next=t,vc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Vt(e,n)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nc(e,n)}}function Ru(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jo(e,t,n,r){var i=e.updateQueue;Xt=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var c=a,u=c.next;c.next=null,s===null?l=u:s.next=u,s=c;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=c))}if(l!==null){var p=i.baseState;s=0,d=u=c=null,a=l;do{var y=a.lane,N=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:N,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,j=a;switch(y=t,N=n,j.tag){case 1:if(v=j.payload,typeof v=="function"){p=v.call(N,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=j.payload,y=typeof v=="function"?v.call(N,p,y):v,y==null)break e;p=xe({},p,y);break e;case 2:Xt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else N={eventTime:N,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=N,c=p):d=d.next=N,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(d===null&&(c=p),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Un|=s,e.lanes=s,e.memoizedState=p}}function Au(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{ae=n,hs.transition=r}}function yp(){return vt().memoizedState}function hy(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gp(e))xp(t,n);else if(n=Zf(e,t,n,r),n!==null){var i=$e();Et(n,e,r,i),jp(n,t,r)}}function vy(e,t,n){var r=hn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gp(e))xp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(i.hasEagerState=!0,i.eagerState=a,Ct(a,s)){var c=t.interleaved;c===null?(i.next=i,vc(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Zf(e,t,i,r),n!==null&&(i=$e(),Et(n,e,r,i),jp(n,t,r))}}function gp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function xp(e,t){ni=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nc(e,n)}}var el={readContext:ht,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},yy={readContext:ht,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,fp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hy.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Iu,useDebugValue:Cc,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Iu(!1),t=e[0];return e=my.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Pt();if(ve){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Pe===null)throw Error(U(349));Bn&30||ip(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Du(lp.bind(null,r,l,e),[e]),r.flags|=2048,Ci(9,op.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ve){var n=Bt,r=zt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ei++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Tt]=t,e[ji]=r,Op(e,t,!1,!1),t.stateNode=e;e:{switch(s=Vs(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;iCr&&(t.flags|=128,r=!0,Wr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Xo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ve)return Me(t),null}else 2*Ee()-l.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,Wr(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ee(),t.sibling=null,n=ye.current,ue(ye,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?et&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function Cy(e,t){switch(dc(t),t.tag){case 1:return Qe(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),me(Ke),me(Fe),jc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xc(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return Er(),null;case 10:return hc(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var io=!1,Le=!1,Sy=typeof WeakSet=="function"?WeakSet:Set,q=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function ya(e,t,n){try{n()}catch(r){je(e,t,r)}}var Hu=!1;function ky(e,t){if(ea=Uo,e=Lf(),cc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,d=0,p=e,y=null;t:for(;;){for(var N;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==l||r!==0&&p.nodeType!==3||(c=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(N=p.firstChild)!==null;)y=p,p=N;for(;;){if(p===e)break t;if(y===n&&++u===i&&(a=s),y===l&&++d===r&&(c=s),(N=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=N}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Uo=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var j=v.memoizedProps,x=v.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?j:gt(t.type,j),x);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(g){je(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return v=Hu,Hu=!1,v}function ri(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&ya(t,n,l)}i=i.next}while(i!==r)}}function kl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ga(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 Ap(e){var t=e.alternate;t!==null&&(e.alternate=null,Ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[ji],delete t[ia],delete t[cy],delete t[uy])),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 Ip(e){return e.tag===5||e.tag===3||e.tag===4}function Yu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ip(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 xa(e,t,n){var r=e.tag;if(r===5||r===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=Vo));else if(r!==4&&(e=e.child,e!==null))for(xa(e,t,n),e=e.sibling;e!==null;)xa(e,t,n),e=e.sibling}function ja(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}var Re=null,xt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Dp(e,t,n),n=n.sibling}function Dp(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:Le||lr(n,t);case 6:var r=Re,i=xt;Re=null,Qt(e,t,n),Re=r,xt=i,Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?fs(e.parentNode,n):e.nodeType===1&&fs(e,n),hi(e)):fs(Re,n.stateNode));break;case 4:r=Re,i=xt,Re=n.stateNode.containerInfo,xt=!0,Qt(e,t,n),Re=r,xt=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&ya(n,t,s),i=i.next}while(i!==r)}Qt(e,t,n);break;case 1:if(!Le&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,Qt(e,t,n),Le=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function Ku(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sy),t.forEach(function(r){var i=My.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~l}if(r=i,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Py(r/1960))-r,10e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,rl=0,le&6)throw Error(U(331));var i=le;for(le|=4,q=e.current;q!==null;){var l=q,s=l.child;if(q.flags&16){var a=l.deletions;if(a!==null){for(var c=0;cEe()-Pc?In(e,0):_c|=n),Ge(e,t)}function Wp(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=$e();e=Vt(e,t),e!==null&&(Di(e,t,n),Ge(e,n))}function Dy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wp(e,n)}function My(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Wp(e,n)}var Vp;Vp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,Ey(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,ve&&t.flags&1048576&&Kf(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xo(e,t),e=t.pendingProps;var i=jr(t,Fe.current);yr(t,n),i=wc(null,t,r,e,i,n);var l=Ec();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(l=!0,Ho(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,yc(t),i.updater=Sl,t.stateNode=i,i._reactInternals=t,ua(t,r,e,n),t=pa(null,t,r,!0,l,n)):(t.tag=0,ve&&l&&uc(t),Be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Fy(r),e=gt(r,e),i){case 0:t=fa(null,t,r,e,n);break e;case 1:t=Wu(null,t,r,e,n);break e;case 11:t=Uu(null,t,r,e,n);break e;case 14:t=$u(null,t,r,gt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),fa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Wu(e,t,r,i,n);case 3:e:{if(kp(t),e===null)throw Error(U(387));r=t.pendingProps,l=t.memoizedState,i=l.element,ep(e,t),Jo(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=br(Error(U(423)),t),t=Vu(e,t,r,n,i);break e}else if(r!==i){i=br(Error(U(424)),t),t=Vu(e,t,r,n,i);break e}else for(tt=fn(t.stateNode.containerInfo.firstChild),it=t,ve=!0,jt=null,n=Xf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nr(),r===i){t=qt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return tp(t),e===null&&sa(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,na(r,i)?s=null:l!==null&&na(r,l)&&(t.flags|=32),Sp(e,t),Be(e,t,s,n),t.child;case 6:return e===null&&sa(t),null;case 13:return _p(e,t,n);case 4:return gc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Uu(e,t,r,i,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,ue(Qo,r._currentValue),r._currentValue=s,l!==null)if(Ct(l.value,s)){if(l.children===i.children&&!Ke.current){t=qt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(l.tag===1){c=Ut(-1,n&-n),c.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),aa(l.return,n,t),a.lanes|=n;break}c=c.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),aa(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}Be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yr(t,n),i=ht(i),r=r(i),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,i=gt(r,t.pendingProps),i=gt(r.type,i),$u(e,t,r,i,n);case 15:return bp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),xo(e,t),t.tag=1,Qe(r)?(e=!0,Ho(t)):e=!1,yr(t,n),Np(t,r,i),ua(t,r,i,n),pa(null,t,r,!0,e,n);case 19:return Pp(e,t,n);case 22:return Cp(e,t,n)}throw Error(U(156,t.tag))};function qp(e,t){return gf(e,t)}function Ly(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new Ly(e,t,n,r)}function Ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fy(e){if(typeof e=="function")return Ac(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xa)return 11;if(e===Za)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=pt(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 wo(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Ac(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jn:return Dn(n.children,i,l,t);case Ja:s=8,i|=8;break;case Is:return e=pt(12,n,t,i|2),e.elementType=Is,e.lanes=l,e;case Ds:return e=pt(13,n,t,i),e.elementType=Ds,e.lanes=l,e;case Ms:return e=pt(19,n,t,i),e.elementType=Ms,e.lanes=l,e;case ef:return Pl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xd:s=10;break e;case Zd:s=9;break e;case Xa:s=11;break e;case Za:s=14;break e;case Jt:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=pt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Dn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=ef,e.lanes=n,e.stateNode={isHidden:!1},e}function js(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Ns(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zy(e,t,n,r,i){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=ts(0),this.expirationTimes=ts(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ic(e,t,n,r,i,l,s,a,c){return e=new zy(e,t,n,a,c),t===1?(t=1,l===!0&&(t|=8)):t=0,l=pt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yc(l),e}function By(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qp)}catch(e){console.error(e)}}Qp(),Kd.exports=ct;var qy=Kd.exports,Gp,nd=qy;Gp=nd.createRoot,nd.hydrateRoot;var Jp={exports:{}},Xp={};/** + * @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 zi=P;function Hy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yy=typeof Object.is=="function"?Object.is:Hy,Ky=zi.useSyncExternalStore,Qy=zi.useRef,Gy=zi.useEffect,Jy=zi.useMemo,Xy=zi.useDebugValue;Xp.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=Qy(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=Jy(function(){function c(N){if(!u){if(u=!0,d=N,N=r(N),i!==void 0&&s.hasValue){var v=s.value;if(i(v,N))return p=v}return p=N}if(v=p,Yy(d,N))return v;var j=r(N);return i!==void 0&&i(v,j)?v:(d=N,p=j)}var u=!1,d,p,y=n===void 0?null:n;return[function(){return c(t())},y===null?void 0:function(){return c(y())}]},[t,n,r,i]);var a=Ky(e,l[0],l[1]);return Gy(function(){s.hasValue=!0,s.value=a},[a]),Xy(a),a};Jp.exports=Xp;var Zy=Jp.exports,nt="default"in Rs?_:Rs,rd=Symbol.for("react-redux-context"),id=typeof globalThis<"u"?globalThis:{};function eg(){if(!nt.createContext)return{};const e=id[rd]??(id[rd]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var jn=eg(),tg=()=>{throw new Error("uSES not initialized!")};function Fc(e=jn){return function(){return nt.useContext(e)}}var Zp=Fc(),em=tg,ng=e=>{em=e},rg=(e,t)=>e===t;function ig(e=jn){const t=e===jn?Zp:Fc(e),n=(r,i={})=>{const{equalityFn:l=rg,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:c,getServerState:u,stabilityCheck:d,identityFunctionCheck:p}=t();nt.useRef(!0);const y=nt.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),N=em(c.addNestedSub,a.getState,u||a.getState,y,l);return nt.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var Ze=ig();function og(e){e()}function lg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){og(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var od={notify(){},get:()=>[]};function sg(e,t){let n,r=od,i=0,l=!1;function s(j){d();const x=r.subscribe(j);let h=!1;return()=>{h||(h=!0,x(),p())}}function a(){r.notify()}function c(){v.onStateChange&&v.onStateChange()}function u(){return l}function d(){i++,n||(n=e.subscribe(c),r=lg())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=od)}function y(){l||(l=!0,d())}function N(){l&&(l=!1,p())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:c,isSubscribed:u,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>r};return v}var ag=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cg=typeof navigator<"u"&&navigator.product==="ReactNative",ug=ag||cg?nt.useLayoutEffect:nt.useEffect;function dg({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const s=nt.useMemo(()=>{const u=sg(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=nt.useMemo(()=>e.getState(),[e]);ug(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const c=t||jn;return nt.createElement(c.Provider,{value:s},n)}var fg=dg;function tm(e=jn){const t=e===jn?Zp:Fc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var pg=tm();function mg(e=jn){const t=e===jn?pg:tm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var St=mg();ng(Zy.useSyncExternalStoreWithSelector);function Te(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 hg=typeof Symbol=="function"&&Symbol.observable||"@@observable",ld=hg,ws=()=>Math.random().toString(36).substring(7).split("").join("."),vg={INIT:`@@redux/INIT${ws()}`,REPLACE:`@@redux/REPLACE${ws()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ws()}`},ll=vg;function zc(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 nm(e,t,n){if(typeof e!="function")throw new Error(Te(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Te(1));return n(nm)(e,t)}let r=e,i=t,l=new Map,s=l,a=0,c=!1;function u(){s===l&&(s=new Map,l.forEach((x,h)=>{s.set(h,x)}))}function d(){if(c)throw new Error(Te(3));return i}function p(x){if(typeof x!="function")throw new Error(Te(4));if(c)throw new Error(Te(5));let h=!0;u();const m=a++;return s.set(m,x),function(){if(h){if(c)throw new Error(Te(6));h=!1,u(),s.delete(m),l=null}}}function y(x){if(!zc(x))throw new Error(Te(7));if(typeof x.type>"u")throw new Error(Te(8));if(typeof x.type!="string")throw new Error(Te(17));if(c)throw new Error(Te(9));try{c=!0,i=r(i,x)}finally{c=!1}return(l=s).forEach(m=>{m()}),x}function N(x){if(typeof x!="function")throw new Error(Te(10));r=x,y({type:ll.REPLACE})}function v(){const x=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Te(11));function m(){const g=h;g.next&&g.next(d())}return m(),{unsubscribe:x(m)}},[ld](){return this}}}return y({type:ll.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[ld]:v}}function yg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ll.INIT})>"u")throw new Error(Te(12));if(typeof n(void 0,{type:ll.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function gg(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(Te(14));u[p]=v,c=c||v!==N}return c=c||r.length!==Object.keys(s).length,c?u:s}}function sl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function xg(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Te(15))};const s={getState:i.getState,dispatch:(c,...u)=>l(c,...u)},a=e.map(c=>c(s));return l=sl(...a)(i.dispatch),{...i,dispatch:l}}}function jg(e){return zc(e)&&"type"in e&&typeof e.type=="string"}var rm=Symbol.for("immer-nothing"),sd=Symbol.for("immer-draftable"),st=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Sr=Object.getPrototypeOf;function Wn(e){return!!e&&!!e[st]}function Ht(e){var t;return e?im(e)||Array.isArray(e)||!!e[sd]||!!((t=e.constructor)!=null&&t[sd])||Dl(e)||Ml(e):!1}var Ng=Object.prototype.constructor.toString();function im(e){if(!e||typeof e!="object")return!1;const t=Sr(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)===Ng}function al(e,t){Il(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Il(e){const t=e[st];return t?t.type_:Array.isArray(e)?1:Dl(e)?2:Ml(e)?3:0}function Ca(e,t){return Il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function om(e,t,n){const r=Il(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function wg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Dl(e){return e instanceof Map}function Ml(e){return e instanceof Set}function _n(e){return e.copy_||e.base_}function Sa(e,t){if(Dl(e))return new Map(e);if(Ml(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=im(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[st];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=Eg),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Bc(r,!0))),e}function Eg(){Nt(2)}function Ll(e){return Object.isFrozen(e)}var bg={};function Vn(e){const t=bg[e];return t||Nt(0,e),t}var ki;function lm(){return ki}function Cg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ad(e,t){t&&(Vn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ka(e){_a(e),e.drafts_.forEach(Sg),e.drafts_=null}function _a(e){e===ki&&(ki=e.parent_)}function cd(e){return ki=Cg(ki,e)}function Sg(e){const t=e[st];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ud(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[st].modified_&&(ka(t),Nt(4)),Ht(e)&&(e=cl(t,e),t.parent_||ul(t,e)),t.patches_&&Vn("Patches").generateReplacementPatches_(n[st].base_,e,t.patches_,t.inversePatches_)):e=cl(t,n,[]),ka(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rm?e:void 0}function cl(e,t,n){if(Ll(t))return t;const r=t[st];if(!r)return al(t,(i,l)=>dd(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ul(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,s=!1;r.type_===3&&(l=new Set(i),i.clear(),s=!0),al(l,(a,c)=>dd(e,r,i,a,c,n,s)),ul(e,i,!1),n&&e.patches_&&Vn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function dd(e,t,n,r,i,l,s){if(Wn(i)){const a=l&&t&&t.type_!==3&&!Ca(t.assigned_,r)?l.concat(r):void 0,c=cl(e,i,a);if(om(n,r,c),Wn(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Ht(i)&&!Ll(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ul(e,i)}}function ul(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Bc(t,n)}function kg(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:lm(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Uc;n&&(i=[r],l=_i);const{revoke:s,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=s,a}var Uc={get(e,t){if(t===st)return e;const n=_n(e);if(!Ca(n,t))return _g(e,n,t);const r=n[t];return e.finalized_||!Ht(r)?r:r===Es(e.base_,t)?(bs(e),e.copy_[t]=Oa(r,e)):r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=sm(_n(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Es(_n(e),t),l=i==null?void 0:i[st];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(wg(n,i)&&(n!==void 0||Ca(e.base_,t)))return!0;bs(e),Pa(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 Es(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,bs(e),Pa(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return Sr(e.base_)},setPrototypeOf(){Nt(12)}},_i={};al(Uc,(e,t)=>{_i[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});_i.deleteProperty=function(e,t){return _i.set.call(this,e,t,void 0)};_i.set=function(e,t,n){return Uc.set.call(this,e[0],t,n,e[0])};function Es(e,t){const n=e[st];return(n?_n(n):e)[t]}function _g(e,t,n){var i;const r=sm(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function sm(e,t){if(!(t in e))return;let n=Sr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Sr(n)}}function Pa(e){e.modified_||(e.modified_=!0,e.parent_&&Pa(e.parent_))}function bs(e){e.copy_||(e.copy_=Sa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const s=this;return function(c=l,...u){return s.produce(c,d=>n.call(this,d,...u))}}typeof n!="function"&&Nt(6),r!==void 0&&typeof r!="function"&&Nt(7);let i;if(Ht(t)){const l=cd(this),s=Oa(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?ka(l):_a(l)}return ad(l,r),ud(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===rm&&(i=void 0),this.autoFreeze_&&Bc(i,!0),r){const l=[],s=[];Vn("Patches").generateReplacementPatches_(t,i,l,s),r(l,s)}return i}else Nt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,c=>t(c,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},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){Ht(e)||Nt(8),Wn(e)&&(e=Og(e));const t=cd(this),n=Oa(e,void 0);return n[st].isManual_=!0,_a(t),n}finishDraft(e,t){const n=e&&e[st];(!n||!n.isManual_)&&Nt(9);const{scope_:r}=n;return ad(r,t),ud(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Vn("Patches").applyPatches_;return Wn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Oa(e,t){const n=Dl(e)?Vn("MapSet").proxyMap_(e,t):Ml(e)?Vn("MapSet").proxySet_(e,t):kg(e,t);return(t?t.scope_:lm()).drafts_.push(n),n}function Og(e){return Wn(e)||Nt(10,e),am(e)}function am(e){if(!Ht(e)||Ll(e))return e;const t=e[st];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Sa(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Sa(e,!0);return al(n,(r,i)=>{om(n,r,am(i))}),t&&(t.finalized_=!1),n}var at=new Pg,cm=at.produce;at.produceWithPatches.bind(at);at.setAutoFreeze.bind(at);at.setUseStrictShallowCopy.bind(at);at.applyPatches.bind(at);at.createDraft.bind(at);at.finishDraft.bind(at);function um(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var Tg=um(),Rg=um,Ag=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sl:sl.apply(null,arguments)},Ig=e=>e&&typeof e.match=="function";function li(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(bt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>jg(r)&&r.type===e,n}var dm=class Gr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Gr(...t[0].concat(this)):new Gr(...t.concat(this))}};function fd(e){return Ht(e)?cm(e,()=>{}):e}function pd(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(bt(10));const r=n.insert(t,e);return e.set(t,r),r}function Dg(e){return typeof e=="boolean"}var Mg=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let s=new dm;return n&&(Dg(n)?s.push(Tg):s.push(Rg(n.extraArgument))),s},Lg="RTK_autoBatch",fm=e=>t=>{setTimeout(t,e)},Fg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fm(10),zg=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,s=!1;const a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?Fg:e.type==="callback"?e.queueNotification:fm(e.timeout),u=()=>{s=!1,l&&(l=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>i&&d(),y=r.subscribe(p);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[Lg]),l=!i,l&&(s||(s=!0,c(u))),r.dispatch(d)}finally{i=!0}}})},Bg=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new dm(e);return r&&i.push(zg(typeof r=="object"?r:void 0)),i};function Ug(e){const t=Mg(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(zc(n))a=gg(n);else throw new Error(bt(1));let c;typeof r=="function"?c=r(t):c=t();let u=sl;i&&(u=Ag({trace:!1,...typeof i=="object"&&i}));const d=xg(...c),p=Bg(d);let y=typeof s=="function"?s(p):p();const N=u(...y);return nm(a,l,N)}function pm(e){const t={},n=[];let r;const i={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(bt(28));if(a in t)throw new Error(bt(29));return t[a]=s,i},addMatcher(l,s){return n.push({matcher:l,reducer:s}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function $g(e){return typeof e=="function"}function Wg(e,t){let[n,r,i]=pm(t),l;if($g(e))l=()=>fd(e());else{const a=fd(e);l=()=>a}function s(a=l(),c){let u=[n[c.type],...r.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,p)=>{if(p)if(Wn(d)){const N=p(d,c);return N===void 0?d:N}else{if(Ht(d))return cm(d,y=>p(y,c));{const y=p(d,c);if(y===void 0){if(d===null)return d;throw new Error(bt(9))}return y}}return d},a)}return s.getInitialState=l,s}var Vg=(e,t)=>Ig(e)?e.match(t):e(t);function qg(...e){return t=>e.some(n=>Vg(n,t))}var Hg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yg=(e=21)=>{let t="",n=e;for(;n--;)t+=Hg[Math.random()*64|0];return t},Kg=["name","message","stack","code"],Cs=class{constructor(e,t){Ql(this,"_type");this.payload=e,this.meta=t}},md=class{constructor(e,t){Ql(this,"_type");this.payload=e,this.meta=t}},Qg=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Kg)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dt=(()=>{function e(t,n,r){const i=li(t+"/fulfilled",(c,u,d,p)=>({payload:c,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),l=li(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),s=li(t+"/rejected",(c,u,d,p,y)=>({payload:p,error:(r&&r.serializeError||Qg)(c||"Rejected"),meta:{...y||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function a(c){return(u,d,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(c):Yg(),N=new AbortController;let v,j;function x(m){j=m,N.abort()}const h=async function(){var g,w;let m;try{let b=(g=r==null?void 0:r.condition)==null?void 0:g.call(r,c,{getState:d,extra:p});if(Jg(b)&&(b=await b),b===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const C=new Promise((E,R)=>{v=()=>{R({name:"AbortError",message:j||"Aborted"})},N.signal.addEventListener("abort",v)});u(l(y,c,(w=r==null?void 0:r.getPendingMeta)==null?void 0:w.call(r,{requestId:y,arg:c},{getState:d,extra:p}))),m=await Promise.race([C,Promise.resolve(n(c,{dispatch:u,getState:d,extra:p,requestId:y,signal:N.signal,abort:x,rejectWithValue:(E,R)=>new Cs(E,R),fulfillWithValue:(E,R)=>new md(E,R)})).then(E=>{if(E instanceof Cs)throw E;return E instanceof md?i(E.payload,y,c,E.meta):i(E,y,c)})])}catch(b){m=b instanceof Cs?s(null,y,c,b.payload,b.meta):s(b,y,c)}finally{v&&N.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&s.match(m)&&m.meta.condition||u(m),m}();return Object.assign(h,{abort:x,requestId:y,arg:c,unwrap(){return h.then(Gg)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:i,settled:qg(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Gg(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Jg(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Xg=Symbol.for("rtk-slice-createasyncthunk");function Zg(e,t){return`${e}/${t}`}function ex({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Xg];return function(i){const{name:l,reducerPath:s=l}=i;if(!l)throw new Error(bt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(nx()):i.reducers)||{},c=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,g){const w=typeof f=="string"?f:f.type;if(!w)throw new Error(bt(12));if(w in u.sliceCaseReducersByType)throw new Error(bt(13));return u.sliceCaseReducersByType[w]=g,d},addMatcher(f,g){return u.sliceMatchers.push({matcher:f,reducer:g}),d},exposeAction(f,g){return u.actionCreators[f]=g,d},exposeCaseReducer(f,g){return u.sliceCaseReducersByName[f]=g,d}};c.forEach(f=>{const g=a[f],w={reducerName:f,type:Zg(l,f),createNotation:typeof i.reducers=="function"};ix(g)?lx(w,g,d,t):rx(w,g,d)});function p(){const[f={},g=[],w=void 0]=typeof i.extraReducers=="function"?pm(i.extraReducers):[i.extraReducers],b={...f,...u.sliceCaseReducersByType};return Wg(i.initialState,C=>{for(let E in b)C.addCase(E,b[E]);for(let E of u.sliceMatchers)C.addMatcher(E.matcher,E.reducer);for(let E of g)C.addMatcher(E.matcher,E.reducer);w&&C.addDefaultCase(w)})}const y=f=>f,N=new Map;let v;function j(f,g){return v||(v=p()),v(f,g)}function x(){return v||(v=p()),v.getInitialState()}function h(f,g=!1){function w(C){let E=C[f];return typeof E>"u"&&g&&(E=x()),E}function b(C=y){const E=pd(N,g,{insert:()=>new WeakMap});return pd(E,C,{insert:()=>{const R={};for(const[L,$]of Object.entries(i.selectors??{}))R[L]=tx($,C,x,g);return R}})}return{reducerPath:f,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const m={name:l,reducer:j,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:x,...h(s),injectInto(f,{reducerPath:g,...w}={}){const b=g??s;return f.inject({reducerPath:b,reducer:j},w),{...m,...h(b,!0)}}};return m}}function tx(e,t,n,r){function i(l,...s){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var $c=ex();function nx(){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 rx({type:e,reducerName:t,createNotation:n},r,i){let l,s;if("reducer"in r){if(n&&!ox(r))throw new Error(bt(17));l=r.reducer,s=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?li(e,s):li(e))}function ix(e){return e._reducerDefinitionType==="asyncThunk"}function ox(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(bt(18));const{payloadCreator:l,fulfilled:s,pending:a,rejected:c,settled:u,options:d}=n,p=i(e,l,d);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),c&&r.addCase(p.rejected,c),u&&r.addMatcher(p.settled,u),r.exposeCaseReducer(t,{fulfilled:s||so,pending:a||so,rejected:c||so,settled:u||so})}function so(){}function bt(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 mm(e,t){return function(){return e.apply(t,arguments)}}const{toString:sx}=Object.prototype,{getPrototypeOf:Wc}=Object,Fl=(e=>t=>{const n=sx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),t=>Fl(t)===e),zl=e=>t=>typeof t===e,{isArray:Tr}=Array,Pi=zl("undefined");function ax(e){return e!==null&&!Pi(e)&&e.constructor!==null&&!Pi(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hm=kt("ArrayBuffer");function cx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hm(e.buffer),t}const ux=zl("string"),ot=zl("function"),vm=zl("number"),Bl=e=>e!==null&&typeof e=="object",dx=e=>e===!0||e===!1,Eo=e=>{if(Fl(e)!=="object")return!1;const t=Wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fx=kt("Date"),px=kt("File"),mx=kt("Blob"),hx=kt("FileList"),vx=e=>Bl(e)&&ot(e.pipe),yx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=Fl(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},gx=kt("URLSearchParams"),[xx,jx,Nx,wx]=["ReadableStream","Request","Response","Headers"].map(kt),Ex=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Tr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gm=e=>!Pi(e)&&e!==An;function Ta(){const{caseless:e}=gm(this)&&this||{},t={},n=(r,i)=>{const l=e&&ym(t,i)||i;Eo(t[l])&&Eo(r)?t[l]=Ta(t[l],r):Eo(r)?t[l]=Ta({},r):Tr(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(Bi(t,(i,l)=>{n&&ot(i)?e[l]=mm(i,n):e[l]=i},{allOwnKeys:r}),e),Cx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Sx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kx=(e,t,n,r)=>{let i,l,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)s=i[l],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Wc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_x=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Px=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!vm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ox=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wc(Uint8Array)),Tx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},Rx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ax=kt("HTMLFormElement"),Ix=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),hd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Dx=kt("RegExp"),xm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bi(n,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(r[l]=s||i)}),Object.defineProperties(e,r)},Mx=e=>{xm(e,(t,n)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Lx=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Tr(e)?r(e):r(String(e).split(t)),n},Fx=()=>{},zx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ss="abcdefghijklmnopqrstuvwxyz",vd="0123456789",jm={DIGIT:vd,ALPHA:Ss,ALPHA_DIGIT:Ss+Ss.toUpperCase()+vd},Bx=(e=16,t=jm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ux(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $x=e=>{const t=new Array(10),n=(r,i)=>{if(Bl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=Tr(r)?[]:{};return Bi(r,(s,a)=>{const c=n(s,i+1);!Pi(c)&&(l[a]=c)}),t[i]=void 0,l}}return r};return n(e,0)},Wx=kt("AsyncFunction"),Vx=e=>e&&(Bl(e)||ot(e))&&ot(e.then)&&ot(e.catch),Nm=((e,t)=>e?setImmediate:t?((n,r)=>(An.addEventListener("message",({source:i,data:l})=>{i===An&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),An.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ot(An.postMessage)),qx=typeof queueMicrotask<"u"?queueMicrotask.bind(An):typeof process<"u"&&process.nextTick||Nm,T={isArray:Tr,isArrayBuffer:hm,isBuffer:ax,isFormData:yx,isArrayBufferView:cx,isString:ux,isNumber:vm,isBoolean:dx,isObject:Bl,isPlainObject:Eo,isReadableStream:xx,isRequest:jx,isResponse:Nx,isHeaders:wx,isUndefined:Pi,isDate:fx,isFile:px,isBlob:mx,isRegExp:Dx,isFunction:ot,isStream:vx,isURLSearchParams:gx,isTypedArray:Ox,isFileList:hx,forEach:Bi,merge:Ta,extend:bx,trim:Ex,stripBOM:Cx,inherits:Sx,toFlatObject:kx,kindOf:Fl,kindOfTest:kt,endsWith:_x,toArray:Px,forEachEntry:Tx,matchAll:Rx,isHTMLForm:Ax,hasOwnProperty:hd,hasOwnProp:hd,reduceDescriptors:xm,freezeMethods:Mx,toObjectSet:Lx,toCamelCase:Ix,noop:Fx,toFiniteNumber:zx,findKey:ym,global:An,isContextDefined:gm,ALPHABET:jm,generateString:Bx,isSpecCompliantForm:Ux,toJSONObject:$x,isAsyncFn:Wx,isThenable:Vx,setImmediate:Nm,asap:qx};function ne(e,t,n,r,i){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),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}T.inherits(ne,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:T.toJSONObject(this.config),code:this.code,status:this.status}}});const wm=ne.prototype,Em={};["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=>{Em[e]={value:e}});Object.defineProperties(ne,Em);Object.defineProperty(wm,"isAxiosError",{value:!0});ne.from=(e,t,n,r,i,l)=>{const s=Object.create(wm);return T.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ne.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const Hx=null;function Ra(e){return T.isPlainObject(e)||T.isArray(e)}function bm(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function yd(e,t,n){return e?e.concat(t).map(function(i,l){return i=bm(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function Yx(e){return T.isArray(e)&&!e.some(Ra)}const Kx=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Ul(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,x){return!T.isUndefined(x[j])});const r=n.metaTokens,i=n.visitor||d,l=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(T.isDate(v))return v.toISOString();if(!c&&T.isBlob(v))throw new ne("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(v)||T.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,j,x){let h=v;if(v&&!x&&typeof v=="object"){if(T.endsWith(j,"{}"))j=r?j:j.slice(0,-2),v=JSON.stringify(v);else if(T.isArray(v)&&Yx(v)||(T.isFileList(v)||T.endsWith(j,"[]"))&&(h=T.toArray(v)))return j=bm(j),h.forEach(function(f,g){!(T.isUndefined(f)||f===null)&&t.append(s===!0?yd([j],g,l):s===null?j:j+"[]",u(f))}),!1}return Ra(v)?!0:(t.append(yd(x,j,l),u(v)),!1)}const p=[],y=Object.assign(Kx,{defaultVisitor:d,convertValue:u,isVisitable:Ra});function N(v,j){if(!T.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+j.join("."));p.push(v),T.forEach(v,function(h,m){(!(T.isUndefined(h)||h===null)&&i.call(t,h,T.isString(m)?m.trim():m,j,y))===!0&&N(h,j?j.concat(m):[m])}),p.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return N(e),t}function gd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vc(e,t){this._pairs=[],e&&Ul(e,this,t)}const Cm=Vc.prototype;Cm.append=function(t,n){this._pairs.push([t,n])};Cm.toString=function(t){const n=t?function(r){return t.call(this,r,gd)}:gd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Qx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sm(e,t,n){if(!t)return e;const r=n&&n.encode||Qx,i=n&&n.serialize;let l;if(i?l=i(t,n):l=T.isURLSearchParams(t)?t.toString():new Vc(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class xd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){T.forEach(this.handlers,function(r){r!==null&&t(r)})}}const km={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gx=typeof URLSearchParams<"u"?URLSearchParams:Vc,Jx=typeof FormData<"u"?FormData:null,Xx=typeof Blob<"u"?Blob:null,Zx={isBrowser:!0,classes:{URLSearchParams:Gx,FormData:Jx,Blob:Xx},protocols:["http","https","file","blob","url","data"]},qc=typeof window<"u"&&typeof document<"u",Aa=typeof navigator=="object"&&navigator||void 0,e0=qc&&(!Aa||["ReactNative","NativeScript","NS"].indexOf(Aa.product)<0),t0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n0=qc&&window.location.href||"http://localhost",r0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qc,hasStandardBrowserEnv:e0,hasStandardBrowserWebWorkerEnv:t0,navigator:Aa,origin:n0},Symbol.toStringTag,{value:"Module"})),Je={...r0,...Zx};function i0(e,t){return Ul(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return Je.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function o0(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l0(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return s=!s&&T.isArray(i)?i.length:s,c?(T.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!T.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],l)&&T.isArray(i[s])&&(i[s]=l0(i[s])),!a)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,i)=>{t(o0(r),i,n,0)}),n}return null}function s0(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ui={transitional:km,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=T.isObject(t);if(l&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return i?JSON.stringify(_m(t)):t;if(T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)||T.isReadableStream(t))return t;if(T.isArrayBufferView(t))return t.buffer;if(T.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return i0(t,this.formSerializer).toString();if((a=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ul(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),s0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ui.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?ne.from(a,ne.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],e=>{Ui.headers[e]={}});const a0=T.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"]),c0=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&a0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},jd=Symbol("internals");function qr(e){return e&&String(e).trim().toLowerCase()}function bo(e){return e===!1||e==null?e:T.isArray(e)?e.map(bo):String(e)}function u0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const d0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ks(e,t,n,r,i){if(T.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function f0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function p0(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,s){return this[r].call(this,t,i,l,s)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(a,c,u){const d=qr(c);if(!d)throw new Error("header name must be a non-empty string");const p=T.findKey(i,d);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||c]=bo(a))}const s=(a,c)=>T.forEach(a,(u,d)=>l(u,d,c));if(T.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(T.isString(t)&&(t=t.trim())&&!d0(t))s(c0(t),n);else if(T.isHeaders(t))for(const[a,c]of t.entries())l(c,a,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=qr(t),t){const r=T.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return u0(i);if(T.isFunction(n))return n.call(this,i,r);if(T.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qr(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ks(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(s){if(s=qr(s),s){const a=T.findKey(r,s);a&&(!n||ks(r,r[a],a,n))&&(delete r[a],i=!0)}}return T.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||ks(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return T.forEach(this,(i,l)=>{const s=T.findKey(r,l);if(s){n[s]=bo(i),delete n[l];return}const a=t?f0(l):String(l).trim();a!==l&&delete n[l],n[a]=bo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&T.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[jd]=this[jd]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=qr(s);r[a]||(p0(i,s),r[a]=!0)}return T.isArray(t)?t.forEach(l):l(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(Xe);function _s(e,t){const n=this||Ui,r=t||n,i=Xe.from(r.headers);let l=r.data;return T.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function Pm(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(Rr,ne,{__CANCEL__:!0});function Om(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function m0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function h0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[l];s||(s=u),n[i]=c,r[i]=u;let p=l,y=0;for(;p!==i;)y+=n[p++],p=p%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),u-s{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=r?s(u,d):(i=u,l||(l=setTimeout(()=>{l=null,s(i)},r-p)))},()=>i&&s(i)]}const dl=(e,t,n=3)=>{let r=0;const i=h0(50,250);return v0(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,c=s-r,u=i(c),d=s<=a;r=s;const p={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-s)/u:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Nd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wd=e=>(...t)=>T.asap(()=>e(...t)),y0=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),n=document.createElement("a");let r;function i(l){let s=l;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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 r=i(window.location.href),function(s){const a=T.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),g0=Je.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];T.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),T.isString(r)&&s.push("path="+r),T.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.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 x0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function j0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Tm(e,t){return e&&!x0(t)?j0(e,t):t}const Ed=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(u,d,p){return T.isPlainObject(u)&&T.isPlainObject(d)?T.merge.call({caseless:p},u,d):T.isPlainObject(d)?T.merge({},d):T.isArray(d)?d.slice():d}function i(u,d,p){if(T.isUndefined(d)){if(!T.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function l(u,d){if(!T.isUndefined(d))return r(void 0,d)}function s(u,d){if(T.isUndefined(d)){if(!T.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const c={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,d)=>i(Ed(u),Ed(d),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||i,y=p(e[d],t[d],d);T.isUndefined(y)&&p!==a||(n[d]=y)}),n}const Rm=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=Xe.from(s),t.url=Sm(Tm(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(T.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&y0(t.url))){const u=i&&l&&g0.read(l);u&&s.set(i,u)}return t},N0=typeof XMLHttpRequest<"u",w0=N0&&function(e){return new Promise(function(n,r){const i=Rm(e);let l=i.data;const s=Xe.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=i,d,p,y,N,v;function j(){N&&N(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function h(){if(!x)return;const f=Xe.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:f,config:e,request:x};Om(function(C){n(C),j()},function(C){r(C),j()},w),x=null}"onloadend"in x?x.onloadend=h:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(h)},x.onabort=function(){x&&(r(new ne("Request aborted",ne.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||km;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new ne(g,w.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,x)),x=null},l===void 0&&s.setContentType(null),"setRequestHeader"in x&&T.forEach(s.toJSON(),function(g,w){x.setRequestHeader(w,g)}),T.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),a&&a!=="json"&&(x.responseType=i.responseType),u&&([y,v]=dl(u,!0),x.addEventListener("progress",y)),c&&x.upload&&([p,N]=dl(c),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(d=f=>{x&&(r(!f||f.type?new Rr(null,e,x):f),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const m=m0(i.url);if(m&&Je.protocols.indexOf(m)===-1){r(new ne("Unsupported protocol "+m+":",ne.ERR_BAD_REQUEST,e));return}x.send(l||null)})},E0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(u){if(!i){i=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof ne?d:new Rr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(l):u.removeEventListener("abort",l)}),e=null)};e.forEach(u=>u.addEventListener("abort",l));const{signal:c}=r;return c.unsubscribe=()=>T.asap(a),c}},b0=function*(e,t){let n=e.byteLength;if(!t||n{const i=C0(e,t);let l=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){a(),c.close();return}let p=d.byteLength;if(n){let y=l+=p;n(y)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},$l=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Am=$l&&typeof ReadableStream=="function",k0=$l&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Im=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_0=Am&&Im(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Cd=64*1024,Ia=Am&&Im(()=>T.isReadableStream(new Response("").body)),fl={stream:Ia&&(e=>e.body)};$l&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fl[t]&&(fl[t]=T.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,r)})})})(new Response);const P0=async e=>{if(e==null)return 0;if(T.isBlob(e))return e.size;if(T.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(T.isArrayBufferView(e)||T.isArrayBuffer(e))return e.byteLength;if(T.isURLSearchParams(e)&&(e=e+""),T.isString(e))return(await k0(e)).byteLength},O0=async(e,t)=>{const n=T.toFiniteNumber(e.getContentLength());return n??P0(t)},T0=$l&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:y}=Rm(e);u=u?(u+"").toLowerCase():"text";let N=E0([i,l&&l.toAbortSignal()],s),v;const j=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let x;try{if(c&&_0&&n!=="get"&&n!=="head"&&(x=await O0(d,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(T.isFormData(r)&&(b=w.headers.get("content-type"))&&d.setContentType(b),w.body){const[C,E]=Nd(x,dl(wd(c)));r=bd(w.body,Cd,C,E)}}T.isString(p)||(p=p?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:h?p:void 0});let m=await fetch(v);const f=Ia&&(u==="stream"||u==="response");if(Ia&&(a||f&&j)){const w={};["status","statusText","headers"].forEach(R=>{w[R]=m[R]});const b=T.toFiniteNumber(m.headers.get("content-length")),[C,E]=a&&Nd(b,dl(wd(a),!0))||[];m=new Response(bd(m.body,Cd,C,()=>{E&&E(),j&&j()}),w)}u=u||"text";let g=await fl[T.findKey(fl,u)||"text"](m,e);return!f&&j&&j(),await new Promise((w,b)=>{Om(w,b,{data:g,headers:Xe.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:v})})}catch(h){throw j&&j(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,e,v),{cause:h.cause||h}):ne.from(h,h&&h.code,e,v)}}),Da={http:Hx,xhr:w0,fetch:T0};T.forEach(Da,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sd=e=>`- ${e}`,R0=e=>T.isFunction(e)||e===null||e===!1,Dm={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : +`+l.map(Sd).join(` +`):" "+Sd(l[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Da};function Ps(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function kd(e){return Ps(e),e.headers=Xe.from(e.headers),e.data=_s.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dm.getAdapter(e.adapter||Ui.adapter)(e).then(function(r){return Ps(e),r.data=_s.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Pm(r)||(Ps(e),r&&r.response&&(r.response.data=_s.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const Mm="1.7.7",Hc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _d={};Hc.transitional=function(t,n,r){function i(l,s){return"[Axios v"+Mm+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new ne(i(s," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!_d[s]&&(_d[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function A0(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],s=t[l];if(s){const a=e[l],c=a===void 0||s(a,l,e);if(c!==!0)throw new ne("option "+l+" must be "+c,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+l,ne.ERR_BAD_OPTION)}}const Ma={assertOptions:A0,validators:Hc},Gt=Ma.validators;class Mn{constructor(t){this.defaults=t,this.interceptors={request:new xd,response:new xd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Ma.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:Ma.assertOptions(i,{encode:Gt.function,serialize:Gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&T.merge(l.common,l[n.method]);l&&T.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Xe.concat(s,l);const a=[];let c=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(n)===!1||(c=c&&j.synchronous,a.unshift(j.fulfilled,j.rejected))});const u=[];this.interceptors.response.forEach(function(j){u.push(j.fulfilled,j.rejected)});let d,p=0,y;if(!c){const v=[kd.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),y=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new Rr(l,s,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Yc(function(i){t=i}),cancel:t}}}function I0(e){return function(n){return e.apply(null,n)}}function D0(e){return T.isObject(e)&&e.isAxiosError===!0}const La={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(La).forEach(([e,t])=>{La[t]=e});function Lm(e){const t=new Mn(e),n=mm(Mn.prototype.request,t);return T.extend(n,Mn.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Lm(qn(e,i))},n}const de=Lm(Ui);de.Axios=Mn;de.CanceledError=Rr;de.CancelToken=Yc;de.isCancel=Pm;de.VERSION=Mm;de.toFormData=Ul;de.AxiosError=ne;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=I0;de.isAxiosError=D0;de.mergeConfig=qn;de.AxiosHeaders=Xe;de.formToJSON=e=>_m(T.isHTMLForm(e)?new FormData(e):e);de.getAdapter=Dm.getAdapter;de.HttpStatusCode=La;de.default=de;const M0="http://67.225.129.127:3002",Kt=de.create({baseURL:M0});Kt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const L0=e=>Kt.post("/users/signup",e),F0=e=>Kt.post("/users/signin",e),z0=(e,t,n)=>Kt.get(`/users/${e}/verify/${t}`,n),B0=e=>Kt.post("/properties",e),U0=(e,t,n)=>Kt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),$0=e=>Kt.get(`/properties/${e}`,e),W0=(e,t)=>Kt.put(`/properties/${e}`,t),V0=e=>Kt.get(`/users/${e}`),Co=Dt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await F0(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),So=Dt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await L0(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),ko=Dt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await de.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Fm=$c({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(Co.pending,t=>{t.loading=!0}).addCase(Co.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Co.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(So.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(ko.pending,t=>{t.isLoading=!0}).addCase(ko.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(ko.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:mN,setLogout:q0,setUserDetails:hN}=Fm.actions,H0=Fm.reducer,_o=Dt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await V0(e)).data}catch(n){return t(n.response.data)}}),Po=Dt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await z0(e,t,n)).data.message}catch(i){return r(i.response.data)}}),Y0=$c({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(_o.pending,t=>{t.loading=!0,t.error=null}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Po.pending,t=>{t.loading=!0,t.error=null}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),K0=Y0.reducer,Oo=Dt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await B0(e)).data}catch(n){return t(n.response.data)}}),To=Dt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await U0(e,t,n)).data}catch(i){return r(i.response.data)}}),si=Dt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await $0(e)).data}catch(n){return t(n.response.data)}}),Ro=Dt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await W0(e,t)).data}catch(r){return n(r.response.data)}}),ai=Dt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await de.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),Q0=$c({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Oo.pending,t=>{t.status="loading"}).addCase(Oo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Oo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(To.pending,t=>{t.loading=!0}).addCase(To.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(To.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(si.pending,t=>{t.status="loading"}).addCase(si.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(si.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ro.pending,t=>{t.status="loading"}).addCase(Ro.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ro.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ai.pending,t=>{t.loading=!0}).addCase(ai.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(ai.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),G0=Q0.reducer,J0=Ug({reducer:{auth:H0,user:K0,property:G0}});/** + * @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 Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Z0(){return Math.random().toString(36).substr(2,8)}function Od(e,t){return{usr:e.state,key:e.key,idx:t}}function Fa(e,t,n,r){return n===void 0&&(n=null),Oi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||Z0()})}function pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function e1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,a=sn.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(Oi({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=sn.Pop;let x=d(),h=x==null?null:x-u;u=x,c&&c({action:a,location:j.location,delta:h})}function y(x,h){a=sn.Push;let m=Fa(j.location,x,h);u=d()+1;let f=Od(m,u),g=j.createHref(m);try{s.pushState(f,"",g)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(g)}l&&c&&c({action:a,location:j.location,delta:1})}function N(x,h){a=sn.Replace;let m=Fa(j.location,x,h);u=d();let f=Od(m,u),g=j.createHref(m);s.replaceState(f,"",g),l&&c&&c({action:a,location:j.location,delta:0})}function v(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof x=="string"?x:pl(x);return m=m.replace(/ $/,"%20"),Ne(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let j={get action(){return a},get location(){return e(i,s)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Pd,p),c=x,()=>{i.removeEventListener(Pd,p),c=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let h=v(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:y,replace:N,go(x){return s.go(x)}};return j}var Td;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Td||(Td={}));function t1(e,t,n){return n===void 0&&(n="/"),n1(e,t,n,!1)}function n1(e,t,n,r){let i=typeof t=="string"?Ar(t):t,l=kr(i.pathname||"/",n);if(l==null)return null;let s=Bm(e);r1(s);let a=null;for(let c=0;a==null&&c{let c={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};c.relativePath.startsWith("/")&&(Ne(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=yn([r,c.relativePath]),d=n.concat(c);l.children&&l.children.length>0&&(Ne(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Bm(l.children,t,d,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:u1(u,l.index),routesMeta:d})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let c of Um(l.path))i(l,s,c)}),t}function Um(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=Um(r.join("/")),a=[];return a.push(...s.map(c=>c===""?l:[l,c].join("/"))),i&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function r1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:d1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const i1=/^:[\w-]+$/,o1=3,l1=2,s1=1,a1=10,c1=-2,Rd=e=>e==="*";function u1(e,t){let n=e.split("/"),r=n.length;return n.some(Rd)&&(r+=c1),t&&(r+=l1),n.filter(i=>!Rd(i)).reduce((i,l)=>i+(i1.test(l)?o1:l===""?s1:a1),r)}function d1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function f1(e,t,n){let{routesMeta:r}=e,i={},l="/",s=[];for(let a=0;a{let{paramName:y,isOptional:N}=d;if(y==="*"){let j=a[p]||"";s=l.slice(0,l.length-j.length).replace(/(.)\/+$/,"$1")}const v=a[p];return N&&!v?u[y]=void 0:u[y]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:s,pattern:e}}function p1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zm(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function m1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zm(!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 kr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function h1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:v1(n,t):t,search:x1(r),hash:j1(i)}}function v1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Os(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function y1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $m(e,t){let n=y1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Wm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ar(e):(i=Oi({},e),Ne(!i.pathname||!i.pathname.includes("?"),Os("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),Os("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),Os("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,a;if(s==null)a=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}a=p>=0?t[p]:"/"}let c=h1(i,a),u=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const yn=e=>e.join("/").replace(/\/\/+/g,"/"),g1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),x1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,j1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function N1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vm=["post","put","patch","delete"];new Set(Vm);const w1=["get",...Vm];new Set(w1);/** + * 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 Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let p=Wm(u,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:yn([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,s,l,e])}function Dr(){let{matches:e}=P.useContext(Cn),t=e[e.length-1];return t?t.params:{}}function ql(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(bn),{matches:i}=P.useContext(Cn),{pathname:l}=Wi(),s=JSON.stringify($m(i,r.v7_relativeSplatPath));return P.useMemo(()=>Wm(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function C1(e,t){return S1(e,t)}function S1(e,t,n,r){$i()||Ne(!1);let{navigator:i}=P.useContext(bn),{matches:l}=P.useContext(Cn),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=Wi(),d;if(t){var p;let x=typeof t=="string"?Ar(t):t;c==="/"||(p=x.pathname)!=null&&p.startsWith(c)||Ne(!1),d=x}else d=u;let y=d.pathname||"/",N=y;if(c!=="/"){let x=c.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=t1(e,{pathname:N}),j=T1(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:yn([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:yn([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&j?P.createElement(Vl.Provider,{value:{location:Ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:sn.Pop}},j):j}function k1(){let e=D1(),t=N1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const _1=P.createElement(k1,null);class P1 extends P.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?P.createElement(Cn.Provider,{value:this.props.routeContext},P.createElement(Hm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O1(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Wl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Cn.Provider,{value:t},r)}function T1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Ne(!1),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,y)=>{let N,v=!1,j=null,x=null;n&&(N=a&&p.route.id?a[p.route.id]:void 0,j=p.route.errorElement||_1,c&&(u<0&&y===0?(v=!0,x=null):u===y&&(v=!0,x=p.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,y+1)),m=()=>{let f;return N?f=j:v?f=x:p.route.Component?f=P.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,P.createElement(O1,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?P.createElement(P1,{location:n.location,revalidation:n.revalidation,component:j,error:N,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var Km=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Km||{}),hl=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}(hl||{});function R1(e){let t=P.useContext(Wl);return t||Ne(!1),t}function A1(e){let t=P.useContext(qm);return t||Ne(!1),t}function I1(e){let t=P.useContext(Cn);return t||Ne(!1),t}function Qm(e){let t=I1(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function D1(){var e;let t=P.useContext(Hm),n=A1(hl.UseRouteError),r=Qm(hl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function M1(){let{router:e}=R1(Km.UseNavigateStable),t=Qm(hl.UseNavigateStable),n=P.useRef(!1);return Ym(()=>{n.current=!0}),P.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ti({fromRouteId:t},l)))},[e,t])}function ke(e){Ne(!1)}function L1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=sn.Pop,navigator:l,static:s=!1,future:a}=e;$i()&&Ne(!1);let c=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:c,navigator:l,static:s,future:Ti({v7_relativeSplatPath:!1},a)}),[c,a,l,s]);typeof r=="string"&&(r=Ar(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,j=P.useMemo(()=>{let x=kr(d,c);return x==null?null:{location:{pathname:x,search:p,hash:y,state:N,key:v},navigationType:i}},[c,d,p,y,N,v,i]);return j==null?null:P.createElement(bn.Provider,{value:u},P.createElement(Vl.Provider,{children:n,value:j}))}function F1(e){let{children:t,location:n}=e;return C1(za(t),n)}new Promise(()=>{});function za(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let l=[...t,i];if(r.type===P.Fragment){n.push.apply(n,za(r.props.children,l));return}r.type!==ke&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=za(r.props.children,l)),n.push(s)}),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 vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function z1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function B1(e,t){return e.button===0&&(!t||t==="_self")&&!z1(e)}const U1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],$1=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],W1="6";try{window.__reactRouterVersion=W1}catch{}const V1=P.createContext({isTransitioning:!1}),q1="startTransition",Ad=Rs[q1];function H1(e){let{basename:t,children:n,future:r,window:i}=e,l=P.useRef();l.current==null&&(l.current=X0({window:i,v5Compat:!0}));let s=l.current,[a,c]=P.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=P.useCallback(p=>{u&&Ad?Ad(()=>c(p)):c(p)},[c,u]);return P.useLayoutEffect(()=>s.listen(d),[s,d]),P.createElement(L1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const Y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",K1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q1=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:c,to:u,preventScrollReset:d,unstable_viewTransition:p}=t,y=Gm(t,U1),{basename:N}=P.useContext(bn),v,j=!1;if(typeof u=="string"&&K1.test(u)&&(v=u,Y1))try{let f=new URL(window.location.href),g=u.startsWith("//")?new URL(f.protocol+u):new URL(u),w=kr(g.pathname,N);g.origin===f.origin&&w!=null?u=w+g.search+g.hash:j=!0}catch{}let x=E1(u,{relative:i}),h=J1(u,{replace:s,state:a,target:c,preventScrollReset:d,relative:i,unstable_viewTransition:p});function m(f){r&&r(f),f.defaultPrevented||h(f)}return P.createElement("a",vl({},y,{href:v||x,onClick:j||l?r:m,ref:n,target:c}))}),he=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:c,unstable_viewTransition:u,children:d}=t,p=Gm(t,$1),y=ql(c,{relative:p.relative}),N=Wi(),v=P.useContext(qm),{navigator:j,basename:x}=P.useContext(bn),h=v!=null&&X1(y)&&u===!0,m=j.encodeLocation?j.encodeLocation(y).pathname:y.pathname,f=N.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(f=f.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase()),g&&x&&(g=kr(g,x)||g);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let b=f===m||!s&&f.startsWith(m)&&f.charAt(w)==="/",C=g!=null&&(g===m||!s&&g.startsWith(m)&&g.charAt(m.length)==="/"),E={isActive:b,isPending:C,isTransitioning:h},R=b?r:void 0,L;typeof l=="function"?L=l(E):L=[l,b?"active":null,C?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(E):a;return P.createElement(Q1,vl({},p,{"aria-current":R,className:L,ref:n,style:$,to:c,unstable_viewTransition:u}),typeof d=="function"?d(E):d)});var Ba;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ba||(Ba={}));var Id;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Id||(Id={}));function G1(e){let t=P.useContext(Wl);return t||Ne(!1),t}function J1(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,c=Ir(),u=Wi(),d=ql(e,{relative:s});return P.useCallback(p=>{if(B1(p,n)){p.preventDefault();let y=r!==void 0?r:pl(u)===pl(d);c(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[u,c,d,r,i,n,e,l,s,a])}function X1(e,t){t===void 0&&(t={});let n=P.useContext(V1);n==null&&Ne(!1);let{basename:r}=G1(Ba.useViewTransitionState),i=ql(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=kr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=kr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ml(i.pathname,s)!=null||ml(i.pathname,l)!=null}function Jm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Ln=e=>typeof e=="string",rt=e=>typeof e=="function",Ao=e=>Ln(e)||rt(e)?e:null,Ua=e=>P.isValidElement(e)||Ln(e)||rt(e)||Ri(e);function Z1(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Hl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:y,playToast:N}=s;const v=r?`${t}--${c}`:t,j=r?`${n}--${c}`:n,x=P.useRef(0);return P.useLayoutEffect(()=>{const h=p.current,m=v.split(" "),f=g=>{g.target===p.current&&(N(),h.removeEventListener("animationend",f),h.removeEventListener("animationcancel",f),x.current===0&&g.type!=="animationcancel"&&h.classList.remove(...m))};h.classList.add(...m),h.addEventListener("animationend",f),h.addEventListener("animationcancel",f)},[]),P.useEffect(()=>{const h=p.current,m=()=>{h.removeEventListener("animationend",m),i?Z1(h,d,l):d()};y||(u?m():(x.current=1,h.className+=` ${j}`,h.addEventListener("animationend",m)))},[y]),_.createElement(_.Fragment,null,a)}}function Dd(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 Ue=new Map;let Ai=[];const $a=new Set,ej=e=>$a.forEach(t=>t(e)),Xm=()=>Ue.size>0;function Zm(e,t){var n;if(t)return!((n=Ue.get(t))==null||!n.isToastActive(e));let r=!1;return Ue.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function eh(e,t){Ua(e)&&(Xm()||Ai.push({content:e,options:t}),Ue.forEach(n=>{n.buildToast(e,t)}))}function Md(e,t){Ue.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 tj(e){const{subscribe:t,getSnapshot:n,setProps:r}=P.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const c=function(d,p,y){let N=1,v=0,j=[],x=[],h=[],m=p;const f=new Map,g=new Set,w=()=>{h=Array.from(f.values()),g.forEach(E=>E())},b=E=>{x=E==null?[]:x.filter(R=>R!==E),w()},C=E=>{const{toastId:R,onOpen:L,updateId:$,children:G}=E.props,Y=$==null;E.staleId&&f.delete(E.staleId),f.set(R,E),x=[...x,E.props.toastId].filter(K=>K!==E.staleId),w(),y(Dd(E,Y?"added":"updated")),Y&&rt(L)&&L(P.isValidElement(G)&&G.props)};return{id:d,props:m,observe:E=>(g.add(E),()=>g.delete(E)),toggle:(E,R)=>{f.forEach(L=>{R!=null&&R!==L.props.toastId||rt(L.toggle)&&L.toggle(E)})},removeToast:b,toasts:f,clearQueue:()=>{v-=j.length,j=[]},buildToast:(E,R)=>{if((F=>{let{containerId:W,toastId:V,updateId:Q}=F;const X=W?W!==d:d!==1,ee=f.has(V)&&Q==null;return X||ee})(R))return;const{toastId:L,updateId:$,data:G,staleId:Y,delay:K}=R,O=()=>{b(L)},B=$==null;B&&v++;const H={...m,style:m.toastStyle,key:N++,...Object.fromEntries(Object.entries(R).filter(F=>{let[W,V]=F;return V!=null})),toastId:L,updateId:$,data:G,closeToast:O,isIn:!1,className:Ao(R.className||m.toastClassName),bodyClassName:Ao(R.bodyClassName||m.bodyClassName),progressClassName:Ao(R.progressClassName||m.progressClassName),autoClose:!R.isLoading&&(k=R.autoClose,S=m.autoClose,k===!1||Ri(k)&&k>0?k:S),deleteToast(){const F=f.get(L),{onClose:W,children:V}=F.props;rt(W)&&W(P.isValidElement(V)&&V.props),y(Dd(F,"removed")),f.delete(L),v--,v<0&&(v=0),j.length>0?C(j.shift()):w()}};var k,S;H.closeButton=m.closeButton,R.closeButton===!1||Ua(R.closeButton)?H.closeButton=R.closeButton:R.closeButton===!0&&(H.closeButton=!Ua(m.closeButton)||m.closeButton);let A=E;P.isValidElement(E)&&!Ln(E.type)?A=P.cloneElement(E,{closeToast:O,toastProps:H,data:G}):rt(E)&&(A=E({closeToast:O,toastProps:H,data:G}));const I={content:A,props:H,staleId:Y};m.limit&&m.limit>0&&v>m.limit&&B?j.push(I):Ri(K)?setTimeout(()=>{C(I)},K):C(I)},setProps(E){m=E},setToggle:(E,R)=>{f.get(E).toggle=R},isToastActive:E=>x.some(R=>R===E),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(s,l,ej);Ue.set(s,c);const u=c.observe(a);return Ai.forEach(d=>eh(d.content,d.options)),Ai=[],()=>{u(),Ue.delete(s)}},setProps(a){var c;(c=Ue.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=Ue.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=P.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:c}=a.props;s.has(c)||s.set(c,[]),s.get(c).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:Zm,count:i==null?void 0:i.length}}function nj(e){const[t,n]=P.useState(!1),[r,i]=P.useState(!1),l=P.useRef(null),s=P.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:p}=e;var y,N;function v(){n(!0)}function j(){n(!1)}function x(f){const g=l.current;s.canDrag&&g&&(s.didMove=!0,t&&j(),s.delta=e.draggableDirection==="x"?f.clientX-s.start:f.clientY-s.start,s.start!==f.clientX&&(s.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function h(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",h);const f=l.current;if(s.canDrag&&s.didMove&&f){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=Ue.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),P.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||j(),window.addEventListener("focus",v),window.addEventListener("blur",j),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",j)}},[e.pauseOnFocusLoss]);const m={onPointerDown:function(f){if(e.draggable===!0||e.draggable===f.pointerType){s.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",h);const g=l.current;s.canCloseOnClick=!0,s.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(s.start=f.clientX,s.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(s.start=f.clientY,s.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:g,bottom:w,left:b,right:C}=l.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=b&&f.clientX<=C&&f.clientY>=g&&f.clientY<=w?j():v()}};return a&&c&&(m.onMouseEnter=j,e.stacked||(m.onMouseLeave=v)),p&&(m.onClick=f=>{d&&d(f),s.canCloseOnClick&&u()}),{playToast:v,pauseToast:j,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:m}}function rj(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:c,progress:u,rtl:d,isIn:p,theme:y}=e;const N=l||c&&u===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(v.transform=`scaleX(${u})`);const j=an("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),x=rt(s)?s({rtl:d,type:i,defaultClassName:j}):an(j,s),h={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&r()}};return _.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},_.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),_.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:x,style:v,...h}))}let ij=1;const th=()=>""+ij++;function oj(e){return e&&(Ln(e.toastId)||Ri(e.toastId))?e.toastId:th()}function ci(e,t){return eh(e,t),t.toastId}function yl(e,t){return{...t,type:t&&t.type||e,toastId:oj(t)}}function ao(e){return(t,n)=>ci(t,yl(e,n))}function ie(e,t){return ci(e,yl("default",t))}ie.loading=(e,t)=>ci(e,yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=Ln(i)?ie.loading(i,n):ie.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(d,p,y)=>{if(p==null)return void ie.dismiss(r);const N={type:d,...a,...n,data:y},v=Ln(p)?{render:p}:p;return r?ie.update(r,{...N,...v}):ie(v.render,{...N,...v}),y},u=rt(e)?e():e;return u.then(d=>c("success",s,d)).catch(d=>c("error",l,d)),u},ie.success=ao("success"),ie.info=ao("info"),ie.error=ao("error"),ie.warning=ao("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>ci(e,yl("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(Xm()){if(t==null||Ln(n=t)||Ri(n))Ue.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ue.get(t.containerId);r?r.removeToast(t.id):Ue.forEach(i=>{i.removeToast(t.id)})}}else Ai=Ai.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Ue.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=Zm,ie.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=Ue.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:th()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,ci(s,l)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return $a.add(e),()=>{$a.delete(e)}},ie.play=e=>Md(!0,e),ie.pause=e=>Md(!1,e);const lj=typeof window<"u"?P.useLayoutEffect:P.useEffect,co=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return _.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ts={info:function(e){return _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement("div",{className:"Toastify__spinner"})}},sj=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=nj(e),{closeButton:s,children:a,autoClose:c,onClick:u,type:d,hideProgressBar:p,closeToast:y,transition:N,position:v,className:j,style:x,bodyClassName:h,bodyStyle:m,progressClassName:f,progressStyle:g,updateId:w,role:b,progress:C,rtl:E,toastId:R,deleteToast:L,isIn:$,isLoading:G,closeOnClick:Y,theme:K}=e,O=an("Toastify__toast",`Toastify__toast-theme--${K}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":Y}),B=rt(j)?j({rtl:E,position:v,type:d,defaultClassName:O}):an(O,j),H=function(I){let{theme:F,type:W,isLoading:V,icon:Q}=I,X=null;const ee={theme:F,type:W};return Q===!1||(rt(Q)?X=Q({...ee,isLoading:V}):P.isValidElement(Q)?X=P.cloneElement(Q,ee):V?X=Ts.spinner():(re=>re in Ts)(W)&&(X=Ts[W](ee))),X}(e),k=!!C||!c,S={closeToast:y,type:d,theme:K};let A=null;return s===!1||(A=rt(s)?s(S):P.isValidElement(s)?P.cloneElement(s,S):function(I){let{closeToast:F,theme:W,ariaLabel:V="close"}=I;return _.createElement("button",{className:`Toastify__close-button Toastify__close-button--${W}`,type:"button",onClick:Q=>{Q.stopPropagation(),F(Q)},"aria-label":V},_.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_.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"})))}(S)),_.createElement(N,{isIn:$,done:L,position:v,preventExitTransition:n,nodeRef:r,playToast:l},_.createElement("div",{id:R,onClick:u,"data-in":$,className:B,...i,style:x,ref:r},_.createElement("div",{...$&&{role:b},className:rt(h)?h({type:d}):an("Toastify__toast-body",h),style:m},H!=null&&_.createElement("div",{className:an("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!G})},H),_.createElement("div",null,a)),A,_.createElement(rj,{...w&&!k?{key:`pb-${w}`}:{},rtl:E,theme:K,delay:c,isRunning:t,isIn:$,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:k,progress:C||0})))},Yl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},aj=Hl(Yl("bounce",!0));Hl(Yl("slide",!0));Hl(Yl("zoom"));Hl(Yl("flip"));const cj={position:"top-right",transition:aj,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function uj(e){let t={...cj,...e};const n=e.stacked,[r,i]=P.useState(!0),l=P.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=tj(t),{className:u,style:d,rtl:p,containerId:y}=t;function N(j){const x=an("Toastify__toast-container",`Toastify__toast-container--${j}`,{"Toastify__toast-container--rtl":p});return rt(u)?u({position:j,rtl:p,defaultClassName:x}):an(x,Ao(u))}function v(){n&&(i(!0),ie.play())}return lj(()=>{if(n){var j;const x=l.current.querySelectorAll('[data-in="true"]'),h=12,m=(j=t.position)==null?void 0:j.includes("top");let f=0,g=0;Array.from(x).reverse().forEach((w,b)=>{const C=w;C.classList.add("Toastify__toast--stacked"),b>0&&(C.dataset.collapsed=`${r}`),C.dataset.pos||(C.dataset.pos=m?"top":"bot");const E=f*(r?.2:1)+(r?0:h*b);C.style.setProperty("--y",`${m?E:-1*E}px`),C.style.setProperty("--g",`${h}`),C.style.setProperty("--s",""+(1-(r?g:0))),f+=C.offsetHeight,g+=.025})}},[r,c,n]),_.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),ie.pause())},onMouseLeave:v},s((j,x)=>{const h=x.length?{...d}:{...d,pointerEvents:"none"};return _.createElement("div",{className:N(j),style:h,key:`container-${j}`},x.map(m=>{let{content:f,props:g}=m;return _.createElement(sj,{...g,stacked:n,collapseAll:v,isIn:a(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},f)}))}))}const ze=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(he,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(he,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(he,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(he,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},dj="/assets/logo-Cb1x1exd.png",Oe=()=>{var i,l;const{user:e}=Ze(s=>({...s.auth})),t=St(),n=Ir(),r=()=>{t(q0()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:dj,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(he,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(he,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):o.jsx(he,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(he,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):o.jsx(he,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},fj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),o.jsx(ze,{})]}),pj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(ze,{})]}),mj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(ze,{})]});var Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=P.useState(zj),[n,r]=P.useState(!1),{loading:i,error:l}=Ze(w=>({...w.auth})),{title:s,email:a,password:c,firstName:u,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,j=St(),x=Ir();P.useEffect(()=>{l&&ie.error(l)},[l]),P.useEffect(()=>{r(s!=="None"&&a&&c&&u&&d&&p&&y&&N&&v!=="")},[s,a,c,u,d,p,y,N,v]);const h=w=>{if(w.preventDefault(),c!==y)return ie.error("Password should match");n?j(So({formValue:e,navigate:x,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},m=w=>w.charAt(0).toUpperCase()+w.slice(1),f=w=>{const{name:b,value:C,type:E,checked:R}=w.target;t(E==="checkbox"?L=>({...L,[b]:R}):L=>({...L,[b]:b==="email"||b==="password"||b==="confirmPassword"?C:m(C)}))},g=w=>{t(b=>({...b,userType:w.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:h,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:g,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:g,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:f,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:u,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:c,name:"password",onChange:f,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(nh.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(ze,{})]})},Uj={email:"",password:""},$j=()=>{const[e,t]=P.useState(Uj),{loading:n,error:r}=Ze(d=>({...d.auth})),{email:i,password:l}=e,s=St(),a=Ir();P.useEffect(()=>{r&&ie.error(r)},[r]);const c=d=>{d.preventDefault(),i&&l&&s(Co({formValue:e,navigate:a,toast:ie}))},u=d=>{let{name:p,value:y}=d.target;t({...e,[p]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:u,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:u,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(nh.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(he,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(he,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(ze,{})]})},Io="/assets/samplepic-BM_cnzgz.jpg";var rh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xh,function(){return function(n){function r(l){if(i[l])return i[l].exports;var s=i[l]={exports:{},id:l,loaded:!1};return n[l].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(n,r,i){function l(N){return N&&N.__esModule?N:{default:N}}function s(N,v){if(!(N instanceof v))throw new TypeError("Cannot call a class as a function")}function a(N,v){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?N:v}function c(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(N,v):N.__proto__=v)}Object.defineProperty(r,"__esModule",{value:!0});var u=function(){function N(v,j){for(var x=0;x1)for(var w=1;w1?d-1:0),y=1;y2?p-2:0),N=2;N1){for(var K=Array(Y),O=0;O"u"||E.$$typeof!==h)){var H=typeof g=="function"?g.displayName||g.name||"Unknown":g;R&&c(E,H),L&&u(E,H)}return f(g,R,L,$,G,N.current,E)},f.createFactory=function(g){var w=f.createElement.bind(null,g);return w.type=g,w},f.cloneAndReplaceKey=function(g,w){var b=f(g.type,w,g.ref,g._self,g._source,g._owner,g.props);return b},f.cloneElement=function(g,w,b){var C,E=y({},g.props),R=g.key,L=g.ref,$=g._self,G=g._source,Y=g._owner;if(w!=null){s(w)&&(L=w.ref,Y=N.current),a(w)&&(R=""+w.key);var K;g.type&&g.type.defaultProps&&(K=g.type.defaultProps);for(C in w)x.call(w,C)&&!m.hasOwnProperty(C)&&(w[C]===void 0&&K!==void 0?E[C]=K[C]:E[C]=w[C])}var O=arguments.length-2;if(O===1)E.children=b;else if(O>1){for(var B=Array(O),H=0;H1?u-1:0),p=1;p2?d-2:0),y=2;y.")}return C}function u(b,C){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var E=g.uniqueKey||(g.uniqueKey={}),R=c(C);if(!E[R]){E[R]=!0;var L="";b&&b._owner&&b._owner!==y.current&&(L=" It was passed a child from "+b._owner.getName()+"."),l.env.NODE_ENV!=="production"&&m(!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',R,L,N.getCurrentStackAddendum(b))}}}function d(b,C){if(typeof b=="object"){if(Array.isArray(b))for(var E=0;E1?V-1:0),X=1;X"u"||I===null)return""+I;var F=Y(I);if(F==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return F}function O(I){var F=K(I);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function B(I){return I.constructor&&I.constructor.name?I.constructor.name:S}var H=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator",S="<>",A={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(),arrayOf:f,element:g(),instanceOf:w,node:R(),objectOf:C,oneOf:b,oneOfType:E,shape:L};return j.prototype=Error.prototype,A.checkPropTypes=d,A.PropTypes=A,A}}).call(r,i(1))},function(n,r){function i(a){var c=/[=:]/g,u={"=":"=0",":":"=2"},d=(""+a).replace(c,function(p){return u[p]});return"$"+d}function l(a){var c=/(=0|=2)/g,u={"=0":"=","=2":":"},d=a[0]==="."&&a[1]==="$"?a.substring(2):a.substring(1);return(""+d).replace(c,function(p){return u[p]})}var s={escape:i,unescape:l};n.exports=s},function(n,r,i){(function(l){var s=i(5),a=i(2),c=function(h){var m=this;if(m.instancePool.length){var f=m.instancePool.pop();return m.call(f,h),f}return new m(h)},u=function(h,m){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,h,m),g}return new f(h,m)},d=function(h,m,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,h,m,f),w}return new g(h,m,f)},p=function(h,m,f,g){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,h,m,f,g),b}return new w(h,m,f,g)},y=function(h){var m=this;h instanceof m||(l.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):s("25")),h.destructor(),m.instancePool.length{const[e,t]=P.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=St(),{status:l,error:s}=Ze(D=>D.property),{user:a}=Ze(D=>({...D.auth})),[c,u]=P.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:""},{title:"Closing Fees - Owner's Title Insurance",price:""},{title:"Courier Fees",price:""},{title:"Wire Fee",price:""},{title:"E recording Fee",price:""},{title:"Recording Fee",price:""},{title:"Property Tax",price:""}],credits:[{title:"Credits received on settlement",price:""}],cashAdjustments:[{title:"Credits received on settlement",price:""}],incidentalCost:[{title:"Accounting Fees",price:""},{title:"Bank Charges",price:""},{title:"Legal Fees",price:""},{title:"Property Taxes",price:""},{title:"Travel Expenses",price:""}],utilMaintenance:[{title:"Electricity",price:""},{title:"Water and Sewer",price:""},{title:"Natural Gas",price:""},{title:"Trash and Recycling",price:""},{title:"Internet and Cable",price:""},{title:"Heating Oil/Propane",price:""},{title:"HOA fees",price:""},{title:"Dump fees",price:""},{title:"Insurance",price:""},{title:"Interest on Loans",price:""},{title:"Loan Payment",price:""},{title:"Property Taxes",price:""},{title:"Security",price:""},{title:"Real Estates fees",price:""}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:""},{title:"Framing: Making structural changes or additions",price:""},{title:"Plumbing: Installing or modifying plumbing systems",price:""},{title:"Electrical: Updating wiring and fixtures",price:""},{title:"HVAC: Installing or upgrading heating and cooling systems",price:""},{title:"Insulation: Adding or replacing insulation",price:""},{title:"Drywall: Hanging and finishing drywall",price:""},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:""},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:""},{title:"Final Inspections: Ensuring everything meets codes",price:""},{title:"Punch List: Completing any remaining task",price:""}]}),[d,p]=P.useState(!1),y=(D,z)=>{const M=[...c.images];M[z].file=D.base64,u({...c,images:M})},N=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},v=D=>{const z=c.images.filter((M,J)=>J!==D);u({...c,images:z})},j=(D,z)=>{const M=[...c.images];M[D].title=z.target.value,u({...c,images:M})},x=(D,z,M)=>{const{name:J,value:Z}=D.target;if(M==="propertyTaxInfo"){const te=[...c.propertyTaxInfo];te[z][J]=Z,u({...c,propertyTaxInfo:te})}else u({...c,[J]:Z})},h=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=D=>{const z=c.propertyTaxInfo.filter((M,J)=>J!==D);u({...c,propertyTaxInfo:z})},f=()=>{u(D=>({...D,costPaidAtoB:[...D.costPaidAtoB,{title:"",price:""}]}))},g=D=>{const z=c.costPaidAtoB.filter((M,J)=>J!==D);u(M=>({...M,costPaidAtoB:z}))},w=(D,z,M)=>{const J=[...c.costPaidAtoB];J[D][z]=M,u(Z=>({...Z,costPaidAtoB:J}))},b=(D,z)=>{const M=D.target.value;if(/^\d*\.?\d*$/.test(M)||M===""){const Z=c.costPaidAtoB.map((te,fe)=>fe===z?{...te,price:M,isInvalid:!1}:te);u({...c,costPaidAtoB:Z})}else{const Z=c.costPaidAtoB.map((te,fe)=>fe===z?{...te,isInvalid:!0}:te);u({...c,costPaidAtoB:Z})}},C=()=>{const D=c.costPaidAtoB.reduce((M,J)=>{const Z=parseFloat(J.price)||0;return M+Z},0),z=parseFloat(c.purchaseCost)||0;return D+z},E=()=>{u(D=>({...D,credits:[...D.credits,{title:"",price:""}]}))},R=D=>{const z=c.credits.filter((M,J)=>J!==D);u(M=>({...M,credits:z}))},L=(D,z,M)=>{const J=[...c.credits];J[D][z]=M,u(Z=>({...Z,credits:J}))},$=(D,z)=>{const M=D.target.value;if(/^\d*\.?\d*$/.test(M)||M===""){const Z=c.credits.map((te,fe)=>fe===z?{...te,price:M,isInvalid:!1}:te);u({...c,credits:Z})}else{const Z=c.credits.map((te,fe)=>fe===z?{...te,isInvalid:!0}:te);u({...c,credits:Z})}},G=()=>c.credits.reduce((D,z)=>{const M=parseFloat(z.price);return D+(isNaN(M)?0:M)},0),Y=()=>{const D=c.costPaidAtoB.reduce((J,Z)=>{const te=parseFloat(Z.price)||0;return J+te},0),z=c.credits.reduce((J,Z)=>{const te=parseFloat(Z.price)||0;return J+te},0),M=parseFloat(c.purchaseCost)||0;return D+z+M},K=()=>{u(D=>({...D,cashAdjustments:[...D.cashAdjustments,{title:"",price:""}]}))},O=D=>{const z=c.cashAdjustments.filter((M,J)=>J!==D);u(M=>({...M,cashAdjustments:z}))},B=(D,z,M)=>{const J=[...c.cashAdjustments];J[D][z]=M,u(Z=>({...Z,cashAdjustments:J}))},H=(D,z)=>{const M=D.target.value;if(/^\d*\.?\d*$/.test(M)||M===""){const Z=c.cashAdjustments.map((te,fe)=>fe===z?{...te,price:M,isInvalid:!1}:te);u({...c,cashAdjustments:Z})}else{const Z=c.cashAdjustments.map((te,fe)=>fe===z?{...te,isInvalid:!0}:te);u({...c,cashAdjustments:Z})}},k=()=>c.cashAdjustments.reduce((D,z)=>{const M=parseFloat(z.price);return D+(isNaN(M)?0:M)},0),S=()=>{u(D=>({...D,incidentalCost:[...D.incidentalCost,{title:"",price:""}]}))},A=D=>{const z=c.incidentalCost.filter((M,J)=>J!==D);u(M=>({...M,incidentalCost:z}))},I=(D,z,M)=>{const J=[...c.incidentalCost];J[D][z]=M,u(Z=>({...Z,incidentalCost:J}))},F=(D,z)=>{const M=D.target.value;if(/^\d*\.?\d*$/.test(M)||M===""){const Z=c.incidentalCost.map((te,fe)=>fe===z?{...te,price:M,isInvalid:!1}:te);u({...c,incidentalCost:Z})}else{const Z=c.incidentalCost.map((te,fe)=>fe===z?{...te,isInvalid:!0}:te);u({...c,incidentalCost:Z})}},W=()=>c.incidentalCost.reduce((D,z)=>{const M=parseFloat(z.price);return D+(isNaN(M)?0:M)},0),V=()=>{u(D=>({...D,utilMaintenance:[...D.utilMaintenance,{title:"",price:""}]}))},Q=D=>{const z=c.utilMaintenance.filter((M,J)=>J!==D);u(M=>({...M,utilMaintenance:z}))},X=(D,z,M)=>{const J=[...c.utilMaintenance];J[D][z]=M,u(Z=>({...Z,utilMaintenance:J}))},ee=(D,z)=>{const M=D.target.value;if(/^\d*\.?\d*$/.test(M)||M===""){const Z=c.utilMaintenance.map((te,fe)=>fe===z?{...te,price:M,isInvalid:!1}:te);u({...c,utilMaintenance:Z})}else{const Z=c.utilMaintenance.map((te,fe)=>fe===z?{...te,isInvalid:!0}:te);u({...c,utilMaintenance:Z})}},re=()=>c.utilMaintenance.reduce((D,z)=>{const M=parseFloat(z.price);return D+(isNaN(M)?0:M)},0),se=()=>{u(D=>({...D,renovationCost:[...D.renovationCost,{title:"",price:""}]}))},ce=D=>{const z=c.renovationCost.filter((M,J)=>J!==D);u(M=>({...M,renovationCost:z}))},we=(D,z,M)=>{const J=[...c.renovationCost];J[D][z]=M,u(Z=>({...Z,renovationCost:J}))},Kn=(D,z)=>{const M=D.target.value;if(/^\d*\.?\d*$/.test(M)||M===""){const Z=c.renovationCost.map((te,fe)=>fe===z?{...te,price:M,isInvalid:!1}:te);u({...c,renovationCost:Z})}else{const Z=c.renovationCost.map((te,fe)=>fe===z?{...te,isInvalid:!0}:te);u({...c,renovationCost:Z})}},Mr=()=>c.renovationCost.reduce((D,z)=>{const M=parseFloat(z.price);return D+(isNaN(M)?0:M)},0),ah=D=>{const z=D.target.value;isNaN(z)?u({...c,isInvalid:!0}):u({...c,totalcashsurplus:z,isInvalid:!1})},ch=()=>{var D,z,M,J,Z,te;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.totalcashsurplus){const fe=C(),uh=Y(),dh=k(),fh=W(),ph=G(),mh=re(),hh=Mr(),Kl={...c,userfirstname:(D=a==null?void 0:a.result)==null?void 0:D.firstName,usermiddlename:(z=a==null?void 0:a.result)==null?void 0:z.middleName,userlastname:(M=a==null?void 0:a.result)==null?void 0:M.lastName,usertitle:(J=a==null?void 0:a.result)==null?void 0:J.title,useremail:(Z=a==null?void 0:a.result)==null?void 0:Z.email,userId:(te=a==null?void 0:a.result)==null?void 0:te.userId,totalCostsAtoB:fe,totalcredits:ph,totalCostsAtoBaftercredits:uh,totalcashAdjustments:dh,totalincidentalCost:fh,totalutilMaintenanceCost:mh,totalrenovationCost:hh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Kl.propertyTaxInfo=c.propertyTaxInfo:Kl.propertyTaxInfo=[],i(Oo(Kl)),p(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return P.useEffect(()=>{d&&(l==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),p(!1)):l==="failed"&&(ie.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),p(!1)))},[l,s,d]),o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Oe,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),o.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("form",{children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Address",o.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Parcel",o.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Sub division",o.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",o.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",o.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Property Type",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",o.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Year Build",o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Beds",o.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:x,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Baths",o.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Stories",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"}),o.jsx("option",{value:"6",children:"6"}),o.jsx("option",{value:"7",children:"7"}),o.jsx("option",{value:"8",children:"8"}),o.jsx("option",{value:"9",children:"9"}),o.jsx("option",{value:"10",children:"10"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Garage",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",o.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:x,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Pool/SPA",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),o.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),o.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),o.jsx("option",{value:"4",children:"None"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Fire places",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"yes",children:"Yes"}),o.jsx("option",{value:"no",children:"No"})]})]}),o.jsxs("div",{className:"col-md-4",children:["A/C",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Heating",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Building Style",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"One Story",children:"One Story"}),o.jsx("option",{value:"Craftsman",children:"Craftsman"}),o.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),o.jsx("option",{value:"Split-Level",children:"Split-Level"}),o.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),o.jsx("option",{value:"Stick Built",children:"Stick Built"}),o.jsx("option",{value:"Single wide",children:"Single wide"}),o.jsx("option",{value:"Double wide",children:"Double wide"}),o.jsx("option",{value:"Duplex",children:"Duplex"}),o.jsx("option",{value:"Triplex",children:"Triplex"}),o.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),o.jsx("option",{value:"Two Story",children:"Two Story"}),o.jsx("option",{value:"Victorian",children:"Victorian"}),o.jsx("option",{value:"Tudor",children:"Tudor"}),o.jsx("option",{value:"Modern",children:"Modern"}),o.jsx("option",{value:"Art Deco",children:"Art Deco"}),o.jsx("option",{value:"Bungalow",children:"Bungalow"}),o.jsx("option",{value:"Mansion",children:"Mansion"}),o.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),o.jsx("option",{value:"Conventional",children:"Conventional"}),o.jsx("option",{value:"Ranch",children:"Ranch"}),o.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),o.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),o.jsx("option",{value:"Contemporary",children:"Contemporary"}),o.jsx("option",{value:"Colonial",children:"Colonial"}),o.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Site Vacant",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please select"}),o.jsx("option",{value:"Yes",children:"Yes"}),o.jsx("option",{value:"No",children:"No"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Ext Wall",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Brick",children:"Brick"}),o.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),o.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),o.jsx("option",{value:"Stone",children:"Stone"}),o.jsx("option",{value:"Masonry",children:"Masonry"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),o.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),o.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),o.jsx("option",{value:"Gable",children:"Gable"}),o.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),o.jsx("option",{value:"Frame",children:"Frame"}),o.jsx("option",{value:"Siding",children:"Siding"}),o.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),o.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),o.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),o.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),o.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Roofing",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:x,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),o.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),o.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),o.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),o.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),o.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),o.jsx("option",{value:"Slate",children:"Slate"}),o.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),o.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:x,required:!0})]})})]}),o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[o.jsx("br",{}),"Property Tax Information"]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((D,z)=>o.jsxs("div",{className:"row gy-4",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",o.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:D.propertytaxowned,onChange:M=>x(M,z,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Owed Year",o.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:D.ownedyear,onChange:M=>x(M,z,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",o.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:D.taxassessed,onChange:M=>x(M,z,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",o.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:D.taxyear,onChange:M=>x(M,z,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-2",children:[o.jsx("br",{}),o.jsx("button",{className:"btn btn-danger",onClick:()=>m(z),style:{height:"25px",width:"35px"},children:"X"})]})})]},z)),o.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),o.jsxs("form",{children:[c.images.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,placeholder:"Image Title",onChange:M=>j(z,M)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(ih,{multiple:!1,onDone:M=>y(M,z)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>v(z),style:{marginLeft:"5px"},children:"Delete"})]}),D.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:D.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},z)),o.jsx("button",{type:"button",className:"btn btn-primary",onClick:N,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"mb-3",children:[o.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),o.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:x,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&o.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&o.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Acquisition A to B:"}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Purchase Cost",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:c.purchaseCost,onChange:D=>u({...c,purchaseCost:D.target.value}),placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,onChange:M=>w(z,"title",M.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${D.isInvalid?"is-invalid":""}`,value:D.price,onChange:M=>b(M,z),placeholder:"Price",style:{textAlign:"right"},required:!0}),D.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>g(z),style:{marginLeft:"5px"},children:"x"})})]},z)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{onClick:f,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoB",value:C(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,onChange:M=>L(z,"title",M.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${D.isInvalid?"is-invalid":""}`,value:D.price,onChange:M=>$(M,z),placeholder:"Price",style:{textAlign:"right"},required:!0}),D.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>R(z),style:{marginLeft:"5px"},children:"x"})})]},z)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:E,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:G(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B After credits"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalCostsAtoBaftercredits",value:Y(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,onChange:M=>B(z,"title",M.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${D.isInvalid?"is-invalid":""}`,value:D.price,onChange:M=>H(M,z),placeholder:"Price",style:{textAlign:"right"},required:!0}),D.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>O(z),style:{marginLeft:"5px"},children:"x"})})]},z)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:k(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required/(Surplus) on Settlement"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isInvalid?"is-invalid":""}`,name:"totalcashsurplus",value:c.totalcashsurplus,onChange:ah,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Enter only numbers",required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,onChange:M=>I(z,"title",M.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${D.isInvalid?"is-invalid":""}`,value:D.price,onChange:M=>F(M,z),placeholder:"Price",style:{textAlign:"right"},required:!0}),D.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>A(z),style:{marginLeft:"5px"},children:"x"})})]},z)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:S,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Utilities & Maintenance:"}),c.utilMaintenance.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,onChange:M=>X(z,"title",M.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${D.isInvalid?"is-invalid":""}`,value:D.price,onChange:M=>ee(M,z),placeholder:"Price",style:{textAlign:"right"},required:!0}),D.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>Q(z),style:{marginLeft:"5px"},children:"x"})})]},z)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:V,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Utilities and Maintenance Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Utilities and Maintenance Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalutilMaintenanceCost",value:re(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Costs:"}),c.renovationCost.map((D,z)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:D.title,onChange:M=>we(z,"title",M.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${D.isInvalid?"is-invalid":""}`,value:D.price,onChange:M=>Kn(M,z),placeholder:"Price",style:{textAlign:"right"},required:!0}),D.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>ce(z),style:{marginLeft:"5px"},children:"x"})})]},z)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Mr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:ch,children:"Submit"})," "]}),o.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",qj=()=>{var c;const e=St(),{user:t}=Ze(u=>({...u.auth})),{userProperties:n,totalPages:r}=Ze(u=>u.property),[i,l]=P.useState(1),s=5;P.useEffect(()=>{e(To({userId:t.result.userId,page:i,limit:s}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const a=u=>{l(u)};return o.jsx(o.Fragment,{children:n.length>0?o.jsxs(o.Fragment,{children:[o.jsx("ul",{children:n.map(u=>o.jsx("li",{children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"col-md-12",children:o.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[o.jsx("div",{className:"col-md-3 mt-1",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),o.jsxs("div",{className:"col-md-6 mt-1",children:[o.jsxs("h5",{children:[" ",o.jsxs(he,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),o.jsx("div",{className:"d-flex flex-row"}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"100% cotton"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"Light weight"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Best finish",o.jsx("br",{})]})]}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"Unique design"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"For men"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Casual",o.jsx("br",{})]})]}),o.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",o.jsx("br",{}),o.jsx("br",{})]})]}),o.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:o.jsxs("div",{className:"d-flex flex-column mt-4",children:[o.jsx(he,{to:`/property/${u.propertyId}`,target:"_blank",children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),o.jsx(he,{to:`/editproperty/${u.propertyId}`,children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),o.jsxs("div",{className:"pagination",children:[o.jsx("button",{onClick:()=>a(i-1),disabled:i===1,children:"Previous"}),Array.from({length:r},(u,d)=>d+1).map(u=>u===i||u===1||u===r||u>=i-1&&u<=i+1?o.jsx("button",{onClick:()=>a(u),disabled:i===u,children:u},u):u===2||u===r-1?o.jsx("span",{children:"..."},u):null),o.jsx("button",{onClick:()=>a(i+1),disabled:i===r,children:"Next"})]})]}):o.jsx("p",{children:"No active properties found."})})},Hj=()=>{var d,p,y,N,v,j,x,h,m,f,g,w;const{user:e,isLoading:t,error:n}=Ze(b=>b.auth),r=St(),i=Ir(),[l,s]=P.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((j=e==null?void 0:e.result)==null?void 0:j.email)||"",aboutme:((x=e==null?void 0:e.result)==null?void 0:x.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});P.useEffect(()=>{e&&s({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=b=>{s({...l,[b.target.name]:b.target.value})},c=()=>{s({...l,profileImage:""})},u=b=>{b.preventDefault(),r(ko(l)),i("/login")};return o.jsx(o.Fragment,{children:o.jsxs("form",{onSubmit:u,children:[o.jsxs("div",{className:"col-4",children:["Title",o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:a,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["First Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Last Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Email",o.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:a,disabled:!0})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["About me",o.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:a,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select State"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select County"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:a,required:!0})]})}),o.jsxs("div",{className:"col-4",children:[o.jsx("label",{children:"Profile Image"}),o.jsx("div",{className:"mb-3",children:o.jsx(ih,{type:"file",multiple:!1,onDone:({base64:b})=>s({...l,profileImage:b})})})]}),l.profileImage&&o.jsxs("div",{className:"col-4 mb-3",children:[o.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),o.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:c,children:"Delete Image"})]}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&o.jsx("p",{children:n})]})})},Yj=()=>{const[e,t]=P.useState("dashboard"),{user:n}=Ze(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(Hj,{});case"addProperty":return o.jsx(Vj,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(qj,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsx(o.Fragment,{})}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:n.result.profileImage||Io,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"User Profile"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-1",children:[o.jsx("br",{}),o.jsxs("span",{children:["Welcome to"," ",o.jsx("span",{style:{color:"#067ADC"},children:o.jsxs(he,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),o.jsx("br",{}),r()]})})]}),o.jsx(ze,{})]})};var oh={exports:{}},Kj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Qj=Kj,Gj=Qj;function lh(){}function sh(){}sh.resetWarningCache=lh;var Jj=function(){function e(r,i,l,s,a,c){if(c!==Gj){var u=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 u.name="Invariant Violation",u}}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:sh,resetWarningCache:lh};return n.PropTypes=n,n};oh.exports=Jj();var Xj=oh.exports;const Zj=Wa(Xj),eN=()=>{const[e,t]=P.useState(3),n=Ir();return P.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Do=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:o.jsx(eN,{})};Do.propTypes={children:Zj.node.isRequired};const tN=()=>{const e=St(),{id:t,token:n}=Dr();return P.useEffect(()=>{e(Po({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(he,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(ze,{})]})},nN=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await de.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(he,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(ze,{})]})]})},rN=()=>{const{userId:e,token:t}=Dr(),[n,r]=P.useState(""),[i,l]=P.useState(""),[s,a]=P.useState(""),c="http://67.225.129.127:3002",u=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await de.post(`${c}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return P.useEffect(()=>{ie.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(ze,{})]})},iN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),oN=()=>{const{id:e}=Dr(),t=St(),{selectedProperty:n,status:r,error:i}=Ze(a=>a.property),[l,s]=P.useState(!0);return P.useEffect(()=>{e&&(t(si(e)),s(!1))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:l?o.jsx("div",{className:"loader",children:"Loading..."}):n?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?o.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),o.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},lN=()=>{const[e,t]=P.useState([]),[n,r]=P.useState(0),[i,l]=P.useState(0),[s]=P.useState(10),[a,c]=P.useState(""),[u,d]=P.useState(!1),[p,y]=P.useState(!1),N=async()=>{d(!0),y(!1);try{const h=await de.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),a.trim()&&y(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},v=h=>{c(h.target.value),h.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),N())},j=h=>{h.key==="Enter"&&(h.preventDefault(),N())};P.useEffect(()=>{N()},[a,i]);const x=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:j})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[p&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword"," ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((h,m)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:h.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},m)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",x," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=x||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(ze,{})]})},sN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),aN=()=>{const{house_id:e}=Dr();console.log("house_id",e);const[t,n]=P.useState(null),[r,i]=P.useState(!0);return P.useEffect(()=>{(async()=>{try{const s=await de.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},cN=()=>{const{id:e}=Dr(),t=St(),{selectedProperty:n}=Ze(a=>a.property),[r,i]=P.useState({propertyType:"",yearBuild:"",totalSqft:""});P.useEffect(()=>{t(si(e))},[t,e]),P.useEffect(()=>{n&&i({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{i({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(Ro({id:e,propertyData:r}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:s,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]}),o.jsx(ze,{})]})},uN=()=>{const e=St(),{properties:t,loading:n,totalPages:r,currentPage:i}=Ze(j=>j.property),[l,s]=P.useState(""),[a,c]=P.useState([]),[u,d]=P.useState(1),p=10;P.useEffect(()=>{e(ai({page:u,limit:p,keyword:l}))},[e,u,l]),P.useEffect(()=>{l.trim()?c(t.filter(j=>j.address.toLowerCase().includes(l.toLowerCase()))):c(t)},[l,t]);const y=j=>{s(j.target.value)},N=j=>{j.preventDefault()},v=j=>{d(j),e(ai({page:j,limit:p,keyword:l}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",onSubmit:N,children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",value:l,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsx("div",{className:"card-body",children:n?o.jsx("div",{children:"Loading..."}):o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Image"}),o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:a.length>0?a.map(j=>o.jsxs("tr",{children:[o.jsx("td",{children:j.images&&j.images[0]?o.jsx("img",{src:j.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/property/${j.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:j.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),j.city,", ",j.county,","," ",j.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",j.propertyId]})]})]})}),o.jsx("td",{children:j.totallivingsqft}),o.jsx("td",{children:j.yearBuild}),o.jsx("td",{children:j.costpersqft})]},j.id)):o.jsx("tr",{children:o.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),o.jsx("nav",{"aria-label":"Page navigation",children:o.jsxs("ul",{className:"pagination justify-content-center",children:[o.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i-1),children:"Previous"})}),Array.from({length:r},(j,x)=>o.jsx("li",{className:`page-item ${i===x+1?"active":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(x+1),children:x+1})},x+1)),o.jsx("li",{className:`page-item ${i===r?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i+1),children:"Next"})})]})})]}),o.jsx(ze,{})]})},dN=()=>{const{userId:e}=Dr(),t=St(),{user:n,loading:r}=Ze(i=>i.user);return console.log("user",n),P.useEffect(()=>{e&&t(_o(e))},[e,t]),r?o.jsx("div",{children:"Loading..."}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("div",{className:"main-body",children:o.jsxs("div",{className:"row gutters-sm",children:[o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[o.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),o.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),o.jsxs("span",{className:"text-muted font-size-sm",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4",children:o.jsx("div",{className:"card mb-3",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",o.jsx("hr",{}),n.aboutme]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),o.jsx("hr",{}),o.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),o.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:o.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),o.jsx("hr",{}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Email"})}),n.email,o.jsx("div",{className:"col-sm-9 text-secondary"})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",o.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),o.jsxs("ul",{className:"list-group list-group-flush",children:[o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},fN=()=>o.jsxs(H1,{children:[o.jsx(uj,{}),o.jsxs(F1,{children:[o.jsx(ke,{path:"/",element:o.jsx(fj,{})}),o.jsx(ke,{path:"/about",element:o.jsx(pj,{})}),o.jsx(ke,{path:"/services",element:o.jsx(sN,{})}),o.jsx(ke,{path:"/contact",element:o.jsx(mj,{})}),o.jsx(ke,{path:"/register",element:o.jsx(Bj,{})}),o.jsx(ke,{path:"/registrationsuccess",element:o.jsx(Do,{children:o.jsx(iN,{})})}),o.jsx(ke,{path:"/login",element:o.jsx($j,{})}),o.jsx(ke,{path:"/dashboard",element:o.jsx(Do,{children:o.jsx(Yj,{})})}),o.jsx(ke,{path:"/users/:id/verify/:token",element:o.jsx(tN,{})}),o.jsx(ke,{path:"/forgotpassword",element:o.jsx(nN,{})}),o.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:o.jsx(rN,{})}),o.jsx(ke,{path:"/property/:id",element:o.jsx(oN,{})}),o.jsx(ke,{path:"/properties/:house_id",element:o.jsx(aN,{})}),o.jsx(ke,{path:"/searchmyproperties",element:o.jsx(lN,{})}),o.jsx(ke,{path:"/searchproperties",element:o.jsx(uN,{})}),o.jsx(ke,{path:"/editproperty/:id",element:o.jsx(Do,{children:o.jsx(cN,{})})}),o.jsx(ke,{path:"/profile/:userId",element:o.jsx(dN,{})})]})]});Gp(document.getElementById("root")).render(o.jsx(P.StrictMode,{children:o.jsx(fg,{store:J0,children:o.jsx(fN,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 9951ff8..0b847f6 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,7 +45,7 @@ - + diff --git a/ef-ui/src/components/Addproperty.jsx b/ef-ui/src/components/Addproperty.jsx index b0d9b65..48e5889 100644 --- a/ef-ui/src/components/Addproperty.jsx +++ b/ef-ui/src/components/Addproperty.jsx @@ -40,6 +40,7 @@ const Addproperty = () => { { title: "Property Tax", price: "" }, ], credits: [{ title: "Credits received on settlement", price: "" }], + cashAdjustments: [{ title: "Credits received on settlement", price: "" }], incidentalCost: [ { title: "Accounting Fees", price: "" }, { title: "Bank Charges", price: "" }, @@ -63,6 +64,19 @@ const Addproperty = () => { { title: "Security", price: "" }, { title: "Real Estates fees", price: "" }, ], + renovationCost: [ + { title: "Demolition: Removing existing structures or finishes", price: "" }, + { title: "Framing: Making structural changes or additions", price: "" }, + { title: "Plumbing: Installing or modifying plumbing systems", price: "" }, + { title: "Electrical: Updating wiring and fixtures", price: "" }, + { title: "HVAC: Installing or upgrading heating and cooling systems", price: "" }, + { title: "Insulation: Adding or replacing insulation", price: "" }, + { title: "Drywall: Hanging and finishing drywall", price: "" }, + { title: "Interior Finishes: Painting, flooring, cabinetry, and fixtures", price: "" }, + { title: "Exterior Work: Addressing siding, roofing, or landscaping, if applicable", price: "" }, + { title: "Final Inspections: Ensuring everything meets codes", price: "" }, + { title: "Punch List: Completing any remaining task", price: "" }, + ], }); const [submitted, setSubmitted] = useState(false); @@ -250,11 +264,70 @@ const Addproperty = () => { // Convert purchase cost to number const purchaseCost = parseFloat(formData.purchaseCost) || 0; - - // Return the sum of total costs from both arrays and purchase cost return totalCostsFromArray + totalCreditsFromArray + purchaseCost; }; + const addcashAdjustments = () => { + setFormData((prevData) => ({ + ...prevData, + cashAdjustments: [...prevData.cashAdjustments, { title: "", price: "" }], + })); + }; + + const deletecashAdjustments = (index) => { + const updatedcashAdjustments = formData.cashAdjustments.filter( + (_, i) => i !== index + ); + setFormData((prevData) => ({ + ...prevData, + cashAdjustments: updatedcashAdjustments, + })); + }; + + // Function to handle changes to cashAdjustments title and price + const handlecashAdjustmentsTitle = (index, field, value) => { + const updatedcashAdjustments = [...formData.cashAdjustments]; + updatedcashAdjustments[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + cashAdjustments: updatedcashAdjustments, + })); + }; + + const handlecashAdjustmentsCostChange = (e, index) => { + const value = e.target.value; + + // Regular expression to allow only numbers and optional decimals + const isNumber = /^\d*\.?\d*$/.test(value); + + // If valid number, update state, otherwise show the alert + if (isNumber || value === "") { + const updatedcashAdjustments = formData.cashAdjustments.map( + (cashAdjustments, i) => + i === index + ? { ...cashAdjustments, price: value, isInvalid: false } // Reset isInvalid if valid number + : cashAdjustments + ); + setFormData({ ...formData, cashAdjustments: updatedcashAdjustments }); + } else { + const updatedcashAdjustments = formData.cashAdjustments.map( + (cashAdjustments, i) => + i === index + ? { ...cashAdjustments, isInvalid: true } // Set isInvalid true for invalid input + : cashAdjustments + ); + setFormData({ ...formData, cashAdjustments: updatedcashAdjustments }); + } + }; + + // Calculate total from cash Adjustments array + const calculatecashAdjustments = () => { + return formData.cashAdjustments.reduce((total, cashAdjustments) => { + const price = parseFloat(cashAdjustments.price); + return total + (isNaN(price) ? 0 : price); // Ensure only valid numbers are added + }, 0); + }; + const addincidentalCost = () => { setFormData((prevData) => ({ ...prevData, @@ -316,6 +389,7 @@ const Addproperty = () => { }, 0); }; + const addutilMaintenanceCost = () => { setFormData((prevData) => ({ ...prevData, @@ -377,6 +451,100 @@ const Addproperty = () => { }, 0); }; + + + + + + + + + const addrenovationCost = () => { + setFormData((prevData) => ({ + ...prevData, + renovationCost: [...prevData.renovationCost, { title: "", price: "" }], + })); + }; + + const deleterenovationCost = (index) => { + const updatedrenovationCost = formData.renovationCost.filter( + (_, i) => i !== index + ); + setFormData((prevData) => ({ + ...prevData, + renovationCost: updatedrenovationCost, + })); + }; + + // Function to handle changes to renovation Cost title and price + const handlerenovationCostTitle = (index, field, value) => { + const updatedrenovationCost = [...formData.renovationCost]; + updatedrenovationCost[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + renovationCost: updatedrenovationCost, + })); + }; + + const handlerenovationCostChange = (e, index) => { + const value = e.target.value; + + // Regular expression to allow only numbers and optional decimals + const isNumber = /^\d*\.?\d*$/.test(value); + + // If valid number, update state, otherwise show the alert + if (isNumber || value === "") { + const updatedrenovationCost = formData.renovationCost.map( + (renovationCost, i) => + i === index + ? { ...renovationCost, price: value, isInvalid: false } // Reset isInvalid if valid number + : renovationCost + ); + setFormData({ ...formData, renovationCost: updatedrenovationCost }); + } else { + const updatedrenovationCost = formData.renovationCost.map( + (renovationCost, i) => + i === index + ? { ...renovationCost, isInvalid: true } // Set isInvalid true for invalid input + : renovationCost + ); + setFormData({ ...formData, renovationCost: updatedrenovationCost }); + } + }; + + // Calculate total from incidentalCost array + const calculaterenovationCost = () => { + return formData.renovationCost.reduce((total, renovationCost) => { + const price = parseFloat(renovationCost.price); + return total + (isNaN(price) ? 0 : price); // Ensure only valid numbers are added + }, 0); + }; + + + + + + + + + const handleNumericInput = (e) => { + const value = e.target.value; + + // Check if the input is not a valid number + if (isNaN(value)) { + setFormData({ + ...formData, + isInvalid: true, // Set validation flag if not a number + }); + } else { + setFormData({ + ...formData, + totalcashsurplus: value, + isInvalid: false, // Reset validation flag if valid + }); + } + }; + const handleSubmit = () => { if ( formData.address && @@ -405,13 +573,16 @@ const Addproperty = () => { formData.sitevacant && formData.extwall && formData.roofing && - formData.totalSqft + formData.totalSqft && + formData.totalcashsurplus ) { const totalCostsAtoB = calculateTotalCosts(); const totalCostsAtoBaftercredits = calculateTotalCostsWithCredits(); + const totalcashAdjustments = calculatecashAdjustments(); const totalincidentalCost = calculateTotalincidentalCost(); const totalcredits = calculateTotalCredits(); const totalutilMaintenanceCost = calculatetotalutilMaintenanceCost(); + const totalrenovationCost= calculaterenovationCost(); // Add user info to formData, including the propertyTaxInfo array const formDataWithUserInfo = { @@ -425,8 +596,10 @@ const Addproperty = () => { totalCostsAtoB: totalCostsAtoB, totalcredits: totalcredits, totalCostsAtoBaftercredits: totalCostsAtoBaftercredits, + totalcashAdjustments: totalcashAdjustments, totalincidentalCost: totalincidentalCost, totalutilMaintenanceCost: totalutilMaintenanceCost, + totalrenovationCost:totalrenovationCost, }; // Check if propertyTaxInfo is an array and has values @@ -515,7 +688,14 @@ const Addproperty = () => { > Property Location -
+
@@ -1121,7 +1301,14 @@ const Addproperty = () => {
Property Tax Information -
+
{formData.propertyTaxInfo.map((taxInfo, index) => (
@@ -1281,7 +1468,14 @@ const Addproperty = () => { + Add Image -
+
-
+
{ />
-
+
{ fontWeight: "bold", }} > - Credits + Credits received on settlement: {formData.credits.map((credits, index) => ( @@ -1587,7 +1795,7 @@ const Addproperty = () => { fontWeight: "bold", }} > - Total credits + Total credits received on settlement
{
-
+
{ />
+
-
+ + Cash Adjustments: + + + {formData.cashAdjustments.map((cost, index) => ( +
+
+ + handlecashAdjustmentsTitle( + index, + "title", + e.target.value + ) + } + placeholder="Title" + required + /> +
+
+ + handlecashAdjustmentsCostChange(e, index) + } // Use a new handler for price validation + placeholder="Price" + style={{ textAlign: "right" }} + required + /> + {cost.isInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+ +
+
+ ))} + +
+ +
+ +
+ + Total Cash Adjustments on Settlement + +
+ +
+
+ +
+ +
+ + Total Cash Required/(Surplus) on Settlement + +
+ + {formData.isInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+ +
{ -
+
{ -
+
+ + + + + Renovation Costs: + + + {formData.renovationCost.map((cost, index) => ( +
+
+ + handlerenovationCostTitle(index, "title", e.target.value) + } + placeholder="Title" + required + style={{ + fontSize: "10px", // Set the desired font size + }} + /> +
+ +
+ + handlerenovationCostChange(e, index) + } // Use a new handler for price validation + placeholder="Price" + style={{ textAlign: "right" }} + required + /> + {cost.isInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+ +
+
+ ))} + +
+ +
+ +
+ + Total Renovation Cost + +
+ +
+
+ +
+ + + + + + +