From 14fd066fe04b05ef93edddf23c4dc934f4c13279 Mon Sep 17 00:00:00 2001 From: omkieit Date: Sun, 6 Oct 2024 19:25:53 +0530 Subject: [PATCH] done --- ef-api/models/property copy.js | 74 + ef-api/models/property.js | 37 +- ef-ui/dist/assets/index-CMK2z1zZ.js | 85 - ef-ui/dist/assets/index-DfwOztBd.js | 85 + ef-ui/dist/index.html | 2 +- ef-ui/src/components/Addproperty copy 2.jsx | 880 ++++++ ef-ui/src/components/Addproperty copy.jsx | 3038 +++++++++++++++++++ ef-ui/src/components/Addproperty.jsx | 2401 +++------------ ef-ui/src/components/Addproperty_bak.jsx | 61 - 9 files changed, 4526 insertions(+), 2137 deletions(-) create mode 100644 ef-api/models/property copy.js delete mode 100644 ef-ui/dist/assets/index-CMK2z1zZ.js create mode 100644 ef-ui/dist/assets/index-DfwOztBd.js create mode 100644 ef-ui/src/components/Addproperty copy 2.jsx create mode 100644 ef-ui/src/components/Addproperty copy.jsx delete mode 100644 ef-ui/src/components/Addproperty_bak.jsx diff --git a/ef-api/models/property copy.js b/ef-api/models/property copy.js new file mode 100644 index 0000000..3e259dd --- /dev/null +++ b/ef-api/models/property copy.js @@ -0,0 +1,74 @@ +import mongoose from "mongoose"; + +// Schema for property tax information +const propertyTaxInfoSchema = mongoose.Schema({ + propertytaxowned: { type: String }, + ownedyear: { type: String }, + taxassessed: { type: String }, + taxyear: { type: String }, +}); + +// Schema for images +const imageSchema = mongoose.Schema({ + title: { type: String }, // Title of the image + file: { type: String }, // Uploaded image URL +}); + +const propertySchema = mongoose.Schema({ + address: { type: String, required: true }, + city: { type: String, required: true }, + state: { type: String, required: true }, + county: { type: String, required: true }, + zip: { type: String, required: true }, + parcel: { type: String, required: true }, + subdivision: { type: String, required: true }, + legal: { type: String, required: true }, + costpersqft: { type: String, required: true }, + propertyType: { type: String, required: true }, + lotacres: { type: String, required: true }, + yearBuild: { type: String, required: true }, + totallivingsqft: { type: String, required: true }, + beds: { type: String, required: true }, + baths: { type: String, required: true }, + stories: { type: String, required: true }, + garage: { type: String, required: true }, + garagesqft: { type: String, required: true }, + poolspa: { type: String, required: true }, + fireplaces: { type: String, required: true }, + ac: { type: String, required: true }, + heating: { type: String, required: true }, + buildingstyle: { type: String, required: true }, + sitevacant: { type: String, required: true }, + extwall: { type: String, required: true }, + roofing: { type: String, required: true }, + totalSqft: { type: String, required: true }, + + // Remove individual property tax fields and replace with array + propertyTaxInfo: [propertyTaxInfoSchema], // Array of tax info objects + images: [imageSchema], + googleMapLink: { type: String }, + userfirstname: String, + usermiddlename: String, + userlastname: String, + usertitle: String, + creator: String, + useremail: String, + propertyId: String, + userId: String, + createdAt: { + type: Date, + default: new Date(), + }, + publishedAt: { + type: Date, + default: new Date(), + }, + currentYear: { + type: Number, + default: new Date().getFullYear(), + }, +}); + +const PropertyModal = mongoose.model("property", propertySchema); + +export default PropertyModal; diff --git a/ef-api/models/property.js b/ef-api/models/property.js index 3e259dd..9ad9197 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -42,7 +42,6 @@ const propertySchema = mongoose.Schema({ extwall: { type: String, required: true }, roofing: { type: String, required: true }, totalSqft: { type: String, required: true }, - // Remove individual property tax fields and replace with array propertyTaxInfo: [propertyTaxInfoSchema], // Array of tax info objects images: [imageSchema], @@ -67,6 +66,42 @@ const propertySchema = mongoose.Schema({ type: Number, default: new Date().getFullYear(), }, + purchaseCost: { + type: Number, + required: true, // Set to true if this field is mandatory + }, + costPaidAtoB: [ + { + 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 + }, + }, + ], + totalCostsAtoB: { + type: Number, + required: true, // Set to true if this field is mandatory + }, + credits: [ + { + 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 + }, + }, + ], + totalCostsAtoBaftercredits: { + 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-CMK2z1zZ.js b/ef-ui/dist/assets/index-CMK2z1zZ.js deleted file mode 100644 index 19579e8..0000000 --- a/ef-ui/dist/assets/index-CMK2z1zZ.js +++ /dev/null @@ -1,85 +0,0 @@ -var eh=Object.defineProperty;var th=(e,t,n)=>t in e?eh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bl=(e,t,n)=>th(e,typeof t!="symbol"?t+"":t,n);function nh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)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(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pd={exports:{}},ul={},Od={exports:{}},Z={};/** - * @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 Ei=Symbol.for("react.element"),ih=Symbol.for("react.portal"),oh=Symbol.for("react.fragment"),lh=Symbol.for("react.strict_mode"),sh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),ch=Symbol.for("react.context"),uh=Symbol.for("react.forward_ref"),dh=Symbol.for("react.suspense"),fh=Symbol.for("react.memo"),ph=Symbol.for("react.lazy"),Bc=Symbol.iterator;function mh(e){return e===null||typeof e!="object"?null:(e=Bc&&e[Bc]||e["@@iterator"],typeof e=="function"?e:null)}var Rd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Td=Object.assign,Id={};function jr(e,t,n){this.props=e,this.context=t,this.refs=Id,this.updater=n||Rd}jr.prototype.isReactComponent={};jr.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")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dd(){}Dd.prototype=jr.prototype;function Aa(e,t,n){this.props=e,this.context=t,this.refs=Id,this.updater=n||Rd}var Ma=Aa.prototype=new Dd;Ma.constructor=Aa;Td(Ma,jr.prototype);Ma.isPureReactComponent=!0;var Uc=Array.isArray,Ad=Object.prototype.hasOwnProperty,La={current:null},Md={key:!0,ref:!0,__self:!0,__source:!0};function Ld(e,t,n){var r,o={},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)Ad.call(t,r)&&!Md.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,M=_[D];if(0>>1;Do(H,I))Ko(Q,H)?(_[D]=Q,_[K]=I,D=K):(_[D]=H,_[$]=I,D=$);else if(Ko(Q,I))_[D]=Q,_[K]=I,D=K;else break e}}return k}function o(_,k){var I=_.sortIndex-k.sortIndex;return I!==0?I:_.id-k.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,g=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(_){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=_)r(u),k.sortIndex=k.expirationTime,t(c,k);else break;k=n(u)}}function y(_){if(j=!1,f(_),!v)if(n(c)!==null)v=!0,L(w);else{var k=n(u);k!==null&&W(y,k.startTime-_)}}function w(_,k){v=!1,j&&(j=!1,h(S),S=-1),N=!0;var I=g;try{for(f(k),p=n(c);p!==null&&(!(p.expirationTime>k)||_&&!z());){var D=p.callback;if(typeof D=="function"){p.callback=null,g=p.priorityLevel;var M=D(p.expirationTime<=k);k=e.unstable_now(),typeof M=="function"?p.callback=M:p===n(c)&&r(c),f(k)}else r(c);p=n(c)}if(p!==null)var U=!0;else{var $=n(u);$!==null&&W(y,$.startTime-k),U=!1}return U}finally{p=null,g=I,N=!1}}var b=!1,E=null,S=-1,O=5,A=-1;function z(){return!(e.unstable_now()-A_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(_){switch(g){case 1:case 2:case 3:var k=3;break;default:k=g}var I=g;g=k;try{return _()}finally{g=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,k){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=g;g=_;try{return k()}finally{g=I}},e.unstable_scheduleCallback=function(_,k,I){var D=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0D?(_.sortIndex=I,t(u,_),n(c)===null&&_===n(u)&&(j?(h(S),S=-1):j=!0,W(y,I-D))):(_.sortIndex=M,t(c,_),v||N||(v=!0,L(w))),_},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(_){var k=g;return function(){var I=g;g=k;try{return _.apply(this,arguments)}finally{g=I}}}})($d);Ud.exports=$d;var Eh=Ud.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 kh=P,Ze=Eh;function F(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"),Ss=Object.prototype.hasOwnProperty,Ch=/^[: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]*$/,Wc={},Vc={};function _h(e){return Ss.call(Vc,e)?!0:Ss.call(Wc,e)?!1:Ch.test(e)?Vc[e]=!0:(Wc[e]=!0,!1)}function Ph(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 Oh(e,t,n,r){if(t===null||typeof t>"u"||Ph(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,o,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[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];Ce[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[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){Ce[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var za=/[\-:]([a-z])/g;function Ba(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(za,Ba);Ce[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(za,Ba);Ce[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(za,Ba);Ce[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ua(e,t,n,r){var o=Ce.hasOwnProperty(t)?Ce[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==l[a]){var c=` -`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{Wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lr(e):""}function Rh(e){switch(e.tag){case 5:return Lr(e.type);case 16:return Lr("Lazy");case 13:return Lr("Suspense");case 19:return Lr("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function _s(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 Wn:return"Fragment";case $n:return"Portal";case Es:return"Profiler";case $a:return"StrictMode";case ks:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qd:return(e.displayName||"Context")+".Consumer";case Vd:return(e._context.displayName||"Context")+".Provider";case Wa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Va:return t=e.displayName||null,t!==null?t:_s(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return _s(e(t))}catch{}}return null}function Th(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 _s(t);case 8:return t===$a?"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 Yd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ih(e){var t=Yd(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.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 Fi(e){e._valueTracker||(e._valueTracker=Ih(e))}function Kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _o(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 Ps(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hc(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 Qd(e,t){t=t.checked,t!=null&&Ua(e,"checked",t,!1)}function Os(e,t){Qd(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")?Rs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rs(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yc(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 Rs(e,t,n){(t!=="number"||_o(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fr=Array.isArray;function or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $r={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},Dh=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(e){Dh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$r[t]=$r[e]})});function Zd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}function ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ah=fe({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 Ds(e,t){if(t){if(Ah[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function As(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 Ms=null;function qa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ls=null,lr=null,sr=null;function Gc(e){if(e=_i(e)){if(typeof Ls!="function")throw Error(F(280));var t=e.stateNode;t&&(t=hl(t),Ls(e.stateNode,e.type,t))}}function tf(e){lr?sr?sr.push(e):sr=[e]:lr=e}function nf(){if(lr){var e=lr,t=sr;if(sr=lr=null,Gc(e),t)for(e=0;e>>=0,e===0?32:31-(Hh(e)/Yh|0)|0}var Bi=64,Ui=4194304;function zr(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 To(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=zr(a):(l&=s,l!==0&&(r=zr(l)))}else s=n&~o,s!==0?r=zr(s):l!==0&&(r=zr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===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 Jh(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=Vr),ou=" ",lu=!1;function bf(e,t){switch(e){case"keyup":return Ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Cv(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(lu=!0,ou);case"textInput":return e=t.data,e===ou&&lu?null:e;default:return null}}function _v(e,t){if(Vn)return e==="compositionend"||!Za&&bf(e,t)?(e=Nf(),oo=Ga=Jt=null,Vn=!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=uu(n)}}function _f(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_f(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pf(){for(var e=window,t=_o();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_o(e.document)}return t}function ec(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 Lv(e){var t=Pf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_f(n.ownerDocument.documentElement,n)){if(r!==null&&ec(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=du(n,l);var s=du(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.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,qn=null,Ws=null,Hr=null,Vs=!1;function fu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vs||qn==null||qn!==_o(r)||(r=qn,"selectionStart"in r&&ec(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}),Hr&&ai(Hr,r)||(Hr=r,r=Ao(Ws,"onSelect"),0Kn||(e.current=Gs[Kn],Gs[Kn]=null,Kn--)}function ie(e,t){Kn++,Gs[Kn]=e.current,e.current=t}var fn={},Re=hn(fn),Ue=hn(!1),Rn=fn;function fr(e,t){var n=e.type.contextTypes;if(!n)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $e(e){return e=e.childContextTypes,e!=null}function Lo(){se(Ue),se(Re)}function xu(e,t,n){if(Re.current!==fn)throw Error(F(168));ie(Re,t),ie(Ue,n)}function Ff(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,Th(e)||"Unknown",o));return fe({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Rn=Re.current,ie(Re,e),ie(Ue,Ue.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=Ff(e,t,Rn),r.__reactInternalMemoizedMergedChildContext=e,se(Ue),se(Re),ie(Re,e)):se(Ue),ie(Ue,n)}var Rt=null,vl=!1,is=!1;function zf(e){Rt===null?Rt=[e]:Rt.push(e)}function Qv(e){vl=!0,zf(e)}function vn(){if(!is&&Rt!==null){is=!0;var e=0,t=ne;try{var n=Rt;for(ne=1;e>=s,o-=s,Tt=1<<32-ht(t)+o|n<S?(O=E,E=null):O=E.sibling;var A=g(h,E,f[S],y);if(A===null){E===null&&(E=O);break}e&&E&&A.alternate===null&&t(h,E),m=l(A,m,S),b===null?w=A:b.sibling=A,b=A,E=O}if(S===f.length)return n(h,E),ce&&xn(h,S),w;if(E===null){for(;SS?(O=E,E=null):O=E.sibling;var z=g(h,E,A.value,y);if(z===null){E===null&&(E=O);break}e&&E&&z.alternate===null&&t(h,E),m=l(z,m,S),b===null?w=z:b.sibling=z,b=z,E=O}if(A.done)return n(h,E),ce&&xn(h,S),w;if(E===null){for(;!A.done;S++,A=f.next())A=p(h,A.value,y),A!==null&&(m=l(A,m,S),b===null?w=A:b.sibling=A,b=A);return ce&&xn(h,S),w}for(E=r(h,E);!A.done;S++,A=f.next())A=N(E,h,S,A.value,y),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?S:A.key),m=l(A,m,S),b===null?w=A:b.sibling=A,b=A);return e&&E.forEach(function(Y){return t(h,Y)}),ce&&xn(h,S),w}function x(h,m,f,y){if(typeof f=="object"&&f!==null&&f.type===Wn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Li:e:{for(var w=f.key,b=m;b!==null;){if(b.key===w){if(w=f.type,w===Wn){if(b.tag===7){n(h,b.sibling),m=o(b,f.props.children),m.return=h,h=m;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Vt&&bu(w)===b.type){n(h,b.sibling),m=o(b,f.props),m.ref=Ir(h,b,f),m.return=h,h=m;break e}n(h,b);break}else t(h,b);b=b.sibling}f.type===Wn?(m=_n(f.props.children,h.mode,y,f.key),m.return=h,h=m):(y=mo(f.type,f.key,f.props,null,h.mode,y),y.ref=Ir(h,m,f),y.return=h,h=y)}return s(h);case $n: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=o(m,f.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=fs(f,h.mode,y),m.return=h,h=m}return s(h);case Vt:return b=f._init,x(h,m,b(f._payload),y)}if(Fr(f))return v(h,m,f,y);if(_r(f))return j(h,m,f,y);Ki(h,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,f),m.return=h,h=m):(n(h,m),m=ds(f,h.mode,y),m.return=h,h=m),s(h)):n(h,m)}return x}var mr=Wf(!0),Vf=Wf(!1),Uo=hn(null),$o=null,Jn=null,ic=null;function oc(){ic=Jn=$o=null}function lc(e){var t=Uo.current;se(Uo),e._currentValue=t}function Zs(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 cr(e,t){$o=e,ic=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(ic!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if($o===null)throw Error(F(308));Jn=e,$o.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var Sn=null;function sc(e){Sn===null?Sn=[e]:Sn.push(e)}function qf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,sc(t)):(n.next=o.next,o.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 ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hf(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 Dt(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,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Lt(e,n)}return o=r.interleaved,o===null?(t.next=t,sc(r)):(t.next=o.next,o.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,Ya(e,n)}}function Su(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=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?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,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 Wo(e,t,n,r){var o=e.updateQueue;qt=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.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=o.baseState;s=0,d=u=c=null,a=l;do{var g=a.lane,N=a.eventTime;if((r&g)===g){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(g=t,N=n,j.tag){case 1:if(v=j.payload,typeof v=="function"){p=v.call(N,p,g);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=j.payload,g=typeof v=="function"?v.call(N,p,g):v,g==null)break e;p=fe({},p,g);break e;case 2:qt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else N={eventTime:N,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=N,c=p):d=d.next=N,s|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(c=p),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Dn|=s,e.lanes=s,e.memoizedState=p}}function Eu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ls.transition;ls.transition={};try{e(!1),t()}finally{ne=n,ls.transition=r}}function cp(){return ct().memoizedState}function Zv(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},up(e))dp(t,n);else if(n=qf(e,t,n,r),n!==null){var o=Ae();vt(n,e,r,o),fp(n,t,r)}}function ey(e,t,n){var r=an(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(up(e))dp(t,o);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(o.hasEagerState=!0,o.eagerState=a,gt(a,s)){var c=t.interleaved;c===null?(o.next=o,sc(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=qf(e,t,o,r),n!==null&&(o=Ae(),vt(n,e,r,o),fp(n,t,r))}}function up(e){var t=e.alternate;return e===de||t!==null&&t===de}function dp(e,t){Yr=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ya(e,n)}}var Ho={readContext:at,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},ty={readContext:at,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Cu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,co(4194308,4,ip.bind(null,t,e),n)},useLayoutEffect:function(e,t){return co(4194308,4,e,t)},useInsertionEffect:function(e,t){return co(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=Zv.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:ku,useDebugValue:vc,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=ku(!1),t=e[0];return e=Xv.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=wt();if(ce){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),we===null)throw Error(F(349));In&30||Gf(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Cu(Xf.bind(null,r,l,e),[e]),r.flags|=2048,vi(9,Jf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=wt(),t=we.identifierPrefix;if(ce){var n=It,r=Tt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mi++,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[St]=t,e[di]=r,wp(e,t,!1,!1),t.stateNode=e;e:{switch(s=As(n,r),n){case"dialog":le("cancel",e),le("close",e),o=r;break;case"iframe":case"object":case"embed":le("load",e),o=r;break;case"video":case"audio":for(o=0;oyr&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Vo(s),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"&&!s.alternate&&!ce)return Pe(t),null}else 2*he()-l.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(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=he(),t.sibling=null,n=ue.current,ie(ue,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return wc(),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(F(156,t.tag))}function cy(e,t){switch(nc(t),t.tag){case 1:return $e(t.type)&&Lo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hr(),se(Ue),se(Re),dc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uc(t),null;case 13:if(se(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ue),null;case 4:return hr(),null;case 10:return lc(t.type._context),null;case 22:case 23:return wc(),null;case 24:return null;default:return null}}var Gi=!1,Oe=!1,uy=typeof WeakSet=="function"?WeakSet:Set,B=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function aa(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Fu=!1;function dy(e,t){if(qs=Io,e=Pf(),ec(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 o=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,g=null;t:for(;;){for(var N;p!==n||o!==0&&p.nodeType!==3||(a=s+o),p!==l||r!==0&&p.nodeType!==3||(c=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(N=p.firstChild)!==null;)g=p,p=N;for(;;){if(p===e)break t;if(g===n&&++u===o&&(a=s),g===l&&++d===r&&(c=s),(N=p.nextSibling)!==null)break;p=g,g=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(Hs={focusedElem:e,selectionRange:n},Io=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;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(F(163))}}catch(y){pe(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return v=Fu,Fu=!1,v}function Kr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&aa(t,n,l)}o=o.next}while(o!==r)}}function xl(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 ca(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 Ep(e){var t=e.alternate;t!==null&&(e.alternate=null,Ep(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[di],delete t[Qs],delete t[Yv],delete t[Kv])),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 zu(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 ua(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=Mo));else if(r!==4&&(e=e.child,e!==null))for(ua(e,t,n),e=e.sibling;e!==null;)ua(e,t,n),e=e.sibling}function da(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(da(e,t,n),e=e.sibling;e!==null;)da(e,t,n),e=e.sibling}var Ee=null,ft=!1;function $t(e,t,n){for(n=n.child;n!==null;)Cp(e,t,n),n=n.sibling}function Cp(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:Oe||Xn(n,t);case 6:var r=Ee,o=ft;Ee=null,$t(e,t,n),Ee=r,ft=o,Ee!==null&&(ft?(e=Ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(ft?(e=Ee,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),li(e)):rs(Ee,n.stateNode));break;case 4:r=Ee,o=ft,Ee=n.stateNode.containerInfo,ft=!0,$t(e,t,n),Ee=r,ft=o;break;case 0:case 11:case 14:case 15:if(!Oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&aa(n,t,s),o=o.next}while(o!==r)}$t(e,t,n);break;case 1:if(!Oe&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pe(n,t,a)}$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 Bu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uy),t.forEach(function(r){var o=jy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ut(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~l}if(r=o,r=he()-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,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Qo=0,ee&6)throw Error(F(331));var o=ee;for(ee|=4,B=e.current;B!==null;){var l=B,s=l.child;if(B.flags&16){var a=l.deletions;if(a!==null){for(var c=0;che()-jc?Cn(e,0):xc|=n),We(e,t)}function Ap(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=Ae();e=Lt(e,t),e!==null&&(ki(e,t,n),We(e,n))}function xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ap(e,n)}function jy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),Ap(e,n)}var Mp;Mp=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,sy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ce&&t.flags&1048576&&Bf(t,Bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uo(e,t),e=t.pendingProps;var o=fr(t,Re.current);cr(t,n),o=pc(null,t,r,e,o,n);var l=mc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$e(r)?(l=!0,Fo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ac(t),o.updater=gl,t.stateNode=o,o._reactInternals=t,ta(t,r,e,n),t=ia(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&tc(t),Ie(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=wy(r),e=dt(r,e),o){case 0:t=ra(null,t,r,e,n);break e;case 1:t=Au(null,t,r,e,n);break e;case 11:t=Iu(null,t,r,e,n);break e;case 14:t=Du(null,t,r,dt(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),ra(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),Au(e,t,r,o,n);case 3:e:{if(xp(t),e===null)throw Error(F(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Hf(e,t),Wo(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){o=vr(Error(F(423)),t),t=Mu(e,t,r,n,o);break e}else if(r!==o){o=vr(Error(F(424)),t),t=Mu(e,t,r,n,o);break e}else for(Ke=on(t.stateNode.containerInfo.firstChild),Je=t,ce=!0,pt=null,n=Vf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===o){t=Ft(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Yf(t),e===null&&Xs(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,Ys(r,o)?s=null:l!==null&&Ys(r,l)&&(t.flags|=32),gp(e,t),Ie(e,t,s,n),t.child;case 6:return e===null&&Xs(t),null;case 13:return jp(e,t,n);case 4:return cc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mr(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),Iu(e,t,r,o,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,o=t.pendingProps,l=t.memoizedProps,s=o.value,ie(Uo,r._currentValue),r._currentValue=s,l!==null)if(gt(l.value,s)){if(l.children===o.children&&!Ue.current){t=Ft(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=Dt(-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),Zs(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(F(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zs(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}Ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,cr(t,n),o=at(o),r=r(o),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,o=dt(r,t.pendingProps),o=dt(r.type,o),Du(e,t,r,o,n);case 15:return vp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:dt(r,o),uo(e,t),t.tag=1,$e(r)?(e=!0,Fo(t)):e=!1,cr(t,n),pp(t,r,o),ta(t,r,o,n),ia(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return yp(e,t,n)}throw Error(F(156,t.tag))};function Lp(e,t){return uf(e,t)}function Ny(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 Ny(e,t,n,r)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wy(e){if(typeof e=="function")return Sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wa)return 11;if(e===Va)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 mo(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Sc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wn:return _n(n.children,o,l,t);case $a:s=8,o|=8;break;case Es:return e=lt(12,n,t,o|2),e.elementType=Es,e.lanes=l,e;case ks:return e=lt(13,n,t,o),e.elementType=ks,e.lanes=l,e;case Cs:return e=lt(19,n,t,o),e.elementType=Cs,e.lanes=l,e;case Hd:return Nl(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vd:s=10;break e;case qd:s=9;break e;case Wa:s=11;break e;case Va:s=14;break e;case Vt:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=lt(s,n,t,o),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 Nl(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Hd,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function fs(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 by(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ec(e,t,n,r,o,l,s,a,c){return e=new by(e,t,n,a,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},ac(l),e}function Sy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Up)}catch(e){console.error(e)}}Up(),Bd.exports=nt;var Py=Bd.exports,$p,Ku=Py;$p=Ku.createRoot,Ku.hydrateRoot;var Wp={exports:{}},Vp={};/** - * @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 Oi=P;function Oy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ry=typeof Object.is=="function"?Object.is:Oy,Ty=Oi.useSyncExternalStore,Iy=Oi.useRef,Dy=Oi.useEffect,Ay=Oi.useMemo,My=Oi.useDebugValue;Vp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var l=Iy(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=Ay(function(){function c(N){if(!u){if(u=!0,d=N,N=r(N),o!==void 0&&s.hasValue){var v=s.value;if(o(v,N))return p=v}return p=N}if(v=p,Ry(d,N))return v;var j=r(N);return o!==void 0&&o(v,j)?v:(d=N,p=j)}var u=!1,d,p,g=n===void 0?null:n;return[function(){return c(t())},g===null?void 0:function(){return c(g())}]},[t,n,r,o]);var a=Ty(e,l[0],l[1]);return Dy(function(){s.hasValue=!0,s.value=a},[a]),My(a),a};Wp.exports=Vp;var Ly=Wp.exports,Qe="default"in bs?C:bs,Qu=Symbol.for("react-redux-context"),Gu=typeof globalThis<"u"?globalThis:{};function Fy(){if(!Qe.createContext)return{};const e=Gu[Qu]??(Gu[Qu]=new Map);let t=e.get(Qe.createContext);return t||(t=Qe.createContext(null),e.set(Qe.createContext,t)),t}var pn=Fy(),zy=()=>{throw new Error("uSES not initialized!")};function Pc(e=pn){return function(){return Qe.useContext(e)}}var qp=Pc(),Hp=zy,By=e=>{Hp=e},Uy=(e,t)=>e===t;function $y(e=pn){const t=e===pn?qp:Pc(e),n=(r,o={})=>{const{equalityFn:l=Uy,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:c,getServerState:u,stabilityCheck:d,identityFunctionCheck:p}=t();Qe.useRef(!0);const g=Qe.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),N=Hp(c.addNestedSub,a.getState,u||a.getState,g,l);return Qe.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var He=$y();function Wy(e){e()}function Vy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Wy(()=>{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 o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Ju={notify(){},get:()=>[]};function qy(e,t){let n,r=Ju,o=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(){o++,n||(n=e.subscribe(c),r=Vy())}function p(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Ju)}function g(){l||(l=!0,d())}function N(){l&&(l=!1,p())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:c,isSubscribed:u,trySubscribe:g,tryUnsubscribe:N,getListeners:()=>r};return v}var Hy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yy=typeof navigator<"u"&&navigator.product==="ReactNative",Ky=Hy||Yy?Qe.useLayoutEffect:Qe.useEffect;function Qy({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:l="once"}){const s=Qe.useMemo(()=>{const u=qy(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:l}},[e,r,o,l]),a=Qe.useMemo(()=>e.getState(),[e]);Ky(()=>{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||pn;return Qe.createElement(c.Provider,{value:s},n)}var Gy=Qy;function Yp(e=pn){const t=e===pn?qp:Pc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Jy=Yp();function Xy(e=pn){const t=e===pn?Jy:Yp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var xt=Xy();By(Ly.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 Zy=typeof Symbol=="function"&&Symbol.observable||"@@observable",Xu=Zy,ps=()=>Math.random().toString(36).substring(7).split("").join("."),eg={INIT:`@@redux/INIT${ps()}`,REPLACE:`@@redux/REPLACE${ps()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ps()}`},Xo=eg;function Oc(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 Kp(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(Kp)(e,t)}let r=e,o=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(Se(3));return o}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=a++;return s.set(m,x),function(){if(h){if(c)throw new Error(Se(6));h=!1,u(),s.delete(m),l=null}}}function g(x){if(!Oc(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,o=r(o,x)}finally{c=!1}return(l=s).forEach(m=>{m()}),x}function N(x){if(typeof x!="function")throw new Error(Se(10));r=x,g({type:Xo.REPLACE})}function v(){const x=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Se(11));function m(){const y=h;y.next&&y.next(d())}return m(),{unsubscribe:x(m)}},[Xu](){return this}}}return g({type:Xo.INIT}),{dispatch:g,subscribe:p,getState:d,replaceReducer:N,[Xu]:v}}function tg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Xo.INIT})>"u")throw new Error(Se(12));if(typeof n(void 0,{type:Xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Se(13))})}function ng(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(Se(14));u[p]=v,c=c||v!==N}return c=c||r.length!==Object.keys(s).length,c?u:s}}function Zo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function rg(...e){return t=>(n,r)=>{const o=t(n,r);let l=()=>{throw new Error(Se(15))};const s={getState:o.getState,dispatch:(c,...u)=>l(c,...u)},a=e.map(c=>c(s));return l=Zo(...a)(o.dispatch),{...o,dispatch:l}}}function ig(e){return Oc(e)&&"type"in e&&typeof e.type=="string"}var Qp=Symbol.for("immer-nothing"),Zu=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 gr=Object.getPrototypeOf;function Mn(e){return!!e&&!!e[et]}function zt(e){var t;return e?Gp(e)||Array.isArray(e)||!!e[Zu]||!!((t=e.constructor)!=null&&t[Zu])||Cl(e)||_l(e):!1}var og=Object.prototype.constructor.toString();function Gp(e){if(!e||typeof e!="object")return!1;const t=gr(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)===og}function el(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:Cl(e)?2:_l(e)?3:0}function va(e,t){return kl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jp(e,t,n){const r=kl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function lg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Cl(e){return e instanceof Map}function _l(e){return e instanceof Set}function Nn(e){return e.copy_||e.base_}function ya(e,t){if(Cl(e))return new Map(e);if(_l(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Gp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[et];let o=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=sg),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Rc(r,!0))),e}function sg(){mt(2)}function Pl(e){return Object.isFrozen(e)}var ag={};function Ln(e){const t=ag[e];return t||mt(0,e),t}var gi;function Xp(){return gi}function cg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ed(e,t){t&&(Ln("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ga(e){xa(e),e.drafts_.forEach(ug),e.drafts_=null}function xa(e){e===gi&&(gi=e.parent_)}function td(e){return gi=cg(gi,e)}function ug(e){const t=e[et];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[et].modified_&&(ga(t),mt(4)),zt(e)&&(e=tl(t,e),t.parent_||nl(t,e)),t.patches_&&Ln("Patches").generateReplacementPatches_(n[et].base_,e,t.patches_,t.inversePatches_)):e=tl(t,n,[]),ga(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qp?e:void 0}function tl(e,t,n){if(Pl(t))return t;const r=t[et];if(!r)return el(t,(o,l)=>rd(e,r,t,o,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return nl(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let l=o,s=!1;r.type_===3&&(l=new Set(o),o.clear(),s=!0),el(l,(a,c)=>rd(e,r,o,a,c,n,s)),nl(e,o,!1),n&&e.patches_&&Ln("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function rd(e,t,n,r,o,l,s){if(Mn(o)){const a=l&&t&&t.type_!==3&&!va(t.assigned_,r)?l.concat(r):void 0,c=tl(e,o,a);if(Jp(n,r,c),Mn(c))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(zt(o)&&!Pl(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tl(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&nl(e,o)}}function nl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Rc(t,n)}function dg(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Xp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,l=Tc;n&&(o=[r],l=xi);const{revoke:s,proxy:a}=Proxy.revocable(o,l);return r.draft_=a,r.revoke_=s,a}var Tc={get(e,t){if(t===et)return e;const n=Nn(e);if(!va(n,t))return fg(e,n,t);const r=n[t];return e.finalized_||!zt(r)?r:r===ms(e.base_,t)?(hs(e),e.copy_[t]=Na(r,e)):r},has(e,t){return t in Nn(e)},ownKeys(e){return Reflect.ownKeys(Nn(e))},set(e,t,n){const r=Zp(Nn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=ms(Nn(e),t),l=o==null?void 0:o[et];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(lg(n,o)&&(n!==void 0||va(e.base_,t)))return!0;hs(e),ja(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 ms(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,hs(e),ja(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 gr(e.base_)},setPrototypeOf(){mt(12)}},xi={};el(Tc,(e,t)=>{xi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});xi.deleteProperty=function(e,t){return xi.set.call(this,e,t,void 0)};xi.set=function(e,t,n){return Tc.set.call(this,e[0],t,n,e[0])};function ms(e,t){const n=e[et];return(n?Nn(n):e)[t]}function fg(e,t,n){var o;const r=Zp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Zp(e,t){if(!(t in e))return;let n=gr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=gr(n)}}function ja(e){e.modified_||(e.modified_=!0,e.parent_&&ja(e.parent_))}function hs(e){e.copy_||(e.copy_=ya(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"&&mt(6),r!==void 0&&typeof r!="function"&&mt(7);let o;if(zt(t)){const l=td(this),s=Na(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?ga(l):xa(l)}return ed(l,r),nd(o,l)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Qp&&(o=void 0),this.autoFreeze_&&Rc(o,!0),r){const l=[],s=[];Ln("Patches").generateReplacementPatches_(t,o,l,s),r(l,s)}return o}else mt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,c=>t(c,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){zt(e)||mt(8),Mn(e)&&(e=mg(e));const t=td(this),n=Na(e,void 0);return n[et].isManual_=!0,xa(t),n}finishDraft(e,t){const n=e&&e[et];(!n||!n.isManual_)&&mt(9);const{scope_:r}=n;return ed(r,t),nd(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 o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Ln("Patches").applyPatches_;return Mn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Na(e,t){const n=Cl(e)?Ln("MapSet").proxyMap_(e,t):_l(e)?Ln("MapSet").proxySet_(e,t):dg(e,t);return(t?t.scope_:Xp()).drafts_.push(n),n}function mg(e){return Mn(e)||mt(10,e),em(e)}function em(e){if(!zt(e)||Pl(e))return e;const t=e[et];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ya(e,t.scope_.immer_.useStrictShallowCopy_)}else n=ya(e,!0);return el(n,(r,o)=>{Jp(n,r,em(o))}),t&&(t.finalized_=!1),n}var tt=new pg,tm=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 nm(e){return({dispatch:n,getState:r})=>o=>l=>typeof l=="function"?l(n,r,e):o(l)}var hg=nm(),vg=nm,yg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zo:Zo.apply(null,arguments)},gg=e=>e&&typeof e.match=="function";function Jr(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(yt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>ig(r)&&r.type===e,n}var rm=class Ur extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ur.prototype)}static get[Symbol.species](){return Ur}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ur(...t[0].concat(this)):new Ur(...t.concat(this))}};function id(e){return zt(e)?tm(e,()=>{}):e}function od(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(yt(10));const r=n.insert(t,e);return e.set(t,r),r}function xg(e){return typeof e=="boolean"}var jg=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:l=!0}=t??{};let s=new rm;return n&&(xg(n)?s.push(hg):s.push(vg(n.extraArgument))),s},Ng="RTK_autoBatch",im=e=>t=>{setTimeout(t,e)},wg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:im(10),bg=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,l=!1,s=!1;const a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?wg:e.type==="callback"?e.queueNotification:im(e.timeout),u=()=>{s=!1,l&&(l=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>o&&d(),g=r.subscribe(p);return a.add(d),()=>{g(),a.delete(d)}},dispatch(d){var p;try{return o=!((p=d==null?void 0:d.meta)!=null&&p[Ng]),l=!o,l&&(s||(s=!0,c(u))),r.dispatch(d)}finally{o=!0}}})},Sg=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new rm(e);return r&&o.push(bg(typeof r=="object"?r:void 0)),o};function Eg(e){const t=jg(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Oc(n))a=ng(n);else throw new Error(yt(1));let c;typeof r=="function"?c=r(t):c=t();let u=Zo;o&&(u=yg({trace:!1,...typeof o=="object"&&o}));const d=rg(...c),p=Sg(d);let g=typeof s=="function"?s(p):p();const N=u(...g);return Kp(a,l,N)}function om(e){const t={},n=[];let r;const o={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(yt(28));if(a in t)throw new Error(yt(29));return t[a]=s,o},addMatcher(l,s){return n.push({matcher:l,reducer:s}),o},addDefaultCase(l){return r=l,o}};return e(o),[t,n,r]}function kg(e){return typeof e=="function"}function Cg(e,t){let[n,r,o]=om(t),l;if(kg(e))l=()=>id(e());else{const a=id(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=[o]),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 tm(d,g=>p(g,c));{const g=p(d,c);if(g===void 0){if(d===null)return d;throw new Error(yt(9))}return g}}return d},a)}return s.getInitialState=l,s}var _g=(e,t)=>gg(e)?e.match(t):e(t);function Pg(...e){return t=>e.some(n=>_g(n,t))}var Og="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Rg=(e=21)=>{let t="",n=e;for(;n--;)t+=Og[Math.random()*64|0];return t},Tg=["name","message","stack","code"],vs=class{constructor(e,t){Bl(this,"_type");this.payload=e,this.meta=t}},ld=class{constructor(e,t){Bl(this,"_type");this.payload=e,this.meta=t}},Ig=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Tg)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},_t=(()=>{function e(t,n,r){const o=Jr(t+"/fulfilled",(c,u,d,p)=>({payload:c,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),l=Jr(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),s=Jr(t+"/rejected",(c,u,d,p,g)=>({payload:p,error:(r&&r.serializeError||Ig)(c||"Rejected"),meta:{...g||{},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 g=r!=null&&r.idGenerator?r.idGenerator(c):Rg(),N=new AbortController;let v,j;function x(m){j=m,N.abort()}const h=async function(){var y,w;let m;try{let b=(y=r==null?void 0:r.condition)==null?void 0:y.call(r,c,{getState:d,extra:p});if(Ag(b)&&(b=await b),b===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const E=new Promise((S,O)=>{v=()=>{O({name:"AbortError",message:j||"Aborted"})},N.signal.addEventListener("abort",v)});u(l(g,c,(w=r==null?void 0:r.getPendingMeta)==null?void 0:w.call(r,{requestId:g,arg:c},{getState:d,extra:p}))),m=await Promise.race([E,Promise.resolve(n(c,{dispatch:u,getState:d,extra:p,requestId:g,signal:N.signal,abort:x,rejectWithValue:(S,O)=>new vs(S,O),fulfillWithValue:(S,O)=>new ld(S,O)})).then(S=>{if(S instanceof vs)throw S;return S instanceof ld?o(S.payload,g,c,S.meta):o(S,g,c)})])}catch(b){m=b instanceof vs?s(null,g,c,b.payload,b.meta):s(b,g,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:g,arg:c,unwrap(){return h.then(Dg)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:o,settled:Pg(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Dg(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ag(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Mg=Symbol.for("rtk-slice-createasyncthunk");function Lg(e,t){return`${e}/${t}`}function Fg({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Mg];return function(o){const{name:l,reducerPath:s=l}=o;if(!l)throw new Error(yt(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers(Bg()):o.reducers)||{},c=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,y){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]=y,d},addMatcher(f,y){return u.sliceMatchers.push({matcher:f,reducer:y}),d},exposeAction(f,y){return u.actionCreators[f]=y,d},exposeCaseReducer(f,y){return u.sliceCaseReducersByName[f]=y,d}};c.forEach(f=>{const y=a[f],w={reducerName:f,type:Lg(l,f),createNotation:typeof o.reducers=="function"};$g(y)?Vg(w,y,d,t):Ug(w,y,d)});function p(){const[f={},y=[],w=void 0]=typeof o.extraReducers=="function"?om(o.extraReducers):[o.extraReducers],b={...f,...u.sliceCaseReducersByType};return Cg(o.initialState,E=>{for(let S in b)E.addCase(S,b[S]);for(let S of u.sliceMatchers)E.addMatcher(S.matcher,S.reducer);for(let S of y)E.addMatcher(S.matcher,S.reducer);w&&E.addDefaultCase(w)})}const g=f=>f,N=new Map;let v;function j(f,y){return v||(v=p()),v(f,y)}function x(){return v||(v=p()),v.getInitialState()}function h(f,y=!1){function w(E){let S=E[f];return typeof S>"u"&&y&&(S=x()),S}function b(E=g){const S=od(N,y,{insert:()=>new WeakMap});return od(S,E,{insert:()=>{const O={};for(const[A,z]of Object.entries(o.selectors??{}))O[A]=zg(z,E,x,y);return O}})}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:y,...w}={}){const b=y??s;return f.inject({reducerPath:b,reducer:j},w),{...m,...h(b,!0)}}};return m}}function zg(e,t,n,r){function o(l,...s){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return o.unwrapped=e,o}var Ic=Fg();function Bg(){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 Ug({type:e,reducerName:t,createNotation:n},r,o){let l,s;if("reducer"in r){if(n&&!Wg(r))throw new Error(yt(17));l=r.reducer,s=r.prepare}else l=r;o.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?Jr(e,s):Jr(e))}function $g(e){return e._reducerDefinitionType==="asyncThunk"}function Wg(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vg({type:e,reducerName:t},n,r,o){if(!o)throw new Error(yt(18));const{payloadCreator:l,fulfilled:s,pending:a,rejected:c,settled:u,options:d}=n,p=o(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||Zi,pending:a||Zi,rejected:c||Zi,settled:u||Zi})}function Zi(){}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 lm(e,t){return function(){return e.apply(t,arguments)}}const{toString:qg}=Object.prototype,{getPrototypeOf:Dc}=Object,Ol=(e=>t=>{const n=qg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>Ol(t)===e),Rl=e=>t=>typeof t===e,{isArray:br}=Array,ji=Rl("undefined");function Hg(e){return e!==null&&!ji(e)&&e.constructor!==null&&!ji(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sm=jt("ArrayBuffer");function Yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sm(e.buffer),t}const Kg=Rl("string"),Xe=Rl("function"),am=Rl("number"),Tl=e=>e!==null&&typeof e=="object",Qg=e=>e===!0||e===!1,ho=e=>{if(Ol(e)!=="object")return!1;const t=Dc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gg=jt("Date"),Jg=jt("File"),Xg=jt("Blob"),Zg=jt("FileList"),ex=e=>Tl(e)&&Xe(e.pipe),tx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Ol(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},nx=jt("URLSearchParams"),[rx,ix,ox,lx]=["ReadableStream","Request","Response","Headers"].map(jt),sx=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,o;if(typeof e!="object"&&(e=[e]),br(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,um=e=>!ji(e)&&e!==kn;function wa(){const{caseless:e}=um(this)&&this||{},t={},n=(r,o)=>{const l=e&&cm(t,o)||o;ho(t[l])&&ho(r)?t[l]=wa(t[l],r):ho(r)?t[l]=wa({},r):br(r)?t[l]=r.slice():t[l]=r};for(let r=0,o=arguments.length;r(Ri(t,(o,l)=>{n&&Xe(o)?e[l]=lm(o,n):e[l]=o},{allOwnKeys:r}),e),cx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ux=(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)},dx=(e,t,n,r)=>{let o,l,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)s=o[l],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Dc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fx=(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(br(e))return e;let t=e.length;if(!am(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dc(Uint8Array)),hx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},vx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yx=jt("HTMLFormElement"),gx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),sd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xx=jt("RegExp"),dm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ri(n,(o,l)=>{let s;(s=t(o,l,e))!==!1&&(r[l]=s||o)}),Object.defineProperties(e,r)},jx=e=>{dm(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+"'")})}})},Nx=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return br(e)?r(e):r(String(e).split(t)),n},wx=()=>{},bx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ys="abcdefghijklmnopqrstuvwxyz",ad="0123456789",fm={DIGIT:ad,ALPHA:ys,ALPHA_DIGIT:ys+ys.toUpperCase()+ad},Sx=(e=16,t=fm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ex(e){return!!(e&&Xe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kx=e=>{const t=new Array(10),n=(r,o)=>{if(Tl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const l=br(r)?[]:{};return Ri(r,(s,a)=>{const c=n(s,o+1);!ji(c)&&(l[a]=c)}),t[o]=void 0,l}}return r};return n(e,0)},Cx=jt("AsyncFunction"),_x=e=>e&&(Tl(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),pm=((e,t)=>e?setImmediate:t?((n,r)=>(kn.addEventListener("message",({source:o,data:l})=>{o===kn&&l===n&&r.length&&r.shift()()},!1),o=>{r.push(o),kn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(kn.postMessage)),Px=typeof queueMicrotask<"u"?queueMicrotask.bind(kn):typeof process<"u"&&process.nextTick||pm,T={isArray:br,isArrayBuffer:sm,isBuffer:Hg,isFormData:tx,isArrayBufferView:Yg,isString:Kg,isNumber:am,isBoolean:Qg,isObject:Tl,isPlainObject:ho,isReadableStream:rx,isRequest:ix,isResponse:ox,isHeaders:lx,isUndefined:ji,isDate:Gg,isFile:Jg,isBlob:Xg,isRegExp:xx,isFunction:Xe,isStream:ex,isURLSearchParams:nx,isTypedArray:mx,isFileList:Zg,forEach:Ri,merge:wa,extend:ax,trim:sx,stripBOM:cx,inherits:ux,toFlatObject:dx,kindOf:Ol,kindOfTest:jt,endsWith:fx,toArray:px,forEachEntry:hx,matchAll:vx,isHTMLForm:yx,hasOwnProperty:sd,hasOwnProp:sd,reduceDescriptors:dm,freezeMethods:jx,toObjectSet:Nx,toCamelCase:gx,noop:wx,toFiniteNumber:bx,findKey:cm,global:kn,isContextDefined:um,ALPHABET:fm,generateString:Sx,isSpecCompliantForm:Ex,toJSONObject:kx,isAsyncFn:Cx,isThenable:_x,setImmediate:pm,asap:Px};function G(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}T.inherits(G,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 mm=G.prototype,hm={};["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=>{hm[e]={value:e}});Object.defineProperties(G,hm);Object.defineProperty(mm,"isAxiosError",{value:!0});G.from=(e,t,n,r,o,l)=>{const s=Object.create(mm);return T.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),G.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const Ox=null;function ba(e){return T.isPlainObject(e)||T.isArray(e)}function vm(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function cd(e,t,n){return e?e.concat(t).map(function(o,l){return o=vm(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Rx(e){return T.isArray(e)&&!e.some(ba)}const Tx=T.toFlatObject(T,{},null,function(t){return/^is[A-Z]/.test(t)});function Il(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,o=n.visitor||d,l=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(t);if(!T.isFunction(o))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 G("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)&&Rx(v)||(T.isFileList(v)||T.endsWith(j,"[]"))&&(h=T.toArray(v)))return j=vm(j),h.forEach(function(f,y){!(T.isUndefined(f)||f===null)&&t.append(s===!0?cd([j],y,l):s===null?j:j+"[]",u(f))}),!1}return ba(v)?!0:(t.append(cd(x,j,l),u(v)),!1)}const p=[],g=Object.assign(Tx,{defaultVisitor:d,convertValue:u,isVisitable:ba});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)&&o.call(t,h,T.isString(m)?m.trim():m,j,g))===!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 ud(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ac(e,t){this._pairs=[],e&&Il(e,this,t)}const ym=Ac.prototype;ym.append=function(t,n){this._pairs.push([t,n])};ym.toString=function(t){const n=t?function(r){return t.call(this,r,ud)}:ud;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Ix(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gm(e,t,n){if(!t)return e;const r=n&&n.encode||Ix,o=n&&n.serialize;let l;if(o?l=o(t,n):l=T.isURLSearchParams(t)?t.toString():new Ac(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class dd{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 xm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dx=typeof URLSearchParams<"u"?URLSearchParams:Ac,Ax=typeof FormData<"u"?FormData:null,Mx=typeof Blob<"u"?Blob:null,Lx={isBrowser:!0,classes:{URLSearchParams:Dx,FormData:Ax,Blob:Mx},protocols:["http","https","file","blob","url","data"]},Mc=typeof window<"u"&&typeof document<"u",Sa=typeof navigator=="object"&&navigator||void 0,Fx=Mc&&(!Sa||["ReactNative","NativeScript","NS"].indexOf(Sa.product)<0),zx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bx=Mc&&window.location.href||"http://localhost",Ux=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mc,hasStandardBrowserEnv:Fx,hasStandardBrowserWebWorkerEnv:zx,navigator:Sa,origin:Bx},Symbol.toStringTag,{value:"Module"})),Ve={...Ux,...Lx};function $x(e,t){return Il(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,l){return Ve.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function Wx(e){return T.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vx(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r=n.length;return s=!s&&T.isArray(o)?o.length:s,c?(T.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!T.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],l)&&T.isArray(o[s])&&(o[s]=Vx(o[s])),!a)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(Wx(r),o,n,0)}),n}return null}function qx(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 Ti={transitional:xm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=T.isObject(t);if(l&&T.isHTMLForm(t)&&(t=new FormData(t)),T.isFormData(t))return o?JSON.stringify(jm(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 $x(t,this.formSerializer).toString();if((a=T.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Il(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),qx(t)):t}],transformResponse:[function(t){const n=this.transitional||Ti.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(T.isResponse(t)||T.isReadableStream(t))return t;if(t&&T.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?G.from(a,G.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: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}}};T.forEach(["delete","get","head","post","put","patch"],e=>{Ti.headers[e]={}});const Hx=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"]),Yx=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Hx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fd=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function vo(e){return e===!1||e==null?e:T.isArray(e)?e.map(vo):String(e)}function Kx(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 Qx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gs(e,t,n,r,o){if(T.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function Gx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jx(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,l,s){return this[r].call(this,t,o,l,s)},configurable:!0})})}class qe{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(a,c,u){const d=Mr(c);if(!d)throw new Error("header name must be a non-empty string");const p=T.findKey(o,d);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=vo(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())&&!Qx(t))s(Yx(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=Mr(t),t){const r=T.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Kx(o);if(T.isFunction(n))return n.call(this,o,r);if(T.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mr(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||gs(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(s){if(s=Mr(s),s){const a=T.findKey(r,s);a&&(!n||gs(r,r[a],a,n))&&(delete r[a],o=!0)}}return T.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||gs(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};return T.forEach(this,(o,l)=>{const s=T.findKey(r,l);if(s){n[s]=vo(o),delete n[l];return}const a=t?Gx(l):String(l).trim();a!==l&&delete n[l],n[a]=vo(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=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(o=>r.set(o)),r}static accessor(t){const r=(this[fd]=this[fd]={accessors:{}}).accessors,o=this.prototype;function l(s){const a=Mr(s);r[a]||(Jx(o,s),r[a]=!0)}return T.isArray(t)?t.forEach(l):l(t),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});T.freezeMethods(qe);function xs(e,t){const n=this||Ti,r=t||n,o=qe.from(r.headers);let l=r.data;return T.forEach(e,function(a){l=a.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function Nm(e){return!!(e&&e.__CANCEL__)}function Sr(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(Sr,G,{__CANCEL__:!0});function wm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Xx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zx(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[l];s||(s=u),n[o]=c,r[o]=u;let p=l,g=0;for(;p!==o;)g+=n[p++],p=p%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),u-s{n=d,o=null,l&&(clearTimeout(l),l=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=r?s(u,d):(o=u,l||(l=setTimeout(()=>{l=null,s(o)},r-p)))},()=>o&&s(o)]}const rl=(e,t,n=3)=>{let r=0;const o=Zx(50,250);return e1(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,c=s-r,u=o(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)},pd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},md=e=>(...t)=>T.asap(()=>e(...t)),t1=Ve.hasStandardBrowserEnv?function(){const t=Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent),n=document.createElement("a");let r;function o(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=o(window.location.href),function(s){const a=T.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),n1=Ve.hasStandardBrowserEnv?{write(e,t,n,r,o,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(o)&&s.push("domain="+o),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 r1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bm(e,t){return e&&!r1(t)?i1(e,t):t}const hd=e=>e instanceof qe?{...e}:e;function Fn(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 o(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)=>o(hd(u),hd(d),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||o,g=p(e[d],t[d],d);T.isUndefined(g)&&p!==a||(n[d]=g)}),n}const Sm=e=>{const t=Fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=qe.from(s),t.url=gm(bm(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(Ve.hasStandardBrowserEnv||Ve.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(Ve.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(t)),r||r!==!1&&t1(t.url))){const u=o&&l&&n1.read(l);u&&s.set(o,u)}return t},o1=typeof XMLHttpRequest<"u",l1=o1&&function(e){return new Promise(function(n,r){const o=Sm(e);let l=o.data;const s=qe.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,p,g,N,v;function j(){N&&N(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function h(){if(!x)return;const f=qe.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};wm(function(E){n(E),j()},function(E){r(E),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 G("Request aborted",G.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||xm;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),r(new G(y,w.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,x)),x=null},l===void 0&&s.setContentType(null),"setRequestHeader"in x&&T.forEach(s.toJSON(),function(y,w){x.setRequestHeader(w,y)}),T.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),a&&a!=="json"&&(x.responseType=o.responseType),u&&([g,v]=rl(u,!0),x.addEventListener("progress",g)),c&&x.upload&&([p,N]=rl(c),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(d=f=>{x&&(r(!f||f.type?new Sr(null,e,x):f),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const m=Xx(o.url);if(m&&Ve.protocols.indexOf(m)===-1){r(new G("Unsupported protocol "+m+":",G.ERR_BAD_REQUEST,e));return}x.send(l||null)})},s1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const l=function(u){if(!o){o=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof G?d:new Sr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new G(`timeout ${t} of ms exceeded`,G.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}},a1=function*(e,t){let n=e.byteLength;if(!t||n{const o=c1(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 o.next();if(u){a(),c.close();return}let p=d.byteLength;if(n){let g=l+=p;n(g)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},Dl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Em=Dl&&typeof ReadableStream=="function",d1=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}},f1=Em&&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}),yd=64*1024,Ea=Em&&km(()=>T.isReadableStream(new Response("").body)),il={stream:Ea&&(e=>e.body)};Dl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!il[t]&&(il[t]=T.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,r)})})})(new Response);const p1=async e=>{if(e==null)return 0;if(T.isBlob(e))return e.size;if(T.isSpecCompliantForm(e))return(await new Request(Ve.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 d1(e)).byteLength},m1=async(e,t)=>{const n=T.toFiniteNumber(e.getContentLength());return n??p1(t)},h1=Dl&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:g}=Sm(e);u=u?(u+"").toLowerCase():"text";let N=s1([o,l&&l.toAbortSignal()],s),v;const j=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let x;try{if(c&&f1&&n!=="get"&&n!=="head"&&(x=await m1(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[E,S]=pd(x,rl(md(c)));r=vd(w.body,yd,E,S)}}T.isString(p)||(p=p?"include":"omit");const h="credentials"in Request.prototype;v=new Request(t,{...g,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=Ea&&(u==="stream"||u==="response");if(Ea&&(a||f&&j)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=m[O]});const b=T.toFiniteNumber(m.headers.get("content-length")),[E,S]=a&&pd(b,rl(md(a),!0))||[];m=new Response(vd(m.body,yd,E,()=>{S&&S(),j&&j()}),w)}u=u||"text";let y=await il[T.findKey(il,u)||"text"](m,e);return!f&&j&&j(),await new Promise((w,b)=>{wm(w,b,{data:y,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 G("Network Error",G.ERR_NETWORK,e,v),{cause:h.cause||h}):G.from(h,h&&h.code,e,v)}}),ka={http:Ox,xhr:l1,fetch:h1};T.forEach(ka,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gd=e=>`- ${e}`,v1=e=>T.isFunction(e)||e===null||e===!1,Cm={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};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(gd).join(` -`):" "+gd(l[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ka};function js(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sr(null,e)}function xd(e){return js(e),e.headers=qe.from(e.headers),e.data=xs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cm.getAdapter(e.adapter||Ti.adapter)(e).then(function(r){return js(e),r.data=xs.call(e,e.transformResponse,r),r.headers=qe.from(r.headers),r},function(r){return Nm(r)||(js(e),r&&r.response&&(r.response.data=xs.call(e,e.transformResponse,r.response),r.response.headers=qe.from(r.response.headers))),Promise.reject(r)})}const _m="1.7.7",Lc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jd={};Lc.transitional=function(t,n,r){function o(l,s){return"[Axios v"+_m+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new G(o(s," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!jd[s]&&(jd[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function y1(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const l=r[o],s=t[l];if(s){const a=e[l],c=a===void 0||s(a,l,e);if(c!==!0)throw new G("option "+l+" must be "+c,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+l,G.ERR_BAD_OPTION)}}const Ca={assertOptions:y1,validators:Lc},Wt=Ca.validators;class Pn{constructor(t){this.defaults=t,this.interceptors={request:new dd,response:new dd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const l=o.stack?o.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:o,headers:l}=n;r!==void 0&&Ca.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),o!=null&&(T.isFunction(o)?n.paramsSerializer={serialize:o}:Ca.assertOptions(o,{encode:Wt.function,serialize:Wt.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=qe.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,g;if(!c){const v=[xd.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(o);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new Sr(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 Fc(function(o){t=o}),cancel:t}}}function g1(e){return function(n){return e.apply(null,n)}}function x1(e){return T.isObject(e)&&e.isAxiosError===!0}const _a={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(_a).forEach(([e,t])=>{_a[t]=e});function Pm(e){const t=new Pn(e),n=lm(Pn.prototype.request,t);return T.extend(n,Pn.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Pm(Fn(e,o))},n}const oe=Pm(Ti);oe.Axios=Pn;oe.CanceledError=Sr;oe.CancelToken=Fc;oe.isCancel=Nm;oe.VERSION=_m;oe.toFormData=Il;oe.AxiosError=G;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=g1;oe.isAxiosError=x1;oe.mergeConfig=Fn;oe.AxiosHeaders=qe;oe.formToJSON=e=>jm(T.isHTMLForm(e)?new FormData(e):e);oe.getAdapter=Cm.getAdapter;oe.HttpStatusCode=_a;oe.default=oe;const j1="http://67.225.129.127:3002",Ut=oe.create({baseURL:j1});Ut.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const N1=e=>Ut.post("/users/signup",e),w1=e=>Ut.post("/users/signin",e),b1=(e,t,n)=>Ut.get(`/users/${e}/verify/${t}`,n),S1=e=>Ut.post("/properties",e),E1=(e,t,n)=>Ut.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),k1=e=>Ut.get(`/properties/${e}`,e),C1=(e,t)=>Ut.put(`/properties/${e}`,t),_1=e=>Ut.get(`/users/${e}`),yo=_t("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await w1(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),go=_t("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const o=await N1(e);return n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return r(o.response.data)}}),xo=_t("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await oe.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Om=Ic({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(yo.pending,t=>{t.loading=!0}).addCase(yo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).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.isLoading=!0}).addCase(xo.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(xo.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:Xj,setLogout:P1,setUserDetails:Zj}=Om.actions,O1=Om.reducer,jo=_t("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await _1(e)).data}catch(n){return t(n.response.data)}}),No=_t("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await b1(e,t,n)).data.message}catch(o){return r(o.response.data)}}),R1=Ic({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(jo.pending,t=>{t.loading=!0,t.error=null}).addCase(jo.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(jo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(No.pending,t=>{t.loading=!0,t.error=null}).addCase(No.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(No.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),T1=R1.reducer,wo=_t("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await S1(e)).data}catch(n){return t(n.response.data)}}),bo=_t("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await E1(e,t,n)).data}catch(o){return r(o.response.data)}}),Xr=_t("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await k1(e)).data}catch(n){return t(n.response.data)}}),So=_t("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await C1(e,t)).data}catch(r){return n(r.response.data)}}),Zr=_t("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await oe.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),I1=Ic({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(wo.pending,t=>{t.status="loading"}).addCase(wo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(wo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(bo.pending,t=>{t.loading=!0}).addCase(bo.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(bo.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Xr.pending,t=>{t.status="loading"}).addCase(Xr.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Xr.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(So.pending,t=>{t.status="loading"}).addCase(So.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(So.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Zr.pending,t=>{t.loading=!0}).addCase(Zr.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Zr.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),D1=I1.reducer,A1=Eg({reducer:{auth:O1,user:T1,property:D1}});/** - * @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 Ni(){return Ni=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 L1(){return Math.random().toString(36).substr(2,8)}function wd(e,t){return{usr:e.state,key:e.key,idx:t}}function Pa(e,t,n,r){return n===void 0&&(n=null),Ni({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Er(t):t,{state:n,key:t&&t.key||r||L1()})}function ol(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 Er(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 F1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,a=Zt.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(Ni({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=Zt.Pop;let x=d(),h=x==null?null:x-u;u=x,c&&c({action:a,location:j.location,delta:h})}function g(x,h){a=Zt.Push;let m=Pa(j.location,x,h);u=d()+1;let f=wd(m,u),y=j.createHref(m);try{s.pushState(f,"",y)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(y)}l&&c&&c({action:a,location:j.location,delta:1})}function N(x,h){a=Zt.Replace;let m=Pa(j.location,x,h);u=d();let f=wd(m,u),y=j.createHref(m);s.replaceState(f,"",y),l&&c&&c({action:a,location:j.location,delta:0})}function v(x){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof x=="string"?x:ol(x);return m=m.replace(/ $/,"%20"),me(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(o,s)},listen(x){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Nd,p),c=x,()=>{o.removeEventListener(Nd,p),c=null}},createHref(x){return t(o,x)},createURL:v,encodeLocation(x){let h=v(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:g,replace:N,go(x){return s.go(x)}};return j}var bd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bd||(bd={}));function z1(e,t,n){return n===void 0&&(n="/"),B1(e,t,n,!1)}function B1(e,t,n,r){let o=typeof t=="string"?Er(t):t,l=xr(o.pathname||"/",n);if(l==null)return null;let s=Tm(e);U1(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("/")&&(me(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&&(me(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Tm(l.children,t,d,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:K1(u,l.index),routesMeta:d})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))o(l,s);else for(let c of Im(l.path))o(l,s,c)}),t}function Im(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let s=Im(r.join("/")),a=[];return a.push(...s.map(c=>c===""?l:[l,c].join("/"))),o&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function U1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Q1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $1=/^:[\w-]+$/,W1=3,V1=2,q1=1,H1=10,Y1=-2,Sd=e=>e==="*";function K1(e,t){let n=e.split("/"),r=n.length;return n.some(Sd)&&(r+=Y1),t&&(r+=V1),n.filter(o=>!Sd(o)).reduce((o,l)=>o+($1.test(l)?W1:l===""?q1:H1),r)}function Q1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function G1(e,t,n){let{routesMeta:r}=e,o={},l="/",s=[];for(let a=0;a{let{paramName:g,isOptional:N}=d;if(g==="*"){let j=a[p]||"";s=l.slice(0,l.length-j.length).replace(/(.)\/+$/,"$1")}const v=a[p];return N&&!v?u[g]=void 0:u[g]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:s,pattern:e}}function J1(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=[],o="^"+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:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function X1(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 xr(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 Z1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Er(e):e;return{pathname:n?n.startsWith("/")?n:e0(n,t):t,search:r0(r),hash:i0(o)}}function e0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ns(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 t0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Dm(e,t){let n=t0(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Am(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Er(e):(o=Ni({},e),me(!o.pathname||!o.pathname.includes("?"),Ns("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Ns("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Ns("#","search","hash",o)));let l=e===""||o.pathname==="",s=l?"/":o.pathname,a;if(s==null)a=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}a=p>=0?t[p]:"/"}let c=Z1(o,a),u=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const un=e=>e.join("/").replace(/\/\/+/g,"/"),n0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function o0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Mm=["post","put","patch","delete"];new Set(Mm);const l0=["get",...Mm];new Set(l0);/** - * 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 wi(){return wi=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=Am(u,JSON.parse(s),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,s,l,e])}function Cr(){let{matches:e}=P.useContext(gn),t=e[e.length-1];return t?t.params:{}}function Ll(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(yn),{matches:o}=P.useContext(gn),{pathname:l}=Di(),s=JSON.stringify(Dm(o,r.v7_relativeSplatPath));return P.useMemo(()=>Am(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function c0(e,t){return u0(e,t)}function u0(e,t,n,r){Ii()||me(!1);let{navigator:o}=P.useContext(yn),{matches:l}=P.useContext(gn),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=Di(),d;if(t){var p;let x=typeof t=="string"?Er(t):t;c==="/"||(p=x.pathname)!=null&&p.startsWith(c)||me(!1),d=x}else d=u;let g=d.pathname||"/",N=g;if(c!=="/"){let x=c.replace(/^\//,"").split("/");N="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=z1(e,{pathname:N}),j=h0(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:un([c,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:un([c,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&j?P.createElement(Ml.Provider,{value:{location:wi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Zt.Pop}},j):j}function d0(){let e=x0(),t=o0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:o},n):null,null)}const f0=P.createElement(d0,null);class p0 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(gn.Provider,{value:this.props.routeContext},P.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function m0(e){let{routeContext:t,match:n,children:r}=e,o=P.useContext(Al);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(gn.Provider,{value:t},r)}function h0(e,t,n,r){var o;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=(o=n)==null?void 0:o.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||me(!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,g)=>{let N,v=!1,j=null,x=null;n&&(N=a&&p.route.id?a[p.route.id]:void 0,j=p.route.errorElement||f0,c&&(u<0&&g===0?(v=!0,x=null):u===g&&(v=!0,x=p.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,g+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(m0,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?P.createElement(p0,{location:n.location,revalidation:n.revalidation,component:j,error:N,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var Bm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Bm||{}),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 v0(e){let t=P.useContext(Al);return t||me(!1),t}function y0(e){let t=P.useContext(Lm);return t||me(!1),t}function g0(e){let t=P.useContext(gn);return t||me(!1),t}function Um(e){let t=g0(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function x0(){var e;let t=P.useContext(Fm),n=y0(sl.UseRouteError),r=Um(sl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function j0(){let{router:e}=v0(Bm.UseNavigateStable),t=Um(sl.UseNavigateStable),n=P.useRef(!1);return zm(()=>{n.current=!0}),P.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,wi({fromRouteId:t},l)))},[e,t])}function je(e){me(!1)}function N0(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Zt.Pop,navigator:l,static:s=!1,future:a}=e;Ii()&&me(!1);let c=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:c,navigator:l,static:s,future:wi({v7_relativeSplatPath:!1},a)}),[c,a,l,s]);typeof r=="string"&&(r=Er(r));let{pathname:d="/",search:p="",hash:g="",state:N=null,key:v="default"}=r,j=P.useMemo(()=>{let x=xr(d,c);return x==null?null:{location:{pathname:x,search:p,hash:g,state:N,key:v},navigationType:o}},[c,d,p,g,N,v,o]);return j==null?null:P.createElement(yn.Provider,{value:u},P.createElement(Ml.Provider,{children:n,value:j}))}function w0(e){let{children:t,location:n}=e;return c0(Oa(t),n)}new Promise(()=>{});function Oa(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,o)=>{if(!P.isValidElement(r))return;let l=[...t,o];if(r.type===P.Fragment){n.push.apply(n,Oa(r.props.children,l));return}r.type!==je&&me(!1),!r.props.index||!r.props.children||me(!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=Oa(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 al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function b0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function S0(e,t){return e.button===0&&(!t||t==="_self")&&!b0(e)}const E0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],k0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],C0="6";try{window.__reactRouterVersion=C0}catch{}const _0=P.createContext({isTransitioning:!1}),P0="startTransition",Ed=bs[P0];function O0(e){let{basename:t,children:n,future:r,window:o}=e,l=P.useRef();l.current==null&&(l.current=M1({window:o,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&&Ed?Ed(()=>c(p)):c(p)},[c,u]);return P.useLayoutEffect(()=>s.listen(d),[s,d]),P.createElement(N0,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const R0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",T0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,I0=P.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:l,replace:s,state:a,target:c,to:u,preventScrollReset:d,unstable_viewTransition:p}=t,g=$m(t,E0),{basename:N}=P.useContext(yn),v,j=!1;if(typeof u=="string"&&T0.test(u)&&(v=u,R0))try{let f=new URL(window.location.href),y=u.startsWith("//")?new URL(f.protocol+u):new URL(u),w=xr(y.pathname,N);y.origin===f.origin&&w!=null?u=w+y.search+y.hash:j=!0}catch{}let x=s0(u,{relative:o}),h=A0(u,{replace:s,state:a,target:c,preventScrollReset:d,relative:o,unstable_viewTransition:p});function m(f){r&&r(f),f.defaultPrevented||h(f)}return P.createElement("a",al({},g,{href:v||x,onClick:j||l?r:m,ref:n,target:c}))}),ae=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:l="",end:s=!1,style:a,to:c,unstable_viewTransition:u,children:d}=t,p=$m(t,k0),g=Ll(c,{relative:p.relative}),N=Di(),v=P.useContext(Lm),{navigator:j,basename:x}=P.useContext(yn),h=v!=null&&M0(g)&&u===!0,m=j.encodeLocation?j.encodeLocation(g).pathname:g.pathname,f=N.pathname,y=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(f=f.toLowerCase(),y=y?y.toLowerCase():null,m=m.toLowerCase()),y&&x&&(y=xr(y,x)||y);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let b=f===m||!s&&f.startsWith(m)&&f.charAt(w)==="/",E=y!=null&&(y===m||!s&&y.startsWith(m)&&y.charAt(m.length)==="/"),S={isActive:b,isPending:E,isTransitioning:h},O=b?r:void 0,A;typeof l=="function"?A=l(S):A=[l,b?"active":null,E?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(S):a;return P.createElement(I0,al({},p,{"aria-current":O,className:A,ref:n,style:z,to:c,unstable_viewTransition:u}),typeof d=="function"?d(S):d)});var Ra;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ra||(Ra={}));var kd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(kd||(kd={}));function D0(e){let t=P.useContext(Al);return t||me(!1),t}function A0(e,t){let{target:n,replace:r,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,c=kr(),u=Di(),d=Ll(e,{relative:s});return P.useCallback(p=>{if(S0(p,n)){p.preventDefault();let g=r!==void 0?r:ol(u)===ol(d);c(e,{replace:g,state:o,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[u,c,d,r,o,n,e,l,s,a])}function M0(e,t){t===void 0&&(t={});let n=P.useContext(_0);n==null&&me(!1);let{basename:r}=D0(Ra.useViewTransitionState),o=Ll(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=xr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=xr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ll(o.pathname,s)!=null||ll(o.pathname,l)!=null}function Wm(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),On=e=>typeof e=="string",Ge=e=>typeof e=="function",Eo=e=>On(e)||Ge(e)?e:null,Ta=e=>P.isValidElement(e)||On(e)||Ge(e)||bi(e);function L0(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Fl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:g,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=y=>{y.target===p.current&&(N(),h.removeEventListener("animationend",f),h.removeEventListener("animationcancel",f),x.current===0&&y.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),o?L0(h,d,l):d()};g||(u?m():(x.current=1,h.className+=` ${j}`,h.addEventListener("animationend",m)))},[g]),C.createElement(C.Fragment,null,a)}}function Cd(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 De=new Map;let Si=[];const Ia=new Set,F0=e=>Ia.forEach(t=>t(e)),Vm=()=>De.size>0;function qm(e,t){var n;if(t)return!((n=De.get(t))==null||!n.isToastActive(e));let r=!1;return De.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Hm(e,t){Ta(e)&&(Vm()||Si.push({content:e,options:t}),De.forEach(n=>{n.buildToast(e,t)}))}function _d(e,t){De.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 z0(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,g){let N=1,v=0,j=[],x=[],h=[],m=p;const f=new Map,y=new Set,w=()=>{h=Array.from(f.values()),y.forEach(S=>S())},b=S=>{x=S==null?[]:x.filter(O=>O!==S),w()},E=S=>{const{toastId:O,onOpen:A,updateId:z,children:Y}=S.props,V=z==null;S.staleId&&f.delete(S.staleId),f.set(O,S),x=[...x,S.props.toastId].filter(q=>q!==S.staleId),w(),g(Cd(S,V?"added":"updated")),V&&Ge(A)&&A(P.isValidElement(Y)&&Y.props)};return{id:d,props:m,observe:S=>(y.add(S),()=>y.delete(S)),toggle:(S,O)=>{f.forEach(A=>{O!=null&&O!==A.props.toastId||Ge(A.toggle)&&A.toggle(S)})},removeToast:b,toasts:f,clearQueue:()=>{v-=j.length,j=[]},buildToast:(S,O)=>{if((M=>{let{containerId:U,toastId:$,updateId:H}=M;const K=U?U!==d:d!==1,Q=f.has($)&&H==null;return K||Q})(O))return;const{toastId:A,updateId:z,data:Y,staleId:V,delay:q}=O,R=()=>{b(A)},L=z==null;L&&v++;const W={...m,style:m.toastStyle,key:N++,...Object.fromEntries(Object.entries(O).filter(M=>{let[U,$]=M;return $!=null})),toastId:A,updateId:z,data:Y,closeToast:R,isIn:!1,className:Eo(O.className||m.toastClassName),bodyClassName:Eo(O.bodyClassName||m.bodyClassName),progressClassName:Eo(O.progressClassName||m.progressClassName),autoClose:!O.isLoading&&(_=O.autoClose,k=m.autoClose,_===!1||bi(_)&&_>0?_:k),deleteToast(){const M=f.get(A),{onClose:U,children:$}=M.props;Ge(U)&&U(P.isValidElement($)&&$.props),g(Cd(M,"removed")),f.delete(A),v--,v<0&&(v=0),j.length>0?E(j.shift()):w()}};var _,k;W.closeButton=m.closeButton,O.closeButton===!1||Ta(O.closeButton)?W.closeButton=O.closeButton:O.closeButton===!0&&(W.closeButton=!Ta(m.closeButton)||m.closeButton);let I=S;P.isValidElement(S)&&!On(S.type)?I=P.cloneElement(S,{closeToast:R,toastProps:W,data:Y}):Ge(S)&&(I=S({closeToast:R,toastProps:W,data:Y}));const D={content:I,props:W,staleId:V};m.limit&&m.limit>0&&v>m.limit&&L?j.push(D):bi(q)?setTimeout(()=>{E(D)},q):E(D)},setProps(S){m=S},setToggle:(S,O)=>{f.get(S).toggle=O},isToastActive:S=>x.some(O=>O===S),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(s,l,F0);De.set(s,c);const u=c.observe(a);return Si.forEach(d=>Hm(d.content,d.options)),Si=[],()=>{u(),De.delete(s)}},setProps(a){var c;(c=De.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=De.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=P.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!o)return[];const s=new Map;return o.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:qm,count:o==null?void 0:o.length}}function B0(e){const[t,n]=P.useState(!1),[r,o]=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 g,N;function v(){n(!0)}function j(){n(!1)}function x(f){const y=l.current;s.canDrag&&y&&(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),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,y.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 o(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=De.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(g.id,g.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 y=l.current;s.canCloseOnClick=!0,s.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(s.start=f.clientX,s.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(s.start=f.clientY,s.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:y,bottom:w,left:b,right:E}=l.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=b&&f.clientX<=E&&f.clientY>=y&&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 U0(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:l,className:s,style:a,controlledProgress:c,progress:u,rtl:d,isIn:p,theme:g}=e;const N=l||c&&u===0,v={...a,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--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),x=Ge(s)?s({rtl:d,type:o,defaultClassName:j}):en(j,s),h={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&r()}};return C.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},C.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),C.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:x,style:v,...h}))}let $0=1;const Ym=()=>""+$0++;function W0(e){return e&&(On(e.toastId)||bi(e.toastId))?e.toastId:Ym()}function ei(e,t){return Hm(e,t),t.toastId}function cl(e,t){return{...t,type:t&&t.type||e,toastId:W0(t)}}function eo(e){return(t,n)=>ei(t,cl(e,n))}function J(e,t){return ei(e,cl("default",t))}J.loading=(e,t)=>ei(e,cl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),J.promise=function(e,t,n){let r,{pending:o,error:l,success:s}=t;o&&(r=On(o)?J.loading(o,n):J.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(d,p,g)=>{if(p==null)return void J.dismiss(r);const N={type:d,...a,...n,data:g},v=On(p)?{render:p}:p;return r?J.update(r,{...N,...v}):J(v.render,{...N,...v}),g},u=Ge(e)?e():e;return u.then(d=>c("success",s,d)).catch(d=>c("error",l,d)),u},J.success=eo("success"),J.info=eo("info"),J.error=eo("error"),J.warning=eo("warning"),J.warn=J.warning,J.dark=(e,t)=>ei(e,cl("default",{theme:"dark",...t})),J.dismiss=function(e){(function(t){var n;if(Vm()){if(t==null||On(n=t)||bi(n))De.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=De.get(t.containerId);r?r.removeToast(t.id):De.forEach(o=>{o.removeToast(t.id)})}}else Si=Si.filter(r=>t!=null&&r.options.toastId!==t)})(e)},J.clearWaitingQueue=function(e){e===void 0&&(e={}),De.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},J.isActive=qm,J.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var l;let{containerId:s}=o;return(l=De.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:Ym()};l.toastId!==e&&(l.staleId=e);const s=l.render||o;delete l.render,ei(s,l)}},J.done=e=>{J.update(e,{progress:1})},J.onChange=function(e){return Ia.add(e),()=>{Ia.delete(e)}},J.play=e=>_d(!0,e),J.pause=e=>_d(!1,e);const V0=typeof window<"u"?P.useLayoutEffect:P.useEffect,to=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return C.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},ws={info:function(e){return C.createElement(to,{...e},C.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 C.createElement(to,{...e},C.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 C.createElement(to,{...e},C.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 C.createElement(to,{...e},C.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 C.createElement("div",{className:"Toastify__spinner"})}},q0=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:l}=B0(e),{closeButton:s,children:a,autoClose:c,onClick:u,type:d,hideProgressBar:p,closeToast:g,transition:N,position:v,className:j,style:x,bodyClassName:h,bodyStyle:m,progressClassName:f,progressStyle:y,updateId:w,role:b,progress:E,rtl:S,toastId:O,deleteToast:A,isIn:z,isLoading:Y,closeOnClick:V,theme:q}=e,R=en("Toastify__toast",`Toastify__toast-theme--${q}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":V}),L=Ge(j)?j({rtl:S,position:v,type:d,defaultClassName:R}):en(R,j),W=function(D){let{theme:M,type:U,isLoading:$,icon:H}=D,K=null;const Q={theme:M,type:U};return H===!1||(Ge(H)?K=H({...Q,isLoading:$}):P.isValidElement(H)?K=P.cloneElement(H,Q):$?K=ws.spinner():(X=>X in ws)(U)&&(K=ws[U](Q))),K}(e),_=!!E||!c,k={closeToast:g,type:d,theme:q};let I=null;return s===!1||(I=Ge(s)?s(k):P.isValidElement(s)?P.cloneElement(s,k):function(D){let{closeToast:M,theme:U,ariaLabel:$="close"}=D;return C.createElement("button",{className:`Toastify__close-button Toastify__close-button--${U}`,type:"button",onClick:H=>{H.stopPropagation(),M(H)},"aria-label":$},C.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},C.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"})))}(k)),C.createElement(N,{isIn:z,done:A,position:v,preventExitTransition:n,nodeRef:r,playToast:l},C.createElement("div",{id:O,onClick:u,"data-in":z,className:L,...o,style:x,ref:r},C.createElement("div",{...z&&{role:b},className:Ge(h)?h({type:d}):en("Toastify__toast-body",h),style:m},W!=null&&C.createElement("div",{className:en("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Y})},W),C.createElement("div",null,a)),I,C.createElement(U0,{...w&&!_?{key:`pb-${w}`}:{},rtl:S,theme:q,delay:c,isRunning:t,isIn:z,closeToast:g,hide:p,type:d,style:y,className:f,controlledProgress:_,progress:E||0})))},zl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},H0=Fl(zl("bounce",!0));Fl(zl("slide",!0));Fl(zl("zoom"));Fl(zl("flip"));const Y0={position:"top-right",transition:H0,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function K0(e){let t={...Y0,...e};const n=e.stacked,[r,o]=P.useState(!0),l=P.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=z0(t),{className:u,style:d,rtl:p,containerId:g}=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,Eo(u))}function v(){n&&(o(!0),J.play())}return V0(()=>{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,y=0;Array.from(x).reverse().forEach((w,b)=>{const E=w;E.classList.add("Toastify__toast--stacked"),b>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=m?"top":"bot");const S=f*(r?.2:1)+(r?0:h*b);E.style.setProperty("--y",`${m?S:-1*S}px`),E.style.setProperty("--g",`${h}`),E.style.setProperty("--s",""+(1-(r?y:0))),f+=E.offsetHeight,y+=.025})}},[r,c,n]),C.createElement("div",{ref:l,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),J.pause())},onMouseLeave:v},s((j,x)=>{const h=x.length?{...d}:{...d,pointerEvents:"none"};return C.createElement("div",{className:N(j),style:h,key:`container-${j}`},x.map(m=>{let{content:f,props:y}=m;return C.createElement(q0,{...y,stacked:n,collapseAll:v,isIn:a(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},f)}))}))}const Te=()=>{const e=new Date().getFullYear();return i.jsx(i.Fragment,{children:i.jsxs("div",{children:[i.jsx("div",{className:"footer_section layout_padding",children:i.jsxs("div",{className:"container",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12"})}),i.jsx("div",{className:"footer_section_2",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),i.jsx("div",{className:"footer_menu",children:i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx(ae,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),i.jsx("li",{children:i.jsx(ae,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),i.jsx("li",{children:i.jsx(ae,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),i.jsx("li",{children:i.jsx(ae,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),i.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"})]}),i.jsxs("div",{className:"col-md-4",children:[i.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),i.jsxs("div",{className:"form-group",children:[i.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),i.jsx("div",{className:"subscribe_bt",children:i.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),i.jsx("div",{className:"social_icon",children:i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),i.jsx("li",{children:i.jsx("a",{href:"#",children:i.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),i.jsx("div",{className:"copyright_section",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Q0="/assets/logo-Cb1x1exd.png",be=()=>{var o,l;const{user:e}=He(s=>({...s.auth})),t=xt(),n=kr(),r=()=>{t(P1()),n("/")};return i.jsx(i.Fragment,{children:i.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:i.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[i.jsxs("div",{className:"d-flex align-items-center",children:[i.jsx("img",{src:Q0,alt:"logo",width:"75",height:"75",className:"img-fluid"}),i.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),i.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[i.jsxs("ul",{className:"navbar-nav ml-auto",children:[i.jsx("li",{className:"nav-item active",children:i.jsx(ae,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),i.jsx("li",{className:"nav-item",children:i.jsx(ae,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),i.jsx("li",{className:"nav-item",children:i.jsx(ae,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),i.jsx("li",{className:"nav-item",children:i.jsx(ae,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),i.jsx("li",{className:"nav-item",children:i.jsx(ae,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),i.jsx("li",{className:"nav-item",children:i.jsx(ae,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(o=e==null?void 0:e.result)!=null&&o._id?i.jsx(ae,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):i.jsx(ae,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?i.jsx(ae,{to:"/login",children:i.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):i.jsx(ae,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},G0=()=>i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{children:[i.jsx("div",{className:"header_section",children:i.jsx("div",{className:"banner_section layout_padding",children:i.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[i.jsxs("div",{className:"carousel-inner",children:[i.jsx("div",{className:"carousel-item active",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),i.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),i.jsx("div",{className:"carousel-item",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),i.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),i.jsx("div",{className:"carousel-item",children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-sm-12",children:i.jsxs("div",{className:"banner_taital_main",children:[i.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),i.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),i.jsxs("div",{className:"btn_main",children:[i.jsx("div",{className:"started_text active",children:i.jsx("a",{href:"#",children:"Contact US"})}),i.jsx("div",{className:"started_text",children:i.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),i.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:i.jsx("i",{className:"fa fa-angle-left"})}),i.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:i.jsx("i",{className:"fa fa-angle-right"})})]})})}),i.jsx("div",{className:"services_section layout_padding",children:i.jsxs("div",{className:"container-fluid",children:[i.jsx("div",{className:"row",children:i.jsxs("div",{className:"col-sm-12",children:[i.jsx("h1",{className:"services_taital",children:"Our Services"}),i.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),i.jsx("div",{className:"services_section_2",children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main active",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-1.png"})}),i.jsx("h4",{className:"development_text",children:"Dedication Services"}),i.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"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-2.png"})}),i.jsx("h4",{className:"development_text",children:"Building work Reports"}),i.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-3.png"})}),i.jsx("h4",{className:"development_text",children:"Reporting continuously"}),i.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})}),i.jsx("div",{className:"col-lg-3 col-sm-6",children:i.jsxs("div",{className:"box_main",children:[i.jsx("div",{className:"service_img",children:i.jsx("img",{src:"images/icon-4.png"})}),i.jsx("h4",{className:"development_text",children:"Manage your investment "}),i.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"}),i.jsx("div",{className:"readmore_bt",children:i.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),i.jsx(Te,{})]}),J0=()=>i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsxs("div",{className:"about_section layout_padding",children:[i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-6",children:[i.jsx("h1",{className:"about_taital",children:"About Us"}),i.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"," "]}),i.jsx("div",{className:"read_bt_1",children:i.jsx("a",{href:"#",children:"Read More"})})]}),i.jsx("div",{className:"col-md-6",children:i.jsx("div",{className:"about_img",children:i.jsx("div",{className:"video_bt",children:i.jsx("div",{className:"play_icon",children:i.jsx("img",{src:"images/play-icon.png"})})})})})]})}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{})]}),i.jsx(Te,{})]}),X0=()=>i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsxs("div",{className:"contact_section layout_padding",children:[i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12",children:i.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),i.jsx("div",{className:"container-fluid",children:i.jsx("div",{className:"contact_section_2",children:i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-6",children:i.jsx("form",{action:!0,children:i.jsxs("div",{className:"mail_section_1",children:[i.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),i.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),i.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),i.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),i.jsx("div",{className:"send_bt",children:i.jsx("a",{href:"#",children:"SEND"})})]})})}),i.jsx("div",{className:"col-md-6 padding_left_15",children:i.jsx("div",{className:"contact_img",children:i.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),i.jsx(Te,{})]});var Ot=function(){return Ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=P.useState(bj),[n,r]=P.useState(!1),{loading:o,error:l}=He(w=>({...w.auth})),{title:s,email:a,password:c,firstName:u,middleName:d,lastName:p,confirmPassword:g,termsconditions:N,userType:v}=e,j=xt(),x=kr();P.useEffect(()=>{l&&J.error(l)},[l]),P.useEffect(()=>{r(s!=="None"&&a&&c&&u&&d&&p&&g&&N&&v!=="")},[s,a,c,u,d,p,g,N,v]);const h=w=>{if(w.preventDefault(),c!==g)return J.error("Password should match");n?j(go({formValue:e,navigate:x,toast:J})):J.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:E,type:S,checked:O}=w.target;t(S==="checkbox"?A=>({...A,[b]:O}):A=>({...A,[b]:b==="email"||b==="password"||b==="confirmPassword"?E:m(E)}))},y=w=>{t(b=>({...b,userType:w.target.value}))};return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"mb-4",children:[i.jsx("h2",{className:"h3",children:"Registration"}),i.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),i.jsx("hr",{})]})})}),i.jsx("form",{onSubmit:h,children:i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsxs("label",{className:"form-label",children:["Please select the role. ",i.jsx("br",{}),i.jsx("br",{})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:y,required:!0}),i.jsx("label",{className:"form-check-label",children:"Lender"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:y,required:!0}),i.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),i.jsx("br",{}),i.jsx("br",{})]})]})}),i.jsxs("div",{className:"col-12",children:[i.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:f,children:[i.jsx("option",{value:"None",children:"Please Select Title"}),i.jsx("option",{value:"Dr",children:"Dr"}),i.jsx("option",{value:"Prof",children:"Prof"}),i.jsx("option",{value:"Mr",children:"Mr"}),i.jsx("option",{value:"Miss",children:"Miss"})]}),i.jsx("br",{})]}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:u,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),i.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),i.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),i.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",value:c,name:"password",onChange:f,placeholder:"Password",required:"required"}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-check",children:[i.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),i.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",i.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&i.jsx(Km.Bars,{}),"Sign up"]})})})]})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",i.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})})}),i.jsx(Te,{})]})},Ej={email:"",password:""},kj=()=>{const[e,t]=P.useState(Ej),{loading:n,error:r}=He(d=>({...d.auth})),{email:o,password:l}=e,s=xt(),a=kr();P.useEffect(()=>{r&&J.error(r)},[r]);const c=d=>{d.preventDefault(),o&&l&&s(yo({formValue:e,navigate:a,toast:J}))},u=d=>{let{name:p,value:g}=d.target;t({...e,[p]:g})};return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:i.jsx("div",{className:"text-bg-primary",children:i.jsxs("div",{className:"px-4",children:[i.jsx("hr",{className:"border-primary-subtle mb-4"}),i.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),i.jsx("div",{className:"text-endx",children:i.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:i.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"})})})]})})}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"mb-4",children:i.jsx("h2",{className:"h3",children:"Please Login"})})})}),i.jsx("form",{method:"POST",children:i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12"}),i.jsx("div",{className:"col-12"}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:u,required:!0}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:u,required:!0}),i.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-check",children:[i.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),i.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&i.jsx(Km.Bars,{}),"Sign In"]})})})]})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",i.jsx(ae,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),i.jsx(ae,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})})}),i.jsx(Te,{})]})},ko="/assets/samplepic-BM_cnzgz.jpg";var Qm={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(rh,function(){return function(n){function r(l){if(o[l])return o[l].exports;var s=o[l]={exports:{},id:l,loaded:!1};return n[l].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var o={};return r.m=n,r.c=o,r.p="",r(0)}([function(n,r,o){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),g=1;g2?p-2:0),N=2;N1){for(var q=Array(V),R=0;R"u"||S.$$typeof!==h)){var W=typeof y=="function"?y.displayName||y.name||"Unknown":y;O&&c(S,W),A&&u(S,W)}return f(y,O,A,z,Y,N.current,S)},f.createFactory=function(y){var w=f.createElement.bind(null,y);return w.type=y,w},f.cloneAndReplaceKey=function(y,w){var b=f(y.type,w,y.ref,y._self,y._source,y._owner,y.props);return b},f.cloneElement=function(y,w,b){var E,S=g({},y.props),O=y.key,A=y.ref,z=y._self,Y=y._source,V=y._owner;if(w!=null){s(w)&&(A=w.ref,V=N.current),a(w)&&(O=""+w.key);var q;y.type&&y.type.defaultProps&&(q=y.type.defaultProps);for(E in w)x.call(w,E)&&!m.hasOwnProperty(E)&&(w[E]===void 0&&q!==void 0?S[E]=q[E]:S[E]=w[E])}var R=arguments.length-2;if(R===1)S.children=b;else if(R>1){for(var L=Array(R),W=0;W1?u-1:0),p=1;p2?d-2:0),g=2;g.")}return E}function u(b,E){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var S=y.uniqueKey||(y.uniqueKey={}),O=c(E);if(!S[O]){S[O]=!0;var A="";b&&b._owner&&b._owner!==g.current&&(A=" 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',O,A,N.getCurrentStackAddendum(b))}}}function d(b,E){if(typeof b=="object"){if(Array.isArray(b))for(var S=0;S1?$-1:0),K=1;K<$;K++)H[K-1]=arguments[K];if(U!==_&&U!==null)l.env.NODE_ENV!=="production"&&p(!1,"bind(): React component methods may only be bound to the component instance. See %s",D);else if(!H.length)return l.env.NODE_ENV!=="production"&&p(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",D),I;var Q=M.apply(I,arguments);return Q.__reactBoundContext=_,Q.__reactBoundMethod=k,Q.__reactBoundArguments=H,Q}}return I}function O(_){for(var k=_.__reactAutoBindPairs,I=0;I"u"||D===null)return""+D;var M=V(D);if(M==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return M}function R(D){var M=q(D);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function L(D){return D.constructor&&D.constructor.name?D.constructor.name:k}var W=typeof Symbol=="function"&&Symbol.iterator,_="@@iterator",k="<>",I={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:y(),instanceOf:w,node:O(),objectOf:E,oneOf:b,oneOfType:S,shape:A};return j.prototype=Error.prototype,I.checkPropTypes=d,I.PropTypes=I,I}}).call(r,o(1))},function(n,r){function o(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:o,unescape:l};n.exports=s},function(n,r,o){(function(l){var s=o(5),a=o(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 y=f.instancePool.pop();return f.call(y,h,m),y}return new f(h,m)},d=function(h,m,f){var y=this;if(y.instancePool.length){var w=y.instancePool.pop();return y.call(w,h,m,f),w}return new y(h,m,f)},p=function(h,m,f,y){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,h,m,f,y),b}return new w(h,m,f,y)},g=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")},o=xt(),{status:l,error:s}=He(y=>y.property),{user:a}=He(y=>({...y.auth})),[c,u]=P.useState({address:"",city:"",state:"",county:"",zip:"",parcel:"",subdivision:"",legal:"",costpersqft:"",propertyType:"",lotacres:"",yearBuild:"",totallivingsqft:"",beds:"",baths:"",stories:"",garage:"",garagesqft:"",poolspa:"",fireplaces:"",ac:"",heating:"",buildingstyle:"",sitevacant:"",extwall:"",roofing:"",propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],images:[],googleMapLink:"",totalSqft:""}),[d,p]=P.useState(!1),g=(y,w)=>{const b=[...c.images];b[w].file=y.base64,u({...c,images:b})},N=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},v=y=>{const w=c.images.filter((b,E)=>E!==y);u({...c,images:w})},j=(y,w)=>{const b=[...c.images];b[y].title=w.target.value,u({...c,images:b})},x=(y,w,b)=>{const{name:E,value:S}=y.target;if(b==="propertyTaxInfo"){const O=[...c.propertyTaxInfo];O[w][E]=S,u({...c,propertyTaxInfo:O})}else u({...c,[E]:S})},h=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=y=>{const w=c.propertyTaxInfo.filter((b,E)=>E!==y);u({...c,propertyTaxInfo:w})},f=()=>{var y,w,b,E,S,O;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 A={...c,userfirstname:(y=a==null?void 0:a.result)==null?void 0:y.firstName,usermiddlename:(w=a==null?void 0:a.result)==null?void 0:w.middleName,userlastname:(b=a==null?void 0:a.result)==null?void 0:b.lastName,usertitle:(E=a==null?void 0:a.result)==null?void 0:E.title,useremail:(S=a==null?void 0:a.result)==null?void 0:S.email,userId:(O=a==null?void 0:a.result)==null?void 0:O.userId};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?A.propertyTaxInfo=c.propertyTaxInfo:A.propertyTaxInfo=[],o(wo(A)),p(!0)}else J.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return P.useEffect(()=>{d&&(l==="succeeded"?(J.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),p(!1)):l==="failed"&&(J.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),p(!1)))},[l,s,d]),i.jsx(i.Fragment,{children:i.jsxs("div",{className:"container tabs-wrap",children:[i.jsx(be,{}),i.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[i.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),i.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),i.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:i.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),i.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&i.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[i.jsxs("form",{children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),i.jsx("hr",{}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Address",i.jsx("input",{type:"text",className:"form-control",name:"address",placeholder:"Property Address",value:c.address,onChange:x,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["City",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:x,placeholder:"city",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["State",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select State"}),i.jsx("option",{value:"Alaska",children:"Alaska"}),i.jsx("option",{value:"Alabama",children:"Alabama"}),i.jsx("option",{value:"Arkansas",children:"Arkansas"}),i.jsx("option",{value:"Arizona",children:"Arizona"}),i.jsx("option",{value:"California",children:"California"}),i.jsx("option",{value:"Colorado",children:"Colorado"}),i.jsx("option",{value:"Connecticut",children:"Connecticut"}),i.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),i.jsx("option",{value:"Delaware",children:"Delaware"}),i.jsx("option",{value:"Florida",children:"Florida"}),i.jsx("option",{value:"Georgia",children:"Georgia"}),i.jsx("option",{value:"Hawaii",children:"Hawaii"}),i.jsx("option",{value:"Iowa",children:"Iowa"}),i.jsx("option",{value:"Idaho",children:"Idaho"}),i.jsx("option",{value:"Illinois",children:"Illinois"}),i.jsx("option",{value:"Indiana",children:"Indiana"}),i.jsx("option",{value:"Kansas",children:"Kansas"}),i.jsx("option",{value:"Kentucky",children:"Kentucky"}),i.jsx("option",{value:"Louisiana",children:"Louisiana"}),i.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),i.jsx("option",{value:"Maryland",children:"Maryland"}),i.jsx("option",{value:"Michigan",children:"Michigan"}),i.jsx("option",{value:"Minnesota",children:"Minnesota"}),i.jsx("option",{value:"Missouri",children:"Missouri"}),i.jsx("option",{value:"Mississippi",children:"Mississippi"}),i.jsx("option",{value:"Montana",children:"Montana"}),i.jsx("option",{value:"North Carolina",children:"North Carolina"}),i.jsx("option",{value:"North Dakota",children:"North Dakota"}),i.jsx("option",{value:"Nebraska",children:"Nebraska"}),i.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),i.jsx("option",{value:"New Jersey",children:"New Jersey"}),i.jsx("option",{value:"New Mexico",children:"New Mexico"}),i.jsx("option",{value:"Nevada",children:"Nevada"}),i.jsx("option",{value:"New York",children:"New York"}),i.jsx("option",{value:"Ohio",children:"Ohio"}),i.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),i.jsx("option",{value:"Oregon",children:"Oregon"}),i.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),i.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),i.jsx("option",{value:"South Carolina",children:"South Carolina"}),i.jsx("option",{value:"South Dakota",children:"South Dakota"}),i.jsx("option",{value:"Tennessee",children:"Tennessee"}),i.jsx("option",{value:"Texas",children:"Texas"}),i.jsx("option",{value:"Utah",children:"Utah"}),i.jsx("option",{value:"Virginia",children:"Virginia"}),i.jsx("option",{value:"Vermont",children:"Vermont"}),i.jsx("option",{value:"Washington",children:"Washington"}),i.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),i.jsx("option",{value:"West Virginia",children:"West Virginia"}),i.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["County",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select County"}),i.jsx("option",{value:"Abbeville",children:"Abbeville"}),i.jsx("option",{value:"Aiken",children:"Aiken"}),i.jsx("option",{value:"Allendale",children:"Allendale"}),i.jsx("option",{value:"Anderson",children:"Anderson"}),i.jsx("option",{value:"Bamberg",children:"Bamberg"}),i.jsx("option",{value:"Barnwell",children:"Barnwell"}),i.jsx("option",{value:"Beaufort",children:"Beaufort"}),i.jsx("option",{value:"Berkeley",children:"Berkeley"}),i.jsx("option",{value:"Calhoun",children:"Calhoun"}),i.jsx("option",{value:"Charleston",children:"Charleston"}),i.jsx("option",{value:"Cherokee",children:"Cherokee"}),i.jsx("option",{value:"Chester",children:"Chester"}),i.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),i.jsx("option",{value:"Clarendon",children:"Clarendon"}),i.jsx("option",{value:"Colleton",children:"Colleton"}),i.jsx("option",{value:"Darlington",children:"Darlington"}),i.jsx("option",{value:"Dillon",children:"Dillon"}),i.jsx("option",{value:"Dorchester",children:"Dorchester"}),i.jsx("option",{value:"Edgefield",children:"Edgefield"}),i.jsx("option",{value:"Fairfield",children:"Fairfield"}),i.jsx("option",{value:"Florence",children:"Florence"}),i.jsx("option",{value:"Georgetown",children:"Georgetown"}),i.jsx("option",{value:"Greenville",children:"Greenville"}),i.jsx("option",{value:"Greenwood",children:"Greenwood"}),i.jsx("option",{value:"Hampton",children:"Hampton"}),i.jsx("option",{value:"Horry",children:"Horry"}),i.jsx("option",{value:"Jasper",children:"Jasper"}),i.jsx("option",{value:"Kershaw",children:"Kershaw"}),i.jsx("option",{value:"Lancaster",children:"Lancaster"}),i.jsx("option",{value:"Laurens",children:"Laurens"}),i.jsx("option",{value:"Lee",children:"Lee"}),i.jsx("option",{value:"Lexington",children:"Lexington"}),i.jsx("option",{value:"Marion",children:"Marion"}),i.jsx("option",{value:"Marlboro",children:"Marlboro"}),i.jsx("option",{value:"McCormick",children:"McCormick"}),i.jsx("option",{value:"Newberry",children:"Newberry"}),i.jsx("option",{value:"Oconee",children:"Oconee"}),i.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),i.jsx("option",{value:"Pickens",children:"Pickens"}),i.jsx("option",{value:"Richland",children:"Richland"}),i.jsx("option",{value:"Saluda",children:"Saluda"}),i.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),i.jsx("option",{value:"Sumter",children:"Sumter"}),i.jsx("option",{value:"Union",children:"Union"}),i.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),i.jsx("option",{value:"York",children:"York"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Zip",i.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:x,placeholder:"zip",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Parcel",i.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:x,placeholder:"parcel",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Sub division",i.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:x,placeholder:"subdivision",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",i.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:x,placeholder:"legal",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",i.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:x,placeholder:"Cost per SQFT",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Please Select Property Type",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Property Type"}),i.jsx("option",{value:"Residential",children:"Residential"}),i.jsx("option",{value:"Land",children:"Land"}),i.jsx("option",{value:"Commercial",children:"Commercial"}),i.jsx("option",{value:"Industrial",children:"Industrial"}),i.jsx("option",{value:"Water",children:"Water"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",i.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:x,placeholder:"Lot Acres/Sqft",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Year Build",i.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:x,placeholder:"Year Build",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",i.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:x,placeholder:"Total Living SQFT",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Beds",i.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:x,placeholder:"Beds",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Baths",i.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:x,placeholder:"Baths",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Please Select Stories",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Stories"}),i.jsx("option",{value:"0",children:"0"}),i.jsx("option",{value:"1",children:"1"}),i.jsx("option",{value:"2",children:"2"}),i.jsx("option",{value:"3",children:"3"}),i.jsx("option",{value:"4",children:"4"}),i.jsx("option",{value:"5",children:"5"}),i.jsx("option",{value:"6",children:"6"}),i.jsx("option",{value:"7",children:"7"}),i.jsx("option",{value:"8",children:"8"}),i.jsx("option",{value:"9",children:"9"}),i.jsx("option",{value:"10",children:"10"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Please Select Garage",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Garage"}),i.jsx("option",{value:"0",children:"0"}),i.jsx("option",{value:"1",children:"1"}),i.jsx("option",{value:"2",children:"2"}),i.jsx("option",{value:"3",children:"3"}),i.jsx("option",{value:"4",children:"4"}),i.jsx("option",{value:"5",children:"5"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",i.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:x,placeholder:"Garage SQFT",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Please Select Pool/SPA",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Pool/SPA"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),i.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),i.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),i.jsx("option",{value:"4",children:"None"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Please Select Fire places",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Fire places"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"yes",children:"Yes"}),i.jsx("option",{value:"no",children:"No"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Please Select A/C",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select A/C"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Central",children:"Central"}),i.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),i.jsx("option",{value:"Warm Air",children:"Warm Air"}),i.jsx("option",{value:"Forced Air",children:"Forced Air"}),i.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Please Select Heating",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Heating"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Central",children:"Central"}),i.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),i.jsx("option",{value:"Warm Air",children:"Warm Air"}),i.jsx("option",{value:"Forced Air",children:"Forced Air"}),i.jsx("option",{value:"Gas",children:"Gas"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Please Select Building Style",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Building Style"}),i.jsx("option",{value:"One Story",children:"One Story"}),i.jsx("option",{value:"Craftsman",children:"Craftsman"}),i.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),i.jsx("option",{value:"Split-Level",children:"Split-Level"}),i.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),i.jsx("option",{value:"Stick Built",children:"Stick Built"}),i.jsx("option",{value:"Single wide",children:"Single wide"}),i.jsx("option",{value:"Double wide",children:"Double wide"}),i.jsx("option",{value:"Duplex",children:"Duplex"}),i.jsx("option",{value:"Triplex",children:"Triplex"}),i.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),i.jsx("option",{value:"Two Story",children:"Two Story"}),i.jsx("option",{value:"Victorian",children:"Victorian"}),i.jsx("option",{value:"Tudor",children:"Tudor"}),i.jsx("option",{value:"Modern",children:"Modern"}),i.jsx("option",{value:"Art Deco",children:"Art Deco"}),i.jsx("option",{value:"Bungalow",children:"Bungalow"}),i.jsx("option",{value:"Mansion",children:"Mansion"}),i.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),i.jsx("option",{value:"Conventional",children:"Conventional"}),i.jsx("option",{value:"Ranch",children:"Ranch"}),i.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),i.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),i.jsx("option",{value:"Contemporary",children:"Contemporary"}),i.jsx("option",{value:"Colonial",children:"Colonial"}),i.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Site Vacant",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Site Vacant"}),i.jsx("option",{value:"Yes",children:"Yes"}),i.jsx("option",{value:"No",children:"No"})]})]})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsxs("div",{className:"col-md-4",children:["Please Select Ext Wall",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Ext Wall"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Brick",children:"Brick"}),i.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),i.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),i.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),i.jsx("option",{value:"Stone",children:"Stone"}),i.jsx("option",{value:"Masonry",children:"Masonry"}),i.jsx("option",{value:"Metal",children:"Metal"}),i.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),i.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),i.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),i.jsx("option",{value:"Gable",children:"Gable"}),i.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),i.jsx("option",{value:"Frame",children:"Frame"}),i.jsx("option",{value:"Siding",children:"Siding"}),i.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),i.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),i.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),i.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),i.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),i.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),i.jsxs("div",{className:"col-md-4",children:["Please Select Roofing",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:x,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Roofing"}),i.jsx("option",{value:"N/A",children:"N/A"}),i.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),i.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),i.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),i.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),i.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),i.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),i.jsx("option",{value:"Metal",children:"Metal"}),i.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),i.jsx("option",{value:"Slate",children:"Slate"}),i.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),i.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",i.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:x,placeholder:"Total SQFT",required:!0})]})})]}),i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[i.jsx("br",{}),"Property Tax Information"]}),i.jsx("hr",{}),c.propertyTaxInfo.map((y,w)=>i.jsxs("div",{className:"row gy-4",children:[i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",i.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",placeholder:"Property Tax Owned",value:y.propertytaxowned,onChange:b=>x(b,w,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Owed Year",i.jsx("input",{type:"text",className:"form-control",name:"ownedyear",placeholder:"Owed Year",value:y.ownedyear,onChange:b=>x(b,w,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",i.jsx("input",{type:"text",className:"form-control",name:"taxassessed",placeholder:"Tax Assessed",value:y.taxassessed,onChange:b=>x(b,w,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-2",children:i.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",i.jsx("input",{type:"text",className:"form-control",name:"taxyear",placeholder:"Tax Year",value:y.taxyear,onChange:b=>x(b,w,"propertyTaxInfo"),required:!0})]})}),i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"form-floating mb-2",children:[i.jsx("br",{}),i.jsx("button",{className:"btn btn-danger",onClick:()=>m(w),style:{height:"25px",width:"35px"},children:"X"})]})})]},w)),i.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),i.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&i.jsxs("div",{role:"tabpanel",className:"tab-pane active",children:[i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),i.jsxs("form",{children:[c.images.map((y,w)=>i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsx("input",{type:"text",className:"form-control",value:y.title,placeholder:"Image Title",onChange:b=>j(w,b)})}),i.jsx("div",{className:"col-md-4",children:i.jsx(Gm,{multiple:!1,onDone:b=>g(b,w)})}),i.jsx("div",{className:"col-md-4",children:i.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>v(w),children:"Delete"})}),y.file&&i.jsx("div",{className:"col-md-12",children:i.jsx("img",{src:y.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},w)),i.jsx("button",{type:"button",className:"btn btn-primary",onClick:N,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),i.jsx("hr",{}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:i.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),i.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:x,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&i.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})]}),i.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",i.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&i.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Accounting details"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Close Date A to B",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Close Date B to C",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Turn Time",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsxs("div",{className:"form-floating mb-3",children:["Present Condition of the property :",i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio1",defaultValue:"option1"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"P1-"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P1"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P1+"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P2-"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P2"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P2+"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P3-"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P3"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"P3+"})]})]}),i.jsxs("div",{className:"form-floating mb-3",children:["Renovation Risk :",i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio1",defaultValue:"option1"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio1",children:"1"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"2"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"3"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"4"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"5"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"6"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"7"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"8"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"9"})]}),i.jsxs("div",{className:"form-check form-check-inline",children:[i.jsx("input",{className:"form-check-input",type:"radio",name:"inlineRadioOptions",id:"inlineRadio2",defaultValue:"option2"}),i.jsx("label",{className:"form-check-label",htmlFor:"inlineRadio2",children:"10"})]})]})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Purchase Details"}),i.jsx("div",{className:"row gy-3",children:i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Purchase price",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})})}),i.jsx("span",{style:{color:"#fda417",border:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Closing Fees - Settlement Fee",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Closing Fees - Owner's Title Insurance",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Courier Fees",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Wire Fee",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["E recording Fee",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Recording Fee",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsx("div",{className:"row gy-3",children:i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Tax",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})})}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Credits received on settlement:",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total credits received on settlement",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsxs("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})}),i.jsx("div",{className:"row gy-3"})]})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Cash Adjustments:"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total Cash Adjustments on Settlement",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Total Cash Required/(Surplus) on Settlement",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Incidental Cost:"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Accounting Fees",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Bank Charges",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Legal Fees",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Property Taxes",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Travel Expenses",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]}),i.jsxs("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})}),i.jsx("div",{className:"row gy-3"})]})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Carry Costs:"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Electricity",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Gas charge",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["HOA Fee",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Insurance",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Interest on Loans",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Internet",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Loan Payment",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Water",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]}),i.jsxs("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Costs"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})}),i.jsx("div",{className:"row gy-3"})]})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Reno and Holding Costs"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Demolition: Removing existing structures or finishes.",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Framing: Making structural changes or additions.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Plumbing: Installing or modifying plumbing systems.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Electrical: Updating wiring and fixtures.",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["HVAC: Installing or upgrading heating and cooling systems.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Insulation: Adding or replacing insulation.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Drywall: Hanging and finishing drywall.",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Interior Finishes: Painting, flooring, cabinetry, and fixtures.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Exterior Work: Addressing siding, roofing, or landscaping, if applicable.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Final Inspections: Ensuring everything meets codes.",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:["Punch List: Completing any remaining task",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})})]}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsxs("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})}),i.jsx("div",{className:"row gy-3"})]})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Selling Price B to C"}),i.jsx("span",{style:{color:"#fda417",border:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Buyers Agent Commission",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Sellers Agent Commission",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Home Warranty",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Document Preparation",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Excise Tax",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Legal Fees",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Wire Fees/courier Fees",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["County Taxes",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["HOA Fee",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Payoff of 1st Mortgage",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Payoff of 2nd Mortgage",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Payoff 3rd Mortgage",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Credits received on settlement:"}),i.jsx("span",{style:{color:"#fda417",border:"#fda417",fontSize:"14px",fontWeight:"bold"}}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Credits received",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Credits received",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Credits received",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Credits received on Settlement"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})})]}),i.jsx("hr",{}),i.jsx("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"row gy-3",children:i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Gross Proceeds per HUD",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})})})}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Income Statement Adjustments:"}),i.jsx("span",{style:{color:"#fda417",border:"#fda417",fontSize:"14px",fontWeight:"bold"}}),i.jsxs("div",{className:"row gy-3",children:[i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Income Statement",i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Income Statement",i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Income Statement",i.jsx("input",{type:"text",className:"form-control",name:"city",required:!0})]})})]}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Net B to C Sale Value"}),i.jsx("span",{style:{color:"#fda417",border:"#fda417",fontSize:"14px",fontWeight:"bold"}}),i.jsx("div",{className:"col-md-4",children:i.jsx("div",{className:"form-floating mb-3",children:i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})})})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"NET PROFIT COMPUTATION"}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Prior to Closing"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Short Term Rental"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Other Income"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Insurance Claim"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Long Term Rental"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})}),i.jsx("br",{}),i.jsx("div",{className:"card col-md-12",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:i.jsx("div",{className:"col-md-6",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),i.jsx("input",{type:"text",className:"form-control",name:"address",required:!0,style:{borderColor:"#fda417",color:"#fda417"}})]})})})]}),i.jsx("hr",{}),i.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[i.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Net Profit"}),i.jsx("span",{style:{color:"#fda417",border:"#fda417",fontSize:"14px",fontWeight:"bold"}}),i.jsx("div",{className:"col-md-4",children:i.jsx("div",{className:"form-floating mb-3",children:i.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,required:!0})})})]}),i.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",i.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:f,children:"Submit"})," ",i.jsx("br",{})]})]})]})})},Et="/assets/propertydummy-DhVEZ7jN.jpg",Pj=()=>{var c;const e=xt(),{user:t}=He(u=>({...u.auth})),{userProperties:n,totalPages:r}=He(u=>u.property),[o,l]=P.useState(1),s=5;P.useEffect(()=>{e(bo({userId:t.result.userId,page:o,limit:s}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const a=u=>{l(u)};return i.jsx(i.Fragment,{children:n.length>0?i.jsxs(i.Fragment,{children:[i.jsx("ul",{children:n.map(u=>i.jsx("li",{children:i.jsx("div",{className:"container",children:i.jsx("div",{className:"col-md-12",children:i.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[i.jsx("div",{className:"col-md-3 mt-1",children:i.jsx("img",{src:Et,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),i.jsxs("div",{className:"col-md-6 mt-1",children:[i.jsxs("h5",{children:[" ",i.jsxs(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),i.jsx("div",{className:"d-flex flex-row"}),i.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[i.jsx("span",{children:"100% cotton"}),i.jsx("span",{className:"dot"}),i.jsx("span",{children:"Light weight"}),i.jsx("span",{className:"dot"}),i.jsxs("span",{children:["Best finish",i.jsx("br",{})]})]}),i.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[i.jsx("span",{children:"Unique design"}),i.jsx("span",{className:"dot"}),i.jsx("span",{children:"For men"}),i.jsx("span",{className:"dot"}),i.jsxs("span",{children:["Casual",i.jsx("br",{})]})]}),i.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",i.jsx("br",{}),i.jsx("br",{})]})]}),i.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:i.jsxs("div",{className:"d-flex flex-column mt-4",children:[i.jsx(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:i.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),i.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:i.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[i.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),i.jsxs("div",{className:"pagination",children:[i.jsx("button",{onClick:()=>a(o-1),disabled:o===1,children:"Previous"}),Array.from({length:r},(u,d)=>d+1).map(u=>u===o||u===1||u===r||u>=o-1&&u<=o+1?i.jsx("button",{onClick:()=>a(u),disabled:o===u,children:u},u):u===2||u===r-1?i.jsx("span",{children:"..."},u):null),i.jsx("button",{onClick:()=>a(o+1),disabled:o===r,children:"Next"})]})]}):i.jsx("p",{children:"No active properties found."})})},Oj=()=>{var d,p,g,N,v,j,x,h,m,f,y,w;const{user:e,isLoading:t,error:n}=He(b=>b.auth),r=xt(),o=kr(),[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:((g=e==null?void 0:e.result)==null?void 0:g.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:((y=e==null?void 0:e.result)==null?void 0:y.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(xo(l)),o("/login")};return i.jsx(i.Fragment,{children:i.jsxs("form",{onSubmit:u,children:[i.jsxs("div",{className:"col-4",children:["Title",i.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:a,children:[i.jsx("option",{value:"None",children:"Please Select Title"}),i.jsx("option",{value:"Dr",children:"Dr"}),i.jsx("option",{value:"Prof",children:"Prof"}),i.jsx("option",{value:"Mr",children:"Mr"}),i.jsx("option",{value:"Miss",children:"Miss"})]})]}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["First Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Last Name",i.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Email",i.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:a,disabled:!0})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["About me",i.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:a})]})}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["City",i.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:a,required:!0})]})}),i.jsx("div",{className:"col-md-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["State",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:a,required:!0,children:[i.jsx("option",{value:"",children:"Please Select State"}),i.jsx("option",{value:"Alaska",children:"Alaska"}),i.jsx("option",{value:"Alabama",children:"Alabama"}),i.jsx("option",{value:"Arkansas",children:"Arkansas"}),i.jsx("option",{value:"Arizona",children:"Arizona"}),i.jsx("option",{value:"California",children:"California"}),i.jsx("option",{value:"Colorado",children:"Colorado"}),i.jsx("option",{value:"Connecticut",children:"Connecticut"}),i.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),i.jsx("option",{value:"Delaware",children:"Delaware"}),i.jsx("option",{value:"Florida",children:"Florida"}),i.jsx("option",{value:"Georgia",children:"Georgia"}),i.jsx("option",{value:"Hawaii",children:"Hawaii"}),i.jsx("option",{value:"Iowa",children:"Iowa"}),i.jsx("option",{value:"Idaho",children:"Idaho"}),i.jsx("option",{value:"Illinois",children:"Illinois"}),i.jsx("option",{value:"Indiana",children:"Indiana"}),i.jsx("option",{value:"Kansas",children:"Kansas"}),i.jsx("option",{value:"Kentucky",children:"Kentucky"}),i.jsx("option",{value:"Louisiana",children:"Louisiana"}),i.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),i.jsx("option",{value:"Maryland",children:"Maryland"}),i.jsx("option",{value:"Michigan",children:"Michigan"}),i.jsx("option",{value:"Minnesota",children:"Minnesota"}),i.jsx("option",{value:"Missouri",children:"Missouri"}),i.jsx("option",{value:"Mississippi",children:"Mississippi"}),i.jsx("option",{value:"Montana",children:"Montana"}),i.jsx("option",{value:"North Carolina",children:"North Carolina"}),i.jsx("option",{value:"North Dakota",children:"North Dakota"}),i.jsx("option",{value:"Nebraska",children:"Nebraska"}),i.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),i.jsx("option",{value:"New Jersey",children:"New Jersey"}),i.jsx("option",{value:"New Mexico",children:"New Mexico"}),i.jsx("option",{value:"Nevada",children:"Nevada"}),i.jsx("option",{value:"New York",children:"New York"}),i.jsx("option",{value:"Ohio",children:"Ohio"}),i.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),i.jsx("option",{value:"Oregon",children:"Oregon"}),i.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),i.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),i.jsx("option",{value:"South Carolina",children:"South Carolina"}),i.jsx("option",{value:"South Dakota",children:"South Dakota"}),i.jsx("option",{value:"Tennessee",children:"Tennessee"}),i.jsx("option",{value:"Texas",children:"Texas"}),i.jsx("option",{value:"Utah",children:"Utah"}),i.jsx("option",{value:"Virginia",children:"Virginia"}),i.jsx("option",{value:"Vermont",children:"Vermont"}),i.jsx("option",{value:"Washington",children:"Washington"}),i.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),i.jsx("option",{value:"West Virginia",children:"West Virginia"}),i.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),i.jsxs("div",{className:"col-md-4",children:["County",i.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:a,required:!0,children:[i.jsx("option",{value:"",children:"Please Select County"}),i.jsx("option",{value:"Abbeville",children:"Abbeville"}),i.jsx("option",{value:"Aiken",children:"Aiken"}),i.jsx("option",{value:"Allendale",children:"Allendale"}),i.jsx("option",{value:"Anderson",children:"Anderson"}),i.jsx("option",{value:"Bamberg",children:"Bamberg"}),i.jsx("option",{value:"Barnwell",children:"Barnwell"}),i.jsx("option",{value:"Beaufort",children:"Beaufort"}),i.jsx("option",{value:"Berkeley",children:"Berkeley"}),i.jsx("option",{value:"Calhoun",children:"Calhoun"}),i.jsx("option",{value:"Charleston",children:"Charleston"}),i.jsx("option",{value:"Cherokee",children:"Cherokee"}),i.jsx("option",{value:"Chester",children:"Chester"}),i.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),i.jsx("option",{value:"Clarendon",children:"Clarendon"}),i.jsx("option",{value:"Colleton",children:"Colleton"}),i.jsx("option",{value:"Darlington",children:"Darlington"}),i.jsx("option",{value:"Dillon",children:"Dillon"}),i.jsx("option",{value:"Dorchester",children:"Dorchester"}),i.jsx("option",{value:"Edgefield",children:"Edgefield"}),i.jsx("option",{value:"Fairfield",children:"Fairfield"}),i.jsx("option",{value:"Florence",children:"Florence"}),i.jsx("option",{value:"Georgetown",children:"Georgetown"}),i.jsx("option",{value:"Greenville",children:"Greenville"}),i.jsx("option",{value:"Greenwood",children:"Greenwood"}),i.jsx("option",{value:"Hampton",children:"Hampton"}),i.jsx("option",{value:"Horry",children:"Horry"}),i.jsx("option",{value:"Jasper",children:"Jasper"}),i.jsx("option",{value:"Kershaw",children:"Kershaw"}),i.jsx("option",{value:"Lancaster",children:"Lancaster"}),i.jsx("option",{value:"Laurens",children:"Laurens"}),i.jsx("option",{value:"Lee",children:"Lee"}),i.jsx("option",{value:"Lexington",children:"Lexington"}),i.jsx("option",{value:"Marion",children:"Marion"}),i.jsx("option",{value:"Marlboro",children:"Marlboro"}),i.jsx("option",{value:"McCormick",children:"McCormick"}),i.jsx("option",{value:"Newberry",children:"Newberry"}),i.jsx("option",{value:"Oconee",children:"Oconee"}),i.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),i.jsx("option",{value:"Pickens",children:"Pickens"}),i.jsx("option",{value:"Richland",children:"Richland"}),i.jsx("option",{value:"Saluda",children:"Saluda"}),i.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),i.jsx("option",{value:"Sumter",children:"Sumter"}),i.jsx("option",{value:"Union",children:"Union"}),i.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),i.jsx("option",{value:"York",children:"York"})]})]}),i.jsx("div",{className:"col-4",children:i.jsxs("div",{className:"form-floating mb-3",children:["Zip",i.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:a,required:!0})]})}),i.jsxs("div",{className:"col-4",children:[i.jsx("label",{children:"Profile Image"}),i.jsx("div",{className:"mb-3",children:i.jsx(Gm,{type:"file",multiple:!1,onDone:({base64:b})=>s({...l,profileImage:b})})})]}),l.profileImage&&i.jsxs("div",{className:"col-4 mb-3",children:[i.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),i.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:c,children:"Delete Image"})]}),i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-grid",children:i.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&i.jsx("p",{children:n})]})})},Rj=()=>{const[e,t]=P.useState("dashboard"),{user:n}=He(o=>o.auth),r=()=>{switch(e){case"Userdetails":return i.jsx(Oj,{});case"addProperty":return i.jsx(_j,{});case"activeProperties":return i.jsxs("div",{children:[i.jsx("h3",{children:"Active Properties"}),i.jsx(Pj,{})]});case"closedProperties":return i.jsx("p",{children:"These are your closed properties."});default:return i.jsx(i.Fragment,{})}};return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("div",{className:"d-flex flex-row",children:[i.jsx("div",{className:"col-md-3",children:i.jsxs("div",{className:"card card1 p-5",children:[i.jsx("img",{className:"img-fluid",src:n.result.profileImage||ko,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),i.jsx("hr",{className:"hline"}),i.jsxs("div",{className:"d-flex flex-column align-items-center",children:[i.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[i.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),i.jsx("span",{children:"Dashboard"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"User Profile"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Add Property"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Active Properties"})]}),i.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[i.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),i.jsx("span",{children:"Closed Properties"})]})]})]})}),i.jsx("div",{className:"col-md-9",children:i.jsxs("div",{className:"card card2 p-1",children:[i.jsx("br",{}),i.jsxs("span",{children:["Welcome to"," ",i.jsx("span",{style:{color:"#067ADC"},children:i.jsxs(ae,{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]})})]}),i.jsx("br",{}),r()]})})]}),i.jsx(Te,{})]})};var Jm={exports:{}},Tj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ij=Tj,Dj=Ij;function Xm(){}function Zm(){}Zm.resetWarningCache=Xm;var Aj=function(){function e(r,o,l,s,a,c){if(c!==Dj){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:Zm,resetWarningCache:Xm};return n.PropTypes=n,n};Jm.exports=Aj();var Mj=Jm.exports;const Lj=Da(Mj),Fj=()=>{const[e,t]=P.useState(3),n=kr();return P.useEffect(()=>{const r=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),i.jsx("div",{style:{marginTop:"100px"},children:i.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Co=({children:e})=>{const{user:t}=He(n=>({...n.auth}));return t?e:i.jsx(Fj,{})};Co.propTypes={children:Lj.node.isRequired};const zj=()=>{const e=xt(),{id:t,token:n}=Cr();return P.useEffect(()=>{e(No({id:t,token:n}))},[e,t,n]),i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsxs("div",{className:"contact_section layout_padding",children:[i.jsx("div",{className:"container",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12",children:i.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),i.jsx("div",{className:"container-fluid",children:i.jsx("div",{className:"contact_section_2",children:i.jsxs("div",{className:"row",children:[i.jsxs("div",{className:"col-md-6",children:[i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("h1",{className:"card-title text-center",children:i.jsxs(ae,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",i.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),i.jsx("div",{className:"col-md-6 padding_left_15",children:i.jsx("div",{className:"contact_img"})})]})})})]}),i.jsx(Te,{})]})},Bj=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),o="http://67.225.129.127:3002",l=async()=>{try{const s=await oe.post(`${o}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[i.jsx("div",{className:"container-fluid px-0",children:i.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[i.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),i.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:i.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:i.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"mb-4",children:[i.jsx("h2",{className:"h3",children:"Forgot Password"}),i.jsx("hr",{})]})})}),i.jsxs("div",{className:"row gy-3 overflow-hidden",children:[i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),i.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),i.jsxs("div",{className:"col-12",children:[i.jsx("div",{className:"d-grid",children:i.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),i.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:i.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",i.jsx(ae,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12"})})]})})})]})}),i.jsx(Te,{})]})]})},Uj=()=>{const{userId:e,token:t}=Cr(),[n,r]=P.useState(""),[o,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"),J.error("Password not entered");return}const d=await oe.post(`${c}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){a("Passwords do not match."),J.error("Passwords do not match.");return}else a("Password reset successfull"),J.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return P.useEffect(()=>{J.dismiss()},[]),i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("section",{className:"card mb-0 vh-100",children:i.jsx("div",{className:"container py-10 h-100",children:i.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:i.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[i.jsx("br",{}),i.jsxs("h2",{children:["Reset Password",i.jsx("hr",{}),i.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),i.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"}}),i.jsx("br",{}),i.jsx("input",{className:"form-control",type:"password",value:o,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),i.jsx("br",{}),i.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"}),i.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),i.jsx(Te,{})]})},$j=()=>i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"col-md-18",children:[i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),i.jsxs("h2",{children:["We reqest you to kindly ",i.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",i.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx(Te,{})]}),Wj=()=>{const{id:e}=Cr(),t=xt(),{selectedProperty:n,status:r,error:o}=He(a=>a.property),[l,s]=P.useState(!0);return P.useEffect(()=>{e&&(t(Xr(e)),s(!1))},[e,t]),r==="loading"?i.jsx("p",{children:"Loading property details..."}):r==="failed"?i.jsxs("p",{children:["Error loading property: ",o]}):i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container col-12",children:l?i.jsx("div",{className:"loader",children:"Loading..."}):n?i.jsx("div",{className:"py-3 py-md-5 bg-light",children:i.jsxs("div",{className:"card-header bg-white",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-5 mt-3",children:i.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?i.jsx("img",{src:n.images[0].file||Et,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):i.jsx("img",{src:Et,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),i.jsx("div",{className:"col-md-7 mt-3",children:i.jsxs("div",{className:"product-view",children:[i.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,i.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),i.jsx("hr",{}),i.jsxs("p",{className:"product-path",children:[i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",i.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),i.jsxs("div",{children:[i.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),i.jsxs("div",{className:"mt-3 card bg-white",children:[i.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),i.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12 mt-3",children:i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"card-header bg-white",children:i.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),i.jsx("div",{className:"card-body",children:i.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."})})]})})})]})}):i.jsx("p",{children:"No property details found."})}),i.jsx(Te,{})]})},Vj=()=>{const[e,t]=P.useState([]),[n,r]=P.useState(0),[o,l]=P.useState(0),[s]=P.useState(10),[a,c]=P.useState(""),[u,d]=P.useState(!1),[p,g]=P.useState(!1),N=async()=>{d(!0),g(!1);try{const h=await oe.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:o*s,search:a},headers:{"Cache-Control":"no-cache"}});t(h.data.data),r(h.data.totalRecords),a.trim()&&g(!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),g(!1),N())},j=h=>{h.key==="Enter"&&(h.preventDefault(),N())};P.useEffect(()=>{N()},[a,o]);const x=Math.ceil(n/s);return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"container col-12",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-lg-12 card-margin col-12",children:i.jsx("div",{className:"card search-form col-12",children:i.jsx("div",{className:"card-body p-0",children:i.jsx("form",{id:"search-form",children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"row no-gutters",children:i.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:i.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})})})})})})})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"card card-margin",children:i.jsxs("div",{className:"card-body",children:[p&&e.length>0&&i.jsxs("div",{children:["Showing search results for the keyword"," ",i.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),i.jsx("div",{className:"table-responsive",children:i.jsxs("table",{className:"table widget-26",children:[i.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:i.jsxs("tr",{children:[i.jsx("th",{children:"Details"}),i.jsx("th",{children:"Total Living Square Foot"}),i.jsx("th",{children:"Year Built"}),i.jsx("th",{children:"Cost per Square Foot"})]})}),i.jsx("tbody",{children:e.length>0?e.map((h,m)=>i.jsxs("tr",{children:[i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-title",children:[i.jsx(ae,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.address}),i.jsxs("p",{className:"m-0",children:[i.jsxs("span",{className:"employer-name",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),h.city,", ",h.county,",",h.state]}),i.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),i.jsx("td",{children:i.jsx("div",{className:"widget-26-job-info",children:i.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),i.jsx("td",{children:i.jsx("div",{className:"widget-26-job-info",children:i.jsx("p",{className:"m-0",children:h.year_built})})}),i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.cost_per_sqft,"/sqft"]})})]},m)):i.jsx("tr",{children:i.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),i.jsxs("div",{children:[i.jsx("button",{onClick:()=>l(o-1),disabled:o===0||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),i.jsxs("span",{children:[" ","Page ",o+1," of ",x," "]}),i.jsx("button",{onClick:()=>l(o+1),disabled:o+1>=x||u,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),i.jsx(Te,{})]})},qj=()=>i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),"This page will show the list of services offered by the company",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx(Te,{})]}),Hj=()=>{const{house_id:e}=Cr();console.log("house_id",e);const[t,n]=P.useState(null),[r,o]=P.useState(!0);return P.useEffect(()=>{(async()=>{try{const s=await oe.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{o(!1)}})()},[e]),i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("div",{className:"container col-12",children:r?i.jsx("div",{className:"loader",children:"Loading..."}):t?i.jsx("div",{className:"py-3 py-md-5 bg-light",children:i.jsxs("div",{className:"card-header bg-white",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-md-5 mt-3",children:i.jsx("div",{className:"bg-white border",children:i.jsx("img",{src:Et,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),i.jsx("div",{className:"col-md-7 mt-3",children:i.jsxs("div",{className:"product-view",children:[i.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,i.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),i.jsx("hr",{}),i.jsxs("p",{className:"product-path",children:[i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",i.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",i.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),i.jsxs("div",{children:[i.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",i.jsx("p",{}),i.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),i.jsxs("div",{className:"mt-3 card bg-white",children:[i.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),i.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-md-12 mt-3",children:i.jsxs("div",{className:"card",children:[i.jsx("div",{className:"card-header bg-white",children:i.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),i.jsx("div",{className:"card-body",children:i.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."})})]})})})]})}):i.jsx("p",{children:"No property details found."})}),i.jsx(Te,{})]})},Yj=()=>{const{id:e}=Cr(),t=xt(),{selectedProperty:n}=He(a=>a.property),[r,o]=P.useState({propertyType:"",yearBuild:"",totalSqft:""});P.useEffect(()=>{t(Xr(e))},[t,e]),P.useEffect(()=>{n&&o({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{o({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(So({id:e,propertyData:r}))};return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{})," ",i.jsx("br",{}),i.jsxs("div",{className:"edit-property-form",children:[i.jsx("h2",{children:"Edit Property"}),i.jsxs("form",{onSubmit:s,children:[i.jsx("div",{children:i.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[i.jsx("option",{value:"",children:"Please Select Property Type"}),i.jsx("option",{value:"Residential",children:"Residential"}),i.jsx("option",{value:"Land",children:"Land"}),i.jsx("option",{value:"Commercial",children:"Commercial"}),i.jsx("option",{value:"Industrial",children:"Industrial"}),i.jsx("option",{value:"Water",children:"Water"})]})}),i.jsx("div",{className:"col-12",children:i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),i.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),i.jsxs("div",{className:"form-floating mb-3",children:[i.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),i.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),i.jsx("button",{type:"submit",children:"Update Property"})]})]}),i.jsx(Te,{})]})},Kj=()=>{const e=xt(),{properties:t,loading:n,totalPages:r,currentPage:o}=He(j=>j.property),[l,s]=P.useState(""),[a,c]=P.useState([]),[u,d]=P.useState(1),p=10;P.useEffect(()=>{e(Zr({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 g=j=>{s(j.target.value)},N=j=>{j.preventDefault()},v=j=>{d(j),e(Zr({page:j,limit:p,keyword:l}))};return i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsxs("div",{className:"container col-12",children:[i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-lg-12 card-margin col-12",children:i.jsx("div",{className:"card search-form col-12",children:i.jsx("div",{className:"card-body p-0",children:i.jsx("form",{id:"search-form",onSubmit:N,children:i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"row no-gutters",children:i.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:i.jsx("input",{type:"text",value:l,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),i.jsx("div",{className:"row",children:i.jsx("div",{className:"col-12",children:i.jsx("div",{className:"card card-margin",children:i.jsx("div",{className:"card-body",children:n?i.jsx("div",{children:"Loading..."}):i.jsx("div",{className:"table-responsive",children:i.jsxs("table",{className:"table widget-26",children:[i.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:i.jsxs("tr",{children:[i.jsx("th",{children:"Image"}),i.jsx("th",{children:"Details"}),i.jsx("th",{children:"Total Living Square Foot"}),i.jsx("th",{children:"Year Built"}),i.jsx("th",{children:"Cost per Square Foot"})]})}),i.jsx("tbody",{children:a.length>0?a.map(j=>i.jsxs("tr",{children:[i.jsx("td",{children:j.images&&j.images[0]?i.jsx("img",{src:j.images[0].file||Et,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):i.jsx("img",{src:Et,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),i.jsx("td",{children:i.jsxs("div",{className:"widget-26-job-title",children:[i.jsx(ae,{to:`/property/${j.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:j.address}),i.jsxs("p",{className:"m-0",children:[i.jsxs("span",{className:"employer-name",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),j.city,", ",j.county,","," ",j.state]}),i.jsxs("p",{className:"text-muted m-0",children:["House Id: ",j.propertyId]})]})]})}),i.jsx("td",{children:j.totallivingsqft}),i.jsx("td",{children:j.yearBuild}),i.jsx("td",{children:j.costpersqft})]},j.id)):i.jsx("tr",{children:i.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),i.jsx("nav",{"aria-label":"Page navigation",children:i.jsxs("ul",{className:"pagination justify-content-center",children:[i.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(o-1),children:"Previous"})}),Array.from({length:r},(j,x)=>i.jsx("li",{className:`page-item ${o===x+1?"active":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(x+1),children:x+1})},x+1)),i.jsx("li",{className:`page-item ${o===r?"disabled":""}`,children:i.jsx("button",{className:"page-link",onClick:()=>v(o+1),children:"Next"})})]})})]}),i.jsx(Te,{})]})},Qj=()=>{const{userId:e}=Cr(),t=xt(),{user:n,loading:r}=He(o=>o.user);return console.log("user",n),P.useEffect(()=>{e&&t(jo(e))},[e,t]),r?i.jsx("div",{children:"Loading..."}):i.jsxs(i.Fragment,{children:[i.jsx(be,{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("br",{}),i.jsx("div",{className:"main-body",children:i.jsxs("div",{className:"row gutters-sm",children:[i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[i.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),i.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),i.jsxs("span",{className:"text-muted font-size-sm",children:[i.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),i.jsx("br",{})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),i.jsx("hr",{}),i.jsx("img",{src:Et,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:i.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),i.jsx("hr",{}),i.jsx("img",{src:Et,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:i.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),i.jsx("hr",{}),i.jsx("img",{src:Et,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("br",{})," ",i.jsx("br",{}),i.jsx("hr",{}),i.jsx("img",{src:Et,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),i.jsx("small",{children:"Web Design project in California"}),i.jsx("br",{})," ",i.jsx("br",{})]})})}),i.jsx("div",{className:"col-md-4",children:i.jsx("div",{className:"card mb-3",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",i.jsx("hr",{}),n.aboutme]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),i.jsx("hr",{}),i.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),i.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:i.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),i.jsx("hr",{}),i.jsxs("div",{className:"card-body",children:[i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-sm-3",children:i.jsx("span",{className:"mb-0",children:"Email"})}),n.email,i.jsx("div",{className:"col-sm-9 text-secondary"})]}),i.jsx("hr",{}),i.jsxs("div",{className:"row",children:[i.jsx("div",{className:"col-sm-3",children:i.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",i.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),i.jsx("div",{className:"col-md-4 mb-3",children:i.jsx("div",{className:"card",children:i.jsxs("div",{className:"card-body",children:[i.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[i.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),i.jsxs("ul",{className:"list-group list-group-flush",children:[i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:ko,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:ko,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),i.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:i.jsxs("h6",{className:"mb-0",children:[i.jsx("img",{src:ko,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Gj=()=>i.jsxs(O0,{children:[i.jsx(K0,{}),i.jsxs(w0,{children:[i.jsx(je,{path:"/",element:i.jsx(G0,{})}),i.jsx(je,{path:"/about",element:i.jsx(J0,{})}),i.jsx(je,{path:"/services",element:i.jsx(qj,{})}),i.jsx(je,{path:"/contact",element:i.jsx(X0,{})}),i.jsx(je,{path:"/register",element:i.jsx(Sj,{})}),i.jsx(je,{path:"/registrationsuccess",element:i.jsx(Co,{children:i.jsx($j,{})})}),i.jsx(je,{path:"/login",element:i.jsx(kj,{})}),i.jsx(je,{path:"/dashboard",element:i.jsx(Co,{children:i.jsx(Rj,{})})}),i.jsx(je,{path:"/users/:id/verify/:token",element:i.jsx(zj,{})}),i.jsx(je,{path:"/forgotpassword",element:i.jsx(Bj,{})}),i.jsx(je,{path:"/users/resetpassword/:userId/:token",element:i.jsx(Uj,{})}),i.jsx(je,{path:"/property/:id",element:i.jsx(Wj,{})}),i.jsx(je,{path:"/properties/:house_id",element:i.jsx(Hj,{})}),i.jsx(je,{path:"/searchmyproperties",element:i.jsx(Vj,{})}),i.jsx(je,{path:"/searchproperties",element:i.jsx(Kj,{})}),i.jsx(je,{path:"/editproperty/:id",element:i.jsx(Co,{children:i.jsx(Yj,{})})}),i.jsx(je,{path:"/profile/:userId",element:i.jsx(Qj,{})})]})]});$p(document.getElementById("root")).render(i.jsx(P.StrictMode,{children:i.jsx(Gy,{store:A1,children:i.jsx(Gj,{})})})); diff --git a/ef-ui/dist/assets/index-DfwOztBd.js b/ef-ui/dist/assets/index-DfwOztBd.js new file mode 100644 index 0000000..c63d60b --- /dev/null +++ b/ef-ui/dist/assets/index-DfwOztBd.js @@ -0,0 +1,85 @@ +var eh=Object.defineProperty;var th=(e,t,n)=>t in e?eh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bl=(e,t,n)=>th(e,typeof t!="symbol"?t+"":t,n);function nh(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 rh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pd={exports:{}},ul={},Od={exports:{}},Z={};/** + * @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 ki=Symbol.for("react.element"),ih=Symbol.for("react.portal"),oh=Symbol.for("react.fragment"),lh=Symbol.for("react.strict_mode"),sh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),ch=Symbol.for("react.context"),uh=Symbol.for("react.forward_ref"),dh=Symbol.for("react.suspense"),fh=Symbol.for("react.memo"),ph=Symbol.for("react.lazy"),Bc=Symbol.iterator;function mh(e){return e===null||typeof e!="object"?null:(e=Bc&&e[Bc]||e["@@iterator"],typeof e=="function"?e:null)}var Td={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rd=Object.assign,Id={};function jr(e,t,n){this.props=e,this.context=t,this.refs=Id,this.updater=n||Td}jr.prototype.isReactComponent={};jr.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")};jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ad(){}Ad.prototype=jr.prototype;function Da(e,t,n){this.props=e,this.context=t,this.refs=Id,this.updater=n||Td}var Ma=Da.prototype=new Ad;Ma.constructor=Da;Rd(Ma,jr.prototype);Ma.isPureReactComponent=!0;var Uc=Array.isArray,Dd=Object.prototype.hasOwnProperty,La={current:null},Md={key:!0,ref:!0,__self:!0,__source:!0};function Ld(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)Dd.call(t,r)&&!Md.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,L=C[D];if(0>>1;Di(Y,R))Ki(Q,Y)?(C[D]=Q,C[K]=R,D=K):(C[D]=Y,C[V]=R,D=V);else if(Ki(Q,R))C[D]=Q,C[K]=R,D=K;else break e}}return k}function i(C,k){var R=C.sortIndex-k.sortIndex;return R!==0?R:C.id-k.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(C){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=C)r(u),k.sortIndex=k.expirationTime,t(c,k);else break;k=n(u)}}function g(C){if(j=!1,f(C),!v)if(n(c)!==null)v=!0,P(w);else{var k=n(u);k!==null&&B(g,k.startTime-C)}}function w(C,k){v=!1,j&&(j=!1,h(E),E=-1),N=!0;var R=y;try{for(f(k),p=n(c);p!==null&&(!(p.expirationTime>k)||C&&!U());){var D=p.callback;if(typeof D=="function"){p.callback=null,y=p.priorityLevel;var L=D(p.expirationTime<=k);k=e.unstable_now(),typeof L=="function"?p.callback=L:p===n(c)&&r(c),f(k)}else r(c);p=n(c)}if(p!==null)var W=!0;else{var V=n(u);V!==null&&B(g,V.startTime-k),W=!1}return W}finally{p=null,y=R,N=!1}}var S=!1,_=null,E=-1,A=5,M=-1;function U(){return!(e.unstable_now()-MC||125D?(C.sortIndex=R,t(u,C),n(c)===null&&C===n(u)&&(j?(h(E),E=-1):j=!0,B(g,R-D))):(C.sortIndex=L,t(c,C),v||N||(v=!0,P(w))),C},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(C){var k=y;return function(){var R=y;y=k;try{return C.apply(this,arguments)}finally{y=R}}}})($d);Ud.exports=$d;var kh=Ud.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 bh=T,Ze=kh;function z(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"),Ss=Object.prototype.hasOwnProperty,Ch=/^[: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]*$/,Wc={},Vc={};function _h(e){return Ss.call(Vc,e)?!0:Ss.call(Wc,e)?!1:Ch.test(e)?Vc[e]=!0:(Wc[e]=!0,!1)}function Ph(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 Oh(e,t,n,r){if(t===null||typeof t>"u"||Ph(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,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 Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ce[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];Ce[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[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){Ce[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var za=/[\-:]([a-z])/g;function Ba(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(za,Ba);Ce[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(za,Ba);Ce[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(za,Ba);Ce[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ce.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ua(e,t,n,r){var i=Ce.hasOwnProperty(t)?Ce[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{Wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Lr(e):""}function Th(e){switch(e.tag){case 5:return Lr(e.type);case 16:return Lr("Lazy");case 13:return Lr("Suspense");case 19:return Lr("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function _s(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 Wn:return"Fragment";case $n:return"Portal";case ks:return"Profiler";case $a:return"StrictMode";case bs:return"Suspense";case Cs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qd:return(e.displayName||"Context")+".Consumer";case Vd:return(e._context.displayName||"Context")+".Provider";case Wa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Va:return t=e.displayName||null,t!==null?t:_s(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return _s(e(t))}catch{}}return null}function Rh(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 _s(t);case 8:return t===$a?"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 Yd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ih(e){var t=Yd(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 Fi(e){e._valueTracker||(e._valueTracker=Ih(e))}function Kd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _o(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 Ps(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hc(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 Qd(e,t){t=t.checked,t!=null&&Ua(e,"checked",t,!1)}function Os(e,t){Qd(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")?Ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ts(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yc(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 Ts(e,t,n){(t!=="number"||_o(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fr=Array.isArray;function or(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $r={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},Ah=["Webkit","ms","Moz","O"];Object.keys($r).forEach(function(e){Ah.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$r[t]=$r[e]})});function Zd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$r.hasOwnProperty(e)&&$r[e]?(""+t).trim():t+"px"}function ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Zd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Dh=fe({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 As(e,t){if(t){if(Dh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Ds(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 Ms=null;function qa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ls=null,lr=null,sr=null;function Gc(e){if(e=_i(e)){if(typeof Ls!="function")throw Error(z(280));var t=e.stateNode;t&&(t=hl(t),Ls(e.stateNode,e.type,t))}}function tf(e){lr?sr?sr.push(e):sr=[e]:lr=e}function nf(){if(lr){var e=lr,t=sr;if(sr=lr=null,Gc(e),t)for(e=0;e>>=0,e===0?32:31-(Hh(e)/Yh|0)|0}var Bi=64,Ui=4194304;function zr(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 Ro(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=zr(a):(l&=s,l!==0&&(r=zr(l)))}else s=n&~i,s!==0?r=zr(s):l!==0&&(r=zr(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 bi(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 Jh(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=Vr),ou=" ",lu=!1;function Ef(e,t){switch(e){case"keyup":return kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function Cv(e,t){switch(e){case"compositionend":return Sf(t);case"keypress":return t.which!==32?null:(lu=!0,ou);case"textInput":return e=t.data,e===ou&&lu?null:e;default:return null}}function _v(e,t){if(Vn)return e==="compositionend"||!Za&&Ef(e,t)?(e=Nf(),oo=Ga=Jt=null,Vn=!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=uu(n)}}function _f(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_f(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pf(){for(var e=window,t=_o();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_o(e.document)}return t}function ec(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 Lv(e){var t=Pf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_f(n.ownerDocument.documentElement,n)){if(r!==null&&ec(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=du(n,l);var s=du(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,qn=null,Ws=null,Hr=null,Vs=!1;function fu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vs||qn==null||qn!==_o(r)||(r=qn,"selectionStart"in r&&ec(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}),Hr&&ai(Hr,r)||(Hr=r,r=Do(Ws,"onSelect"),0Kn||(e.current=Gs[Kn],Gs[Kn]=null,Kn--)}function ie(e,t){Kn++,Gs[Kn]=e.current,e.current=t}var fn={},Te=hn(fn),Ue=hn(!1),Tn=fn;function fr(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 Lo(){se(Ue),se(Te)}function xu(e,t,n){if(Te.current!==fn)throw Error(z(168));ie(Te,t),ie(Ue,n)}function Ff(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(z(108,Rh(e)||"Unknown",i));return fe({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Tn=Te.current,ie(Te,e),ie(Ue,Ue.current),!0}function ju(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=Ff(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,se(Ue),se(Te),ie(Te,e)):se(Ue),ie(Ue,n)}var Tt=null,vl=!1,is=!1;function zf(e){Tt===null?Tt=[e]:Tt.push(e)}function Qv(e){vl=!0,zf(e)}function vn(){if(!is&&Tt!==null){is=!0;var e=0,t=ne;try{var n=Tt;for(ne=1;e>=s,i-=s,Rt=1<<32-ht(t)+i|n<E?(A=_,_=null):A=_.sibling;var M=y(h,_,f[E],g);if(M===null){_===null&&(_=A);break}e&&_&&M.alternate===null&&t(h,_),m=l(M,m,E),S===null?w=M:S.sibling=M,S=M,_=A}if(E===f.length)return n(h,_),ce&&xn(h,E),w;if(_===null){for(;EE?(A=_,_=null):A=_.sibling;var U=y(h,_,M.value,g);if(U===null){_===null&&(_=A);break}e&&_&&U.alternate===null&&t(h,_),m=l(U,m,E),S===null?w=U:S.sibling=U,S=U,_=A}if(M.done)return n(h,_),ce&&xn(h,E),w;if(_===null){for(;!M.done;E++,M=f.next())M=p(h,M.value,g),M!==null&&(m=l(M,m,E),S===null?w=M:S.sibling=M,S=M);return ce&&xn(h,E),w}for(_=r(h,_);!M.done;E++,M=f.next())M=N(_,h,E,M.value,g),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?E:M.key),m=l(M,m,E),S===null?w=M:S.sibling=M,S=M);return e&&_.forEach(function(H){return t(h,H)}),ce&&xn(h,E),w}function x(h,m,f,g){if(typeof f=="object"&&f!==null&&f.type===Wn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Li:e:{for(var w=f.key,S=m;S!==null;){if(S.key===w){if(w=f.type,w===Wn){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&&Eu(w)===S.type){n(h,S.sibling),m=i(S,f.props),m.ref=Ir(h,S,f),m.return=h,h=m;break e}n(h,S);break}else t(h,S);S=S.sibling}f.type===Wn?(m=_n(f.props.children,h.mode,g,f.key),m.return=h,h=m):(g=mo(f.type,f.key,f.props,null,h.mode,g),g.ref=Ir(h,m,f),g.return=h,h=g)}return s(h);case $n: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=fs(f,h.mode,g),m.return=h,h=m}return s(h);case Vt:return S=f._init,x(h,m,S(f._payload),g)}if(Fr(f))return v(h,m,f,g);if(_r(f))return j(h,m,f,g);Ki(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=ds(f,h.mode,g),m.return=h,h=m),s(h)):n(h,m)}return x}var mr=Wf(!0),Vf=Wf(!1),Uo=hn(null),$o=null,Jn=null,ic=null;function oc(){ic=Jn=$o=null}function lc(e){var t=Uo.current;se(Uo),e._currentValue=t}function Zs(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 cr(e,t){$o=e,ic=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Be=!0),e.firstContext=null)}function at(e){var t=e._currentValue;if(ic!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if($o===null)throw Error(z(308));Jn=e,$o.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var Sn=null;function sc(e){Sn===null?Sn=[e]:Sn.push(e)}function qf(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,sc(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 ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hf(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,ee&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,sc(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,Ya(e,n)}}function Su(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 Wo(e,t,n,r){var i=e.updateQueue;qt=!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=fe({},p,y);break e;case 2:qt=!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);An|=s,e.lanes=s,e.memoizedState=p}}function ku(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ls.transition;ls.transition={};try{e(!1),t()}finally{ne=n,ls.transition=r}}function cp(){return ct().memoizedState}function Zv(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},up(e))dp(t,n);else if(n=qf(e,t,n,r),n!==null){var i=De();vt(n,e,r,i),fp(n,t,r)}}function ey(e,t,n){var r=an(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(up(e))dp(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,gt(a,s)){var c=t.interleaved;c===null?(i.next=i,sc(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=qf(e,t,i,r),n!==null&&(i=De(),vt(n,e,r,i),fp(n,t,r))}}function up(e){var t=e.alternate;return e===de||t!==null&&t===de}function dp(e,t){Yr=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ya(e,n)}}var Ho={readContext:at,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},ty={readContext:at,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Cu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,co(4194308,4,ip.bind(null,t,e),n)},useLayoutEffect:function(e,t){return co(4194308,4,e,t)},useInsertionEffect:function(e,t){return co(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=Zv.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:bu,useDebugValue:vc,useDeferredValue:function(e){return wt().memoizedState=e},useTransition:function(){var e=bu(!1),t=e[0];return e=Xv.bind(null,e[1]),wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=wt();if(ce){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),we===null)throw Error(z(349));In&30||Gf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Cu(Xf.bind(null,r,l,e),[e]),r.flags|=2048,vi(9,Jf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=wt(),t=we.identifierPrefix;if(ce){var n=It,r=Rt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mi++,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[St]=t,e[di]=r,wp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ds(n,r),n){case"dialog":le("cancel",e),le("close",e),i=r;break;case"iframe":case"object":case"embed":le("load",e),i=r;break;case"video":case"audio":for(i=0;iyr&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304)}else{if(!r)if(e=Vo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ce)return Pe(t),null}else 2*he()-l.renderingStartTime>yr&&n!==1073741824&&(t.flags|=128,r=!0,Ar(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=he(),t.sibling=null,n=ue.current,ie(ue,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return wc(),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(z(156,t.tag))}function cy(e,t){switch(nc(t),t.tag){case 1:return $e(t.type)&&Lo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hr(),se(Ue),se(Te),dc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uc(t),null;case 13:if(se(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(ue),null;case 4:return hr(),null;case 10:return lc(t.type._context),null;case 22:case 23:return wc(),null;case 24:return null;default:return null}}var Gi=!1,Oe=!1,uy=typeof WeakSet=="function"?WeakSet:Set,$=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function aa(e,t,n){try{n()}catch(r){pe(e,t,r)}}var Fu=!1;function dy(e,t){if(qs=Io,e=Pf(),ec(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(Hs={focusedElem:e,selectionRange:n},Io=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;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(z(163))}}catch(g){pe(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return v=Fu,Fu=!1,v}function Kr(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&&aa(t,n,l)}i=i.next}while(i!==r)}}function xl(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 ca(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 kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[di],delete t[Qs],delete t[Yv],delete t[Kv])),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 bp(e){return e.tag===5||e.tag===3||e.tag===4}function zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(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 ua(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=Mo));else if(r!==4&&(e=e.child,e!==null))for(ua(e,t,n),e=e.sibling;e!==null;)ua(e,t,n),e=e.sibling}function da(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(da(e,t,n),e=e.sibling;e!==null;)da(e,t,n),e=e.sibling}var ke=null,ft=!1;function $t(e,t,n){for(n=n.child;n!==null;)Cp(e,t,n),n=n.sibling}function Cp(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:Oe||Xn(n,t);case 6:var r=ke,i=ft;ke=null,$t(e,t,n),ke=r,ft=i,ke!==null&&(ft?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(ft?(e=ke,n=n.stateNode,e.nodeType===8?rs(e.parentNode,n):e.nodeType===1&&rs(e,n),li(e)):rs(ke,n.stateNode));break;case 4:r=ke,i=ft,ke=n.stateNode.containerInfo,ft=!0,$t(e,t,n),ke=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,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&aa(n,t,s),i=i.next}while(i!==r)}$t(e,t,n);break;case 1:if(!Oe&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pe(n,t,a)}$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 Bu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uy),t.forEach(function(r){var i=jy.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=s),r&=~l}if(r=i,r=he()-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,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Qo=0,ee&6)throw Error(z(331));var i=ee;for(ee|=4,$=e.current;$!==null;){var l=$,s=l.child;if($.flags&16){var a=l.deletions;if(a!==null){for(var c=0;che()-jc?Cn(e,0):xc|=n),We(e,t)}function Dp(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=De();e=Lt(e,t),e!==null&&(bi(e,t,n),We(e,n))}function xy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dp(e,n)}function jy(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(z(314))}r!==null&&r.delete(t),Dp(e,n)}var Mp;Mp=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,sy(e,t,n);Be=!!(e.flags&131072)}else Be=!1,ce&&t.flags&1048576&&Bf(t,Bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uo(e,t),e=t.pendingProps;var i=fr(t,Te.current);cr(t,n),i=pc(null,t,r,e,i,n);var l=mc();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,Fo(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ac(t),i.updater=gl,t.stateNode=i,i._reactInternals=t,ta(t,r,e,n),t=ia(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&tc(t),Ie(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=wy(r),e=dt(r,e),i){case 0:t=ra(null,t,r,e,n);break e;case 1:t=Du(null,t,r,e,n);break e;case 11:t=Iu(null,t,r,e,n);break e;case 14:t=Au(null,t,r,dt(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),ra(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),Du(e,t,r,i,n);case 3:e:{if(xp(t),e===null)throw Error(z(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Hf(e,t),Wo(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=vr(Error(z(423)),t),t=Mu(e,t,r,n,i);break e}else if(r!==i){i=vr(Error(z(424)),t),t=Mu(e,t,r,n,i);break e}else for(Ke=on(t.stateNode.containerInfo.firstChild),Je=t,ce=!0,pt=null,n=Vf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pr(),r===i){t=Ft(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Yf(t),e===null&&Xs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,Ys(r,i)?s=null:l!==null&&Ys(r,l)&&(t.flags|=32),gp(e,t),Ie(e,t,s,n),t.child;case 6:return e===null&&Xs(t),null;case 13:return jp(e,t,n);case 4:return cc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mr(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),Iu(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,s=i.value,ie(Uo,r._currentValue),r._currentValue=s,l!==null)if(gt(l.value,s)){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 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=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),Zs(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(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zs(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}Ie(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cr(t,n),i=at(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),Au(e,t,r,i,n);case 15:return vp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dt(r,i),uo(e,t),t.tag=1,$e(r)?(e=!0,Fo(t)):e=!1,cr(t,n),pp(t,r,i),ta(t,r,i,n),ia(null,t,r,!0,e,n);case 19:return Np(e,t,n);case 22:return yp(e,t,n)}throw Error(z(156,t.tag))};function Lp(e,t){return uf(e,t)}function Ny(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 Ny(e,t,n,r)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wy(e){if(typeof e=="function")return Sc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wa)return 11;if(e===Va)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 mo(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Sc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wn:return _n(n.children,i,l,t);case $a:s=8,i|=8;break;case ks:return e=lt(12,n,t,i|2),e.elementType=ks,e.lanes=l,e;case bs:return e=lt(13,n,t,i),e.elementType=bs,e.lanes=l,e;case Cs:return e=lt(19,n,t,i),e.elementType=Cs,e.lanes=l,e;case Hd:return Nl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vd:s=10;break e;case qd:s=9;break e;case Wa:s=11;break e;case Va:s=14;break e;case Vt:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=lt(s,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 Nl(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Hd,e.lanes=n,e.stateNode={isHidden:!1},e}function ds(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function fs(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 Ey(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=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kc(e,t,n,r,i,l,s,a,c){return e=new Ey(e,t,n,a,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},ac(l),e}function Sy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Up)}catch(e){console.error(e)}}Up(),Bd.exports=nt;var Py=Bd.exports,$p,Ku=Py;$p=Ku.createRoot,Ku.hydrateRoot;var Wp={exports:{}},Vp={};/** + * @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 Oi=T;function Oy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ty=typeof Object.is=="function"?Object.is:Oy,Ry=Oi.useSyncExternalStore,Iy=Oi.useRef,Ay=Oi.useEffect,Dy=Oi.useMemo,My=Oi.useDebugValue;Vp.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=Iy(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=Dy(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,Ty(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=Ry(e,l[0],l[1]);return Ay(function(){s.hasValue=!0,s.value=a},[a]),My(a),a};Wp.exports=Vp;var Ly=Wp.exports,Qe="default"in Es?O:Es,Qu=Symbol.for("react-redux-context"),Gu=typeof globalThis<"u"?globalThis:{};function Fy(){if(!Qe.createContext)return{};const e=Gu[Qu]??(Gu[Qu]=new Map);let t=e.get(Qe.createContext);return t||(t=Qe.createContext(null),e.set(Qe.createContext,t)),t}var pn=Fy(),zy=()=>{throw new Error("uSES not initialized!")};function Pc(e=pn){return function(){return Qe.useContext(e)}}var qp=Pc(),Hp=zy,By=e=>{Hp=e},Uy=(e,t)=>e===t;function $y(e=pn){const t=e===pn?qp:Pc(e),n=(r,i={})=>{const{equalityFn:l=Uy,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,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,s.stabilityCheck]),N=Hp(c.addNestedSub,a.getState,u||a.getState,y,l);return Qe.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var He=$y();function Wy(e){e()}function Vy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Wy(()=>{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 Ju={notify(){},get:()=>[]};function qy(e,t){let n,r=Ju,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=Vy())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Ju)}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 Hy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yy=typeof navigator<"u"&&navigator.product==="ReactNative",Ky=Hy||Yy?Qe.useLayoutEffect:Qe.useEffect;function Qy({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const s=Qe.useMemo(()=>{const u=qy(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=Qe.useMemo(()=>e.getState(),[e]);Ky(()=>{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||pn;return Qe.createElement(c.Provider,{value:s},n)}var Gy=Qy;function Yp(e=pn){const t=e===pn?qp:Pc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Jy=Yp();function Xy(e=pn){const t=e===pn?Jy:Yp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var xt=Xy();By(Ly.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 Zy=typeof Symbol=="function"&&Symbol.observable||"@@observable",Xu=Zy,ps=()=>Math.random().toString(36).substring(7).split("").join("."),eg={INIT:`@@redux/INIT${ps()}`,REPLACE:`@@redux/REPLACE${ps()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ps()}`},Xo=eg;function Oc(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 Kp(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(Kp)(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(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=a++;return s.set(m,x),function(){if(h){if(c)throw new Error(Se(6));h=!1,u(),s.delete(m),l=null}}}function y(x){if(!Oc(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=s).forEach(m=>{m()}),x}function N(x){if(typeof x!="function")throw new Error(Se(10));r=x,y({type:Xo.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)}},[Xu](){return this}}}return y({type:Xo.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[Xu]:v}}function tg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Xo.INIT})>"u")throw new Error(Se(12));if(typeof n(void 0,{type:Xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Se(13))})}function ng(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(Se(14));u[p]=v,c=c||v!==N}return c=c||r.length!==Object.keys(s).length,c?u:s}}function Zo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function rg(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Se(15))};const s={getState:i.getState,dispatch:(c,...u)=>l(c,...u)},a=e.map(c=>c(s));return l=Zo(...a)(i.dispatch),{...i,dispatch:l}}}function ig(e){return Oc(e)&&"type"in e&&typeof e.type=="string"}var Qp=Symbol.for("immer-nothing"),Zu=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 gr=Object.getPrototypeOf;function Mn(e){return!!e&&!!e[et]}function zt(e){var t;return e?Gp(e)||Array.isArray(e)||!!e[Zu]||!!((t=e.constructor)!=null&&t[Zu])||Cl(e)||_l(e):!1}var og=Object.prototype.constructor.toString();function Gp(e){if(!e||typeof e!="object")return!1;const t=gr(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)===og}function el(e,t){bl(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function bl(e){const t=e[et];return t?t.type_:Array.isArray(e)?1:Cl(e)?2:_l(e)?3:0}function va(e,t){return bl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jp(e,t,n){const r=bl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function lg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Cl(e){return e instanceof Map}function _l(e){return e instanceof Set}function Nn(e){return e.copy_||e.base_}function ya(e,t){if(Cl(e))return new Map(e);if(_l(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Gp(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=sg),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Tc(r,!0))),e}function sg(){mt(2)}function Pl(e){return Object.isFrozen(e)}var ag={};function Ln(e){const t=ag[e];return t||mt(0,e),t}var gi;function Xp(){return gi}function cg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ed(e,t){t&&(Ln("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ga(e){xa(e),e.drafts_.forEach(ug),e.drafts_=null}function xa(e){e===gi&&(gi=e.parent_)}function td(e){return gi=cg(gi,e)}function ug(e){const t=e[et];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[et].modified_&&(ga(t),mt(4)),zt(e)&&(e=tl(t,e),t.parent_||nl(t,e)),t.patches_&&Ln("Patches").generateReplacementPatches_(n[et].base_,e,t.patches_,t.inversePatches_)):e=tl(t,n,[]),ga(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qp?e:void 0}function tl(e,t,n){if(Pl(t))return t;const r=t[et];if(!r)return el(t,(i,l)=>rd(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return nl(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),el(l,(a,c)=>rd(e,r,i,a,c,n,s)),nl(e,i,!1),n&&e.patches_&&Ln("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function rd(e,t,n,r,i,l,s){if(Mn(i)){const a=l&&t&&t.type_!==3&&!va(t.assigned_,r)?l.concat(r):void 0,c=tl(e,i,a);if(Jp(n,r,c),Mn(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(zt(i)&&!Pl(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;tl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&nl(e,i)}}function nl(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Tc(t,n)}function dg(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Xp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Rc;n&&(i=[r],l=xi);const{revoke:s,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=s,a}var Rc={get(e,t){if(t===et)return e;const n=Nn(e);if(!va(n,t))return fg(e,n,t);const r=n[t];return e.finalized_||!zt(r)?r:r===ms(e.base_,t)?(hs(e),e.copy_[t]=Na(r,e)):r},has(e,t){return t in Nn(e)},ownKeys(e){return Reflect.ownKeys(Nn(e))},set(e,t,n){const r=Zp(Nn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=ms(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(lg(n,i)&&(n!==void 0||va(e.base_,t)))return!0;hs(e),ja(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 ms(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,hs(e),ja(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 gr(e.base_)},setPrototypeOf(){mt(12)}},xi={};el(Rc,(e,t)=>{xi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});xi.deleteProperty=function(e,t){return xi.set.call(this,e,t,void 0)};xi.set=function(e,t,n){return Rc.set.call(this,e[0],t,n,e[0])};function ms(e,t){const n=e[et];return(n?Nn(n):e)[t]}function fg(e,t,n){var i;const r=Zp(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Zp(e,t){if(!(t in e))return;let n=gr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=gr(n)}}function ja(e){e.modified_||(e.modified_=!0,e.parent_&&ja(e.parent_))}function hs(e){e.copy_||(e.copy_=ya(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"&&mt(6),r!==void 0&&typeof r!="function"&&mt(7);let i;if(zt(t)){const l=td(this),s=Na(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?ga(l):xa(l)}return ed(l,r),nd(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Qp&&(i=void 0),this.autoFreeze_&&Tc(i,!0),r){const l=[],s=[];Ln("Patches").generateReplacementPatches_(t,i,l,s),r(l,s)}return i}else mt(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){zt(e)||mt(8),Mn(e)&&(e=mg(e));const t=td(this),n=Na(e,void 0);return n[et].isManual_=!0,xa(t),n}finishDraft(e,t){const n=e&&e[et];(!n||!n.isManual_)&&mt(9);const{scope_:r}=n;return ed(r,t),nd(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 Na(e,t){const n=Cl(e)?Ln("MapSet").proxyMap_(e,t):_l(e)?Ln("MapSet").proxySet_(e,t):dg(e,t);return(t?t.scope_:Xp()).drafts_.push(n),n}function mg(e){return Mn(e)||mt(10,e),em(e)}function em(e){if(!zt(e)||Pl(e))return e;const t=e[et];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ya(e,t.scope_.immer_.useStrictShallowCopy_)}else n=ya(e,!0);return el(n,(r,i)=>{Jp(n,r,em(i))}),t&&(t.finalized_=!1),n}var tt=new pg,tm=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 nm(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var hg=nm(),vg=nm,yg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zo:Zo.apply(null,arguments)},gg=e=>e&&typeof e.match=="function";function Jr(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=>ig(r)&&r.type===e,n}var rm=class Ur extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ur.prototype)}static get[Symbol.species](){return Ur}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ur(...t[0].concat(this)):new Ur(...t.concat(this))}};function id(e){return zt(e)?tm(e,()=>{}):e}function od(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 xg(e){return typeof e=="boolean"}var jg=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let s=new rm;return n&&(xg(n)?s.push(hg):s.push(vg(n.extraArgument))),s},Ng="RTK_autoBatch",im=e=>t=>{setTimeout(t,e)},wg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:im(10),Eg=(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"?wg:e.type==="callback"?e.queueNotification:im(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[Ng]),l=!i,l&&(s||(s=!0,c(u))),r.dispatch(d)}finally{i=!0}}})},Sg=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new rm(e);return r&&i.push(Eg(typeof r=="object"?r:void 0)),i};function kg(e){const t=jg(),{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(Oc(n))a=ng(n);else throw new Error(yt(1));let c;typeof r=="function"?c=r(t):c=t();let u=Zo;i&&(u=yg({trace:!1,...typeof i=="object"&&i}));const d=rg(...c),p=Sg(d);let y=typeof s=="function"?s(p):p();const N=u(...y);return Kp(a,l,N)}function om(e){const t={},n=[];let r;const i={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(yt(28));if(a in t)throw new Error(yt(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 bg(e){return typeof e=="function"}function Cg(e,t){let[n,r,i]=om(t),l;if(bg(e))l=()=>id(e());else{const a=id(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(Mn(d)){const N=p(d,c);return N===void 0?d:N}else{if(zt(d))return tm(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},a)}return s.getInitialState=l,s}var _g=(e,t)=>gg(e)?e.match(t):e(t);function Pg(...e){return t=>e.some(n=>_g(n,t))}var Og="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tg=(e=21)=>{let t="",n=e;for(;n--;)t+=Og[Math.random()*64|0];return t},Rg=["name","message","stack","code"],vs=class{constructor(e,t){Bl(this,"_type");this.payload=e,this.meta=t}},ld=class{constructor(e,t){Bl(this,"_type");this.payload=e,this.meta=t}},Ig=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Rg)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},_t=(()=>{function e(t,n,r){const i=Jr(t+"/fulfilled",(c,u,d,p)=>({payload:c,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),l=Jr(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),s=Jr(t+"/rejected",(c,u,d,p,y)=>({payload:p,error:(r&&r.serializeError||Ig)(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):Tg(),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(Dg(S)&&(S=await S),S===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const _=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([_,Promise.resolve(n(c,{dispatch:u,getState:d,extra:p,requestId:y,signal:N.signal,abort:x,rejectWithValue:(E,A)=>new vs(E,A),fulfillWithValue:(E,A)=>new ld(E,A)})).then(E=>{if(E instanceof vs)throw E;return E instanceof ld?i(E.payload,y,c,E.meta):i(E,y,c)})])}catch(S){m=S instanceof vs?s(null,y,c,S.payload,S.meta):s(S,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(Ag)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:i,settled:Pg(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Ag(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Dg(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Mg=Symbol.for("rtk-slice-createasyncthunk");function Lg(e,t){return`${e}/${t}`}function Fg({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Mg];return function(i){const{name:l,reducerPath:s=l}=i;if(!l)throw new Error(yt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(Bg()):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(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=a[f],w={reducerName:f,type:Lg(l,f),createNotation:typeof i.reducers=="function"};$g(g)?Vg(w,g,d,t):Ug(w,g,d)});function p(){const[f={},g=[],w=void 0]=typeof i.extraReducers=="function"?om(i.extraReducers):[i.extraReducers],S={...f,...u.sliceCaseReducersByType};return Cg(i.initialState,_=>{for(let E in S)_.addCase(E,S[E]);for(let E of u.sliceMatchers)_.addMatcher(E.matcher,E.reducer);for(let E of g)_.addMatcher(E.matcher,E.reducer);w&&_.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(_){let E=_[f];return typeof E>"u"&&g&&(E=x()),E}function S(_=y){const E=od(N,g,{insert:()=>new WeakMap});return od(E,_,{insert:()=>{const A={};for(const[M,U]of Object.entries(i.selectors??{}))A[M]=zg(U,_,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(s),injectInto(f,{reducerPath:g,...w}={}){const S=g??s;return f.inject({reducerPath:S,reducer:j},w),{...m,...h(S,!0)}}};return m}}function zg(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 Ic=Fg();function Bg(){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 Ug({type:e,reducerName:t,createNotation:n},r,i){let l,s;if("reducer"in r){if(n&&!Wg(r))throw new Error(yt(17));l=r.reducer,s=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?Jr(e,s):Jr(e))}function $g(e){return e._reducerDefinitionType==="asyncThunk"}function Wg(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vg({type:e,reducerName:t},n,r,i){if(!i)throw new Error(yt(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||Zi,pending:a||Zi,rejected:c||Zi,settled:u||Zi})}function Zi(){}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 lm(e,t){return function(){return e.apply(t,arguments)}}const{toString:qg}=Object.prototype,{getPrototypeOf:Ac}=Object,Ol=(e=>t=>{const n=qg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jt=e=>(e=e.toLowerCase(),t=>Ol(t)===e),Tl=e=>t=>typeof t===e,{isArray:Er}=Array,ji=Tl("undefined");function Hg(e){return e!==null&&!ji(e)&&e.constructor!==null&&!ji(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sm=jt("ArrayBuffer");function Yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sm(e.buffer),t}const Kg=Tl("string"),Xe=Tl("function"),am=Tl("number"),Rl=e=>e!==null&&typeof e=="object",Qg=e=>e===!0||e===!1,ho=e=>{if(Ol(e)!=="object")return!1;const t=Ac(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gg=jt("Date"),Jg=jt("File"),Xg=jt("Blob"),Zg=jt("FileList"),ex=e=>Rl(e)&&Xe(e.pipe),tx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Ol(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},nx=jt("URLSearchParams"),[rx,ix,ox,lx]=["ReadableStream","Request","Response","Headers"].map(jt),sx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Er(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,um=e=>!ji(e)&&e!==bn;function wa(){const{caseless:e}=um(this)&&this||{},t={},n=(r,i)=>{const l=e&&cm(t,i)||i;ho(t[l])&&ho(r)?t[l]=wa(t[l],r):ho(r)?t[l]=wa({},r):Er(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(Ti(t,(i,l)=>{n&&Xe(i)?e[l]=lm(i,n):e[l]=i},{allOwnKeys:r}),e),cx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ux=(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)},dx=(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&&Ac(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fx=(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(Er(e))return e;let t=e.length;if(!am(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ac(Uint8Array)),hx=(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])}},vx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yx=jt("HTMLFormElement"),gx=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),xx=jt("RegExp"),dm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ti(n,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(r[l]=s||i)}),Object.defineProperties(e,r)},jx=e=>{dm(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+"'")})}})},Nx=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Er(e)?r(e):r(String(e).split(t)),n},wx=()=>{},Ex=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ys="abcdefghijklmnopqrstuvwxyz",ad="0123456789",fm={DIGIT:ad,ALPHA:ys,ALPHA_DIGIT:ys+ys.toUpperCase()+ad},Sx=(e=16,t=fm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kx(e){return!!(e&&Xe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const bx=e=>{const t=new Array(10),n=(r,i)=>{if(Rl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=Er(r)?[]:{};return Ti(r,(s,a)=>{const c=n(s,i+1);!ji(c)&&(l[a]=c)}),t[i]=void 0,l}}return r};return n(e,0)},Cx=jt("AsyncFunction"),_x=e=>e&&(Rl(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),pm=((e,t)=>e?setImmediate:t?((n,r)=>(bn.addEventListener("message",({source:i,data:l})=>{i===bn&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),bn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(bn.postMessage)),Px=typeof queueMicrotask<"u"?queueMicrotask.bind(bn):typeof process<"u"&&process.nextTick||pm,I={isArray:Er,isArrayBuffer:sm,isBuffer:Hg,isFormData:tx,isArrayBufferView:Yg,isString:Kg,isNumber:am,isBoolean:Qg,isObject:Rl,isPlainObject:ho,isReadableStream:rx,isRequest:ix,isResponse:ox,isHeaders:lx,isUndefined:ji,isDate:Gg,isFile:Jg,isBlob:Xg,isRegExp:xx,isFunction:Xe,isStream:ex,isURLSearchParams:nx,isTypedArray:mx,isFileList:Zg,forEach:Ti,merge:wa,extend:ax,trim:sx,stripBOM:cx,inherits:ux,toFlatObject:dx,kindOf:Ol,kindOfTest:jt,endsWith:fx,toArray:px,forEachEntry:hx,matchAll:vx,isHTMLForm:yx,hasOwnProperty:sd,hasOwnProp:sd,reduceDescriptors:dm,freezeMethods:jx,toObjectSet:Nx,toCamelCase:gx,noop:wx,toFiniteNumber:Ex,findKey:cm,global:bn,isContextDefined:um,ALPHABET:fm,generateString:Sx,isSpecCompliantForm:kx,toJSONObject:bx,isAsyncFn:Cx,isThenable:_x,setImmediate:pm,asap:Px};function G(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(G,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 mm=G.prototype,hm={};["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=>{hm[e]={value:e}});Object.defineProperties(G,hm);Object.defineProperty(mm,"isAxiosError",{value:!0});G.from=(e,t,n,r,i,l)=>{const s=Object.create(mm);return I.toFlatObject(e,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),G.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const Ox=null;function Ea(e){return I.isPlainObject(e)||I.isArray(e)}function vm(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function cd(e,t,n){return e?e.concat(t).map(function(i,l){return i=vm(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function Tx(e){return I.isArray(e)&&!e.some(Ea)}const Rx=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Il(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,s=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 G("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)&&Tx(v)||(I.isFileList(v)||I.endsWith(j,"[]"))&&(h=I.toArray(v)))return j=vm(j),h.forEach(function(f,g){!(I.isUndefined(f)||f===null)&&t.append(s===!0?cd([j],g,l):s===null?j:j+"[]",u(f))}),!1}return Ea(v)?!0:(t.append(cd(x,j,l),u(v)),!1)}const p=[],y=Object.assign(Rx,{defaultVisitor:d,convertValue:u,isVisitable:Ea});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 ud(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dc(e,t){this._pairs=[],e&&Il(e,this,t)}const ym=Dc.prototype;ym.append=function(t,n){this._pairs.push([t,n])};ym.toString=function(t){const n=t?function(r){return t.call(this,r,ud)}:ud;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Ix(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gm(e,t,n){if(!t)return e;const r=n&&n.encode||Ix,i=n&&n.serialize;let l;if(i?l=i(t,n):l=I.isURLSearchParams(t)?t.toString():new Dc(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class dd{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 xm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ax=typeof URLSearchParams<"u"?URLSearchParams:Dc,Dx=typeof FormData<"u"?FormData:null,Mx=typeof Blob<"u"?Blob:null,Lx={isBrowser:!0,classes:{URLSearchParams:Ax,FormData:Dx,Blob:Mx},protocols:["http","https","file","blob","url","data"]},Mc=typeof window<"u"&&typeof document<"u",Sa=typeof navigator=="object"&&navigator||void 0,Fx=Mc&&(!Sa||["ReactNative","NativeScript","NS"].indexOf(Sa.product)<0),zx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bx=Mc&&window.location.href||"http://localhost",Ux=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mc,hasStandardBrowserEnv:Fx,hasStandardBrowserWebWorkerEnv:zx,navigator:Sa,origin:Bx},Symbol.toStringTag,{value:"Module"})),Ve={...Ux,...Lx};function $x(e,t){return Il(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 Wx(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vx(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return s=!s&&I.isArray(i)?i.length:s,c?(I.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!I.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],l)&&I.isArray(i[s])&&(i[s]=Vx(i[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(Wx(r),i,n,0)}),n}return null}function qx(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 Ri={transitional:xm,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(jm(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 a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $x(t,this.formSerializer).toString();if((a=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Il(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),qx(t)):t}],transformResponse:[function(t){const n=this.transitional||Ri.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 s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?G.from(a,G.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: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=>{Ri.headers[e]={}});const Hx=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"]),Yx=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]&&Hx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fd=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function vo(e){return e===!1||e==null?e:I.isArray(e)?e.map(vo):String(e)}function Kx(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 Qx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gs(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 Gx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jx(e,t){const n=I.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 qe{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(a,c,u){const d=Mr(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]=vo(a))}const s=(a,c)=>I.forEach(a,(u,d)=>l(u,d,c));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(I.isString(t)&&(t=t.trim())&&!Qx(t))s(Yx(t),n);else if(I.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=Mr(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Kx(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=Mr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||gs(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(s){if(s=Mr(s),s){const a=I.findKey(r,s);a&&(!n||gs(r,r[a],a,n))&&(delete r[a],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||gs(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 s=I.findKey(r,l);if(s){n[s]=vo(i),delete n[l];return}const a=t?Gx(l):String(l).trim();a!==l&&delete n[l],n[a]=vo(i),r[a]=!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[fd]=this[fd]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=Mr(s);r[a]||(Jx(i,s),r[a]=!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 xs(e,t){const n=this||Ri,r=t||n,i=qe.from(r.headers);let l=r.data;return I.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function Nm(e){return!!(e&&e.__CANCEL__)}function Sr(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(Sr,G,{__CANCEL__:!0});function wm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Xx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zx(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 rl=(e,t,n=3)=>{let r=0;const i=Zx(50,250);return e0(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)},pd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},md=e=>(...t)=>I.asap(()=>e(...t)),t0=Ve.hasStandardBrowserEnv?function(){const t=Ve.navigator&&/(msie|trident)/i.test(Ve.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=I.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),n0=Ve.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),I.isString(r)&&s.push("path="+r),I.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 r0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function i0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Em(e,t){return e&&!r0(t)?i0(e,t):t}const hd=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 s(u,d){if(I.isUndefined(d)){if(!I.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(hd(u),hd(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!==a||(n[d]=y)}),n}const Sm=e=>{const t=Fn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=qe.from(s),t.url=gm(Em(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(I.isFormData(n)){if(Ve.hasStandardBrowserEnv||Ve.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(Ve.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&t0(t.url))){const u=i&&l&&n0.read(l);u&&s.set(i,u)}return t},o0=typeof XMLHttpRequest<"u",l0=o0&&function(e){return new Promise(function(n,r){const i=Sm(e);let l=i.data;const s=qe.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=qe.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};wm(function(_){n(_),j()},function(_){r(_),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 G("Request aborted",G.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new G("Network Error",G.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||xm;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new G(g,w.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,x)),x=null},l===void 0&&s.setContentType(null),"setRequestHeader"in x&&I.forEach(s.toJSON(),function(g,w){x.setRequestHeader(w,g)}),I.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),a&&a!=="json"&&(x.responseType=i.responseType),u&&([y,v]=rl(u,!0),x.addEventListener("progress",y)),c&&x.upload&&([p,N]=rl(c),x.upload.addEventListener("progress",p),x.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(d=f=>{x&&(r(!f||f.type?new Sr(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=Xx(i.url);if(m&&Ve.protocols.indexOf(m)===-1){r(new G("Unsupported protocol "+m+":",G.ERR_BAD_REQUEST,e));return}x.send(l||null)})},s0=(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 G?d:new Sr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new G(`timeout ${t} of ms exceeded`,G.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=()=>I.asap(a),c}},a0=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})},Al=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",km=Al&&typeof ReadableStream=="function",d0=Al&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},f0=km&&bm(()=>{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}),yd=64*1024,ka=km&&bm(()=>I.isReadableStream(new Response("").body)),il={stream:ka&&(e=>e.body)};Al&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!il[t]&&(il[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,r)})})})(new Response);const p0=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 d0(e)).byteLength},m0=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??p0(t)},h0=Al&&(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}=Sm(e);u=u?(u+"").toLowerCase():"text";let N=s0([i,l&&l.toAbortSignal()],s),v;const j=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let x;try{if(c&&f0&&n!=="get"&&n!=="head"&&(x=await m0(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[_,E]=pd(x,rl(md(c)));r=vd(w.body,yd,_,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=ka&&(u==="stream"||u==="response");if(ka&&(a||f&&j)){const w={};["status","statusText","headers"].forEach(A=>{w[A]=m[A]});const S=I.toFiniteNumber(m.headers.get("content-length")),[_,E]=a&&pd(S,rl(md(a),!0))||[];m=new Response(vd(m.body,yd,_,()=>{E&&E(),j&&j()}),w)}u=u||"text";let g=await il[I.findKey(il,u)||"text"](m,e);return!f&&j&&j(),await new Promise((w,S)=>{wm(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 G("Network Error",G.ERR_NETWORK,e,v),{cause:h.cause||h}):G.from(h,h&&h.code,e,v)}}),ba={http:Ox,xhr:l0,fetch:h0};I.forEach(ba,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gd=e=>`- ${e}`,v0=e=>I.isFunction(e)||e===null||e===!1,Cm={getAdapter:e=>{e=I.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(gd).join(` +`):" "+gd(l[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ba};function js(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sr(null,e)}function xd(e){return js(e),e.headers=qe.from(e.headers),e.data=xs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cm.getAdapter(e.adapter||Ri.adapter)(e).then(function(r){return js(e),r.data=xs.call(e,e.transformResponse,r),r.headers=qe.from(r.headers),r},function(r){return Nm(r)||(js(e),r&&r.response&&(r.response.data=xs.call(e,e.transformResponse,r.response),r.response.headers=qe.from(r.response.headers))),Promise.reject(r)})}const _m="1.7.7",Lc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jd={};Lc.transitional=function(t,n,r){function i(l,s){return"[Axios v"+_m+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new G(i(s," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!jd[s]&&(jd[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 y0(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.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 G("option "+l+" must be "+c,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+l,G.ERR_BAD_OPTION)}}const Ca={assertOptions:y0,validators:Lc},Wt=Ca.validators;class Pn{constructor(t){this.defaults=t,this.interceptors={request:new dd,response:new dd}}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&&Ca.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}:Ca.assertOptions(i,{encode:Wt.function,serialize:Wt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=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(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=[xd.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 Sr(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 Fc(function(i){t=i}),cancel:t}}}function g0(e){return function(n){return e.apply(null,n)}}function x0(e){return I.isObject(e)&&e.isAxiosError===!0}const _a={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(_a).forEach(([e,t])=>{_a[t]=e});function Pm(e){const t=new Pn(e),n=lm(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 Pm(Fn(e,i))},n}const oe=Pm(Ri);oe.Axios=Pn;oe.CanceledError=Sr;oe.CancelToken=Fc;oe.isCancel=Nm;oe.VERSION=_m;oe.toFormData=Il;oe.AxiosError=G;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=g0;oe.isAxiosError=x0;oe.mergeConfig=Fn;oe.AxiosHeaders=qe;oe.formToJSON=e=>jm(I.isHTMLForm(e)?new FormData(e):e);oe.getAdapter=Cm.getAdapter;oe.HttpStatusCode=_a;oe.default=oe;const j0="http://67.225.129.127:3002",Ut=oe.create({baseURL:j0});Ut.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const N0=e=>Ut.post("/users/signup",e),w0=e=>Ut.post("/users/signin",e),E0=(e,t,n)=>Ut.get(`/users/${e}/verify/${t}`,n),S0=e=>Ut.post("/properties",e),k0=(e,t,n)=>Ut.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),b0=e=>Ut.get(`/properties/${e}`,e),C0=(e,t)=>Ut.put(`/properties/${e}`,t),_0=e=>Ut.get(`/users/${e}`),yo=_t("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await w0(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),go=_t("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await N0(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),xo=_t("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await oe.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Om=Ic({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(yo.pending,t=>{t.loading=!0}).addCase(yo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).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.isLoading=!0}).addCase(xo.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(xo.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:Xj,setLogout:P0,setUserDetails:Zj}=Om.actions,O0=Om.reducer,jo=_t("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await _0(e)).data}catch(n){return t(n.response.data)}}),No=_t("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await E0(e,t,n)).data.message}catch(i){return r(i.response.data)}}),T0=Ic({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(jo.pending,t=>{t.loading=!0,t.error=null}).addCase(jo.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(jo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(No.pending,t=>{t.loading=!0,t.error=null}).addCase(No.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(No.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),R0=T0.reducer,wo=_t("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await S0(e)).data}catch(n){return t(n.response.data)}}),Eo=_t("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await k0(e,t,n)).data}catch(i){return r(i.response.data)}}),Xr=_t("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await b0(e)).data}catch(n){return t(n.response.data)}}),So=_t("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await C0(e,t)).data}catch(r){return n(r.response.data)}}),Zr=_t("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await oe.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),I0=Ic({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(wo.pending,t=>{t.status="loading"}).addCase(wo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(wo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Eo.pending,t=>{t.loading=!0}).addCase(Eo.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Eo.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Xr.pending,t=>{t.status="loading"}).addCase(Xr.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Xr.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(So.pending,t=>{t.status="loading"}).addCase(So.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(So.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Zr.pending,t=>{t.loading=!0}).addCase(Zr.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Zr.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),A0=I0.reducer,D0=kg({reducer:{auth:O0,user:R0,property:A0}});/** + * @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 Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function L0(){return Math.random().toString(36).substr(2,8)}function wd(e,t){return{usr:e.state,key:e.key,idx:t}}function Pa(e,t,n,r){return n===void 0&&(n=null),Ni({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?kr(t):t,{state:n,key:t&&t.key||r||L0()})}function ol(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 kr(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 F0(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,a=Zt.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(Ni({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=Zt.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=Zt.Push;let m=Pa(j.location,x,h);u=d()+1;let f=wd(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=Zt.Replace;let m=Pa(j.location,x,h);u=d();let f=wd(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:ol(x);return m=m.replace(/ $/,"%20"),me(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(Nd,p),c=x,()=>{i.removeEventListener(Nd,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 Ed;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ed||(Ed={}));function z0(e,t,n){return n===void 0&&(n="/"),B0(e,t,n,!1)}function B0(e,t,n,r){let i=typeof t=="string"?kr(t):t,l=xr(i.pathname||"/",n);if(l==null)return null;let s=Rm(e);U0(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("/")&&(me(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&&(me(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Rm(l.children,t,d,u)),!(l.path==null&&!l.index)&&t.push({path:u,score:K0(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 Im(l.path))i(l,s,c)}),t}function Im(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=Im(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 U0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Q0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $0=/^:[\w-]+$/,W0=3,V0=2,q0=1,H0=10,Y0=-2,Sd=e=>e==="*";function K0(e,t){let n=e.split("/"),r=n.length;return n.some(Sd)&&(r+=Y0),t&&(r+=V0),n.filter(i=>!Sd(i)).reduce((i,l)=>i+($0.test(l)?W0:l===""?q0:H0),r)}function Q0(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 G0(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 J0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tm(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 X0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tm(!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 xr(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 Z0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?kr(e):e;return{pathname:n?n.startsWith("/")?n:e1(n,t):t,search:r1(r),hash:i1(i)}}function e1(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 Ns(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 t1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Am(e,t){let n=t1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Dm(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=kr(e):(i=Ni({},e),me(!i.pathname||!i.pathname.includes("?"),Ns("?","pathname","search",i)),me(!i.pathname||!i.pathname.includes("#"),Ns("#","pathname","hash",i)),me(!i.search||!i.search.includes("#"),Ns("#","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=Z0(i,a),u=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const un=e=>e.join("/").replace(/\/\/+/g,"/"),n1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,i1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function o1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Mm=["post","put","patch","delete"];new Set(Mm);const l1=["get",...Mm];new Set(l1);/** + * 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 wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),T.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let p=Dm(u,JSON.parse(s),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,s,l,e])}function Cr(){let{matches:e}=T.useContext(gn),t=e[e.length-1];return t?t.params:{}}function Ll(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(yn),{matches:i}=T.useContext(gn),{pathname:l}=Ai(),s=JSON.stringify(Am(i,r.v7_relativeSplatPath));return T.useMemo(()=>Dm(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function c1(e,t){return u1(e,t)}function u1(e,t,n,r){Ii()||me(!1);let{navigator:i}=T.useContext(yn),{matches:l}=T.useContext(gn),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=Ai(),d;if(t){var p;let x=typeof t=="string"?kr(t):t;c==="/"||(p=x.pathname)!=null&&p.startsWith(c)||me(!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=z0(e,{pathname:N}),j=h1(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,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?T.createElement(Ml.Provider,{value:{location:wi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Zt.Pop}},j):j}function d1(){let e=x1(),t=o1(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 T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,null)}const f1=T.createElement(d1,null);class p1 extends T.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?T.createElement(gn.Provider,{value:this.props.routeContext},T.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function m1(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(Dl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(gn.Provider,{value:t},r)}function h1(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||me(!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||f1,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=T.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,T.createElement(m1,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?T.createElement(p1,{location:n.location,revalidation:n.revalidation,component:j,error:N,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var Bm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Bm||{}),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 v1(e){let t=T.useContext(Dl);return t||me(!1),t}function y1(e){let t=T.useContext(Lm);return t||me(!1),t}function g1(e){let t=T.useContext(gn);return t||me(!1),t}function Um(e){let t=g1(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function x1(){var e;let t=T.useContext(Fm),n=y1(sl.UseRouteError),r=Um(sl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function j1(){let{router:e}=v1(Bm.UseNavigateStable),t=Um(sl.UseNavigateStable),n=T.useRef(!1);return zm(()=>{n.current=!0}),T.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,wi({fromRouteId:t},l)))},[e,t])}function je(e){me(!1)}function N1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Zt.Pop,navigator:l,static:s=!1,future:a}=e;Ii()&&me(!1);let c=t.replace(/^\/*/,"/"),u=T.useMemo(()=>({basename:c,navigator:l,static:s,future:wi({v7_relativeSplatPath:!1},a)}),[c,a,l,s]);typeof r=="string"&&(r=kr(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,j=T.useMemo(()=>{let x=xr(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:T.createElement(yn.Provider,{value:u},T.createElement(Ml.Provider,{children:n,value:j}))}function w1(e){let{children:t,location:n}=e;return c1(Oa(t),n)}new Promise(()=>{});function Oa(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let l=[...t,i];if(r.type===T.Fragment){n.push.apply(n,Oa(r.props.children,l));return}r.type!==je&&me(!1),!r.props.index||!r.props.children||me(!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=Oa(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 al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function E1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function S1(e,t){return e.button===0&&(!t||t==="_self")&&!E1(e)}const k1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],b1=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],C1="6";try{window.__reactRouterVersion=C1}catch{}const _1=T.createContext({isTransitioning:!1}),P1="startTransition",kd=Es[P1];function O1(e){let{basename:t,children:n,future:r,window:i}=e,l=T.useRef();l.current==null&&(l.current=M0({window:i,v5Compat:!0}));let s=l.current,[a,c]=T.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},d=T.useCallback(p=>{u&&kd?kd(()=>c(p)):c(p)},[c,u]);return T.useLayoutEffect(()=>s.listen(d),[s,d]),T.createElement(N1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const T1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,I1=T.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=$m(t,k1),{basename:N}=T.useContext(yn),v,j=!1;if(typeof u=="string"&&R1.test(u)&&(v=u,T1))try{let f=new URL(window.location.href),g=u.startsWith("//")?new URL(f.protocol+u):new URL(u),w=xr(g.pathname,N);g.origin===f.origin&&w!=null?u=w+g.search+g.hash:j=!0}catch{}let x=s1(u,{relative:i}),h=D1(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 T.createElement("a",al({},y,{href:v||x,onClick:j||l?r:m,ref:n,target:c}))}),ae=T.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=$m(t,b1),y=Ll(c,{relative:p.relative}),N=Ai(),v=T.useContext(Lm),{navigator:j,basename:x}=T.useContext(yn),h=v!=null&&M1(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=xr(g,x)||g);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=f===m||!s&&f.startsWith(m)&&f.charAt(w)==="/",_=g!=null&&(g===m||!s&&g.startsWith(m)&&g.charAt(m.length)==="/"),E={isActive:S,isPending:_,isTransitioning:h},A=S?r:void 0,M;typeof l=="function"?M=l(E):M=[l,S?"active":null,_?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a(E):a;return T.createElement(I1,al({},p,{"aria-current":A,className:M,ref:n,style:U,to:c,unstable_viewTransition:u}),typeof d=="function"?d(E):d)});var Ta;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ta||(Ta={}));var bd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bd||(bd={}));function A1(e){let t=T.useContext(Dl);return t||me(!1),t}function D1(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,c=br(),u=Ai(),d=Ll(e,{relative:s});return T.useCallback(p=>{if(S1(p,n)){p.preventDefault();let y=r!==void 0?r:ol(u)===ol(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 M1(e,t){t===void 0&&(t={});let n=T.useContext(_1);n==null&&me(!1);let{basename:r}=A1(Ta.useViewTransitionState),i=Ll(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=xr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=xr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ll(i.pathname,s)!=null||ll(i.pathname,l)!=null}function Wm(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",ko=e=>On(e)||Ge(e)?e:null,Ra=e=>T.isValidElement(e)||On(e)||Ge(e)||Ei(e);function L1(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 Fl(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=T.useRef(0);return T.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)},[]),T.useEffect(()=>{const h=p.current,m=()=>{h.removeEventListener("animationend",m),i?L1(h,d,l):d()};y||(u?m():(x.current=1,h.className+=` ${j}`,h.addEventListener("animationend",m)))},[y]),O.createElement(O.Fragment,null,a)}}function Cd(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 Si=[];const Ia=new Set,F1=e=>Ia.forEach(t=>t(e)),Vm=()=>Ae.size>0;function qm(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 Hm(e,t){Ra(e)&&(Vm()||Si.push({content:e,options:t}),Ae.forEach(n=>{n.buildToast(e,t)}))}function _d(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 z1(e){const{subscribe:t,getSnapshot:n,setProps:r}=T.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())},S=E=>{x=E==null?[]:x.filter(A=>A!==E),w()},_=E=>{const{toastId:A,onOpen:M,updateId:U,children:H}=E.props,q=U==null;E.staleId&&f.delete(E.staleId),f.set(A,E),x=[...x,E.props.toastId].filter(F=>F!==E.staleId),w(),y(Cd(E,q?"added":"updated")),q&&Ge(M)&&M(T.isValidElement(H)&&H.props)};return{id:d,props:m,observe:E=>(g.add(E),()=>g.delete(E)),toggle:(E,A)=>{f.forEach(M=>{A!=null&&A!==M.props.toastId||Ge(M.toggle)&&M.toggle(E)})},removeToast:S,toasts:f,clearQueue:()=>{v-=j.length,j=[]},buildToast:(E,A)=>{if((L=>{let{containerId:W,toastId:V,updateId:Y}=L;const K=W?W!==d:d!==1,Q=f.has(V)&&Y==null;return K||Q})(A))return;const{toastId:M,updateId:U,data:H,staleId:q,delay:F}=A,b=()=>{S(M)},P=U==null;P&&v++;const B={...m,style:m.toastStyle,key:N++,...Object.fromEntries(Object.entries(A).filter(L=>{let[W,V]=L;return V!=null})),toastId:M,updateId:U,data:H,closeToast:b,isIn:!1,className:ko(A.className||m.toastClassName),bodyClassName:ko(A.bodyClassName||m.bodyClassName),progressClassName:ko(A.progressClassName||m.progressClassName),autoClose:!A.isLoading&&(C=A.autoClose,k=m.autoClose,C===!1||Ei(C)&&C>0?C:k),deleteToast(){const L=f.get(M),{onClose:W,children:V}=L.props;Ge(W)&&W(T.isValidElement(V)&&V.props),y(Cd(L,"removed")),f.delete(M),v--,v<0&&(v=0),j.length>0?_(j.shift()):w()}};var C,k;B.closeButton=m.closeButton,A.closeButton===!1||Ra(A.closeButton)?B.closeButton=A.closeButton:A.closeButton===!0&&(B.closeButton=!Ra(m.closeButton)||m.closeButton);let R=E;T.isValidElement(E)&&!On(E.type)?R=T.cloneElement(E,{closeToast:b,toastProps:B,data:H}):Ge(E)&&(R=E({closeToast:b,toastProps:B,data:H}));const D={content:R,props:B,staleId:q};m.limit&&m.limit>0&&v>m.limit&&P?j.push(D):Ei(F)?setTimeout(()=>{_(D)},F):_(D)},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}}(s,l,F1);Ae.set(s,c);const u=c.observe(a);return Si.forEach(d=>Hm(d.content,d.options)),Si=[],()=>{u(),Ae.delete(s)}},setProps(a){var c;(c=Ae.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=Ae.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=T.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:qm,count:i==null?void 0:i.length}}function B1(e){const[t,n]=T.useState(!1),[r,i]=T.useState(!1),l=T.useRef(null),s=T.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=Ae.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),T.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:S,right:_}=l.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=S&&f.clientX<=_&&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 U1(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=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(s)?s({rtl:d,type:i,defaultClassName:j}):en(j,s),h={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{p&&r()}};return O.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},O.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),O.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:x,style:v,...h}))}let $1=1;const Ym=()=>""+$1++;function W1(e){return e&&(On(e.toastId)||Ei(e.toastId))?e.toastId:Ym()}function ei(e,t){return Hm(e,t),t.toastId}function cl(e,t){return{...t,type:t&&t.type||e,toastId:W1(t)}}function eo(e){return(t,n)=>ei(t,cl(e,n))}function J(e,t){return ei(e,cl("default",t))}J.loading=(e,t)=>ei(e,cl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),J.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=On(i)?J.loading(i,n):J.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 J.dismiss(r);const N={type:d,...a,...n,data:y},v=On(p)?{render:p}:p;return r?J.update(r,{...N,...v}):J(v.render,{...N,...v}),y},u=Ge(e)?e():e;return u.then(d=>c("success",s,d)).catch(d=>c("error",l,d)),u},J.success=eo("success"),J.info=eo("info"),J.error=eo("error"),J.warning=eo("warning"),J.warn=J.warning,J.dark=(e,t)=>ei(e,cl("default",{theme:"dark",...t})),J.dismiss=function(e){(function(t){var n;if(Vm()){if(t==null||On(n=t)||Ei(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 Si=Si.filter(r=>t!=null&&r.options.toastId!==t)})(e)},J.clearWaitingQueue=function(e){e===void 0&&(e={}),Ae.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},J.isActive=qm,J.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=Ae.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:Ym()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,ei(s,l)}},J.done=e=>{J.update(e,{progress:1})},J.onChange=function(e){return Ia.add(e),()=>{Ia.delete(e)}},J.play=e=>_d(!0,e),J.pause=e=>_d(!1,e);const V1=typeof window<"u"?T.useLayoutEffect:T.useEffect,to=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return O.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},ws={info:function(e){return O.createElement(to,{...e},O.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 O.createElement(to,{...e},O.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 O.createElement(to,{...e},O.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 O.createElement(to,{...e},O.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 O.createElement("div",{className:"Toastify__spinner"})}},q1=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=B1(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:S,progress:_,rtl:E,toastId:A,deleteToast:M,isIn:U,isLoading:H,closeOnClick:q,theme:F}=e,b=en("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":q}),P=Ge(j)?j({rtl:E,position:v,type:d,defaultClassName:b}):en(b,j),B=function(D){let{theme:L,type:W,isLoading:V,icon:Y}=D,K=null;const Q={theme:L,type:W};return Y===!1||(Ge(Y)?K=Y({...Q,isLoading:V}):T.isValidElement(Y)?K=T.cloneElement(Y,Q):V?K=ws.spinner():(X=>X in ws)(W)&&(K=ws[W](Q))),K}(e),C=!!_||!c,k={closeToast:y,type:d,theme:F};let R=null;return s===!1||(R=Ge(s)?s(k):T.isValidElement(s)?T.cloneElement(s,k):function(D){let{closeToast:L,theme:W,ariaLabel:V="close"}=D;return O.createElement("button",{className:`Toastify__close-button Toastify__close-button--${W}`,type:"button",onClick:Y=>{Y.stopPropagation(),L(Y)},"aria-label":V},O.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},O.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"})))}(k)),O.createElement(N,{isIn:U,done:M,position:v,preventExitTransition:n,nodeRef:r,playToast:l},O.createElement("div",{id:A,onClick:u,"data-in":U,className:P,...i,style:x,ref:r},O.createElement("div",{...U&&{role:S},className:Ge(h)?h({type:d}):en("Toastify__toast-body",h),style:m},B!=null&&O.createElement("div",{className:en("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!H})},B),O.createElement("div",null,a)),R,O.createElement(U1,{...w&&!C?{key:`pb-${w}`}:{},rtl:E,theme:F,delay:c,isRunning:t,isIn:U,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:C,progress:_||0})))},zl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},H1=Fl(zl("bounce",!0));Fl(zl("slide",!0));Fl(zl("zoom"));Fl(zl("flip"));const Y1={position:"top-right",transition:H1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function K1(e){let t={...Y1,...e};const n=e.stacked,[r,i]=T.useState(!0),l=T.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=z1(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,ko(u))}function v(){n&&(i(!0),J.play())}return V1(()=>{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 _=w;_.classList.add("Toastify__toast--stacked"),S>0&&(_.dataset.collapsed=`${r}`),_.dataset.pos||(_.dataset.pos=m?"top":"bot");const E=f*(r?.2:1)+(r?0:h*S);_.style.setProperty("--y",`${m?E:-1*E}px`),_.style.setProperty("--g",`${h}`),_.style.setProperty("--s",""+(1-(r?g:0))),f+=_.offsetHeight,g+=.025})}},[r,c,n]),O.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),J.pause())},onMouseLeave:v},s((j,x)=>{const h=x.length?{...d}:{...d,pointerEvents:"none"};return O.createElement("div",{className:N(j),style:h,key:`container-${j}`},x.map(m=>{let{content:f,props:g}=m;return O.createElement(q1,{...g,stacked:n,collapseAll:v,isIn:a(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(ae,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(ae,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(ae,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(ae,{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."]})})})})})]})})},Q1="/assets/logo-Cb1x1exd.png",Ee=()=>{var i,l;const{user:e}=He(s=>({...s.auth})),t=xt(),n=br(),r=()=>{t(P0()),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:Q1,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(ae,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ae,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ae,{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(ae,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(ae,{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(ae,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(ae,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):o.jsx(ae,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(ae,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):o.jsx(ae,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},G1=()=>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,{})]}),J1=()=>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,{})]}),X1=()=>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]=T.useState(Ej),[n,r]=T.useState(!1),{loading:i,error:l}=He(w=>({...w.auth})),{title:s,email:a,password:c,firstName:u,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,j=xt(),x=br();T.useEffect(()=>{l&&J.error(l)},[l]),T.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 J.error("Password should match");n?j(go({formValue:e,navigate:x,toast:J})):J.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:_,type:E,checked:A}=w.target;t(E==="checkbox"?M=>({...M,[S]:A}):M=>({...M,[S]:S==="email"||S==="password"||S==="confirmPassword"?_:m(_)}))},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: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(Km.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,{})]})},kj={email:"",password:""},bj=()=>{const[e,t]=T.useState(kj),{loading:n,error:r}=He(d=>({...d.auth})),{email:i,password:l}=e,s=xt(),a=br();T.useEffect(()=>{r&&J.error(r)},[r]);const c=d=>{d.preventDefault(),i&&l&&s(yo({formValue:e,navigate:a,toast:J}))},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(Km.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(ae,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(ae,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(Re,{})]})},bo="/assets/samplepic-BM_cnzgz.jpg";var Qm={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(rh,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 F=Array(q),b=0;b"u"||E.$$typeof!==h)){var B=typeof g=="function"?g.displayName||g.name||"Unknown":g;A&&c(E,B),M&&u(E,B)}return f(g,A,M,U,H,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 _,E=y({},g.props),A=g.key,M=g.ref,U=g._self,H=g._source,q=g._owner;if(w!=null){s(w)&&(M=w.ref,q=N.current),a(w)&&(A=""+w.key);var F;g.type&&g.type.defaultProps&&(F=g.type.defaultProps);for(_ in w)x.call(w,_)&&!m.hasOwnProperty(_)&&(w[_]===void 0&&F!==void 0?E[_]=F[_]:E[_]=w[_])}var b=arguments.length-2;if(b===1)E.children=S;else if(b>1){for(var P=Array(b),B=0;B1?u-1:0),p=1;p2?d-2:0),y=2;y.")}return _}function u(S,_){if(S._store&&!S._store.validated&&S.key==null){S._store.validated=!0;var E=g.uniqueKey||(g.uniqueKey={}),A=c(_);if(!E[A]){E[A]=!0;var M="";S&&S._owner&&S._owner!==y.current&&(M=" 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,M,N.getCurrentStackAddendum(S))}}}function d(S,_){if(typeof S=="object"){if(Array.isArray(S))for(var E=0;E1?V-1:0),K=1;K"u"||D===null)return""+D;var L=q(D);if(L==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return L}function b(D){var L=F(D);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function P(D){return D.constructor&&D.constructor.name?D.constructor.name:k}var B=typeof Symbol=="function"&&Symbol.iterator,C="@@iterator",k="<>",R={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:_,oneOf:S,oneOfType:E,shape:M};return j.prototype=Error.prototype,R.checkPropTypes=d,R.PropTypes=R,R}}).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 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"?a(!1,"Trying to release an instance into a pool of a different type."):s("25")),h.destructor(),m.instancePool.length{const[e,t]=T.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:s}=He(F=>F.property),{user:a}=He(F=>({...F.auth})),[c,u]=T.useState({poolspa:"",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:""}]}),[d,p]=T.useState(!1),y=(F,b)=>{const P=[...c.images];P[b].file=F.base64,u({...c,images:P})},N=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},v=F=>{const b=c.images.filter((P,B)=>B!==F);u({...c,images:b})},j=(F,b)=>{const P=[...c.images];P[F].title=b.target.value,u({...c,images:P})},x=(F,b,P)=>{const{name:B,value:C}=F.target;if(P==="propertyTaxInfo"){const k=[...c.propertyTaxInfo];k[b][B]=C,u({...c,propertyTaxInfo:k})}else u({...c,[B]:C})},h=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=F=>{const b=c.propertyTaxInfo.filter((P,B)=>B!==F);u({...c,propertyTaxInfo:b})},f=()=>{u(F=>({...F,costPaidAtoB:[...F.costPaidAtoB,{title:"",price:""}]}))},g=F=>{const b=c.costPaidAtoB.filter((P,B)=>B!==F);u(P=>({...P,costPaidAtoB:b}))},w=(F,b,P)=>{const B=[...c.costPaidAtoB];B[F][b]=P,u(C=>({...C,costPaidAtoB:B}))},S=(F,b)=>{const P=F.target.value;if(/^\d*\.?\d*$/.test(P)||P===""){const C=c.costPaidAtoB.map((k,R)=>R===b?{...k,price:P,isInvalid:!1}:k);u({...c,costPaidAtoB:C})}else{const C=c.costPaidAtoB.map((k,R)=>R===b?{...k,isInvalid:!0}:k);u({...c,costPaidAtoB:C})}},_=()=>{const F=c.costPaidAtoB.reduce((P,B)=>{const C=parseFloat(B.price)||0;return P+C},0),b=parseFloat(c.purchaseCost)||0;return F+b},E=()=>{u(F=>({...F,credits:[...F.credits,{title:"",price:""}]}))},A=F=>{const b=c.credits.filter((P,B)=>B!==F);u(P=>({...P,credits:b}))},M=(F,b,P)=>{const B=[...c.credits];B[F][b]=P,u(C=>({...C,credits:B}))},U=(F,b)=>{const P=F.target.value;if(/^\d*\.?\d*$/.test(P)||P===""){const C=c.credits.map((k,R)=>R===b?{...k,price:P,isInvalid:!1}:k);u({...c,credits:C})}else{const C=c.credits.map((k,R)=>R===b?{...k,isInvalid:!0}:k);u({...c,credits:C})}},H=()=>{const F=c.costPaidAtoB.reduce((B,C)=>{const k=parseFloat(C.price)||0;return B+k},0),b=c.credits.reduce((B,C)=>{const k=parseFloat(C.price)||0;return B+k},0),P=parseFloat(c.purchaseCost)||0;return F+b+P},q=()=>{var F,b,P,B,C,k;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 R=_(),D=H(),L={...c,userfirstname:(F=a==null?void 0:a.result)==null?void 0:F.firstName,usermiddlename:(b=a==null?void 0:a.result)==null?void 0:b.middleName,userlastname:(P=a==null?void 0:a.result)==null?void 0:P.lastName,usertitle:(B=a==null?void 0:a.result)==null?void 0:B.title,useremail:(C=a==null?void 0:a.result)==null?void 0:C.email,userId:(k=a==null?void 0:a.result)==null?void 0:k.userId,totalCostsAtoB:R,totalCostsAtoBaftercredits:D};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?L.propertyTaxInfo=c.propertyTaxInfo:L.propertyTaxInfo=[],i(wo(L)),p(!0)}else J.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};return T.useEffect(()=>{d&&(l==="succeeded"?(J.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),p(!1)):l==="failed"&&(J.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(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((F,b)=>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:F.propertytaxowned,onChange:P=>x(P,b,"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:F.ownedyear,onChange:P=>x(P,b,"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:F.taxassessed,onChange:P=>x(P,b,"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:F.taxyear,onChange:P=>x(P,b,"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(b),style:{height:"25px",width:"35px"},children:"X"})]})})]},b)),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((F,b)=>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:F.title,placeholder:"Image Title",onChange:P=>j(b,P)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(Gm,{multiple:!1,onDone:P=>y(P,b)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>v(b),style:{marginLeft:"5px"},children:"Delete"})]}),F.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:F.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},b)),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:F=>u({...c,purchaseCost:F.target.value}),placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((F,b)=>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:F.title,onChange:P=>w(b,"title",P.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${F.isInvalid?"is-invalid":""}`,value:F.price,onChange:P=>S(P,b),placeholder:"Price",style:{textAlign:"right"},required:!0}),F.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(b),style:{marginLeft:"5px"},children:"x"})})]},b)),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:_(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits"}),c.credits.map((F,b)=>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:F.title,onChange:P=>M(b,"title",P.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${F.isInvalid?"is-invalid":""}`,value:F.price,onChange:P=>U(P,b),placeholder:"Price",style:{textAlign:"right"},required:!0}),F.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(b),style:{marginLeft:"5px"},children:"x"})})]},b)),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 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:H(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B After credits",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",{})]})]})]})})},kt="/assets/propertydummy-DhVEZ7jN.jpg",Pj=()=>{var c;const e=xt(),{user:t}=He(u=>({...u.auth})),{userProperties:n,totalPages:r}=He(u=>u.property),[i,l]=T.useState(1),s=5;T.useEffect(()=>{e(Eo({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:kt,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(ae,{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(ae,{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(ae,{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."})})},Oj=()=>{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=br(),[l,s]=T.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)||""});T.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=S=>{s({...l,[S.target.name]:S.target.value})},c=()=>{s({...l,profileImage:""})},u=S=>{S.preventDefault(),r(xo(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(Gm,{type:"file",multiple:!1,onDone:({base64:S})=>s({...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})]})})},Tj=()=>{const[e,t]=T.useState("dashboard"),{user:n}=He(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(Oj,{});case"addProperty":return o.jsx(_j,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(Pj,{})]});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||bo,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(ae,{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 Jm={exports:{}},Rj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ij=Rj,Aj=Ij;function Xm(){}function Zm(){}Zm.resetWarningCache=Xm;var Dj=function(){function e(r,i,l,s,a,c){if(c!==Aj){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:Zm,resetWarningCache:Xm};return n.PropTypes=n,n};Jm.exports=Dj();var Mj=Jm.exports;const Lj=Aa(Mj),Fj=()=>{const[e,t]=T.useState(3),n=br();return T.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"]})})},Co=({children:e})=>{const{user:t}=He(n=>({...n.auth}));return t?e:o.jsx(Fj,{})};Co.propTypes={children:Lj.node.isRequired};const zj=()=>{const e=xt(),{id:t,token:n}=Cr();return T.useEffect(()=>{e(No({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(ae,{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,{})]})},Bj=()=>{const[e,t]=T.useState(""),[n,r]=T.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await oe.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(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: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(ae,{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,{})]})]})},Uj=()=>{const{userId:e,token:t}=Cr(),[n,r]=T.useState(""),[i,l]=T.useState(""),[s,a]=T.useState(""),c="http://67.225.129.127:3002",u=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),J.error("Password not entered");return}const d=await oe.post(`${c}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),J.error("Passwords do not match.");return}else a("Password reset successfull"),J.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return T.useEffect(()=>{J.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:s})]})})})}),o.jsx(Re,{})]})},$j=()=>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,{})]}),Wj=()=>{const{id:e}=Cr(),t=xt(),{selectedProperty:n,status:r,error:i}=He(a=>a.property),[l,s]=T.useState(!0);return T.useEffect(()=>{e&&(t(Xr(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(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||kt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:kt,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,{})]})},Vj=()=>{const[e,t]=T.useState([]),[n,r]=T.useState(0),[i,l]=T.useState(0),[s]=T.useState(10),[a,c]=T.useState(""),[u,d]=T.useState(!1),[p,y]=T.useState(!1),N=async()=>{d(!0),y(!1);try{const h=await oe.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())};T.useEffect(()=>{N()},[a,i]);const x=Math.ceil(n/s);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: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(ae,{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,{})]})},qj=()=>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,{})]}),Hj=()=>{const{house_id:e}=Cr();console.log("house_id",e);const[t,n]=T.useState(null),[r,i]=T.useState(!0);return T.useEffect(()=>{(async()=>{try{const s=await oe.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(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:kt,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,{})]})},Yj=()=>{const{id:e}=Cr(),t=xt(),{selectedProperty:n}=He(a=>a.property),[r,i]=T.useState({propertyType:"",yearBuild:"",totalSqft:""});T.useEffect(()=>{t(Xr(e))},[t,e]),T.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(So({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: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(Re,{})]})},Kj=()=>{const e=xt(),{properties:t,loading:n,totalPages:r,currentPage:i}=He(j=>j.property),[l,s]=T.useState(""),[a,c]=T.useState([]),[u,d]=T.useState(1),p=10;T.useEffect(()=>{e(Zr({page:u,limit:p,keyword:l}))},[e,u,l]),T.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(Zr({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: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||kt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:kt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(ae,{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,{})]})},Qj=()=>{const{userId:e}=Cr(),t=xt(),{user:n,loading:r}=He(i=>i.user);return console.log("user",n),T.useEffect(()=>{e&&t(jo(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:kt,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:kt,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:kt,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:kt,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:bo,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:bo,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:bo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},Gj=()=>o.jsxs(O1,{children:[o.jsx(K1,{}),o.jsxs(w1,{children:[o.jsx(je,{path:"/",element:o.jsx(G1,{})}),o.jsx(je,{path:"/about",element:o.jsx(J1,{})}),o.jsx(je,{path:"/services",element:o.jsx(qj,{})}),o.jsx(je,{path:"/contact",element:o.jsx(X1,{})}),o.jsx(je,{path:"/register",element:o.jsx(Sj,{})}),o.jsx(je,{path:"/registrationsuccess",element:o.jsx(Co,{children:o.jsx($j,{})})}),o.jsx(je,{path:"/login",element:o.jsx(bj,{})}),o.jsx(je,{path:"/dashboard",element:o.jsx(Co,{children:o.jsx(Tj,{})})}),o.jsx(je,{path:"/users/:id/verify/:token",element:o.jsx(zj,{})}),o.jsx(je,{path:"/forgotpassword",element:o.jsx(Bj,{})}),o.jsx(je,{path:"/users/resetpassword/:userId/:token",element:o.jsx(Uj,{})}),o.jsx(je,{path:"/property/:id",element:o.jsx(Wj,{})}),o.jsx(je,{path:"/properties/:house_id",element:o.jsx(Hj,{})}),o.jsx(je,{path:"/searchmyproperties",element:o.jsx(Vj,{})}),o.jsx(je,{path:"/searchproperties",element:o.jsx(Kj,{})}),o.jsx(je,{path:"/editproperty/:id",element:o.jsx(Co,{children:o.jsx(Yj,{})})}),o.jsx(je,{path:"/profile/:userId",element:o.jsx(Qj,{})})]})]});$p(document.getElementById("root")).render(o.jsx(T.StrictMode,{children:o.jsx(Gy,{store:D0,children:o.jsx(Gj,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index 21914e3..2fa6c2e 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 copy 2.jsx b/ef-ui/src/components/Addproperty copy 2.jsx new file mode 100644 index 0000000..f72c3e6 --- /dev/null +++ b/ef-ui/src/components/Addproperty copy 2.jsx @@ -0,0 +1,880 @@ +import { useDispatch, useSelector } from "react-redux"; +import { submitProperty } from "../redux/features/propertySlice"; +import { useState, useEffect } from "react"; +import Navbar from "./Navbar"; +import { toast } from "react-toastify"; +import "react-toastify/dist/ReactToastify.css"; +import FileBase64 from "react-file-base64"; +import "../addproperty.css"; + +const Addproperty = () => { + const [activeTab, setActiveTab] = useState("propertydetails"); + const handleContinue = () => { + if (activeTab === "propertydetails") setActiveTab("Images"); + if (activeTab === "Images") setActiveTab("Accounting"); + }; + + const handleBack = () => { + if (activeTab === "Images") setActiveTab("propertydetails"); + if (activeTab === "Accounting") setActiveTab("Images"); + }; + + const dispatch = useDispatch(); + const { status, error } = useSelector((state) => state.property); + const { user } = useSelector((state) => ({ ...state.auth })); + + const [formData, setFormData] = useState({ + poolspa: "", + propertyTaxInfo: [ + { propertytaxowned: "", ownedyear: "", taxassessed: "", taxyear: "" }, + ], + images: [{ title: "", file: "" }], // Array to hold image objects + googleMapLink: "", // Field for Google Maps link + 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: "" }], + }); + + const [submitted, setSubmitted] = useState(false); + + const handleImageChange = (file, index) => { + const updatedImages = [...formData.images]; + updatedImages[index].file = file.base64; // store base64 format of image + setFormData({ ...formData, images: updatedImages }); + }; + + const handleAddImage = () => { + setFormData({ + ...formData, + images: [...formData.images, { title: "", file: "" }], + }); + }; + + const handleDeleteImage = (index) => { + const updatedImages = formData.images.filter((_, i) => i !== index); + setFormData({ ...formData, images: updatedImages }); + }; + + const handleImageTitleChange = (index, e) => { + const updatedImages = [...formData.images]; + updatedImages[index].title = e.target.value; + setFormData({ ...formData, images: updatedImages }); + }; + + const handleInputChange = (e, index, fieldName) => { + const { name, value } = e.target; + if (fieldName === "propertyTaxInfo") { + const updatedPropertyTaxInfo = [...formData.propertyTaxInfo]; + updatedPropertyTaxInfo[index][name] = value; + setFormData({ ...formData, propertyTaxInfo: updatedPropertyTaxInfo }); + } else { + setFormData({ ...formData, [name]: value }); + } + }; + + const addPropertyTaxField = () => { + setFormData({ + ...formData, + propertyTaxInfo: [ + ...formData.propertyTaxInfo, + { propertytaxowned: "", ownedyear: "", taxassessed: "", taxyear: "" }, + ], + }); + }; + + const deletePropertyTaxField = (index) => { + const updatedPropertyTaxInfo = formData.propertyTaxInfo.filter( + (_, i) => i !== index + ); + setFormData({ ...formData, propertyTaxInfo: updatedPropertyTaxInfo }); + }; + + const addCost = () => { + setFormData((prevData) => ({ + ...prevData, + costPaidAtoB: [...prevData.costPaidAtoB, { title: "", price: "" }], + })); + }; + + const deleteCost = (index) => { + const updatedCosts = formData.costPaidAtoB.filter((_, i) => i !== index); + setFormData((prevData) => ({ + ...prevData, + costPaidAtoB: updatedCosts, + })); + }; + + // Function to handle changes to title and price + const handleCostChange = (index, field, value) => { + const updatedCosts = [...formData.costPaidAtoB]; + updatedCosts[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + costPaidAtoB: updatedCosts, + })); + }; + + const handlePriceChange = (e, index) => { + const value = e.target.value; + + // Use a regular expression to allow only numbers and decimals + const isNumber = /^\d*\.?\d*$/.test(value); + + // If valid number, update state, otherwise show the alert + if (isNumber || value === "") { + const updatedCosts = formData.costPaidAtoB.map((cost, i) => + i === index + ? { ...cost, price: value, isInvalid: false } // Reset isInvalid if valid number + : cost + ); + setFormData({ ...formData, costPaidAtoB: updatedCosts }); + } else { + const updatedCosts = formData.costPaidAtoB.map((cost, i) => + i === index + ? { ...cost, isInvalid: true } // Keep isInvalid true for invalid input + : cost + ); + setFormData({ ...formData, costPaidAtoB: updatedCosts }); + } + }; + + const calculateTotalCosts = () => { + const totalCostsFromArray = formData.costPaidAtoB.reduce((total, cost) => { + const price = parseFloat(cost.price) || 0; // Convert price to number + return total + price; + }, 0); + + const purchaseCost = parseFloat(formData.purchaseCost) || 0; // Convert purchase cost to number + + return totalCostsFromArray + purchaseCost; // Return the total + }; + + const addCredits = () => { + setFormData((prevData) => ({ + ...prevData, + credits: [...prevData.credits, { title: "", price: "" }], + })); + }; + + const deleteCredits = (index) => { + const updatedCredits = formData.credits.filter((_, i) => i !== index); + setFormData((prevData) => ({ + ...prevData, + credits: updatedCredits, + })); + }; + + // Function to handle changes to credits title and price + const handleCreditChange = (index, field, value) => { + const updatedCredits = [...formData.credits]; + updatedCredits[index][field] = value; + setFormData((prevData) => ({ + ...prevData, + credits: updatedCredits, + })); + }; + + const handleCreditPriceChange = (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 updatedCredits = formData.credits.map((credit, i) => + i === index + ? { ...credit, price: value, isInvalid: false } // Reset isInvalid if valid number + : credit + ); + setFormData({ ...formData, credits: updatedCredits }); + } else { + const updatedCredits = formData.credits.map((credit, i) => + i === index + ? { ...credit, isInvalid: true } // Set isInvalid true for invalid input + : credit + ); + setFormData({ ...formData, credits: updatedCredits }); + } + }; + + const calculateTotalCostsWithCredits = () => { + // Calculate total from costPaidAtoB array + const totalCostsFromArray = formData.costPaidAtoB.reduce((total, cost) => { + const price = parseFloat(cost.price) || 0; // Convert price to number + return total + price; + }, 0); + + // Calculate total from credits array + const totalCreditsFromArray = formData.credits.reduce((total, credit) => { + const price = parseFloat(credit.price) || 0; // Convert price to number + return total + price; + }, 0); + + // 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 handleSubmit = () => { + if (formData.poolspa) { + const totalCostsAtoB = calculateTotalCosts(); + const totalCostsAtoBaftercredits = calculateTotalCostsWithCredits(); + // Add user info to formData, including the propertyTaxInfo array + const formDataWithUserInfo = { + ...formData, + userfirstname: user?.result?.firstName, + usermiddlename: user?.result?.middleName, + userlastname: user?.result?.lastName, + usertitle: user?.result?.title, + useremail: user?.result?.email, + userId: user?.result?.userId, + totalCostsAtoB: totalCostsAtoB, + totalCostsAtoBaftercredits: totalCostsAtoBaftercredits, + }; + + // Check if propertyTaxInfo is an array and has values + if ( + Array.isArray(formData.propertyTaxInfo) && + formData.propertyTaxInfo.length > 0 + ) { + formDataWithUserInfo.propertyTaxInfo = formData.propertyTaxInfo; // Include propertyTaxInfo + } else { + formDataWithUserInfo.propertyTaxInfo = []; // Ensure it's an empty array if not filled + } + + // Dispatch the form data with user info + dispatch(submitProperty(formDataWithUserInfo)); + setSubmitted(true); + } else { + toast.error("Please fill all fields before submitting", { + position: "top-right", + autoClose: 3000, + }); + } + }; + + useEffect(() => { + if (submitted) { + if (status === "succeeded") { + toast.success("Property submitted successfully!", { + position: "top-right", + autoClose: 3000, + }); + setSubmitted(false); + } else if (status === "failed") { + toast.error(`Failed to submit: ${error}`, { + position: "top-right", + autoClose: 3000, + }); + setSubmitted(false); + } + } + }, [status, error, submitted]); + + return ( + <> +
+ + + + +
+ {activeTab === "propertydetails" && ( +
+
+

+ Property Location +

+
+ +
+
+ Please Select Pool/SPA + +
+
+ +
+

+
+ Property Tax Information +

+
+ + {formData.propertyTaxInfo.map((taxInfo, index) => ( +
+
+
+ Property Tax Owned + + handleInputChange(e, index, "propertyTaxInfo") + } + required + /> +
+
+
+
+ Owed Year + + handleInputChange(e, index, "propertyTaxInfo") + } + required + /> +
+
+
+
+ Tax Assessed + + handleInputChange(e, index, "propertyTaxInfo") + } + required + /> +
+
+
+
+ Tax Year + + handleInputChange(e, index, "propertyTaxInfo") + } + required + /> +
+
+ +
+
+
+ +
+
+
+ ))} + + +
+ + +
+ )} + + {activeTab === "Images" && ( +
+

+ Upload Images{" "} +

+
+ {formData.images.map((image, index) => ( +
+
+ handleImageTitleChange(index, e)} + /> +
+
+ handleImageChange(file, index)} + /> + +
+ + {image.file && ( +
+ uploaded +
+ )} +
+ ))} + + + +
+
+ + +
+ + {formData.googleMapLink && ( + + )} +
+ {" "} + +
+ )} + + {activeTab === "Accounting" && ( +
+

+ Property Acquisition A to B: +

+
+ + {/*
+ Purchase Cost + + setFormData({ + ...formData, + purchaseCost: e.target.value, + }) + } + placeholder="Enter Purchase Cost" + required + /> +
*/} +
+
+ +
+
+ + setFormData({ + ...formData, + purchaseCost: e.target.value, + }) + } + placeholder="Enter Purchase Cost" + style={{ textAlign: "right" }} + required + /> +
+
+
+ + + Costs paid out of Closing Hud A to B: + + + {formData.costPaidAtoB.map((cost, index) => ( +
+
+ + handleCostChange(index, "title", e.target.value) + } + placeholder="Title" + required + /> +
+
+ handlePriceChange(e, index)} // Use a new handler for price validation + placeholder="Price" + style={{ textAlign: "right" }} + required + /> + {cost.isInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+ +
+
+ ))} + +
+ +
+ +
+ + Total Costs to Buy A to B + +
+ +
+
+ + + Credits + + + {formData.credits.map((credits, index) => ( +
+
+ + handleCreditChange(index, "title", e.target.value) + } + placeholder="credits" + required + /> +
+
+ handleCreditPriceChange(e, index)} // New handler for price validation + placeholder="Price" + style={{ textAlign: "right" }} + required + /> + {credits.isInvalid && ( +
+ Please enter a valid number. +
+ )} +
+
+ +
+
+ ))} + +
+ +
+ +
+ + Total Costs to Buy A to B After credits + +
+ +
+
+ +
+
+ {" "} + {" "} +
+
+
+ )} +
+
+ + ); +}; + +export default Addproperty; diff --git a/ef-ui/src/components/Addproperty copy.jsx b/ef-ui/src/components/Addproperty copy.jsx new file mode 100644 index 0000000..b3d7c8f --- /dev/null +++ b/ef-ui/src/components/Addproperty copy.jsx @@ -0,0 +1,3038 @@ +import { useDispatch, useSelector } from "react-redux"; +import { submitProperty } from "../redux/features/propertySlice"; +import { useState, useEffect } from "react"; +import Navbar from "./Navbar"; +import { toast } from "react-toastify"; +import "react-toastify/dist/ReactToastify.css"; +import FileBase64 from "react-file-base64"; +import "../addproperty.css"; + +const Addproperty = () => { + const [activeTab, setActiveTab] = useState("propertydetails"); + + const handleContinue = () => { + if (activeTab === "propertydetails") setActiveTab("Images"); + if (activeTab === "Images") setActiveTab("Accounting"); + }; + + const handleBack = () => { + if (activeTab === "Images") setActiveTab("propertydetails"); + if (activeTab === "Accounting") setActiveTab("Images"); + }; + + const dispatch = useDispatch(); + const { status, error } = useSelector((state) => state.property); + const { user } = useSelector((state) => ({ ...state.auth })); + + const [formData, setFormData] = useState({ + address: "", + city: "", + state: "", + county: "", + zip: "", + parcel: "", + subdivision: "", + legal: "", + costpersqft: "", + propertyType: "", + lotacres: "", + yearBuild: "", + totallivingsqft: "", + beds: "", + baths: "", + stories: "", + garage: "", + garagesqft: "", + poolspa: "", + fireplaces: "", + ac: "", + heating: "", + buildingstyle: "", + sitevacant: "", + extwall: "", + roofing: "", + propertyTaxInfo: [ + { propertytaxowned: "", ownedyear: "", taxassessed: "", taxyear: "" }, + ], + images: [], // Array to hold image objects + googleMapLink: "", // Field for Google Maps link + totalSqft: "", + }); + + const [submitted, setSubmitted] = useState(false); + + const handleImageChange = (file, index) => { + const updatedImages = [...formData.images]; + updatedImages[index].file = file.base64; // store base64 format of image + setFormData({ ...formData, images: updatedImages }); + }; + + const handleAddImage = () => { + setFormData({ + ...formData, + images: [...formData.images, { title: "", file: "" }], + }); + }; + + const handleDeleteImage = (index) => { + const updatedImages = formData.images.filter((_, i) => i !== index); + setFormData({ ...formData, images: updatedImages }); + }; + + const handleImageTitleChange = (index, e) => { + const updatedImages = [...formData.images]; + updatedImages[index].title = e.target.value; + setFormData({ ...formData, images: updatedImages }); + }; + + const handleInputChange = (e, index, fieldName) => { + const { name, value } = e.target; + if (fieldName === "propertyTaxInfo") { + const updatedPropertyTaxInfo = [...formData.propertyTaxInfo]; + updatedPropertyTaxInfo[index][name] = value; + setFormData({ ...formData, propertyTaxInfo: updatedPropertyTaxInfo }); + } else { + setFormData({ ...formData, [name]: value }); + } + }; + + const addPropertyTaxField = () => { + setFormData({ + ...formData, + propertyTaxInfo: [ + ...formData.propertyTaxInfo, + { propertytaxowned: "", ownedyear: "", taxassessed: "", taxyear: "" }, + ], + }); + }; + + const deletePropertyTaxField = (index) => { + const updatedPropertyTaxInfo = formData.propertyTaxInfo.filter( + (_, i) => i !== index + ); + setFormData({ ...formData, propertyTaxInfo: updatedPropertyTaxInfo }); + }; + + const handleSubmit = () => { + if ( + formData.address && + formData.city && + formData.state && + formData.county && + formData.zip && + formData.parcel && + formData.subdivision && + formData.legal && + formData.costpersqft && + formData.propertyType && + formData.lotacres && + formData.yearBuild && + formData.totallivingsqft && + formData.beds && + formData.baths && + formData.stories && + formData.garage && + formData.garagesqft && + formData.poolspa && + formData.fireplaces && + formData.ac && + formData.heating && + formData.buildingstyle && + formData.sitevacant && + formData.extwall && + formData.roofing && + formData.totalSqft + ) { + // Add user info to formData, including the propertyTaxInfo array + const formDataWithUserInfo = { + ...formData, + userfirstname: user?.result?.firstName, + usermiddlename: user?.result?.middleName, + userlastname: user?.result?.lastName, + usertitle: user?.result?.title, + useremail: user?.result?.email, + userId: user?.result?.userId, + }; + + // Check if propertyTaxInfo is an array and has values + if ( + Array.isArray(formData.propertyTaxInfo) && + formData.propertyTaxInfo.length > 0 + ) { + formDataWithUserInfo.propertyTaxInfo = formData.propertyTaxInfo; // Include propertyTaxInfo + } else { + formDataWithUserInfo.propertyTaxInfo = []; // Ensure it's an empty array if not filled + } + + // Dispatch the form data with user info + dispatch(submitProperty(formDataWithUserInfo)); + setSubmitted(true); + } else { + toast.error("Please fill all fields before submitting", { + position: "top-right", + autoClose: 3000, + }); + } + }; + + useEffect(() => { + if (submitted) { + if (status === "succeeded") { + toast.success("Property submitted successfully!", { + position: "top-right", + autoClose: 3000, + }); + setSubmitted(false); + } else if (status === "failed") { + toast.error(`Failed to submit: ${error}`, { + position: "top-right", + autoClose: 3000, + }); + setSubmitted(false); + } + } + }, [status, error, submitted]); + + return ( + <> +
+ + + + +
+ {activeTab === "propertydetails" && ( +
+
+

+ Property Location +

+
+
+
+
+ Property Address + +
+
+
+
+ City + +
+
+
+
+ State + +
+
+
+ +
+
+ County + +
+
+
+ Zip + +
+
+
+
+ Parcel + +
+
+
+ +
+
+
+ Sub division + +
+
+
+
+ Legal Description +