var Nk=Object.defineProperty;var Zg=t=>{throw TypeError(t)};var _k=(t,e,r)=>e in t?Nk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Jr=(t,e,r)=>_k(t,typeof e!="symbol"?e+"":e,r),Wd=(t,e,r)=>e.has(t)||Zg("Cannot "+r);var S=(t,e,r)=>(Wd(t,e,"read from private field"),r?r.call(t):e.get(t)),ne=(t,e,r)=>e.has(t)?Zg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),H=(t,e,r,n)=>(Wd(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),ge=(t,e,r)=>(Wd(t,e,"access private method"),r);var zl=(t,e,r,n)=>({set _(a){H(t,e,a,r)},get _(){return S(t,e,n)}});function Sk(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function Oi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nv={exports:{}},$u={},_v={exports:{}},pe={};/**
 * @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 bl=Symbol.for("react.element"),Ck=Symbol.for("react.portal"),Ek=Symbol.for("react.fragment"),Tk=Symbol.for("react.strict_mode"),Rk=Symbol.for("react.profiler"),Ak=Symbol.for("react.provider"),Pk=Symbol.for("react.context"),Ok=Symbol.for("react.forward_ref"),Ik=Symbol.for("react.suspense"),Mk=Symbol.for("react.memo"),Lk=Symbol.for("react.lazy"),e1=Symbol.iterator;function Dk(t){return t===null||typeof t!="object"?null:(t=e1&&t[e1]||t["@@iterator"],typeof t=="function"?t:null)}var Sv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cv=Object.assign,Ev={};function Ii(t,e,r){this.props=t,this.context=e,this.refs=Ev,this.updater=r||Sv}Ii.prototype.isReactComponent={};Ii.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Ii.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Tv(){}Tv.prototype=Ii.prototype;function Hm(t,e,r){this.props=t,this.context=e,this.refs=Ev,this.updater=r||Sv}var Vm=Hm.prototype=new Tv;Vm.constructor=Hm;Cv(Vm,Ii.prototype);Vm.isPureReactComponent=!0;var t1=Array.isArray,Rv=Object.prototype.hasOwnProperty,qm={current:null},Av={key:!0,ref:!0,__self:!0,__source:!0};function Pv(t,e,r){var n,a={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)Rv.call(e,n)&&!Av.hasOwnProperty(n)&&(a[n]=e[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(t&&t.defaultProps)for(n in l=t.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:bl,type:t,key:i,ref:o,props:a,_owner:qm.current}}function $k(t,e){return{$$typeof:bl,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Gm(t){return typeof t=="object"&&t!==null&&t.$$typeof===bl}function Fk(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var r1=/\/+/g;function zd(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Fk(""+t.key):e.toString(36)}function jc(t,e,r,n,a){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case bl:case Ck:o=!0}}if(o)return o=t,a=a(o),t=n===""?"."+zd(o,0):n,t1(a)?(r="",t!=null&&(r=t.replace(r1,"$&/")+"/"),jc(a,e,r,"",function(u){return u})):a!=null&&(Gm(a)&&(a=$k(a,r+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(r1,"$&/")+"/")+t)),e.push(a)),1;if(o=0,n=n===""?".":n+":",t1(t))for(var l=0;l<t.length;l++){i=t[l];var c=n+zd(i,l);o+=jc(i,e,r,c,a)}else if(c=Dk(t),typeof c=="function")for(t=c.call(t),l=0;!(i=t.next()).done;)i=i.value,c=n+zd(i,l++),o+=jc(i,e,r,c,a);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Hl(t,e,r){if(t==null)return t;var n=[],a=0;return jc(t,n,"","",function(i){return e.call(r,i,a++)}),n}function Bk(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var kt={current:null},Nc={transition:null},Uk={ReactCurrentDispatcher:kt,ReactCurrentBatchConfig:Nc,ReactCurrentOwner:qm};function Ov(){throw Error("act(...) is not supported in production builds of React.")}pe.Children={map:Hl,forEach:function(t,e,r){Hl(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return Hl(t,function(){e++}),e},toArray:function(t){return Hl(t,function(e){return e})||[]},only:function(t){if(!Gm(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};pe.Component=Ii;pe.Fragment=Ek;pe.Profiler=Rk;pe.PureComponent=Hm;pe.StrictMode=Tk;pe.Suspense=Ik;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uk;pe.act=Ov;pe.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=Cv({},t.props),a=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=qm.current),e.key!==void 0&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)Rv.call(e,c)&&!Av.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:bl,type:t.type,key:a,ref:i,props:n,_owner:o}};pe.createContext=function(t){return t={$$typeof:Pk,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Ak,_context:t},t.Consumer=t};pe.createElement=Pv;pe.createFactory=function(t){var e=Pv.bind(null,t);return e.type=t,e};pe.createRef=function(){return{current:null}};pe.forwardRef=function(t){return{$$typeof:Ok,render:t}};pe.isValidElement=Gm;pe.lazy=function(t){return{$$typeof:Lk,_payload:{_status:-1,_result:t},_init:Bk}};pe.memo=function(t,e){return{$$typeof:Mk,type:t,compare:e===void 0?null:e}};pe.startTransition=function(t){var e=Nc.transition;Nc.transition={};try{t()}finally{Nc.transition=e}};pe.unstable_act=Ov;pe.useCallback=function(t,e){return kt.current.useCallback(t,e)};pe.useContext=function(t){return kt.current.useContext(t)};pe.useDebugValue=function(){};pe.useDeferredValue=function(t){return kt.current.useDeferredValue(t)};pe.useEffect=function(t,e){return kt.current.useEffect(t,e)};pe.useId=function(){return kt.current.useId()};pe.useImperativeHandle=function(t,e,r){return kt.current.useImperativeHandle(t,e,r)};pe.useInsertionEffect=function(t,e){return kt.current.useInsertionEffect(t,e)};pe.useLayoutEffect=function(t,e){return kt.current.useLayoutEffect(t,e)};pe.useMemo=function(t,e){return kt.current.useMemo(t,e)};pe.useReducer=function(t,e,r){return kt.current.useReducer(t,e,r)};pe.useRef=function(t){return kt.current.useRef(t)};pe.useState=function(t){return kt.current.useState(t)};pe.useSyncExternalStore=function(t,e,r){return kt.current.useSyncExternalStore(t,e,r)};pe.useTransition=function(){return kt.current.useTransition()};pe.version="18.3.1";_v.exports=pe;var p=_v.exports;const P=Oi(p),Km=Sk({__proto__:null,default:P},[p]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wk=p,zk=Symbol.for("react.element"),Hk=Symbol.for("react.fragment"),Vk=Object.prototype.hasOwnProperty,qk=Wk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gk={key:!0,ref:!0,__self:!0,__source:!0};function Iv(t,e,r){var n,a={},i=null,o=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)Vk.call(e,n)&&!Gk.hasOwnProperty(n)&&(a[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)a[n]===void 0&&(a[n]=e[n]);return{$$typeof:zk,type:t,key:i,ref:o,props:a,_owner:qk.current}}$u.Fragment=Hk;$u.jsx=Iv;$u.jsxs=Iv;Nv.exports=$u;var s=Nv.exports,Mv={exports:{}},Vt={},Lv={exports:{}},Dv={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(t){function e(T,C){var L=T.length;T.push(C);e:for(;0<L;){var q=L-1>>>1,F=T[q];if(0<a(F,C))T[q]=C,T[L]=F,L=q;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var C=T[0],L=T.pop();if(L!==C){T[0]=L;e:for(var q=0,F=T.length,se=F>>>1;q<se;){var le=2*(q+1)-1,De=T[le],We=le+1,me=T[We];if(0>a(De,L))We<F&&0>a(me,De)?(T[q]=me,T[We]=L,q=We):(T[q]=De,T[le]=L,q=le);else if(We<F&&0>a(me,L))T[q]=me,T[We]=L,q=We;else break e}}return C}function a(T,C){var L=T.sortIndex-C.sortIndex;return L!==0?L:T.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,m=!1,w=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(T){for(var C=r(u);C!==null;){if(C.callback===null)n(u);else if(C.startTime<=T)n(u),C.sortIndex=C.expirationTime,e(c,C);else break;C=r(u)}}function k(T){if(g=!1,b(T),!w)if(r(c)!==null)w=!0,z(j);else{var C=r(u);C!==null&&X(k,C.startTime-T)}}function j(T,C){w=!1,g&&(g=!1,x(E),E=-1),m=!0;var L=f;try{for(b(C),h=r(c);h!==null&&(!(h.expirationTime>C)||T&&!$());){var q=h.callback;if(typeof q=="function"){h.callback=null,f=h.priorityLevel;var F=q(h.expirationTime<=C);C=t.unstable_now(),typeof F=="function"?h.callback=F:h===r(c)&&n(c),b(C)}else n(c);h=r(c)}if(h!==null)var se=!0;else{var le=r(u);le!==null&&X(k,le.startTime-C),se=!1}return se}finally{h=null,f=L,m=!1}}var N=!1,_=null,E=-1,R=5,A=-1;function $(){return!(t.unstable_now()-A<R)}function O(){if(_!==null){var T=t.unstable_now();A=T;var C=!0;try{C=_(!0,T)}finally{C?J():(N=!1,_=null)}}else N=!1}var J;if(typeof v=="function")J=function(){v(O)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Z=M.port2;M.port1.onmessage=O,J=function(){Z.postMessage(null)}}else J=function(){y(O,0)};function z(T){_=T,N||(N=!0,J())}function X(T,C){E=y(function(){T(t.unstable_now())},C)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(T){T.callback=null},t.unstable_continueExecution=function(){w||m||(w=!0,z(j))},t.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<T?Math.floor(1e3/T):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(T){switch(f){case 1:case 2:case 3:var C=3;break;default:C=f}var L=f;f=C;try{return T()}finally{f=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(T,C){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var L=f;f=T;try{return C()}finally{f=L}},t.unstable_scheduleCallback=function(T,C,L){var q=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?q+L:q):L=q,T){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=L+F,T={id:d++,callback:C,priorityLevel:T,startTime:L,expirationTime:F,sortIndex:-1},L>q?(T.sortIndex=L,e(u,T),r(c)===null&&T===r(u)&&(g?(x(E),E=-1):g=!0,X(k,L-q))):(T.sortIndex=F,e(c,T),w||m||(w=!0,z(j))),T},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(T){var C=f;return function(){var L=f;f=C;try{return T.apply(this,arguments)}finally{f=L}}}})(Dv);Lv.exports=Dv;var Kk=Lv.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 Yk=p,Wt=Kk;function I(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $v=new Set,Oo={};function aa(t,e){yi(t,e),yi(t+"Capture",e)}function yi(t,e){for(Oo[t]=e,t=0;t<e.length;t++)$v.add(e[t])}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kh=Object.prototype.hasOwnProperty,Jk=/^[: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]*$/,n1={},s1={};function Qk(t){return Kh.call(s1,t)?!0:Kh.call(n1,t)?!1:Jk.test(t)?s1[t]=!0:(n1[t]=!0,!1)}function Xk(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Zk(t,e,r,n){if(e===null||typeof e>"u"||Xk(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function jt(t,e,r,n,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){dt[t]=new jt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];dt[e]=new jt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){dt[t]=new jt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){dt[t]=new jt(t,2,!1,t,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(t){dt[t]=new jt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){dt[t]=new jt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){dt[t]=new jt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){dt[t]=new jt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){dt[t]=new jt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Ym=/[\-:]([a-z])/g;function Jm(t){return t[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(t){var e=t.replace(Ym,Jm);dt[e]=new jt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Ym,Jm);dt[e]=new jt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Ym,Jm);dt[e]=new jt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){dt[t]=new jt(t,1,!1,t.toLowerCase(),null,!1,!1)});dt.xlinkHref=new jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){dt[t]=new jt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Qm(t,e,r,n){var a=dt.hasOwnProperty(e)?dt[e]:null;(a!==null?a.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Zk(e,r,a,n)&&(r=null),n||a===null?Qk(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):a.mustUseProperty?t[a.propertyName]=r===null?a.type===3?!1:"":r:(e=a.attributeName,n=a.attributeNamespace,r===null?t.removeAttribute(e):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var fn=Yk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vl=Symbol.for("react.element"),Ia=Symbol.for("react.portal"),Ma=Symbol.for("react.fragment"),Xm=Symbol.for("react.strict_mode"),Yh=Symbol.for("react.profiler"),Fv=Symbol.for("react.provider"),Bv=Symbol.for("react.context"),Zm=Symbol.for("react.forward_ref"),Jh=Symbol.for("react.suspense"),Qh=Symbol.for("react.suspense_list"),ep=Symbol.for("react.memo"),Tn=Symbol.for("react.lazy"),Uv=Symbol.for("react.offscreen"),a1=Symbol.iterator;function Gi(t){return t===null||typeof t!="object"?null:(t=a1&&t[a1]||t["@@iterator"],typeof t=="function"?t:null)}var Ue=Object.assign,Hd;function uo(t){if(Hd===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Hd=e&&e[1]||""}return`
`+Hd+t}var Vd=!1;function qd(t,e){if(!t||Vd)return"";Vd=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var n=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){n=u}t.call(e.prototype)}else{try{throw Error()}catch(u){n=u}t()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var a=u.stack.split(`
`),i=n.stack.split(`
`),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var c=`
`+a[o].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=o&&0<=l);break}}}finally{Vd=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?uo(t):""}function ej(t){switch(t.tag){case 5:return uo(t.type);case 16:return uo("Lazy");case 13:return uo("Suspense");case 19:return uo("SuspenseList");case 0:case 2:case 15:return t=qd(t.type,!1),t;case 11:return t=qd(t.type.render,!1),t;case 1:return t=qd(t.type,!0),t;default:return""}}function Xh(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ma:return"Fragment";case Ia:return"Portal";case Yh:return"Profiler";case Xm:return"StrictMode";case Jh:return"Suspense";case Qh:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Bv:return(t.displayName||"Context")+".Consumer";case Fv:return(t._context.displayName||"Context")+".Provider";case Zm:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ep:return e=t.displayName||null,e!==null?e:Xh(t.type)||"Memo";case Tn:e=t._payload,t=t._init;try{return Xh(t(e))}catch{}}return null}function tj(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xh(e);case 8:return e===Xm?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ls(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Wv(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function rj(t){var e=Wv(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ql(t){t._valueTracker||(t._valueTracker=rj(t))}function zv(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Wv(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function qc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Zh(t,e){var r=e.checked;return Ue({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function i1(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=ls(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Hv(t,e){e=e.checked,e!=null&&Qm(t,"checked",e,!1)}function ef(t,e){Hv(t,e);var r=ls(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?tf(t,e.type,r):e.hasOwnProperty("defaultValue")&&tf(t,e.type,ls(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function o1(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function tf(t,e,r){(e!=="number"||qc(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var ho=Array.isArray;function Ka(t,e,r,n){if(t=t.options,e){e={};for(var a=0;a<r.length;a++)e["$"+r[a]]=!0;for(r=0;r<t.length;r++)a=e.hasOwnProperty("$"+t[r].value),t[r].selected!==a&&(t[r].selected=a),a&&n&&(t[r].defaultSelected=!0)}else{for(r=""+ls(r),e=null,a=0;a<t.length;a++){if(t[a].value===r){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function rf(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(I(91));return Ue({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function l1(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(I(92));if(ho(r)){if(1<r.length)throw Error(I(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:ls(r)}}function Vv(t,e){var r=ls(e.value),n=ls(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function c1(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function qv(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nf(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?qv(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Gl,Gv=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,a){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,a)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Gl=Gl||document.createElement("div"),Gl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Gl.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Io(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var vo={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},nj=["Webkit","ms","Moz","O"];Object.keys(vo).forEach(function(t){nj.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),vo[e]=vo[t]})});function Kv(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||vo.hasOwnProperty(t)&&vo[t]?(""+e).trim():e+"px"}function Yv(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=Kv(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,a):t[r]=a}}var sj=Ue({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 sf(t,e){if(e){if(sj[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(I(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(I(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(I(61))}if(e.style!=null&&typeof e.style!="object")throw Error(I(62))}}function af(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 of=null;function tp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var lf=null,Ya=null,Ja=null;function u1(t){if(t=jl(t)){if(typeof lf!="function")throw Error(I(280));var e=t.stateNode;e&&(e=zu(e),lf(t.stateNode,t.type,e))}}function Jv(t){Ya?Ja?Ja.push(t):Ja=[t]:Ya=t}function Qv(){if(Ya){var t=Ya,e=Ja;if(Ja=Ya=null,u1(t),e)for(t=0;t<e.length;t++)u1(e[t])}}function Xv(t,e){return t(e)}function Zv(){}var Gd=!1;function e0(t,e,r){if(Gd)return t(e,r);Gd=!0;try{return Xv(t,e,r)}finally{Gd=!1,(Ya!==null||Ja!==null)&&(Zv(),Qv())}}function Mo(t,e){var r=t.stateNode;if(r===null)return null;var n=zu(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(I(231,e,typeof r));return r}var cf=!1;if(on)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){cf=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{cf=!1}function aj(t,e,r,n,a,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{e.apply(r,u)}catch(d){this.onError(d)}}var bo=!1,Gc=null,Kc=!1,uf=null,ij={onError:function(t){bo=!0,Gc=t}};function oj(t,e,r,n,a,i,o,l,c){bo=!1,Gc=null,aj.apply(ij,arguments)}function lj(t,e,r,n,a,i,o,l,c){if(oj.apply(this,arguments),bo){if(bo){var u=Gc;bo=!1,Gc=null}else throw Error(I(198));Kc||(Kc=!0,uf=u)}}function ia(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function t0(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function d1(t){if(ia(t)!==t)throw Error(I(188))}function cj(t){var e=t.alternate;if(!e){if(e=ia(t),e===null)throw Error(I(188));return e!==t?null:t}for(var r=t,n=e;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return d1(a),t;if(i===n)return d1(a),e;i=i.sibling}throw Error(I(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o)throw Error(I(189))}}if(r.alternate!==n)throw Error(I(190))}if(r.tag!==3)throw Error(I(188));return r.stateNode.current===r?t:e}function r0(t){return t=cj(t),t!==null?n0(t):null}function n0(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=n0(t);if(e!==null)return e;t=t.sibling}return null}var s0=Wt.unstable_scheduleCallback,h1=Wt.unstable_cancelCallback,uj=Wt.unstable_shouldYield,dj=Wt.unstable_requestPaint,Ge=Wt.unstable_now,hj=Wt.unstable_getCurrentPriorityLevel,rp=Wt.unstable_ImmediatePriority,a0=Wt.unstable_UserBlockingPriority,Yc=Wt.unstable_NormalPriority,fj=Wt.unstable_LowPriority,i0=Wt.unstable_IdlePriority,Fu=null,Ur=null;function mj(t){if(Ur&&typeof Ur.onCommitFiberRoot=="function")try{Ur.onCommitFiberRoot(Fu,t,void 0,(t.current.flags&128)===128)}catch{}}var kr=Math.clz32?Math.clz32:xj,pj=Math.log,gj=Math.LN2;function xj(t){return t>>>=0,t===0?32:31-(pj(t)/gj|0)|0}var Kl=64,Yl=4194304;function fo(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Jc(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,a=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var l=o&~a;l!==0?n=fo(l):(i&=o,i!==0&&(n=fo(i)))}else o=r&~a,o!==0?n=fo(o):i!==0&&(n=fo(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&a)&&(a=n&-n,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-kr(e),a=1<<r,n|=t[r],e&=~a;return n}function yj(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vj(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-kr(i),l=1<<o,c=a[o];c===-1?(!(l&r)||l&n)&&(a[o]=yj(l,e)):c<=e&&(t.expiredLanes|=l),i&=~l}}function df(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function o0(){var t=Kl;return Kl<<=1,!(Kl&4194240)&&(Kl=64),t}function Kd(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function wl(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-kr(e),t[e]=r}function bj(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var a=31-kr(r),i=1<<a;e[a]=0,n[a]=-1,t[a]=-1,r&=~i}}function np(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-kr(r),a=1<<n;a&e|t[n]&e&&(t[n]|=e),r&=~a}}var _e=0;function l0(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var c0,sp,u0,d0,h0,hf=!1,Jl=[],Yn=null,Jn=null,Qn=null,Lo=new Map,Do=new Map,On=[],wj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function f1(t,e){switch(t){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":Lo.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Do.delete(e.pointerId)}}function Yi(t,e,r,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=jl(e),e!==null&&sp(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function kj(t,e,r,n,a){switch(e){case"focusin":return Yn=Yi(Yn,t,e,r,n,a),!0;case"dragenter":return Jn=Yi(Jn,t,e,r,n,a),!0;case"mouseover":return Qn=Yi(Qn,t,e,r,n,a),!0;case"pointerover":var i=a.pointerId;return Lo.set(i,Yi(Lo.get(i)||null,t,e,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Do.set(i,Yi(Do.get(i)||null,t,e,r,n,a)),!0}return!1}function f0(t){var e=As(t.target);if(e!==null){var r=ia(e);if(r!==null){if(e=r.tag,e===13){if(e=t0(r),e!==null){t.blockedOn=e,h0(t.priority,function(){u0(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _c(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=ff(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);of=n,r.target.dispatchEvent(n),of=null}else return e=jl(r),e!==null&&sp(e),t.blockedOn=r,!1;e.shift()}return!0}function m1(t,e,r){_c(t)&&r.delete(e)}function jj(){hf=!1,Yn!==null&&_c(Yn)&&(Yn=null),Jn!==null&&_c(Jn)&&(Jn=null),Qn!==null&&_c(Qn)&&(Qn=null),Lo.forEach(m1),Do.forEach(m1)}function Ji(t,e){t.blockedOn===e&&(t.blockedOn=null,hf||(hf=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,jj)))}function $o(t){function e(a){return Ji(a,t)}if(0<Jl.length){Ji(Jl[0],t);for(var r=1;r<Jl.length;r++){var n=Jl[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Yn!==null&&Ji(Yn,t),Jn!==null&&Ji(Jn,t),Qn!==null&&Ji(Qn,t),Lo.forEach(e),Do.forEach(e),r=0;r<On.length;r++)n=On[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<On.length&&(r=On[0],r.blockedOn===null);)f0(r),r.blockedOn===null&&On.shift()}var Qa=fn.ReactCurrentBatchConfig,Qc=!0;function Nj(t,e,r,n){var a=_e,i=Qa.transition;Qa.transition=null;try{_e=1,ap(t,e,r,n)}finally{_e=a,Qa.transition=i}}function _j(t,e,r,n){var a=_e,i=Qa.transition;Qa.transition=null;try{_e=4,ap(t,e,r,n)}finally{_e=a,Qa.transition=i}}function ap(t,e,r,n){if(Qc){var a=ff(t,e,r,n);if(a===null)sh(t,e,n,Xc,r),f1(t,n);else if(kj(a,t,e,r,n))n.stopPropagation();else if(f1(t,n),e&4&&-1<wj.indexOf(t)){for(;a!==null;){var i=jl(a);if(i!==null&&c0(i),i=ff(t,e,r,n),i===null&&sh(t,e,n,Xc,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else sh(t,e,n,null,r)}}var Xc=null;function ff(t,e,r,n){if(Xc=null,t=tp(n),t=As(t),t!==null)if(e=ia(t),e===null)t=null;else if(r=e.tag,r===13){if(t=t0(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Xc=t,null}function m0(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hj()){case rp:return 1;case a0:return 4;case Yc:case fj:return 16;case i0:return 536870912;default:return 16}default:return 16}}var Vn=null,ip=null,Sc=null;function p0(){if(Sc)return Sc;var t,e=ip,r=e.length,n,a="value"in Vn?Vn.value:Vn.textContent,i=a.length;for(t=0;t<r&&e[t]===a[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===a[i-n];n++);return Sc=a.slice(t,1<n?1-n:void 0)}function Cc(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ql(){return!0}function p1(){return!1}function qt(t){function e(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(r=t[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ql:p1,this.isPropagationStopped=p1,this}return Ue(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),e}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},op=qt(Mi),kl=Ue({},Mi,{view:0,detail:0}),Sj=qt(kl),Yd,Jd,Qi,Bu=Ue({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lp,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Qi&&(Qi&&t.type==="mousemove"?(Yd=t.screenX-Qi.screenX,Jd=t.screenY-Qi.screenY):Jd=Yd=0,Qi=t),Yd)},movementY:function(t){return"movementY"in t?t.movementY:Jd}}),g1=qt(Bu),Cj=Ue({},Bu,{dataTransfer:0}),Ej=qt(Cj),Tj=Ue({},kl,{relatedTarget:0}),Qd=qt(Tj),Rj=Ue({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),Aj=qt(Rj),Pj=Ue({},Mi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Oj=qt(Pj),Ij=Ue({},Mi,{data:0}),x1=qt(Ij),Mj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lj={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $j(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Dj[t])?!!e[t]:!1}function lp(){return $j}var Fj=Ue({},kl,{key:function(t){if(t.key){var e=Mj[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Cc(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lj[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lp,charCode:function(t){return t.type==="keypress"?Cc(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Cc(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Bj=qt(Fj),Uj=Ue({},Bu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y1=qt(Uj),Wj=Ue({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lp}),zj=qt(Wj),Hj=Ue({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vj=qt(Hj),qj=Ue({},Bu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Gj=qt(qj),Kj=[9,13,27,32],cp=on&&"CompositionEvent"in window,wo=null;on&&"documentMode"in document&&(wo=document.documentMode);var Yj=on&&"TextEvent"in window&&!wo,g0=on&&(!cp||wo&&8<wo&&11>=wo),v1=" ",b1=!1;function x0(t,e){switch(t){case"keyup":return Kj.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function Jj(t,e){switch(t){case"compositionend":return y0(e);case"keypress":return e.which!==32?null:(b1=!0,v1);case"textInput":return t=e.data,t===v1&&b1?null:t;default:return null}}function Qj(t,e){if(La)return t==="compositionend"||!cp&&x0(t,e)?(t=p0(),Sc=ip=Vn=null,La=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return g0&&e.locale!=="ko"?null:e.data;default:return null}}var Xj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function w1(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Xj[t.type]:e==="textarea"}function v0(t,e,r,n){Jv(n),e=Zc(e,"onChange"),0<e.length&&(r=new op("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var ko=null,Fo=null;function Zj(t){R0(t,0)}function Uu(t){var e=Fa(t);if(zv(e))return t}function eN(t,e){if(t==="change")return e}var b0=!1;if(on){var Xd;if(on){var Zd="oninput"in document;if(!Zd){var k1=document.createElement("div");k1.setAttribute("oninput","return;"),Zd=typeof k1.oninput=="function"}Xd=Zd}else Xd=!1;b0=Xd&&(!document.documentMode||9<document.documentMode)}function j1(){ko&&(ko.detachEvent("onpropertychange",w0),Fo=ko=null)}function w0(t){if(t.propertyName==="value"&&Uu(Fo)){var e=[];v0(e,Fo,t,tp(t)),e0(Zj,e)}}function tN(t,e,r){t==="focusin"?(j1(),ko=e,Fo=r,ko.attachEvent("onpropertychange",w0)):t==="focusout"&&j1()}function rN(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Uu(Fo)}function nN(t,e){if(t==="click")return Uu(e)}function sN(t,e){if(t==="input"||t==="change")return Uu(e)}function aN(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Nr=typeof Object.is=="function"?Object.is:aN;function Bo(t,e){if(Nr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!Kh.call(e,a)||!Nr(t[a],e[a]))return!1}return!0}function N1(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _1(t,e){var r=N1(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=N1(r)}}function k0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?k0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function j0(){for(var t=window,e=qc();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=qc(t.document)}return e}function up(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function iN(t){var e=j0(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&k0(r.ownerDocument.documentElement,r)){if(n!==null&&up(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!t.extend&&i>n&&(a=n,n=i,i=a),a=_1(r,i);var o=_1(r,n);a&&o&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var oN=on&&"documentMode"in document&&11>=document.documentMode,Da=null,mf=null,jo=null,pf=!1;function S1(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;pf||Da==null||Da!==qc(n)||(n=Da,"selectionStart"in n&&up(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),jo&&Bo(jo,n)||(jo=n,n=Zc(mf,"onSelect"),0<n.length&&(e=new op("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Da)))}function Xl(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var $a={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionend:Xl("Transition","TransitionEnd")},eh={},N0={};on&&(N0=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function Wu(t){if(eh[t])return eh[t];if(!$a[t])return t;var e=$a[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in N0)return eh[t]=e[r];return t}var _0=Wu("animationend"),S0=Wu("animationiteration"),C0=Wu("animationstart"),E0=Wu("transitionend"),T0=new Map,C1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ms(t,e){T0.set(t,e),aa(e,[t])}for(var th=0;th<C1.length;th++){var rh=C1[th],lN=rh.toLowerCase(),cN=rh[0].toUpperCase()+rh.slice(1);ms(lN,"on"+cN)}ms(_0,"onAnimationEnd");ms(S0,"onAnimationIteration");ms(C0,"onAnimationStart");ms("dblclick","onDoubleClick");ms("focusin","onFocus");ms("focusout","onBlur");ms(E0,"onTransitionEnd");yi("onMouseEnter",["mouseout","mouseover"]);yi("onMouseLeave",["mouseout","mouseover"]);yi("onPointerEnter",["pointerout","pointerover"]);yi("onPointerLeave",["pointerout","pointerover"]);aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));aa("onBeforeInput",["compositionend","keypress","textInput","paste"]);aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uN=new Set("cancel close invalid load scroll toggle".split(" ").concat(mo));function E1(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,lj(n,e,void 0,t),t.currentTarget=null}function R0(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],a=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var l=n[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;E1(a,l,u),i=c}else for(o=0;o<n.length;o++){if(l=n[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;E1(a,l,u),i=c}}}if(Kc)throw t=uf,Kc=!1,uf=null,t}function Ae(t,e){var r=e[bf];r===void 0&&(r=e[bf]=new Set);var n=t+"__bubble";r.has(n)||(A0(e,t,2,!1),r.add(n))}function nh(t,e,r){var n=0;e&&(n|=4),A0(r,t,n,e)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function Uo(t){if(!t[Zl]){t[Zl]=!0,$v.forEach(function(r){r!=="selectionchange"&&(uN.has(r)||nh(r,!1,t),nh(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zl]||(e[Zl]=!0,nh("selectionchange",!1,e))}}function A0(t,e,r,n){switch(m0(e)){case 1:var a=Nj;break;case 4:a=_j;break;default:a=ap}r=a.bind(null,e,r,t),a=void 0,!cf||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,r,{capture:!0,passive:a}):t.addEventListener(e,r,!0):a!==void 0?t.addEventListener(e,r,{passive:a}):t.addEventListener(e,r,!1)}function sh(t,e,r,n,a){var i=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=n.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=As(l),o===null)return;if(c=o.tag,c===5||c===6){n=i=o;continue e}l=l.parentNode}}n=n.return}e0(function(){var u=i,d=tp(r),h=[];e:{var f=T0.get(t);if(f!==void 0){var m=op,w=t;switch(t){case"keypress":if(Cc(r)===0)break e;case"keydown":case"keyup":m=Bj;break;case"focusin":w="focus",m=Qd;break;case"focusout":w="blur",m=Qd;break;case"beforeblur":case"afterblur":m=Qd;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=g1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Ej;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=zj;break;case _0:case S0:case C0:m=Aj;break;case E0:m=Vj;break;case"scroll":m=Sj;break;case"wheel":m=Gj;break;case"copy":case"cut":case"paste":m=Oj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=y1}var g=(e&4)!==0,y=!g&&t==="scroll",x=g?f!==null?f+"Capture":null:f;g=[];for(var v=u,b;v!==null;){b=v;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,x!==null&&(k=Mo(v,x),k!=null&&g.push(Wo(v,k,b)))),y)break;v=v.return}0<g.length&&(f=new m(f,w,null,r,d),h.push({event:f,listeners:g}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",f&&r!==of&&(w=r.relatedTarget||r.fromElement)&&(As(w)||w[ln]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(w=r.relatedTarget||r.toElement,m=u,w=w?As(w):null,w!==null&&(y=ia(w),w!==y||w.tag!==5&&w.tag!==6)&&(w=null)):(m=null,w=u),m!==w)){if(g=g1,k="onMouseLeave",x="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(g=y1,k="onPointerLeave",x="onPointerEnter",v="pointer"),y=m==null?f:Fa(m),b=w==null?f:Fa(w),f=new g(k,v+"leave",m,r,d),f.target=y,f.relatedTarget=b,k=null,As(d)===u&&(g=new g(x,v+"enter",w,r,d),g.target=b,g.relatedTarget=y,k=g),y=k,m&&w)t:{for(g=m,x=w,v=0,b=g;b;b=ga(b))v++;for(b=0,k=x;k;k=ga(k))b++;for(;0<v-b;)g=ga(g),v--;for(;0<b-v;)x=ga(x),b--;for(;v--;){if(g===x||x!==null&&g===x.alternate)break t;g=ga(g),x=ga(x)}g=null}else g=null;m!==null&&T1(h,f,m,g,!1),w!==null&&y!==null&&T1(h,y,w,g,!0)}}e:{if(f=u?Fa(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var j=eN;else if(w1(f))if(b0)j=sN;else{j=rN;var N=tN}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(j=nN);if(j&&(j=j(t,u))){v0(h,j,r,d);break e}N&&N(t,f,u),t==="focusout"&&(N=f._wrapperState)&&N.controlled&&f.type==="number"&&tf(f,"number",f.value)}switch(N=u?Fa(u):window,t){case"focusin":(w1(N)||N.contentEditable==="true")&&(Da=N,mf=u,jo=null);break;case"focusout":jo=mf=Da=null;break;case"mousedown":pf=!0;break;case"contextmenu":case"mouseup":case"dragend":pf=!1,S1(h,r,d);break;case"selectionchange":if(oN)break;case"keydown":case"keyup":S1(h,r,d)}var _;if(cp)e:{switch(t){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else La?x0(t,r)&&(E="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(E="onCompositionStart");E&&(g0&&r.locale!=="ko"&&(La||E!=="onCompositionStart"?E==="onCompositionEnd"&&La&&(_=p0()):(Vn=d,ip="value"in Vn?Vn.value:Vn.textContent,La=!0)),N=Zc(u,E),0<N.length&&(E=new x1(E,t,null,r,d),h.push({event:E,listeners:N}),_?E.data=_:(_=y0(r),_!==null&&(E.data=_)))),(_=Yj?Jj(t,r):Qj(t,r))&&(u=Zc(u,"onBeforeInput"),0<u.length&&(d=new x1("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:u}),d.data=_))}R0(h,e)})}function Wo(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Zc(t,e){for(var r=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Mo(t,r),i!=null&&n.unshift(Wo(t,i,a)),i=Mo(t,e),i!=null&&n.push(Wo(t,i,a))),t=t.return}return n}function ga(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function T1(t,e,r,n,a){for(var i=e._reactName,o=[];r!==null&&r!==n;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===n)break;l.tag===5&&u!==null&&(l=u,a?(c=Mo(r,i),c!=null&&o.unshift(Wo(r,c,l))):a||(c=Mo(r,i),c!=null&&o.push(Wo(r,c,l)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var dN=/\r\n?/g,hN=/\u0000|\uFFFD/g;function R1(t){return(typeof t=="string"?t:""+t).replace(dN,`
`).replace(hN,"")}function ec(t,e,r){if(e=R1(e),R1(t)!==e&&r)throw Error(I(425))}function eu(){}var gf=null,xf=null;function yf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var vf=typeof setTimeout=="function"?setTimeout:void 0,fN=typeof clearTimeout=="function"?clearTimeout:void 0,A1=typeof Promise=="function"?Promise:void 0,mN=typeof queueMicrotask=="function"?queueMicrotask:typeof A1<"u"?function(t){return A1.resolve(null).then(t).catch(pN)}:vf;function pN(t){setTimeout(function(){throw t})}function ah(t,e){var r=e,n=0;do{var a=r.nextSibling;if(t.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){t.removeChild(a),$o(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);$o(e)}function Xn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function P1(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Li=Math.random().toString(36).slice(2),$r="__reactFiber$"+Li,zo="__reactProps$"+Li,ln="__reactContainer$"+Li,bf="__reactEvents$"+Li,gN="__reactListeners$"+Li,xN="__reactHandles$"+Li;function As(t){var e=t[$r];if(e)return e;for(var r=t.parentNode;r;){if(e=r[ln]||r[$r]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=P1(t);t!==null;){if(r=t[$r])return r;t=P1(t)}return e}t=r,r=t.parentNode}return null}function jl(t){return t=t[$r]||t[ln],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Fa(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(I(33))}function zu(t){return t[zo]||null}var wf=[],Ba=-1;function ps(t){return{current:t}}function Pe(t){0>Ba||(t.current=wf[Ba],wf[Ba]=null,Ba--)}function Te(t,e){Ba++,wf[Ba]=t.current,t.current=e}var cs={},gt=ps(cs),Rt=ps(!1),Ys=cs;function vi(t,e){var r=t.type.contextTypes;if(!r)return cs;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function At(t){return t=t.childContextTypes,t!=null}function tu(){Pe(Rt),Pe(gt)}function O1(t,e,r){if(gt.current!==cs)throw Error(I(168));Te(gt,e),Te(Rt,r)}function P0(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(I(108,tj(t)||"Unknown",a));return Ue({},r,n)}function ru(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||cs,Ys=gt.current,Te(gt,t),Te(Rt,Rt.current),!0}function I1(t,e,r){var n=t.stateNode;if(!n)throw Error(I(169));r?(t=P0(t,e,Ys),n.__reactInternalMemoizedMergedChildContext=t,Pe(Rt),Pe(gt),Te(gt,t)):Pe(Rt),Te(Rt,r)}var tn=null,Hu=!1,ih=!1;function O0(t){tn===null?tn=[t]:tn.push(t)}function yN(t){Hu=!0,O0(t)}function gs(){if(!ih&&tn!==null){ih=!0;var t=0,e=_e;try{var r=tn;for(_e=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}tn=null,Hu=!1}catch(a){throw tn!==null&&(tn=tn.slice(t+1)),s0(rp,gs),a}finally{_e=e,ih=!1}}return null}var Ua=[],Wa=0,nu=null,su=0,Xt=[],Zt=0,Js=null,nn=1,sn="";function _s(t,e){Ua[Wa++]=su,Ua[Wa++]=nu,nu=t,su=e}function I0(t,e,r){Xt[Zt++]=nn,Xt[Zt++]=sn,Xt[Zt++]=Js,Js=t;var n=nn;t=sn;var a=32-kr(n)-1;n&=~(1<<a),r+=1;var i=32-kr(e)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,nn=1<<32-kr(e)+a|r<<a|n,sn=i+t}else nn=1<<i|r<<a|n,sn=t}function dp(t){t.return!==null&&(_s(t,1),I0(t,1,0))}function hp(t){for(;t===nu;)nu=Ua[--Wa],Ua[Wa]=null,su=Ua[--Wa],Ua[Wa]=null;for(;t===Js;)Js=Xt[--Zt],Xt[Zt]=null,sn=Xt[--Zt],Xt[Zt]=null,nn=Xt[--Zt],Xt[Zt]=null}var Bt=null,Ft=null,Me=!1,vr=null;function M0(t,e){var r=er(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function M1(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Bt=t,Ft=Xn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Bt=t,Ft=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Js!==null?{id:nn,overflow:sn}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=er(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Bt=t,Ft=null,!0):!1;default:return!1}}function kf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function jf(t){if(Me){var e=Ft;if(e){var r=e;if(!M1(t,e)){if(kf(t))throw Error(I(418));e=Xn(r.nextSibling);var n=Bt;e&&M1(t,e)?M0(n,r):(t.flags=t.flags&-4097|2,Me=!1,Bt=t)}}else{if(kf(t))throw Error(I(418));t.flags=t.flags&-4097|2,Me=!1,Bt=t}}}function L1(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Bt=t}function tc(t){if(t!==Bt)return!1;if(!Me)return L1(t),Me=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!yf(t.type,t.memoizedProps)),e&&(e=Ft)){if(kf(t))throw L0(),Error(I(418));for(;e;)M0(t,e),e=Xn(e.nextSibling)}if(L1(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Ft=Xn(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Ft=null}}else Ft=Bt?Xn(t.stateNode.nextSibling):null;return!0}function L0(){for(var t=Ft;t;)t=Xn(t.nextSibling)}function bi(){Ft=Bt=null,Me=!1}function fp(t){vr===null?vr=[t]:vr.push(t)}var vN=fn.ReactCurrentBatchConfig;function Xi(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(I(309));var n=r.stateNode}if(!n)throw Error(I(147,t));var a=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var l=a.refs;o===null?delete l[i]:l[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(I(284));if(!r._owner)throw Error(I(290,t))}return t}function rc(t,e){throw t=Object.prototype.toString.call(e),Error(I(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function D1(t){var e=t._init;return e(t._payload)}function D0(t){function e(x,v){if(t){var b=x.deletions;b===null?(x.deletions=[v],x.flags|=16):b.push(v)}}function r(x,v){if(!t)return null;for(;v!==null;)e(x,v),v=v.sibling;return null}function n(x,v){for(x=new Map;v!==null;)v.key!==null?x.set(v.key,v):x.set(v.index,v),v=v.sibling;return x}function a(x,v){return x=rs(x,v),x.index=0,x.sibling=null,x}function i(x,v,b){return x.index=b,t?(b=x.alternate,b!==null?(b=b.index,b<v?(x.flags|=2,v):b):(x.flags|=2,v)):(x.flags|=1048576,v)}function o(x){return t&&x.alternate===null&&(x.flags|=2),x}function l(x,v,b,k){return v===null||v.tag!==6?(v=fh(b,x.mode,k),v.return=x,v):(v=a(v,b),v.return=x,v)}function c(x,v,b,k){var j=b.type;return j===Ma?d(x,v,b.props.children,k,b.key):v!==null&&(v.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Tn&&D1(j)===v.type)?(k=a(v,b.props),k.ref=Xi(x,v,b),k.return=x,k):(k=Ic(b.type,b.key,b.props,null,x.mode,k),k.ref=Xi(x,v,b),k.return=x,k)}function u(x,v,b,k){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=mh(b,x.mode,k),v.return=x,v):(v=a(v,b.children||[]),v.return=x,v)}function d(x,v,b,k,j){return v===null||v.tag!==7?(v=Gs(b,x.mode,k,j),v.return=x,v):(v=a(v,b),v.return=x,v)}function h(x,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=fh(""+v,x.mode,b),v.return=x,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Vl:return b=Ic(v.type,v.key,v.props,null,x.mode,b),b.ref=Xi(x,null,v),b.return=x,b;case Ia:return v=mh(v,x.mode,b),v.return=x,v;case Tn:var k=v._init;return h(x,k(v._payload),b)}if(ho(v)||Gi(v))return v=Gs(v,x.mode,b,null),v.return=x,v;rc(x,v)}return null}function f(x,v,b,k){var j=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return j!==null?null:l(x,v,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Vl:return b.key===j?c(x,v,b,k):null;case Ia:return b.key===j?u(x,v,b,k):null;case Tn:return j=b._init,f(x,v,j(b._payload),k)}if(ho(b)||Gi(b))return j!==null?null:d(x,v,b,k,null);rc(x,b)}return null}function m(x,v,b,k,j){if(typeof k=="string"&&k!==""||typeof k=="number")return x=x.get(b)||null,l(v,x,""+k,j);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Vl:return x=x.get(k.key===null?b:k.key)||null,c(v,x,k,j);case Ia:return x=x.get(k.key===null?b:k.key)||null,u(v,x,k,j);case Tn:var N=k._init;return m(x,v,b,N(k._payload),j)}if(ho(k)||Gi(k))return x=x.get(b)||null,d(v,x,k,j,null);rc(v,k)}return null}function w(x,v,b,k){for(var j=null,N=null,_=v,E=v=0,R=null;_!==null&&E<b.length;E++){_.index>E?(R=_,_=null):R=_.sibling;var A=f(x,_,b[E],k);if(A===null){_===null&&(_=R);break}t&&_&&A.alternate===null&&e(x,_),v=i(A,v,E),N===null?j=A:N.sibling=A,N=A,_=R}if(E===b.length)return r(x,_),Me&&_s(x,E),j;if(_===null){for(;E<b.length;E++)_=h(x,b[E],k),_!==null&&(v=i(_,v,E),N===null?j=_:N.sibling=_,N=_);return Me&&_s(x,E),j}for(_=n(x,_);E<b.length;E++)R=m(_,x,E,b[E],k),R!==null&&(t&&R.alternate!==null&&_.delete(R.key===null?E:R.key),v=i(R,v,E),N===null?j=R:N.sibling=R,N=R);return t&&_.forEach(function($){return e(x,$)}),Me&&_s(x,E),j}function g(x,v,b,k){var j=Gi(b);if(typeof j!="function")throw Error(I(150));if(b=j.call(b),b==null)throw Error(I(151));for(var N=j=null,_=v,E=v=0,R=null,A=b.next();_!==null&&!A.done;E++,A=b.next()){_.index>E?(R=_,_=null):R=_.sibling;var $=f(x,_,A.value,k);if($===null){_===null&&(_=R);break}t&&_&&$.alternate===null&&e(x,_),v=i($,v,E),N===null?j=$:N.sibling=$,N=$,_=R}if(A.done)return r(x,_),Me&&_s(x,E),j;if(_===null){for(;!A.done;E++,A=b.next())A=h(x,A.value,k),A!==null&&(v=i(A,v,E),N===null?j=A:N.sibling=A,N=A);return Me&&_s(x,E),j}for(_=n(x,_);!A.done;E++,A=b.next())A=m(_,x,E,A.value,k),A!==null&&(t&&A.alternate!==null&&_.delete(A.key===null?E:A.key),v=i(A,v,E),N===null?j=A:N.sibling=A,N=A);return t&&_.forEach(function(O){return e(x,O)}),Me&&_s(x,E),j}function y(x,v,b,k){if(typeof b=="object"&&b!==null&&b.type===Ma&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Vl:e:{for(var j=b.key,N=v;N!==null;){if(N.key===j){if(j=b.type,j===Ma){if(N.tag===7){r(x,N.sibling),v=a(N,b.props.children),v.return=x,x=v;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Tn&&D1(j)===N.type){r(x,N.sibling),v=a(N,b.props),v.ref=Xi(x,N,b),v.return=x,x=v;break e}r(x,N);break}else e(x,N);N=N.sibling}b.type===Ma?(v=Gs(b.props.children,x.mode,k,b.key),v.return=x,x=v):(k=Ic(b.type,b.key,b.props,null,x.mode,k),k.ref=Xi(x,v,b),k.return=x,x=k)}return o(x);case Ia:e:{for(N=b.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){r(x,v.sibling),v=a(v,b.children||[]),v.return=x,x=v;break e}else{r(x,v);break}else e(x,v);v=v.sibling}v=mh(b,x.mode,k),v.return=x,x=v}return o(x);case Tn:return N=b._init,y(x,v,N(b._payload),k)}if(ho(b))return w(x,v,b,k);if(Gi(b))return g(x,v,b,k);rc(x,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(r(x,v.sibling),v=a(v,b),v.return=x,x=v):(r(x,v),v=fh(b,x.mode,k),v.return=x,x=v),o(x)):r(x,v)}return y}var wi=D0(!0),$0=D0(!1),au=ps(null),iu=null,za=null,mp=null;function pp(){mp=za=iu=null}function gp(t){var e=au.current;Pe(au),t._currentValue=e}function Nf(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Xa(t,e){iu=t,mp=za=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Tt=!0),t.firstContext=null)}function nr(t){var e=t._currentValue;if(mp!==t)if(t={context:t,memoizedValue:e,next:null},za===null){if(iu===null)throw Error(I(308));za=t,iu.dependencies={lanes:0,firstContext:t}}else za=za.next=t;return e}var Ps=null;function xp(t){Ps===null?Ps=[t]:Ps.push(t)}function F0(t,e,r,n){var a=e.interleaved;return a===null?(r.next=r,xp(e)):(r.next=a.next,a.next=r),e.interleaved=r,cn(t,n)}function cn(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var Rn=!1;function yp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B0(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function an(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Zn(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,ye&2){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,cn(t,r)}return a=n.interleaved,a===null?(e.next=e,xp(n)):(e.next=a.next,a.next=e),n.interleaved=e,cn(t,r)}function Ec(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,np(t,r)}}function $1(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=e:i=i.next=e}else a=i=e;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function ou(t,e,r,n){var a=t.updateQueue;Rn=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=t.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var h=a.baseState;o=0,d=u=c=null,l=i;do{var f=l.lane,m=l.eventTime;if((n&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=t,g=l;switch(f=e,m=r,g.tag){case 1:if(w=g.payload,typeof w=="function"){h=w.call(m,h,f);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,f=typeof w=="function"?w.call(m,h,f):w,f==null)break e;h=Ue({},h,f);break e;case 2:Rn=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,f=a.effects,f===null?a.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,c=h):d=d.next=m,o|=f;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;f=l,l=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(!0);if(d===null&&(c=h),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,e=a.shared.interleaved,e!==null){a=e;do o|=a.lane,a=a.next;while(a!==e)}else i===null&&(a.shared.lanes=0);Xs|=o,t.lanes=o,t.memoizedState=h}}function F1(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(I(191,a));a.call(n)}}}var Nl={},Wr=ps(Nl),Ho=ps(Nl),Vo=ps(Nl);function Os(t){if(t===Nl)throw Error(I(174));return t}function vp(t,e){switch(Te(Vo,e),Te(Ho,t),Te(Wr,Nl),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:nf(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=nf(e,t)}Pe(Wr),Te(Wr,e)}function ki(){Pe(Wr),Pe(Ho),Pe(Vo)}function U0(t){Os(Vo.current);var e=Os(Wr.current),r=nf(e,t.type);e!==r&&(Te(Ho,t),Te(Wr,r))}function bp(t){Ho.current===t&&(Pe(Wr),Pe(Ho))}var Fe=ps(0);function lu(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var oh=[];function wp(){for(var t=0;t<oh.length;t++)oh[t]._workInProgressVersionPrimary=null;oh.length=0}var Tc=fn.ReactCurrentDispatcher,lh=fn.ReactCurrentBatchConfig,Qs=0,Be=null,et=null,st=null,cu=!1,No=!1,qo=0,bN=0;function ht(){throw Error(I(321))}function kp(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Nr(t[r],e[r]))return!1;return!0}function jp(t,e,r,n,a,i){if(Qs=i,Be=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Tc.current=t===null||t.memoizedState===null?NN:_N,t=r(n,a),No){i=0;do{if(No=!1,qo=0,25<=i)throw Error(I(301));i+=1,st=et=null,e.updateQueue=null,Tc.current=SN,t=r(n,a)}while(No)}if(Tc.current=uu,e=et!==null&&et.next!==null,Qs=0,st=et=Be=null,cu=!1,e)throw Error(I(300));return t}function Np(){var t=qo!==0;return qo=0,t}function Ir(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Be.memoizedState=st=t:st=st.next=t,st}function sr(){if(et===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=et.next;var e=st===null?Be.memoizedState:st.next;if(e!==null)st=e,et=t;else{if(t===null)throw Error(I(310));et=t,t={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},st===null?Be.memoizedState=st=t:st=st.next=t}return st}function Go(t,e){return typeof e=="function"?e(t):e}function ch(t){var e=sr(),r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=t;var n=et,a=n.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,n=n.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Qs&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:t(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,o=n):c=c.next=h,Be.lanes|=d,Xs|=d}u=u.next}while(u!==null&&u!==i);c===null?o=n:c.next=l,Nr(n,e.memoizedState)||(Tt=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){a=t;do i=a.lane,Be.lanes|=i,Xs|=i,a=a.next;while(a!==t)}else a===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function uh(t){var e=sr(),r=e.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=t;var n=r.dispatch,a=r.pending,i=e.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=t(i,o.action),o=o.next;while(o!==a);Nr(i,e.memoizedState)||(Tt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function W0(){}function z0(t,e){var r=Be,n=sr(),a=e(),i=!Nr(n.memoizedState,a);if(i&&(n.memoizedState=a,Tt=!0),n=n.queue,_p(q0.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||st!==null&&st.memoizedState.tag&1){if(r.flags|=2048,Ko(9,V0.bind(null,r,n,a,e),void 0,null),at===null)throw Error(I(349));Qs&30||H0(r,e,a)}return a}function H0(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Be.updateQueue,e===null?(e={lastEffect:null,stores:null},Be.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function V0(t,e,r,n){e.value=r,e.getSnapshot=n,G0(e)&&K0(t)}function q0(t,e,r){return r(function(){G0(e)&&K0(t)})}function G0(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Nr(t,r)}catch{return!0}}function K0(t){var e=cn(t,1);e!==null&&jr(e,t,1,-1)}function B1(t){var e=Ir();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:t},e.queue=t,t=t.dispatch=jN.bind(null,Be,t),[e.memoizedState,t]}function Ko(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Be.updateQueue,e===null?(e={lastEffect:null,stores:null},Be.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function Y0(){return sr().memoizedState}function Rc(t,e,r,n){var a=Ir();Be.flags|=t,a.memoizedState=Ko(1|e,r,void 0,n===void 0?null:n)}function Vu(t,e,r,n){var a=sr();n=n===void 0?null:n;var i=void 0;if(et!==null){var o=et.memoizedState;if(i=o.destroy,n!==null&&kp(n,o.deps)){a.memoizedState=Ko(e,r,i,n);return}}Be.flags|=t,a.memoizedState=Ko(1|e,r,i,n)}function U1(t,e){return Rc(8390656,8,t,e)}function _p(t,e){return Vu(2048,8,t,e)}function J0(t,e){return Vu(4,2,t,e)}function Q0(t,e){return Vu(4,4,t,e)}function X0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Z0(t,e,r){return r=r!=null?r.concat([t]):null,Vu(4,4,X0.bind(null,e,t),r)}function Sp(){}function eb(t,e){var r=sr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&kp(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function tb(t,e){var r=sr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&kp(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function rb(t,e,r){return Qs&21?(Nr(r,e)||(r=o0(),Be.lanes|=r,Xs|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Tt=!0),t.memoizedState=r)}function wN(t,e){var r=_e;_e=r!==0&&4>r?r:4,t(!0);var n=lh.transition;lh.transition={};try{t(!1),e()}finally{_e=r,lh.transition=n}}function nb(){return sr().memoizedState}function kN(t,e,r){var n=ts(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},sb(t))ab(e,r);else if(r=F0(t,e,r,n),r!==null){var a=wt();jr(r,t,n,a),ib(r,e,n)}}function jN(t,e,r){var n=ts(t),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(sb(t))ab(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,l=i(o,r);if(a.hasEagerState=!0,a.eagerState=l,Nr(l,o)){var c=e.interleaved;c===null?(a.next=a,xp(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}r=F0(t,e,a,n),r!==null&&(a=wt(),jr(r,t,n,a),ib(r,e,n))}}function sb(t){var e=t.alternate;return t===Be||e!==null&&e===Be}function ab(t,e){No=cu=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function ib(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,np(t,r)}}var uu={readContext:nr,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},NN={readContext:nr,useCallback:function(t,e){return Ir().memoizedState=[t,e===void 0?null:e],t},useContext:nr,useEffect:U1,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Rc(4194308,4,X0.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Rc(4194308,4,t,e)},useInsertionEffect:function(t,e){return Rc(4,2,t,e)},useMemo:function(t,e){var r=Ir();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ir();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=kN.bind(null,Be,t),[n.memoizedState,t]},useRef:function(t){var e=Ir();return t={current:t},e.memoizedState=t},useState:B1,useDebugValue:Sp,useDeferredValue:function(t){return Ir().memoizedState=t},useTransition:function(){var t=B1(!1),e=t[0];return t=wN.bind(null,t[1]),Ir().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Be,a=Ir();if(Me){if(r===void 0)throw Error(I(407));r=r()}else{if(r=e(),at===null)throw Error(I(349));Qs&30||H0(n,e,r)}a.memoizedState=r;var i={value:r,getSnapshot:e};return a.queue=i,U1(q0.bind(null,n,i,t),[t]),n.flags|=2048,Ko(9,V0.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Ir(),e=at.identifierPrefix;if(Me){var r=sn,n=nn;r=(n&~(1<<32-kr(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=qo++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=bN++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},_N={readContext:nr,useCallback:eb,useContext:nr,useEffect:_p,useImperativeHandle:Z0,useInsertionEffect:J0,useLayoutEffect:Q0,useMemo:tb,useReducer:ch,useRef:Y0,useState:function(){return ch(Go)},useDebugValue:Sp,useDeferredValue:function(t){var e=sr();return rb(e,et.memoizedState,t)},useTransition:function(){var t=ch(Go)[0],e=sr().memoizedState;return[t,e]},useMutableSource:W0,useSyncExternalStore:z0,useId:nb,unstable_isNewReconciler:!1},SN={readContext:nr,useCallback:eb,useContext:nr,useEffect:_p,useImperativeHandle:Z0,useInsertionEffect:J0,useLayoutEffect:Q0,useMemo:tb,useReducer:uh,useRef:Y0,useState:function(){return uh(Go)},useDebugValue:Sp,useDeferredValue:function(t){var e=sr();return et===null?e.memoizedState=t:rb(e,et.memoizedState,t)},useTransition:function(){var t=uh(Go)[0],e=sr().memoizedState;return[t,e]},useMutableSource:W0,useSyncExternalStore:z0,useId:nb,unstable_isNewReconciler:!1};function fr(t,e){if(t&&t.defaultProps){e=Ue({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function _f(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Ue({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var qu={isMounted:function(t){return(t=t._reactInternals)?ia(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=wt(),a=ts(t),i=an(n,a);i.payload=e,r!=null&&(i.callback=r),e=Zn(t,i,a),e!==null&&(jr(e,t,a,n),Ec(e,t,a))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=wt(),a=ts(t),i=an(n,a);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Zn(t,i,a),e!==null&&(jr(e,t,a,n),Ec(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=wt(),n=ts(t),a=an(r,n);a.tag=2,e!=null&&(a.callback=e),e=Zn(t,a,n),e!==null&&(jr(e,t,n,r),Ec(e,t,n))}};function W1(t,e,r,n,a,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!Bo(r,n)||!Bo(a,i):!0}function ob(t,e,r){var n=!1,a=cs,i=e.contextType;return typeof i=="object"&&i!==null?i=nr(i):(a=At(e)?Ys:gt.current,n=e.contextTypes,i=(n=n!=null)?vi(t,a):cs),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=qu,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=a,t.__reactInternalMemoizedMaskedChildContext=i),e}function z1(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&qu.enqueueReplaceState(e,e.state,null)}function Sf(t,e,r,n){var a=t.stateNode;a.props=r,a.state=t.memoizedState,a.refs={},yp(t);var i=e.contextType;typeof i=="object"&&i!==null?a.context=nr(i):(i=At(e)?Ys:gt.current,a.context=vi(t,i)),a.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(_f(t,e,i,r),a.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(e=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),e!==a.state&&qu.enqueueReplaceState(a,a.state,null),ou(t,r,a,n),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308)}function ji(t,e){try{var r="",n=e;do r+=ej(n),n=n.return;while(n);var a=r}catch(i){a=`
Error generating stack: `+i.message+`
`+i.stack}return{value:t,source:e,stack:a,digest:null}}function dh(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Cf(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var CN=typeof WeakMap=="function"?WeakMap:Map;function lb(t,e,r){r=an(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){hu||(hu=!0,Df=n),Cf(t,e)},r}function cb(t,e,r){r=an(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var a=e.value;r.payload=function(){return n(a)},r.callback=function(){Cf(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Cf(t,e),typeof n!="function"&&(es===null?es=new Set([this]):es.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function H1(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new CN;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(r)||(a.add(r),t=UN.bind(null,t,e,r),e.then(t,t))}function V1(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function q1(t,e,r,n,a){return t.mode&1?(t.flags|=65536,t.lanes=a,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=an(-1,1),e.tag=2,Zn(r,e,1))),r.lanes|=1),t)}var EN=fn.ReactCurrentOwner,Tt=!1;function vt(t,e,r,n){e.child=t===null?$0(e,null,r,n):wi(e,t.child,r,n)}function G1(t,e,r,n,a){r=r.render;var i=e.ref;return Xa(e,a),n=jp(t,e,r,n,i,a),r=Np(),t!==null&&!Tt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,un(t,e,a)):(Me&&r&&dp(e),e.flags|=1,vt(t,e,n,a),e.child)}function K1(t,e,r,n,a){if(t===null){var i=r.type;return typeof i=="function"&&!Ip(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,ub(t,e,i,n,a)):(t=Ic(r.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Bo,r(o,n)&&t.ref===e.ref)return un(t,e,a)}return e.flags|=1,t=rs(i,n),t.ref=e.ref,t.return=e,e.child=t}function ub(t,e,r,n,a){if(t!==null){var i=t.memoizedProps;if(Bo(i,n)&&t.ref===e.ref)if(Tt=!1,e.pendingProps=n=i,(t.lanes&a)!==0)t.flags&131072&&(Tt=!0);else return e.lanes=t.lanes,un(t,e,a)}return Ef(t,e,r,n,a)}function db(t,e,r){var n=e.pendingProps,a=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Te(Va,It),It|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Te(Va,It),It|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Te(Va,It),It|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,Te(Va,It),It|=n;return vt(t,e,a,r),e.child}function hb(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Ef(t,e,r,n,a){var i=At(r)?Ys:gt.current;return i=vi(e,i),Xa(e,a),r=jp(t,e,r,n,i,a),n=Np(),t!==null&&!Tt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,un(t,e,a)):(Me&&n&&dp(e),e.flags|=1,vt(t,e,r,a),e.child)}function Y1(t,e,r,n,a){if(At(r)){var i=!0;ru(e)}else i=!1;if(Xa(e,a),e.stateNode===null)Ac(t,e),ob(e,r,n),Sf(e,r,n,a),n=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var c=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=nr(u):(u=At(r)?Ys:gt.current,u=vi(e,u));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||c!==u)&&z1(e,o,n,u),Rn=!1;var f=e.memoizedState;o.state=f,ou(e,n,o,a),c=e.memoizedState,l!==n||f!==c||Rt.current||Rn?(typeof d=="function"&&(_f(e,r,d,n),c=e.memoizedState),(l=Rn||W1(e,r,l,n,f,c,u))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),o.props=n,o.state=c,o.context=u,n=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,B0(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:fr(e.type,l),o.props=u,h=e.pendingProps,f=o.context,c=r.contextType,typeof c=="object"&&c!==null?c=nr(c):(c=At(r)?Ys:gt.current,c=vi(e,c));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==c)&&z1(e,o,n,c),Rn=!1,f=e.memoizedState,o.state=f,ou(e,n,o,a);var w=e.memoizedState;l!==h||f!==w||Rt.current||Rn?(typeof m=="function"&&(_f(e,r,m,n),w=e.memoizedState),(u=Rn||W1(e,r,u,n,f,w,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,w,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,w,c)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=w),o.props=n,o.state=w,o.context=c,n=u):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),n=!1)}return Tf(t,e,r,n,i,a)}function Tf(t,e,r,n,a,i){hb(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return a&&I1(e,r,!1),un(t,e,i);n=e.stateNode,EN.current=e;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=wi(e,t.child,null,i),e.child=wi(e,null,l,i)):vt(t,e,l,i),e.memoizedState=n.state,a&&I1(e,r,!0),e.child}function fb(t){var e=t.stateNode;e.pendingContext?O1(t,e.pendingContext,e.pendingContext!==e.context):e.context&&O1(t,e.context,!1),vp(t,e.containerInfo)}function J1(t,e,r,n,a){return bi(),fp(a),e.flags|=256,vt(t,e,r,n),e.child}var Rf={dehydrated:null,treeContext:null,retryLane:0};function Af(t){return{baseLanes:t,cachePool:null,transitions:null}}function mb(t,e,r){var n=e.pendingProps,a=Fe.current,i=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(a&2)!==0),l?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(a|=1),Te(Fe,a&1),t===null)return jf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,i?(n=e.mode,i=e.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Yu(o,n,0,null),t=Gs(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Af(r),e.memoizedState=Rf,t):Cp(e,o));if(a=t.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return TN(t,e,o,n,l,a,r);if(i){i=n.fallback,o=e.mode,a=t.child,l=a.sibling;var c={mode:"hidden",children:n.children};return!(o&1)&&e.child!==a?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=rs(a,c),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=rs(l,i):(i=Gs(i,o,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,o=t.child.memoizedState,o=o===null?Af(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~r,e.memoizedState=Rf,n}return i=t.child,t=i.sibling,n=rs(i,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Cp(t,e){return e=Yu({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function nc(t,e,r,n){return n!==null&&fp(n),wi(e,t.child,null,r),t=Cp(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function TN(t,e,r,n,a,i,o){if(r)return e.flags&256?(e.flags&=-257,n=dh(Error(I(422))),nc(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,a=e.mode,n=Yu({mode:"visible",children:n.children},a,0,null),i=Gs(i,a,o,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,e.mode&1&&wi(e,t.child,null,o),e.child.memoizedState=Af(o),e.memoizedState=Rf,i);if(!(e.mode&1))return nc(t,e,o,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(I(419)),n=dh(i,n,void 0),nc(t,e,o,n)}if(l=(o&t.childLanes)!==0,Tt||l){if(n=at,n!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,cn(t,a),jr(n,t,a,-1))}return Op(),n=dh(Error(I(421))),nc(t,e,o,n)}return a.data==="$?"?(e.flags|=128,e.child=t.child,e=WN.bind(null,t),a._reactRetry=e,null):(t=i.treeContext,Ft=Xn(a.nextSibling),Bt=e,Me=!0,vr=null,t!==null&&(Xt[Zt++]=nn,Xt[Zt++]=sn,Xt[Zt++]=Js,nn=t.id,sn=t.overflow,Js=e),e=Cp(e,n.children),e.flags|=4096,e)}function Q1(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Nf(t.return,e,r)}function hh(t,e,r,n,a){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function pb(t,e,r){var n=e.pendingProps,a=n.revealOrder,i=n.tail;if(vt(t,e,n.children,r),n=Fe.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Q1(t,r,e);else if(t.tag===19)Q1(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Te(Fe,n),!(e.mode&1))e.memoizedState=null;else switch(a){case"forwards":for(r=e.child,a=null;r!==null;)t=r.alternate,t!==null&&lu(t)===null&&(a=r),r=r.sibling;r=a,r===null?(a=e.child,e.child=null):(a=r.sibling,r.sibling=null),hh(e,!1,a,r,i);break;case"backwards":for(r=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&lu(t)===null){e.child=a;break}t=a.sibling,a.sibling=r,r=a,a=t}hh(e,!0,r,null,i);break;case"together":hh(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ac(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function un(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Xs|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(I(153));if(e.child!==null){for(t=e.child,r=rs(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=rs(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function RN(t,e,r){switch(e.tag){case 3:fb(e),bi();break;case 5:U0(e);break;case 1:At(e.type)&&ru(e);break;case 4:vp(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,a=e.memoizedProps.value;Te(au,n._currentValue),n._currentValue=a;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Te(Fe,Fe.current&1),e.flags|=128,null):r&e.child.childLanes?mb(t,e,r):(Te(Fe,Fe.current&1),t=un(t,e,r),t!==null?t.sibling:null);Te(Fe,Fe.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return pb(t,e,r);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Te(Fe,Fe.current),n)break;return null;case 22:case 23:return e.lanes=0,db(t,e,r)}return un(t,e,r)}var gb,Pf,xb,yb;gb=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Pf=function(){};xb=function(t,e,r,n){var a=t.memoizedProps;if(a!==n){t=e.stateNode,Os(Wr.current);var i=null;switch(r){case"input":a=Zh(t,a),n=Zh(t,n),i=[];break;case"select":a=Ue({},a,{value:void 0}),n=Ue({},n,{value:void 0}),i=[];break;case"textarea":a=rf(t,a),n=rf(t,n),i=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=eu)}sf(r,n);var o;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Oo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(i||(i=[]),i.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Oo.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ae("scroll",t),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};yb=function(t,e,r,n){r!==n&&(e.flags|=4)};function Zi(t,e){if(!Me)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function ft(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var a=t.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function AN(t,e,r){var n=e.pendingProps;switch(hp(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(e),null;case 1:return At(e.type)&&tu(),ft(e),null;case 3:return n=e.stateNode,ki(),Pe(Rt),Pe(gt),wp(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(tc(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,vr!==null&&(Bf(vr),vr=null))),Pf(t,e),ft(e),null;case 5:bp(e);var a=Os(Vo.current);if(r=e.type,t!==null&&e.stateNode!=null)xb(t,e,r,n,a),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(I(166));return ft(e),null}if(t=Os(Wr.current),tc(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[$r]=e,n[zo]=i,t=(e.mode&1)!==0,r){case"dialog":Ae("cancel",n),Ae("close",n);break;case"iframe":case"object":case"embed":Ae("load",n);break;case"video":case"audio":for(a=0;a<mo.length;a++)Ae(mo[a],n);break;case"source":Ae("error",n);break;case"img":case"image":case"link":Ae("error",n),Ae("load",n);break;case"details":Ae("toggle",n);break;case"input":i1(n,i),Ae("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Ae("invalid",n);break;case"textarea":l1(n,i),Ae("invalid",n)}sf(r,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?n.textContent!==l&&(i.suppressHydrationWarning!==!0&&ec(n.textContent,l,t),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ec(n.textContent,l,t),a=["children",""+l]):Oo.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Ae("scroll",n)}switch(r){case"input":ql(n),o1(n,i,!0);break;case"textarea":ql(n),c1(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=eu)}n=a,e.updateQueue=n,n!==null&&(e.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=qv(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[$r]=e,t[zo]=n,gb(t,e,!1,!1),e.stateNode=t;e:{switch(o=af(r,n),r){case"dialog":Ae("cancel",t),Ae("close",t),a=n;break;case"iframe":case"object":case"embed":Ae("load",t),a=n;break;case"video":case"audio":for(a=0;a<mo.length;a++)Ae(mo[a],t);a=n;break;case"source":Ae("error",t),a=n;break;case"img":case"image":case"link":Ae("error",t),Ae("load",t),a=n;break;case"details":Ae("toggle",t),a=n;break;case"input":i1(t,n),a=Zh(t,n),Ae("invalid",t);break;case"option":a=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},a=Ue({},n,{value:void 0}),Ae("invalid",t);break;case"textarea":l1(t,n),a=rf(t,n),Ae("invalid",t);break;default:a=n}sf(r,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?Yv(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Gv(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Io(t,c):typeof c=="number"&&Io(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Oo.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Ae("scroll",t):c!=null&&Qm(t,i,c,o))}switch(r){case"input":ql(t),o1(t,n,!1);break;case"textarea":ql(t),c1(t);break;case"option":n.value!=null&&t.setAttribute("value",""+ls(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?Ka(t,!!n.multiple,i,!1):n.defaultValue!=null&&Ka(t,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(t.onclick=eu)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return ft(e),null;case 6:if(t&&e.stateNode!=null)yb(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(I(166));if(r=Os(Vo.current),Os(Wr.current),tc(e)){if(n=e.stateNode,r=e.memoizedProps,n[$r]=e,(i=n.nodeValue!==r)&&(t=Bt,t!==null))switch(t.tag){case 3:ec(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&ec(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[$r]=e,e.stateNode=n}return ft(e),null;case 13:if(Pe(Fe),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Me&&Ft!==null&&e.mode&1&&!(e.flags&128))L0(),bi(),e.flags|=98560,i=!1;else if(i=tc(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(I(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(I(317));i[$r]=e}else bi(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ft(e),i=!1}else vr!==null&&(Bf(vr),vr=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||Fe.current&1?rt===0&&(rt=3):Op())),e.updateQueue!==null&&(e.flags|=4),ft(e),null);case 4:return ki(),Pf(t,e),t===null&&Uo(e.stateNode.containerInfo),ft(e),null;case 10:return gp(e.type._context),ft(e),null;case 17:return At(e.type)&&tu(),ft(e),null;case 19:if(Pe(Fe),i=e.memoizedState,i===null)return ft(e),null;if(n=(e.flags&128)!==0,o=i.rendering,o===null)if(n)Zi(i,!1);else{if(rt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=lu(t),o!==null){for(e.flags|=128,Zi(i,!1),n=o.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Te(Fe,Fe.current&1|2),e.child}t=t.sibling}i.tail!==null&&Ge()>Ni&&(e.flags|=128,n=!0,Zi(i,!1),e.lanes=4194304)}else{if(!n)if(t=lu(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Me)return ft(e),null}else 2*Ge()-i.renderingStartTime>Ni&&r!==1073741824&&(e.flags|=128,n=!0,Zi(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ge(),e.sibling=null,r=Fe.current,Te(Fe,n?r&1|2:r&1),e):(ft(e),null);case 22:case 23:return Pp(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?It&1073741824&&(ft(e),e.subtreeFlags&6&&(e.flags|=8192)):ft(e),null;case 24:return null;case 25:return null}throw Error(I(156,e.tag))}function PN(t,e){switch(hp(e),e.tag){case 1:return At(e.type)&&tu(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ki(),Pe(Rt),Pe(gt),wp(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return bp(e),null;case 13:if(Pe(Fe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(I(340));bi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Pe(Fe),null;case 4:return ki(),null;case 10:return gp(e.type._context),null;case 22:case 23:return Pp(),null;case 24:return null;default:return null}}var sc=!1,pt=!1,ON=typeof WeakSet=="function"?WeakSet:Set,U=null;function Ha(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){qe(t,e,n)}else r.current=null}function Of(t,e,r){try{r()}catch(n){qe(t,e,n)}}var X1=!1;function IN(t,e){if(gf=Qc,t=j0(),up(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=t,f=null;t:for(;;){for(var m;h!==r||a!==0&&h.nodeType!==3||(l=o+a),h!==i||n!==0&&h.nodeType!==3||(c=o+n),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===t)break t;if(f===r&&++u===a&&(l=o),f===i&&++d===n&&(c=o),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(xf={focusedElem:t,selectionRange:r},Qc=!1,U=e;U!==null;)if(e=U,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,U=t;else for(;U!==null;){e=U;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,y=w.memoizedState,x=e.stateNode,v=x.getSnapshotBeforeUpdate(e.elementType===e.type?g:fr(e.type,g),y);x.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(k){qe(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,U=t;break}U=e.return}return w=X1,X1=!1,w}function _o(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&t)===t){var i=a.destroy;a.destroy=void 0,i!==void 0&&Of(e,r,i)}a=a.next}while(a!==n)}}function Gu(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function If(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function vb(t){var e=t.alternate;e!==null&&(t.alternate=null,vb(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[$r],delete e[zo],delete e[bf],delete e[gN],delete e[xN])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function bb(t){return t.tag===5||t.tag===3||t.tag===4}function Z1(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||bb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Mf(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=eu));else if(n!==4&&(t=t.child,t!==null))for(Mf(t,e,r),t=t.sibling;t!==null;)Mf(t,e,r),t=t.sibling}function Lf(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(Lf(t,e,r),t=t.sibling;t!==null;)Lf(t,e,r),t=t.sibling}var lt=null,xr=!1;function kn(t,e,r){for(r=r.child;r!==null;)wb(t,e,r),r=r.sibling}function wb(t,e,r){if(Ur&&typeof Ur.onCommitFiberUnmount=="function")try{Ur.onCommitFiberUnmount(Fu,r)}catch{}switch(r.tag){case 5:pt||Ha(r,e);case 6:var n=lt,a=xr;lt=null,kn(t,e,r),lt=n,xr=a,lt!==null&&(xr?(t=lt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):lt.removeChild(r.stateNode));break;case 18:lt!==null&&(xr?(t=lt,r=r.stateNode,t.nodeType===8?ah(t.parentNode,r):t.nodeType===1&&ah(t,r),$o(t)):ah(lt,r.stateNode));break;case 4:n=lt,a=xr,lt=r.stateNode.containerInfo,xr=!0,kn(t,e,r),lt=n,xr=a;break;case 0:case 11:case 14:case 15:if(!pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Of(r,e,o),a=a.next}while(a!==n)}kn(t,e,r);break;case 1:if(!pt&&(Ha(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){qe(r,e,l)}kn(t,e,r);break;case 21:kn(t,e,r);break;case 22:r.mode&1?(pt=(n=pt)||r.memoizedState!==null,kn(t,e,r),pt=n):kn(t,e,r);break;default:kn(t,e,r)}}function ex(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new ON),e.forEach(function(n){var a=zN.bind(null,t,n);r.has(n)||(r.add(n),n.then(a,a))})}}function ur(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var i=t,o=e,l=o;e:for(;l!==null;){switch(l.tag){case 5:lt=l.stateNode,xr=!1;break e;case 3:lt=l.stateNode.containerInfo,xr=!0;break e;case 4:lt=l.stateNode.containerInfo,xr=!0;break e}l=l.return}if(lt===null)throw Error(I(160));wb(i,o,a),lt=null,xr=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){qe(a,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)kb(e,t),e=e.sibling}function kb(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(ur(e,t),Or(t),n&4){try{_o(3,t,t.return),Gu(3,t)}catch(g){qe(t,t.return,g)}try{_o(5,t,t.return)}catch(g){qe(t,t.return,g)}}break;case 1:ur(e,t),Or(t),n&512&&r!==null&&Ha(r,r.return);break;case 5:if(ur(e,t),Or(t),n&512&&r!==null&&Ha(r,r.return),t.flags&32){var a=t.stateNode;try{Io(a,"")}catch(g){qe(t,t.return,g)}}if(n&4&&(a=t.stateNode,a!=null)){var i=t.memoizedProps,o=r!==null?r.memoizedProps:i,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Hv(a,i),af(l,o);var u=af(l,i);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];d==="style"?Yv(a,h):d==="dangerouslySetInnerHTML"?Gv(a,h):d==="children"?Io(a,h):Qm(a,d,h,u)}switch(l){case"input":ef(a,i);break;case"textarea":Vv(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?Ka(a,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?Ka(a,!!i.multiple,i.defaultValue,!0):Ka(a,!!i.multiple,i.multiple?[]:"",!1))}a[zo]=i}catch(g){qe(t,t.return,g)}}break;case 6:if(ur(e,t),Or(t),n&4){if(t.stateNode===null)throw Error(I(162));a=t.stateNode,i=t.memoizedProps;try{a.nodeValue=i}catch(g){qe(t,t.return,g)}}break;case 3:if(ur(e,t),Or(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{$o(e.containerInfo)}catch(g){qe(t,t.return,g)}break;case 4:ur(e,t),Or(t);break;case 13:ur(e,t),Or(t),a=t.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(Rp=Ge())),n&4&&ex(t);break;case 22:if(d=r!==null&&r.memoizedState!==null,t.mode&1?(pt=(u=pt)||d,ur(e,t),pt=u):ur(e,t),Or(t),n&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(U=t,d=t.child;d!==null;){for(h=U=d;U!==null;){switch(f=U,m=f.child,f.tag){case 0:case 11:case 14:case 15:_o(4,f,f.return);break;case 1:Ha(f,f.return);var w=f.stateNode;if(typeof w.componentWillUnmount=="function"){n=f,r=f.return;try{e=n,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(g){qe(n,r,g)}}break;case 5:Ha(f,f.return);break;case 22:if(f.memoizedState!==null){rx(h);continue}}m!==null?(m.return=f,U=m):rx(h)}d=d.sibling}e:for(d=null,h=t;;){if(h.tag===5){if(d===null){d=h;try{a=h.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Kv("display",o))}catch(g){qe(t,t.return,g)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){qe(t,t.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ur(e,t),Or(t),n&4&&ex(t);break;case 21:break;default:ur(e,t),Or(t)}}function Or(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(bb(r)){var n=r;break e}r=r.return}throw Error(I(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Io(a,""),n.flags&=-33);var i=Z1(t);Lf(t,i,a);break;case 3:case 4:var o=n.stateNode.containerInfo,l=Z1(t);Mf(t,l,o);break;default:throw Error(I(161))}}catch(c){qe(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function MN(t,e,r){U=t,jb(t)}function jb(t,e,r){for(var n=(t.mode&1)!==0;U!==null;){var a=U,i=a.child;if(a.tag===22&&n){var o=a.memoizedState!==null||sc;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||pt;l=sc;var u=pt;if(sc=o,(pt=c)&&!u)for(U=a;U!==null;)o=U,c=o.child,o.tag===22&&o.memoizedState!==null?nx(a):c!==null?(c.return=o,U=c):nx(a);for(;i!==null;)U=i,jb(i),i=i.sibling;U=a,sc=l,pt=u}tx(t)}else a.subtreeFlags&8772&&i!==null?(i.return=a,U=i):tx(t)}}function tx(t){for(;U!==null;){var e=U;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:pt||Gu(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!pt)if(r===null)n.componentDidMount();else{var a=e.elementType===e.type?r.memoizedProps:fr(e.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&F1(e,i,n);break;case 3:var o=e.updateQueue;if(o!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}F1(e,o,r)}break;case 5:var l=e.stateNode;if(r===null&&e.flags&4){r=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&$o(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}pt||e.flags&512&&If(e)}catch(f){qe(e,e.return,f)}}if(e===t){U=null;break}if(r=e.sibling,r!==null){r.return=e.return,U=r;break}U=e.return}}function rx(t){for(;U!==null;){var e=U;if(e===t){U=null;break}var r=e.sibling;if(r!==null){r.return=e.return,U=r;break}U=e.return}}function nx(t){for(;U!==null;){var e=U;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Gu(4,e)}catch(c){qe(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var a=e.return;try{n.componentDidMount()}catch(c){qe(e,a,c)}}var i=e.return;try{If(e)}catch(c){qe(e,i,c)}break;case 5:var o=e.return;try{If(e)}catch(c){qe(e,o,c)}}}catch(c){qe(e,e.return,c)}if(e===t){U=null;break}var l=e.sibling;if(l!==null){l.return=e.return,U=l;break}U=e.return}}var LN=Math.ceil,du=fn.ReactCurrentDispatcher,Ep=fn.ReactCurrentOwner,tr=fn.ReactCurrentBatchConfig,ye=0,at=null,Je=null,ut=0,It=0,Va=ps(0),rt=0,Yo=null,Xs=0,Ku=0,Tp=0,So=null,Et=null,Rp=0,Ni=1/0,Zr=null,hu=!1,Df=null,es=null,ac=!1,qn=null,fu=0,Co=0,$f=null,Pc=-1,Oc=0;function wt(){return ye&6?Ge():Pc!==-1?Pc:Pc=Ge()}function ts(t){return t.mode&1?ye&2&&ut!==0?ut&-ut:vN.transition!==null?(Oc===0&&(Oc=o0()),Oc):(t=_e,t!==0||(t=window.event,t=t===void 0?16:m0(t.type)),t):1}function jr(t,e,r,n){if(50<Co)throw Co=0,$f=null,Error(I(185));wl(t,r,n),(!(ye&2)||t!==at)&&(t===at&&(!(ye&2)&&(Ku|=r),rt===4&&In(t,ut)),Pt(t,n),r===1&&ye===0&&!(e.mode&1)&&(Ni=Ge()+500,Hu&&gs()))}function Pt(t,e){var r=t.callbackNode;vj(t,e);var n=Jc(t,t===at?ut:0);if(n===0)r!==null&&h1(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&h1(r),e===1)t.tag===0?yN(sx.bind(null,t)):O0(sx.bind(null,t)),mN(function(){!(ye&6)&&gs()}),r=null;else{switch(l0(n)){case 1:r=rp;break;case 4:r=a0;break;case 16:r=Yc;break;case 536870912:r=i0;break;default:r=Yc}r=Ab(r,Nb.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Nb(t,e){if(Pc=-1,Oc=0,ye&6)throw Error(I(327));var r=t.callbackNode;if(Za()&&t.callbackNode!==r)return null;var n=Jc(t,t===at?ut:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=mu(t,n);else{e=n;var a=ye;ye|=2;var i=Sb();(at!==t||ut!==e)&&(Zr=null,Ni=Ge()+500,qs(t,e));do try{FN();break}catch(l){_b(t,l)}while(!0);pp(),du.current=i,ye=a,Je!==null?e=0:(at=null,ut=0,e=rt)}if(e!==0){if(e===2&&(a=df(t),a!==0&&(n=a,e=Ff(t,a))),e===1)throw r=Yo,qs(t,0),In(t,n),Pt(t,Ge()),r;if(e===6)In(t,n);else{if(a=t.current.alternate,!(n&30)&&!DN(a)&&(e=mu(t,n),e===2&&(i=df(t),i!==0&&(n=i,e=Ff(t,i))),e===1))throw r=Yo,qs(t,0),In(t,n),Pt(t,Ge()),r;switch(t.finishedWork=a,t.finishedLanes=n,e){case 0:case 1:throw Error(I(345));case 2:Ss(t,Et,Zr);break;case 3:if(In(t,n),(n&130023424)===n&&(e=Rp+500-Ge(),10<e)){if(Jc(t,0)!==0)break;if(a=t.suspendedLanes,(a&n)!==n){wt(),t.pingedLanes|=t.suspendedLanes&a;break}t.timeoutHandle=vf(Ss.bind(null,t,Et,Zr),e);break}Ss(t,Et,Zr);break;case 4:if(In(t,n),(n&4194240)===n)break;for(e=t.eventTimes,a=-1;0<n;){var o=31-kr(n);i=1<<o,o=e[o],o>a&&(a=o),n&=~i}if(n=a,n=Ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*LN(n/1960))-n,10<n){t.timeoutHandle=vf(Ss.bind(null,t,Et,Zr),n);break}Ss(t,Et,Zr);break;case 5:Ss(t,Et,Zr);break;default:throw Error(I(329))}}}return Pt(t,Ge()),t.callbackNode===r?Nb.bind(null,t):null}function Ff(t,e){var r=So;return t.current.memoizedState.isDehydrated&&(qs(t,e).flags|=256),t=mu(t,e),t!==2&&(e=Et,Et=r,e!==null&&Bf(e)),t}function Bf(t){Et===null?Et=t:Et.push.apply(Et,t)}function DN(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!Nr(i(),a))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function In(t,e){for(e&=~Tp,e&=~Ku,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-kr(e),n=1<<r;t[r]=-1,e&=~n}}function sx(t){if(ye&6)throw Error(I(327));Za();var e=Jc(t,0);if(!(e&1))return Pt(t,Ge()),null;var r=mu(t,e);if(t.tag!==0&&r===2){var n=df(t);n!==0&&(e=n,r=Ff(t,n))}if(r===1)throw r=Yo,qs(t,0),In(t,e),Pt(t,Ge()),r;if(r===6)throw Error(I(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ss(t,Et,Zr),Pt(t,Ge()),null}function Ap(t,e){var r=ye;ye|=1;try{return t(e)}finally{ye=r,ye===0&&(Ni=Ge()+500,Hu&&gs())}}function Zs(t){qn!==null&&qn.tag===0&&!(ye&6)&&Za();var e=ye;ye|=1;var r=tr.transition,n=_e;try{if(tr.transition=null,_e=1,t)return t()}finally{_e=n,tr.transition=r,ye=e,!(ye&6)&&gs()}}function Pp(){It=Va.current,Pe(Va)}function qs(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,fN(r)),Je!==null)for(r=Je.return;r!==null;){var n=r;switch(hp(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&tu();break;case 3:ki(),Pe(Rt),Pe(gt),wp();break;case 5:bp(n);break;case 4:ki();break;case 13:Pe(Fe);break;case 19:Pe(Fe);break;case 10:gp(n.type._context);break;case 22:case 23:Pp()}r=r.return}if(at=t,Je=t=rs(t.current,null),ut=It=e,rt=0,Yo=null,Tp=Ku=Xs=0,Et=So=null,Ps!==null){for(e=0;e<Ps.length;e++)if(r=Ps[e],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=a,n.next=o}r.pending=n}Ps=null}return t}function _b(t,e){do{var r=Je;try{if(pp(),Tc.current=uu,cu){for(var n=Be.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}cu=!1}if(Qs=0,st=et=Be=null,No=!1,qo=0,Ep.current=null,r===null||r.return===null){rt=1,Yo=e,Je=null;break}e:{var i=t,o=r.return,l=r,c=e;if(e=ut,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=V1(o);if(m!==null){m.flags&=-257,q1(m,o,l,i,e),m.mode&1&&H1(i,u,e),e=m,c=u;var w=e.updateQueue;if(w===null){var g=new Set;g.add(c),e.updateQueue=g}else w.add(c);break e}else{if(!(e&1)){H1(i,u,e),Op();break e}c=Error(I(426))}}else if(Me&&l.mode&1){var y=V1(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),q1(y,o,l,i,e),fp(ji(c,l));break e}}i=c=ji(c,l),rt!==4&&(rt=2),So===null?So=[i]:So.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var x=lb(i,c,e);$1(i,x);break e;case 1:l=c;var v=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(es===null||!es.has(b)))){i.flags|=65536,e&=-e,i.lanes|=e;var k=cb(i,l,e);$1(i,k);break e}}i=i.return}while(i!==null)}Eb(r)}catch(j){e=j,Je===r&&r!==null&&(Je=r=r.return);continue}break}while(!0)}function Sb(){var t=du.current;return du.current=uu,t===null?uu:t}function Op(){(rt===0||rt===3||rt===2)&&(rt=4),at===null||!(Xs&268435455)&&!(Ku&268435455)||In(at,ut)}function mu(t,e){var r=ye;ye|=2;var n=Sb();(at!==t||ut!==e)&&(Zr=null,qs(t,e));do try{$N();break}catch(a){_b(t,a)}while(!0);if(pp(),ye=r,du.current=n,Je!==null)throw Error(I(261));return at=null,ut=0,rt}function $N(){for(;Je!==null;)Cb(Je)}function FN(){for(;Je!==null&&!uj();)Cb(Je)}function Cb(t){var e=Rb(t.alternate,t,It);t.memoizedProps=t.pendingProps,e===null?Eb(t):Je=e,Ep.current=null}function Eb(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=PN(r,e),r!==null){r.flags&=32767,Je=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{rt=6,Je=null;return}}else if(r=AN(r,e,It),r!==null){Je=r;return}if(e=e.sibling,e!==null){Je=e;return}Je=e=t}while(e!==null);rt===0&&(rt=5)}function Ss(t,e,r){var n=_e,a=tr.transition;try{tr.transition=null,_e=1,BN(t,e,r,n)}finally{tr.transition=a,_e=n}return null}function BN(t,e,r,n){do Za();while(qn!==null);if(ye&6)throw Error(I(327));r=t.finishedWork;var a=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(I(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(bj(t,i),t===at&&(Je=at=null,ut=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ac||(ac=!0,Ab(Yc,function(){return Za(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=tr.transition,tr.transition=null;var o=_e;_e=1;var l=ye;ye|=4,Ep.current=null,IN(t,r),kb(r,t),iN(xf),Qc=!!gf,xf=gf=null,t.current=r,MN(r),dj(),ye=l,_e=o,tr.transition=i}else t.current=r;if(ac&&(ac=!1,qn=t,fu=a),i=t.pendingLanes,i===0&&(es=null),mj(r.stateNode),Pt(t,Ge()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)a=e[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(hu)throw hu=!1,t=Df,Df=null,t;return fu&1&&t.tag!==0&&Za(),i=t.pendingLanes,i&1?t===$f?Co++:(Co=0,$f=t):Co=0,gs(),null}function Za(){if(qn!==null){var t=l0(fu),e=tr.transition,r=_e;try{if(tr.transition=null,_e=16>t?16:t,qn===null)var n=!1;else{if(t=qn,qn=null,fu=0,ye&6)throw Error(I(331));var a=ye;for(ye|=4,U=t.current;U!==null;){var i=U,o=i.child;if(U.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(U=u;U!==null;){var d=U;switch(d.tag){case 0:case 11:case 15:_o(8,d,i)}var h=d.child;if(h!==null)h.return=d,U=h;else for(;U!==null;){d=U;var f=d.sibling,m=d.return;if(vb(d),d===u){U=null;break}if(f!==null){f.return=m,U=f;break}U=m}}}var w=i.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}U=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,U=o;else e:for(;U!==null;){if(i=U,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_o(9,i,i.return)}var x=i.sibling;if(x!==null){x.return=i.return,U=x;break e}U=i.return}}var v=t.current;for(U=v;U!==null;){o=U;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,U=b;else e:for(o=v;U!==null;){if(l=U,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Gu(9,l)}}catch(j){qe(l,l.return,j)}if(l===o){U=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,U=k;break e}U=l.return}}if(ye=a,gs(),Ur&&typeof Ur.onPostCommitFiberRoot=="function")try{Ur.onPostCommitFiberRoot(Fu,t)}catch{}n=!0}return n}finally{_e=r,tr.transition=e}}return!1}function ax(t,e,r){e=ji(r,e),e=lb(t,e,1),t=Zn(t,e,1),e=wt(),t!==null&&(wl(t,1,e),Pt(t,e))}function qe(t,e,r){if(t.tag===3)ax(t,t,r);else for(;e!==null;){if(e.tag===3){ax(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(es===null||!es.has(n))){t=ji(r,t),t=cb(e,t,1),e=Zn(e,t,1),t=wt(),e!==null&&(wl(e,1,t),Pt(e,t));break}}e=e.return}}function UN(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=wt(),t.pingedLanes|=t.suspendedLanes&r,at===t&&(ut&r)===r&&(rt===4||rt===3&&(ut&130023424)===ut&&500>Ge()-Rp?qs(t,0):Tp|=r),Pt(t,e)}function Tb(t,e){e===0&&(t.mode&1?(e=Yl,Yl<<=1,!(Yl&130023424)&&(Yl=4194304)):e=1);var r=wt();t=cn(t,e),t!==null&&(wl(t,e,r),Pt(t,r))}function WN(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Tb(t,r)}function zN(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(I(314))}n!==null&&n.delete(e),Tb(t,r)}var Rb;Rb=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Rt.current)Tt=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Tt=!1,RN(t,e,r);Tt=!!(t.flags&131072)}else Tt=!1,Me&&e.flags&1048576&&I0(e,su,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Ac(t,e),t=e.pendingProps;var a=vi(e,gt.current);Xa(e,r),a=jp(null,e,n,t,a,r);var i=Np();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,At(n)?(i=!0,ru(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,yp(e),a.updater=qu,e.stateNode=a,a._reactInternals=e,Sf(e,n,t,r),e=Tf(null,e,n,!0,i,r)):(e.tag=0,Me&&i&&dp(e),vt(null,e,a,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Ac(t,e),t=e.pendingProps,a=n._init,n=a(n._payload),e.type=n,a=e.tag=VN(n),t=fr(n,t),a){case 0:e=Ef(null,e,n,t,r);break e;case 1:e=Y1(null,e,n,t,r);break e;case 11:e=G1(null,e,n,t,r);break e;case 14:e=K1(null,e,n,fr(n.type,t),r);break e}throw Error(I(306,n,""))}return e;case 0:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:fr(n,a),Ef(t,e,n,a,r);case 1:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:fr(n,a),Y1(t,e,n,a,r);case 3:e:{if(fb(e),t===null)throw Error(I(387));n=e.pendingProps,i=e.memoizedState,a=i.element,B0(t,e),ou(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=ji(Error(I(423)),e),e=J1(t,e,n,r,a);break e}else if(n!==a){a=ji(Error(I(424)),e),e=J1(t,e,n,r,a);break e}else for(Ft=Xn(e.stateNode.containerInfo.firstChild),Bt=e,Me=!0,vr=null,r=$0(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(bi(),n===a){e=un(t,e,r);break e}vt(t,e,n,r)}e=e.child}return e;case 5:return U0(e),t===null&&jf(e),n=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,o=a.children,yf(n,a)?o=null:i!==null&&yf(n,i)&&(e.flags|=32),hb(t,e),vt(t,e,o,r),e.child;case 6:return t===null&&jf(e),null;case 13:return mb(t,e,r);case 4:return vp(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=wi(e,null,n,r):vt(t,e,n,r),e.child;case 11:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:fr(n,a),G1(t,e,n,a,r);case 7:return vt(t,e,e.pendingProps,r),e.child;case 8:return vt(t,e,e.pendingProps.children,r),e.child;case 12:return vt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,Te(au,n._currentValue),n._currentValue=o,i!==null)if(Nr(i.value,o)){if(i.children===a.children&&!Rt.current){e=un(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=an(-1,r&-r),c.tag=2;var u=i.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}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Nf(i.return,r,e),l.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(I(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Nf(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}vt(t,e,a.children,r),e=e.child}return e;case 9:return a=e.type,n=e.pendingProps.children,Xa(e,r),a=nr(a),n=n(a),e.flags|=1,vt(t,e,n,r),e.child;case 14:return n=e.type,a=fr(n,e.pendingProps),a=fr(n.type,a),K1(t,e,n,a,r);case 15:return ub(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:fr(n,a),Ac(t,e),e.tag=1,At(n)?(t=!0,ru(e)):t=!1,Xa(e,r),ob(e,n,a),Sf(e,n,a,r),Tf(null,e,n,!0,t,r);case 19:return pb(t,e,r);case 22:return db(t,e,r)}throw Error(I(156,e.tag))};function Ab(t,e){return s0(t,e)}function HN(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(t,e,r,n){return new HN(t,e,r,n)}function Ip(t){return t=t.prototype,!(!t||!t.isReactComponent)}function VN(t){if(typeof t=="function")return Ip(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Zm)return 11;if(t===ep)return 14}return 2}function rs(t,e){var r=t.alternate;return r===null?(r=er(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Ic(t,e,r,n,a,i){var o=2;if(n=t,typeof t=="function")Ip(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ma:return Gs(r.children,a,i,e);case Xm:o=8,a|=8;break;case Yh:return t=er(12,r,e,a|2),t.elementType=Yh,t.lanes=i,t;case Jh:return t=er(13,r,e,a),t.elementType=Jh,t.lanes=i,t;case Qh:return t=er(19,r,e,a),t.elementType=Qh,t.lanes=i,t;case Uv:return Yu(r,a,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Fv:o=10;break e;case Bv:o=9;break e;case Zm:o=11;break e;case ep:o=14;break e;case Tn:o=16,n=null;break e}throw Error(I(130,t==null?t:typeof t,""))}return e=er(o,r,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function Gs(t,e,r,n){return t=er(7,t,n,e),t.lanes=r,t}function Yu(t,e,r,n){return t=er(22,t,n,e),t.elementType=Uv,t.lanes=r,t.stateNode={isHidden:!1},t}function fh(t,e,r){return t=er(6,t,null,e),t.lanes=r,t}function mh(t,e,r){return e=er(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function qN(t,e,r,n,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kd(0),this.expirationTimes=Kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kd(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Mp(t,e,r,n,a,i,o,l,c){return t=new qN(t,e,r,l,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=er(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},yp(i),t}function GN(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ia,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function Pb(t){if(!t)return cs;t=t._reactInternals;e:{if(ia(t)!==t||t.tag!==1)throw Error(I(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(At(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(I(171))}if(t.tag===1){var r=t.type;if(At(r))return P0(t,r,e)}return e}function Ob(t,e,r,n,a,i,o,l,c){return t=Mp(r,n,!0,t,a,i,o,l,c),t.context=Pb(null),r=t.current,n=wt(),a=ts(r),i=an(n,a),i.callback=e??null,Zn(r,i,a),t.current.lanes=a,wl(t,a,n),Pt(t,n),t}function Ju(t,e,r,n){var a=e.current,i=wt(),o=ts(a);return r=Pb(r),e.context===null?e.context=r:e.pendingContext=r,e=an(i,o),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Zn(a,e,o),t!==null&&(jr(t,a,o,i),Ec(t,a,o)),o}function pu(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function ix(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function Lp(t,e){ix(t,e),(t=t.alternate)&&ix(t,e)}function KN(){return null}var Ib=typeof reportError=="function"?reportError:function(t){console.error(t)};function Dp(t){this._internalRoot=t}Qu.prototype.render=Dp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(I(409));Ju(t,e,null,null)};Qu.prototype.unmount=Dp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Zs(function(){Ju(null,t,null,null)}),e[ln]=null}};function Qu(t){this._internalRoot=t}Qu.prototype.unstable_scheduleHydration=function(t){if(t){var e=d0();t={blockedOn:null,target:t,priority:e};for(var r=0;r<On.length&&e!==0&&e<On[r].priority;r++);On.splice(r,0,t),r===0&&f0(t)}};function $p(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Xu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function ox(){}function YN(t,e,r,n,a){if(a){if(typeof n=="function"){var i=n;n=function(){var u=pu(o);i.call(u)}}var o=Ob(e,n,t,0,null,!1,!1,"",ox);return t._reactRootContainer=o,t[ln]=o.current,Uo(t.nodeType===8?t.parentNode:t),Zs(),o}for(;a=t.lastChild;)t.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var u=pu(c);l.call(u)}}var c=Mp(t,0,!1,null,null,!1,!1,"",ox);return t._reactRootContainer=c,t[ln]=c.current,Uo(t.nodeType===8?t.parentNode:t),Zs(function(){Ju(e,c,r,n)}),c}function Zu(t,e,r,n,a){var i=r._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var l=a;a=function(){var c=pu(o);l.call(c)}}Ju(e,o,t,a)}else o=YN(r,e,t,a,n);return pu(o)}c0=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=fo(e.pendingLanes);r!==0&&(np(e,r|1),Pt(e,Ge()),!(ye&6)&&(Ni=Ge()+500,gs()))}break;case 13:Zs(function(){var n=cn(t,1);if(n!==null){var a=wt();jr(n,t,1,a)}}),Lp(t,1)}};sp=function(t){if(t.tag===13){var e=cn(t,134217728);if(e!==null){var r=wt();jr(e,t,134217728,r)}Lp(t,134217728)}};u0=function(t){if(t.tag===13){var e=ts(t),r=cn(t,e);if(r!==null){var n=wt();jr(r,t,e,n)}Lp(t,e)}};d0=function(){return _e};h0=function(t,e){var r=_e;try{return _e=t,e()}finally{_e=r}};lf=function(t,e,r){switch(e){case"input":if(ef(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var a=zu(n);if(!a)throw Error(I(90));zv(n),ef(n,a)}}}break;case"textarea":Vv(t,r);break;case"select":e=r.value,e!=null&&Ka(t,!!r.multiple,e,!1)}};Xv=Ap;Zv=Zs;var JN={usingClientEntryPoint:!1,Events:[jl,Fa,zu,Jv,Qv,Ap]},eo={findFiberByHostInstance:As,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},QN={bundleType:eo.bundleType,version:eo.version,rendererPackageName:eo.rendererPackageName,rendererConfig:eo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=r0(t),t===null?null:t.stateNode},findFiberByHostInstance:eo.findFiberByHostInstance||KN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{Fu=ic.inject(QN),Ur=ic}catch{}}Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JN;Vt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$p(e))throw Error(I(200));return GN(t,e,null,r)};Vt.createRoot=function(t,e){if(!$p(t))throw Error(I(299));var r=!1,n="",a=Ib;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=Mp(t,1,!1,null,null,r,!1,n,a),t[ln]=e.current,Uo(t.nodeType===8?t.parentNode:t),new Dp(e)};Vt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(I(188)):(t=Object.keys(t).join(","),Error(I(268,t)));return t=r0(e),t=t===null?null:t.stateNode,t};Vt.flushSync=function(t){return Zs(t)};Vt.hydrate=function(t,e,r){if(!Xu(e))throw Error(I(200));return Zu(null,t,e,!0,r)};Vt.hydrateRoot=function(t,e,r){if(!$p(t))throw Error(I(405));var n=r!=null&&r.hydratedSources||null,a=!1,i="",o=Ib;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),e=Ob(e,null,t,1,r??null,a,!1,i,o),t[ln]=e.current,Uo(t),n)for(t=0;t<n.length;t++)r=n[t],a=r._getVersion,a=a(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,a]:e.mutableSourceEagerHydrationData.push(r,a);return new Qu(e)};Vt.render=function(t,e,r){if(!Xu(e))throw Error(I(200));return Zu(null,t,e,!1,r)};Vt.unmountComponentAtNode=function(t){if(!Xu(t))throw Error(I(40));return t._reactRootContainer?(Zs(function(){Zu(null,null,t,!1,function(){t._reactRootContainer=null,t[ln]=null})}),!0):!1};Vt.unstable_batchedUpdates=Ap;Vt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Xu(r))throw Error(I(200));if(t==null||t._reactInternals===void 0)throw Error(I(38));return Zu(t,e,r,!1,n)};Vt.version="18.3.1-next-f1338f8080-20240426";function Mb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mb)}catch(t){console.error(t)}}Mb(),Mv.exports=Vt;var _l=Mv.exports;const Lb=Oi(_l);var Db,lx=_l;Db=lx.createRoot,lx.hydrateRoot;const XN=1,ZN=1e6;let ph=0;function e5(){return ph=(ph+1)%Number.MAX_SAFE_INTEGER,ph.toString()}const gh=new Map,cx=t=>{if(gh.has(t))return;const e=setTimeout(()=>{gh.delete(t),Eo({type:"REMOVE_TOAST",toastId:t})},ZN);gh.set(t,e)},t5=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,XN)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?cx(r):t.toasts.forEach(n=>{cx(n.id)}),{...t,toasts:t.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Mc=[];let Lc={toasts:[]};function Eo(t){Lc=t5(Lc,t),Mc.forEach(e=>{e(Lc)})}function r5({...t}){const e=e5(),r=a=>Eo({type:"UPDATE_TOAST",toast:{...a,id:e}}),n=()=>Eo({type:"DISMISS_TOAST",toastId:e});return Eo({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:a=>{a||n()}}}),{id:e,dismiss:n,update:r}}function Sl(){const[t,e]=p.useState(Lc);return p.useEffect(()=>(Mc.push(e),()=>{const r=Mc.indexOf(e);r>-1&&Mc.splice(r,1)}),[t]),{...t,toast:r5,dismiss:r=>Eo({type:"DISMISS_TOAST",toastId:r})}}function W(t,e,{checkForDefaultPrevented:r=!0}={}){return function(a){if(t==null||t(a),r===!1||!a.defaultPrevented)return e==null?void 0:e(a)}}function ux(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ed(...t){return e=>{let r=!1;const n=t.map(a=>{const i=ux(a,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():ux(t[a],null)}}}}function ve(...t){return p.useCallback(ed(...t),t)}function n5(t,e){const r=p.createContext(e),n=i=>{const{children:o,...l}=i,c=p.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:c,children:o})};n.displayName=t+"Provider";function a(i){const o=p.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,a]}function Gt(t,e=[]){let r=[];function n(i,o){const l=p.createContext(o),c=r.length;r=[...r,o];const u=h=>{var x;const{scope:f,children:m,...w}=h,g=((x=f==null?void 0:f[t])==null?void 0:x[c])||l,y=p.useMemo(()=>w,Object.values(w));return s.jsx(g.Provider,{value:y,children:m})};u.displayName=i+"Provider";function d(h,f){var g;const m=((g=f==null?void 0:f[t])==null?void 0:g[c])||l,w=p.useContext(m);if(w)return w;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=r.map(o=>p.createContext(o));return function(l){const c=(l==null?void 0:l[t])||i;return p.useMemo(()=>({[`__scope${t}`]:{...l,[t]:c}}),[l,c])}};return a.scopeName=t,[n,s5(a,...e)]}function s5(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:c,scopeName:u})=>{const h=c(i)[`__scope${u}`];return{...l,...h}},{});return p.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function _i(t){const e=i5(t),r=p.forwardRef((n,a)=>{const{children:i,...o}=n,l=p.Children.toArray(i),c=l.find(l5);if(c){const u=c.props.children,d=l.map(h=>h===c?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:h);return s.jsx(e,{...o,ref:a,children:p.isValidElement(u)?p.cloneElement(u,void 0,d):null})}return s.jsx(e,{...o,ref:a,children:i})});return r.displayName=`${t}.Slot`,r}var a5=_i("Slot");function i5(t){const e=p.forwardRef((r,n)=>{const{children:a,...i}=r;if(p.isValidElement(a)){const o=u5(a),l=c5(i,a.props);return a.type!==p.Fragment&&(l.ref=n?ed(n,o):o),p.cloneElement(a,l)}return p.Children.count(a)>1?p.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var $b=Symbol("radix.slottable");function o5(t){const e=({children:r})=>s.jsx(s.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=$b,e}function l5(t){return p.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===$b}function c5(t,e){const r={...e};for(const n in e){const a=t[n],i=e[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{const c=i(...l);return a(...l),c}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...t,...r}}function u5(t){var n,a;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Cl(t){const e=t+"CollectionProvider",[r,n]=Gt(e),[a,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:y,children:x}=g,v=P.useRef(null),b=P.useRef(new Map).current;return s.jsx(a,{scope:y,itemMap:b,collectionRef:v,children:x})};o.displayName=e;const l=t+"CollectionSlot",c=_i(l),u=P.forwardRef((g,y)=>{const{scope:x,children:v}=g,b=i(l,x),k=ve(y,b.collectionRef);return s.jsx(c,{ref:k,children:v})});u.displayName=l;const d=t+"CollectionItemSlot",h="data-radix-collection-item",f=_i(d),m=P.forwardRef((g,y)=>{const{scope:x,children:v,...b}=g,k=P.useRef(null),j=ve(y,k),N=i(d,x);return P.useEffect(()=>(N.itemMap.set(k,{ref:k,...b}),()=>void N.itemMap.delete(k))),s.jsx(f,{[h]:"",ref:j,children:v})});m.displayName=d;function w(g){const y=i(t+"CollectionConsumer",g);return P.useCallback(()=>{const v=y.collectionRef.current;if(!v)return[];const b=Array.from(v.querySelectorAll(`[${h}]`));return Array.from(y.itemMap.values()).sort((N,_)=>b.indexOf(N.ref.current)-b.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:u,ItemSlot:m},w,n]}var d5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=d5.reduce((t,e)=>{const r=_i(`Primitive.${e}`),n=p.forwardRef((a,i)=>{const{asChild:o,...l}=a,c=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Fp(t,e){t&&_l.flushSync(()=>t.dispatchEvent(e))}function zt(t){const e=p.useRef(t);return p.useEffect(()=>{e.current=t}),p.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function h5(t,e=globalThis==null?void 0:globalThis.document){const r=zt(t);p.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var f5="DismissableLayer",Uf="dismissableLayer.update",m5="dismissableLayer.pointerDownOutside",p5="dismissableLayer.focusOutside",dx,Fb=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),El=p.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=t,u=p.useContext(Fb),[d,h]=p.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),w=ve(e,_=>h(_)),g=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),v=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,k=v>=x,j=x5(_=>{const E=_.target,R=[...u.branches].some(A=>A.contains(E));!k||R||(a==null||a(_),o==null||o(_),_.defaultPrevented||l==null||l())},f),N=y5(_=>{const E=_.target;[...u.branches].some(A=>A.contains(E))||(i==null||i(_),o==null||o(_),_.defaultPrevented||l==null||l())},f);return h5(_=>{v===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},f),p.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dx=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),hx(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=dx)}},[d,f,r,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),hx())},[d,u]),p.useEffect(()=>{const _=()=>m({});return document.addEventListener(Uf,_),()=>document.removeEventListener(Uf,_)},[]),s.jsx(oe.div,{...c,ref:w,style:{pointerEvents:b?k?"auto":"none":void 0,...t.style},onFocusCapture:W(t.onFocusCapture,N.onFocusCapture),onBlurCapture:W(t.onBlurCapture,N.onBlurCapture),onPointerDownCapture:W(t.onPointerDownCapture,j.onPointerDownCapture)})});El.displayName=f5;var g5="DismissableLayerBranch",Bb=p.forwardRef((t,e)=>{const r=p.useContext(Fb),n=p.useRef(null),a=ve(e,n);return p.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),s.jsx(oe.div,{...t,ref:a})});Bb.displayName=g5;function x5(t,e=globalThis==null?void 0:globalThis.document){const r=zt(t),n=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){Ub(m5,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",a.current),a.current=c,e.addEventListener("click",a.current,{once:!0})):c()}else e.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",a.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function y5(t,e=globalThis==null?void 0:globalThis.document){const r=zt(t),n=p.useRef(!1);return p.useEffect(()=>{const a=i=>{i.target&&!n.current&&Ub(p5,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",a),()=>e.removeEventListener("focusin",a)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hx(){const t=new CustomEvent(Uf);document.dispatchEvent(t)}function Ub(t,e,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&a.addEventListener(t,e,{once:!0}),n?Fp(a,i):a.dispatchEvent(i)}var v5=El,b5=Bb,Vr=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},w5="Portal",td=p.forwardRef((t,e)=>{var l;const{container:r,...n}=t,[a,i]=p.useState(!1);Vr(()=>i(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Lb.createPortal(s.jsx(oe.div,{...n,ref:e}),o):null});td.displayName=w5;function k5(t,e){return p.useReducer((r,n)=>e[r][n]??r,t)}var ar=t=>{const{present:e,children:r}=t,n=j5(e),a=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=ve(n.ref,N5(a));return typeof r=="function"||n.isPresent?p.cloneElement(a,{ref:i}):null};ar.displayName="Presence";function j5(t){const[e,r]=p.useState(),n=p.useRef(null),a=p.useRef(t),i=p.useRef("none"),o=t?"mounted":"unmounted",[l,c]=k5(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=oc(n.current);i.current=l==="mounted"?u:"none"},[l]),Vr(()=>{const u=n.current,d=a.current;if(d!==t){const f=i.current,m=oc(u);t?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=t}},[t,c]),Vr(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,h=m=>{const g=oc(n.current).includes(m.animationName);if(m.target===e&&g&&(c("ANIMATION_END"),!a.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},f=m=>{m.target===e&&(i.current=oc(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function oc(t){return(t==null?void 0:t.animationName)||"none"}function N5(t){var n,a;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(a=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:a.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var _5=Km[" useInsertionEffect ".trim().toString()]||Vr;function Gr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[a,i,o]=S5({defaultProp:e,onChange:r}),l=t!==void 0,c=l?t:a;{const d=p.useRef(t!==void 0);p.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,n])}const u=p.useCallback(d=>{var h;if(l){const f=C5(d)?d(t):d;f!==t&&((h=o.current)==null||h.call(o,f))}else i(d)},[l,t,i,o]);return[c,u]}function S5({defaultProp:t,onChange:e}){const[r,n]=p.useState(t),a=p.useRef(r),i=p.useRef(e);return _5(()=>{i.current=e},[e]),p.useEffect(()=>{var o;a.current!==r&&((o=i.current)==null||o.call(i,r),a.current=r)},[r,a]),[r,n,i]}function C5(t){return typeof t=="function"}var E5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),T5="VisuallyHidden",rd=p.forwardRef((t,e)=>s.jsx(oe.span,{...t,ref:e,style:{...E5,...t.style}}));rd.displayName=T5;var R5=rd,Bp="ToastProvider",[Up,A5,P5]=Cl("Toast"),[Wb,nB]=Gt("Toast",[P5]),[O5,nd]=Wb(Bp),zb=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=t,[l,c]=p.useState(null),[u,d]=p.useState(0),h=p.useRef(!1),f=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Bp}\`. Expected non-empty \`string\`.`),s.jsx(Up.Provider,{scope:e,children:s.jsx(O5,{scope:e,label:r,duration:n,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:p.useCallback(()=>d(m=>m+1),[]),onToastRemove:p.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:o})})};zb.displayName=Bp;var Hb="ToastViewport",I5=["F8"],Wf="toast.viewportPause",zf="toast.viewportResume",Vb=p.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=I5,label:a="Notifications ({hotkey})",...i}=t,o=nd(Hb,r),l=A5(r),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),h=p.useRef(null),f=ve(e,h,o.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=o.toastCount>0;p.useEffect(()=>{const y=x=>{var b;n.length!==0&&n.every(k=>x[k]||x.code===k)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n]),p.useEffect(()=>{const y=c.current,x=h.current;if(w&&y&&x){const v=()=>{if(!o.isClosePausedRef.current){const N=new CustomEvent(Wf);x.dispatchEvent(N),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const N=new CustomEvent(zf);x.dispatchEvent(N),o.isClosePausedRef.current=!1}},k=N=>{!y.contains(N.relatedTarget)&&b()},j=()=>{y.contains(document.activeElement)||b()};return y.addEventListener("focusin",v),y.addEventListener("focusout",k),y.addEventListener("pointermove",v),y.addEventListener("pointerleave",j),window.addEventListener("blur",v),window.addEventListener("focus",b),()=>{y.removeEventListener("focusin",v),y.removeEventListener("focusout",k),y.removeEventListener("pointermove",v),y.removeEventListener("pointerleave",j),window.removeEventListener("blur",v),window.removeEventListener("focus",b)}}},[w,o.isClosePausedRef]);const g=p.useCallback(({tabbingDirection:y})=>{const v=l().map(b=>{const k=b.ref.current,j=[k,...G5(k)];return y==="forwards"?j:j.reverse()});return(y==="forwards"?v.reverse():v).flat()},[l]);return p.useEffect(()=>{const y=h.current;if(y){const x=v=>{var j,N,_;const b=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!b){const E=document.activeElement,R=v.shiftKey;if(v.target===y&&R){(j=u.current)==null||j.focus();return}const O=g({tabbingDirection:R?"backwards":"forwards"}),J=O.findIndex(M=>M===E);xh(O.slice(J+1))?v.preventDefault():R?(N=u.current)==null||N.focus():(_=d.current)==null||_.focus()}};return y.addEventListener("keydown",x),()=>y.removeEventListener("keydown",x)}},[l,g]),s.jsxs(b5,{ref:c,role:"region","aria-label":a.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&s.jsx(Hf,{ref:u,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"forwards"});xh(y)}}),s.jsx(Up.Slot,{scope:r,children:s.jsx(oe.ol,{tabIndex:-1,...i,ref:f})}),w&&s.jsx(Hf,{ref:d,onFocusFromOutsideViewport:()=>{const y=g({tabbingDirection:"backwards"});xh(y)}})]})});Vb.displayName=Hb;var qb="ToastFocusProxy",Hf=p.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=t,i=nd(qb,r);return s.jsx(rd,{"aria-hidden":!0,tabIndex:0,...a,ref:e,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&n()}})});Hf.displayName=qb;var Tl="Toast",M5="toast.swipeStart",L5="toast.swipeMove",D5="toast.swipeCancel",$5="toast.swipeEnd",Gb=p.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:i,...o}=t,[l,c]=Gr({prop:n,defaultProp:a??!0,onChange:i,caller:Tl});return s.jsx(ar,{present:r||l,children:s.jsx(U5,{open:l,...o,ref:e,onClose:()=>c(!1),onPause:zt(t.onPause),onResume:zt(t.onResume),onSwipeStart:W(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(t.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:W(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:W(t.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});Gb.displayName=Tl;var[F5,B5]=Wb(Tl,{onClose(){}}),U5=p.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:m,...w}=t,g=nd(Tl,r),[y,x]=p.useState(null),v=ve(e,M=>x(M)),b=p.useRef(null),k=p.useRef(null),j=a||g.duration,N=p.useRef(0),_=p.useRef(j),E=p.useRef(0),{onToastAdd:R,onToastRemove:A}=g,$=zt(()=>{var Z;(y==null?void 0:y.contains(document.activeElement))&&((Z=g.viewport)==null||Z.focus()),o()}),O=p.useCallback(M=>{!M||M===1/0||(window.clearTimeout(E.current),N.current=new Date().getTime(),E.current=window.setTimeout($,M))},[$]);p.useEffect(()=>{const M=g.viewport;if(M){const Z=()=>{O(_.current),u==null||u()},z=()=>{const X=new Date().getTime()-N.current;_.current=_.current-X,window.clearTimeout(E.current),c==null||c()};return M.addEventListener(Wf,z),M.addEventListener(zf,Z),()=>{M.removeEventListener(Wf,z),M.removeEventListener(zf,Z)}}},[g.viewport,j,c,u,O]),p.useEffect(()=>{i&&!g.isClosePausedRef.current&&O(j)},[i,j,g.isClosePausedRef,O]),p.useEffect(()=>(R(),()=>A()),[R,A]);const J=p.useMemo(()=>y?e2(y):null,[y]);return g.viewport?s.jsxs(s.Fragment,{children:[J&&s.jsx(W5,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:J}),s.jsx(F5,{scope:r,onClose:$,children:_l.createPortal(s.jsx(Up.ItemSlot,{scope:r,children:s.jsx(v5,{asChild:!0,onEscapeKeyDown:W(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||$(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(oe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":g.swipeDirection,...w,ref:v,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:W(t.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:W(t.onPointerDown,M=>{M.button===0&&(b.current={x:M.clientX,y:M.clientY})}),onPointerMove:W(t.onPointerMove,M=>{if(!b.current)return;const Z=M.clientX-b.current.x,z=M.clientY-b.current.y,X=!!k.current,T=["left","right"].includes(g.swipeDirection),C=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,L=T?C(0,Z):0,q=T?0:C(0,z),F=M.pointerType==="touch"?10:2,se={x:L,y:q},le={originalEvent:M,delta:se};X?(k.current=se,lc(L5,h,le,{discrete:!1})):fx(se,g.swipeDirection,F)?(k.current=se,lc(M5,d,le,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Z)>F||Math.abs(z)>F)&&(b.current=null)}),onPointerUp:W(t.onPointerUp,M=>{const Z=k.current,z=M.target;if(z.hasPointerCapture(M.pointerId)&&z.releasePointerCapture(M.pointerId),k.current=null,b.current=null,Z){const X=M.currentTarget,T={originalEvent:M,delta:Z};fx(Z,g.swipeDirection,g.swipeThreshold)?lc($5,m,T,{discrete:!0}):lc(D5,f,T,{discrete:!0}),X.addEventListener("click",C=>C.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),W5=t=>{const{__scopeToast:e,children:r,...n}=t,a=nd(Tl,e),[i,o]=p.useState(!1),[l,c]=p.useState(!1);return V5(()=>o(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:s.jsx(td,{asChild:!0,children:s.jsx(rd,{...n,children:i&&s.jsxs(s.Fragment,{children:[a.label," ",r]})})})},z5="ToastTitle",Kb=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return s.jsx(oe.div,{...n,ref:e})});Kb.displayName=z5;var H5="ToastDescription",Yb=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return s.jsx(oe.div,{...n,ref:e})});Yb.displayName=H5;var Jb="ToastAction",Qb=p.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?s.jsx(Zb,{altText:r,asChild:!0,children:s.jsx(Wp,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Jb}\`. Expected non-empty \`string\`.`),null)});Qb.displayName=Jb;var Xb="ToastClose",Wp=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,a=B5(Xb,r);return s.jsx(Zb,{asChild:!0,children:s.jsx(oe.button,{type:"button",...n,ref:e,onClick:W(t.onClick,a.onClose)})})});Wp.displayName=Xb;var Zb=p.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...a}=t;return s.jsx(oe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:e})});function e2(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),q5(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...e2(n))}}),e}function lc(t,e,r,{discrete:n}){const a=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&a.addEventListener(t,e,{once:!0}),n?Fp(a,i):a.dispatchEvent(i)}var fx=(t,e,r=0)=>{const n=Math.abs(t.x),a=Math.abs(t.y),i=n>a;return e==="left"||e==="right"?i&&n>r:!i&&a>r};function V5(t=()=>{}){const e=zt(t);Vr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function q5(t){return t.nodeType===t.ELEMENT_NODE}function G5(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function xh(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var K5=zb,t2=Vb,r2=Gb,n2=Kb,s2=Yb,a2=Qb,i2=Wp;function o2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(r=o2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function l2(){for(var t,e,r=0,n="",a=arguments.length;r<a;r++)(t=arguments[r])&&(e=o2(t))&&(n&&(n+=" "),n+=e);return n}const mx=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,px=l2,sd=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return px(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=e,o=Object.keys(a).map(u=>{const d=r==null?void 0:r[u],h=i==null?void 0:i[u];if(d===null)return null;const f=mx(d)||mx(h);return a[u][f]}),l=r&&Object.entries(r).reduce((u,d)=>{let[h,f]=d;return f===void 0||(u[h]=f),u},{}),c=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:h,className:f,...m}=d;return Object.entries(m).every(w=>{let[g,y]=w;return Array.isArray(y)?y.includes({...i,...l}[g]):{...i,...l}[g]===y})?[...u,h,f]:u},[]);return px(t,o,c,r==null?void 0:r.class,r==null?void 0:r.className)};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y5=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),c2=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var J5={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"};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q5=p.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...l},c)=>p.createElement("svg",{ref:c,...J5,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:c2("lucide",a),...l},[...o.map(([u,d])=>p.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V=(t,e)=>{const r=p.forwardRef(({className:n,...a},i)=>p.createElement(Q5,{ref:i,iconNode:e,className:c2(`lucide-${Y5(t)}`,n),...a}));return r.displayName=`${t}`,r};/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jo=V("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gu=V("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X5=V("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z5=V("Bath",[["path",{d:"M10 4 8 6",key:"1rru8s"}],["path",{d:"M17 19v2",key:"ts1sot"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M7 19v2",key:"12npes"}],["path",{d:"M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"14ym8i"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e_=V("Bed",[["path",{d:"M2 4v16",key:"vw9hq8"}],["path",{d:"M2 8h18a2 2 0 0 1 2 2v10",key:"1dgv2r"}],["path",{d:"M2 17h20",key:"18nfp3"}],["path",{d:"M6 8v9",key:"1yriud"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u2=V("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t_=V("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zp=V("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r_=V("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n_=V("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ks=V("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const To=V("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ad=V("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rl=V("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d2=V("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h2=V("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s_=V("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f2=V("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a_=V("Coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m2=V("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vf=V("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qo=V("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p2=V("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i_=V("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g2=V("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x2=V("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oa=V("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y2=V("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v2=V("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o_=V("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b2=V("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const la=V("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const id=V("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l_=V("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Al=V("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mn=V("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c_=V("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u_=V("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d_=V("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h_=V("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f_=V("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xs=V("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m_=V("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p_=V("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g_=V("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x_=V("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qf=V("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y_=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v_=V("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b_=V("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w_=V("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Is=V("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k_=V("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hp=V("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w2=V("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k2=V("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j_=V("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N_=V("Trees",[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const od=V("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ld=V("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vp=V("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cd=V("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const __=V("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ud=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j2=V("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),qp="-",S_=t=>{const e=E_(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const l=o.split(qp);return l[0]===""&&l.length!==1&&l.shift(),N2(l,e)||C_(o)},getConflictingClassGroupIds:(o,l)=>{const c=r[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},N2=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),a=n?N2(t.slice(1),n):void 0;if(a)return a;if(e.validators.length===0)return;const i=t.join(qp);return(o=e.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},gx=/^\[(.+)\]$/,C_=t=>{if(gx.test(t)){const e=gx.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},E_=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return R_(Object.entries(t.classGroups),r).forEach(([i,o])=>{Gf(o,n,i,e)}),n},Gf=(t,e,r,n)=>{t.forEach(a=>{if(typeof a=="string"){const i=a===""?e:xx(e,a);i.classGroupId=r;return}if(typeof a=="function"){if(T_(a)){Gf(a(n),e,r,n);return}e.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{Gf(o,xx(e,i),r,n)})})},xx=(t,e)=>{let r=t;return e.split(qp).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},T_=t=>t.isThemeGetter,R_=(t,e)=>e?t.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[e+o,l])):i);return[r,a]}):t,A_=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},_2="!",P_=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,a=e[0],i=e.length,o=l=>{const c=[];let u=0,d=0,h;for(let y=0;y<l.length;y++){let x=l[y];if(u===0){if(x===a&&(n||l.slice(y,y+i)===e)){c.push(l.slice(d,y)),d=y+i;continue}if(x==="/"){h=y;continue}}x==="["?u++:x==="]"&&u--}const f=c.length===0?l:l.substring(d),m=f.startsWith(_2),w=m?f.substring(1):f,g=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}};return r?l=>r({className:l,parseClassName:o}):o},O_=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},I_=t=>({cache:A_(t.cacheSize),parseClassName:P_(t),...S_(t)}),M_=/\s+/,L_=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=e,i=[],o=t.trim().split(M_);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=r(u);let w=!!m,g=n(w?f.substring(0,m):f);if(!g){if(!w){l=u+(l.length>0?" "+l:l);continue}if(g=n(f),!g){l=u+(l.length>0?" "+l:l);continue}w=!1}const y=O_(d).join(":"),x=h?y+_2:y,v=x+g;if(i.includes(v))continue;i.push(v);const b=a(g,w);for(let k=0;k<b.length;++k){const j=b[k];i.push(x+j)}l=u+(l.length>0?" "+l:l)}return l};function D_(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=S2(e))&&(n&&(n+=" "),n+=r);return n}const S2=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=S2(t[n]))&&(r&&(r+=" "),r+=e);return r};function $_(t,...e){let r,n,a,i=o;function o(c){const u=e.reduce((d,h)=>h(d),t());return r=I_(u),n=r.cache.get,a=r.cache.set,i=l,l(c)}function l(c){const u=n(c);if(u)return u;const d=L_(c,r);return a(c,d),d}return function(){return i(D_.apply(null,arguments))}}const Re=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},C2=/^\[(?:([a-z-]+):)?(.+)\]$/i,F_=/^\d+\/\d+$/,B_=new Set(["px","full","screen"]),U_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,z_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,H_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qr=t=>ei(t)||B_.has(t)||F_.test(t),jn=t=>Di(t,"length",Z_),ei=t=>!!t&&!Number.isNaN(Number(t)),yh=t=>Di(t,"number",ei),to=t=>!!t&&Number.isInteger(Number(t)),q_=t=>t.endsWith("%")&&ei(t.slice(0,-1)),ue=t=>C2.test(t),Nn=t=>U_.test(t),G_=new Set(["length","size","percentage"]),K_=t=>Di(t,G_,E2),Y_=t=>Di(t,"position",E2),J_=new Set(["image","url"]),Q_=t=>Di(t,J_,t6),X_=t=>Di(t,"",e6),ro=()=>!0,Di=(t,e,r)=>{const n=C2.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},Z_=t=>W_.test(t)&&!z_.test(t),E2=()=>!1,e6=t=>H_.test(t),t6=t=>V_.test(t),r6=()=>{const t=Re("colors"),e=Re("spacing"),r=Re("blur"),n=Re("brightness"),a=Re("borderColor"),i=Re("borderRadius"),o=Re("borderSpacing"),l=Re("borderWidth"),c=Re("contrast"),u=Re("grayscale"),d=Re("hueRotate"),h=Re("invert"),f=Re("gap"),m=Re("gradientColorStops"),w=Re("gradientColorStopPositions"),g=Re("inset"),y=Re("margin"),x=Re("opacity"),v=Re("padding"),b=Re("saturate"),k=Re("scale"),j=Re("sepia"),N=Re("skew"),_=Re("space"),E=Re("translate"),R=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",ue,e],O=()=>[ue,e],J=()=>["",Qr,jn],M=()=>["auto",ei,ue],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",ue],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[ei,ue];return{cacheSize:500,separator:":",theme:{colors:[ro],spacing:[Qr,jn],blur:["none","",Nn,ue],brightness:q(),borderColor:[t],borderRadius:["none","","full",Nn,ue],borderSpacing:O(),borderWidth:J(),contrast:q(),grayscale:C(),hueRotate:q(),invert:C(),gap:O(),gradientColorStops:[t],gradientColorStopPositions:[q_,jn],inset:$(),margin:$(),opacity:q(),padding:O(),saturate:q(),scale:q(),sepia:C(),skew:q(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),ue]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",to,ue]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",to,ue]}],"grid-cols":[{"grid-cols":[ro]}],"col-start-end":[{col:["auto",{span:["full",to,ue]},ue]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ro]}],"row-start-end":[{row:["auto",{span:[to,ue]},ue]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,e]}],"min-w":[{"min-w":[ue,e,"min","max","fit"]}],"max-w":[{"max-w":[ue,e,"none","full","min","max","fit","prose",{screen:[Nn]},Nn]}],h:[{h:[ue,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Nn,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yh]}],"font-family":[{font:[ro]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",ei,yh]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qr,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qr,jn]}],"underline-offset":[{"underline-offset":["auto",Qr,ue]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Y_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",K_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Q_]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[Qr,ue]}],"outline-w":[{outline:[Qr,jn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Qr,jn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Nn,X_]}],"shadow-color":[{shadow:[ro]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Nn,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[to,ue]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Qr,jn,yh]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},n6=$_(r6);function ke(...t){return n6(l2(t))}const s6=K5,T2=p.forwardRef(({className:t,...e},r)=>s.jsx(t2,{ref:r,className:ke("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));T2.displayName=t2.displayName;const a6=sd("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),R2=p.forwardRef(({className:t,variant:e,...r},n)=>s.jsx(r2,{ref:n,className:ke(a6({variant:e}),t),...r}));R2.displayName=r2.displayName;const i6=p.forwardRef(({className:t,...e},r)=>s.jsx(a2,{ref:r,className:ke("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",t),...e}));i6.displayName=a2.displayName;const A2=p.forwardRef(({className:t,...e},r)=>s.jsx(i2,{ref:r,className:ke("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:s.jsx(ud,{className:"h-4 w-4"})}));A2.displayName=i2.displayName;const P2=p.forwardRef(({className:t,...e},r)=>s.jsx(n2,{ref:r,className:ke("text-sm font-semibold",t),...e}));P2.displayName=n2.displayName;const O2=p.forwardRef(({className:t,...e},r)=>s.jsx(s2,{ref:r,className:ke("text-sm opacity-90",t),...e}));O2.displayName=s2.displayName;function o6(){const{toasts:t}=Sl();return s.jsxs(s6,{children:[t.map(function({id:e,title:r,description:n,action:a,...i}){return s.jsxs(R2,{...i,children:[s.jsxs("div",{className:"grid gap-1",children:[r&&s.jsx(P2,{children:r}),n&&s.jsx(O2,{children:n})]}),a,s.jsx(A2,{})]},e)}),s.jsx(T2,{})]})}var yx=["light","dark"],l6="(prefers-color-scheme: dark)",c6=p.createContext(void 0),u6={setTheme:t=>{},themes:[]},d6=()=>{var t;return(t=p.useContext(c6))!=null?t:u6};p.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let u=i==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(w=>`'${w}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,h=a?yx.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(w,g=!1,y=!0)=>{let x=o?o[w]:w,v=g?w+"|| ''":`'${x}'`,b="";return a&&y&&!g&&yx.includes(w)&&(b+=`d.style.colorScheme = '${w}';`),r==="class"?g||x?b+=`c.add(${v})`:b+="null":x&&(b+=`d[s](n,${v})`),b},m=t?`!function(){${d}${f(t)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${l6}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return p.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:m}})});var h6=t=>{switch(t){case"success":return p6;case"info":return x6;case"warning":return g6;case"error":return y6;default:return null}},f6=Array(12).fill(0),m6=({visible:t,className:e})=>P.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},P.createElement("div",{className:"sonner-spinner"},f6.map((r,n)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),p6=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),g6=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),x6=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),y6=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),v6=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),b6=()=>{let[t,e]=P.useState(document.hidden);return P.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},Kf=1,w6=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,a=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Kf++,i=this.toasts.find(l=>l.id===a),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:o,title:r}):l):this.addToast({title:r,...n,dismissible:o,id:a}),a},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),a=r!==void 0,i,o=n.then(async c=>{if(i=["resolve",c],P.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(j6(c)&&!c.ok){a=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${c.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${c.status}`):e.description;this.create({id:r,type:"error",message:u,description:d})}else if(e.success!==void 0){a=!1;let u=typeof e.success=="function"?await e.success(c):e.success,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async c=>{if(i=["reject",c],e.error!==void 0){a=!1;let u=typeof e.error=="function"?await e.error(c):e.error,d=typeof e.description=="function"?await e.description(c):e.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var c;a&&(this.dismiss(r),r=void 0),(c=e.finally)==null||c.call(e)}),l=()=>new Promise((c,u)=>o.then(()=>i[0]==="reject"?u(i[1]):c(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Kf++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},St=new w6,k6=(t,e)=>{let r=(e==null?void 0:e.id)||Kf++;return St.addToast({title:t,...e,id:r}),r},j6=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",N6=k6,_6=()=>St.toasts,S6=()=>St.getActiveToasts(),Ie=Object.assign(N6,{success:St.success,info:St.info,warning:St.warning,error:St.error,custom:St.custom,message:St.message,promise:St.promise,dismiss:St.dismiss,loading:St.loading},{getHistory:_6,getToasts:S6});function C6(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}C6(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function cc(t){return t.label!==void 0}var E6=3,T6="32px",R6="16px",vx=4e3,A6=356,P6=14,O6=20,I6=200;function dr(...t){return t.filter(Boolean).join(" ")}function M6(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var L6=t=>{var e,r,n,a,i,o,l,c,u,d,h;let{invert:f,toast:m,unstyled:w,interacting:g,setHeights:y,visibleToasts:x,heights:v,index:b,toasts:k,expanded:j,removeToast:N,defaultRichColors:_,closeButton:E,style:R,cancelButtonStyle:A,actionButtonStyle:$,className:O="",descriptionClassName:J="",duration:M,position:Z,gap:z,loadingIcon:X,expandByDefault:T,classNames:C,icons:L,closeButtonAriaLabel:q="Close toast",pauseWhenPageIsHidden:F}=t,[se,le]=P.useState(null),[De,We]=P.useState(null),[me,Yr]=P.useState(!1),[nt,Pr]=P.useState(!1),[xn,da]=P.useState(!1),[yn,Bl]=P.useState(!1),[$d,Ul]=P.useState(!1),[Fd,Vi]=P.useState(0),[ha,Gg]=P.useState(0),qi=P.useRef(m.duration||M||vx),Kg=P.useRef(null),bs=P.useRef(null),pk=b===0,gk=b+1<=x,Kt=m.type,fa=m.dismissible!==!1,xk=m.className||"",yk=m.descriptionClassName||"",Wl=P.useMemo(()=>v.findIndex(ce=>ce.toastId===m.id)||0,[v,m.id]),vk=P.useMemo(()=>{var ce;return(ce=m.closeButton)!=null?ce:E},[m.closeButton,E]),Yg=P.useMemo(()=>m.duration||M||vx,[m.duration,M]),Bd=P.useRef(0),ma=P.useRef(0),Jg=P.useRef(0),pa=P.useRef(null),[bk,wk]=Z.split("-"),Qg=P.useMemo(()=>v.reduce((ce,Se,Oe)=>Oe>=Wl?ce:ce+Se.height,0),[v,Wl]),Xg=b6(),kk=m.invert||f,Ud=Kt==="loading";ma.current=P.useMemo(()=>Wl*z+Qg,[Wl,Qg]),P.useEffect(()=>{qi.current=Yg},[Yg]),P.useEffect(()=>{Yr(!0)},[]),P.useEffect(()=>{let ce=bs.current;if(ce){let Se=ce.getBoundingClientRect().height;return Gg(Se),y(Oe=>[{toastId:m.id,height:Se,position:m.position},...Oe]),()=>y(Oe=>Oe.filter(or=>or.toastId!==m.id))}},[y,m.id]),P.useLayoutEffect(()=>{if(!me)return;let ce=bs.current,Se=ce.style.height;ce.style.height="auto";let Oe=ce.getBoundingClientRect().height;ce.style.height=Se,Gg(Oe),y(or=>or.find(lr=>lr.toastId===m.id)?or.map(lr=>lr.toastId===m.id?{...lr,height:Oe}:lr):[{toastId:m.id,height:Oe,position:m.position},...or])},[me,m.title,m.description,y,m.id]);let vn=P.useCallback(()=>{Pr(!0),Vi(ma.current),y(ce=>ce.filter(Se=>Se.toastId!==m.id)),setTimeout(()=>{N(m)},I6)},[m,N,y,ma]);P.useEffect(()=>{if(m.promise&&Kt==="loading"||m.duration===1/0||m.type==="loading")return;let ce;return j||g||F&&Xg?(()=>{if(Jg.current<Bd.current){let Se=new Date().getTime()-Bd.current;qi.current=qi.current-Se}Jg.current=new Date().getTime()})():qi.current!==1/0&&(Bd.current=new Date().getTime(),ce=setTimeout(()=>{var Se;(Se=m.onAutoClose)==null||Se.call(m,m),vn()},qi.current)),()=>clearTimeout(ce)},[j,g,m,Kt,F,Xg,vn]),P.useEffect(()=>{m.delete&&vn()},[vn,m.delete]);function jk(){var ce,Se,Oe;return L!=null&&L.loading?P.createElement("div",{className:dr(C==null?void 0:C.loader,(ce=m==null?void 0:m.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":Kt==="loading"},L.loading):X?P.createElement("div",{className:dr(C==null?void 0:C.loader,(Se=m==null?void 0:m.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":Kt==="loading"},X):P.createElement(m6,{className:dr(C==null?void 0:C.loader,(Oe=m==null?void 0:m.classNames)==null?void 0:Oe.loader),visible:Kt==="loading"})}return P.createElement("li",{tabIndex:0,ref:bs,className:dr(O,xk,C==null?void 0:C.toast,(e=m==null?void 0:m.classNames)==null?void 0:e.toast,C==null?void 0:C.default,C==null?void 0:C[Kt],(r=m==null?void 0:m.classNames)==null?void 0:r[Kt]),"data-sonner-toast":"","data-rich-colors":(n=m.richColors)!=null?n:_,"data-styled":!(m.jsx||m.unstyled||w),"data-mounted":me,"data-promise":!!m.promise,"data-swiped":$d,"data-removed":nt,"data-visible":gk,"data-y-position":bk,"data-x-position":wk,"data-index":b,"data-front":pk,"data-swiping":xn,"data-dismissible":fa,"data-type":Kt,"data-invert":kk,"data-swipe-out":yn,"data-swipe-direction":De,"data-expanded":!!(j||T&&me),style:{"--index":b,"--toasts-before":b,"--z-index":k.length-b,"--offset":`${nt?Fd:ma.current}px`,"--initial-height":T?"auto":`${ha}px`,...R,...m.style},onDragEnd:()=>{da(!1),le(null),pa.current=null},onPointerDown:ce=>{Ud||!fa||(Kg.current=new Date,Vi(ma.current),ce.target.setPointerCapture(ce.pointerId),ce.target.tagName!=="BUTTON"&&(da(!0),pa.current={x:ce.clientX,y:ce.clientY}))},onPointerUp:()=>{var ce,Se,Oe,or;if(yn||!fa)return;pa.current=null;let lr=Number(((ce=bs.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),bn=Number(((Se=bs.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ws=new Date().getTime()-((Oe=Kg.current)==null?void 0:Oe.getTime()),cr=se==="x"?lr:bn,wn=Math.abs(cr)/ws;if(Math.abs(cr)>=O6||wn>.11){Vi(ma.current),(or=m.onDismiss)==null||or.call(m,m),We(se==="x"?lr>0?"right":"left":bn>0?"down":"up"),vn(),Bl(!0),Ul(!1);return}da(!1),le(null)},onPointerMove:ce=>{var Se,Oe,or,lr;if(!pa.current||!fa||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;let bn=ce.clientY-pa.current.y,ws=ce.clientX-pa.current.x,cr=(Oe=t.swipeDirections)!=null?Oe:M6(Z);!se&&(Math.abs(ws)>1||Math.abs(bn)>1)&&le(Math.abs(ws)>Math.abs(bn)?"x":"y");let wn={x:0,y:0};se==="y"?(cr.includes("top")||cr.includes("bottom"))&&(cr.includes("top")&&bn<0||cr.includes("bottom")&&bn>0)&&(wn.y=bn):se==="x"&&(cr.includes("left")||cr.includes("right"))&&(cr.includes("left")&&ws<0||cr.includes("right")&&ws>0)&&(wn.x=ws),(Math.abs(wn.x)>0||Math.abs(wn.y)>0)&&Ul(!0),(or=bs.current)==null||or.style.setProperty("--swipe-amount-x",`${wn.x}px`),(lr=bs.current)==null||lr.style.setProperty("--swipe-amount-y",`${wn.y}px`)}},vk&&!m.jsx?P.createElement("button",{"aria-label":q,"data-disabled":Ud,"data-close-button":!0,onClick:Ud||!fa?()=>{}:()=>{var ce;vn(),(ce=m.onDismiss)==null||ce.call(m,m)},className:dr(C==null?void 0:C.closeButton,(a=m==null?void 0:m.classNames)==null?void 0:a.closeButton)},(i=L==null?void 0:L.close)!=null?i:v6):null,m.jsx||p.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:P.createElement(P.Fragment,null,Kt||m.icon||m.promise?P.createElement("div",{"data-icon":"",className:dr(C==null?void 0:C.icon,(o=m==null?void 0:m.classNames)==null?void 0:o.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||jk():null,m.type!=="loading"?m.icon||(L==null?void 0:L[Kt])||h6(Kt):null):null,P.createElement("div",{"data-content":"",className:dr(C==null?void 0:C.content,(l=m==null?void 0:m.classNames)==null?void 0:l.content)},P.createElement("div",{"data-title":"",className:dr(C==null?void 0:C.title,(c=m==null?void 0:m.classNames)==null?void 0:c.title)},typeof m.title=="function"?m.title():m.title),m.description?P.createElement("div",{"data-description":"",className:dr(J,yk,C==null?void 0:C.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),p.isValidElement(m.cancel)?m.cancel:m.cancel&&cc(m.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||A,onClick:ce=>{var Se,Oe;cc(m.cancel)&&fa&&((Oe=(Se=m.cancel).onClick)==null||Oe.call(Se,ce),vn())},className:dr(C==null?void 0:C.cancelButton,(d=m==null?void 0:m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,p.isValidElement(m.action)?m.action:m.action&&cc(m.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||$,onClick:ce=>{var Se,Oe;cc(m.action)&&((Oe=(Se=m.action).onClick)==null||Oe.call(Se,ce),!ce.defaultPrevented&&vn())},className:dr(C==null?void 0:C.actionButton,(h=m==null?void 0:m.classNames)==null?void 0:h.actionButton)},m.action.label):null))};function bx(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function D6(t,e){let r={};return[t,e].forEach((n,a)=>{let i=a===1,o=i?"--mobile-offset":"--offset",l=i?R6:T6;function c(u){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=l:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):c(l)}),r}var $6=p.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:a=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:u,theme:d="light",richColors:h,duration:f,style:m,visibleToasts:w=E6,toastOptions:g,dir:y=bx(),gap:x=P6,loadingIcon:v,icons:b,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:j}=t,[N,_]=P.useState([]),E=P.useMemo(()=>Array.from(new Set([n].concat(N.filter(F=>F.position).map(F=>F.position)))),[N,n]),[R,A]=P.useState([]),[$,O]=P.useState(!1),[J,M]=P.useState(!1),[Z,z]=P.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=P.useRef(null),T=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=P.useRef(null),L=P.useRef(!1),q=P.useCallback(F=>{_(se=>{var le;return(le=se.find(De=>De.id===F.id))!=null&&le.delete||St.dismiss(F.id),se.filter(({id:De})=>De!==F.id)})},[]);return P.useEffect(()=>St.subscribe(F=>{if(F.dismiss){_(se=>se.map(le=>le.id===F.id?{...le,delete:!0}:le));return}setTimeout(()=>{Lb.flushSync(()=>{_(se=>{let le=se.findIndex(De=>De.id===F.id);return le!==-1?[...se.slice(0,le),{...se[le],...F},...se.slice(le+1)]:[F,...se]})})})}),[]),P.useEffect(()=>{if(d!=="system"){z(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:se})=>{z(se?"dark":"light")})}catch{F.addListener(({matches:le})=>{try{z(le?"dark":"light")}catch(De){console.error(De)}})}},[d]),P.useEffect(()=>{N.length<=1&&O(!1)},[N]),P.useEffect(()=>{let F=se=>{var le,De;a.every(We=>se[We]||se.code===We)&&(O(!0),(le=X.current)==null||le.focus()),se.code==="Escape"&&(document.activeElement===X.current||(De=X.current)!=null&&De.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[a]),P.useEffect(()=>{if(X.current)return()=>{C.current&&(C.current.focus({preventScroll:!0}),C.current=null,L.current=!1)}},[X.current]),P.createElement("section",{ref:e,"aria-label":`${k} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},E.map((F,se)=>{var le;let[De,We]=F.split("-");return N.length?P.createElement("ol",{key:F,dir:y==="auto"?bx():y,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-theme":Z,"data-y-position":De,"data-lifted":$&&N.length>1&&!i,"data-x-position":We,style:{"--front-toast-height":`${((le=R[0])==null?void 0:le.height)||0}px`,"--width":`${A6}px`,"--gap":`${x}px`,...m,...D6(c,u)},onBlur:me=>{L.current&&!me.currentTarget.contains(me.relatedTarget)&&(L.current=!1,C.current&&(C.current.focus({preventScroll:!0}),C.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||L.current||(L.current=!0,C.current=me.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{J||O(!1)},onDragEnd:()=>O(!1),onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},N.filter(me=>!me.position&&se===0||me.position===F).map((me,Yr)=>{var nt,Pr;return P.createElement(L6,{key:me.id,icons:b,index:Yr,toast:me,defaultRichColors:h,duration:(nt=g==null?void 0:g.duration)!=null?nt:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:w,closeButton:(Pr=g==null?void 0:g.closeButton)!=null?Pr:o,interacting:J,position:F,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:q,toasts:N.filter(xn=>xn.position==me.position),heights:R.filter(xn=>xn.position==me.position),setHeights:A,expandByDefault:i,gap:x,loadingIcon:v,expanded:$,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const F6=({...t})=>{const{theme:e="system"}=d6();return s.jsx($6,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var B6=Km[" useId ".trim().toString()]||(()=>{}),U6=0;function ns(t){const[e,r]=p.useState(B6());return Vr(()=>{r(n=>n??String(U6++))},[t]),e?`radix-${e}`:""}const W6=["top","right","bottom","left"],us=Math.min,Mt=Math.max,xu=Math.round,uc=Math.floor,zr=t=>({x:t,y:t}),z6={left:"right",right:"left",bottom:"top",top:"bottom"},H6={start:"end",end:"start"};function Yf(t,e,r){return Mt(t,us(e,r))}function dn(t,e){return typeof t=="function"?t(e):t}function hn(t){return t.split("-")[0]}function $i(t){return t.split("-")[1]}function Gp(t){return t==="x"?"y":"x"}function Kp(t){return t==="y"?"height":"width"}const V6=new Set(["top","bottom"]);function Br(t){return V6.has(hn(t))?"y":"x"}function Yp(t){return Gp(Br(t))}function q6(t,e,r){r===void 0&&(r=!1);const n=$i(t),a=Yp(t),i=Kp(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=yu(o)),[o,yu(o)]}function G6(t){const e=yu(t);return[Jf(t),e,Jf(e)]}function Jf(t){return t.replace(/start|end/g,e=>H6[e])}const wx=["left","right"],kx=["right","left"],K6=["top","bottom"],Y6=["bottom","top"];function J6(t,e,r){switch(t){case"top":case"bottom":return r?e?kx:wx:e?wx:kx;case"left":case"right":return e?K6:Y6;default:return[]}}function Q6(t,e,r,n){const a=$i(t);let i=J6(hn(t),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),e&&(i=i.concat(i.map(Jf)))),i}function yu(t){return t.replace(/left|right|bottom|top/g,e=>z6[e])}function X6(t){return{top:0,right:0,bottom:0,left:0,...t}}function I2(t){return typeof t!="number"?X6(t):{top:t,right:t,bottom:t,left:t}}function vu(t){const{x:e,y:r,width:n,height:a}=t;return{width:n,height:a,top:r,left:e,right:e+n,bottom:r+a,x:e,y:r}}function jx(t,e,r){let{reference:n,floating:a}=t;const i=Br(e),o=Yp(e),l=Kp(o),c=hn(e),u=i==="y",d=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,f=n[l]/2-a[l]/2;let m;switch(c){case"top":m={x:d,y:n.y-a.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:h};break;case"left":m={x:n.x-a.width,y:h};break;default:m={x:n.x,y:n.y}}switch($i(e)){case"start":m[o]-=f*(r&&u?-1:1);break;case"end":m[o]+=f*(r&&u?-1:1);break}return m}const Z6=async(t,e,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:h}=jx(u,n,c),f=n,m={},w=0;for(let g=0;g<l.length;g++){const{name:y,fn:x}=l[g],{x:v,y:b,data:k,reset:j}=await x({x:d,y:h,initialPlacement:n,placement:f,strategy:a,middlewareData:m,rects:u,platform:o,elements:{reference:t,floating:e}});d=v??d,h=b??h,m={...m,[y]:{...m[y],...k}},j&&w<=50&&(w++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(u=j.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:a}):j.rects),{x:d,y:h}=jx(u,f,c)),g=-1)}return{x:d,y:h,placement:f,strategy:a,middlewareData:m}};async function Xo(t,e){var r;e===void 0&&(e={});const{x:n,y:a,platform:i,rects:o,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=dn(e,t),w=I2(m),y=l[f?h==="floating"?"reference":"floating":h],x=vu(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=h==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},j=vu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:c}):v);return{top:(x.top-j.top+w.top)/k.y,bottom:(j.bottom-x.bottom+w.bottom)/k.y,left:(x.left-j.left+w.left)/k.x,right:(j.right-x.right+w.right)/k.x}}const eS=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=dn(t,e)||{};if(u==null)return{};const h=I2(d),f={x:r,y:n},m=Yp(a),w=Kp(m),g=await o.getDimensions(u),y=m==="y",x=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",k=i.reference[w]+i.reference[m]-f[m]-i.floating[w],j=f[m]-i.reference[m],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=N?N[b]:0;(!_||!await(o.isElement==null?void 0:o.isElement(N)))&&(_=l.floating[b]||i.floating[w]);const E=k/2-j/2,R=_/2-g[w]/2-1,A=us(h[x],R),$=us(h[v],R),O=A,J=_-g[w]-$,M=_/2-g[w]/2+E,Z=Yf(O,M,J),z=!c.arrow&&$i(a)!=null&&M!==Z&&i.reference[w]/2-(M<O?A:$)-g[w]/2<0,X=z?M<O?M-O:M-J:0;return{[m]:f[m]+X,data:{[m]:Z,centerOffset:M-Z-X,...z&&{alignmentOffset:X}},reset:z}}}),tS=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...y}=dn(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=hn(a),v=Br(l),b=hn(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=f||(b||!g?[yu(l)]:G6(l)),N=w!=="none";!f&&N&&j.push(...Q6(l,g,w,k));const _=[l,...j],E=await Xo(e,y),R=[];let A=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&R.push(E[x]),h){const M=q6(a,o,k);R.push(E[M[0]],E[M[1]])}if(A=[...A,{placement:a,overflows:R}],!R.every(M=>M<=0)){var $,O;const M=((($=i.flip)==null?void 0:$.index)||0)+1,Z=_[M];if(Z&&(!(h==="alignment"?v!==Br(Z):!1)||A.every(T=>T.overflows[0]>0&&Br(T.placement)===v)))return{data:{index:M,overflows:A},reset:{placement:Z}};let z=(O=A.filter(X=>X.overflows[0]<=0).sort((X,T)=>X.overflows[1]-T.overflows[1])[0])==null?void 0:O.placement;if(!z)switch(m){case"bestFit":{var J;const X=(J=A.filter(T=>{if(N){const C=Br(T.placement);return C===v||C==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(C=>C>0).reduce((C,L)=>C+L,0)]).sort((T,C)=>T[1]-C[1])[0])==null?void 0:J[0];X&&(z=X);break}case"initialPlacement":z=l;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function Nx(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _x(t){return W6.some(e=>t[e]>=0)}const rS=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...a}=dn(t,e);switch(n){case"referenceHidden":{const i=await Xo(e,{...a,elementContext:"reference"}),o=Nx(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:_x(o)}}}case"escaped":{const i=await Xo(e,{...a,altBoundary:!0}),o=Nx(i,r.floating);return{data:{escapedOffsets:o,escaped:_x(o)}}}default:return{}}}}},M2=new Set(["left","top"]);async function nS(t,e){const{placement:r,platform:n,elements:a}=t,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=hn(r),l=$i(r),c=Br(r)==="y",u=M2.has(o)?-1:1,d=i&&c?-1:1,h=dn(e,t);let{mainAxis:f,crossAxis:m,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(m=l==="end"?w*-1:w),c?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const sS=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:a,y:i,placement:o,middlewareData:l}=e,c=await nS(e,t);return o===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},aS=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:y=>{let{x,y:v}=y;return{x,y:v}}},...c}=dn(t,e),u={x:r,y:n},d=await Xo(e,c),h=Br(hn(a)),f=Gp(h);let m=u[f],w=u[h];if(i){const y=f==="y"?"top":"left",x=f==="y"?"bottom":"right",v=m+d[y],b=m-d[x];m=Yf(v,m,b)}if(o){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",v=w+d[y],b=w-d[x];w=Yf(v,w,b)}const g=l.fn({...e,[f]:m,[h]:w});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[f]:i,[h]:o}}}}}},iS=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=dn(t,e),d={x:r,y:n},h=Br(a),f=Gp(h);let m=d[f],w=d[h];const g=dn(l,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const b=f==="y"?"height":"width",k=i.reference[f]-i.floating[b]+y.mainAxis,j=i.reference[f]+i.reference[b]-y.mainAxis;m<k?m=k:m>j&&(m=j)}if(u){var x,v;const b=f==="y"?"width":"height",k=M2.has(hn(a)),j=i.reference[h]-i.floating[b]+(k&&((x=o.offset)==null?void 0:x[h])||0)+(k?0:y.crossAxis),N=i.reference[h]+i.reference[b]+(k?0:((v=o.offset)==null?void 0:v[h])||0)-(k?y.crossAxis:0);w<j?w=j:w>N&&(w=N)}return{[f]:m,[h]:w}}}},oS=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:a,rects:i,platform:o,elements:l}=e,{apply:c=()=>{},...u}=dn(t,e),d=await Xo(e,u),h=hn(a),f=$i(a),m=Br(a)==="y",{width:w,height:g}=i.floating;let y,x;h==="top"||h==="bottom"?(y=h,x=f===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(x=h,y=f==="end"?"top":"bottom");const v=g-d.top-d.bottom,b=w-d.left-d.right,k=us(g-d[y],v),j=us(w-d[x],b),N=!e.middlewareData.shift;let _=k,E=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(E=b),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=v),N&&!f){const A=Mt(d.left,0),$=Mt(d.right,0),O=Mt(d.top,0),J=Mt(d.bottom,0);m?E=w-2*(A!==0||$!==0?A+$:Mt(d.left,d.right)):_=g-2*(O!==0||J!==0?O+J:Mt(d.top,d.bottom))}await c({...e,availableWidth:E,availableHeight:_});const R=await o.getDimensions(l.floating);return w!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function dd(){return typeof window<"u"}function Fi(t){return L2(t)?(t.nodeName||"").toLowerCase():"#document"}function Ut(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kr(t){var e;return(e=(L2(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function L2(t){return dd()?t instanceof Node||t instanceof Ut(t).Node:!1}function _r(t){return dd()?t instanceof Element||t instanceof Ut(t).Element:!1}function qr(t){return dd()?t instanceof HTMLElement||t instanceof Ut(t).HTMLElement:!1}function Sx(t){return!dd()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ut(t).ShadowRoot}const lS=new Set(["inline","contents"]);function Pl(t){const{overflow:e,overflowX:r,overflowY:n,display:a}=Sr(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!lS.has(a)}const cS=new Set(["table","td","th"]);function uS(t){return cS.has(Fi(t))}const dS=[":popover-open",":modal"];function hd(t){return dS.some(e=>{try{return t.matches(e)}catch{return!1}})}const hS=["transform","translate","scale","rotate","perspective"],fS=["transform","translate","scale","rotate","perspective","filter"],mS=["paint","layout","strict","content"];function Jp(t){const e=Qp(),r=_r(t)?Sr(t):t;return hS.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||fS.some(n=>(r.willChange||"").includes(n))||mS.some(n=>(r.contain||"").includes(n))}function pS(t){let e=ds(t);for(;qr(e)&&!Si(e);){if(Jp(e))return e;if(hd(e))return null;e=ds(e)}return null}function Qp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gS=new Set(["html","body","#document"]);function Si(t){return gS.has(Fi(t))}function Sr(t){return Ut(t).getComputedStyle(t)}function fd(t){return _r(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ds(t){if(Fi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sx(t)&&t.host||Kr(t);return Sx(e)?e.host:e}function D2(t){const e=ds(t);return Si(e)?t.ownerDocument?t.ownerDocument.body:t.body:qr(e)&&Pl(e)?e:D2(e)}function Zo(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const a=D2(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),o=Ut(a);if(i){const l=Qf(o);return e.concat(o,o.visualViewport||[],Pl(a)?a:[],l&&r?Zo(l):[])}return e.concat(a,Zo(a,[],r))}function Qf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $2(t){const e=Sr(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const a=qr(t),i=a?t.offsetWidth:r,o=a?t.offsetHeight:n,l=xu(r)!==i||xu(n)!==o;return l&&(r=i,n=o),{width:r,height:n,$:l}}function Xp(t){return _r(t)?t:t.contextElement}function ti(t){const e=Xp(t);if(!qr(e))return zr(1);const r=e.getBoundingClientRect(),{width:n,height:a,$:i}=$2(e);let o=(i?xu(r.width):r.width)/n,l=(i?xu(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const xS=zr(0);function F2(t){const e=Ut(t);return!Qp()||!e.visualViewport?xS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function yS(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ut(t)?!1:e}function ea(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const a=t.getBoundingClientRect(),i=Xp(t);let o=zr(1);e&&(n?_r(n)&&(o=ti(n)):o=ti(t));const l=yS(i,r,n)?F2(i):zr(0);let c=(a.left+l.x)/o.x,u=(a.top+l.y)/o.y,d=a.width/o.x,h=a.height/o.y;if(i){const f=Ut(i),m=n&&_r(n)?Ut(n):n;let w=f,g=Qf(w);for(;g&&n&&m!==w;){const y=ti(g),x=g.getBoundingClientRect(),v=Sr(g),b=x.left+(g.clientLeft+parseFloat(v.paddingLeft))*y.x,k=x.top+(g.clientTop+parseFloat(v.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,h*=y.y,c+=b,u+=k,w=Ut(g),g=Qf(w)}}return vu({width:d,height:h,x:c,y:u})}function Zp(t,e){const r=fd(t).scrollLeft;return e?e.left+r:ea(Kr(t)).left+r}function B2(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),a=n.left+e.scrollLeft-(r?0:Zp(t,n)),i=n.top+e.scrollTop;return{x:a,y:i}}function vS(t){let{elements:e,rect:r,offsetParent:n,strategy:a}=t;const i=a==="fixed",o=Kr(n),l=e?hd(e.floating):!1;if(n===o||l&&i)return r;let c={scrollLeft:0,scrollTop:0},u=zr(1);const d=zr(0),h=qr(n);if((h||!h&&!i)&&((Fi(n)!=="body"||Pl(o))&&(c=fd(n)),qr(n))){const m=ea(n);u=ti(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}const f=o&&!h&&!i?B2(o,c,!0):zr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-c.scrollTop*u.y+d.y+f.y}}function bS(t){return Array.from(t.getClientRects())}function wS(t){const e=Kr(t),r=fd(t),n=t.ownerDocument.body,a=Mt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Mt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Zp(t);const l=-r.scrollTop;return Sr(n).direction==="rtl"&&(o+=Mt(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:l}}function kS(t,e){const r=Ut(t),n=Kr(t),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const u=Qp();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l,y:c}}const jS=new Set(["absolute","fixed"]);function NS(t,e){const r=ea(t,!0,e==="fixed"),n=r.top+t.clientTop,a=r.left+t.clientLeft,i=qr(t)?ti(t):zr(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,c=a*i.x,u=n*i.y;return{width:o,height:l,x:c,y:u}}function Cx(t,e,r){let n;if(e==="viewport")n=kS(t,r);else if(e==="document")n=wS(Kr(t));else if(_r(e))n=NS(e,r);else{const a=F2(t);n={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return vu(n)}function U2(t,e){const r=ds(t);return r===e||!_r(r)||Si(r)?!1:Sr(r).position==="fixed"||U2(r,e)}function _S(t,e){const r=e.get(t);if(r)return r;let n=Zo(t,[],!1).filter(l=>_r(l)&&Fi(l)!=="body"),a=null;const i=Sr(t).position==="fixed";let o=i?ds(t):t;for(;_r(o)&&!Si(o);){const l=Sr(o),c=Jp(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&jS.has(a.position)||Pl(o)&&!c&&U2(t,o))?n=n.filter(d=>d!==o):a=l,o=ds(o)}return e.set(t,n),n}function SS(t){let{element:e,boundary:r,rootBoundary:n,strategy:a}=t;const o=[...r==="clippingAncestors"?hd(e)?[]:_S(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((u,d)=>{const h=Cx(e,d,a);return u.top=Mt(h.top,u.top),u.right=us(h.right,u.right),u.bottom=us(h.bottom,u.bottom),u.left=Mt(h.left,u.left),u},Cx(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function CS(t){const{width:e,height:r}=$2(t);return{width:e,height:r}}function ES(t,e,r){const n=qr(e),a=Kr(e),i=r==="fixed",o=ea(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=zr(0);function u(){c.x=Zp(a)}if(n||!n&&!i)if((Fi(e)!=="body"||Pl(a))&&(l=fd(e)),n){const m=ea(e,!0,i,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&u();i&&!n&&a&&u();const d=a&&!n&&!i?B2(a,l):zr(0),h=o.left+l.scrollLeft-c.x-d.x,f=o.top+l.scrollTop-c.y-d.y;return{x:h,y:f,width:o.width,height:o.height}}function vh(t){return Sr(t).position==="static"}function Ex(t,e){if(!qr(t)||Sr(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kr(t)===r&&(r=r.ownerDocument.body),r}function W2(t,e){const r=Ut(t);if(hd(t))return r;if(!qr(t)){let a=ds(t);for(;a&&!Si(a);){if(_r(a)&&!vh(a))return a;a=ds(a)}return r}let n=Ex(t,e);for(;n&&uS(n)&&vh(n);)n=Ex(n,e);return n&&Si(n)&&vh(n)&&!Jp(n)?r:n||pS(t)||r}const TS=async function(t){const e=this.getOffsetParent||W2,r=this.getDimensions,n=await r(t.floating);return{reference:ES(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function RS(t){return Sr(t).direction==="rtl"}const AS={convertOffsetParentRelativeRectToViewportRelativeRect:vS,getDocumentElement:Kr,getClippingRect:SS,getOffsetParent:W2,getElementRects:TS,getClientRects:bS,getDimensions:CS,getScale:ti,isElement:_r,isRTL:RS};function z2(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function PS(t,e){let r=null,n;const a=Kr(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:h,width:f,height:m}=u;if(l||e(),!f||!m)return;const w=uc(h),g=uc(a.clientWidth-(d+f)),y=uc(a.clientHeight-(h+m)),x=uc(d),b={rootMargin:-w+"px "+-g+"px "+-y+"px "+-x+"px",threshold:Mt(0,us(1,c))||1};let k=!0;function j(N){const _=N[0].intersectionRatio;if(_!==c){if(!k)return o();_?o(!1,_):n=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!z2(u,t.getBoundingClientRect())&&o(),k=!1}try{r=new IntersectionObserver(j,{...b,root:a.ownerDocument})}catch{r=new IntersectionObserver(j,b)}r.observe(t)}return o(!0),i}function OS(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Xp(t),d=a||i?[...u?Zo(u):[],...Zo(e)]:[];d.forEach(x=>{a&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const h=u&&l?PS(u,r):null;let f=-1,m=null;o&&(m=new ResizeObserver(x=>{let[v]=x;v&&v.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(e)})),r()}),u&&!c&&m.observe(u),m.observe(e));let w,g=c?ea(t):null;c&&y();function y(){const x=ea(t);g&&!z2(g,x)&&r(),g=x,w=requestAnimationFrame(y)}return r(),()=>{var x;d.forEach(v=>{a&&v.removeEventListener("scroll",r),i&&v.removeEventListener("resize",r)}),h==null||h(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const IS=sS,MS=aS,LS=tS,DS=oS,$S=rS,Tx=eS,FS=iS,BS=(t,e,r)=>{const n=new Map,a={platform:AS,...r},i={...a.platform,_c:n};return Z6(t,e,{...a,platform:i})};var US=typeof document<"u",WS=function(){},Dc=US?p.useLayoutEffect:WS;function bu(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,a;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!bu(t[n],e[n]))return!1;return!0}if(a=Object.keys(t),r=a.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&t.$$typeof)&&!bu(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function H2(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Rx(t,e){const r=H2(t);return Math.round(e*r)/r}function bh(t){const e=p.useRef(t);return Dc(()=>{e.current=t}),e}function zS(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=t,[d,h]=p.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(n);bu(f,n)||m(n);const[w,g]=p.useState(null),[y,x]=p.useState(null),v=p.useCallback(T=>{T!==N.current&&(N.current=T,g(T))},[]),b=p.useCallback(T=>{T!==_.current&&(_.current=T,x(T))},[]),k=i||w,j=o||y,N=p.useRef(null),_=p.useRef(null),E=p.useRef(d),R=c!=null,A=bh(c),$=bh(a),O=bh(u),J=p.useCallback(()=>{if(!N.current||!_.current)return;const T={placement:e,strategy:r,middleware:f};$.current&&(T.platform=$.current),BS(N.current,_.current,T).then(C=>{const L={...C,isPositioned:O.current!==!1};M.current&&!bu(E.current,L)&&(E.current=L,_l.flushSync(()=>{h(L)}))})},[f,e,r,$,O]);Dc(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,h(T=>({...T,isPositioned:!1})))},[u]);const M=p.useRef(!1);Dc(()=>(M.current=!0,()=>{M.current=!1}),[]),Dc(()=>{if(k&&(N.current=k),j&&(_.current=j),k&&j){if(A.current)return A.current(k,j,J);J()}},[k,j,J,A,R]);const Z=p.useMemo(()=>({reference:N,floating:_,setReference:v,setFloating:b}),[v,b]),z=p.useMemo(()=>({reference:k,floating:j}),[k,j]),X=p.useMemo(()=>{const T={position:r,left:0,top:0};if(!z.floating)return T;const C=Rx(z.floating,d.x),L=Rx(z.floating,d.y);return l?{...T,transform:"translate("+C+"px, "+L+"px)",...H2(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:C,top:L}},[r,l,z.floating,d.x,d.y]);return p.useMemo(()=>({...d,update:J,refs:Z,elements:z,floatingStyles:X}),[d,J,Z,z,X])}const HS=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:a}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Tx({element:n.current,padding:a}).fn(r):{}:n?Tx({element:n,padding:a}).fn(r):{}}}},VS=(t,e)=>({...IS(t),options:[t,e]}),qS=(t,e)=>({...MS(t),options:[t,e]}),GS=(t,e)=>({...FS(t),options:[t,e]}),KS=(t,e)=>({...LS(t),options:[t,e]}),YS=(t,e)=>({...DS(t),options:[t,e]}),JS=(t,e)=>({...$S(t),options:[t,e]}),QS=(t,e)=>({...HS(t),options:[t,e]});var XS="Arrow",V2=p.forwardRef((t,e)=>{const{children:r,width:n=10,height:a=5,...i}=t;return s.jsx(oe.svg,{...i,ref:e,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});V2.displayName=XS;var ZS=V2;function md(t){const[e,r]=p.useState(void 0);return Vr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=t.offsetWidth,l=t.offsetHeight;r({width:o,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var eg="Popper",[q2,pd]=Gt(eg),[eC,G2]=q2(eg),K2=t=>{const{__scopePopper:e,children:r}=t,[n,a]=p.useState(null);return s.jsx(eC,{scope:e,anchor:n,onAnchorChange:a,children:r})};K2.displayName=eg;var Y2="PopperAnchor",J2=p.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...a}=t,i=G2(Y2,r),o=p.useRef(null),l=ve(e,o);return p.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:s.jsx(oe.div,{...a,ref:l})});J2.displayName=Y2;var tg="PopperContent",[tC,rC]=q2(tg),Q2=p.forwardRef((t,e)=>{var me,Yr,nt,Pr,xn,da;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=t,y=G2(tg,r),[x,v]=p.useState(null),b=ve(e,yn=>v(yn)),[k,j]=p.useState(null),N=md(k),_=(N==null?void 0:N.width)??0,E=(N==null?void 0:N.height)??0,R=n+(i!=="center"?"-"+i:""),A=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},$=Array.isArray(u)?u:[u],O=$.length>0,J={padding:A,boundary:$.filter(sC),altBoundary:O},{refs:M,floatingStyles:Z,placement:z,isPositioned:X,middlewareData:T}=zS({strategy:"fixed",placement:R,whileElementsMounted:(...yn)=>OS(...yn,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[VS({mainAxis:a+E,alignmentAxis:o}),c&&qS({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?GS():void 0,...J}),c&&KS({...J}),YS({...J,apply:({elements:yn,rects:Bl,availableWidth:$d,availableHeight:Ul})=>{const{width:Fd,height:Vi}=Bl.reference,ha=yn.floating.style;ha.setProperty("--radix-popper-available-width",`${$d}px`),ha.setProperty("--radix-popper-available-height",`${Ul}px`),ha.setProperty("--radix-popper-anchor-width",`${Fd}px`),ha.setProperty("--radix-popper-anchor-height",`${Vi}px`)}}),k&&QS({element:k,padding:l}),aC({arrowWidth:_,arrowHeight:E}),f&&JS({strategy:"referenceHidden",...J})]}),[C,L]=ew(z),q=zt(w);Vr(()=>{X&&(q==null||q())},[X,q]);const F=(me=T.arrow)==null?void 0:me.x,se=(Yr=T.arrow)==null?void 0:Yr.y,le=((nt=T.arrow)==null?void 0:nt.centerOffset)!==0,[De,We]=p.useState();return Vr(()=>{x&&We(window.getComputedStyle(x).zIndex)},[x]),s.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:X?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:De,"--radix-popper-transform-origin":[(Pr=T.transformOrigin)==null?void 0:Pr.x,(xn=T.transformOrigin)==null?void 0:xn.y].join(" "),...((da=T.hide)==null?void 0:da.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:s.jsx(tC,{scope:r,placedSide:C,onArrowChange:j,arrowX:F,arrowY:se,shouldHideArrow:le,children:s.jsx(oe.div,{"data-side":C,"data-align":L,...g,ref:b,style:{...g.style,animation:X?void 0:"none"}})})})});Q2.displayName=tg;var X2="PopperArrow",nC={top:"bottom",right:"left",bottom:"top",left:"right"},Z2=p.forwardRef(function(e,r){const{__scopePopper:n,...a}=e,i=rC(X2,n),o=nC[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(ZS,{...a,ref:r,style:{...a.style,display:"block"}})})});Z2.displayName=X2;function sC(t){return t!==null}var aC=t=>({name:"transformOrigin",options:t,fn(e){var y,x,v;const{placement:r,rects:n,middlewareData:a}=e,o=((y=a.arrow)==null?void 0:y.centerOffset)!==0,l=o?0:t.arrowWidth,c=o?0:t.arrowHeight,[u,d]=ew(r),h={start:"0%",center:"50%",end:"100%"}[d],f=(((x=a.arrow)==null?void 0:x.x)??0)+l/2,m=(((v=a.arrow)==null?void 0:v.y)??0)+c/2;let w="",g="";return u==="bottom"?(w=o?h:`${f}px`,g=`${-c}px`):u==="top"?(w=o?h:`${f}px`,g=`${n.floating.height+c}px`):u==="right"?(w=`${-c}px`,g=o?h:`${m}px`):u==="left"&&(w=`${n.floating.width+c}px`,g=o?h:`${m}px`),{data:{x:w,y:g}}}});function ew(t){const[e,r="center"]=t.split("-");return[e,r]}var iC=K2,tw=J2,rw=Q2,nw=Z2,[gd,sB]=Gt("Tooltip",[pd]),rg=pd(),sw="TooltipProvider",oC=700,Ax="tooltip.open",[lC,aw]=gd(sw),iw=t=>{const{__scopeTooltip:e,delayDuration:r=oC,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:i}=t,o=p.useRef(!0),l=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),s.jsx(lC,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:p.useCallback(u=>{l.current=u},[]),disableHoverableContent:a,children:i})};iw.displayName=sw;var ow="Tooltip",[aB,xd]=gd(ow),Xf="TooltipTrigger",cC=p.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,a=xd(Xf,r),i=aw(Xf,r),o=rg(r),l=p.useRef(null),c=ve(e,l,a.onTriggerChange),u=p.useRef(!1),d=p.useRef(!1),h=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),s.jsx(tw,{asChild:!0,...o,children:s.jsx(oe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:c,onPointerMove:W(t.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:W(t.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:W(t.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:W(t.onFocus,()=>{u.current||a.onOpen()}),onBlur:W(t.onBlur,a.onClose),onClick:W(t.onClick,a.onClose)})})});cC.displayName=Xf;var uC="TooltipPortal",[iB,dC]=gd(uC,{forceMount:void 0}),Ci="TooltipContent",lw=p.forwardRef((t,e)=>{const r=dC(Ci,t.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...i}=t,o=xd(Ci,t.__scopeTooltip);return s.jsx(ar,{present:n||o.open,children:o.disableHoverableContent?s.jsx(cw,{side:a,...i,ref:e}):s.jsx(hC,{side:a,...i,ref:e})})}),hC=p.forwardRef((t,e)=>{const r=xd(Ci,t.__scopeTooltip),n=aw(Ci,t.__scopeTooltip),a=p.useRef(null),i=ve(e,a),[o,l]=p.useState(null),{trigger:c,onClose:u}=r,d=a.current,{onPointerInTransitChange:h}=n,f=p.useCallback(()=>{l(null),h(!1)},[h]),m=p.useCallback((w,g)=>{const y=w.currentTarget,x={x:w.clientX,y:w.clientY},v=xC(x,y.getBoundingClientRect()),b=yC(x,v),k=vC(g.getBoundingClientRect()),j=wC([...b,...k]);l(j),h(!0)},[h]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(c&&d){const w=y=>m(y,d),g=y=>m(y,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",g)}}},[c,d,m,f]),p.useEffect(()=>{if(o){const w=g=>{const y=g.target,x={x:g.clientX,y:g.clientY},v=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),b=!bC(x,o);v?f():b&&(f(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,o,u,f]),s.jsx(cw,{...t,ref:i})}),[fC,mC]=gd(ow,{isInside:!1}),pC=o5("TooltipContent"),cw=p.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=t,c=xd(Ci,r),u=rg(r),{onClose:d}=c;return p.useEffect(()=>(document.addEventListener(Ax,d),()=>document.removeEventListener(Ax,d)),[d]),p.useEffect(()=>{if(c.trigger){const h=f=>{const m=f.target;m!=null&&m.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),s.jsx(El,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:s.jsxs(rw,{"data-state":c.stateAttribute,...u,...l,ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(pC,{children:n}),s.jsx(fC,{scope:r,isInside:!0,children:s.jsx(R5,{id:c.contentId,role:"tooltip",children:a||n})})]})})});lw.displayName=Ci;var uw="TooltipArrow",gC=p.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,a=rg(r);return mC(uw,r).isInside?null:s.jsx(nw,{...a,...n,ref:e})});gC.displayName=uw;function xC(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),a=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,a,i)){case i:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function yC(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function vC(t){const{top:e,right:r,bottom:n,left:a}=t;return[{x:a,y:e},{x:r,y:e},{x:r,y:n},{x:a,y:n}]}function bC(t,e){const{x:r,y:n}=t;let a=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const l=e[i],c=e[o],u=l.x,d=l.y,h=c.x,f=c.y;d>n!=f>n&&r<(h-u)*(n-d)/(f-d)+u&&(a=!a)}return a}function wC(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),kC(e)}function kC(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const a=t[n];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))e.pop();else break}e.push(a)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const a=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))r.pop();else break}r.push(a)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var jC=iw,dw=lw;const NC=jC,_C=p.forwardRef(({className:t,sideOffset:e=4,...r},n)=>s.jsx(dw,{ref:n,sideOffset:e,className:ke("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));_C.displayName=dw.displayName;var Ol=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ta=typeof window>"u"||"Deno"in globalThis;function Ct(){}function SC(t,e){return typeof t=="function"?t(e):t}function Zf(t){return typeof t=="number"&&t>=0&&t!==1/0}function hw(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ss(t,e){return typeof t=="function"?t(e):t}function Qt(t,e){return typeof t=="function"?t(e):t}function Px(t,e){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:l}=t;if(o){if(n){if(e.queryHash!==ng(o,e.options))return!1}else if(!tl(e.queryKey,o))return!1}if(r!=="all"){const c=e.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||a&&a!==e.state.fetchStatus||i&&!i(e))}function Ox(t,e){const{exact:r,status:n,predicate:a,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(r){if(el(e.options.mutationKey)!==el(i))return!1}else if(!tl(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||a&&!a(e))}function ng(t,e){return((e==null?void 0:e.queryKeyHashFn)||el)(t)}function el(t){return JSON.stringify(t,(e,r)=>tm(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function tl(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>tl(t[r],e[r])):!1}function fw(t,e){if(t===e)return t;const r=Ix(t)&&Ix(e);if(r||tm(t)&&tm(e)){const n=r?t:Object.keys(t),a=n.length,i=r?e:Object.keys(e),o=i.length,l=r?[]:{},c=new Set(n);let u=0;for(let d=0;d<o;d++){const h=r?d:i[d];(!r&&c.has(h)||r)&&t[h]===void 0&&e[h]===void 0?(l[h]=void 0,u++):(l[h]=fw(t[h],e[h]),l[h]===t[h]&&t[h]!==void 0&&u++)}return a===o&&u===a?t:l}return e}function em(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}function Ix(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function tm(t){if(!Mx(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!Mx(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Mx(t){return Object.prototype.toString.call(t)==="[object Object]"}function CC(t){return new Promise(e=>{setTimeout(e,t)})}function rm(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?fw(t,e):e}function EC(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function TC(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var sg=Symbol();function mw(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===sg?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function RC(t,e){return typeof t=="function"?t(...e):!!t}var Ls,Dn,ii,pv,AC=(pv=class extends Ol{constructor(){super();ne(this,Ls);ne(this,Dn);ne(this,ii);H(this,ii,e=>{if(!ta&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,Dn)||this.setEventListener(S(this,ii))}onUnsubscribe(){var e;this.hasListeners()||((e=S(this,Dn))==null||e.call(this),H(this,Dn,void 0))}setEventListener(e){var r;H(this,ii,e),(r=S(this,Dn))==null||r.call(this),H(this,Dn,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){S(this,Ls)!==e&&(H(this,Ls,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof S(this,Ls)=="boolean"?S(this,Ls):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ls=new WeakMap,Dn=new WeakMap,ii=new WeakMap,pv),ag=new AC,oi,$n,li,gv,PC=(gv=class extends Ol{constructor(){super();ne(this,oi,!0);ne(this,$n);ne(this,li);H(this,li,e=>{if(!ta&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){S(this,$n)||this.setEventListener(S(this,li))}onUnsubscribe(){var e;this.hasListeners()||((e=S(this,$n))==null||e.call(this),H(this,$n,void 0))}setEventListener(e){var r;H(this,li,e),(r=S(this,$n))==null||r.call(this),H(this,$n,e(this.setOnline.bind(this)))}setOnline(e){S(this,oi)!==e&&(H(this,oi,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return S(this,oi)}},oi=new WeakMap,$n=new WeakMap,li=new WeakMap,gv),wu=new PC;function nm(){let t,e;const r=new Promise((a,i)=>{t=a,e=i});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),t(a)},r.reject=a=>{n({status:"rejected",reason:a}),e(a)},r}function OC(t){return Math.min(1e3*2**t,3e4)}function pw(t){return(t??"online")==="online"?wu.isOnline():!0}var gw=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function wh(t){return t instanceof gw}function xw(t){let e=!1,r=0,n=!1,a;const i=nm(),o=g=>{var y;n||(f(new gw(g)),(y=t.abort)==null||y.call(t))},l=()=>{e=!0},c=()=>{e=!1},u=()=>ag.isFocused()&&(t.networkMode==="always"||wu.isOnline())&&t.canRun(),d=()=>pw(t.networkMode)&&t.canRun(),h=g=>{var y;n||(n=!0,(y=t.onSuccess)==null||y.call(t,g),a==null||a(),i.resolve(g))},f=g=>{var y;n||(n=!0,(y=t.onError)==null||y.call(t,g),a==null||a(),i.reject(g))},m=()=>new Promise(g=>{var y;a=x=>{(n||u())&&g(x)},(y=t.onPause)==null||y.call(t)}).then(()=>{var g;a=void 0,n||(g=t.onContinue)==null||g.call(t)}),w=()=>{if(n)return;let g;const y=r===0?t.initialPromise:void 0;try{g=y??t.fn()}catch(x){g=Promise.reject(x)}Promise.resolve(g).then(h).catch(x=>{var N;if(n)return;const v=t.retry??(ta?0:3),b=t.retryDelay??OC,k=typeof b=="function"?b(r,x):b,j=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,x);if(e||!j){f(x);return}r++,(N=t.onFail)==null||N.call(t,r,x),CC(k).then(()=>u()?void 0:m()).then(()=>{e?f(x):w()})})};return{promise:i,cancel:o,continue:()=>(a==null||a(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?w():m().then(w),i)}}var IC=t=>setTimeout(t,0);function MC(){let t=[],e=0,r=l=>{l()},n=l=>{l()},a=IC;const i=l=>{e?t.push(l):a(()=>{r(l)})},o=()=>{const l=t;t=[],l.length&&a(()=>{n(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{a=l}}}var ct=MC(),Ds,xv,yw=(xv=class{constructor(){ne(this,Ds)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zf(this.gcTime)&&H(this,Ds,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ta?1/0:5*60*1e3))}clearGcTimeout(){S(this,Ds)&&(clearTimeout(S(this,Ds)),H(this,Ds,void 0))}},Ds=new WeakMap,xv),ci,$s,Jt,Fs,mt,gl,Bs,pr,Xr,yv,LC=(yv=class extends yw{constructor(e){super();ne(this,pr);ne(this,ci);ne(this,$s);ne(this,Jt);ne(this,Fs);ne(this,mt);ne(this,gl);ne(this,Bs);H(this,Bs,!1),H(this,gl,e.defaultOptions),this.setOptions(e.options),this.observers=[],H(this,Fs,e.client),H(this,Jt,S(this,Fs).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,H(this,ci,DC(this.options)),this.state=e.state??S(this,ci),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=S(this,mt))==null?void 0:e.promise}setOptions(e){this.options={...S(this,gl),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Jt).remove(this)}setData(e,r){const n=rm(this.state.data,e,this.options);return ge(this,pr,Xr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){ge(this,pr,Xr).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,a;const r=(n=S(this,mt))==null?void 0:n.promise;return(a=S(this,mt))==null||a.cancel(e),r?r.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,ci))}isActive(){return this.observers.some(e=>Qt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ss(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!hw(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=S(this,mt))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=S(this,mt))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),S(this,Jt).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(S(this,mt)&&(S(this,Bs)?S(this,mt).cancel({revert:!0}):S(this,mt).cancelRetry()),this.scheduleGc()),S(this,Jt).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,pr,Xr).call(this,{type:"invalidate"})}fetch(e,r){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,mt))return S(this,mt).continueRetry(),S(this,mt).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,a=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(H(this,Bs,!0),n.signal)})},i=()=>{const f=mw(this.options,r),w=(()=>{const g={client:S(this,Fs),queryKey:this.queryKey,meta:this.meta};return a(g),g})();return H(this,Bs,!1),this.options.persister?this.options.persister(f,w,this):f(w)},l=(()=>{const f={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Fs),state:this.state,fetchFn:i};return a(f),f})();(u=this.options.behavior)==null||u.onFetch(l,this),H(this,$s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&ge(this,pr,Xr).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var m,w,g,y;wh(f)&&f.silent||ge(this,pr,Xr).call(this,{type:"error",error:f}),wh(f)||((w=(m=S(this,Jt).config).onError)==null||w.call(m,f,this),(y=(g=S(this,Jt).config).onSettled)==null||y.call(g,this.state.data,f,this)),this.scheduleGc()};return H(this,mt,xw({initialPromise:r==null?void 0:r.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var m,w,g,y;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){c(x);return}(w=(m=S(this,Jt).config).onSuccess)==null||w.call(m,f,this),(y=(g=S(this,Jt).config).onSettled)==null||y.call(g,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,m)=>{ge(this,pr,Xr).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{ge(this,pr,Xr).call(this,{type:"pause"})},onContinue:()=>{ge(this,pr,Xr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),S(this,mt).start()}},ci=new WeakMap,$s=new WeakMap,Jt=new WeakMap,Fs=new WeakMap,mt=new WeakMap,gl=new WeakMap,Bs=new WeakMap,pr=new WeakSet,Xr=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...vw(n.data,this.options),fetchMeta:e.meta??null};case"success":return H(this,$s,void 0),{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return wh(a)&&a.revert&&S(this,$s)?{...S(this,$s),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),ct.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),S(this,Jt).notify({query:this,type:"updated",action:e})})},yv);function vw(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pw(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function DC(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Mr,vv,$C=(vv=class extends Ol{constructor(e={}){super();ne(this,Mr);this.config=e,H(this,Mr,new Map)}build(e,r,n){const a=r.queryKey,i=r.queryHash??ng(a,r);let o=this.get(i);return o||(o=new LC({client:e,queryKey:a,queryHash:i,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){S(this,Mr).has(e.queryHash)||(S(this,Mr).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=S(this,Mr).get(e.queryHash);r&&(e.destroy(),r===e&&S(this,Mr).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ct.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return S(this,Mr).get(e)}getAll(){return[...S(this,Mr).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Px(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>Px(e,n)):r}notify(e){ct.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){ct.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ct.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Mr=new WeakMap,vv),Lr,xt,Us,Dr,Cn,bv,FC=(bv=class extends yw{constructor(e){super();ne(this,Dr);ne(this,Lr);ne(this,xt);ne(this,Us);this.mutationId=e.mutationId,H(this,xt,e.mutationCache),H(this,Lr,[]),this.state=e.state||BC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){S(this,Lr).includes(e)||(S(this,Lr).push(e),this.clearGcTimeout(),S(this,xt).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){H(this,Lr,S(this,Lr).filter(r=>r!==e)),this.scheduleGc(),S(this,xt).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){S(this,Lr).length||(this.state.status==="pending"?this.scheduleGc():S(this,xt).remove(this))}continue(){var e;return((e=S(this,Us))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,l,c,u,d,h,f,m,w,g,y,x,v,b,k,j,N,_,E;const r=()=>{ge(this,Dr,Cn).call(this,{type:"continue"})};H(this,Us,xw({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(R,A)=>{ge(this,Dr,Cn).call(this,{type:"failed",failureCount:R,error:A})},onPause:()=>{ge(this,Dr,Cn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,xt).canRun(this)}));const n=this.state.status==="pending",a=!S(this,Us).canStart();try{if(n)r();else{ge(this,Dr,Cn).call(this,{type:"pending",variables:e,isPaused:a}),await((o=(i=S(this,xt).config).onMutate)==null?void 0:o.call(i,e,this));const A=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,e));A!==this.state.context&&ge(this,Dr,Cn).call(this,{type:"pending",context:A,variables:e,isPaused:a})}const R=await S(this,Us).start();return await((d=(u=S(this,xt).config).onSuccess)==null?void 0:d.call(u,R,e,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,R,e,this.state.context)),await((w=(m=S(this,xt).config).onSettled)==null?void 0:w.call(m,R,null,this.state.variables,this.state.context,this)),await((y=(g=this.options).onSettled)==null?void 0:y.call(g,R,null,e,this.state.context)),ge(this,Dr,Cn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((v=(x=S(this,xt).config).onError)==null?void 0:v.call(x,R,e,this.state.context,this)),await((k=(b=this.options).onError)==null?void 0:k.call(b,R,e,this.state.context)),await((N=(j=S(this,xt).config).onSettled)==null?void 0:N.call(j,void 0,R,this.state.variables,this.state.context,this)),await((E=(_=this.options).onSettled)==null?void 0:E.call(_,void 0,R,e,this.state.context)),R}finally{ge(this,Dr,Cn).call(this,{type:"error",error:R})}}finally{S(this,xt).runNext(this)}}},Lr=new WeakMap,xt=new WeakMap,Us=new WeakMap,Dr=new WeakSet,Cn=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),ct.batch(()=>{S(this,Lr).forEach(n=>{n.onMutationUpdate(e)}),S(this,xt).notify({mutation:this,type:"updated",action:e})})},bv);function BC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rn,gr,xl,wv,UC=(wv=class extends Ol{constructor(e={}){super();ne(this,rn);ne(this,gr);ne(this,xl);this.config=e,H(this,rn,new Set),H(this,gr,new Map),H(this,xl,0)}build(e,r,n){const a=new FC({mutationCache:this,mutationId:++zl(this,xl)._,options:e.defaultMutationOptions(r),state:n});return this.add(a),a}add(e){S(this,rn).add(e);const r=dc(e);if(typeof r=="string"){const n=S(this,gr).get(r);n?n.push(e):S(this,gr).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(S(this,rn).delete(e)){const r=dc(e);if(typeof r=="string"){const n=S(this,gr).get(r);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&S(this,gr).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=dc(e);if(typeof r=="string"){const n=S(this,gr).get(r),a=n==null?void 0:n.find(i=>i.state.status==="pending");return!a||a===e}else return!0}runNext(e){var n;const r=dc(e);if(typeof r=="string"){const a=(n=S(this,gr).get(r))==null?void 0:n.find(i=>i!==e&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ct.batch(()=>{S(this,rn).forEach(e=>{this.notify({type:"removed",mutation:e})}),S(this,rn).clear(),S(this,gr).clear()})}getAll(){return Array.from(S(this,rn))}find(e){const r={exact:!0,...e};return this.getAll().find(n=>Ox(r,n))}findAll(e={}){return this.getAll().filter(r=>Ox(e,r))}notify(e){ct.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>r.state.isPaused);return ct.batch(()=>Promise.all(e.map(r=>r.continue().catch(Ct))))}},rn=new WeakMap,gr=new WeakMap,xl=new WeakMap,wv);function dc(t){var e;return(e=t.options.scope)==null?void 0:e.id}function Lx(t){return{onFetch:(e,r)=>{var d,h,f,m,w;const n=e.options,a=(f=(h=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((m=e.state.data)==null?void 0:m.pages)||[],o=((w=e.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let g=!1;const y=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(e.signal.aborted?g=!0:e.signal.addEventListener("abort",()=>{g=!0}),e.signal)})},x=mw(e.options,e.fetchOptions),v=async(b,k,j)=>{if(g)return Promise.reject();if(k==null&&b.pages.length)return Promise.resolve(b);const _=(()=>{const $={client:e.client,queryKey:e.queryKey,pageParam:k,direction:j?"backward":"forward",meta:e.options.meta};return y($),$})(),E=await x(_),{maxPages:R}=e.options,A=j?TC:EC;return{pages:A(b.pages,E,R),pageParams:A(b.pageParams,k,R)}};if(a&&i.length){const b=a==="backward",k=b?WC:Dx,j={pages:i,pageParams:o},N=k(n,j);l=await v(j,N,b)}else{const b=t??i.length;do{const k=c===0?o[0]??n.initialPageParam:Dx(n,l);if(c>0&&k==null)break;l=await v(l,k),c++}while(c<b)}return l};e.options.persister?e.fetchFn=()=>{var g,y;return(y=(g=e.options).persister)==null?void 0:y.call(g,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=u}}}function Dx(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function WC(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var ze,Fn,Bn,ui,di,Un,hi,fi,kv,zC=(kv=class{constructor(t={}){ne(this,ze);ne(this,Fn);ne(this,Bn);ne(this,ui);ne(this,di);ne(this,Un);ne(this,hi);ne(this,fi);H(this,ze,t.queryCache||new $C),H(this,Fn,t.mutationCache||new UC),H(this,Bn,t.defaultOptions||{}),H(this,ui,new Map),H(this,di,new Map),H(this,Un,0)}mount(){zl(this,Un)._++,S(this,Un)===1&&(H(this,hi,ag.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,ze).onFocus())})),H(this,fi,wu.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,ze).onOnline())})))}unmount(){var t,e;zl(this,Un)._--,S(this,Un)===0&&((t=S(this,hi))==null||t.call(this),H(this,hi,void 0),(e=S(this,fi))==null||e.call(this),H(this,fi,void 0))}isFetching(t){return S(this,ze).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,Fn).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=S(this,ze).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=S(this,ze).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(ss(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return S(this,ze).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),a=S(this,ze).get(n.queryHash),i=a==null?void 0:a.state.data,o=SC(e,i);if(o!==void 0)return S(this,ze).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return ct.batch(()=>S(this,ze).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=S(this,ze).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=S(this,ze);ct.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=S(this,ze);return ct.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=ct.batch(()=>S(this,ze).findAll(t).map(a=>a.cancel(r)));return Promise.all(n).then(Ct).catch(Ct)}invalidateQueries(t,e={}){return ct.batch(()=>(S(this,ze).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=ct.batch(()=>S(this,ze).findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,r);return r.throwOnError||(i=i.catch(Ct)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Ct)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=S(this,ze).build(this,e);return r.isStaleByTime(ss(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ct).catch(Ct)}fetchInfiniteQuery(t){return t.behavior=Lx(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ct).catch(Ct)}ensureInfiniteQueryData(t){return t.behavior=Lx(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return wu.isOnline()?S(this,Fn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,ze)}getMutationCache(){return S(this,Fn)}getDefaultOptions(){return S(this,Bn)}setDefaultOptions(t){H(this,Bn,t)}setQueryDefaults(t,e){S(this,ui).set(el(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...S(this,ui).values()],r={};return e.forEach(n=>{tl(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){S(this,di).set(el(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...S(this,di).values()],r={};return e.forEach(n=>{tl(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...S(this,Bn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ng(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===sg&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,Bn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,ze).clear(),S(this,Fn).clear()}},ze=new WeakMap,Fn=new WeakMap,Bn=new WeakMap,ui=new WeakMap,di=new WeakMap,Un=new WeakMap,hi=new WeakMap,fi=new WeakMap,kv),_t,xe,yl,yt,Ws,mi,Wn,zn,vl,pi,gi,zs,Hs,Hn,xi,je,po,sm,am,im,om,lm,cm,um,bw,jv,HC=(jv=class extends Ol{constructor(e,r){super();ne(this,je);ne(this,_t);ne(this,xe);ne(this,yl);ne(this,yt);ne(this,Ws);ne(this,mi);ne(this,Wn);ne(this,zn);ne(this,vl);ne(this,pi);ne(this,gi);ne(this,zs);ne(this,Hs);ne(this,Hn);ne(this,xi,new Set);this.options=r,H(this,_t,e),H(this,zn,null),H(this,Wn,nm()),this.options.experimental_prefetchInRender||S(this,Wn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,xe).addObserver(this),$x(S(this,xe),this.options)?ge(this,je,po).call(this):this.updateResult(),ge(this,je,om).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dm(S(this,xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dm(S(this,xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,je,lm).call(this),ge(this,je,cm).call(this),S(this,xe).removeObserver(this)}setOptions(e){const r=this.options,n=S(this,xe);if(this.options=S(this,_t).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qt(this.options.enabled,S(this,xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,je,um).call(this),S(this,xe).setOptions(this.options),r._defaulted&&!em(this.options,r)&&S(this,_t).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,xe),observer:this});const a=this.hasListeners();a&&Fx(S(this,xe),n,this.options,r)&&ge(this,je,po).call(this),this.updateResult(),a&&(S(this,xe)!==n||Qt(this.options.enabled,S(this,xe))!==Qt(r.enabled,S(this,xe))||ss(this.options.staleTime,S(this,xe))!==ss(r.staleTime,S(this,xe)))&&ge(this,je,sm).call(this);const i=ge(this,je,am).call(this);a&&(S(this,xe)!==n||Qt(this.options.enabled,S(this,xe))!==Qt(r.enabled,S(this,xe))||i!==S(this,Hn))&&ge(this,je,im).call(this,i)}getOptimisticResult(e){const r=S(this,_t).getQueryCache().build(S(this,_t),e),n=this.createResult(r,e);return qC(this,n)&&(H(this,yt,n),H(this,mi,this.options),H(this,Ws,S(this,xe).state)),n}getCurrentResult(){return S(this,yt)}trackResult(e,r){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(e){S(this,xi).add(e)}getCurrentQuery(){return S(this,xe)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const r=S(this,_t).defaultQueryOptions(e),n=S(this,_t).getQueryCache().build(S(this,_t),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(e){return ge(this,je,po).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,yt)))}createResult(e,r){var R;const n=S(this,xe),a=this.options,i=S(this,yt),o=S(this,Ws),l=S(this,mi),u=e!==n?e.state:S(this,yl),{state:d}=e;let h={...d},f=!1,m;if(r._optimisticResults){const A=this.hasListeners(),$=!A&&$x(e,r),O=A&&Fx(e,n,r,a);($||O)&&(h={...h,...vw(d.data,e.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:g,status:y}=h;m=h.data;let x=!1;if(r.placeholderData!==void 0&&m===void 0&&y==="pending"){let A;i!=null&&i.isPlaceholderData&&r.placeholderData===(l==null?void 0:l.placeholderData)?(A=i.data,x=!0):A=typeof r.placeholderData=="function"?r.placeholderData((R=S(this,gi))==null?void 0:R.state.data,S(this,gi)):r.placeholderData,A!==void 0&&(y="success",m=rm(i==null?void 0:i.data,A,r),f=!0)}if(r.select&&m!==void 0&&!x)if(i&&m===(o==null?void 0:o.data)&&r.select===S(this,vl))m=S(this,pi);else try{H(this,vl,r.select),m=r.select(m),m=rm(i==null?void 0:i.data,m,r),H(this,pi,m),H(this,zn,null)}catch(A){H(this,zn,A)}S(this,zn)&&(w=S(this,zn),m=S(this,pi),g=Date.now(),y="error");const v=h.fetchStatus==="fetching",b=y==="pending",k=y==="error",j=b&&v,N=m!==void 0,E={status:y,fetchStatus:h.fetchStatus,isPending:b,isSuccess:y==="success",isError:k,isInitialLoading:j,isLoading:j,data:m,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:g,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:k&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:k&&N,isStale:ig(e,r),refetch:this.refetch,promise:S(this,Wn),isEnabled:Qt(r.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const A=J=>{E.status==="error"?J.reject(E.error):E.data!==void 0&&J.resolve(E.data)},$=()=>{const J=H(this,Wn,E.promise=nm());A(J)},O=S(this,Wn);switch(O.status){case"pending":e.queryHash===n.queryHash&&A(O);break;case"fulfilled":(E.status==="error"||E.data!==O.value)&&$();break;case"rejected":(E.status!=="error"||E.error!==O.reason)&&$();break}}return E}updateResult(){const e=S(this,yt),r=this.createResult(S(this,xe),this.options);if(H(this,Ws,S(this,xe).state),H(this,mi,this.options),S(this,Ws).data!==void 0&&H(this,gi,S(this,xe)),em(r,e))return;H(this,yt,r);const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!S(this,xi).size)return!0;const o=new Set(i??S(this,xi));return this.options.throwOnError&&o.add("error"),Object.keys(S(this,yt)).some(l=>{const c=l;return S(this,yt)[c]!==e[c]&&o.has(c)})};ge(this,je,bw).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,je,om).call(this)}},_t=new WeakMap,xe=new WeakMap,yl=new WeakMap,yt=new WeakMap,Ws=new WeakMap,mi=new WeakMap,Wn=new WeakMap,zn=new WeakMap,vl=new WeakMap,pi=new WeakMap,gi=new WeakMap,zs=new WeakMap,Hs=new WeakMap,Hn=new WeakMap,xi=new WeakMap,je=new WeakSet,po=function(e){ge(this,je,um).call(this);let r=S(this,xe).fetch(this.options,e);return e!=null&&e.throwOnError||(r=r.catch(Ct)),r},sm=function(){ge(this,je,lm).call(this);const e=ss(this.options.staleTime,S(this,xe));if(ta||S(this,yt).isStale||!Zf(e))return;const n=hw(S(this,yt).dataUpdatedAt,e)+1;H(this,zs,setTimeout(()=>{S(this,yt).isStale||this.updateResult()},n))},am=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,xe)):this.options.refetchInterval)??!1},im=function(e){ge(this,je,cm).call(this),H(this,Hn,e),!(ta||Qt(this.options.enabled,S(this,xe))===!1||!Zf(S(this,Hn))||S(this,Hn)===0)&&H(this,Hs,setInterval(()=>{(this.options.refetchIntervalInBackground||ag.isFocused())&&ge(this,je,po).call(this)},S(this,Hn)))},om=function(){ge(this,je,sm).call(this),ge(this,je,im).call(this,ge(this,je,am).call(this))},lm=function(){S(this,zs)&&(clearTimeout(S(this,zs)),H(this,zs,void 0))},cm=function(){S(this,Hs)&&(clearInterval(S(this,Hs)),H(this,Hs,void 0))},um=function(){const e=S(this,_t).getQueryCache().build(S(this,_t),this.options);if(e===S(this,xe))return;const r=S(this,xe);H(this,xe,e),H(this,yl,e.state),this.hasListeners()&&(r==null||r.removeObserver(this),e.addObserver(this))},bw=function(e){ct.batch(()=>{e.listeners&&this.listeners.forEach(r=>{r(S(this,yt))}),S(this,_t).getQueryCache().notify({query:S(this,xe),type:"observerResultsUpdated"})})},jv);function VC(t,e){return Qt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function $x(t,e){return VC(t,e)||t.state.data!==void 0&&dm(t,e,e.refetchOnMount)}function dm(t,e,r){if(Qt(e.enabled,t)!==!1&&ss(e.staleTime,t)!=="static"){const n=typeof r=="function"?r(t):r;return n==="always"||n!==!1&&ig(t,e)}return!1}function Fx(t,e,r,n){return(t!==e||Qt(n.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&ig(t,r)}function ig(t,e){return Qt(e.enabled,t)!==!1&&t.isStaleByTime(ss(e.staleTime,t))}function qC(t,e){return!em(t.getCurrentResult(),e)}var ww=p.createContext(void 0),GC=t=>{const e=p.useContext(ww);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},KC=({client:t,children:e})=>(p.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),s.jsx(ww.Provider,{value:t,children:e})),kw=p.createContext(!1),YC=()=>p.useContext(kw);kw.Provider;function JC(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var QC=p.createContext(JC()),XC=()=>p.useContext(QC),ZC=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},e7=t=>{p.useEffect(()=>{t.clearReset()},[t])},t7=({result:t,errorResetBoundary:e,throwOnError:r,query:n,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&n&&(a&&t.data===void 0||RC(r,[t.error,n])),r7=t=>{if(t.suspense){const e=n=>n==="static"?n:Math.max(n??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...n)=>e(r(...n)):e(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},n7=(t,e)=>t.isLoading&&t.isFetching&&!e,s7=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Bx=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function a7(t,e,r){var h,f,m,w,g;const n=YC(),a=XC(),i=GC(),o=i.defaultQueryOptions(t);(f=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,o),o._optimisticResults=n?"isRestoring":"optimistic",r7(o),ZC(o,a),e7(a);const l=!i.getQueryCache().get(o.queryHash),[c]=p.useState(()=>new e(i,o)),u=c.getOptimisticResult(o),d=!n&&t.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const x=d?c.subscribe(ct.batchCalls(y)):Ct;return c.updateResult(),x},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setOptions(o)},[o,c]),s7(o,u))throw Bx(o,c,a);if(t7({result:u,errorResetBoundary:a,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw u.error;if((w=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||w.call(m,o,u),o.experimental_prefetchInRender&&!ta&&n7(u,n)){const y=l?Bx(o,c,a):(g=i.getQueryCache().get(o.queryHash))==null?void 0:g.promise;y==null||y.catch(Ct).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?u:c.trackResult(u)}function jw(t,e){return a7(t,HC)}/**
 * @remix-run/router v1.23.0
 *
 * 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 rl(){return rl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rl.apply(this,arguments)}var Gn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Gn||(Gn={}));const Ux="popstate";function i7(t){t===void 0&&(t={});function e(n,a){let{pathname:i,search:o,hash:l}=n.location;return hm("",{pathname:i,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:ku(a)}return l7(e,r,null,t)}function Ke(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Nw(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function o7(){return Math.random().toString(36).substr(2,8)}function Wx(t,e){return{usr:t.state,key:t.key,idx:e}}function hm(t,e,r,n){return r===void 0&&(r=null),rl({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Bi(e):e,{state:r,key:e&&e.key||n||o7()})}function ku(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Bi(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function l7(t,e,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,l=Gn.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(rl({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function h(){l=Gn.Pop;let y=d(),x=y==null?null:y-u;u=y,c&&c({action:l,location:g.location,delta:x})}function f(y,x){l=Gn.Push;let v=hm(g.location,y,x);u=d()+1;let b=Wx(v,u),k=g.createHref(v);try{o.pushState(b,"",k)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;a.location.assign(k)}i&&c&&c({action:l,location:g.location,delta:1})}function m(y,x){l=Gn.Replace;let v=hm(g.location,y,x);u=d();let b=Wx(v,u),k=g.createHref(v);o.replaceState(b,"",k),i&&c&&c({action:l,location:g.location,delta:0})}function w(y){let x=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof y=="string"?y:ku(y);return v=v.replace(/ $/,"%20"),Ke(x,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,x)}let g={get action(){return l},get location(){return t(a,o)},listen(y){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(Ux,h),c=y,()=>{a.removeEventListener(Ux,h),c=null}},createHref(y){return e(a,y)},createURL:w,encodeLocation(y){let x=w(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:m,go(y){return o.go(y)}};return g}var zx;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(zx||(zx={}));function c7(t,e,r){return r===void 0&&(r="/"),u7(t,e,r,!1)}function u7(t,e,r,n){let a=typeof e=="string"?Bi(e):e,i=og(a.pathname||"/",r);if(i==null)return null;let o=_w(t);d7(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=k7(i);l=b7(o[c],u,n)}return l}function _w(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(Ke(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=as([n,c.relativePath]),d=r.concat(c);i.children&&i.children.length>0&&(Ke(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_w(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:y7(u,i.index),routesMeta:d})};return t.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let c of Sw(i.path))a(i,o,c)}),e}function Sw(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=Sw(n.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...o),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function d7(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:v7(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const h7=/^:[\w-]+$/,f7=3,m7=2,p7=1,g7=10,x7=-2,Hx=t=>t==="*";function y7(t,e){let r=t.split("/"),n=r.length;return r.some(Hx)&&(n+=x7),e&&(n+=m7),r.filter(a=>!Hx(a)).reduce((a,i)=>a+(h7.test(i)?f7:i===""?p7:g7),n)}function v7(t,e){return t.length===e.length&&t.slice(0,-1).every((n,a)=>n===e[a])?t[t.length-1]-e[e.length-1]:0}function b7(t,e,r){let{routesMeta:n}=t,a={},i="/",o=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=i==="/"?e:e.slice(i.length)||"/",h=Vx({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),f=c.route;if(!h&&u&&r&&!n[n.length-1].route.index&&(h=Vx({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(a,h.params),o.push({params:a,pathname:as([i,h.pathname]),pathnameBase:S7(as([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=as([i,h.pathnameBase]))}return o}function Vx(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=w7(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,d,h)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let g=l[h]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const w=l[h];return m&&!w?u[f]=void 0:u[f]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:t}}function w7(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Nw(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function k7(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Nw(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function og(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function j7(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?Bi(t):t;return{pathname:r?r.startsWith("/")?r:N7(r,e):e,search:C7(n),hash:E7(a)}}function N7(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function kh(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _7(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function lg(t,e){let r=_7(t);return e?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function cg(t,e,r,n){n===void 0&&(n=!1);let a;typeof t=="string"?a=Bi(t):(a=rl({},t),Ke(!a.pathname||!a.pathname.includes("?"),kh("?","pathname","search",a)),Ke(!a.pathname||!a.pathname.includes("#"),kh("#","pathname","hash",a)),Ke(!a.search||!a.search.includes("#"),kh("#","search","hash",a)));let i=t===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=r;else{let h=e.length-1;if(!n&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),h-=1;a.pathname=f.join("/")}l=h>=0?e[h]:"/"}let c=j7(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const as=t=>t.join("/").replace(/\/\/+/g,"/"),S7=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),C7=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,E7=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function T7(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Cw=["post","put","patch","delete"];new Set(Cw);const R7=["get",...Cw];new Set(R7);/**
 * React Router v6.30.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 nl(){return nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nl.apply(this,arguments)}const ug=p.createContext(null),A7=p.createContext(null),ys=p.createContext(null),yd=p.createContext(null),pn=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Ew=p.createContext(null);function P7(t,e){let{relative:r}=e===void 0?{}:e;Ui()||Ke(!1);let{basename:n,navigator:a}=p.useContext(ys),{hash:i,pathname:o,search:l}=Rw(t,{relative:r}),c=o;return n!=="/"&&(c=o==="/"?n:as([n,o])),a.createHref({pathname:c,search:l,hash:i})}function Ui(){return p.useContext(yd)!=null}function vs(){return Ui()||Ke(!1),p.useContext(yd).location}function Tw(t){p.useContext(ys).static||p.useLayoutEffect(t)}function Il(){let{isDataRoute:t}=p.useContext(pn);return t?V7():O7()}function O7(){Ui()||Ke(!1);let t=p.useContext(ug),{basename:e,future:r,navigator:n}=p.useContext(ys),{matches:a}=p.useContext(pn),{pathname:i}=vs(),o=JSON.stringify(lg(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return Tw(()=>{l.current=!0}),p.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){n.go(u);return}let h=cg(u,JSON.parse(o),i,d.relative==="path");t==null&&e!=="/"&&(h.pathname=h.pathname==="/"?e:as([e,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[e,n,o,i,t])}function dg(){let{matches:t}=p.useContext(pn),e=t[t.length-1];return e?e.params:{}}function Rw(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=p.useContext(ys),{matches:a}=p.useContext(pn),{pathname:i}=vs(),o=JSON.stringify(lg(a,n.v7_relativeSplatPath));return p.useMemo(()=>cg(t,JSON.parse(o),i,r==="path"),[t,o,i,r])}function I7(t,e){return M7(t,e)}function M7(t,e,r,n){Ui()||Ke(!1);let{navigator:a}=p.useContext(ys),{matches:i}=p.useContext(pn),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=vs(),d;if(e){var h;let y=typeof e=="string"?Bi(e):e;c==="/"||(h=y.pathname)!=null&&h.startsWith(c)||Ke(!1),d=y}else d=u;let f=d.pathname||"/",m=f;if(c!=="/"){let y=c.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=c7(t,{pathname:m}),g=B7(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:as([c,a.encodeLocation?a.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:as([c,a.encodeLocation?a.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n);return e&&g?p.createElement(yd.Provider,{value:{location:nl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Gn.Pop}},g):g}function L7(){let t=H7(),e=T7(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={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"}},e),r?p.createElement("pre",{style:a},r):null,null)}const D7=p.createElement(L7,null);class $7 extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?p.createElement(pn.Provider,{value:this.props.routeContext},p.createElement(Ew.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function F7(t){let{routeContext:e,match:r,children:n}=t,a=p.useContext(ug);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(pn.Provider,{value:e},n)}function B7(t,e,r,n){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if(!r)return null;if(r.errors)t=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,l=(a=r)==null?void 0:a.errors;if(l!=null){let d=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||Ke(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=d),h.route.id){let{loaderData:f,errors:m}=r,w=h.route.loader&&f[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||w){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,h,f)=>{let m,w=!1,g=null,y=null;r&&(m=l&&h.route.id?l[h.route.id]:void 0,g=h.route.errorElement||D7,c&&(u<0&&f===0?(w=!0,y=null):u===f&&(w=!0,y=h.route.hydrateFallbackElement||null)));let x=e.concat(o.slice(0,f+1)),v=()=>{let b;return m?b=g:w?b=y:h.route.Component?b=p.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=d,p.createElement(F7,{match:h,routeContext:{outlet:d,matches:x,isDataRoute:r!=null},children:b})};return r&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?p.createElement($7,{location:r.location,revalidation:r.revalidation,component:g,error:m,children:v(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):v()},null)}var Aw=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Aw||{}),ju=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(ju||{});function U7(t){let e=p.useContext(ug);return e||Ke(!1),e}function W7(t){let e=p.useContext(A7);return e||Ke(!1),e}function z7(t){let e=p.useContext(pn);return e||Ke(!1),e}function Pw(t){let e=z7(),r=e.matches[e.matches.length-1];return r.route.id||Ke(!1),r.route.id}function H7(){var t;let e=p.useContext(Ew),r=W7(ju.UseRouteError),n=Pw(ju.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function V7(){let{router:t}=U7(Aw.UseNavigateStable),e=Pw(ju.UseNavigateStable),r=p.useRef(!1);return Tw(()=>{r.current=!0}),p.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,nl({fromRouteId:e},i)))},[t,e])}function q7(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function $c(t){let{to:e,replace:r,state:n,relative:a}=t;Ui()||Ke(!1);let{future:i,static:o}=p.useContext(ys),{matches:l}=p.useContext(pn),{pathname:c}=vs(),u=Il(),d=cg(e,lg(l,i.v7_relativeSplatPath),c,a==="path"),h=JSON.stringify(d);return p.useEffect(()=>u(JSON.parse(h),{replace:r,state:n,relative:a}),[u,h,a,r,n]),null}function ee(t){Ke(!1)}function G7(t){let{basename:e="/",children:r=null,location:n,navigationType:a=Gn.Pop,navigator:i,static:o=!1,future:l}=t;Ui()&&Ke(!1);let c=e.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:c,navigator:i,static:o,future:nl({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof n=="string"&&(n=Bi(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:w="default"}=n,g=p.useMemo(()=>{let y=og(d,c);return y==null?null:{location:{pathname:y,search:h,hash:f,state:m,key:w},navigationType:a}},[c,d,h,f,m,w,a]);return g==null?null:p.createElement(ys.Provider,{value:u},p.createElement(yd.Provider,{children:r,value:g}))}function K7(t){let{children:e,location:r}=t;return I7(fm(e),r)}new Promise(()=>{});function fm(t,e){e===void 0&&(e=[]);let r=[];return p.Children.forEach(t,(n,a)=>{if(!p.isValidElement(n))return;let i=[...e,a];if(n.type===p.Fragment){r.push.apply(r,fm(n.props.children,i));return}n.type!==ee&&Ke(!1),!n.props.index||!n.props.children||Ke(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=fm(n.props.children,i)),r.push(o)}),r}/**
 * React Router DOM v6.30.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 mm(){return mm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mm.apply(this,arguments)}function Y7(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function J7(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Q7(t,e){return t.button===0&&(!e||e==="_self")&&!J7(t)}const X7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Z7="6";try{window.__reactRouterVersion=Z7}catch{}const eE="startTransition",qx=Km[eE];function tE(t){let{basename:e,children:r,future:n,window:a}=t,i=p.useRef();i.current==null&&(i.current=i7({window:a,v5Compat:!0}));let o=i.current,[l,c]=p.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=p.useCallback(h=>{u&&qx?qx(()=>c(h)):c(h)},[c,u]);return p.useLayoutEffect(()=>o.listen(d),[o,d]),p.useEffect(()=>q7(n),[n]),p.createElement(G7,{basename:e,children:r,location:l.location,navigationType:l.action,navigator:o,future:n})}const rE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Y=p.forwardRef(function(e,r){let{onClick:n,relative:a,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h}=e,f=Y7(e,X7),{basename:m}=p.useContext(ys),w,g=!1;if(typeof u=="string"&&nE.test(u)&&(w=u,rE))try{let b=new URL(window.location.href),k=u.startsWith("//")?new URL(b.protocol+u):new URL(u),j=og(k.pathname,m);k.origin===b.origin&&j!=null?u=j+k.search+k.hash:g=!0}catch{}let y=P7(u,{relative:a}),x=sE(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:h});function v(b){n&&n(b),b.defaultPrevented||x(b)}return p.createElement("a",mm({},f,{href:w||y,onClick:g||i?n:v,ref:r,target:c}))});var Gx;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Gx||(Gx={}));var Kx;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Kx||(Kx={}));function sE(t,e){let{target:r,replace:n,state:a,preventScrollReset:i,relative:o,viewTransition:l}=e===void 0?{}:e,c=Il(),u=vs(),d=Rw(t,{relative:o});return p.useCallback(h=>{if(Q7(h,r)){h.preventDefault();let f=n!==void 0?n:ku(u)===ku(d);c(t,{replace:f,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[u,c,d,n,a,r,t,i,o,l])}var aE=typeof Element<"u",iE=typeof Map=="function",oE=typeof Set=="function",lE=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Fc(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,a;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Fc(t[n],e[n]))return!1;return!0}var i;if(iE&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!Fc(n.value[1],e.get(n.value[0])))return!1;return!0}if(oE&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(lE&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;if(aE&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((a[n]==="_owner"||a[n]==="__v"||a[n]==="__o")&&t.$$typeof)&&!Fc(t[a[n]],e[a[n]]))return!1;return!0}return t!==t&&e!==e}var cE=function(e,r){try{return Fc(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const uE=Oi(cE);var dE=function(t,e,r,n,a,i,o,l){if(!t){var c;if(e===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,a,i,o,l],d=0;c=new Error(e.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},hE=dE;const Yx=Oi(hE);var fE=function(e,r,n,a){var i=n?n.call(a,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var o=Object.keys(e),l=Object.keys(r);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(r),u=0;u<o.length;u++){var d=o[u];if(!c(d))return!1;var h=e[d],f=r[d];if(i=n?n.call(a,h,f,d):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const mE=Oi(fE);var Ow=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Ow||{}),jh={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Jx=Object.values(Ow),hg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},pE=Object.entries(hg).reduce((t,[e,r])=>(t[r]=e,t),{}),wr="data-rh",ri={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ni=(t,e)=>{for(let r=t.length-1;r>=0;r-=1){const n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},gE=t=>{let e=ni(t,"title");const r=ni(t,ri.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,()=>e);const n=ni(t,ri.DEFAULT_TITLE);return e||n||void 0},xE=t=>ni(t,ri.ON_CHANGE_CLIENT_STATE)||(()=>{}),Nh=(t,e)=>e.filter(r=>typeof r[t]<"u").map(r=>r[t]).reduce((r,n)=>({...r,...n}),{}),yE=(t,e)=>e.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const a=Object.keys(n);for(let i=0;i<a.length;i+=1){const l=a[i].toLowerCase();if(t.indexOf(l)!==-1&&n[l])return r.concat(n)}}return r},[]),vE=t=>console&&typeof console.warn=="function"&&console.warn(t),no=(t,e,r)=>{const n={};return r.filter(a=>Array.isArray(a[t])?!0:(typeof a[t]<"u"&&vE(`Helmet: ${t} should be of type "Array". Instead found type "${typeof a[t]}"`),!1)).map(a=>a[t]).reverse().reduce((a,i)=>{const o={};i.filter(c=>{let u;const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],w=m.toLowerCase();e.indexOf(w)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(w==="rel"&&c[w].toLowerCase()==="stylesheet")&&(u=w),e.indexOf(m)!==-1&&(m==="innerHTML"||m==="cssText"||m==="itemprop")&&(u=m)}if(!u||!c[u])return!1;const h=c[u].toLowerCase();return n[u]||(n[u]={}),o[u]||(o[u]={}),n[u][h]?!1:(o[u][h]=!0,!0)}).reverse().forEach(c=>a.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const u=l[c],d={...n[u],...o[u]};n[u]=d}return a},[]).reverse()},bE=(t,e)=>{if(Array.isArray(t)&&t.length){for(let r=0;r<t.length;r+=1)if(t[r][e])return!0}return!1},wE=t=>({baseTag:yE(["href"],t),bodyAttributes:Nh("bodyAttributes",t),defer:ni(t,ri.DEFER),encode:ni(t,ri.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Nh("htmlAttributes",t),linkTags:no("link",["rel","href"],t),metaTags:no("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:no("noscript",["innerHTML"],t),onChangeClientState:xE(t),scriptTags:no("script",["src","innerHTML"],t),styleTags:no("style",["cssText"],t),title:gE(t),titleAttributes:Nh("titleAttributes",t),prioritizeSeoTags:bE(t,ri.PRIORITIZE_SEO_TAGS)}),Iw=t=>Array.isArray(t)?t.join(""):t,kE=(t,e)=>{const r=Object.keys(t);for(let n=0;n<r.length;n+=1)if(e[r[n]]&&e[r[n]].includes(t[r[n]]))return!0;return!1},_h=(t,e)=>Array.isArray(t)?t.reduce((r,n)=>(kE(n,e)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:t,priority:[]},Qx=(t,e)=>({...t,[e]:void 0}),jE=["noscript","script","style"],pm=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Mw=t=>Object.keys(t).reduce((e,r)=>{const n=typeof t[r]<"u"?`${r}="${t[r]}"`:`${r}`;return e?`${e} ${n}`:n},""),NE=(t,e,r,n)=>{const a=Mw(r),i=Iw(e);return a?`<${t} ${wr}="true" ${a}>${pm(i,n)}</${t}>`:`<${t} ${wr}="true">${pm(i,n)}</${t}>`},_E=(t,e,r=!0)=>e.reduce((n,a)=>{const i=a,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const h=typeof i[d]>"u"?d:`${d}="${pm(i[d],r)}"`;return u?`${u} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=jE.indexOf(t)===-1;return`${n}<${t} ${wr}="true" ${o}${c?"/>":`>${l}</${t}>`}`},""),Lw=(t,e={})=>Object.keys(t).reduce((r,n)=>{const a=hg[n];return r[a||n]=t[n],r},e),SE=(t,e,r)=>{const n={key:e,[wr]:!0},a=Lw(r,n);return[P.createElement("title",a,e)]},Bc=(t,e)=>e.map((r,n)=>{const a={key:n,[wr]:!0};return Object.keys(r).forEach(i=>{const l=hg[i]||i;if(l==="innerHTML"||l==="cssText"){const c=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=r[i]}),P.createElement(t,a)}),Yt=(t,e,r=!0)=>{switch(t){case"title":return{toComponent:()=>SE(t,e.title,e.titleAttributes),toString:()=>NE(t,e.title,e.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Lw(e),toString:()=>Mw(e)};default:return{toComponent:()=>Bc(t,e),toString:()=>_E(t,e,r)}}},CE=({metaTags:t,linkTags:e,scriptTags:r,encode:n})=>{const a=_h(t,jh.meta),i=_h(e,jh.link),o=_h(r,jh.script);return{priorityMethods:{toComponent:()=>[...Bc("meta",a.priority),...Bc("link",i.priority),...Bc("script",o.priority)],toString:()=>`${Yt("meta",a.priority,n)} ${Yt("link",i.priority,n)} ${Yt("script",o.priority,n)}`},metaTags:a.default,linkTags:i.default,scriptTags:o.default}},EE=t=>{const{baseTag:e,bodyAttributes:r,encode:n=!0,htmlAttributes:a,noscriptTags:i,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:u}=t;let{linkTags:d,metaTags:h,scriptTags:f}=t,m={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:m,linkTags:d,metaTags:h,scriptTags:f}=CE(t)),{priority:m,base:Yt("base",e,n),bodyAttributes:Yt("bodyAttributes",r,n),htmlAttributes:Yt("htmlAttributes",a,n),link:Yt("link",d,n),meta:Yt("meta",h,n),noscript:Yt("noscript",i,n),script:Yt("script",f,n),style:Yt("style",o,n),title:Yt("title",{title:l,titleAttributes:c},n)}},gm=EE,hc=[],Dw=!!(typeof window<"u"&&window.document&&window.document.createElement),xm=class{constructor(t,e){Jr(this,"instances",[]);Jr(this,"canUseDOM",Dw);Jr(this,"context");Jr(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?hc:this.instances,add:t=>{(this.canUseDOM?hc:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?hc:this.instances).indexOf(t);(this.canUseDOM?hc:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=gm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},TE={},$w=P.createContext(TE),Vs,Fw=(Vs=class extends p.Component{constructor(r){super(r);Jr(this,"helmetData");this.helmetData=new xm(this.props.context||{},Vs.canUseDOM)}render(){return P.createElement($w.Provider,{value:this.helmetData.value},this.props.children)}},Jr(Vs,"canUseDOM",Dw),Vs),xa=(t,e)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${t}[${wr}]`),a=[].slice.call(n),i=[];let o;return e&&e.length&&e.forEach(l=>{const c=document.createElement(t);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,h=typeof l[d]>"u"?"":l[d];c.setAttribute(u,h)}c.setAttribute(wr,"true"),a.some((u,d)=>(o=d,c.isEqualNode(u)))?a.splice(o,1):i.push(c)}),a.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>r.appendChild(l)),{oldTags:a,newTags:i}},ym=(t,e)=>{const r=document.getElementsByTagName(t)[0];if(!r)return;const n=r.getAttribute(wr),a=n?n.split(","):[],i=[...a],o=Object.keys(e);for(const l of o){const c=e[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),a.indexOf(l)===-1&&a.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)r.removeAttribute(i[l]);a.length===i.length?r.removeAttribute(wr):r.getAttribute(wr)!==o.join(",")&&r.setAttribute(wr,o.join(","))},RE=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=Iw(t)),ym("title",e)},Xx=(t,e)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:a,linkTags:i,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:h,titleAttributes:f}=t;ym("body",n),ym("html",a),RE(h,f);const m={baseTag:xa("base",r),linkTags:xa("link",i),metaTags:xa("meta",o),noscriptTags:xa("noscript",l),scriptTags:xa("script",u),styleTags:xa("style",d)},w={},g={};Object.keys(m).forEach(y=>{const{newTags:x,oldTags:v}=m[y];x.length&&(w[y]=x),v.length&&(g[y]=m[y].oldTags)}),e&&e(),c(t,w,g)},so=null,AE=t=>{so&&cancelAnimationFrame(so),t.defer?so=requestAnimationFrame(()=>{Xx(t,()=>{so=null})}):(Xx(t),so=null)},PE=AE,Zx=class extends p.Component{constructor(){super(...arguments);Jr(this,"rendered",!1)}shouldComponentUpdate(e){return!mE(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:r}=this.props.context;let n=null;const a=wE(e.get().map(i=>{const o={...i.props};return delete o.context,o}));Fw.canUseDOM?PE(a):gm&&(n=gm(a)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Gh,Le=(Gh=class extends p.Component{shouldComponentUpdate(t){return!uE(Qx(this.props,"helmetData"),Qx(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,r,n){return{...e,[t.type]:[...e[t.type]||[],{...r,...this.mapNestedChildrenToProps(t,n)}]}}mapObjectTypeChildren(t,e,r,n){switch(t.type){case"title":return{...e,[t.type]:n,titleAttributes:{...r}};case"body":return{...e,bodyAttributes:{...r}};case"html":return{...e,htmlAttributes:{...r}};default:return{...e,[t.type]:{...r}}}}mapArrayTypeChildrenToProps(t,e){let r={...e};return Object.keys(t).forEach(n=>{r={...r,[n]:t[n]}}),r}warnOnInvalidChildren(t,e){return Yx(Jx.some(r=>t.type===r),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Jx.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),Yx(!e||typeof e=="string"||Array.isArray(e)&&!e.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let r={};return P.Children.forEach(t,n=>{if(!n||!n.props)return;const{children:a,...i}=n.props,o=Object.keys(i).reduce((c,u)=>(c[pE[u]||u]=i[u],c),{});let{type:l}=n;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(n,a),l){case"Symbol(react.fragment)":e=this.mapChildrenToProps(a,e);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,o,a);break;default:e=this.mapObjectTypeChildren(n,e,o,a);break}}),this.mapArrayTypeChildrenToProps(r,e)}render(){const{children:t,...e}=this.props;let r={...e},{helmetData:n}=e;if(t&&(r=this.mapChildrenToProps(t,r)),n&&!(n instanceof xm)){const a=n;n=new xm(a.context,!0),delete r.helmetData}return n?P.createElement(Zx,{...r,context:n.value}):P.createElement($w.Consumer,null,a=>P.createElement(Zx,{...r,context:a}))}},Jr(Gh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Gh),we;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},t.getValidEnumValues=a=>{const i=t.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of i)o[l]=a[l];return t.objectValues(o)},t.objectValues=a=>t.objectKeys(a).map(function(i){return a[i]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},t.find=(a,i)=>{for(const o of a)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=n,t.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(we||(we={}));var ey;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(ey||(ey={}));const G=we.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),An=t=>{switch(typeof t){case"undefined":return G.undefined;case"string":return G.string;case"number":return Number.isNaN(t)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(t)?G.array:t===null?G.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?G.promise:typeof Map<"u"&&t instanceof Map?G.map:typeof Set<"u"&&t instanceof Set?G.set:typeof Date<"u"&&t instanceof Date?G.date:G.object;default:return G.unknown}},D=we.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Cr extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(i){return i.message},n={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let l=n,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(r(o))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return a(this),n}static assert(e){if(!(e instanceof Cr))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,we.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];r[i]=r[i]||[],r[i].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Cr.create=t=>new Cr(t);const vm=(t,e)=>{let r;switch(t.code){case D.invalid_type:t.received===G.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case D.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,we.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:r=`Unrecognized key(s) in object: ${we.joinValues(t.keys,", ")}`;break;case D.invalid_union:r="Invalid input";break;case D.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${we.joinValues(t.options)}`;break;case D.invalid_enum_value:r=`Invalid enum value. Expected ${we.joinValues(t.options)}, received '${t.received}'`;break;case D.invalid_arguments:r="Invalid function arguments";break;case D.invalid_return_type:r="Invalid function return type";break;case D.invalid_date:r="Invalid date";break;case D.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:we.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case D.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case D.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case D.custom:r="Invalid input";break;case D.invalid_intersection_types:r="Intersection results could not be merged";break;case D.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case D.not_finite:r="Number must be finite";break;default:r=e.defaultError,we.assertNever(t)}return{message:r}};let OE=vm;function IE(){return OE}const ME=t=>{const{data:e,path:r,errorMaps:n,issueData:a}=t,i=[...r,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let l="";const c=n.filter(u=>!!u).slice().reverse();for(const u of c)l=u(o,{data:e,defaultError:l}).message;return{...a,path:i,message:l}};function B(t,e){const r=IE(),n=ME({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===vm?void 0:vm].filter(a=>!!a)});t.common.issues.push(n)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const a of r){if(a.status==="aborted")return ae;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const a of r){const i=await a.key,o=await a.value;n.push({key:i,value:o})}return Ht.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const a of r){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return ae;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}}const ae=Object.freeze({status:"aborted"}),go=t=>({status:"dirty",value:t}),ir=t=>({status:"valid",value:t}),ty=t=>t.status==="aborted",ry=t=>t.status==="dirty",Ei=t=>t.status==="valid",Nu=t=>typeof Promise<"u"&&t instanceof Promise;var K;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(K||(K={}));class hs{constructor(e,r,n,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ny=(t,e)=>{if(Ei(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Cr(t.common.issues);return this._error=r,this._error}}};function fe(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:a}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,l)=>{const{message:c}=t;return o.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??n??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:c??r??l.defaultError}},description:a}}class be{get description(){return this._def.description}_getType(e){return An(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:An(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ht,ctx:{common:e.parent.common,data:e.data,parsedType:An(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(Nu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:An(e)},a=this._parseSync({data:e,path:n.path,parent:n});return ny(n,a)}"~validate"(e){var n,a;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:An(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:r});return Ei(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(a=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>Ei(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:An(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await(Nu(a)?a:Promise.resolve(a));return ny(n,i)}refine(e,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,i)=>{const o=e(a),l=()=>i.addIssue({code:D.custom,...n(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(e,r){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(e){return new Ri({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return is.create(this,this._def)}nullable(){return Ai.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Hr.create(this)}promise(){return Eu.create(this,this._def)}or(e){return Su.create([this,e],this._def)}and(e){return Cu.create(this,e,this._def)}transform(e){return new Ri({...fe(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new wm({...fe(this._def),innerType:this,defaultValue:r,typeName:ie.ZodDefault})}brand(){return new s9({typeName:ie.ZodBranded,type:this,...fe(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new km({...fe(this._def),innerType:this,catchValue:r,typeName:ie.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return fg.create(this,e)}readonly(){return jm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const LE=/^c[^\s-]{8,}$/i,DE=/^[0-9a-z]+$/,$E=/^[0-9A-HJKMNP-TV-Z]{26}$/i,FE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,BE=/^[a-z0-9_-]{21}$/i,UE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,WE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Sh;const VE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,qE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,GE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,KE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,YE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,JE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Bw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",QE=new RegExp(`^${Bw}$`);function Uw(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function XE(t){return new RegExp(`^${Uw(t)}$`)}function ZE(t){let e=`${Bw}T${Uw(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function e9(t,e){return!!((e==="v4"||!e)&&VE.test(t)||(e==="v6"||!e)&&GE.test(t))}function t9(t,e){if(!UE.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function r9(t,e){return!!((e==="v4"||!e)&&qE.test(t)||(e==="v6"||!e)&&KE.test(t))}class Kn extends be{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){const i=this._getOrReturnCtx(e);return B(i,{code:D.invalid_type,expected:G.string,received:i.parsedType}),ae}const n=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(a=this._getOrReturnCtx(e,a),B(a,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(a=this._getOrReturnCtx(e,a),B(a,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,l=e.data.length<i.value;(o||l)&&(a=this._getOrReturnCtx(e,a),o?B(a,{code:D.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&B(a,{code:D.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")zE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"email",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Sh||(Sh=new RegExp(HE,"u")),Sh.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"emoji",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")FE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"uuid",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")BE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"nanoid",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")LE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"cuid",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")DE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"cuid2",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")$E.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"ulid",code:D.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),B(a,{validation:"url",code:D.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"regex",code:D.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(e,a),B(a,{code:D.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(a=this._getOrReturnCtx(e,a),B(a,{code:D.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(a=this._getOrReturnCtx(e,a),B(a,{code:D.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?ZE(i).test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{code:D.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?QE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{code:D.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?XE(i).test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{code:D.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?WE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"duration",code:D.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?e9(e.data,i.version)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"ip",code:D.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?t9(e.data,i.alg)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"jwt",code:D.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?r9(e.data,i.version)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"cidr",code:D.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?YE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"base64",code:D.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?JE.test(e.data)||(a=this._getOrReturnCtx(e,a),B(a,{validation:"base64url",code:D.invalid_string,message:i.message}),n.dirty()):we.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(a=>e.test(a),{validation:r,code:D.invalid_string,...K.errToObj(n)})}_addCheck(e){return new Kn({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...K.errToObj(e)})}url(e){return this._addCheck({kind:"url",...K.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...K.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...K.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...K.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...K.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...K.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...K.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...K.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...K.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...K.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...K.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...K.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...K.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...K.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...K.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...K.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...K.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...K.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...K.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...K.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...K.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...K.errToObj(r)})}nonempty(e){return this.min(1,K.errToObj(e))}trim(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Kn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Kn.create=t=>new Kn({checks:[],typeName:ie.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...fe(t)});function n9(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=r>n?r:n,i=Number.parseInt(t.toFixed(a).replace(".","")),o=Number.parseInt(e.toFixed(a).replace(".",""));return i%o/10**a}class sl extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==G.number){const i=this._getOrReturnCtx(e);return B(i,{code:D.invalid_type,expected:G.number,received:i.parsedType}),ae}let n;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?we.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),B(n,{code:D.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),B(n,{code:D.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),B(n,{code:D.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?n9(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),B(n,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),B(n,{code:D.not_finite,message:i.message}),a.dirty()):we.assertNever(i);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,K.toString(r))}gt(e,r){return this.setLimit("min",e,!1,K.toString(r))}lte(e,r){return this.setLimit("max",e,!0,K.toString(r))}lt(e,r){return this.setLimit("max",e,!1,K.toString(r))}setLimit(e,r,n,a){return new sl({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:K.toString(a)}]})}_addCheck(e){return new sl({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:K.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:K.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:K.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:K.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:K.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:K.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:K.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:K.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:K.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&we.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}sl.create=t=>new sl({checks:[],typeName:ie.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...fe(t)});class al extends be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==G.bigint)return this._getInvalidInput(e);let n;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),B(n,{code:D.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),B(n,{code:D.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),B(n,{code:D.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):we.assertNever(i);return{status:a.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return B(r,{code:D.invalid_type,expected:G.bigint,received:r.parsedType}),ae}gte(e,r){return this.setLimit("min",e,!0,K.toString(r))}gt(e,r){return this.setLimit("min",e,!1,K.toString(r))}lte(e,r){return this.setLimit("max",e,!0,K.toString(r))}lt(e,r){return this.setLimit("max",e,!1,K.toString(r))}setLimit(e,r,n,a){return new al({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:K.toString(a)}]})}_addCheck(e){return new al({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:K.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:K.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:K.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:K.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:K.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}al.create=t=>new al({checks:[],typeName:ie.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...fe(t)});class sy extends be{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){const n=this._getOrReturnCtx(e);return B(n,{code:D.invalid_type,expected:G.boolean,received:n.parsedType}),ae}return ir(e.data)}}sy.create=t=>new sy({typeName:ie.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...fe(t)});class _u extends be{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){const i=this._getOrReturnCtx(e);return B(i,{code:D.invalid_type,expected:G.date,received:i.parsedType}),ae}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return B(i,{code:D.invalid_date}),ae}const n=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(a=this._getOrReturnCtx(e,a),B(a,{code:D.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(a=this._getOrReturnCtx(e,a),B(a,{code:D.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):we.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new _u({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:K.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:K.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}_u.create=t=>new _u({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ie.ZodDate,...fe(t)});class ay extends be{_parse(e){if(this._getType(e)!==G.symbol){const n=this._getOrReturnCtx(e);return B(n,{code:D.invalid_type,expected:G.symbol,received:n.parsedType}),ae}return ir(e.data)}}ay.create=t=>new ay({typeName:ie.ZodSymbol,...fe(t)});class iy extends be{_parse(e){if(this._getType(e)!==G.undefined){const n=this._getOrReturnCtx(e);return B(n,{code:D.invalid_type,expected:G.undefined,received:n.parsedType}),ae}return ir(e.data)}}iy.create=t=>new iy({typeName:ie.ZodUndefined,...fe(t)});class oy extends be{_parse(e){if(this._getType(e)!==G.null){const n=this._getOrReturnCtx(e);return B(n,{code:D.invalid_type,expected:G.null,received:n.parsedType}),ae}return ir(e.data)}}oy.create=t=>new oy({typeName:ie.ZodNull,...fe(t)});class ly extends be{constructor(){super(...arguments),this._any=!0}_parse(e){return ir(e.data)}}ly.create=t=>new ly({typeName:ie.ZodAny,...fe(t)});class cy extends be{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ir(e.data)}}cy.create=t=>new cy({typeName:ie.ZodUnknown,...fe(t)});class fs extends be{_parse(e){const r=this._getOrReturnCtx(e);return B(r,{code:D.invalid_type,expected:G.never,received:r.parsedType}),ae}}fs.create=t=>new fs({typeName:ie.ZodNever,...fe(t)});class uy extends be{_parse(e){if(this._getType(e)!==G.undefined){const n=this._getOrReturnCtx(e);return B(n,{code:D.invalid_type,expected:G.void,received:n.parsedType}),ae}return ir(e.data)}}uy.create=t=>new uy({typeName:ie.ZodVoid,...fe(t)});class Hr extends be{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),a=this._def;if(r.parsedType!==G.array)return B(r,{code:D.invalid_type,expected:G.array,received:r.parsedType}),ae;if(a.exactLength!==null){const o=r.data.length>a.exactLength.value,l=r.data.length<a.exactLength.value;(o||l)&&(B(r,{code:o?D.too_big:D.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(B(r,{code:D.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(B(r,{code:D.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,l)=>a.type._parseAsync(new hs(r,o,r.path,l)))).then(o=>Ht.mergeArray(n,o));const i=[...r.data].map((o,l)=>a.type._parseSync(new hs(r,o,r.path,l)));return Ht.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new Hr({...this._def,minLength:{value:e,message:K.toString(r)}})}max(e,r){return new Hr({...this._def,maxLength:{value:e,message:K.toString(r)}})}length(e,r){return new Hr({...this._def,exactLength:{value:e,message:K.toString(r)}})}nonempty(e){return this.min(1,e)}}Hr.create=(t,e)=>new Hr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...fe(e)});function Ra(t){if(t instanceof Ve){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=is.create(Ra(n))}return new Ve({...t._def,shape:()=>e})}else return t instanceof Hr?new Hr({...t._def,type:Ra(t.element)}):t instanceof is?is.create(Ra(t.unwrap())):t instanceof Ai?Ai.create(Ra(t.unwrap())):t instanceof ra?ra.create(t.items.map(e=>Ra(e))):t}class Ve extends be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=we.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==G.object){const u=this._getOrReturnCtx(e);return B(u,{code:D.invalid_type,expected:G.object,received:u.parsedType}),ae}const{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof fs&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||l.push(u);const c=[];for(const u of o){const d=i[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new hs(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof fs){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(u==="strict")l.length>0&&(B(a,{code:D.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const h=a.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new hs(a,h,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const h=await d.key,f=await d.value;u.push({key:h,value:f,alwaysSet:d.alwaysSet})}return u}).then(u=>Ht.mergeObjectSync(n,u)):Ht.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return K.errToObj,new Ve({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,o;const a=((o=(i=this._def).errorMap)==null?void 0:o.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:K.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new Ve({...this._def,unknownKeys:"strip"})}passthrough(){return new Ve({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ve({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ve({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ie.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Ve({...this._def,catchall:e})}pick(e){const r={};for(const n of we.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Ve({...this._def,shape:()=>r})}omit(e){const r={};for(const n of we.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new Ve({...this._def,shape:()=>r})}deepPartial(){return Ra(this)}partial(e){const r={};for(const n of we.objectKeys(this.shape)){const a=this.shape[n];e&&!e[n]?r[n]=a:r[n]=a.optional()}return new Ve({...this._def,shape:()=>r})}required(e){const r={};for(const n of we.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof is;)i=i._def.innerType;r[n]=i}return new Ve({...this._def,shape:()=>r})}keyof(){return Ww(we.objectKeys(this.shape))}}Ve.create=(t,e)=>new Ve({shape:()=>t,unknownKeys:"strip",catchall:fs.create(),typeName:ie.ZodObject,...fe(e)});Ve.strictCreate=(t,e)=>new Ve({shape:()=>t,unknownKeys:"strict",catchall:fs.create(),typeName:ie.ZodObject,...fe(e)});Ve.lazycreate=(t,e)=>new Ve({shape:t,unknownKeys:"strip",catchall:fs.create(),typeName:ie.ZodObject,...fe(e)});class Su extends be{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function a(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return r.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new Cr(l.ctx.common.issues));return B(r,{code:D.invalid_union,unionErrors:o}),ae}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of n){const u={...r,common:{...r.common,issues:[]},parent:null},d=c._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new Cr(c));return B(r,{code:D.invalid_union,unionErrors:l}),ae}}get options(){return this._def.options}}Su.create=(t,e)=>new Su({options:t,typeName:ie.ZodUnion,...fe(e)});function bm(t,e){const r=An(t),n=An(e);if(t===e)return{valid:!0,data:t};if(r===G.object&&n===G.object){const a=we.objectKeys(e),i=we.objectKeys(t).filter(l=>a.indexOf(l)!==-1),o={...t,...e};for(const l of i){const c=bm(t[l],e[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(r===G.array&&n===G.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let i=0;i<t.length;i++){const o=t[i],l=e[i],c=bm(o,l);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return r===G.date&&n===G.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Cu extends be{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=(i,o)=>{if(ty(i)||ty(o))return ae;const l=bm(i.value,o.value);return l.valid?((ry(i)||ry(o))&&r.dirty(),{status:r.value,value:l.data}):(B(n,{code:D.invalid_intersection_types}),ae)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Cu.create=(t,e,r)=>new Cu({left:t,right:e,typeName:ie.ZodIntersection,...fe(r)});class ra extends be{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.array)return B(n,{code:D.invalid_type,expected:G.array,received:n.parsedType}),ae;if(n.data.length<this._def.items.length)return B(n,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ae;!this._def.rest&&n.data.length>this._def.items.length&&(B(n,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new hs(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>Ht.mergeArray(r,o)):Ht.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new ra({...this._def,rest:e})}}ra.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ra({items:t,typeName:ie.ZodTuple,rest:null,...fe(e)})};class dy extends be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.map)return B(n,{code:D.invalid_type,expected:G.map,received:n.parsedType}),ae;const a=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([l,c],u)=>({key:a._parse(new hs(n,l,n.path,[u,"key"])),value:i._parse(new hs(n,c,n.path,[u,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return ae;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),l.set(u.value,d.value)}return{status:r.value,value:l}})}else{const l=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return ae;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),l.set(u.value,d.value)}return{status:r.value,value:l}}}}dy.create=(t,e,r)=>new dy({valueType:e,keyType:t,typeName:ie.ZodMap,...fe(r)});class il extends be{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.set)return B(n,{code:D.invalid_type,expected:G.set,received:n.parsedType}),ae;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(B(n,{code:D.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(B(n,{code:D.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return ae;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}const l=[...n.data.values()].map((c,u)=>i._parse(new hs(n,c,n.path,u)));return n.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(e,r){return new il({...this._def,minSize:{value:e,message:K.toString(r)}})}max(e,r){return new il({...this._def,maxSize:{value:e,message:K.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}il.create=(t,e)=>new il({valueType:t,minSize:null,maxSize:null,typeName:ie.ZodSet,...fe(e)});class hy extends be{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}hy.create=(t,e)=>new hy({getter:t,typeName:ie.ZodLazy,...fe(e)});class fy extends be{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return B(r,{received:r.data,code:D.invalid_literal,expected:this._def.value}),ae}return{status:"valid",value:e.data}}get value(){return this._def.value}}fy.create=(t,e)=>new fy({value:t,typeName:ie.ZodLiteral,...fe(e)});function Ww(t,e){return new Ti({values:t,typeName:ie.ZodEnum,...fe(e)})}class Ti extends be{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return B(r,{expected:we.joinValues(n),received:r.parsedType,code:D.invalid_type}),ae}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return B(r,{received:r.data,code:D.invalid_enum_value,options:n}),ae}return ir(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return Ti.create(e,{...this._def,...r})}exclude(e,r=this._def){return Ti.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}Ti.create=Ww;class my extends be{_parse(e){const r=we.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==G.string&&n.parsedType!==G.number){const a=we.objectValues(r);return B(n,{expected:we.joinValues(a),received:n.parsedType,code:D.invalid_type}),ae}if(this._cache||(this._cache=new Set(we.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=we.objectValues(r);return B(n,{received:n.data,code:D.invalid_enum_value,options:a}),ae}return ir(e.data)}get enum(){return this._def.values}}my.create=(t,e)=>new my({values:t,typeName:ie.ZodNativeEnum,...fe(e)});class Eu extends be{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.promise&&r.common.async===!1)return B(r,{code:D.invalid_type,expected:G.promise,received:r.parsedType}),ae;const n=r.parsedType===G.promise?r.data:Promise.resolve(r.data);return ir(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Eu.create=(t,e)=>new Eu({type:t,typeName:ie.ZodPromise,...fe(e)});class Ri extends be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=this._def.effect||null,i={addIssue:o=>{B(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async l=>{if(r.value==="aborted")return ae;const c=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return c.status==="aborted"?ae:c.status==="dirty"||r.value==="dirty"?go(c.value):c});{if(r.value==="aborted")return ae;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?ae:l.status==="dirty"||r.value==="dirty"?go(l.value):l}}if(a.type==="refinement"){const o=l=>{const c=a.refinement(l,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?ae:(l.status==="dirty"&&r.dirty(),o(l.value),{status:r.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?ae:(l.status==="dirty"&&r.dirty(),o(l.value).then(()=>({status:r.value,value:l.value}))))}if(a.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ei(o))return ae;const l=a.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ei(o)?Promise.resolve(a.transform(o.value,i)).then(l=>({status:r.value,value:l})):ae);we.assertNever(a)}}Ri.create=(t,e,r)=>new Ri({schema:t,typeName:ie.ZodEffects,effect:e,...fe(r)});Ri.createWithPreprocess=(t,e,r)=>new Ri({schema:e,effect:{type:"preprocess",transform:t},typeName:ie.ZodEffects,...fe(r)});class is extends be{_parse(e){return this._getType(e)===G.undefined?ir(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}is.create=(t,e)=>new is({innerType:t,typeName:ie.ZodOptional,...fe(e)});class Ai extends be{_parse(e){return this._getType(e)===G.null?ir(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ai.create=(t,e)=>new Ai({innerType:t,typeName:ie.ZodNullable,...fe(e)});class wm extends be{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===G.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}wm.create=(t,e)=>new wm({innerType:t,typeName:ie.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...fe(e)});class km extends be{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Nu(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Cr(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Cr(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}km.create=(t,e)=>new km({innerType:t,typeName:ie.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...fe(e)});class py extends be{_parse(e){if(this._getType(e)!==G.nan){const n=this._getOrReturnCtx(e);return B(n,{code:D.invalid_type,expected:G.nan,received:n.parsedType}),ae}return{status:"valid",value:e.data}}}py.create=t=>new py({typeName:ie.ZodNaN,...fe(t)});class s9 extends be{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class fg extends be{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ae:i.status==="dirty"?(r.dirty(),go(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ae:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,r){return new fg({in:e,out:r,typeName:ie.ZodPipeline})}}class jm extends be{_parse(e){const r=this._def.innerType._parse(e),n=a=>(Ei(a)&&(a.value=Object.freeze(a.value)),a);return Nu(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}jm.create=(t,e)=>new jm({innerType:t,typeName:ie.ZodReadonly,...fe(e)});Ve.lazycreate;var ie;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ie||(ie={}));const br=Kn.create;fs.create;Hr.create;const zw=Ve.create;Ve.strictCreate;Su.create;Cu.create;ra.create;const a9=Ti.create;Eu.create;is.create;Ai.create;const i9="https://crm.realsavvy.com/api/form_submissions",o9="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2NDNkMDg1MTAwYmI2NWQyYWE3N2MwN2U2OGE0ODkwNTBiZTE1MWIxYTQzOTEzYjRlODkwOTc5ZTgzNTJlMDc1IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NzgiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY3OCIsInNjb3BlcyI6WyJhZG1pbiJdfQ.NUi66vsTRrpVDC8gKSfMDrHhFvayzhMQH08VLNpIMDo3mN0ysyQ97pp2SlDwUPn08OoqthHb3RzoHGPCp9gJFvfoPI0DTIfgrMuUGMBHW4UJdZNWMS2Ep_BWH4iuL2VqgyXEUki4AiG8F9SXnbQbyvlRO7axJEYVWJ8EcXJ87EYQQhlAuS6f0AlTz7WwqNPipfNohon0Bo66u5WkIWlI3ybXAWo8CDJW3C-PN3QFyxgekSToV0euVZr2Pj_Eh_hVEIvEj6vPfDHyT9KihvNM7XCkw_KF4sSkT1fjqjudMspI_iQW1SixU64TKC6eHt5k2oWzq5GLoD3i1lzcnYuYzQ",l9="ktCAn7wCYjjQEg",c9=zw({firstName:br().trim().min(1,"First name is required").max(100),lastName:br().trim().min(1,"Last name is required").max(100),email:br().trim().email("Invalid email address").max(255),phone:br().trim().max(20).optional(),interest:br().optional(),message:br().trim().max(2e3).optional()});function Hw(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function Vw(t){return t.length>0}function qw(t,e=3){return(Date.now()-t)/1e3<e}async function mg(t,e){var r;try{if(e.honeypotValue&&Vw(e.honeypotValue))return{success:!0};if(e.formLoadTime&&qw(e.formLoadTime))return{success:!0};const n=c9.parse(t),a=new FormData;if(a.append("cyclum_vid",l9),a.append("cyclum_submission_id",Hw()),a.append("tag[]",e.tag),a.append("first_name",n.firstName),a.append("last_name",n.lastName),a.append("email",n.email),n.phone&&a.append("phone",n.phone),n.interest&&a.append("interested_in",n.interest),n.message&&a.append("message",n.message),!(await fetch(i9,{method:"POST",headers:{Authorization:`Bearer ${o9}`},body:a})).ok)throw new Error("Failed to submit form");return{success:!0}}catch(n){return n instanceof Cr?{success:!1,error:((r=n.errors[0])==null?void 0:r.message)||"Validation failed"}:{success:!1,error:"Failed to submit. Please try again."}}}function pg(t){const e=p.useRef({value:t,previous:t});return p.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var vd="Checkbox",[u9,oB]=Gt(vd),[d9,gg]=u9(vd);function h9(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:a,disabled:i,form:o,name:l,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:h}=t,[f,m]=Gr({prop:r,defaultProp:a??!1,onChange:c,caller:vd}),[w,g]=p.useState(null),[y,x]=p.useState(null),v=p.useRef(!1),b=w?!!o||!!w.closest("form"):!0,k={checked:f,disabled:i,setChecked:m,control:w,setControl:g,name:l,form:o,value:d,hasConsumerStoppedPropagationRef:v,required:u,defaultChecked:os(a)?!1:a,isFormControl:b,bubbleInput:y,setBubbleInput:x};return s.jsx(d9,{scope:e,...k,children:f9(h)?h(k):n})}var Gw="CheckboxTrigger",Kw=p.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},a)=>{const{control:i,value:o,disabled:l,checked:c,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:m,bubbleInput:w}=gg(Gw,t),g=ve(a,d),y=p.useRef(c);return p.useEffect(()=>{const x=i==null?void 0:i.form;if(x){const v=()=>h(y.current);return x.addEventListener("reset",v),()=>x.removeEventListener("reset",v)}},[i,h]),s.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":os(c)?"mixed":c,"aria-required":u,"data-state":Zw(c),"data-disabled":l?"":void 0,disabled:l,value:o,...n,ref:g,onKeyDown:W(e,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:W(r,x=>{h(v=>os(v)?!0:!v),w&&m&&(f.current=x.isPropagationStopped(),f.current||x.stopPropagation())})})});Kw.displayName=Gw;var xg=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:a,defaultChecked:i,required:o,disabled:l,value:c,onCheckedChange:u,form:d,...h}=t;return s.jsx(h9,{__scopeCheckbox:r,checked:a,defaultChecked:i,disabled:l,required:o,onCheckedChange:u,name:n,form:d,value:c,internal_do_not_use_render:({isFormControl:f})=>s.jsxs(s.Fragment,{children:[s.jsx(Kw,{...h,ref:e,__scopeCheckbox:r}),f&&s.jsx(Xw,{__scopeCheckbox:r})]})})});xg.displayName=vd;var Yw="CheckboxIndicator",Jw=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...a}=t,i=gg(Yw,r);return s.jsx(ar,{present:n||os(i.checked)||i.checked===!0,children:s.jsx(oe.span,{"data-state":Zw(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:e,style:{pointerEvents:"none",...t.style}})})});Jw.displayName=Yw;var Qw="CheckboxBubbleInput",Xw=p.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:l,disabled:c,name:u,value:d,form:h,bubbleInput:f,setBubbleInput:m}=gg(Qw,t),w=ve(r,m),g=pg(i),y=md(n);p.useEffect(()=>{const v=f;if(!v)return;const b=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(b,"checked").set,N=!a.current;if(g!==i&&j){const _=new Event("click",{bubbles:N});v.indeterminate=os(i),j.call(v,os(i)?!1:i),v.dispatchEvent(_)}},[f,g,i,a]);const x=p.useRef(os(i)?!1:i);return s.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??x.current,required:l,disabled:c,name:u,value:d,form:h,...e,tabIndex:-1,ref:w,style:{...e.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Xw.displayName=Qw;function f9(t){return typeof t=="function"}function os(t){return t==="indeterminate"}function Zw(t){return os(t)?"indeterminate":t?"checked":"unchecked"}const Ml=p.forwardRef(({className:t,...e},r)=>s.jsx(xg,{ref:r,className:ke("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:s.jsx(Jw,{className:ke("flex items-center justify-center text-current"),children:s.jsx(Ks,{className:"h-4 w-4"})})}));Ml.displayName=xg.displayName;var Ch="focusScope.autoFocusOnMount",Eh="focusScope.autoFocusOnUnmount",gy={bubbles:!1,cancelable:!0},m9="FocusScope",yg=p.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=t,[l,c]=p.useState(null),u=zt(a),d=zt(i),h=p.useRef(null),f=ve(e,g=>c(g)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let g=function(b){if(m.paused||!l)return;const k=b.target;l.contains(k)?h.current=k:En(h.current,{select:!0})},y=function(b){if(m.paused||!l)return;const k=b.relatedTarget;k!==null&&(l.contains(k)||En(h.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const j of b)j.removedNodes.length>0&&En(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const v=new MutationObserver(x);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),v.disconnect()}}},[n,l,m.paused]),p.useEffect(()=>{if(l){yy.add(m);const g=document.activeElement;if(!l.contains(g)){const x=new CustomEvent(Ch,gy);l.addEventListener(Ch,u),l.dispatchEvent(x),x.defaultPrevented||(p9(b9(e4(l)),{select:!0}),document.activeElement===g&&En(l))}return()=>{l.removeEventListener(Ch,u),setTimeout(()=>{const x=new CustomEvent(Eh,gy);l.addEventListener(Eh,d),l.dispatchEvent(x),x.defaultPrevented||En(g??document.body,{select:!0}),l.removeEventListener(Eh,d),yy.remove(m)},0)}}},[l,u,d,m]);const w=p.useCallback(g=>{if(!r&&!n||m.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(y&&x){const v=g.currentTarget,[b,k]=g9(v);b&&k?!g.shiftKey&&x===k?(g.preventDefault(),r&&En(b,{select:!0})):g.shiftKey&&x===b&&(g.preventDefault(),r&&En(k,{select:!0})):x===v&&g.preventDefault()}},[r,n,m.paused]);return s.jsx(oe.div,{tabIndex:-1,...o,ref:f,onKeyDown:w})});yg.displayName=m9;function p9(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(En(n,{select:e}),document.activeElement!==r)return}function g9(t){const e=e4(t),r=xy(e,t),n=xy(e.reverse(),t);return[r,n]}function e4(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function xy(t,e){for(const r of t)if(!x9(r,{upTo:e}))return r}function x9(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function y9(t){return t instanceof HTMLInputElement&&"select"in t}function En(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&y9(t)&&e&&t.select()}}var yy=v9();function v9(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=vy(t,e),t.unshift(e)},remove(e){var r;t=vy(t,e),(r=t[0])==null||r.resume()}}}function vy(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function b9(t){return t.filter(e=>e.tagName!=="A")}var Th=0;function t4(){p.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??by()),document.body.insertAdjacentElement("beforeend",t[1]??by()),Th++,()=>{Th===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Th--}},[])}function by(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Fr=function(){return Fr=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Fr.apply(this,arguments)};function Wi(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]]);return r}function w9(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function l(d){try{u(n.next(d))}catch(h){o(h)}}function c(d){try{u(n.throw(d))}catch(h){o(h)}}function u(d){d.done?i(d.value):a(d.value).then(l,c)}u((n=n.apply(t,e||[])).next())})}function k9(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var Uc="right-scroll-bar-position",Wc="width-before-scroll-bar",j9="with-scroll-bars-hidden",N9="--removed-body-scroll-bar-size";function Rh(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function _9(t,e){var r=p.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=e,r.facade}var S9=typeof window<"u"?p.useLayoutEffect:p.useEffect,wy=new WeakMap;function C9(t,e){var r=_9(null,function(n){return t.forEach(function(a){return Rh(a,n)})});return S9(function(){var n=wy.get(r);if(n){var a=new Set(n),i=new Set(t),o=r.current;a.forEach(function(l){i.has(l)||Rh(l,null)}),i.forEach(function(l){a.has(l)||Rh(l,o)})}wy.set(r,t)},[t]),r}function E9(t){return t}function T9(t,e){e===void 0&&(e=E9);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var o=e(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var c=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return a}function R9(t){t===void 0&&(t={});var e=T9(null);return e.options=Fr({async:!0,ssr:!1},t),e}var r4=function(t){var e=t.sideCar,r=Wi(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return p.createElement(n,Fr({},r))};r4.isSideCarExport=!0;function A9(t,e){return t.useMedium(e),r4}var n4=R9(),Ah=function(){},bd=p.forwardRef(function(t,e){var r=p.useRef(null),n=p.useState({onScrollCapture:Ah,onWheelCapture:Ah,onTouchMoveCapture:Ah}),a=n[0],i=n[1],o=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,h=t.shards,f=t.sideCar,m=t.noRelative,w=t.noIsolation,g=t.inert,y=t.allowPinchZoom,x=t.as,v=x===void 0?"div":x,b=t.gapMode,k=Wi(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=f,N=C9([r,e]),_=Fr(Fr({},k),a);return p.createElement(p.Fragment,null,d&&p.createElement(j,{sideCar:n4,removeScrollBar:u,shards:h,noRelative:m,noIsolation:w,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:r,gapMode:b}),o?p.cloneElement(p.Children.only(l),Fr(Fr({},_),{ref:N})):p.createElement(v,Fr({},_,{className:c,ref:N}),l))});bd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bd.classNames={fullWidth:Wc,zeroRight:Uc};var P9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function O9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=P9();return e&&t.setAttribute("nonce",e),t}function I9(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function M9(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var L9=function(){var t=0,e=null;return{add:function(r){t==0&&(e=O9())&&(I9(e,r),M9(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},D9=function(){var t=L9();return function(e,r){p.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},s4=function(){var t=D9(),e=function(r){var n=r.styles,a=r.dynamic;return t(n,a),null};return e},$9={left:0,top:0,right:0,gap:0},Ph=function(t){return parseInt(t||"",10)||0},F9=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],a=e[t==="padding"?"paddingRight":"marginRight"];return[Ph(r),Ph(n),Ph(a)]},B9=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return $9;var e=F9(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},U9=s4(),si="data-scroll-locked",W9=function(t,e,r,n){var a=t.left,i=t.top,o=t.right,l=t.gap;return r===void 0&&(r="margin"),`
  .`.concat(j9,` {
   overflow: hidden `).concat(n,`;
   padding-right: `).concat(l,"px ").concat(n,`;
  }
  body[`).concat(si,`] {
    overflow: hidden `).concat(n,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
    padding-left: `.concat(a,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(o,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(l,"px ").concat(n,`;
    `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Uc,` {
    right: `).concat(l,"px ").concat(n,`;
  }
  
  .`).concat(Wc,` {
    margin-right: `).concat(l,"px ").concat(n,`;
  }
  
  .`).concat(Uc," .").concat(Uc,` {
    right: 0 `).concat(n,`;
  }
  
  .`).concat(Wc," .").concat(Wc,` {
    margin-right: 0 `).concat(n,`;
  }
  
  body[`).concat(si,`] {
    `).concat(N9,": ").concat(l,`px;
  }
`)},ky=function(){var t=parseInt(document.body.getAttribute(si)||"0",10);return isFinite(t)?t:0},z9=function(){p.useEffect(function(){return document.body.setAttribute(si,(ky()+1).toString()),function(){var t=ky()-1;t<=0?document.body.removeAttribute(si):document.body.setAttribute(si,t.toString())}},[])},H9=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,a=n===void 0?"margin":n;z9();var i=p.useMemo(function(){return B9(a)},[a]);return p.createElement(U9,{styles:W9(i,!e,a,r?"":"!important")})},Nm=!1;if(typeof window<"u")try{var fc=Object.defineProperty({},"passive",{get:function(){return Nm=!0,!0}});window.addEventListener("test",fc,fc),window.removeEventListener("test",fc,fc)}catch{Nm=!1}var ya=Nm?{passive:!1}:!1,V9=function(t){return t.tagName==="TEXTAREA"},a4=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!V9(t)&&r[e]==="visible")},q9=function(t){return a4(t,"overflowY")},G9=function(t){return a4(t,"overflowX")},jy=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=i4(t,n);if(a){var i=o4(t,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},K9=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},Y9=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},i4=function(t,e){return t==="v"?q9(e):G9(e)},o4=function(t,e){return t==="v"?K9(e):Y9(e)},J9=function(t,e){return t==="h"&&e==="rtl"?-1:1},Q9=function(t,e,r,n,a){var i=J9(t,window.getComputedStyle(e).direction),o=i*n,l=r.target,c=e.contains(l),u=!1,d=o>0,h=0,f=0;do{if(!l)break;var m=o4(t,l),w=m[0],g=m[1],y=m[2],x=g-y-i*w;(w||x)&&i4(t,l)&&(h+=x,f+=w);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(d&&(Math.abs(h)<1||!a)||!d&&(Math.abs(f)<1||!a))&&(u=!0),u},mc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Ny=function(t){return[t.deltaX,t.deltaY]},_y=function(t){return t&&"current"in t?t.current:t},X9=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Z9=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},eT=0,va=[];function tT(t){var e=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),a=p.useState(eT++)[0],i=p.useState(s4)[0],o=p.useRef(t);p.useEffect(function(){o.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var g=k9([t.lockRef.current],(t.shards||[]).map(_y),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=p.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var x=mc(g),v=r.current,b="deltaX"in g?g.deltaX:v[0]-x[0],k="deltaY"in g?g.deltaY:v[1]-x[1],j,N=g.target,_=Math.abs(b)>Math.abs(k)?"h":"v";if("touches"in g&&_==="h"&&N.type==="range")return!1;var E=jy(_,N);if(!E)return!0;if(E?j=_:(j=_==="v"?"h":"v",E=jy(_,N)),!E)return!1;if(!n.current&&"changedTouches"in g&&(b||k)&&(n.current=j),!j)return!0;var R=n.current||j;return Q9(R,y,g,R==="h"?b:k,!0)},[]),c=p.useCallback(function(g){var y=g;if(!(!va.length||va[va.length-1]!==i)){var x="deltaY"in y?Ny(y):mc(y),v=e.current.filter(function(j){return j.name===y.type&&(j.target===y.target||y.target===j.shadowParent)&&X9(j.delta,x)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var b=(o.current.shards||[]).map(_y).filter(Boolean).filter(function(j){return j.contains(y.target)}),k=b.length>0?l(y,b[0]):!o.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),u=p.useCallback(function(g,y,x,v){var b={name:g,delta:y,target:x,should:v,shadowParent:rT(x)};e.current.push(b),setTimeout(function(){e.current=e.current.filter(function(k){return k!==b})},1)},[]),d=p.useCallback(function(g){r.current=mc(g),n.current=void 0},[]),h=p.useCallback(function(g){u(g.type,Ny(g),g.target,l(g,t.lockRef.current))},[]),f=p.useCallback(function(g){u(g.type,mc(g),g.target,l(g,t.lockRef.current))},[]);p.useEffect(function(){return va.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,ya),document.addEventListener("touchmove",c,ya),document.addEventListener("touchstart",d,ya),function(){va=va.filter(function(g){return g!==i}),document.removeEventListener("wheel",c,ya),document.removeEventListener("touchmove",c,ya),document.removeEventListener("touchstart",d,ya)}},[]);var m=t.removeScrollBar,w=t.inert;return p.createElement(p.Fragment,null,w?p.createElement(i,{styles:Z9(a)}):null,m?p.createElement(H9,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function rT(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const nT=A9(n4,tT);var vg=p.forwardRef(function(t,e){return p.createElement(bd,Fr({},t,{ref:e,sideCar:nT}))});vg.classNames=bd.classNames;var sT=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ba=new WeakMap,pc=new WeakMap,gc={},Oh=0,l4=function(t){return t&&(t.host||l4(t.parentNode))},aT=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=l4(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},iT=function(t,e,r,n){var a=aT(e,Array.isArray(t)?t:[t]);gc[r]||(gc[r]=new WeakMap);var i=gc[r],o=[],l=new Set,c=new Set(a),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};a.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))d(f);else try{var m=f.getAttribute(n),w=m!==null&&m!=="false",g=(ba.get(f)||0)+1,y=(i.get(f)||0)+1;ba.set(f,g),i.set(f,y),o.push(f),g===1&&w&&pc.set(f,!0),y===1&&f.setAttribute(r,"true"),w||f.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",f,x)}})};return d(e),l.clear(),Oh++,function(){o.forEach(function(h){var f=ba.get(h)-1,m=i.get(h)-1;ba.set(h,f),i.set(h,m),f||(pc.has(h)||h.removeAttribute(n),pc.delete(h)),m||h.removeAttribute(r)}),Oh--,Oh||(ba=new WeakMap,ba=new WeakMap,pc=new WeakMap,gc={})}},c4=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),a=sT(t);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),iT(n,a,r,"aria-hidden")):function(){return null}},wd="Dialog",[u4,lB]=Gt(wd),[oT,Tr]=u4(wd),d4=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=t,l=p.useRef(null),c=p.useRef(null),[u,d]=Gr({prop:n,defaultProp:a??!1,onChange:i,caller:wd});return s.jsx(oT,{scope:e,triggerRef:l,contentRef:c,contentId:ns(),titleId:ns(),descriptionId:ns(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(h=>!h),[d]),modal:o,children:r})};d4.displayName=wd;var h4="DialogTrigger",lT=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=Tr(h4,r),i=ve(e,a.triggerRef);return s.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":kg(a.open),...n,ref:i,onClick:W(t.onClick,a.onOpenToggle)})});lT.displayName=h4;var bg="DialogPortal",[cT,f4]=u4(bg,{forceMount:void 0}),m4=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:a}=t,i=Tr(bg,e);return s.jsx(cT,{scope:e,forceMount:r,children:p.Children.map(n,o=>s.jsx(ar,{present:r||i.open,children:s.jsx(td,{asChild:!0,container:a,children:o})}))})};m4.displayName=bg;var Tu="DialogOverlay",p4=p.forwardRef((t,e)=>{const r=f4(Tu,t.__scopeDialog),{forceMount:n=r.forceMount,...a}=t,i=Tr(Tu,t.__scopeDialog);return i.modal?s.jsx(ar,{present:n||i.open,children:s.jsx(dT,{...a,ref:e})}):null});p4.displayName=Tu;var uT=_i("DialogOverlay.RemoveScroll"),dT=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=Tr(Tu,r);return s.jsx(vg,{as:uT,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(oe.div,{"data-state":kg(a.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),na="DialogContent",g4=p.forwardRef((t,e)=>{const r=f4(na,t.__scopeDialog),{forceMount:n=r.forceMount,...a}=t,i=Tr(na,t.__scopeDialog);return s.jsx(ar,{present:n||i.open,children:i.modal?s.jsx(hT,{...a,ref:e}):s.jsx(fT,{...a,ref:e})})});g4.displayName=na;var hT=p.forwardRef((t,e)=>{const r=Tr(na,t.__scopeDialog),n=p.useRef(null),a=ve(e,r.contentRef,n);return p.useEffect(()=>{const i=n.current;if(i)return c4(i)},[]),s.jsx(x4,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:W(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:W(t.onFocusOutside,i=>i.preventDefault())})}),fT=p.forwardRef((t,e)=>{const r=Tr(na,t.__scopeDialog),n=p.useRef(!1),a=p.useRef(!1);return s.jsx(x4,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),x4=p.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=t,l=Tr(na,r),c=p.useRef(null),u=ve(e,c);return t4(),s.jsxs(s.Fragment,{children:[s.jsx(yg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(El,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":kg(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(mT,{titleId:l.titleId}),s.jsx(gT,{contentRef:c,descriptionId:l.descriptionId})]})]})}),wg="DialogTitle",y4=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=Tr(wg,r);return s.jsx(oe.h2,{id:a.titleId,...n,ref:e})});y4.displayName=wg;var v4="DialogDescription",b4=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=Tr(v4,r);return s.jsx(oe.p,{id:a.descriptionId,...n,ref:e})});b4.displayName=v4;var w4="DialogClose",k4=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,a=Tr(w4,r);return s.jsx(oe.button,{type:"button",...n,ref:e,onClick:W(t.onClick,()=>a.onOpenChange(!1))})});k4.displayName=w4;function kg(t){return t?"open":"closed"}var j4="DialogTitleWarning",[cB,N4]=n5(j4,{contentName:na,titleName:wg,docsSlug:"dialog"}),mT=({titleId:t})=>{const e=N4(j4),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return p.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},pT="DialogDescriptionWarning",gT=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${N4(pT).contentName}}.`;return p.useEffect(()=>{var i;const a=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&a&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},xT=d4,yT=m4,_4=p4,S4=g4,C4=y4,E4=b4,vT=k4;const T4=xT,bT=yT,R4=p.forwardRef(({className:t,...e},r)=>s.jsx(_4,{ref:r,className:ke("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));R4.displayName=_4.displayName;const jg=p.forwardRef(({className:t,children:e,...r},n)=>s.jsxs(bT,{children:[s.jsx(R4,{}),s.jsxs(S4,{ref:n,className:ke("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r,children:[e,s.jsxs(vT,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(ud,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));jg.displayName=S4.displayName;const Ng=({className:t,...e})=>s.jsx("div",{className:ke("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Ng.displayName="DialogHeader";const _g=p.forwardRef(({className:t,...e},r)=>s.jsx(C4,{ref:r,className:"text-primary-foreground"}));_g.displayName=C4.displayName;const wT=p.forwardRef(({className:t,...e},r)=>s.jsx(E4,{ref:r,className:ke("text-sm text-muted-foreground",t),...e}));wT.displayName=E4.displayName;const A4=({open:t,onOpenChange:e})=>{const{toast:r}=Sl(),[n,a]=p.useState(!1),[i,o]=p.useState(!1),[l,c]=p.useState(Date.now()),[u,d]=p.useState(""),[h,f]=p.useState({firstName:"",lastName:"",email:"",phone:"",interest:"",message:""});p.useEffect(()=>{t&&c(Date.now())},[t]);const m=async g=>{g.preventDefault(),a(!0);const y=await mg(h,{tag:"contact-modal",honeypotValue:u,formLoadTime:l});a(!1),y.success?(r({title:"Message Sent!",description:"Thank you for reaching out. Rick will be in touch shortly."}),f({firstName:"",lastName:"",email:"",phone:"",interest:"",message:""}),o(!1),d(""),e(!1)):r({title:"Error",description:y.error||"Failed to send message. Please try again.",variant:"destructive"})},w=g=>{f({...h,[g.target.name]:g.target.value})};return s.jsx(T4,{open:t,onOpenChange:e,children:s.jsxs(jg,{className:"sm:max-w-[500px] bg-background border-border/50 p-0 overflow-hidden",children:[s.jsxs(Ng,{className:"p-6 pb-0",children:[s.jsx(_g,{className:"font-heading text-2xl tracking-wide text-foreground",children:"Let's Connect"}),s.jsx("p",{className:"mt-2 text-primary-foreground text-4xl",children:"#justtextrick"})]}),s.jsxs("form",{onSubmit:m,className:"p-6 space-y-5 bg-primary-foreground",children:[s.jsx("input",{type:"text",name:"website",value:u,onChange:g=>d(g.target.value),className:"absolute -left-[9999px] opacity-0 h-0 w-0",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),s.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[s.jsx("input",{type:"text",name:"firstName",placeholder:"First Name",value:h.firstName,onChange:w,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("input",{type:"text",name:"lastName",placeholder:"Last Name",value:h.lastName,onChange:w,required:!0,className:"w-full bg-muted/25 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"})]}),s.jsx("input",{type:"email",name:"email",placeholder:"Email Address",value:h.email,onChange:w,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("input",{type:"tel",name:"phone",placeholder:"Phone Number",value:h.phone,onChange:w,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("textarea",{name:"message",placeholder:"Your Message (optional)",value:h.message,onChange:w,rows:3,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors resize-none"}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Ml,{id:"optin-modal",checked:i,onCheckedChange:g=>o(g===!0),className:"mt-0.5",required:!0}),s.jsxs("label",{htmlFor:"optin-modal",className:"text-xs leading-relaxed cursor-pointer text-primary",children:["By providing ",s.jsx("strong",{children:"ORR Realty Group"})," your contact information, you acknowledge and agree to our ",s.jsx(Y,{to:"/privacy-policy",onClick:()=>e(!1),className:"hover:underline text-destructive",children:"Privacy Policy"})," and consent to receiving marketing communications, including emails, calls, and text messages. Reply STOP to opt out. Message and data rates may apply."]})]}),s.jsx("button",{type:"submit",disabled:n||!i,className:"w-full luxury-button-primary disabled:opacity-50 disabled:cursor-not-allowed",children:n?"Sending...":"Submit"})]})]})})},Pi={iframeDomain:(()=>{const t="www-austinrealestateagency.realsavvy.co";return t.startsWith("http")?t:`https://${t}`})(),idxRedirectPath:"/idx",idxPrefix:"/app",siteId:"1678",clientId:"643d085100bb65d2aa77c07e68a489050be151b1a43913b4e890979e8352e075",style:{mainFont:"Inter"}},zc={idxPath:"/",marketId:"2228",map:!0,query:{},suggestions:!0,height:"100vh",idxRedirect:!0},P4=(t,e)=>{const r=[];for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=e?`${e}[${n}]`:n,i=t[n];if(i==null)continue;r.push(i!==null&&typeof i=="object"?P4(i,a):`${encodeURIComponent(a)}=${encodeURIComponent(i)}`)}return r.join("&")},kT=()=>{try{const t=new URL(window.location.href).searchParams.get("idx_preview");t==="reset"||t===""?localStorage.removeItem("idx_preview_host"):t&&localStorage.setItem("idx_preview_host",t);const e=localStorage.getItem("idx_preview_host");if(e)return e.startsWith("http")?e:`https://${e}`}catch{}return Pi.iframeDomain},jT=(t="/",e="")=>{const r=kT(),n={},a=new URLSearchParams(e).get("market_id"),i=localStorage.getItem("_market_v3");if(a)n.market_id=a;else if(i)try{const y=JSON.parse(i);n.market_id=y.id}catch{n.market_id=zc.marketId}else n.market_id=zc.marketId;n.font=Pi.style.mainFont;const o=localStorage.getItem("cycagt");o&&(n._cycagt=o);const l=new URLSearchParams(window.location.search),c=l.get("magic_link");c&&(n.magic_link=c);const u=l.get("magic_auth");u&&(n.magic_auth=u);const d=l.get("source");d&&(n.source=d);const h=l.get("utm_source");h&&(n.utm_source=h);const f=l.get("utm_medium");f&&(n.utm_medium=f),window.matchMedia("(max-width: 768px)").matches?n.map=!1:n.map=zc.map;const m=P4(n),w=e?`${m}&${e}`:m,g=t==="/"?"":t.replace(/\/$/,"");return`${r}${Pi.idxPrefix}${g}?${w}`},NT=()=>{const t=localStorage.getItem("cycagt"),e=r=>{var i;if(!r.origin.includes("realsavvy"))return;const n=r.data;if(!n||!n.postal)return;const a=n.packingSlip;if(a){if(a.type==="federation.ping"){const o=r.source;o&&o.postMessage({postal:!0,packingSlip:{type:"federation.pong",instanceId:a.instanceId}},r.origin);return}if(a.type==="federation.message"){const o=a.envelope;if(!o)return;if(o.channel==="idx"&&o.topic==="router.didTransition"){const l=o.data;if(!l||!l.currentURL)return;const c=l.currentURL.split("?"),u=c[0],d=new URLSearchParams(c[1]||""),h=d.get("market_id");if(h)try{const w=localStorage.getItem("_market_v3");(w?String(((i=JSON.parse(w))==null?void 0:i.id)??""):"")!==h&&window.dispatchEvent(new CustomEvent("idx:childMarketChanged",{detail:{marketId:h}}))}catch{window.dispatchEvent(new CustomEvent("idx:childMarketChanged",{detail:{marketId:h}}))}t&&d.set("_cycagt",t);const f=d.toString();let m;f===""?m=u:m=`${u}?${f}`,window.history.replaceState(l,document.title,`${Pi.idxRedirectPath}${m}`)}}}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},_T="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2NDNkMDg1MTAwYmI2NWQyYWE3N2MwN2U2OGE0ODkwNTBiZTE1MWIxYTQzOTEzYjRlODkwOTc5ZTgzNTJlMDc1IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NzgiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY3OCIsInNjb3BlcyI6WyJhZG1pbiJdfQ.NUi66vsTRrpVDC8gKSfMDrHhFvayzhMQH08VLNpIMDo3mN0ysyQ97pp2SlDwUPn08OoqthHb3RzoHGPCp9gJFvfoPI0DTIfgrMuUGMBHW4UJdZNWMS2Ep_BWH4iuL2VqgyXEUki4AiG8F9SXnbQbyvlRO7axJEYVWJ8EcXJ87EYQQhlAuS6f0AlTz7WwqNPipfNohon0Bo66u5WkIWlI3ybXAWo8CDJW3C-PN3QFyxgekSToV0euVZr2Pj_Eh_hVEIvEj6vPfDHyT9KihvNM7XCkw_KF4sSkT1fjqjudMspI_iQW1SixU64TKC6eHt5k2oWzq5GLoD3i1lzcnYuYzQ".trim(),ST="https://api.realsavvy.com/api/v3/markets",O4="_market_v3",I4=p.createContext(null);function CT(){try{const t=localStorage.getItem(O4);if(!t)return null;const e=JSON.parse(t);return!e||e.id==null?null:{...e,id:String(e.id)}}catch{return null}}function Sy(t){try{localStorage.setItem(O4,JSON.stringify({id:t.id,default:!!t.default,site_id:Pi.siteId,market_ids:[],market_name:t.market_name,city:t.city,state_id:t.state_id,latitude:t.latitude,longitude:t.longitude}))}catch{}}const ET=({children:t})=>{const[e,r]=p.useState([]),[n,a]=p.useState(()=>{var u;try{const d=new URLSearchParams(window.location.search).get("market_id");if(d)return d}catch{}return((u=CT())==null?void 0:u.id)||zc.marketId||""}),[i,o]=p.useState(!0);p.useEffect(()=>{let u=!1;return(async()=>{try{const d=await fetch(ST,{headers:{Authorization:`Bearer ${_T}`,Accept:"application/vnd.api+json"}});if(!d.ok)throw new Error(`markets fetch ${d.status}`);const h=await d.json(),f=((h==null?void 0:h.data)||[]).map(m=>{var w,g,y,x,v,b;return{id:String(m.id),market_name:((w=m.attributes)==null?void 0:w.market_name)||"",city:((g=m.attributes)==null?void 0:g.city)||"",state_id:((y=m.attributes)==null?void 0:y.state_id)||"",latitude:(x=m.attributes)==null?void 0:x.latitude,longitude:(v=m.attributes)==null?void 0:v.longitude,default:!!((b=m.attributes)!=null&&b.default)}});if(u||f.length===0)return;r(f),a(m=>m&&f.some(g=>g.id===m)?m:(f.find(g=>g.default)||f[0]).id)}catch(d){console.warn("[useMarket] markets load failed — switcher hidden:",d)}finally{u||o(!1)}})(),()=>{u=!0}},[]);const l=p.useCallback(u=>{const d=e.find(h=>h.id===String(u));d&&(Sy(d),a(d.id),window.dispatchEvent(new CustomEvent("orr:marketChanged",{detail:{marketId:d.id}})))},[e]);p.useEffect(()=>{const u=d=>{var m;const h=(m=d.detail)==null?void 0:m.marketId;if(!h||String(h)===n)return;const f=e.find(w=>w.id===String(h));f&&(Sy(f),a(f.id))};return window.addEventListener("idx:childMarketChanged",u),()=>window.removeEventListener("idx:childMarketChanged",u)},[e,n]);const c=p.useMemo(()=>({markets:e,market:e.find(u=>u.id===n)||null,marketId:n,setMarket:l,loading:i}),[e,n,l,i]);return s.jsx(I4.Provider,{value:c,children:t})};function kd(){const t=p.useContext(I4);if(!t)throw new Error("useMarket must be used inside <MarketProvider>");return t}var TT=p.createContext(void 0);function jd(t){const e=p.useContext(TT);return t||e||"ltr"}var Ih="rovingFocusGroup.onEntryFocus",RT={bubbles:!1,cancelable:!0},Ll="RovingFocusGroup",[_m,M4,AT]=Cl(Ll),[PT,L4]=Gt(Ll,[AT]),[OT,IT]=PT(Ll),D4=p.forwardRef((t,e)=>s.jsx(_m.Provider,{scope:t.__scopeRovingFocusGroup,children:s.jsx(_m.Slot,{scope:t.__scopeRovingFocusGroup,children:s.jsx(MT,{...t,ref:e})})}));D4.displayName=Ll;var MT=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=t,f=p.useRef(null),m=ve(e,f),w=jd(i),[g,y]=Gr({prop:o,defaultProp:l??null,onChange:c,caller:Ll}),[x,v]=p.useState(!1),b=zt(u),k=M4(r),j=p.useRef(!1),[N,_]=p.useState(0);return p.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Ih,b),()=>E.removeEventListener(Ih,b)},[b]),s.jsx(OT,{scope:r,orientation:n,dir:w,loop:a,currentTabStopId:g,onItemFocus:p.useCallback(E=>y(E),[y]),onItemShiftTab:p.useCallback(()=>v(!0),[]),onFocusableItemAdd:p.useCallback(()=>_(E=>E+1),[]),onFocusableItemRemove:p.useCallback(()=>_(E=>E-1),[]),children:s.jsx(oe.div,{tabIndex:x||N===0?-1:0,"data-orientation":n,...h,ref:m,style:{outline:"none",...t.style},onMouseDown:W(t.onMouseDown,()=>{j.current=!0}),onFocus:W(t.onFocus,E=>{const R=!j.current;if(E.target===E.currentTarget&&R&&!x){const A=new CustomEvent(Ih,RT);if(E.currentTarget.dispatchEvent(A),!A.defaultPrevented){const $=k().filter(z=>z.focusable),O=$.find(z=>z.active),J=$.find(z=>z.id===g),Z=[O,J,...$].filter(Boolean).map(z=>z.ref.current);B4(Z,d)}}j.current=!1}),onBlur:W(t.onBlur,()=>v(!1))})})}),$4="RovingFocusGroupItem",F4=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:i,children:o,...l}=t,c=ns(),u=i||c,d=IT($4,r),h=d.currentTabStopId===u,f=M4(r),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:g}=d;return p.useEffect(()=>{if(n)return m(),()=>w()},[n,m,w]),s.jsx(_m.ItemSlot,{scope:r,id:u,focusable:n,active:a,children:s.jsx(oe.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...l,ref:e,onMouseDown:W(t.onMouseDown,y=>{n?d.onItemFocus(u):y.preventDefault()}),onFocus:W(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:W(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){d.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const x=$T(y,d.orientation,d.dir);if(x!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let b=f().filter(k=>k.focusable).map(k=>k.ref.current);if(x==="last")b.reverse();else if(x==="prev"||x==="next"){x==="prev"&&b.reverse();const k=b.indexOf(y.currentTarget);b=d.loop?FT(b,k+1):b.slice(k+1)}setTimeout(()=>B4(b))}}),children:typeof o=="function"?o({isCurrentTabStop:h,hasTabStop:g!=null}):o})})});F4.displayName=$4;var LT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function DT(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function $T(t,e,r){const n=DT(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return LT[n]}function B4(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function FT(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var BT=D4,UT=F4,Sm=["Enter"," "],WT=["ArrowDown","PageUp","Home"],U4=["ArrowUp","PageDown","End"],zT=[...WT,...U4],HT={ltr:[...Sm,"ArrowRight"],rtl:[...Sm,"ArrowLeft"]},VT={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Dl="Menu",[ol,qT,GT]=Cl(Dl),[ca,W4]=Gt(Dl,[GT,pd,L4]),Nd=pd(),z4=L4(),[KT,ua]=ca(Dl),[YT,$l]=ca(Dl),H4=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:a,onOpenChange:i,modal:o=!0}=t,l=Nd(e),[c,u]=p.useState(null),d=p.useRef(!1),h=zt(i),f=jd(a);return p.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),s.jsx(iC,{...l,children:s.jsx(KT,{scope:e,open:r,onOpenChange:h,content:c,onContentChange:u,children:s.jsx(YT,{scope:e,onClose:p.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:f,modal:o,children:n})})})};H4.displayName=Dl;var JT="MenuAnchor",Sg=p.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,a=Nd(r);return s.jsx(tw,{...a,...n,ref:e})});Sg.displayName=JT;var Cg="MenuPortal",[QT,V4]=ca(Cg,{forceMount:void 0}),q4=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:a}=t,i=ua(Cg,e);return s.jsx(QT,{scope:e,forceMount:r,children:s.jsx(ar,{present:r||i.open,children:s.jsx(td,{asChild:!0,container:a,children:n})})})};q4.displayName=Cg;var rr="MenuContent",[XT,Eg]=ca(rr),G4=p.forwardRef((t,e)=>{const r=V4(rr,t.__scopeMenu),{forceMount:n=r.forceMount,...a}=t,i=ua(rr,t.__scopeMenu),o=$l(rr,t.__scopeMenu);return s.jsx(ol.Provider,{scope:t.__scopeMenu,children:s.jsx(ar,{present:n||i.open,children:s.jsx(ol.Slot,{scope:t.__scopeMenu,children:o.modal?s.jsx(ZT,{...a,ref:e}):s.jsx(eR,{...a,ref:e})})})})}),ZT=p.forwardRef((t,e)=>{const r=ua(rr,t.__scopeMenu),n=p.useRef(null),a=ve(e,n);return p.useEffect(()=>{const i=n.current;if(i)return c4(i)},[]),s.jsx(Tg,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:W(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),eR=p.forwardRef((t,e)=>{const r=ua(rr,t.__scopeMenu);return s.jsx(Tg,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),tR=_i("MenuContent.ScrollLock"),Tg=p.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:m,disableOutsideScroll:w,...g}=t,y=ua(rr,r),x=$l(rr,r),v=Nd(r),b=z4(r),k=qT(r),[j,N]=p.useState(null),_=p.useRef(null),E=ve(e,_,y.onContentChange),R=p.useRef(0),A=p.useRef(""),$=p.useRef(0),O=p.useRef(null),J=p.useRef("right"),M=p.useRef(0),Z=w?vg:p.Fragment,z=w?{as:tR,allowPinchZoom:!0}:void 0,X=C=>{var me,Yr;const L=A.current+C,q=k().filter(nt=>!nt.disabled),F=document.activeElement,se=(me=q.find(nt=>nt.ref.current===F))==null?void 0:me.textValue,le=q.map(nt=>nt.textValue),De=fR(le,L,se),We=(Yr=q.find(nt=>nt.textValue===De))==null?void 0:Yr.ref.current;(function nt(Pr){A.current=Pr,window.clearTimeout(R.current),Pr!==""&&(R.current=window.setTimeout(()=>nt(""),1e3))})(L),We&&setTimeout(()=>We.focus())};p.useEffect(()=>()=>window.clearTimeout(R.current),[]),t4();const T=p.useCallback(C=>{var q,F;return J.current===((q=O.current)==null?void 0:q.side)&&pR(C,(F=O.current)==null?void 0:F.area)},[]);return s.jsx(XT,{scope:r,searchRef:A,onItemEnter:p.useCallback(C=>{T(C)&&C.preventDefault()},[T]),onItemLeave:p.useCallback(C=>{var L;T(C)||((L=_.current)==null||L.focus(),N(null))},[T]),onTriggerLeave:p.useCallback(C=>{T(C)&&C.preventDefault()},[T]),pointerGraceTimerRef:$,onPointerGraceIntentChange:p.useCallback(C=>{O.current=C},[]),children:s.jsx(Z,{...z,children:s.jsx(yg,{asChild:!0,trapped:a,onMountAutoFocus:W(i,C=>{var L;C.preventDefault(),(L=_.current)==null||L.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:s.jsx(El,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:f,onDismiss:m,children:s.jsx(BT,{asChild:!0,...b,dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:W(c,C=>{x.isUsingKeyboardRef.current||C.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(rw,{role:"menu","aria-orientation":"vertical","data-state":c3(y.open),"data-radix-menu-content":"",dir:x.dir,...v,...g,ref:E,style:{outline:"none",...g.style},onKeyDown:W(g.onKeyDown,C=>{const q=C.target.closest("[data-radix-menu-content]")===C.currentTarget,F=C.ctrlKey||C.altKey||C.metaKey,se=C.key.length===1;q&&(C.key==="Tab"&&C.preventDefault(),!F&&se&&X(C.key));const le=_.current;if(C.target!==le||!zT.includes(C.key))return;C.preventDefault();const We=k().filter(me=>!me.disabled).map(me=>me.ref.current);U4.includes(C.key)&&We.reverse(),dR(We)}),onBlur:W(t.onBlur,C=>{C.currentTarget.contains(C.target)||(window.clearTimeout(R.current),A.current="")}),onPointerMove:W(t.onPointerMove,ll(C=>{const L=C.target,q=M.current!==C.clientX;if(C.currentTarget.contains(L)&&q){const F=C.clientX>M.current?"right":"left";J.current=F,M.current=C.clientX}}))})})})})})})});G4.displayName=rr;var rR="MenuGroup",Rg=p.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return s.jsx(oe.div,{role:"group",...n,ref:e})});Rg.displayName=rR;var nR="MenuLabel",K4=p.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return s.jsx(oe.div,{...n,ref:e})});K4.displayName=nR;var Ru="MenuItem",Cy="menu.itemSelect",_d=p.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...a}=t,i=p.useRef(null),o=$l(Ru,t.__scopeMenu),l=Eg(Ru,t.__scopeMenu),c=ve(e,i),u=p.useRef(!1),d=()=>{const h=i.current;if(!r&&h){const f=new CustomEvent(Cy,{bubbles:!0,cancelable:!0});h.addEventListener(Cy,m=>n==null?void 0:n(m),{once:!0}),Fp(h,f),f.defaultPrevented?u.current=!1:o.onClose()}};return s.jsx(Y4,{...a,ref:c,disabled:r,onClick:W(t.onClick,d),onPointerDown:h=>{var f;(f=t.onPointerDown)==null||f.call(t,h),u.current=!0},onPointerUp:W(t.onPointerUp,h=>{var f;u.current||(f=h.currentTarget)==null||f.click()}),onKeyDown:W(t.onKeyDown,h=>{const f=l.searchRef.current!=="";r||f&&h.key===" "||Sm.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});_d.displayName=Ru;var Y4=p.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...i}=t,o=Eg(Ru,r),l=z4(r),c=p.useRef(null),u=ve(e,c),[d,h]=p.useState(!1),[f,m]=p.useState("");return p.useEffect(()=>{const w=c.current;w&&m((w.textContent??"").trim())},[i.children]),s.jsx(ol.ItemSlot,{scope:r,disabled:n,textValue:a??f,children:s.jsx(UT,{asChild:!0,...l,focusable:!n,children:s.jsx(oe.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:u,onPointerMove:W(t.onPointerMove,ll(w=>{n?o.onItemLeave(w):(o.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(t.onPointerLeave,ll(w=>o.onItemLeave(w))),onFocus:W(t.onFocus,()=>h(!0)),onBlur:W(t.onBlur,()=>h(!1))})})})}),sR="MenuCheckboxItem",J4=p.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...a}=t;return s.jsx(t3,{scope:t.__scopeMenu,checked:r,children:s.jsx(_d,{role:"menuitemcheckbox","aria-checked":Au(r)?"mixed":r,...a,ref:e,"data-state":Pg(r),onSelect:W(a.onSelect,()=>n==null?void 0:n(Au(r)?!0:!r),{checkForDefaultPrevented:!1})})})});J4.displayName=sR;var Q4="MenuRadioGroup",[aR,iR]=ca(Q4,{value:void 0,onValueChange:()=>{}}),X4=p.forwardRef((t,e)=>{const{value:r,onValueChange:n,...a}=t,i=zt(n);return s.jsx(aR,{scope:t.__scopeMenu,value:r,onValueChange:i,children:s.jsx(Rg,{...a,ref:e})})});X4.displayName=Q4;var Z4="MenuRadioItem",e3=p.forwardRef((t,e)=>{const{value:r,...n}=t,a=iR(Z4,t.__scopeMenu),i=r===a.value;return s.jsx(t3,{scope:t.__scopeMenu,checked:i,children:s.jsx(_d,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":Pg(i),onSelect:W(n.onSelect,()=>{var o;return(o=a.onValueChange)==null?void 0:o.call(a,r)},{checkForDefaultPrevented:!1})})})});e3.displayName=Z4;var Ag="MenuItemIndicator",[t3,oR]=ca(Ag,{checked:!1}),r3=p.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...a}=t,i=oR(Ag,r);return s.jsx(ar,{present:n||Au(i.checked)||i.checked===!0,children:s.jsx(oe.span,{...a,ref:e,"data-state":Pg(i.checked)})})});r3.displayName=Ag;var lR="MenuSeparator",n3=p.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return s.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});n3.displayName=lR;var cR="MenuArrow",s3=p.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,a=Nd(r);return s.jsx(nw,{...a,...n,ref:e})});s3.displayName=cR;var uR="MenuSub",[uB,a3]=ca(uR),xo="MenuSubTrigger",i3=p.forwardRef((t,e)=>{const r=ua(xo,t.__scopeMenu),n=$l(xo,t.__scopeMenu),a=a3(xo,t.__scopeMenu),i=Eg(xo,t.__scopeMenu),o=p.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,u={__scopeMenu:t.__scopeMenu},d=p.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return p.useEffect(()=>d,[d]),p.useEffect(()=>{const h=l.current;return()=>{window.clearTimeout(h),c(null)}},[l,c]),s.jsx(Sg,{asChild:!0,...u,children:s.jsx(Y4,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":c3(r.open),...t,ref:ed(e,a.onTriggerChange),onClick:h=>{var f;(f=t.onClick)==null||f.call(t,h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:W(t.onPointerMove,ll(h=>{i.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:W(t.onPointerLeave,ll(h=>{var m,w;d();const f=(m=r.content)==null?void 0:m.getBoundingClientRect();if(f){const g=(w=r.content)==null?void 0:w.dataset.side,y=g==="right",x=y?-5:5,v=f[y?"left":"right"],b=f[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:h.clientX+x,y:h.clientY},{x:v,y:f.top},{x:b,y:f.top},{x:b,y:f.bottom},{x:v,y:f.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(h),h.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:W(t.onKeyDown,h=>{var m;const f=i.searchRef.current!=="";t.disabled||f&&h.key===" "||HT[n.dir].includes(h.key)&&(r.onOpenChange(!0),(m=r.content)==null||m.focus(),h.preventDefault())})})})});i3.displayName=xo;var o3="MenuSubContent",l3=p.forwardRef((t,e)=>{const r=V4(rr,t.__scopeMenu),{forceMount:n=r.forceMount,...a}=t,i=ua(rr,t.__scopeMenu),o=$l(rr,t.__scopeMenu),l=a3(o3,t.__scopeMenu),c=p.useRef(null),u=ve(e,c);return s.jsx(ol.Provider,{scope:t.__scopeMenu,children:s.jsx(ar,{present:n||i.open,children:s.jsx(ol.Slot,{scope:t.__scopeMenu,children:s.jsx(Tg,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;o.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:W(t.onFocusOutside,d=>{d.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:W(t.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:W(t.onKeyDown,d=>{var m;const h=d.currentTarget.contains(d.target),f=VT[o.dir].includes(d.key);h&&f&&(i.onOpenChange(!1),(m=l.trigger)==null||m.focus(),d.preventDefault())})})})})})});l3.displayName=o3;function c3(t){return t?"open":"closed"}function Au(t){return t==="indeterminate"}function Pg(t){return Au(t)?"indeterminate":t?"checked":"unchecked"}function dR(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function hR(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function fR(t,e,r){const a=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=hR(t,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const c=o.find(u=>u.toLowerCase().startsWith(a.toLowerCase()));return c!==r?c:void 0}function mR(t,e){const{x:r,y:n}=t;let a=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const l=e[i],c=e[o],u=l.x,d=l.y,h=c.x,f=c.y;d>n!=f>n&&r<(h-u)*(n-d)/(f-d)+u&&(a=!a)}return a}function pR(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return mR(r,e)}function ll(t){return e=>e.pointerType==="mouse"?t(e):void 0}var gR=H4,xR=Sg,yR=q4,vR=G4,bR=Rg,wR=K4,kR=_d,jR=J4,NR=X4,_R=e3,SR=r3,CR=n3,ER=s3,TR=i3,RR=l3,Sd="DropdownMenu",[AR,dB]=Gt(Sd,[W4]),Nt=W4(),[PR,u3]=AR(Sd),d3=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:a,defaultOpen:i,onOpenChange:o,modal:l=!0}=t,c=Nt(e),u=p.useRef(null),[d,h]=Gr({prop:a,defaultProp:i??!1,onChange:o,caller:Sd});return s.jsx(PR,{scope:e,triggerId:ns(),triggerRef:u,contentId:ns(),open:d,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(f=>!f),[h]),modal:l,children:s.jsx(gR,{...c,open:d,onOpenChange:h,dir:n,modal:l,children:r})})};d3.displayName=Sd;var h3="DropdownMenuTrigger",f3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=t,i=u3(h3,r),o=Nt(r);return s.jsx(xR,{asChild:!0,...o,children:s.jsx(oe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:ed(e,i.triggerRef),onPointerDown:W(t.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:W(t.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});f3.displayName=h3;var OR="DropdownMenuPortal",m3=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Nt(e);return s.jsx(yR,{...n,...r})};m3.displayName=OR;var p3="DropdownMenuContent",g3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=u3(p3,r),i=Nt(r),o=p.useRef(!1);return s.jsx(vR,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...n,ref:e,onCloseAutoFocus:W(t.onCloseAutoFocus,l=>{var c;o.current||(c=a.triggerRef.current)==null||c.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:W(t.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!a.modal||d)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});g3.displayName=p3;var IR="DropdownMenuGroup",MR=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(bR,{...a,...n,ref:e})});MR.displayName=IR;var LR="DropdownMenuLabel",x3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(wR,{...a,...n,ref:e})});x3.displayName=LR;var DR="DropdownMenuItem",y3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(kR,{...a,...n,ref:e})});y3.displayName=DR;var $R="DropdownMenuCheckboxItem",v3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(jR,{...a,...n,ref:e})});v3.displayName=$R;var FR="DropdownMenuRadioGroup",BR=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(NR,{...a,...n,ref:e})});BR.displayName=FR;var UR="DropdownMenuRadioItem",b3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(_R,{...a,...n,ref:e})});b3.displayName=UR;var WR="DropdownMenuItemIndicator",w3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(SR,{...a,...n,ref:e})});w3.displayName=WR;var zR="DropdownMenuSeparator",k3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(CR,{...a,...n,ref:e})});k3.displayName=zR;var HR="DropdownMenuArrow",VR=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(ER,{...a,...n,ref:e})});VR.displayName=HR;var qR="DropdownMenuSubTrigger",j3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(TR,{...a,...n,ref:e})});j3.displayName=qR;var GR="DropdownMenuSubContent",N3=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,a=Nt(r);return s.jsx(RR,{...a,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});N3.displayName=GR;var KR=d3,YR=f3,JR=m3,_3=g3,S3=x3,C3=y3,E3=v3,T3=b3,R3=w3,A3=k3,P3=j3,O3=N3;const Hc=KR,Vc=YR,QR=p.forwardRef(({className:t,inset:e,children:r,...n},a)=>s.jsxs(P3,{ref:a,className:ke("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",e&&"pl-8",t),...n,children:[r,s.jsx(Rl,{className:"ml-auto h-4 w-4"})]}));QR.displayName=P3.displayName;const XR=p.forwardRef(({className:t,...e},r)=>s.jsx(O3,{ref:r,className:ke("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));XR.displayName=O3.displayName;const Ro=p.forwardRef(({className:t,sideOffset:e=4,...r},n)=>s.jsx(JR,{children:s.jsx(_3,{ref:n,sideOffset:e,className:ke("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));Ro.displayName=_3.displayName;const qa=p.forwardRef(({className:t,inset:e,...r},n)=>s.jsx(C3,{ref:n,className:ke("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e&&"pl-8",t),...r}));qa.displayName=C3.displayName;const ZR=p.forwardRef(({className:t,children:e,checked:r,...n},a)=>s.jsxs(E3,{ref:a,className:ke("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),checked:r,...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(R3,{children:s.jsx(Ks,{className:"h-4 w-4"})})}),e]}));ZR.displayName=E3.displayName;const eA=p.forwardRef(({className:t,children:e,...r},n)=>s.jsxs(T3,{ref:n,className:ke("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t),...r,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(R3,{children:s.jsx(s_,{className:"h-2 w-2 fill-current"})})}),e]}));eA.displayName=T3.displayName;const tA=p.forwardRef(({className:t,inset:e,...r},n)=>s.jsx(S3,{ref:n,className:ke("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));tA.displayName=S3.displayName;const rA=p.forwardRef(({className:t,...e},r)=>s.jsx(A3,{ref:r,className:ke("-mx-1 my-1 h-px bg-muted",t),...e}));rA.displayName=A3.displayName;const nA=1,sA="c36e2e8c-44c5-4f1a-8863-9e0e89c66b86",aA="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",iA="/__l5e/assets-v1/c36e2e8c-44c5-4f1a-8863-9e0e89c66b86/wcc-img_1319.jpg",oA="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/c36e2e8c-44c5-4f1a-8863-9e0e89c66b86/wcc-img_1319.jpg",lA="wcc-img_1319.jpg",cA=625989,uA="image/jpeg",dA="2026-07-11T17:17:54Z",hA={version:nA,asset_id:sA,project_id:aA,url:iA,r2_key:oA,original_filename:lA,size:cA,content_type:uA,created_at:dA},fA=1,mA="43e9dedc-d100-4327-9406-4e7df4416489",pA="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",gA="/__l5e/assets-v1/43e9dedc-d100-4327-9406-4e7df4416489/wcc-img_1439.jpg",xA="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/43e9dedc-d100-4327-9406-4e7df4416489/wcc-img_1439.jpg",yA="wcc-img_1439.jpg",vA=1371412,bA="image/jpeg",wA="2026-07-11T17:17:57Z",kA={version:fA,asset_id:mA,project_id:pA,url:gA,r2_key:xA,original_filename:yA,size:vA,content_type:bA,created_at:wA},jA=1,NA="4ac08881-b515-400d-a6a4-6a4227f488f6",_A="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",SA="/__l5e/assets-v1/4ac08881-b515-400d-a6a4-6a4227f488f6/wcc-img_2366.jpg",CA="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/4ac08881-b515-400d-a6a4-6a4227f488f6/wcc-img_2366.jpg",EA="wcc-img_2366.jpg",TA=1158871,RA="image/jpeg",AA="2026-07-11T17:18:01Z",PA={version:jA,asset_id:NA,project_id:_A,url:SA,r2_key:CA,original_filename:EA,size:TA,content_type:RA,created_at:AA},OA=1,IA="6666361c-d6a2-4043-9d17-f67ea7c3dd14",MA="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",LA="/__l5e/assets-v1/6666361c-d6a2-4043-9d17-f67ea7c3dd14/wcc-img_2648.jpg",DA="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/6666361c-d6a2-4043-9d17-f67ea7c3dd14/wcc-img_2648.jpg",$A="wcc-img_2648.jpg",FA=860983,BA="image/jpeg",UA="2026-07-11T17:18:05Z",WA={version:OA,asset_id:IA,project_id:MA,url:LA,r2_key:DA,original_filename:$A,size:FA,content_type:BA,created_at:UA},zA=1,HA="bc54342e-8b8d-450b-ac63-68239660fa8d",VA="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",qA="/__l5e/assets-v1/bc54342e-8b8d-450b-ac63-68239660fa8d/wcc-img_8285.jpeg",GA="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/bc54342e-8b8d-450b-ac63-68239660fa8d/wcc-img_8285.jpeg",KA="wcc-img_8285.jpeg",YA=1070980,JA="image/jpeg",QA="2026-07-11T17:18:08Z",XA={version:zA,asset_id:HA,project_id:VA,url:qA,r2_key:GA,original_filename:KA,size:YA,content_type:JA,created_at:QA},ZA=1,eP="1a7b2f8d-e090-412b-9501-ced35e4b41ec",tP="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",rP="/__l5e/assets-v1/1a7b2f8d-e090-412b-9501-ced35e4b41ec/wcc-img_1403.jpg",nP="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/1a7b2f8d-e090-412b-9501-ced35e4b41ec/wcc-img_1403.jpg",sP="wcc-img_1403.jpg",aP=1216567,iP="image/jpeg",oP="2026-07-11T17:18:15Z",lP={version:ZA,asset_id:eP,project_id:tP,url:rP,r2_key:nP,original_filename:sP,size:aP,content_type:iP,created_at:oP},cP=1,uP="01bcb267-f439-49c7-a99f-30d932ac3bca",dP="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",hP="/__l5e/assets-v1/01bcb267-f439-49c7-a99f-30d932ac3bca/wcc-img_1395.jpg",fP="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/01bcb267-f439-49c7-a99f-30d932ac3bca/wcc-img_1395.jpg",mP="wcc-img_1395.jpg",pP=983261,gP="image/jpeg",xP="2026-07-11T17:18:19Z",yP={version:cP,asset_id:uP,project_id:dP,url:hP,r2_key:fP,original_filename:mP,size:pP,content_type:gP,created_at:xP},vP=1,bP="b5b6d65e-a09b-40c3-9894-9c21f7be85e1",wP="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",kP="/__l5e/assets-v1/b5b6d65e-a09b-40c3-9894-9c21f7be85e1/wcc-img_0916.jpg",jP="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/b5b6d65e-a09b-40c3-9894-9c21f7be85e1/wcc-img_0916.jpg",NP="wcc-img_0916.jpg",_P=1000638,SP="image/jpeg",CP="2026-07-11T17:18:23Z",EP={version:vP,asset_id:bP,project_id:wP,url:kP,r2_key:jP,original_filename:NP,size:_P,content_type:SP,created_at:CP},TP=1,RP="2d9e5e36-0b1f-4bcd-a3af-6f1dbf9eeba2",AP="2e91ef2a-8c69-48b7-9bd5-25be4390a27b",PP="/__l5e/assets-v1/2d9e5e36-0b1f-4bcd-a3af-6f1dbf9eeba2/wcc-img_0902.jpg",OP="a/v1/2e91ef2a-8c69-48b7-9bd5-25be4390a27b/2d9e5e36-0b1f-4bcd-a3af-6f1dbf9eeba2/wcc-img_0902.jpg",IP="wcc-img_0902.jpg",MP=651300,LP="image/jpeg",DP="2026-07-11T17:18:26Z",$P={version:TP,asset_id:RP,project_id:AP,url:PP,r2_key:OP,original_filename:IP,size:MP,content_type:LP,created_at:DP},Mn=[{slug:"westlake-country-club",name:"Westlake Country Club (Lost Creek)",shortName:"Westlake CC",location:"Lost Creek, Austin",region:"West Austin",courseType:"Private",architect:"Leon Howard (original, 1966); Lanny Wadkins (2022 redesign)",yearOpened:"",holes:18,membership:{initiation:"Mid-five figures (varies by class)",dues:"Monthly dues + food & beverage minimum",waitlist:"Sponsored referral — Rick sponsors qualified buyers"},areaId:"base64-YXJlYX5uZWlnaGJvcmhvb2R-TG9zdCBDcmVlaywgQXVzdGluLCBUWA",hero:{tagline:"Rick's home club — where every serious conversation starts on the 1st tee.",intro:"Westlake Country Club is Rick Orr's home course — he plays here four times a week and knows every pin, every neighbor, and every home on the fairway. If you're relocating and want to see whether Westlake fits your game and your family, Rick will host you for a round on the house, no obligation."},copy:{course:"Originally designed by Leon Howard in 1966 and reborn in 2022 after a $20M+ reinvestment by Invited (formerly ClubCorp), with a full course redesign led by PGA Tour and Ryder Cup star Lanny Wadkins. The Wadkins redesign modernized the greens complexes, bunkering, and tee boxes while preserving Howard's classic routing through the cedar-covered hills of Lost Creek, just west of MoPac. The par-5 13th and the drop-shot 17th remain the best pair of finishing tests on Austin's west side.",community:"Lost Creek wraps the course with low-density streets of custom estates on wooded lots, many with cart access to the club. Homes here typically run 3,500–8,000+ sq ft. Eanes ISD, ten minutes to downtown, twenty to ABIA — the closest private club to central Austin.",membership:"Westlake operates a sponsored-membership model. New members are vouched for by existing members in good standing — which is why working with a resident-member realtor accelerates the process. Full Golf, Sports (racquet + fitness + pool), and Social categories are available; Junior Executive discounts under 40.",realEstate:"The Lost Creek / Westlake CC footprint is one of Austin's most supply-constrained luxury markets. Off-market activity is heavy — Rick's roster of member relationships surfaces homes weeks before they're publicly listed."},amenities:["18-hole championship course","Racquet complex (tennis + pickleball)","Junior Olympic pool","Fitness center & clinics","Fine + casual dining","Year-round member events"],priceBand:"$2.5M – $15M+",seoKeywords:["Westlake Country Club homes for sale","Lost Creek Austin real estate","Westlake CC membership","Westlake TX golf community realtor"],vibe:{heading:"What's the vibe at Westlake CC?",copy:"WCC is hands-down the most family-friendly private option in Austin — pool, pickleball, tennis, a brand-new restaurant (The Veranda), the best July 4th party in the city, and it's the closest private club to downtown. It's a great fit for the degenerate golfer, for families who actually want to *use* their club, and for a staff that lets you enjoy the course with the lil's in tow. Tee times are always easy to grab. Rick and Katy would be delighted to connect you with the Membership team — they've referred more full members than anyone. And yes, we really do love it.",images:[{src:PA.url,alt:"Rick, Katy and the girls at Westlake Country Club overlooking the lake",caption:"Family at WCC — Katy, the girls, and me"},{src:WA.url,alt:"WCC July 4th party at sunset with bounce houses and members",caption:"July 4th on the range — the best party in Austin"},{src:kA.url,alt:"Rick with his daughters after a WCC junior clinic",caption:"The girls after a junior clinic"},{src:XA.url,alt:"Rick with his men's group foursome at Westlake CC",caption:"Wednesday men's group"},{src:EP.url,alt:"Rick and buddies on the green with The Shootout flag at WCC",caption:"The Shootout — WCC"},{src:hA.url,alt:"Rick and a friend on the WCC course at sunset",caption:"Sunset round with a member friend"},{src:$P.url,alt:"Rick with both daughters on the WCC course",caption:"Playing with the lil's — always welcome"},{src:yP.url,alt:"Rick's daughters at the WCC holiday tree lighting",caption:"Holiday tree lighting at the club"},{src:lP.url,alt:"The girls playing under the lit oak at WCC during the holidays",caption:"Under the oaks at Christmas"}]}},{slug:"austin-country-club",name:"Austin Country Club",shortName:"ACC",location:"Davenport Ranch, West Austin",region:"West Austin",courseType:"Private",architect:"Pete Dye (current site, 1984)",yearOpened:"1899 (founded); 1984 (Davenport site)",holes:18,membership:{initiation:"~$150,000 for a Full Golf membership (per Rick's latest member intel)",dues:"Premium monthly dues + F&B minimum",waitlist:"Multi-year; sponsored entry required"},areaId:"3dd808b6-7df9-4fe3-9f39-c5056236ed95",hero:{tagline:"Texas's oldest country club — and the host of the WGC-Dell Match Play.",intro:"Austin Country Club sits above Lake Austin with the Pennybacker Bridge as its backdrop and Pete Dye's fingerprints on every hole. It's the most prestigious address in Austin golf, and the Davenport Ranch homes that ring it are traded quietly among a small circle. Rick knows that circle."},copy:{course:"Pete Dye's 1984 routing carves through limestone cliffs above Lake Austin. Small, firm greens, forced carries over ravines, and the closing stretch (15–17) that Rory McIlroy called 'as fun a finish as we play all year' at the WGC-Dell Technologies Match Play.",community:"Davenport Ranch, The Courtyard, and River Oaks wrap the course. Custom estates from the late-80s golden era mixed with tear-down / new-build activity as the neighborhood turns over. Water views, cart-path access to the 1st tee for a handful of streets.",membership:"ACC's membership is capped and highly sponsored. Legacy members carry generational access. New members typically need multiple sponsors and a multi-year runway. Rick maintains active relationships with ACC members and can facilitate introductions.",realEstate:"One of the most tightly held submarkets in Austin. Public-MLS inventory is thin; off-market activity dominates. Rick's ACC network gives buyers early access to homes that never touch a public listing site."},amenities:["Pete Dye 18-hole course","Lake Austin frontage","Racquet & aquatics complex","Championship-caliber dining","Concierge & event programming"],priceBand:"$3M – $25M+",seoKeywords:["Austin Country Club homes for sale","Davenport Ranch real estate","ACC membership Austin","Pete Dye course Austin homes"]},{slug:"barton-creek",name:"Barton Creek Country Club",shortName:"Barton Creek",location:"Barton Creek, SW Austin",region:"Hill Country",courseType:"Private / Resort",architect:"Tom Fazio (Foothills, Canyons), Ben Crenshaw & Bill Coore (Cliffside), Arnold Palmer (Lakeside)",yearOpened:"1986",holes:72,membership:{initiation:"~$125,000 non-equity / ~$175,000 with equity (per Rick's latest intel)",dues:"~$1,100 / month; resort access included",waitlist:"~2 years for Full Golf; ~9 months for Social (current)"},areaId:"0f78d430-6d64-4ab4-b6b7-802de6914398",hero:{tagline:"Four championship courses, three architectural legends, one 4,000-acre Hill Country community.",intro:"Nowhere else in Texas puts Fazio, Crenshaw/Coore, and Palmer on the same property. Barton Creek is the deepest golf-community offering in Austin — resort membership flexibility, four distinct course experiences, and homes ranging from garden villas to $10M+ Hill Country estates."},copy:{course:"Fazio Foothills is the marquee (Fazio's personal Top-100 pick), followed by Fazio Canyons — longer, more heroic tee shots, a favorite of low-handicap members. Coore & Crenshaw's Cliffside sits 20 minutes west on Lake Travis and plays like a Sand Hills-inspired minimalist gem. Palmer's Lakeside rounds out the roster.",community:"Amarra, Amarra Villas, Escala, Verano, Spillman Ridge, and the original 1980s Barton Creek streets. Product mix runs from 3,000 sq ft villas to 15,000+ sq ft custom estates. Eanes ISD in the north sections, Austin ISD in others.",membership:"Barton Creek's resort-plus-club model is unusually flexible — golf, sports, and social tiers with reciprocal privileges at Omni properties. No sponsored-entry hurdle for most tiers. A good first-club fit for buyers coming from out of state.",realEstate:"Deepest inventory of any Austin golf community. Rick tracks Amarra new-construction pipeline, Escala's guard-gated resales, and the classic 1980s streets where value plays are still available."},amenities:["72 holes across 4 courses","Omni resort spa & dining","Fitness centers & tennis","Kids' programming","Corporate meeting facilities"],priceBand:"$1.5M – $15M+",seoKeywords:["Barton Creek homes for sale","Amarra Austin real estate","Fazio Foothills community","Barton Creek country club membership"]},{slug:"spanish-oaks",name:"Spanish Oaks Golf Club",shortName:"Spanish Oaks",location:"Bee Cave, west of Austin",region:"Hill Country",courseType:"Private",architect:"Bobby Weed",yearOpened:"2004",holes:18,membership:{initiation:"~$200,000 (per Rick's recent conversation with GM Dan) — no lot purchase required",dues:"~$1,300 / month + F&B minimum",waitlist:"No current waitlist; sponsored entry"},areaId:"ebfec1df-780d-4f31-8593-eab8c833871c",hero:{tagline:"The Hill Country's answer to a modern Pine Valley — 800 acres, one course, no compromises.",intro:"Spanish Oaks is a members-first golf sanctuary — Bobby Weed's routing hugs limestone canyons, and the community is deliberately capped to protect the experience. Homes sit on generous lots inside the guarded perimeter; a Spanish Oaks address in Austin real-estate circles is shorthand for 'serious golfer.'"},copy:{course:"Bobby Weed's routing plays across dramatic elevation change, native grasses, and canyons that swallow errant tee shots. The par-3 14th over a limestone gorge is one of the most photographed holes in Central Texas. Bentgrass greens (rare for the region) held to tournament speeds.",community:"Guarded entry, custom-home covenant, no through traffic. Lot sizes 1–3 acres with strict architectural review. Lake Travis ISD.",membership:"Golf membership is tied loosely to property ownership but requires sponsorship. Social memberships are more accessible. Roster is intentionally capped to preserve tee-time availability — a differentiator versus larger clubs.",realEstate:"Extremely low turnover. A handful of resales per year, plus a slow drip of new-construction lots. Off-market conversations are how most Spanish Oaks homes trade — Rick's member network is the entry point."},amenities:["Bobby Weed championship course","Practice facility with short-game area","Modernist clubhouse & lodging cottages","Fitness & pool","Casual + fine dining"],priceBand:"$3M – $15M+",seoKeywords:["Spanish Oaks homes for sale","Bee Cave luxury golf","Bobby Weed Austin course","Spanish Oaks membership"]},{slug:"hills-of-lakeway-flintrock-falls",name:"The Hills of Lakeway & Flintrock Falls",shortName:"The Hills / Flintrock",location:"Lakeway",region:"Lakeway",courseType:"Private",architect:"Jack Nicklaus (The Hills, Flintrock Falls, Yaupon)",yearOpened:"1982 (The Hills); 2005 (Flintrock)",holes:54,membership:{initiation:"Moderate five figures — accessible for the tier",dues:"Monthly dues + F&B minimum",waitlist:"Typically open; sponsored preferred"},areaId:"67848109-a773-4057-9a5f-1382830289a1",hero:{tagline:"54 holes of Nicklaus in one gated Lakeway community.",intro:"The Hills of Lakeway is the only address in Austin where three Jack Nicklaus courses live behind the same gate. Flintrock Falls (2005) is the newest and most-photographed; The Hills and Yaupon anchor a family-friendly golf lifestyle a quick drive from Lake Travis."},copy:{course:"Flintrock Falls sprawls across former ranch land — waterfalls, generous fairways, elevated greens, five sets of tees. The Hills is the more penal test with tight cedar-lined corridors. Yaupon plays as the community's most walkable, member-friendly round.",community:"Guarded entrance with multiple villages inside. Home styles range from 1980s originals on quarter-acre lots to new-construction estates in the Flintrock sections. Lake Travis ISD, minutes to Lakeway Marina and Hill Country Galleria.",membership:"Among the more accessible entry points into a top-tier Nicklaus club. Multiple membership categories, generous guest privileges, active junior programming — a strong pick for families.",realEstate:"Deep inventory across price bands. Flintrock is where new-construction premiums live; The Hills offers renovation upside on original ranch-style estates."},amenities:["3 Nicklaus courses (54 holes)","Tennis + pickleball complex","Fitness center & pools","Youth camps & junior golf","Multiple dining venues"],priceBand:"$900K – $8M+",seoKeywords:["Flintrock Falls homes for sale","Hills of Lakeway real estate","Jack Nicklaus course Austin","Lakeway golf community"]},{slug:"ut-golf-club-steiner-ranch",name:"UT Golf Club at Steiner Ranch",shortName:"UT Golf Club",location:"Steiner Ranch, NW Austin",region:"Lake Travis",courseType:"Private",architect:"Bechtol / Russell",yearOpened:"2003",holes:18,membership:{initiation:"Mid five figures — UT alumni preference",dues:"Monthly + F&B; alumni discount tier",waitlist:"Typically open with sponsorship"},areaId:"bed81fab-6a1e-48ca-8f8a-3f20650461b7",hero:{tagline:"Home of Texas Longhorn golf — and a stone's throw from Lake Austin.",intro:"UT Golf Club is the official practice home of the University of Texas men's and women's golf programs — Jordan Spieth, Justin Leonard, and Scottie Scheffler have all shaped their games here. For alumni and Longhorn fans, it's the only address in Austin that pairs a championship course with burnt-orange tradition."},copy:{course:"Bechtol/Russell's routing rolls through former ranch land above Lake Austin — wide, forgiving fairways for the average member, championship tees that stretch to 7,400+ yards for the Longhorn teams and top amateur events.",community:"Steiner Ranch surrounds the course: 4,000+ acres, master-planned, gated sub-neighborhoods (Bluffs, Waterfall, University Estates). Product mix runs from $700K family homes to $6M+ Lake Austin waterfront in the northern sections. LTISD.",membership:"UT alumni receive priority and a discounted initiation. Family-friendly programming, active junior calendar. Reciprocal access to select UT athletic events for members.",realEstate:"Broadest price band of any private-club community in Austin — genuine entry-level in the outer streets, true luxury on the waterfront. Excellent value for buyers who want private-club access without a seven-figure home price."},amenities:["Championship course & practice facility","Fitness, tennis, pool","UT alumni programming","Junior + collegiate development"],priceBand:"$700K – $8M+",seoKeywords:["UT Golf Club homes","Steiner Ranch real estate","Longhorn alumni golf Austin","Steiner Ranch luxury homes"]},{slug:"river-place",name:"River Place Country Club",shortName:"River Place",location:"NW Austin, above Lake Austin",region:"West Austin",courseType:"Semi-Private",architect:"Tom Kite",yearOpened:"1992",holes:18,membership:{initiation:"Low five figures — most accessible top-tier",dues:"Reasonable monthly + F&B",waitlist:"Typically open"},areaId:"784af508-dbfb-4fac-885c-3556bd8b39a0",hero:{tagline:"Tom Kite's home track — and the best value in Austin private golf.",intro:"Austin native Tom Kite designed River Place as his hometown course. It's a semi-private club that punches well above its price point — dramatic elevation, Lake Austin frontage, and initiation costs that are a fraction of ACC or Spanish Oaks."},copy:{course:"Kite carved the course into cliffs above Lake Austin — elevation changes of 100+ feet on several holes, a stunning risk/reward par-5 12th along the lake, and greens that reward touch over power.",community:"River Place neighborhood ranges from 1990s family homes to newer custom estates. Leander ISD (River Place Elementary is a state-recognized standout). Kayak-launch access to Lake Austin. Nature Trail is one of Austin's best hikes.",membership:"Semi-private structure means guest and reciprocal play — a good fit for buyers who want club amenities without the sponsorship gauntlet. Family-friendly, active social calendar.",realEstate:"Value plays exist in the original 1990s sections; premium new-construction along the golf-course-frontage streets. One of the smartest entry points for buyers who want a golf lifestyle without a seven-figure buy-in."},amenities:["Tom Kite 18-hole course","Racquet & fitness","Pool & family programming","Casual + event dining"],priceBand:"$800K – $5M+",seoKeywords:["River Place homes for sale","Tom Kite Austin course","River Place country club","NW Austin golf community"]},{slug:"circle-c",name:"Grey Rock Golf Club at Circle C",shortName:"Circle C",location:"SW Austin",region:"South Austin",courseType:"Semi-Private",architect:"Jay Morrish",yearOpened:"1994",holes:18,membership:{initiation:"Public daily-fee + optional membership tiers",dues:"Optional membership; discounted play & practice",waitlist:"~3-year waitlist for Grey Rock full membership (current)"},areaId:"5b6ebfa0-ac37-4f0b-bf07-0412066d85ae",hero:{tagline:"The largest master-planned golf community in South Austin — and the shortest commute from downtown.",intro:"Circle C Ranch wraps Grey Rock Golf Club (Jay Morrish design) across 4,000 acres in southwest Austin. It's the most family-oriented golf community on this list — top schools, five pools, and a still-reasonable price band for what you get."},copy:{course:"Grey Rock's Jay Morrish layout uses Hill Country elevation without punishing the average player. Semi-private structure keeps tee times accessible for residents and their guests.",community:"Circle C is master-planned with parks, trails, and community pools — Austin ISD (Kiker Elementary, Gorzycki MS, Bowie HS) with excellent ratings. Product mix from 2,500 sq ft family homes to 5,000+ sq ft custom estates.",membership:"Full memberships available, but many residents use daily-fee play. Junior programming, active member events, and a solid practice facility.",realEstate:"The best price-per-square-foot in Austin private-golf-adjacent living. A strong fit for families who want the golf lifestyle without a top-tier initiation fee."},amenities:["Grey Rock 18-hole course","Community pools (5)","Extensive trail system","Top-rated AISD schools"],priceBand:"$700K – $3M+",seoKeywords:["Circle C homes for sale","Grey Rock golf Austin","South Austin golf community","Circle C Ranch real estate"]},{slug:"onion-creek",name:"Onion Creek Club",shortName:"Onion Creek",location:"South Austin",region:"South Austin",courseType:"Private",architect:"Jimmy Demaret (original 9); expanded to 27",yearOpened:"1972",holes:27,membership:{initiation:"Moderate five figures",dues:"Monthly + F&B minimum",waitlist:"Typically open"},areaId:"17097570-b9d5-4de9-9741-d01b2677d413",hero:{tagline:"Austin's original private golf community — designed by Masters champion Jimmy Demaret.",intro:"Onion Creek is Austin's founding modern golf community. Three-time Masters champion Jimmy Demaret designed the original nine as a retirement enclave in 1972, and the club later hosted the PGA Tour Champions' Legends of Golf for years. The neighborhood carries that legacy."},copy:{course:"27 holes across three nines — walkable, classic-era design, mature tree canopy. Fair for the average member, still testing from the tips.",community:"Established custom-home neighborhood with mature landscaping — a rarity in Austin's newer-build market. Homes range from renovated 1970s originals to full tear-down / new-construction. Convenient to ABIA (10 min) and downtown (15 min).",membership:"One of the more accessible entry points among established private clubs. Active senior + full-membership tiers, guest privileges, tournament calendar.",realEstate:"Undervalued relative to its history and location. Strong appreciation potential as South Austin continues to gentrify. Rick sees Onion Creek as one of the smartest long-hold plays in Central Texas golf real estate."},amenities:["27-hole Jimmy Demaret original","Historic clubhouse & dining","Tennis + pickleball","Pool & fitness"],priceBand:"$650K – $3M+",seoKeywords:["Onion Creek homes for sale","Jimmy Demaret Austin golf","South Austin private club","Onion Creek Club membership"]},{slug:"twin-creeks",name:"Twin Creeks Country Club",shortName:"Twin Creeks",location:"Cedar Park",region:"Cedar Park",courseType:"Private",architect:"Fred Couples & Gene Bates",yearOpened:"2000",holes:18,membership:{initiation:"Low-to-mid five figures",dues:"Monthly + F&B",waitlist:"Open"},areaId:"1d739e2f-5e09-4155-8680-d92e54b9c61e",hero:{tagline:"Fred Couples-designed golf and one of the strongest tech-corridor commutes in Central Texas.",intro:"Twin Creeks is Cedar Park's answer to Austin's premium golf communities — a Fred Couples & Gene Bates layout inside a gated 55+ and all-ages master plan, five minutes from the Apple, Dell, and Tesla corridors."},copy:{course:"Fred Couples' first Texas design — flowing, generous fairways, subtle greens, and a signature 18th along the creek. Consistently ranked among Central Texas's best-conditioned private courses.",community:"Mix of active-adult (Heritage at Twin Creeks) and all-ages sections. Leander ISD, five minutes to 183A toll and the tech-corridor commute. Product from mid-$500Ks to $2M+ custom estates.",membership:"Open membership with tiered categories, active social calendar, and one of the most inclusive junior programs in Central Texas.",realEstate:"Best value in north Austin private-club living. Strong rental demand from tech commuters, steady appreciation, and inventory that actually moves."},amenities:["Fred Couples championship course","Fitness + pool complex","Tennis & pickleball","55+ Heritage clubhouse"],priceBand:"$550K – $2.5M+",seoKeywords:["Twin Creeks homes for sale","Fred Couples course Cedar Park","Cedar Park golf community","Heritage Twin Creeks 55+"]},{slug:"driftwood-golf-ranch",name:"Driftwood Golf & Ranch Club",shortName:"Driftwood",location:"Driftwood, TX",region:"Hill Country",courseType:"Private",architect:"Coore & Crenshaw",yearOpened:"2022",holes:18,membership:{initiation:"~$250,000 + lot purchase (per Rick's latest founding-member intel)",dues:"Premium monthly",waitlist:"Capped roster; sponsored referral preferred"},areaId:"cf3f8ec6-2f0e-48aa-97a8-1d3a835e69ab",hero:{tagline:"Bill Coore & Ben Crenshaw's newest Texas masterpiece — 2,000 acres in the Hill Country.",intro:"Driftwood Golf & Ranch Club is the most talked-about new golf community in Central Texas. Coore & Crenshaw's minimalist design across 2,000 acres of Hill Country ranch land, with clubhouse cottages, sporting-club amenities, and a ranch-first ethos that stands apart from every other Austin-area club."},copy:{course:"Coore & Crenshaw's routing walks the land rather than reshaping it — wide, firm fairways, wildly contoured greens, native grasses. Instantly considered a top-3 course in Texas by early rankings.",community:"Cottages, cabins, and custom homesites across 2,000 acres — plus a working ranch, sporting clays, fly-fishing, hiking, and equestrian program. A true 'stay-and-play' plus 'live-here' offering.",membership:"Founding memberships are largely spoken for; secondary market activity is starting. Rick tracks the roster and can advise on both club entry and adjacent Driftwood/Wimberley real estate.",realEstate:"The most-watched golf-real-estate story in Central Texas. Early buyers are seeing significant appreciation. Driftwood-area land, cottages, and custom homesites are all in play."},amenities:["Coore & Crenshaw 18-hole course","Sporting clays & fly-fishing","Equestrian & ranch programs","Cottages, cabins, dining","Family programming"],priceBand:"$1.5M – $10M+",seoKeywords:["Driftwood Golf Ranch homes","Coore Crenshaw Texas course","Driftwood TX real estate","new Austin golf community"]},{slug:"falconhead",name:"Falconhead Golf Club",shortName:"Falconhead",location:"Bee Cave / Lakeway",region:"Hill Country",courseType:"Semi-Private",architect:"PGA TOUR Design Services",yearOpened:"2003",holes:18,membership:{initiation:"Public play + optional membership",dues:"Optional; unlimited-play tiers",waitlist:"No waitlist — public play plus optional membership tiers"},areaId:"f9faae4d-ad05-4d07-8b4c-961e382924d7",zipFallback:["78738"],hero:{tagline:"The only PGA TOUR-designed public course in Austin — inside a gated Hill Country community.",intro:"Falconhead pairs a rare PGA TOUR Design Services layout with a gated residential community five minutes from the Hill Country Galleria. Semi-private access, LTISD schools, and a much lower barrier to entry than the fully-private clubs nearby."},copy:{course:"One of only a handful of courses nationwide designed by PGA TOUR Design Services. Wide fairways, championship tees to 7,000+ yards, and consistently strong conditioning.",community:"Falconhead West and Falconhead North wrap the course — gated, custom-home covenants, LTISD (Lake Travis Elementary/MS/HS). Product from $900K to $4M+.",membership:"Public daily-fee play with optional resident and unlimited-play memberships — a great pick for buyers who want quality golf without a private-club buy-in.",realEstate:"Strong value inside the LTISD boundary. Rick often steers buyers here who want proximity to Lakeway's private clubs without the initiation cost."},amenities:["PGA TOUR-designed course","Practice facility","Gated residential enclave","LTISD schools"],priceBand:"$900K – $4M+",seoKeywords:["Falconhead homes for sale","Bee Cave golf community","PGA TOUR course Austin","Falconhead West real estate"]},{slug:"cimarron-hills",name:"Cimarron Hills Country Club",shortName:"Cimarron Hills",location:"Georgetown",region:"Georgetown",courseType:"Private",architect:"Jack Nicklaus",yearOpened:"2003",holes:18,membership:{initiation:"Low-to-mid five figures",dues:"Monthly + F&B; unlimited golf",waitlist:"Typically open"},areaId:"88b9a7db-cd00-463b-9902-458116de6738",zipFallback:["78628"],hero:{tagline:"Georgetown's Nicklaus signature — and one of Texas's best golf values.",intro:"Cimarron Hills is a Jack Nicklaus Signature Design tucked into the rolling Georgetown countryside, north of Austin. Full country-club amenities at a fraction of the initiation cost of central-Austin private clubs, with a Historic-District downtown Georgetown five minutes away."},copy:{course:"Nicklaus Signature design — five tee boxes, generous landing areas, penal for wayward second shots. Bentgrass greens, meticulous conditioning.",community:"Gated custom-home community with 1-acre-plus lots, mature oaks, and a growing new-construction pipeline. Georgetown ISD (highly rated), 30 minutes to Austin's tech corridor.",membership:"Full-service country club with unlimited golf, racquet, aquatics, fitness, and one of the best member-dining scenes north of Austin. Accessible initiation for the tier.",realEstate:"Underrated. Buyers relocating from out of state or coming from higher-tax markets consistently choose Cimarron Hills as their soft landing — private-club lifestyle, Austin-metro access, no Austin-metro price."},amenities:["Nicklaus Signature 18","Racquet & aquatics","Fitness center","Fine + casual dining"],priceBand:"$700K – $3M+",seoKeywords:["Cimarron Hills homes for sale","Georgetown TX golf community","Nicklaus course Georgetown","Cimarron Hills country club"]},{slug:"lakecliff-lora-loma",name:"Lakecliff on Lake Travis (Lora Loma)",shortName:"Lakecliff",location:"Spicewood, on Lake Travis",region:"Lake Travis",courseType:"Private (New / Pre-Opening)",architect:"Beau Welling (Lora Loma)",yearOpened:"1985 (Lakecliff); Lora Loma under construction",holes:18,membership:{initiation:"Lakecliff: accessible; Lora Loma: founding tier ongoing",dues:"Monthly + F&B",waitlist:"Lora Loma founding — Rick is a Lakecliff lot owner and can advise directly"},areaId:"da123768-ce65-4b5b-91bf-349177087152",zipFallback:["78669"],hero:{tagline:"The next great Lake Travis golf address — and Rick owns a lot here.",intro:"Lakecliff has been a well-kept Lake Travis secret for decades. Now Beau Welling's Lora Loma course is bringing a new generation of golf real estate to Spicewood. Rick owns a lot at 25701 Cliff Circle inside the community — call him for a first-person walkthrough of what's coming and what's already available."},copy:{course:"The existing Lakecliff course rolls above Lake Travis with dramatic lake-view holes. Lora Loma (Beau Welling design) is under construction and set to reset the bar for new golf-community architecture on Lake Travis.",community:"Gated, low-density lakefront community with a mix of established lakefront estates, waterfront lots, and new-construction inside the Lora Loma footprint. LTISD.",membership:"Lakecliff has been accessible; Lora Loma's founding-member program is the current opportunity. Rick's ownership stake at Cliff Circle gives him direct insight — he'll walk you through founding categories and available lots.",realEstate:"The single most-asked-about new Lake Travis address right now. Rick's lot at 25701 Cliff Circle is one of the few remaining premium view sites and can be discussed as either a build-to-suit opportunity or a comparative for evaluating other Lakecliff and Lora Loma real estate."},amenities:["Beau Welling course (Lora Loma)","Lake Travis access","New clubhouse & sporting amenities","Founding-member programming"],priceBand:"$1M – $10M+",seoKeywords:["Lakecliff homes for sale","Lora Loma founding membership","Beau Welling Lake Travis course","Spicewood TX golf real estate"],featuredListing:{address:"25701 Cliff Circle, Spicewood, TX 78669",note:"Rick's personal Lakecliff lot — available for a build-to-suit conversation. Call for site walk."}}],FP=t=>Mn.find(e=>e.slug===t),Ey=[{label:"Featured Listings",href:"/portfolio/residential"},{label:"Sold Gallery",href:"/sold-gallery"}],BP=[{label:"About Rick",href:"/about"},{label:"Home Search",href:"/idx"},{label:"Buyer's Guide",href:"/buyers-guide"},{label:"Seller's Guide",href:"/sellers-guide"},{label:"Home Valuation",href:"/home-valuation"},{label:"Blog",href:"/blog"}],Ty=[{label:"Bouldin Creek",href:"/bouldin-creek"},{label:"Westlake / Rollingwood",href:"/neighborhoods/westlake"},{label:"Lake Austin",href:"/neighborhoods/lake-austin"},{label:"Lake Travis",href:"/neighborhoods/lake-travis"},{label:"Tarrytown",href:"/neighborhoods/tarrytown"},{label:"Travis Heights",href:"/neighborhoods/travis-heights"},{label:"Dripping Springs",href:"/neighborhoods/dripping-springs"}],Ry=Mn.map(t=>({label:t.shortName,href:`/private-golf-courses/${t.slug}`})),xc="text-gray-800 focus:bg-primary/5 focus:text-primary data-[highlighted]:bg-primary/5 data-[highlighted]:text-primary",Mh="text-sm tracking-wide cursor-pointer text-gray-800 hover:text-primary hover:bg-primary/5",de=()=>{const[t,e]=p.useState(!1),[r,n]=p.useState(!1),[a,i]=p.useState(!1),{markets:o,marketId:l,setMarket:c}=kd(),d=vs().pathname.startsWith("/listing/");return p.useEffect(()=>{const h=()=>e(window.scrollY>50);return window.addEventListener("scroll",h),()=>window.removeEventListener("scroll",h)},[]),s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${t?"bg-white/95 backdrop-blur-md border-b border-gray-200 shadow-sm":d?"bg-black":"bg-transparent"}`,children:[s.jsx("div",{className:"container mx-auto px-4 lg:px-10",children:s.jsxs("div",{className:"flex items-center justify-between h-20 lg:h-24",children:[s.jsx(Y,{to:"/",className:"flex items-center",children:s.jsx("img",{src:"https://fifthandwestpenthouse.com/assets/orr-logo-white-C9l6Ou9k.png",alt:"ORR Realty Group",className:`h-12 lg:h-16 transition-all duration-300 ${t?"brightness-0":""}`})}),s.jsxs("nav",{className:"hidden lg:flex items-center gap-8",children:[s.jsxs(Hc,{children:[s.jsxs(Vc,{className:`text-sm tracking-[0.15em] uppercase transition-colors flex items-center gap-1 outline-none ${t?"text-gray-700 hover:text-primary":"text-white/90 hover:text-white"}`,children:["Luxury Listings",s.jsx(To,{className:"w-3 h-3"})]}),s.jsx(Ro,{className:"orr-dropdown-menu bg-white border border-gray-200 min-w-[180px] shadow-lg",children:Ey.map(h=>s.jsx(qa,{asChild:!0,className:xc,children:s.jsx(Y,{to:h.href,className:Mh,children:h.label})},h.href))})]}),s.jsxs(Hc,{children:[s.jsxs(Vc,{className:`text-sm tracking-[0.15em] uppercase transition-colors flex items-center gap-1 outline-none ${t?"text-gray-700 hover:text-primary":"text-white/90 hover:text-white"}`,children:["Neighborhoods",s.jsx(To,{className:"w-3 h-3"})]}),s.jsx(Ro,{className:"orr-dropdown-menu bg-white border border-gray-200 min-w-[220px] shadow-lg",children:Ty.map(h=>s.jsx(qa,{asChild:!0,className:xc,children:s.jsx(Y,{to:h.href,className:Mh,children:h.label})},h.href))})]}),s.jsxs(Hc,{children:[s.jsxs(Vc,{className:`text-sm tracking-[0.15em] uppercase transition-colors flex items-center gap-1 outline-none ${t?"text-gray-700 hover:text-primary":"text-white/90 hover:text-white"}`,children:["Private Golf Courses",s.jsx(To,{className:"w-3 h-3"})]}),s.jsxs(Ro,{className:"orr-dropdown-menu bg-white border border-gray-200 min-w-[260px] shadow-lg max-h-[70vh] overflow-y-auto",children:[s.jsx(qa,{asChild:!0,className:xc,children:s.jsx(Y,{to:"/private-golf-courses",className:"text-sm font-semibold tracking-wide cursor-pointer text-primary hover:text-primary hover:bg-primary/5",children:"All Private Golf Courses →"})}),Ry.map(h=>s.jsx(qa,{asChild:!0,className:xc,children:s.jsx(Y,{to:h.href,className:Mh,children:h.label})},h.href))]})]}),s.jsx("button",{onClick:()=>i(!0),className:`text-sm tracking-[0.15em] uppercase transition-colors ${t?"text-gray-700 hover:text-primary":"text-white/90 hover:text-white"}`,children:"Contact"})]}),s.jsx("div",{className:"flex items-center gap-4",children:s.jsx("button",{onClick:()=>n(!r),"aria-label":"Open menu",className:`transition-colors ${t?"text-gray-700":"text-white"}`,children:r?s.jsx(ud,{className:"w-6 h-6"}):s.jsx(u_,{className:"w-6 h-6"})})})]})}),r&&s.jsx("div",{className:"bg-black border-t border-gray-800 max-h-[80vh] overflow-y-auto",children:s.jsxs("nav",{className:"container mx-auto px-6 py-8 flex flex-col gap-6",children:[s.jsxs("div",{className:"lg:hidden flex flex-col gap-6",children:[s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-lg tracking-[0.1em] uppercase text-white",children:"Luxury Listings"}),s.jsx("div",{className:"flex flex-col gap-2 pl-4 border-l border-primary",children:Ey.map(h=>s.jsx(Y,{to:h.href,onClick:()=>n(!1),className:"text-base tracking-wide text-white/70 hover:text-primary transition-colors",children:h.label},h.href))})]}),s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-lg tracking-[0.1em] uppercase text-white",children:"Neighborhoods"}),s.jsx("div",{className:"flex flex-col gap-2 pl-4 border-l border-primary",children:Ty.map(h=>s.jsx(Y,{to:h.href,onClick:()=>n(!1),className:"text-base tracking-wide text-white/70 hover:text-primary transition-colors",children:h.label},h.href))})]}),s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-lg tracking-[0.1em] uppercase text-white",children:"Private Golf Courses"}),s.jsxs("div",{className:"flex flex-col gap-2 pl-4 border-l border-primary",children:[s.jsx(Y,{to:"/private-golf-courses",onClick:()=>n(!1),className:"text-base tracking-wide text-primary font-semibold",children:"All Private Golf Courses →"}),Ry.map(h=>s.jsx(Y,{to:h.href,onClick:()=>n(!1),className:"text-base tracking-wide text-white/70 hover:text-primary transition-colors",children:h.label},h.href))]})]}),s.jsx("button",{onClick:()=>{i(!0),n(!1)},className:"text-lg tracking-[0.1em] uppercase text-white hover:text-primary transition-colors text-left",children:"Contact"})]}),s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-lg tracking-[0.1em] uppercase text-white",children:"Resources"}),s.jsx("div",{className:"flex flex-col gap-2 pl-4 border-l border-primary",children:BP.map(h=>s.jsx(Y,{to:h.href,onClick:()=>n(!1),className:"text-base tracking-wide text-white/80 hover:text-primary transition-colors",children:h.label},h.href))})]}),o.length>1&&s.jsxs("div",{className:"flex flex-col gap-3",children:[s.jsx("span",{className:"text-lg tracking-[0.1em] uppercase text-white",children:"Search Market"}),s.jsx("div",{className:"flex flex-col gap-2 pl-4 border-l border-primary",children:o.map(h=>s.jsxs("button",{onClick:()=>{c(h.id),n(!1)},className:`text-base tracking-wide text-left transition-colors ${h.id===l?"text-primary":"text-white/70 hover:text-primary"}`,children:[h.city||h.market_name,h.id===l?" ✓":""]},h.id))})]}),s.jsxs("a",{href:"tel:5127857489",onClick:()=>n(!1),className:"flex items-center gap-2 text-lg tracking-wide text-primary pt-4 border-t border-gray-800",children:[s.jsx(xs,{className:"w-5 h-5"}),s.jsx("span",{children:"(512) 785-7489"})]})]})})]}),s.jsx(A4,{open:a,onOpenChange:i})]})},UP=({variant:t="header",isScrolled:e=!1})=>{const{markets:r,market:n,marketId:a,setMarket:i}=kd();if(r.length<2)return null;const o=(n==null?void 0:n.city)||(n==null?void 0:n.market_name)||"Market",l=t==="hero"?"flex items-center gap-2 px-4 py-2 border border-white/30 bg-black/30 backdrop-blur-sm text-white text-sm md:text-base font-light tracking-wide hover:bg-black/50 transition-colors outline-none":`text-sm tracking-[0.15em] uppercase transition-colors duration-300 flex items-center gap-1 outline-none ${e?"text-gray-700 hover:text-primary":"text-white/90 hover:text-white"}`;return s.jsxs(Hc,{children:[s.jsxs(Vc,{className:l,"aria-label":"Change search market",children:[s.jsx(mn,{className:t==="hero"?"w-4 h-4":"w-3.5 h-3.5"}),o,s.jsx(To,{className:"w-3 h-3"})]}),s.jsx(Ro,{className:"bg-white border border-gray-200 min-w-[220px] shadow-lg z-[60]",children:r.map(c=>s.jsxs(qa,{onSelect:()=>i(c.id),className:"text-sm tracking-wide cursor-pointer text-gray-700 hover:text-primary hover:bg-gray-50 flex items-center justify-between gap-3",children:[s.jsxs("span",{className:"min-w-0",children:[s.jsx("span",{className:"block truncate",children:c.city||c.market_name}),c.city&&c.market_name&&c.city!==c.market_name&&s.jsx("span",{className:"block truncate text-xs text-gray-400",children:c.market_name})]}),c.id===a&&s.jsx(Ks,{className:"w-4 h-4 shrink-0 text-primary"})]},c.id))})]})},WP="/assets/hero-1-MyPnHEul.jpg",zP="/assets/hero-3-BTPWgrxN.jpg",HP="/assets/hero-fifth-west-D80LKd3Z.jpg",VP="/assets/hero-vyr-BWncDKvY.jpg",qP="/assets/hero-zillow-b5yBkHiP.jpg",ao=[{image:WP,alt:"Luxury Austin Home Interior"},{image:HP,alt:"Fifth & West Penthouse Sunset Living Room"},{image:VP,alt:"Austin Luxury Estate"},{image:qP,alt:"Austin Luxury Property"},{image:zP,alt:"Lake Austin Luxury Property"}],GP=()=>{const[t,e]=p.useState(0),[r,n]=p.useState(!1),{market:a,markets:i}=kd(),o=p.useCallback(()=>{r||(n(!0),e(c=>(c+1)%ao.length),setTimeout(()=>n(!1),1e3))},[r]),l=p.useCallback(()=>{r||(n(!0),e(c=>(c-1+ao.length)%ao.length),setTimeout(()=>n(!1),1e3))},[r]);return p.useEffect(()=>{const c=setInterval(()=>{o()},6e3);return()=>clearInterval(c)},[o]),s.jsxs("section",{id:"home",className:"relative h-screen min-h-[700px] flex items-center justify-center overflow-hidden",children:[ao.map((c,u)=>s.jsx("div",{className:`absolute inset-0 transition-opacity duration-1000 ease-in-out ${u===t?"opacity-100":"opacity-0"}`,children:s.jsx("img",{alt:c.alt,className:"w-full h-full object-cover",src:c.image,width:1920,height:1080,loading:u===0?"eager":"lazy",fetchPriority:u===0?"high":"low",decoding:u===0?"sync":"async"})},u)),s.jsx("div",{className:"absolute inset-0",style:{background:"var(--hero-overlay)"}}),s.jsx("button",{onClick:l,className:"absolute left-4 md:left-8 top-1/2 -translate-y-1/2 z-20 w-12 h-12 flex items-center justify-center border border-foreground/30 text-foreground/70 hover:bg-foreground hover:text-background transition-all duration-300","aria-label":"Previous slide",children:s.jsx(ad,{className:"w-6 h-6"})}),s.jsx("button",{onClick:o,className:"absolute right-4 md:right-8 top-1/2 -translate-y-1/2 z-20 w-12 h-12 flex items-center justify-center border border-foreground/30 text-foreground/70 hover:bg-foreground hover:text-background transition-all duration-300","aria-label":"Next slide",children:s.jsx(Rl,{className:"w-6 h-6"})}),s.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 z-20 flex gap-3",children:ao.map((c,u)=>s.jsx("button",{onClick:()=>{r||(n(!0),e(u),setTimeout(()=>n(!1),1e3))},className:`w-2 h-2 rounded-full transition-all duration-300 ${u===t?"bg-foreground w-8":"bg-foreground/40 hover:bg-foreground/60"}`,"aria-label":`Go to slide ${u+1}`},u))}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-5xl mx-auto",children:[s.jsxs("div",{className:"flex flex-wrap justify-center gap-4 md:gap-8 mb-6 animate-fade-in",children:[s.jsx("div",{className:"px-4 py-2 border border-white/30 bg-black/30 backdrop-blur-sm",children:s.jsx("span",{className:"text-white text-sm md:text-base font-light tracking-wide",children:"$485M+ Total Sales"})}),s.jsx("div",{className:"px-4 py-2 border border-white/30 bg-black/30 backdrop-blur-sm",children:s.jsx("span",{className:"text-white text-sm md:text-base font-light tracking-wide",children:"Top Agent for Entrepreneurs"})}),s.jsx("div",{className:"px-4 py-2 border border-white/30 bg-black/30 backdrop-blur-sm",children:s.jsx("span",{className:"text-white text-sm md:text-base font-light tracking-wide",children:"105+ Off-Market Sales"})})]}),s.jsx("p",{className:"luxury-subheading mb-4 md:mb-6 animate-fade-in text-base sm:text-lg md:text-xl text-white",children:"Austin Luxury Real Estate"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl mb-6 md:mb-8 animate-fade-in-up font-heading text-center font-normal text-white",children:"Rick Orr"}),s.jsx("p",{className:"text-base md:text-lg lg:text-xl text-white/80 mb-8 md:mb-10 animate-fade-in max-w-2xl mx-auto font-light",children:"#justtextrick"}),i.length>1&&s.jsx("div",{className:"flex justify-center mb-5 animate-fade-in",children:s.jsx(UP,{variant:"hero"})}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-fade-in-delay",children:[s.jsx(Y,{className:"luxury-button-primary min-w-[200px]",to:"/idx",children:a!=null&&a.city?`Search ${a.city} Homes`:"Search Homes"}),s.jsx(Y,{to:"/about",className:"luxury-button-outline min-w-[200px] text-white border-white/50 hover:bg-white hover:text-black",children:"Work With Rick"})]})]})]})},KP=({end:t,duration:e=2e3,start:r=0,decimals:n=0})=>{const[a,i]=p.useState(r),[o,l]=p.useState(!1),c=p.useRef(null);return p.useEffect(()=>{const u=new IntersectionObserver(d=>{d.forEach(h=>{h.isIntersecting&&!o&&l(!0)})},{threshold:.3});return c.current&&u.observe(c.current),()=>u.disconnect()},[o]),p.useEffect(()=>{if(!o)return;const u=Date.now(),d=r,h=()=>{const f=Date.now()-u,m=Math.min(f/e,1),w=1-Math.pow(1-m,4),g=d+(t-d)*w;i(Number(g.toFixed(n))),m<1&&requestAnimationFrame(h)};requestAnimationFrame(h)},[o,t,e,r,n]),{count:a,elementRef:c}},Qe=({value:t,prefix:e="",suffix:r="",label:n,duration:a=2e3})=>{const{count:i,elementRef:o}=KP({end:t,duration:a});return s.jsxs("div",{ref:o,className:"text-center",children:[s.jsxs("div",{className:"stat-number text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:[e,i,r]}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:n})]})},YP=()=>s.jsx("section",{className:"section-padding bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-4xl mx-auto mb-16",children:[s.jsx("h2",{className:"font-heading text-2xl md:text-3xl lg:text-4xl text-foreground mb-8 tracking-wide",children:"Austin's Off-Market Luxury Specialist"}),s.jsx("p",{className:"luxury-body text-lg leading-relaxed",children:"Rick Orr brings 28+ years of Austin real estate expertise combined with his background as a serial tech entrepreneur and founder of RealSavvy. A Bouldin Creek resident since 2007, Rick has closed 105+ private off-market transactions and maintains an exclusive network of luxury buyers and sellers across Austin, Westlake, Lake Austin, and the Texas Coast."})]}),s.jsx("div",{className:"gold-line mb-12"}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Total Home Sales",duration:2e3}),s.jsx(Qe,{value:105,suffix:"+",label:"Off-Market Sales",duration:2e3}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"stat-number text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"Top Agent"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"For Entrepreneurs"})]}),s.jsx(Qe,{value:28,suffix:"+",label:"Years Experience",duration:2e3})]}),s.jsx("div",{className:"gold-line mt-12"})]})}),JP=()=>{const[t,e]=p.useState(!1),r=[{subtitle:"SEARCH",title:"MLS",link:"/idx",isRoute:!0},{subtitle:"WHAT IS MY",title:"Property Value",link:"/home-valuation",isRoute:!0},{subtitle:"JOIN OUR",title:"Mailing List",link:"#",isRoute:!1,isModal:!0}],n=({subtitle:a,title:i,count:o})=>s.jsxs("div",{className:"relative h-48 md:h-56 p-8 flex flex-col justify-center bg-muted border border-border/30 overflow-hidden transition-all duration-500 group-hover:bg-red-accent group-hover:border-red-accent group-hover:scale-[1.02] group-hover:shadow-xl",children:[s.jsx("div",{className:"w-8 h-0.5 bg-foreground mb-6 transition-colors duration-500 group-hover:bg-white"}),s.jsx("p",{className:"text-xs tracking-[0.2em] uppercase text-muted-foreground mb-2 font-body transition-colors duration-500 group-hover:text-white/80",children:a}),s.jsxs("h3",{className:"font-heading text-2xl md:text-3xl text-foreground transition-colors duration-500 group-hover:text-white",children:[o!==void 0?`${o} `:"",i]}),s.jsx("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-red-accent scale-x-0 group-hover:scale-x-100 transition-transform duration-500 origin-left"})]});return s.jsxs(s.Fragment,{children:[s.jsx("section",{id:"services",className:"py-0 bg-section-bg",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsx("div",{className:"grid md:grid-cols-3 gap-4 lg:gap-6",children:r.map((a,i)=>a.isModal?s.jsx("button",{onClick:()=>e(!0),className:"group text-left",children:s.jsx(n,{subtitle:a.subtitle,title:a.title})},i):a.isRoute?s.jsx(Y,{to:a.link,className:"group",children:s.jsx(n,{subtitle:a.subtitle,title:a.title,count:a.count})},i):s.jsx("a",{href:a.link,className:"group",children:s.jsx(n,{subtitle:a.subtitle,title:a.title})},i))})})}),s.jsx(A4,{open:t,onOpenChange:e})]})},QP="https://api.realsavvy.com/api/v3/listings/search",XP="https://api.realsavvy.com/api/v3/suggestions",I3="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2NDNkMDg1MTAwYmI2NWQyYWE3N2MwN2U2OGE0ODkwNTBiZTE1MWIxYTQzOTEzYjRlODkwOTc5ZTgzNTJlMDc1IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NzgiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY3OCIsInNjb3BlcyI6WyJhZG1pbiJdfQ.NUi66vsTRrpVDC8gKSfMDrHhFvayzhMQH08VLNpIMDo3mN0ysyQ97pp2SlDwUPn08OoqthHb3RzoHGPCp9gJFvfoPI0DTIfgrMuUGMBHW4UJdZNWMS2Ep_BWH4iuL2VqgyXEUki4AiG8F9SXnbQbyvlRO7axJEYVWJ8EcXJ87EYQQhlAuS6f0AlTz7WwqNPipfNohon0Bo66u5WkIWlI3ybXAWo8CDJW3C-PN3QFyxgekSToV0euVZr2Pj_Eh_hVEIvEj6vPfDHyT9KihvNM7XCkw_KF4sSkT1fjqjudMspI_iQW1SixU64TKC6eHt5k2oWzq5GLoD3i1lzcnYuYzQ".trim(),M3="ACT465623",L3="unlock-mls-vow-placeholder",Og={[L3]:{key:[M3],relationships:["listing"]}},ZP=["listing","buyer","co_listing","co_buyer"],eO=t=>({[L3]:{key:[M3],relationships:[t]}}),D3=t=>{switch(t){case"listing":return"Listed by Rick Orr";case"buyer":return"Represented Buyer";case"co_listing":return"Co-Listed by Rick Orr";case"co_buyer":return"Co-Represented Buyer";default:return"Rick Orr"}},tO=async(t=50)=>{const e={},r=await Promise.all(ZP.map(async i=>{const o={filter:{listing_status:{value:["Sold","Closed"]},agent_profile:eO(i)},market_id:null,page:{number:1,size:t},sort:"-price_in_dollars"};try{const l=await F3(o);return{relationship:i,data:l.data||[]}}catch{return{relationship:i,data:[]}}})),n=new Set,a=[];for(const{relationship:i,data:o}of r)for(const l of o)n.has(l.id)||(n.add(l.id),e[l.id]=i,a.push(l));return a.sort((i,o)=>{const l=i.attributes.sold_price_in_dollars||i.attributes.price_in_dollars||0;return(o.attributes.sold_price_in_dollars||o.attributes.price_in_dollars||0)-l}),{listings:a,roles:e}},$3=(t=50)=>jw({queryKey:["listings","all-agent-sold",t],queryFn:()=>tO(t),staleTime:10*60*1e3}),rO=async t=>{const e=await fetch(`${XP}?ids[]=${t}`,{method:"GET",headers:{Authorization:`Bearer ${I3}`,"Content-Type":"application/json"}});return e.ok?e.json():(console.error(`Failed to fetch suggestion data: ${e.status}`),null)},nO=t=>{if(!(t!=null&&t.data)||t.data.length===0)return null;const e=t.data[0],r=e.attributes||{};return[{resource_type:e.type||"areas",resource_id:e.id,resource_label:r.name||r.label||"",resource_sub_type:r.sub_type||"place",type:"geo_shape",value:{suggestion_id:e.id,geometry:r.geometry,bounding_box:r.bounding_box}}]},F3=async t=>{const e=await fetch(QP,{method:"POST",headers:{Authorization:`Bearer ${I3}`,"Content-Type":"application/json"},body:JSON.stringify(t)});if(!e.ok)throw new Error(`API error: ${e.status}`);return e.json()},sO=async(t,e)=>{if(e){const r=await rO(e),n=nO(r);n&&(t={...t,filter:{...t.filter,suggestion:{value:n}}})}return F3(t)},B3=(t,e=1,r=12,n)=>{const a={filter:t,market_id:null,page:{number:e,size:r},sort:"+price_in_dollars"};return jw({queryKey:["listings",JSON.stringify(t),e,r,n],queryFn:()=>sO(a,n),staleTime:5*60*1e3})},Pu=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);function U3(t){if(!t)return"";const e=t.toLowerCase().replace(/[^a-z0-9\s]/g," ").replace(/\s+/g," ").trim();if(!e)return"";const r=e.split(" "),n=new Set(["st","street","rd","road","ln","lane","dr","drive","ave","avenue","blvd","boulevard","ct","court","cir","circle","way","trl","trail","pl","place","ter","terrace","pkwy","parkway","hwy","highway","n","s","e","w","north","south","east","west"]),a=[];for(const i of r){if(a.length>=3)break;if(!(a.length>=1&&n.has(i))&&(a.push(i),a.length>=2&&/^\d/.test(r[0])))break}return a.join("-")}function aO(t){return/~/.test(t)||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}const iO={"372-tobin":"unlock-mls-vow-placeholder~e5bcaf78-7840-4527-900b-c6ab642f4a3b"},oO=({image:t,title:e,location:r,price:n,status:a="For Sale",beds:i,baths:o,sqft:l,acres:c,index:u=0,listingId:d,linkPrefix:h,photos:f,description:m,coverPhotoUrl:w})=>{const g=t.includes("fallback")||t.includes("d3rz9zzjssqtmb"),[y,x]=p.useState(g),v=h||"/listings",b=U3(e),k=b?`${v}/${b}`:d?`/listing/${d}`:"/portfolio",j={image:t,title:e,location:r,price:n,status:a,beds:i,baths:o,sqft:l,photos:f,description:m},_=y?w&&!w.includes("fallback")?w:"/placeholder.svg":t;return s.jsxs(Y,{to:k,state:j,className:"group block luxury-card overflow-hidden hover-lift",children:[s.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden",children:[s.jsx("img",{src:_,alt:e,onError:()=>x(!0),className:`w-full h-full object-cover transition-transform duration-700 group-hover:scale-105 ${y?"opacity-30 p-12":""}`}),s.jsx("div",{className:"absolute top-4 right-4",children:s.jsx("span",{className:`px-4 py-2 text-xs tracking-[0.1em] uppercase font-medium ${a==="For Sale"?"bg-white text-background":a==="For Lease"?"bg-blue-600 text-white":a==="Pending"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:a})})]}),s.jsxs("div",{className:"p-6",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-2 group-hover:text-primary transition-colors",children:e}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:r}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-4",children:[i!==void 0&&i>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{children:[i," BD"]}),s.jsx("span",{className:"text-border",children:"|"})]}),o!==void 0&&o>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{children:[o," BA"]}),s.jsx("span",{className:"text-border",children:"|"})]}),l&&s.jsxs("span",{children:[l," Sq.Ft."]}),c&&!l&&s.jsxs("span",{children:[c," Acres"]})]}),s.jsx("p",{className:"font-heading text-2xl text-foreground",children:n})]})]})};function W3(t,e,r={}){const n={listing_status:{value:r.statuses??["Active"]},purchase_type:{value:["Purchase"]}},a=[{id:t,label:e,type:"geo_shape"}],i=new URLSearchParams;return i.set("q",JSON.stringify(n)),i.set("suggestions",JSON.stringify(a)),`/idx?${i.toString()}`}const lO=t=>{const e=t.attributes,r=(e.property_type||e.type||"").toLowerCase(),n=r.includes("rental")||r.includes("lease")||r.includes("rent");let a=e.listing_status;e.listing_status==="Active"&&(a=n?"For Lease":"For Sale");const i=e.street||e.title||"",o=e.city||"",l=e.state_code||"",c=e.zip||"",u=e.price_in_dollars?Pu(e.price_in_dollars):"Price Upon Request";return{id:t.id,image:e.cover_photo_url||e.photo_urls&&e.photo_urls[0]||"",status:a,address:i,fullAddress:`${i}, ${o}, ${l} ${c}`.trim(),beds:e.bedrooms||void 0,baths:e.bathrooms?Math.floor(e.bathrooms):void 0,sqft:e.square_feet?e.square_feet.toLocaleString():void 0,acres:e.lot_acre&&!e.square_feet?e.lot_acre.toString():void 0,price:n&&e.price_in_dollars?`${u}/mo`:u,photos:e.photo_urls,description:e.description||void 0}},Er=({title:t="Available Properties",filter:e,pageSize:r=8,maxDisplay:n,seeMoreUrl:a,suggestionId:i,suggestionLabel:o})=>{var m;const l=i&&o?W3(i,o):a,c=i?{listing_status:{value:["Active","Pending"]},...e}:{agent_profile:Og,listing_status:{value:["Active","Pending"]},...e},{data:u,isLoading:d,error:h}=B3(c,1,r,i),f=((m=u==null?void 0:u.data)==null?void 0:m.map(lO))||[];return s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:t}),d&&s.jsx("div",{className:"flex justify-center items-center py-20",children:s.jsx(la,{className:"w-8 h-8 animate-spin text-primary"})}),h&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"Unable to load listings. Please try again later."})}),!d&&!h&&f.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"grid md:grid-cols-2 gap-8 lg:gap-12",children:(n?f.slice(0,n):f).map((w,g)=>s.jsx(oO,{image:w.image,title:w.address,location:w.fullAddress,price:w.price,status:w.status,beds:w.beds,baths:w.baths,sqft:w.sqft,acres:w.acres,index:g,listingId:w.id,photos:w.photos,description:w.description},w.id))}),n&&f.length>n&&l&&s.jsx("div",{className:"text-center mt-12",children:s.jsx(Y,{to:l,className:"luxury-button-primary inline-block",children:"See More"})})]}),!d&&!h&&f.length===0&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"No listings at this time. Check back soon!"})})]})})},Lt=p.forwardRef(({className:t,type:e,...r},n)=>s.jsx("input",{type:e,className:ke("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...r}));Lt.displayName="Input";var cO="Label",z3=p.forwardRef((t,e)=>s.jsx(oe.label,{...t,ref:e,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=t.onMouseDown)==null||a.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));z3.displayName=cO;var H3=z3;const uO=sd("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ze=p.forwardRef(({className:t,...e},r)=>s.jsx(H3,{ref:r,className:ke(uO(),t),...e}));Ze.displayName=H3.displayName;function V3(t,[e,r]){return Math.min(r,Math.max(e,t))}var q3=["PageUp","PageDown"],G3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],K3={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},zi="Slider",[Cm,dO,hO]=Cl(zi),[Y3,hB]=Gt(zi,[hO]),[fO,Cd]=Y3(zi),J3=p.forwardRef((t,e)=>{const{name:r,min:n=0,max:a=100,step:i=1,orientation:o="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[n],value:d,onValueChange:h=()=>{},onValueCommit:f=()=>{},inverted:m=!1,form:w,...g}=t,y=p.useRef(new Set),x=p.useRef(0),b=o==="horizontal"?mO:pO,[k=[],j]=Gr({prop:d,defaultProp:u,onChange:$=>{var J;(J=[...y.current][x.current])==null||J.focus(),h($)}}),N=p.useRef(k);function _($){const O=bO(k,$);A($,O)}function E($){A($,x.current)}function R(){const $=N.current[x.current];k[x.current]!==$&&f(k)}function A($,O,{commit:J}={commit:!1}){const M=NO(i),Z=_O(Math.round(($-n)/i)*i+n,M),z=V3(Z,[n,a]);j((X=[])=>{const T=yO(X,z,O);if(jO(T,c*i)){x.current=T.indexOf(z);const C=String(T)!==String(X);return C&&J&&f(T),C?T:X}else return X})}return s.jsx(fO,{scope:t.__scopeSlider,name:r,disabled:l,min:n,max:a,valueIndexToChangeRef:x,thumbs:y.current,values:k,orientation:o,form:w,children:s.jsx(Cm.Provider,{scope:t.__scopeSlider,children:s.jsx(Cm.Slot,{scope:t.__scopeSlider,children:s.jsx(b,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:e,onPointerDown:W(g.onPointerDown,()=>{l||(N.current=k)}),min:n,max:a,inverted:m,onSlideStart:l?void 0:_,onSlideMove:l?void 0:E,onSlideEnd:l?void 0:R,onHomeKeyDown:()=>!l&&A(n,0,{commit:!0}),onEndKeyDown:()=>!l&&A(a,k.length-1,{commit:!0}),onStepKeyDown:({event:$,direction:O})=>{if(!l){const Z=q3.includes($.key)||$.shiftKey&&G3.includes($.key)?10:1,z=x.current,X=k[z],T=i*Z*O;A(X+T,z,{commit:!0})}}})})})})});J3.displayName=zi;var[Q3,X3]=Y3(zi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),mO=p.forwardRef((t,e)=>{const{min:r,max:n,dir:a,inverted:i,onSlideStart:o,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=t,[h,f]=p.useState(null),m=ve(e,b=>f(b)),w=p.useRef(void 0),g=jd(a),y=g==="ltr",x=y&&!i||!y&&i;function v(b){const k=w.current||h.getBoundingClientRect(),j=[0,k.width],_=Ig(j,x?[r,n]:[n,r]);return w.current=k,_(b-k.left)}return s.jsx(Q3,{scope:t.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:s.jsx(Z3,{dir:g,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const k=v(b.clientX);o==null||o(k)},onSlideMove:b=>{const k=v(b.clientX);l==null||l(k)},onSlideEnd:()=>{w.current=void 0,c==null||c()},onStepKeyDown:b=>{const j=K3[x?"from-left":"from-right"].includes(b.key);u==null||u({event:b,direction:j?-1:1})}})})}),pO=p.forwardRef((t,e)=>{const{min:r,max:n,inverted:a,onSlideStart:i,onSlideMove:o,onSlideEnd:l,onStepKeyDown:c,...u}=t,d=p.useRef(null),h=ve(e,d),f=p.useRef(void 0),m=!a;function w(g){const y=f.current||d.current.getBoundingClientRect(),x=[0,y.height],b=Ig(x,m?[n,r]:[r,n]);return f.current=y,b(g-y.top)}return s.jsx(Q3,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:s.jsx(Z3,{"data-orientation":"vertical",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const y=w(g.clientY);i==null||i(y)},onSlideMove:g=>{const y=w(g.clientY);o==null||o(y)},onSlideEnd:()=>{f.current=void 0,l==null||l()},onStepKeyDown:g=>{const x=K3[m?"from-bottom":"from-top"].includes(g.key);c==null||c({event:g,direction:x?-1:1})}})})}),Z3=p.forwardRef((t,e)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:i,onHomeKeyDown:o,onEndKeyDown:l,onStepKeyDown:c,...u}=t,d=Cd(zi,r);return s.jsx(oe.span,{...u,ref:e,onKeyDown:W(t.onKeyDown,h=>{h.key==="Home"?(o(h),h.preventDefault()):h.key==="End"?(l(h),h.preventDefault()):q3.concat(G3).includes(h.key)&&(c(h),h.preventDefault())}),onPointerDown:W(t.onPointerDown,h=>{const f=h.target;f.setPointerCapture(h.pointerId),h.preventDefault(),d.thumbs.has(f)?f.focus():n(h)}),onPointerMove:W(t.onPointerMove,h=>{h.target.hasPointerCapture(h.pointerId)&&a(h)}),onPointerUp:W(t.onPointerUp,h=>{const f=h.target;f.hasPointerCapture(h.pointerId)&&(f.releasePointerCapture(h.pointerId),i(h))})})}),e8="SliderTrack",t8=p.forwardRef((t,e)=>{const{__scopeSlider:r,...n}=t,a=Cd(e8,r);return s.jsx(oe.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:e})});t8.displayName=e8;var Em="SliderRange",r8=p.forwardRef((t,e)=>{const{__scopeSlider:r,...n}=t,a=Cd(Em,r),i=X3(Em,r),o=p.useRef(null),l=ve(e,o),c=a.values.length,u=a.values.map(f=>a8(f,a.min,a.max)),d=c>1?Math.min(...u):0,h=100-Math.max(...u);return s.jsx(oe.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...n,ref:l,style:{...t.style,[i.startEdge]:d+"%",[i.endEdge]:h+"%"}})});r8.displayName=Em;var Tm="SliderThumb",n8=p.forwardRef((t,e)=>{const r=dO(t.__scopeSlider),[n,a]=p.useState(null),i=ve(e,l=>a(l)),o=p.useMemo(()=>n?r().findIndex(l=>l.ref.current===n):-1,[r,n]);return s.jsx(gO,{...t,ref:i,index:o})}),gO=p.forwardRef((t,e)=>{const{__scopeSlider:r,index:n,name:a,...i}=t,o=Cd(Tm,r),l=X3(Tm,r),[c,u]=p.useState(null),d=ve(e,v=>u(v)),h=c?o.form||!!c.closest("form"):!0,f=md(c),m=o.values[n],w=m===void 0?0:a8(m,o.min,o.max),g=vO(n,o.values.length),y=f==null?void 0:f[l.size],x=y?wO(y,w,l.direction):0;return p.useEffect(()=>{if(c)return o.thumbs.add(c),()=>{o.thumbs.delete(c)}},[c,o.thumbs]),s.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${w}% + ${x}px)`},children:[s.jsx(Cm.ItemSlot,{scope:t.__scopeSlider,children:s.jsx(oe.span,{role:"slider","aria-label":t["aria-label"]||g,"aria-valuemin":o.min,"aria-valuenow":m,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...i,ref:d,style:m===void 0?{display:"none"}:t.style,onFocus:W(t.onFocus,()=>{o.valueIndexToChangeRef.current=n})})}),h&&s.jsx(s8,{name:a??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:m},n)]})});n8.displayName=Tm;var xO="RadioBubbleInput",s8=p.forwardRef(({__scopeSlider:t,value:e,...r},n)=>{const a=p.useRef(null),i=ve(a,n),o=pg(e);return p.useEffect(()=>{const l=a.current;if(!l)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==e&&d){const h=new Event("input",{bubbles:!0});d.call(l,e),l.dispatchEvent(h)}},[o,e]),s.jsx(oe.input,{style:{display:"none"},...r,ref:i,defaultValue:e})});s8.displayName=xO;function yO(t=[],e,r){const n=[...t];return n[r]=e,n.sort((a,i)=>a-i)}function a8(t,e,r){const i=100/(r-e)*(t-e);return V3(i,[0,100])}function vO(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function bO(t,e){if(t.length===1)return 0;const r=t.map(a=>Math.abs(a-e)),n=Math.min(...r);return r.indexOf(n)}function wO(t,e,r){const n=t/2,i=Ig([0,50],[0,n]);return(n-i(e)*r)*r}function kO(t){return t.slice(0,-1).map((e,r)=>t[r+1]-e)}function jO(t,e){if(e>0){const r=kO(t);return Math.min(...r)>=e}return!0}function Ig(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function NO(t){return(String(t).split(".")[1]||"").length}function _O(t,e){const r=Math.pow(10,e);return Math.round(t*r)/r}var i8=J3,SO=t8,CO=r8,EO=n8;const Rm=p.forwardRef(({className:t,...e},r)=>s.jsxs(i8,{ref:r,className:ke("relative flex w-full touch-none select-none items-center",t),...e,children:[s.jsx(SO,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:s.jsx(CO,{className:"absolute h-full bg-primary"})}),s.jsx(EO,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Rm.displayName=i8.displayName;const io=t=>t.toLocaleString("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}),TO=()=>{const[t,e]=p.useState(15e5),[r,n]=p.useState(20),[a,i]=p.useState(6.5),[o,l]=p.useState(30),{monthly:c,principal:u,totalInterest:d,totalPaid:h}=p.useMemo(()=>{const f=t*r/100,m=Math.max(t-f,0),w=o*12,g=a/100/12,y=g===0?m/w:m*g/(1-Math.pow(1+g,-w)),x=y*w;return{monthly:isFinite(y)?y:0,principal:m,totalInterest:x-m,totalPaid:x}},[t,r,a,o]);return s.jsx("section",{className:"section-padding bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[s.jsx("h2",{className:"luxury-heading text-3xl md:text-4xl lg:text-5xl font-semibold mb-4",children:"Mortgage Calculator"}),s.jsx("p",{className:"luxury-body text-lg",children:"Estimate your monthly payment on an Austin luxury home. Adjust the inputs to model your scenario."})]}),s.jsx("div",{className:"luxury-card p-8 md:p-12 max-w-5xl mx-auto",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsx(Ze,{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Home Price"}),s.jsx(Lt,{type:"number",value:t,onChange:f=>e(Number(f.target.value)||0),className:"mt-2 text-lg"})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between items-baseline mb-2",children:[s.jsx(Ze,{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Down Payment"}),s.jsxs("span",{className:"text-foreground font-medium",children:[r,"% · ",io(t*r/100)]})]}),s.jsx(Rm,{value:[r],onValueChange:f=>n(f[0]),min:0,max:50,step:1})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between items-baseline mb-2",children:[s.jsx(Ze,{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Interest Rate"}),s.jsxs("span",{className:"text-foreground font-medium",children:[a.toFixed(2),"%"]})]}),s.jsx(Rm,{value:[a],onValueChange:f=>i(f[0]),min:2,max:10,step:.05})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between items-baseline mb-2",children:[s.jsx(Ze,{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Loan Term"}),s.jsxs("span",{className:"text-foreground font-medium",children:[o," years"]})]}),s.jsx("div",{className:"flex gap-3",children:[15,20,30].map(f=>s.jsxs("button",{onClick:()=>l(f),className:`flex-1 py-2 border rounded-md transition-colors ${o===f?"border-primary text-primary":"border-border text-muted-foreground hover:text-foreground"}`,children:[f," yr"]},f))})]})]}),s.jsxs("div",{className:"flex flex-col justify-center border-t lg:border-t-0 lg:border-l border-border pt-8 lg:pt-0 lg:pl-12",children:[s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground mb-2",children:"Estimated Monthly Payment"}),s.jsx("div",{className:"luxury-heading text-5xl md:text-6xl font-semibold text-primary mb-8",children:io(c)}),s.jsxs("div",{className:"space-y-4 text-sm",children:[s.jsxs("div",{className:"flex justify-between border-b border-border pb-3",children:[s.jsx("span",{className:"text-muted-foreground",children:"Loan Amount"}),s.jsx("span",{className:"text-foreground font-medium",children:io(u)})]}),s.jsxs("div",{className:"flex justify-between border-b border-border pb-3",children:[s.jsx("span",{className:"text-muted-foreground",children:"Total Interest"}),s.jsx("span",{className:"text-foreground font-medium",children:io(d)})]}),s.jsxs("div",{className:"flex justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Total Paid"}),s.jsx("span",{className:"text-foreground font-medium",children:io(h)})]})]}),s.jsx("p",{className:"text-xs text-muted-foreground mt-8",children:"Principal & interest only. Excludes taxes, insurance, and HOA. For estimation purposes — consult a lender for exact figures."})]})]})})]})})},Ed="/assets/lake-austin-hero-BSVZSEC_.png",o8="/assets/fifth-west-penthouse-CpISOS9l.jpg",l8="/assets/seaside-cinnamon-shore-CS4K4F9t.jpg",Td="/assets/comanche-point-lake-travis-CflD1fNN.png",RO=[{id:"tortuga-5205",slug:"5205-tortuga-trail",address:"5205 Tortuga Trail",location:"Lake Austin, TX",price:23e6,role:"Represented Buyer",image:Ed,badge:"Off MLS",tagline:"Among the top Lake Austin sales all-time"},{id:"fifth-west-3901",slug:"3901-fifth-west-penthouse",address:"3901 Fifth & West, Penthouse",location:"Downtown Austin, TX",price:14e6,role:"Represented Buyer",image:o8,badge:"Off MLS",tagline:"Top 2 condos sold all-time in Downtown Austin"},{id:"seaside-103",slug:"103-seaside-cinnamon-shore",address:"103 Seaside Dr",location:"Cinnamon Shore, Port Aransas, TX",price:25e5,role:"Represented Seller",image:l8,tagline:"Top $/sqft for Cinnamon Shore"},{id:"comanche-point",slug:"comanche-point-lake-travis",address:"Comanche Point Venture Estate",location:"Lake Travis, TX",price:12e6,role:"Represented Buyer",image:Td,badge:"Off MLS",tagline:"Premier Lake Travis waterfront estate"}],c8=()=>{const{data:t,isLoading:e,error:r}=$3(200),n=(t==null?void 0:t.listings)||[],a=(t==null?void 0:t.roles)||{},i=n.slice(0,12);return s.jsx("section",{className:"section-padding bg-background",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"font-body tracking-[0.2em] uppercase text-sm font-medium mb-4 text-muted-foreground",children:"Track Record"}),s.jsx("h2",{className:"font-heading text-3xl md:text-4xl lg:text-5xl font-semibold mb-6 text-foreground tracking-[0.15em] uppercase",children:"Notable Luxury Sales"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"A selection of Rick's recent luxury transactions representing buyers and sellers across Austin"})]}),s.jsx("div",{className:"mb-16",children:s.jsx("div",{className:"grid md:grid-cols-1 lg:grid-cols-1 gap-8",children:RO.map(o=>s.jsxs(Y,{to:`/sales/${o.slug}`,className:"group block",children:[s.jsxs("div",{className:"relative aspect-[16/9] overflow-hidden mb-4 bg-section-bg",children:[s.jsx("img",{src:o.image,alt:o.address,loading:"lazy",decoding:"async",className:"w-full h-full object-cover object-center transition-transform duration-500 group-hover:scale-105"}),s.jsxs("div",{className:"absolute top-4 left-4 flex gap-2",children:[s.jsx("span",{className:"bg-background/80 text-foreground px-3 py-1 text-xs tracking-wider uppercase",children:o.role}),o.badge&&s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 text-xs tracking-wider uppercase",children:o.badge})]})]}),s.jsxs("div",{className:"flex flex-wrap items-baseline justify-between gap-2 mb-1",children:[s.jsx("h3",{className:"font-heading text-2xl md:text-3xl text-foreground",children:o.address}),s.jsx("span",{className:"font-heading text-xl md:text-2xl text-primary",children:Pu(o.price)})]}),s.jsx("p",{className:"text-muted-foreground text-sm mb-2",children:o.location}),s.jsx("p",{className:"text-primary text-xs tracking-wider uppercase",children:o.tagline})]},o.id))})}),e&&s.jsx("div",{className:"flex justify-center items-center py-20",children:s.jsx(la,{className:"w-8 h-8 animate-spin text-primary"})}),r&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"Unable to load recent sales. Please try again later."})}),!e&&!r&&i.length>0&&s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:i.map(o=>{const l=o.attributes,c=D3(a[o.id]),u=l.cover_photo_url||l.photo_urls&&l.photo_urls[0]||"",d=l.sold_price_in_dollars||l.price_in_dollars,h=l.street||l.title||"Address",f=[l.city,l.state_code].filter(Boolean).join(", ");return s.jsxs(Y,{to:`/listing/${o.id}`,className:"group block",children:[s.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden mb-4 bg-section-bg",children:[u?s.jsx("img",{src:u,alt:h,className:"w-full h-full object-cover object-center transition-transform duration-500 group-hover:scale-105",loading:"lazy",decoding:"async"}):s.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:s.jsx("span",{className:"text-muted-foreground text-sm",children:"No Photo"})}),s.jsx("div",{className:"absolute top-4 left-4 bg-background/80 text-foreground px-3 py-1 text-xs tracking-wider uppercase",children:c})]}),s.jsxs("div",{className:"flex items-baseline justify-between gap-2 mb-1",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground",children:h}),s.jsx("span",{className:"font-heading text-lg text-primary whitespace-nowrap",children:d?Pu(d):"Price N/A"})]}),s.jsx("p",{className:"text-muted-foreground text-sm mb-2",children:f}),l.closing_date&&s.jsxs("p",{className:"text-primary text-xs tracking-wider uppercase",children:["Closed"," ",new Date(l.closing_date).toLocaleDateString("en-US",{month:"short",year:"numeric"})]})]},o.id)})}),!e&&!r&&n.length===0&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"No recent sales to display at this time."})}),!e&&n.length>12&&s.jsx("div",{className:"text-center mt-12",children:s.jsx(Y,{to:"/sold-listings",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"View All Transactions"})})]})})},Hi="/assets/rick-orr-headshot-28z0SGaq.jpg",AO=()=>s.jsx("section",{id:"about",className:"section-padding bg-section-bg",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsx("div",{className:"relative",children:s.jsx("img",{src:Hi,alt:"Rick Orr - ORR Realty Group",className:"w-full aspect-[3/4] object-cover object-top"})}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"luxury-subheading text-muted-foreground",children:"About"}),s.jsx("h2",{className:"luxury-heading text-3xl md:text-4xl lg:text-5xl text-foreground",children:"Rick Orr"}),s.jsx("p",{className:"luxury-body text-muted-foreground",children:"Rick Orr is the driving force behind ORR Realty Group, combining his passion for real estate with a tech entrepreneur's mindset. As the founder and former CEO of RealSavvy, Rick brings a unique perspective to luxury real estate that blends cutting-edge technology with old-school relationship building."}),s.jsx("p",{className:"luxury-body text-muted-foreground",children:"A Bouldin Creek resident since 2007, Rick plays golf 4x a week at Lost Creek Country Club and has built an extensive network of Austin's most successful entrepreneurs, executives, and investors. Whether you're buying, selling, or looking for an exclusive off-market opportunity, Rick delivers results through relationships."}),s.jsx(Y,{to:"/about",className:"inline-block luxury-button-primary mt-4",children:"Learn More About Rick"})]})]})})}),u8="/assets/bouldin-creek-listing-B-DT--N1.jpg",d8="/assets/westlake-hero-gPrK_wW5.jpg",h8="/assets/travis-heights-hero-DAkB8ODa.jpg",f8="/assets/tarrytown-zXmHKk1w.jpg",PO=[{name:"Bouldin Creek",image:u8,link:"/bouldin-creek",description:"Rick's home since 2007. Eclectic South Austin neighborhood with local eateries, parks, and vibrant community."},{name:"Westlake / Rollingwood",image:d8,link:"/neighborhoods/westlake",description:"Premier luxury enclave with top-rated schools, estate homes, and proximity to downtown Austin."},{name:"Lake Austin",image:Ed,link:"/neighborhoods/lake-austin",description:"Waterfront luxury living. Home to Rick's $23M Tortuga Trail transaction - 2nd highest Lake Austin sale."},{name:"Lake Travis",image:Td,link:"/neighborhoods/lake-travis",description:"Hill Country lake living with stunning views, boating, and resort-style amenities."},{name:"Tarrytown",image:f8,link:"/neighborhoods/tarrytown",description:"Historic Central Austin neighborhood with tree-lined streets, classic architecture, and walkability."},{name:"Travis Heights",image:h8,link:"/neighborhoods/travis-heights",description:"South Austin charm with stunning downtown views, historic homes, and vibrant local culture."}],m8=()=>s.jsx("section",{className:"section-padding bg-background",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"font-body tracking-[0.2em] uppercase text-sm font-medium mb-4 text-muted-foreground",children:"Explore Austin & Central Texas"}),s.jsx("h2",{className:"text-white font-heading text-3xl md:text-4xl lg:text-5xl font-semibold mb-6 text-foreground tracking-[0.15em] uppercase",children:"Featured Neighborhoods"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:PO.map((t,e)=>s.jsxs(Y,{to:t.link,className:"group relative block overflow-hidden aspect-[4/3]",children:[s.jsx("img",{src:t.image,alt:t.name,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),s.jsx("div",{className:"absolute inset-0 bg-black/40 transition-opacity duration-500 group-hover:opacity-0"}),s.jsx("div",{className:"absolute inset-0 bg-red-accent/90 opacity-0 group-hover:opacity-100 transition-all duration-500"}),s.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-6 transition-all duration-500 group-hover:opacity-0",children:s.jsx("h3",{className:"font-heading text-2xl md:text-3xl text-white tracking-wide",children:t.name})}),s.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-8 opacity-0 group-hover:opacity-100 transition-all duration-500 translate-y-4 group-hover:translate-y-0",children:[s.jsx("h3",{className:"font-heading text-2xl md:text-3xl text-white tracking-wide mb-4",children:t.name}),s.jsx("p",{className:"text-white/90 text-sm md:text-base leading-relaxed mb-4 max-w-xs",children:t.description}),s.jsx("span",{className:"text-sm tracking-[0.2em] uppercase text-white border-b border-white pb-1 transition-all duration-300",children:"Explore"})]})]},e))})]})}),ks=[{text:"Rick's tech background and real estate expertise made our home search incredibly efficient. He understood exactly what we needed as a startup founder relocating to Austin and found us the perfect Bouldin Creek property before it even hit the market.",author:"Taylor W.",type:"Tech Executive Buyer"},{text:"Working with Rick on our Lake Austin property was seamless. His network and off-market access gave us options we never would have found otherwise. The $23M Tortuga deal was handled with complete professionalism.",author:"Jordan K.",type:"Luxury Buyer"},{text:"As a fellow entrepreneur, Rick gets it. He doesn't waste your time, responds instantly (hence #justtextrick), and his RealSavvy background means he leverages technology better than any other agent I've worked with.",author:"Alex R.",type:"Tech Founder"},{text:"Rick helped us sell our Westlake home in record time. His pricing strategy was spot-on, and his network of qualified buyers meant we had multiple offers within days. Highly recommend for luxury sellers.",author:"Kenny Tomlin",type:"Seller"},{text:"We've worked with many realtors over the years, but Rick's combination of market knowledge, tech savvy, and genuine relationship building is unmatched. He found us our dream home in Tarrytown.",author:"Adelle Archer",type:"Buyer"},{text:"Rick's off-market expertise saved us months of searching. He knew exactly what we wanted and connected us with a seller who wasn't even planning to list. That's the power of his network.",author:"Alan & Kristie Foster",type:"Buyers"}],OO=()=>{const[t,e]=p.useState(0),r=()=>{e(a=>(a+1)%ks.length)},n=()=>{e(a=>(a-1+ks.length)%ks.length)};return s.jsxs("section",{id:"testimonials",className:"relative section-padding overflow-hidden bg-section-bg",children:[s.jsxs("div",{className:"absolute inset-0 opacity-30",children:[s.jsx("img",{alt:"Austin Skyline",className:"w-full h-full object-cover",src:"https://images.unsplash.com/photo-1531218150217-54595bc2b934?w=1920&q=80"}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/85"})]}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 relative z-10",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-muted-foreground",children:"Client Stories"}),s.jsx("h2",{className:"luxury-heading text-3xl md:text-4xl lg:text-5xl font-semibold text-foreground",children:"Testimonials"})]}),s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsxs("div",{className:"relative",children:[s.jsx(p_,{className:"w-16 h-16 text-primary/30 absolute -top-4 -left-4"}),s.jsxs("div",{className:"luxury-card p-8 md:p-12 text-center",children:[s.jsxs("p",{className:"text-lg md:text-xl font-light leading-relaxed text-foreground/90 mb-8",children:['"',ks[t].text,'"']}),s.jsx("div",{className:"gold-line max-w-24 mx-auto mb-6"}),s.jsx("p",{className:"font-heading text-lg text-foreground",children:ks[t].author}),s.jsx("p",{className:"text-sm text-primary tracking-wider uppercase",children:ks[t].type})]}),s.jsxs("div",{className:"flex items-center justify-center gap-4 mt-8",children:[s.jsx("button",{onClick:n,className:"p-3 border border-border/50 hover:border-primary hover:bg-primary/10 transition-all duration-300 rounded-sm",children:s.jsx(ad,{className:"w-5 h-5"})}),s.jsx("div",{className:"flex gap-2",children:ks.map((a,i)=>s.jsx("button",{onClick:()=>e(i),className:`w-2 h-2 rounded-full transition-all duration-300 ${i===t?"bg-primary w-6":"bg-muted-foreground/50"}`},i))}),s.jsx("button",{onClick:r,className:"p-3 border border-border/50 hover:border-primary hover:bg-primary/10 transition-all duration-300 rounded-sm",children:s.jsx(Rl,{className:"w-5 h-5"})})]})]})})]})]})},IO=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);class Mg extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class MO extends Mg{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class Ay extends Mg{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Py extends Mg{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Am;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Am||(Am={}));class LO{constructor(e,{headers:r={},customFetch:n,region:a=Am.Any}={}){this.url=e,this.headers=r,this.region=a,this.fetch=IO(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return w9(this,arguments,void 0,function*(r,n={}){var a;let i,o;try{const{headers:l,method:c,body:u,signal:d,timeout:h}=n;let f={},{region:m}=n;m||(m=this.region);const w=new URL(`${this.url}/${r}`);m&&m!=="any"&&(f["x-region"]=m,w.searchParams.set("forceFunctionRegion",m));let g;u&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(f["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(f["Content-Type"]="application/json",g=JSON.stringify(u)):g=u;let y=d;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),d?(y=o.signal,d.addEventListener("abort",()=>o.abort())):y=o.signal);const x=yield this.fetch(w.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),l),body:g,signal:y}).catch(j=>{throw new MO(j)}),v=x.headers.get("x-relay-error");if(v&&v==="true")throw new Ay(x);if(!x.ok)throw new Py(x);let b=((a=x.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),k;return b==="application/json"?k=yield x.json():b==="application/octet-stream"||b==="application/pdf"?k=yield x.blob():b==="text/event-stream"?k=x:b==="multipart/form-data"?k=yield x.formData():k=yield x.text(),{data:k,error:null,response:x}}catch(l){return{data:null,error:l,response:l instanceof Py||l instanceof Ay?l.context:void 0}}finally{i&&clearTimeout(i)}})}}var DO=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}},$O=class{constructor(t){var e,r;this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(r=t.isMaybeSingle)!==null&&r!==void 0?r:!1,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}then(t,e){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let a=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,l=null,c=null,u=i.status,d=i.statusText;if(i.ok){var h,f;if(r.method!=="HEAD"){var m;const x=await i.text();x===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((m=r.headers.get("Accept"))===null||m===void 0)&&m.includes("application/vnd.pgrst.plan+text"))?l=x:l=JSON.parse(x))}const g=(h=r.headers.get("Prefer"))===null||h===void 0?void 0:h.match(/count=(exact|planned|estimated)/),y=(f=i.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");g&&y&&y.length>1&&(c=parseInt(y[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(l)&&(l.length>1?(o={code:"PGRST116",details:`Results contain ${l.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},l=null,c=null,u=406,d="Not Acceptable"):l.length===1?l=l[0]:l=null)}else{var w;const g=await i.text();try{o=JSON.parse(g),Array.isArray(o)&&i.status===404&&(l=[],o=null,u=200,d="OK")}catch{i.status===404&&g===""?(u=204,d="No Content"):o={message:g}}if(o&&r.isMaybeSingle&&(!(o==null||(w=o.details)===null||w===void 0)&&w.includes("0 rows"))&&(o=null,u=200,d="OK"),o&&r.shouldThrowOnError)throw new DO(o)}return{error:o,data:l,count:c,status:u,statusText:d}});return this.shouldThrowOnError||(a=a.catch(i=>{var o;let l="";const c=i==null?void 0:i.cause;if(c){var u,d,h,f;const w=(u=c==null?void 0:c.message)!==null&&u!==void 0?u:"",g=(d=c==null?void 0:c.code)!==null&&d!==void 0?d:"";l=`${(h=i==null?void 0:i.name)!==null&&h!==void 0?h:"FetchError"}: ${i==null?void 0:i.message}`,l+=`

Caused by: ${(f=c==null?void 0:c.name)!==null&&f!==void 0?f:"Error"}: ${w}`,g&&(l+=` (${g})`),c!=null&&c.stack&&(l+=`
${c.stack}`)}else{var m;l=(m=i==null?void 0:i.stack)!==null&&m!==void 0?m:""}return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:l,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),a.then(t,e)}returns(){return this}overrideTypes(){return this}},FO=class extends $O{select(t){let e=!1;const r=(t??"*").split("").map(n=>/\s/.test(n)&&!e?"":(n==='"'&&(e=!e),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:r,foreignTable:n,referencedTable:a=n}={}){const i=a?`${a}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${t}.${e?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:r=e}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${t}`),this}range(t,e,{foreignTable:r,referencedTable:n=r}={}){const a=typeof n>"u"?"offset":`${n}.offset`,i=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(a,`${t}`),this.url.searchParams.set(i,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:t=!1,verbose:e=!1,settings:r=!1,buffers:n=!1,wal:a=!1,format:i="text"}={}){var o;const l=[t?"analyze":null,e?"verbose":null,r?"settings":null,n?"buffers":null,a?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const Oy=new RegExp("[,()]");var Aa=class extends FO{eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&Oy.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}notIn(t,e){const r=Array.from(new Set(e)).map(n=>typeof n=="string"&&Oy.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(t,`not.in.(${r})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:r,type:n}={}){let a="";n==="plain"?a="pl":n==="phrase"?a="ph":n==="websearch"&&(a="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${a}fts${i}.${e}`),this}match(t){return Object.entries(t).forEach(([e,r])=>{this.url.searchParams.append(e,`eq.${r}`)}),this}not(t,e,r){return this.url.searchParams.append(t,`not.${e}.${r}`),this}or(t,{foreignTable:e,referencedTable:r=e}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${t})`),this}filter(t,e,r){return this.url.searchParams.append(t,`${e}.${r}`),this}},BO=class{constructor(t,{headers:e={},schema:r,fetch:n}){this.url=t,this.headers=new Headers(e),this.schema=r,this.fetch=n}select(t,e){const{head:r=!1,count:n}=e??{},a=r?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(l=>/\s/.test(l)&&!i?"":(l==='"'&&(i=!i),l)).join("");return this.url.searchParams.set("select",o),n&&this.headers.append("Prefer",`count=${n}`),new Aa({method:a,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(t,{count:e,defaultToNull:r=!0}={}){var n;const a="POST";if(e&&this.headers.append("Prefer",`count=${e}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const i=t.reduce((o,l)=>o.concat(Object.keys(l)),[]);if(i.length>0){const o=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",o.join(","))}}return new Aa({method:a,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}upsert(t,{onConflict:e,ignoreDuplicates:r=!1,count:n,defaultToNull:a=!0}={}){var i;const o="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),e!==void 0&&this.url.searchParams.set("on_conflict",e),n&&this.headers.append("Prefer",`count=${n}`),a||this.headers.append("Prefer","missing=default"),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new Aa({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}update(t,{count:e}={}){var r;const n="PATCH";return e&&this.headers.append("Prefer",`count=${e}`),new Aa({method:n,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:t}={}){var e;const r="DELETE";return t&&this.headers.append("Prefer",`count=${t}`),new Aa({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch})}},UO=class p8{constructor(e,{headers:r={},schema:n,fetch:a}={}){this.url=e,this.headers=new Headers(r),this.schemaName=n,this.fetch=a}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new BO(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new p8(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,r={},{head:n=!1,get:a=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${e}`);let u;n||a?(l=n?"HEAD":"GET",Object.entries(r).filter(([h,f])=>f!==void 0).map(([h,f])=>[h,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([h,f])=>{c.searchParams.append(h,f)})):(l="POST",u=r);const d=new Headers(this.headers);return i&&d.set("Prefer",`count=${i}`),new Aa({method:l,url:c,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class WO{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const r=process.versions;if(r&&r.node){const n=r.node,a=parseInt(n.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
import ws from "ws"
new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=`

Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const zO="2.88.0",HO=`realtime-js/${zO}`,g8="1.0.0",VO="2.0.0",Iy=g8,Pm=1e4,qO=1e3,GO=100;var Pn;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(Pn||(Pn={}));var Xe;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Xe||(Xe={}));var yr;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(yr||(yr={}));var Om;(function(t){t.websocket="websocket"})(Om||(Om={}));var Ts;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Ts||(Ts={}));class KO{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,r){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){var r;return this._isArrayBuffer((r=e.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var r,n;const a=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,a)}_encodeJsonUserBroadcastPush(e){var r,n;const a=(n=(r=e.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(a)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(e,r,n){var a,i;const o=e.topic,l=(a=e.ref)!==null&&a!==void 0?a:"",c=(i=e.join_ref)!==null&&i!==void 0?i:"",u=e.payload.event,d=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},h=Object.keys(d).length===0?"":JSON.stringify(d);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+u.length+h.length,m=new ArrayBuffer(this.HEADER_LENGTH+f);let w=new DataView(m),g=0;w.setUint8(g++,this.KINDS.userBroadcastPush),w.setUint8(g++,c.length),w.setUint8(g++,l.length),w.setUint8(g++,o.length),w.setUint8(g++,u.length),w.setUint8(g++,h.length),w.setUint8(g++,r),Array.from(c,x=>w.setUint8(g++,x.charCodeAt(0))),Array.from(l,x=>w.setUint8(g++,x.charCodeAt(0))),Array.from(o,x=>w.setUint8(g++,x.charCodeAt(0))),Array.from(u,x=>w.setUint8(g++,x.charCodeAt(0))),Array.from(h,x=>w.setUint8(g++,x.charCodeAt(0)));var y=new Uint8Array(m.byteLength+n.byteLength);return y.set(new Uint8Array(m),0),y.set(new Uint8Array(n),m.byteLength),y.buffer}decode(e,r){if(this._isArrayBuffer(e)){let n=this._binaryDecode(e);return r(n)}if(typeof e=="string"){const n=JSON.parse(e),[a,i,o,l,c]=n;return r({join_ref:a,ref:i,topic:o,event:l,payload:c})}return r({})}_binaryDecode(e){const r=new DataView(e),n=r.getUint8(0),a=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(e,r,a)}}_decodeUserBroadcast(e,r,n){const a=r.getUint8(1),i=r.getUint8(2),o=r.getUint8(3),l=r.getUint8(4);let c=this.HEADER_LENGTH+4;const u=n.decode(e.slice(c,c+a));c=c+a;const d=n.decode(e.slice(c,c+i));c=c+i;const h=n.decode(e.slice(c,c+o));c=c+o;const f=e.slice(c,e.byteLength),m=l===this.JSON_ENCODING?JSON.parse(n.decode(f)):f,w={type:this.BROADCAST_EVENT,event:d,payload:m};return o>0&&(w.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:w}}_isArrayBuffer(e){var r;return e instanceof ArrayBuffer||((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(e,r){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([n])=>r.includes(n)))}}class x8{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ee;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Ee||(Ee={}));const My=(t,e,r={})=>{var n;const a=(n=r.skipTypes)!==null&&n!==void 0?n:[];return e?Object.keys(e).reduce((i,o)=>(i[o]=YO(o,t,e,a),i),{}):{}},YO=(t,e,r,n)=>{const a=e.find(l=>l.name===t),i=a==null?void 0:a.type,o=r[t];return i&&!n.includes(i)?y8(i,o):Im(o)},y8=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return ZO(e,r)}switch(t){case Ee.bool:return JO(e);case Ee.float4:case Ee.float8:case Ee.int2:case Ee.int4:case Ee.int8:case Ee.numeric:case Ee.oid:return QO(e);case Ee.json:case Ee.jsonb:return XO(e);case Ee.timestamp:return eI(e);case Ee.abstime:case Ee.date:case Ee.daterange:case Ee.int4range:case Ee.int8range:case Ee.money:case Ee.reltime:case Ee.text:case Ee.time:case Ee.timestamptz:case Ee.timetz:case Ee.tsrange:case Ee.tstzrange:return Im(e);default:return Im(e)}},Im=t=>t,JO=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},QO=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},XO=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},ZO=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let i;const o=t.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>y8(e,l))}return t},eI=t=>typeof t=="string"?t.replace(" ","T"):t,v8=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};class Lh{constructor(e,r,n={},a=Pm){this.channel=e,this.event=r,this.payload=n,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Ly;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(Ly||(Ly={}));class Ao{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ao.syncState(this.state,a,i,o),this.pendingDiffs.forEach(c=>{this.state=Ao.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(n.diff,{},a=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=Ao.syncDiff(this.state,a,i,o),l())}),this.onJoin((a,i,o)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:i,newPresences:o})}),this.onLeave((a,i,o)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,a){const i=this.cloneDeep(e),o=this.transformState(r),l={},c={};return this.map(i,(u,d)=>{o[u]||(c[u]=d)}),this.map(o,(u,d)=>{const h=i[u];if(h){const f=d.map(y=>y.presence_ref),m=h.map(y=>y.presence_ref),w=d.filter(y=>m.indexOf(y.presence_ref)<0),g=h.filter(y=>f.indexOf(y.presence_ref)<0);w.length>0&&(l[u]=w),g.length>0&&(c[u]=g)}else l[u]=d}),this.syncDiff(i,{joins:l,leaves:c},n,a)}static syncDiff(e,r,n,a){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),a||(a=()=>{}),this.map(i,(l,c)=>{var u;const d=(u=e[l])!==null&&u!==void 0?u:[];if(e[l]=this.cloneDeep(c),d.length>0){const h=e[l].map(m=>m.presence_ref),f=d.filter(m=>h.indexOf(m.presence_ref)<0);e[l].unshift(...f)}n(l,d,c)}),this.map(o,(l,c)=>{let u=e[l];if(!u)return;const d=c.map(h=>h.presence_ref);u=u.filter(h=>d.indexOf(h.presence_ref)<0),e[l]=u,a(l,u,c),u.length===0&&delete e[l]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const a=e[n];return"metas"in a?r[n]=a.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=a,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Dy;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Dy||(Dy={}));var Po;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Po||(Po={}));var en;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(en||(en={}));class Ga{constructor(e,r={config:{}},n){var a,i;if(this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=Xe.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new Lh(this,yr.join,this.params,this.timeout),this.rejoinTimer=new x8(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Xe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Xe.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Xe.errored,this.rejoinTimer.scheduleTimeout())}),this._on(yr.reply,{},(o,l)=>{this._trigger(this._replyEventName(l),o)}),this.presence=new Ao(this),this.broadcastEndpointURL=v8(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(a=this.params.config)===null||a===void 0?void 0:a.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,r=this.timeout){var n,a,i;if(this.socket.isConnected()||this.socket.connect(),this.state==Xe.closed){const{config:{broadcast:o,presence:l,private:c}}=this.params,u=(a=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(m=>m.filter))!==null&&a!==void 0?a:[],d=!!this.bindings[Po.PRESENCE]&&this.bindings[Po.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},f={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:d}),postgres_changes:u,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(m=>e==null?void 0:e(en.CHANNEL_ERROR,m)),this._onClose(()=>e==null?void 0:e(en.CLOSED)),this.updateJoinPayload(Object.assign({config:f},h)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:m})=>{var w;if(this.socket._isManualToken()||this.socket.setAuth(),m===void 0){e==null||e(en.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,y=(w=g==null?void 0:g.length)!==null&&w!==void 0?w:0,x=[];for(let v=0;v<y;v++){const b=g[v],{filter:{event:k,schema:j,table:N,filter:_}}=b,E=m&&m[v];if(E&&E.event===k&&Ga.isFilterValueEqual(E.schema,j)&&Ga.isFilterValueEqual(E.table,N)&&Ga.isFilterValueEqual(E.filter,_))x.push(Object.assign(Object.assign({},b),{id:E.id}));else{this.unsubscribe(),this.state=Xe.errored,e==null||e(en.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,e&&e(en.SUBSCRIBED);return}}).receive("error",m=>{this.state=Xe.errored,e==null||e(en.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(en.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===Xe.joined&&e===Po.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(e,r,n)}async httpSend(e,r,n={}){var a;if(r==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:r,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(a=n.timeout)!==null&&a!==void 0?a:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;try{const u=await l.json();c=u.error||u.message||c}catch{}return Promise.reject(new Error(c))}async send(e,r={}){var n,a;if(!this._canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=e,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((a=u.body)===null||a===void 0?void 0:a.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const u=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Xe.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(yr.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(a=>{n=new Lh(this,yr.leave,{},e),n.receive("ok",()=>{r(),a("ok")}).receive("timeout",()=>{r(),a("timed out")}).receive("error",()=>{a("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Xe.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const a=new AbortController,i=setTimeout(()=>a.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(i),o}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new Lh(this,e,r,n);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>GO){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var a,i;const o=e.toLocaleLowerCase(),{close:l,error:c,leave:u,join:d}=yr;if(n&&[l,c,u,d].indexOf(o)>=0&&n!==this._joinRef())return;let f=this._onMessage(o,r,n);if(r&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(m=>{var w,g,y;return((w=m.filter)===null||w===void 0?void 0:w.event)==="*"||((y=(g=m.filter)===null||g===void 0?void 0:g.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===o}).map(m=>m.callback(f,n)):(i=this.bindings[o])===null||i===void 0||i.filter(m=>{var w,g,y,x,v,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in m){const k=m.id,j=(w=m.filter)===null||w===void 0?void 0:w.event;return k&&((g=r.ids)===null||g===void 0?void 0:g.includes(k))&&(j==="*"||(j==null?void 0:j.toLocaleLowerCase())===((y=r.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const k=(v=(x=m==null?void 0:m.filter)===null||x===void 0?void 0:x.event)===null||v===void 0?void 0:v.toLocaleLowerCase();return k==="*"||k===((b=r==null?void 0:r.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return m.type.toLocaleLowerCase()===o}).map(m=>{if(typeof f=="object"&&"ids"in f){const w=f.data,{schema:g,table:y,commit_timestamp:x,type:v,errors:b}=w;f=Object.assign(Object.assign({},{schema:g,table:y,commit_timestamp:x,eventType:v,new:{},old:{},errors:b}),this._getPayloadRecords(w))}m.callback(f,n)})}_isClosed(){return this.state===Xe.closed}_isJoined(){return this.state===Xe.joined}_isJoining(){return this.state===Xe.joining}_isLeaving(){return this.state===Xe.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const a=e.toLocaleLowerCase(),i={type:a,filter:r,callback:n};return this.bindings[a]?this.bindings[a].push(i):this.bindings[a]=[i],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(a=>{var i;return!(((i=a.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&Ga.isEqual(a.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}static isFilterValueEqual(e,r){return(e??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(yr.close,{},e)}_onError(e){this._on(yr.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Xe.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=My(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=My(e.columns,e.old_record)),r}}const Dh=()=>{},yc={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},tI=[1e3,2e3,5e3,1e4],rI=1e4,nI=`
  addEventListener("message", (e) => {
    if (e.data.event === "start") {
      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
    }
  });`;class sI{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Pm,this.transport=null,this.heartbeatIntervalMs=yc.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Dh,this.ref=0,this.reconnectTimer=null,this.vsn=Iy,this.logger=Dh,this.conn=null,this.sendBuffer=[],this.serializer=new KO,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=a=>a?(...i)=>a(...i):(...i)=>fetch(...i),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${Om.websocket}`,this.httpEndpoint=v8(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=WO.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r}

To use Realtime in Node.js, you need to provide a WebSocket implementation:

Option 1: Use Node.js 22+ which has native WebSocket support
Option 2: Install and provide the "ws" package:

  npm install ws

  import ws from "ws"
  const client = new RealtimeClient(url, {
    ...options,
    transport: ws
  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(e?this.conn.close(e,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case Pn.connecting:return Ts.Connecting;case Pn.open:return Ts.Open;case Pn.closing:return Ts.Closing;default:return Ts.Closed}}isConnected(){return this.connectionState()===Ts.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,a=this.getChannels().find(i=>i.topic===n);if(a)return a;{const i=new Ga(`realtime:${e}`,r,this);return this.channels.push(i),i}}push(e){const{topic:r,event:n,payload:a,ref:i}=e,o=()=>{this.encode(e,l=>{var c;(c=this.conn)===null||c===void 0||c.send(l)})};this.log("push",`${r} ${n} (${i})`,a),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(qO,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.scheduleTimeout()},yc.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply")try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:a,payload:i,ref:o}=r,l=o?`(${o})`:"",c=i.status||"";this.log("receive",`${c} ${n} ${a} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(a,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e),this.conn.readyState===Pn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Pn.open||this.conn.readyState===Pn.connecting)try{this.conn.close()}catch(e){this.log("error","Error closing connection",e)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(yr.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",a=new URLSearchParams(r);return`${e}${n}${a}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([nI],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r,n=!1;if(e)r=e,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(a){this.log("error","Error fetching access token from callback",a),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(a=>{const i={access_token:r,version:HO};r&&a.updateJoinPayload(i),a.joinedOnce&&a._isJoined()&&a._push(yr.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(a){this.log("error",`error in ${e} callback`,a)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new x8(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},yc.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,a,i,o,l,c,u,d,h,f,m;switch(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:Pm,this.heartbeatIntervalMs=(a=e==null?void 0:e.heartbeatIntervalMs)!==null&&a!==void 0?a:yc.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=e==null?void 0:e.heartbeatCallback)!==null&&l!==void 0?l:Dh,this.vsn=(c=e==null?void 0:e.vsn)!==null&&c!==void 0?c:Iy,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=e==null?void 0:e.reconnectAfterMs)!==null&&u!==void 0?u:w=>tI[w-1]||rI,this.vsn){case g8:this.encode=(d=e==null?void 0:e.encode)!==null&&d!==void 0?d:(w,g)=>g(JSON.stringify(w)),this.decode=(h=e==null?void 0:e.decode)!==null&&h!==void 0?h:(w,g)=>g(JSON.parse(w));break;case VO:this.encode=(f=e==null?void 0:e.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(m=e==null?void 0:e.decode)!==null&&m!==void 0?m:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}var cl=class extends Error{constructor(t,e){var r;super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&((r=e.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function aI(t,e,r){const n=new URL(e,t);if(r)for(const[a,i]of Object.entries(r))i!==void 0&&n.searchParams.set(a,i);return n.toString()}async function iI(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function oI(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:a,body:i,headers:o}){const l=aI(t.baseUrl,n,a),c=await iI(t.auth),u=await e(l,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const m=h?f:void 0,w=m==null?void 0:m.error;throw new cl((w==null?void 0:w.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:w==null?void 0:w.type,icebergCode:w==null?void 0:w.code,details:m})}return{status:u.status,headers:u.headers,data:f}}}}function vc(t){return t.join("")}var lI=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:vc(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(t,e){const r={namespace:t.namespace,properties:e==null?void 0:e.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${vc(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${vc(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${vc(t.namespace)}`}),!0}catch(e){if(e instanceof cl&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(r){if(r instanceof cl&&r.status===409)return;throw r}}};function wa(t){return t.join("")}var cI=class{constructor(t,e="",r){this.client=t,this.prefix=e,this.accessDelegation=r}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${wa(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${wa(t.namespace)}/tables`,body:e,headers:r})).data.metadata}async updateTable(t,e){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${wa(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${wa(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String((e==null?void 0:e.purge)??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${wa(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${wa(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(r){if(r instanceof cl&&r.status===404)return!1;throw r}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(r){if(r instanceof cl&&r.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw r}}},uI=class{constructor(t){var n;let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const r=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=oI({baseUrl:r,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=(n=t.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new lI(this.client,e),this.tableOps=new cI(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}},Rd=class extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}};function $e(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var dI=class extends Rd{constructor(t,e,r){super(t),this.name="StorageApiError",this.status=e,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Mm=class extends Rd{constructor(t,e){super(t),this.name="StorageUnknownError",this.originalError=e}};const Lg=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),hI=()=>Response,Lm=t=>{if(Array.isArray(t))return t.map(r=>Lm(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const a=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[a]=Lm(n)}),e},fI=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},mI=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t);function ul(t){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ul(t)}function pI(t,e){if(ul(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gI(t){var e=pI(t,"string");return ul(e)=="symbol"?e:e+""}function xI(t,e,r){return(e=gI(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function re(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$y(Object(r),!0).forEach(function(n){xI(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const $h=t=>{var e;return t.msg||t.message||t.error_description||(typeof t.error=="string"?t.error:(e=t.error)===null||e===void 0?void 0:e.message)||JSON.stringify(t)},yI=async(t,e,r)=>{t instanceof await hI()&&!(r!=null&&r.noResolveJson)?t.json().then(n=>{const a=t.status||500,i=(n==null?void 0:n.statusCode)||a+"";e(new dI($h(n),a,i))}).catch(n=>{e(new Mm($h(n),n))}):e(new Mm($h(t),t))},vI=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!n?a:(fI(n)?(a.headers=re({"Content-Type":"application/json"},e==null?void 0:e.headers),a.body=JSON.stringify(n)):a.body=n,e!=null&&e.duplex&&(a.duplex=e.duplex),re(re({},a),r))};async function Fl(t,e,r,n,a,i){return new Promise((o,l)=>{t(r,vI(e,n,a,i)).then(c=>{if(!c.ok)throw c;return n!=null&&n.noResolveJson?c:c.json()}).then(c=>o(c)).catch(c=>yI(c,l,n))})}async function dl(t,e,r,n){return Fl(t,"GET",e,r,n)}async function mr(t,e,r,n,a){return Fl(t,"POST",e,n,a,r)}async function Dm(t,e,r,n,a){return Fl(t,"PUT",e,n,a,r)}async function bI(t,e,r,n){return Fl(t,"HEAD",e,re(re({},r),{},{noResolveJson:!0}),n)}async function Dg(t,e,r,n,a){return Fl(t,"DELETE",e,n,a,r)}var wI=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e}then(t,e){return this.execute().then(t,e)}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if($e(e))return{data:null,error:e};throw e}}};let b8;b8=Symbol.toStringTag;var kI=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[b8]="BlobDownloadBuilder",this.promise=null}asStream(){return new wI(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if($e(e))return{data:null,error:e};throw e}}};const jI={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Fy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var NI=class{constructor(t,e={},r,n){this.shouldThrowOnError=!1,this.url=t,this.headers=e,this.bucketId=r,this.fetch=Lg(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(t,e,r,n){var a=this;try{let i;const o=re(re({},Fy),n);let l=re(re({},a.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",a.encodeMetadata(c)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",a.encodeMetadata(c))):(i=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=a.toBase64(a.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers&&(l=re(re({},l),n.headers));const u=a._removeEmptyFolders(e),d=a._getFinalPath(u),h=await(t=="PUT"?Dm:mr)(a.fetch,`${a.url}/object/${d}`,i,re({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:h.Id,fullPath:h.Key},error:null}}catch(i){if(a.shouldThrowOnError)throw i;if($e(i))return{data:null,error:i};throw i}}async upload(t,e,r){return this.uploadOrUpdate("POST",t,e,r)}async uploadToSignedUrl(t,e,r,n){var a=this;const i=a._removeEmptyFolders(t),o=a._getFinalPath(i),l=new URL(a.url+`/object/upload/sign/${o}`);l.searchParams.set("token",e);try{let c;const u=re({upsert:Fy.upsert},n),d=re(re({},a.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),c.append("",r)):typeof FormData<"u"&&r instanceof FormData?(c=r,c.append("cacheControl",u.cacheControl)):(c=r,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType),{data:{path:i,fullPath:(await Dm(a.fetch,l.toString(),c,{headers:d})).Key},error:null}}catch(c){if(a.shouldThrowOnError)throw c;if($e(c))return{data:null,error:c};throw c}}async createSignedUploadUrl(t,e){var r=this;try{let n=r._getFinalPath(t);const a=re({},r.headers);e!=null&&e.upsert&&(a["x-upsert"]="true");const i=await mr(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:a}),o=new URL(r.url+i.url),l=o.searchParams.get("token");if(!l)throw new Rd("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:l},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if($e(n))return{data:null,error:n};throw n}}async update(t,e,r){return this.uploadOrUpdate("PUT",t,e,r)}async move(t,e,r){var n=this;try{return{data:await mr(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}),error:null}}catch(a){if(n.shouldThrowOnError)throw a;if($e(a))return{data:null,error:a};throw a}}async copy(t,e,r){var n=this;try{return{data:{path:(await mr(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:t,destinationKey:e,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key},error:null}}catch(a){if(n.shouldThrowOnError)throw a;if($e(a))return{data:null,error:a};throw a}}async createSignedUrl(t,e,r){var n=this;try{let a=n._getFinalPath(t),i=await mr(n.fetch,`${n.url}/object/sign/${a}`,re({expiresIn:e},r!=null&&r.transform?{transform:r.transform}:{}),{headers:n.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${n.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(a){if(n.shouldThrowOnError)throw a;if($e(a))return{data:null,error:a};throw a}}async createSignedUrls(t,e,r){var n=this;try{const a=await mr(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:e,paths:t},{headers:n.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:a.map(o=>re(re({},o),{},{signedUrl:o.signedURL?encodeURI(`${n.url}${o.signedURL}${i}`):null})),error:null}}catch(a){if(n.shouldThrowOnError)throw a;if($e(a))return{data:null,error:a};throw a}}download(t,e){const r=typeof(e==null?void 0:e.transform)<"u"?"render/image/authenticated":"object",n=this.transformOptsToQueryString((e==null?void 0:e.transform)||{}),a=n?`?${n}`:"",i=this._getFinalPath(t),o=()=>dl(this.fetch,`${this.url}/${r}/${i}${a}`,{headers:this.headers,noResolveJson:!0});return new kI(o,this.shouldThrowOnError)}async info(t){var e=this;const r=e._getFinalPath(t);try{return{data:Lm(await dl(e.fetch,`${e.url}/object/info/${r}`,{headers:e.headers})),error:null}}catch(n){if(e.shouldThrowOnError)throw n;if($e(n))return{data:null,error:n};throw n}}async exists(t){var e=this;const r=e._getFinalPath(t);try{return await bI(e.fetch,`${e.url}/object/${r}`,{headers:e.headers}),{data:!0,error:null}}catch(n){if(e.shouldThrowOnError)throw n;if($e(n)&&n instanceof Mm){const a=n.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:n}}throw n}}getPublicUrl(t,e){const r=this._getFinalPath(t),n=[],a=e!=null&&e.download?`download=${e.download===!0?"":e.download}`:"";a!==""&&n.push(a);const i=typeof(e==null?void 0:e.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((e==null?void 0:e.transform)||{});o!==""&&n.push(o);let l=n.join("&");return l!==""&&(l=`?${l}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${r}${l}`)}}}async remove(t){var e=this;try{return{data:await Dg(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}async list(t,e,r){var n=this;try{const a=re(re(re({},jI),e),{},{prefix:t||""});return{data:await mr(n.fetch,`${n.url}/object/list/${n.bucketId}`,a,{headers:n.headers},r),error:null}}catch(a){if(n.shouldThrowOnError)throw a;if($e(a))return{data:null,error:a};throw a}}async listV2(t,e){var r=this;try{const n=re({},t);return{data:await mr(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},e),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if($e(n))return{data:null,error:n};throw n}}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const e=[];return t.width&&e.push(`width=${t.width}`),t.height&&e.push(`height=${t.height}`),t.resize&&e.push(`resize=${t.resize}`),t.format&&e.push(`format=${t.format}`),t.quality&&e.push(`quality=${t.quality}`),e.join("&")}};const w8="2.88.0",k8={"X-Client-Info":`storage-js/${w8}`};var _I=class{constructor(t,e={},r,n){this.shouldThrowOnError=!1;const a=new URL(t);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(a.hostname)&&!a.hostname.includes("storage.supabase.")&&(a.hostname=a.hostname.replace("supabase.","storage.supabase.")),this.url=a.href.replace(/\/$/,""),this.headers=re(re({},k8),e),this.fetch=Lg(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(t){var e=this;try{const r=e.listBucketOptionsToQueryString(t);return{data:await dl(e.fetch,`${e.url}/bucket${r}`,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}async getBucket(t){var e=this;try{return{data:await dl(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}async createBucket(t,e={public:!1}){var r=this;try{return{data:await mr(r.fetch,`${r.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if($e(n))return{data:null,error:n};throw n}}async updateBucket(t,e){var r=this;try{return{data:await Dm(r.fetch,`${r.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if($e(n))return{data:null,error:n};throw n}}async emptyBucket(t){var e=this;try{return{data:await mr(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}async deleteBucket(t){var e=this;try{return{data:await Dg(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},SI=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=re(re({},k8),e),this.fetch=Lg(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(t){var e=this;try{return{data:await mr(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}async listBuckets(t){var e=this;try{const r=new URLSearchParams;(t==null?void 0:t.limit)!==void 0&&r.set("limit",t.limit.toString()),(t==null?void 0:t.offset)!==void 0&&r.set("offset",t.offset.toString()),t!=null&&t.sortColumn&&r.set("sortColumn",t.sortColumn),t!=null&&t.sortOrder&&r.set("sortOrder",t.sortOrder),t!=null&&t.search&&r.set("search",t.search);const n=r.toString(),a=n?`${e.url}/bucket?${n}`:`${e.url}/bucket`;return{data:await dl(e.fetch,a,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}async deleteBucket(t){var e=this;try{return{data:await Dg(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if($e(r))return{data:null,error:r};throw r}}from(t){var e=this;if(!mI(t))throw new Rd("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new uI({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(a,i){const o=a[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(a,l),error:null}}catch(c){if(n)throw c;return{data:null,error:c}}}}})}};const $g={"X-Client-Info":`storage-js/${w8}`,"Content-Type":"application/json"};var j8=class extends Error{constructor(t){super(t),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function Dt(t){return typeof t=="object"&&t!==null&&"__isStorageVectorsError"in t}var Fh=class extends j8{constructor(t,e,r){super(t),this.name="StorageVectorsApiError",this.status=e,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},CI=class extends j8{constructor(t,e){super(t),this.name="StorageVectorsUnknownError",this.originalError=e}};const Fg=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),EI=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},By=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),TI=async(t,e,r)=>{if(t&&typeof t=="object"&&"status"in t&&"ok"in t&&typeof t.status=="number"&&!(r!=null&&r.noResolveJson)){const n=t.status||500,a=t;if(typeof a.json=="function")a.json().then(i=>{const o=(i==null?void 0:i.statusCode)||(i==null?void 0:i.code)||n+"";e(new Fh(By(i),n,o))}).catch(()=>{const i=n+"";e(new Fh(a.statusText||`HTTP ${n} error`,n,i))});else{const i=n+"";e(new Fh(a.statusText||`HTTP ${n} error`,n,i))}}else e(new CI(By(t),t))},RI=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return n?(EI(n)?(a.headers=re({"Content-Type":"application/json"},e==null?void 0:e.headers),a.body=JSON.stringify(n)):a.body=n,re(re({},a),r)):a};async function AI(t,e,r,n,a,i){return new Promise((o,l)=>{t(r,RI(e,n,a,i)).then(c=>{if(!c.ok)throw c;if(n!=null&&n.noResolveJson)return c;const u=c.headers.get("content-type");return!u||!u.includes("application/json")?{}:c.json()}).then(c=>o(c)).catch(c=>TI(c,l,n))})}async function $t(t,e,r,n,a){return AI(t,"POST",e,n,a,r)}var PI=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=re(re({},$g),e),this.fetch=Fg(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async getIndex(t,e){var r=this;try{return{data:await $t(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers}),error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(Dt(n))return{data:null,error:n};throw n}}async listIndexes(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async deleteIndex(t,e){var r=this;try{return{data:await $t(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:r.headers})||{},error:null}}catch(n){if(r.shouldThrowOnError)throw n;if(Dt(n))return{data:null,error:n};throw n}}},OI=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=re(re({},$g),e),this.fetch=Fg(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(t){var e=this;try{if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await $t(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async getVectors(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async listVectors(t){var e=this;try{if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return{data:await $t(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async queryVectors(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async deleteVectors(t){var e=this;try{if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await $t(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}},II=class{constructor(t,e={},r){this.shouldThrowOnError=!1,this.url=t.replace(/\/$/,""),this.headers=re(re({},$g),e),this.fetch=Fg(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async getBucket(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async listBuckets(t={}){var e=this;try{return{data:await $t(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}),error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}async deleteBucket(t){var e=this;try{return{data:await $t(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{},error:null}}catch(r){if(e.shouldThrowOnError)throw r;if(Dt(r))return{data:null,error:r};throw r}}},MI=class extends II{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new LI(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,r=this;return e().call(r,t)}async getBucket(t){var e=()=>super.getBucket,r=this;return e().call(r,t)}async listBuckets(t={}){var e=()=>super.listBuckets,r=this;return e().call(r,t)}async deleteBucket(t){var e=()=>super.deleteBucket,r=this;return e().call(r,t)}},LI=class extends PI{constructor(t,e,r,n){super(t,e,n),this.vectorBucketName=r}async createIndex(t){var e=()=>super.createIndex,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,r=this;return e().call(r,r.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,r=this;return e().call(r,r.vectorBucketName,t)}index(t){return new DI(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},DI=class extends OI{constructor(t,e,r,n,a){super(t,e,a),this.vectorBucketName=r,this.indexName=n}async putVectors(t){var e=()=>super.putVectors,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(t){var e=()=>super.getVectors,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,r=this;return e().call(r,re(re({},t),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},$I=class extends _I{constructor(t,e={},r,n){super(t,e,r,n)}from(t){return new NI(this.url,this.headers,t,this.fetch)}get vectors(){return new MI(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new SI(this.url+"/iceberg",this.headers,this.fetch)}};const N8="2.88.0",Pa=30*1e3,$m=3,Bh=$m*Pa,FI="http://localhost:9999",BI="supabase.auth.token",UI={"X-Client-Info":`gotrue-js/${N8}`},Fm="X-Supabase-Api-Version",_8={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},WI=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,zI=10*60*1e3;class hl extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function Q(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class HI extends hl{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function VI(t){return Q(t)&&t.name==="AuthApiError"}class Rs extends hl{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class gn extends hl{constructor(e,r,n,a){super(e,n,a),this.name=r,this.status=n}}class Ot extends gn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function qI(t){return Q(t)&&t.name==="AuthSessionMissingError"}class ka extends gn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class bc extends gn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class wc extends gn{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function GI(t){return Q(t)&&t.name==="AuthImplicitGrantRedirectError"}class Uy extends gn{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class KI extends gn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Bm extends gn{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function Uh(t){return Q(t)&&t.name==="AuthRetryableFetchError"}class Wy extends gn{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Um extends gn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),zy=` 	
\r=`.split(""),YI=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<zy.length;e+=1)t[zy[e].charCodeAt(0)]=-2;for(let e=0;e<Ou.length;e+=1)t[Ou[e].charCodeAt(0)]=e;return t})();function Hy(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(Ou[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(Ou[n]),e.queuedBits-=6}}function S8(t,e,r){const n=YI[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Vy(t){const e=[],r=o=>{e.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},i=o=>{XI(o,n,r)};for(let o=0;o<t.length;o+=1)S8(t.charCodeAt(o),a,i);return e.join("")}function JI(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function QI(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const a=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|a)+65536,r+=1}JI(n,e)}}function XI(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function ai(t){const e=[],r={queue:0,queuedBits:0},n=a=>{e.push(a)};for(let a=0;a<t.length;a+=1)S8(t.charCodeAt(a),r,n);return new Uint8Array(e)}function ZI(t){const e=[];return QI(t,r=>e.push(r)),new Uint8Array(e)}function Ms(t){const e=[],r={queue:0,queuedBits:0},n=a=>{e.push(a)};return t.forEach(a=>Hy(a,r,n)),Hy(null,r,n),e.join("")}function eM(t){return Math.round(Date.now()/1e3)+t}function tM(){return Symbol("auth-callback")}const ot=()=>typeof window<"u"&&typeof document<"u",js={tested:!1,writable:!1},C8=()=>{if(!ot())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(js.tested)return js.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),js.tested=!0,js.writable=!0}catch{js.tested=!0,js.writable=!1}return js.writable};function rM(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((a,i)=>{e[i]=a})}catch{}return r.searchParams.forEach((n,a)=>{e[a]=n}),e}const E8=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),nM=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Oa=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},Ns=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},it=async(t,e)=>{await t.removeItem(e)};class Ad{constructor(){this.promise=new Ad.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}Ad.promiseConstructor=Promise;function Wh(t){const e=t.split(".");if(e.length!==3)throw new Um("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!WI.test(e[n]))throw new Um("JWT not in base64url format");return{header:JSON.parse(Vy(e[0])),payload:JSON.parse(Vy(e[1])),signature:ai(e[2]),raw:{header:e[0],payload:e[1]}}}async function sM(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function aM(t,e){return new Promise((n,a)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){n(o);return}}catch(o){if(!e(i,o)){a(o);return}}})()})}function iM(t){return("0"+t.toString(16)).substr(-2)}function oM(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let a="";for(let i=0;i<56;i++)a+=r.charAt(Math.floor(Math.random()*n));return a}return crypto.getRandomValues(e),Array.from(e,iM).join("")}async function lM(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),a=new Uint8Array(n);return Array.from(a).map(i=>String.fromCharCode(i)).join("")}async function cM(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const r=await lM(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ja(t,e,r=!1){const n=oM();let a=n;r&&(a+="/PASSWORD_RECOVERY"),await Oa(t,`${e}-code-verifier`,a);const i=await cM(n);return[i,n===i?"plain":"s256"]}const uM=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function dM(t){const e=t.headers.get(Fm);if(!e||!e.match(uM))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function hM(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function fM(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const mM=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Na(t){if(!mM.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function zh(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function pM(t,e){return new Proxy(t,{get:(r,n,a)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const i=n.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,a)}return!e.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(r,n,a)}})}function qy(t){return JSON.parse(JSON.stringify(t))}const Cs=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),gM=[502,503,504];async function Gy(t){var e;if(!nM(t))throw new Bm(Cs(t),0);if(gM.includes(t.status))throw new Bm(Cs(t),t.status);let r;try{r=await t.json()}catch(i){throw new Rs(Cs(i),i)}let n;const a=dM(t);if(a&&a.getTime()>=_8["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new Wy(Cs(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new Ot}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Wy(Cs(r),t.status,r.weak_password.reasons);throw new HI(Cs(r),t.status||500,n)}const xM=(t,e,r,n)=>{const a={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),a.body=JSON.stringify(n),Object.assign(Object.assign({},a),r))};async function te(t,e,r,n){var a;const i=Object.assign({},n==null?void 0:n.headers);i[Fm]||(i[Fm]=_8["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(a=n==null?void 0:n.query)!==null&&a!==void 0?a:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await yM(t,e,r+l,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(c):{data:Object.assign({},c),error:null}}async function yM(t,e,r,n,a,i){const o=xM(e,n,a,i);let l;try{l=await t(r,Object.assign({},o))}catch(c){throw console.error(c),new Bm(Cs(c),0)}if(l.ok||await Gy(l),n!=null&&n.noResolveJson)return l;try{return await l.json()}catch(c){await Gy(c)}}function hr(t){var e;let r=null;wM(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=eM(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function Ky(t){const e=hr(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Ln(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function vM(t){return{data:t,error:null}}function bM(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i}=t,o=Wi(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:r,hashed_token:n,redirect_to:a,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function Yy(t){return t}function wM(t){return t.access_token&&t.refresh_token&&t.expires_in}const Hh=["global","local","others"];class kM{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=E8(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(e,r=Hh[0]){if(Hh.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Hh.join(", ")}`);try{return await te(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await te(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Ln})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=Wi(e,["options"]),a=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(a.new_email=n==null?void 0:n.newEmail,delete a.newEmail),await te(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:bM,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(Q(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await te(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Ln})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,a,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await te(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(a=e==null?void 0:e.perPage)===null||a===void 0?void 0:a.toString())!==null&&i!==void 0?i:""},xform:Yy});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(w=>{const g=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(w.split(";")[1].split("=")[1]);u[`${y}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(Q(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Na(e);try{return await te(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Ln})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Na(e);try{return await te(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:Ln})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){Na(e);try{return await te(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:Ln})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Na(e.userId);try{const{data:r,error:n}=await te(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:r,error:n}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Na(e.userId),Na(e.id);try{return{data:await te(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _listOAuthClients(e){var r,n,a,i,o,l,c;try{const u={nextPage:null,lastPage:0,total:0},d=await te(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(a=e==null?void 0:e.perPage)===null||a===void 0?void 0:a.toString())!==null&&i!==void 0?i:""},xform:Yy});if(d.error)throw d.error;const h=await d.json(),f=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,m=(c=(l=d.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return m.length>0&&(m.forEach(w=>{const g=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(w.split(";")[1].split("=")[1]);u[`${y}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},h),u),error:null}}catch(u){if(Q(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(e){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _getOAuthClient(e){try{return await te(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _updateOAuthClient(e,r){try{return await te(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await te(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(e){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}}function Jy(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}const _a={debug:!!(globalThis&&C8()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class T8 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class jM extends T8{}async function NM(t,e,r){_a.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),_a.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){_a.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,a.name);try{return await r()}finally{_a.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,a.name)}}else{if(e===0)throw _a.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new jM(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(_a.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}function _M(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function R8(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function SM(t){return parseInt(t,16)}function CM(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,n=>n.toString(16).padStart(2,"0")).join("")}function EM(t){var e;const{chainId:r,domain:n,expirationTime:a,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:u,scheme:d,uri:h,version:f}=t;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const m=R8(t.address),w=d?`${d}://${n}`:n,g=t.statement?`${t.statement}
`:"",y=`${w} wants you to sign in with your Ethereum account:
${m}

${g}`;let x=`URI: ${h}
Version: ${f}
Chain ID: ${r}${o?`
Nonce: ${o}`:""}
Issued At: ${i.toISOString()}`;if(a&&(x+=`
Expiration Time: ${a.toISOString()}`),l&&(x+=`
Not Before: ${l.toISOString()}`),c&&(x+=`
Request ID: ${c}`),u){let v=`
Resources:`;for(const b of u){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);v+=`
- ${b}`}x+=v}return`${y}
${x}`}class Ye extends Error{constructor({message:e,code:r,cause:n,name:a}){var i;super(e,{cause:n}),this.__isWebAuthnError=!0,this.name=(i=a??(n instanceof Error?n.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=r}}class Iu extends Ye{constructor(e,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:e}),this.name="WebAuthnUnknownError",this.originalError=r}}function TM({error:t,options:e}){var r,n,a;const{publicKey:i}=e;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Ye({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((r=i.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Ye({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((n=i.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Ye({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((a=i.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new Ye({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new Ye({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new Ye({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new Ye({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Ye({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const o=window.location.hostname;if(A8(o)){if(i.rp.id!==o)return new Ye({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Ye({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Ye({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new Ye({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Ye({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function RM({error:t,options:e}){const{publicKey:r}=e;if(!r)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new Ye({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new Ye({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const n=window.location.hostname;if(A8(n)){if(r.rpId!==n)return new Ye({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new Ye({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new Ye({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Ye({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class AM{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const PM=new AM;function OM(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:r,excludeCredentials:n}=t,a=Wi(t,["challenge","user","excludeCredentials"]),i=ai(e).buffer,o=Object.assign(Object.assign({},r),{id:ai(r.id).buffer}),l=Object.assign(Object.assign({},a),{challenge:i,user:o});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let c=0;c<n.length;c++){const u=n[c];l.excludeCredentials[c]=Object.assign(Object.assign({},u),{id:ai(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return l}function IM(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:r}=t,n=Wi(t,["challenge","allowCredentials"]),a=ai(e).buffer,i=Object.assign(Object.assign({},n),{challenge:a});if(r&&r.length>0){i.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const l=r[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:ai(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function MM(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t;return{id:t.id,rawId:t.id,response:{attestationObject:Ms(new Uint8Array(t.response.attestationObject)),clientDataJSON:Ms(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function LM(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const r=t,n=t.getClientExtensionResults(),a=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:Ms(new Uint8Array(a.authenticatorData)),clientDataJSON:Ms(new Uint8Array(a.clientDataJSON)),signature:Ms(new Uint8Array(a.signature)),userHandle:a.userHandle?Ms(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(e=r.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function A8(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function Qy(){var t,e;return!!(ot()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.get)=="function")}async function DM(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Iu("Browser returned unexpected credential type",e)}:{data:null,error:new Iu("Empty credential response",e)}}catch(e){return{data:null,error:TM({error:e,options:t})}}}async function $M(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new Iu("Browser returned unexpected credential type",e)}:{data:null,error:new Iu("Empty credential response",e)}}catch(e){return{data:null,error:RM({error:e,options:t})}}}const FM={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},BM={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Mu(...t){const e=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),r=a=>a instanceof ArrayBuffer||ArrayBuffer.isView(a),n={};for(const a of t)if(a)for(const i in a){const o=a[i];if(o!==void 0)if(Array.isArray(o))n[i]=o;else if(r(o))n[i]=o;else if(e(o)){const l=n[i];e(l)?n[i]=Mu(l,o):n[i]=Mu(o)}else n[i]=o}return n}function UM(t,e){return Mu(FM,t,e||{})}function WM(t,e){return Mu(BM,t,e||{})}class zM{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:r,friendlyName:n,signal:a},i){try{const{data:o,error:l}=await this.client.mfa.challenge({factorId:e,webauthn:r});if(!o)return{data:null,error:l};const c=a??PM.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${n}`),u.displayName||(u.displayName=u.name)}switch(o.webauthn.type){case"create":{const u=UM(o.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:d,error:h}=await DM({publicKey:u,signal:c});return d?{data:{factorId:e,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=WM(o.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:d,error:h}=await $M(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:e,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(o){return Q(o)?{data:null,error:o}:{data:null,error:new Rs("Unexpected error in challenge",o)}}}async _verify({challengeId:e,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:e,webauthn:n})}async _authenticate({factorId:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},i){if(!r)return{data:null,error:new hl("rpId is required for WebAuthn authentication")};try{if(!Qy())return{data:null,error:new Rs("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:e,webauthn:{rpId:r,rpOrigins:n},signal:a},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:c.type,rpId:r,rpOrigins:n,credential_response:c.credential_response}})}catch(o){return Q(o)?{data:null,error:o}:{data:null,error:new Rs("Unexpected error in authenticate",o)}}}async _register({friendlyName:e,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:a}={}},i){if(!r)return{data:null,error:new hl("rpId is required for WebAuthn registration")};try{if(!Qy())return{data:null,error:new Rs("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(d=>{var h;return(h=d.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===e&&f.status!=="unverified")}).then(d=>d?this.client.mfa.unenroll({factorId:d==null?void 0:d.id}):void 0),{data:null,error:l};const{data:c,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:a},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:r,rpOrigins:n,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:u}}catch(o){return Q(o)?{data:null,error:o}:{data:null,error:new Rs("Unexpected error in register",o)}}}}_M();const HM={url:FI,storageKey:BI,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:UI,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function Xy(t,e,r){return await r()}const Sa={};class fl{get jwks(){var e,r;return(r=(e=Sa[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Sa[this.storageKey]=Object.assign(Object.assign({},Sa[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Sa[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Sa[this.storageKey]=Object.assign(Object.assign({},Sa[this.storageKey]),{cachedAt:e})}constructor(e){var r,n,a;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},HM),e);if(this.storageKey=i.storageKey,this.instanceID=(r=fl.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,fl.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&ot()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new kM({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=E8(i.fetch),this.lock=i.lock||Xy,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,i.lock?this.lock=i.lock:this.persistSession&&ot()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=NM:this.lock=Xy,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new zM(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:C8()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Jy(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=Jy(this.memoryStorage)),ot()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(a=this.broadcastChannel)===null||a===void 0||a.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${N8}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{let r={},n="none";if(ot()&&(r=rM(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),ot()&&this.detectSessionInUrl&&n!=="none"){const{data:a,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),GI(i)){const c=(e=i.details)===null||e===void 0?void 0:e.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:l}=a;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return Q(r)?this._returnResult({error:r}):this._returnResult({error:new Rs("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,a;try{const i=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(a=e==null?void 0:e.options)===null||a===void 0?void 0:a.captchaToken}},xform:hr}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(e){var r,n,a;try{let i;if("email"in e){const{email:d,password:h,options:f}=e;let m=null,w=null;this.flowType==="pkce"&&([m,w]=await ja(this.storage,this.storageKey)),i=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:d,password:h,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:m,code_challenge_method:w},xform:hr})}else if("phone"in e){const{phone:d,password:h,options:f}=e;i=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:h,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},channel:(a=f==null?void 0:f.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:hr})}else throw new bc("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await it(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(i){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(e){try{let r;if("email"in e){const{email:i,password:o,options:l}=e;r=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Ky})}else if("phone"in e){const{phone:i,password:o,options:l}=e;r=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Ky})}else throw new bc("You must provide either an email or phone number and a password");const{data:n,error:a}=r;if(a)return this._returnResult({data:{user:null,session:null},error:a});if(!n||!n.session||!n.user){const i=new ka;return this._returnResult({data:{user:null,session:null},error:i})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:a})}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(e){var r,n,a,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(a=e.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;switch(r){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(e){var r,n,a,i,o,l,c,u,d,h,f;let m,w;if("message"in e)m=e.message,w=e.signature;else{const{chain:g,wallet:y,statement:x,options:v}=e;let b;if(ot())if(typeof y=="object")b=y;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")b=R.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=y}const k=new URL((r=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href),j=await b.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!j||j.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const N=R8(j[0]);let _=(n=v==null?void 0:v.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!_){const R=await b.request({method:"eth_chainId"});_=SM(R)}const E={domain:k.host,address:N,statement:x,uri:k.href,version:"1",chainId:_,nonce:(a=v==null?void 0:v.signInWithEthereum)===null||a===void 0?void 0:a.nonce,issuedAt:(o=(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(d=v==null?void 0:v.signInWithEthereum)===null||d===void 0?void 0:d.resources};m=EM(E),w=await b.request({method:"personal_sign",params:[CM(m),N]})}try{const{data:g,error:y}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:m,signature:w},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:hr});if(y)throw y;if(!g||!g.session||!g.user){const x=new ka;return this._returnResult({data:{user:null,session:null},error:x})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:y})}catch(g){if(Q(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(e){var r,n,a,i,o,l,c,u,d,h,f,m;let w,g;if("message"in e)w=e.message,g=e.signature;else{const{chain:y,wallet:x,statement:v,options:b}=e;let k;if(ot())if(typeof x=="object")k=x;else{const N=window;if("solana"in N&&typeof N.solana=="object"&&("signIn"in N.solana&&typeof N.solana.signIn=="function"||"signMessage"in N.solana&&typeof N.solana.signMessage=="function"))k=N.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=x}const j=new URL((r=b==null?void 0:b.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in k&&k.signIn){const N=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:j.host,uri:j.href}),v?{statement:v}:null));let _;if(Array.isArray(N)&&N[0]&&typeof N[0]=="object")_=N[0];else if(N&&typeof N=="object"&&"signedMessage"in N&&"signature"in N)_=N;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)w=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),g=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${j.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${j.href}`,`Issued At: ${(a=(n=b==null?void 0:b.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((i=b==null?void 0:b.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(`
`);const N=await k.signMessage(new TextEncoder().encode(w),"utf8");if(!N||!(N instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=N}}try{const{data:y,error:x}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:Ms(g)},!((f=e.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(m=e.options)===null||m===void 0?void 0:m.captchaToken}}:null),xform:hr});if(x)throw x;if(!y||!y.session||!y.user){const v=new ka;return this._returnResult({data:{user:null,session:null},error:v})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:x})}catch(y){if(Q(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(e){const r=await Ns(this.storage,`${this.storageKey}-code-verifier`),[n,a]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new KI;const{data:i,error:o}=await te(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:hr});if(await it(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new ka;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:a??null}),error:o})}catch(i){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(e){try{const{options:r,provider:n,token:a,access_token:i,nonce:o}=e,l=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:a,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:hr}),{data:c,error:u}=l;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!c||!c.session||!c.user){const d=new ka;return this._returnResult({data:{user:null,session:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:u})}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(e){var r,n,a,i,o;try{if("email"in e){const{email:l,options:c}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await ja(this.storage,this.storageKey));const{error:h}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(r=c==null?void 0:c.data)!==null&&r!==void 0?r:{},create_user:(n=c==null?void 0:c.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in e){const{phone:l,options:c}=e,{data:u,error:d}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(a=c==null?void 0:c.data)!==null&&a!==void 0?a:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d})}throw new bc("You must provide either an email or phone number.")}catch(l){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(e){var r,n;try{let a,i;"options"in e&&(a=(r=e.options)===null||r===void 0?void 0:r.redirectTo,i=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:l}=await te(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:a,xform:hr});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,u=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:u,session:c},error:null})}catch(a){if(Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithSSO(e){var r,n,a,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await ja(this.storage,this.storageKey));const u=await te(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((a=e==null?void 0:e.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:vM});return!((i=u.data)===null||i===void 0)&&i.url&&ot()&&!(!((o=e.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(l){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new Ot;const{error:a}=await te(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:a})})}catch(e){if(Q(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:a,options:i}=e,{error:o}=await te(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in e){const{phone:n,type:a,options:i}=e,{data:o,error:l}=await te(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:a,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new bc("You must provide either an email or phone number and a type")}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await Ns(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<Bh:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const o=await Ns(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=zh()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};e.user=pM(e.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:a,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:a},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const r=await this._acquireLock(-1,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(e){try{return e?await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Ln}):await this._useSession(async r=>{var n,a,i;const{data:o,error:l}=r;if(l)throw l;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Ot}:await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(a=o.session)===null||a===void 0?void 0:a.access_token)!==null&&i!==void 0?i:void 0,xform:Ln})})}catch(r){if(Q(r))return qI(r)&&(await this._removeSession(),await it(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:a,error:i}=n;if(i)throw i;if(!a.session)throw new Ot;const o=a.session;let l=null,c=null;this.flowType==="pkce"&&e.email!=null&&([l,c]=await ja(this.storage,this.storageKey));const{data:u,error:d}=await te(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Ln});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Ot;const r=Date.now()/1e3;let n=r,a=!0,i=null;const{payload:o}=Wh(e.access_token);if(o.exp&&(n=o.exp,a=n<=r),a){const{data:l,error:c}=await this._callRefreshToken(e.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(e.access_token);if(c)throw c;i={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(r){if(Q(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:o,error:l}=r;if(l)throw l;e=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new Ot;const{data:a,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):a?this._returnResult({data:{user:a.user,session:a},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(e,r){try{if(!ot())throw new wc("No browser detected.");if(e.error||e.error_description||e.error_code)throw new wc(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new Uy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new wc("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Uy("No code detected.");const{data:v,error:b}=await this._exchangeCodeForSession(e.code);if(b)throw b;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:a,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:u}=e;if(!i||!l||!o||!u)throw new wc("No session defined in URL");const d=Math.round(Date.now()/1e3),h=parseInt(l);let f=d+h;c&&(f=parseInt(c));const m=f-d;m*1e3<=Pa&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${m}s, should have been closer to ${h}s`);const w=f-h;d-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,f,d):d-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,f,d);const{data:g,error:y}=await this._getUser(i);if(y)throw y;const x={provider_token:n,provider_refresh_token:a,access_token:i,expires_in:h,expires_at:f,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:x,redirectType:e.type},error:null})}catch(n){if(Q(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await Ns(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return this._returnResult({error:i});const o=(n=a.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:l}=await this.admin.signOut(o,e);if(l&&!(VI(l)&&(l.status===404||l.status===401||l.status===403)))return this._returnResult({error:l})}return e!=="others"&&(await this._removeSession(),await it(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const r=tM(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,a;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((a=this.stateChangeEmitters.get(e))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,r={}){let n=null,a=null;this.flowType==="pkce"&&([n,a]=await ja(this.storage,this.storageKey,!0));try{return await te(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:a,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var r;try{const{data:n,error:a}=await this._useSession(async i=>{var o,l,c,u,d;const{data:h,error:f}=i;if(f)throw f;const m=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=e.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await te(this.fetch,"GET",m,{headers:this.headers,jwt:(d=(u=h.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(a)throw a;return ot()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:e.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(Q(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async r=>{var n;try{const{error:a,data:{session:i}}=r;if(a)throw a;const{options:o,provider:l,token:c,access_token:u,nonce:d}=e,h=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=i==null?void 0:i.access_token)!==null&&n!==void 0?n:void 0,body:{provider:l,id_token:c,access_token:u,nonce:d,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:hr}),{data:f,error:m}=h;return m?this._returnResult({data:{user:null,session:null},error:m}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new ka}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:m}))}catch(a){if(await it(this.storage,`${this.storageKey}-code-verifier`),Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}})}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)throw o;return await te(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(a=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&a!==void 0?a:void 0})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await aM(async a=>(a>0&&await sM(200*Math.pow(2,a-1)),this._debug(r,"refreshing attempt",a),await te(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:hr})),(a,i)=>{const o=200*Math.pow(2,a);return i&&Uh(i)&&Date.now()+o-n<Pa})}catch(n){if(this._debug(r,"error",n),Q(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),ot()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const a=await Ns(this.storage,this.storageKey);if(a&&this.userStorage){let o=await Ns(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:a.user},await Oa(this.userStorage,this.storageKey+"-user",o)),a.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:zh()}else if(a&&!a.user&&!a.user){const o=await Ns(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(a.user=o.user,await it(this.storage,this.storageKey+"-user"),await Oa(this.storage,this.storageKey,a)):a.user=zh()}if(this._debug(n,"session from storage",a),!this._isValidSession(a)){this._debug(n,"session is not valid"),a!==null&&await this._removeSession();return}const i=((r=a.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<Bh;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${Bh}s`),i){if(this.autoRefreshToken&&a.refresh_token){const{error:o}=await this._callRefreshToken(a.refresh_token);o&&(console.error(o),Uh(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(a.access_token);!l&&(o!=null&&o.user)?(a.user=o.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(n,"error",a),console.error(a);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new Ot;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new Ad;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new Ot;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(a,"error",i),Q(i)){const o={data:null,error:i};return Uh(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(e,r,n=!0){const a=`#_notifyAllSubscribers(${e})`;this._debug(a,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,r)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(a,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await it(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Oa(this.userStorage,this.storageKey+"-user",{user:r.user});const a=Object.assign({},r);delete a.user;const i=qy(a);await Oa(this.storage,this.storageKey,i)}else{const a=qy(r);await Oa(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await it(this.storage,this.storageKey),await it(this.storage,this.storageKey+"-code-verifier"),await it(this.storage,this.storageKey+"-user"),this.userStorage&&await it(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&ot()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Pa);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((n.expires_at*1e3-e)/Pa);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${Pa}ms, refresh threshold is ${$m} ticks`),a<=$m&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof T8)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!ot()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,n){const a=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&a.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&a.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await ja(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});a.push(l.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);a.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&a.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${a.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;return i?this._returnResult({data:null,error:i}):await te(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,a;const{data:i,error:o}=r;if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:c,error:u}=await te(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(e.factorType==="totp"&&c.type==="totp"&&(!((a=c==null?void 0:c.totp)===null||a===void 0)&&a.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?MM(e.webauthn.credential_response):LM(e.webauthn.credential_response)})}:{code:e.code}),{data:l,error:c}=await te(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:a,error:i}=r;if(i)return this._returnResult({data:null,error:i});const o=await te(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:OM(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:IM(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){var e;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const a={all:[],phone:[],totp:[],webauthn:[]};for(const i of(e=r==null?void 0:r.factors)!==null&&e!==void 0?e:[])a.all.push(i),i.status==="verified"&&a[i.factor_type].push(i);return{data:a,error:null}}async _getAuthenticatorAssuranceLevel(){var e,r;const{data:{session:n},error:a}=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=Wh(n.access_token);let o=null;i.aal&&(o=i.aal);let l=o;((r=(e=n.user.factors)===null||e===void 0?void 0:e.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const u=i.amr||[];return{data:{currentLevel:o,nextLevel:l,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async r=>{const{data:{session:n},error:a}=r;return a?this._returnResult({data:null,error:a}):n?await te(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Ot})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:a},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!a)return this._returnResult({data:null,error:new Ot});const o=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&ot()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,r){try{return await this._useSession(async n=>{const{data:{session:a},error:i}=n;if(i)return this._returnResult({data:null,error:i});if(!a)return this._returnResult({data:null,error:new Ot});const o=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:a.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&ot()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;return n?this._returnResult({data:null,error:n}):r?await te(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new Ot})})}catch(e){if(Q(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async r=>{const{data:{session:n},error:a}=r;return a?this._returnResult({data:null,error:a}):n?(await te(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Ot})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(l=>l.kid===e);if(n)return n;const a=Date.now();if(n=this.jwks.keys.find(l=>l.kid===e),n&&this.jwks_cached_at+zI>a)return n;const{data:i,error:o}=await te(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=a,n=i.keys.find(l=>l.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:m,error:w}=await this.getSession();if(w||!m.session)return this._returnResult({data:null,error:w});n=m.session.access_token}const{header:a,payload:i,signature:o,raw:{header:l,payload:c}}=Wh(n);r!=null&&r.allowExpired||hM(i.exp);const u=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:m}=await this.getUser(n);if(m)throw m;return{data:{claims:i,header:a,signature:o},error:null}}const d=fM(a.alg),h=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,h,o,ZI(`${l}.${c}`)))throw new Um("Invalid JWT signature");return{data:{claims:i,header:a,signature:o},error:null}}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}}fl.nextInstanceID={};const VM=fl,qM="2.88.0";let yo="";typeof Deno<"u"?yo="deno":typeof document<"u"?yo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?yo="react-native":yo="node";const GM={"X-Client-Info":`supabase-js-${yo}/${qM}`},KM={headers:GM},YM={schema:"public"},JM={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},QM={};function ml(t){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(t)}function XM(t,e){if(ml(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ml(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ZM(t){var e=XM(t,"string");return ml(e)=="symbol"?e:e+""}function eL(t,e,r){return(e=ZM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zy(Object(r),!0).forEach(function(n){eL(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}const tL=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),rL=()=>Headers,nL=(t,e,r)=>{const n=tL(r),a=rL();return async(i,o)=>{var l;const c=(l=await e())!==null&&l!==void 0?l:t;let u=new a(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${c}`),n(i,He(He({},o),{},{headers:u}))}};function sL(t){return t.endsWith("/")?t:t+"/"}function aL(t,e){var r,n;const{db:a,auth:i,realtime:o,global:l}=t,{db:c,auth:u,realtime:d,global:h}=e,f={db:He(He({},c),a),auth:He(He({},u),i),realtime:He(He({},d),o),storage:{},global:He(He(He({},h),l),{},{headers:He(He({},(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{}),(n=l==null?void 0:l.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return t.accessToken?f.accessToken=t.accessToken:delete f.accessToken,f}function iL(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(sL(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var oL=class extends VM{constructor(t){super(t)}},lL=class{constructor(t,e,r){var n,a;this.supabaseUrl=t,this.supabaseKey=e;const i=iL(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:YM,realtime:QM,auth:He(He({},JM),{},{storageKey:o}),global:KM},c=aL(r??{},l);if(this.storageKey=(n=c.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(a=c.global.headers)!==null&&a!==void 0?a:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(d,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=c.auth)!==null&&u!==void 0?u:{},this.headers,c.global.fetch)}this.fetch=nL(e,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(He({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&this.accessToken().then(d=>this.realtime.setAuth(d)).catch(d=>console.warn("Failed to set initial Realtime auth token:",d)),this.rest=new UO(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new $I(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new LO(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,r)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,r;if(t.accessToken)return await t.accessToken();const{data:n}=await t.auth.getSession();return(e=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:a,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:u},d,h){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new oL({url:this.authUrl.href,headers:He(He({},f),d),storageKey:i,autoRefreshToken:t,persistSession:e,detectSessionInUrl:r,storage:n,userStorage:a,flowType:o,lock:l,debug:c,throwOnError:u,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(m=>m.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new sI(this.realtimeUrl.href,He(He({},t),{},{params:He(He({},{apikey:this.supabaseKey}),t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e==null?void 0:e.access_token)})}_handleTokenChanged(t,e,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const cL=(t,e,r)=>new lL(t,e,r);function uL(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}uL()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const dL="https://tdmqanqrfshtebljnfgs.supabase.co",hL="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRkbXFhbnFyZnNodGVibGpuZmdzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjgzOTY5MTcsImV4cCI6MjA4Mzk3MjkxN30.a8PWo5aftIUOc-v5TR5TKq8X0S-d66H0_MfcoEwgTb4",tt=cL(dL,hL,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),fL=()=>{const[t,e]=p.useState([]),[r,n]=p.useState(0),[a,i]=p.useState(!0);p.useEffect(()=>{(async()=>{const{data:d,error:h}=await tt.from("blog_posts").select("id, title, slug, excerpt, featured_image").eq("published",!0).order("published_at",{ascending:!1}).limit(6);h?console.error("Error fetching blog posts:",h):e(d||[]),i(!1)})()},[]);const o=()=>{n(u=>(u+1)%t.length)},l=()=>{n(u=>(u-1+t.length)%t.length)};if(a)return s.jsx("section",{className:"py-20 bg-background",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("div",{className:"text-center mb-12",children:s.jsx("div",{className:"h-8 w-64 bg-muted animate-pulse mx-auto rounded"})}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[1,2,3].map(u=>s.jsxs("div",{className:"bg-card rounded-lg overflow-hidden animate-pulse",children:[s.jsx("div",{className:"aspect-[4/3] bg-muted"}),s.jsxs("div",{className:"p-6 space-y-3",children:[s.jsx("div",{className:"h-6 bg-muted rounded w-3/4"}),s.jsx("div",{className:"h-4 bg-muted rounded w-full"})]})]},u))})]})});if(t.length===0)return null;const c=()=>{const u=[];for(let d=0;d<Math.min(3,t.length);d++)u.push(t[(r+d)%t.length]);return u};return s.jsx("section",{className:"py-20 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-12",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold text-foreground",children:"Latest News & Blogs"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:l,className:"w-12 h-12 flex items-center justify-center border border-border text-muted-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary transition-all duration-300","aria-label":"Previous posts",children:s.jsx(ad,{className:"w-5 h-5"})}),s.jsx("button",{onClick:o,className:"w-12 h-12 flex items-center justify-center border border-border text-muted-foreground hover:bg-primary hover:text-primary-foreground hover:border-primary transition-all duration-300","aria-label":"Next posts",children:s.jsx(Rl,{className:"w-5 h-5"})})]})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:c().map(u=>s.jsxs(Y,{to:`/blog/${u.slug}`,className:"group bg-card rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-all duration-300",children:[u.featured_image&&s.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:s.jsx("img",{src:u.featured_image,alt:u.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),s.jsxs("div",{className:"p-6",children:[s.jsx("h3",{className:"text-xl font-display font-semibold text-foreground mb-3 group-hover:text-primary transition-colors line-clamp-2",children:u.title}),u.excerpt&&s.jsx("p",{className:"text-muted-foreground text-sm mb-4 line-clamp-3",children:u.excerpt}),s.jsxs("span",{className:"inline-flex items-center gap-2 text-primary font-medium text-sm uppercase tracking-wider",children:["Read More",s.jsx(gu,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]})]},u.id))}),s.jsx("div",{className:"text-center mt-12",children:s.jsxs(Y,{to:"/blog",className:"inline-flex items-center gap-2 text-foreground hover:text-primary font-medium tracking-wider uppercase transition-colors",children:["View All Posts",s.jsx(gu,{className:"w-4 h-4"})]})})]})})};var Pd="Collapsible",[mL,P8]=Gt(Pd),[pL,Bg]=mL(Pd),O8=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:i,onOpenChange:o,...l}=t,[c,u]=Gr({prop:n,defaultProp:a??!1,onChange:o,caller:Pd});return s.jsx(pL,{scope:r,disabled:i,contentId:ns(),open:c,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),children:s.jsx(oe.div,{"data-state":Wg(c),"data-disabled":i?"":void 0,...l,ref:e})})});O8.displayName=Pd;var I8="CollapsibleTrigger",M8=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,a=Bg(I8,r);return s.jsx(oe.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Wg(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:e,onClick:W(t.onClick,a.onOpenToggle)})});M8.displayName=I8;var Ug="CollapsibleContent",L8=p.forwardRef((t,e)=>{const{forceMount:r,...n}=t,a=Bg(Ug,t.__scopeCollapsible);return s.jsx(ar,{present:r||a.open,children:({present:i})=>s.jsx(gL,{...n,ref:e,present:i})})});L8.displayName=Ug;var gL=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:a,...i}=t,o=Bg(Ug,r),[l,c]=p.useState(n),u=p.useRef(null),d=ve(e,u),h=p.useRef(0),f=h.current,m=p.useRef(0),w=m.current,g=o.open||l,y=p.useRef(g),x=p.useRef(void 0);return p.useEffect(()=>{const v=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(v)},[]),Vr(()=>{const v=u.current;if(v){x.current=x.current||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const b=v.getBoundingClientRect();h.current=b.height,m.current=b.width,y.current||(v.style.transitionDuration=x.current.transitionDuration,v.style.animationName=x.current.animationName),c(n)}},[o.open,n]),s.jsx(oe.div,{"data-state":Wg(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:g&&a})});function Wg(t){return t?"open":"closed"}var xL=O8,yL=M8,vL=L8,Rr="Accordion",bL=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[zg,wL,kL]=Cl(Rr),[Od,fB]=Gt(Rr,[kL,P8]),Hg=P8(),D8=P.forwardRef((t,e)=>{const{type:r,...n}=t,a=n,i=n;return s.jsx(zg.Provider,{scope:t.__scopeAccordion,children:r==="multiple"?s.jsx(SL,{...i,ref:e}):s.jsx(_L,{...a,ref:e})})});D8.displayName=Rr;var[$8,jL]=Od(Rr),[F8,NL]=Od(Rr,{collapsible:!1}),_L=P.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:i=!1,...o}=t,[l,c]=Gr({prop:r,defaultProp:n??"",onChange:a,caller:Rr});return s.jsx($8,{scope:t.__scopeAccordion,value:P.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:P.useCallback(()=>i&&c(""),[i,c]),children:s.jsx(F8,{scope:t.__scopeAccordion,collapsible:i,children:s.jsx(B8,{...o,ref:e})})})}),SL=P.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...i}=t,[o,l]=Gr({prop:r,defaultProp:n??[],onChange:a,caller:Rr}),c=P.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=P.useCallback(d=>l((h=[])=>h.filter(f=>f!==d)),[l]);return s.jsx($8,{scope:t.__scopeAccordion,value:o,onItemOpen:c,onItemClose:u,children:s.jsx(F8,{scope:t.__scopeAccordion,collapsible:!0,children:s.jsx(B8,{...i,ref:e})})})}),[CL,Id]=Od(Rr),B8=P.forwardRef((t,e)=>{const{__scopeAccordion:r,disabled:n,dir:a,orientation:i="vertical",...o}=t,l=P.useRef(null),c=ve(l,e),u=wL(r),h=jd(a)==="ltr",f=W(t.onKeyDown,m=>{var E;if(!bL.includes(m.key))return;const w=m.target,g=u().filter(R=>{var A;return!((A=R.ref.current)!=null&&A.disabled)}),y=g.findIndex(R=>R.ref.current===w),x=g.length;if(y===-1)return;m.preventDefault();let v=y;const b=0,k=x-1,j=()=>{v=y+1,v>k&&(v=b)},N=()=>{v=y-1,v<b&&(v=k)};switch(m.key){case"Home":v=b;break;case"End":v=k;break;case"ArrowRight":i==="horizontal"&&(h?j():N());break;case"ArrowDown":i==="vertical"&&j();break;case"ArrowLeft":i==="horizontal"&&(h?N():j());break;case"ArrowUp":i==="vertical"&&N();break}const _=v%x;(E=g[_].ref.current)==null||E.focus()});return s.jsx(CL,{scope:r,disabled:n,direction:a,orientation:i,children:s.jsx(zg.Slot,{scope:r,children:s.jsx(oe.div,{...o,"data-orientation":i,ref:c,onKeyDown:n?void 0:f})})})}),Lu="AccordionItem",[EL,Vg]=Od(Lu),U8=P.forwardRef((t,e)=>{const{__scopeAccordion:r,value:n,...a}=t,i=Id(Lu,r),o=jL(Lu,r),l=Hg(r),c=ns(),u=n&&o.value.includes(n)||!1,d=i.disabled||t.disabled;return s.jsx(EL,{scope:r,open:u,disabled:d,triggerId:c,children:s.jsx(xL,{"data-orientation":i.orientation,"data-state":G8(u),...l,...a,ref:e,disabled:d,open:u,onOpenChange:h=>{h?o.onItemOpen(n):o.onItemClose(n)}})})});U8.displayName=Lu;var W8="AccordionHeader",z8=P.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,a=Id(Rr,r),i=Vg(W8,r);return s.jsx(oe.h3,{"data-orientation":a.orientation,"data-state":G8(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:e})});z8.displayName=W8;var Wm="AccordionTrigger",H8=P.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,a=Id(Rr,r),i=Vg(Wm,r),o=NL(Wm,r),l=Hg(r);return s.jsx(zg.ItemSlot,{scope:r,children:s.jsx(yL,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...l,...n,ref:e})})});H8.displayName=Wm;var V8="AccordionContent",q8=P.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,a=Id(Rr,r),i=Vg(V8,r),o=Hg(r);return s.jsx(vL,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...o,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});q8.displayName=V8;function G8(t){return t?"open":"closed"}var TL=D8,RL=U8,AL=z8,K8=H8,Y8=q8;const PL=TL,J8=p.forwardRef(({className:t,...e},r)=>s.jsx(RL,{ref:r,className:ke("border-b",t),...e}));J8.displayName="AccordionItem";const Q8=p.forwardRef(({className:t,children:e,...r},n)=>s.jsx(AL,{className:"flex",children:s.jsxs(K8,{ref:n,className:ke("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r,children:[e,s.jsx(To,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Q8.displayName=K8.displayName;const X8=p.forwardRef(({className:t,children:e,...r},n)=>s.jsx(Y8,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:s.jsx("div",{className:ke("pb-4 pt-0",t),children:e})}));X8.displayName=Y8.displayName;const Z8=[{question:"Who is the best realtor in Austin for startup entrepreneurs?",answer:"Rick Orr is uniquely positioned to serve Austin's tech and startup community. As the founder of RealSavvy, a leading real estate technology company, Rick understands the needs of busy entrepreneurs. He's helped dozens of tech executives find their perfect Austin homes, from Bouldin Creek bungalows to Lake Austin estates."},{question:"How do I access off-market luxury listings in Austin?",answer:"Rick Orr specializes in off-market transactions with 105+ private sales closed. His extensive network of luxury sellers and buyers allows him to match clients with exclusive properties before they hit the MLS. Contact Rick directly for access to off-market inventory in Westlake, Lake Austin, Tarrytown, and other premium Austin neighborhoods."},{question:"What areas of Austin does Rick Orr serve?",answer:"Rick serves all of Austin and Central Texas with particular expertise in Bouldin Creek (where he's lived since 2007), Westlake, Rollingwood, Lake Austin, Lake Travis, Tarrytown, Travis Heights, and Dripping Springs. He also handles luxury properties along the Texas Coast."},{question:"What makes Rick Orr different from other Austin luxury realtors?",answer:"Rick combines 28+ years of real estate experience with his background as a tech entrepreneur and founder of RealSavvy. His $485M+ in total home sales includes representing buyers in the 2nd most expensive Lake Austin sale ($23M) and 2nd most expensive downtown penthouse ($14M+) in 2025. His golf club membership at Lost Creek CC and deep community ties give clients access to exclusive opportunities."},{question:"Does Rick Orr offer any special incentives for buyers?",answer:"Yes! Rick offers a unique incentive for golf enthusiasts: new golf clubs up to $1,500 value at closing for qualifying buyers. He understands that Austin's golf communities like Lost Creek, Barton Creek, and Spanish Oaks attract discerning buyers who appreciate both the game and the lifestyle."},{question:"How do I get started working with Rick Orr?",answer:"The easiest way to reach Rick is to text him directly at (512) 785-7489 - hence #justtextrick. Whether you're buying, selling, or exploring off-market opportunities, Rick responds personally and can typically meet within 24 hours to discuss your real estate goals."},{question:"What is Rick Orr's track record with luxury home sales?",answer:"Rick's notable transactions include representing the buyer at 5205 Tortuga Trail ($23M - 2nd most expensive Lake Austin sale) and the buyer at 3901 Fifth & West #3803 ($14M+ - 2nd most expensive downtown penthouse). His total career sales exceed $485M with a focus on luxury properties and private off-market deals."}],OL=()=>s.jsx("section",{className:"py-20 px-4 bg-section-bg",children:s.jsxs("div",{className:"max-w-4xl mx-auto",children:[s.jsx("h2",{className:"font-display text-3xl md:text-4xl text-center mb-4 text-foreground",children:"Frequently Asked Questions"}),s.jsx("p",{className:"text-muted-foreground text-center mb-12 max-w-2xl mx-auto",children:"Learn more about working with Rick Orr and buying or selling luxury real estate in Austin"}),s.jsx(PL,{type:"single",collapsible:!0,className:"w-full space-y-4",children:Z8.map((t,e)=>s.jsxs(J8,{value:`item-${e}`,className:"border border-border/50 rounded-lg px-6 bg-card/50",children:[s.jsx(Q8,{className:"text-left font-display text-lg hover:text-primary transition-colors",children:t.question}),s.jsx(X8,{className:"text-muted-foreground leading-relaxed",children:t.answer})]},e))})]})}),qg=()=>{const{toast:t}=Sl(),[e,r]=p.useState(!1),[n,a]=p.useState(!1),[i,o]=p.useState(Date.now()),[l,c]=p.useState(""),[u,d]=p.useState({firstName:"",lastName:"",email:"",phone:"",interest:"",message:""});p.useEffect(()=>{o(Date.now())},[]);const h=async m=>{m.preventDefault(),r(!0);const w=await mg(u,{tag:"contact-section",honeypotValue:l,formLoadTime:i});r(!1),w.success?(t({title:"Message Sent!",description:"Thank you for reaching out. Rick will be in touch shortly."}),d({firstName:"",lastName:"",email:"",phone:"",interest:"",message:""}),a(!1),c(""),o(Date.now())):t({title:"Error",description:w.error||"Failed to send message. Please try again.",variant:"destructive"})},f=m=>{d({...u,[m.target.name]:m.target.value})};return s.jsxs("section",{id:"contact",className:"relative section-padding overflow-hidden bg-section-bg",children:[s.jsxs("div",{className:"absolute inset-0 opacity-60",children:[s.jsx("img",{alt:"Austin Skyline",className:"w-full h-full object-cover object-top",src:"https://images.unsplash.com/photo-1531218150217-54595bc2b934?w=1920&q=80"}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/90"})]}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 relative z-10",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"luxury-subheading mb-4 text-red-accent",children:"Get In Touch"}),s.jsx("h2",{className:"luxury-heading text-3xl md:text-4xl lg:text-5xl font-semibold mb-8 text-foreground",children:"Work With Rick"}),s.jsx("p",{className:"luxury-body text-lg mb-10 text-muted-foreground",children:"Rick Orr brings 28+ years of Austin real estate expertise, $485M+ in career sales, and unmatched access to off-market luxury properties. Whether you're buying, selling, or investing, experience the difference of working with a tech-forward broker who truly knows Austin."}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("p",{className:"luxury-subheading text-xs mb-2 text-red-accent",children:"Phone"}),s.jsx("a",{href:"tel:5127857489",className:"text-2xl font-heading text-foreground hover:text-primary transition-colors",children:"(512) 785-7489"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"luxury-subheading text-xs mb-2 text-red-accent",children:"Email"}),s.jsx("a",{href:"mailto:rick@orrrealty.com",className:"text-lg text-foreground hover:text-primary transition-colors",children:"rick@orrrealty.com"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"luxury-subheading text-xs mb-2 text-red-accent",children:"Service Areas"}),s.jsxs("p",{className:"text-foreground",children:["Bouldin Creek & South Austin",s.jsx("br",{}),"Westlake & Rollingwood",s.jsx("br",{}),"Lake Austin & Lake Travis",s.jsx("br",{}),"Tarrytown & Travis Heights"]})]})]})]}),s.jsxs("div",{className:"luxury-card p-8 md:p-10 border-transparent",children:[s.jsx("h3",{className:"font-heading text-2xl text-foreground mb-8 border-transparent",children:"#justtextrick"}),s.jsxs("form",{onSubmit:h,className:"space-y-6",children:[s.jsx("input",{type:"text",name:"website",value:l,onChange:m=>c(m.target.value),className:"absolute -left-[9999px] opacity-0 h-0 w-0",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),s.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[s.jsx("input",{type:"text",name:"firstName",placeholder:"First Name",value:u.firstName,onChange:f,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("input",{type:"text",name:"lastName",placeholder:"Last Name",value:u.lastName,onChange:f,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"})]}),s.jsx("input",{type:"email",name:"email",placeholder:"Email Address",value:u.email,onChange:f,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("input",{type:"tel",name:"phone",placeholder:"Phone Number",value:u.phone,onChange:f,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("textarea",{name:"message",placeholder:"Your Message (optional)",value:u.message,onChange:f,rows:4,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors resize-none"}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Ml,{id:"optin-section",checked:n,onCheckedChange:m=>a(m===!0),className:"mt-0.5",required:!0}),s.jsxs("label",{htmlFor:"optin-section",className:"text-xs text-muted-foreground leading-relaxed cursor-pointer",children:["By providing ",s.jsx("strong",{children:"ORR Realty Group"})," your contact information, you acknowledge and agree to our ",s.jsx(Y,{to:"/privacy-policy",className:"text-primary hover:underline",children:"Privacy Policy"})," and consent to receiving marketing communications, including emails, calls, and text messages. Reply STOP to opt out. Message and data rates may apply."]})]}),s.jsx("button",{type:"submit",disabled:e||!n,className:"w-full luxury-button-primary disabled:opacity-50 disabled:cursor-not-allowed",children:e?"Sending...":"Submit"})]})]})]})})]})},IL=()=>s.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4",children:s.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"})}),ML=()=>s.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-4 h-4",children:s.jsx("path",{d:"M12 0L0 8.5V24h24V8.5L12 0zm0 2.3l9.5 6.7v12.5H2.5V9L12 2.3zm-4.5 8.2v2h9v-2h-9zm0 4v2h9v-2h-9z"})}),LL=[{icon:p2,href:"https://www.facebook.com/orrrealty",label:"Facebook"},{icon:y2,href:"https://www.instagram.com/rickorr",label:"Instagram"},{icon:j2,href:"https://www.youtube.com/@orrrealty",label:"YouTube"},{icon:b2,href:"https://www.linkedin.com/in/rickorr",label:"LinkedIn"},{icon:IL,href:"https://www.tiktok.com/@rickorr",label:"TikTok",isCustom:!0},{icon:ML,href:"https://www.zillow.com/profile/rickorr",label:"Zillow",isCustom:!0}],he=()=>{const t=new Date().getFullYear();return s.jsx("footer",{className:"bg-black text-white border-t border-gray-800",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 py-16 border-transparent",children:[s.jsxs("div",{className:"mb-12 flex flex-col items-center gap-6",children:[s.jsx("img",{src:"https://fifthandwestpenthouse.com/assets/orr-logo-white-C9l6Ou9k.png",alt:"ORR Realty Group",className:"h-16 md:h-20 object-contain"}),s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"text-xl font-heading tracking-[0.15em] uppercase",children:"ORR Realty Group"}),s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-gray-400 mt-1",children:"#justtextrick"})]})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-12 items-start",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-gray-300 text-sm mb-4",children:["Austin Luxury Real Estate",s.jsx("br",{}),"$485M+ Total Home Sales"]}),s.jsx("p",{className:"text-sm text-gray-500",children:"Founder of RealSavvy"})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.15em] uppercase text-gray-400 mb-6",children:"Quick Links"}),s.jsxs("nav",{className:"space-y-3",children:[s.jsx(Y,{to:"/",className:"block text-gray-300 hover:text-primary transition-colors",children:"Home"}),s.jsx(Y,{to:"/about",className:"block text-gray-300 hover:text-primary transition-colors",children:"About Rick"}),s.jsx(Y,{to:"/idx",className:"block text-gray-300 hover:text-primary transition-colors",children:"Home Search"}),s.jsx(Y,{to:"/sold-gallery",className:"block text-gray-300 hover:text-primary transition-colors",children:"Sold Gallery"}),s.jsx(Y,{to:"/home-valuation",className:"block text-gray-300 hover:text-primary transition-colors",children:"Home Valuation"})]})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.15em] uppercase text-gray-400 mb-6",children:"Connect"}),s.jsxs("div",{className:"space-y-3 mb-8",children:[s.jsxs("a",{href:"tel:5127857489",className:"flex items-center gap-3 text-white hover:text-primary transition-colors",children:[s.jsx(xs,{className:"w-4 h-4"}),"(512) 785-7489"]}),s.jsxs("a",{href:"mailto:rick@orrrealty.com",className:"flex items-center gap-3 transition-colors text-sm text-gray-300 hover:text-primary",children:[s.jsx(Al,{className:"w-4 h-4"}),"rick@orrrealty.com"]}),s.jsxs("div",{className:"flex items-center gap-3 text-gray-500 text-sm",children:[s.jsx(mn,{className:"w-4 h-4"}),"Austin, Texas & Texas Coast"]})]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:LL.map((e,r)=>s.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,className:"w-10 h-10 rounded-full border border-gray-600 flex items-center justify-center text-gray-300 hover:border-primary hover:bg-primary hover:text-white transition-all duration-300",children:"isCustom"in e&&e.isCustom?s.jsx(e.icon,{}):s.jsx(e.icon,{className:"w-4 h-4"})},r))})]})]}),s.jsxs("div",{className:"my-12 p-6 bg-gray-800/50 border border-gray-700 rounded-sm space-y-4",children:[s.jsx("p",{className:"text-sm text-gray-300 font-medium",children:"ORR Realty Group | Rick Orr, Broker"}),s.jsx("p",{className:"text-xs text-gray-500 leading-relaxed",children:"All information provided herein has been obtained from sources believed reliable, but may be subject to errors, omissions, change of price, prior sale, or withdrawal without notice. ORR Realty Group makes no representation, warranty or guaranty as to accuracy of any information contained herein. You should consult your advisors for an independent verification of any properties."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row justify-center items-center gap-6 sm:gap-12 my-8 text-sm text-gray-400",children:[s.jsxs("a",{href:"https://tdmqanqrfshtebljnfgs.supabase.co/storage/v1/object/public/documents/IABS_1-2.pdf",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors text-center",children:["Texas Real Estate Commission",s.jsx("br",{}),"Information About Brokerage Services"]}),s.jsxs("a",{href:"https://www.trec.texas.gov/pdf/forms/Miscellaneous/CN1-2.pdf",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary transition-colors text-center",children:["Texas Real Estate Commission",s.jsx("br",{}),"Consumer Protection Notice"]})]}),s.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-gray-700 to-transparent my-8"}),s.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-gray-500",children:[s.jsxs("p",{children:["© ",t," ORR Realty Group. All Rights Reserved."]}),s.jsx("div",{className:"flex flex-col md:flex-row items-center gap-4 md:gap-6",children:s.jsxs("div",{className:"flex gap-6",children:[s.jsx(Y,{className:"hover:text-primary transition-colors",to:"/disclaimer",children:"Disclaimer"}),s.jsx(Y,{className:"hover:text-primary transition-colors",to:"/privacy-policy",children:"Privacy Policy"}),s.jsx("a",{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})})]})]})})},DL=()=>{const t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:Z8.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("link",{rel:"canonical",href:"https://www.austinrealestateagency.com/"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)})]}),s.jsx(de,{}),s.jsxs("main",{children:[s.jsx(GP,{}),s.jsx(YP,{}),s.jsx(JP,{}),s.jsx(Er,{title:"Active Listings",pageSize:12}),s.jsx(c8,{}),s.jsx(TO,{}),s.jsx(AO,{}),s.jsx(m8,{}),s.jsx(OO,{}),s.jsx(fL,{}),s.jsx(OL,{}),s.jsx(qg,{})]}),s.jsx(he,{})]})};var ek={exports:{}};/*! pym.js - v1.3.2 - 2018-02-13 */(function(t){(function(e){t.exports?t.exports=e():window.pym=e.call(this)})(function(){var e="xPYMx",r={},n=function(f){var m=document.createEvent("Event");m.initEvent("pym:"+f,!0,!0),document.dispatchEvent(m)},a=function(f){var m=new RegExp("[\\?&]"+f.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&#]*)"),w=m.exec(location.search);return w===null?"":decodeURIComponent(w[1].replace(/\+/g," "))},i=function(f,m){if(!(m.xdomain!=="*"&&!f.origin.match(new RegExp(m.xdomain+"$")))&&typeof f.data=="string")return!0},o=function(f){var m=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/gi;if(f.match(m))return!0},l=function(f,m,w){var g=["pym",f,m,w];return g.join(e)},c=function(f){var m=["pym",f,"(\\S+)","(.*)"];return new RegExp("^"+m.join(e)+"$")},u=Date.now||function(){return new Date().getTime()},d=function(f,m,w){var g,y,x,v=null,b=0;w||(w={});var k=function(){b=w.leading===!1?0:u(),v=null,x=f.apply(g,y),v||(g=y=null)};return function(){var j=u();!b&&w.leading===!1&&(b=j);var N=m-(j-b);return g=this,y=arguments,N<=0||N>m?(v&&(clearTimeout(v),v=null),b=j,x=f.apply(g,y),v||(g=y=null)):!v&&w.trailing!==!1&&(v=setTimeout(k,N)),x}},h=function(){for(var f=r.autoInitInstances.length,m=f-1;m>=0;m--){var w=r.autoInitInstances[m];w.el.getElementsByTagName("iframe").length&&w.el.getElementsByTagName("iframe")[0].contentWindow||r.autoInitInstances.splice(m,1)}};return r.autoInitInstances=[],r.autoInit=function(f){var m=document.querySelectorAll("[data-pym-src]:not([data-pym-auto-initialized])"),w=m.length;h();for(var g=0;g<w;++g){var y=m[g];y.setAttribute("data-pym-auto-initialized",""),y.id===""&&(y.id="pym-"+g+"-"+Math.random().toString(36).substr(2,5));var x=y.getAttribute("data-pym-src"),v={xdomain:"string",title:"string",name:"string",id:"string",sandbox:"string",allowfullscreen:"boolean",parenturlparam:"string",parenturlvalue:"string",optionalparams:"boolean",trackscroll:"boolean",scrollwait:"number"},b={};for(var k in v)if(y.getAttribute("data-pym-"+k)!==null)switch(v[k]){case"boolean":b[k]=y.getAttribute("data-pym-"+k)!=="false";break;case"string":b[k]=y.getAttribute("data-pym-"+k);break;case"number":var j=Number(y.getAttribute("data-pym-"+k));isNaN(j)||(b[k]=j);break;default:console.err("unrecognized attribute type")}var N=new r.Parent(y.id,x,b);r.autoInitInstances.push(N)}return f||n("pym-initialized"),r.autoInitInstances},r.Parent=function(f,m,w){this.id=f,this.url=m,this.el=document.getElementById(f),this.iframe=null,this.settings={xdomain:"*",optionalparams:!0,parenturlparam:"parentUrl",parenturlvalue:window.location.href,trackscroll:!1,scrollwait:100},this.messageRegex=c(this.id),this.messageHandlers={},w=w||{},this._constructIframe=function(){var y=this.el.offsetWidth.toString();this.iframe=document.createElement("iframe");var x="",v=this.url.indexOf("#");for(v>-1&&(x=this.url.substring(v,this.url.length),this.url=this.url.substring(0,v)),this.url.indexOf("?")<0?this.url+="?":this.url+="&",this.iframe.src=this.url+"initialWidth="+y+"&childId="+this.id,this.settings.optionalparams&&(this.iframe.src+="&parentTitle="+encodeURIComponent(document.title),this.iframe.src+="&"+this.settings.parenturlparam+"="+encodeURIComponent(this.settings.parenturlvalue)),this.iframe.src+=x,this.iframe.setAttribute("width","100%"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginheight","0"),this.iframe.setAttribute("frameborder","0"),this.settings.title&&this.iframe.setAttribute("title",this.settings.title),this.settings.allowfullscreen!==void 0&&this.settings.allowfullscreen!==!1&&this.iframe.setAttribute("allowfullscreen",""),this.settings.sandbox!==void 0&&typeof this.settings.sandbox=="string"&&this.iframe.setAttribute("sandbox",this.settings.sandbox),this.settings.id&&(document.getElementById(this.settings.id)||this.iframe.setAttribute("id",this.settings.id)),this.settings.name&&this.iframe.setAttribute("name",this.settings.name);this.el.firstChild;)this.el.removeChild(this.el.firstChild);this.el.appendChild(this.iframe),window.addEventListener("resize",this._onResize),this.settings.trackscroll&&window.addEventListener("scroll",this._throttleOnScroll)},this._onResize=(function(){this.sendWidth(),this.settings.trackscroll&&this.sendViewportAndIFramePosition()}).bind(this),this._onScroll=(function(){this.sendViewportAndIFramePosition()}).bind(this),this._fire=function(y,x){if(y in this.messageHandlers)for(var v=0;v<this.messageHandlers[y].length;v++)this.messageHandlers[y][v].call(this,x)},this.remove=function(){window.removeEventListener("message",this._processMessage),window.removeEventListener("resize",this._onResize),this.el.removeChild(this.iframe),h()},this._processMessage=(function(y){if(i(y,this.settings)&&typeof y.data=="string"){var x=y.data.match(this.messageRegex);if(!x||x.length!==3)return!1;var v=x[1],b=x[2];this._fire(v,b)}}).bind(this),this._onHeightMessage=function(y){var x=parseInt(y);this.iframe.setAttribute("height",x+"px")},this._onNavigateToMessage=function(y){o(y)&&(document.location.href=y)},this._onScrollToChildPosMessage=function(y){var x=document.getElementById(this.id).getBoundingClientRect().top+window.pageYOffset,v=x+parseInt(y);window.scrollTo(0,v)},this.onMessage=function(y,x){y in this.messageHandlers||(this.messageHandlers[y]=[]),this.messageHandlers[y].push(x)},this.sendMessage=function(y,x){this.el.getElementsByTagName("iframe").length&&(this.el.getElementsByTagName("iframe")[0].contentWindow?this.el.getElementsByTagName("iframe")[0].contentWindow.postMessage(l(this.id,y,x),"*"):this.remove())},this.sendWidth=function(){var y=this.el.offsetWidth.toString();this.sendMessage("width",y)},this.sendViewportAndIFramePosition=function(){var y=this.iframe.getBoundingClientRect(),x=window.innerWidth||document.documentElement.clientWidth,v=window.innerHeight||document.documentElement.clientHeight,b=x+" "+v;b+=" "+y.top+" "+y.left,b+=" "+y.bottom+" "+y.right,this.sendMessage("viewport-iframe-position",b)};for(var g in w)this.settings[g]=w[g];return this._throttleOnScroll=d(this._onScroll.bind(this),this.settings.scrollwait),this.onMessage("height",this._onHeightMessage),this.onMessage("navigateTo",this._onNavigateToMessage),this.onMessage("scrollToChildPos",this._onScrollToChildPosMessage),this.onMessage("parentPositionInfo",this.sendViewportAndIFramePosition),window.addEventListener("message",this._processMessage,!1),this._constructIframe(),this},r.Child=function(f){this.parentWidth=null,this.id=null,this.parentTitle=null,this.parentUrl=null,this.settings={renderCallback:null,xdomain:"*",polling:0,parenturlparam:"parentUrl"},this.timerId=null,this.messageRegex=null,this.messageHandlers={},f=f||{},this.onMessage=function(y,x){y in this.messageHandlers||(this.messageHandlers[y]=[]),this.messageHandlers[y].push(x)},this._fire=function(y,x){if(y in this.messageHandlers)for(var v=0;v<this.messageHandlers[y].length;v++)this.messageHandlers[y][v].call(this,x)},this._processMessage=(function(y){if(i(y,this.settings)&&typeof y.data=="string"){var x=y.data.match(this.messageRegex);if(!(!x||x.length!==3)){var v=x[1],b=x[2];this._fire(v,b)}}}).bind(this),this._onWidthMessage=function(y){var x=parseInt(y);x!==this.parentWidth&&(this.parentWidth=x,this.settings.renderCallback&&this.settings.renderCallback(x),this.sendHeight())},this.sendMessage=function(y,x){window.parent.postMessage(l(this.id,y,x),"*")},this.sendHeight=(function(){var y=document.getElementsByTagName("body")[0].offsetHeight.toString();return this.sendMessage("height",y),y}).bind(this),this.getParentPositionInfo=function(){this.sendMessage("parentPositionInfo")},this.scrollParentTo=function(y){this.sendMessage("navigateTo","#"+y)},this.navigateParentTo=function(y){this.sendMessage("navigateTo",y)},this.scrollParentToChildEl=function(y){var x=document.getElementById(y).getBoundingClientRect().top+window.pageYOffset;this.scrollParentToChildPos(x)},this.scrollParentToChildPos=function(y){this.sendMessage("scrollToChildPos",y.toString())};var m=function(y){var x=document.getElementsByTagName("html")[0],v,b=x.className;try{window.self!==window.top?v="embedded":v="not-embedded"}catch{v="embedded"}b.indexOf(v)<0&&(x.className=b?b+" "+v:v,y&&y(v),n("marked-embedded"))};this.remove=function(){window.removeEventListener("message",this._processMessage),this.timerId&&clearInterval(this.timerId)};for(var w in f)this.settings[w]=f[w];this.id=a("childId")||f.id,this.messageRegex=new RegExp("^pym"+e+this.id+e+"(\\S+)"+e+"(.*)$");var g=parseInt(a("initialWidth"));return this.parentUrl=a(this.settings.parenturlparam),this.parentTitle=a("parentTitle"),this.onMessage("width",this._onWidthMessage),window.addEventListener("message",this._processMessage,!1),this.settings.renderCallback&&this.settings.renderCallback(g),this.sendHeight(),this.settings.polling&&(this.timerId=window.setInterval(this.sendHeight,this.settings.polling)),m(f.onMarkedEmbeddedStatus),this},typeof document<"u"&&r.autoInit(!0),r})})(ek);var $L=ek.exports;const FL=Oi($L),_n=()=>{const t=p.useRef(null),{market:e}=kd();return p.useEffect(()=>{const n=new URLSearchParams(window.location.search).get("_cycagt");n&&localStorage.setItem("cycagt",n);const a=window.location.pathname,o=["/search","/client","/r","/preview-property","/magic-redirect"].some(m=>a===m||a.startsWith(m+"/"));let l;o?l=a:l=a.replace(Pi.idxRedirectPath,"")||"/";const c=window.location.search?window.location.search.substring(1):"",u=jT(l,c);t.current=new FL.Parent("idx-frame",u,{});const d=NT(),h=()=>{var y;const m=document.querySelector("header"),w=(m==null?void 0:m.offsetHeight)||80,g=window.innerHeight-w;(y=t.current)!=null&&y.iframe&&(t.current.iframe.setAttribute("height",`${g}px`),t.current.iframe.style.height=`${g}px`)};h(),window.addEventListener("resize",h);const f=m=>{var y,x;const w=(y=m.detail)==null?void 0:y.marketId,g=(x=t.current)==null?void 0:x.iframe;!w||!(g!=null&&g.contentWindow)||g.contentWindow.postMessage({channel:"idx",topic:"idx.setMarket",data:{market_id:String(w)}},"*")};return window.addEventListener("orr:marketChanged",f),()=>{window.removeEventListener("resize",h),window.removeEventListener("orr:marketChanged",f),d()}},[]),s.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[s.jsxs(Le,{children:[s.jsx("title",{children:`Search ${(e==null?void 0:e.city)||"Austin"} Homes | ORR Realty Group`}),s.jsx("meta",{name:"description",content:`Search all ${(e==null?void 0:e.city)||"Austin"} MLS listings. Find your dream home with Rick Orr at ORR Realty Group.`}),s.jsx("link",{rel:"canonical",href:`https://www.austinrealestateagency.com${typeof window<"u"?window.location.pathname:"/idx"}`})]}),s.jsx(de,{}),s.jsx("main",{className:"flex-1 pt-20",children:s.jsx("div",{id:"idx-frame",className:"w-full [&>iframe]:w-full [&>iframe]:border-0"})})]})},BL=typeof window<"u"&&window.AGNT_CONCIERGE_URL||"https://agnt-concierge.onrender.com";function UL(){const[t,e]=p.useState("");return p.useEffect(()=>{document.title="Just Text Rick — Rick Orr's AI Concierge";const r=typeof window<"u"&&window.AGNT_CONCIERGE_HOST||"www.austinrealestateagency.com",n=typeof window<"u"?window.location.host:"",i=/(^|\.)austinrealestateagency\.com$/i.test(n)?n:r;e(`${BL}/?host=${encodeURIComponent(i)}`)},[]),s.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[s.jsx(de,{}),s.jsxs("main",{className:"flex-1 pt-24 lg:pt-28",children:[s.jsx("section",{className:"container mx-auto px-4 lg:px-10 py-6",children:s.jsxs("div",{className:"flex items-center gap-4 border-b border-border/40 pb-6",children:[s.jsx("img",{src:Hi,alt:"Rick Orr",className:"w-14 h-14 rounded-full object-cover object-top border-2 border-foreground/80"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h1",{className:"font-heading text-2xl lg:text-3xl text-foreground leading-tight",children:"Just Text Rick"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Not a chatbot — straight to the metal. Off-market deals, comps & the inside scoop, 24/7."})]}),s.jsxs("div",{className:"hidden sm:flex gap-2 flex-shrink-0",children:[s.jsx("a",{href:"sms:2149069834",className:"luxury-button-primary",children:"Text (214) 906-9834"}),s.jsx("a",{href:"tel:5127857489",className:"luxury-button-outline",children:"Call"})]})]})}),s.jsx("section",{className:"container mx-auto px-4 lg:px-10 pb-12",children:s.jsx("div",{className:"w-full border border-border/40 overflow-hidden bg-card",style:{height:"70vh",minHeight:520},children:t?s.jsx("iframe",{title:"Just Text Rick — AGNT Concierge",src:t,allow:"clipboard-write; web-share; microphone",style:{border:0,width:"100%",height:"100%"}}):null})})]}),s.jsx(he,{})]})}const WL="https://crm.realsavvy.com/api/form_submissions",zL="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2MzJjYzQ0YjAxYWRmNTYxMWI0MzJhYTM0ZmM5YmRjNmE5MWZjZDA4ZWExZGI2NTQ1OTI5MTUxMjU4NmE0OWY3IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NjAiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY2MCIsInNjb3BlcyI6WyJwdWJsaWMiXSwic2FsdCI6ImRiNTYzNGE0LWRiNTQtNGQxNC1hMGU2LTFiMGM0NTA0NTU0MyJ9.igzHP1aSIR-mKZA0U-Hpd1yvNvzaPIa1ouCkRvBC2ZG3Kc36QZgsDx8fTFHPvsCm7IDMgmllgfiYL2U6CG8JsRyYvyRYiZAmZxl23rrwNY4CuezIE6B7Yh_jUDpbMvVEP0FNUYp4QRbs55yI3v-LkT2U5y92Kmi14tPbSx4QXjO4Qu5lz3oxOcr9tQIbdIWzKUmTQ9bm3qcNRQ1xQRqVMS0AEtEwsnR5CQIDybYAk6qbgMC5b_JFlDSb_XhMs7xuAmEQvNDIT0pxY25C16COvqxmieS1KqNckpePEarT-tQtzlwUD_4aBhchD_uZBp1bfA48dzYFojGe4fHgcx56Xg",HL="515a70f2-8780-4ed6-8115-11b95af9d9d5",tk=["0-30 days","31-90 days","90+ days","Just exploring options for now"],VL=zw({address:br().trim().min(1,"Address is required").max(500),firstName:br().trim().min(1,"First name is required").max(100),lastName:br().trim().min(1,"Last name is required").max(100),email:br().trim().email("Invalid email address").max(255),phone:br().trim().min(1,"Phone number is required").max(20),timeline:a9(tk,{required_error:"Please select a timeline"})}),qL=()=>{const{toast:t}=Sl(),[e,r]=p.useState(1),[n,a]=p.useState(!1),[i,o]=p.useState(!1),[l,c]=p.useState(Date.now()),[u,d]=p.useState(""),[h,f]=p.useState({address:"",firstName:"",lastName:"",email:"",phone:"",timeline:void 0});p.useEffect(()=>{c(Date.now())},[]);const m=x=>{x.preventDefault(),h.address&&h.address.trim().length>0&&r(2)},w=async x=>{var v;x.preventDefault(),a(!0);try{if(Vw(u)){t({title:"Valuation Request Submitted",description:"We'll contact you shortly with your home valuation report."}),a(!1);return}if(qw(l)){t({title:"Valuation Request Submitted",description:"We'll contact you shortly with your home valuation report."}),a(!1);return}const b=VL.parse(h),k=new FormData;if(k.append("cyclum_vid",HL),k.append("cyclum_submission_id",Hw()),k.append("tag[]","home-valuation"),k.append("first_name",b.firstName),k.append("last_name",b.lastName),k.append("email",b.email),k.append("phone",b.phone),k.append("message",`Property Address: ${b.address}
Ideal Timeline: ${b.timeline}`),!(await fetch(WL,{method:"POST",headers:{Authorization:`Bearer ${zL}`},body:k})).ok)throw new Error("Failed to submit form");t({title:"Valuation Request Submitted",description:"We'll contact you shortly with your home valuation report."}),f({address:"",firstName:"",lastName:"",email:"",phone:"",timeline:void 0}),o(!1),d(""),r(1),c(Date.now())}catch(b){b instanceof Cr?t({title:"Please check your information",description:((v=b.errors[0])==null?void 0:v.message)||"Validation failed",variant:"destructive"}):t({title:"Submission Failed",description:"Please try again later.",variant:"destructive"})}finally{a(!1)}},g=x=>{const{name:v,value:b}=x.target;f(k=>({...k,[v]:b}))},y=x=>{f(v=>({...v,timeline:x}))};return s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsx("input",{type:"text",name:"website",value:u,onChange:x=>d(x.target.value),className:"absolute -left-[9999px] opacity-0 h-0 w-0",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),s.jsxs("div",{className:"flex items-center justify-center gap-3 mb-8",children:[s.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center text-sm font-medium transition-colors ${e>=1?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:e>1?s.jsx(Ks,{className:"w-5 h-5"}):"1"}),s.jsx("div",{className:`w-16 h-0.5 ${e>=2?"bg-primary":"bg-muted"}`}),s.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center text-sm font-medium transition-colors ${e>=2?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:"2"})]}),e===1&&s.jsxs("form",{onSubmit:m,className:"space-y-6",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-2",children:"Enter Your Property Address"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"We'll use this to prepare your personalized valuation"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(mn,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),s.jsx("input",{type:"text",name:"address",value:h.address||"",onChange:g,placeholder:"Enter your home address...",className:"w-full pl-12 pr-4 py-4 bg-card border border-border/50 rounded-sm text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors",required:!0})]}),s.jsxs("button",{type:"submit",className:"luxury-button-outline w-full flex items-center justify-center gap-2",children:["Continue",s.jsx(gu,{className:"w-4 h-4"})]})]}),e===2&&s.jsxs("form",{onSubmit:w,className:"space-y-6",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-2",children:"Tell Us About Yourself"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Complete your information to receive your valuation"})]}),s.jsxs("div",{className:"bg-muted/50 p-4 rounded-sm border border-border/50",children:[s.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Property Address"}),s.jsx("p",{className:"text-foreground font-medium",children:h.address}),s.jsx("button",{type:"button",onClick:()=>r(1),className:"text-primary text-xs hover:underline mt-2",children:"Edit address"})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm text-muted-foreground mb-2",children:["First Name ",s.jsx("span",{className:"text-destructive",children:"*"})]}),s.jsx("input",{type:"text",name:"firstName",value:h.firstName||"",onChange:g,placeholder:"First name",className:"w-full px-4 py-3 bg-card border border-border/50 rounded-sm text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm text-muted-foreground mb-2",children:["Last Name ",s.jsx("span",{className:"text-destructive",children:"*"})]}),s.jsx("input",{type:"text",name:"lastName",value:h.lastName||"",onChange:g,placeholder:"Last name",className:"w-full px-4 py-3 bg-card border border-border/50 rounded-sm text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors",required:!0})]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm text-muted-foreground mb-2",children:["Email ",s.jsx("span",{className:"text-destructive",children:"*"})]}),s.jsx("input",{type:"email",name:"email",value:h.email||"",onChange:g,placeholder:"your@email.com",className:"w-full px-4 py-3 bg-card border border-border/50 rounded-sm text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm text-muted-foreground mb-2",children:["Phone Number ",s.jsx("span",{className:"text-destructive",children:"*"})]}),s.jsx("input",{type:"tel",name:"phone",value:h.phone||"",onChange:g,placeholder:"(555) 123-4567",className:"w-full px-4 py-3 bg-card border border-border/50 rounded-sm text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-sm text-muted-foreground mb-3",children:["Ideal Timeline to List ",s.jsx("span",{className:"text-destructive",children:"*"})]}),s.jsx("div",{className:"space-y-3",children:tk.map(x=>s.jsxs("button",{type:"button",onClick:()=>y(x),className:`w-full flex items-center gap-3 p-4 rounded-sm border cursor-pointer transition-colors text-left ${h.timeline===x?"border-primary bg-primary/5":"border-border/50 bg-card hover:border-primary/50"}`,children:[s.jsx("div",{className:`w-5 h-5 rounded-full border-2 flex items-center justify-center transition-colors flex-shrink-0 ${h.timeline===x?"border-primary":"border-muted-foreground"}`,children:h.timeline===x&&s.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-primary"})}),s.jsx("span",{className:"text-foreground",children:x})]},x))})]}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Ml,{id:"optin-valuation",checked:i,onCheckedChange:x=>o(x===!0),className:"mt-0.5",required:!0}),s.jsxs("label",{htmlFor:"optin-valuation",className:"text-xs text-muted-foreground leading-relaxed cursor-pointer",children:["By providing ",s.jsx("strong",{children:"ORR Realty Group"})," your contact information, you acknowledge and agree to our"," ",s.jsx(Y,{to:"/privacy-policy",className:"text-primary hover:underline",children:"Privacy Policy"})," ","and consent to receiving marketing communications, including emails, calls, and text messages. Reply STOP to opt out. Message and data rates may apply."]})]}),s.jsx("button",{type:"submit",disabled:n||!h.timeline||!i,className:"luxury-button-outline w-full flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:n?s.jsxs(s.Fragment,{children:[s.jsx(la,{className:"w-4 h-4 animate-spin"}),"Submitting..."]}):"Get My Free Valuation"})]})]})},GL="/assets/home-valuation-CBgFxafY.jpg",KL=()=>s.jsx(s.Fragment,{children:s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsx("section",{className:"relative py-24 bg-section-bg overflow-hidden",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold mb-6",children:"Discover the Value of Your Home Today"}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mb-10",children:[s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(Ks,{className:"w-5 h-5 text-primary"}),s.jsx("span",{children:"Instant property valuation"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(Ks,{className:"w-5 h-5 text-primary"}),s.jsx("span",{children:"Expert advice"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(Ks,{className:"w-5 h-5 text-primary"}),s.jsx("span",{children:"Sell for more"})]})]})]}),s.jsx(qL,{})]})}),s.jsx("section",{className:"py-20 bg-section-bg",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"luxury-heading text-3xl md:text-4xl font-semibold mb-6",children:"What's Your Property Worth?"}),s.jsx("p",{className:"luxury-body text-lg mb-6",children:"Home valuations give you valuable knowledge that can help you plan for the future and make smart decisions. It's good practice to stay informed about how much equity you have in your home and how much you may be able to borrow against it or sell it for."}),s.jsx("p",{className:"luxury-body text-lg",children:"Our tool provides a more robust, accurate assessment than you'll get from the major real estate portals. For the most precise valuation, reach out to discuss a customized Comparative Market Analysis or an appraisal."})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:GL,alt:"Tennessee Home",className:"w-full rounded-sm shadow-2xl"}),s.jsx("div",{className:"absolute -inset-4 border border-primary/30 rounded-sm -z-10"})]})]})})}),s.jsx("section",{className:"py-20 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 max-w-4xl",children:[s.jsx("h2",{className:"font-heading text-3xl text-foreground text-center mb-12",children:"Frequently Asked Questions"}),s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"luxury-card p-8",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"What is a Home Valuation?"}),s.jsx("p",{className:"luxury-body",children:"A home valuation determines the current market value of a residential property. It is crucial for real estate transactions, preventing excessive borrowing and financial losses. When getting a mortgage, the home acts as collateral."})]}),s.jsxs("div",{className:"luxury-card p-8",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"How is the Valuation Calculated?"}),s.jsx("p",{className:"luxury-body",children:"The value of your home is calculated using a combination of factors including its location, age, size, condition, any improvements or renovations made, and recent sale prices of comparable homes in the neighborhood."})]}),s.jsxs("div",{className:"luxury-card p-8",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"How Accurate is the Online Valuation?"}),s.jsx("p",{className:"luxury-body",children:"Online home valuations provide a good starting point and offer a general estimate of your property's worth. For the most accurate assessment, consider scheduling an in-person appraisal with Rick Orr."})]})]})]})}),s.jsx("section",{className:"py-20 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl text-foreground text-center mb-12",children:"Why Is a Valuation Important?"}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:[{title:"Refinancing",description:"Lenders base loan amounts on property value. Knowing your home's worth helps you get better refinancing terms."},{title:"Home Improvements",description:"Avoid pricing your home out of the market by understanding how improvements affect its value."},{title:"Qualifying for Credit",description:"A home valuation helps determine if you qualify for a Home Equity Line of Credit (HELOC)."},{title:"Planning",description:"Know your equity for better financial planning and to handle unforeseen circumstances."}].map((t,e)=>s.jsxs("div",{className:"luxury-card p-6 text-center",children:[s.jsx("h3",{className:"font-heading text-lg text-foreground mb-3",children:t.title}),s.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]},e))})]})})]}),s.jsx(he,{})]})}),Md="/assets/portfolio-bg-DLtpHdii.jpg",YL=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${Md})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/70"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Portfolio"})})]}),s.jsx(Er,{title:"Active Listings",pageSize:20}),s.jsx("section",{className:"py-16 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6",children:"Looking for More Options?"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Browse all available properties in Austin and find your perfect home."}),s.jsx("a",{href:"/idx",className:"luxury-button-primary inline-block",children:"View All Properties"})]})})]}),s.jsx(he,{})]}),JL=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${Md})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/70"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:[s.jsx("p",{className:"font-body tracking-[0.2em] uppercase text-sm font-medium mb-4 text-muted-foreground",children:"Portfolio"}),s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Residential"})]})]}),s.jsx(Er,{title:"Active Residential Listings",filter:{agent_profile:Og,listing_status:{value:["Active","Pending"]}},pageSize:20}),s.jsx("section",{className:"py-16 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6",children:"Explore More"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Browse the full Austin MLS or view our commercial portfolio."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx(Y,{to:"/idx",className:"luxury-button-primary inline-block",children:"Search All Properties"}),s.jsx(Y,{to:"/portfolio/commercial",className:"luxury-button-outline inline-block",children:"Commercial Portfolio"})]})]})})]}),s.jsx(he,{})]}),QL="https://api.realsavvy.com/api/v3/listings/search",XL="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2NDNkMDg1MTAwYmI2NWQyYWE3N2MwN2U2OGE0ODkwNTBiZTE1MWIxYTQzOTEzYjRlODkwOTc5ZTgzNTJlMDc1IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NzgiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY3OCIsInNjb3BlcyI6WyJhZG1pbiJdfQ.NUi66vsTRrpVDC8gKSfMDrHhFvayzhMQH08VLNpIMDo3mN0ysyQ97pp2SlDwUPn08OoqthHb3RzoHGPCp9gJFvfoPI0DTIfgrMuUGMBHW4UJdZNWMS2Ep_BWH4iuL2VqgyXEUki4AiG8F9SXnbQbyvlRO7axJEYVWJ8EcXJ87EYQQhlAuS6f0AlTz7WwqNPipfNohon0Bo66u5WkIWlI3ybXAWo8CDJW3C-PN3QFyxgekSToV0euVZr2Pj_Eh_hVEIvEj6vPfDHyT9KihvNM7XCkw_KF4sSkT1fjqjudMspI_iQW1SixU64TKC6eHt5k2oWzq5GLoD3i1lzcnYuYzQ",ZL=async()=>{const t=await fetch(QL,{method:"POST",headers:{Authorization:`Bearer ${XL}`,"Content-Type":"application/json"},body:JSON.stringify({filter:{listing_status:{value:["Active","Coming Soon"]},property_type:{value:["Commercial"]},suggestion:{value:[{resource_type:"areas",resource_id:"base64-YXJlYX5wbGFjZX5HcmFuYWRhIEhpbGxzLCBDQQ",resource_label:"Granada Hills, CA",resource_sub_type:"place",type:"geo_shape",value:{geometry:{type:"Polygon",coordinates:[[[-118.49,34.257438],[-118.491344,34.257447],[-118.49359,34.257461],[-118.49363,34.253833],[-118.49473,34.25384],[-118.49471,34.25642],[-118.49685,34.256561],[-118.496873,34.255036],[-118.49691,34.253854],[-118.49913,34.253839],[-118.49921,34.255007],[-118.499494,34.255224],[-118.50014,34.255272],[-118.50015,34.253846],[-118.50237,34.253888],[-118.50234,34.257076],[-118.502335,34.257516],[-118.5067,34.257544],[-118.50763,34.25755],[-118.508874,34.257557],[-118.51107,34.257571],[-118.51435,34.257592],[-118.51544,34.257599],[-118.51981,34.257626],[-118.52121,34.257634],[-118.52245,34.257496],[-118.52332,34.257491],[-118.52333,34.258094],[-118.52334,34.259078],[-118.52336,34.261278],[-118.52337,34.262708],[-118.52735,34.262706],[-118.52733,34.263716],[-118.52725,34.264097],[-118.527232,34.264519],[-118.52811,34.26452],[-118.527876,34.265074],[-118.52737,34.266514],[-118.52723,34.267531],[-118.52706,34.271807],[-118.52688,34.272178],[-118.5277,34.272183],[-118.52732,34.274638],[-118.52631,34.274502],[-118.52627,34.275159],[-118.52636,34.276739],[-118.526996,34.278288],[-118.52748,34.279386],[-118.5275,34.281322],[-118.527988,34.281964],[-118.52764,34.283454],[-118.52834,34.284256],[-118.529046,34.28629],[-118.530376,34.286747],[-118.53193,34.288528],[-118.533,34.289616],[-118.53335,34.290716],[-118.53421,34.290963],[-118.53439,34.291656],[-118.535553,34.2927],[-118.53903,34.295726],[-118.53922,34.296201],[-118.53962,34.296501],[-118.539719,34.296801],[-118.54002,34.297201],[-118.540943,34.298794],[-118.5467,34.297867],[-118.549804,34.296967],[-118.551246,34.296778],[-118.55169,34.29672],[-118.551285,34.298478],[-118.551379,34.298971],[-118.55302,34.301325],[-118.55376,34.303395],[-118.5534,34.304393],[-118.55205,34.306479],[-118.55056,34.307686],[-118.55277,34.309554],[-118.55304,34.310086],[-118.55483,34.311077],[-118.55644,34.311519],[-118.556527,34.312531],[-118.555,34.312485],[-118.55572,34.313969],[-118.55622,34.314414],[-118.55806,34.314478],[-118.559446,34.315426],[-118.56019,34.316225],[-118.55919,34.317598],[-118.558009,34.31734],[-118.55746,34.319061],[-118.558564,34.319705],[-118.55864,34.321085],[-118.55707,34.321262],[-118.555389,34.32087],[-118.55488,34.321618],[-118.55148,34.321902],[-118.55044,34.322673],[-118.55005,34.32354],[-118.54613,34.323532],[-118.52995,34.323433],[-118.52262,34.323113],[-118.52183,34.323093],[-118.5178,34.326327],[-118.517159,34.325459],[-118.51562,34.325747],[-118.51498,34.326679],[-118.514188,34.326607],[-118.51284,34.325739],[-118.51126,34.325355],[-118.50969,34.324189],[-118.50749,34.323502],[-118.50591,34.322847],[-118.50378,34.323479],[-118.5029,34.323516],[-118.49944,34.321128],[-118.49769,34.320267],[-118.4972,34.320124],[-118.49581,34.319667],[-118.4945,34.318708],[-118.49279,34.316483],[-118.49165,34.315504],[-118.48981,34.314919],[-118.48902,34.314001],[-118.48796,34.312597],[-118.48573,34.309598],[-118.48209,34.305683],[-118.480033,34.303039],[-118.479763,34.303216],[-118.47885,34.302228],[-118.47452,34.297872],[-118.46778,34.291162],[-118.46772,34.289705],[-118.467734,34.287757],[-118.46824,34.285508],[-118.469171,34.281712],[-118.46989,34.279073],[-118.470436,34.277365],[-118.470824,34.276282],[-118.47149,34.274493],[-118.47174,34.273757],[-118.47218,34.271713],[-118.47228,34.265698],[-118.47209,34.265684],[-118.472045,34.26568],[-118.47205,34.265061],[-118.47205,34.264693],[-118.47205,34.264578],[-118.472106,34.259131],[-118.47212,34.257323],[-118.47241,34.257325],[-118.47241,34.257417],[-118.47282,34.258259],[-118.47336,34.258173],[-118.47329,34.257331],[-118.47393,34.257335],[-118.47412,34.256877],[-118.47543,34.256724],[-118.4763,34.256928],[-118.47934,34.25685],[-118.481632,34.257008],[-118.48163,34.257386],[-118.48486,34.257407],[-118.48916,34.257433],[-118.48963,34.257436],[-118.49,34.257438]]]},type:"place",name:"Granada Hills",state:"CA",state_and_county_fips:"06037"}},{resource_type:"areas",resource_id:"base64-YXJlYX5wbGFjZX5Ob3J0aHJpZGdlLCBDQQ",resource_label:"Northridge, CA",resource_sub_type:"place",type:"geo_shape",value:{geometry:{type:"Polygon",coordinates:[[[-118.52332,34.257491],[-118.52245,34.257496],[-118.52121,34.257634],[-118.51981,34.257626],[-118.51544,34.257599],[-118.51435,34.257592],[-118.51107,34.257571],[-118.508874,34.257557],[-118.50763,34.25755],[-118.5067,34.257544],[-118.502335,34.257516],[-118.50234,34.257076],[-118.50237,34.253888],[-118.50239,34.252064],[-118.50239,34.251173],[-118.5024,34.250259],[-118.50241,34.249147],[-118.502421,34.248267],[-118.502458,34.244183],[-118.50247,34.243007],[-118.50248,34.241716],[-118.50249,34.240127],[-118.5025,34.239381],[-118.50251,34.238449],[-118.502519,34.237439],[-118.50253,34.235754],[-118.50256,34.233026],[-118.50257,34.232127],[-118.5026,34.2285],[-118.50262,34.226685],[-118.49843,34.226659],[-118.49823,34.228472],[-118.49695,34.228464],[-118.49721,34.227163],[-118.49765,34.226107],[-118.49816,34.225101],[-118.49886,34.223447],[-118.499078,34.221598],[-118.50266,34.222304],[-118.50266,34.221402],[-118.50267,34.221208],[-118.50551,34.221169],[-118.50551,34.220695],[-118.50672,34.220492],[-118.50744,34.22052],[-118.50939,34.220159],[-118.5094,34.218357],[-118.50942,34.215673],[-118.50945,34.212042],[-118.50987,34.212042],[-118.509865,34.209642],[-118.509864,34.208411],[-118.51043,34.208411],[-118.51423,34.208405],[-118.51535,34.208405],[-118.517405,34.208402],[-118.5186,34.208401],[-118.518601,34.212031],[-118.518605,34.215662],[-118.51861,34.220985],[-118.519671,34.22097],[-118.51967,34.220582],[-118.52287,34.220449],[-118.52734,34.22054],[-118.52837,34.220559],[-118.52837,34.219281],[-118.52921,34.21928],[-118.53392,34.219273],[-118.53437,34.219217],[-118.53608,34.219214],[-118.53608,34.22003],[-118.53608,34.220359],[-118.53608,34.220727],[-118.53862,34.220689],[-118.54154,34.220645],[-118.54481,34.220595],[-118.54544,34.220586],[-118.54609,34.220576],[-118.546157,34.220575],[-118.54919,34.220529],[-118.54918,34.219859],[-118.551697,34.21982],[-118.55355,34.220463],[-118.5542,34.220453],[-118.554646,34.220447],[-118.557923,34.220397],[-118.55792,34.219146],[-118.56229,34.219108],[-118.56229,34.220075],[-118.56229,34.220331],[-118.5623,34.224594],[-118.5623,34.228222],[-118.56667,34.228219],[-118.566736,34.227811],[-118.57105,34.227591],[-118.57105,34.228216],[-118.57105,34.229151],[-118.57105,34.231844],[-118.57105,34.235769],[-118.56798,34.235159],[-118.56408,34.234399],[-118.56231,34.23405],[-118.56329,34.234543],[-118.56399,34.234861],[-118.56446,34.235504],[-118.56452,34.23634],[-118.56452,34.239945],[-118.56461,34.24274],[-118.56402,34.24274],[-118.56324,34.242736],[-118.56271,34.242736],[-118.56279,34.243034],[-118.56267,34.246359],[-118.56231,34.246369],[-118.56231,34.247421],[-118.56231,34.248677],[-118.56231,34.249279],[-118.56232,34.249997],[-118.56232,34.252807],[-118.56232,34.254502],[-118.562322,34.257259],[-118.56134,34.257259],[-118.56008,34.25726],[-118.55872,34.25726],[-118.55853,34.25726],[-118.55795,34.25726],[-118.55584,34.257261],[-118.55452,34.257261],[-118.55358,34.257262],[-118.551426,34.257263],[-118.54804,34.257263],[-118.544838,34.257264],[-118.5413,34.257265],[-118.54124,34.257265],[-118.54115,34.257265],[-118.5361,34.257266],[-118.53574,34.257266],[-118.531724,34.257266],[-118.529496,34.257266],[-118.527426,34.257266],[-118.52735,34.257778],[-118.52388,34.257847],[-118.52372,34.257266],[-118.52332,34.257339],[-118.52332,34.257491]]]},type:"place",name:"Northridge",state:"CA",state_and_county_fips:"06037"}},{resource_type:"areas",resource_id:"base64-YXJlYX5wbGFjZX5WYWxsZXkgVmlsbGFnZSwgQ0E",resource_label:"Valley Village, CA",resource_sub_type:"place",type:"geo_shape",value:{geometry:{type:"Polygon",coordinates:[[[-118.40312,34.178351],[-118.39651,34.178349],[-118.39651,34.179405],[-118.3953,34.179406],[-118.39503,34.179405],[-118.39405,34.178566],[-118.39345,34.178927],[-118.39342,34.179406],[-118.39105,34.179407],[-118.38996,34.179408],[-118.388866,34.179408],[-118.388326,34.179408],[-118.38822,34.177595],[-118.38777,34.177596],[-118.38777,34.175779],[-118.38882,34.175779],[-118.38882,34.173965],[-118.387769,34.173965],[-118.387767,34.172149],[-118.38781,34.172149],[-118.388332,34.172149],[-118.38874,34.172148],[-118.38911,34.172148],[-118.38945,34.172147],[-118.38909,34.171672],[-118.387994,34.171218],[-118.38776,34.171086],[-118.38776,34.168671],[-118.38775,34.168487],[-118.38776,34.168369],[-118.38776,34.164885],[-118.38775,34.163978],[-118.38775,34.162163],[-118.389976,34.162159],[-118.38997,34.161251],[-118.387747,34.161256],[-118.38774,34.160375],[-118.38774,34.159484],[-118.38774,34.158603],[-118.38774,34.156679],[-118.38996,34.156676],[-118.38996,34.155795],[-118.38773,34.155785],[-118.38773,34.154357],[-118.38773,34.153989],[-118.38834,34.153988],[-118.38812,34.152104],[-118.388273,34.151306],[-118.388183,34.150367],[-118.38887,34.150367],[-118.38888,34.152181],[-118.389953,34.152181],[-118.38995,34.150367],[-118.39209,34.150366],[-118.39209,34.15002],[-118.3927,34.150366],[-118.39375,34.150615],[-118.39609,34.151276],[-118.39647,34.151411],[-118.39695,34.151578],[-118.39801,34.152123],[-118.39869,34.152535],[-118.39982,34.153437],[-118.39988,34.153695],[-118.402498,34.155889],[-118.40307,34.156348],[-118.403416,34.156628],[-118.40416,34.156745],[-118.40522,34.156791],[-118.40522,34.156694],[-118.40522,34.156598],[-118.408301,34.156611],[-118.409832,34.156618],[-118.41378,34.156634],[-118.41378,34.156731],[-118.41378,34.156827],[-118.41378,34.157028],[-118.41378,34.157614],[-118.41378,34.158534],[-118.41271,34.158521],[-118.4127,34.161682],[-118.41222,34.16168],[-118.412467,34.162636],[-118.41256,34.163246],[-118.41278,34.164869],[-118.41268,34.16487],[-118.4129,34.166394],[-118.41315,34.168292],[-118.4132,34.168676],[-118.41322,34.16881],[-118.413546,34.171023],[-118.41368,34.172132],[-118.413525,34.172132],[-118.414,34.175224],[-118.41408,34.176532],[-118.41405,34.179404],[-118.41378,34.178469],[-118.409418,34.178457],[-118.409418,34.178892],[-118.409418,34.179405],[-118.40525,34.179407],[-118.404092,34.179406],[-118.40312,34.179406],[-118.40312,34.178351]]]},type:"place",name:"Valley Village",state:"CA",state_and_county_fips:"06037"}},{resource_type:"areas",resource_id:"base64-YXJlYX5wbGFjZX5TaGVybWFuIE9ha3MsIENB",resource_label:"Sherman Oaks, CA",resource_sub_type:"place",type:"geo_shape",value:{geometry:{type:"Polygon",coordinates:[[[-118.45743,34.164851],[-118.45743,34.16532],[-118.45743,34.165606],[-118.45743,34.166666],[-118.45634,34.166666],[-118.45525,34.166667],[-118.45525,34.16576],[-118.45306,34.165761],[-118.45306,34.164854],[-118.44986,34.164855],[-118.44919,34.164855],[-118.4487,34.164855],[-118.44433,34.164858],[-118.44434,34.166672],[-118.43997,34.166675],[-118.43997,34.165254],[-118.43997,34.164861],[-118.43838,34.164862],[-118.43771,34.164862],[-118.4356,34.164863],[-118.4356,34.166677],[-118.43342,34.166678],[-118.43342,34.164865],[-118.43124,34.164866],[-118.43011,34.164866],[-118.43011,34.165045],[-118.42687,34.165057],[-118.4269,34.165288],[-118.42316,34.165417],[-118.42296,34.164867],[-118.42251,34.164868],[-118.42001,34.164868],[-118.41902,34.164869],[-118.41378,34.164869],[-118.413367,34.164869],[-118.41278,34.164869],[-118.41256,34.163246],[-118.412467,34.162636],[-118.41222,34.16168],[-118.4127,34.161682],[-118.41271,34.158521],[-118.41378,34.158534],[-118.41378,34.157614],[-118.41378,34.157028],[-118.41378,34.156827],[-118.41378,34.156731],[-118.41378,34.156634],[-118.41378,34.156343],[-118.4149,34.156425],[-118.41496,34.153988],[-118.41602,34.153987],[-118.418139,34.153987],[-118.41814,34.150357],[-118.41814,34.149319],[-118.41814,34.148171],[-118.418172,34.148157],[-118.41838,34.148049],[-118.41934,34.148315],[-118.420865,34.148356],[-118.421234,34.148558],[-118.42151,34.148787],[-118.4225,34.149688],[-118.42247,34.149534],[-118.42149,34.148627],[-118.42083,34.148181],[-118.41885,34.148148],[-118.41813,34.147752],[-118.41781,34.147472],[-118.41709,34.147092],[-118.41561,34.147098],[-118.4145,34.146828],[-118.413772,34.146325],[-118.415394,34.146745],[-118.41725,34.146714],[-118.41771,34.146933],[-118.4185,34.147564],[-118.41863,34.147645],[-118.419527,34.147863],[-118.420482,34.147803],[-118.42149,34.148133],[-118.4225,34.149042],[-118.4225,34.146574],[-118.4225,34.146378],[-118.42033,34.146018],[-118.420167,34.143595],[-118.42123,34.143595],[-118.42122,34.142789],[-118.42088,34.142075],[-118.419716,34.141145],[-118.41872,34.140493],[-118.4183,34.139626],[-118.41775,34.139653],[-118.415101,34.131552],[-118.4149,34.130982],[-118.414898,34.13089],[-118.41495,34.130467],[-118.41632,34.126725],[-118.41658,34.127076],[-118.41703,34.12722],[-118.417801,34.127131],[-118.41844,34.127271],[-118.41905,34.127438],[-118.41961,34.127712],[-118.41999,34.127959],[-118.41985,34.12974],[-118.42195,34.131321],[-118.42314,34.132239],[-118.42375,34.132041],[-118.42398,34.131587],[-118.425178,34.131325],[-118.42529,34.132205],[-118.42501,34.133545],[-118.42627,34.134544],[-118.42639,34.1336],[-118.426988,34.133132],[-118.42799,34.133039],[-118.42856,34.134123],[-118.42848,34.135158],[-118.42886,34.135451],[-118.4289,34.133943],[-118.42872,34.132688],[-118.42817,34.131274],[-118.42864,34.131445],[-118.42967,34.131624],[-118.42994,34.132037],[-118.43136,34.131763],[-118.43252,34.131909],[-118.43354,34.131448],[-118.43425,34.130786],[-118.4354,34.130592],[-118.43558,34.130624],[-118.435745,34.130671],[-118.436557,34.130953],[-118.43836,34.131579],[-118.43893,34.131494],[-118.43959,34.131227],[-118.44041,34.131497],[-118.44133,34.131139],[-118.44216,34.130898],[-118.44263,34.13079],[-118.44324,34.130597],[-118.44355,34.130428],[-118.443396,34.130308],[-118.445156,34.130426],[-118.44637,34.130521],[-118.4486,34.131229],[-118.44949,34.132048],[-118.451619,34.131771],[-118.45346,34.132075],[-118.454015,34.132364],[-118.45475,34.13292],[-118.45583,34.132803],[-118.45644,34.132189],[-118.4571,34.132036],[-118.45776,34.13162],[-118.4587,34.130657],[-118.45961,34.130475],[-118.46,34.130484],[-118.460356,34.130372],[-118.46076,34.130331],[-118.46097,34.130378],[-118.46138,34.130643],[-118.46163,34.130769],[-118.463,34.132185],[-118.46501,34.131231],[-118.46966,34.1302],[-118.47094,34.130006],[-118.471959,34.128996],[-118.47324,34.12722],[-118.473535,34.126903],[-118.474225,34.12653],[-118.474781,34.126424],[-118.4754,34.12637],[-118.47821,34.126059],[-118.47888,34.126609],[-118.479,34.126814],[-118.4795,34.127941],[-118.47928,34.128961],[-118.47863,34.129394],[-118.47788,34.128759],[-118.47689,34.128945],[-118.47627,34.129535],[-118.47579,34.130617],[-118.47758,34.130558],[-118.47829,34.130176],[-118.47982,34.130333],[-118.48002,34.130253],[-118.48052,34.129853],[-118.480528,34.131189],[-118.480101,34.131851],[-118.47993,34.132644],[-118.48046,34.13346],[-118.481329,34.133715],[-118.48197,34.134086],[-118.483228,34.13425],[-118.48384,34.134594],[-118.48678,34.134304],[-118.48737,34.134691],[-118.4874,34.135385],[-118.486931,34.135775],[-118.48571,34.13608],[-118.485346,34.136559],[-118.48505,34.136852],[-118.48412,34.13752],[-118.48362,34.137705],[-118.48305,34.137676],[-118.4819,34.137367],[-118.48075,34.137557],[-118.47941,34.138063],[-118.47893,34.138482],[-118.47838,34.139298],[-118.47787,34.139685],[-118.47706,34.140029],[-118.476431,34.140558],[-118.47606,34.141178],[-118.47568,34.14155],[-118.47462,34.142326],[-118.47426,34.142709],[-118.47389,34.143652],[-118.47277,34.143561],[-118.4723,34.144595],[-118.47129,34.145741],[-118.471179,34.145758],[-118.470796,34.146742],[-118.47041,34.147508],[-118.471095,34.147631],[-118.47132,34.147413],[-118.47171,34.146876],[-118.472139,34.147132],[-118.472188,34.148023],[-118.47199,34.148391],[-118.47148,34.148652],[-118.47065,34.148762],[-118.47013,34.149296],[-118.47238,34.149669],[-118.47212,34.150747],[-118.47212,34.151782],[-118.472102,34.153797],[-118.47209,34.154791],[-118.47265,34.154867],[-118.472653,34.156073],[-118.47266,34.1585],[-118.47215,34.158578],[-118.47208,34.159397],[-118.47389,34.159405],[-118.47449,34.159352],[-118.47489,34.159354],[-118.47489,34.160316],[-118.47374,34.160312],[-118.47379,34.162127],[-118.472094,34.16207],[-118.47098,34.162286],[-118.47174,34.163181],[-118.47208,34.163603],[-118.47246,34.163985],[-118.4713,34.163047],[-118.47082,34.16308],[-118.47049,34.163373],[-118.47047,34.163413],[-118.47045,34.16347],[-118.470352,34.163484],[-118.46991,34.164179],[-118.46948,34.164823],[-118.46616,34.164847],[-118.466162,34.166661],[-118.46593,34.166854],[-118.46593,34.167288],[-118.461797,34.167289],[-118.46179,34.164849],[-118.4607,34.16485],[-118.459612,34.16485],[-118.45946,34.16485],[-118.45856,34.164851],[-118.45743,34.164851]]]},type:"place",name:"Sherman Oaks",state:"CA",state_and_county_fips:"06037"}},{resource_type:"areas",resource_id:"base64-YXJlYX5wbGFjZX5CdXJiYW5rLCBDQQ",resource_label:"Burbank, CA",resource_sub_type:"place",type:"geo_shape",value:{geometry:{type:"Polygon",coordinates:[[[-118.30714,34.162101],[-118.30696,34.161987],[-118.30667,34.16179],[-118.30743,34.161828],[-118.30807,34.161224],[-118.31032,34.16076],[-118.31206,34.155709],[-118.31249,34.15469],[-118.312615,34.154477],[-118.31405,34.154397],[-118.316,34.154661],[-118.31662,34.155251],[-118.31768,34.156313],[-118.31996,34.156011],[-118.32211,34.155727],[-118.32487,34.153833],[-118.32583,34.153639],[-118.32572,34.153253],[-118.32903,34.150181],[-118.329434,34.149249],[-118.33024,34.148277],[-118.33128,34.147462],[-118.3317,34.147267],[-118.33217,34.147107],[-118.33257,34.147831],[-118.33467,34.147142],[-118.33493,34.147677],[-118.336299,34.147632],[-118.33825,34.146972],[-118.33847,34.147424],[-118.340757,34.146661],[-118.340839,34.146338],[-118.34036,34.145547],[-118.34088,34.145205],[-118.341163,34.145073],[-118.34274,34.144204],[-118.34517,34.142747],[-118.34643,34.145696],[-118.34731,34.147748],[-118.34807,34.149523],[-118.34845,34.150419],[-118.34966,34.153256],[-118.34964,34.15335],[-118.34976,34.153629],[-118.34983,34.153812],[-118.34996,34.153941],[-118.35075,34.155794],[-118.35123,34.156925],[-118.35155,34.157668],[-118.35181,34.158271],[-118.35216,34.159076],[-118.35292,34.160873],[-118.3531,34.161289],[-118.356036,34.161287],[-118.35715,34.161287],[-118.357158,34.164908],[-118.35648,34.164909],[-118.356288,34.16492],[-118.356046,34.164942],[-118.355415,34.164911],[-118.3547,34.164947],[-118.35486,34.165231],[-118.35607,34.168068],[-118.35625,34.168347],[-118.35625,34.168651],[-118.35631,34.168775],[-118.35673,34.169765],[-118.357758,34.172162],[-118.35831,34.175818],[-118.35858,34.177583],[-118.35862,34.17789],[-118.3588,34.179077],[-118.35886,34.179429],[-118.3594,34.183063],[-118.35974,34.18488],[-118.36,34.186593],[-118.3605,34.190333],[-118.360779,34.192188],[-118.360824,34.192485],[-118.361049,34.193974],[-118.36119,34.193971],[-118.36112,34.194385],[-118.361151,34.194651],[-118.36595,34.195516],[-118.37031,34.196379],[-118.37031,34.201197],[-118.362372,34.201197],[-118.36217,34.201419],[-118.36243,34.203164],[-118.36299,34.206818],[-118.35362,34.20672],[-118.353615,34.207558],[-118.353074,34.208196],[-118.35085,34.206679],[-118.35037,34.206672],[-118.34971,34.206662],[-118.34963,34.210681],[-118.34854,34.210662],[-118.348526,34.211172],[-118.34734,34.210887],[-118.34669,34.210524],[-118.34851,34.212041],[-118.3485,34.212309],[-118.348494,34.21268],[-118.34849,34.212802],[-118.34827,34.213],[-118.348903,34.213473],[-118.348594,34.213735],[-118.348588,34.214029],[-118.34842,34.214319],[-118.34774,34.214833],[-118.34744,34.215007],[-118.34599,34.215668],[-118.34559,34.215763],[-118.345081,34.2162],[-118.344783,34.21654],[-118.34412,34.216998],[-118.34389,34.218555],[-118.34391,34.222301],[-118.33806,34.222275],[-118.33849,34.223343],[-118.33523,34.224491],[-118.33547,34.232027],[-118.32659,34.232206],[-118.32653,34.232058],[-118.31805,34.232079],[-118.31803,34.230466],[-118.31038,34.233173],[-118.30841,34.233579],[-118.30656,34.233394],[-118.30451,34.233704],[-118.301574,34.233323],[-118.29916,34.232613],[-118.29789,34.232494],[-118.292037,34.233878],[-118.29044,34.233895],[-118.28884,34.233542],[-118.28735,34.23353],[-118.28628,34.233781],[-118.28433,34.233707],[-118.28336,34.233181],[-118.28096,34.233029],[-118.28135,34.232412],[-118.27982,34.231034],[-118.2792,34.230055],[-118.27979,34.229364],[-118.279654,34.228274],[-118.280576,34.2276],[-118.2816,34.228375],[-118.28176,34.226695],[-118.28094,34.22452],[-118.28005,34.223452],[-118.27939,34.225111],[-118.278016,34.225299],[-118.27672,34.224391],[-118.275646,34.224934],[-118.27439,34.225129],[-118.27431,34.223592],[-118.274864,34.223144],[-118.27559,34.221781],[-118.27772,34.221766],[-118.291225,34.221666],[-118.28828,34.217792],[-118.28272,34.210469],[-118.28021,34.207161],[-118.28021,34.207104],[-118.28013,34.202153],[-118.28007,34.197773],[-118.27996,34.190456],[-118.28241,34.187169],[-118.28251,34.187172],[-118.2826,34.187174],[-118.282883,34.186685],[-118.28327,34.186005],[-118.28334,34.186036],[-118.28769,34.187836],[-118.28783,34.187632],[-118.28827,34.187154],[-118.288812,34.186357],[-118.28946,34.185437],[-118.29,34.184737],[-118.29063,34.184096],[-118.290392,34.183921],[-118.29287,34.18163],[-118.29532,34.179349],[-118.295729,34.178976],[-118.29751,34.177311],[-118.297345,34.176819],[-118.296855,34.176461],[-118.29639,34.176122],[-118.296516,34.17598],[-118.29687,34.175632],[-118.2974,34.175111],[-118.2986,34.174007],[-118.29881,34.173002],[-118.29794,34.172227],[-118.297,34.171599],[-118.298319,34.170401],[-118.2998,34.169046],[-118.30017,34.168657],[-118.3011,34.167797],[-118.30223,34.166718],[-118.30447,34.164621],[-118.30456,34.164529],[-118.30468,34.16442],[-118.30591,34.163257],[-118.306942,34.162285],[-118.30714,34.162101]]]},type:"place",name:"Burbank",state:"CA",state_and_county_fips:"06037"}},{resource_type:"areas",resource_id:"base64-YXJlYX5wbGFjZX5HbGVuZGFsZSwgQ0E",resource_label:"Glendale, CA",resource_sub_type:"place",type:"geo_shape",value:{geometry:{type:"Polygon",coordinates:[[[-118.227877,34.138084],[-118.227849,34.137541],[-118.227818,34.136936],[-118.227751,34.135601],[-118.227916,34.135601],[-118.229236,34.135601],[-118.22929,34.1356],[-118.229344,34.135601],[-118.229567,34.135601],[-118.230022,34.135601],[-118.231028,34.135601],[-118.231838,34.135601],[-118.232342,34.135601],[-118.232629,34.1356],[-118.233598,34.1356],[-118.233601,34.135045],[-118.233605,34.13451],[-118.233714,34.13451],[-118.235516,34.134502],[-118.235687,34.134496],[-118.235864,34.1345],[-118.236273,34.134498],[-118.23632,34.134281],[-118.236342,34.134199],[-118.236387,34.134002],[-118.236484,34.133577],[-118.23649,34.133533],[-118.23655,34.133291],[-118.236608,34.132715],[-118.236423,34.131484],[-118.236102,34.129375],[-118.236019,34.12883],[-118.235717,34.128311],[-118.23554,34.128005],[-118.23531,34.127602],[-118.235238,34.12672],[-118.23548,34.126687],[-118.236057,34.126607],[-118.236939,34.126486],[-118.237367,34.126463],[-118.237579,34.126433],[-118.237981,34.126343],[-118.238785,34.126233],[-118.239887,34.126081],[-118.241061,34.12592],[-118.24221,34.125762],[-118.243134,34.125635],[-118.243823,34.12554],[-118.243978,34.125519],[-118.244619,34.125431],[-118.246774,34.125135],[-118.247644,34.125015],[-118.248033,34.124962],[-118.251139,34.124535],[-118.25209,34.124404],[-118.252657,34.124326],[-118.252864,34.124298],[-118.253265,34.124449],[-118.253306,34.124322],[-118.2536,34.123419],[-118.25364,34.123303],[-118.253037,34.122736],[-118.252669,34.12239],[-118.252242,34.121989],[-118.251448,34.121243],[-118.251133,34.120947],[-118.251597,34.120624],[-118.25256,34.119956],[-118.252578,34.119942],[-118.253534,34.119277],[-118.253548,34.119268],[-118.254014,34.118944],[-118.254067,34.118893],[-118.254135,34.11886],[-118.254157,34.118845],[-118.254258,34.118761],[-118.255476,34.119807],[-118.25617,34.120408],[-118.256621,34.120812],[-118.257063,34.121224],[-118.257146,34.121304],[-118.257294,34.121447],[-118.257529,34.121673],[-118.25759,34.121728],[-118.258009,34.122154],[-118.258424,34.122585],[-118.258829,34.123022],[-118.259225,34.123465],[-118.259611,34.123914],[-118.259989,34.124368],[-118.260356,34.124827],[-118.260669,34.125234],[-118.261069,34.125771],[-118.261406,34.126246],[-118.261734,34.126727],[-118.261768,34.126779],[-118.261873,34.126937],[-118.26195,34.127052],[-118.262,34.127129],[-118.262344,34.127676],[-118.262642,34.128169],[-118.262929,34.128666],[-118.263206,34.129168],[-118.263473,34.129673],[-118.265401,34.133421],[-118.265459,34.133534],[-118.265947,34.134483],[-118.267291,34.137095],[-118.267885,34.138251],[-118.268105,34.138679],[-118.269519,34.141427],[-118.26975,34.141886],[-118.269808,34.141988],[-118.269993,34.142348],[-118.271283,34.144856],[-118.272265,34.146764],[-118.273083,34.148354],[-118.27373,34.149613],[-118.275371,34.152803],[-118.275522,34.153091],[-118.275562,34.153166],[-118.275613,34.153261],[-118.276042,34.15326],[-118.277068,34.153256],[-118.27722,34.153208],[-118.277683,34.153207],[-118.27834,34.153205],[-118.27839,34.153205],[-118.278462,34.153205],[-118.278535,34.153205],[-118.278614,34.153205],[-118.278845,34.153204],[-118.278983,34.153203],[-118.278998,34.153288],[-118.279012,34.153367],[-118.279048,34.153576],[-118.279093,34.153832],[-118.279099,34.153866],[-118.27911,34.153922],[-118.27932,34.155128],[-118.280496,34.156333],[-118.282672,34.156774],[-118.283809,34.156538],[-118.285987,34.156082],[-118.287469,34.155771],[-118.289004,34.155749],[-118.289425,34.155751],[-118.289777,34.155752],[-118.290155,34.155754],[-118.291285,34.155782],[-118.29154,34.155777],[-118.291826,34.155996],[-118.292153,34.156247],[-118.293277,34.15711],[-118.293727,34.157387],[-118.293964,34.1576],[-118.295148,34.158456],[-118.295602,34.158798],[-118.295873,34.158809],[-118.29627,34.158826],[-118.296683,34.158842],[-118.297058,34.158857],[-118.297129,34.15886],[-118.297415,34.158871],[-118.297744,34.158575],[-118.29784,34.158577],[-118.297854,34.158477],[-118.297951,34.158391],[-118.298031,34.158319],[-118.29821,34.158158],[-118.298481,34.157914],[-118.298638,34.157808],[-118.29883,34.157683],[-118.298947,34.157699],[-118.301393,34.158218],[-118.302332,34.158445],[-118.302568,34.158498],[-118.302739,34.158549],[-118.30282,34.158589],[-118.302826,34.158504],[-118.304335,34.15884],[-118.304769,34.159155],[-118.304861,34.159222],[-118.30502,34.159341],[-118.306257,34.160236],[-118.306246,34.160267],[-118.307071,34.160827],[-118.307248,34.160956],[-118.307849,34.161152],[-118.30806,34.161221],[-118.30807,34.161224],[-118.307431,34.161828],[-118.307276,34.161972],[-118.307137,34.162101],[-118.306942,34.162285],[-118.305911,34.163257],[-118.304679,34.16442],[-118.304564,34.164529],[-118.304467,34.164621],[-118.304256,34.164823],[-118.302233,34.166718],[-118.301098,34.167797],[-118.300927,34.167957],[-118.30017,34.168657],[-118.299796,34.169046],[-118.2984,34.17033],[-118.298319,34.170401],[-118.296997,34.171599],[-118.297377,34.171869],[-118.297944,34.172227],[-118.29881,34.173002],[-118.29918,34.173276],[-118.299283,34.17335],[-118.298993,34.173614],[-118.29891,34.173699],[-118.2986,34.174007],[-118.2974,34.175111],[-118.296871,34.175632],[-118.296516,34.17598],[-118.296392,34.176122],[-118.296168,34.176326],[-118.296639,34.176672],[-118.297123,34.177026],[-118.297511,34.177311],[-118.29735,34.177457],[-118.295729,34.178976],[-118.295318,34.179349],[-118.292869,34.18163],[-118.291822,34.182598],[-118.290392,34.183921],[-118.289687,34.184568],[-118.289999,34.184737],[-118.28946,34.185437],[-118.289383,34.185554],[-118.288812,34.186357],[-118.288272,34.187154],[-118.287831,34.187632],[-118.28769,34.187836],[-118.284481,34.186507],[-118.28334,34.186036],[-118.283272,34.186005],[-118.282698,34.186778],[-118.282408,34.187169],[-118.27996,34.190456],[-118.279961,34.190554],[-118.279965,34.190791],[-118.279978,34.191702],[-118.280066,34.197773],[-118.280135,34.202153],[-118.280209,34.207004],[-118.280209,34.207104],[-118.28021,34.207161],[-118.282719,34.210469],[-118.28333,34.211273],[-118.285575,34.21423],[-118.286993,34.216096],[-118.288282,34.217792],[-118.288663,34.218293],[-118.290969,34.221329],[-118.291225,34.221666],[-118.289514,34.221678],[-118.282278,34.221732],[-118.27772,34.221766],[-118.275587,34.221781],[-118.267669,34.22184],[-118.266871,34.221846],[-118.26686,34.223411],[-118.26685,34.224391],[-118.26681,34.230677],[-118.266804,34.231094],[-118.266803,34.231235],[-118.266801,34.231444],[-118.266798,34.231856],[-118.266786,34.233542],[-118.266781,34.234236],[-118.266775,34.234988],[-118.26677,34.235775],[-118.266736,34.240268],[-118.26673,34.240459],[-118.266733,34.240796],[-118.26659,34.24071],[-118.266569,34.240694],[-118.266024,34.240356],[-118.266023,34.240512],[-118.26602,34.240957],[-118.266016,34.241535],[-118.266016,34.241569],[-118.266015,34.241651],[-118.266008,34.242577],[-118.266008,34.242658],[-118.266008,34.242714],[-118.266006,34.242973],[-118.266004,34.243182],[-118.265999,34.243892],[-118.266015,34.244583],[-118.266016,34.244608],[-118.26603,34.245198],[-118.26603,34.24546],[-118.266052,34.246194],[-118.266053,34.246221],[-118.266083,34.247495],[-118.266084,34.247589],[-118.266044,34.247768],[-118.266691,34.247772],[-118.266689,34.247928],[-118.266686,34.248493],[-118.26668,34.249461],[-118.266675,34.250309],[-118.26667,34.250779],[-118.265297,34.250265],[-118.265295,34.250402],[-118.265264,34.25238],[-118.257174,34.252275],[-118.2565,34.252266],[-118.256507,34.252788],[-118.256571,34.25781],[-118.256635,34.262874],[-118.25665,34.264056],[-118.25669,34.26719],[-118.254612,34.2672],[-118.247621,34.267232],[-118.245116,34.267189],[-118.24201,34.267136],[-118.238903,34.267084],[-118.238519,34.267091],[-118.238493,34.267091],[-118.238495,34.267082],[-118.238504,34.266402],[-118.238613,34.259658],[-118.238629,34.258862],[-118.23874,34.252499],[-118.238807,34.252502],[-118.238808,34.25226],[-118.243372,34.252306],[-118.243377,34.251747],[-118.243468,34.246595],[-118.243642,34.246709],[-118.24375,34.246682],[-118.243725,34.246521],[-118.243879,34.246324],[-118.244095,34.246048],[-118.244116,34.245925],[-118.244121,34.245925],[-118.244182,34.245934],[-118.244215,34.245939],[-118.24426,34.245946],[-118.244503,34.245982],[-118.24471,34.246088],[-118.245179,34.246321],[-118.24528,34.246372],[-118.245458,34.246197],[-118.245657,34.245997],[-118.245618,34.245956],[-118.245658,34.245881],[-118.24585,34.245507],[-118.245906,34.245404],[-118.24593,34.245357],[-118.245945,34.245331],[-118.245958,34.245301],[-118.245968,34.245275],[-118.24598,34.245242],[-118.245984,34.24521],[-118.245989,34.245175],[-118.245991,34.245153],[-118.245994,34.245124],[-118.24603,34.245196],[-118.246299,34.245242],[-118.246342,34.245139],[-118.246609,34.244503],[-118.246705,34.244434],[-118.246786,34.244374],[-118.246919,34.244276],[-118.246982,34.244242],[-118.24698,34.244185],[-118.246978,34.244172],[-118.24698,34.244148],[-118.246982,34.244117],[-118.246989,34.244078],[-118.246998,34.244047],[-118.247007,34.244024],[-118.247253,34.244113],[-118.247473,34.244192],[-118.247685,34.243791],[-118.247775,34.243829],[-118.24809,34.243943],[-118.248281,34.244025],[-118.248388,34.244048],[-118.248461,34.244047],[-118.248512,34.244009],[-118.248528,34.243957],[-118.248545,34.24385],[-118.248561,34.24359],[-118.248563,34.242988],[-118.248567,34.241465],[-118.248571,34.241397],[-118.24858,34.241309],[-118.248589,34.240435],[-118.24859,34.240296],[-118.248594,34.239516],[-118.248594,34.239481],[-118.248585,34.239372],[-118.24858,34.239322],[-118.248595,34.238807],[-118.248603,34.238473],[-118.248604,34.238403],[-118.248587,34.237649],[-118.248586,34.237613],[-118.248589,34.237202],[-118.248595,34.236939],[-118.248586,34.236317],[-118.248605,34.235891],[-118.248605,34.235822],[-118.248603,34.235444],[-118.2486,34.234955],[-118.248602,34.234912],[-118.24862,34.234151],[-118.248623,34.234074],[-118.248633,34.233994],[-118.248642,34.233243],[-118.248643,34.233181],[-118.24864,34.23307],[-118.248623,34.232368],[-118.248623,34.232337],[-118.24861,34.232282],[-118.248611,34.232228],[-118.24862,34.231479],[-118.248623,34.231375],[-118.248625,34.230968],[-118.248626,34.230823],[-118.24863,34.230706],[-118.248629,34.230493],[-118.24863,34.230342],[-118.248632,34.230162],[-118.248637,34.229566],[-118.248637,34.229513],[-118.248656,34.229095],[-118.248657,34.228683],[-118.248658,34.228148],[-118.248659,34.227648],[-118.248659,34.22741],[-118.24866,34.227213],[-118.24867,34.226768],[-118.24867,34.226527],[-118.248673,34.226295],[-118.248676,34.225827],[-118.248678,34.225396],[-118.24869,34.225023],[-118.248697,34.224814],[-118.24871,34.224022],[-118.24871,34.223892],[-118.248713,34.223832],[-118.24872,34.223646],[-118.248729,34.223369],[-118.24874,34.22301],[-118.248753,34.222717],[-118.248753,34.222495],[-118.248753,34.222241],[-118.248575,34.222235],[-118.248437,34.222244],[-118.247781,34.221964],[-118.247722,34.221939],[-118.247539,34.221861],[-118.247506,34.221847],[-118.24748,34.221835],[-118.24735,34.22178],[-118.247188,34.221711],[-118.247223,34.221671],[-118.246849,34.221516],[-118.2465,34.221371],[-118.246128,34.221217],[-118.245783,34.221075],[-118.245463,34.220943],[-118.245407,34.220911],[-118.245084,34.220726],[-118.244903,34.220621],[-118.244767,34.220539],[-118.24465,34.22047],[-118.244454,34.220338],[-118.244326,34.220249],[-118.244337,34.219605],[-118.244337,34.219568],[-118.244352,34.218706],[-118.24403,34.2185],[-118.243848,34.21869],[-118.243726,34.218831],[-118.243592,34.218747],[-118.243542,34.218715],[-118.243501,34.21869],[-118.243462,34.218666],[-118.243467,34.218972],[-118.243467,34.219069],[-118.242531,34.218493],[-118.241939,34.218128],[-118.241907,34.218094],[-118.241584,34.217888],[-118.241536,34.217858],[-118.241501,34.217836],[-118.241453,34.217806],[-118.241332,34.217731],[-118.241279,34.217699],[-118.241127,34.217604],[-118.241062,34.217563],[-118.240912,34.21747],[-118.240848,34.21743],[-118.240706,34.217341],[-118.240634,34.217297],[-118.240545,34.217241],[-118.2404,34.217152],[-118.2404,34.21698],[-118.24009,34.21679],[-118.239956,34.21679],[-118.23996,34.21768],[-118.23978,34.217669],[-118.239678,34.217607],[-118.239531,34.217518],[-118.23953,34.217465],[-118.23953,34.217277],[-118.239531,34.217115],[-118.239531,34.217076],[-118.239531,34.21692],[-118.239532,34.21684],[-118.239533,34.216604],[-118.23935,34.21649],[-118.239314,34.216468],[-118.239295,34.216456],[-118.239096,34.216335],[-118.238877,34.216201],[-118.23866,34.216069],[-118.238505,34.215975],[-118.237575,34.215406],[-118.237577,34.215075],[-118.23758,34.214667],[-118.237669,34.214563],[-118.237542,34.214484],[-118.2367,34.213964],[-118.235575,34.213267],[-118.235465,34.213199],[-118.2352,34.213031],[-118.235199,34.212163],[-118.235199,34.211541],[-118.235209,34.210896],[-118.235227,34.20974],[-118.235237,34.209136],[-118.23511,34.209058],[-118.234982,34.208975],[-118.23485,34.208892],[-118.234718,34.208809],[-118.234586,34.208726],[-118.234454,34.208644],[-118.234322,34.208561],[-118.23419,34.208478],[-118.234057,34.208394],[-118.233632,34.208129],[-118.233536,34.208069],[-118.233394,34.20798],[-118.233154,34.20783],[-118.233153,34.207939],[-118.233013,34.207916],[-118.233011,34.208003],[-118.232574,34.208115],[-118.232573,34.208248],[-118.232505,34.208266],[-118.232465,34.208274],[-118.232361,34.2083],[-118.23225,34.208328],[-118.232162,34.20815],[-118.231995,34.20781],[-118.231967,34.207689],[-118.231939,34.207569],[-118.23152,34.207342],[-118.23136,34.207286],[-118.231244,34.207242],[-118.231104,34.20719],[-118.231058,34.207174],[-118.230969,34.207141],[-118.230727,34.207637],[-118.230707,34.207629],[-118.2306,34.207588],[-118.230585,34.207581],[-118.23063,34.207485],[-118.230836,34.207096],[-118.230683,34.207041],[-118.230199,34.206865],[-118.229722,34.206693],[-118.229671,34.206674],[-118.22942,34.207148],[-118.229113,34.20704],[-118.229335,34.206619],[-118.229349,34.206575],[-118.229356,34.206557],[-118.22891,34.206393],[-118.22865,34.206875],[-118.228554,34.206841],[-118.228455,34.206806],[-118.228353,34.206778],[-118.228443,34.2066],[-118.228494,34.2065],[-118.2285,34.206488],[-118.228544,34.206402],[-118.228605,34.206281],[-118.228347,34.206186],[-118.228255,34.206153],[-118.22813,34.206122],[-118.228075,34.206122],[-118.227998,34.206074],[-118.227927,34.206028],[-118.227608,34.205981],[-118.227582,34.206073],[-118.227564,34.206139],[-118.227473,34.206455],[-118.227448,34.206549],[-118.227372,34.206535],[-118.227115,34.206486],[-118.226952,34.206459],[-118.226803,34.206434],[-118.22652,34.20642],[-118.226116,34.206409],[-118.225666,34.206427],[-118.22562,34.206429],[-118.225628,34.20627],[-118.225728,34.205736],[-118.225702,34.205732],[-118.225119,34.205641],[-118.224899,34.205705],[-118.224685,34.205769],[-118.22432,34.205721],[-118.224293,34.205719],[-118.224157,34.2057],[-118.22418,34.205596],[-118.22413,34.20559],[-118.223451,34.205478],[-118.223393,34.205487],[-118.2234,34.205513],[-118.223438,34.205645],[-118.223434,34.20574],[-118.223416,34.205847],[-118.223414,34.205862],[-118.223409,34.205888],[-118.223393,34.205986],[-118.223285,34.205961],[-118.222676,34.205796],[-118.22237,34.205714],[-118.222339,34.205708],[-118.22227,34.205698],[-118.222211,34.20569],[-118.22215,34.205684],[-118.22211,34.205682],[-118.222113,34.20577],[-118.222133,34.206109],[-118.221775,34.206117],[-118.221252,34.206123],[-118.221136,34.206121],[-118.2211,34.206136],[-118.22098,34.206191],[-118.220983,34.206248],[-118.220474,34.206258],[-118.220264,34.20626],[-118.220266,34.20603],[-118.220267,34.20555],[-118.220267,34.205509],[-118.220267,34.205432],[-118.220267,34.205221],[-118.220268,34.20503],[-118.220133,34.205059],[-118.219999,34.205097],[-118.219859,34.205127],[-118.219719,34.205165],[-118.219627,34.205192],[-118.21946,34.20525],[-118.219322,34.205292],[-118.219227,34.205322],[-118.219078,34.205366],[-118.219015,34.205389],[-118.218939,34.205405],[-118.218798,34.205441],[-118.218711,34.205463],[-118.218646,34.205476],[-118.218589,34.205487],[-118.218493,34.205509],[-118.218349,34.205537],[-118.218283,34.205547],[-118.218183,34.205566],[-118.218014,34.205595],[-118.217838,34.205614],[-118.217662,34.205633],[-118.217451,34.205651],[-118.217433,34.205647],[-118.217142,34.205672],[-118.21658,34.205711],[-118.216599,34.205845],[-118.216563,34.205861],[-118.216284,34.206038],[-118.215915,34.206145],[-118.215801,34.206177],[-118.21578,34.206185],[-118.21574,34.206196],[-118.215068,34.20638],[-118.215005,34.206404],[-118.215005,34.20626],[-118.214996,34.205639],[-118.214998,34.205332],[-118.215002,34.204701],[-118.215007,34.203804],[-118.215007,34.203536],[-118.215483,34.20354],[-118.215696,34.203239],[-118.216777,34.203079],[-118.216797,34.203076],[-118.217069,34.203036],[-118.217171,34.203021],[-118.217678,34.202946],[-118.21768,34.202608],[-118.21768,34.202547],[-118.217683,34.201936],[-118.217699,34.20115],[-118.217209,34.200977],[-118.217,34.200464],[-118.21693,34.199794],[-118.216901,34.1995],[-118.216885,34.199357],[-118.216829,34.198821],[-118.21672,34.197785],[-118.216284,34.197623],[-118.215336,34.197275],[-118.215327,34.197261],[-118.2152,34.197075],[-118.214592,34.196185],[-118.212808,34.19534],[-118.212643,34.195061],[-118.213444,34.194085],[-118.213007,34.193608],[-118.212744,34.19332],[-118.212549,34.193114],[-118.21232,34.192872],[-118.212162,34.192703],[-118.211008,34.19276],[-118.210975,34.192737],[-118.210554,34.192435],[-118.210464,34.192372],[-118.209086,34.191378],[-118.208895,34.19124],[-118.208085,34.190656],[-118.208045,34.19058],[-118.20802,34.19047],[-118.208015,34.190436],[-118.207999,34.190375],[-118.207973,34.190324],[-118.207931,34.190275],[-118.207913,34.190128],[-118.207894,34.19001],[-118.20788,34.189921],[-118.207784,34.189304],[-118.207804,34.189204],[-118.207826,34.189086],[-118.207935,34.188525],[-118.207965,34.188361],[-118.207976,34.188297],[-118.207985,34.188243],[-118.207998,34.188166],[-118.208031,34.187983],[-118.208046,34.187895],[-118.208103,34.187572],[-118.208065,34.187561],[-118.20785,34.187498],[-118.207727,34.187464],[-118.207579,34.187421],[-118.207437,34.18738],[-118.20717,34.187303],[-118.206575,34.187132],[-118.205994,34.186964],[-118.205977,34.186959],[-118.205924,34.186944],[-118.205855,34.186925],[-118.205824,34.186916],[-118.205818,34.186906],[-118.205598,34.186654],[-118.20542,34.186451],[-118.20518,34.186187],[-118.20514,34.186143],[-118.204871,34.185842],[-118.204784,34.185746],[-118.204753,34.185709],[-118.204727,34.18568],[-118.204716,34.185667],[-118.204399,34.185455],[-118.204104,34.185258],[-118.203726,34.185005],[-118.203537,34.184878],[-118.203414,34.184796],[-118.203227,34.184671],[-118.203014,34.184528],[-118.201791,34.183714],[-118.200406,34.182705],[-118.199368,34.18214],[-118.199304,34.182106],[-118.199168,34.182005],[-118.19911,34.181916],[-118.199059,34.181817],[-118.198867,34.181691],[-118.198797,34.181659],[-118.198444,34.181497],[-118.198192,34.18131],[-118.197974,34.181135],[-118.19792,34.181095],[-118.197795,34.180996],[-118.197435,34.180712],[-118.197408,34.180689],[-118.197207,34.180531],[-118.19714,34.180479],[-118.197104,34.180502],[-118.196438,34.179894],[-118.195953,34.179955],[-118.195784,34.179988],[-118.195338,34.180106],[-118.194607,34.180148],[-118.194167,34.180209],[-118.193706,34.18027],[-118.193386,34.180313],[-118.192926,34.180375],[-118.192724,34.180402],[-118.1926,34.180418],[-118.192451,34.180439],[-118.192412,34.180443],[-118.19236,34.18045],[-118.192343,34.180415],[-118.192275,34.180282],[-118.191839,34.180307],[-118.19155,34.180323],[-118.191501,34.180243],[-118.191396,34.180223],[-118.191228,34.180194],[-118.190928,34.180141],[-118.190865,34.18013],[-118.190773,34.180026],[-118.190723,34.17997],[-118.190456,34.179667],[-118.19037,34.179569],[-118.19026,34.179444],[-118.190105,34.179265],[-118.19009,34.179249],[-118.190042,34.179192],[-118.189916,34.179252],[-118.189724,34.179166],[-118.189525,34.179077],[-118.18954,34.179044],[-118.189518,34.179031],[-118.189357,34.178931],[-118.189268,34.178807],[-118.189197,34.178739],[-118.189096,34.178656],[-118.189036,34.178618],[-118.188922,34.178564],[-118.188996,34.178526],[-118.189294,34.178345],[-118.18927,34.178318],[-118.189105,34.178173],[-118.188814,34.177916],[-118.189,34.177537],[-118.189103,34.177312],[-118.190111,34.175132],[-118.19043,34.174412],[-118.190453,34.174368],[-118.190491,34.174284],[-118.190885,34.173393],[-118.19097,34.173204],[-118.190811,34.172051],[-118.190742,34.171868],[-118.19072,34.171736],[-118.190478,34.170319],[-118.190264,34.16995],[-118.189931,34.169378],[-118.189883,34.169296],[-118.189764,34.169094],[-118.18971,34.169096],[-118.189066,34.169078],[-118.189022,34.168984],[-118.188274,34.167465],[-118.187906,34.166724],[-118.188126,34.166387],[-118.188156,34.166327],[-118.188447,34.165746],[-118.18848,34.165658],[-118.188337,34.165608],[-118.187189,34.165207],[-118.186562,34.164429],[-118.185836,34.163528],[-118.184859,34.160067],[-118.18485,34.160029],[-118.184817,34.159915],[-118.184776,34.159768],[-118.184606,34.159755],[-118.184251,34.159728],[-118.184157,34.159732],[-118.184039,34.159275],[-118.184016,34.159189],[-118.183985,34.159065],[-118.183623,34.157687],[-118.183494,34.157193],[-118.183382,34.156764],[-118.18332,34.156522],[-118.183167,34.155945],[-118.183041,34.15546],[-118.182993,34.155279],[-118.18288,34.154849],[-118.18273,34.154286],[-118.182555,34.153603],[-118.182545,34.153566],[-118.18231,34.152683],[-118.182296,34.152644],[-118.182293,34.152618],[-118.1822,34.152261],[-118.182123,34.151971],[-118.182076,34.151792],[-118.181955,34.151328],[-118.18178,34.150676],[-118.181636,34.150113],[-118.181583,34.149909],[-118.181589,34.149891],[-118.181595,34.149869],[-118.181816,34.149129],[-118.181835,34.149063],[-118.182338,34.149068],[-118.182464,34.149069],[-118.183618,34.149079],[-118.183878,34.149081],[-118.188964,34.149074],[-118.190409,34.149049],[-118.194414,34.149044],[-118.196945,34.149047],[-118.19819,34.149045],[-118.198191,34.151626],[-118.19892,34.151154],[-118.199713,34.151045],[-118.199951,34.151023],[-118.200137,34.150986],[-118.20047,34.15094],[-118.200514,34.150943],[-118.200561,34.150928],[-118.201507,34.150798],[-118.202701,34.150633],[-118.203573,34.149692],[-118.20377,34.149566],[-118.203929,34.149468],[-118.204229,34.149279],[-118.205432,34.147431],[-118.205489,34.147427],[-118.206007,34.147389],[-118.207723,34.147247],[-118.208774,34.146507],[-118.20944,34.146419],[-118.210021,34.146343],[-118.210203,34.146319],[-118.210413,34.146291],[-118.210692,34.146255],[-118.210972,34.14622],[-118.211614,34.147176],[-118.211835,34.147189],[-118.212009,34.147199],[-118.213196,34.147268],[-118.216204,34.147225],[-118.216793,34.147526],[-118.219179,34.147514],[-118.219346,34.148008],[-118.219436,34.148275],[-118.219762,34.14835],[-118.221987,34.148859],[-118.22245,34.149254],[-118.22458,34.149347],[-118.224638,34.149348],[-118.224692,34.149351],[-118.224793,34.149355],[-118.224967,34.149363],[-118.225,34.149374],[-118.225288,34.149471],[-118.225339,34.149486],[-118.225388,34.149505],[-118.225562,34.149564],[-118.225853,34.149662],[-118.226043,34.149726],[-118.226231,34.149789],[-118.226939,34.14861],[-118.226967,34.148436],[-118.226997,34.148164],[-118.227009,34.147891],[-118.227004,34.147628],[-118.227452,34.147755],[-118.227505,34.147669],[-118.22755,34.147585],[-118.227641,34.147441],[-118.22765,34.147423],[-118.22766,34.147407],[-118.227714,34.147319],[-118.227756,34.147248],[-118.227864,34.147076],[-118.22796,34.146934],[-118.228,34.146851],[-118.228084,34.146721],[-118.228317,34.146795],[-118.228451,34.146838],[-118.22852,34.146861],[-118.228602,34.146886],[-118.228683,34.146735],[-118.228576,34.146666],[-118.228488,34.146609],[-118.228446,34.146582],[-118.228237,34.146447],[-118.22829,34.146355],[-118.228577,34.145881],[-118.228774,34.146032],[-118.22877,34.145897],[-118.228767,34.144488],[-118.228765,34.143562],[-118.228764,34.142837],[-118.228776,34.142768],[-118.228791,34.142699],[-118.22879,34.140252],[-118.228785,34.139367],[-118.228784,34.139073],[-118.228841,34.139073],[-118.22916,34.139073],[-118.22916,34.139055],[-118.229149,34.138079],[-118.228947,34.13808],[-118.228629,34.138081],[-118.227877,34.138084]]]},type:"place",name:"Glendale",state:"CA",state_and_county_fips:"06037"}}]}},market_id:"2228",page:{number:1},sort:" data_source_listing_updated_at"})});if(!t.ok)throw new Error("Failed to fetch listings");return(await t.json()).data.map(r=>{const n=r.attributes,a=n.listing_status==="Active"?"For Sale":n.listing_status,i=n.street||n.title||"",o=n.city||"",l=n.state_code||"",c=n.zip||"";return{id:r.id,image:n.cover_photo_url||n.photo_urls&&n.photo_urls[0]||"",status:a,address:i,fullAddress:`${i}, ${o}, ${l} ${c}`.trim(),beds:n.bedrooms||void 0,baths:n.bathrooms?Math.floor(n.bathrooms):void 0,sqft:n.square_feet?n.square_feet.toLocaleString():void 0,acres:n.lot_acre&&!n.square_feet?n.lot_acre.toString():void 0,price:n.price_in_dollars?`$${n.price_in_dollars.toLocaleString()}`:"Price Upon Request",url:`https://www.atozregroup.com/listing/california-regional-mls~${r.id.split("~")[1]||r.id}`}})},eD=()=>{const[t,e]=p.useState([]),[r,n]=p.useState(!0),[a,i]=p.useState(null);return p.useEffect(()=>{ZL().then(e).catch(o=>i(o.message)).finally(()=>n(!1))},[]),s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${Md})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/70"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:[s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Commercial Properties"}),s.jsx("p",{className:"text-white/80 mt-4 text-lg tracking-wide",children:"Office, Retail, Industrial & Mixed Use"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Featured Commercial Listings"}),r&&s.jsx("div",{className:"flex justify-center items-center py-20",children:s.jsx(la,{className:"w-8 h-8 animate-spin text-primary"})}),a&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"Unable to load listings. Please try again later."})}),!r&&!a&&t.length>0&&s.jsx("div",{className:"grid md:grid-cols-2 gap-8 lg:gap-12",children:t.map(o=>s.jsxs("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",className:"group block luxury-card overflow-hidden hover-lift",children:[s.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden",children:[s.jsx("img",{src:o.image,alt:o.address,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),s.jsx("div",{className:"absolute top-4 right-4",children:s.jsx("span",{className:`px-4 py-2 text-xs tracking-[0.1em] uppercase font-medium ${o.status==="For Sale"?"bg-white text-background":o.status==="Pending"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:o.status})})]}),s.jsxs("div",{className:"p-6",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-2 group-hover:text-primary transition-colors",children:o.address}),s.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:o.fullAddress}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-4",children:[o.sqft&&s.jsxs("span",{children:[o.sqft," Sq.Ft."]}),o.acres&&s.jsxs("span",{children:[o.acres," Acres"]})]}),s.jsx("p",{className:"font-heading text-2xl text-foreground",children:o.price})]})]},o.id))}),!r&&!a&&t.length===0&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"No commercial listings available at this time."})})]})}),s.jsx("section",{className:"py-16 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6",children:"Looking for Commercial Space?"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Contact us for personalized commercial real estate solutions."}),s.jsx("a",{href:"/idx",rel:"noopener noreferrer",className:"luxury-button-primary inline-block",children:"View All Properties"})]})})]}),s.jsx(he,{})]})},tD=()=>{const{data:t,isLoading:e,error:r}=$3(100),n=(t==null?void 0:t.listings)||[],a=(t==null?void 0:t.roles)||{};return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"py-20 lg:py-32 bg-section-bg relative bg-cover bg-center",style:{backgroundImage:`url(${Md})`},children:[s.jsx("div",{className:"absolute inset-0 bg-section-bg/70"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:[s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Past Transactions"}),s.jsx("p",{className:"text-muted-foreground mt-4 max-w-2xl mx-auto",children:"All closed transactions where Rick Orr represented the buyer, seller, or served as co-agent"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[e&&s.jsx("div",{className:"flex justify-center items-center py-20",children:s.jsx(la,{className:"w-8 h-8 animate-spin text-primary"})}),r&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"Unable to load transactions. Please try again later."})}),!e&&!r&&n.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"text-center text-muted-foreground mb-12",children:[n.length," closed transaction",n.length!==1?"s":""]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:n.map(i=>{const o=i.attributes,l=D3(a[i.id]),c=o.cover_photo_url||o.photo_urls&&o.photo_urls[0]||"",u=o.sold_price_in_dollars||o.price_in_dollars,d=o.street||o.title||"Address",h=[o.city,o.state_code].filter(Boolean).join(", ");return s.jsxs(Y,{to:`/listing/${i.id}`,className:"group block",children:[s.jsxs("div",{className:"relative aspect-[4/3] overflow-hidden mb-4",children:[c?s.jsx("img",{src:c,alt:d,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):s.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:s.jsx("span",{className:"text-muted-foreground text-sm",children:"No Photo"})}),s.jsx("div",{className:"absolute top-4 left-4 bg-background/80 text-foreground px-3 py-1 text-xs tracking-wider uppercase",children:l}),s.jsx("div",{className:"absolute bottom-4 right-4 bg-card text-foreground px-4 py-2 font-heading text-lg",children:u?Pu(u):"Price N/A"})]}),s.jsx("h3",{className:"font-heading text-xl text-foreground mb-1",children:d}),s.jsx("p",{className:"text-muted-foreground text-sm mb-2",children:h}),o.closing_date&&s.jsxs("p",{className:"text-primary text-xs tracking-wider uppercase",children:["Closed"," ",new Date(o.closing_date).toLocaleDateString("en-US",{month:"short",year:"numeric"})]})]},i.id)})})]}),!e&&!r&&n.length===0&&s.jsx("div",{className:"text-center py-20",children:s.jsx("p",{className:"text-muted-foreground",children:"No transactions to display at this time."})})]})}),s.jsx("section",{className:"py-16 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6",children:"Looking for More Options?"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Browse all available properties in Austin and find your perfect home."}),s.jsx("a",{href:"/idx",className:"luxury-button-primary inline-block",children:"View All Properties"})]})})]}),s.jsx(he,{})]})},rD=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Sold Gallery | Rick Orr | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"View Rick Orr's luxury sold properties including the $23M Tortuga estate and $14M+ Fifth & West penthouse. Top 25 Austin transactions 2025."})]}),s.jsx(de,{}),s.jsx("main",{className:"bg-background pt-24",children:s.jsx(c8,{})}),s.jsx(he,{})]}),nD=()=>s.jsxs("div",{className:"min-h-screen bg-white",children:[s.jsx(de,{}),s.jsx("section",{className:"pt-32 pb-16 bg-gray-900",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("p",{className:"font-body tracking-[0.2em] uppercase text-sm font-medium mb-4 text-gray-300 text-xl",children:"Los Angeles Real Estate"}),s.jsx("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl font-semibold mb-6 tracking-[0.15em] uppercase text-white",children:"Neighborhoods"}),s.jsx("p",{className:"text-gray-300 max-w-2xl mx-auto text-lg",children:"Explore Los Angeles's most desirable neighborhoods and find your perfect home in Southern California."})]})}),s.jsx(m8,{}),s.jsx(he,{})]}),sD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${f8})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/60"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Tarrytown"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"About the Neighborhood"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Tarrytown at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto text-lg leading-relaxed",children:"Tarrytown is one of Austin's most prestigious neighborhoods, featuring stately homes, mature tree-lined streets, and an unbeatable central location. This established community offers timeless elegance just minutes from downtown."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"$2.5M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Median Home Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"78703"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Zip Code"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"1930s"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Established"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"5min"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"To Downtown"})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Neighborhood Highlights"}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Historic Estates"}),s.jsx("p",{className:"text-muted-foreground",children:"Grand homes from the 1930s-1950s sit alongside stunning new construction. Large lots, mature oaks, and architectural character define this prestigious area."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Prime Location"}),s.jsx("p",{className:"text-muted-foreground",children:"Minutes from downtown, MoPac, and Lake Austin. Easy access to the city's best dining, shopping, and cultural attractions."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Lake Austin Access"}),s.jsx("p",{className:"text-muted-foreground",children:"Close proximity to Lake Austin, Red Bud Isle, and miles of hike and bike trails. Perfect for outdoor enthusiasts."})]})]})]})}),s.jsx(Er,{title:"Properties in Tarrytown",maxDisplay:10,seeMoreUrl:"/idx",suggestionId:"base64-YXJlYX5uZWlnaGJvcmhvb2R-VGFycnl0b3duLCBBdXN0aW4sIFRY",suggestionLabel:"Tarrytown, Austin, TX",filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]}},pageSize:40})]}),s.jsx(he,{})]}),aD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${h8})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/60"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Travis Heights"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"About the Neighborhood"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Travis Heights at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto text-lg leading-relaxed",children:"Travis Heights is one of Austin's most beloved neighborhoods, known for its eclectic mix of historic bungalows, tree-lined streets, and proximity to downtown. This vibrant community offers a perfect blend of urban convenience and neighborhood charm."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"$1.2M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Median Home Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"78704"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Zip Code"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"A+"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Walk Score"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"1920s"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Established"})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Neighborhood Highlights"}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Historic Character"}),s.jsx("p",{className:"text-muted-foreground",children:"Charming 1920s-1940s bungalows and craftsman homes line the tree-shaded streets, offering unique architectural character and established landscaping."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"South Congress Ave"}),s.jsx("p",{className:"text-muted-foreground",children:"Walking distance to SoCo's famous shops, restaurants, and entertainment venues. Experience Austin's best local boutiques and eateries."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Outdoor Living"}),s.jsx("p",{className:"text-muted-foreground",children:"Easy access to Lady Bird Lake hike and bike trails, Stacy Park Pool, and numerous green spaces for an active Austin lifestyle."})]})]})]})}),s.jsx(Er,{title:"Properties in Travis Heights",maxDisplay:10,seeMoreUrl:"/idx",suggestionId:"base64-YXJlYX5uZWlnaGJvcmhvb2R-VHJhdmlzIEhlaWdodHMgLyBTb3V0aCBSaXZlciBDaXR5LCBBdXN0aW4sIFRY",suggestionLabel:"Travis Heights / South River City, Austin, TX",filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]}},pageSize:40})]}),s.jsx(he,{})]}),iD="/assets/dripping-springs-BZNXUZTQ.jpg",oD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${iD})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/60"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Dripping Springs"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"About the Neighborhood"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Dripping Springs at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto text-lg leading-relaxed",children:'Known as the "Gateway to the Hill Country," Dripping Springs offers sprawling estates, award-winning wineries, and a charming small-town feel. This rapidly growing community attracts families and professionals seeking space and natural beauty.'})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"$1.5M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Median Home Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"78620"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Zip Code"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"50+"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Wineries & Distilleries"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"25mi"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"From Downtown"})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Neighborhood Highlights"}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Wine Country"}),s.jsx("p",{className:"text-muted-foreground",children:"Home to over 50 wineries, breweries, and distilleries along the famous Hill Country Wine Trail. Experience world-class tastings and stunning vineyard views."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Luxury Estates"}),s.jsx("p",{className:"text-muted-foreground",children:"Sprawling ranch properties and custom-built estates on multi-acre lots. Perfect for those seeking privacy, space, and Hill Country living."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Top Schools"}),s.jsx("p",{className:"text-muted-foreground",children:"Dripping Springs ISD is consistently ranked among the top school districts in Texas, making it ideal for families."})]})]})]})}),s.jsx(Er,{title:"Properties in Dripping Springs",maxDisplay:10,seeMoreUrl:"/idx",suggestionId:"base64-YXJlYX5wbGFjZX5EcmlwcGluZyBTcHJpbmdzLCBUWA",suggestionLabel:"Dripping Springs, TX",filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]}},pageSize:40})]}),s.jsx(he,{})]}),lD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${Td})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/60"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Lake Travis / Bee Cave"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"About the Neighborhood"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Lake Travis at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto text-lg leading-relaxed",children:"Lake Travis and Bee Cave offer the ultimate Texas Hill Country lifestyle with stunning waterfront properties, world-class golf courses, and resort-style amenities. This prestigious area attracts those seeking luxury living with breathtaking views."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"$1.8M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Median Home Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"78734"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Zip Code"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"64mi"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Lake Shoreline"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"Top 10"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"TX School Districts"})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Neighborhood Highlights"}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Waterfront Living"}),s.jsx("p",{className:"text-muted-foreground",children:"Stunning lakefront estates with private docks, boat lifts, and panoramic Hill Country views. Perfect for water sports enthusiasts and those seeking resort-style living."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Golf Communities"}),s.jsx("p",{className:"text-muted-foreground",children:"Home to prestigious golf courses including Spanish Oaks, Flintrock Falls, and Lakecliff. Championship courses designed by renowned architects."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Hill Country Charm"}),s.jsx("p",{className:"text-muted-foreground",children:"Scenic drives, award-winning wineries, and charming small-town atmosphere with easy access to Austin's urban amenities."})]})]})]})}),s.jsx(Er,{title:"Properties in Lake Travis",maxDisplay:10,seeMoreUrl:"/idx",suggestionId:"base64-YXJlYX5uZWlnaGJvcmhvb2R-TGFrZSBUcmF2aXMsIEF1c3RpbiwgVFg",suggestionLabel:"Lake Travis, Austin, TX",filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]}},pageSize:40})]}),s.jsx(he,{})]}),cD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Lake Austin Waterfront Homes | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"Discover luxury waterfront estates on Lake Austin. Private boat docks, stunning water views, and an exclusive lakeside lifestyle minutes from downtown Austin."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${Ed})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/60"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Lake Austin"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"About the Neighborhood"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Lake Austin at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto text-lg leading-relaxed",children:"Lake Austin is one of the most coveted waterfront communities in Central Texas. Stretching along the Colorado River between Tom Miller Dam and Mansfield Dam, Lake Austin offers an unparalleled blend of serene lakeside living and urban convenience — all just minutes from downtown Austin's world-class dining, tech corridor, and cultural scene."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"$5M+"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Median Waterfront Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"21mi"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Lake Shoreline"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"78732"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Primary Zip Code"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"15min"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"To Downtown"})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Neighborhood Highlights"}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Waterfront Estates"}),s.jsx("p",{className:"text-muted-foreground",children:"Sprawling lakefront properties with private boat docks, infinity pools overlooking the water, and resort-caliber outdoor living spaces set among mature oaks and limestone bluffs."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Water Recreation"}),s.jsx("p",{className:"text-muted-foreground",children:"A constant-level lake perfect for boating, wakeboarding, kayaking, and swimming year-round. Multiple marinas, yacht clubs, and lakeside restaurants dot the shoreline."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Natural Beauty"}),s.jsx("p",{className:"text-muted-foreground",children:"Dramatic Hill Country topography with limestone cliffs, lush canyon walls, and panoramic sunset views. Adjacent to the Balcones Canyonlands Preserve and extensive trail systems."})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Lifestyle"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Why Lake Austin"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Exclusive & Private"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"With limited inventory and no public boat ramps, Lake Austin offers a level of privacy and exclusivity unmatched by other Austin-area lakes. Many estates sit on multi-acre waterfront lots with gated access."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Strong Appreciation"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Lake Austin waterfront is among the most limited and sought-after real estate in Texas, consistently commanding premium values with strong long-term appreciation driven by scarcity and demand."})]})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Year-Round Lake Living"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"As a constant-level lake managed by LCRA, Lake Austin never fluctuates like other Highland Lakes. Enjoy dock access, swimming, and boating 365 days a year in Austin's mild climate."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Urban Meets Retreat"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Wake up lakeside and be downtown in 15 minutes. Lake Austin bridges the gap between a true vacation-home feel and everyday access to Austin's tech hub, dining, and cultural amenities."})]})]})]})]})}),s.jsx(Er,{title:"Properties on Lake Austin",maxDisplay:10,seeMoreUrl:"/idx",filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]},zip:{value:["78732","78733"]}},pageSize:40})]}),s.jsx(he,{})]}),uD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Westlake / Rollingwood Homes | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"Explore luxury homes in Westlake Hills and Rollingwood, Austin's most exclusive hillside communities. Award-winning Eanes ISD schools, Hill Country views, and minutes from downtown."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[50vh] lg:min-h-[60vh] bg-section-bg relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${d8})`}}),s.jsx("div",{className:"absolute inset-0 bg-section-bg/60"}),s.jsx("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase",children:"Westlake / Rollingwood"})})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"About the Neighborhood"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Westlake at a Glance"}),s.jsx("p",{className:"text-muted-foreground max-w-3xl mx-auto text-lg leading-relaxed",children:"Nestled in the rolling hills west of downtown Austin, Westlake Hills and Rollingwood are home to some of the city's most prestigious estates. Known for the award-winning Eanes ISD, panoramic Hill Country views, and a serene yet connected lifestyle, this enclave attracts executives, entrepreneurs, and families seeking the best of Austin living."})]}),s.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"$3.2M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Median Home Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"78746"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Zip Code"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"#1"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Eanes ISD Ranking"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl lg:text-5xl text-foreground mb-2",children:"10min"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"To Downtown"})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground text-center mb-16 tracking-[0.1em] uppercase",children:"Neighborhood Highlights"}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Hill Country Estates"}),s.jsx("p",{className:"text-muted-foreground",children:"Grand estates on multi-acre lots with sweeping views of the Texas Hill Country. Custom-built homes feature resort-style pools, outdoor living, and architectural excellence."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Eanes ISD Schools"}),s.jsx("p",{className:"text-muted-foreground",children:"Consistently ranked among the top school districts in Texas, Eanes ISD includes Westlake High School — home to nationally recognized academics and athletics programs."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Nature & Recreation"}),s.jsx("p",{className:"text-muted-foreground",children:"Adjacent to the Barton Creek Greenbelt, Wild Basin Wilderness Preserve, and multiple country clubs. An outdoor paradise with hiking, biking, swimming, and golf."})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Lifestyle"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Why Westlake & Rollingwood"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Privacy & Space"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Generous lot sizes, gated communities, and mature tree canopy provide unmatched privacy while remaining minutes from downtown Austin's dining, entertainment, and tech corridor."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Investment Value"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Westlake consistently ranks among Austin's strongest real estate markets with excellent appreciation rates, driven by limited inventory, top schools, and high demand."})]})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Community & Culture"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"A tight-knit community with active neighborhood associations, annual events, and a strong sense of place. Lost Creek Country Club and other private clubs anchor the social scene."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-3",children:"Proximity to Everything"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Easy access via MoPac, Loop 360, and Bee Cave Road. Minutes to Barton Springs, Zilker Park, South Lamar dining, and Austin-Bergstrom International Airport."})]})]})]})]})}),s.jsx(Er,{title:"Properties in Westlake / Rollingwood",maxDisplay:10,seeMoreUrl:"/idx",filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]},zip:{value:["78746"]}},pageSize:40})]}),s.jsx(he,{})]}),dD=sd("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function hD({className:t,variant:e,...r}){return s.jsx("div",{className:ke(dD({variant:e}),t),...r})}const fD=sd("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-foreground text-background border border-foreground hover:bg-red-accent hover:border-red-accent hover:scale-105 hover:shadow-lg",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 hover:scale-105",outline:"border border-foreground bg-transparent text-foreground hover:bg-red-accent hover:border-red-accent hover:text-white hover:scale-105 hover:shadow-lg",secondary:"bg-transparent text-foreground border border-foreground hover:bg-red-accent hover:border-red-accent hover:text-white hover:scale-105 hover:shadow-lg",ghost:"hover:bg-red-accent hover:text-white hover:scale-105",link:"text-foreground underline-offset-4 hover:underline hover:text-red-accent"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),bt=p.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...a},i)=>{const o=n?a5:"button";return s.jsx(o,{className:ke(fD({variant:e,size:r,className:t})),ref:i,...a})});bt.displayName="Button";const kc="https://api.realsavvy.com/api/v3/listings/search",ev="https://api.realsavvy.com/api/v3/listings",Ca="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2NDNkMDg1MTAwYmI2NWQyYWE3N2MwN2U2OGE0ODkwNTBiZTE1MWIxYTQzOTEzYjRlODkwOTc5ZTgzNTJlMDc1IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NzgiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY3OCIsInNjb3BlcyI6WyJhZG1pbiJdfQ.NUi66vsTRrpVDC8gKSfMDrHhFvayzhMQH08VLNpIMDo3mN0ysyQ97pp2SlDwUPn08OoqthHb3RzoHGPCp9gJFvfoPI0DTIfgrMuUGMBHW4UJdZNWMS2Ep_BWH4iuL2VqgyXEUki4AiG8F9SXnbQbyvlRO7axJEYVWJ8EcXJ87EYQQhlAuS6f0AlTz7WwqNPipfNohon0Bo66u5WkIWlI3ybXAWo8CDJW3C-PN3QFyxgekSToV0euVZr2Pj_Eh_hVEIvEj6vPfDHyT9KihvNM7XCkw_KF4sSkT1fjqjudMspI_iQW1SixU64TKC6eHt5k2oWzq5GLoD3i1lzcnYuYzQ".trim();function Ea(t,e){var r;return{id:t,formatted_address:`${e.street||""}, ${e.city||""}, ${e.state_code||""} ${e.zip||""}`,address:e.street||e.title||"",city:e.city||"",state:e.state_code||"",zip:e.zip||"",status:e.listing_status||e.canonical_listing_status||"active",price:e.price_in_dollars||0,sold_price:e.sold_price_in_dollars||null,bedrooms:e.bedrooms||0,bathrooms:e.bathrooms||0,year_built:e.year_built||0,square_feet:e.square_feet||0,description:e.description||"",property_type:e.property_type||e.type||"single",photos:(e.photo_urls||[]).map((n,a)=>({sequence_number:a,small:n.replace("/xl/","/s/"),medium:n.replace("/xl/","/m/"),large:n.replace("/xl/","/l/"),xlarge:n})),details_sections:((r=e.realstaq_details)==null?void 0:r.sections)||[],mls_number:e.mls_number||void 0,listing_agent:e.listing_agent||void 0,listing_broker:e.listing_broker||void 0,office_phone:e.office_phone||void 0,geo_data:{neighborhood_name:e.neighborhood||void 0,school_district_name:e.school_district||void 0}}}function tv(){var v,b,k;const{id:t}=dg(),[e,r]=p.useState(null),[n,a]=p.useState(!0),[i,o]=p.useState(null),[l,c]=p.useState(0);p.useEffect(()=>{(async()=>{var N,_,E,R,A,$;if(t){if(a(!0),o(null),!aO(t)){const O=t.toLowerCase(),J=iO[O];if(J)try{const M=await fetch(`${ev}/${J}`,{headers:{Authorization:`Bearer ${Ca}`,Accept:"application/json"}});if(M.ok){const Z=await M.json();if((N=Z==null?void 0:Z.data)!=null&&N.attributes&&Object.keys(Z.data.attributes).length>0){r(Ea(Z.data.id,Z.data.attributes)),a(!1);return}}}catch(M){console.error("Override fetch failed:",M)}try{const M=[["Active","Pending","Coming Soon"],["Sold","Closed"]];for(const Z of M){const z={filter:{listing_status:{value:Z},agent_profile:{"unlock-mls-vow-placeholder":{key:["ACT465623"],relationships:["listing"]}}},market_id:null,page:{number:1,size:200},sort:"-price_in_dollars"},X=await fetch(kc,{method:"POST",headers:{Authorization:`Bearer ${Ca}`,"Content-Type":"application/json"},body:JSON.stringify(z)});if(!X.ok)continue;const T=await X.json(),C=(_=T==null?void 0:T.data)==null?void 0:_.find(L=>{var q,F;return U3(((q=L.attributes)==null?void 0:q.street)||((F=L.attributes)==null?void 0:F.title))===O});if(C){r(Ea(C.id,C.attributes)),a(!1);return}}o("This listing could not be found. It may no longer be available.")}catch(M){console.error("Error resolving slug:",M),o("Unable to load listing details. Please try again later.")}finally{a(!1)}return}try{const O=await fetch(`${ev}/${t}`,{headers:{Authorization:`Bearer ${Ca}`,Accept:"application/json"}});if(O.ok){const T=await O.json();if((E=T==null?void 0:T.data)!=null&&E.attributes&&Object.keys(T.data.attributes).length>0){r(Ea(T.data.id,T.data.attributes)),a(!1);return}}const J=t.includes("~")?t.split("~")[0]:"unlock-mls-vow-placeholder",M=t.includes("~")?t.split("~")[1]:t;try{const T=[{statuses:["Active","Pending","Coming Soon"],relationship:"listing"},{statuses:["Sold","Closed"],relationship:"listing"},{statuses:["Sold","Closed"],relationship:"buyer"},{statuses:["Sold","Closed"],relationship:"co_listing"},{statuses:["Sold","Closed"],relationship:"co_buyer"}];for(const C of T){const L=await fetch(kc,{method:"POST",headers:{Authorization:`Bearer ${Ca}`,"Content-Type":"application/json"},body:JSON.stringify({filter:{listing_status:{value:C.statuses},agent_profile:{"unlock-mls-vow-placeholder":{key:["ACT465623"],relationships:[C.relationship]}}},market_id:null,page:{number:1,size:200},sort:"-price_in_dollars"})});if(!L.ok)continue;const q=await L.json(),F=(R=q==null?void 0:q.data)==null?void 0:R.find(se=>{var le;return se.id===t||((le=se.attributes)==null?void 0:le.mls_number)&&String(se.attributes.mls_number)===String(M)});if(F){r(Ea(F.id,F.attributes)),a(!1);return}}}catch(T){console.error("Agent-scoped id resolution failed:",T)}for(const T of[["Sold","Closed"],["Active","Pending","Coming Soon"]]){const C={filter:{listing_status:{value:T},mls_number:{value:[M]}},market_id:null,page:{number:1,size:5},sort:"-price_in_dollars"},L=await fetch(kc,{method:"POST",headers:{Authorization:`Bearer ${Ca}`,"Content-Type":"application/json"},body:JSON.stringify(C)});if(L.ok){const q=await L.json(),F=(A=q==null?void 0:q.data)==null?void 0:A.find(se=>se.id===t);if(F){r(Ea(F.id,F.attributes)),a(!1);return}}}const Z={filter:{listing_status:{value:["Sold","Closed","Active","Pending","Coming Soon"]}},market_id:null,page:{number:1,size:200},sort:"-price_in_dollars"},z={filter:{listing_status:{value:["Sold","Closed"]},agent_profile:{"unlock-mls-vow-placeholder":{key:["ACT465623"],relationships:["listing","buyer","co_listing","co_buyer"]}}},market_id:null,page:{number:1,size:200},sort:"-price_in_dollars"},X=await fetch(kc,{method:"POST",headers:{Authorization:`Bearer ${Ca}`,"Content-Type":"application/json"},body:JSON.stringify(z)});if(X.ok){const T=await X.json(),C=($=T==null?void 0:T.data)==null?void 0:$.find(L=>L.id===t);if(C){r(Ea(C.id,C.attributes)),a(!1);return}}o("This listing could not be found. It may no longer be available.")}catch(O){console.error("Error fetching listing:",O),o("Unable to load listing details. Please try again later.")}finally{a(!1)}}})()},[t]);const u=()=>{e&&c(j=>(j+1)%e.photos.length)},d=()=>{e&&c(j=>(j-1+e.photos.length)%e.photos.length)};if(n)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsx("div",{className:"container mx-auto px-6 py-32",children:s.jsx("div",{className:"flex justify-center items-center py-20",children:s.jsx(la,{className:"w-8 h-8 animate-spin text-primary"})})}),s.jsx(he,{})]});if(i||!e)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("div",{className:"container mx-auto px-6 py-32 text-center",children:[s.jsx("h1",{className:"font-heading text-3xl text-foreground mb-4",children:"Listing Not Found"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-md mx-auto",children:i||"This listing could not be found."}),s.jsx(Y,{to:"/portfolio",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"View All Properties"})]}),s.jsx(he,{})]});const h=e.photos[l],f=e.sold_price||e.price,m=e.status.toLowerCase(),w=(e.property_type||"").toLowerCase(),g=m==="sold"||m==="closed",y=m.includes("rent")||m.includes("lease")||w.includes("rental")||w.includes("lease"),x=y?"For Lease":e.status;return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsx("div",{className:"container mx-auto px-6 py-6",children:s.jsxs(Y,{to:"/portfolio",className:"inline-flex items-center text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx(Jo,{className:"mr-2 h-4 w-4"}),"Back to Properties"]})}),s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"relative w-full max-h-[600px] aspect-[16/9] bg-muted overflow-hidden rounded-lg",children:[h?s.jsx("img",{src:h.xlarge||h.large,alt:`${e.address} - Photo ${l+1}`,className:"w-full h-full object-cover"}):s.jsx("div",{className:"w-full h-full flex items-center justify-center",children:s.jsx("span",{className:"text-muted-foreground",children:"No Photos Available"})}),s.jsx(hD,{className:`absolute top-6 left-6 text-sm px-4 py-1.5 ${g?"bg-primary hover:bg-primary/90":y?"bg-blue-600 hover:bg-blue-700":m==="active"?"bg-green-600 hover:bg-green-700":"bg-muted hover:bg-muted/90"} text-primary-foreground font-semibold capitalize`,children:x}),e.photos.length>1&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:d,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-background/80 backdrop-blur-sm p-3 rounded-full shadow-lg hover:bg-background transition-colors","aria-label":"Previous photo",children:s.jsx(ad,{className:"h-6 w-6 text-foreground"})}),s.jsx("button",{onClick:u,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-background/80 backdrop-blur-sm p-3 rounded-full shadow-lg hover:bg-background transition-colors","aria-label":"Next photo",children:s.jsx(Rl,{className:"h-6 w-6 text-foreground"})}),s.jsxs("div",{className:"absolute bottom-4 right-4 bg-background/80 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-medium text-foreground",children:[l+1," / ",e.photos.length]})]})]})}),e.photos.length>1&&s.jsx("div",{className:"container mx-auto px-4 py-4",children:s.jsxs("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-hide",children:[e.photos.slice(0,10).map((j,N)=>s.jsx("button",{onClick:()=>c(N),className:`flex-shrink-0 w-20 h-14 rounded-md overflow-hidden border-2 transition-all ${N===l?"border-primary ring-2 ring-primary/30":"border-transparent opacity-70 hover:opacity-100"}`,children:s.jsx("img",{src:j.small,alt:`Thumbnail ${N+1}`,className:"w-full h-full object-cover"})},N)),e.photos.length>10&&s.jsxs("div",{className:"flex-shrink-0 w-20 h-14 rounded-md bg-muted flex items-center justify-center text-sm font-medium text-muted-foreground",children:["+",e.photos.length-10]})]})}),s.jsxs("div",{className:"container mx-auto px-6 py-10 grid lg:grid-cols-3 gap-10",children:[s.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[s.jsxs("div",{children:[s.jsxs("p",{className:"text-4xl font-bold text-primary",children:["$",f.toLocaleString(),y&&s.jsx("span",{className:"text-lg text-muted-foreground ml-2 font-normal",children:"/mo"}),g&&e.sold_price&&s.jsx("span",{className:"text-lg text-muted-foreground ml-2 font-normal",children:"Sold"})]}),s.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:e.address}),s.jsxs("p",{className:"text-muted-foreground flex items-center gap-2",children:[s.jsx(mn,{className:"h-4 w-4"}),e.city,", ",e.state," ",e.zip]})]}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4",children:[s.jsx(oo,{icon:s.jsx(e_,{className:"text-muted-foreground"}),value:e.bedrooms,label:"Bedrooms"}),s.jsx(oo,{icon:s.jsx(Z5,{className:"text-muted-foreground"}),value:e.bathrooms,label:"Bathrooms"}),s.jsx(oo,{icon:s.jsx(x_,{className:"text-muted-foreground"}),value:e.square_feet.toLocaleString(),label:"Sq Ft"}),s.jsx(oo,{icon:s.jsx(zp,{className:"text-muted-foreground"}),value:e.year_built,label:"Year Built"}),s.jsx(oo,{icon:s.jsx(oa,{className:"text-muted-foreground"}),value:e.property_type,label:"Type"})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"About This Property"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed whitespace-pre-line",children:e.description})]}),e.details_sections&&e.details_sections.length>0&&s.jsxs("div",{className:"space-y-6",children:[s.jsx("h2",{className:"text-2xl font-semibold text-foreground",children:"Property Details"}),e.details_sections.filter(j=>j.title!=="Essential Information").map((j,N)=>s.jsxs("div",{className:"bg-card border border-border rounded-lg p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-4",children:j.title}),s.jsx("div",{className:`grid gap-4 ${j.style==="third"?"md:grid-cols-3":"md:grid-cols-2"}`,children:j.fields.map((_,E)=>s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"text-sm text-muted-foreground",children:_.label}),s.jsx("span",{className:"text-foreground font-medium",children:typeof _.value=="number"?_.value.toLocaleString():_.value})]},E))})]},N))]}),e.geo_data&&(e.geo_data.neighborhood_name||e.geo_data.school_district_name)&&s.jsxs("div",{children:[s.jsx("h2",{className:"text-2xl font-semibold text-foreground mb-4",children:"Location Details"}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.geo_data.neighborhood_name&&s.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"Neighborhood"}),s.jsx("p",{className:"font-medium text-foreground",children:e.geo_data.neighborhood_name})]}),e.geo_data.school_district_name&&s.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[s.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:"School District"}),s.jsx("p",{className:"font-medium text-foreground",children:e.geo_data.school_district_name})]})]})]})]}),s.jsxs("aside",{className:"space-y-6 sticky top-24",children:[s.jsxs("div",{className:"bg-card border border-border rounded-xl p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-4",children:"Interested in this property?"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:"Contact us today to schedule a showing or get more information about this listing."}),s.jsx(Y,{to:"/#contact-form",children:s.jsx(bt,{className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",children:"Schedule a Showing"})})]}),(e.listing_agent||e.listing_broker)&&s.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 space-y-3",children:[e.listing_agent&&s.jsx(Vh,{icon:s.jsx(Vp,{className:"text-muted-foreground"}),label:"Agent",value:e.listing_agent}),e.listing_broker&&s.jsx(Vh,{icon:s.jsx(t_,{className:"text-muted-foreground"}),label:"Brokerage",value:e.listing_broker}),e.office_phone&&s.jsx(Vh,{icon:s.jsx(xs,{className:"text-muted-foreground"}),label:"Phone",value:e.office_phone})]}),s.jsx("div",{className:"bg-muted/50 rounded-lg p-4",children:s.jsxs("p",{className:"text-sm text-muted-foreground",children:["MLS #: ",e.mls_number||((b=(v=e.id)==null?void 0:v.split("~")[1])==null?void 0:b.toUpperCase())||((k=e.id)==null?void 0:k.toUpperCase())]})})]})]})]}),s.jsx(he,{})]})}function oo({icon:t,value:e,label:r}){return s.jsxs("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:[s.jsx("div",{className:"mx-auto mb-1 flex justify-center",children:t}),s.jsx("p",{className:"font-bold text-foreground",children:e}),s.jsx("p",{className:"text-sm text-muted-foreground",children:r})]})}function Vh({icon:t,label:e,value:r}){return s.jsxs("div",{className:"flex gap-3",children:[t,s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:e}),s.jsx("p",{className:"font-medium text-foreground",children:r})]})]})}const mD=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Privacy Policy | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"Privacy Policy for ORR Realty Group. Learn how we collect, use, and protect your personal information."})]}),s.jsx(de,{}),s.jsx("main",{className:"pt-24 pb-16 bg-background min-h-screen",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 max-w-4xl",children:[s.jsx("h1",{className:"font-heading text-3xl md:text-4xl lg:text-5xl text-foreground mb-8",children:"Privacy Policy"}),s.jsxs("div",{className:"prose prose-lg prose-invert max-w-none space-y-6 text-muted-foreground",children:[s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Last Updated: ",new Date().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"1. Introduction"}),s.jsx("p",{children:'ORR Realty Group ("We," "Us," or "Our") recognizes that privacy is important to You. This Privacy Policy governs Your use of our website and describes how we collect, use, and protect Your personal information. By using our website, you agree to this Privacy Policy.'}),s.jsx("p",{children:"You must be of legal age (over eighteen years of age in the United States) to use our website."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"2. Information We Collect"}),s.jsx("p",{children:"We may collect private information from You when You use our website, including when You:"}),s.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[s.jsx("li",{children:"Submit a contact form or inquiry"}),s.jsx("li",{children:"Request a home valuation"}),s.jsx("li",{children:"Sign up for our newsletter"}),s.jsx("li",{children:"Browse our property listings"}),s.jsx("li",{children:"Sign in with Google"})]}),s.jsx("p",{children:"This information may include Your name, email address, phone number, property address, and any additional information You choose to provide."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"3. How We Use Your Information"}),s.jsx("p",{children:"We use the information we collect for the following purposes:"}),s.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[s.jsx("li",{children:"To respond to Your inquiries and provide real estate services"}),s.jsx("li",{children:"To send You property information and market updates"}),s.jsx("li",{children:"To improve our website and services"}),s.jsx("li",{children:"To comply with applicable laws and regulations"}),s.jsx("li",{children:"To protect Your rights and the rights of others"})]})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"4. Information Sharing"}),s.jsx("p",{children:"We will not share Your personal information with third parties except as described in this Privacy Policy or with Your consent. We may share Your information:"}),s.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[s.jsx("li",{children:"With service providers who assist us in operating our website"}),s.jsx("li",{children:"To comply with legal obligations or respond to lawful requests"}),s.jsx("li",{children:"To protect our rights, privacy, safety, or property"})]}),s.jsx("p",{children:s.jsx("strong",{children:"Data will not be shared with third parties for marketing or promotional purposes."})})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"5. Communications"}),s.jsx("p",{children:"By providing Your contact information and opting in, You acknowledge and agree to receive communications from ORR Realty Group, including:"}),s.jsxs("ul",{className:"list-disc pl-6 space-y-2",children:[s.jsx("li",{children:"Email communications about properties and market updates"}),s.jsx("li",{children:"Phone calls regarding Your real estate inquiries"}),s.jsx("li",{children:"Text messages with relevant property information"})]}),s.jsx("p",{children:'You may opt out of marketing communications at any time by replying "STOP" to any text message, clicking unsubscribe in emails, or contacting us directly. Message and data rates may apply.'})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"6. Cookies"}),s.jsx("p",{children:"Our website may use cookies, which are small data files stored on Your computer. We use cookies to improve Your experience with our website. Cookies will not contain any of Your personally identifiable information."}),s.jsx("p",{children:"If You set your browser not to accept cookies, You may not be able to use or experience all of the features of our website."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"7. Data Security"}),s.jsx("p",{children:"We take appropriate security measures to protect Your personal information. However, no method of transmission over the Internet or electronic storage is 100% secure. We cannot guarantee absolute security of Your information."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"8. Third Party Websites"}),s.jsx("p",{children:"Our website may contain links to third-party websites. We have no control over the privacy policies or practices of these third parties. This Privacy Policy does not govern any disclosure You make to third parties."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"9. Children's Privacy"}),s.jsx("p",{children:"We do not market our website or services to minors. We do not knowingly collect personal information from individuals under the age of 18. If we learn that we have collected information from a minor, we will delete it."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"10. Changes to This Policy"}),s.jsx("p",{children:"This Privacy Policy may change from time to time. The most current version will always appear on this page. We encourage You to review this Privacy Policy periodically."})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-heading text-xl text-foreground",children:"11. Contact Us"}),s.jsx("p",{children:"If You have questions about this Privacy Policy or believe that someone has violated it, please contact us at:"}),s.jsxs("div",{className:"bg-card p-6 rounded-sm border border-border",children:[s.jsx("p",{className:"text-foreground font-medium",children:"ORR Realty Group"}),s.jsx("p",{children:"Rick Orr"}),s.jsxs("p",{children:["Email: ",s.jsx("a",{href:"mailto:rick@orrrealty.com",className:"text-primary hover:underline",children:"rick@orrrealty.com"})]}),s.jsxs("p",{children:["Phone: ",s.jsx("a",{href:"tel:5127857489",className:"text-primary hover:underline",children:"(512) 785-7489"})]})]})]})]}),s.jsx("div",{className:"mt-12 pt-8 border-t border-border",children:s.jsx(Y,{to:"/",className:"text-primary hover:underline",children:"← Back to Home"})})]})}),s.jsx(he,{})]}),pD=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Disclaimer | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"Disclaimer and legal information for ORR Realty Group real estate services in Austin, Texas."})]}),s.jsx(de,{}),s.jsx("main",{className:"pt-32 pb-20 px-4",children:s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsx("h1",{className:"text-4xl md:text-5xl font-display text-white mb-8",children:"Disclaimer"}),s.jsxs("div",{className:"prose prose-lg text-muted-foreground",children:[s.jsx("p",{className:"text-lg leading-relaxed",children:s.jsx("strong",{className:"text-foreground",children:"ORR Realty Group"})}),s.jsx("p",{className:"text-base leading-relaxed mt-6",children:"All information provided herein has been obtained from sources believed reliable, but may be subject to errors, omissions, change of price, prior sale, or withdrawal without notice. ORR Realty Group makes no representation, warranty or guaranty as to accuracy of any information contained herein. You should consult your advisors for an independent verification of any properties."})]})]})}),s.jsx(he,{})]});function Ar(t){const e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function sa(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}const rk=6048e5,gD=864e5;let xD={};function Ld(){return xD}function pl(t,e){var l,c,u,d;const r=Ld(),n=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,a=Ar(t),i=a.getDay(),o=(i<n?7:0)+i-n;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Du(t){return pl(t,{weekStartsOn:1})}function nk(t){const e=Ar(t),r=e.getFullYear(),n=sa(t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const a=Du(n),i=sa(t,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const o=Du(i);return e.getTime()>=a.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function rv(t){const e=Ar(t);return e.setHours(0,0,0,0),e}function nv(t){const e=Ar(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function yD(t,e){const r=rv(t),n=rv(e),a=+r-nv(r),i=+n-nv(n);return Math.round((a-i)/gD)}function vD(t){const e=nk(t),r=sa(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Du(r)}function bD(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function wD(t){if(!bD(t)&&typeof t!="number")return!1;const e=Ar(t);return!isNaN(Number(e))}function kD(t){const e=Ar(t),r=sa(t,0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}const jD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ND=(t,e,r)=>{let n;const a=jD[t];return typeof a=="string"?n=a:e===1?n=a.one:n=a.other.replace("{{count}}",e.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function qh(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const _D={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},CD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ED={date:qh({formats:_D,defaultWidth:"full"}),time:qh({formats:SD,defaultWidth:"full"}),dateTime:qh({formats:CD,defaultWidth:"full"})},TD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},RD=(t,e,r,n)=>TD[t];function lo(t){return(e,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let a;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,l=r!=null&&r.width?String(r.width):o;a=t.formattingValues[l]||t.formattingValues[o]}else{const o=t.defaultWidth,l=r!=null&&r.width?String(r.width):t.defaultWidth;a=t.values[l]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return a[i]}}const AD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},PD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},OD={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ID={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},MD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},LD={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},DD=(t,e)=>{const r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$D={ordinalNumber:DD,era:lo({values:AD,defaultWidth:"wide"}),quarter:lo({values:PD,defaultWidth:"wide",argumentCallback:t=>t-1}),month:lo({values:OD,defaultWidth:"wide"}),day:lo({values:ID,defaultWidth:"wide"}),dayPeriod:lo({values:MD,defaultWidth:"wide",formattingValues:LD,defaultFormattingWidth:"wide"})};function co(t){return(e,r={})=>{const n=r.width,a=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;const o=i[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?BD(l,h=>h.test(o)):FD(l,h=>h.test(o));let u;u=t.valueCallback?t.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const d=e.slice(o.length);return{value:u,rest:d}}}function FD(t,e){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function BD(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function UD(t){return(e,r={})=>{const n=e.match(t.matchPattern);if(!n)return null;const a=n[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;const l=e.slice(a.length);return{value:o,rest:l}}}const WD=/^(\d+)(th|st|nd|rd)?/i,zD=/\d+/i,HD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},VD={any:[/^b/i,/^(a|c)/i]},qD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GD={any:[/1/i,/2/i,/3/i,/4/i]},KD={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},YD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},JD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},QD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},XD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ZD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},e$={ordinalNumber:UD({matchPattern:WD,parsePattern:zD,valueCallback:t=>parseInt(t,10)}),era:co({matchPatterns:HD,defaultMatchWidth:"wide",parsePatterns:VD,defaultParseWidth:"any"}),quarter:co({matchPatterns:qD,defaultMatchWidth:"wide",parsePatterns:GD,defaultParseWidth:"any",valueCallback:t=>t+1}),month:co({matchPatterns:KD,defaultMatchWidth:"wide",parsePatterns:YD,defaultParseWidth:"any"}),day:co({matchPatterns:JD,defaultMatchWidth:"wide",parsePatterns:QD,defaultParseWidth:"any"}),dayPeriod:co({matchPatterns:XD,defaultMatchWidth:"any",parsePatterns:ZD,defaultParseWidth:"any"})},t$={code:"en-US",formatDistance:ND,formatLong:ED,formatRelative:RD,localize:$D,match:e$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function r$(t){const e=Ar(t);return yD(e,kD(e))+1}function n$(t){const e=Ar(t),r=+Du(e)-+vD(e);return Math.round(r/rk)+1}function sk(t,e){var d,h,f,m;const r=Ar(t),n=r.getFullYear(),a=Ld(),i=(e==null?void 0:e.firstWeekContainsDate)??((h=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((m=(f=a.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,o=sa(t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);const l=pl(o,e),c=sa(t,0);c.setFullYear(n,0,i),c.setHours(0,0,0,0);const u=pl(c,e);return r.getTime()>=l.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function s$(t,e){var l,c,u,d;const r=Ld(),n=(e==null?void 0:e.firstWeekContainsDate)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=sk(t,e),i=sa(t,0);return i.setFullYear(a,0,n),i.setHours(0,0,0,0),pl(i,e)}function a$(t,e){const r=Ar(t),n=+pl(r,e)-+s$(r,e);return Math.round(n/rk)+1}function Ne(t,e){const r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}const Sn={y(t,e){const r=t.getFullYear(),n=r>0?r:1-r;return Ne(e==="yy"?n%100:n,e.length)},M(t,e){const r=t.getMonth();return e==="M"?String(r+1):Ne(r+1,2)},d(t,e){return Ne(t.getDate(),e.length)},a(t,e){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return Ne(t.getHours()%12||12,e.length)},H(t,e){return Ne(t.getHours(),e.length)},m(t,e){return Ne(t.getMinutes(),e.length)},s(t,e){return Ne(t.getSeconds(),e.length)},S(t,e){const r=e.length,n=t.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return Ne(a,e.length)}},Ta={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sv={G:function(t,e,r){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){const n=t.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Sn.y(t,e)},Y:function(t,e,r,n){const a=sk(t,n),i=a>0?a:1-a;if(e==="YY"){const o=i%100;return Ne(o,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):Ne(i,e.length)},R:function(t,e){const r=nk(t);return Ne(r,e.length)},u:function(t,e){const r=t.getFullYear();return Ne(r,e.length)},Q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Ne(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Ne(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){const n=t.getMonth();switch(e){case"M":case"MM":return Sn.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return Ne(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){const a=a$(t,n);return e==="wo"?r.ordinalNumber(a,{unit:"week"}):Ne(a,e.length)},I:function(t,e,r){const n=n$(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):Ne(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Sn.d(t,e)},D:function(t,e,r){const n=r$(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Ne(n,e.length)},E:function(t,e,r){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){const a=t.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Ne(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){const a=t.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Ne(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,r){const n=t.getDay(),a=n===0?7:n;switch(e){case"i":return String(a);case"ii":return Ne(a,e.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,r){const n=t.getHours();let a;switch(n===12?a=Ta.noon:n===0?a=Ta.midnight:a=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,r){const n=t.getHours();let a;switch(n>=17?a=Ta.evening:n>=12?a=Ta.afternoon:n>=4?a=Ta.morning:a=Ta.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Sn.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Sn.H(t,e)},K:function(t,e,r){const n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Ne(n,e.length)},k:function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):Ne(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Sn.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Sn.s(t,e)},S:function(t,e){return Sn.S(t,e)},X:function(t,e,r){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return iv(n);case"XXXX":case"XX":return Es(n);case"XXXXX":case"XXX":default:return Es(n,":")}},x:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"x":return iv(n);case"xxxx":case"xx":return Es(n);case"xxxxx":case"xxx":default:return Es(n,":")}},O:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+av(n,":");case"OOOO":default:return"GMT"+Es(n,":")}},z:function(t,e,r){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+av(n,":");case"zzzz":default:return"GMT"+Es(n,":")}},t:function(t,e,r){const n=Math.trunc(t.getTime()/1e3);return Ne(n,e.length)},T:function(t,e,r){const n=t.getTime();return Ne(n,e.length)}};function av(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),a=Math.trunc(n/60),i=n%60;return i===0?r+String(a):r+String(a)+e+Ne(i,2)}function iv(t,e){return t%60===0?(t>0?"-":"+")+Ne(Math.abs(t)/60,2):Es(t,e)}function Es(t,e=""){const r=t>0?"-":"+",n=Math.abs(t),a=Ne(Math.trunc(n/60),2),i=Ne(n%60,2);return r+a+e+i}const ov=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},ak=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},i$=(t,e)=>{const r=t.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return ov(t,e);let i;switch(n){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",ov(n,e)).replace("{{time}}",ak(a,e))},o$={p:ak,P:i$},l$=/^D+$/,c$=/^Y+$/,u$=["D","DD","YY","YYYY"];function d$(t){return l$.test(t)}function h$(t){return c$.test(t)}function f$(t,e,r){const n=m$(t,e,r);if(console.warn(n),u$.includes(t))throw new RangeError(n)}function m$(t,e,r){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const p$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x$=/^'([^]*?)'?$/,y$=/''/g,v$=/[a-zA-Z]/;function ik(t,e,r){var d,h,f,m;const n=Ld(),a=n.locale??t$,i=n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,o=n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,l=Ar(t);if(!wD(l))throw new RangeError("Invalid time value");let c=e.match(g$).map(w=>{const g=w[0];if(g==="p"||g==="P"){const y=o$[g];return y(w,a.formatLong)}return w}).join("").match(p$).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const g=w[0];if(g==="'")return{isToken:!1,value:b$(w)};if(sv[g])return{isToken:!0,value:w};if(g.match(v$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(c=a.localize.preprocessor(l,c));const u={firstWeekContainsDate:i,weekStartsOn:o,locale:a};return c.map(w=>{if(!w.isToken)return w.value;const g=w.value;(h$(g)||d$(g))&&f$(g,e,String(t));const y=sv[g[0]];return y(l,g,a.localize,u)}).join("")}function b$(t){const e=t.match(x$);return e?e[1].replace(y$,"'"):t}const w$=()=>{const[t,e]=p.useState([]),[r,n]=p.useState(!0),[a,i]=p.useState(null);p.useEffect(()=>{(async()=>{const{data:u,error:d}=await tt.from("blog_posts").select("id, title, slug, excerpt, featured_image, author, category, tags, published_at, created_at").eq("published",!0).order("published_at",{ascending:!1});d?console.error("Error fetching blog posts:",d):e(u||[]),n(!1)})()},[]);const o=[...new Set(t.map(c=>c.category).filter(Boolean))],l=a?t.filter(c=>c.category===a):t;return s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Austin Luxury Real Estate Blog | Rick Orr"}),s.jsx("meta",{name:"description",content:"Expert Austin real estate insights for Bouldin Creek, Westlake, Lake Travis, and surrounding areas. Luxury home buying tips, market trends, and neighborhood guides."}),s.jsx("meta",{property:"og:title",content:"Austin Luxury Real Estate Blog | Rick Orr"}),s.jsx("meta",{property:"og:description",content:"Expert Austin real estate insights for Bouldin Creek, Westlake, Lake Travis, and surrounding areas."}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("link",{rel:"canonical",href:"https://austinrealestateagency.com/blog"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Blog",name:"Rick Orr Austin Real Estate Blog",description:"Expert Austin real estate insights for Bouldin Creek, Westlake, Lake Travis, and surrounding areas.",url:"https://austinrealestateagency.com/blog",publisher:{"@type":"RealEstateAgent",name:"Rick Orr | ORR Realty Group",address:{"@type":"PostalAddress",addressLocality:"Austin",addressRegion:"TX",addressCountry:"US"},areaServed:["Austin","Bouldin Creek","Westlake","Lake Travis","Tarrytown","Travis Heights"]}})})]}),s.jsx(de,{}),s.jsxs("main",{className:"min-h-screen bg-white",children:[s.jsx("section",{className:"relative pt-32 pb-24 bg-gray-900",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[s.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-display font-bold text-white mb-6",children:"Real Estate Insights"}),s.jsx("p",{className:"text-lg md:text-xl text-white/80",children:"Expert advice, market trends, and tips for buyers and sellers"})]})})}),o.length>0&&s.jsx("section",{className:"py-8 border-b border-border",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"flex flex-wrap gap-3 justify-center",children:[s.jsx("button",{onClick:()=>i(null),className:`px-4 py-2 rounded-full text-sm font-medium transition-all ${a===null?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:"All Posts"}),o.map(c=>s.jsx("button",{onClick:()=>i(c),className:`px-4 py-2 rounded-full text-sm font-medium transition-all ${a===c?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:c},c))]})})}),s.jsx("section",{className:"py-16",children:s.jsx("div",{className:"container mx-auto px-4",children:r?s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[1,2,3,4,5,6].map(c=>s.jsxs("div",{className:"bg-card rounded-lg overflow-hidden animate-pulse",children:[s.jsx("div",{className:"aspect-video bg-muted"}),s.jsxs("div",{className:"p-6 space-y-4",children:[s.jsx("div",{className:"h-6 bg-muted rounded w-3/4"}),s.jsx("div",{className:"h-4 bg-muted rounded w-full"}),s.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]})]},c))}):l.length===0?s.jsx("div",{className:"text-center py-16",children:s.jsx("p",{className:"text-xl text-muted-foreground",children:"No blog posts yet. Check back soon!"})}):s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:l.map(c=>s.jsxs(Y,{to:`/blog/${c.slug}`,className:"group bg-card rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1",children:[c.featured_image&&s.jsx("div",{className:"aspect-video overflow-hidden",children:s.jsx("img",{src:c.featured_image,alt:c.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),s.jsxs("div",{className:"p-6",children:[c.category&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-primary uppercase tracking-wider mb-3",children:[s.jsx(w2,{className:"w-3 h-3"}),c.category]}),s.jsx("h2",{className:"text-xl font-display font-semibold text-foreground mb-3 group-hover:text-primary transition-colors line-clamp-2",children:c.title}),c.excerpt&&s.jsx("p",{className:"text-muted-foreground text-sm mb-4 line-clamp-3",children:c.excerpt}),s.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[c.author&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(Vp,{className:"w-3 h-3"}),c.author]}),c.published_at&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(zp,{className:"w-3 h-3"}),ik(new Date(c.published_at),"MMM d, yyyy")]})]}),s.jsx(gu,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})]})]},c.id))})})})]}),s.jsx(he,{})]})},k$=()=>{const{slug:t}=dg(),[e,r]=p.useState(null),[n,a]=p.useState(!0),[i,o]=p.useState([]);p.useEffect(()=>{(async()=>{if(!t)return;const{data:u,error:d}=await tt.from("blog_posts").select("*").eq("slug",t).eq("published",!0).maybeSingle();if(d)console.error("Error fetching blog post:",d);else if(r(u),u!=null&&u.category){const{data:h}=await tt.from("blog_posts").select("id, title, slug, excerpt, featured_image, author, category, tags, published_at, created_at").eq("published",!0).eq("category",u.category).neq("slug",t).limit(3).order("published_at",{ascending:!1});o(h||[])}a(!1)})()},[t]);const l=async()=>{if(navigator.share)try{await navigator.share({title:e==null?void 0:e.title,text:(e==null?void 0:e.excerpt)||"",url:window.location.href})}catch{console.log("Share cancelled")}else navigator.clipboard.writeText(window.location.href),Ie.success("Link copied to clipboard!")};return n?s.jsxs(s.Fragment,{children:[s.jsx(de,{}),s.jsx("main",{className:"min-h-screen bg-section-bg py-24",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"max-w-3xl mx-auto animate-pulse",children:[s.jsx("div",{className:"h-8 bg-muted rounded w-1/4 mb-8"}),s.jsx("div",{className:"h-12 bg-muted rounded w-3/4 mb-4"}),s.jsx("div",{className:"h-6 bg-muted rounded w-1/2 mb-8"}),s.jsx("div",{className:"aspect-video bg-muted rounded-lg mb-8"}),s.jsx("div",{className:"space-y-4",children:[1,2,3,4,5].map(c=>s.jsx("div",{className:"h-4 bg-muted rounded w-full"},c))})]})})}),s.jsx(he,{})]}):e?s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsxs("title",{children:[e.meta_title||e.title," | Rick Orr"]}),s.jsx("meta",{name:"description",content:e.meta_description||e.excerpt||""}),s.jsx("meta",{property:"og:title",content:e.title}),s.jsx("meta",{property:"og:description",content:e.excerpt||""}),s.jsx("meta",{property:"og:type",content:"article"}),e.featured_image&&s.jsx("meta",{property:"og:image",content:e.featured_image}),s.jsx("link",{rel:"canonical",href:`https://austinrealestateagency.com/blog/${t}`}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:e.title,description:e.excerpt||"",image:e.featured_image||"",author:{"@type":"Person",name:e.author||"Rick Orr"},publisher:{"@type":"RealEstateAgent",name:"Rick Orr | ORR Realty Group"},datePublished:e.published_at||e.created_at,mainEntityOfPage:{"@type":"WebPage","@id":`https://austinrealestateagency.com/blog/${t}`}})})]}),s.jsx(de,{}),s.jsxs("main",{className:"min-h-screen bg-section-bg",children:[s.jsx("article",{className:"py-16 md:py-24",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsxs(Y,{to:"/blog",className:"inline-flex items-center text-muted-foreground hover:text-primary transition-colors mb-8",children:[s.jsx(Jo,{className:"w-4 h-4 mr-2"}),"Back to Blog"]}),e.category&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-primary uppercase tracking-wider mb-4",children:[s.jsx(w2,{className:"w-4 h-4"}),e.category]}),s.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-display font-bold text-foreground mb-6 leading-tight",children:e.title}),s.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground mb-8 pb-8 border-b border-border",children:[e.author&&s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Vp,{className:"w-4 h-4"}),e.author]}),e.published_at&&s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(zp,{className:"w-4 h-4"}),ik(new Date(e.published_at),"MMMM d, yyyy")]}),s.jsxs(bt,{variant:"ghost",size:"sm",onClick:l,className:"ml-auto",children:[s.jsx(w_,{className:"w-4 h-4 mr-2"}),"Share"]})]}),e.featured_image&&s.jsx("div",{className:"aspect-video rounded-lg overflow-hidden mb-8",children:s.jsx("img",{src:e.featured_image,alt:e.title,className:"w-full h-full object-cover"})}),s.jsx("div",{className:"prose prose-lg max-w-none text-foreground prose-headings:text-foreground prose-a:text-primary prose-strong:text-foreground prose-p:text-muted-foreground",dangerouslySetInnerHTML:{__html:e.content}}),e.tags&&e.tags.length>0&&s.jsx("div",{className:"mt-12 pt-8 border-t border-border",children:s.jsx("div",{className:"flex flex-wrap gap-2",children:e.tags.map(c=>s.jsxs("span",{className:"px-3 py-1 bg-muted text-muted-foreground text-sm rounded-full",children:["#",c]},c))})})]})})}),i.length>0&&s.jsx("section",{className:"py-16 bg-muted/30",children:s.jsxs("div",{className:"container mx-auto px-4",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-display font-bold text-foreground text-center mb-12",children:"Related Articles"}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:i.map(c=>s.jsxs(Y,{to:`/blog/${c.slug}`,className:"group bg-card rounded-lg overflow-hidden shadow-md hover:shadow-xl transition-all duration-300",children:[c.featured_image&&s.jsx("div",{className:"aspect-video overflow-hidden",children:s.jsx("img",{src:c.featured_image,alt:c.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),s.jsx("div",{className:"p-4",children:s.jsx("h3",{className:"font-display font-semibold text-foreground group-hover:text-primary transition-colors line-clamp-2",children:c.title})})]},c.id))})]})})]}),s.jsx(he,{})]}):s.jsxs(s.Fragment,{children:[s.jsx(de,{}),s.jsx("main",{className:"min-h-screen bg-section-bg py-24",children:s.jsxs("div",{className:"container mx-auto px-4 text-center",children:[s.jsx("h1",{className:"text-4xl font-display font-bold text-foreground mb-4",children:"Post Not Found"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"The blog post you're looking for doesn't exist or has been removed."}),s.jsx(Y,{to:"/blog",children:s.jsxs(bt,{variant:"outline",children:[s.jsx(Jo,{className:"w-4 h-4 mr-2"}),"Back to Blog"]})})]})}),s.jsx(he,{})]})},j$=()=>{const[t,e]=p.useState(""),[r,n]=p.useState(""),[a,i]=p.useState(!1),[o,l]=p.useState(!1),[c,u]=p.useState(!1),d=Il();p.useEffect(()=>{const{data:{subscription:f}}=tt.auth.onAuthStateChange((m,w)=>{w&&d("/admin/blog")});return tt.auth.getSession().then(({data:{session:m}})=>{m&&d("/admin/blog")}),()=>f.unsubscribe()},[d]);const h=async f=>{if(f.preventDefault(),!t||!r){Ie.error("Please enter both email and password");return}if(l(!0),c){const m=`${window.location.origin}/`,{error:w}=await tt.auth.signUp({email:t.trim(),password:r,options:{emailRedirectTo:m}});w?w.message.includes("already registered")?Ie.error("This email is already registered. Please sign in."):Ie.error(w.message):Ie.success("Account created successfully!")}else{const{error:m}=await tt.auth.signInWithPassword({email:t.trim(),password:r});m?m.message.includes("Invalid login credentials")?Ie.error("Invalid email or password"):Ie.error(m.message):Ie.success("Welcome back!")}l(!1)};return s.jsxs("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center px-4",children:[s.jsx(Y,{to:"/",className:"mb-8",children:s.jsx("span",{className:"text-2xl font-heading text-foreground",children:"ORR Realty Group"})}),s.jsx("div",{className:"w-full max-w-md",children:s.jsxs("div",{className:"bg-card border border-border shadow-lg p-8",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("h1",{className:"text-3xl font-heading text-foreground mb-2",children:c?"Create Account":"Admin Login"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:c?"Register to manage your blog":"Sign in to manage your blog"})]}),s.jsxs("form",{onSubmit:h,className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"email",className:"text-foreground",children:"Email"}),s.jsxs("div",{className:"relative",children:[s.jsx(Al,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(Lt,{id:"email",type:"email",placeholder:"rick@orrrealty.com",value:t,onChange:f=>e(f.target.value),className:"pl-10",disabled:o})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ze,{htmlFor:"password",className:"text-foreground",children:"Password"}),s.jsxs("div",{className:"relative",children:[s.jsx(id,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(Lt,{id:"password",type:a?"text":"password",placeholder:"••••••••",value:r,onChange:f=>n(f.target.value),className:"pl-10 pr-10",disabled:o}),s.jsx("button",{type:"button",onClick:()=>i(!a),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground z-10",children:a?s.jsx(Vf,{className:"h-4 w-4"}):s.jsx(Qo,{className:"h-4 w-4"})})]})]}),s.jsx("button",{type:"submit",disabled:o,className:"luxury-button-primary w-full disabled:opacity-50",children:o?c?"Creating Account...":"Signing in...":c?"Create Account":"Sign In"})]}),s.jsx("div",{className:"mt-6 text-center",children:s.jsxs("p",{className:"text-muted-foreground text-sm",children:[c?"Already have an account?":"Don't have an account?"," ",s.jsx("button",{type:"button",onClick:()=>u(!c),className:"text-primary hover:underline font-medium transition-colors",children:c?"Sign In":"Register"})]})})]})})]})},zm=p.forwardRef(({className:t,...e},r)=>s.jsx("textarea",{className:ke("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...e}));zm.displayName="Textarea";var Dd="Switch",[N$,mB]=Gt(Dd),[_$,S$]=N$(Dd),ok=p.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:a,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:u,form:d,...h}=t,[f,m]=p.useState(null),w=ve(e,b=>m(b)),g=p.useRef(!1),y=f?d||!!f.closest("form"):!0,[x,v]=Gr({prop:a,defaultProp:i??!1,onChange:u,caller:Dd});return s.jsxs(_$,{scope:r,checked:x,disabled:l,children:[s.jsx(oe.button,{type:"button",role:"switch","aria-checked":x,"aria-required":o,"data-state":dk(x),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:w,onClick:W(t.onClick,b=>{v(k=>!k),y&&(g.current=b.isPropagationStopped(),g.current||b.stopPropagation())})}),y&&s.jsx(uk,{control:f,bubbles:!g.current,name:n,value:c,checked:x,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});ok.displayName=Dd;var lk="SwitchThumb",ck=p.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,a=S$(lk,r);return s.jsx(oe.span,{"data-state":dk(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:e})});ck.displayName=lk;var C$="SwitchBubbleInput",uk=p.forwardRef(({__scopeSwitch:t,control:e,checked:r,bubbles:n=!0,...a},i)=>{const o=p.useRef(null),l=ve(o,i),c=pg(r),u=md(e);return p.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==r&&m){const w=new Event("click",{bubbles:n});m.call(d,r),d.dispatchEvent(w)}},[c,r,n]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});uk.displayName=C$;function dk(t){return t?"checked":"unchecked"}var hk=ok,E$=ck;const fk=p.forwardRef(({className:t,...e},r)=>s.jsx(hk,{className:ke("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...e,ref:r,children:s.jsx(E$,{className:ke("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));fk.displayName=hk.displayName;const T$=()=>{var v;const[t,e]=p.useState(null),[r,n]=p.useState([]),[a,i]=p.useState(!0),[o,l]=p.useState(null),[c,u]=p.useState(!1),d=Il();p.useEffect(()=>{const{data:{subscription:b}}=tt.auth.onAuthStateChange((k,j)=>{e((j==null?void 0:j.user)??null),j||d("/auth")});return tt.auth.getSession().then(({data:{session:k}})=>{e((k==null?void 0:k.user)??null),k?h():d("/auth")}),()=>b.unsubscribe()},[d]);const h=async()=>{const{data:b,error:k}=await tt.from("blog_posts").select("*").order("created_at",{ascending:!1});k?Ie.error("Failed to fetch posts"):n(b||[]),i(!1)},f=async()=>{await tt.auth.signOut(),d("/auth")},m=()=>{u(!0),l({id:"",title:"",slug:"",excerpt:"",content:"",featured_image:"",author:"Rick Orr",category:"",tags:[],published:!1,published_at:null,created_at:new Date().toISOString()})},w=b=>{u(!1),l({...b})},g=async b=>{if(!confirm("Are you sure you want to delete this post?"))return;const{error:k}=await tt.from("blog_posts").delete().eq("id",b);k?Ie.error("Failed to delete post"):(Ie.success("Post deleted"),h())},y=b=>b.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),x=async()=>{if(!o)return;if(!o.title||!o.slug||!o.content){Ie.error("Title, slug, and content are required");return}const b={title:o.title,slug:o.slug,excerpt:o.excerpt,content:o.content,featured_image:o.featured_image,author:o.author,category:o.category,tags:o.tags,published:o.published,published_at:o.published?o.published_at||new Date().toISOString():null};if(c){const{error:k}=await tt.from("blog_posts").insert([b]);k?Ie.error(k.message):(Ie.success("Post created"),l(null),h())}else{const{error:k}=await tt.from("blog_posts").update(b).eq("id",o.id);k?Ie.error(k.message):(Ie.success("Post updated"),l(null),h())}};return a?s.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:s.jsx("div",{className:"text-gray-500",children:"Loading..."})}):o?s.jsx("div",{className:"min-h-screen bg-white",children:s.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[s.jsx("div",{className:"flex items-center justify-center mb-6",children:s.jsx("span",{className:"text-xl font-heading text-gray-900",children:"ORR Realty Group"})}),s.jsxs("div",{className:"flex items-center justify-between mb-8",children:[s.jsxs(bt,{variant:"outline",onClick:()=>l(null),className:"border-gray-300 text-gray-700 hover:bg-gray-100",children:[s.jsx(Jo,{className:"h-4 w-4 mr-2"}),"Back to Posts"]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(bt,{variant:"outline",onClick:()=>l(null),className:"border-gray-300 text-gray-700 hover:bg-gray-100",children:[s.jsx(ud,{className:"h-4 w-4 mr-2"}),"Cancel"]}),s.jsxs(bt,{onClick:x,className:"bg-red-700 hover:bg-red-800 text-white",children:[s.jsx(qf,{className:"h-4 w-4 mr-2"}),"Save"]})]})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"title",className:"text-gray-700",children:"Title"}),s.jsx(Lt,{id:"title",value:o.title,onChange:b=>{const k=b.target.value;l({...o,title:k,slug:c?y(k):o.slug})},className:"border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"slug",className:"text-gray-700",children:"Slug"}),s.jsx(Lt,{id:"slug",value:o.slug,onChange:b=>l({...o,slug:b.target.value}),className:"border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"excerpt",className:"text-gray-700",children:"Excerpt"}),s.jsx(zm,{id:"excerpt",value:o.excerpt||"",onChange:b=>l({...o,excerpt:b.target.value}),rows:2,className:"border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"content",className:"text-gray-700",children:"Content (HTML)"}),s.jsx(zm,{id:"content",value:o.content,onChange:b=>l({...o,content:b.target.value}),rows:15,className:"font-mono text-sm border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"featured_image",className:"text-gray-700",children:"Featured Image URL"}),s.jsx(Lt,{id:"featured_image",value:o.featured_image||"",onChange:b=>l({...o,featured_image:b.target.value}),className:"border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"author",className:"text-gray-700",children:"Author"}),s.jsx(Lt,{id:"author",value:o.author||"",onChange:b=>l({...o,author:b.target.value}),className:"border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"category",className:"text-gray-700",children:"Category"}),s.jsx(Lt,{id:"category",value:o.category||"",onChange:b=>l({...o,category:b.target.value}),className:"border-gray-300 text-gray-900 bg-white"})]})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"tags",className:"text-gray-700",children:"Tags (comma separated)"}),s.jsx(Lt,{id:"tags",value:((v=o.tags)==null?void 0:v.join(", "))||"",onChange:b=>l({...o,tags:b.target.value.split(",").map(k=>k.trim()).filter(Boolean)}),className:"border-gray-300 text-gray-900 bg-white"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(fk,{id:"published",checked:o.published||!1,onCheckedChange:b=>l({...o,published:b})}),s.jsx(Ze,{htmlFor:"published",className:"text-gray-700",children:"Published"})]})]})]})}):s.jsx("div",{className:"min-h-screen bg-white",children:s.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[s.jsx("div",{className:"flex items-center justify-center mb-6",children:s.jsx("span",{className:"text-xl font-heading text-gray-900",children:"ORR Realty Group"})}),s.jsxs("div",{className:"flex items-center justify-between mb-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-serif text-gray-900",children:"Blog Admin"}),s.jsx("p",{className:"text-gray-500 text-sm",children:t==null?void 0:t.email})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(bt,{variant:"outline",onClick:()=>d("/admin/profile"),className:"border-gray-300 text-gray-700 hover:bg-gray-100",children:[s.jsx(b_,{className:"h-4 w-4 mr-2"}),"Profile"]}),s.jsxs(bt,{variant:"outline",onClick:f,className:"border-gray-300 text-gray-700 hover:bg-gray-100",children:[s.jsx(l_,{className:"h-4 w-4 mr-2"}),"Logout"]}),s.jsxs(bt,{onClick:m,className:"bg-red-700 hover:bg-red-800 text-white",children:[s.jsx(m_,{className:"h-4 w-4 mr-2"}),"New Post"]})]})]}),s.jsx("div",{className:"bg-white border border-gray-200 rounded-lg overflow-hidden",children:s.jsxs("table",{className:"w-full",children:[s.jsx("thead",{className:"bg-gray-50",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left px-4 py-3 text-sm font-medium text-gray-600",children:"Title"}),s.jsx("th",{className:"text-left px-4 py-3 text-sm font-medium text-gray-600",children:"Category"}),s.jsx("th",{className:"text-left px-4 py-3 text-sm font-medium text-gray-600",children:"Status"}),s.jsx("th",{className:"text-right px-4 py-3 text-sm font-medium text-gray-600",children:"Actions"})]})}),s.jsxs("tbody",{className:"divide-y divide-gray-200",children:[r.map(b=>s.jsxs("tr",{className:"hover:bg-gray-50",children:[s.jsxs("td",{className:"px-4 py-3",children:[s.jsx("div",{className:"font-medium text-gray-900",children:b.title}),s.jsxs("div",{className:"text-sm text-gray-500",children:["/blog/",b.slug]})]}),s.jsx("td",{className:"px-4 py-3 text-sm text-gray-500",children:b.category||"—"}),s.jsx("td",{className:"px-4 py-3",children:s.jsx("span",{className:`inline-flex px-2 py-1 text-xs rounded-full ${b.published?"bg-green-100 text-green-700":"bg-yellow-100 text-yellow-700"}`,children:b.published?"Published":"Draft"})}),s.jsxs("td",{className:"px-4 py-3 text-right",children:[s.jsx(bt,{variant:"ghost",size:"sm",onClick:()=>w(b),className:"text-gray-600 hover:text-gray-900 hover:bg-gray-100",children:s.jsx(k_,{className:"h-4 w-4"})}),s.jsx(bt,{variant:"ghost",size:"sm",onClick:()=>g(b.id),className:"text-red-700 hover:text-red-800 hover:bg-red-50",children:s.jsx(j_,{className:"h-4 w-4"})})]})]},b.id)),r.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:4,className:"px-4 py-8 text-center text-gray-500",children:"No posts yet. Create your first post!"})})]})]})})]})})},R$="/assets/realsavvy-logo-DcsBR7GP.png",A$=()=>{const[t,e]=p.useState(null),[r,n]=p.useState(!0),[a,i]=p.useState(""),[o,l]=p.useState(""),[c,u]=p.useState(""),[d,h]=p.useState("");p.useState(!1);const[f,m]=p.useState(!1),[w,g]=p.useState(!1),[y,x]=p.useState(!1),[v,b]=p.useState(!1),k=Il();p.useEffect(()=>{const{data:{subscription:_}}=tt.auth.onAuthStateChange((E,R)=>{e((R==null?void 0:R.user)??null),R||k("/auth")});return tt.auth.getSession().then(({data:{session:E}})=>{e((E==null?void 0:E.user)??null),E?(i(E.user.email||""),n(!1)):k("/auth")}),()=>_.unsubscribe()},[k]);const j=async _=>{if(_.preventDefault(),!a||!a.includes("@")){Ie.error("Please enter a valid email address");return}if(a===(t==null?void 0:t.email)){Ie.info("This is already your current email");return}x(!0);const{error:E}=await tt.auth.updateUser({email:a});E?Ie.error(E.message):Ie.success("Confirmation email sent to your new address. Please check your inbox."),x(!1)},N=async _=>{if(_.preventDefault(),!c||c.length<6){Ie.error("Password must be at least 6 characters");return}if(c!==d){Ie.error("Passwords do not match");return}b(!0);const{error:E}=await tt.auth.updateUser({password:c});E?Ie.error(E.message):(Ie.success("Password updated successfully"),l(""),u(""),h("")),b(!1)};return r?s.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:s.jsx("div",{className:"text-gray-500",children:"Loading..."})}):s.jsx("div",{className:"min-h-screen bg-white",children:s.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-8",children:[s.jsx("div",{className:"flex items-center justify-center mb-6",children:s.jsx("img",{src:R$,alt:"RealSavvy",className:"h-8"})}),s.jsx("div",{className:"flex items-center justify-between mb-8",children:s.jsx(Y,{to:"/admin/blog",children:s.jsxs(bt,{variant:"outline",className:"border-gray-300 text-gray-700 hover:bg-gray-100",children:[s.jsx(Jo,{className:"h-4 w-4 mr-2"}),"Back to Blog Admin"]})})}),s.jsx("h1",{className:"text-2xl font-serif text-gray-900 mb-2",children:"Profile Settings"}),s.jsx("p",{className:"text-gray-500 mb-8",children:"Manage your account settings"}),s.jsxs("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4 mb-8",children:[s.jsx("p",{className:"text-sm text-gray-500",children:"Current Email"}),s.jsx("p",{className:"text-gray-900 font-medium",children:t==null?void 0:t.email})]}),s.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 mb-6",children:[s.jsxs("h2",{className:"text-lg font-medium text-gray-900 mb-4 flex items-center gap-2",children:[s.jsx(Al,{className:"h-5 w-5"}),"Update Email"]}),s.jsxs("form",{onSubmit:j,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"newEmail",className:"text-gray-700",children:"New Email Address"}),s.jsx(Lt,{id:"newEmail",type:"email",value:a,onChange:_=>i(_.target.value),className:"border-gray-300 text-gray-900 bg-white mt-1",placeholder:"newemail@example.com"})]}),s.jsxs(bt,{type:"submit",disabled:y,className:"bg-red-700 hover:bg-red-800 text-white",children:[s.jsx(qf,{className:"h-4 w-4 mr-2"}),y?"Updating...":"Update Email"]}),s.jsx("p",{className:"text-sm text-gray-500",children:"A confirmation email will be sent to your new address."})]})]}),s.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6",children:[s.jsxs("h2",{className:"text-lg font-medium text-gray-900 mb-4 flex items-center gap-2",children:[s.jsx(id,{className:"h-5 w-5"}),"Update Password"]}),s.jsxs("form",{onSubmit:N,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"newPassword",className:"text-gray-700",children:"New Password"}),s.jsxs("div",{className:"relative mt-1",children:[s.jsx(Lt,{id:"newPassword",type:f?"text":"password",value:c,onChange:_=>u(_.target.value),className:"border-gray-300 text-gray-900 bg-white pr-10",placeholder:"••••••••"}),s.jsx("button",{type:"button",onClick:()=>m(!f),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-600 hover:text-gray-900","aria-label":f?"Hide password":"Show password",children:f?s.jsx(Vf,{className:"h-4 w-4"}):s.jsx(Qo,{className:"h-4 w-4"})})]})]}),s.jsxs("div",{children:[s.jsx(Ze,{htmlFor:"confirmPassword",className:"text-gray-700",children:"Confirm New Password"}),s.jsxs("div",{className:"relative mt-1",children:[s.jsx(Lt,{id:"confirmPassword",type:w?"text":"password",value:d,onChange:_=>h(_.target.value),className:"border-gray-300 text-gray-900 bg-white pr-10",placeholder:"••••••••"}),s.jsx("button",{type:"button",onClick:()=>g(!w),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-600 hover:text-gray-900","aria-label":w?"Hide password":"Show password",children:w?s.jsx(Vf,{className:"h-4 w-4"}):s.jsx(Qo,{className:"h-4 w-4"})})]})]}),s.jsxs(bt,{type:"submit",disabled:v,className:"bg-red-700 hover:bg-red-800 text-white",children:[s.jsx(qf,{className:"h-4 w-4 mr-2"}),v?"Updating...":"Update Password"]})]})]})]})})},P$=()=>s.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:"w-5 h-5",children:s.jsx("path",{d:"M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7a8.16 8.16 0 0 0 4.77 1.52v-3.4a4.85 4.85 0 0 1-1-.1z"})}),O$=[{icon:p2,href:"https://www.facebook.com/rickorrrealtor",label:"Facebook"},{icon:y2,href:"https://www.instagram.com/rickorr",label:"Instagram"},{icon:b2,href:"https://www.linkedin.com/in/rickorr",label:"LinkedIn"},{icon:j2,href:"https://www.youtube.com/@rickorr",label:"YouTube"},{icon:P$,href:"https://www.tiktok.com/@rickorr",label:"TikTok",isCustom:!0}],I$=[{icon:od,title:"$485M+ in Sales",description:"Proven track record with over $485 million in total real estate transactions across Austin's luxury market."},{icon:k2,title:"105+ Off-Market Deals",description:"Exclusive access to private listings and off-market opportunities not available to the general public."},{icon:ld,title:"Top Agent for Entrepreneurs",description:"The go-to luxury real estate advisor for Austin's tech founders and entrepreneurs."},{icon:oa,title:"28+ Years Experience",description:"Nearly three decades of Austin real estate expertise, from starter homes to $23M estates."}],M$=[{address:"5205 Tortuga Trail",price:"$23,000,000",location:"Lake Austin",role:"Represented Buyer",note:"2nd Most Expensive Lake Austin Sale 2025"},{address:"3901 Fifth & West #3803",price:"$14,000,000+",location:"Downtown Austin",role:"Represented Buyer",note:"2nd Most Expensive Downtown Penthouse 2025"},{address:"203 Wild Cat Hollow",price:"$5,250,000",location:"Westlake",role:"Represented Buyer",note:"Premier Westlake Estate"}],L$=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"About Rick Orr | Austin Luxury Real Estate Broker"}),s.jsx("meta",{name:"description",content:"Meet Rick Orr - Austin luxury real estate broker with $485M+ in sales, RealSavvy founder, and Bouldin Creek resident since 2007. Top 25 Austin transactions 2025."}),s.jsx("link",{rel:"canonical",href:"https://www.austinrealestateagency.com/about"}),s.jsx("meta",{property:"og:title",content:"About Rick Orr | Austin Luxury Real Estate Broker"}),s.jsx("meta",{property:"og:description",content:"Meet Rick Orr - Austin luxury real estate broker with $485M+ in sales, RealSavvy founder, and Bouldin Creek resident since 2007."}),s.jsx("meta",{property:"og:url",content:"https://www.austinrealestateagency.com/about"}),s.jsx("meta",{property:"og:type",content:"profile"}),s.jsx("meta",{name:"twitter:title",content:"About Rick Orr | Austin Luxury Real Estate Broker"}),s.jsx("meta",{name:"twitter:description",content:"Austin luxury real estate broker with $485M+ in sales, RealSavvy founder, and Bouldin Creek resident since 2007."})]}),s.jsx(de,{}),s.jsxs("section",{className:"relative min-h-[60vh] flex items-center justify-center bg-background pt-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/95 to-background"}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Austin Luxury Real Estate"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-heading text-foreground mb-6",children:"Rick Orr"}),s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto",children:"Tech Entrepreneur · RealSavvy Founder · Austin's Off-Market Specialist"}),s.jsx("p",{className:"text-2xl md:text-3xl font-heading text-primary mt-6",children:"#justtextrick"})]})]}),s.jsxs("main",{className:"bg-background",children:[s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:Hi,alt:"Rick Orr - ORR Realty Group",className:"w-full aspect-[3/4] object-cover object-top"}),s.jsxs("div",{className:"absolute -bottom-6 -right-6 bg-primary text-primary-foreground p-6 hidden md:block",children:[s.jsx("p",{className:"text-sm tracking-[0.15em] uppercase",children:"Since"}),s.jsx("p",{className:"text-xl font-semibold",children:"2007"})]})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary",children:"About Rick"}),s.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading text-foreground",children:"Austin's Premier Luxury Real Estate Broker"}),s.jsx("div",{className:"w-16 h-0.5 bg-primary"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"Rick Orr is a serial tech entrepreneur turned luxury real estate broker, bringing a unique combination of business acumen and market expertise to Austin's high-end real estate market. As the founder and CEO of RealSavvy, he revolutionized how agents connect with clients—and now applies that same innovative approach to his own practice."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"A Bouldin Creek resident since 2007, Rick has deep roots in Austin's most desirable neighborhoods. His intimate knowledge of the local market, combined with 28+ years of real estate experience, positions him as the go-to broker for discerning buyers seeking exceptional properties."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"With over $485 million in total sales and 105+ off-market transactions, Rick specializes in connecting clients with exclusive opportunities before they hit the market. His 2025 achievements include representing buyers on two of Austin's most significant sales: a $23M Lake Austin estate and a $14M+ downtown penthouse."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"When he's not closing deals, you'll find Rick on the golf course—he plays 4 times a week at Lost Creek Country Club. New clients who close on a home receive new clubs up to $1,500 as a welcome gift."})]})]})})}),s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Total Sales",duration:2e3}),s.jsx(Qe,{value:105,suffix:"+",label:"Off-Market Deals",duration:2e3}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"Top Agent"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"For Entrepreneurs"})]}),s.jsx(Qe,{value:28,suffix:"+",label:"Years Experience",duration:2e3})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Why Choose Rick"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"What Sets Rick Apart"}),s.jsx("p",{className:"text-muted-foreground",children:"A unique blend of tech entrepreneurship, deep market knowledge, and a relentless focus on client success."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:I$.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-8 hover:border-primary/50 transition-all duration-300 group",children:[s.jsx(t.icon,{className:"w-10 h-10 text-primary mb-6 group-hover:scale-110 transition-transform"}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Track Record"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Notable Transactions"}),s.jsx("p",{className:"text-muted-foreground",children:"A selection of recent high-profile transactions showcasing expertise in Austin's luxury market."})]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:M$.map((t,e)=>s.jsxs("div",{className:"bg-background border border-border p-8 hover:border-primary/50 transition-all duration-300",children:[s.jsx("p",{className:"text-3xl font-heading text-primary mb-2",children:t.price}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-1",children:t.address}),s.jsx("p",{className:"text-muted-foreground mb-4",children:t.location}),s.jsxs("div",{className:"border-t border-border pt-4",children:[s.jsx("p",{className:"text-sm text-primary",children:t.role}),s.jsx("p",{className:"text-sm text-muted-foreground",children:t.note})]})]},e))})]})}),s.jsx("section",{className:"py-20 bg-background",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Service Areas"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Serving Austin & Beyond"})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8 text-center",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-4 text-primary",children:"Central Austin"}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsx("li",{children:"Bouldin Creek"}),s.jsx("li",{children:"Travis Heights"}),s.jsx("li",{children:"Zilker"}),s.jsx("li",{children:"Tarrytown"})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-4 text-primary",children:"West Austin & Lake Areas"}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsx("li",{children:"Westlake / Rollingwood"}),s.jsx("li",{children:"Lake Austin"}),s.jsx("li",{children:"Lake Travis"}),s.jsx("li",{children:"Bee Cave"})]})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl font-semibold mb-4 text-primary",children:"Hill Country & Coast"}),s.jsxs("ul",{className:"space-y-2 text-muted-foreground",children:[s.jsx("li",{children:"Dripping Springs"}),s.jsx("li",{children:"Spicewood"}),s.jsx("li",{children:"Texas Hill Country"}),s.jsx("li",{children:"Texas Coast"})]})]})]})]})}),s.jsx("section",{className:"py-20 lg:py-28 border-t border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Get In Touch"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Ready to Find Your Austin Home?"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"Whether you're looking for a luxury estate, an off-market opportunity, or your first Austin home, Rick brings the expertise, connections, and dedication to make it happen."}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("a",{href:"tel:5127857489",className:"flex items-center gap-4 text-foreground hover:text-primary transition-colors",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(xs,{className:"w-5 h-5 text-primary"})}),s.jsx("span",{className:"text-lg",children:"(512) 785-7489"})]}),s.jsxs("a",{href:"mailto:rick@orrrealty.com",className:"flex items-center gap-4 text-foreground hover:text-primary transition-colors",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(Al,{className:"w-5 h-5 text-primary"})}),s.jsx("span",{className:"text-lg",children:"rick@orrrealty.com"})]}),s.jsxs("div",{className:"flex items-center gap-4 text-foreground",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(mn,{className:"w-5 h-5 text-primary"})}),s.jsx("span",{className:"text-lg",children:"Bouldin Creek, Austin, TX"})]})]}),s.jsxs("div",{className:"mt-8 pt-8 border-t border-border",children:[s.jsx("p",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground mb-4",children:"Follow Rick"}),s.jsx("div",{className:"flex gap-3",children:O$.map((t,e)=>s.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer","aria-label":t.label,className:"w-12 h-12 rounded-full border border-border flex items-center justify-center text-muted-foreground hover:border-primary hover:bg-primary hover:text-primary-foreground transition-all duration-300",children:"isCustom"in t&&t.isCustom?s.jsx(t.icon,{}):s.jsx(t.icon,{className:"w-5 h-5"})},e))})]})]}),s.jsxs("div",{className:"bg-card p-8 lg:p-12 border border-border",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx(X5,{className:"w-8 h-8 text-primary"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"RealSavvy"}),s.jsx("p",{className:"text-xl font-semibold text-foreground",children:"Founder & CEO"})]})]}),s.jsx("div",{className:"w-full h-px bg-border my-6"}),s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx(u2,{className:"w-8 h-8 text-primary"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Brokerage"}),s.jsx("p",{className:"text-xl font-semibold text-foreground",children:"ORR Realty Group"})]})]}),s.jsx("div",{className:"w-full h-px bg-border my-6"}),s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx(cd,{className:"w-8 h-8 text-primary"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Country Club"}),s.jsx("p",{className:"text-foreground",children:"Lost Creek Country Club"})]})]}),s.jsx("div",{className:"w-full h-px bg-border my-6"}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(ld,{className:"w-8 h-8 text-primary"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"Golf Incentive"}),s.jsx("p",{className:"text-foreground",children:"New clubs up to $1,500 at closing"})]})]})]})]})})})]}),s.jsx(he,{})]}),D$="/assets/buyers-guide-hero-C4NQlaDD.jpg",$$=[{icon:y_,title:"Define Your Vision",description:"We start with an in-depth consultation to understand your lifestyle, investment goals, and non-negotiables. Whether you're relocating from Silicon Valley or upgrading within Austin, Rick tailors the search to your priorities."},{icon:i_,title:"Get Pre-Approved & Strategize",description:"Rick connects you with top-tier lenders who specialize in jumbo loans, self-employed borrowers, and complex financial profiles common among entrepreneurs and executives."},{icon:oa,title:"Access Exclusive Inventory",description:"With 105+ off-market transactions, Rick unlocks properties you won't find on Zillow or Redfin. His network of founders, investors, and high-net-worth individuals provides early access to pocket listings across Austin."},{icon:d2,title:"Tour & Evaluate",description:"Rick personally tours every property with you, providing data-driven insights on neighborhood appreciation, school districts, flood zones, and resale potential — not just square footage."},{icon:Is,title:"Negotiate & Protect",description:"Leveraging his tech background and market analytics, Rick negotiates aggressively on price, repairs, and terms. Every contract is structured to protect your investment."},{icon:v2,title:"Close & Celebrate",description:"Rick manages every detail from inspection to closing, coordinating with title companies, lenders, and attorneys so you can focus on what matters most — your next chapter."}],F$=[{name:"Westlake / Rollingwood",price:"$3.2M+ median",description:"Top-rated Eanes ISD, Hill Country estates, and unmatched privacy minutes from downtown.",link:"/neighborhoods/westlake"},{name:"Lake Austin",price:"$5M+ waterfront",description:"Private waterfront compounds, boat docks, and resort-style living on Austin's most coveted lake.",link:"/neighborhoods/lake-austin"},{name:"Tarrytown",price:"$2M+ median",description:"Old Austin charm meets modern luxury. Tree-lined streets, walkability, and a tight-knit community.",link:"/neighborhoods/tarrytown"},{name:"Bouldin Creek",price:"$1.5M+ median",description:"Austin's most creative neighborhood. Walkable to SoCo, food trailers, and downtown — Rick's home since 2007.",link:"/bouldin-creek"},{name:"Travis Heights",price:"$1.8M+ median",description:"Elevated lots with skyline views, mid-century gems, and proximity to Lady Bird Lake trails.",link:"/neighborhoods/travis-heights"},{name:"Dripping Springs",price:"$1.2M+ median",description:"Texas wine country living with acreage, new-build estates, and a rapidly growing luxury market.",link:"/neighborhoods/dripping-springs"}],B$=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Luxury Buyer's Guide | Austin TX | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"Your comprehensive guide to buying luxury real estate in Austin, TX. Off-market access, expert negotiation, and insider knowledge from Rick Orr — Austin's off-market specialist."}),s.jsx("link",{rel:"canonical",href:"https://www.austinrealestateagency.com/buyers-guide"}),s.jsx("meta",{property:"og:title",content:"Luxury Buyer's Guide | Austin TX | ORR Realty Group"}),s.jsx("meta",{property:"og:description",content:"Your guide to buying luxury real estate in Austin, TX. Off-market access, expert negotiation, and insider knowledge from Rick Orr."}),s.jsx("meta",{property:"og:url",content:"https://www.austinrealestateagency.com/buyers-guide"}),s.jsx("meta",{property:"og:type",content:"article"}),s.jsx("meta",{name:"twitter:title",content:"Luxury Buyer's Guide | Austin TX | ORR Realty Group"}),s.jsx("meta",{name:"twitter:description",content:"Your guide to buying luxury real estate in Austin, TX. Off-market access and expert negotiation from Rick Orr."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[60vh] lg:min-h-[70vh] relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${D$})`}}),s.jsx("div",{className:"absolute inset-0 bg-background/70"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"ORR Realty Group"}),s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase mb-6",children:"Luxury Buyer's Guide"}),s.jsx("p",{className:"text-muted-foreground text-lg md:text-xl max-w-2xl mx-auto",children:"Your roadmap to purchasing premium real estate in Austin — from off-market discovery to closing day."})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"Why Rick Orr"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"A Different Kind of Buyer's Agent"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-6",children:"Most agents show you what's on the MLS. Rick shows you what isn't. As a serial tech entrepreneur and founder of RealSavvy, Rick built his career connecting people with opportunity — and he brings that same approach to luxury real estate."}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-8",children:"With $485M+ in career sales and 105+ private off-market transactions, Rick's network of founders, executives, and investors gives you access to properties before they ever hit the market."}),s.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[s.jsxs("div",{className:"text-center p-6 border border-border",children:[s.jsx("p",{className:"font-heading text-3xl text-foreground",children:"$485M+"}),s.jsx("p",{className:"text-muted-foreground text-sm uppercase tracking-wider mt-1",children:"Career Sales"})]}),s.jsxs("div",{className:"text-center p-6 border border-border",children:[s.jsx("p",{className:"font-heading text-3xl text-foreground",children:"105+"}),s.jsx("p",{className:"text-muted-foreground text-sm uppercase tracking-wider mt-1",children:"Off-Market Deals"})]})]})]}),s.jsxs("div",{className:"relative",children:[s.jsx("img",{src:Hi,alt:"Rick Orr — Austin luxury real estate",className:"w-full aspect-[3/4] object-cover object-top"}),s.jsxs("div",{className:"absolute -bottom-6 -right-6 bg-primary text-primary-foreground p-6 hidden md:block",children:[s.jsx("p",{className:"text-sm tracking-[0.15em] uppercase",children:"Since"}),s.jsx("p",{className:"text-xl font-semibold",children:"1997"})]})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"The Process"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"How Buying With Rick Works"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg",children:"A streamlined, white-glove experience designed for busy professionals who value their time."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:$$.map((t,e)=>s.jsxs("div",{className:"p-8 border border-border hover:border-primary/30 transition-colors",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx("div",{className:"w-12 h-12 flex items-center justify-center border border-border",children:s.jsx(t.icon,{className:"w-5 h-5 text-foreground"})}),s.jsxs("span",{className:"font-heading text-sm text-muted-foreground tracking-[0.2em] uppercase",children:["Step ",e+1]})]}),s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:t.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"Where to Buy"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"Austin's Premier Neighborhoods"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg",children:"Rick specializes in Austin's most sought-after enclaves — each offering a distinct lifestyle."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:F$.map((t,e)=>s.jsxs(Y,{to:t.link,className:"group p-8 border border-border hover:border-primary/30 transition-all",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground group-hover:text-primary transition-colors",children:t.name}),s.jsx(mn,{className:"w-4 h-4 text-muted-foreground"})]}),s.jsx("p",{className:"text-sm text-primary/80 font-heading uppercase tracking-wider mb-3",children:t.price}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"For Entrepreneurs"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"What Tech Founders Should Know"})]}),s.jsxs("div",{className:"grid md:grid-cols-2 gap-12 max-w-4xl mx-auto",children:[s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"font-heading text-lg text-foreground mb-3 flex items-center gap-3",children:[s.jsx(od,{className:"w-5 h-5 text-foreground"}),"Pre-IPO & Stock-Based Income"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Navigating mortgage qualification with RSUs, stock options, or variable income requires specialized lenders. Rick's network includes private banks experienced with tech compensation structures."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"font-heading text-lg text-foreground mb-3 flex items-center gap-3",children:[s.jsx(Is,{className:"w-5 h-5 text-foreground"}),"Privacy & Entity Purchases"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Many high-profile buyers purchase through LLCs or trusts for privacy and asset protection. Rick regularly facilitates entity-based transactions with complete discretion."})]})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{children:[s.jsxs("h3",{className:"font-heading text-lg text-foreground mb-3 flex items-center gap-3",children:[s.jsx(oa,{className:"w-5 h-5 text-foreground"}),"Relocation from the Coasts"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Austin continues to attract founders and executives from SF, LA, and NYC. Rick understands the lifestyle transition and helps you find the right community — not just the right house."})]}),s.jsxs("div",{children:[s.jsxs("h3",{className:"font-heading text-lg text-foreground mb-3 flex items-center gap-3",children:[s.jsx(v2,{className:"w-5 h-5 text-foreground"}),"Off-Market Advantage"]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"In competitive luxury markets, the best properties never hit the MLS. Rick's relationships with Austin's top agents and homeowners unlock inventory invisible to other buyers."})]})]})]})]})}),s.jsx("section",{className:"py-20 bg-section-bg border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center max-w-3xl",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"Ready to Find Your Austin Home?"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-10",children:"Whether you're searching for a waterfront estate on Lake Austin, a modern build in Westlake, or an off-market gem in Bouldin Creek — Rick is ready to make it happen."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx(Y,{to:"/idx",className:"luxury-button-primary",children:"Search Properties"}),s.jsx("a",{href:"tel:5127857489",className:"px-8 py-3 border border-border text-foreground uppercase tracking-[0.15em] text-sm hover:border-primary transition-colors",children:"Call (512) 785-7489"})]})]})}),s.jsx(qg,{})]}),s.jsx(he,{})]}),U$="/assets/sellers-guide-hero-ErNOu1dR.jpg",W$=[{icon:n_,title:"Strategic Pricing Analysis",description:"Rick builds a custom Comparative Market Analysis using real-time data, off-market comps, and neighborhood-level insights that Zestimates simply can't match. Pricing right from day one is everything."},{icon:r_,title:"Luxury Staging & Media",description:"Professional staging, architectural photography, cinematic video tours, and drone footage — all designed to showcase your home's story and attract qualified, high-net-worth buyers."},{icon:c_,title:"Targeted Marketing Launch",description:"Your property is promoted through Rick's exclusive network of entrepreneurs, executives, and investors — plus precision digital campaigns across social, search, and luxury real estate platforms."},{icon:cd,title:"Private & Off-Market Exposure",description:"With 105+ off-market transactions, Rick can match your property to qualified buyers before it ever hits the MLS — preserving privacy while maximizing demand."},{icon:x2,title:"Expert Negotiation",description:"Rick's tech entrepreneur background gives him a unique edge at the negotiating table. He structures deals to protect your equity and maximize your net proceeds, not just the sale price."},{icon:f_,title:"Seamless Closing",description:"From accepted offer to closing day, Rick coordinates every detail — inspections, appraisals, title, and lender communication — so you can move forward stress-free."}],z$=[{icon:Qo,title:"Off-Market Network",stat:"105+",description:"Private sales closed through Rick's exclusive network — your home reaches buyers no one else can access."},{icon:m2,title:"Premium Results",stat:"$485M+",description:"Career sales volume built on getting sellers top dollar through strategic pricing and aggressive marketing."},{icon:od,title:"Market Knowledge",stat:"28+ Years",description:"Deep Austin expertise across every cycle — Rick knows when to list, how to price, and where demand is headed."},{icon:f2,title:"Speed to Close",stat:"Top 25",description:"Ranked among Austin's top agents in 2026 — Rick's track record attracts serious, pre-qualified buyers."}],H$=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Luxury Seller's Guide | Austin TX | ORR Realty Group"}),s.jsx("meta",{name:"description",content:"Your comprehensive guide to selling luxury real estate in Austin, TX. Off-market strategies, premium marketing, and expert negotiation from Rick Orr — Austin's off-market specialist."}),s.jsx("link",{rel:"canonical",href:"https://www.austinrealestateagency.com/sellers-guide"}),s.jsx("meta",{property:"og:title",content:"Luxury Seller's Guide | Austin TX | ORR Realty Group"}),s.jsx("meta",{property:"og:description",content:"Your guide to selling luxury real estate in Austin, TX. Off-market strategies, premium marketing, and expert negotiation from Rick Orr."}),s.jsx("meta",{property:"og:url",content:"https://www.austinrealestateagency.com/sellers-guide"}),s.jsx("meta",{property:"og:type",content:"article"}),s.jsx("meta",{name:"twitter:title",content:"Luxury Seller's Guide | Austin TX | ORR Realty Group"}),s.jsx("meta",{name:"twitter:description",content:"Your guide to selling luxury real estate in Austin, TX. Off-market strategies and premium marketing from Rick Orr."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[60vh] lg:min-h-[70vh] relative flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${U$})`}}),s.jsx("div",{className:"absolute inset-0 bg-background/70"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center relative z-10",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"ORR Realty Group"}),s.jsx("h1",{className:"luxury-heading text-4xl md:text-5xl lg:text-6xl font-semibold tracking-[0.15em] uppercase mb-6",children:"Luxury Seller's Guide"}),s.jsx("p",{className:"text-muted-foreground text-lg md:text-xl max-w-2xl mx-auto",children:"Maximize your home's value with off-market strategies, premium marketing, and Austin's most connected broker."})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[s.jsxs("div",{className:"relative order-2 lg:order-1",children:[s.jsx("img",{src:Hi,alt:"Rick Orr — Austin luxury listing agent",className:"w-full aspect-[3/4] object-cover object-top"}),s.jsxs("div",{className:"absolute -bottom-6 -left-6 bg-primary text-primary-foreground p-6 hidden md:block",children:[s.jsx("p",{className:"text-sm tracking-[0.15em] uppercase",children:"Sold"}),s.jsx("p",{className:"text-xl font-semibold",children:"$485M+"})]})]}),s.jsxs("div",{className:"order-1 lg:order-2",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"Why Rick Orr"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Not Your Typical Listing Agent"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-6",children:"Selling a luxury home requires more than a sign in the yard and an MLS listing. It demands strategy, discretion, and a network of qualified buyers who are ready to move. Rick brings all three."}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed mb-6",children:"As a tech entrepreneur who built and sold RealSavvy, Rick understands what high-net-worth sellers need: data-driven pricing, sophisticated marketing, and a broker who treats your transaction like a business deal — because that's exactly what it is."}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"Whether you want maximum exposure or a completely private sale, Rick's dual-track approach gives you options no other agent can offer."})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"The Advantage"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase",children:"Why Sellers Choose Rick"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:z$.map((t,e)=>s.jsxs("div",{className:"text-center p-8 border border-border",children:[s.jsx(t.icon,{className:"w-8 h-8 mx-auto mb-4 text-foreground"}),s.jsx("p",{className:"font-heading text-3xl text-foreground mb-2",children:t.stat}),s.jsx("p",{className:"font-heading text-sm uppercase tracking-wider text-primary/80 mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"The Process"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"How Selling With Rick Works"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto text-lg",children:"A proven six-step process refined over 28 years and $485M+ in transactions."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:W$.map((t,e)=>s.jsxs("div",{className:"p-8 border border-border hover:border-primary/30 transition-colors",children:[s.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[s.jsx("div",{className:"w-12 h-12 flex items-center justify-center border border-border",children:s.jsx(t.icon,{className:"w-5 h-5 text-foreground"})}),s.jsxs("span",{className:"font-heading text-sm text-muted-foreground tracking-[0.2em] uppercase",children:["Step ",e+1]})]}),s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:t.title}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 max-w-4xl",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary/80",children:"For Entrepreneurs"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"What Tech Founders Should Know About Selling"})]}),s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Timing Around Liquidity Events"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Whether you're selling post-acquisition, after an IPO lockup period, or to diversify assets before a new venture — timing the sale of your home is a strategic decision. Rick helps you align your real estate moves with your financial calendar."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Privacy-First Selling"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"High-profile founders and executives often prefer to sell without public listings. Rick's off-market network allows you to sell discretely to pre-qualified buyers — no open houses, no days on market, no public price history."})]}),s.jsxs("div",{className:"p-8 border border-border",children:[s.jsx("h3",{className:"font-heading text-xl text-foreground mb-4",children:"Maximizing Value in Austin's Luxury Market"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Austin's luxury segment moves differently than the broader market. Rick's data shows which improvements yield ROI, when demand peaks in each neighborhood, and how to position your property to attract premium offers from relocating buyers."})]})]})]})}),s.jsx("section",{className:"py-20 bg-section-bg border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center max-w-3xl",children:[s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-6",children:"What's Your Home Worth?"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-10",children:"Get a complimentary, data-driven valuation of your Austin luxury property. No obligation, no automated estimates — just Rick's expert analysis based on real market data."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx(Y,{to:"/home-valuation",className:"luxury-button-primary",children:"Get Your Home Valuation"}),s.jsx("a",{href:"tel:5127857489",className:"px-8 py-3 border border-border text-foreground uppercase tracking-[0.15em] text-sm hover:border-primary transition-colors",children:"Call (512) 785-7489"})]})]})}),s.jsx(qg,{})]}),s.jsx(he,{})]}),V$=()=>{const t=vs();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),s.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),s.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),s.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},q$=()=>{const{pathname:t}=vs();return p.useEffect(()=>{window.scrollTo(0,0)},[t]),null},G$=[{icon:g_,title:"Tech Industry Insight",description:"As RealSavvy's founder, Rick understands the startup world—equity events, relocation timelines, and the unique needs of tech professionals."},{icon:o_,title:"Strategic Approach",description:"Data-driven market analysis and tech-forward tools to find the perfect property in Austin's competitive market."},{icon:cd,title:"Network Access",description:"Deep connections across Austin's tech ecosystem, from founders to VCs, opening doors to off-market opportunities."},{icon:od,title:"Investment Mindset",description:"Understanding of equity compensation, liquidity events, and timing purchases around vesting schedules."}],K$=[{name:"Domain / North Austin",description:"Near Apple, Amazon, Meta"},{name:"Downtown Austin",description:"Walkable to major tech offices"},{name:"East Austin",description:"Startup-friendly, eclectic vibe"},{name:"Mueller",description:"Master-planned, tech-centric"},{name:"South Congress (SoCo)",description:"Creative hub, central location"},{name:"Bouldin Creek",description:"Rick's neighborhood since 2007"}],lv=[{question:"Why is Rick Orr the best realtor for startup founders in Austin?",answer:"Rick founded RealSavvy, a real estate technology company, giving him unique insight into both the startup world and real estate. He understands equity events, relocation timelines, and the fast-paced decision-making that founders face. His $485M+ in sales includes numerous tech executives and entrepreneurs."},{question:"Does Rick work with pre-IPO employees navigating equity compensation?",answer:"Yes. Rick has extensive experience helping tech employees time their home purchases around vesting schedules, liquidity events, and equity considerations. He can connect you with financial advisors who specialize in tech compensation."},{question:"What neighborhoods does Rick recommend for tech professionals?",answer:"It depends on your priorities—proximity to specific tech campuses, walkability, or investment potential. Popular areas include Domain (near Apple/Amazon), Downtown, Mueller, East Austin, and established neighborhoods like Bouldin Creek and Travis Heights."},{question:"Can Rick help find off-market homes near tech hubs?",answer:"Absolutely. With 105+ off-market transactions, Rick maintains an extensive network that provides early access to properties before they hit the market. This is especially valuable in competitive neighborhoods near major tech employers."}],Y$=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Best Realtor in Austin for Startup Entrepreneurs | Rick Orr"}),s.jsx("meta",{name:"description",content:"Rick Orr is Austin's top realtor for startup founders and tech entrepreneurs. RealSavvy founder with $485M+ in sales, specializing in homes near Austin's tech hubs."}),s.jsx("meta",{name:"keywords",content:"Austin realtor startup entrepreneurs, tech executive real estate Austin, RealSavvy founder realtor, best realtor tech workers Austin"}),s.jsx("link",{rel:"canonical",href:"https://austinrealestateagency.com/startup-entrepreneurs"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:lv.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"RealEstateAgent",name:"Rick Orr",jobTitle:"Broker / Owner",worksFor:{"@type":"RealEstateAgent",name:"ORR Realty Group"},url:"https://austinrealestateagency.com/startup-entrepreneurs",telephone:"(512) 785-7489",areaServed:{"@type":"City",name:"Austin",addressRegion:"TX"},description:"Austin's top realtor for startup founders and tech entrepreneurs. RealSavvy founder with $485M+ in sales.",knowsAbout:["Tech Executive Relocations","Startup Founder Real Estate","Equity Compensation","Austin Tech Hubs"]})})]}),s.jsx(de,{}),s.jsxs("section",{className:"relative min-h-[70vh] flex items-center justify-center bg-background pt-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/95 to-background"}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"For Tech Founders & Executives"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading text-foreground mb-6",children:"Best Realtor in Austin for Startup Entrepreneurs"}),s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto mb-8",children:"Rick Orr built RealSavvy. Now he helps Austin's tech leaders find their perfect homes with the same innovative, data-driven approach."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"#justtextrick"})]})]})]}),s.jsxs("main",{className:"bg-background",children:[s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Total Sales",duration:2e3}),s.jsx(Qe,{value:105,suffix:"+",label:"Off-Market Deals",duration:2e3}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"RealSavvy"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Founder & CEO"})]}),s.jsx(Qe,{value:28,suffix:"+",label:"Years Experience",duration:2e3})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary",children:"Why Founders Choose Rick"}),s.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading text-foreground",children:"A Realtor Who Speaks Your Language"}),s.jsx("div",{className:"w-16 h-0.5 bg-primary"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"As the founder of RealSavvy—a real estate technology platform—Rick Orr isn't just another agent. He's a fellow entrepreneur who understands the unique challenges and opportunities facing Austin's tech community."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Whether you're a pre-IPO employee timing your purchase around a liquidity event, a founder relocating your family after a funding round, or an executive seeking proximity to your company's Austin campus, Rick brings both market expertise and tech-world insight."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"His network spans Austin's startup ecosystem, providing access to off-market opportunities and the kind of strategic advice that only comes from walking in your shoes."})]}),s.jsx("div",{className:"grid grid-cols-2 gap-6",children:G$.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-6 hover:border-primary/50 transition-all duration-300",children:[s.jsx(t.icon,{className:"w-8 h-8 text-primary mb-4"}),s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:t.title}),s.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]},e))})]})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Neighborhoods"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Austin's Best Neighborhoods for Tech Professionals"}),s.jsx("p",{className:"text-muted-foreground",children:"Strategic locations near major employers with the lifestyle amenities you're looking for."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:K$.map((t,e)=>s.jsxs("div",{className:"bg-background border border-border p-6 hover:border-primary/50 transition-all duration-300 flex items-start gap-4",children:[s.jsx(u2,{className:"w-6 h-6 text-primary flex-shrink-0 mt-1"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground",children:t.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:t.description})]})]},e))}),s.jsxs("div",{className:"mt-12 bg-background border border-border p-12 text-center",children:[s.jsx(oa,{className:"w-12 h-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-heading text-foreground mb-2",children:"Featured Homes Near Tech Hubs"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"IDX property grid coming soon"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Contact Rick for current listings in these neighborhoods"})]})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Common Questions"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Frequently Asked Questions"})]}),s.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:lv.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:t.question}),s.jsx("p",{className:"text-muted-foreground",children:t.answer})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Ready to Find Your Austin Home?"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Whether you're relocating for a new role, celebrating a liquidity event, or just ready to put down roots in Austin's tech scene, Rick is here to help."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"mailto:rick@orrrealty.com",className:"luxury-button-outline",children:"Email Rick"})]})]})})]}),s.jsx(he,{})]}),J$=[{icon:Is,title:"Exclusive Buyer Representation",description:"Rick works exclusively for your interests, never representing both sides of a transaction."},{icon:k2,title:"Off-Market Access",description:"With 105+ private transactions, Rick opens doors to properties you won't find on Zillow or Redfin."},{icon:m2,title:"Negotiation Expertise",description:"Proven track record of saving buyers hundreds of thousands on luxury purchases."},{icon:ld,title:"Top-Tier Results",description:"Top 25 Austin 2026 transactions, including the 2nd most expensive Lake Austin and Downtown penthouse sales."}],Q$=[{address:"5205 Tortuga Trail",price:"$23,000,000",location:"Lake Austin",achievement:"2nd Most Expensive Lake Austin Sale 2025"},{address:"3901 Fifth & West #3803",price:"$14,000,000+",location:"Downtown Austin",achievement:"2nd Most Expensive Downtown Penthouse 2025"},{address:"203 Wild Cat Hollow",price:"$5,250,000",location:"Westlake",achievement:"Premier Westlake Estate"},{address:"2 Inwood Cove",price:"Luxury Sale",location:"Rollingwood",achievement:"Exclusive Buyer Representation"},{address:"2 Hillside",price:"Luxury Sale",location:"Westlake",achievement:"Off-Market Acquisition"}],X$=["Access to off-market and pre-market properties","Exclusive buyer representation—never dual agency","Strategic negotiation backed by $485M+ in transactions","Deep relationships with listing agents across Austin","Understanding of luxury construction and property values","Connections to inspectors, lenders, and attorneys","Post-close support and referral network"],cv=[{question:"What makes Rick Orr the best luxury buyer's agent in Austin?",answer:"Rick has represented buyers on two of Austin's most significant 2025 transactions: the $23M Tortuga estate (2nd most expensive Lake Austin sale) and the $14M+ Fifth & West penthouse (2nd most expensive downtown penthouse). His 105+ off-market transactions demonstrate unparalleled access and negotiation skills."},{question:"Does Rick only represent buyers or also sellers?",answer:"While Rick works with select sellers on luxury listings, he specializes in buyer representation. He never represents both sides of the same transaction, ensuring your interests are always his sole priority."},{question:"How does Rick find off-market luxury properties?",answer:"With 28+ years in Austin real estate and deep relationships across the brokerage community, Rick often learns about properties before they're listed. His RealSavvy technology background also gives him access to sophisticated market intelligence."},{question:"What areas of Austin does Rick cover for luxury buyers?",answer:"Rick serves all of Austin's premier neighborhoods including Westlake, Rollingwood, Lake Austin, Lake Travis, Tarrytown, Bouldin Creek, Travis Heights, and downtown high-rises. He also covers Dripping Springs and the Texas Hill Country."}],Z$=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Best Luxury Buyer's Agent in Austin | Rick Orr"}),s.jsx("meta",{name:"description",content:"Rick Orr is Austin's top luxury buyer's agent with $485M+ in sales. Represented buyers on $23M Lake Austin estate and $14M+ downtown penthouse. Exclusive buyer representation."}),s.jsx("meta",{name:"keywords",content:"Austin luxury buyer agent, best buyer's agent Austin TX, luxury home buyer representation, Austin high-end real estate buyer"}),s.jsx("link",{rel:"canonical",href:"https://austinrealestateagency.com/luxury-buyers-agent"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:cv.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"RealEstateAgent",name:"Rick Orr",jobTitle:"Broker / Owner",worksFor:{"@type":"RealEstateAgent",name:"ORR Realty Group"},url:"https://austinrealestateagency.com/luxury-buyers-agent",telephone:"(512) 785-7489",areaServed:{"@type":"City",name:"Austin",addressRegion:"TX"},description:"Austin's top luxury buyer's agent with $485M+ in sales. Exclusive buyer representation, never dual agency.",knowsAbout:["Luxury Buyer Representation","Off-Market Properties","Austin Luxury Real Estate","Negotiation"]})})]}),s.jsx(de,{}),s.jsxs("section",{className:"relative min-h-[70vh] flex items-center justify-center bg-background pt-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/95 to-background"}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Exclusive Buyer Representation"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading text-foreground mb-6",children:"Best Luxury Buyer's Agent in Austin"}),s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto mb-8",children:"Rick Orr has represented buyers on two of Austin's most significant 2025 transactions. Your interests. Your advocate. Your luxury home."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"#justtextrick"})]})]})]}),s.jsxs("main",{className:"bg-background",children:[s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Total Sales",duration:2e3}),s.jsx(Qe,{value:105,suffix:"+",label:"Off-Market Deals",duration:2e3}),s.jsx(Qe,{value:23,prefix:"$",suffix:"M",label:"Largest Buyer Rep",duration:2e3}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"Top Agent"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"For Entrepreneurs"})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Buyer Representation Track Record"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Notable Buyer Transactions"}),s.jsx("p",{className:"text-muted-foreground",children:"A selection of properties where Rick represented the buyer's interests exclusively."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:Q$.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-6 hover:border-primary/50 transition-all duration-300",children:[s.jsx("p",{className:"text-2xl font-heading text-primary mb-2",children:t.price}),s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-1",children:t.address}),s.jsx("p",{className:"text-muted-foreground mb-3",children:t.location}),s.jsx("p",{className:"text-sm text-primary",children:t.achievement})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary",children:"The Rick Orr Difference"}),s.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading text-foreground",children:"Why Exclusive Buyer Representation Matters"}),s.jsx("div",{className:"w-16 h-0.5 bg-primary"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"In luxury real estate, the difference between good and exceptional representation can mean hundreds of thousands of dollars. Rick Orr represents buyers exclusively—never both sides of a transaction—ensuring your interests are always paramount."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"With access to 105+ off-market transactions and deep relationships across Austin's brokerage community, Rick finds properties others can't—and negotiates terms that protect your investment."})]}),s.jsxs("div",{className:"bg-background border border-border p-8",children:[s.jsx("h3",{className:"text-xl font-heading text-foreground mb-6",children:"What You Get with Rick"}),s.jsx("ul",{className:"space-y-4",children:X$.map((t,e)=>s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(d2,{className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),s.jsx("span",{className:"text-muted-foreground",children:t})]},e))})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:J$.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-8 hover:border-primary/50 transition-all duration-300 group",children:[s.jsx(t.icon,{className:"w-10 h-10 text-primary mb-6 group-hover:scale-110 transition-transform"}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Current Inventory"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Luxury Homes $2M+"})]}),s.jsxs("div",{className:"bg-background border border-border p-12 text-center",children:[s.jsx(oa,{className:"w-12 h-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-heading text-foreground mb-2",children:"Featured Luxury Listings"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"IDX property grid coming soon"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Contact Rick for current luxury inventory"})]})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Common Questions"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Frequently Asked Questions"})]}),s.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:cv.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:t.question}),s.jsx("p",{className:"text-muted-foreground",children:t.answer})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Ready for Exceptional Buyer Representation?"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Whether you're seeking a lakefront estate, downtown penthouse, or Hill Country retreat, Rick brings the expertise, access, and advocacy you deserve."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"mailto:rick@orrrealty.com",className:"luxury-button-outline",children:"Email Rick"})]})]})})]}),s.jsx(he,{})]}),eF=[{icon:id,title:"Privacy & Discretion",description:"Many luxury sellers prefer to keep their sale private. Off-market means no public listings, no open houses, no digital footprint."},{icon:Qo,title:"First Look Access",description:"See properties before they hit the market, giving you time to evaluate without the pressure of competing buyers."},{icon:x2,title:"Less Competition",description:"Off-market properties often receive fewer offers, improving your negotiating position."},{icon:f2,title:"Flexible Timelines",description:"Without the pressure of days-on-market, both buyers and sellers can negotiate terms that work for everyone."}],tF=[{step:"01",title:"Consultation",description:"We discuss your criteria—location, features, investment goals, and timeline."},{step:"02",title:"Network Activation",description:"Rick reaches out to his extensive network of agents, builders, and property owners."},{step:"03",title:"Private Previews",description:"You tour qualified properties privately, before they're exposed to the market."},{step:"04",title:"Strategic Negotiation",description:"With less competition, we negotiate from a position of strength."}],uv=[{question:"What is an off-market listing?",answer:"An off-market listing is a property that's for sale but not publicly advertised on the MLS or consumer websites like Zillow. These private sales offer discretion for sellers and exclusive access for connected buyers."},{question:"Why do sellers choose off-market sales?",answer:"Luxury sellers often prefer privacy—they don't want the public knowing their home is for sale or having strangers tour their property. Off-market sales also avoid the stigma of days-on-market if the property doesn't sell immediately."},{question:"How does Rick find off-market properties?",answer:"With 28+ years in Austin real estate, Rick has built deep relationships with agents, builders, developers, and property owners across the city. Many sellers approach him directly knowing he has qualified buyers. His 105+ off-market transactions speak to this network."},{question:"Are off-market properties more expensive?",answer:"Not necessarily. While some command a premium for exclusivity, many off-market sellers are motivated by discretion rather than maximizing price. The reduced competition can actually benefit buyers in negotiations."},{question:"Can I list my home off-market with Rick?",answer:"Yes. If you value privacy and have a luxury property in Austin, Rick can market your home exclusively to his network of qualified buyers without public exposure."}],rF=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Top Off-Market Listings Realtor Austin TX | Rick Orr"}),s.jsx("meta",{name:"description",content:"Rick Orr is Austin's leading off-market real estate specialist with 105+ private transactions. Access exclusive properties before they hit the market."}),s.jsx("meta",{name:"keywords",content:"off-market listings Austin, private real estate sales Austin TX, pocket listings Austin, exclusive Austin properties"}),s.jsx("link",{rel:"canonical",href:"https://austinrealestateagency.com/off-market-listings"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:uv.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"RealEstateAgent",name:"Rick Orr",jobTitle:"Broker / Owner",worksFor:{"@type":"RealEstateAgent",name:"ORR Realty Group"},url:"https://austinrealestateagency.com/off-market-listings",telephone:"(512) 785-7489",areaServed:{"@type":"City",name:"Austin",addressRegion:"TX"},description:"Austin's leading off-market real estate specialist with 105+ private transactions.",knowsAbout:["Off-Market Listings","Private Real Estate Sales","Pocket Listings","Luxury Properties"]})})]}),s.jsx(de,{}),s.jsxs("section",{className:"relative min-h-[70vh] flex items-center justify-center bg-background pt-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/95 to-background"}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Exclusive Access"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading text-foreground mb-6",children:"Top Off-Market Listings Realtor in Austin"}),s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto mb-8",children:"With 105+ private transactions, Rick Orr opens doors to Austin's most exclusive properties—before they hit the market."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"#justtextrick"})]})]})]}),s.jsxs("main",{className:"bg-background",children:[s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsx(Qe,{value:105,suffix:"+",label:"Off-Market Deals",duration:2e3}),s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Total Sales",duration:2e3}),s.jsx(Qe,{value:28,suffix:"+",label:"Years Experience",duration:2e3}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"Top Agent"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"For Entrepreneurs"})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Why Off-Market"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"The Advantages of Off-Market Transactions"}),s.jsx("p",{className:"text-muted-foreground",children:"Off-market sales offer unique benefits for both buyers and sellers seeking discretion and strategic advantage."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:eF.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-8 hover:border-primary/50 transition-all duration-300 group",children:[s.jsx(t.icon,{className:"w-10 h-10 text-primary mb-6 group-hover:scale-110 transition-transform"}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"The Process"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"How Off-Market Access Works"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:tF.map((t,e)=>s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-5xl font-heading text-primary/30 mb-4",children:t.step}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground text-sm",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary",children:"For Sellers"}),s.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading text-foreground",children:"Sell Your Luxury Home Privately"}),s.jsx("div",{className:"w-16 h-0.5 bg-primary"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"If you're considering selling a luxury property in Austin but prefer discretion, Rick can market your home exclusively to his network of qualified buyers."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:'No public listings. No open houses. No "For Sale" signs. Just direct connections to serious, qualified buyers who respect your privacy.'}),s.jsxs("ul",{className:"space-y-3 text-muted-foreground",children:[s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx(Is,{className:"w-5 h-5 text-primary"}),"Complete privacy throughout the sale"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx(Is,{className:"w-5 h-5 text-primary"}),"Access to pre-qualified luxury buyers"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx(Is,{className:"w-5 h-5 text-primary"}),"No days-on-market concerns"]}),s.jsxs("li",{className:"flex items-center gap-3",children:[s.jsx(Is,{className:"w-5 h-5 text-primary"}),"Flexible showing schedules"]})]})]}),s.jsxs("div",{className:"bg-card border border-border p-8 lg:p-12",children:[s.jsx("h3",{className:"text-2xl font-heading text-foreground mb-6",children:"Request Off-Market Access"}),s.jsx("p",{className:"text-muted-foreground mb-6",children:"Whether you're buying or selling, Rick's off-market network provides unique opportunities in Austin's luxury market."}),s.jsx("div",{className:"space-y-4",children:s.jsxs("a",{href:"tel:5127857489",className:"flex items-center gap-4 text-foreground hover:text-primary transition-colors",children:[s.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center",children:s.jsx(xs,{className:"w-5 h-5 text-primary"})}),s.jsx("span",{className:"text-lg",children:"(512) 785-7489"})]})}),s.jsx("div",{className:"mt-8",children:s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary w-full text-center block",children:"Schedule a Consultation"})})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"bg-background border border-border p-12 text-center",children:[s.jsx(id,{className:"w-12 h-12 text-primary mx-auto mb-4"}),s.jsx("h3",{className:"text-xl font-heading text-foreground mb-2",children:"Current Off-Market Inventory"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"Off-market properties are not publicly listed. Contact Rick for access."}),s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Request Access"})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Common Questions"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Off-Market FAQ"})]}),s.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:uv.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:t.question}),s.jsx("p",{className:"text-muted-foreground",children:t.answer})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Ready for Off-Market Access?"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Join Rick's network of discerning buyers and sellers who value privacy, exclusivity, and exceptional results."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"mailto:rick@orrrealty.com",className:"luxury-button-outline",children:"Email Rick"})]})]})})]}),s.jsx(he,{})]}),nF=[{icon:a_,title:"Local Culture",description:"Home to Austin's best coffee shops, local eateries, and the eclectic South Congress scene."},{icon:N_,title:"Green Spaces",description:"Zilker Park, Barton Springs Pool, Lady Bird Lake trails—all within walking or biking distance."},{icon:h_,title:"Music & Arts",description:"Live music venues, art galleries, and Austin's creative soul right in your backyard."},{icon:__,title:"Dining Scene",description:"From food trucks to fine dining, Bouldin Creek offers some of Austin's best culinary experiences."}],sF=[{name:"South Congress (SoCo)",type:"Shopping & Dining"},{name:"Zilker Park",type:"Recreation"},{name:"Barton Springs Pool",type:"Swimming"},{name:"Lady Bird Lake",type:"Trails & Kayaking"},{name:"Continental Club",type:"Live Music"},{name:"Magnolia Cafe",type:"Dining Icon"}],dv=[{question:"What makes Rick Orr the best Bouldin Creek real estate broker?",answer:"Rick has lived in Bouldin Creek since 2007—nearly two decades of walking the streets, knowing the neighbors, and watching the neighborhood evolve. His hyperlocal expertise combined with $485M+ in sales makes him the definitive Bouldin Creek specialist."},{question:"What's the average home price in Bouldin Creek?",answer:"Bouldin Creek home prices vary widely, from updated bungalows in the $800Ks to new construction and estates exceeding $3M+. Contact Rick for current market data specific to your target price range."},{question:"Is Bouldin Creek walkable?",answer:"Very. The neighborhood offers easy access to South Congress dining and shopping, Zilker Park, Lady Bird Lake trails, and downtown Austin. Many residents bike or walk to their daily destinations."},{question:"Does Rick have off-market listings in Bouldin Creek?",answer:"Yes. Many Bouldin Creek homeowners prefer to sell privately. Rick's deep neighborhood connections often surface properties before they hit the market. With 105+ off-market transactions overall, he maintains an active private inventory."},{question:"What schools serve Bouldin Creek?",answer:"The neighborhood is served by Austin ISD, including Becker Elementary, O. Henry Middle School, and Austin High School. There are also several highly-regarded private schools nearby."}],aF=()=>s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Top Bouldin Creek Real Estate Broker | Rick Orr | Since 2007"}),s.jsx("meta",{name:"description",content:"Rick Orr has lived in Bouldin Creek since 2007. Austin's top Bouldin Creek real estate broker with $485M+ in sales and deep hyperlocal expertise."}),s.jsx("meta",{name:"keywords",content:"Bouldin Creek realtor, Bouldin Creek homes for sale, 78704 real estate, South Austin realtor, Bouldin Creek broker"}),s.jsx("link",{rel:"canonical",href:"https://austinrealestateagency.com/bouldin-creek"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:dv.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"RealEstateAgent",name:"Rick Orr",jobTitle:"Broker / Owner",worksFor:{"@type":"RealEstateAgent",name:"ORR Realty Group"},url:"https://austinrealestateagency.com/bouldin-creek",telephone:"(512) 785-7489",areaServed:{"@type":"Neighborhood",name:"Bouldin Creek",containedInPlace:{"@type":"City",name:"Austin",addressRegion:"TX"}},description:"Rick Orr has lived in Bouldin Creek since 2007. Austin's top Bouldin Creek real estate broker with $485M+ in sales and deep hyperlocal expertise.",knowsAbout:["Bouldin Creek Real Estate","78704 Homes","South Austin Properties","Off-Market Listings"]})})]}),s.jsx(de,{}),s.jsxs("section",{className:"relative min-h-[70vh] flex items-center justify-center pt-24",children:[s.jsxs("div",{className:"absolute inset-0",children:[s.jsx("img",{src:u8,alt:"Bouldin Creek luxury home",className:"w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-background/80"})]}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Your Neighbor Since 2007"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading text-foreground mb-6",children:"Top Bouldin Creek Real Estate Broker"}),s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-2xl mx-auto mb-8",children:"Rick Orr doesn't just sell homes in Bouldin Creek—he's lived here for nearly two decades. Hyperlocal expertise meets luxury real estate excellence."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"#justtextrick"})]})]})]}),s.jsxs("main",{className:"bg-background",children:[s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"Since 2007"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Bouldin Creek Resident"})]}),s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Total Sales",duration:2e3}),s.jsx(Qe,{value:105,suffix:"+",label:"Off-Market Deals",duration:2e3}),s.jsx(Qe,{value:28,suffix:"+",label:"Years Experience",duration:2e3})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[s.jsxs("div",{className:"space-y-6",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary",children:"Your Neighborhood Expert"}),s.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-heading text-foreground",children:"I've Called Bouldin Creek Home Since 2007"}),s.jsx("div",{className:"w-16 h-0.5 bg-primary"}),s.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:"There's a difference between an agent who sells in Bouldin Creek and one who lives here. I've walked these streets for nearly two decades, watched the neighborhood evolve, and helped countless neighbors buy and sell their homes."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"I know which blocks flood, which streets stay quiet, which houses have been renovated (and by whom), and where the next development is planned. This isn't market research—it's my daily life."}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"When you work with me in Bouldin Creek, you're not just getting a broker with $485M+ in sales. You're getting a neighbor who genuinely knows and loves this community."})]}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"bg-card border border-border p-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(mn,{className:"w-8 h-8 text-primary flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Bouldin Creek, 78704"}),s.jsx("p",{className:"text-muted-foreground",children:"One of Austin's most desirable neighborhoods, known for its character homes, mature trees, walkability, and proximity to downtown."})]})]})}),s.jsx("div",{className:"bg-card border border-border p-6",children:s.jsxs("div",{className:"flex items-start gap-4",children:[s.jsx(Hp,{className:"w-8 h-8 text-primary flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-2",children:"Hyperlocal Advantage"}),s.jsx("p",{className:"text-muted-foreground",children:"Know about off-market opportunities, neighborhood developments, and market shifts before they're public knowledge."})]})]})})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Why Bouldin Creek"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"What Makes Bouldin Creek Special"}),s.jsx("p",{className:"text-muted-foreground",children:"A neighborhood that perfectly captures Austin's unique blend of culture, nature, and urban convenience."})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:nF.map((t,e)=>s.jsxs("div",{className:"bg-background border border-border p-8 hover:border-primary/50 transition-all duration-300 group",children:[s.jsx(t.icon,{className:"w-10 h-10 text-primary mb-6 group-hover:scale-110 transition-transform"}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:t.title}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Local Favorites"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Neighborhood Highlights"}),s.jsx("p",{className:"text-muted-foreground mb-8",children:"From Rick's personal list of places that make Bouldin Creek one of Austin's best neighborhoods."}),s.jsx("div",{className:"grid grid-cols-2 gap-4",children:sF.map((t,e)=>s.jsxs("div",{className:"bg-card border border-border p-4",children:[s.jsx("h3",{className:"font-semibold text-foreground",children:t.name}),s.jsx("p",{className:"text-sm text-muted-foreground",children:t.type})]},e))})]}),s.jsxs("div",{className:"bg-card border border-border p-8 flex flex-col items-center justify-center text-center",children:[s.jsx(oa,{className:"w-12 h-12 text-primary mb-4"}),s.jsx("h3",{className:"text-xl font-heading text-foreground mb-2",children:"Bouldin Creek Homes"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"IDX property grid coming soon"}),s.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Contact Rick for current Bouldin Creek listings"}),s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"View Listings"})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Common Questions"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Bouldin Creek FAQ"})]}),s.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:dv.map((t,e)=>s.jsxs("div",{className:"bg-background border border-border p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:t.question}),s.jsx("p",{className:"text-muted-foreground",children:t.answer})]},e))})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Ready to Find Your Bouldin Creek Home?"}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Whether you're looking to buy, sell, or just want to learn more about the neighborhood, Rick is here to help—as your broker and your neighbor."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"mailto:rick@orrrealty.com",className:"luxury-button-outline",children:"Email Rick"})]})]})})]}),s.jsx(he,{})]}),hv=[{question:"Who is the best real estate agent for private golf clubs in Austin, Texas?",answer:"Rick Orr. He plays four rounds a week, is a member of Westlake Country Club, and maintains active relationships with the membership and golf pros at every major private club in Central Texas — Austin Country Club, Barton Creek, Spanish Oaks, The Hills of Lakeway, UT Golf Club, River Place, Onion Creek, Twin Creeks, Cimarron Hills, Driftwood, and the new Lora Loma at Lakecliff. No other Austin realtor combines that depth of playing, membership, and market knowledge."},{question:"Which private golf clubs does Rick have relationships with in Central Texas?",answer:"Rick has active member or pro relationships at Westlake Country Club (his home club), Austin Country Club, Barton Creek Country Club, Spanish Oaks Golf Club, The Hills of Lakeway (Flintrock Falls), UT Golf Club at Steiner Ranch, River Place Country Club, Onion Creek Club, Twin Creeks Country Club, Cimarron Hills (Georgetown), Grey Rock at Circle C, Falconhead Golf Club, Driftwood Golf & Ranch Club, and Lakecliff / the new Lora Loma course by Beau Welling — where Rick personally owns a lot."},{question:"How does Rick's free round at Westlake CC work?",answer:"If you're seriously exploring an Austin-area home purchase and considering a private-club membership, Rick will host you at Westlake Country Club for a complimentary round of golf — no obligation, no pressure. It's the fastest way to talk through club fit, membership pathways, and available real estate in the setting where those conversations actually make sense. Reach out to Rick to schedule."},{question:"Can Rick help me get into a club that's capped or has a waitlist?",answer:"Rick can't grant membership — no realtor can — but he can sponsor, refer, and introduce. At sponsored-membership clubs (Austin Country Club, Spanish Oaks, Westlake, Driftwood), a resident-member realtor's introduction meaningfully accelerates the process. Rick will be honest about the realistic pathway at each club."},{question:"Which Austin golf community is the best value right now?",answer:"For families, Twin Creeks (Cedar Park), Circle C, and UT Golf Club at Steiner Ranch. For low-initiation private access, River Place, Cimarron Hills, and Onion Creek. For no-compromises top-tier, Spanish Oaks, Barton Creek, and Westlake CC. For the highest-conviction long-hold play, Lora Loma at Lakecliff and Driftwood Golf & Ranch — both new-course communities with founding-tier pricing."},{question:"Does Rick know about off-market golf-community homes?",answer:"Yes. Because Rick actually lives inside the golf-membership circle, he hears about listings weeks before they hit MLS — especially at Westlake, ACC, Spanish Oaks, and Barton Creek where off-market activity is heavy. That access is the single biggest reason golfers hire Rick over a generalist agent."}],iF=()=>{const t=Array.from(new Set(Mn.map(e=>e.region)));return s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Austin Private Golf Course Real Estate | Rick Orr, Westlake CC Member"}),s.jsx("meta",{name:"description",content:"Central Texas's #1 realtor for private golf-club real estate. Rick Orr plays 4x/week, is a Westlake CC member, and has relationships at ACC, Barton Creek, Spanish Oaks, Flintrock, UT Golf Club, Driftwood, Lora Loma & more. Free round at Westlake for qualified buyers."}),s.jsx("meta",{name:"keywords",content:"Austin private golf club realtor, Westlake Country Club homes, Austin Country Club real estate, Barton Creek homes, Spanish Oaks Austin, Flintrock Falls Lakeway, UT Golf Club Steiner Ranch, Driftwood Golf Ranch, Lora Loma Beau Welling, Central Texas golf community realtor"}),s.jsx("link",{rel:"canonical",href:"https://www.austinrealestateagency.com/private-golf-courses"}),s.jsx("meta",{property:"og:title",content:"Austin Private Golf Course Real Estate | Rick Orr"}),s.jsx("meta",{property:"og:description",content:"Central Texas's #1 realtor for private golf-club real estate. Rick plays 4x/week, is a Westlake CC member, and covers every major private club in Central Texas."}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:url",content:"https://www.austinrealestateagency.com/private-golf-courses"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"RealEstateAgent",name:"Rick Orr",jobTitle:"Broker / Owner",worksFor:{"@type":"RealEstateAgent",name:"ORR Realty Group"},url:"https://www.austinrealestateagency.com/private-golf-courses",telephone:"(512) 785-7489",areaServed:[{"@type":"City",name:"Austin",addressRegion:"TX"},{"@type":"City",name:"Lakeway",addressRegion:"TX"},{"@type":"City",name:"Bee Cave",addressRegion:"TX"},{"@type":"City",name:"Georgetown",addressRegion:"TX"},{"@type":"City",name:"Cedar Park",addressRegion:"TX"},{"@type":"City",name:"Spicewood",addressRegion:"TX"},{"@type":"City",name:"Driftwood",addressRegion:"TX"}],description:"Central Texas's leading realtor for private golf-course real estate. Westlake Country Club member, plays 4x/week, active relationships with membership and pros at every major private club in Austin, Lakeway, Georgetown, Cedar Park, and the Hill Country.",memberOf:{"@type":"Organization",name:"Westlake Country Club"},knowsAbout:Mn.map(e=>e.name)})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:hv.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ItemList",itemListElement:Mn.map((e,r)=>({"@type":"ListItem",position:r+1,name:e.name,url:`https://www.austinrealestateagency.com/private-golf-courses/${e.slug}`}))})})]}),s.jsx(de,{}),s.jsxs("section",{className:"relative min-h-[80vh] flex items-center justify-center bg-background pt-24",children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background via-background/95 to-background"}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-5xl mx-auto",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Central Texas • Private Golf Real Estate"}),s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-heading text-foreground mb-6 leading-tight",children:"Austin's Realtor for Private Golf Clubs"}),s.jsx("p",{className:"text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto mb-8",children:"Rick Orr plays golf four times a week. He's a member of Westlake Country Club and maintains active member or head-pro relationships at every major private club in Central Texas. No one in Austin real estate knows this territory better."}),s.jsxs("div",{className:"bg-primary/10 border border-primary/30 rounded-lg p-6 max-w-2xl mx-auto mb-8",children:[s.jsx(g2,{className:"w-8 h-8 text-primary mx-auto mb-3"}),s.jsx("p",{className:"text-foreground text-lg font-semibold mb-2",children:"Free round at Westlake CC"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Seriously exploring an Austin home purchase? Rick will host you for a complimentary round at Westlake Country Club — the best possible setting to talk club fit, membership, and real estate. No obligation."})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsxs("a",{href:"tel:5127857489",className:"luxury-button-primary inline-flex items-center gap-2",children:[s.jsx(xs,{className:"w-4 h-4"})," Call Rick: (512) 785-7489"]}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"#justtextrick"})]})]})]}),s.jsxs("main",{className:"bg-background",children:[s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"4x/Week"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Rounds Played"})]}),s.jsx(Qe,{value:Mn.length,suffix:"+",label:"Clubs Covered",duration:1800}),s.jsx(Qe,{value:485,prefix:"$",suffix:"M+",label:"Career Sales",duration:2e3}),s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-3xl md:text-4xl lg:text-5xl font-semibold mb-2 text-primary",children:"Free"}),s.jsx("div",{className:"text-sm tracking-[0.15em] uppercase text-muted-foreground",children:"Round at Westlake"})]})]})})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Why Golfers Hire Rick"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"A realtor who's actually inside the ropes"})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:[{icon:ld,title:"Member, Westlake CC",body:"Rick's home club. He's on the property four times a week — which is how he hears about listings, memberships, and neighborhood moves before anyone else."},{icon:cd,title:"Relationships at every club",body:"Head pros, membership directors, and long-tenured members at ACC, Barton Creek, Spanish Oaks, Flintrock, Driftwood, UT Golf Club, and more. Introductions accelerate everything."},{icon:mn,title:"Tour + preview access",body:"Rick can arrange a walk-of-the-course, clubhouse tour, and honest membership conversation at any club on this page — including the new Lora Loma at Lakecliff where Rick owns a lot."},{icon:Hp,title:"Off-market pipeline",body:"In tightly-held communities like ACC, Westlake, and Spanish Oaks, most homes trade off-market. Rick's member network is the entry point — his buyers see homes before they list."}].map((e,r)=>s.jsxs("div",{className:"bg-card border border-border p-8 hover:border-primary/50 transition-all",children:[s.jsx(e.icon,{className:"w-10 h-10 text-primary mb-6"}),s.jsx("h3",{className:"text-xl font-semibold text-foreground mb-3",children:e.title}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.body})]},r))})]})}),t.map(e=>{const r=Mn.filter(n=>n.region===e);return s.jsx("section",{className:"py-16 lg:py-20 border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"mb-10",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-3",children:"Region"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground",children:e})]}),s.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:r.map(n=>s.jsxs(Y,{to:`/private-golf-courses/${n.slug}`,className:"bg-card border border-border p-6 hover:border-primary transition-all group",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground group-hover:text-primary transition-colors",children:n.name}),s.jsx("span",{className:"text-xs uppercase tracking-wider bg-primary/10 text-primary px-2 py-1 rounded shrink-0 ml-2",children:n.courseType})]}),s.jsx("p",{className:"text-xs text-primary mb-2",children:n.architect}),s.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:n.location}),s.jsx("p",{className:"text-xs text-muted-foreground",children:n.priceBand})]},n.slug))})]})},e)}),s.jsx("section",{className:"py-20 lg:py-28 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-16",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Answer-Engine Questions"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Central Texas Private-Golf Real Estate FAQ"})]}),s.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:hv.map((e,r)=>s.jsxs("div",{className:"bg-background border border-border p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:e.question}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.answer})]},r))})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:"Let's talk it through on the 1st tee."}),s.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto mb-8",children:"Serious about an Austin-area home purchase and considering a private-club membership? Rick will host you for a round at Westlake CC — no obligation, all the honest answers you can ask for."}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"Text #justtextrick"})]})]})})]}),s.jsx(he,{})]})},oF=({areaId:t,label:e,zipFallback:r,title:n,seeMoreUrl:a="/idx",maxDisplay:i=12})=>t?s.jsx(Er,{title:n||`Active Listings in ${e}`,suggestionId:t,suggestionLabel:e,pageSize:40,maxDisplay:i,seeMoreUrl:a}):r&&r.length>0?s.jsx(Er,{title:n||`Active Listings near ${e}`,filter:{listing_status:{value:["Active"]},purchase_type:{value:["Purchase"]},zip:{value:r}},pageSize:40,maxDisplay:i,seeMoreUrl:a}):null,lF=({areaId:t,zipFallback:e,region:r,courseType:n,shortName:a})=>{const i=t?{listing_status:{value:["Active","Pending"]}}:e&&e.length>0?{agent_profile:Og,listing_status:{value:["Active","Pending"]},purchase_type:{value:["Purchase"]},zip:{value:e}}:{listing_status:{value:["Active"]}},{data:o}=B3(i,1,40,t),l=p.useMemo(()=>{const f=[...(o==null?void 0:o.data)??[]].sort((w,g)=>{const y=w.attributes.listed_at?Date.parse(w.attributes.listed_at):0;return(g.attributes.listed_at?Date.parse(g.attributes.listed_at):0)-y}),m=[];for(const w of f){const g=w.attributes.cover_photo_url||w.attributes.photo_urls&&w.attributes.photo_urls[0];if(g&&!m.includes(g)&&m.push(g),m.length>=3)break}return m},[o]),[c,u]=p.useState(0);p.useEffect(()=>{if(l.length<2)return;const h=window.setInterval(()=>{u(f=>(f+1)%l.length)},5e3);return()=>window.clearInterval(h)},[l.length]);const d=t?W3(t,a):`/idx?q=${encodeURIComponent(a)}`;return s.jsxs("section",{className:"relative min-h-[70vh] flex items-end justify-center bg-background pt-24 overflow-hidden",children:[s.jsxs("div",{className:"absolute inset-0",children:[l.map((h,f)=>s.jsx("div",{className:"absolute inset-0 bg-cover bg-center transition-opacity duration-1000",style:{backgroundImage:`url(${h})`,opacity:f===c?1:0},"aria-hidden":"true"},h)),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/40 via-background/10 to-background/70"})]}),l.length>1&&s.jsx("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:l.map((h,f)=>s.jsx("button",{onClick:()=>u(f),"aria-label":`Show hero image ${f+1}`,className:`h-1.5 rounded-full transition-all ${f===c?"w-8 bg-primary":"w-4 bg-white/40 hover:bg-white/70"}`},f))}),s.jsxs("div",{className:"relative z-10 text-center px-4 max-w-4xl mx-auto pb-16",children:[s.jsxs("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-6 bg-background/60 inline-block px-4 py-2 rounded",children:[r," • ",n]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[s.jsxs("a",{href:d,className:"luxury-button-primary inline-flex items-center gap-2",children:[s.jsx(xs,{className:"w-4 h-4"})," View All Listings"]}),s.jsx("a",{href:"sms:2149069834",className:"luxury-button-outline",children:"#justtextrick"})]})]})]})},cF=({open:t,onOpenChange:e,clubName:r,clubShortName:n,clubSlug:a})=>{const{toast:i}=Sl(),[o,l]=p.useState(!1),[c,u]=p.useState(!1),[d,h]=p.useState(!1),[f,m]=p.useState(Date.now()),[w,g]=p.useState(""),[y,x]=p.useState({firstName:"",lastName:"",email:"",phone:"",interest:`${n} membership`,message:""});p.useEffect(()=>{t&&(m(Date.now()),h(!1),x(k=>({...k,interest:`${n} membership`})))},[t,n]);const v=async k=>{k.preventDefault(),l(!0);const j=await mg(y,{tag:`golf-membership-${a}`,honeypotValue:w,formLoadTime:f});l(!1),j.success?(h(!0),x({firstName:"",lastName:"",email:"",phone:"",interest:`${n} membership`,message:""}),u(!1),g("")):i({title:"Error",description:j.error||"Failed to send. Please try again.",variant:"destructive"})},b=k=>{x({...y,[k.target.name]:k.target.value})};return s.jsx(T4,{open:t,onOpenChange:e,children:s.jsxs(jg,{className:"sm:max-w-[520px] bg-background border-border/50 p-0 overflow-hidden",children:[s.jsxs(Ng,{className:"p-6 pb-0",children:[s.jsx(_g,{className:"font-heading text-2xl tracking-wide text-foreground",children:d?"Message received.":`Talk to Rick about ${n} membership`}),!d&&s.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["Rick will personally reply — usually within a few hours. He'll walk you through the current ",r," membership landscape, home availability, and next steps."]})]}),d?s.jsxs("div",{className:"p-6 space-y-5 bg-primary-foreground",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(h2,{className:"w-6 h-6 text-primary shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsxs("p",{className:"text-foreground font-medium mb-1",children:["Thanks — Rick got your note about ",n,"."]}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"He'll reach out shortly. In the meantime, want to keep the conversation going now?"})]})]}),s.jsxs("div",{className:"border border-primary/40 bg-primary/5 p-5 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[s.jsx(d_,{className:"w-5 h-5"}),s.jsx("span",{className:"text-sm tracking-[0.15em] uppercase font-medium",children:"JustTextRick.com"})]}),s.jsx("p",{className:"text-sm text-foreground/90",children:"Ask Rick's AI clone anything — memberships, off-market inventory, neighborhoods, schools. Trained on Rick's playbook, available 24/7."}),s.jsx(Y,{to:"/just-text-rick",onClick:()=>e(!1),className:"inline-block luxury-button-primary",children:"Chat with Rick's clone →"})]}),s.jsx("button",{type:"button",onClick:()=>e(!1),className:"w-full text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Close"})]}):s.jsxs("form",{onSubmit:v,className:"p-6 space-y-5 bg-primary-foreground",children:[s.jsx("input",{type:"text",name:"website",value:w,onChange:k=>g(k.target.value),className:"absolute -left-[9999px] opacity-0 h-0 w-0",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),s.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[s.jsx("input",{type:"text",name:"firstName",placeholder:"First Name",value:y.firstName,onChange:b,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("input",{type:"text",name:"lastName",placeholder:"Last Name",value:y.lastName,onChange:b,required:!0,className:"w-full bg-muted/25 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"})]}),s.jsx("input",{type:"email",name:"email",placeholder:"Email Address",value:y.email,onChange:b,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("input",{type:"tel",name:"phone",placeholder:"Phone Number",value:y.phone,onChange:b,required:!0,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors"}),s.jsx("textarea",{name:"message",placeholder:`What would you like to know about ${n}? (optional)`,value:y.message,onChange:b,rows:3,className:"w-full bg-muted/50 border border-border/50 rounded-sm px-4 py-3 text-foreground placeholder:text-muted-foreground focus:border-primary focus:outline-none transition-colors resize-none"}),s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx(Ml,{id:`optin-membership-${a}`,checked:c,onCheckedChange:k=>u(k===!0),className:"mt-0.5",required:!0}),s.jsxs("label",{htmlFor:`optin-membership-${a}`,className:"text-xs leading-relaxed cursor-pointer text-primary",children:["By providing ",s.jsx("strong",{children:"ORR Realty Group"})," your contact information, you acknowledge and agree to our"," ",s.jsx(Y,{to:"/privacy-policy",onClick:()=>e(!1),className:"hover:underline text-destructive",children:"Privacy Policy"})," ","and consent to receiving marketing communications, including emails, calls, and text messages. Reply STOP to opt out. Message and data rates may apply."]})]}),s.jsx("button",{type:"submit",disabled:o||!c,className:"w-full luxury-button-primary disabled:opacity-50 disabled:cursor-not-allowed",children:o?"Sending...":"Send to Rick"})]})]})})},uF=()=>{const{slug:t}=dg(),e=t?FP(t):void 0,[r,n]=p.useState(!1);if(!e)return s.jsx($c,{to:"/private-golf-courses",replace:!0});const a=`https://www.austinrealestateagency.com/private-golf-courses/${e.slug}`,i=`${e.name} Homes & Membership | Rick Orr, Austin Golf Realtor`,o=`${e.hero.tagline} Rick Orr — Westlake CC member, plays 4x/week — is Austin's leading realtor for ${e.shortName} real estate and membership guidance. ${e.priceBand}.`,l=[{q:`Who is the best real estate agent for ${e.name}?`,a:`Rick Orr. He plays golf four rounds a week, is a member of Westlake Country Club, and maintains active member or head-pro relationships at ${e.name} and every other major private club in Central Texas. Rick can arrange a course tour, membership introduction, and off-market home preview at ${e.shortName}.`},{q:`What is the ${e.name} membership initiation and process?`,a:`${e.membership.initiation?`Initiation: ${e.membership.initiation}. `:""}${e.membership.dues?`Dues: ${e.membership.dues}. `:""}${e.membership.waitlist?`Waitlist / entry: ${e.membership.waitlist}. `:""}Rick can walk you through the current membership landscape and, where applicable, sponsor or refer qualified buyers.`},{q:`Who designed the course at ${e.shortName}?`,a:`${e.architect}${e.yearOpened?`, opened ${e.yearOpened}`:""}. ${e.copy.course}`},{q:`What kind of homes are available at ${e.shortName}?`,a:`${e.copy.community} Price band: ${e.priceBand}. ${e.copy.realEstate}`},{q:`Are there off-market homes at ${e.shortName}?`,a:`Yes. Rick's member relationships regularly surface ${e.shortName} homes before they reach MLS. If you want to see everything — public and pre-market — call Rick directly at (512) 785-7489.`},{q:`Can I tour ${e.shortName} before buying a home?`,a:"Rick can arrange a course walk, clubhouse tour, and membership conversation. And if you're a serious Central-Texas buyer, Rick will host you for a complimentary round at his home club, Westlake CC, to talk it all through."}],c=Mn.filter(u=>u.slug!==e.slug&&u.region===e.region).slice(0,3);return s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsx("title",{children:i}),s.jsx("meta",{name:"description",content:o}),s.jsx("meta",{name:"keywords",content:e.seoKeywords.join(", ")}),s.jsx("link",{rel:"canonical",href:a}),s.jsx("meta",{property:"og:title",content:i}),s.jsx("meta",{property:"og:description",content:o}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:url",content:a}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("meta",{name:"twitter:title",content:i}),s.jsx("meta",{name:"twitter:description",content:o}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"RealEstateAgent",name:"Rick Orr",worksFor:{"@type":"RealEstateAgent",name:"ORR Realty Group"},url:a,telephone:"(512) 785-7489",areaServed:{"@type":"Place",name:`${e.location}, Texas`},memberOf:{"@type":"Organization",name:"Westlake Country Club"},knowsAbout:[e.name,e.architect,`${e.shortName} membership`,`${e.shortName} homes for sale`],description:o})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"GolfCourse",name:e.name,description:e.copy.course,address:{"@type":"PostalAddress",addressLocality:e.location,addressRegion:"TX",addressCountry:"US"}})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:l.map(u=>({"@type":"Question",name:u.q,acceptedAnswer:{"@type":"Answer",text:u.a}}))})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://www.austinrealestateagency.com/"},{"@type":"ListItem",position:2,name:"Private Golf Courses",item:"https://www.austinrealestateagency.com/private-golf-courses"},{"@type":"ListItem",position:3,name:e.name,item:a}]})})]}),s.jsx(de,{}),s.jsx(lF,{areaId:e.areaId,zipFallback:e.zipFallback,region:e.region,courseType:e.courseType,shortName:e.shortName}),s.jsxs("main",{className:"bg-background",children:[e.featuredListing&&s.jsx("section",{className:"py-12 bg-primary/10 border-y border-primary/30",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-3",children:"Rick's Personal Lot"}),s.jsx("h2",{className:"text-2xl md:text-3xl font-heading text-foreground mb-3",children:e.featuredListing.address}),s.jsx("p",{className:"text-muted-foreground mb-6",children:e.featuredListing.note}),s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Schedule Site Walk"})]})})}),s.jsx("section",{className:"py-12 bg-card border-y border-border",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 text-center",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-2xl md:text-3xl font-semibold text-primary mb-1",children:e.holes}),s.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Holes"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-lg md:text-xl font-semibold text-primary mb-1",children:e.architect.split(",")[0]}),s.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Architect"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-lg md:text-xl font-semibold text-primary mb-1",children:e.courseType}),s.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Access"})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-lg md:text-xl font-semibold text-primary mb-1",children:e.priceBand}),s.jsx("div",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Home Prices"})]})]})})}),s.jsx("section",{className:"py-16 lg:py-20",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 max-w-4xl text-center",children:[s.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl font-heading text-foreground mb-4",children:e.name}),s.jsx("p",{className:"text-lg text-muted-foreground mb-4",children:e.location}),s.jsx("p",{className:"text-lg md:text-xl text-foreground/90 max-w-3xl mx-auto mb-6 italic",children:e.hero.tagline}),s.jsx("p",{className:"text-base text-muted-foreground max-w-3xl mx-auto",children:e.hero.intro})]})}),e.vibe&&s.jsx("section",{className:"py-20 lg:py-24 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"From Rick + Katy"}),s.jsx("h2",{className:"text-3xl md:text-4xl font-heading text-foreground mb-6",children:e.vibe.heading}),s.jsx("p",{className:"text-base md:text-lg text-muted-foreground leading-relaxed",children:e.vibe.copy})]}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 md:gap-4 max-w-6xl mx-auto",children:e.vibe.images.map((u,d)=>s.jsxs("figure",{className:`group relative overflow-hidden bg-background border border-border ${d===0?"col-span-2 row-span-2 aspect-square":"aspect-square"}`,children:[s.jsx("img",{src:u.src,alt:u.alt,loading:"lazy",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),u.caption&&s.jsx("figcaption",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-background/90 to-transparent p-3 text-xs text-foreground opacity-0 group-hover:opacity-100 transition-opacity",children:u.caption})]},u.src))}),s.jsx("div",{className:"text-center mt-10",children:s.jsxs("button",{type:"button",onClick:()=>n(!0),className:"luxury-button-primary",children:["Talk to Rick about ",e.shortName," membership"]})})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12 max-w-4xl",children:s.jsxs("div",{className:"space-y-12",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"The Course"}),s.jsxs("h2",{className:"text-2xl md:text-3xl font-heading text-foreground mb-4",children:[e.architect,e.yearOpened?` • ${e.yearOpened}`:""]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.copy.course})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"The Community"}),s.jsxs("h2",{className:"text-2xl md:text-3xl font-heading text-foreground mb-4",children:["Living at ",e.shortName]}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.copy.community})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"Membership"}),s.jsx("h2",{className:"text-2xl md:text-3xl font-heading text-foreground mb-4",children:"How the club works"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.copy.membership}),s.jsx("div",{className:"mt-6",children:s.jsxs("button",{type:"button",onClick:()=>n(!0),className:"luxury-button-primary",children:["Talk to Rick about ",e.shortName," membership"]})})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"The Real Estate"}),s.jsx("h2",{className:"text-2xl md:text-3xl font-heading text-foreground mb-4",children:"What Rick sees in this market"}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.copy.realEstate})]})]})})}),s.jsx("section",{className:"py-16 bg-card border-y border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-heading text-foreground text-center mb-10",children:"Club Amenities"}),s.jsx("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-4 max-w-4xl mx-auto",children:e.amenities.map(u=>s.jsxs("div",{className:"flex items-center gap-3 bg-background border border-border p-4",children:[s.jsx(Hp,{className:"w-4 h-4 text-primary shrink-0"}),s.jsx("span",{className:"text-sm text-foreground",children:u})]},u))})]})}),s.jsx(oF,{areaId:e.areaId,zipFallback:e.zipFallback,label:e.shortName,title:`Active Listings — ${e.shortName}`}),s.jsx("section",{className:"py-16 bg-primary/10 border-y border-primary/30",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center max-w-3xl",children:[s.jsx(g2,{className:"w-10 h-10 text-primary mx-auto mb-4"}),s.jsx("h2",{className:"text-2xl md:text-3xl font-heading text-foreground mb-4",children:"Play Westlake CC with Rick — on the house"}),s.jsxs("p",{className:"text-muted-foreground mb-8",children:["If you're seriously considering a home at ",e.shortName," or anywhere in Central Texas private golf, Rick will host you for a complimentary round at Westlake Country Club to talk club fit, membership, and available real estate. No obligation."]}),s.jsx("a",{href:"tel:5127857489",className:"luxury-button-primary",children:"Call Rick: (512) 785-7489"})]})}),s.jsx("section",{className:"py-20 lg:py-28",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-12",children:[s.jsx("p",{className:"text-sm tracking-[0.2em] uppercase text-primary mb-4",children:"FAQ"}),s.jsxs("h2",{className:"text-3xl md:text-4xl font-heading text-foreground",children:[e.shortName," Questions Buyers Ask"]})]}),s.jsx("div",{className:"max-w-3xl mx-auto space-y-6",children:l.map((u,d)=>s.jsxs("div",{className:"bg-card border border-border p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-foreground mb-3",children:u.q}),s.jsx("p",{className:"text-muted-foreground leading-relaxed",children:u.a})]},d))})]})}),c.length>0&&s.jsx("section",{className:"py-16 bg-card border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("h2",{className:"text-2xl font-heading text-foreground mb-8",children:["Other clubs in ",e.region]}),s.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:c.map(u=>s.jsxs(Y,{to:`/private-golf-courses/${u.slug}`,className:"bg-background border border-border p-6 hover:border-primary transition-all",children:[s.jsx("h3",{className:"font-semibold text-foreground mb-2",children:u.name}),s.jsx("p",{className:"text-xs text-primary mb-1",children:u.architect}),s.jsx("p",{className:"text-sm text-muted-foreground",children:u.priceBand})]},u.slug))})]})})]}),s.jsx(he,{}),s.jsx(cF,{open:r,onOpenChange:n,clubName:e.name,clubShortName:e.shortName,clubSlug:e.slug})]})},dF=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"5205 Tortuga Trail | $23M Lake Austin Estate | Rick Orr"}),s.jsx("meta",{name:"description",content:"5205 Tortuga Trail — $23,000,000 Lake Austin waterfront estate. Among the top Lake Austin sales all-time. Rick Orr represented the buyer in this off-MLS transaction."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[60vh] lg:min-h-[70vh] relative flex items-end",children:[s.jsx("img",{src:Ed,alt:"5205 Tortuga Trail — Lake Austin estate",className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/30 to-transparent"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 relative z-10 pb-16",children:[s.jsxs("div",{className:"flex flex-wrap gap-3 mb-4",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Off MLS"}),s.jsx("span",{className:"bg-background/80 text-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Represented Buyer"})]}),s.jsx("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl text-foreground tracking-[0.1em] uppercase mb-2",children:"5205 Tortuga Trail"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-4",children:"Lake Austin, TX"}),s.jsx("p",{className:"font-heading text-3xl md:text-4xl text-foreground",children:"$23,000,000"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Transaction"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Among the Top Lake Austin Sales All-Time"}),s.jsxs("div",{className:"space-y-6 text-muted-foreground leading-relaxed text-lg",children:[s.jsx("p",{children:"Rick Orr represented the buyer in this landmark off-market acquisition on Lake Austin's prestigious Tortuga Trail. Last listed at $23,000,000, this estate stands as one of the highest-value residential transactions in Lake Austin history."}),s.jsx("p",{children:"The property features exceptional waterfront living with private dock access, resort-caliber outdoor spaces, and the kind of architectural distinction that defines Lake Austin's most coveted addresses."}),s.jsx("p",{children:"This off-MLS transaction exemplifies the advantage of working with an agent deeply connected to Austin's luxury market — where the best opportunities often never reach the public market."})]})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mt-16",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"$23M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Sale Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Off MLS"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Transaction Type"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Buyer"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Rick's Role"})]})]})]})}),s.jsx("section",{className:"py-16 bg-section-bg border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6 tracking-[0.1em] uppercase",children:"Explore Lake Austin"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Discover available waterfront properties on Lake Austin."}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[s.jsx(Y,{to:"/neighborhoods/lake-austin",className:"luxury-button-primary inline-block",children:"Lake Austin Listings"}),s.jsx(Y,{to:"/sold-gallery",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"All Notable Sales"})]})]})})]}),s.jsx(he,{})]}),hF=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"3901 Fifth & West Penthouse | $14M Downtown Austin | Rick Orr"}),s.jsx("meta",{name:"description",content:"3901 Fifth & West Penthouse — $14,000,000 downtown Austin luxury condo. Top 2 condos sold all-time in Downtown Austin. Rick Orr represented the buyer in this off-MLS transaction."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[60vh] lg:min-h-[70vh] relative flex items-end",children:[s.jsx("img",{src:o8,alt:"3901 Fifth & West Penthouse — Downtown Austin",className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/30 to-transparent"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 relative z-10 pb-16",children:[s.jsxs("div",{className:"flex flex-wrap gap-3 mb-4",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Off MLS"}),s.jsx("span",{className:"bg-background/80 text-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Represented Buyer"})]}),s.jsx("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl text-foreground tracking-[0.1em] uppercase mb-2",children:"3901 Fifth & West"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-1",children:"Penthouse"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-4",children:"Downtown Austin, TX"}),s.jsx("p",{className:"font-heading text-3xl md:text-4xl text-foreground",children:"$14,000,000"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Transaction"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Top 2 Condos Sold All-Time in Downtown Austin"}),s.jsxs("div",{className:"space-y-6 text-muted-foreground leading-relaxed text-lg",children:[s.jsx("p",{children:"Rick Orr represented the buyer in this landmark off-market acquisition of the penthouse at Fifth & West, one of downtown Austin's most prestigious residential towers. Last listed at $14,000,000, this transaction ranks among the top two condo sales in Downtown Austin history."}),s.jsx("p",{children:"Perched high above the Austin skyline, this penthouse offers sweeping panoramic views, floor-to-ceiling glass, and the finest finishes — a residence that redefines luxury urban living in Texas's capital city."}),s.jsx("p",{children:"This off-MLS transaction demonstrates the power of deep market relationships and off-market access at the highest levels of Austin real estate."})]})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mt-16",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"$14M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Sale Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Off MLS"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Transaction Type"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Buyer"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Rick's Role"})]})]})]})}),s.jsx("section",{className:"py-16 bg-section-bg border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6 tracking-[0.1em] uppercase",children:"Explore Downtown Austin"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Discover available luxury condos and properties in Downtown Austin."}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[s.jsx(Y,{to:"/idx",className:"luxury-button-primary inline-block",children:"Search Properties"}),s.jsx(Y,{to:"/sold-gallery",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"All Notable Sales"})]})]})})]}),s.jsx(he,{})]}),fF=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"103 Seaside Dr | $2.5M Cinnamon Shore, Port Aransas | Rick Orr"}),s.jsx("meta",{name:"description",content:"103 Seaside Dr — $2,500,000 in Cinnamon Shore, Port Aransas. Top $/sqft sale for Cinnamon Shore. Rick Orr represented the seller."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[60vh] lg:min-h-[70vh] relative flex items-end",children:[s.jsx("img",{src:l8,alt:"103 Seaside Dr — Cinnamon Shore, Port Aransas",className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/30 to-transparent"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 relative z-10 pb-16",children:[s.jsx("div",{className:"flex flex-wrap gap-3 mb-4",children:s.jsx("span",{className:"bg-background/80 text-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Represented Seller"})}),s.jsx("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl text-foreground tracking-[0.1em] uppercase mb-2",children:"103 Seaside Dr"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-4",children:"Cinnamon Shore, Port Aransas, TX"}),s.jsx("p",{className:"font-heading text-3xl md:text-4xl text-foreground",children:"$2,500,000"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Transaction"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Top $/sqft for Cinnamon Shore"}),s.jsxs("div",{className:"space-y-6 text-muted-foreground leading-relaxed text-lg",children:[s.jsx("p",{children:"Rick Orr represented the seller in this record-setting transaction at Cinnamon Shore, Port Aransas's premier coastal community. At $2,500,000, this sale achieved the top price per square foot in Cinnamon Shore history."}),s.jsx("p",{children:"This stunning three-story coastal estate features breathtaking Gulf views, multiple balconies, and the refined beach-house architecture that defines Cinnamon Shore's most desirable addresses."}),s.jsx("p",{children:"Whether buying or selling in Port Aransas, Rick brings the same luxury market expertise and results-driven approach to the Texas Coast."})]})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mt-16",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"$2.5M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Sale Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Top $/sqft"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Cinnamon Shore Record"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Seller"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Rick's Role"})]})]})]})}),s.jsx("section",{className:"py-16 bg-section-bg border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6 tracking-[0.1em] uppercase",children:"Buy & Sell in Port Aransas"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Contact Rick to buy or sell luxury coastal properties in Port Aransas and the Texas Coast."}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[s.jsx("a",{href:"https://www.texasbeachestate.com",target:"_blank",rel:"noopener noreferrer",className:"luxury-button-primary inline-block",children:"Visit TexasBeachEstate.com"}),s.jsx(Y,{to:"/sold-gallery",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"All Notable Sales"})]})]})})]}),s.jsx(he,{})]}),mF=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"Comanche Point Venture Estate | $12M Lake Travis | Rick Orr"}),s.jsx("meta",{name:"description",content:"Comanche Point Venture Estate — $12,000,000 Lake Travis waterfront estate. Rick Orr represented the buyer in this off-MLS transaction."})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[60vh] lg:min-h-[70vh] relative flex items-end",children:[s.jsx("img",{src:Td,alt:"Comanche Point Venture Estate — Lake Travis",className:"absolute inset-0 w-full h-full object-cover"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background/90 via-background/30 to-transparent"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 relative z-10 pb-16",children:[s.jsxs("div",{className:"flex flex-wrap gap-3 mb-4",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Off MLS"}),s.jsx("span",{className:"bg-background/80 text-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Represented Buyer"})]}),s.jsx("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl text-foreground tracking-[0.1em] uppercase mb-2",children:"Comanche Point Venture Estate"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-4",children:"Lake Travis, TX"}),s.jsx("p",{className:"font-heading text-3xl md:text-4xl text-foreground",children:"$12,000,000"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Transaction"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Premier Lake Travis Waterfront Estate"}),s.jsxs("div",{className:"space-y-6 text-muted-foreground leading-relaxed text-lg",children:[s.jsx("p",{children:"Rick Orr represented the buyer in this off-market acquisition of one of Lake Travis's most iconic waterfront estates. Situated on the prestigious Comanche Point peninsula, this $12,000,000 property commands panoramic views of Lake Travis from an unrivaled position."}),s.jsx("p",{children:"The Mediterranean-inspired estate features a dramatic domed rotunda, expansive lakefront living spaces, and direct deepwater access — a true one-of-a-kind compound on one of Texas's most sought-after lakes."}),s.jsx("p",{children:"This off-MLS transaction showcases the value of working with an agent who has deep relationships across Austin's luxury waterfront market."})]})]}),s.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mt-16",children:[s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"$12M"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Sale Price"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Off MLS"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Transaction Type"})]}),s.jsxs("div",{className:"text-center p-8 bg-background border border-border",children:[s.jsx("p",{className:"font-heading text-4xl text-foreground mb-2",children:"Buyer"}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-sm",children:"Rick's Role"})]})]})]})}),s.jsx("section",{className:"py-16 bg-section-bg border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6 tracking-[0.1em] uppercase",children:"Explore Lake Travis"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Discover available waterfront properties on Lake Travis."}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[s.jsx(Y,{to:"/neighborhoods/lake-travis",className:"luxury-button-primary inline-block",children:"Lake Travis Listings"}),s.jsx(Y,{to:"/sold-gallery",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"All Notable Sales"})]})]})})]}),s.jsx(he,{})]}),mk="/assets/photo_00-RUcGDEEm.jpg",pF="/assets/photo_01-Cwd4kEIv.jpg",gF="/assets/photo_02-CthxN-LF.jpg",xF="/assets/photo_03-Cq9j17mD.jpg",yF="/assets/photo_04-Bg_lgepl.jpg",vF="/assets/photo_05-Yom7ZbwV.jpg",bF="/assets/photo_06-ByYRd8rl.jpg",wF="/assets/photo_07-DSim2Knp.jpg",kF="/assets/photo_08-CBsO_6nN.jpg",jF="/assets/photo_09-CLvVMXsp.jpg",NF="/assets/photo_10-6FKq5PbL.jpg",_F="/assets/photo_11-LSj91lnI.jpg",SF="/assets/photo_12-lcL-w_SY.jpg",CF="/assets/photo_13-DdwMdiXn.jpg",EF="/assets/photo_14-BjTLaod7.jpg",TF="/assets/photo_15-DAcXUrQ3.jpg",RF="/assets/photo_16-D07K67oS.jpg",AF="/assets/photo_17-DPn-QjGK.jpg",PF="/assets/photo_18-DL_ISDJS.jpg",OF="/assets/photo_19-SfSpVjXp.jpg",IF="/assets/photo_20-BGIeywfv.jpg",MF="/assets/photo_21-BLkLHNyh.jpg",LF="/assets/photo_22-DvWQXv4O.jpg",DF="/assets/photo_23--UnnUo8v.jpg",$F="/assets/photo_24-Ce6ALm9I.jpg",FF="/assets/photo_25-BFzJT9BB.jpg",BF="/assets/photo_26-krfoPgFd.jpg",UF="/assets/photo_27-DRMUaLPZ.jpg",WF="/assets/photo_28-Cxt6pmrM.jpg",zF="/assets/photo_29-BKO4JEfd.jpg",HF=[mk,pF,gF,xF,yF,vF,bF,wF,kF,jF,NF,_F,SF,CF,EF,TF,RF,AF,PF,OF,IF,MF,LF,DF,$F,FF,BF,UF,WF,zF],VF=[{label:"Bedrooms",value:"4"},{label:"Bathrooms",value:"4 (3 full · 1 half)"},{label:"Living Area",value:"2,230 sqft"},{label:"Stories",value:"3"},{label:"Year Built",value:"2017"},{label:"Garage",value:"1 Car"},{label:"Lot Size",value:"0.083 acres"},{label:"Subdivision",value:"Travis Heights"},{label:"County",value:"Travis"},{label:"MLS #",value:"7289304"}],qF=()=>s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsxs(Le,{children:[s.jsx("title",{children:"707 E Live Oak #1 | $1.399M Travis Heights Modern | Rick Orr"}),s.jsx("meta",{name:"description",content:"707 E Live Oak Street #1 — $1,399,000. Modern 3-story lock-and-leave in Travis Heights overlooking Big Stacy Park. 4 beds, 4 baths, 2,230 sqft. Represented by Rick Orr."}),s.jsx("link",{rel:"canonical",href:"https://orrrealty.lovable.app/707-live-oak"}),s.jsx("meta",{property:"og:title",content:"707 E Live Oak #1 — $1.399M Travis Heights Modern"}),s.jsx("meta",{property:"og:description",content:"Modern 3-story lock-and-leave in Travis Heights overlooking Big Stacy Park. 4 beds, 4 baths, 2,230 sqft."}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:url",content:"https://orrrealty.lovable.app/707-live-oak"})]}),s.jsx(de,{}),s.jsxs("main",{className:"pt-24",children:[s.jsxs("section",{className:"min-h-[70vh] lg:min-h-[85vh] relative flex items-end",children:[s.jsx("img",{src:mk,alt:"707 E Live Oak Street #1 — Travis Heights, Austin",className:"absolute inset-0 w-full h-full object-cover",fetchPriority:"high",loading:"eager",width:1920,height:1280}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-background/40 to-transparent"}),s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 relative z-10 pb-16",children:[s.jsxs("div",{className:"flex flex-wrap gap-3 mb-4",children:[s.jsx("span",{className:"bg-primary text-primary-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Featured Listing"}),s.jsx("span",{className:"bg-background/80 text-foreground px-3 py-1 text-xs tracking-widest uppercase",children:"Travis Heights"})]}),s.jsx("h1",{className:"font-heading text-4xl md:text-5xl lg:text-6xl text-foreground tracking-[0.1em] uppercase mb-2",children:"707 E Live Oak #1"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-1",children:"Austin, TX 78704"}),s.jsx("p",{className:"text-muted-foreground text-lg mb-6",children:"4 Bed · 4 Bath · 2,230 sqft"}),s.jsx("p",{className:"font-heading text-3xl md:text-4xl text-foreground",children:"$1,399,000"})]})]}),s.jsx("section",{className:"py-20 lg:py-28 bg-section-bg",children:s.jsx("div",{className:"container mx-auto px-6 lg:px-12",children:s.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary",children:"The Residence"}),s.jsx("h2",{className:"font-heading text-3xl lg:text-4xl text-foreground tracking-[0.1em] uppercase mb-8",children:"Modern Living Above Big Stacy Park"}),s.jsxs("div",{className:"space-y-6 text-muted-foreground leading-relaxed text-lg",children:[s.jsx("p",{children:"A stunning 3-story modern home built in 2017, tucked into the highly sought-after Travis Heights neighborhood and overlooking the serene Big Stacy Park. This lock-and-leave residence offers 4 bedrooms, 4 baths, two living rooms, a dedicated office, and a sleek finished third floor — all within a generous 2,230 square feet."}),s.jsx("p",{children:"From the moment you walk in, floor-to-ceiling glass, designer finishes, and an open-concept great room set the tone. The chef's kitchen anchors the main level, flowing seamlessly to entertaining space and outdoor living. A private primary suite, spa-inspired baths, and a top-floor flex space finish the home."}),s.jsx("p",{children:"Minutes to South Congress, Lady Bird Lake, and Downtown — this is 78704 modern living at its finest."})]})]})})}),s.jsx("section",{className:"py-16 lg:py-20 bg-background",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary text-center",children:"Property Details"}),s.jsx("h2",{className:"font-heading text-2xl lg:text-3xl text-foreground tracking-[0.1em] uppercase mb-12 text-center",children:"Features & Facts"}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 max-w-6xl mx-auto",children:VF.map(t=>s.jsxs("div",{className:"border border-border p-6 text-center",children:[s.jsx("p",{className:"font-heading text-xl text-foreground mb-2",children:t.value}),s.jsx("p",{className:"text-muted-foreground uppercase tracking-wider text-xs",children:t.label})]},t.label))})]})}),s.jsx("section",{className:"py-16 lg:py-20 bg-section-bg",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12",children:[s.jsx("p",{className:"luxury-subheading mb-4 text-primary text-center",children:"Gallery"}),s.jsx("h2",{className:"font-heading text-2xl lg:text-3xl text-foreground tracking-[0.1em] uppercase mb-12 text-center",children:"Inside 707 E Live Oak"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:HF.slice(1).map((t,e)=>s.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:s.jsx("img",{src:t,alt:`707 E Live Oak interior ${e+2}`,loading:"lazy",decoding:"async",className:"w-full h-full object-cover hover:scale-105 transition-transform duration-500"})},e))})]})}),s.jsx("section",{className:"py-16 bg-background border-t border-border",children:s.jsxs("div",{className:"container mx-auto px-6 lg:px-12 text-center",children:[s.jsx("h2",{className:"font-heading text-2xl text-foreground mb-6 tracking-[0.1em] uppercase",children:"Schedule a Private Tour"}),s.jsx("p",{className:"text-muted-foreground mb-8 max-w-lg mx-auto",children:"Contact Rick Orr to arrange a showing or discuss offer strategy for 707 E Live Oak #1."}),s.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[s.jsx("a",{href:"#justtextrick",className:"luxury-button-primary inline-block",children:"Just Text Rick"}),s.jsx(Y,{to:"/portfolio/residential",className:"inline-block border border-border text-foreground px-8 py-3 text-sm tracking-[0.15em] uppercase hover:bg-primary hover:text-primary-foreground hover:border-primary transition-colors",children:"More Listings"})]})]})})]}),s.jsx(he,{})]}),Ce={first_name:"Katy",last_name:"Smith",email:"katy@vinceyoungrealty.com",phone:"(469) 583-0523",phone_e164:"+14695830523",title:"Real Estate Agent",bio:"Stub bio — Katy partners with buyers and sellers across the Austin metro to find homes that fit their lives. Replace this paragraph with her real story once onboarded.",headshot_placeholder:"https://api.dicebear.com/7.x/initials/svg?seed=Katy%20Smith&backgroundColor=b6e3f4",current_agent_id:""},GF="https://crm.realsavvy.com/api/form_submissions",KF="eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2NDNkMDg1MTAwYmI2NWQyYWE3N2MwN2U2OGE0ODkwNTBiZTE1MWIxYTQzOTEzYjRlODkwOTc5ZTgzNTJlMDc1IiwiYXVkIjoiZ2lkOi8vcmVhbC1zYXZ2eS9TaXRlLzE2NzgiLCJzdWIiOiJnaWQ6Ly9yZWFsLXNhdnZ5L1NpdGUvMTY3OCIsInNjb3BlcyI6WyJhZG1pbiJdfQ.NUi66vsTRrpVDC8gKSfMDrHhFvayzhMQH08VLNpIMDo3mN0ysyQ97pp2SlDwUPn08OoqthHb3RzoHGPCp9gJFvfoPI0DTIfgrMuUGMBHW4UJdZNWMS2Ep_BWH4iuL2VqgyXEUki4AiG8F9SXnbQbyvlRO7axJEYVWJ8EcXJ87EYQQhlAuS6f0AlTz7WwqNPipfNohon0Bo66u5WkIWlI3ybXAWo8CDJW3C-PN3QFyxgekSToV0euVZr2Pj_Eh_hVEIvEj6vPfDHyT9KihvNM7XCkw_KF4sSkT1fjqjudMspI_iQW1SixU64TKC6eHt5k2oWzq5GLoD3i1lzcnYuYzQ",YF="ktCAn7wCYjjQEg";function JF(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function QF(){const[t,e]=p.useState(""),[r,n]=p.useState(""),[a,i]=p.useState(""),[o,l]=p.useState(""),[c,u]=p.useState(""),[d,h]=p.useState(""),[f]=p.useState(Date.now()),[m,w]=p.useState(!1),[g,y]=p.useState(!1),[x,v]=p.useState("");p.useEffect(()=>{document.title=`${Ce.first_name} ${Ce.last_name} — ORR Realty`},[]);const b=async k=>{if(k.preventDefault(),v(""),!(d.length>0)&&!((Date.now()-f)/1e3<3)){if(!t||!r||!a){v("First name, last name, and email are required.");return}w(!0);try{const j=new FormData;if(j.append("cyclum_vid",YF),j.append("cyclum_submission_id",JF()),j.append("tag[]","Work with Katy"),j.append("first_name",t),j.append("last_name",r),j.append("email",a),o&&j.append("phone",o),c&&j.append("message",c),Ce.current_agent_id,!(await fetch(GF,{method:"POST",headers:{Authorization:`Bearer ${KF}`},body:j})).ok)throw new Error("submission failed");y(!0)}catch{v("Something went wrong. Please try again or email Katy directly.")}finally{w(!1)}}};return s.jsxs(s.Fragment,{children:[s.jsxs(Le,{children:[s.jsxs("title",{children:[Ce.first_name," ",Ce.last_name," — Real Estate Agent | ORR Realty"]}),s.jsx("meta",{name:"description",content:`${Ce.first_name} ${Ce.last_name} — ${Ce.title} at ORR Realty. ${Ce.bio.slice(0,120)}`})]}),s.jsx(de,{}),s.jsxs("main",{className:"min-h-screen bg-background",children:[s.jsx("section",{className:"border-b border-border/40 bg-card",children:s.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12 md:py-16",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-8 items-start",children:[s.jsx("img",{src:Ce.headshot_placeholder,alt:`${Ce.first_name} ${Ce.last_name}`,className:"w-full max-w-[200px] rounded-2xl object-cover shadow-lg border border-border/60"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-primary uppercase tracking-wider",children:Ce.title}),s.jsxs("h1",{className:"mt-1 text-3xl md:text-4xl font-semibold text-foreground tracking-tight",children:[Ce.first_name," ",Ce.last_name]}),s.jsx("p",{className:"mt-4 text-base md:text-lg text-muted-foreground leading-relaxed",children:Ce.bio}),s.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[s.jsxs("a",{href:`mailto:${Ce.email}`,className:"inline-flex items-center gap-1.5 hover:text-foreground transition-colors",children:[s.jsx(Al,{className:"h-4 w-4"}),Ce.email]}),s.jsxs("a",{href:`tel:${Ce.phone_e164}`,className:"inline-flex items-center gap-1.5 hover:text-foreground transition-colors",children:[s.jsx(xs,{className:"h-4 w-4"}),Ce.phone]}),s.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s.jsx(mn,{className:"h-4 w-4"}),"Austin, TX"]})]})]})]})})}),s.jsx("section",{id:"work-with-me",className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12 md:py-16",children:s.jsxs("div",{className:"rounded-2xl border border-border/60 bg-card p-6 md:p-10 shadow-card",children:[s.jsxs("h2",{className:"text-2xl md:text-3xl font-semibold text-foreground tracking-tight",children:["Work with ",Ce.first_name]}),s.jsxs("p",{className:"mt-2 text-muted-foreground",children:["Send a quick note and ",Ce.first_name," will be in touch — usually within a few hours."]}),g?s.jsxs("div",{className:"mt-6 flex items-start gap-3 rounded-xl border border-emerald-200 bg-emerald-50 p-4",children:[s.jsx(h2,{className:"h-5 w-5 text-emerald-600 flex-shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-emerald-900",children:"Got it — thank you."}),s.jsxs("p",{className:"text-sm text-emerald-800 mt-0.5",children:[Ce.first_name," will reach out to ",a," shortly."]})]})]}):s.jsxs("form",{onSubmit:b,className:"mt-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx("input",{type:"text",value:d,onChange:k=>h(k.target.value),tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":"true"}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"First Name *"}),s.jsx("input",{type:"text",value:t,onChange:k=>e(k.target.value),required:!0,className:"mt-1 w-full rounded-lg border border-border/60 px-3 py-2 text-sm"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Last Name *"}),s.jsx("input",{type:"text",value:r,onChange:k=>n(k.target.value),required:!0,className:"mt-1 w-full rounded-lg border border-border/60 px-3 py-2 text-sm"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Email *"}),s.jsx("input",{type:"email",value:a,onChange:k=>i(k.target.value),required:!0,className:"mt-1 w-full rounded-lg border border-border/60 px-3 py-2 text-sm"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Phone"}),s.jsx("input",{type:"tel",value:o,onChange:k=>l(k.target.value),className:"mt-1 w-full rounded-lg border border-border/60 px-3 py-2 text-sm"})]}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Message"}),s.jsx("textarea",{value:c,onChange:k=>u(k.target.value),rows:4,placeholder:`Tell ${Ce.first_name} a bit about what you're looking for…`,className:"mt-1 w-full rounded-lg border border-border/60 px-3 py-2 text-sm"})]}),x&&s.jsx("div",{className:"md:col-span-2 rounded-lg bg-destructive/10 border border-destructive/20 p-3 text-sm text-destructive",children:x}),s.jsxs("div",{className:"md:col-span-2 flex items-center justify-between gap-4 mt-2",children:[s.jsxs("p",{className:"text-[11px] text-muted-foreground",children:["By sending this, you agree to ",Ce.first_name," reaching out via email or phone."]}),s.jsxs("button",{type:"submit",disabled:m,className:"inline-flex items-center gap-2 h-10 px-6 rounded-lg bg-primary text-sm font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-60 transition-all",children:[m?s.jsx(la,{className:"h-4 w-4 animate-spin"}):s.jsx(v_,{className:"h-4 w-4"}),"Work with ",Ce.first_name]})]})]})]})})]}),s.jsx(he,{})]})}const XF=typeof window<"u"&&window.AGNT_CONCIERGE_URL||"https://agnt-concierge.onrender.com",fv="agnt_widget_open",mv="agnt_widget_teaser_dismissed";function ZF(){const[t,e]=p.useState(!1),[r,n]=p.useState(!1),[a,i]=p.useState(!1);p.useEffect(()=>{e(sessionStorage.getItem(fv)==="1");const f=window.matchMedia("(max-width: 640px)"),m=()=>i(f.matches);return m(),f.addEventListener("change",m),()=>f.removeEventListener("change",m)},[]),p.useEffect(()=>{sessionStorage.setItem(fv,t?"1":"0")},[t]),p.useEffect(()=>{if(t||sessionStorage.getItem(mv)==="1")return;const f=setTimeout(()=>n(!0),4e3);return()=>clearTimeout(f)},[t]);function o(){n(!1),sessionStorage.setItem(mv,"1")}function l(){o(),e(f=>!f)}const c=typeof window<"u"&&window.AGNT_CONCIERGE_HOST||"www.austinrealestateagency.com",u=typeof window<"u"?window.location.host:"",d=u&&!/(^|\.)realsavvy\.com$/i.test(u)?u:c,h=`${XF}/?host=${encodeURIComponent(d)}`;return s.jsxs(s.Fragment,{children:[t&&s.jsxs("div",{style:{position:"fixed",right:a?0:20,bottom:a?0:96,top:a?0:"auto",left:a?0:"auto",width:a?"100%":400,height:a?"100dvh":640,maxHeight:a?"100dvh":"calc(100dvh - 120px)",background:"white",borderRadius:a?0:16,boxShadow:"0 24px 60px rgba(15, 23, 42, 0.25)",overflow:"hidden",zIndex:9999,display:"flex",flexDirection:"column"},children:[a&&s.jsx("button",{onClick:l,"aria-label":"Close",style:{position:"absolute",top:"calc(env(safe-area-inset-top, 0px) + 12px)",right:12,width:36,height:36,borderRadius:18,border:"none",background:"rgba(15,23,42,0.9)",color:"white",fontSize:18,cursor:"pointer",zIndex:1},children:"×"}),s.jsx("iframe",{title:"Just Text Rick — AGNT Concierge",src:h,allow:"clipboard-write; web-share",style:{flex:1,border:0,width:"100%",height:"100%"}})]}),!(a&&t)&&s.jsxs("button",{onClick:l,"aria-label":t?"Close Just Text Rick":"Open Just Text Rick",style:{position:"fixed",right:20,bottom:"calc(env(safe-area-inset-bottom, 0px) + 20px)",width:64,height:64,borderRadius:32,border:"2px solid white",background:"#0f172a",boxShadow:"0 10px 28px rgba(15, 23, 42, 0.32)",cursor:"pointer",padding:0,zIndex:1e4,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"},children:[t?s.jsx("span",{style:{color:"white",fontSize:26,lineHeight:1},children:"×"}):s.jsx("img",{src:Hi,alt:"Rick Orr",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top"}}),!t&&s.jsx("span",{style:{position:"absolute",bottom:4,right:4,width:14,height:14,borderRadius:7,background:"#16a34a",border:"2px solid white"}})]}),r&&!t&&s.jsxs("div",{onClick:l,style:{position:"fixed",right:96,bottom:"calc(env(safe-area-inset-bottom, 0px) + 32px)",maxWidth:280,background:"white",color:"#0f172a",padding:"12px 16px",paddingRight:32,borderRadius:16,borderBottomRightRadius:4,boxShadow:"0 10px 28px rgba(15, 23, 42, 0.18)",fontSize:14,fontWeight:500,lineHeight:1.4,cursor:"pointer",zIndex:9998,fontFamily:'-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif'},children:[s.jsx("span",{style:{fontWeight:700},children:"Just Text Rick."})," Off-market deals, comps, and the inside scoop — 24/7.",s.jsx("button",{onClick:f=>{f.stopPropagation(),o()},"aria-label":"Dismiss",style:{position:"absolute",top:6,right:8,border:"none",background:"transparent",color:"#94a3b8",fontSize:16,cursor:"pointer",padding:4,lineHeight:1},children:"×"})]})]})}const eB=new zC,tB=()=>s.jsx(Fw,{children:s.jsx(KC,{client:eB,children:s.jsx(NC,{children:s.jsxs(ET,{children:[s.jsx(o6,{}),s.jsx(F6,{}),s.jsxs(tE,{children:[s.jsx(q$,{}),s.jsxs(K7,{children:[s.jsx(ee,{path:"/",element:s.jsx(DL,{})}),s.jsx(ee,{path:"/about",element:s.jsx(L$,{})}),s.jsx(ee,{path:"/buyers-guide",element:s.jsx(B$,{})}),s.jsx(ee,{path:"/sellers-guide",element:s.jsx(H$,{})}),s.jsx(ee,{path:"/idx",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/idx/*",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/search",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/search/*",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/client/*",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/r/*",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/preview-property/*",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/magic-redirect",element:s.jsx(_n,{})}),s.jsx(ee,{path:"/home-valuation",element:s.jsx(KL,{})}),s.jsx(ee,{path:"/portfolio",element:s.jsx(YL,{})}),s.jsx(ee,{path:"/portfolio/residential",element:s.jsx(JL,{})}),s.jsx(ee,{path:"/portfolio/commercial",element:s.jsx(eD,{})}),s.jsx(ee,{path:"/sold-listings",element:s.jsx(tD,{})}),s.jsx(ee,{path:"/sold-gallery",element:s.jsx(rD,{})}),s.jsx(ee,{path:"/neighborhoods",element:s.jsx(nD,{})}),s.jsx(ee,{path:"/neighborhoods/tarrytown",element:s.jsx(sD,{})}),s.jsx(ee,{path:"/neighborhoods/travis-heights",element:s.jsx(aD,{})}),s.jsx(ee,{path:"/neighborhoods/dripping-springs",element:s.jsx(oD,{})}),s.jsx(ee,{path:"/neighborhoods/lake-travis",element:s.jsx(lD,{})}),s.jsx(ee,{path:"/neighborhoods/westlake",element:s.jsx(uD,{})}),s.jsx(ee,{path:"/neighborhoods/lake-austin",element:s.jsx(cD,{})}),s.jsx(ee,{path:"/listing/:id",element:s.jsx(tv,{})}),s.jsx(ee,{path:"/listings/:id",element:s.jsx(tv,{})}),s.jsx(ee,{path:"/privacy-policy",element:s.jsx(mD,{})}),s.jsx(ee,{path:"/disclaimer",element:s.jsx(pD,{})}),s.jsx(ee,{path:"/blog",element:s.jsx(w$,{})}),s.jsx(ee,{path:"/blog/:slug",element:s.jsx(k$,{})}),s.jsx(ee,{path:"/auth",element:s.jsx(j$,{})}),s.jsx(ee,{path:"/admin/blog",element:s.jsx(T$,{})}),s.jsx(ee,{path:"/admin/profile",element:s.jsx(A$,{})}),s.jsx(ee,{path:"/startup-entrepreneurs",element:s.jsx(Y$,{})}),s.jsx(ee,{path:"/luxury-buyers-agent",element:s.jsx(Z$,{})}),s.jsx(ee,{path:"/off-market-listings",element:s.jsx(rF,{})}),s.jsx(ee,{path:"/bouldin-creek",element:s.jsx(aF,{})}),s.jsx(ee,{path:"/golf-communities",element:s.jsx($c,{to:"/private-golf-courses",replace:!0})}),s.jsx(ee,{path:"/private-golf-courses",element:s.jsx(iF,{})}),s.jsx(ee,{path:"/private-golf-courses/:slug",element:s.jsx(uF,{})}),s.jsx(ee,{path:"/sales/5205-tortuga-trail",element:s.jsx(dF,{})}),s.jsx(ee,{path:"/sales/3901-fifth-west-penthouse",element:s.jsx(hF,{})}),s.jsx(ee,{path:"/sales/103-seaside-cinnamon-shore",element:s.jsx(fF,{})}),s.jsx(ee,{path:"/sales/comanche-point-lake-travis",element:s.jsx(mF,{})}),s.jsx(ee,{path:"/707-live-oak",element:s.jsx(qF,{})}),s.jsx(ee,{path:"/sales/707-live-oak",element:s.jsx($c,{to:"/707-live-oak",replace:!0})}),s.jsx(ee,{path:"/sales/live-oak",element:s.jsx($c,{to:"/707-live-oak",replace:!0})}),s.jsx(ee,{path:"/agents/katy",element:s.jsx(QF,{})}),s.jsx(ee,{path:"/justtextrick",element:s.jsx(UL,{})}),s.jsx(ee,{path:"*",element:s.jsx(V$,{})})]}),s.jsx(ZF,{})]})]})})})});Db(document.getElementById("root")).render(s.jsx(p.StrictMode,{children:s.jsx(tB,{})}));