1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,235884,e=>{"use strict";var t=e.i(330668);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...a,width:r,height:r,stroke:e,strokeWidth:i?24*Number(n)/Number(r):n,className:s("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]]));e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...l},o)=>(0,t.createElement)(n,{ref:o,iconNode:a,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...l}));return i.displayName=r(e),i}],235884)},800216,e=>{"use strict";let t=(0,e.i(235884).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],800216)},531261,e=>{"use strict";let t=(0,e.i(235884).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],531261)},746357,e=>{"use strict";let t=(0,e.i(235884).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],746357)},232890,e=>{"use strict";let t=(0,e.i(235884).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],232890)},387200,e=>{"use strict";let t=(0,e.i(235884).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,t],387200)},487635,e=>{"use strict";let t=(0,e.i(235884).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],487635)},816506,(e,t,r)=>{"use strict";e.i(639057),Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return x},useLinkStatus:function(){return g}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=e.r(861909),i=e.r(848277),l=n._(e.r(330668)),o=e.r(234485),c=e.r(545243),u=e.r(340067),d=e.r(48911),h=e.r(739940),f=e.r(798165),m=e.r(779111),p=e.r(423450),b=e.r(724994);function x(t){var r;let s,a,n,[x,g]=(0,l.useOptimistic)(m.IDLE_LINK_STATUS),v=(0,l.useRef)(null),{href:j,as:w,children:N,prefetch:R=null,passHref:S,replace:k,shallow:C,scroll:E,onClick:_,onMouseEnter:T,onTouchStart:L,legacyBehavior:I=!1,onNavigate:O,transitionTypes:P,ref:A,unstable_dynamicOnHover:M,...U}=t;s=N,I&&("string"==typeof s||"number"==typeof s)&&(s=(0,i.jsx)("a",{children:s}));let Q=l.default.useContext(c.AppRouterContext),F=!1!==R,$=!1===R?"none":!0===R?"full":"auto",B="none"!==$?"auto"===$?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,D="string"==typeof(r=w||j)?r:(0,o.formatUrl)(r);if(I){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let z=I?a&&"object"==typeof a&&a.ref:A,q,K=l.default.useCallback(e=>(null!==Q&&(v.current=(0,m.mountLinkInstance)(e,D,Q,B,F,g,q)),()=>{v.current&&((0,m.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,m.unmountPrefetchableInstance)(e)}),[F,D,Q,B,g,q]),H={ref:(0,u.useMergedRef)(K,z),onClick(t){I||"function"!=typeof _||_(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!Q||t.defaultPrevented||function(t,r,s,a,n,i,o,c="none"){if("u">typeof window){let u,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(819998);l.default.startTransition(()=>{h(r,a?"replace":"push",!1===n?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,s.current,o,c)})}}(t,D,v,k,E,O,P,$)},onMouseEnter(e){I||"function"!=typeof T||T(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),Q&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){I||"function"!=typeof L||L(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),Q&&F&&(0,m.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)(D)?H.href=D:I&&!S&&("a"!==a.type||"href"in a.props)||(H.href=(0,h.addBasePath)(D)),n=I?l.default.cloneElement(a,H):(0,i.jsx)("a",{...U,...H,children:s}),(0,i.jsx)(y.Provider,{value:x,children:n})}let y=(0,l.createContext)(m.IDLE_LINK_STATUS),g=()=>(0,l.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},340067,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let s=e.r(330668);function a(e,t){let r=(0,s.useRef)(null),a=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=n(e,s)),t&&(a.current=n(t,s))},[e,t])}function n(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48911,(e,t,r)=>{"use strict";e.i(639057),Object.defineProperty(r,"__esModule",{value:!0});var s={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return p},ST:function(){return b},WEB_VITALS:function(){return n},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return h},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return w}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...s)=>(r||(r=!0,t=e(...s)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&l.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let s=await e.getInitialProps(t);if(r&&h(r))return s;if(!s)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${s}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return s}let p="u">typeof performance,b=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},423450,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return n}});let s=e.r(48911),a=e.r(37023);function n(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},70077,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return l}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});function n(e){let t={};for(let[r,s]of e.entries()){let e=t[r];void 0===e?t[r]=s:Array.isArray(e)?e.push(s):t[r]=[e,s]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,s]of Object.entries(e))if(Array.isArray(s))for(let e of s)t.append(r,i(e));else t.set(r,i(s));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);
1for(let[t,s]of r.entries())e.append(t,s)}return e}},234485,(e,t,r)=>{"use strict";e.i(639057),Object.defineProperty(r,"__esModule",{value:!0});var s={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=e.r(861909)._(e.r(70077)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,s=e.protocol||"",a=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(n.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||i.test(s))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${s}${c}${a}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},696086,(e,t,r)=>{t.exports=e.r(309187)},673722,e=>{"use strict";var t=e.i(848277),r=e.i(330668),s=e.i(816506),a=e.i(696086),n=e.i(387200),i=e.i(106944),l=e.i(996800);let o=[{label:"Features",href:"#features",isAnchor:!0},{label:"Pricing",href:"#pricing",isAnchor:!0},{label:"Reports",href:"/app/reports"}],c=[{label:"About",href:"/about"},{label:"Glossary",href:"/glossary"},{label:"Blog",href:"/blog"}],u=[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Contact",href:"/contact"}],d=[{icon:function({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})},label:"Discord",href:"https://discord.gg/nj6U6QZ4"},{icon:function({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},label:"X",href:"https://x.com/under500kai"},{icon:function({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M12 0C5.373 0 0 5.373 0 12c0 6.627 5.373 12 12 12s12-5.373 12-12c0-6.627-5.373-12-12-12zm6.066 13.073c.043.267.066.54.066.818 0 2.868-3.358 5.195-7.5 5.195s-7.5-2.327-7.5-5.195c0-.278.023-.551.066-.818a1.57 1.57 0 0 1-.632-1.258c0-.871.707-1.578 1.578-1.578.406 0 .776.154 1.057.406 1.063-.742 2.495-1.207 4.07-1.266l.814-3.835a.338.338 0 0 1 .404-.262l2.702.577c.167-.336.51-.566.908-.566a1.07 1.07 0 1 1 0 2.14 1.07 1.07 0 0 1-1.062-.924l-2.42-.517-.72 3.396c1.542.072 2.94.538 3.98 1.268.28-.248.646-.399 1.048-.399.871 0 1.578.707 1.578 1.578 0 .499-.233.943-.597 1.232l-.001.008zm-9.533 1.394a1.07 1.07 0 1 0 0-2.14 1.07 1.07 0 0 0 0 2.14zm5.83-1.07a1.07 1.07 0 1 0-2.14 0 1.07 1.07 0 0 0 2.14 0zm-1.014 3.236c-.161.161-.494.363-1.08.496-.537.122-1.217.185-1.964.185-.748 0-1.428-.063-1.965-.185-.586-.133-.919-.335-1.08-.496a.335.335 0 0 1 .474-.474c.036.036.288.208.795.323.48.11 1.105.168 1.776.168s1.296-.059 1.776-.168c.507-.115.759-.287.795-.323a.335.335 0 0 1 .474.474z"})})},label:"Reddit",href:"https://www.reddit.com/r/AI_RealEstateInvest/"},{icon:function({className:e}
1){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})},label:"Facebook",href:"https://www.facebook.com/profile.php?id=61587594495345"}];function h(){let[e,s]=(0,r.useState)(""),[a,n]=(0,r.useState)("idle"),i=async t=>{if(t.preventDefault(),e.trim()&&e.includes("@")){n("loading");try{await l.newsletterApi.subscribe(e.trim()),n("success"),s("")}catch{n("error")}setTimeout(()=>n("idle"),4e3)}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-semibold mb-4 text-lg",children:"Stay Updated"}),(0,t.jsx)("p",{className:"text-sm text-neutral-content/70 mb-4",children:"Get investment insights and new city alerts delivered to your inbox."}),"success"===a?(0,t.jsx)("p",{className:"text-sm text-success",children:"Subscribed! Check your inbox."}):(0,t.jsxs)("form",{className:"space-y-3",onSubmit:i,children:[(0,t.jsx)("input",{type:"email",placeholder:"Enter your email",value:e,onChange:e=>s(e.target.value),className:"input input-bordered w-full bg-neutral-focus border-neutral-content/20 text-neutral-content placeholder:text-neutral-content/50","aria-label":"Email for newsletter",disabled:"loading"===a}),(0,t.jsx)("button",{type:"submit",className:`btn btn-primary w-full ${"loading"===a?"loading":""}`,disabled:"loading"===a||!e.trim(),children:"error"===a?"Retry":"Subscribe"})]})]})}function f(){let e=(0,a.usePathname)(),{enabled:r}=(0,i.useFreeReportsMode)(),l=r?o.filter(e=>"Pricing"!==e.label):o;return(0,t.jsx)("footer",{className:"bg-neutral text-neutral-content",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-8",children:[(0,t.jsxs)("div",{className:"lg:col-span-1",children:[(0,t.jsxs)(s.default,{href:"/",className:"flex items-center gap-2 font-bold text-xl mb-4",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:(0,t.jsx)(n.TrendingUp,{className:"w-5 h-5 text-primary-content"})}),(0,t.jsxs)("span",{children:["under500",(0,t.jsx)("span",{className:"text-secondary",children:"K"}),".ai"]})]}),(0,t.jsx)("p",{className:"text-neutral-content/70 text-sm mb-6",children:"Real estate investment research for the global investor. Find opportunities under $500K."}),(0,t.jsx)("div",{className:"flex gap-4",children:d.map(e=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-neutral-focus rounded-lg flex items-center justify-center hover:bg-primary hover:text-primary-content transition-colors","aria-label":e.label,children:(0,t.jsx)(e.icon,{className:"w-5 h-5"})},e.label))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-semibold mb-4 text-lg",children:"Product"}),(0,t.jsx)("ul",{className:"space-y-3 text-sm",children:l.map(r=>(0,t.jsx)("li",{children:r.isAnchor?(0,t.jsx)("a",{href:r.href,onClick:t=>((t,r)=>{if(t.preventDefault(),"/"===e||"/home"===e){let e=document.querySelector(r);e&&e.scrollIntoView({behavior:"smooth"})}else window.location.href=`${window.location.origin}/home${r}`})(t,r.href),className:"text-neutral-content/70 hover:text-primary transition-colors",children:r.label}):(0,t.jsx)(s.default,{href:r.href,className:"text-neutral-content/70 hover:text-primary transition-colors",children:r.label})},r.label))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-semibold mb-4 text-lg",children:"Resources"}),(0,t.jsx)("ul",{className:"space-y-3 text-sm",children:c.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(s.default,{href:e.href,className:"text-neutral-content/70 hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"font-semibold mb-4 text-lg",children:"Legal"}),(0,t.jsx)("ul",{className:"space-y-3 text-sm",children:u.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(s.default,{href:e.href,className:"text-neutral-content/70 hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,t.jsx)(h,{})]}),(0,t.jsx)("div",{className:"border-t border-neutral-content/20 mt-12 pt-8",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 text-sm text-neutral-content/60",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-4",children:(0,t.jsx)("a",{href:"https://www.producthunt.com/products/under500k-ai?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-under500k-ai",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1099135&theme=light&t=1
1773625934315",alt:"Under500K.ai - Institutional-grade AI analysis for under $500K anywhere | Product Hunt",width:"250",height:"54"})})}),(0,t.jsxs)("p",{children:["© ",new Date().getFullYear()," under500K.ai. All rights reserved."]})]})})]})})}e.s(["Footer",0,f,"default",0,f])},798627,694677,868088,480651,184592,553876,e=>{"use strict";var t=e.i(848277),r=e.i(330668),s=e.i(816506),a=e.i(696086),n=e.i(235884);let i=(0,n.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,i],694677);var l=e.i(487635),o=e.i(387200);let c=(0,n.default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);e.s(["LayoutDashboard",0,c],868088);var u=e.i(746357),d=e.i(232890);e.i(88567);var h=e.i(209693),f=e.i(526943);function m(){let[e,t]=(0,r.useState)(!1),s=(0,r.useCallback)(()=>t(!0),[]),a=(0,r.useCallback)(()=>t(!1),[]),n=(0,r.useCallback)(()=>t(e=>!e),[]);return(0,r.useEffect)(()=>{let t=t=>{(t.metaKey||t.ctrlKey)&&"k"===t.key&&(t.preventDefault(),n()),"Escape"===t.key&&e&&a()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,n,a]),(0,r.useEffect)(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[e]),{isOpen:e,open:s,close:a,toggle:n}}function p({isOpen:e,onClose:s}){let a=(0,r.useRef)(null),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!e){n.current=!1;return}let t=()=>{let e=window.google,t=a.current;if(!e?.search?.cse?.element||!t)return;for(;t.firstChild;)t.removeChild(t.firstChild);let r=document.createElement("div");r.className="gcse-search",t.appendChild(r),e.search.cse.element.render({div:r,tag:"search"}),n.current=!0,setTimeout(()=>{let e=t.querySelector("input.gsc-input");e?.focus()},200)};if(window.google?.search?.cse?.element)t();else{let e=setInterval(()=>{window.google?.search?.cse?.element&&(clearInterval(e),t())},100);return()=>clearInterval(e)}},[e]),(0,r.useEffect)(()=>{if(!e&&n.current)try{let e=window.google?.search?.cse?.element?.getAllElements();e&&Object.values(e).forEach(e=>e.clearAllResults())}catch{}},[e]);let i=(0,r.useCallback)(e=>{e.target===e.currentTarget&&s()},[s]);return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[70] bg-black/40 backdrop-blur-sm",onClick:i}),(0,t.jsx)("div",{className:"fixed inset-0 z-[71] flex items-start justify-center pt-[10vh] px-4",onClick:i,children:(0,t.jsxs)("div",{className:"bg-base-100 rounded-xl shadow-2xl w-full max-w-2xl overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-base-300",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-base-content/60",children:"Search under500K.ai"}),(0,t.jsx)("kbd",{className:"kbd kbd-sm",children:"ESC"})]}),(0,t.jsx)("div",{ref:a,className:"px-4 py-3 overflow-y-auto",style:{maxHeight:"60vh"}})]})})]}):null}e.i(416984),e.s(["useSearchModal",0,m],480651),e.s([],184592),e.s(["SearchModal",0,p],553876);var b=e.i(106944);let x=[{label:"Market Analysis",href:"/market-analysis"},{label:"Products",href:"/products"},{label:"Pricing",href:"#pricing",isAnchor:!0},{label:"U5K Livability Index",href:"/livability-index"},{label:"About",href:"/about"},{label:"Blog",href:"/blog"},{label:"FAQ",href:"/faq"}];function y(){let[e,n]=(0,r.useState)(!1),[y,g]=(0,r.useState)(!1),v=(0,a.usePathname)(),j=(0,a.useRouter)(),{isAuthenticated:w,logout:N}=(0,f.useAuthStore)(),R=m(),{enabled:S}=(0,b.useFreeReportsMode)(),k=S?x.filter(e=>"Pricing"!==e.label):x;(0,r.useEffect)(()=>{let e=()=>{g(window.scrollY>10)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,r.useLayoutEffect)(()=>{n(!1)},[v]),(0,r.useEffect)(()=>{let t=e=>{"Escape"===e.key&&n(!1)};return e&&(document.addEventListener("keydown",t),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",t),document.body.style.overflow=""}},[e]);let C=async()=>{await N(),j.push("/")},E=(e,t)=>{if(t.isAnchor)if(e.preventDefault(),"/"===v||"/home"===v){let e=document.querySelector(t.href);e&&e.scrollIntoView({behavior:"smooth"})}else window.location.href=`${window.location.origin}/home${t.href}`;n(!1)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("header",{className:`sticky top-0 z-50 transition-all duration-200 ${y?"bg-base-100/95 backdrop-blur-md shadow-md":"bg-base-100"}`,children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("nav",{className:"flex items-center justify-between h-16 lg:h-20",children:[(0,t.jsxs)(s.default,{href:"/",className:"flex items-center gap-2 font-bold text-xl hover:opacity-80 transition-opacity",children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:(0,t.jsx)(o.TrendingUp,{className:"w-5 h-5 text-primary-content"})}),(0,t.jsxs)("span",{children:["under500",(0,t.jsx)("span",{className:"text-secondary",children:"K"}),".ai"]})]}),(0,t.jsx)("ul",{className:"hidden lg:flex items-center gap-8",children:k.map(e=>(0,t.jsx)("li",{children:e.isAnchor?(0,t.jsx)("a",{href:e.href,onClick:t=>E(t,e),className:"text-base-content/70 hover:text-primary font-medium transition-colors",children:e.label}):(0,t.jsx)(s.default,{href:e.href,className:"text-base-content/70 hover:text-primary font-medium transition-colors",children:e.label})},e.label))}),(0,t.jsx)("button",{className:"hidden lg:flex btn btn-ghost btn-square",onClick:R.open,"aria-label":"Search site",title:"Search (âK)",children:(0,t.jsx)(d.Search,{className:"w-5 h-5"})}),(0,t.jsx)("div",{className:"hidden lg:flex items-center gap-3",children:w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/dashboard",children:(0,t.jsxs)(h.Button,{variant:"primary",size:"md",className:"gap-2",children:[(0,t.jsx)(c,{className:"w-4 h-4"}),"Dashboard"]})}),(0,t.jsxs)(h.Button,{variant:"ghost",size:"md",className:"gap-2",onClick:C,children:[(0,t.jsx)(u.LogOut,{className:"w-4 h-4"}),"Sign Out"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/login",children:(0,t.jsx)(h.Button,{variant:"ghost",size:"md",children:"Log in"})}),(0,t.jsx)(s.default,{href:"/register",children:(0,t.jsx)(h.Button,{variant:"primary",size:"md",children:"Get Started"})})]})}),(0,t.jsxs)("div",{className:"lg:hidden flex items-center gap-1",children:[(0,t.jsx)("button",{className:"btn btn-ghost btn-square",onClick:R.open,"aria-label":"Search site",title:"Search (âK)",children:(0,t.jsx)(d.Search,{className:"w-5 h-5"})}),(0,t.jsx)("button",{className:"btn btn-ghost btn-square",onClick:()=>n(!e),"aria-label":e?"Close menu":"Open menu","aria-expanded":e,children:e?(0,t.jsx)(l.X,{className:"w-6 h-6"}):(0,t.jsx)(i,{className:"w-6 h-6"})})]})]})})}),e&&(0,t.jsxs)("div",{className:"lg:hidden fixed inset-0 z-[60] flex flex-col",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/20",onClick:()=>n(!1)}),(0,t.jsx)("div",{className:"relative z-10 bg-base-100 shadow-lg",children:(0,t.jsx)("div",{className:"container mx-auto px-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,t.jsxs)(s.default,{href:"/",className:"flex items-center gap-2 font-bold text-xl",onClick:()=>n(!1),children:[(0,t.jsx)("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:(0,t.jsx)(o.TrendingUp,{className:"w-5 h-5 text-primary-content"})}),(0,t.jsxs)("span",{children:["under500",(0,t.jsx)("span",{className:"text-secondary",children:"K"}),".ai"]})]}),(0,t.jsx)("button",{className:"btn btn-ghost btn-square",onClick:()=>n(!1),"aria-label":"Close menu",children:(0,t.jsx)(l.X,{className:"w-6 h-6"})})]})})}),(0,t.jsx)("div",{className:"relative z-10 bg-base-100 flex-1 overflow-y-auto",children:(0,t.jsxs)("div",{className:"flex flex-col h-full p-6",children:[(0,t.jsx)("ul",{className:"flex flex-col gap-4",children:k.map(e=>(0,t.jsx)("li",{children:e.isAnchor?(0,t.jsx)("a",{href:e.href,onClick:t=>E(t,e),className:"block py-3 text-lg font-medium text-base-content hover:text-primary transition-colors",children:e.label}):(0,t.jsx)(s.default,{href:e.href,className:"block py-3 text-lg font-medium text-base-content hover:text-primary transition-colors",onClick:()=>n(!1),children:e.label})},e.label))}),(0,t.jsx)("div",{className:"mt-auto flex flex-col gap-3 pb-6",children:w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/dashboard",onClick:()=>n(!1),children:(0,t.jsxs)(h.Button,{variant:"primary",size:"lg",fullWidth:!0,className:"gap-2",children:[(0,t.jsx)(c,{className:"w-5 h-5"}),"Go to Dashboard"]})}),(0,t.jsxs)(h.Button,{variant:"outline",size:"lg",fullWidth:!0,className:"gap-2",onClick:()=>{n(!1),C()},children:[(0,t.jsx)(u.LogOut,{className:"w-5 h-5"}),"Sign Out"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:"/login",onClick:()=>n(!1),children:(0,t.jsx)(h.Button,{variant:"outline",size:"lg",fullWidth:!0,children:"Log in"})}),(0,t.jsx)(s.default,{href:"/register",onClick:()=>n(!1),children:(0,t.jsx)(h.Button,{variant:"primary",size:"lg",fullWidth:!0,children:"Get Started"})})]})})]})})]}),(0,t.jsx)(p,{isOpen:R.isOpen,onClose:R.close})]})}e.s(["Header",0,y,"default",0,y],798627)},88567,480380,209693,286378,e=>{"use strict";var t=e.i(848277),r=e.i(330668);let s=(0,e.i(235884).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,s],480380);let a={primary:"btn-primary",secondary:"btn-secondary",outline:"btn-outline btn-primary",ghost:"btn-ghost",error:"btn-error"},n={sm:"btn-sm",md:"",lg:"btn-lg"},i=(0,r.forwardRef)(({variant:e="primary",size:r="md",isLoading:i=!1,leftIcon:l,rightIcon:o,fullWidth:c=!1,className:u="",disabled:d,children:h,...f},m)=>
1{let p=["btn",a[e],n[r],c?"w-full":"",u].filter(Boolean).join(" ");return(0,t.jsxs)("button",{ref:m,className:p,disabled:d||i,...f,children:[i?(0,t.jsx)(s,{className:"w-4 h-4 animate-spin"}):l&&(0,t.jsx)("span",{className:"mr-2",children:l}),h,!i&&o&&(0,t.jsx)("span",{className:"ml-2",children:o})]})});i.displayName="Button",e.s(["Button",0,i],209693);let l={default:"badge-neutral",primary:"badge-primary",secondary:"badge-secondary",success:"badge-success",warning:"badge-warning",error:"badge-error",info:"badge-info",outline:"badge-outline"},o={sm:"badge-sm",md:"",lg:"badge-lg"},c=(0,r.forwardRef)(({variant:e="default",size:r="md",className:s="",children:a,...n},i)=>{let c=["badge",l[e],o[r],s].filter(Boolean).join(" ");return(0,t.jsx)("span",{ref:i,className:c,...n,children:a})});c.displayName="Badge";let u={BUY:"success",CONDITIONAL_BUY:"info",HOLD:"warning",PASS:"error",REJECT:"error"};(0,r.forwardRef)(({recommendation:e,size:r="lg",className:s="",...a},n)=>{if(!e)return null;let i=u[e]||"default",l=e.replace("_"," ");return(0,t.jsx)(c,{ref:n,variant:i,size:r,className:`font-semibold ${s}`,...a,children:l})}).displayName="RecommendationBadge";let d={LOW:"success",MEDIUM:"warning",MEDIUM_HIGH:"warning",HIGH:"error"};(0,r.forwardRef)(({riskLevel:e,size:r="md",className:s="",...a},n)=>{if(!e)return null;let i=d[e]||"default",l=e.replace("_"," ");return(0,t.jsx)(c,{ref:n,variant:i,size:r,className:s,...a,children:l})}).displayName="RiskBadge";let h={default:"bg-base-100",bordered:"bg-base-100 border border-base-300",elevated:"bg-base-100 shadow-md"},f={none:"",sm:"p-4",md:"p-6",lg:"p-8"};(0,r.forwardRef)(({variant:e="default",padding:r="none",hoverable:s=!1,className:a="",children:n,...i},l)=>{let o=["card",h[e],f[r],s?"hover:shadow-lg transition-shadow duration-200 cursor-pointer":"","rounded-xl",a].filter(Boolean).join(" ");return(0,t.jsx)("div",{ref:l,className:o,...i,children:n})}).displayName="Card",(0,r.forwardRef)(({title:e,subtitle:r,action:s,className:a="",children:n,...i},l)=>{let o=e||r||s;return(0,t.jsx)("div",{ref:l,className:`card-header flex items-start justify-between gap-4 p-6 pb-0 ${a}`,...i,children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-1",children:[e&&(0,t.jsx)("h3",{className:"card-title text-lg font-semibold",children:e}),r&&(0,t.jsx)("p",{className:"text-sm text-base-content/60 mt-1",children:r})]}),s&&(0,t.jsx)("div",{className:"flex-shrink-0",children:s})]}):n})}).displayName="CardHeader",(0,r.forwardRef)(({className:e="",children:r,...s},a)=>(0,t.jsx)("div",{ref:a,className:`card-body p-6 ${e}`,...s,children:r})).displayName="CardBody",(0,r.forwardRef)(({className:e="",children:r,...s},a)=>(0,t.jsx)("div",{ref:a,className:`card-footer flex items-center gap-2 p-6 pt-0 ${e}`,...s,children:r})).displayName="CardFooter";let m={default:"input-bordered",bordered:"input-bordered",ghost:"input-ghost"},p={sm:"input-sm",md:"",lg:"input-lg"};(0,r.forwardRef)(({variant:e="default",inputSize:s="md",label:a,helperText:n,error:i,leftIcon:l,rightIcon:o,fullWidth:c=!1,className:u="",id:d,...h},f)=>{let b=(0,r.useId)(),x=d||b,y=!!i,g=["input",m[e],p[s],y?"input-error":"",l?"pl-10":"",o?"pr-10":"",c?"w-full":"",u].filter(
1Boolean).join(" "),v=["form-control",c?"w-full":""].filter(Boolean).join(" ");return(0,t.jsxs)("div",{className:v,children:[a&&(0,t.jsx)("label",{htmlFor:x,className:"label",children:(0,t.jsx)("span",{className:"label-text font-medium",children:a})}),(0,t.jsxs)("div",{className:"relative",children:[l&&(0,t.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-base-content/50",children:l}),(0,t.jsx)("input",{ref:f,id:x,className:g,...h}),o&&(0,t.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-base-content/50",children:o})]}),(n||i)&&(0,t.jsx)("p",{className:`text-xs mt-1.5 ml-1 ${y?"text-error":"text-base-content/60"}`,children:i||n})]})}).displayName="Input";let b={default:"select-bordered",bordered:"select-bordered",ghost:"select-ghost"},x={sm:"select-sm",md:"",lg:"select-lg"};(0,r.forwardRef)(({variant:e="default",selectSize:s="md",label:a,helperText:n,error:i,options:l,placeholder:o,fullWidth:c=!1,leftIcon:u,className:d="",id:h,...f},m)=>{let p=(0,r.useId)(),y=h||p,g=!!i,v=["select",b[e],x[s],g?"select-error":"",u?"pl-10":"",c?"w-full":"",d].filter(Boolean).join(" "),j=["form-control",c?"w-full":""].filter(Boolean).join(" ");return(0,t.jsxs)("div",{className:j,children:[a&&(0,t.jsx)("label",{htmlFor:y,className:"label",children:(0,t.jsx)("span",{className:"label-text font-medium",children:a})}),(0,t.jsxs)("div",{className:"relative",children:[u&&(0,t.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-base-content/50 z-10",children:u}),(0,t.jsxs)("select",{ref:m,id:y,className:v,...f,children:[o&&(0,t.jsx)("option",{value:"",disabled:!0,children:o}),l.map(e=>(0,t.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))]})]}),(n||i)&&(0,t.jsx)("p",{className:`text-xs mt-1.5 ml-1 ${g?"text-error":"text-base-content/60"}`,children:i||n})]})}).displayName="Select";var y=e.i(531261),g=e.i(800216),v=e.i(232890);e.s(["SearchSelect",0,function({options:e,value:s,onChange:a,placeholder:n="Select...",label:i,leftIcon:l,disabled:o=!1,className:c="",searchable:u=!1}){let[d,h]=(0,r.useState)(!1),[f,m]=(0,r.useState)(""),p=(0,r.useRef)(null),b=(0,r.useRef)(null);(0,r.useEffect)(()=>{function e(e){p.current&&!p.current.contains(e.target)&&h(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&h(!1)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,r.useEffect)(()=>{d&&u&&(m(""),setTimeout(()=>b.current?.focus(),0))},[d,u]);let x=(0,r.useMemo)(()=>{if(!u||!f)return e;let t=f.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[e,f,u]),j=e.find(e=>e.value===s),w=j?.label||n;return(0,t.jsxs)("div",{className:`form-control w-full ${c}`,ref:p,children:[i&&(0,t.jsx)("label",{className:"label",children:(0,t.jsx)("span",{className:"label-text font-medium",children:i})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>!o&&h(!d),disabled:o,className:` 2 w-full h-12 px-4 flex items-center justify-between gap-2 3 bg-base-100 border border-base-300 rounded-lg 4 text-left transition-all 5 hover:border-base-400 6 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary 7 disabled:opacity-50 disabled:cursor-not-allowed 8 ${d?"ring-2 ring-primary/20 border-primary":""} 9 `,children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[l&&(0,t.jsx)("span",{className:"text-base-content/50 flex-shrink-0",children:l}),(0,t.jsx)("span",{className:`truncate ${!j?"text-base-content/50":""}`,children:w})]}),(0,t.jsx)(y.ChevronDown,{className:`w-4 h-4 text-base-content/50 flex-shrink-0 transition-transform ${d?"rotate-180":""}`})]}),d&&(0,t.jsxs)("div",{className:"absolute z-50 w-full mt-1 bg-base-100 border border-base-300 rounded-lg shadow-lg max-h-60 overflow-auto",children:[u&&(0,t.jsx)("div",{className:"sticky top-0 bg-base-100 p-2 border-b border-base-200",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(v.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-base-content/40"}),(0,t.jsx)("input",{ref:b,type:"text",value:f,onChange:e=>m(e.target.value),className:"input input-sm input-bordered w-full pl-9 border-base-300 focus:border-primary focus:outline-primary/20",placeholder:"Type to search...",onClick:e=>e.stopPropagation()})]})}),n&&!f&&(0,t.jsxs)("button",{type:"button",onClick:()=>{a(""),h(!1)},className:` 10 w-full px-4 py-3 flex items-center justify-between gap-2 11 text-left text-base-content/50 hover:bg-base-200 transition-colors 12 ${!s?"bg-base-200":""} 13 `,children:[(0,t.jsx)("span",{children:n}),!s&&(0,t.jsx)(g.Check,{className:"w-4 h-4 text-primary"})]}),x.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{e.disabled||(a(e.value),h(!1))},disabled:e.disabled,className:` 14 w-full px-4 py-3 flex items-center justify-between gap-2 15 text-left transition-colors 16 ${e.disabled?"opacity-50 cursor-not-allowed":"hover:bg-base-200"} 17 ${e.value===s?"bg-primary/5 text-primary":""} 18 `,children:[(0,t.jsx)("span",{className:"truncate",children:e.label}),e.value===s&&(0,t.jsx)(g.Check,{className:"w-4 h-4 text-primary flex-shrink-0"})]},e.value)),u&&f&&0===x.length&&(0,t.jsx)("div",{className:"px-4 py-3 text-sm text-base-content/50 text-center",children:"No results found"})]})]})]})}],286378),e.s([],88567)},106944,591489,e=>{"use strict";let t;var r=e.i(266849),s=e.i(540828),a=e.i(947206),n=e.i(228997),i=e.i(310488),l=e.i(111043),o=e.i(568160),c=e.i(536441),u=class extends i.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,l.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#a=void 0;#n=void 0;#i;#l;#r;#t;#o;#c;#u;#d;#h;#f;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),d(this.#s,this.options)?this.#p():this.updateResult(),this.#b()
18)}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#y(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&f(this.#s,r,this.options,t)&&this.#p(),this.updateResult(),s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||(0,o.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,o.resolveStaleTime)(t.staleTime,this.#s))&&this.#v();let a=this.#j();s&&(this.#s!==r||(0,o.resolveEnabled)(this.options.enabled,this.#s)!==(0,o.resolveEnabled)(t.enabled,this.#s)||a!==this.#f)&&this.#w(a)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(s,e);return t=this,r=a,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#n=a,this.#l=this.options,this.#i=this.#s.state),a}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#p(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#v(){this.#x();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#n.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#d=c.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#j(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#w(e){this.#y(),this.#f=e,!s.environmentManager.isServer()&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#s)&&(0,o.isValidTimeout)(this.#f)&&0!==this.#f&&(this.#h=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#p()},this.#f))}#b(){this.#v(),this.#w(this.#j())}#x(){this.#d&&(c.timeoutManager.clearTimeout(this.#d),this.#d=void 0)}#y(){this.#h&&(c.timeoutManager.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r,s=this.#s,a=this.options,i=this.#n,c=this.#i,u=this.#l,h=e!==s?e.state:this.#a,{state:p}=e,b={...p},x=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&d(e,t),l=r&&f(e,s,t,a);(i||l)&&(b={...b,...(0,n.fetchState)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(b.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:v}=b;r=b.data;let j=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;i?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=i.data,j=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(v="success",r=(0,o.replaceData)(i?.data,e,t),x=!0)}if(t.select&&void 0!==r&&!j)if(i&&r===c?.data&&t.select===this.#o)r=this.#c;else try{this.#o=t.select,r=t.select(r),r=(0,o.replaceData)(i?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(y=this.#t,r=this.#c,g=Date.now(),v="error");let w="fetching"===b.fetchStatus,N="pending"===v,R="error"===v,S=N&&w,k=void 0!==r,C={status:v,fetchStatus:b.fetchStatus,isPending:N,isSuccess:"success"===v,isError:R,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:b.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdate
18Count:b.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:b.dataUpdateCount>h.dataUpdateCount||b.errorUpdateCount>h.errorUpdateCount,isFetching:w,isRefetching:w&&!N,isLoadingError:R&&!k,isPaused:"paused"===b.fetchStatus,isPlaceholderData:x,isRefetchError:R&&k,isStale:m(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==C.data,r="error"===C.status&&!t,a=e=>{r?e.reject(C.error):t&&e.resolve(C.data)},n=()=>{a(this.#r=C.promise=(0,l.pendingThenable)())},i=this.#r;switch(i.status){case"pending":e.queryHash===s.queryHash&&a(i);break;case"fulfilled":(r||C.data!==i.value)&&n();break;case"rejected":r&&C.error===i.reason||n()}}return C}updateResult(){let e=this.#n,t=this.createResult(this.#s,this.options);if(this.#i=this.#s.state,this.#l=this.options,void 0!==this.#i.data&&(this.#u=this.#s),(0,o.shallowEqualObjects)(t,e))return;this.#n=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#m.size)return!0;let s=new Set(r??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&s.has(t))};this.#N({listeners:r()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#a=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#N(e){a.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&m(e,t)}return!1}function f(e,t,r,s){return(e!==t||!1===(0,o.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}var p=e.i(330668),b=e.i(746592);e.i(848277);var x=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),y=p.createContext(!1);y.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function v(e,t){return function(e,t,r){let n,i=p.useContext(y),l=p.useContext(x),c=(0,b.useQueryClient)(r),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u);let d=c.getQueryCache().get(u.queryHash);if(u._optimisticResults=i?"isRestoring":"optimistic",u.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=u.staleTime;u.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof u.gcTime&&(u.gcTime=Math.max(u.gcTime,1e3))}n=d?.state.error&&"function"==typeof u.throwOnError?(0,o.shouldThrowError)(u.throwOnError,[d.state.error,d]):u.throwOnError,(u.suspense||u.experimental_prefetchInRender||n)&&!l.isReset()&&(u.retryOnMount=!1),p.useEffect(()=>{l.clearReset()},[l]);let h=!c.getQueryCache().get(u.queryHash),[f]=p.useState(()=>new t(c,u)),m=f.getOptimisticResult(u),v=!i&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=v?f.subscribe(a.notifyManager.batchCalls(e)):o.noop;return f.updateResult(),t},[f,v]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),p.useEffect(()=>{f.setOptions(u)},[u,f]),u?.suspense&&m.isPending)throw g(u,f,l);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(a&&void 0===e.data||(0,o.shouldThrowError)(r,[e.error,s])))({result:m,errorResetBoundary:l,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw m.error;if(c.getDefaultOptions().queries?._experimental_afterQuery?.(u,m),u.experimental_prefetchInRender&&!s.environmentManager.isServer()&&m.isLoading&&m.isFetching&&!i){let e=h?g(u,f,l):d?.promise;e?.catch(o.noop).finally(()=>{f.updateResult()})}return u.notifyOnChangeProps?m:f.trackResult(m)}(e,u,t)}e.s(["useQuery",0,v],591489);var j=e.i(898396);e.s(["useFreeReportsMode",0,function(){let{data:e=!1}=v({queryKey:["free-reports-mode"],queryFn:async()=>{let{data:e}=await j.supabase.from("system_settings").select("key, value").eq("key","free_reports_mode").single();return!!e&&"true"===e.value},staleTime:3e5});return{enabled:e}}],106944)},416984,239660,26452,e=>{"use strict";var t=e.i(526943),r=e.i(415986),s=e.i(898396),a=e.i(996800);let n=(0,r.create)()(e=>({isLoading:!1,error:null,createCheckoutSession:async(t="monthly")=>{if(!(0,s.isSupabaseConfigured)())return e({error:"Stripe integration not configured"}),null;e({isLoading:!0,error:null});try{let{data:r}=await a.default.post("/stripe/checkout",{billingPeriod:t,successUrl:`${window.location.origin}/app/subscription?success=true`,cancelUrl:`${window.location.origin}/app/subscription?canceled=true`});return e({isLoading:!1}),r.url}catch(t){return e({error:t instanceof Error?t.message:"Checkout failed",isLoading:!1}),null}},openCustomerPortal:async()=>
18{if(!(0,s.isSupabaseConfigured)())return e({error:"Stripe integration not configured"}),null;e({isLoading:!0,error:null});try{let{data:t}=await a.default.post("/stripe/portal",{returnUrl:`${window.location.origin}/app/subscription`});return e({isLoading:!1}),t.url}catch(t){return e({error:t instanceof Error?t.message:"Portal access failed",isLoading:!1}),null}},refreshSubscription:async()=>{let e=t.useAuthStore.getState();await e.refreshUser()},clearError:()=>e({error:null}),canGenerateReport:()=>{let e=t.useAuthStore.getState().subscription;return!!e&&(-1===e.reports_limit||e.reports_used_this_month<e.reports_limit)},canCreateAlert:()=>{let e=t.useAuthStore.getState().subscription;return!!e&&(e.alerts_limit,!0)},getRemainingReports:()=>{let e=t.useAuthStore.getState().subscription;return e?-1===e.reports_limit?1/0:Math.max(0,e.reports_limit-e.reports_used_this_month):0},getRemainingAlerts:()=>{let e=t.useAuthStore.getState().subscription;return e?-1===e.alerts_limit?1/0:e.alerts_limit:0}})),i={free:{name:"Free",price:{monthly:0,annual:0},priceLabel:{monthly:"Free",annual:"Free"},features:["1 report/month (+$5 each)","3 market alerts","Weekly newsletter","Basic report sections (6 of 14)","Community support"],limits:{reports:1,alerts:3}},premium:{name:"Premium",price:{monthly:20,annual:200},priceLabel:{monthly:"$20/month",annual:"$200/year"},features:["Unlimited reports","Full report access (all 14 sections)","AI chat assistant","Unlimited alerts","Investment portfolio","Priority support","Ad-free experience","Export to PDF"],limits:{reports:-1,alerts:-1}},business:{name:"Business",price:{monthly:99,annual:1e3},priceLabel:{monthly:"$99/month",annual:"$1,000/year"},features:["Everything in Premium +","3 team users","Access to Real Estate Investment AI chatbot","API access to city analysis repository","White-label reports","Data report sponsor option","Bulk requests"],limits:{reports:-1,alerts:-1}}};e.s(["SUBSCRIPTION_TIERS",0,i,"useSubscriptionStore",0,n],239660);let l={section_executive_summary:{accessLevel:"premium",displayName:"Executive Summary",teaserText:"Upgrade to see the full executive summary with investment recommendation"},section_market_analyst:{accessLevel:"premium",displayName:"Market Analysis",teaserText:"Unlock detailed market trends, price forecasts, and supply/demand analysis"},section_comps_analyst:{accessLevel:"premium",displayName:"Comparable Properties",teaserText:"Unlock specific property comps and save hours of research"},section_financial_modeler:{accessLevel:"premium",displayName:"Financial Analysis",teaserText:"See full stress test and IRR calculations"},section_risk_assessor:{accessLevel:"premium",displayName:"Risk Assessment",teaserText:"Access detailed risk analysis with mitigation strategies"},section_legal_advisor:{accessLevel:"premium",displayName:"Legal & Tax",teaserText:"Get tailored foreign investor compliance details"},section_financing_analyst:{accessLevel:"premium",displayName:"Financing Options",teaserText:"View specific lender names, rates, and terms"},section_local_expert:{accessLevel:"premium",displayName:"Local Insights",teaserText:"Get vetted local brokers & managers tailored for foreign buyers"},section_healthcare_analyst:{accessLevel:"free",displayName:"Healthcare",teaserText:""},section_education_analyst:{accessLevel:"free",displayName:"Education",teaserText:""},section_livability_analyst:{accessLevel:"free",displayName:"U5K Livability Index",teaserText:""},section_sentiment_analyst:{accessLevel:"free",displayName:"Sentiment Analysis",teaserText:""},section_exit_strategist:{accessLevel:"premium",displayName:"Exit Strategy",teaserText:"Unlock exit timing, tax optimization, and hold period analysis"},section_city_profile:{accessLevel:"free",displayName:"City Profile",teaserText:""},section_str_policy:{accessLevel:"premium",displayName:"STR Policy",teaserText:"See short-term rental regulations, licensing requirements, and compliance details"},section_renovation_cost:{accessLevel:"premium",displayName:"Renovation Costs",teaserText:"Get renovation cost estimates with scenario breakdowns and local cost indexing"},section_neighborhood_scorecard:{accessLevel:"premium",displayName:"Neighborhood Scorecard",teaserText:"See detailed neighborhood rankings and investment tiers"}};e.s(["SECTION_ACCESS_MAP",0,l],26452),e.s(["canViewSection",0,function(e,t){if("admin"===t||"premium"===t||"business"===t)return"full";let r=l[e];if(!r)return"full";switch(r.accessLevel){case"free":return"full";case"hybrid":return"hybrid";case"premium":return"none"}},"useTierLimits",0,function(){let{subscription:e,user:r}=(0,t.useAuthStore)(),s=r?.is_admin??!1,a=e?.tier||"free",n=i[a];if(s)return{canGenerateReport:!0,canCreateAlert:!0,canUseChat:!0,reportsRemaining:1/0,alertsRemaining:1/0,isUnlimitedReports:!0,isUnlimitedAlerts:!0,isPremiumUser:!0,isAdmin:!0,tier:a,tierLabel:"Admin"};let l=e?.reports_used_this_month||0,o=e?.reports_limit??n.limits.reports,c=-1===o,u=c?1/0:Math.max(0,o-l),d=e?.alerts_limit??n.limits.alerts,h=-1===d,f=h?1/0:d;return{canGenerateReport:c||u>0,canCreateAlert:h||f>0,canUseChat:"premium"===a||"business"===a,reportsRemaining:u,alertsRemaining:f,isUnlimitedReports:c,isUnlimitedAlerts:h,isPremiumUser:"premium"===a||"business"===a,isAdmin:!1,tier:a,tierLabel:n.name}}],416984)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.